@povio/openapi-codegen-cli 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,30 +2,30 @@
2
2
 
3
3
  `+n:r||n}o(nm,"joinStacks");yt.joinStacks=nm;function u2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return nm({stack:n},r)},"get"),enumerable:!1,configurable:!0}):l2(t,e)}o(u2,"lazyJoinStacks");yt.lazyJoinStacks=u2;function im(e){if(e){let t=e.split(o2),r;for(let n=0;n<t.length;n++){let i=t[n];if(s2.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
4
  `)}return e}o(im,"popStack");function l2(e,t){Object.defineProperty(e,"stack",{get:o(()=>im(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(l2,"lazyPopStack")});var cm=h(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.extendError=void 0;var sm=Rc(),fs=om(),am=ps(),p2=["name","message","stack"];function f2(e,t,r){let n=e;return d2(n,t),t&&typeof t=="object"&&m2(n,t),n.toJSON=am.toJSON,sm.addInspectMethod&&sm.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(f2,"extendError");ds.extendError=f2;function d2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");fs.isLazyStack(r)?fs.lazyJoinStacks(r,e,t):fs.isWritableStack(r)&&(e.stack=fs.joinStacks(e,t))}o(d2,"extendStack");function m2(e,t){let r=am.getDeepKeys(t,p2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(m2,"mergeErrors")});var um=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.normalizeArgs=wn.normalizeOptions=void 0;var h2=Rc();function g2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?h2.format:typeof e.format=="function"?e.format:!1}}o(g2,"normalizeOptions");wn.normalizeOptions=g2;function y2(e,t){let r,n,i,s="";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?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
- `:"")+r.message),{originalError:r,props:n,message:s}}o(y2,"normalizeArgs");wn.normalizeArgs=y2});var kc=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.Ono=void 0;var ms=cm(),lm=um(),S2=ps(),v2=Nc;hs.Ono=v2;function Nc(e,t){t=lm.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=lm.normalizeArgs(n,t),c=new e(a);return ms.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Nc,"Ono");Nc.toJSON=o(function(t){return S2.toJSON.call(t)},"toJSON");Nc.extend=o(function(t,r,n){return n||r instanceof Error?ms.extendError(t,r,n):r?ms.extendError(t,void 0,r):ms.extendError(t)},"extend")});var pm=h(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ono=void 0;var Dr=kc(),b2=St;gs.ono=b2;St.error=new Dr.Ono(Error);St.eval=new Dr.Ono(EvalError);St.range=new Dr.Ono(RangeError);St.reference=new Dr.Ono(ReferenceError);St.syntax=new Dr.Ono(SyntaxError);St.type=new Dr.Ono(TypeError);St.uri=new Dr.Ono(URIError);var _2=St;function St(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(_2))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 St.error.apply(void 0,e)}o(St,"ono")});var dm=h(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var NM=require("util")});var ot=h((it,In)=>{"use strict";var E2=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),P2=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&E2(t,e,r)};Object.defineProperty(it,"__esModule",{value:!0});it.ono=void 0;var mm=pm();Object.defineProperty(it,"ono",{enumerable:!0,get:o(function(){return mm.ono},"get")});var O2=kc();Object.defineProperty(it,"Ono",{enumerable:!0,get:o(function(){return O2.Ono},"get")});P2(dm(),it);it.default=mm.ono;typeof In=="object"&&typeof In.exports=="object"&&(In.exports=Object.assign(In.exports.default,In.exports))});var Li=h(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.regexpCode=F.getEsmExportName=F.getProperty=F.safeStringify=F.stringify=F.strConcat=F.addCodeArg=F.str=F._=F.nil=F._Code=F.Name=F.IDENTIFIER=F._CodeOrName=void 0;var Mc=class Mc{};o(Mc,"_CodeOrName");var Mi=Mc;F._CodeOrName=Mi;F.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Dc=class Dc extends Mi{constructor(t){if(super(),!F.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}}};o(Dc,"Name");var Lr=Dc;F.Name=Lr;var Lc=class Lc extends Mi{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 Lr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Lc,"_Code");var ze=Lc;F._Code=ze;F.nil=new ze("");function hm(e,...t){let r=[e[0]],n=0;for(;n<t.length;)qc(r,t[n]),r.push(e[++n]);return new ze(r)}o(hm,"_");F._=hm;var jc=new ze("+");function gm(e,...t){let r=[Di(e[0])],n=0;for(;n<t.length;)r.push(jc),qc(r,t[n]),r.push(jc,Di(e[++n]));return $2(r),new ze(r)}o(gm,"str");F.str=gm;function qc(e,t){t instanceof ze?e.push(...t._items):t instanceof Lr?e.push(t):e.push(w2(t))}o(qc,"addCodeArg");F.addCodeArg=qc;function $2(e){let t=1;for(;t<e.length-1;){if(e[t]===jc){let r=x2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o($2,"optimize");function x2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Lr||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 Lr))return`"${e}${t.slice(1)}`}o(x2,"mergeExprItems");function A2(e,t){return t.emptyStr()?e:e.emptyStr()?t:gm`${e}${t}`}o(A2,"strConcat");F.strConcat=A2;function w2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Di(Array.isArray(e)?e.join(","):e)}o(w2,"interpolate");function I2(e){return new ze(Di(e))}o(I2,"stringify");F.stringify=I2;function Di(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Di,"safeStringify");F.safeStringify=Di;function T2(e){return typeof e=="string"&&F.IDENTIFIER.test(e)?new ze(`.${e}`):hm`[${e}]`}o(T2,"getProperty");F.getProperty=T2;function C2(e){if(typeof e=="string"&&F.IDENTIFIER.test(e))return new ze(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(C2,"getEsmExportName");F.getEsmExportName=C2;function R2(e){return new ze(e.toString())}o(R2,"regexpCode");F.regexpCode=R2});var Zc=h(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.ValueScope=ke.ValueScopeName=ke.Scope=ke.varKinds=ke.UsedValueState=void 0;var Ne=Li(),Vc=class Vc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Vc,"ValueError");var Fc=Vc,ys;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ys||(ke.UsedValueState=ys={}));ke.varKinds={const:new Ne.Name("const"),let:new Ne.Name("let"),var:new Ne.Name("var")};var Bc=class Bc{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ne.Name?t:this.name(t)}name(t){return new Ne.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}}};o(Bc,"Scope");var Ss=Bc;ke.Scope=Ss;var Gc=class Gc extends Ne.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ne._)`.${new Ne.Name(r)}[${n}]`}};o(Gc,"ValueScopeName");var vs=Gc;ke.ValueScopeName=vs;var N2=(0,Ne._)`\n`,Uc=class Uc extends Ss{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?N2:Ne.nil}}get(){return this._scope}name(t){return new vs(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:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,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,Ne._)`${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 s=Ne.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,ys.Started);let f=r(l);if(f){let p=this.opts.es5?ke.varKinds.var:ke.varKinds.const;s=(0,Ne._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ne._)`${s}${f}${this.opts._n}`;else throw new Fc(l);u.set(l,ys.Completed)})}return s}};o(Uc,"ValueScope");var Hc=Uc;ke.ValueScope=Hc});var C=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.or=N.and=N.not=N.CodeGen=N.operators=N.varKinds=N.ValueScopeName=N.ValueScope=N.Scope=N.Name=N.regexpCode=N.stringify=N.getProperty=N.nil=N.strConcat=N.str=N._=void 0;var M=Li(),st=Zc(),nr=Li();Object.defineProperty(N,"_",{enumerable:!0,get:o(function(){return nr._},"get")});Object.defineProperty(N,"str",{enumerable:!0,get:o(function(){return nr.str},"get")});Object.defineProperty(N,"strConcat",{enumerable:!0,get:o(function(){return nr.strConcat},"get")});Object.defineProperty(N,"nil",{enumerable:!0,get:o(function(){return nr.nil},"get")});Object.defineProperty(N,"getProperty",{enumerable:!0,get:o(function(){return nr.getProperty},"get")});Object.defineProperty(N,"stringify",{enumerable:!0,get:o(function(){return nr.stringify},"get")});Object.defineProperty(N,"regexpCode",{enumerable:!0,get:o(function(){return nr.regexpCode},"get")});Object.defineProperty(N,"Name",{enumerable:!0,get:o(function(){return nr.Name},"get")});var Ps=Zc();Object.defineProperty(N,"Scope",{enumerable:!0,get:o(function(){return Ps.Scope},"get")});Object.defineProperty(N,"ValueScope",{enumerable:!0,get:o(function(){return Ps.ValueScope},"get")});Object.defineProperty(N,"ValueScopeName",{enumerable:!0,get:o(function(){return Ps.ValueScopeName},"get")});Object.defineProperty(N,"varKinds",{enumerable:!0,get:o(function(){return Ps.varKinds},"get")});N.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var ou=class ou{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(ou,"Node");var Lt=ou,su=class su extends Lt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?st.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=Rn(this.rhs,t,r)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}};o(su,"Def");var zc=su,au=class au extends Lt{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 M.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Rn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof M.Name?{}:{...this.lhs.names};return Es(t,this.rhs)}};o(au,"Assign");var bs=au,cu=class cu extends bs{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(cu,"AssignOp");var Kc=cu,uu=class uu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(uu,"Label");var Qc=uu,lu=class lu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(lu,"Break");var Wc=lu,pu=class pu extends Lt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(pu,"Throw");var Yc=pu,fu=class fu extends Lt{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=Rn(this.code,t,r),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}};o(fu,"AnyCode");var Jc=fu,du=class du extends Lt{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 s=n[i];s.optimizeNames(t,r)||(k2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Vr(t,r.names),{})}};o(du,"ParentNode");var Fi=du,mu=class mu extends Fi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(mu,"BlockNode");var Ft=mu,hu=class hu extends Fi{};o(hu,"Root");var Xc=hu,gu=class gu extends Ft{};o(gu,"Else");var Cn=gu;Cn.kind="else";var Tn=class Tn extends Ft{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 Tn?r:r.nodes:this.nodes.length?this:new Tn(ym(t),r instanceof Tn?[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=Rn(this.condition,t,r),this}get names(){let t=super.names;return Es(t,this.condition),this.else&&Vr(t,this.else.names),t}};o(Tn,"If");var Fr=Tn;Fr.kind="if";var yu=class yu extends Ft{};o(yu,"For");var Hr=yu;Hr.kind="for";var Su=class Su extends Hr{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=Rn(this.iteration,t,r),this}get names(){return Vr(super.names,this.iteration.names)}};o(Su,"ForLoop");var eu=Su,vu=class vu extends Hr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?st.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Es(super.names,this.from);return Es(t,this.to)}};o(vu,"ForRange");var tu=vu,bu=class bu extends Hr{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=Rn(this.iterable,t,r),this}get names(){return Vr(super.names,this.iterable.names)}};o(bu,"ForIter");var _s=bu,_u=class _u extends Ft{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)}};o(_u,"Func");var Hi=_u;Hi.kind="func";var Eu=class Eu extends Fi{render(t){return"return "+super.render(t)}};o(Eu,"Return");var Vi=Eu;Vi.kind="return";var Pu=class Pu extends Ft{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&&Vr(t,this.catch.names),this.finally&&Vr(t,this.finally.names),t}};o(Pu,"Try");var ru=Pu,Ou=class Ou extends Ft{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Ou,"Catch");var Bi=Ou;Bi.kind="catch";var $u=class $u extends Ft{render(t){return"finally"+super.render(t)}};o($u,"Finally");var Gi=$u;Gi.kind="finally";var xu=class xu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new st.Scope({parent:t}),this._nodes=[new Xc]}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 s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new zc(t,s,n)),s}const(t,r,n){return this._def(st.varKinds.const,t,r,n)}let(t,r,n){return this._def(st.varKinds.let,t,r,n)}var(t,r,n){return this._def(st.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new bs(t,r,n))}add(t,r){return this._leafNode(new Kc(t,N.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==M.nil&&this._leafNode(new Jc(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,M.addCodeArg)(r,i));return r.push("}"),new M._Code(r)}if(t,r,n){if(this._blockNode(new Fr(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 Fr(t))}else(){return this._elseNode(new Cn)}endIf(){return this._endBlockNode(Fr,Cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new eu(t),r)}forRange(t,r,n,i,s=this.opts.es5?st.varKinds.var:st.varKinds.let){let a=this._scope.toName(t);return this._for(new tu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=st.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof M.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,M._)`${a}.length`,c=>{this.var(s,(0,M._)`${a}[${c}]`),n(s)})}return this._for(new _s("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?st.varKinds.var:st.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,M._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new _s("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Hr)}label(t){return this._leafNode(new Qc(t))}break(t){return this._leafNode(new Wc(t))}return(t){let r=new Vi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Vi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ru;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Bi(s),r(s)}return n&&(this._currNode=i.finally=new Gi,this.code(n)),this._endBlockNode(Bi,Gi)}throw(t){return this._leafNode(new Yc(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=M.nil,n,i){return this._blockNode(new Hi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Hi)}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 Fr))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}};o(xu,"CodeGen");var nu=xu;N.CodeGen=nu;function Vr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Vr,"addNames");function Es(e,t){return t instanceof M._CodeOrName?Vr(e,t.names):e}o(Es,"addExprNames");function Rn(e,t,r){if(e instanceof M.Name)return n(e);if(!i(e))return e;return new M._Code(e._items.reduce((s,a)=>(a instanceof M.Name&&(a=n(a)),a instanceof M._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof M._Code&&s._items.some(a=>a instanceof M.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(Rn,"optimizeExpr");function k2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(k2,"subtractNames");function ym(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,M._)`!${iu(e)}`}o(ym,"not");N.not=ym;var j2=Sm(N.operators.AND);function q2(...e){return e.reduce(j2)}o(q2,"and");N.and=q2;var M2=Sm(N.operators.OR);function D2(...e){return e.reduce(M2)}o(D2,"or");N.or=D2;function Sm(e){return(t,r)=>t===M.nil?r:r===M.nil?t:(0,M._)`${iu(t)} ${e} ${iu(r)}`}o(Sm,"mappend");function iu(e){return e instanceof M.Name?e:(0,M._)`(${e})`}o(iu,"par")});var j=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 U=C(),L2=Li();function F2(e){let t={};for(let r of e)t[r]=!0;return t}o(F2,"toHash");k.toHash=F2;function H2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(_m(e,t),!Em(t,e.self.RULES.all))}o(H2,"alwaysValidSchema");k.alwaysValidSchema=H2;function _m(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||$m(e,`unknown keyword: "${s}"`)}o(_m,"checkUnknownRules");k.checkUnknownRules=_m;function Em(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Em,"schemaHasRules");k.schemaHasRules=Em;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}o(V2,"schemaHasRulesButRef");k.schemaHasRulesButRef=V2;function B2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,U._)`${r}`}return(0,U._)`${e}${t}${(0,U.getProperty)(n)}`}o(B2,"schemaRefOrVal");k.schemaRefOrVal=B2;function G2(e){return Pm(decodeURIComponent(e))}o(G2,"unescapeFragment");k.unescapeFragment=G2;function U2(e){return encodeURIComponent(wu(e))}o(U2,"escapeFragment");k.escapeFragment=U2;function wu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(wu,"escapeJsonPointer");k.escapeJsonPointer=wu;function Pm(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Pm,"unescapeJsonPointer");k.unescapeJsonPointer=Pm;function Z2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Z2,"eachItem");k.eachItem=Z2;function vm({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof U.Name?(s instanceof U.Name?e(i,s,a):t(i,s,a),a):s instanceof U.Name?(t(i,a,s),s):r(s,a);return c===U.Name&&!(u instanceof U.Name)?n(i,u):u}}o(vm,"makeMergeEvaluated");k.mergeEvaluated={props:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,U._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,U._)`${r} || {}`).code((0,U._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,U._)`${r} || {}`),Iu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Om}),items:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,U._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,U._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Om(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,U._)`{}`);return t!==void 0&&Iu(e,r,t),r}o(Om,"evaluatedPropsToName");k.evaluatedPropsToName=Om;function Iu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,U._)`${t}${(0,U.getProperty)(n)}`,!0))}o(Iu,"setEvaluated");k.setEvaluated=Iu;var bm={};function z2(e,t){return e.scopeValue("func",{ref:t,code:bm[t.code]||(bm[t.code]=new L2._Code(t.code))})}o(z2,"useFunc");k.useFunc=z2;var Au;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Au||(k.Type=Au={}));function K2(e,t,r){if(e instanceof U.Name){let n=t===Au.Num;return r?n?(0,U._)`"[" + ${e} + "]"`:(0,U._)`"['" + ${e} + "']"`:n?(0,U._)`"/" + ${e}`:(0,U._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,U.getProperty)(e).toString():"/"+wu(e)}o(K2,"getErrorPath");k.getErrorPath=K2;function $m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o($m,"checkStrictMode");k.checkStrictMode=$m});var Ke=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var ve=C(),Q2={data:new ve.Name("data"),valCxt:new ve.Name("valCxt"),instancePath:new ve.Name("instancePath"),parentData:new ve.Name("parentData"),parentDataProperty:new ve.Name("parentDataProperty"),rootData:new ve.Name("rootData"),dynamicAnchors:new ve.Name("dynamicAnchors"),vErrors:new ve.Name("vErrors"),errors:new ve.Name("errors"),this:new ve.Name("this"),self:new ve.Name("self"),scope:new ve.Name("scope"),json:new ve.Name("json"),jsonPos:new ve.Name("jsonPos"),jsonLen:new ve.Name("jsonLen"),jsonPart:new ve.Name("jsonPart")};Tu.default=Q2});var Ui=h(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.extendErrors=be.resetErrorsCount=be.reportExtraError=be.reportError=be.keyword$DataError=be.keywordError=void 0;var D=C(),Os=j(),Ae=Ke();be.keywordError={message:o(({keyword:e})=>(0,D.str)`must pass "${e}" keyword validation`,"message")};be.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,D.str)`"${e}" keyword must be ${t} ($data)`:(0,D.str)`"${e}" keyword is invalid ($data)`,"message")};function W2(e,t=be.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=wm(e,t,r);n??(a||c)?xm(s,u):Am(i,(0,D._)`[${u}]`)}o(W2,"reportError");be.reportError=W2;function Y2(e,t=be.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=wm(e,t,r);xm(i,c),s||a||Am(n,Ae.default.vErrors)}o(Y2,"reportExtraError");be.reportExtraError=Y2;function J2(e,t){e.assign(Ae.default.errors,t),e.if((0,D._)`${Ae.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,D._)`${Ae.default.vErrors}.length`,t),()=>e.assign(Ae.default.vErrors,null)))}o(J2,"resetErrorsCount");be.resetErrorsCount=J2;function X2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Ae.default.errors,c=>{e.const(a,(0,D._)`${Ae.default.vErrors}[${c}]`),e.if((0,D._)`${a}.instancePath === undefined`,()=>e.assign((0,D._)`${a}.instancePath`,(0,D.strConcat)(Ae.default.instancePath,s.errorPath))),e.assign((0,D._)`${a}.schemaPath`,(0,D.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,D._)`${a}.schema`,r),e.assign((0,D._)`${a}.data`,n))})}o(X2,"extendErrors");be.extendErrors=X2;function xm(e,t){let r=e.const("err",t);e.if((0,D._)`${Ae.default.vErrors} === null`,()=>e.assign(Ae.default.vErrors,(0,D._)`[${r}]`),(0,D._)`${Ae.default.vErrors}.push(${r})`),e.code((0,D._)`${Ae.default.errors}++`)}o(xm,"addError");function Am(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,D._)`new ${e.ValidationError}(${t})`):(r.assign((0,D._)`${n}.errors`,t),r.return(!1))}o(Am,"returnErrors");var Br={keyword:new D.Name("keyword"),schemaPath:new D.Name("schemaPath"),params:new D.Name("params"),propertyName:new D.Name("propertyName"),message:new D.Name("message"),schema:new D.Name("schema"),parentSchema:new D.Name("parentSchema")};function wm(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,D._)`{}`:eO(e,t,r)}o(wm,"errorObjectCode");function eO(e,t,r={}){let{gen:n,it:i}=e,s=[tO(i,r),rO(e,r)];return nO(e,t,s),n.object(...s)}o(eO,"errorObject");function tO({errorPath:e},{instancePath:t}){let r=t?(0,D.str)`${e}${(0,Os.getErrorPath)(t,Os.Type.Str)}`:e;return[Ae.default.instancePath,(0,D.strConcat)(Ae.default.instancePath,r)]}o(tO,"errorInstancePath");function rO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,D.str)`${t}/${e}`;return r&&(i=(0,D.str)`${i}${(0,Os.getErrorPath)(r,Os.Type.Str)}`),[Br.schemaPath,i]}o(rO,"errorSchemaPath");function nO(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([Br.keyword,i],[Br.params,typeof t=="function"?t(e):t||(0,D._)`{}`]),u.messages&&n.push([Br.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Br.schema,a],[Br.parentSchema,(0,D._)`${f}${p}`],[Ae.default.data,s]),l&&n.push([Br.propertyName,l])}o(nO,"extraErrorProps")});var Tm=h(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.boolOrEmptySchema=Nn.topBoolOrEmptySchema=void 0;var iO=Ui(),oO=C(),sO=Ke(),aO={message:"boolean schema is false"};function cO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Im(e,!1):typeof r=="object"&&r.$async===!0?t.return(sO.default.data):(t.assign((0,oO._)`${n}.errors`,null),t.return(!0))}o(cO,"topBoolOrEmptySchema");Nn.topBoolOrEmptySchema=cO;function uO(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Im(e)):r.var(t,!0)}o(uO,"boolOrEmptySchema");Nn.boolOrEmptySchema=uO;function Im(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,iO.reportError)(i,aO,void 0,t)}o(Im,"falseSchemaError")});var Cu=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getRules=kn.isJSONType=void 0;var lO=["string","number","integer","boolean","null","object","array"],pO=new Set(lO);function fO(e){return typeof e=="string"&&pO.has(e)}o(fO,"isJSONType");kn.isJSONType=fO;function dO(){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:{}}}o(dO,"getRules");kn.getRules=dO});var Ru=h(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.shouldUseRule=ir.shouldUseGroup=ir.schemaHasRulesForType=void 0;function mO({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Cm(e,n)}o(mO,"schemaHasRulesForType");ir.schemaHasRulesForType=mO;function Cm(e,t){return t.rules.some(r=>Rm(e,r))}o(Cm,"shouldUseGroup");ir.shouldUseGroup=Cm;function Rm(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))}o(Rm,"shouldUseRule");ir.shouldUseRule=Rm});var Zi=h(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.reportTypeError=_e.checkDataTypes=_e.checkDataType=_e.coerceAndCheckDataType=_e.getJSONTypes=_e.getSchemaTypes=_e.DataType=void 0;var hO=Cu(),gO=Ru(),yO=Ui(),R=C(),Nm=j(),jn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(jn||(_e.DataType=jn={}));function SO(e){let t=km(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}o(SO,"getSchemaTypes");_e.getSchemaTypes=SO;function km(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hO.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(km,"getJSONTypes");_e.getJSONTypes=km;function vO(e,t){let{gen:r,data:n,opts:i}=e,s=bO(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,gO.schemaHasRulesForType)(e,t[0]));if(a){let c=ku(t,n,i.strictNumbers,jn.Wrong);r.if(c,()=>{s.length?_O(e,t,s):ju(e)})}return a}o(vO,"coerceAndCheckDataType");_e.coerceAndCheckDataType=vO;var jm=new Set(["string","number","integer","boolean","null"]);function bO(e,t){return t?e.filter(r=>jm.has(r)||t==="array"&&r==="array"):[]}o(bO,"coerceToTypes");function _O(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,R._)`typeof ${i}`),c=n.let("coerced",(0,R._)`undefined`);s.coerceTypes==="array"&&n.if((0,R._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,R._)`${i}[0]`).assign(a,(0,R._)`typeof ${i}`).if(ku(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,R._)`${c} !== undefined`);for(let l of r)(jm.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),ju(e),n.endIf(),n.if((0,R._)`${c} !== undefined`,()=>{n.assign(i,c),EO(e,c)});function u(l){switch(l){case"string":n.elseIf((0,R._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,R._)`"" + ${i}`).elseIf((0,R._)`${i} === null`).assign(c,(0,R._)`""`);return;case"number":n.elseIf((0,R._)`${a} == "boolean" || ${i} === null
5
+ `:"")+r.message),{originalError:r,props:n,message:s}}o(y2,"normalizeArgs");wn.normalizeArgs=y2});var kc=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.Ono=void 0;var ms=cm(),lm=um(),S2=ps(),v2=Nc;hs.Ono=v2;function Nc(e,t){t=lm.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=lm.normalizeArgs(n,t),c=new e(a);return ms.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Nc,"Ono");Nc.toJSON=o(function(t){return S2.toJSON.call(t)},"toJSON");Nc.extend=o(function(t,r,n){return n||r instanceof Error?ms.extendError(t,r,n):r?ms.extendError(t,void 0,r):ms.extendError(t)},"extend")});var pm=h(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ono=void 0;var Mr=kc(),b2=St;gs.ono=b2;St.error=new Mr.Ono(Error);St.eval=new Mr.Ono(EvalError);St.range=new Mr.Ono(RangeError);St.reference=new Mr.Ono(ReferenceError);St.syntax=new Mr.Ono(SyntaxError);St.type=new Mr.Ono(TypeError);St.uri=new Mr.Ono(URIError);var _2=St;function St(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(_2))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 St.error.apply(void 0,e)}o(St,"ono")});var dm=h(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var NM=require("util")});var ot=h((it,In)=>{"use strict";var E2=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),P2=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&E2(t,e,r)};Object.defineProperty(it,"__esModule",{value:!0});it.ono=void 0;var mm=pm();Object.defineProperty(it,"ono",{enumerable:!0,get:o(function(){return mm.ono},"get")});var O2=kc();Object.defineProperty(it,"Ono",{enumerable:!0,get:o(function(){return O2.Ono},"get")});P2(dm(),it);it.default=mm.ono;typeof In=="object"&&typeof In.exports=="object"&&(In.exports=Object.assign(In.exports.default,In.exports))});var Li=h(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.regexpCode=F.getEsmExportName=F.getProperty=F.safeStringify=F.stringify=F.strConcat=F.addCodeArg=F.str=F._=F.nil=F._Code=F.Name=F.IDENTIFIER=F._CodeOrName=void 0;var Mc=class Mc{};o(Mc,"_CodeOrName");var Mi=Mc;F._CodeOrName=Mi;F.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Dc=class Dc extends Mi{constructor(t){if(super(),!F.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}}};o(Dc,"Name");var Dr=Dc;F.Name=Dr;var Lc=class Lc extends Mi{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 Dr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Lc,"_Code");var ze=Lc;F._Code=ze;F.nil=new ze("");function hm(e,...t){let r=[e[0]],n=0;for(;n<t.length;)qc(r,t[n]),r.push(e[++n]);return new ze(r)}o(hm,"_");F._=hm;var jc=new ze("+");function gm(e,...t){let r=[Di(e[0])],n=0;for(;n<t.length;)r.push(jc),qc(r,t[n]),r.push(jc,Di(e[++n]));return $2(r),new ze(r)}o(gm,"str");F.str=gm;function qc(e,t){t instanceof ze?e.push(...t._items):t instanceof Dr?e.push(t):e.push(w2(t))}o(qc,"addCodeArg");F.addCodeArg=qc;function $2(e){let t=1;for(;t<e.length-1;){if(e[t]===jc){let r=x2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o($2,"optimize");function x2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Dr||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 Dr))return`"${e}${t.slice(1)}`}o(x2,"mergeExprItems");function A2(e,t){return t.emptyStr()?e:e.emptyStr()?t:gm`${e}${t}`}o(A2,"strConcat");F.strConcat=A2;function w2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Di(Array.isArray(e)?e.join(","):e)}o(w2,"interpolate");function I2(e){return new ze(Di(e))}o(I2,"stringify");F.stringify=I2;function Di(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Di,"safeStringify");F.safeStringify=Di;function T2(e){return typeof e=="string"&&F.IDENTIFIER.test(e)?new ze(`.${e}`):hm`[${e}]`}o(T2,"getProperty");F.getProperty=T2;function C2(e){if(typeof e=="string"&&F.IDENTIFIER.test(e))return new ze(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(C2,"getEsmExportName");F.getEsmExportName=C2;function R2(e){return new ze(e.toString())}o(R2,"regexpCode");F.regexpCode=R2});var Zc=h(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.ValueScope=ke.ValueScopeName=ke.Scope=ke.varKinds=ke.UsedValueState=void 0;var Ne=Li(),Vc=class Vc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Vc,"ValueError");var Fc=Vc,ys;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ys||(ke.UsedValueState=ys={}));ke.varKinds={const:new Ne.Name("const"),let:new Ne.Name("let"),var:new Ne.Name("var")};var Bc=class Bc{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ne.Name?t:this.name(t)}name(t){return new Ne.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}}};o(Bc,"Scope");var Ss=Bc;ke.Scope=Ss;var Gc=class Gc extends Ne.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ne._)`.${new Ne.Name(r)}[${n}]`}};o(Gc,"ValueScopeName");var vs=Gc;ke.ValueScopeName=vs;var N2=(0,Ne._)`\n`,Uc=class Uc extends Ss{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?N2:Ne.nil}}get(){return this._scope}name(t){return new vs(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:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,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,Ne._)`${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 s=Ne.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,ys.Started);let f=r(l);if(f){let p=this.opts.es5?ke.varKinds.var:ke.varKinds.const;s=(0,Ne._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ne._)`${s}${f}${this.opts._n}`;else throw new Fc(l);u.set(l,ys.Completed)})}return s}};o(Uc,"ValueScope");var Hc=Uc;ke.ValueScope=Hc});var C=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.or=N.and=N.not=N.CodeGen=N.operators=N.varKinds=N.ValueScopeName=N.ValueScope=N.Scope=N.Name=N.regexpCode=N.stringify=N.getProperty=N.nil=N.strConcat=N.str=N._=void 0;var M=Li(),st=Zc(),nr=Li();Object.defineProperty(N,"_",{enumerable:!0,get:o(function(){return nr._},"get")});Object.defineProperty(N,"str",{enumerable:!0,get:o(function(){return nr.str},"get")});Object.defineProperty(N,"strConcat",{enumerable:!0,get:o(function(){return nr.strConcat},"get")});Object.defineProperty(N,"nil",{enumerable:!0,get:o(function(){return nr.nil},"get")});Object.defineProperty(N,"getProperty",{enumerable:!0,get:o(function(){return nr.getProperty},"get")});Object.defineProperty(N,"stringify",{enumerable:!0,get:o(function(){return nr.stringify},"get")});Object.defineProperty(N,"regexpCode",{enumerable:!0,get:o(function(){return nr.regexpCode},"get")});Object.defineProperty(N,"Name",{enumerable:!0,get:o(function(){return nr.Name},"get")});var Ps=Zc();Object.defineProperty(N,"Scope",{enumerable:!0,get:o(function(){return Ps.Scope},"get")});Object.defineProperty(N,"ValueScope",{enumerable:!0,get:o(function(){return Ps.ValueScope},"get")});Object.defineProperty(N,"ValueScopeName",{enumerable:!0,get:o(function(){return Ps.ValueScopeName},"get")});Object.defineProperty(N,"varKinds",{enumerable:!0,get:o(function(){return Ps.varKinds},"get")});N.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var ou=class ou{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(ou,"Node");var Lt=ou,su=class su extends Lt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?st.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=Rn(this.rhs,t,r)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}};o(su,"Def");var zc=su,au=class au extends Lt{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 M.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Rn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof M.Name?{}:{...this.lhs.names};return Es(t,this.rhs)}};o(au,"Assign");var bs=au,cu=class cu extends bs{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(cu,"AssignOp");var Kc=cu,uu=class uu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(uu,"Label");var Qc=uu,lu=class lu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(lu,"Break");var Wc=lu,pu=class pu extends Lt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(pu,"Throw");var Yc=pu,fu=class fu extends Lt{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=Rn(this.code,t,r),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}};o(fu,"AnyCode");var Jc=fu,du=class du extends Lt{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 s=n[i];s.optimizeNames(t,r)||(k2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Hr(t,r.names),{})}};o(du,"ParentNode");var Fi=du,mu=class mu extends Fi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(mu,"BlockNode");var Ft=mu,hu=class hu extends Fi{};o(hu,"Root");var Xc=hu,gu=class gu extends Ft{};o(gu,"Else");var Cn=gu;Cn.kind="else";var Tn=class Tn extends Ft{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 Tn?r:r.nodes:this.nodes.length?this:new Tn(ym(t),r instanceof Tn?[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=Rn(this.condition,t,r),this}get names(){let t=super.names;return Es(t,this.condition),this.else&&Hr(t,this.else.names),t}};o(Tn,"If");var Lr=Tn;Lr.kind="if";var yu=class yu extends Ft{};o(yu,"For");var Fr=yu;Fr.kind="for";var Su=class Su extends Fr{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=Rn(this.iteration,t,r),this}get names(){return Hr(super.names,this.iteration.names)}};o(Su,"ForLoop");var eu=Su,vu=class vu extends Fr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?st.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Es(super.names,this.from);return Es(t,this.to)}};o(vu,"ForRange");var tu=vu,bu=class bu extends Fr{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=Rn(this.iterable,t,r),this}get names(){return Hr(super.names,this.iterable.names)}};o(bu,"ForIter");var _s=bu,_u=class _u extends Ft{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)}};o(_u,"Func");var Hi=_u;Hi.kind="func";var Eu=class Eu extends Fi{render(t){return"return "+super.render(t)}};o(Eu,"Return");var Vi=Eu;Vi.kind="return";var Pu=class Pu extends Ft{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&&Hr(t,this.catch.names),this.finally&&Hr(t,this.finally.names),t}};o(Pu,"Try");var ru=Pu,Ou=class Ou extends Ft{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Ou,"Catch");var Bi=Ou;Bi.kind="catch";var $u=class $u extends Ft{render(t){return"finally"+super.render(t)}};o($u,"Finally");var Gi=$u;Gi.kind="finally";var xu=class xu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new st.Scope({parent:t}),this._nodes=[new Xc]}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 s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new zc(t,s,n)),s}const(t,r,n){return this._def(st.varKinds.const,t,r,n)}let(t,r,n){return this._def(st.varKinds.let,t,r,n)}var(t,r,n){return this._def(st.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new bs(t,r,n))}add(t,r){return this._leafNode(new Kc(t,N.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==M.nil&&this._leafNode(new Jc(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,M.addCodeArg)(r,i));return r.push("}"),new M._Code(r)}if(t,r,n){if(this._blockNode(new Lr(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 Lr(t))}else(){return this._elseNode(new Cn)}endIf(){return this._endBlockNode(Lr,Cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new eu(t),r)}forRange(t,r,n,i,s=this.opts.es5?st.varKinds.var:st.varKinds.let){let a=this._scope.toName(t);return this._for(new tu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=st.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof M.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,M._)`${a}.length`,c=>{this.var(s,(0,M._)`${a}[${c}]`),n(s)})}return this._for(new _s("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?st.varKinds.var:st.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,M._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new _s("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Fr)}label(t){return this._leafNode(new Qc(t))}break(t){return this._leafNode(new Wc(t))}return(t){let r=new Vi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Vi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ru;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Bi(s),r(s)}return n&&(this._currNode=i.finally=new Gi,this.code(n)),this._endBlockNode(Bi,Gi)}throw(t){return this._leafNode(new Yc(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=M.nil,n,i){return this._blockNode(new Hi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Hi)}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 Lr))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}};o(xu,"CodeGen");var nu=xu;N.CodeGen=nu;function Hr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Hr,"addNames");function Es(e,t){return t instanceof M._CodeOrName?Hr(e,t.names):e}o(Es,"addExprNames");function Rn(e,t,r){if(e instanceof M.Name)return n(e);if(!i(e))return e;return new M._Code(e._items.reduce((s,a)=>(a instanceof M.Name&&(a=n(a)),a instanceof M._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof M._Code&&s._items.some(a=>a instanceof M.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(Rn,"optimizeExpr");function k2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(k2,"subtractNames");function ym(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,M._)`!${iu(e)}`}o(ym,"not");N.not=ym;var j2=Sm(N.operators.AND);function q2(...e){return e.reduce(j2)}o(q2,"and");N.and=q2;var M2=Sm(N.operators.OR);function D2(...e){return e.reduce(M2)}o(D2,"or");N.or=D2;function Sm(e){return(t,r)=>t===M.nil?r:r===M.nil?t:(0,M._)`${iu(t)} ${e} ${iu(r)}`}o(Sm,"mappend");function iu(e){return e instanceof M.Name?e:(0,M._)`(${e})`}o(iu,"par")});var q=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 U=C(),L2=Li();function F2(e){let t={};for(let r of e)t[r]=!0;return t}o(F2,"toHash");k.toHash=F2;function H2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(_m(e,t),!Em(t,e.self.RULES.all))}o(H2,"alwaysValidSchema");k.alwaysValidSchema=H2;function _m(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||$m(e,`unknown keyword: "${s}"`)}o(_m,"checkUnknownRules");k.checkUnknownRules=_m;function Em(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Em,"schemaHasRules");k.schemaHasRules=Em;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}o(V2,"schemaHasRulesButRef");k.schemaHasRulesButRef=V2;function B2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,U._)`${r}`}return(0,U._)`${e}${t}${(0,U.getProperty)(n)}`}o(B2,"schemaRefOrVal");k.schemaRefOrVal=B2;function G2(e){return Pm(decodeURIComponent(e))}o(G2,"unescapeFragment");k.unescapeFragment=G2;function U2(e){return encodeURIComponent(wu(e))}o(U2,"escapeFragment");k.escapeFragment=U2;function wu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(wu,"escapeJsonPointer");k.escapeJsonPointer=wu;function Pm(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Pm,"unescapeJsonPointer");k.unescapeJsonPointer=Pm;function Z2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Z2,"eachItem");k.eachItem=Z2;function vm({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof U.Name?(s instanceof U.Name?e(i,s,a):t(i,s,a),a):s instanceof U.Name?(t(i,a,s),s):r(s,a);return c===U.Name&&!(u instanceof U.Name)?n(i,u):u}}o(vm,"makeMergeEvaluated");k.mergeEvaluated={props:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,U._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,U._)`${r} || {}`).code((0,U._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,U._)`${r} || {}`),Iu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Om}),items:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,U._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,U._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Om(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,U._)`{}`);return t!==void 0&&Iu(e,r,t),r}o(Om,"evaluatedPropsToName");k.evaluatedPropsToName=Om;function Iu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,U._)`${t}${(0,U.getProperty)(n)}`,!0))}o(Iu,"setEvaluated");k.setEvaluated=Iu;var bm={};function z2(e,t){return e.scopeValue("func",{ref:t,code:bm[t.code]||(bm[t.code]=new L2._Code(t.code))})}o(z2,"useFunc");k.useFunc=z2;var Au;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Au||(k.Type=Au={}));function K2(e,t,r){if(e instanceof U.Name){let n=t===Au.Num;return r?n?(0,U._)`"[" + ${e} + "]"`:(0,U._)`"['" + ${e} + "']"`:n?(0,U._)`"/" + ${e}`:(0,U._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,U.getProperty)(e).toString():"/"+wu(e)}o(K2,"getErrorPath");k.getErrorPath=K2;function $m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o($m,"checkStrictMode");k.checkStrictMode=$m});var Ke=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var ve=C(),Q2={data:new ve.Name("data"),valCxt:new ve.Name("valCxt"),instancePath:new ve.Name("instancePath"),parentData:new ve.Name("parentData"),parentDataProperty:new ve.Name("parentDataProperty"),rootData:new ve.Name("rootData"),dynamicAnchors:new ve.Name("dynamicAnchors"),vErrors:new ve.Name("vErrors"),errors:new ve.Name("errors"),this:new ve.Name("this"),self:new ve.Name("self"),scope:new ve.Name("scope"),json:new ve.Name("json"),jsonPos:new ve.Name("jsonPos"),jsonLen:new ve.Name("jsonLen"),jsonPart:new ve.Name("jsonPart")};Tu.default=Q2});var Ui=h(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.extendErrors=be.resetErrorsCount=be.reportExtraError=be.reportError=be.keyword$DataError=be.keywordError=void 0;var D=C(),Os=q(),Ae=Ke();be.keywordError={message:o(({keyword:e})=>(0,D.str)`must pass "${e}" keyword validation`,"message")};be.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,D.str)`"${e}" keyword must be ${t} ($data)`:(0,D.str)`"${e}" keyword is invalid ($data)`,"message")};function W2(e,t=be.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=wm(e,t,r);n??(a||c)?xm(s,u):Am(i,(0,D._)`[${u}]`)}o(W2,"reportError");be.reportError=W2;function Y2(e,t=be.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=wm(e,t,r);xm(i,c),s||a||Am(n,Ae.default.vErrors)}o(Y2,"reportExtraError");be.reportExtraError=Y2;function J2(e,t){e.assign(Ae.default.errors,t),e.if((0,D._)`${Ae.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,D._)`${Ae.default.vErrors}.length`,t),()=>e.assign(Ae.default.vErrors,null)))}o(J2,"resetErrorsCount");be.resetErrorsCount=J2;function X2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Ae.default.errors,c=>{e.const(a,(0,D._)`${Ae.default.vErrors}[${c}]`),e.if((0,D._)`${a}.instancePath === undefined`,()=>e.assign((0,D._)`${a}.instancePath`,(0,D.strConcat)(Ae.default.instancePath,s.errorPath))),e.assign((0,D._)`${a}.schemaPath`,(0,D.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,D._)`${a}.schema`,r),e.assign((0,D._)`${a}.data`,n))})}o(X2,"extendErrors");be.extendErrors=X2;function xm(e,t){let r=e.const("err",t);e.if((0,D._)`${Ae.default.vErrors} === null`,()=>e.assign(Ae.default.vErrors,(0,D._)`[${r}]`),(0,D._)`${Ae.default.vErrors}.push(${r})`),e.code((0,D._)`${Ae.default.errors}++`)}o(xm,"addError");function Am(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,D._)`new ${e.ValidationError}(${t})`):(r.assign((0,D._)`${n}.errors`,t),r.return(!1))}o(Am,"returnErrors");var Vr={keyword:new D.Name("keyword"),schemaPath:new D.Name("schemaPath"),params:new D.Name("params"),propertyName:new D.Name("propertyName"),message:new D.Name("message"),schema:new D.Name("schema"),parentSchema:new D.Name("parentSchema")};function wm(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,D._)`{}`:eO(e,t,r)}o(wm,"errorObjectCode");function eO(e,t,r={}){let{gen:n,it:i}=e,s=[tO(i,r),rO(e,r)];return nO(e,t,s),n.object(...s)}o(eO,"errorObject");function tO({errorPath:e},{instancePath:t}){let r=t?(0,D.str)`${e}${(0,Os.getErrorPath)(t,Os.Type.Str)}`:e;return[Ae.default.instancePath,(0,D.strConcat)(Ae.default.instancePath,r)]}o(tO,"errorInstancePath");function rO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,D.str)`${t}/${e}`;return r&&(i=(0,D.str)`${i}${(0,Os.getErrorPath)(r,Os.Type.Str)}`),[Vr.schemaPath,i]}o(rO,"errorSchemaPath");function nO(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([Vr.keyword,i],[Vr.params,typeof t=="function"?t(e):t||(0,D._)`{}`]),u.messages&&n.push([Vr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Vr.schema,a],[Vr.parentSchema,(0,D._)`${f}${p}`],[Ae.default.data,s]),l&&n.push([Vr.propertyName,l])}o(nO,"extraErrorProps")});var Tm=h(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.boolOrEmptySchema=Nn.topBoolOrEmptySchema=void 0;var iO=Ui(),oO=C(),sO=Ke(),aO={message:"boolean schema is false"};function cO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Im(e,!1):typeof r=="object"&&r.$async===!0?t.return(sO.default.data):(t.assign((0,oO._)`${n}.errors`,null),t.return(!0))}o(cO,"topBoolOrEmptySchema");Nn.topBoolOrEmptySchema=cO;function uO(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Im(e)):r.var(t,!0)}o(uO,"boolOrEmptySchema");Nn.boolOrEmptySchema=uO;function Im(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,iO.reportError)(i,aO,void 0,t)}o(Im,"falseSchemaError")});var Cu=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getRules=kn.isJSONType=void 0;var lO=["string","number","integer","boolean","null","object","array"],pO=new Set(lO);function fO(e){return typeof e=="string"&&pO.has(e)}o(fO,"isJSONType");kn.isJSONType=fO;function dO(){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:{}}}o(dO,"getRules");kn.getRules=dO});var Ru=h(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.shouldUseRule=ir.shouldUseGroup=ir.schemaHasRulesForType=void 0;function mO({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Cm(e,n)}o(mO,"schemaHasRulesForType");ir.schemaHasRulesForType=mO;function Cm(e,t){return t.rules.some(r=>Rm(e,r))}o(Cm,"shouldUseGroup");ir.shouldUseGroup=Cm;function Rm(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))}o(Rm,"shouldUseRule");ir.shouldUseRule=Rm});var Zi=h(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.reportTypeError=_e.checkDataTypes=_e.checkDataType=_e.coerceAndCheckDataType=_e.getJSONTypes=_e.getSchemaTypes=_e.DataType=void 0;var hO=Cu(),gO=Ru(),yO=Ui(),R=C(),Nm=q(),jn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(jn||(_e.DataType=jn={}));function SO(e){let t=km(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}o(SO,"getSchemaTypes");_e.getSchemaTypes=SO;function km(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hO.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(km,"getJSONTypes");_e.getJSONTypes=km;function vO(e,t){let{gen:r,data:n,opts:i}=e,s=bO(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,gO.schemaHasRulesForType)(e,t[0]));if(a){let c=ku(t,n,i.strictNumbers,jn.Wrong);r.if(c,()=>{s.length?_O(e,t,s):ju(e)})}return a}o(vO,"coerceAndCheckDataType");_e.coerceAndCheckDataType=vO;var jm=new Set(["string","number","integer","boolean","null"]);function bO(e,t){return t?e.filter(r=>jm.has(r)||t==="array"&&r==="array"):[]}o(bO,"coerceToTypes");function _O(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,R._)`typeof ${i}`),c=n.let("coerced",(0,R._)`undefined`);s.coerceTypes==="array"&&n.if((0,R._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,R._)`${i}[0]`).assign(a,(0,R._)`typeof ${i}`).if(ku(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,R._)`${c} !== undefined`);for(let l of r)(jm.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),ju(e),n.endIf(),n.if((0,R._)`${c} !== undefined`,()=>{n.assign(i,c),EO(e,c)});function u(l){switch(l){case"string":n.elseIf((0,R._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,R._)`"" + ${i}`).elseIf((0,R._)`${i} === null`).assign(c,(0,R._)`""`);return;case"number":n.elseIf((0,R._)`${a} == "boolean" || ${i} === null
7
7
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,R._)`+${i}`);return;case"integer":n.elseIf((0,R._)`${a} === "boolean" || ${i} === null
8
8
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,R._)`+${i}`);return;case"boolean":n.elseIf((0,R._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,R._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,R._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,R._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,R._)`[${i}]`)}}o(u,"coerceSpecificType")}o(_O,"coerceData");function EO({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,R._)`${t} !== undefined`,()=>e.assign((0,R._)`${t}[${r}]`,n))}o(EO,"assignParentData");function Nu(e,t,r,n=jn.Correct){let i=n===jn.Correct?R.operators.EQ:R.operators.NEQ,s;switch(e){case"null":return(0,R._)`${t} ${i} null`;case"array":s=(0,R._)`Array.isArray(${t})`;break;case"object":s=(0,R._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,R._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,R._)`typeof ${t} ${i} ${e}`}return n===jn.Correct?s:(0,R.not)(s);function a(c=R.nil){return(0,R.and)((0,R._)`typeof ${t} == "number"`,c,r?(0,R._)`isFinite(${t})`:R.nil)}}o(Nu,"checkDataType");_e.checkDataType=Nu;function ku(e,t,r,n){if(e.length===1)return Nu(e[0],t,r,n);let i,s=(0,Nm.toHash)(e);if(s.array&&s.object){let a=(0,R._)`typeof ${t} != "object"`;i=s.null?a:(0,R._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=R.nil;s.number&&delete s.integer;for(let a in s)i=(0,R.and)(i,Nu(a,t,r,n));return i}o(ku,"checkDataTypes");_e.checkDataTypes=ku;var PO={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,R._)`{type: ${e}}`:(0,R._)`{type: ${t}}`,"params")};function ju(e){let t=OO(e);(0,yO.reportError)(t,PO)}o(ju,"reportTypeError");_e.reportTypeError=ju;function OO(e){let{gen:t,data:r,schema:n}=e,i=(0,Nm.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(OO,"getTypeErrorContext")});var Mm=h($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.assignDefaults=void 0;var qn=C(),$O=j();function xO(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)qm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>qm(e,s,i.default))}o(xO,"assignDefaults");$s.assignDefaults=xO;function qm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,qn._)`${s}${(0,qn.getProperty)(t)}`;if(i){(0,$O.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,qn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,qn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,qn._)`${c} = ${(0,qn.stringify)(r)}`)}o(qm,"assignDefault")});var Qe=h(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.validateUnion=G.validateArray=G.usePattern=G.callValidateCode=G.schemaProperties=G.allSchemaProperties=G.noPropertyInData=G.propertyInData=G.isOwnProperty=G.hasPropFunc=G.reportMissingProp=G.checkMissingProp=G.checkReportMissingProp=void 0;var K=C(),qu=j(),or=Ke(),AO=j();function wO(e,t){let{gen:r,data:n,it:i}=e;r.if(Du(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,K._)`${t}`},!0),e.error()})}o(wO,"checkReportMissingProp");G.checkReportMissingProp=wO;function IO({gen:e,data:t,it:{opts:r}},n,i){return(0,K.or)(...n.map(s=>(0,K.and)(Du(e,t,s,r.ownProperties),(0,K._)`${i} = ${s}`)))}o(IO,"checkMissingProp");G.checkMissingProp=IO;function TO(e,t){e.setParams({missingProperty:t},!0),e.error()}o(TO,"reportMissingProp");G.reportMissingProp=TO;function Dm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,K._)`Object.prototype.hasOwnProperty`})}o(Dm,"hasPropFunc");G.hasPropFunc=Dm;function Mu(e,t,r){return(0,K._)`${Dm(e)}.call(${t}, ${r})`}o(Mu,"isOwnProperty");G.isOwnProperty=Mu;function CO(e,t,r,n){let i=(0,K._)`${t}${(0,K.getProperty)(r)} !== undefined`;return n?(0,K._)`${i} && ${Mu(e,t,r)}`:i}o(CO,"propertyInData");G.propertyInData=CO;function Du(e,t,r,n){let i=(0,K._)`${t}${(0,K.getProperty)(r)} === undefined`;return n?(0,K.or)(i,(0,K.not)(Mu(e,t,r))):i}o(Du,"noPropertyInData");G.noPropertyInData=Du;function Lm(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Lm,"allSchemaProperties");G.allSchemaProperties=Lm;function RO(e,t){return Lm(t).filter(r=>!(0,qu.alwaysValidSchema)(e,t[r]))}o(RO,"schemaProperties");G.schemaProperties=RO;function NO({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,K._)`${e}, ${t}, ${n}${i}`:t,p=[[or.default.instancePath,(0,K.strConcat)(or.default.instancePath,s)],[or.default.parentData,a.parentData],[or.default.parentDataProperty,a.parentDataProperty],[or.default.rootData,or.default.rootData]];a.opts.dynamicRef&&p.push([or.default.dynamicAnchors,or.default.dynamicAnchors]);let d=(0,K._)`${f}, ${r.object(...p)}`;return u!==K.nil?(0,K._)`${c}.call(${u}, ${d})`:(0,K._)`${c}(${d})`}o(NO,"callValidateCode");G.callValidateCode=NO;var kO=(0,K._)`new RegExp`;function jO({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,K._)`${i.code==="new RegExp"?kO:(0,AO.useFunc)(e,i)}(${r}, ${n})`})}o(jO,"usePattern");G.usePattern=jO;function qO(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,K._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:qu.Type.Num},s),t.if((0,K.not)(s),c)})}o(a,"validateItems")}o(qO,"validateArray");G.validateArray=qO;function MO(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,qu.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,K._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,K.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(MO,"validateUnion");G.validateUnion=MO});var Vm=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;var we=C(),Gr=Ke(),DO=Qe(),LO=Ui();function FO(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Hm(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:we.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(FO,"macroKeywordCode");vt.macroKeywordCode=FO;function HO(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;BO(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Hm(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&&Fm(e),S(()=>e.error());else{let v=t.async?m():g();t.modifying&&Fm(e),S(()=>VO(e,v))}}o(d,"validateKeyword");function m(){let v=n.let("ruleErrs",null);return n.try(()=>y((0,we._)`await `),b=>n.assign(p,!1).if((0,we._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,we._)`${b}.errors`),()=>n.throw(b))),v}o(m,"validateAsync");function g(){let v=(0,we._)`${f}.errors`;return n.assign(v,null),y(we.nil),v}o(g,"validateSync");function y(v=t.async?(0,we._)`await `:we.nil){let b=u.opts.passContext?Gr.default.this:Gr.default.self,E=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,we._)`${v}${(0,DO.callValidateCode)(e,f,b,E)}`,t.modifying)}o(y,"assignValid");function S(v){var b;n.if((0,we.not)((b=t.valid)!==null&&b!==void 0?b:p),v)}o(S,"reportErrs")}o(HO,"funcKeywordCode");vt.funcKeywordCode=HO;function Fm(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,we._)`${n.parentData}[${n.parentDataProperty}]`))}o(Fm,"modifyData");function VO(e,t){let{gen:r}=e;r.if((0,we._)`Array.isArray(${t})`,()=>{r.assign(Gr.default.vErrors,(0,we._)`${Gr.default.vErrors} === null ? ${t} : ${Gr.default.vErrors}.concat(${t})`).assign(Gr.default.errors,(0,we._)`${Gr.default.vErrors}.length`),(0,LO.extendErrors)(e)},()=>e.error())}o(VO,"addErrs");function BO({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(BO,"checkAsyncKeyword");function Hm(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,we.stringify)(r)})}o(Hm,"useKeyword");function GO(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")}o(GO,"validSchemaType");vt.validSchemaType=GO;function UO({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)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 ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(UO,"validateKeywordUsage");vt.validateKeywordUsage=UO});var Gm=h(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendSubschemaMode=sr.extendSubschemaData=sr.getSubschema=void 0;var bt=C(),Bm=j();function ZO(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,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,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}${(0,bt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Bm.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(ZO,"getSubschema");sr.getSubschema=ZO;function zO(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,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,bt._)`${t.data}${(0,bt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,bt.str)`${l}${(0,Bm.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,bt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof bt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);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]}o(u,"dataContextProps")}o(zO,"extendSubschemaData");sr.extendSubschemaData=zO;function KO(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(KO,"extendSubschemaMode");sr.extendSubschemaMode=KO});var Lu=h((uD,Um)=>{"use strict";Um.exports=o(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,s;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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var zm=h((pD,Zm)=>{"use strict";var ar=Zm.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(){};xs(t,n,i,e,"",e)};ar.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ar.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ar.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ar.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 xs(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in ar.arrayKeywords)for(var d=0;d<p.length;d++)xs(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in ar.propsKeywords){if(p&&typeof p=="object")for(var m in p)xs(e,t,r,p[m],i+"/"+f+"/"+QO(m),s,i,f,n,m)}else(f in ar.keywords||e.allKeys&&!(f in ar.skipKeywords))&&xs(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(xs,"_traverse");function QO(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(QO,"escapeJsonPtr")});var zi=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;var WO=j(),YO=Lu(),JO=zm(),XO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function e$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Fu(e):t?Km(e)<=t:!1}o(e$,"inlineRef");je.inlineRef=e$;var t$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fu(e){for(let t in e){if(t$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Fu)||typeof r=="object"&&Fu(r))return!0}return!1}o(Fu,"hasRef");function Km(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!XO.has(r)&&(typeof e[r]=="object"&&(0,WO.eachItem)(e[r],n=>t+=Km(n)),t===1/0))return 1/0}return t}o(Km,"countKeys");function Qm(e,t="",r){r!==!1&&(t=Mn(t));let n=e.parse(t);return Wm(e,n)}o(Qm,"getFullPath");je.getFullPath=Qm;function Wm(e,t){return e.serialize(t).split("#")[0]+"#"}o(Wm,"_getFullPath");je._getFullPath=Wm;var r$=/#\/?$/;function Mn(e){return e?e.replace(r$,""):""}o(Mn,"normalizeId");je.normalizeId=Mn;function n$(e,t,r){return r=Mn(r),e.resolve(t,r)}o(n$,"resolveUrl");je.resolveUrl=n$;var i$=/^[a-z_][-a-z0-9._]*$/i;function o$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Mn(e[r]||t),s={"":i},a=Qm(n,i,!1),c={},u=new Set;return JO(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,S=s[g];typeof p[r]=="string"&&(S=v.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=S;function v(E){let P=this.opts.uriResolver.resolve;if(E=Mn(S?P(S,E):E),u.has(E))throw f(E);u.add(E);let _=this.refs[E];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,E):E!==Mn(y)&&(E[0]==="#"?(l(p,c[E],E),c[E]=p):this.refs[E]=y),E}o(v,"addRef");function b(E){if(typeof E=="string"){if(!i$.test(E))throw new Error(`invalid anchor "${E}"`);v.call(this,`#${E}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!YO(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(o$,"getSchemaRefs");je.getSchemaRefs=o$});var Wi=h(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.getData=cr.KeywordCxt=cr.validateFunctionCode=void 0;var th=Tm(),Ym=Zi(),Vu=Ru(),As=Zi(),s$=Mm(),Qi=Vm(),Hu=Gm(),$=C(),T=Ke(),a$=zi(),Ht=j(),Ki=Ui();function c$(e){if(ih(e)&&(oh(e),nh(e))){p$(e);return}rh(e,()=>(0,th.topBoolOrEmptySchema)(e))}o(c$,"validateFunctionCode");cr.validateFunctionCode=c$;function rh({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,$._)`${T.default.data}, ${T.default.valCxt}`,n.$async,()=>{e.code((0,$._)`"use strict"; ${Jm(r,i)}`),l$(e,i),e.code(s)}):e.func(t,(0,$._)`${T.default.data}, ${u$(i)}`,n.$async,()=>e.code(Jm(r,i)).code(s))}o(rh,"validateFunction");function u$(e){return(0,$._)`{${T.default.instancePath}="", ${T.default.parentData}, ${T.default.parentDataProperty}, ${T.default.rootData}=${T.default.data}${e.dynamicRef?(0,$._)`, ${T.default.dynamicAnchors}={}`:$.nil}}={}`}o(u$,"destructureValCxt");function l$(e,t){e.if(T.default.valCxt,()=>{e.var(T.default.instancePath,(0,$._)`${T.default.valCxt}.${T.default.instancePath}`),e.var(T.default.parentData,(0,$._)`${T.default.valCxt}.${T.default.parentData}`),e.var(T.default.parentDataProperty,(0,$._)`${T.default.valCxt}.${T.default.parentDataProperty}`),e.var(T.default.rootData,(0,$._)`${T.default.valCxt}.${T.default.rootData}`),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`${T.default.valCxt}.${T.default.dynamicAnchors}`)},()=>{e.var(T.default.instancePath,(0,$._)`""`),e.var(T.default.parentData,(0,$._)`undefined`),e.var(T.default.parentDataProperty,(0,$._)`undefined`),e.var(T.default.rootData,T.default.data),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`{}`)})}o(l$,"destructureValCxtES5");function p$(e){let{schema:t,opts:r,gen:n}=e;rh(e,()=>{r.$comment&&t.$comment&&ah(e),g$(e),n.let(T.default.vErrors,null),n.let(T.default.errors,0),r.unevaluated&&f$(e),sh(e),v$(e)})}o(p$,"topSchemaObjCode");function f$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,$._)`${r}.evaluated`),t.if((0,$._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,$._)`${e.evaluated}.props`,(0,$._)`undefined`)),t.if((0,$._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,$._)`${e.evaluated}.items`,(0,$._)`undefined`))}o(f$,"resetEvaluated");function Jm(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,$._)`/*# sourceURL=${r} */`:$.nil}o(Jm,"funcSourceUrl");function d$(e,t){if(ih(e)&&(oh(e),nh(e))){m$(e,t);return}(0,th.boolOrEmptySchema)(e,t)}o(d$,"subschemaCode");function nh({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(nh,"schemaCxtHasRules");function ih(e){return typeof e.schema!="boolean"}o(ih,"isSchemaObj");function m$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ah(e),y$(e),S$(e);let s=n.const("_errs",T.default.errors);sh(e,s),n.var(t,(0,$._)`${s} === ${T.default.errors}`)}o(m$,"subSchemaObjCode");function oh(e){(0,Ht.checkUnknownRules)(e),h$(e)}o(oh,"checkKeywords");function sh(e,t){if(e.opts.jtd)return Xm(e,[],!1,t);let r=(0,Ym.getSchemaTypes)(e.schema),n=(0,Ym.coerceAndCheckDataType)(e,r);Xm(e,r,!n,t)}o(sh,"typeAndKeywords");function h$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ht.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(h$,"checkRefsAndKeywords");function g$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ht.checkStrictMode)(e,"default is ignored in the schema root")}o(g$,"checkNoDefault");function y$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,a$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(y$,"updateContext");function S$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(S$,"checkAsyncSchema");function ah({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,$._)`${T.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,$.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,$._)`${T.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(ah,"commentKeyword");function v$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,$._)`${T.default.errors} === 0`,()=>t.return(T.default.data),()=>t.throw((0,$._)`new ${i}(${T.default.vErrors})`)):(t.assign((0,$._)`${n}.errors`,T.default.vErrors),s.unevaluated&&b$(e),t.return((0,$._)`${T.default.errors} === 0`))}o(v$,"returnResults");function b$({gen:e,evaluated:t,props:r,items:n}){r instanceof $.Name&&e.assign((0,$._)`${t}.props`,r),n instanceof $.Name&&e.assign((0,$._)`${t}.items`,n)}o(b$,"assignEvaluated");function Xm(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ht.schemaHasRulesButRef)(s,f))){i.block(()=>uh(e,"$ref",f.all.$ref.definition));return}u.jtd||_$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,Vu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,As.checkDataType)(d.type,a,u.strictNumbers)),eh(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,As.reportTypeError)(e)),i.endIf()):eh(e,d),c||i.if((0,$._)`${T.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Xm,"schemaKeywords");function eh(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,s$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Vu.shouldUseRule)(n,s)&&uh(e,s.keyword,s.definition,t.type)})}o(eh,"iterateKeywords");function _$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(E$(e,t),e.opts.allowUnionTypes||P$(e,t),O$(e,e.dataTypes))}o(_$,"checkStrictTypes");function E$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ch(e.dataTypes,r)||Bu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),x$(e,t)}}o(E$,"checkContextTypes");function P$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Bu(e,"use allowUnionTypes to allow union type keyword")}o(P$,"checkMultipleTypes");function O$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>$$(t,a))&&Bu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(O$,"checkKeywordTypes");function $$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o($$,"hasApplicableType");function ch(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(ch,"includesType");function x$(e,t){let r=[];for(let n of e.dataTypes)ch(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(x$,"narrowSchemaTypes");function Bu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ht.checkStrictMode)(e,t,e.opts.strictTypes)}o(Bu,"strictTypesError");var Gu=class Gu{constructor(t,r,n){if((0,Qi.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,Ht.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",lh(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Qi.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",T.default.errors))}result(t,r,n){this.failResult((0,$.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,$.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,$._)`${r} !== undefined && (${(0,$.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?Ki.reportExtraError:Ki.reportError)(this,this.def.error,r)}$dataError(){(0,Ki.reportError)(this,this.def.$dataError||Ki.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ki.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=$.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=$.nil,r=$.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,$.or)((0,$._)`${i} === undefined`,r)),t!==$.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==$.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,$.or)(a(),c());function a(){if(n.length){if(!(r instanceof $.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,$._)`${(0,As.checkDataTypes)(u,r,s.opts.strictNumbers,As.DataType.Wrong)}`}return $.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,$._)`!${u}(${r})`}return $.nil}}subschema(t,r){let n=(0,Hu.getSubschema)(this.it,t);(0,Hu.extendSubschemaData)(n,this.it,t),(0,Hu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return d$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ht.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ht.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,$.Name)),!0}};o(Gu,"KeywordCxt");var ws=Gu;cr.KeywordCxt=ws;function uh(e,t,r,n){let i=new ws(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Qi.funcKeywordCode)(i,r):"macro"in r?(0,Qi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Qi.funcKeywordCode)(i,r)}o(uh,"keywordCode");var A$=/^\/(?:[^~]|~0|~1)*$/,w$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lh(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return T.default.rootData;if(e[0]==="/"){if(!A$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=T.default.rootData}else{let l=w$.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(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,$._)`${s}${(0,$.getProperty)((0,Ht.unescapeJsonPointer)(l))}`,a=(0,$._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(lh,"getData");cr.getData=lh});var Is=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var zu=class zu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(zu,"ValidationError");var Uu=zu;Zu.default=Uu});var Yi=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Ku=zi(),Yu=class Yu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ku.resolveUrl)(t,r,n),this.missingSchema=(0,Ku.normalizeId)((0,Ku.getFullPath)(t,this.missingRef))}};o(Yu,"MissingRefError");var Qu=Yu;Wu.default=Qu});var Ji=h(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;var at=C(),I$=Is(),Ur=Ke(),ct=zi(),ph=j(),T$=Wi(),el=class el{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,ct.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={}}};o(el,"SchemaEnv");var Dn=el;We.SchemaEnv=Dn;function Xu(e){let t=fh.call(this,e);if(t)return t;let r=(0,ct.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new at.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:I$.default,code:(0,at._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ur.default.data,parentData:Ur.default.parentData,parentDataProperty:Ur.default.parentDataProperty,dataNames:[Ur.default.data],dataPathArr:[at.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,at.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:at.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,at._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,T$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ur.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ur.default.self}`,`${Ur.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 at.Name?void 0:g,items:y instanceof at.Name?void 0:y,dynamicProps:g instanceof at.Name,dynamicItems:y instanceof at.Name},m.source&&(m.source.evaluated=(0,at.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)}}o(Xu,"compileSchema");We.compileSchema=Xu;function C$(e,t,r){var n;r=(0,ct.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=k$.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new Dn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=R$.call(this,s)}o(C$,"resolveRef");We.resolveRef=C$;function R$(e){return(0,ct.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Xu.call(this,e)}o(R$,"inlineOrCompile");function fh(e){for(let t of this._compilations)if(N$(t,e))return t}o(fh,"getCompilingSchema");We.getCompilingSchema=fh;function N$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(N$,"sameSchemaEnv");function k$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ts.call(this,e,t)}o(k$,"resolve");function Ts(e,t){let r=this.opts.uriResolver.parse(t),n=(0,ct._getFullPath)(this.opts.uriResolver,r),i=(0,ct.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Ju.call(this,r,e);let s=(0,ct.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Ts.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Ju.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Xu.call(this,a),s===(0,ct.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,ct.resolveUrl)(this.opts.uriResolver,i,l)),new Dn({schema:c,schemaId:u,root:e,baseId:i})}return Ju.call(this,r,a)}}o(Ts,"resolveSchema");We.resolveSchema=Ts;var j$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ju(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,ph.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!j$.has(c)&&l&&(t=(0,ct.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,ph.schemaHasRulesButRef)(r,this.RULES)){let c=(0,ct.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Ts.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Dn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Ju,"getJsonPointer")});var dh=h((PD,q$)=>{q$.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 hh=h((OD,mh)=>{"use strict";var M$={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};mh.exports={HEX:M$}});var Ph=h(($D,Eh)=>{"use strict";var{HEX:D$}=hh();function vh(e){if(_h(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:F$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(vh,"normalizeIPv4");function tl(e,t=!1){let r="",n=!0;for(let i of e){if(D$[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(tl,"stringArrayToHexStripped");function L$(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=tl(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(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;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(tl(i))),r.address=n.join(""),r}o(L$,"getIPV6");function bh(e,t={}){if(_h(e,":")<2)return{host:e,isIPV6:!1};let r=L$(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}}}o(bh,"normalizeIPv6");function F$(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(F$,"stripLeadingZeros");function _h(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(_h,"findToken");var gh=/^\.\.?\//u,yh=/^\/\.(?:\/|$)/u,Sh=/^\/\.\.(?:\/|$)/u,H$=/^\/?(?:.|\n)*?(?=\/|$)/u;function V$(e){let t=[];for(;e.length;)if(e.match(gh))e=e.replace(gh,"");else if(e.match(yh))e=e.replace(yh,"/");else if(e.match(Sh))e=e.replace(Sh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(H$);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("")}o(V$,"removeDotSegments");function B$(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}o(B$,"normalizeComponentEncoding");function G$(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=vh(n);if(i.isIPV4)n=i.host;else{let s=bh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.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}o(G$,"recomposeAuthority");Eh.exports={recomposeAuthority:G$,normalizeComponentEncoding:B$,removeDotSegments:V$,normalizeIPv4:vh,normalizeIPv6:bh,stringArrayToHexStripped:tl}});var Ih=h((AD,wh)=>{"use strict";var U$=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Z$=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Oh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Oh,"isSecure");function $h(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o($h,"httpParse");function xh(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}o(xh,"httpSerialize");function z$(e){return e.secure=Oh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(z$,"wsParse");function K$(e){if((e.port===(Oh(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}o(K$,"wsSerialize");function Q$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Z$);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}`,s=rl[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(Q$,"urnParse");function W$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=rl[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(W$,"urnSerialize");function Y$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!U$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(Y$,"urnuuidParse");function J$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(J$,"urnuuidSerialize");var Ah={scheme:"http",domainHost:!0,parse:$h,serialize:xh},X$={scheme:"https",domainHost:Ah.domainHost,parse:$h,serialize:xh},Cs={scheme:"ws",domainHost:!0,parse:z$,serialize:K$},ex={scheme:"wss",domainHost:Cs.domainHost,parse:Cs.parse,serialize:Cs.serialize},tx={scheme:"urn",parse:Q$,serialize:W$,skipNormalize:!0},rx={scheme:"urn:uuid",parse:Y$,serialize:J$,skipNormalize:!0},rl={http:Ah,https:X$,ws:Cs,wss:ex,urn:tx,"urn:uuid":rx};wh.exports=rl});var Ch=h((ID,Ns)=>{"use strict";var{normalizeIPv6:nx,normalizeIPv4:ix,removeDotSegments:Xi,recomposeAuthority:ox,normalizeComponentEncoding:Rs}=Ph(),nl=Ih();function sx(e,t){return typeof e=="string"?e=_t(Vt(e,t),t):typeof e=="object"&&(e=Vt(_t(e,t),t)),e}o(sx,"normalize");function ax(e,t,r){let n=Object.assign({scheme:"null"},r),i=Th(Vt(e,n),Vt(t,n),n,!0);return _t(i,{...n,skipEscape:!0})}o(ax,"resolve");function Th(e,t,r,n){let i={};return n||(e=Vt(_t(e,r),r),t=Vt(_t(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=Xi(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=Xi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Xi(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=Xi(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}o(Th,"resolveComponents");function cx(e,t,r){return typeof e=="string"?(e=unescape(e),e=_t(Rs(Vt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=_t(Rs(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=_t(Rs(Vt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=_t(Rs(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(cx,"equal");function _t(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=[],s=nl[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.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=ox(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&&(!s||!s.absolutePath)&&(c=Xi(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("")}o(_t,"serialize");var ux=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function lx(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||ux[t])return!0;return!1}o(lx,"nonSimpleDomain");var px=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Vt(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,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(px);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=ix(n.host);if(u.isIPV4===!1){let l=nx(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!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=nl[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&lx(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}o(Vt,"parse");var il={SCHEMES:nl,normalize:sx,resolve:ax,resolveComponents:Th,equal:cx,serialize:_t,parse:Vt};Ns.exports=il;Ns.exports.default=il;Ns.exports.fastUri=il});var Nh=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var Rh=Ch();Rh.code='require("ajv/dist/runtime/uri").default';ol.default=Rh});var Fn=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.CodeGen=fe.Name=fe.nil=fe.stringify=fe.str=fe._=fe.KeywordCxt=void 0;var fx=Wi();Object.defineProperty(fe,"KeywordCxt",{enumerable:!0,get:o(function(){return fx.KeywordCxt},"get")});var Ln=C();Object.defineProperty(fe,"_",{enumerable:!0,get:o(function(){return Ln._},"get")});Object.defineProperty(fe,"str",{enumerable:!0,get:o(function(){return Ln.str},"get")});Object.defineProperty(fe,"stringify",{enumerable:!0,get:o(function(){return Ln.stringify},"get")});Object.defineProperty(fe,"nil",{enumerable:!0,get:o(function(){return Ln.nil},"get")});Object.defineProperty(fe,"Name",{enumerable:!0,get:o(function(){return Ln.Name},"get")});Object.defineProperty(fe,"CodeGen",{enumerable:!0,get:o(function(){return Ln.CodeGen},"get")});var dx=Is(),Dh=Yi(),mx=Cu(),eo=Ji(),hx=C(),to=zi(),ks=Zi(),al=j(),kh=dh(),gx=Nh(),Lh=o((e,t)=>new RegExp(e,t),"defaultRegExp");Lh.code="new RegExp";var yx=["removeAdditional","useDefaults","coerceTypes"],Sx=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),vx={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."},bx={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jh=200;function _x(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,S,v,b,E,P,_,A,I,J,z;let q=e.strict,Z=(t=e.code)===null||t===void 0?void 0:t.optimize,w=Z===!0||Z===void 0?1:Z||0,Mt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Lh,Dt=(i=e.uriResolver)!==null&&i!==void 0?i:gx.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:q)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:q)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:q)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:q)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:q)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:w,regExp:Mt}:{optimize:w,regExp:Mt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:jh,loopEnum:(S=e.loopEnum)!==null&&S!==void 0?S:jh,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(I=e.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(J=e.unicodeRegExp)!==null&&J!==void 0?J:!0,int32range:(z=e.int32range)!==null&&z!==void 0?z:!0,uriResolver:Dt}}o(_x,"requiredOptions");var cl=class cl{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._x(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new hx.ValueScope({scope:{},prefixes:Sx,es5:r,lines:n}),this.logger=Ax(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,mx.getRules)(),qh.call(this,vx,t,"NOT SUPPORTED"),qh.call(this,bx,t,"DEPRECATED","warn"),this._metaOpts=$x.call(this),t.formats&&Px.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ox.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Ex.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=kh;n==="id"&&(i={...kh},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 s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(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 Dh.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 s.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 s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,to.normalizeId)(r||s),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 s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Mh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new eo.SchemaEnv({schema:{},schemaId:n});if(r=eo.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=Mh.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,to.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(Ix.call(this,n,r),!r)return(0,al.eachItem)(n,s=>sl.call(this,s)),this;Cx.call(this,r);let i={...r,type:(0,ks.getJSONTypes)(r.type),schemaType:(0,ks.getJSONTypes)(r.schemaType)};return(0,al.eachItem)(n,i.type.length===0?s=>sl.call(this,s,i):s=>i.type.forEach(a=>sl.call(this,s,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(s=>s.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,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)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]=Fh(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,s=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,to.normalizeId)(a||n);let l=to.getSchemaRefs.call(this,t,n);return u=new eo.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!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):eo.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{eo.compileSchema.call(this,t)}finally{this.opts=r}}};o(cl,"Ajv");var ro=cl;ro.ValidationError=dx.default;ro.MissingRefError=Dh.default;fe.default=ro;function qh(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(qh,"checkOptions");function Mh(e){return e=(0,to.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Mh,"getSchEnv");function Ex(){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)}o(Ex,"addInitialSchemas");function Px(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(Px,"addInitialFormats");function Ox(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)}}o(Ox,"addInitialKeywords");function $x(){let e={...this.opts};for(let t of yx)delete e[t];return e}o($x,"getMetaSchemaOptions");var xx={log(){},warn(){},error(){}};function Ax(e){if(e===!1)return xx;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")}o(Ax,"getLogger");var wx=/^[a-z_$][a-z0-9_$:-]*$/i;function Ix(e,t){let{RULES:r}=this;if((0,al.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wx.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')}o(Ix,"checkKeyword");function sl(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:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,ks.getJSONTypes)(t.type),schemaType:(0,ks.getJSONTypes)(t.schemaType)}};t.before?Tx.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(sl,"addRule");function Tx(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`))}o(Tx,"addBeforeRule");function Cx(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Fh(t)),e.validateSchema=this.compile(t,!0))}o(Cx,"keywordMetaschema");var Rx={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fh(e){return{anyOf:[e,Rx]}}o(Fh,"schemaOrData")});var no=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.callRef=Zr.getValidate=void 0;var Nx=Yi(),Hh=Qe(),qe=C(),Hn=Ke(),Vh=Ji(),js=j(),kx={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Vh.resolveRef.call(u,l,i,r);if(f===void 0)throw new Nx.default(n.opts.uriResolver,i,r);if(f instanceof Vh.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return qs(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return qs(e,(0,qe._)`${g}.validate`,l,l.$async)}function d(g){let y=Bh(e,g);qs(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,qe.stringify)(g)}:{ref:g}),S=t.name("valid"),v=e.subschema({schema:g,dataTypes:[],schemaPath:qe.nil,topSchemaRef:y,errSchemaPath:r},S);e.mergeEvaluated(v),e.ok(S)}}};function Bh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,qe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Bh,"getValidate");Zr.getValidate=Bh;function qs(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Hn.default.this:qe.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,qe._)`await ${(0,Hh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,qe._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,Hh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,qe._)`${g}.errors`;i.assign(Hn.default.vErrors,(0,qe._)`${Hn.default.vErrors} === null ? ${y} : ${Hn.default.vErrors}.concat(${y})`),i.assign(Hn.default.errors,(0,qe._)`${Hn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let S=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(s.props=js.mergeEvaluated.props(i,S.props,s.props));else{let v=i.var("props",(0,qe._)`${g}.evaluated.props`);s.props=js.mergeEvaluated.props(i,v,s.props,qe.Name)}if(s.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(s.items=js.mergeEvaluated.items(i,S.items,s.items));else{let v=i.var("items",(0,qe._)`${g}.evaluated.items`);s.items=js.mergeEvaluated.items(i,v,s.items,qe.Name)}}o(m,"addEvaluatedFrom")}o(qs,"callRef");Zr.callRef=qs;Zr.default=kx});var Gh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var jx=no(),qx=["$schema","id","$defs",{keyword:"$comment"},"definitions",jx.default];ul.default=qx});var Uh=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var ll=Fn(),Mx=C(),ur=Mx.operators,pl={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:ur.LTE,fail:ur.GT},{okStr:"<",ok:ur.LT,fail:ur.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:ur.GTE,fail:ur.LT},{okStr:">",ok:ur.GT,fail:ur.LTE}]}},Dx={message:o(e=>ll.str`must be ${fl(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>ll._`{comparison: ${fl(e).okStr}, limit: ${e.schemaCode}}`,"params")},Lx={keyword:Object.keys(pl),type:"number",schemaType:"number",$data:!0,error:Dx,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ll._`${t} ${fl(e).fail} ${r} || isNaN(${t})`)}};function fl(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[pl[r].exclusive]?1:0;return pl[r].ops[n]}o(fl,"kwdOp");dl.default=Lx});var zh=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var Zh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Fx={keyword:Object.keys(Zh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Zh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ml.default=Fx});var gl=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var io=C(),Hx={message:o(({schemaCode:e})=>(0,io.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,io._)`{multipleOf: ${e}}`,"params")},Vx={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Hx,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,io._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,io._)`${a} !== parseInt(${a})`;e.fail$data((0,io._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};hl.default=Vx});var Qh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});function Kh(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}o(Kh,"ucs2length");yl.default=Kh;Kh.code='require("ajv/dist/runtime/ucs2length").default'});var vl=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var zr=C(),Bx=j(),Gx=Qh(),Ux={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,zr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,zr._)`{limit: ${e}}`,"params")},Zx={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ux,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?zr.operators.GT:zr.operators.LT,a=i.opts.unicode===!1?(0,zr._)`${r}.length`:(0,zr._)`${(0,Bx.useFunc)(e.gen,Gx.default)}(${r})`;e.fail$data((0,zr._)`${a} ${s} ${n}`)}};Sl.default=Zx});var _l=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var zx=Qe(),Ms=C(),Kx={message:o(({schemaCode:e})=>(0,Ms.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Ms._)`{pattern: ${e}}`,"params")},Qx={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Kx,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Ms._)`(new RegExp(${i}, ${a}))`:(0,zx.usePattern)(e,n);e.fail$data((0,Ms._)`!${c}.test(${t})`)}};bl.default=Qx});var Pl=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var oo=C(),Wx={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,oo.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,oo._)`{limit: ${e}}`,"params")},Yx={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Wx,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?oo.operators.GT:oo.operators.LT;e.fail$data((0,oo._)`Object.keys(${r}).length ${i} ${n}`)}};El.default=Yx});var $l=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var so=Qe(),ao=C(),Jx=j(),Xx={message:o(({params:{missingProperty:e}})=>(0,ao.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,ao._)`{missingProperty: ${e}}`,"params")},e1={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Xx,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&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 S=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${y}" is not defined at "${S}" (strictRequired)`;(0,Jx.checkStrictMode)(a,v,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(ao.nil,p);else for(let m of r)(0,so.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,so.checkMissingProp)(e,r,m)),(0,so.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,so.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,so.propertyInData)(t,i,m,c.ownProperties)),t.if((0,ao.not)(g),()=>{e.error(),t.break()})},ao.nil)}o(d,"loopUntilMissing")}};Ol.default=e1});var Al=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var co=C(),t1={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,co.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,co._)`{limit: ${e}}`,"params")},r1={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:t1,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?co.operators.GT:co.operators.LT;e.fail$data((0,co._)`${r}.length ${i} ${n}`)}};xl.default=r1});var Ds=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Wh=Lu();Wh.code='require("ajv/dist/runtime/equal").default';wl.default=Wh});var Cl=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Il=Zi(),de=C(),n1=j(),i1=Ds(),o1={message:o(({params:{i:e,j:t}})=>(0,de.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,de._)`{i: ${e}, j: ${t}}`,"params")},s1={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:o1,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Il.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,de._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,de._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,de._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let S=t.name("item"),v=(0,Il.checkDataTypes)(l,S,c.opts.strictNumbers,Il.DataType.Wrong),b=t.const("indices",(0,de._)`{}`);t.for((0,de._)`;${g}--;`,()=>{t.let(S,(0,de._)`${r}[${g}]`),t.if(v,(0,de._)`continue`),l.length>1&&t.if((0,de._)`typeof ${S} == "string"`,(0,de._)`${S} += "_"`),t.if((0,de._)`typeof ${b}[${S}] == "number"`,()=>{t.assign(y,(0,de._)`${b}[${S}]`),e.error(),t.assign(u,!1).break()}).code((0,de._)`${b}[${S}] = ${g}`)})}o(d,"loopN");function m(g,y){let S=(0,n1.useFunc)(t,i1.default),v=t.name("outer");t.label(v).for((0,de._)`;${g}--;`,()=>t.for((0,de._)`${y} = ${g}; ${y}--;`,()=>t.if((0,de._)`${S}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}o(m,"loopN2")}};Tl.default=s1});var kl=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Rl=C(),a1=j(),c1=Ds(),u1={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Rl._)`{allowedValue: ${e}}`,"params")},l1={keyword:"const",$data:!0,error:u1,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Rl._)`!${(0,a1.useFunc)(t,c1.default)}(${r}, ${i})`):e.fail((0,Rl._)`${s} !== ${r}`)}};Nl.default=l1});var ql=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var uo=C(),p1=j(),f1=Ds(),d1={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,uo._)`{allowedValues: ${e}}`,"params")},m1={keyword:"enum",schemaType:"array",$data:!0,error:d1,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,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=o(()=>u??(u=(0,p1.useFunc)(t,f1.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",s);f=(0,uo.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,uo._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,uo._)`${l()}(${r}, ${m}[${g}])`:(0,uo._)`${r} === ${y}`}o(d,"equalCode")}};jl.default=m1});var Yh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var h1=Uh(),g1=zh(),y1=gl(),S1=vl(),v1=_l(),b1=Pl(),_1=$l(),E1=Al(),P1=Cl(),O1=kl(),$1=ql(),x1=[h1.default,g1.default,y1.default,S1.default,v1.default,b1.default,_1.default,E1.default,P1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},O1.default,$1.default];Ml.default=x1});var Ll=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.validateAdditionalItems=void 0;var Kr=C(),Dl=j(),A1={message:o(({params:{len:e}})=>(0,Kr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Kr._)`{limit: ${e}}`,"params")},w1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:A1,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Dl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Jh(e,n)}};function Jh(e,t){let{gen:r,schema:n,data:i,keyword:s,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,Dl.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:s,dataProp:f,dataPropType:Dl.Type.Num},l),a.allErrors||r.if((0,Kr.not)(l),()=>r.break())})}o(u,"validateItems")}o(Jh,"validateAdditionalItems");lo.validateAdditionalItems=Jh;lo.default=w1});var Fl=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.validateTuple=void 0;var Xh=C(),Ls=j(),I1=Qe(),T1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eg(e,"additionalItems",t);r.items=!0,!(0,Ls.alwaysValidSchema)(r,t)&&e.ok((0,I1.validateArray)(e))}};function eg(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Ls.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Xh._)`${s}.length`);r.forEach((p,d)=>{(0,Ls.alwaysValidSchema)(c,p)||(n.if((0,Xh._)`${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 S=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Ls.checkStrictMode)(c,S,d.strictTuples)}}o(f,"checkStrictTuple")}o(eg,"validateTuple");po.validateTuple=eg;po.default=T1});var tg=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var C1=Fl(),R1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,C1.validateTuple)(e,"items"),"code")};Hl.default=R1});var ng=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var rg=C(),N1=j(),k1=Qe(),j1=Ll(),q1={message:o(({params:{len:e}})=>(0,rg.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,rg._)`{limit: ${e}}`,"params")},M1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:q1,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,N1.alwaysValidSchema)(n,t)&&(i?(0,j1.validateAdditionalItems)(e,i):e.ok((0,k1.validateArray)(e)))}};Vl.default=M1});var ig=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var Ye=C(),Fs=j(),D1={message:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye.str)`must contain at least ${e} valid item(s)`:(0,Ye.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye._)`{minContains: ${e}}`:(0,Ye._)`{minContains: ${e}, maxContains: ${t}}`,"params")},L1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:D1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Ye._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Fs.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Fs.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Fs.alwaysValidSchema)(s,r)){let y=(0,Ye._)`${f} >= ${a}`;c!==void 0&&(y=(0,Ye._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.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,Ye._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),S=t.let("count",0);m(y,()=>t.if(y,()=>g(S)))}o(d,"validateItemsWithCount");function m(y,S){t.forRange("i",0,f,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Fs.Type.Num,compositeRule:!0},y),S()})}o(m,"validateItems");function g(y){t.code((0,Ye._)`${y}++`),c===void 0?t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ye._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Bl.default=L1});var Hs=h(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.validateSchemaDeps=Et.validatePropertyDeps=Et.error=void 0;var Gl=C(),F1=j(),fo=Qe();Et.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gl._)`{property: ${e},
9
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,R._)`[${i}]`)}}o(u,"coerceSpecificType")}o(_O,"coerceData");function EO({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,R._)`${t} !== undefined`,()=>e.assign((0,R._)`${t}[${r}]`,n))}o(EO,"assignParentData");function Nu(e,t,r,n=jn.Correct){let i=n===jn.Correct?R.operators.EQ:R.operators.NEQ,s;switch(e){case"null":return(0,R._)`${t} ${i} null`;case"array":s=(0,R._)`Array.isArray(${t})`;break;case"object":s=(0,R._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,R._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,R._)`typeof ${t} ${i} ${e}`}return n===jn.Correct?s:(0,R.not)(s);function a(c=R.nil){return(0,R.and)((0,R._)`typeof ${t} == "number"`,c,r?(0,R._)`isFinite(${t})`:R.nil)}}o(Nu,"checkDataType");_e.checkDataType=Nu;function ku(e,t,r,n){if(e.length===1)return Nu(e[0],t,r,n);let i,s=(0,Nm.toHash)(e);if(s.array&&s.object){let a=(0,R._)`typeof ${t} != "object"`;i=s.null?a:(0,R._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=R.nil;s.number&&delete s.integer;for(let a in s)i=(0,R.and)(i,Nu(a,t,r,n));return i}o(ku,"checkDataTypes");_e.checkDataTypes=ku;var PO={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,R._)`{type: ${e}}`:(0,R._)`{type: ${t}}`,"params")};function ju(e){let t=OO(e);(0,yO.reportError)(t,PO)}o(ju,"reportTypeError");_e.reportTypeError=ju;function OO(e){let{gen:t,data:r,schema:n}=e,i=(0,Nm.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(OO,"getTypeErrorContext")});var Mm=h($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.assignDefaults=void 0;var qn=C(),$O=q();function xO(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)qm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>qm(e,s,i.default))}o(xO,"assignDefaults");$s.assignDefaults=xO;function qm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,qn._)`${s}${(0,qn.getProperty)(t)}`;if(i){(0,$O.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,qn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,qn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,qn._)`${c} = ${(0,qn.stringify)(r)}`)}o(qm,"assignDefault")});var Qe=h(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.validateUnion=G.validateArray=G.usePattern=G.callValidateCode=G.schemaProperties=G.allSchemaProperties=G.noPropertyInData=G.propertyInData=G.isOwnProperty=G.hasPropFunc=G.reportMissingProp=G.checkMissingProp=G.checkReportMissingProp=void 0;var Z=C(),qu=q(),or=Ke(),AO=q();function wO(e,t){let{gen:r,data:n,it:i}=e;r.if(Du(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Z._)`${t}`},!0),e.error()})}o(wO,"checkReportMissingProp");G.checkReportMissingProp=wO;function IO({gen:e,data:t,it:{opts:r}},n,i){return(0,Z.or)(...n.map(s=>(0,Z.and)(Du(e,t,s,r.ownProperties),(0,Z._)`${i} = ${s}`)))}o(IO,"checkMissingProp");G.checkMissingProp=IO;function TO(e,t){e.setParams({missingProperty:t},!0),e.error()}o(TO,"reportMissingProp");G.reportMissingProp=TO;function Dm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Z._)`Object.prototype.hasOwnProperty`})}o(Dm,"hasPropFunc");G.hasPropFunc=Dm;function Mu(e,t,r){return(0,Z._)`${Dm(e)}.call(${t}, ${r})`}o(Mu,"isOwnProperty");G.isOwnProperty=Mu;function CO(e,t,r,n){let i=(0,Z._)`${t}${(0,Z.getProperty)(r)} !== undefined`;return n?(0,Z._)`${i} && ${Mu(e,t,r)}`:i}o(CO,"propertyInData");G.propertyInData=CO;function Du(e,t,r,n){let i=(0,Z._)`${t}${(0,Z.getProperty)(r)} === undefined`;return n?(0,Z.or)(i,(0,Z.not)(Mu(e,t,r))):i}o(Du,"noPropertyInData");G.noPropertyInData=Du;function Lm(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Lm,"allSchemaProperties");G.allSchemaProperties=Lm;function RO(e,t){return Lm(t).filter(r=>!(0,qu.alwaysValidSchema)(e,t[r]))}o(RO,"schemaProperties");G.schemaProperties=RO;function NO({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,Z._)`${e}, ${t}, ${n}${i}`:t,p=[[or.default.instancePath,(0,Z.strConcat)(or.default.instancePath,s)],[or.default.parentData,a.parentData],[or.default.parentDataProperty,a.parentDataProperty],[or.default.rootData,or.default.rootData]];a.opts.dynamicRef&&p.push([or.default.dynamicAnchors,or.default.dynamicAnchors]);let d=(0,Z._)`${f}, ${r.object(...p)}`;return u!==Z.nil?(0,Z._)`${c}.call(${u}, ${d})`:(0,Z._)`${c}(${d})`}o(NO,"callValidateCode");G.callValidateCode=NO;var kO=(0,Z._)`new RegExp`;function jO({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Z._)`${i.code==="new RegExp"?kO:(0,AO.useFunc)(e,i)}(${r}, ${n})`})}o(jO,"usePattern");G.usePattern=jO;function qO(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,Z._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:qu.Type.Num},s),t.if((0,Z.not)(s),c)})}o(a,"validateItems")}o(qO,"validateArray");G.validateArray=qO;function MO(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,qu.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,Z._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,Z.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(MO,"validateUnion");G.validateUnion=MO});var Vm=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;var we=C(),Br=Ke(),DO=Qe(),LO=Ui();function FO(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Hm(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:we.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(FO,"macroKeywordCode");vt.macroKeywordCode=FO;function HO(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;BO(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Hm(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&&Fm(e),S(()=>e.error());else{let v=t.async?m():g();t.modifying&&Fm(e),S(()=>VO(e,v))}}o(d,"validateKeyword");function m(){let v=n.let("ruleErrs",null);return n.try(()=>y((0,we._)`await `),b=>n.assign(p,!1).if((0,we._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,we._)`${b}.errors`),()=>n.throw(b))),v}o(m,"validateAsync");function g(){let v=(0,we._)`${f}.errors`;return n.assign(v,null),y(we.nil),v}o(g,"validateSync");function y(v=t.async?(0,we._)`await `:we.nil){let b=u.opts.passContext?Br.default.this:Br.default.self,E=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,we._)`${v}${(0,DO.callValidateCode)(e,f,b,E)}`,t.modifying)}o(y,"assignValid");function S(v){var b;n.if((0,we.not)((b=t.valid)!==null&&b!==void 0?b:p),v)}o(S,"reportErrs")}o(HO,"funcKeywordCode");vt.funcKeywordCode=HO;function Fm(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,we._)`${n.parentData}[${n.parentDataProperty}]`))}o(Fm,"modifyData");function VO(e,t){let{gen:r}=e;r.if((0,we._)`Array.isArray(${t})`,()=>{r.assign(Br.default.vErrors,(0,we._)`${Br.default.vErrors} === null ? ${t} : ${Br.default.vErrors}.concat(${t})`).assign(Br.default.errors,(0,we._)`${Br.default.vErrors}.length`),(0,LO.extendErrors)(e)},()=>e.error())}o(VO,"addErrs");function BO({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(BO,"checkAsyncKeyword");function Hm(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,we.stringify)(r)})}o(Hm,"useKeyword");function GO(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")}o(GO,"validSchemaType");vt.validSchemaType=GO;function UO({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)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 ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(UO,"validateKeywordUsage");vt.validateKeywordUsage=UO});var Gm=h(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendSubschemaMode=sr.extendSubschemaData=sr.getSubschema=void 0;var bt=C(),Bm=q();function ZO(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,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,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}${(0,bt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Bm.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(ZO,"getSubschema");sr.getSubschema=ZO;function zO(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,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,bt._)`${t.data}${(0,bt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,bt.str)`${l}${(0,Bm.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,bt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof bt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);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]}o(u,"dataContextProps")}o(zO,"extendSubschemaData");sr.extendSubschemaData=zO;function KO(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(KO,"extendSubschemaMode");sr.extendSubschemaMode=KO});var Lu=h((uD,Um)=>{"use strict";Um.exports=o(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,s;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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var zm=h((pD,Zm)=>{"use strict";var ar=Zm.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(){};xs(t,n,i,e,"",e)};ar.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ar.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ar.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ar.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 xs(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in ar.arrayKeywords)for(var d=0;d<p.length;d++)xs(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in ar.propsKeywords){if(p&&typeof p=="object")for(var m in p)xs(e,t,r,p[m],i+"/"+f+"/"+QO(m),s,i,f,n,m)}else(f in ar.keywords||e.allKeys&&!(f in ar.skipKeywords))&&xs(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(xs,"_traverse");function QO(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(QO,"escapeJsonPtr")});var zi=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;var WO=q(),YO=Lu(),JO=zm(),XO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function e$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Fu(e):t?Km(e)<=t:!1}o(e$,"inlineRef");je.inlineRef=e$;var t$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fu(e){for(let t in e){if(t$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Fu)||typeof r=="object"&&Fu(r))return!0}return!1}o(Fu,"hasRef");function Km(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!XO.has(r)&&(typeof e[r]=="object"&&(0,WO.eachItem)(e[r],n=>t+=Km(n)),t===1/0))return 1/0}return t}o(Km,"countKeys");function Qm(e,t="",r){r!==!1&&(t=Mn(t));let n=e.parse(t);return Wm(e,n)}o(Qm,"getFullPath");je.getFullPath=Qm;function Wm(e,t){return e.serialize(t).split("#")[0]+"#"}o(Wm,"_getFullPath");je._getFullPath=Wm;var r$=/#\/?$/;function Mn(e){return e?e.replace(r$,""):""}o(Mn,"normalizeId");je.normalizeId=Mn;function n$(e,t,r){return r=Mn(r),e.resolve(t,r)}o(n$,"resolveUrl");je.resolveUrl=n$;var i$=/^[a-z_][-a-z0-9._]*$/i;function o$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Mn(e[r]||t),s={"":i},a=Qm(n,i,!1),c={},u=new Set;return JO(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,S=s[g];typeof p[r]=="string"&&(S=v.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=S;function v(E){let P=this.opts.uriResolver.resolve;if(E=Mn(S?P(S,E):E),u.has(E))throw f(E);u.add(E);let _=this.refs[E];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,E):E!==Mn(y)&&(E[0]==="#"?(l(p,c[E],E),c[E]=p):this.refs[E]=y),E}o(v,"addRef");function b(E){if(typeof E=="string"){if(!i$.test(E))throw new Error(`invalid anchor "${E}"`);v.call(this,`#${E}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!YO(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(o$,"getSchemaRefs");je.getSchemaRefs=o$});var Wi=h(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.getData=cr.KeywordCxt=cr.validateFunctionCode=void 0;var th=Tm(),Ym=Zi(),Vu=Ru(),As=Zi(),s$=Mm(),Qi=Vm(),Hu=Gm(),$=C(),T=Ke(),a$=zi(),Ht=q(),Ki=Ui();function c$(e){if(ih(e)&&(oh(e),nh(e))){p$(e);return}rh(e,()=>(0,th.topBoolOrEmptySchema)(e))}o(c$,"validateFunctionCode");cr.validateFunctionCode=c$;function rh({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,$._)`${T.default.data}, ${T.default.valCxt}`,n.$async,()=>{e.code((0,$._)`"use strict"; ${Jm(r,i)}`),l$(e,i),e.code(s)}):e.func(t,(0,$._)`${T.default.data}, ${u$(i)}`,n.$async,()=>e.code(Jm(r,i)).code(s))}o(rh,"validateFunction");function u$(e){return(0,$._)`{${T.default.instancePath}="", ${T.default.parentData}, ${T.default.parentDataProperty}, ${T.default.rootData}=${T.default.data}${e.dynamicRef?(0,$._)`, ${T.default.dynamicAnchors}={}`:$.nil}}={}`}o(u$,"destructureValCxt");function l$(e,t){e.if(T.default.valCxt,()=>{e.var(T.default.instancePath,(0,$._)`${T.default.valCxt}.${T.default.instancePath}`),e.var(T.default.parentData,(0,$._)`${T.default.valCxt}.${T.default.parentData}`),e.var(T.default.parentDataProperty,(0,$._)`${T.default.valCxt}.${T.default.parentDataProperty}`),e.var(T.default.rootData,(0,$._)`${T.default.valCxt}.${T.default.rootData}`),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`${T.default.valCxt}.${T.default.dynamicAnchors}`)},()=>{e.var(T.default.instancePath,(0,$._)`""`),e.var(T.default.parentData,(0,$._)`undefined`),e.var(T.default.parentDataProperty,(0,$._)`undefined`),e.var(T.default.rootData,T.default.data),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`{}`)})}o(l$,"destructureValCxtES5");function p$(e){let{schema:t,opts:r,gen:n}=e;rh(e,()=>{r.$comment&&t.$comment&&ah(e),g$(e),n.let(T.default.vErrors,null),n.let(T.default.errors,0),r.unevaluated&&f$(e),sh(e),v$(e)})}o(p$,"topSchemaObjCode");function f$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,$._)`${r}.evaluated`),t.if((0,$._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,$._)`${e.evaluated}.props`,(0,$._)`undefined`)),t.if((0,$._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,$._)`${e.evaluated}.items`,(0,$._)`undefined`))}o(f$,"resetEvaluated");function Jm(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,$._)`/*# sourceURL=${r} */`:$.nil}o(Jm,"funcSourceUrl");function d$(e,t){if(ih(e)&&(oh(e),nh(e))){m$(e,t);return}(0,th.boolOrEmptySchema)(e,t)}o(d$,"subschemaCode");function nh({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(nh,"schemaCxtHasRules");function ih(e){return typeof e.schema!="boolean"}o(ih,"isSchemaObj");function m$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ah(e),y$(e),S$(e);let s=n.const("_errs",T.default.errors);sh(e,s),n.var(t,(0,$._)`${s} === ${T.default.errors}`)}o(m$,"subSchemaObjCode");function oh(e){(0,Ht.checkUnknownRules)(e),h$(e)}o(oh,"checkKeywords");function sh(e,t){if(e.opts.jtd)return Xm(e,[],!1,t);let r=(0,Ym.getSchemaTypes)(e.schema),n=(0,Ym.coerceAndCheckDataType)(e,r);Xm(e,r,!n,t)}o(sh,"typeAndKeywords");function h$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ht.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(h$,"checkRefsAndKeywords");function g$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ht.checkStrictMode)(e,"default is ignored in the schema root")}o(g$,"checkNoDefault");function y$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,a$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(y$,"updateContext");function S$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(S$,"checkAsyncSchema");function ah({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,$._)`${T.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,$.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,$._)`${T.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(ah,"commentKeyword");function v$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,$._)`${T.default.errors} === 0`,()=>t.return(T.default.data),()=>t.throw((0,$._)`new ${i}(${T.default.vErrors})`)):(t.assign((0,$._)`${n}.errors`,T.default.vErrors),s.unevaluated&&b$(e),t.return((0,$._)`${T.default.errors} === 0`))}o(v$,"returnResults");function b$({gen:e,evaluated:t,props:r,items:n}){r instanceof $.Name&&e.assign((0,$._)`${t}.props`,r),n instanceof $.Name&&e.assign((0,$._)`${t}.items`,n)}o(b$,"assignEvaluated");function Xm(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ht.schemaHasRulesButRef)(s,f))){i.block(()=>uh(e,"$ref",f.all.$ref.definition));return}u.jtd||_$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,Vu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,As.checkDataType)(d.type,a,u.strictNumbers)),eh(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,As.reportTypeError)(e)),i.endIf()):eh(e,d),c||i.if((0,$._)`${T.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Xm,"schemaKeywords");function eh(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,s$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Vu.shouldUseRule)(n,s)&&uh(e,s.keyword,s.definition,t.type)})}o(eh,"iterateKeywords");function _$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(E$(e,t),e.opts.allowUnionTypes||P$(e,t),O$(e,e.dataTypes))}o(_$,"checkStrictTypes");function E$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ch(e.dataTypes,r)||Bu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),x$(e,t)}}o(E$,"checkContextTypes");function P$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Bu(e,"use allowUnionTypes to allow union type keyword")}o(P$,"checkMultipleTypes");function O$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>$$(t,a))&&Bu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(O$,"checkKeywordTypes");function $$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o($$,"hasApplicableType");function ch(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(ch,"includesType");function x$(e,t){let r=[];for(let n of e.dataTypes)ch(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(x$,"narrowSchemaTypes");function Bu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ht.checkStrictMode)(e,t,e.opts.strictTypes)}o(Bu,"strictTypesError");var Gu=class Gu{constructor(t,r,n){if((0,Qi.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,Ht.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",lh(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Qi.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",T.default.errors))}result(t,r,n){this.failResult((0,$.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,$.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,$._)`${r} !== undefined && (${(0,$.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?Ki.reportExtraError:Ki.reportError)(this,this.def.error,r)}$dataError(){(0,Ki.reportError)(this,this.def.$dataError||Ki.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ki.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=$.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=$.nil,r=$.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,$.or)((0,$._)`${i} === undefined`,r)),t!==$.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==$.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,$.or)(a(),c());function a(){if(n.length){if(!(r instanceof $.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,$._)`${(0,As.checkDataTypes)(u,r,s.opts.strictNumbers,As.DataType.Wrong)}`}return $.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,$._)`!${u}(${r})`}return $.nil}}subschema(t,r){let n=(0,Hu.getSubschema)(this.it,t);(0,Hu.extendSubschemaData)(n,this.it,t),(0,Hu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return d$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ht.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ht.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,$.Name)),!0}};o(Gu,"KeywordCxt");var ws=Gu;cr.KeywordCxt=ws;function uh(e,t,r,n){let i=new ws(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Qi.funcKeywordCode)(i,r):"macro"in r?(0,Qi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Qi.funcKeywordCode)(i,r)}o(uh,"keywordCode");var A$=/^\/(?:[^~]|~0|~1)*$/,w$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lh(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return T.default.rootData;if(e[0]==="/"){if(!A$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=T.default.rootData}else{let l=w$.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(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,$._)`${s}${(0,$.getProperty)((0,Ht.unescapeJsonPointer)(l))}`,a=(0,$._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(lh,"getData");cr.getData=lh});var Is=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var zu=class zu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(zu,"ValidationError");var Uu=zu;Zu.default=Uu});var Yi=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Ku=zi(),Yu=class Yu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ku.resolveUrl)(t,r,n),this.missingSchema=(0,Ku.normalizeId)((0,Ku.getFullPath)(t,this.missingRef))}};o(Yu,"MissingRefError");var Qu=Yu;Wu.default=Qu});var Ji=h(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;var at=C(),I$=Is(),Gr=Ke(),ct=zi(),ph=q(),T$=Wi(),el=class el{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,ct.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={}}};o(el,"SchemaEnv");var Dn=el;We.SchemaEnv=Dn;function Xu(e){let t=fh.call(this,e);if(t)return t;let r=(0,ct.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new at.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:I$.default,code:(0,at._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Gr.default.data,parentData:Gr.default.parentData,parentDataProperty:Gr.default.parentDataProperty,dataNames:[Gr.default.data],dataPathArr:[at.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,at.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:at.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,at._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,T$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Gr.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Gr.default.self}`,`${Gr.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 at.Name?void 0:g,items:y instanceof at.Name?void 0:y,dynamicProps:g instanceof at.Name,dynamicItems:y instanceof at.Name},m.source&&(m.source.evaluated=(0,at.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)}}o(Xu,"compileSchema");We.compileSchema=Xu;function C$(e,t,r){var n;r=(0,ct.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=k$.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new Dn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=R$.call(this,s)}o(C$,"resolveRef");We.resolveRef=C$;function R$(e){return(0,ct.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Xu.call(this,e)}o(R$,"inlineOrCompile");function fh(e){for(let t of this._compilations)if(N$(t,e))return t}o(fh,"getCompilingSchema");We.getCompilingSchema=fh;function N$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(N$,"sameSchemaEnv");function k$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ts.call(this,e,t)}o(k$,"resolve");function Ts(e,t){let r=this.opts.uriResolver.parse(t),n=(0,ct._getFullPath)(this.opts.uriResolver,r),i=(0,ct.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Ju.call(this,r,e);let s=(0,ct.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Ts.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Ju.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Xu.call(this,a),s===(0,ct.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,ct.resolveUrl)(this.opts.uriResolver,i,l)),new Dn({schema:c,schemaId:u,root:e,baseId:i})}return Ju.call(this,r,a)}}o(Ts,"resolveSchema");We.resolveSchema=Ts;var j$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ju(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,ph.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!j$.has(c)&&l&&(t=(0,ct.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,ph.schemaHasRulesButRef)(r,this.RULES)){let c=(0,ct.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Ts.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Dn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Ju,"getJsonPointer")});var dh=h((PD,q$)=>{q$.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 hh=h((OD,mh)=>{"use strict";var M$={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};mh.exports={HEX:M$}});var Ph=h(($D,Eh)=>{"use strict";var{HEX:D$}=hh();function vh(e){if(_h(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:F$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(vh,"normalizeIPv4");function tl(e,t=!1){let r="",n=!0;for(let i of e){if(D$[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(tl,"stringArrayToHexStripped");function L$(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=tl(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(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;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(tl(i))),r.address=n.join(""),r}o(L$,"getIPV6");function bh(e,t={}){if(_h(e,":")<2)return{host:e,isIPV6:!1};let r=L$(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}}}o(bh,"normalizeIPv6");function F$(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(F$,"stripLeadingZeros");function _h(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(_h,"findToken");var gh=/^\.\.?\//u,yh=/^\/\.(?:\/|$)/u,Sh=/^\/\.\.(?:\/|$)/u,H$=/^\/?(?:.|\n)*?(?=\/|$)/u;function V$(e){let t=[];for(;e.length;)if(e.match(gh))e=e.replace(gh,"");else if(e.match(yh))e=e.replace(yh,"/");else if(e.match(Sh))e=e.replace(Sh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(H$);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("")}o(V$,"removeDotSegments");function B$(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}o(B$,"normalizeComponentEncoding");function G$(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=vh(n);if(i.isIPV4)n=i.host;else{let s=bh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.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}o(G$,"recomposeAuthority");Eh.exports={recomposeAuthority:G$,normalizeComponentEncoding:B$,removeDotSegments:V$,normalizeIPv4:vh,normalizeIPv6:bh,stringArrayToHexStripped:tl}});var Ih=h((AD,wh)=>{"use strict";var U$=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Z$=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Oh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Oh,"isSecure");function $h(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o($h,"httpParse");function xh(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}o(xh,"httpSerialize");function z$(e){return e.secure=Oh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(z$,"wsParse");function K$(e){if((e.port===(Oh(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}o(K$,"wsSerialize");function Q$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Z$);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}`,s=rl[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(Q$,"urnParse");function W$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=rl[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(W$,"urnSerialize");function Y$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!U$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(Y$,"urnuuidParse");function J$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(J$,"urnuuidSerialize");var Ah={scheme:"http",domainHost:!0,parse:$h,serialize:xh},X$={scheme:"https",domainHost:Ah.domainHost,parse:$h,serialize:xh},Cs={scheme:"ws",domainHost:!0,parse:z$,serialize:K$},ex={scheme:"wss",domainHost:Cs.domainHost,parse:Cs.parse,serialize:Cs.serialize},tx={scheme:"urn",parse:Q$,serialize:W$,skipNormalize:!0},rx={scheme:"urn:uuid",parse:Y$,serialize:J$,skipNormalize:!0},rl={http:Ah,https:X$,ws:Cs,wss:ex,urn:tx,"urn:uuid":rx};wh.exports=rl});var Ch=h((ID,Ns)=>{"use strict";var{normalizeIPv6:nx,normalizeIPv4:ix,removeDotSegments:Xi,recomposeAuthority:ox,normalizeComponentEncoding:Rs}=Ph(),nl=Ih();function sx(e,t){return typeof e=="string"?e=_t(Vt(e,t),t):typeof e=="object"&&(e=Vt(_t(e,t),t)),e}o(sx,"normalize");function ax(e,t,r){let n=Object.assign({scheme:"null"},r),i=Th(Vt(e,n),Vt(t,n),n,!0);return _t(i,{...n,skipEscape:!0})}o(ax,"resolve");function Th(e,t,r,n){let i={};return n||(e=Vt(_t(e,r),r),t=Vt(_t(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=Xi(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=Xi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Xi(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=Xi(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}o(Th,"resolveComponents");function cx(e,t,r){return typeof e=="string"?(e=unescape(e),e=_t(Rs(Vt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=_t(Rs(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=_t(Rs(Vt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=_t(Rs(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(cx,"equal");function _t(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=[],s=nl[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.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=ox(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&&(!s||!s.absolutePath)&&(c=Xi(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("")}o(_t,"serialize");var ux=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function lx(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||ux[t])return!0;return!1}o(lx,"nonSimpleDomain");var px=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Vt(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,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(px);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=ix(n.host);if(u.isIPV4===!1){let l=nx(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!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=nl[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&lx(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}o(Vt,"parse");var il={SCHEMES:nl,normalize:sx,resolve:ax,resolveComponents:Th,equal:cx,serialize:_t,parse:Vt};Ns.exports=il;Ns.exports.default=il;Ns.exports.fastUri=il});var Nh=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var Rh=Ch();Rh.code='require("ajv/dist/runtime/uri").default';ol.default=Rh});var Fn=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.CodeGen=fe.Name=fe.nil=fe.stringify=fe.str=fe._=fe.KeywordCxt=void 0;var fx=Wi();Object.defineProperty(fe,"KeywordCxt",{enumerable:!0,get:o(function(){return fx.KeywordCxt},"get")});var Ln=C();Object.defineProperty(fe,"_",{enumerable:!0,get:o(function(){return Ln._},"get")});Object.defineProperty(fe,"str",{enumerable:!0,get:o(function(){return Ln.str},"get")});Object.defineProperty(fe,"stringify",{enumerable:!0,get:o(function(){return Ln.stringify},"get")});Object.defineProperty(fe,"nil",{enumerable:!0,get:o(function(){return Ln.nil},"get")});Object.defineProperty(fe,"Name",{enumerable:!0,get:o(function(){return Ln.Name},"get")});Object.defineProperty(fe,"CodeGen",{enumerable:!0,get:o(function(){return Ln.CodeGen},"get")});var dx=Is(),Dh=Yi(),mx=Cu(),eo=Ji(),hx=C(),to=zi(),ks=Zi(),al=q(),kh=dh(),gx=Nh(),Lh=o((e,t)=>new RegExp(e,t),"defaultRegExp");Lh.code="new RegExp";var yx=["removeAdditional","useDefaults","coerceTypes"],Sx=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),vx={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."},bx={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jh=200;function _x(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,S,v,b,E,P,_,w,I,Y,Q;let j=e.strict,A=(t=e.code)===null||t===void 0?void 0:t.optimize,ce=A===!0||A===void 0?1:A||0,Mt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Lh,Dt=(i=e.uriResolver)!==null&&i!==void 0?i:gx.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:j)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:j)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:j)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:j)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:j)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:ce,regExp:Mt}:{optimize:ce,regExp:Mt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:jh,loopEnum:(S=e.loopEnum)!==null&&S!==void 0?S:jh,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(I=e.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(Y=e.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(Q=e.int32range)!==null&&Q!==void 0?Q:!0,uriResolver:Dt}}o(_x,"requiredOptions");var cl=class cl{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._x(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new hx.ValueScope({scope:{},prefixes:Sx,es5:r,lines:n}),this.logger=Ax(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,mx.getRules)(),qh.call(this,vx,t,"NOT SUPPORTED"),qh.call(this,bx,t,"DEPRECATED","warn"),this._metaOpts=$x.call(this),t.formats&&Px.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ox.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Ex.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=kh;n==="id"&&(i={...kh},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 s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(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 Dh.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 s.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 s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,to.normalizeId)(r||s),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 s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Mh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new eo.SchemaEnv({schema:{},schemaId:n});if(r=eo.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=Mh.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,to.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(Ix.call(this,n,r),!r)return(0,al.eachItem)(n,s=>sl.call(this,s)),this;Cx.call(this,r);let i={...r,type:(0,ks.getJSONTypes)(r.type),schemaType:(0,ks.getJSONTypes)(r.schemaType)};return(0,al.eachItem)(n,i.type.length===0?s=>sl.call(this,s,i):s=>i.type.forEach(a=>sl.call(this,s,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(s=>s.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,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)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]=Fh(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,s=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,to.normalizeId)(a||n);let l=to.getSchemaRefs.call(this,t,n);return u=new eo.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!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):eo.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{eo.compileSchema.call(this,t)}finally{this.opts=r}}};o(cl,"Ajv");var ro=cl;ro.ValidationError=dx.default;ro.MissingRefError=Dh.default;fe.default=ro;function qh(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(qh,"checkOptions");function Mh(e){return e=(0,to.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Mh,"getSchEnv");function Ex(){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)}o(Ex,"addInitialSchemas");function Px(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(Px,"addInitialFormats");function Ox(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)}}o(Ox,"addInitialKeywords");function $x(){let e={...this.opts};for(let t of yx)delete e[t];return e}o($x,"getMetaSchemaOptions");var xx={log(){},warn(){},error(){}};function Ax(e){if(e===!1)return xx;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")}o(Ax,"getLogger");var wx=/^[a-z_$][a-z0-9_$:-]*$/i;function Ix(e,t){let{RULES:r}=this;if((0,al.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wx.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')}o(Ix,"checkKeyword");function sl(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:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,ks.getJSONTypes)(t.type),schemaType:(0,ks.getJSONTypes)(t.schemaType)}};t.before?Tx.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(sl,"addRule");function Tx(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`))}o(Tx,"addBeforeRule");function Cx(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Fh(t)),e.validateSchema=this.compile(t,!0))}o(Cx,"keywordMetaschema");var Rx={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fh(e){return{anyOf:[e,Rx]}}o(Fh,"schemaOrData")});var no=h(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.callRef=Ur.getValidate=void 0;var Nx=Yi(),Hh=Qe(),qe=C(),Hn=Ke(),Vh=Ji(),js=q(),kx={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Vh.resolveRef.call(u,l,i,r);if(f===void 0)throw new Nx.default(n.opts.uriResolver,i,r);if(f instanceof Vh.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return qs(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return qs(e,(0,qe._)`${g}.validate`,l,l.$async)}function d(g){let y=Bh(e,g);qs(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,qe.stringify)(g)}:{ref:g}),S=t.name("valid"),v=e.subschema({schema:g,dataTypes:[],schemaPath:qe.nil,topSchemaRef:y,errSchemaPath:r},S);e.mergeEvaluated(v),e.ok(S)}}};function Bh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,qe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Bh,"getValidate");Ur.getValidate=Bh;function qs(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Hn.default.this:qe.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,qe._)`await ${(0,Hh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,qe._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,Hh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,qe._)`${g}.errors`;i.assign(Hn.default.vErrors,(0,qe._)`${Hn.default.vErrors} === null ? ${y} : ${Hn.default.vErrors}.concat(${y})`),i.assign(Hn.default.errors,(0,qe._)`${Hn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let S=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(s.props=js.mergeEvaluated.props(i,S.props,s.props));else{let v=i.var("props",(0,qe._)`${g}.evaluated.props`);s.props=js.mergeEvaluated.props(i,v,s.props,qe.Name)}if(s.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(s.items=js.mergeEvaluated.items(i,S.items,s.items));else{let v=i.var("items",(0,qe._)`${g}.evaluated.items`);s.items=js.mergeEvaluated.items(i,v,s.items,qe.Name)}}o(m,"addEvaluatedFrom")}o(qs,"callRef");Ur.callRef=qs;Ur.default=kx});var Gh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var jx=no(),qx=["$schema","id","$defs",{keyword:"$comment"},"definitions",jx.default];ul.default=qx});var Uh=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var ll=Fn(),Mx=C(),ur=Mx.operators,pl={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:ur.LTE,fail:ur.GT},{okStr:"<",ok:ur.LT,fail:ur.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:ur.GTE,fail:ur.LT},{okStr:">",ok:ur.GT,fail:ur.LTE}]}},Dx={message:o(e=>ll.str`must be ${fl(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>ll._`{comparison: ${fl(e).okStr}, limit: ${e.schemaCode}}`,"params")},Lx={keyword:Object.keys(pl),type:"number",schemaType:"number",$data:!0,error:Dx,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ll._`${t} ${fl(e).fail} ${r} || isNaN(${t})`)}};function fl(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[pl[r].exclusive]?1:0;return pl[r].ops[n]}o(fl,"kwdOp");dl.default=Lx});var zh=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var Zh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Fx={keyword:Object.keys(Zh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Zh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ml.default=Fx});var gl=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var io=C(),Hx={message:o(({schemaCode:e})=>(0,io.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,io._)`{multipleOf: ${e}}`,"params")},Vx={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Hx,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,io._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,io._)`${a} !== parseInt(${a})`;e.fail$data((0,io._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};hl.default=Vx});var Qh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});function Kh(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}o(Kh,"ucs2length");yl.default=Kh;Kh.code='require("ajv/dist/runtime/ucs2length").default'});var vl=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Zr=C(),Bx=q(),Gx=Qh(),Ux={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Zr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Zr._)`{limit: ${e}}`,"params")},Zx={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ux,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Zr.operators.GT:Zr.operators.LT,a=i.opts.unicode===!1?(0,Zr._)`${r}.length`:(0,Zr._)`${(0,Bx.useFunc)(e.gen,Gx.default)}(${r})`;e.fail$data((0,Zr._)`${a} ${s} ${n}`)}};Sl.default=Zx});var _l=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var zx=Qe(),Ms=C(),Kx={message:o(({schemaCode:e})=>(0,Ms.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Ms._)`{pattern: ${e}}`,"params")},Qx={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Kx,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Ms._)`(new RegExp(${i}, ${a}))`:(0,zx.usePattern)(e,n);e.fail$data((0,Ms._)`!${c}.test(${t})`)}};bl.default=Qx});var Pl=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var oo=C(),Wx={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,oo.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,oo._)`{limit: ${e}}`,"params")},Yx={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Wx,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?oo.operators.GT:oo.operators.LT;e.fail$data((0,oo._)`Object.keys(${r}).length ${i} ${n}`)}};El.default=Yx});var $l=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var so=Qe(),ao=C(),Jx=q(),Xx={message:o(({params:{missingProperty:e}})=>(0,ao.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,ao._)`{missingProperty: ${e}}`,"params")},e1={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Xx,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&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 S=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${y}" is not defined at "${S}" (strictRequired)`;(0,Jx.checkStrictMode)(a,v,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(ao.nil,p);else for(let m of r)(0,so.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,so.checkMissingProp)(e,r,m)),(0,so.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,so.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,so.propertyInData)(t,i,m,c.ownProperties)),t.if((0,ao.not)(g),()=>{e.error(),t.break()})},ao.nil)}o(d,"loopUntilMissing")}};Ol.default=e1});var Al=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var co=C(),t1={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,co.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,co._)`{limit: ${e}}`,"params")},r1={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:t1,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?co.operators.GT:co.operators.LT;e.fail$data((0,co._)`${r}.length ${i} ${n}`)}};xl.default=r1});var Ds=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Wh=Lu();Wh.code='require("ajv/dist/runtime/equal").default';wl.default=Wh});var Cl=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Il=Zi(),de=C(),n1=q(),i1=Ds(),o1={message:o(({params:{i:e,j:t}})=>(0,de.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,de._)`{i: ${e}, j: ${t}}`,"params")},s1={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:o1,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Il.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,de._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,de._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,de._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let S=t.name("item"),v=(0,Il.checkDataTypes)(l,S,c.opts.strictNumbers,Il.DataType.Wrong),b=t.const("indices",(0,de._)`{}`);t.for((0,de._)`;${g}--;`,()=>{t.let(S,(0,de._)`${r}[${g}]`),t.if(v,(0,de._)`continue`),l.length>1&&t.if((0,de._)`typeof ${S} == "string"`,(0,de._)`${S} += "_"`),t.if((0,de._)`typeof ${b}[${S}] == "number"`,()=>{t.assign(y,(0,de._)`${b}[${S}]`),e.error(),t.assign(u,!1).break()}).code((0,de._)`${b}[${S}] = ${g}`)})}o(d,"loopN");function m(g,y){let S=(0,n1.useFunc)(t,i1.default),v=t.name("outer");t.label(v).for((0,de._)`;${g}--;`,()=>t.for((0,de._)`${y} = ${g}; ${y}--;`,()=>t.if((0,de._)`${S}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}o(m,"loopN2")}};Tl.default=s1});var kl=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Rl=C(),a1=q(),c1=Ds(),u1={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Rl._)`{allowedValue: ${e}}`,"params")},l1={keyword:"const",$data:!0,error:u1,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Rl._)`!${(0,a1.useFunc)(t,c1.default)}(${r}, ${i})`):e.fail((0,Rl._)`${s} !== ${r}`)}};Nl.default=l1});var ql=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var uo=C(),p1=q(),f1=Ds(),d1={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,uo._)`{allowedValues: ${e}}`,"params")},m1={keyword:"enum",schemaType:"array",$data:!0,error:d1,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,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=o(()=>u??(u=(0,p1.useFunc)(t,f1.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",s);f=(0,uo.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,uo._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,uo._)`${l()}(${r}, ${m}[${g}])`:(0,uo._)`${r} === ${y}`}o(d,"equalCode")}};jl.default=m1});var Yh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var h1=Uh(),g1=zh(),y1=gl(),S1=vl(),v1=_l(),b1=Pl(),_1=$l(),E1=Al(),P1=Cl(),O1=kl(),$1=ql(),x1=[h1.default,g1.default,y1.default,S1.default,v1.default,b1.default,_1.default,E1.default,P1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},O1.default,$1.default];Ml.default=x1});var Ll=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.validateAdditionalItems=void 0;var zr=C(),Dl=q(),A1={message:o(({params:{len:e}})=>(0,zr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,zr._)`{limit: ${e}}`,"params")},w1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:A1,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Dl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Jh(e,n)}};function Jh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,zr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,zr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Dl.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,zr._)`${c} <= ${t.length}`);r.if((0,zr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Dl.Type.Num},l),a.allErrors||r.if((0,zr.not)(l),()=>r.break())})}o(u,"validateItems")}o(Jh,"validateAdditionalItems");lo.validateAdditionalItems=Jh;lo.default=w1});var Fl=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.validateTuple=void 0;var Xh=C(),Ls=q(),I1=Qe(),T1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eg(e,"additionalItems",t);r.items=!0,!(0,Ls.alwaysValidSchema)(r,t)&&e.ok((0,I1.validateArray)(e))}};function eg(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Ls.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Xh._)`${s}.length`);r.forEach((p,d)=>{(0,Ls.alwaysValidSchema)(c,p)||(n.if((0,Xh._)`${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 S=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Ls.checkStrictMode)(c,S,d.strictTuples)}}o(f,"checkStrictTuple")}o(eg,"validateTuple");po.validateTuple=eg;po.default=T1});var tg=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var C1=Fl(),R1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,C1.validateTuple)(e,"items"),"code")};Hl.default=R1});var ng=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var rg=C(),N1=q(),k1=Qe(),j1=Ll(),q1={message:o(({params:{len:e}})=>(0,rg.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,rg._)`{limit: ${e}}`,"params")},M1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:q1,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,N1.alwaysValidSchema)(n,t)&&(i?(0,j1.validateAdditionalItems)(e,i):e.ok((0,k1.validateArray)(e)))}};Vl.default=M1});var ig=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var Ye=C(),Fs=q(),D1={message:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye.str)`must contain at least ${e} valid item(s)`:(0,Ye.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye._)`{minContains: ${e}}`:(0,Ye._)`{minContains: ${e}, maxContains: ${t}}`,"params")},L1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:D1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Ye._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Fs.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Fs.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Fs.alwaysValidSchema)(s,r)){let y=(0,Ye._)`${f} >= ${a}`;c!==void 0&&(y=(0,Ye._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.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,Ye._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),S=t.let("count",0);m(y,()=>t.if(y,()=>g(S)))}o(d,"validateItemsWithCount");function m(y,S){t.forRange("i",0,f,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Fs.Type.Num,compositeRule:!0},y),S()})}o(m,"validateItems");function g(y){t.code((0,Ye._)`${y}++`),c===void 0?t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ye._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Bl.default=L1});var Hs=h(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.validateSchemaDeps=Et.validatePropertyDeps=Et.error=void 0;var Gl=C(),F1=q(),fo=Qe();Et.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gl._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var H1={keyword:"dependencies",type:"object",schemaType:"object",error:Et.error,code(e){let[t,r]=V1(e);og(e,t),sg(e,r)}};function V1({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]}o(V1,"splitDependencies");function og(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,fo.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,fo.checkReportMissingProp)(e,l)}):(r.if((0,Gl._)`${u} && (${(0,fo.checkMissingProp)(e,c,s)})`),(0,fo.reportMissingProp)(e,s),r.else())}}o(og,"validatePropertyDeps");Et.validatePropertyDeps=og;function sg(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,F1.alwaysValidSchema)(s,t[c])||(r.if((0,fo.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(sg,"validateSchemaDeps");Et.validateSchemaDeps=sg;Et.default=H1});var cg=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var ag=C(),B1=j(),G1={message:"property name must be valid",params:o(({params:e})=>(0,ag._)`{propertyName: ${e.propertyName}}`,"params")},U1={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:G1,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,B1.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,ag.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Ul.default=U1});var zl=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Vs=Qe(),ut=C(),Z1=Ke(),Bs=j(),z1={message:"must NOT have additional properties",params:o(({params:e})=>(0,ut._)`{additionalProperty: ${e.additionalProperty}}`,"params")},K1={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:z1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Bs.alwaysValidSchema)(a,r))return;let l=(0,Vs.allSchemaProperties)(n.properties),f=(0,Vs.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ut._)`${s} === ${Z1.default.errors}`);function p(){t.forIn("key",i,S=>{!l.length&&!f.length?g(S):t.if(d(S),()=>g(S))})}o(p,"checkAdditionalProperties");function d(S){let v;if(l.length>8){let b=(0,Bs.schemaRefOrVal)(a,n.properties,"properties");v=(0,Vs.isOwnProperty)(t,b,S)}else l.length?v=(0,ut.or)(...l.map(b=>(0,ut._)`${S} === ${b}`)):v=ut.nil;return f.length&&(v=(0,ut.or)(v,...f.map(b=>(0,ut._)`${(0,Vs.usePattern)(e,b)}.test(${S})`))),(0,ut.not)(v)}o(d,"isAdditional");function m(S){t.code((0,ut._)`delete ${i}[${S}]`)}o(m,"deleteAdditional");function g(S){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(S);return}if(r===!1){e.setParams({additionalProperty:S}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Bs.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?(y(S,v,!1),t.if((0,ut.not)(v),()=>{e.reset(),m(S)})):(y(S,v),c||t.if((0,ut.not)(v),()=>t.break()))}}o(g,"additionalPropertyCode");function y(S,v,b){let E={keyword:"additionalProperties",dataProp:S,dataPropType:Bs.Type.Str};b===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,v)}o(y,"applyAdditionalSchema")}};Zl.default=K1});var pg=h(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Q1=Wi(),ug=Qe(),Kl=j(),lg=zl(),W1={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&lg.default.code(new Q1.KeywordCxt(s,lg.default,"additionalProperties"));let a=(0,ug.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Kl.mergeEvaluated.props(t,(0,Kl.toHash)(a),s.props));let c=a.filter(p=>!(0,Kl.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,ug.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Ql.default=W1});var hg=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var fg=Qe(),Gs=C(),dg=j(),mg=j(),Y1={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,fg.allSchemaProperties)(r),u=c.filter(y=>(0,dg.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof Gs.Name)&&(s.props=(0,mg.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let S in l)new RegExp(y).test(S)&&(0,dg.checkStrictMode)(s,`property ${S} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,S=>{t.if((0,Gs._)`${(0,fg.usePattern)(e,y)}.test(${S})`,()=>{let v=u.includes(y);v||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:S,dataPropType:mg.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Gs._)`${p}[${S}]`,!0):!v&&!s.allErrors&&t.if((0,Gs.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Wl.default=Y1});var gg=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var J1=j(),X1={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,J1.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"}};Yl.default=X1});var yg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var eA=Qe(),tA={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eA.validateUnion,error:{message:"must match a schema in anyOf"}};Jl.default=tA});var Sg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Us=C(),rA=j(),nA={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Us._)`{passingSchemas: ${e.passing}}`,"params")},iA={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nA,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 s=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(){s.forEach((f,p)=>{let d;(0,rA.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Us._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Us._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Us.Name)})})}o(l,"validateOneOf")}};Xl.default=iA});var vg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var oA=j(),sA={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((s,a)=>{if((0,oA.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};ep.default=sA});var Eg=h(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Zs=C(),_g=j(),aA={message:o(({params:e})=>(0,Zs.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Zs._)`{failingKeyword: ${e.ifClause}}`,"params")},cA={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:aA,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_g.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=bg(n,"then"),s=bg(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){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,Zs.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)}o(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,Zs._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function bg(e,t){let r=e.schema[t];return r!==void 0&&!(0,_g.alwaysValidSchema)(e,r)}o(bg,"hasSchema");tp.default=cA});var Pg=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var uA=j(),lA={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uA.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};rp.default=lA});var ip=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var pA=Ll(),fA=tg(),dA=Fl(),mA=ng(),hA=ig(),gA=Hs(),yA=cg(),SA=zl(),vA=pg(),bA=hg(),_A=gg(),EA=yg(),PA=Sg(),OA=vg(),$A=Eg(),xA=Pg();function AA(e=!1){let t=[_A.default,EA.default,PA.default,OA.default,$A.default,xA.default,yA.default,SA.default,gA.default,vA.default,bA.default];return e?t.push(fA.default,mA.default):t.push(pA.default,dA.default),t.push(hA.default),t}o(AA,"getApplicator");np.default=AA});var Og=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var re=C(),wA={message:o(({schemaCode:e})=>(0,re.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,re._)`{format: ${e}}`,"params")},IA={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wA,code(e,t){let{gen:r,data:n,$data:i,schema:s,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,re._)`${g}[${a}]`),S=r.let("fType"),v=r.let("format");r.if((0,re._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(S,(0,re._)`${y}.type || "string"`).assign(v,(0,re._)`${y}.validate`),()=>r.assign(S,(0,re._)`"string"`).assign(v,y)),e.fail$data((0,re.or)(b(),E()));function b(){return u.strictSchema===!1?re.nil:(0,re._)`${a} && !${v}`}o(b,"unknownFmt");function E(){let P=f.$async?(0,re._)`(${y}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,re._)`${v}(${n})`,_=(0,re._)`(typeof ${v} == "function" ? ${P} : ${v}.test(${n}))`;return(0,re._)`${v} && ${v} !== true && ${S} === ${t} && !${_}`}o(E,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,S,v]=E(g);y===t&&e.pass(P());function b(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function E(_){let A=_ instanceof RegExp?(0,re.regexpCode)(_):u.code.formats?(0,re._)`${u.code.formats}${(0,re.getProperty)(s)}`:void 0,I=r.scopeValue("formats",{key:s,ref:_,code:A});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,re._)`${I}.validate`]:["string",_,I]}o(E,"getFormat");function P(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,re._)`await ${v}(${n})`}return typeof S=="function"?(0,re._)`${v}(${n})`:(0,re._)`${v}.test(${n})`}o(P,"validCondition")}o(m,"validateFormat")}};op.default=IA});var ap=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var TA=Og(),CA=[TA.default];sp.default=CA});var $g=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var RA=Gh(),NA=Yh(),kA=ip(),jA=ap(),qA=["title","description","default"],MA=[RA.default,NA.default,kA.default(),jA.default,qA];cp.default=MA});var Ag=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DiscrError=void 0;var xg;(function(e){e.Tag="tag",e.Mapping="mapping"})(xg||(zs.DiscrError=xg={}))});var pp=h(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var Vn=C(),up=Ag(),wg=Ji(),DA=Yi(),LA=j(),FA={message:o(({params:{discrError:e,tagName:t}})=>e===up.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Vn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},HA={keyword:"discriminator",type:"object",schemaType:"object",error:FA,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.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,Vn._)`${r}${(0,Vn.getProperty)(c)}`);t.if((0,Vn._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:up.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,Vn._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:up.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,Vn.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=v(i),S=!0;for(let P=0;P<a.length;P++){let _=a[P];if(_!=null&&_.$ref&&!(0,LA.schemaHasRulesButRef)(_,s.self.RULES)){let I=_.$ref;if(_=wg.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,I),_ instanceof wg.SchemaEnv&&(_=_.schema),_===void 0)throw new DA.default(s.opts.uriResolver,s.baseId,I)}let A=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);S=S&&(y||v(_)),b(A,P)}if(!S)throw new Error(`discriminator: "${c}" must be required`);return g;function v({required:P}){return Array.isArray(P)&&P.includes(c)}function b(P,_){if(P.const)E(P.const,_);else if(P.enum)for(let A of P.enum)E(A,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function E(P,_){if(typeof P!="string"||P in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[P]=_}}o(d,"getMapping")}};lp.default=HA});var Ig=h((U4,VA)=>{VA.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 Rg=h((se,Cg)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.CodeGen=se.Name=se.nil=se.stringify=se.str=se._=se.KeywordCxt=void 0;var BA=Fn(),GA=$g(),UA=pp(),Tg=Ig(),ZA=["/properties"],Ks="http://json-schema.org/draft-04/schema",fp=class fp extends BA.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),GA.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(UA.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Tg,ZA):Tg;this.addMetaSchema(t,Ks,!1),this.refs["http://json-schema.org/schema"]=Ks}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ks)?Ks:void 0)}};o(fp,"Ajv");var Qs=fp;Cg.exports=se=Qs;Object.defineProperty(se,"__esModule",{value:!0});se.default=Qs;var zA=Fn();Object.defineProperty(se,"KeywordCxt",{enumerable:!0,get:o(function(){return zA.KeywordCxt},"get")});var Bn=Fn();Object.defineProperty(se,"_",{enumerable:!0,get:o(function(){return Bn._},"get")});Object.defineProperty(se,"str",{enumerable:!0,get:o(function(){return Bn.str},"get")});Object.defineProperty(se,"stringify",{enumerable:!0,get:o(function(){return Bn.stringify},"get")});Object.defineProperty(se,"nil",{enumerable:!0,get:o(function(){return Bn.nil},"get")});Object.defineProperty(se,"Name",{enumerable:!0,get:o(function(){return Bn.Name},"get")});Object.defineProperty(se,"CodeGen",{enumerable:!0,get:o(function(){return Bn.CodeGen},"get")})});var Ng=h(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var KA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dp.default=KA});var kg=h(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var QA=Ng(),WA=no(),YA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",QA.default,WA.default];mp.default=YA});var jg=h(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Ws=C(),lr=Ws.operators,Ys={maximum:{okStr:"<=",ok:lr.LTE,fail:lr.GT},minimum:{okStr:">=",ok:lr.GTE,fail:lr.LT},exclusiveMaximum:{okStr:"<",ok:lr.LT,fail:lr.GTE},exclusiveMinimum:{okStr:">",ok:lr.GT,fail:lr.LTE}},JA={message:o(({keyword:e,schemaCode:t})=>(0,Ws.str)`must be ${Ys[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Ws._)`{comparison: ${Ys[e].okStr}, limit: ${t}}`,"params")},XA={keyword:Object.keys(Ys),type:"number",schemaType:"number",$data:!0,error:JA,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ws._)`${r} ${Ys[t].fail} ${n} || isNaN(${r})`)}};hp.default=XA});var qg=h(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var ew=jg(),tw=gl(),rw=vl(),nw=_l(),iw=Pl(),ow=$l(),sw=Al(),aw=Cl(),cw=kl(),uw=ql(),lw=[ew.default,tw.default,rw.default,nw.default,iw.default,ow.default,sw.default,aw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cw.default,uw.default];gp.default=lw});var Sp=h(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.dynamicAnchor=void 0;var yp=C(),pw=Ke(),Mg=Ji(),fw=no(),dw={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Dg(e,e.schema),"code")};function Dg(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,yp._)`${pw.default.dynamicAnchors}${(0,yp.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:mw(e);r.if((0,yp._)`!${i}`,()=>r.assign(i,s))}o(Dg,"dynamicAnchor");mo.dynamicAnchor=Dg;function mw(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Mg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Mg.compileSchema.call(n,l),(0,fw.getValidate)(e,l)}o(mw,"_getValidate");mo.default=dw});var vp=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.dynamicRef=void 0;var Lg=C(),hw=Ke(),Fg=no(),gw={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Hg(e,e.schema),"code")};function Hg(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=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[s]){let l=r.let("_v",(0,Lg._)`${hw.default.dynamicAnchors}${(0,Lg.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Fg.callRef)(e,u),r.let(l,!0)}):()=>(0,Fg.callRef)(e,u)}o(c,"_callRef")}o(Hg,"dynamicRef");ho.dynamicRef=Hg;ho.default=gw});var Vg=h(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var yw=Sp(),Sw=j(),vw={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,yw.dynamicAnchor)(e,""):(0,Sw.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};bp.default=vw});var Bg=h(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var bw=vp(),_w={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,bw.dynamicRef)(e,e.schema),"code")};_p.default=_w});var Gg=h(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});var Ew=Sp(),Pw=vp(),Ow=Vg(),$w=Bg(),xw=[Ew.default,Pw.default,Ow.default,$w.default];Ep.default=xw});var Zg=h(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var Ug=Hs(),Aw={keyword:"dependentRequired",type:"object",schemaType:"object",error:Ug.error,code:o(e=>(0,Ug.validatePropertyDeps)(e),"code")};Pp.default=Aw});var zg=h(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var ww=Hs(),Iw={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,ww.validateSchemaDeps)(e),"code")};Op.default=Iw});var Kg=h($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var Tw=j(),Cw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Tw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};$p.default=Cw});var Qg=h(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Rw=Zg(),Nw=zg(),kw=Kg(),jw=[Rw.default,Nw.default,kw.default];xp.default=jw});var Yg=h(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var pr=C(),Wg=j(),qw=Ke(),Mw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,pr._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Dw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Mw,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof pr.Name?t.if((0,pr._)`${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))),s.props=!0,e.ok((0,pr._)`${i} === ${qw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Wg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Wg.Type.Str},d),a||t.if((0,pr.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,pr._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,pr._)`${d} !== ${g}`);return(0,pr.and)(...m)}o(f,"unevaluatedStatic")}};Ap.default=Dw});var Xg=h(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Qr=C(),Jg=j(),Lw={message:o(({params:{len:e}})=>(0,Qr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Qr._)`{limit: ${e}}`,"params")},Fw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Lw,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Qr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Qr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Jg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Qr._)`${a} <= ${s}`);t.if((0,Qr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Jg.Type.Num},u),i.allErrors||t.if((0,Qr.not)(u),()=>t.break())})}o(c,"validateItems")}};wp.default=Fw});var ey=h(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var Hw=Yg(),Vw=Xg(),Bw=[Hw.default,Vw.default];Ip.default=Bw});var ty=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.contentVocabulary=Gn.metadataVocabulary=void 0;Gn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Gn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ny=h(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Gw=kg(),Uw=qg(),Zw=ip(),zw=Gg(),Kw=Qg(),Qw=ey(),Ww=ap(),ry=ty(),Yw=[zw.default,Gw.default,Uw.default,(0,Zw.default)(!0),Ww.default,ry.metadataVocabulary,ry.contentVocabulary,Kw.default,Qw.default];Tp.default=Yw});var iy=h((vL,Jw)=>{Jw.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 oy=h((bL,Xw)=>{Xw.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 sy=h((_L,eI)=>{eI.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 ay=h((EL,tI)=>{tI.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 cy=h((PL,rI)=>{rI.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 uy=h((OL,nI)=>{nI.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 ly=h(($L,iI)=>{iI.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 py=h((xL,oI)=>{oI.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 fy=h(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var sI=iy(),aI=oy(),cI=sy(),uI=ay(),lI=cy(),pI=uy(),fI=ly(),dI=py(),mI=["/properties"];function hI(e){return[sI,aI,cI,uI,lI,t(this,pI),fI,t(this,dI)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,mI):n}o(t,"with$data")}o(hI,"addMetaSchema2020");Cp.default=hI});var dy=h((Q,Np)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.MissingRefError=Q.ValidationError=Q.CodeGen=Q.Name=Q.nil=Q.stringify=Q.str=Q._=Q.KeywordCxt=Q.Ajv2020=void 0;var gI=Fn(),yI=ny(),SI=pp(),vI=fy(),Rp="https://json-schema.org/draft/2020-12/schema",kp=class kp extends gI.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),yI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(SI.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(vI.default.call(this,t),this.refs["http://json-schema.org/schema"]=Rp)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Rp)?Rp:void 0)}};o(kp,"Ajv2020");var Un=kp;Q.Ajv2020=Un;Np.exports=Q=Un;Np.exports.Ajv2020=Un;Object.defineProperty(Q,"__esModule",{value:!0});Q.default=Un;var bI=Wi();Object.defineProperty(Q,"KeywordCxt",{enumerable:!0,get:o(function(){return bI.KeywordCxt},"get")});var Zn=C();Object.defineProperty(Q,"_",{enumerable:!0,get:o(function(){return Zn._},"get")});Object.defineProperty(Q,"str",{enumerable:!0,get:o(function(){return Zn.str},"get")});Object.defineProperty(Q,"stringify",{enumerable:!0,get:o(function(){return Zn.stringify},"get")});Object.defineProperty(Q,"nil",{enumerable:!0,get:o(function(){return Zn.nil},"get")});Object.defineProperty(Q,"Name",{enumerable:!0,get:o(function(){return Zn.Name},"get")});Object.defineProperty(Q,"CodeGen",{enumerable:!0,get:o(function(){return Zn.CodeGen},"get")});var _I=Is();Object.defineProperty(Q,"ValidationError",{enumerable:!0,get:o(function(){return _I.default},"get")});var EI=Yi();Object.defineProperty(Q,"MissingRefError",{enumerable:!0,get:o(function(){return EI.default},"get")})});var my=h((TL,PI)=>{PI.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 hy=h((CL,OI)=>{OI.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 gy=h((RL,$I)=>{$I.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 yy=h((NL,xI)=>{xI.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 Sy=h((ue,zn)=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.openapi=ue.openapiV31=ue.openapiV3=ue.openapiV2=ue.openapiV1=void 0;ue.openapiV1=my();ue.openapiV2=hy();ue.openapiV3=gy();ue.openapiV31=yy();ue.openapi={v1:ue.openapiV1,v2:ue.openapiV2,v3:ue.openapiV3,v31:ue.openapiV31};ue.default=ue.openapi;typeof zn=="object"&&typeof zn.exports=="object"&&(zn.exports=Object.assign(zn.exports.default,zn.exports))});var Mp=h((kL,vy)=>{"use strict";var AI=ls(),{ono:wI}=ot(),II=Rg(),TI=dy(),{openapi:jp}=Sy();vy.exports=CI;function CI(e){let t,r;if(e.swagger)r=jp.v2,t=qp();else if(e.openapi.startsWith("3.1")){r=jp.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=qp(!1)}else r=jp.v3,t=qp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
12
+ deps: ${r}}`,"params")};var H1={keyword:"dependencies",type:"object",schemaType:"object",error:Et.error,code(e){let[t,r]=V1(e);og(e,t),sg(e,r)}};function V1({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]}o(V1,"splitDependencies");function og(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,fo.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,fo.checkReportMissingProp)(e,l)}):(r.if((0,Gl._)`${u} && (${(0,fo.checkMissingProp)(e,c,s)})`),(0,fo.reportMissingProp)(e,s),r.else())}}o(og,"validatePropertyDeps");Et.validatePropertyDeps=og;function sg(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,F1.alwaysValidSchema)(s,t[c])||(r.if((0,fo.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(sg,"validateSchemaDeps");Et.validateSchemaDeps=sg;Et.default=H1});var cg=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var ag=C(),B1=q(),G1={message:"property name must be valid",params:o(({params:e})=>(0,ag._)`{propertyName: ${e.propertyName}}`,"params")},U1={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:G1,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,B1.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,ag.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Ul.default=U1});var zl=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Vs=Qe(),ut=C(),Z1=Ke(),Bs=q(),z1={message:"must NOT have additional properties",params:o(({params:e})=>(0,ut._)`{additionalProperty: ${e.additionalProperty}}`,"params")},K1={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:z1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Bs.alwaysValidSchema)(a,r))return;let l=(0,Vs.allSchemaProperties)(n.properties),f=(0,Vs.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ut._)`${s} === ${Z1.default.errors}`);function p(){t.forIn("key",i,S=>{!l.length&&!f.length?g(S):t.if(d(S),()=>g(S))})}o(p,"checkAdditionalProperties");function d(S){let v;if(l.length>8){let b=(0,Bs.schemaRefOrVal)(a,n.properties,"properties");v=(0,Vs.isOwnProperty)(t,b,S)}else l.length?v=(0,ut.or)(...l.map(b=>(0,ut._)`${S} === ${b}`)):v=ut.nil;return f.length&&(v=(0,ut.or)(v,...f.map(b=>(0,ut._)`${(0,Vs.usePattern)(e,b)}.test(${S})`))),(0,ut.not)(v)}o(d,"isAdditional");function m(S){t.code((0,ut._)`delete ${i}[${S}]`)}o(m,"deleteAdditional");function g(S){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(S);return}if(r===!1){e.setParams({additionalProperty:S}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Bs.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?(y(S,v,!1),t.if((0,ut.not)(v),()=>{e.reset(),m(S)})):(y(S,v),c||t.if((0,ut.not)(v),()=>t.break()))}}o(g,"additionalPropertyCode");function y(S,v,b){let E={keyword:"additionalProperties",dataProp:S,dataPropType:Bs.Type.Str};b===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,v)}o(y,"applyAdditionalSchema")}};Zl.default=K1});var pg=h(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Q1=Wi(),ug=Qe(),Kl=q(),lg=zl(),W1={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&lg.default.code(new Q1.KeywordCxt(s,lg.default,"additionalProperties"));let a=(0,ug.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Kl.mergeEvaluated.props(t,(0,Kl.toHash)(a),s.props));let c=a.filter(p=>!(0,Kl.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,ug.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Ql.default=W1});var hg=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var fg=Qe(),Gs=C(),dg=q(),mg=q(),Y1={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,fg.allSchemaProperties)(r),u=c.filter(y=>(0,dg.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof Gs.Name)&&(s.props=(0,mg.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let S in l)new RegExp(y).test(S)&&(0,dg.checkStrictMode)(s,`property ${S} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,S=>{t.if((0,Gs._)`${(0,fg.usePattern)(e,y)}.test(${S})`,()=>{let v=u.includes(y);v||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:S,dataPropType:mg.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Gs._)`${p}[${S}]`,!0):!v&&!s.allErrors&&t.if((0,Gs.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Wl.default=Y1});var gg=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var J1=q(),X1={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,J1.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"}};Yl.default=X1});var yg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var eA=Qe(),tA={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eA.validateUnion,error:{message:"must match a schema in anyOf"}};Jl.default=tA});var Sg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Us=C(),rA=q(),nA={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Us._)`{passingSchemas: ${e.passing}}`,"params")},iA={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nA,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 s=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(){s.forEach((f,p)=>{let d;(0,rA.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Us._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Us._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Us.Name)})})}o(l,"validateOneOf")}};Xl.default=iA});var vg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var oA=q(),sA={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((s,a)=>{if((0,oA.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};ep.default=sA});var Eg=h(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Zs=C(),_g=q(),aA={message:o(({params:e})=>(0,Zs.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Zs._)`{failingKeyword: ${e.ifClause}}`,"params")},cA={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:aA,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_g.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=bg(n,"then"),s=bg(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){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,Zs.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)}o(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,Zs._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function bg(e,t){let r=e.schema[t];return r!==void 0&&!(0,_g.alwaysValidSchema)(e,r)}o(bg,"hasSchema");tp.default=cA});var Pg=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var uA=q(),lA={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uA.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};rp.default=lA});var ip=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var pA=Ll(),fA=tg(),dA=Fl(),mA=ng(),hA=ig(),gA=Hs(),yA=cg(),SA=zl(),vA=pg(),bA=hg(),_A=gg(),EA=yg(),PA=Sg(),OA=vg(),$A=Eg(),xA=Pg();function AA(e=!1){let t=[_A.default,EA.default,PA.default,OA.default,$A.default,xA.default,yA.default,SA.default,gA.default,vA.default,bA.default];return e?t.push(fA.default,mA.default):t.push(pA.default,dA.default),t.push(hA.default),t}o(AA,"getApplicator");np.default=AA});var Og=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var te=C(),wA={message:o(({schemaCode:e})=>(0,te.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,te._)`{format: ${e}}`,"params")},IA={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wA,code(e,t){let{gen:r,data:n,$data:i,schema:s,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,te._)`${g}[${a}]`),S=r.let("fType"),v=r.let("format");r.if((0,te._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(S,(0,te._)`${y}.type || "string"`).assign(v,(0,te._)`${y}.validate`),()=>r.assign(S,(0,te._)`"string"`).assign(v,y)),e.fail$data((0,te.or)(b(),E()));function b(){return u.strictSchema===!1?te.nil:(0,te._)`${a} && !${v}`}o(b,"unknownFmt");function E(){let P=f.$async?(0,te._)`(${y}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,te._)`${v}(${n})`,_=(0,te._)`(typeof ${v} == "function" ? ${P} : ${v}.test(${n}))`;return(0,te._)`${v} && ${v} !== true && ${S} === ${t} && !${_}`}o(E,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,S,v]=E(g);y===t&&e.pass(P());function b(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function E(_){let w=_ instanceof RegExp?(0,te.regexpCode)(_):u.code.formats?(0,te._)`${u.code.formats}${(0,te.getProperty)(s)}`:void 0,I=r.scopeValue("formats",{key:s,ref:_,code:w});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,te._)`${I}.validate`]:["string",_,I]}o(E,"getFormat");function P(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,te._)`await ${v}(${n})`}return typeof S=="function"?(0,te._)`${v}(${n})`:(0,te._)`${v}.test(${n})`}o(P,"validCondition")}o(m,"validateFormat")}};op.default=IA});var ap=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var TA=Og(),CA=[TA.default];sp.default=CA});var $g=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var RA=Gh(),NA=Yh(),kA=ip(),jA=ap(),qA=["title","description","default"],MA=[RA.default,NA.default,kA.default(),jA.default,qA];cp.default=MA});var Ag=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DiscrError=void 0;var xg;(function(e){e.Tag="tag",e.Mapping="mapping"})(xg||(zs.DiscrError=xg={}))});var pp=h(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var Vn=C(),up=Ag(),wg=Ji(),DA=Yi(),LA=q(),FA={message:o(({params:{discrError:e,tagName:t}})=>e===up.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Vn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},HA={keyword:"discriminator",type:"object",schemaType:"object",error:FA,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.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,Vn._)`${r}${(0,Vn.getProperty)(c)}`);t.if((0,Vn._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:up.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,Vn._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:up.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,Vn.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=v(i),S=!0;for(let P=0;P<a.length;P++){let _=a[P];if(_!=null&&_.$ref&&!(0,LA.schemaHasRulesButRef)(_,s.self.RULES)){let I=_.$ref;if(_=wg.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,I),_ instanceof wg.SchemaEnv&&(_=_.schema),_===void 0)throw new DA.default(s.opts.uriResolver,s.baseId,I)}let w=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);S=S&&(y||v(_)),b(w,P)}if(!S)throw new Error(`discriminator: "${c}" must be required`);return g;function v({required:P}){return Array.isArray(P)&&P.includes(c)}function b(P,_){if(P.const)E(P.const,_);else if(P.enum)for(let w of P.enum)E(w,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function E(P,_){if(typeof P!="string"||P in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[P]=_}}o(d,"getMapping")}};lp.default=HA});var Ig=h((U4,VA)=>{VA.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 Rg=h((oe,Cg)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CodeGen=oe.Name=oe.nil=oe.stringify=oe.str=oe._=oe.KeywordCxt=void 0;var BA=Fn(),GA=$g(),UA=pp(),Tg=Ig(),ZA=["/properties"],Ks="http://json-schema.org/draft-04/schema",fp=class fp extends BA.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),GA.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(UA.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Tg,ZA):Tg;this.addMetaSchema(t,Ks,!1),this.refs["http://json-schema.org/schema"]=Ks}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ks)?Ks:void 0)}};o(fp,"Ajv");var Qs=fp;Cg.exports=oe=Qs;Object.defineProperty(oe,"__esModule",{value:!0});oe.default=Qs;var zA=Fn();Object.defineProperty(oe,"KeywordCxt",{enumerable:!0,get:o(function(){return zA.KeywordCxt},"get")});var Bn=Fn();Object.defineProperty(oe,"_",{enumerable:!0,get:o(function(){return Bn._},"get")});Object.defineProperty(oe,"str",{enumerable:!0,get:o(function(){return Bn.str},"get")});Object.defineProperty(oe,"stringify",{enumerable:!0,get:o(function(){return Bn.stringify},"get")});Object.defineProperty(oe,"nil",{enumerable:!0,get:o(function(){return Bn.nil},"get")});Object.defineProperty(oe,"Name",{enumerable:!0,get:o(function(){return Bn.Name},"get")});Object.defineProperty(oe,"CodeGen",{enumerable:!0,get:o(function(){return Bn.CodeGen},"get")})});var Ng=h(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var KA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dp.default=KA});var kg=h(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var QA=Ng(),WA=no(),YA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",QA.default,WA.default];mp.default=YA});var jg=h(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Ws=C(),lr=Ws.operators,Ys={maximum:{okStr:"<=",ok:lr.LTE,fail:lr.GT},minimum:{okStr:">=",ok:lr.GTE,fail:lr.LT},exclusiveMaximum:{okStr:"<",ok:lr.LT,fail:lr.GTE},exclusiveMinimum:{okStr:">",ok:lr.GT,fail:lr.LTE}},JA={message:o(({keyword:e,schemaCode:t})=>(0,Ws.str)`must be ${Ys[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Ws._)`{comparison: ${Ys[e].okStr}, limit: ${t}}`,"params")},XA={keyword:Object.keys(Ys),type:"number",schemaType:"number",$data:!0,error:JA,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ws._)`${r} ${Ys[t].fail} ${n} || isNaN(${r})`)}};hp.default=XA});var qg=h(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var ew=jg(),tw=gl(),rw=vl(),nw=_l(),iw=Pl(),ow=$l(),sw=Al(),aw=Cl(),cw=kl(),uw=ql(),lw=[ew.default,tw.default,rw.default,nw.default,iw.default,ow.default,sw.default,aw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cw.default,uw.default];gp.default=lw});var Sp=h(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.dynamicAnchor=void 0;var yp=C(),pw=Ke(),Mg=Ji(),fw=no(),dw={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Dg(e,e.schema),"code")};function Dg(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,yp._)`${pw.default.dynamicAnchors}${(0,yp.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:mw(e);r.if((0,yp._)`!${i}`,()=>r.assign(i,s))}o(Dg,"dynamicAnchor");mo.dynamicAnchor=Dg;function mw(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Mg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Mg.compileSchema.call(n,l),(0,fw.getValidate)(e,l)}o(mw,"_getValidate");mo.default=dw});var vp=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.dynamicRef=void 0;var Lg=C(),hw=Ke(),Fg=no(),gw={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Hg(e,e.schema),"code")};function Hg(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=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[s]){let l=r.let("_v",(0,Lg._)`${hw.default.dynamicAnchors}${(0,Lg.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Fg.callRef)(e,u),r.let(l,!0)}):()=>(0,Fg.callRef)(e,u)}o(c,"_callRef")}o(Hg,"dynamicRef");ho.dynamicRef=Hg;ho.default=gw});var Vg=h(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var yw=Sp(),Sw=q(),vw={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,yw.dynamicAnchor)(e,""):(0,Sw.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};bp.default=vw});var Bg=h(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var bw=vp(),_w={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,bw.dynamicRef)(e,e.schema),"code")};_p.default=_w});var Gg=h(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});var Ew=Sp(),Pw=vp(),Ow=Vg(),$w=Bg(),xw=[Ew.default,Pw.default,Ow.default,$w.default];Ep.default=xw});var Zg=h(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var Ug=Hs(),Aw={keyword:"dependentRequired",type:"object",schemaType:"object",error:Ug.error,code:o(e=>(0,Ug.validatePropertyDeps)(e),"code")};Pp.default=Aw});var zg=h(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var ww=Hs(),Iw={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,ww.validateSchemaDeps)(e),"code")};Op.default=Iw});var Kg=h($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var Tw=q(),Cw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Tw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};$p.default=Cw});var Qg=h(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Rw=Zg(),Nw=zg(),kw=Kg(),jw=[Rw.default,Nw.default,kw.default];xp.default=jw});var Yg=h(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var pr=C(),Wg=q(),qw=Ke(),Mw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,pr._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Dw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Mw,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof pr.Name?t.if((0,pr._)`${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))),s.props=!0,e.ok((0,pr._)`${i} === ${qw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Wg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Wg.Type.Str},d),a||t.if((0,pr.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,pr._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,pr._)`${d} !== ${g}`);return(0,pr.and)(...m)}o(f,"unevaluatedStatic")}};Ap.default=Dw});var Xg=h(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Kr=C(),Jg=q(),Lw={message:o(({params:{len:e}})=>(0,Kr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Kr._)`{limit: ${e}}`,"params")},Fw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Lw,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Kr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Kr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Jg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Kr._)`${a} <= ${s}`);t.if((0,Kr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Jg.Type.Num},u),i.allErrors||t.if((0,Kr.not)(u),()=>t.break())})}o(c,"validateItems")}};wp.default=Fw});var ey=h(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var Hw=Yg(),Vw=Xg(),Bw=[Hw.default,Vw.default];Ip.default=Bw});var ty=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.contentVocabulary=Gn.metadataVocabulary=void 0;Gn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Gn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ny=h(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Gw=kg(),Uw=qg(),Zw=ip(),zw=Gg(),Kw=Qg(),Qw=ey(),Ww=ap(),ry=ty(),Yw=[zw.default,Gw.default,Uw.default,(0,Zw.default)(!0),Ww.default,ry.metadataVocabulary,ry.contentVocabulary,Kw.default,Qw.default];Tp.default=Yw});var iy=h((vL,Jw)=>{Jw.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 oy=h((bL,Xw)=>{Xw.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 sy=h((_L,eI)=>{eI.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 ay=h((EL,tI)=>{tI.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 cy=h((PL,rI)=>{rI.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 uy=h((OL,nI)=>{nI.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 ly=h(($L,iI)=>{iI.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 py=h((xL,oI)=>{oI.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 fy=h(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var sI=iy(),aI=oy(),cI=sy(),uI=ay(),lI=cy(),pI=uy(),fI=ly(),dI=py(),mI=["/properties"];function hI(e){return[sI,aI,cI,uI,lI,t(this,pI),fI,t(this,dI)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,mI):n}o(t,"with$data")}o(hI,"addMetaSchema2020");Cp.default=hI});var dy=h((z,Np)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.MissingRefError=z.ValidationError=z.CodeGen=z.Name=z.nil=z.stringify=z.str=z._=z.KeywordCxt=z.Ajv2020=void 0;var gI=Fn(),yI=ny(),SI=pp(),vI=fy(),Rp="https://json-schema.org/draft/2020-12/schema",kp=class kp extends gI.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),yI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(SI.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(vI.default.call(this,t),this.refs["http://json-schema.org/schema"]=Rp)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Rp)?Rp:void 0)}};o(kp,"Ajv2020");var Un=kp;z.Ajv2020=Un;Np.exports=z=Un;Np.exports.Ajv2020=Un;Object.defineProperty(z,"__esModule",{value:!0});z.default=Un;var bI=Wi();Object.defineProperty(z,"KeywordCxt",{enumerable:!0,get:o(function(){return bI.KeywordCxt},"get")});var Zn=C();Object.defineProperty(z,"_",{enumerable:!0,get:o(function(){return Zn._},"get")});Object.defineProperty(z,"str",{enumerable:!0,get:o(function(){return Zn.str},"get")});Object.defineProperty(z,"stringify",{enumerable:!0,get:o(function(){return Zn.stringify},"get")});Object.defineProperty(z,"nil",{enumerable:!0,get:o(function(){return Zn.nil},"get")});Object.defineProperty(z,"Name",{enumerable:!0,get:o(function(){return Zn.Name},"get")});Object.defineProperty(z,"CodeGen",{enumerable:!0,get:o(function(){return Zn.CodeGen},"get")});var _I=Is();Object.defineProperty(z,"ValidationError",{enumerable:!0,get:o(function(){return _I.default},"get")});var EI=Yi();Object.defineProperty(z,"MissingRefError",{enumerable:!0,get:o(function(){return EI.default},"get")})});var my=h((TL,PI)=>{PI.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 hy=h((CL,OI)=>{OI.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 gy=h((RL,$I)=>{$I.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 yy=h((NL,xI)=>{xI.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 Sy=h((ue,zn)=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.openapi=ue.openapiV31=ue.openapiV3=ue.openapiV2=ue.openapiV1=void 0;ue.openapiV1=my();ue.openapiV2=hy();ue.openapiV3=gy();ue.openapiV31=yy();ue.openapi={v1:ue.openapiV1,v2:ue.openapiV2,v3:ue.openapiV3,v31:ue.openapiV31};ue.default=ue.openapi;typeof zn=="object"&&typeof zn.exports=="object"&&(zn.exports=Object.assign(zn.exports.default,zn.exports))});var Mp=h((kL,vy)=>{"use strict";var AI=ls(),{ono:wI}=ot(),II=Rg(),TI=dy(),{openapi:jp}=Sy();vy.exports=CI;function CI(e){let t,r;if(e.swagger)r=jp.v2,t=qp();else if(e.openapi.startsWith("3.1")){r=jp.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=qp(!1)}else r=jp.v3,t=qp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
13
  `+RI(i);throw wI.syntax(i,{details:i},s)}}o(CI,"validateSchema");function qp(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new II(t):new TI(t)}o(qp,"initializeAjv");function RI(e,t){t=t||" ";let r="";for(let n of e)r+=AI.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}o(RI,"formatAjvError")});var _y=h((qL,by)=>{"use strict";by.exports=["get","put","post","delete","options","head","patch"]});var Fp=h((ML,$y)=>{"use strict";var NI=ls(),{ono:Ee}=ot(),kI=_y(),Dp=["array","boolean","integer","number","string"],Py=["array","boolean","integer","number","string","object","null",void 0];$y.exports=jI;function jI(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&qI(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Oy(s,a)}}o(jI,"validateSpec");function qI(e,t,r,n){for(let i of kI){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ee.syntax(`Validation failed. Duplicate operation id '${c}'`);MI(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;HI(l,f||{},p)}}}}o(qI,"validatePath");function MI(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{Ey(s)}catch(u){throw Ee.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Ey(a)}catch(u){throw Ee.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());DI(c,i),LI(c,r,i),FI(c,e,n,i)}o(MI,"validateParameters");function DI(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ee.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ee.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(DI,"validateBodyParameters");function LI(e,t,r){let n=t.match(NI.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ee.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 Ee.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ee.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ee.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(LI,"validatePathParameters");function FI(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=Py;break;case"formData":a=i,c=Dp.concat("file");break;default:a=i,c=Dp}if(Lp(a,s,c),Oy(a,s),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 Ee.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(FI,"validateParameterTypes");function Ey(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 Ee.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(Ey,"checkForDuplicates");function HI(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ee.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Lp(s,a,Dp)}if(t.schema){let i=Py.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ee.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Lp(t.schema,r+"/schema",i)}}o(HI,"validateResponse");function Lp(e,t,r){if(r.indexOf(e.type)===-1)throw Ee.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ee.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Lp,"validateSchema");function Oy(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ee.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Oy,"validateRequiredPropertiesExist")});var pt=h(lt=>{"use strict";var{Ono:xy}=ot(),{stripHash:Ay,toFileSystemPath:VI}=He(),Kn,fr=lt.JSONParserError=(Kn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,xy.extend(this)}},o(Kn,"JSONParserError"),Kn);dr(fr);var Wr,wy=lt.JSONParserErrorGroup=(Wr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${VI(t.$refs._root$Ref.path)}'`,xy.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 Wr.getParserErrors(this.files)}},o(Wr,"JSONParserErrorGroup"),Wr);dr(wy);var Qn,BI=lt.ParserError=(Qn=class extends fr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Qn,"ParserError"),Qn);dr(BI);var Wn,GI=lt.UnmatchedParserError=(Wn=class extends fr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Wn,"UnmatchedParserError"),Wn);dr(GI);var Yn,UI=lt.ResolverError=(Yn=class extends fr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Yn,"ResolverError"),Yn);dr(UI);var Jn,ZI=lt.UnmatchedResolverError=(Jn=class extends fr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Jn,"UnmatchedResolverError"),Jn);dr(ZI);var Xn,zI=lt.MissingPointerError=(Xn=class extends fr{constructor(t,r){super(`Token "${t}" does not exist.`,Ay(r)),this.code="EMISSINGPOINTER"}},o(Xn,"MissingPointerError"),Xn);dr(zI);var ei,KI=lt.InvalidPointerError=(ei=class extends fr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ay(r)),this.code="EINVALIDPOINTER"}},o(ei,"InvalidPointerError"),ei);dr(KI);function dr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(dr,"setErrorName");lt.isHandledError=function(e){return e instanceof fr||e instanceof wy};lt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Ty=h((HL,Iy)=>{"use strict";var{ParserError:QI}=pt();Iy.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 QI(r.message,e.url)}}else return t}}});var Jr=h((VL,Yr)=>{"use strict";function Cy(e){return typeof e>"u"||e===null}o(Cy,"isNothing");function WI(e){return typeof e=="object"&&e!==null}o(WI,"isObject");function YI(e){return Array.isArray(e)?e:Cy(e)?[]:[e]}o(YI,"toArray");function JI(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(JI,"extend");function XI(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(XI,"repeat");function eT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(eT,"isNegativeZero");Yr.exports.isNothing=Cy;Yr.exports.isObject=WI;Yr.exports.toArray=YI;Yr.exports.repeat=XI;Yr.exports.isNegativeZero=eT;Yr.exports.extend=JI});var ti=h((GL,Ry)=>{"use strict";function go(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||""}o(go,"YAMLException");go.prototype=Object.create(Error.prototype);go.prototype.constructor=go;go.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ry.exports=go});var jy=h((ZL,ky)=>{"use strict";var Ny=Jr();function Hp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Hp,"Mark");Hp.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
14
+ `);return r}o(RI,"formatAjvError")});var _y=h((qL,by)=>{"use strict";by.exports=["get","put","post","delete","options","head","patch"]});var Fp=h((ML,$y)=>{"use strict";var NI=ls(),{ono:Ee}=ot(),kI=_y(),Dp=["array","boolean","integer","number","string"],Py=["array","boolean","integer","number","string","object","null",void 0];$y.exports=jI;function jI(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&qI(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Oy(s,a)}}o(jI,"validateSpec");function qI(e,t,r,n){for(let i of kI){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ee.syntax(`Validation failed. Duplicate operation id '${c}'`);MI(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;HI(l,f||{},p)}}}}o(qI,"validatePath");function MI(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{Ey(s)}catch(u){throw Ee.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Ey(a)}catch(u){throw Ee.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());DI(c,i),LI(c,r,i),FI(c,e,n,i)}o(MI,"validateParameters");function DI(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ee.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ee.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(DI,"validateBodyParameters");function LI(e,t,r){let n=t.match(NI.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ee.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 Ee.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ee.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ee.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(LI,"validatePathParameters");function FI(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=Py;break;case"formData":a=i,c=Dp.concat("file");break;default:a=i,c=Dp}if(Lp(a,s,c),Oy(a,s),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 Ee.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(FI,"validateParameterTypes");function Ey(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 Ee.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(Ey,"checkForDuplicates");function HI(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ee.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Lp(s,a,Dp)}if(t.schema){let i=Py.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ee.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Lp(t.schema,r+"/schema",i)}}o(HI,"validateResponse");function Lp(e,t,r){if(r.indexOf(e.type)===-1)throw Ee.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ee.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Lp,"validateSchema");function Oy(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ee.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Oy,"validateRequiredPropertiesExist")});var pt=h(lt=>{"use strict";var{Ono:xy}=ot(),{stripHash:Ay,toFileSystemPath:VI}=He(),Kn,fr=lt.JSONParserError=(Kn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,xy.extend(this)}},o(Kn,"JSONParserError"),Kn);dr(fr);var Qr,wy=lt.JSONParserErrorGroup=(Qr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${VI(t.$refs._root$Ref.path)}'`,xy.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 Qr.getParserErrors(this.files)}},o(Qr,"JSONParserErrorGroup"),Qr);dr(wy);var Qn,BI=lt.ParserError=(Qn=class extends fr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Qn,"ParserError"),Qn);dr(BI);var Wn,GI=lt.UnmatchedParserError=(Wn=class extends fr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Wn,"UnmatchedParserError"),Wn);dr(GI);var Yn,UI=lt.ResolverError=(Yn=class extends fr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Yn,"ResolverError"),Yn);dr(UI);var Jn,ZI=lt.UnmatchedResolverError=(Jn=class extends fr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Jn,"UnmatchedResolverError"),Jn);dr(ZI);var Xn,zI=lt.MissingPointerError=(Xn=class extends fr{constructor(t,r){super(`Token "${t}" does not exist.`,Ay(r)),this.code="EMISSINGPOINTER"}},o(Xn,"MissingPointerError"),Xn);dr(zI);var ei,KI=lt.InvalidPointerError=(ei=class extends fr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ay(r)),this.code="EINVALIDPOINTER"}},o(ei,"InvalidPointerError"),ei);dr(KI);function dr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(dr,"setErrorName");lt.isHandledError=function(e){return e instanceof fr||e instanceof wy};lt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Ty=h((HL,Iy)=>{"use strict";var{ParserError:QI}=pt();Iy.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 QI(r.message,e.url)}}else return t}}});var Yr=h((VL,Wr)=>{"use strict";function Cy(e){return typeof e>"u"||e===null}o(Cy,"isNothing");function WI(e){return typeof e=="object"&&e!==null}o(WI,"isObject");function YI(e){return Array.isArray(e)?e:Cy(e)?[]:[e]}o(YI,"toArray");function JI(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(JI,"extend");function XI(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(XI,"repeat");function eT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(eT,"isNegativeZero");Wr.exports.isNothing=Cy;Wr.exports.isObject=WI;Wr.exports.toArray=YI;Wr.exports.repeat=XI;Wr.exports.isNegativeZero=eT;Wr.exports.extend=JI});var ti=h((GL,Ry)=>{"use strict";function go(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||""}o(go,"YAMLException");go.prototype=Object.create(Error.prototype);go.prototype.constructor=go;go.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ry.exports=go});var jy=h((ZL,ky)=>{"use strict";var Ny=Yr();function Hp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Hp,"Mark");Hp.prototype.getSnippet=o(function(t,r){var n,i,s,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(s="",a=this.position;a<this.buffer.length&&`\0\r
16
16
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Ny.repeat(" ",t)+n+c+s+`
17
17
  `+Ny.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Hp.prototype.toString=o(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");ky.exports=Hp});var ae=h((KL,My)=>{"use strict";var qy=ti(),tT=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],rT=["scalar","sequence","mapping"];function nT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(nT,"compileStyleAliases");function iT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(tT.indexOf(r)===-1)throw new qy('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=nT(t.styleAliases||null),rT.indexOf(this.kind)===-1)throw new qy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(iT,"Type");My.exports=iT});var Xr=h((WL,Ly)=>{"use strict";var Dy=Jr(),Js=ti(),oT=ae();function Vp(e,t,r){var n=[];return e.include.forEach(function(i){r=Vp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Vp,"compileList");function sT(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(sT,"compileMap");function ri(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 Js("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Vp(this,"implicit",[]),this.compiledExplicit=Vp(this,"explicit",[]),this.compiledTypeMap=sT(this.compiledImplicit,this.compiledExplicit)}o(ri,"Schema");ri.DEFAULT=null;ri.create=o(function(){var t,r;switch(arguments.length){case 1:t=ri.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Js("Wrong number of arguments for Schema.create function")}if(t=Dy.toArray(t),r=Dy.toArray(r),!t.every(function(n){return n instanceof ri}))throw new Js("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof oT}))throw new Js("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ri({include:t,explicit:r})},"createSchema");Ly.exports=ri});var Hy=h((JL,Fy)=>{"use strict";var aT=ae();Fy.exports=new aT("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var By=h((e8,Vy)=>{"use strict";var cT=ae();Vy.exports=new cT("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Uy=h((r8,Gy)=>{"use strict";var uT=ae();Gy.exports=new uT("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Xs=h((i8,Zy)=>{"use strict";var lT=Xr();Zy.exports=new lT({explicit:[Hy(),By(),Uy()]})});var Ky=h((o8,zy)=>{"use strict";var pT=ae();function fT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(fT,"resolveYamlNull");function dT(){return null}o(dT,"constructYamlNull");function mT(e){return e===null}o(mT,"isNull");zy.exports=new pT("tag:yaml.org,2002:null",{kind:"scalar",resolve:fT,construct:dT,predicate:mT,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Wy=h((a8,Qy)=>{"use strict";var hT=ae();function gT(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")}o(gT,"resolveYamlBoolean");function yT(e){return e==="true"||e==="True"||e==="TRUE"}o(yT,"constructYamlBoolean");function ST(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(ST,"isBoolean");Qy.exports=new hT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gT,construct:yT,predicate:ST,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Jy=h((u8,Yy)=>{"use strict";var vT=Jr(),bT=ae();function _T(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(_T,"isHexCode");function ET(e){return 48<=e&&e<=55}o(ET,"isOctCode");function PT(e){return 48<=e&&e<=57}o(PT,"isDecCode");function OT(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(!_T(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ET(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(!PT(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(OT,"resolveYamlInteger");function $T(e){var t=e,r=1,n,i,s=[];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){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o($T,"constructYamlInteger");function xT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!vT.isNegativeZero(e)}o(xT,"isInteger");Yy.exports=new bT("tag:yaml.org,2002:int",{kind:"scalar",resolve:OT,construct:$T,predicate:xT,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(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 t0=h((p8,e0)=>{"use strict";var Xy=Jr(),AT=ae(),wT=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 IT(e){return!(e===null||!wT.test(e)||e[e.length-1]==="_")}o(IT,"resolveYamlFloat");function TT(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(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(TT,"constructYamlFloat");var CT=/^[-+]?[0-9]+e/;function RT(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(Xy.isNegativeZero(e))return"-0.0";return r=e.toString(10),CT.test(r)?r.replace("e",".e"):r}o(RT,"representYamlFloat");function NT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xy.isNegativeZero(e))}o(NT,"isFloat");e0.exports=new AT("tag:yaml.org,2002:float",{kind:"scalar",resolve:IT,construct:TT,predicate:NT,represent:RT,defaultStyle:"lowercase"})});var Bp=h((d8,r0)=>{"use strict";var kT=Xr();r0.exports=new kT({include:[Xs()],implicit:[Ky(),Wy(),Jy(),t0()]})});var Gp=h((m8,n0)=>{"use strict";var jT=Xr();n0.exports=new jT({include:[Bp()]})});var a0=h((h8,s0)=>{"use strict";var qT=ae(),i0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o0=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 MT(e){return e===null?!1:i0.exec(e)!==null||o0.exec(e)!==null}o(MT,"resolveYamlTimestamp");function DT(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=i0.exec(e),t===null&&(t=o0.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(s=+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,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(DT,"constructYamlTimestamp");function LT(e){return e.toISOString()}o(LT,"representYamlTimestamp");s0.exports=new qT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:MT,construct:DT,instanceOf:Date,represent:LT})});var u0=h((y8,c0)=>{"use strict";var FT=ae();function HT(e){return e==="<<"||e===null}o(HT,"resolveYamlMerge");c0.exports=new FT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:HT})});var f0=h((v8,p0)=>{"use strict";var en;try{l0=require,en=l0("buffer").Buffer}catch{}var l0,VT=ae(),Up=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function BT(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Up;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(BT,"resolveYamlBinary");function GT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Up,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|s.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),en?en.from?en.from(c):new en(c):c}o(GT,"constructYamlBinary");function UT(e){var t="",r=0,n,i,s=e.length,a=Up;for(n=0;n<s;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=s%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}o(UT,"representYamlBinary");function ZT(e){return en&&en.isBuffer(e)}o(ZT,"isBinary");p0.exports=new VT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:BT,construct:GT,predicate:ZT,represent:UT})});var m0=h((_8,d0)=>{"use strict";var zT=ae(),KT=Object.prototype.hasOwnProperty,QT=Object.prototype.toString;function WT(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,QT.call(i)!=="[object Object]")return!1;for(s in i)if(KT.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(WT,"resolveYamlOmap");function YT(e){return e!==null?e:[]}o(YT,"constructYamlOmap");d0.exports=new zT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WT,construct:YT})});var g0=h((P8,h0)=>{"use strict";var JT=ae(),XT=Object.prototype.toString;function eC(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],XT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(eC,"resolveYamlPairs");function tC(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(tC,"constructYamlPairs");h0.exports=new JT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eC,construct:tC})});var S0=h(($8,y0)=>{"use strict";var rC=ae(),nC=Object.prototype.hasOwnProperty;function iC(e){if(e===null)return!0;var t,r=e;for(t in r)if(nC.call(r,t)&&r[t]!==null)return!1;return!0}o(iC,"resolveYamlSet");function oC(e){return e!==null?e:{}}o(oC,"constructYamlSet");y0.exports=new rC("tag:yaml.org,2002:set",{kind:"mapping",resolve:iC,construct:oC})});var ni=h((A8,v0)=>{"use strict";var sC=Xr();v0.exports=new sC({include:[Gp()],implicit:[a0(),u0()],explicit:[f0(),m0(),g0(),S0()]})});var _0=h((w8,b0)=>{"use strict";var aC=ae();function cC(){return!0}o(cC,"resolveJavascriptUndefined");function uC(){}o(uC,"constructJavascriptUndefined");function lC(){return""}o(lC,"representJavascriptUndefined");function pC(e){return typeof e>"u"}o(pC,"isUndefined");b0.exports=new aC("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cC,construct:uC,predicate:pC,represent:lC})});var P0=h((T8,E0)=>{"use strict";var fC=ae();function dC(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]!=="/"))}o(dC,"resolveJavascriptRegExp");function mC(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)}o(mC,"constructJavascriptRegExp");function hC(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(hC,"representJavascriptRegExp");function gC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(gC,"isRegExp");E0.exports=new fC("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:dC,construct:mC,predicate:gC,represent:hC})});var x0=h((R8,$0)=>{"use strict";var ea;try{O0=require,ea=O0("esprima")}catch{typeof window<"u"&&(ea=window.esprima)}var O0,yC=ae();function SC(e){if(e===null)return!1;try{var t="("+e+")",r=ea.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}}o(SC,"resolveJavascriptFunction");function vC(e){var t="("+e+")",r=ea.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(s){n.push(s.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]))}o(vC,"constructJavascriptFunction");function bC(e){return e.toString()}o(bC,"representJavascriptFunction");function _C(e){return Object.prototype.toString.call(e)==="[object Function]"}o(_C,"isFunction");$0.exports=new yC("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:SC,construct:vC,predicate:_C,represent:bC})});var yo=h((k8,w0)=>{"use strict";var A0=Xr();w0.exports=A0.DEFAULT=new A0({include:[ni()],explicit:[_0(),P0(),x0()]})});var z0=h((j8,So)=>{"use strict";var Bt=Jr(),j0=ti(),EC=jy(),q0=ni(),PC=yo(),hr=Object.prototype.hasOwnProperty,ta=1,M0=2,D0=3,ra=4,Zp=1,OC=2,I0=3,$C=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xC=/[\x85\u2028\u2029]/,AC=/[,\[\]\{\}]/,L0=/^(?:!|!!|![a-z\-]+!)$/i,F0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function T0(e){return Object.prototype.toString.call(e)}o(T0,"_class");function Pt(e){return e===10||e===13}o(Pt,"is_EOL");function rn(e){return e===9||e===32}o(rn,"is_WHITE_SPACE");function Me(e){return e===9||e===32||e===10||e===13}o(Me,"is_WS_OR_EOL");function ii(e){return e===44||e===91||e===93||e===123||e===125}o(ii,"is_FLOW_INDICATOR");function wC(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(wC,"fromHexCode");function IC(e){return e===120?2:e===117?4:e===85?8:0}o(IC,"escapedHexLen");function TC(e){return 48<=e&&e<=57?e-48:-1}o(TC,"fromDecimalCode");function C0(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":""}o(C0,"simpleEscapeSequence");function CC(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(CC,"charFromCodepoint");var H0=new Array(256),V0=new Array(256);for(tn=0;tn<256;tn++)H0[tn]=C0(tn)?1:0,V0[tn]=C0(tn);var tn;function RC(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||PC,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=[]}o(RC,"State");function B0(e,t){return new j0(t,new EC(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(B0,"generateError");function x(e,t){throw B0(e,t)}o(x,"throwError");function na(e,t){e.onWarning&&e.onWarning.call(null,B0(e,t))}o(na,"throwWarning");var R0={YAML:o(function(t,r,n){var i,s,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"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&na(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],L0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),hr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),F0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function mr(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else $C.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(mr,"captureSegment");function N0(e,t,r,n){var i,s,a,c;for(Bt.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)s=i[a],hr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(N0,"mergeMappings");function oi(e,t,r,n,i,s,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"&&T0(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&T0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)N0(e,t,s[u],r);else N0(e,t,s,r);else!e.json&&!hr.call(r,i)&&hr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(oi,"storeMappingPair");function zp(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}o(zp,"readLineBreak");function ie(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;rn(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(Pt(i))for(zp(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&&na(e,"deficient indentation"),n}o(ie,"skipSeparationSpace");function ia(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||Me(r)))}o(ia,"testDocumentSeparator");function Kp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Bt.repeat(`
21
- `,t-1))}o(Kp,"writeFoldedLines");function NC(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),Me(m)||ii(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),Me(i)||r&&ii(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Me(i)||r&&ii(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Me(n))break}else{if(e.position===e.lineStart&&ia(e)||r&&ii(m))break;if(Pt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ie(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&&(mr(e,s,a,!1),Kp(e,e.line-u),s=a=e.position,c=!1),rn(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return mr(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(NC,"readPlainScalar");function kC(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(mr(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 Pt(r)?(mr(e,n,i,!0),Kp(e,ie(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ia(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")}o(kC,"readSingleQuotedScalar");function jC(e,t){var r,n,i,s,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 mr(e,r,e.position,!0),e.position++,!0;if(c===92){if(mr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Pt(c))ie(e,!1,t);else if(c<256&&H0[c])e.result+=V0[c],e.position++;else if((a=IC(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=wC(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=CC(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else Pt(c)?(mr(e,r,n,!0),Kp(e,ie(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ia(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")}o(jC,"readDoubleQuotedScalar");function qC(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,S;if(S=e.input.charCodeAt(e.position),S===91)u=93,p=!1,s=[];else if(S===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),S=e.input.charCodeAt(++e.position);S!==0;){if(ie(e,!0,t),S=e.input.charCodeAt(e.position),S===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Me(c)&&(l=f=!0,e.position++,ie(e,!0,t))),n=e.line,si(e,t,ta,!1,!0),g=e.tag,m=e.result,ie(e,!0,t),S=e.input.charCodeAt(e.position),(f||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),ie(e,!0,t),si(e,t,ta,!1,!0),y=e.result),p?oi(e,s,d,g,m,y):l?s.push(oi(e,null,d,g,m,y)):s.push(m),ie(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(qC,"readFlowCollection");function MC(e,t){var r,n,i=Zp,s=!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)Zp===i?i=p===43?I0:OC:x(e,"repeat of a chomping mode identifier");else if((f=TC(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(rn(p)){do p=e.input.charCodeAt(++e.position);while(rn(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Pt(p)&&p!==0)}for(;p!==0;){for(zp(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),Pt(p)){u++;continue}if(e.lineIndent<c){i===I0?e.result+=Bt.repeat(`
18
+ `+r)),n},"toString");ky.exports=Hp});var se=h((KL,My)=>{"use strict";var qy=ti(),tT=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],rT=["scalar","sequence","mapping"];function nT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(nT,"compileStyleAliases");function iT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(tT.indexOf(r)===-1)throw new qy('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=nT(t.styleAliases||null),rT.indexOf(this.kind)===-1)throw new qy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(iT,"Type");My.exports=iT});var Jr=h((WL,Ly)=>{"use strict";var Dy=Yr(),Js=ti(),oT=se();function Vp(e,t,r){var n=[];return e.include.forEach(function(i){r=Vp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Vp,"compileList");function sT(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(sT,"compileMap");function ri(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 Js("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Vp(this,"implicit",[]),this.compiledExplicit=Vp(this,"explicit",[]),this.compiledTypeMap=sT(this.compiledImplicit,this.compiledExplicit)}o(ri,"Schema");ri.DEFAULT=null;ri.create=o(function(){var t,r;switch(arguments.length){case 1:t=ri.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Js("Wrong number of arguments for Schema.create function")}if(t=Dy.toArray(t),r=Dy.toArray(r),!t.every(function(n){return n instanceof ri}))throw new Js("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof oT}))throw new Js("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ri({include:t,explicit:r})},"createSchema");Ly.exports=ri});var Hy=h((JL,Fy)=>{"use strict";var aT=se();Fy.exports=new aT("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var By=h((e8,Vy)=>{"use strict";var cT=se();Vy.exports=new cT("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Uy=h((r8,Gy)=>{"use strict";var uT=se();Gy.exports=new uT("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Xs=h((i8,Zy)=>{"use strict";var lT=Jr();Zy.exports=new lT({explicit:[Hy(),By(),Uy()]})});var Ky=h((o8,zy)=>{"use strict";var pT=se();function fT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(fT,"resolveYamlNull");function dT(){return null}o(dT,"constructYamlNull");function mT(e){return e===null}o(mT,"isNull");zy.exports=new pT("tag:yaml.org,2002:null",{kind:"scalar",resolve:fT,construct:dT,predicate:mT,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Wy=h((a8,Qy)=>{"use strict";var hT=se();function gT(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")}o(gT,"resolveYamlBoolean");function yT(e){return e==="true"||e==="True"||e==="TRUE"}o(yT,"constructYamlBoolean");function ST(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(ST,"isBoolean");Qy.exports=new hT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gT,construct:yT,predicate:ST,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Jy=h((u8,Yy)=>{"use strict";var vT=Yr(),bT=se();function _T(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(_T,"isHexCode");function ET(e){return 48<=e&&e<=55}o(ET,"isOctCode");function PT(e){return 48<=e&&e<=57}o(PT,"isDecCode");function OT(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(!_T(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ET(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(!PT(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(OT,"resolveYamlInteger");function $T(e){var t=e,r=1,n,i,s=[];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){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o($T,"constructYamlInteger");function xT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!vT.isNegativeZero(e)}o(xT,"isInteger");Yy.exports=new bT("tag:yaml.org,2002:int",{kind:"scalar",resolve:OT,construct:$T,predicate:xT,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(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 t0=h((p8,e0)=>{"use strict";var Xy=Yr(),AT=se(),wT=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 IT(e){return!(e===null||!wT.test(e)||e[e.length-1]==="_")}o(IT,"resolveYamlFloat");function TT(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(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(TT,"constructYamlFloat");var CT=/^[-+]?[0-9]+e/;function RT(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(Xy.isNegativeZero(e))return"-0.0";return r=e.toString(10),CT.test(r)?r.replace("e",".e"):r}o(RT,"representYamlFloat");function NT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xy.isNegativeZero(e))}o(NT,"isFloat");e0.exports=new AT("tag:yaml.org,2002:float",{kind:"scalar",resolve:IT,construct:TT,predicate:NT,represent:RT,defaultStyle:"lowercase"})});var Bp=h((d8,r0)=>{"use strict";var kT=Jr();r0.exports=new kT({include:[Xs()],implicit:[Ky(),Wy(),Jy(),t0()]})});var Gp=h((m8,n0)=>{"use strict";var jT=Jr();n0.exports=new jT({include:[Bp()]})});var a0=h((h8,s0)=>{"use strict";var qT=se(),i0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o0=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 MT(e){return e===null?!1:i0.exec(e)!==null||o0.exec(e)!==null}o(MT,"resolveYamlTimestamp");function DT(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=i0.exec(e),t===null&&(t=o0.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(s=+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,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(DT,"constructYamlTimestamp");function LT(e){return e.toISOString()}o(LT,"representYamlTimestamp");s0.exports=new qT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:MT,construct:DT,instanceOf:Date,represent:LT})});var u0=h((y8,c0)=>{"use strict";var FT=se();function HT(e){return e==="<<"||e===null}o(HT,"resolveYamlMerge");c0.exports=new FT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:HT})});var f0=h((v8,p0)=>{"use strict";var Xr;try{l0=require,Xr=l0("buffer").Buffer}catch{}var l0,VT=se(),Up=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function BT(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Up;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(BT,"resolveYamlBinary");function GT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Up,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|s.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),Xr?Xr.from?Xr.from(c):new Xr(c):c}o(GT,"constructYamlBinary");function UT(e){var t="",r=0,n,i,s=e.length,a=Up;for(n=0;n<s;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=s%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}o(UT,"representYamlBinary");function ZT(e){return Xr&&Xr.isBuffer(e)}o(ZT,"isBinary");p0.exports=new VT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:BT,construct:GT,predicate:ZT,represent:UT})});var m0=h((_8,d0)=>{"use strict";var zT=se(),KT=Object.prototype.hasOwnProperty,QT=Object.prototype.toString;function WT(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,QT.call(i)!=="[object Object]")return!1;for(s in i)if(KT.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(WT,"resolveYamlOmap");function YT(e){return e!==null?e:[]}o(YT,"constructYamlOmap");d0.exports=new zT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WT,construct:YT})});var g0=h((P8,h0)=>{"use strict";var JT=se(),XT=Object.prototype.toString;function eC(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],XT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(eC,"resolveYamlPairs");function tC(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(tC,"constructYamlPairs");h0.exports=new JT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eC,construct:tC})});var S0=h(($8,y0)=>{"use strict";var rC=se(),nC=Object.prototype.hasOwnProperty;function iC(e){if(e===null)return!0;var t,r=e;for(t in r)if(nC.call(r,t)&&r[t]!==null)return!1;return!0}o(iC,"resolveYamlSet");function oC(e){return e!==null?e:{}}o(oC,"constructYamlSet");y0.exports=new rC("tag:yaml.org,2002:set",{kind:"mapping",resolve:iC,construct:oC})});var ni=h((A8,v0)=>{"use strict";var sC=Jr();v0.exports=new sC({include:[Gp()],implicit:[a0(),u0()],explicit:[f0(),m0(),g0(),S0()]})});var _0=h((w8,b0)=>{"use strict";var aC=se();function cC(){return!0}o(cC,"resolveJavascriptUndefined");function uC(){}o(uC,"constructJavascriptUndefined");function lC(){return""}o(lC,"representJavascriptUndefined");function pC(e){return typeof e>"u"}o(pC,"isUndefined");b0.exports=new aC("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cC,construct:uC,predicate:pC,represent:lC})});var P0=h((T8,E0)=>{"use strict";var fC=se();function dC(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]!=="/"))}o(dC,"resolveJavascriptRegExp");function mC(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)}o(mC,"constructJavascriptRegExp");function hC(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(hC,"representJavascriptRegExp");function gC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(gC,"isRegExp");E0.exports=new fC("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:dC,construct:mC,predicate:gC,represent:hC})});var x0=h((R8,$0)=>{"use strict";var ea;try{O0=require,ea=O0("esprima")}catch{typeof window<"u"&&(ea=window.esprima)}var O0,yC=se();function SC(e){if(e===null)return!1;try{var t="("+e+")",r=ea.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}}o(SC,"resolveJavascriptFunction");function vC(e){var t="("+e+")",r=ea.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(s){n.push(s.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]))}o(vC,"constructJavascriptFunction");function bC(e){return e.toString()}o(bC,"representJavascriptFunction");function _C(e){return Object.prototype.toString.call(e)==="[object Function]"}o(_C,"isFunction");$0.exports=new yC("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:SC,construct:vC,predicate:_C,represent:bC})});var yo=h((k8,w0)=>{"use strict";var A0=Jr();w0.exports=A0.DEFAULT=new A0({include:[ni()],explicit:[_0(),P0(),x0()]})});var z0=h((j8,So)=>{"use strict";var Bt=Yr(),j0=ti(),EC=jy(),q0=ni(),PC=yo(),hr=Object.prototype.hasOwnProperty,ta=1,M0=2,D0=3,ra=4,Zp=1,OC=2,I0=3,$C=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xC=/[\x85\u2028\u2029]/,AC=/[,\[\]\{\}]/,L0=/^(?:!|!!|![a-z\-]+!)$/i,F0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function T0(e){return Object.prototype.toString.call(e)}o(T0,"_class");function Pt(e){return e===10||e===13}o(Pt,"is_EOL");function tn(e){return e===9||e===32}o(tn,"is_WHITE_SPACE");function Me(e){return e===9||e===32||e===10||e===13}o(Me,"is_WS_OR_EOL");function ii(e){return e===44||e===91||e===93||e===123||e===125}o(ii,"is_FLOW_INDICATOR");function wC(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(wC,"fromHexCode");function IC(e){return e===120?2:e===117?4:e===85?8:0}o(IC,"escapedHexLen");function TC(e){return 48<=e&&e<=57?e-48:-1}o(TC,"fromDecimalCode");function C0(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":""}o(C0,"simpleEscapeSequence");function CC(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(CC,"charFromCodepoint");var H0=new Array(256),V0=new Array(256);for(en=0;en<256;en++)H0[en]=C0(en)?1:0,V0[en]=C0(en);var en;function RC(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||PC,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=[]}o(RC,"State");function B0(e,t){return new j0(t,new EC(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(B0,"generateError");function x(e,t){throw B0(e,t)}o(x,"throwError");function na(e,t){e.onWarning&&e.onWarning.call(null,B0(e,t))}o(na,"throwWarning");var R0={YAML:o(function(t,r,n){var i,s,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"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&na(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],L0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),hr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),F0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function mr(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else $C.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(mr,"captureSegment");function N0(e,t,r,n){var i,s,a,c;for(Bt.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)s=i[a],hr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(N0,"mergeMappings");function oi(e,t,r,n,i,s,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"&&T0(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&T0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)N0(e,t,s[u],r);else N0(e,t,s,r);else!e.json&&!hr.call(r,i)&&hr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(oi,"storeMappingPair");function zp(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}o(zp,"readLineBreak");function re(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;tn(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(Pt(i))for(zp(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&&na(e,"deficient indentation"),n}o(re,"skipSeparationSpace");function ia(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||Me(r)))}o(ia,"testDocumentSeparator");function Kp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Bt.repeat(`
21
+ `,t-1))}o(Kp,"writeFoldedLines");function NC(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),Me(m)||ii(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),Me(i)||r&&ii(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Me(i)||r&&ii(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Me(n))break}else{if(e.position===e.lineStart&&ia(e)||r&&ii(m))break;if(Pt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,re(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&&(mr(e,s,a,!1),Kp(e,e.line-u),s=a=e.position,c=!1),tn(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return mr(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(NC,"readPlainScalar");function kC(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(mr(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 Pt(r)?(mr(e,n,i,!0),Kp(e,re(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ia(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")}o(kC,"readSingleQuotedScalar");function jC(e,t){var r,n,i,s,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 mr(e,r,e.position,!0),e.position++,!0;if(c===92){if(mr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Pt(c))re(e,!1,t);else if(c<256&&H0[c])e.result+=V0[c],e.position++;else if((a=IC(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=wC(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=CC(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else Pt(c)?(mr(e,r,n,!0),Kp(e,re(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ia(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")}o(jC,"readDoubleQuotedScalar");function qC(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,S;if(S=e.input.charCodeAt(e.position),S===91)u=93,p=!1,s=[];else if(S===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),S=e.input.charCodeAt(++e.position);S!==0;){if(re(e,!0,t),S=e.input.charCodeAt(e.position),S===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Me(c)&&(l=f=!0,e.position++,re(e,!0,t))),n=e.line,si(e,t,ta,!1,!0),g=e.tag,m=e.result,re(e,!0,t),S=e.input.charCodeAt(e.position),(f||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),re(e,!0,t),si(e,t,ta,!1,!0),y=e.result),p?oi(e,s,d,g,m,y):l?s.push(oi(e,null,d,g,m,y)):s.push(m),re(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(qC,"readFlowCollection");function MC(e,t){var r,n,i=Zp,s=!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)Zp===i?i=p===43?I0:OC:x(e,"repeat of a chomping mode identifier");else if((f=TC(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(tn(p)){do p=e.input.charCodeAt(++e.position);while(tn(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Pt(p)&&p!==0)}for(;p!==0;){for(zp(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),Pt(p)){u++;continue}if(e.lineIndent<c){i===I0?e.result+=Bt.repeat(`
22
22
  `,s?1+u:u):i===Zp&&s&&(e.result+=`
23
- `);break}for(n?rn(p)?(l=!0,e.result+=Bt.repeat(`
23
+ `);break}for(n?tn(p)?(l=!0,e.result+=Bt.repeat(`
24
24
  `,s?1+u:u)):l?(l=!1,e.result+=Bt.repeat(`
25
25
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=Bt.repeat(`
26
26
  `,u):e.result+=Bt.repeat(`
27
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Pt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);mr(e,r,e.position,!1)}return!0}o(MC,"readBlockScalar");function k0(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Me(a)));){if(c=!0,e.position++,ie(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,D0,!1,!0),s.push(e.result),ie(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=s,!0):!1}o(k0,"readBlockSequence");function DC(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,S;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(S===63||S===58)&&Me(n))S===63?(g&&(oi(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,S=n;else if(si(e,r,M0,!1,!0))if(e.line===s){for(S=e.input.charCodeAt(e.position);rn(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Me(S)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(oi(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===s||e.lineIndent>t)&&(si(e,t,ra,!0,i)&&(g?d=e.result:m=e.result),g||(oi(e,l,f,p,d,m,s,a),p=d=m=null),ie(e,!0,-1),S=e.input.charCodeAt(e.position)),e.lineIndent>t&&S!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&oi(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(DC,"readBlockMapping");function LC(e){var t,r=!1,n=!1,i,s,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?(s=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&&!Me(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),L0.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),AC.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!F0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:hr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(LC,"readTagProperty");function FC(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&&!Me(r)&&!ii(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}o(FC,"readAnchorProperty");function HC(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&&!Me(n)&&!ii(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),hr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ie(e,!0,-1),!0}o(HC,"readAlias");function si(e,t,r,n,i){var s,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,s=a=c=ra===r||D0===r,n&&ie(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;LC(e)||FC(e);)ie(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ra===r)&&(ta===r||M0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(k0(e,y)||DC(e,y,g))||qC(e,g)?f=!0:(a&&MC(e,g)||kC(e,g)||jC(e,g)?f=!0:HC(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):NC(e,g,ta===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&k0(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 hr.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}o(si,"composeNode");function VC(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(ie(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Me(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(;rn(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pt(a));break}if(Pt(a))break;for(r=e.position;a!==0&&!Me(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&zp(e),hr.call(R0,n)?R0[n](e,n,i):na(e,'unknown document directive "'+n+'"')}if(ie(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,ie(e,!0,-1)):s&&x(e,"directives end mark is expected"),si(e,e.lineIndent-1,ra,!1,!0),ie(e,!0,-1),e.checkLineBreaks&&xC.test(e.input.slice(t,e.position))&&na(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ia(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ie(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(VC,"readDocument");function G0(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 RC(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;)VC(r);return r.documents}o(G0,"loadDocuments");function U0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=G0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(U0,"loadAll");function Z0(e,t){var r=G0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new j0("expected a single document in the stream, but found more")}}o(Z0,"load");function BC(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),U0(e,t,Bt.extend({schema:q0},r))}o(BC,"safeLoadAll");function GC(e,t){return Z0(e,Bt.extend({schema:q0},t))}o(GC,"safeLoad");So.exports.loadAll=U0;So.exports.load=Z0;So.exports.safeLoadAll=BC;So.exports.safeLoad=GC});var gS=h((M8,Jp)=>{"use strict";var bo=Jr(),_o=ti(),UC=yo(),ZC=ni(),tS=Object.prototype.toString,rS=Object.prototype.hasOwnProperty,zC=9,vo=10,KC=13,QC=32,WC=33,YC=34,nS=35,JC=37,XC=38,eR=39,tR=42,iS=44,rR=45,oS=58,nR=61,iR=62,oR=63,sR=64,sS=91,aS=93,aR=96,cS=123,cR=124,uS=125,Pe={};Pe[0]="\\0";Pe[7]="\\a";Pe[8]="\\b";Pe[9]="\\t";Pe[10]="\\n";Pe[11]="\\v";Pe[12]="\\f";Pe[13]="\\r";Pe[27]="\\e";Pe[34]='\\"';Pe[92]="\\\\";Pe[133]="\\N";Pe[160]="\\_";Pe[8232]="\\L";Pe[8233]="\\P";var uR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function lR(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;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&&rS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(lR,"compileStyleMap");function K0(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 _o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+bo.repeat("0",n-t.length)+t}o(K0,"encodeHex");function pR(e){this.schema=e.schema||UC,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=bo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=lR(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}o(pR,"State");function Q0(e,t){for(var r=bo.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
27
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Pt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);mr(e,r,e.position,!1)}return!0}o(MC,"readBlockScalar");function k0(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Me(a)));){if(c=!0,e.position++,re(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,D0,!1,!0),s.push(e.result),re(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=s,!0):!1}o(k0,"readBlockSequence");function DC(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,S;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(S===63||S===58)&&Me(n))S===63?(g&&(oi(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,S=n;else if(si(e,r,M0,!1,!0))if(e.line===s){for(S=e.input.charCodeAt(e.position);tn(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Me(S)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(oi(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===s||e.lineIndent>t)&&(si(e,t,ra,!0,i)&&(g?d=e.result:m=e.result),g||(oi(e,l,f,p,d,m,s,a),p=d=m=null),re(e,!0,-1),S=e.input.charCodeAt(e.position)),e.lineIndent>t&&S!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&oi(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(DC,"readBlockMapping");function LC(e){var t,r=!1,n=!1,i,s,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?(s=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&&!Me(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),L0.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),AC.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!F0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:hr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(LC,"readTagProperty");function FC(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&&!Me(r)&&!ii(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}o(FC,"readAnchorProperty");function HC(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&&!Me(n)&&!ii(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),hr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],re(e,!0,-1),!0}o(HC,"readAlias");function si(e,t,r,n,i){var s,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,s=a=c=ra===r||D0===r,n&&re(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;LC(e)||FC(e);)re(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ra===r)&&(ta===r||M0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(k0(e,y)||DC(e,y,g))||qC(e,g)?f=!0:(a&&MC(e,g)||kC(e,g)||jC(e,g)?f=!0:HC(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):NC(e,g,ta===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&k0(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 hr.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}o(si,"composeNode");function VC(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(re(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Me(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(;tn(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pt(a));break}if(Pt(a))break;for(r=e.position;a!==0&&!Me(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&zp(e),hr.call(R0,n)?R0[n](e,n,i):na(e,'unknown document directive "'+n+'"')}if(re(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,re(e,!0,-1)):s&&x(e,"directives end mark is expected"),si(e,e.lineIndent-1,ra,!1,!0),re(e,!0,-1),e.checkLineBreaks&&xC.test(e.input.slice(t,e.position))&&na(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ia(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,re(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(VC,"readDocument");function G0(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 RC(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;)VC(r);return r.documents}o(G0,"loadDocuments");function U0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=G0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(U0,"loadAll");function Z0(e,t){var r=G0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new j0("expected a single document in the stream, but found more")}}o(Z0,"load");function BC(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),U0(e,t,Bt.extend({schema:q0},r))}o(BC,"safeLoadAll");function GC(e,t){return Z0(e,Bt.extend({schema:q0},t))}o(GC,"safeLoad");So.exports.loadAll=U0;So.exports.load=Z0;So.exports.safeLoadAll=BC;So.exports.safeLoad=GC});var gS=h((M8,Jp)=>{"use strict";var bo=Yr(),_o=ti(),UC=yo(),ZC=ni(),tS=Object.prototype.toString,rS=Object.prototype.hasOwnProperty,zC=9,vo=10,KC=13,QC=32,WC=33,YC=34,nS=35,JC=37,XC=38,eR=39,tR=42,iS=44,rR=45,oS=58,nR=61,iR=62,oR=63,sR=64,sS=91,aS=93,aR=96,cS=123,cR=124,uS=125,Pe={};Pe[0]="\\0";Pe[7]="\\a";Pe[8]="\\b";Pe[9]="\\t";Pe[10]="\\n";Pe[11]="\\v";Pe[12]="\\f";Pe[13]="\\r";Pe[27]="\\e";Pe[34]='\\"';Pe[92]="\\\\";Pe[133]="\\N";Pe[160]="\\_";Pe[8232]="\\L";Pe[8233]="\\P";var uR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function lR(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;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&&rS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(lR,"compileStyleMap");function K0(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 _o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+bo.repeat("0",n-t.length)+t}o(K0,"encodeHex");function pR(e){this.schema=e.schema||UC,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=bo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=lR(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}o(pR,"State");function Q0(e,t){for(var r=bo.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
29
29
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
30
  `&&(s+=r),s+=a;return s}o(Q0,"indentString");function Qp(e,t){return`
31
31
  `+bo.repeat(" ",e.indent*t)}o(Qp,"generateNextLine");function fR(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}o(fR,"testImplicitResolving");function Yp(e){return e===QC||e===zC}o(Yp,"isWhitespace");function ai(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(ai,"isPrintable");function dR(e){return ai(e)&&!Yp(e)&&e!==65279&&e!==KC&&e!==vo}o(dR,"isNsChar");function W0(e,t){return ai(e)&&e!==65279&&e!==iS&&e!==sS&&e!==aS&&e!==cS&&e!==uS&&e!==oS&&(e!==nS||t&&dR(t))}o(W0,"isPlainSafe");function mR(e){return ai(e)&&e!==65279&&!Yp(e)&&e!==rR&&e!==oR&&e!==oS&&e!==iS&&e!==sS&&e!==aS&&e!==cS&&e!==uS&&e!==nS&&e!==XC&&e!==tR&&e!==WC&&e!==cR&&e!==nR&&e!==iR&&e!==eR&&e!==YC&&e!==JC&&e!==sR&&e!==aR}o(mR,"isPlainSafeFirst");function lS(e){var t=/^\n* /;return t.test(e)}o(lS,"needIndentIndicator");var pS=1,fS=2,dS=3,mS=4,oa=5;function hR(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=mR(e.charCodeAt(0))&&!Yp(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!ai(a))return oa;c=s>0?e.charCodeAt(s-1):null,d=d&&W0(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===vo)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!ai(a))return oa;c=s>0?e.charCodeAt(s-1):null,d=d&&W0(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?pS:fS:r>9&&lS(e)?oa:l?mS:dS}o(hR,"chooseScalarStyle");function gR(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&uR.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=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 fR(e,u)}switch(o(c,"testAmbiguity"),hR(t,a,e.indent,s,c)){case pS:return t;case fS:return"'"+t.replace(/'/g,"''")+"'";case dS:return"|"+Y0(t,e.indent)+J0(Q0(t,i));case mS:return">"+Y0(t,e.indent)+J0(Q0(yR(t,s),i));case oa:return'"'+SR(t,s)+'"';default:throw new _o("impossible error: invalid scalar style")}}()}o(gR,"writeScalar");function Y0(e,t){var r=lS(e)?String(t):"",n=e[e.length-1]===`
@@ -39,23 +39,23 @@
39
39
  `:"")+X0(u,t),i=s}return n}o(yR,"foldString");function X0(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
40
  `+e.slice(i,s),i=s+1),a=c;return u+=`
41
41
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(X0,"foldLine");function SR(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=K0((r-55296)*1024+n-56320+65536),s++;continue}i=Pe[r],t+=!i&&ai(r)?e[s]:i||K0(r)}return t}o(SR,"escapeString");function vR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)nn(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(vR,"writeFlowSequence");function bR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)nn(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Qp(e,t)),e.dump&&vo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(bR,"writeBlockSequence");function _R(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],nn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nn(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(_R,"writeFlowMapping");function ER(e,t,r,n){var i="",s=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 _o("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Qp(e,t)),l=a[c],f=r[l],nn(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&vo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Qp(e,t)),nn(e,t+1,f,!0,p)&&(e.dump&&vo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(ER,"writeBlockMapping");function eS(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(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,tS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(rS.call(c.represent,u))n=c.represent[u](t,u);else throw new _o("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(eS,"detectType");function nn(e,t,r,n,i,s){e.tag=null,e.dump=r,eS(e,r,!1)||eS(e,r,!0);var a=tS.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?(ER(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(_R(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?(bR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(vR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&gR(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _o("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(nn,"writeNode");function PR(e,t){var r=[],n=[],i,s;for(Wp(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(PR,"getDuplicateReferences");function Wp(e,t,r){var n,i,s;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,s=e.length;i<s;i+=1)Wp(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Wp(e[n[i]],t,r)}o(Wp,"inspectNode");function hS(e,t){t=t||{};var r=new pR(t);return r.noRefs||PR(e,r),nn(r,0,e,!0,!0)?r.dump+`
43
- `:""}o(hS,"dump");function OR(e,t){return hS(e,bo.extend({schema:ZC},t))}o(OR,"safeDump");Jp.exports.dump=hS;Jp.exports.safeDump=OR});var SS=h((L8,X)=>{"use strict";var sa=z0(),yS=gS();function aa(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(aa,"deprecated");X.exports.Type=ae();X.exports.Schema=Xr();X.exports.FAILSAFE_SCHEMA=Xs();X.exports.JSON_SCHEMA=Bp();X.exports.CORE_SCHEMA=Gp();X.exports.DEFAULT_SAFE_SCHEMA=ni();X.exports.DEFAULT_FULL_SCHEMA=yo();X.exports.load=sa.load;X.exports.loadAll=sa.loadAll;X.exports.safeLoad=sa.safeLoad;X.exports.safeLoadAll=sa.safeLoadAll;X.exports.dump=yS.dump;X.exports.safeDump=yS.safeDump;X.exports.YAMLException=ti();X.exports.MINIMAL_SCHEMA=Xs();X.exports.SAFE_SCHEMA=ni();X.exports.DEFAULT_SCHEMA=yo();X.exports.scan=aa("scan");X.exports.parse=aa("parse");X.exports.compose=aa("compose");X.exports.addConstructor=aa("addConstructor")});var bS=h((H8,vS)=>{"use strict";var $R=SS();vS.exports=$R});var ES=h((V8,_S)=>{"use strict";var{ParserError:xR}=pt(),AR=bS();_S.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 AR.safeLoad(t)}catch(r){throw new xR(r.message,e.url)}else return t}}});var OS=h((B8,PS)=>{"use strict";var{ParserError:wR}=pt(),IR=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;PS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&IR.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 wR("data is not text",e.url)}}});var xS=h((G8,$S)=>{"use strict";var TR=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;$S.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&TR.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var IS=h((U8,wS)=>{"use strict";var CR=require("fs"),{ono:Xp}=ot(),AS=He(),{ResolverError:ef}=pt();wS.exports={order:100,canRead(e){return AS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=AS.toFileSystemPath(e.url)}catch(i){r(new ef(Xp.uri(i,`Malformed URI: ${e.url}`),e.url))}try{CR.readFile(n,(i,s)=>{i?r(new ef(Xp(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new ef(Xp(i,`Error opening file "${n}"`),n))}})}}});var NS=h((Z8,RS)=>{"use strict";var RR=require("http"),NR=require("https"),{ono:ca}=ot(),Eo=He(),{ResolverError:TS}=pt();RS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Eo.isHttp(e.url)},read(e){let t=Eo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Eo.parse(location.href).protocol),CS(t,this)}};function CS(e,t,r){return new Promise((n,i)=>{e=Eo.parse(e),r=r||[],r.push(e.href),kR(e,t).then(s=>{if(s.statusCode>=400)throw ca({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new TS(ca({status:s.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(X0,"foldLine");function SR(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=K0((r-55296)*1024+n-56320+65536),s++;continue}i=Pe[r],t+=!i&&ai(r)?e[s]:i||K0(r)}return t}o(SR,"escapeString");function vR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)rn(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(vR,"writeFlowSequence");function bR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)rn(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Qp(e,t)),e.dump&&vo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(bR,"writeBlockSequence");function _R(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],rn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rn(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(_R,"writeFlowMapping");function ER(e,t,r,n){var i="",s=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 _o("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Qp(e,t)),l=a[c],f=r[l],rn(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&vo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Qp(e,t)),rn(e,t+1,f,!0,p)&&(e.dump&&vo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(ER,"writeBlockMapping");function eS(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(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,tS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(rS.call(c.represent,u))n=c.represent[u](t,u);else throw new _o("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(eS,"detectType");function rn(e,t,r,n,i,s){e.tag=null,e.dump=r,eS(e,r,!1)||eS(e,r,!0);var a=tS.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?(ER(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(_R(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?(bR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(vR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&gR(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _o("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(rn,"writeNode");function PR(e,t){var r=[],n=[],i,s;for(Wp(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(PR,"getDuplicateReferences");function Wp(e,t,r){var n,i,s;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,s=e.length;i<s;i+=1)Wp(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Wp(e[n[i]],t,r)}o(Wp,"inspectNode");function hS(e,t){t=t||{};var r=new pR(t);return r.noRefs||PR(e,r),rn(r,0,e,!0,!0)?r.dump+`
43
+ `:""}o(hS,"dump");function OR(e,t){return hS(e,bo.extend({schema:ZC},t))}o(OR,"safeDump");Jp.exports.dump=hS;Jp.exports.safeDump=OR});var SS=h((L8,J)=>{"use strict";var sa=z0(),yS=gS();function aa(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(aa,"deprecated");J.exports.Type=se();J.exports.Schema=Jr();J.exports.FAILSAFE_SCHEMA=Xs();J.exports.JSON_SCHEMA=Bp();J.exports.CORE_SCHEMA=Gp();J.exports.DEFAULT_SAFE_SCHEMA=ni();J.exports.DEFAULT_FULL_SCHEMA=yo();J.exports.load=sa.load;J.exports.loadAll=sa.loadAll;J.exports.safeLoad=sa.safeLoad;J.exports.safeLoadAll=sa.safeLoadAll;J.exports.dump=yS.dump;J.exports.safeDump=yS.safeDump;J.exports.YAMLException=ti();J.exports.MINIMAL_SCHEMA=Xs();J.exports.SAFE_SCHEMA=ni();J.exports.DEFAULT_SCHEMA=yo();J.exports.scan=aa("scan");J.exports.parse=aa("parse");J.exports.compose=aa("compose");J.exports.addConstructor=aa("addConstructor")});var bS=h((H8,vS)=>{"use strict";var $R=SS();vS.exports=$R});var ES=h((V8,_S)=>{"use strict";var{ParserError:xR}=pt(),AR=bS();_S.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 AR.safeLoad(t)}catch(r){throw new xR(r.message,e.url)}else return t}}});var OS=h((B8,PS)=>{"use strict";var{ParserError:wR}=pt(),IR=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;PS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&IR.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 wR("data is not text",e.url)}}});var xS=h((G8,$S)=>{"use strict";var TR=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;$S.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&TR.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var IS=h((U8,wS)=>{"use strict";var CR=require("fs"),{ono:Xp}=ot(),AS=He(),{ResolverError:ef}=pt();wS.exports={order:100,canRead(e){return AS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=AS.toFileSystemPath(e.url)}catch(i){r(new ef(Xp.uri(i,`Malformed URI: ${e.url}`),e.url))}try{CR.readFile(n,(i,s)=>{i?r(new ef(Xp(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new ef(Xp(i,`Error opening file "${n}"`),n))}})}}});var NS=h((Z8,RS)=>{"use strict";var RR=require("http"),NR=require("https"),{ono:ca}=ot(),Eo=He(),{ResolverError:TS}=pt();RS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Eo.isHttp(e.url)},read(e){let t=Eo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Eo.parse(location.href).protocol),CS(t,this)}};function CS(e,t,r){return new Promise((n,i)=>{e=Eo.parse(e),r=r||[],r.push(e.href),kR(e,t).then(s=>{if(s.statusCode>=400)throw ca({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new TS(ca({status:s.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
46
  `)}`)));else if(s.headers.location){let a=Eo.resolve(e,s.headers.location);CS(a,t,r).then(n,i)}else throw ca({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new TS(ca(s,`Error downloading ${e.href}`),e.href))})})}o(CS,"download");function kR(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?NR:RR).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.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)})})})}o(kR,"get")});var nf=h((K8,jS)=>{"use strict";var jR=Ty(),qR=ES(),MR=OS(),DR=xS(),LR=IS(),FR=NS();jS.exports=rf;function rf(e){tf(this,rf.defaults),tf(this,e)}o(rf,"$RefParserOptions");rf.defaults={parse:{json:jR,yaml:qR,text:MR,binary:DR},resolve:{file:LR,http:FR,external:!0},continueOnError:!1,dereference:{circular:!0}};function tf(e,t){if(kS(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];kS(s)?e[i]=tf(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(tf,"merge");function kS(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(kS,"isMergeable")});var of=h((W8,MS)=>{"use strict";var qS=nf();MS.exports=HR;function HR(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 qS||(n=new qS(n)),{path:t,schema:r,options:n,callback:i}}o(HR,"normalizeArgs")});var LS=h((J8,DS)=>{"use strict";var sf=nf(),VR=Mp(),BR=Fp(),GR=require("util");DS.exports=ua;function ua(e){sf.call(this,ua.defaults),sf.apply(this,arguments)}o(ua,"ParserOptions");ua.defaults={validate:{schema:VR,spec:BR}};GR.inherits(ua,sf)});var HS=h((e5,FS)=>{"use strict";function UR(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(UR,"makeNext");FS.exports=UR()});var af=h((r5,BS)=>{"use strict";var VS=HS();BS.exports=o(function(t,r){if(t){r.then(function(n){VS(function(){t(null,n)})},function(n){VS(function(){t(n)})});return}else return r},"maybe")});var Po=h((i5,ZS)=>{"use strict";ZS.exports=gr;var cf=ci(),uf=He(),{JSONParserError:ZR,InvalidPointerError:zR,MissingPointerError:KR,isHandledError:QR}=pt(),WR=/\//g,YR=/~/g,JR=/~1/g,XR=/~0/g;function gr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(gr,"Pointer");gr.prototype.resolve=function(e,t,r){let n=gr.parse(this.path,this.originalPath);this.value=US(e);for(let i=0;i<n.length;i++){if(la(this,t)&&(this.path=gr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new KR(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&uf.resolve(this.path,this.value.$ref)!==r)&&la(this,t),this};gr.prototype.set=function(e,t,r){let n=gr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=US(e);for(let s=0;s<n.length-1;s++)la(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=GS(this,i,{});return la(this,r),i=n[n.length-1],GS(this,i,t),e};gr.parse=function(e,t){let r=uf.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(JR,"/").replace(XR,"~"));if(r[0]!=="")throw new zR(r,t===void 0?e:t);return r.slice(1)};gr.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(YR,"~0").replace(WR,"~1"))}return e};function la(e,t){if(cf.isAllowed$Ref(e.value,t)){let r=uf.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,cf.isExtended$Ref(e.value)?(e.value=cf.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(la,"resolveIf$Ref");function GS(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 ZR(`Error assigning $ref pointer "${e.path}".
47
47
  Cannot set "${t}" of a non-object.`);return r}o(GS,"setValue");function US(e){if(QR(e))throw e;return e}o(US,"unwrapOrThrow")});var ci=h((s5,QS)=>{"use strict";QS.exports=Ie;var KS=Po(),{InvalidPointerError:eN,isHandledError:tN,normalizeError:zS}=pt(),{safePointerToPath:rN,stripHash:nN,getHash:iN}=He();function Ie(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Ie,"$Ref");Ie.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(zS)):this.errors.push(zS(e))};Ie.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Ie.prototype.get=function(e,t){return this.resolve(e,t).value};Ie.prototype.resolve=function(e,t,r,n){let i=new KS(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!tN(s))throw s;return s.path===null&&(s.path=rN(iN(n))),s instanceof eN&&(s.source=nN(n)),this.addError(s),null}};Ie.prototype.set=function(e,t){let r=new KS(this,e);this.value=r.set(this.value,t)};Ie.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Ie.isExternal$Ref=function(e){return Ie.is$Ref(e)&&e.$ref[0]!=="#"};Ie.isAllowed$Ref=function(e,t){if(Ie.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Ie.isExtended$Ref=function(e){return Ie.is$Ref(e)&&Object.keys(e).length>1};Ie.dereference=function(e,t){if(t&&typeof t=="object"&&Ie.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 XS=h((c5,JS)=>{"use strict";var{ono:WS}=ot(),oN=ci(),yr=He();JS.exports=ft;function ft(){this.circular=!1,this._$refs={},this._root$Ref=null}o(ft,"$Refs");ft.prototype.paths=function(e){return YS(this._$refs,arguments).map(r=>r.decoded)};ft.prototype.values=function(e){let t=this._$refs;return YS(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};ft.prototype.toJSON=ft.prototype.values;ft.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};ft.prototype.get=function(e,t){return this._resolve(e,"",t).value};ft.prototype.set=function(e,t){let r=yr.resolve(this._root$Ref.path,e),n=yr.stripHash(r),i=this._$refs[n];if(!i)throw WS(`Error resolving $ref pointer "${e}".
48
48
  "${n}" not found.`);i.set(r,t)};ft.prototype._add=function(e){let t=yr.stripHash(e),r=new oN;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};ft.prototype._resolve=function(e,t,r){let n=yr.resolve(this._root$Ref.path,e),i=yr.stripHash(n),s=this._$refs[i];if(!s)throw WS(`Error resolving $ref pointer "${e}".
49
49
  "${i}" not found.`);return s.resolve(n,r,e,t)};ft.prototype._get$Ref=function(e){e=yr.resolve(this._root$Ref.path,e);let t=yr.stripHash(e);return this._$refs[t]};function YS(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"?yr.toFileSystemPath(n,!0):n}))}o(YS,"getPaths")});var tv=h(Oo=>{"use strict";Oo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Oo.filter=function(e,t,r){return e.filter(n=>!!ev(n,t,r))};Oo.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)};Oo.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=ev(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)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function ev(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(ev,"getResult")});var pf=h((f5,ov)=>{"use strict";var{ono:lf}=ot(),rv=He(),Sr=tv(),{ResolverError:nv,ParserError:iv,UnmatchedParserError:sN,UnmatchedResolverError:aN,isHandledError:cN}=pt();ov.exports=uN;async function uN(e,t,r){e=rv.stripHash(e);let n=t._add(e),i={url:e,extension:rv.getExtension(e)};try{let s=await lN(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await pN(i,r,t);return n.value=a.result,a.result}catch(s){throw cN(s)&&(n.value=s),s}}o(uN,"parse");function lN(e,t,r){return new Promise((n,i)=>{let s=Sr.all(t.resolve);s=Sr.filter(s,"canRead",e),Sr.sort(s),Sr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new aN(e.url)):!c||!("error"in c)?i(lf.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof nv?i(c.error):i(new nv(c,e.url))}o(a,"onError")})}o(lN,"readFile");function pN(e,t,r){return new Promise((n,i)=>{let s=Sr.all(t.parse),a=Sr.filter(s,"canParse",e),c=a.length>0?a:s;Sr.sort(c),Sr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&fN(f.result)?i(lf.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
50
- Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new sN(e.url)):!f||!("error"in f)?i(lf.syntax(`Unable to parse ${e.url}`)):f.error instanceof iv?i(f.error):i(new iv(f.error.message,e.url))}o(l,"onError")})}o(pN,"parseFile");function fN(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}o(fN,"isEmpty")});var uv=h((m5,cv)=>{"use strict";var sv=ci(),dN=Po(),mN=pf(),$o=He(),{isHandledError:hN}=pt();cv.exports=gN;function gN(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ff(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(gN,"resolveExternal");function ff(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(sv.isExternal$Ref(e))i.push(av(e,t,r,n));else for(let s of Object.keys(e)){let a=dN.join(t,s),c=e[s];sv.isExternal$Ref(c)?i.push(av(c,a,r,n)):i=i.concat(ff(c,a,r,n))}return i}o(ff,"crawl");async function av(e,t,r,n){let i=$o.resolve(t,e.$ref),s=$o.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await mN(i,r,n),c=ff(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!hN(a))throw a;return r._$refs[s]&&(a.source=$o.stripHash(t),a.path=$o.safePointerToPath($o.getHash(t))),[]}}o(av,"resolve$Ref")});var fv=h((g5,pv)=>{"use strict";var pa=ci(),xo=Po(),df=He();pv.exports=yN;function yN(e,t){let r=[];mf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),SN(r)}o(yN,"bundle");function mf(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(pa.isAllowed$Ref(u))lv(e,t,r,n,i,s,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=xo.join(r,f),d=xo.join(n,f),m=u[f];pa.isAllowed$Ref(m)?lv(u,f,r,d,i,s,a,c):mf(u,f,p,d,i,s,a,c)}}}o(mf,"crawl");function lv(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=df.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=xo.parse(n).length,d=df.stripHash(f.path),m=df.getHash(f.path),g=d!==a._root$Ref.path,y=pa.isExtended$Ref(u);i+=f.indirections;let S=vN(s,e,t);if(S)if(p<S.depth||i<S.indirections)bN(s,S);else return;s.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}),S||mf(f.value,null,f.path,n,i+1,s,a,c)}o(lv,"inventory$Ref");function SN(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.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=xo.join(n,xo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=pa.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(SN,"remap");function vN(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(vN,"findInInventory");function bN(e,t){let r=e.indexOf(t);e.splice(r,1)}o(bN,"removeFromInventory")});var yf=h((S5,gv)=>{"use strict";var hf=ci(),dv=Po(),{ono:_N}=ot(),EN=He();gv.exports=PN;function PN(e,t){let r=gf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(PN,"dereference");function gf(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hf.isAllowed$Ref(e,s))a=mv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=dv.join(t,u),f=dv.join(r,u),p=e[u],d=!1;hf.isAllowed$Ref(p,s)?(a=mv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=gf(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=hv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(gf,"crawl");function mv(e,t,r,n,i,s){let a=EN.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&hv(t,i,s);let f=hf.dereference(e,c.value);if(!l){let p=gf(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(mv,"dereference$Ref");function hv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw _N.reference(`Circular $ref pointer found at ${e}`);return!0}o(hv,"foundCircularReference")});var bv=h((b5,$t)=>{"use strict";var vv=XS(),ON=pf(),fa=of(),$N=uv(),xN=fv(),AN=yf(),ui=He(),{JSONParserError:wN,InvalidPointerError:IN,MissingPointerError:TN,ResolverError:CN,ParserError:RN,UnmatchedParserError:NN,UnmatchedResolverError:kN,isHandledError:jN,JSONParserErrorGroup:yv}=pt(),dt=af(),{ono:Sv}=ot();$t.exports=Ot;$t.exports.default=Ot;$t.exports.JSONParserError=wN;$t.exports.InvalidPointerError=IN;$t.exports.MissingPointerError=TN;$t.exports.ResolverError=CN;$t.exports.ParserError=RN;$t.exports.UnmatchedParserError=NN;$t.exports.UnmatchedResolverError=kN;function Ot(){this.schema=null,this.$refs=new vv}o(Ot,"$RefParser");Ot.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Ot.prototype.parse=o(async function(t,r,n,i){let s=fa(arguments),a;if(!s.path&&!s.schema){let l=Sv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return dt(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new vv;let c="http";if(ui.isFileSystemPath(s.path)&&(s.path=ui.fromFileSystemPath(s.path),c="file"),s.path=ui.resolve(ui.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=ON(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,dt(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,dt(s.callback,Promise.resolve(u.schema));throw Sv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!jN(l)?dt(s.callback,Promise.reject(l)):(this.$refs._$refs[ui.stripHash(s.path)]&&this.$refs._$refs[ui.stripHash(s.path)].addError(l),dt(s.callback,Promise.resolve(null)))}},"parse");Ot.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Ot.prototype.resolve=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.parse(a.path,a.schema,a.options),await $N(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.$refs))}catch(c){return dt(a.callback,Promise.reject(c))}},"resolve");Ot.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Ot.prototype.bundle=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),xN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"bundle");Ot.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Ot.prototype.dereference=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),AN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"dereference");function Sf(e){if(yv.getParserErrors(e).length>0)throw new yv(e)}o(Sf,"finalize")});var $v=h((E5,Ov)=>{"use strict";var qN=Mp(),MN=Fp(),_v=of(),Ev=ls(),Pv=LS(),da=af(),{ono:mt}=ot(),on=bv(),DN=yf();Ov.exports=xt;function xt(){on.apply(this,arguments)}o(xt,"SwaggerParser");Ev.inherits(xt,on);xt.parse=on.parse;xt.resolve=on.resolve;xt.bundle=on.bundle;xt.dereference=on.dereference;Object.defineProperty(xt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});xt.prototype.parse=async function(e,t,r,n){let i=_v(arguments);i.options=new Pv(i.options);try{let s=await on.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw mt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw mt.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw mt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw mt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Ev.fixOasRelativeServers(s,i.path)}return da(i.callback,Promise.resolve(s))}catch(s){return da(i.callback,Promise.reject(s))}};xt.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};xt.prototype.validate=async function(e,t,r,n){let i=this,s=_v(arguments);s.options=new Pv(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(qN(i.api),i.$refs.circular)){if(a===!0)DN(i,s.options);else if(a===!1)throw mt.reference("The API contains circular references")}return s.options.validate.spec&&MN(i.api),da(s.callback,Promise.resolve(i.schema))}catch(c){return da(s.callback,Promise.reject(c))}}});var ya=h(_r=>{"use strict";_r.__esModule=!0;_r.OpenAPIV2=_r.OpenAPIV3=void 0;var HN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch",r.TRACE="trace"})(t=e.HttpMethods||(e.HttpMethods={}))})(HN=_r.OpenAPIV3||(_r.OpenAPIV3={}));var VN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch"})(t=e.HttpMethods||(e.HttpMethods={}))})(VN=_r.OpenAPIV2||(_r.OpenAPIV2={}))});var Ce=h(Ge=>{"use strict";Ge.__esModule=!0;Ge.extend=S_;Ge.indexOf=xk;Ge.escapeExpression=Ak;Ge.isEmpty=wk;Ge.createFrame=Ik;Ge.blockParams=Tk;Ge.appendContextPath=Ck;var Ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Pk=/[&<>"'`=]/g,Ok=/[&<>"'`=]/;function $k(e){return Ek[e]}o($k,"escapeChar");function S_(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}o(S_,"extend");var ed=Object.prototype.toString;Ge.toString=ed;var Xf=o(function(t){return typeof t=="function"},"isFunction");Xf(/x/)&&(Ge.isFunction=Xf=o(function(e){return typeof e=="function"&&ed.call(e)==="[object Function]"},"isFunction"));Ge.isFunction=Xf;var v_=Array.isArray||function(e){return e&&typeof e=="object"?ed.call(e)==="[object Array]":!1};Ge.isArray=v_;function xk(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(xk,"indexOf");function Ak(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Ok.test(e)?e.replace(Pk,$k):e}o(Ak,"escapeExpression");function wk(e){return!e&&e!==0?!0:!!(v_(e)&&e.length===0)}o(wk,"isEmpty");function Ik(e){var t=S_({},e);return t._parent=e,t}o(Ik,"createFrame");function Tk(e,t){return e.path=t,e}o(Tk,"blockParams");function Ck(e,t){return(e?e+".":"")+t}o(Ck,"appendContextPath")});var tt=h((Za,b_)=>{"use strict";Za.__esModule=!0;var td=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function rd(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<td.length;u++)this[td[u]]=c[td[u]];Error.captureStackTrace&&Error.captureStackTrace(this,rd);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(rd,"Exception");rd.prototype=new Error;Za.default=rd;b_.exports=Za.default});var E_=h((za,__)=>{"use strict";za.__esModule=!0;var nd=Ce();za.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(nd.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 s=nd.createFrame(r.data);s.contextPath=nd.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};__.exports=za.default});var O_=h((Ka,P_)=>{"use strict";Ka.__esModule=!0;function Rk(e){return e&&e.__esModule?e:{default:e}}o(Rk,"_interopRequireDefault");var Ko=Ce(),Nk=tt(),kk=Rk(Nk);Ka.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kk.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ko.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ko.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ko.createFrame(r.data));function l(g,y,S){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!S,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:Ko.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ko.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===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;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};P_.exports=Ka.default});var x_=h((Qa,$_)=>{"use strict";Qa.__esModule=!0;function jk(e){return e&&e.__esModule?e:{default:e}}o(jk,"_interopRequireDefault");var qk=tt(),Mk=jk(qk);Qa.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Mk.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};$_.exports=Qa.default});var T_=h((Wa,I_)=>{"use strict";Wa.__esModule=!0;function Dk(e){return e&&e.__esModule?e:{default:e}}o(Dk,"_interopRequireDefault");var A_=Ce(),Lk=tt(),w_=Dk(Lk);Wa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new w_.default("#if requires exactly one argument");return A_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||A_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new w_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};I_.exports=Wa.default});var R_=h((Ya,C_)=>{"use strict";Ya.__esModule=!0;Ya.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)})};C_.exports=Ya.default});var k_=h((Ja,N_)=>{"use strict";Ja.__esModule=!0;Ja.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};N_.exports=Ja.default});var q_=h((Xa,j_)=>{"use strict";Xa.__esModule=!0;function Fk(e){return e&&e.__esModule?e:{default:e}}o(Fk,"_interopRequireDefault");var Qo=Ce(),Hk=tt(),Vk=Fk(Hk);Xa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Vk.default("#with requires exactly one argument");Qo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Qo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Qo.createFrame(r.data),i.contextPath=Qo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Qo.blockParams([t],[i&&i.contextPath])})})};j_.exports=Xa.default});var id=h(ec=>{"use strict";ec.__esModule=!0;ec.registerDefaultHelpers=nj;ec.moveHelperToHooks=ij;function Sn(e){return e&&e.__esModule?e:{default:e}}o(Sn,"_interopRequireDefault");var Bk=E_(),Gk=Sn(Bk),Uk=O_(),Zk=Sn(Uk),zk=x_(),Kk=Sn(zk),Qk=T_(),Wk=Sn(Qk),Yk=R_(),Jk=Sn(Yk),Xk=k_(),ej=Sn(Xk),tj=q_(),rj=Sn(tj);function nj(e){Gk.default(e),Zk.default(e),Kk.default(e),Wk.default(e),Jk.default(e),ej.default(e),rj.default(e)}o(nj,"registerDefaultHelpers");function ij(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(ij,"moveHelperToHooks")});var D_=h((tc,M_)=>{"use strict";tc.__esModule=!0;var oj=Ce();tc.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=oj.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};M_.exports=tc.default});var L_=h(od=>{"use strict";od.__esModule=!0;od.registerDefaultDecorators=uj;function sj(e){return e&&e.__esModule?e:{default:e}}o(sj,"_interopRequireDefault");var aj=D_(),cj=sj(aj);function uj(e){cj.default(e)}o(uj,"registerDefaultDecorators")});var sd=h((rc,F_)=>{"use strict";rc.__esModule=!0;var lj=Ce(),Oi={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=lj.indexOf(Oi.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Oi.lookupLevel(t),typeof console<"u"&&Oi.lookupLevel(Oi.level)<=t){var r=Oi.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};rc.default=Oi;F_.exports=rc.default});var H_=h(ad=>{"use strict";ad.__esModule=!0;ad.createNewLookupObject=fj;var pj=Ce();function fj(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return pj.extend.apply(void 0,[Object.create(null)].concat(t))}o(fj,"createNewLookupObject")});var cd=h(Wo=>{"use strict";Wo.__esModule=!0;Wo.createProtoAccessControl=gj;Wo.resultIsAllowed=yj;Wo.resetLoggedProperties=vj;function dj(e){return e&&e.__esModule?e:{default:e}}o(dj,"_interopRequireDefault");var V_=H_(),mj=sd(),hj=dj(mj),nc=Object.create(null);function gj(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:V_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:V_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(gj,"createProtoAccessControl");function yj(e,t,r){return B_(typeof e=="function"?t.methods:t.properties,r)}o(yj,"resultIsAllowed");function B_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Sj(t),!1)}o(B_,"checkWhiteList");function Sj(e){nc[e]!==!0&&(nc[e]=!0,hj.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
50
+ Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new sN(e.url)):!f||!("error"in f)?i(lf.syntax(`Unable to parse ${e.url}`)):f.error instanceof iv?i(f.error):i(new iv(f.error.message,e.url))}o(l,"onError")})}o(pN,"parseFile");function fN(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}o(fN,"isEmpty")});var uv=h((m5,cv)=>{"use strict";var sv=ci(),dN=Po(),mN=pf(),$o=He(),{isHandledError:hN}=pt();cv.exports=gN;function gN(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ff(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(gN,"resolveExternal");function ff(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(sv.isExternal$Ref(e))i.push(av(e,t,r,n));else for(let s of Object.keys(e)){let a=dN.join(t,s),c=e[s];sv.isExternal$Ref(c)?i.push(av(c,a,r,n)):i=i.concat(ff(c,a,r,n))}return i}o(ff,"crawl");async function av(e,t,r,n){let i=$o.resolve(t,e.$ref),s=$o.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await mN(i,r,n),c=ff(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!hN(a))throw a;return r._$refs[s]&&(a.source=$o.stripHash(t),a.path=$o.safePointerToPath($o.getHash(t))),[]}}o(av,"resolve$Ref")});var fv=h((g5,pv)=>{"use strict";var pa=ci(),xo=Po(),df=He();pv.exports=yN;function yN(e,t){let r=[];mf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),SN(r)}o(yN,"bundle");function mf(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(pa.isAllowed$Ref(u))lv(e,t,r,n,i,s,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=xo.join(r,f),d=xo.join(n,f),m=u[f];pa.isAllowed$Ref(m)?lv(u,f,r,d,i,s,a,c):mf(u,f,p,d,i,s,a,c)}}}o(mf,"crawl");function lv(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=df.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=xo.parse(n).length,d=df.stripHash(f.path),m=df.getHash(f.path),g=d!==a._root$Ref.path,y=pa.isExtended$Ref(u);i+=f.indirections;let S=vN(s,e,t);if(S)if(p<S.depth||i<S.indirections)bN(s,S);else return;s.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}),S||mf(f.value,null,f.path,n,i+1,s,a,c)}o(lv,"inventory$Ref");function SN(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.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=xo.join(n,xo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=pa.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(SN,"remap");function vN(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(vN,"findInInventory");function bN(e,t){let r=e.indexOf(t);e.splice(r,1)}o(bN,"removeFromInventory")});var yf=h((S5,gv)=>{"use strict";var hf=ci(),dv=Po(),{ono:_N}=ot(),EN=He();gv.exports=PN;function PN(e,t){let r=gf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(PN,"dereference");function gf(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hf.isAllowed$Ref(e,s))a=mv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=dv.join(t,u),f=dv.join(r,u),p=e[u],d=!1;hf.isAllowed$Ref(p,s)?(a=mv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=gf(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=hv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(gf,"crawl");function mv(e,t,r,n,i,s){let a=EN.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&hv(t,i,s);let f=hf.dereference(e,c.value);if(!l){let p=gf(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(mv,"dereference$Ref");function hv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw _N.reference(`Circular $ref pointer found at ${e}`);return!0}o(hv,"foundCircularReference")});var bv=h((b5,$t)=>{"use strict";var vv=XS(),ON=pf(),fa=of(),$N=uv(),xN=fv(),AN=yf(),ui=He(),{JSONParserError:wN,InvalidPointerError:IN,MissingPointerError:TN,ResolverError:CN,ParserError:RN,UnmatchedParserError:NN,UnmatchedResolverError:kN,isHandledError:jN,JSONParserErrorGroup:yv}=pt(),dt=af(),{ono:Sv}=ot();$t.exports=Ot;$t.exports.default=Ot;$t.exports.JSONParserError=wN;$t.exports.InvalidPointerError=IN;$t.exports.MissingPointerError=TN;$t.exports.ResolverError=CN;$t.exports.ParserError=RN;$t.exports.UnmatchedParserError=NN;$t.exports.UnmatchedResolverError=kN;function Ot(){this.schema=null,this.$refs=new vv}o(Ot,"$RefParser");Ot.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Ot.prototype.parse=o(async function(t,r,n,i){let s=fa(arguments),a;if(!s.path&&!s.schema){let l=Sv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return dt(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new vv;let c="http";if(ui.isFileSystemPath(s.path)&&(s.path=ui.fromFileSystemPath(s.path),c="file"),s.path=ui.resolve(ui.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=ON(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,dt(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,dt(s.callback,Promise.resolve(u.schema));throw Sv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!jN(l)?dt(s.callback,Promise.reject(l)):(this.$refs._$refs[ui.stripHash(s.path)]&&this.$refs._$refs[ui.stripHash(s.path)].addError(l),dt(s.callback,Promise.resolve(null)))}},"parse");Ot.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Ot.prototype.resolve=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.parse(a.path,a.schema,a.options),await $N(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.$refs))}catch(c){return dt(a.callback,Promise.reject(c))}},"resolve");Ot.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Ot.prototype.bundle=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),xN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"bundle");Ot.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Ot.prototype.dereference=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),AN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"dereference");function Sf(e){if(yv.getParserErrors(e).length>0)throw new yv(e)}o(Sf,"finalize")});var $v=h((E5,Ov)=>{"use strict";var qN=Mp(),MN=Fp(),_v=of(),Ev=ls(),Pv=LS(),da=af(),{ono:mt}=ot(),nn=bv(),DN=yf();Ov.exports=xt;function xt(){nn.apply(this,arguments)}o(xt,"SwaggerParser");Ev.inherits(xt,nn);xt.parse=nn.parse;xt.resolve=nn.resolve;xt.bundle=nn.bundle;xt.dereference=nn.dereference;Object.defineProperty(xt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});xt.prototype.parse=async function(e,t,r,n){let i=_v(arguments);i.options=new Pv(i.options);try{let s=await nn.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw mt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw mt.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw mt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw mt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Ev.fixOasRelativeServers(s,i.path)}return da(i.callback,Promise.resolve(s))}catch(s){return da(i.callback,Promise.reject(s))}};xt.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};xt.prototype.validate=async function(e,t,r,n){let i=this,s=_v(arguments);s.options=new Pv(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(qN(i.api),i.$refs.circular)){if(a===!0)DN(i,s.options);else if(a===!1)throw mt.reference("The API contains circular references")}return s.options.validate.spec&&MN(i.api),da(s.callback,Promise.resolve(i.schema))}catch(c){return da(s.callback,Promise.reject(c))}}});var ya=h(_r=>{"use strict";_r.__esModule=!0;_r.OpenAPIV2=_r.OpenAPIV3=void 0;var HN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch",r.TRACE="trace"})(t=e.HttpMethods||(e.HttpMethods={}))})(HN=_r.OpenAPIV3||(_r.OpenAPIV3={}));var VN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch"})(t=e.HttpMethods||(e.HttpMethods={}))})(VN=_r.OpenAPIV2||(_r.OpenAPIV2={}))});var Ce=h(Ge=>{"use strict";Ge.__esModule=!0;Ge.extend=S_;Ge.indexOf=xk;Ge.escapeExpression=Ak;Ge.isEmpty=wk;Ge.createFrame=Ik;Ge.blockParams=Tk;Ge.appendContextPath=Ck;var Ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Pk=/[&<>"'`=]/g,Ok=/[&<>"'`=]/;function $k(e){return Ek[e]}o($k,"escapeChar");function S_(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}o(S_,"extend");var ed=Object.prototype.toString;Ge.toString=ed;var Xf=o(function(t){return typeof t=="function"},"isFunction");Xf(/x/)&&(Ge.isFunction=Xf=o(function(e){return typeof e=="function"&&ed.call(e)==="[object Function]"},"isFunction"));Ge.isFunction=Xf;var v_=Array.isArray||function(e){return e&&typeof e=="object"?ed.call(e)==="[object Array]":!1};Ge.isArray=v_;function xk(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(xk,"indexOf");function Ak(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Ok.test(e)?e.replace(Pk,$k):e}o(Ak,"escapeExpression");function wk(e){return!e&&e!==0?!0:!!(v_(e)&&e.length===0)}o(wk,"isEmpty");function Ik(e){var t=S_({},e);return t._parent=e,t}o(Ik,"createFrame");function Tk(e,t){return e.path=t,e}o(Tk,"blockParams");function Ck(e,t){return(e?e+".":"")+t}o(Ck,"appendContextPath")});var tt=h((Za,b_)=>{"use strict";Za.__esModule=!0;var td=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function rd(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<td.length;u++)this[td[u]]=c[td[u]];Error.captureStackTrace&&Error.captureStackTrace(this,rd);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(rd,"Exception");rd.prototype=new Error;Za.default=rd;b_.exports=Za.default});var E_=h((za,__)=>{"use strict";za.__esModule=!0;var nd=Ce();za.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(nd.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 s=nd.createFrame(r.data);s.contextPath=nd.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};__.exports=za.default});var O_=h((Ka,P_)=>{"use strict";Ka.__esModule=!0;function Rk(e){return e&&e.__esModule?e:{default:e}}o(Rk,"_interopRequireDefault");var Ko=Ce(),Nk=tt(),kk=Rk(Nk);Ka.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kk.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ko.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ko.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ko.createFrame(r.data));function l(g,y,S){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!S,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:Ko.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ko.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===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;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};P_.exports=Ka.default});var x_=h((Qa,$_)=>{"use strict";Qa.__esModule=!0;function jk(e){return e&&e.__esModule?e:{default:e}}o(jk,"_interopRequireDefault");var qk=tt(),Mk=jk(qk);Qa.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Mk.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};$_.exports=Qa.default});var T_=h((Wa,I_)=>{"use strict";Wa.__esModule=!0;function Dk(e){return e&&e.__esModule?e:{default:e}}o(Dk,"_interopRequireDefault");var A_=Ce(),Lk=tt(),w_=Dk(Lk);Wa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new w_.default("#if requires exactly one argument");return A_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||A_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new w_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};I_.exports=Wa.default});var R_=h((Ya,C_)=>{"use strict";Ya.__esModule=!0;Ya.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)})};C_.exports=Ya.default});var k_=h((Ja,N_)=>{"use strict";Ja.__esModule=!0;Ja.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};N_.exports=Ja.default});var q_=h((Xa,j_)=>{"use strict";Xa.__esModule=!0;function Fk(e){return e&&e.__esModule?e:{default:e}}o(Fk,"_interopRequireDefault");var Qo=Ce(),Hk=tt(),Vk=Fk(Hk);Xa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Vk.default("#with requires exactly one argument");Qo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Qo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Qo.createFrame(r.data),i.contextPath=Qo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Qo.blockParams([t],[i&&i.contextPath])})})};j_.exports=Xa.default});var id=h(ec=>{"use strict";ec.__esModule=!0;ec.registerDefaultHelpers=nj;ec.moveHelperToHooks=ij;function Sn(e){return e&&e.__esModule?e:{default:e}}o(Sn,"_interopRequireDefault");var Bk=E_(),Gk=Sn(Bk),Uk=O_(),Zk=Sn(Uk),zk=x_(),Kk=Sn(zk),Qk=T_(),Wk=Sn(Qk),Yk=R_(),Jk=Sn(Yk),Xk=k_(),ej=Sn(Xk),tj=q_(),rj=Sn(tj);function nj(e){Gk.default(e),Zk.default(e),Kk.default(e),Wk.default(e),Jk.default(e),ej.default(e),rj.default(e)}o(nj,"registerDefaultHelpers");function ij(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(ij,"moveHelperToHooks")});var D_=h((tc,M_)=>{"use strict";tc.__esModule=!0;var oj=Ce();tc.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=oj.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};M_.exports=tc.default});var L_=h(od=>{"use strict";od.__esModule=!0;od.registerDefaultDecorators=uj;function sj(e){return e&&e.__esModule?e:{default:e}}o(sj,"_interopRequireDefault");var aj=D_(),cj=sj(aj);function uj(e){cj.default(e)}o(uj,"registerDefaultDecorators")});var sd=h((rc,F_)=>{"use strict";rc.__esModule=!0;var lj=Ce(),Oi={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=lj.indexOf(Oi.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Oi.lookupLevel(t),typeof console<"u"&&Oi.lookupLevel(Oi.level)<=t){var r=Oi.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};rc.default=Oi;F_.exports=rc.default});var H_=h(ad=>{"use strict";ad.__esModule=!0;ad.createNewLookupObject=fj;var pj=Ce();function fj(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return pj.extend.apply(void 0,[Object.create(null)].concat(t))}o(fj,"createNewLookupObject")});var cd=h(Wo=>{"use strict";Wo.__esModule=!0;Wo.createProtoAccessControl=gj;Wo.resultIsAllowed=yj;Wo.resetLoggedProperties=vj;function dj(e){return e&&e.__esModule?e:{default:e}}o(dj,"_interopRequireDefault");var V_=H_(),mj=sd(),hj=dj(mj),nc=Object.create(null);function gj(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:V_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:V_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(gj,"createProtoAccessControl");function yj(e,t,r){return B_(typeof e=="function"?t.methods:t.properties,r)}o(yj,"resultIsAllowed");function B_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Sj(t),!1)}o(B_,"checkWhiteList");function Sj(e){nc[e]!==!0&&(nc[e]=!0,hj.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`))}o(Sj,"logUnexpecedPropertyAccessOnce");function vj(){Object.keys(nc).forEach(function(e){delete nc[e]})}o(vj,"resetLoggedProperties")});var oc=h(jt=>{"use strict";jt.__esModule=!0;jt.HandlebarsEnvironment=pd;function G_(e){return e&&e.__esModule?e:{default:e}}o(G_,"_interopRequireDefault");var vn=Ce(),bj=tt(),ud=G_(bj),_j=id(),Ej=L_(),Pj=sd(),ic=G_(Pj),Oj=cd(),$j="4.7.8";jt.VERSION=$j;var xj=8;jt.COMPILER_REVISION=xj;var Aj=7;jt.LAST_COMPATIBLE_COMPILER_REVISION=Aj;var wj={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"};jt.REVISION_CHANGES=wj;var ld="[object Object]";function pd(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},_j.registerDefaultHelpers(this),Ej.registerDefaultDecorators(this)}o(pd,"HandlebarsEnvironment");pd.prototype={constructor:pd,logger:ic.default,log:ic.default.log,registerHelper:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple helpers");vn.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(vn.toString.call(t)===ld)vn.extend(this.partials,t);else{if(typeof r>"u")throw new ud.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple decorators");vn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Oj.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Ij=ic.default.log;jt.log=Ij;jt.createFrame=vn.createFrame;jt.logger=ic.default});var Z_=h((sc,U_)=>{"use strict";sc.__esModule=!0;function fd(e){this.string=e}o(fd,"SafeString");fd.prototype.toString=fd.prototype.toHTML=function(){return""+this.string};sc.default=fd;U_.exports=sc.default});var z_=h(dd=>{"use strict";dd.__esModule=!0;dd.wrapHelper=Tj;function Tj(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(Tj,"wrapHelper")});var J_=h(jr=>{"use strict";jr.__esModule=!0;jr.checkRevision=qj;jr.template=Mj;jr.wrapProgram=ac;jr.resolvePartial=Dj;jr.invokePartial=Lj;jr.noop=W_;function Cj(e){return e&&e.__esModule?e:{default:e}}o(Cj,"_interopRequireDefault");function Rj(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}o(Rj,"_interopRequireWildcard");var Nj=Ce(),Wt=Rj(Nj),kj=tt(),Yt=Cj(kj),Jt=oc(),K_=id(),jj=z_(),Q_=cd();function qj(e){var t=e&&e[0]||1,r=Jt.COMPILER_REVISION;if(!(t>=Jt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Jt.COMPILER_REVISION))if(t<Jt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Jt.REVISION_CHANGES[r],i=Jt.REVISION_CHANGES[t];throw new Yt.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 Yt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(qj,"checkRevision");function Mj(e,t){if(!t)throw new Yt.default("No environment passed to template");if(!e||!e.main)throw new Yt.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=Wt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Wt.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(`
52
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Sj,"logUnexpecedPropertyAccessOnce");function vj(){Object.keys(nc).forEach(function(e){delete nc[e]})}o(vj,"resetLoggedProperties")});var oc=h(jt=>{"use strict";jt.__esModule=!0;jt.HandlebarsEnvironment=pd;function G_(e){return e&&e.__esModule?e:{default:e}}o(G_,"_interopRequireDefault");var vn=Ce(),bj=tt(),ud=G_(bj),_j=id(),Ej=L_(),Pj=sd(),ic=G_(Pj),Oj=cd(),$j="4.7.8";jt.VERSION=$j;var xj=8;jt.COMPILER_REVISION=xj;var Aj=7;jt.LAST_COMPATIBLE_COMPILER_REVISION=Aj;var wj={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"};jt.REVISION_CHANGES=wj;var ld="[object Object]";function pd(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},_j.registerDefaultHelpers(this),Ej.registerDefaultDecorators(this)}o(pd,"HandlebarsEnvironment");pd.prototype={constructor:pd,logger:ic.default,log:ic.default.log,registerHelper:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple helpers");vn.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(vn.toString.call(t)===ld)vn.extend(this.partials,t);else{if(typeof r>"u")throw new ud.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple decorators");vn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Oj.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Ij=ic.default.log;jt.log=Ij;jt.createFrame=vn.createFrame;jt.logger=ic.default});var Z_=h((sc,U_)=>{"use strict";sc.__esModule=!0;function fd(e){this.string=e}o(fd,"SafeString");fd.prototype.toString=fd.prototype.toHTML=function(){return""+this.string};sc.default=fd;U_.exports=sc.default});var z_=h(dd=>{"use strict";dd.__esModule=!0;dd.wrapHelper=Tj;function Tj(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(Tj,"wrapHelper")});var J_=h(kr=>{"use strict";kr.__esModule=!0;kr.checkRevision=qj;kr.template=Mj;kr.wrapProgram=ac;kr.resolvePartial=Dj;kr.invokePartial=Lj;kr.noop=W_;function Cj(e){return e&&e.__esModule?e:{default:e}}o(Cj,"_interopRequireDefault");function Rj(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}o(Rj,"_interopRequireWildcard");var Nj=Ce(),Wt=Rj(Nj),kj=tt(),Yt=Cj(kj),Jt=oc(),K_=id(),jj=z_(),Q_=cd();function qj(e){var t=e&&e[0]||1,r=Jt.COMPILER_REVISION;if(!(t>=Jt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Jt.COMPILER_REVISION))if(t<Jt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Jt.REVISION_CHANGES[r],i=Jt.REVISION_CHANGES[t];throw new Yt.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 Yt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(qj,"checkRevision");function Mj(e,t){if(!t)throw new Yt.default("No environment passed to template");if(!e||!e.main)throw new Yt.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=Wt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Wt.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
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 Yt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Yt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||Q_.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(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:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Wt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ac(this,c,m,u,l,f,p):d||(d=this.programs[c]=ac(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Wt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=Fj(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 o(p,"main"),p=Y_(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._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=Wt.extend({},t.helpers,a.helpers);Hj(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Wt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=Q_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;K_.moveHelperToHooks(i,"helperMissing",u),K_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Yt.default("must pass block params");if(e.useDepths&&!l)throw new Yt.default("must pass parent depths");return ac(i,a,e[a],c,0,u,l)},s}o(Mj,"template");function ac(e,t,r,n,i,s,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,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=Y_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ac,"wrapProgram");function Dj(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}o(Dj,"resolvePartial");function Lj(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!==W_&&function(){r.data=Jt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Jt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Wt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Yt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Lj,"invokePartial");function W_(){return""}o(W_,"noop");function Fj(e,t){return(!t||!("root"in t))&&(t=t?Jt.createFrame(t):{},t.root=e),t}o(Fj,"initData");function Y_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Wt.extend(t,a)}return t}o(Y_,"executeDecorators");function Hj(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Vj(n,t)})}o(Hj,"wrapHelpersToPassLookupProperty");function Vj(e,t){var r=t.lookupProperty;return jj.wrapHelper(e,function(n){return Wt.extend({lookupProperty:r},n)})}o(Vj,"passLookupPropertyOption")});var md=h((cc,X_)=>{"use strict";cc.__esModule=!0;cc.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}};X_.exports=cc.default});var iE=h((uc,nE)=>{"use strict";uc.__esModule=!0;function gd(e){return e&&e.__esModule?e:{default:e}}o(gd,"_interopRequireDefault");function yd(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}o(yd,"_interopRequireWildcard");var Bj=oc(),eE=yd(Bj),Gj=Z_(),Uj=gd(Gj),Zj=tt(),zj=gd(Zj),Kj=Ce(),hd=yd(Kj),Qj=J_(),tE=yd(Qj),Wj=md(),Yj=gd(Wj);function rE(){var e=new eE.HandlebarsEnvironment;return hd.extend(e,eE),e.SafeString=Uj.default,e.Exception=zj.default,e.Utils=hd,e.escapeExpression=hd.escapeExpression,e.VM=tE,e.template=function(t){return tE.template(t,e)},e}o(rE,"create");var Yo=rE();Yo.create=rE;Yj.default(Yo);Yo.default=Yo;uc.default=Yo;nE.exports=uc.default});var Sd=h((lc,sE)=>{"use strict";lc.__esModule=!0;var oE={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!oE.helpers.scopedId(t)&&!t.depth},"simpleId")}};lc.default=oE;sE.exports=lc.default});var cE=h((pc,aE)=>{"use strict";pc.__esModule=!0;var Jj=function(){var e={trace:o(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:o(function(i,s,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:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=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 S=this.lexer.yylloc;u.push(S);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(Ze){a.length=a.length-2*Ze,c.length=c.length-Ze,u.length=u.length-Ze}o(b,"popStack");function E(){var Ze;return Ze=s.lexer.lex()||1,typeof Ze!="number"&&(Ze=s.symbols_[Ze]||Ze),Ze}o(E,"lex");for(var P,_,A,I,J,z,q={},Z,w,Mt,Dt;;){if(A=a[a.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((P===null||typeof P>"u")&&(P=E()),I=l[A]&&l[A][P]),typeof I>"u"||!I.length||!I[0]){var cs="";if(!m){Dt=[];for(Z in l[A])this.terminals_[Z]&&Z>2&&Dt.push("'"+this.terminals_[Z]+"'");this.lexer.showPosition?cs="Parse error on line "+(p+1)+`:
54
+ `)}return f}else throw new Yt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Yt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||Q_.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(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:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Wt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ac(this,c,m,u,l,f,p):d||(d=this.programs[c]=ac(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Wt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=Fj(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 o(p,"main"),p=Y_(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._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=Wt.extend({},t.helpers,a.helpers);Hj(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Wt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=Q_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;K_.moveHelperToHooks(i,"helperMissing",u),K_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Yt.default("must pass block params");if(e.useDepths&&!l)throw new Yt.default("must pass parent depths");return ac(i,a,e[a],c,0,u,l)},s}o(Mj,"template");function ac(e,t,r,n,i,s,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,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=Y_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ac,"wrapProgram");function Dj(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}o(Dj,"resolvePartial");function Lj(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!==W_&&function(){r.data=Jt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Jt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Wt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Yt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Lj,"invokePartial");function W_(){return""}o(W_,"noop");function Fj(e,t){return(!t||!("root"in t))&&(t=t?Jt.createFrame(t):{},t.root=e),t}o(Fj,"initData");function Y_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Wt.extend(t,a)}return t}o(Y_,"executeDecorators");function Hj(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Vj(n,t)})}o(Hj,"wrapHelpersToPassLookupProperty");function Vj(e,t){var r=t.lookupProperty;return jj.wrapHelper(e,function(n){return Wt.extend({lookupProperty:r},n)})}o(Vj,"passLookupPropertyOption")});var md=h((cc,X_)=>{"use strict";cc.__esModule=!0;cc.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}};X_.exports=cc.default});var iE=h((uc,nE)=>{"use strict";uc.__esModule=!0;function gd(e){return e&&e.__esModule?e:{default:e}}o(gd,"_interopRequireDefault");function yd(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}o(yd,"_interopRequireWildcard");var Bj=oc(),eE=yd(Bj),Gj=Z_(),Uj=gd(Gj),Zj=tt(),zj=gd(Zj),Kj=Ce(),hd=yd(Kj),Qj=J_(),tE=yd(Qj),Wj=md(),Yj=gd(Wj);function rE(){var e=new eE.HandlebarsEnvironment;return hd.extend(e,eE),e.SafeString=Uj.default,e.Exception=zj.default,e.Utils=hd,e.escapeExpression=hd.escapeExpression,e.VM=tE,e.template=function(t){return tE.template(t,e)},e}o(rE,"create");var Yo=rE();Yo.create=rE;Yj.default(Yo);Yo.default=Yo;uc.default=Yo;nE.exports=uc.default});var Sd=h((lc,sE)=>{"use strict";lc.__esModule=!0;var oE={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!oE.helpers.scopedId(t)&&!t.depth},"simpleId")}};lc.default=oE;sE.exports=lc.default});var cE=h((pc,aE)=>{"use strict";pc.__esModule=!0;var Jj=function(){var e={trace:o(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:o(function(i,s,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:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=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 S=this.lexer.yylloc;u.push(S);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(Ze){a.length=a.length-2*Ze,c.length=c.length-Ze,u.length=u.length-Ze}o(b,"popStack");function E(){var Ze;return Ze=s.lexer.lex()||1,typeof Ze!="number"&&(Ze=s.symbols_[Ze]||Ze),Ze}o(E,"lex");for(var P,_,w,I,Y,Q,j={},A,ce,Mt,Dt;;){if(w=a[a.length-1],this.defaultActions[w]?I=this.defaultActions[w]:((P===null||typeof P>"u")&&(P=E()),I=l[w]&&l[w][P]),typeof I>"u"||!I.length||!I[0]){var cs="";if(!m){Dt=[];for(A in l[w])this.terminals_[A]&&A>2&&Dt.push("'"+this.terminals_[A]+"'");this.lexer.showPosition?cs="Parse error on line "+(p+1)+`:
55
55
  `+this.lexer.showPosition()+`
56
- Expecting `+Dt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":cs="Parse error on line "+(p+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(cs,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:S,expected:Dt})}}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+P);switch(I[0]){case 1:a.push(P),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(I[1]),P=null,_?(P=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,S=this.lexer.yylloc,m>0&&m--);break;case 2:if(w=this.productions_[I[1]][1],q.$=c[c.length-w],q._$={first_line:u[u.length-(w||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(w||1)].first_column,last_column:u[u.length-1].last_column},v&&(q._$.range=[u[u.length-(w||1)].range[0],u[u.length-1].range[1]]),z=this.performAction.call(q,f,d,p,this.yy,I[1],c,u),typeof z<"u")return z;w&&(a=a.slice(0,-1*w*2),c=c.slice(0,-1*w),u=u.slice(0,-1*w)),a.push(this.productions_[I[1]][0]),c.push(q.$),u.push(q._$),Mt=l[a[a.length-2]][a[a.length-1]],a.push(Mt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+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:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
56
+ Expecting `+Dt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":cs="Parse error on line "+(p+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(cs,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:S,expected:Dt})}}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+P);switch(I[0]){case 1:a.push(P),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(I[1]),P=null,_?(P=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,S=this.lexer.yylloc,m>0&&m--);break;case 2:if(ce=this.productions_[I[1]][1],j.$=c[c.length-ce],j._$={first_line:u[u.length-(ce||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ce||1)].first_column,last_column:u[u.length-1].last_column},v&&(j._$.range=[u[u.length-(ce||1)].range[0],u[u.length-1].range[1]]),Q=this.performAction.call(j,f,d,p,this.yy,I[1],c,u),typeof Q<"u")return Q;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),u=u.slice(0,-1*ce)),a.push(this.productions_[I[1]][0]),c.push(j.$),u.push(j._$),Mt=l[a[a.length-2]][a[a.length-1]],a.push(Mt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+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:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
57
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,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],s=this.performAction.call(this,this.yy,this,p[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||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:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(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 o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();pc.default=Jj;aE.exports=pc.default});var hc=h((mc,pE)=>{"use strict";mc.__esModule=!0;function Xj(e){return e&&e.__esModule?e:{default:e}}o(Xj,"_interopRequireDefault");var e3=tt(),vd=Xj(e3);function fc(){this.parents=[]}o(fc,"Visitor");fc.prototype={constructor:fc,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!fc.prototype[n.type])throw new vd.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new vd.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(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:o(function(t){if(t){if(!this[t.type])throw new vd.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:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:dc,Decorator:dc,BlockStatement:uE,DecoratorBlock:uE,PartialStatement:lE,PartialBlockStatement:o(function(t){lE.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:dc,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function dc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(dc,"visitSubExpression");function uE(e){dc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(uE,"visitBlock");function lE(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(lE,"visitPartial");mc.default=fc;pE.exports=mc.default});var dE=h((gc,fE)=>{"use strict";gc.__esModule=!0;function t3(e){return e&&e.__esModule?e:{default:e}}o(t3,"_interopRequireDefault");var r3=hc(),n3=t3(r3);function qt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(qt,"WhitespaceControl");qt.prototype=new n3.default;qt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=bd(n,i,r),l=_d(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&bn(n,i,!0),c.open&&qr(n,i,!0),t&&d&&(bn(n,i),qr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(bn((a.program||a.inverse).body),qr(n,i)),t&&p&&(bn(n,i),qr((a.inverse||a.program).body))}}return e};qt.prototype.BlockStatement=qt.prototype.DecoratorBlock=qt.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 s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:_d(t.body),closeStandalone:bd((n||t).body)};if(e.openStrip.close&&bn(t.body,null,!0),r){var a=e.inverseStrip;a.open&&qr(t.body,null,!0),a.close&&bn(n.body,null,!0),e.closeStrip.open&&qr(i.body,null,!0),!this.options.ignoreStandalone&&bd(t.body)&&_d(n.body)&&(qr(t.body),bn(n.body))}else e.closeStrip.open&&qr(t.body,null,!0);return s};qt.prototype.Decorator=qt.prototype.MustacheStatement=function(e){return e.strip};qt.prototype.PartialStatement=qt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function bd(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)}o(bd,"isPrevWhitespace");function _d(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)}o(_d,"isNextWhitespace");function bn(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}}o(bn,"omitRight");function qr(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}}o(qr,"omitLeft");gc.default=qt;fE.exports=gc.default});var mE=h(rt=>{"use strict";rt.__esModule=!0;rt.SourceLocation=s3;rt.id=a3;rt.stripFlags=c3;rt.stripComment=u3;rt.preparePath=l3;rt.prepareMustache=p3;rt.prepareRawBlock=f3;rt.prepareBlock=d3;rt.prepareProgram=m3;rt.preparePartialBlock=h3;function i3(e){return e&&e.__esModule?e:{default:e}}o(i3,"_interopRequireDefault");var o3=tt(),Ed=i3(o3);function Pd(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Ed.default(e.path.original+" doesn't match "+t,r)}}o(Pd,"validateClose");function s3(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}}o(s3,"SourceLocation");function a3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(a3,"id");function c3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(c3,"stripFlags");function u3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(u3,"stripComment");function l3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=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 Ed.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(l3,"preparePath");function p3(e,t,r,n,i,s){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(s)}}o(p3,"prepareMustache");function f3(e,t,r,n){Pd(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}}o(f3,"prepareRawBlock");function d3(e,t,r,n,i,s){n&&n.path&&Pd(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Ed.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(s)}}o(d3,"prepareBlock");function m3(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}}o(m3,"prepareProgram");function h3(e,t,r,n){return Pd(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)}}o(h3,"preparePartialBlock")});var yE=h(Jo=>{"use strict";Jo.__esModule=!0;Jo.parseWithoutProcessing=gE;Jo.parse=P3;function g3(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}o(g3,"_interopRequireWildcard");function hE(e){return e&&e.__esModule?e:{default:e}}o(hE,"_interopRequireDefault");var y3=cE(),Od=hE(y3),S3=dE(),v3=hE(S3),b3=mE(),_3=g3(b3),E3=Ce();Jo.parser=Od.default;var yc={};E3.extend(yc,_3);function gE(e,t){if(e.type==="Program")return e;Od.default.yy=yc,yc.locInfo=function(n){return new yc.SourceLocation(t&&t.srcName,n)};var r=Od.default.parse(e);return r}o(gE,"parseWithoutProcessing");function P3(e,t){var r=gE(e,t),n=new v3.default(t);return n.accept(r)}o(P3,"parse")});var _E=h(rs=>{"use strict";rs.__esModule=!0;rs.Compiler=$d;rs.precompile=A3;rs.compile=w3;function vE(e){return e&&e.__esModule?e:{default:e}}o(vE,"_interopRequireDefault");var O3=tt(),es=vE(O3),ts=Ce(),$3=Sd(),Xo=vE($3),x3=[].slice;function $d(){}o($d,"Compiler");$d.prototype={compiler:$d,equals:o(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],s=t.opcodes[n];if(i.opcode!==s.opcode||!bE(i.args,s.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:o(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=ts.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:o(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:o(function(t){if(!this[t.type])throw new es.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(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:o(function(t){SE(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:o(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:o(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 es.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,s=t.name.type==="SubExpression";s&&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",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){SE(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=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",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new es.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Xo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Xo.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:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(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:o(function(t){this.opcodes.push({opcode:t,args:x3.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Xo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Xo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(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&&!Xo.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:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&ts.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function A3(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new es.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)}o(A3,"precompile");function w3(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new es.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ts.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)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(w3,"compile");function bE(e,t){if(e===t)return!0;if(ts.isArray(e)&&ts.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!bE(e[r],t[r]))return!1;return!0}}o(bE,"argEquals");function SE(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}}}o(SE,"transformLiteralToPath")});var PE=h(xd=>{var EE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");xd.encode=function(e){if(0<=e&&e<EE.length)return EE[e];throw new TypeError("Must be between 0 and 63: "+e)};xd.decode=function(e){var t=65,r=90,n=97,i=122,s=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:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var Id=h(wd=>{var OE=PE(),Ad=5,$E=1<<Ad,xE=$E-1,AE=$E;function I3(e){return e<0?(-e<<1)+1:(e<<1)+0}o(I3,"toVLQSigned");function T3(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(T3,"fromVLQSigned");wd.encode=o(function(t){var r="",n,i=I3(t);do n=i&xE,i>>>=Ad,i>0&&(n|=AE),r+=OE.encode(n);while(i>0);return r},"base64VLQ_encode");wd.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=OE.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&AE),u&=xE,s=s+(u<<a),a+=Ad}while(c);n.value=T3(s),n.rest=r},"base64VLQ_decode")});var Ai=h(xe=>{function C3(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(C3,"getArg");xe.getArg=C3;var wE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,R3=/^data:.+\,.+$/;function ns(e){var t=e.match(wE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(ns,"urlParse");xe.urlParse=ns;function $i(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}o($i,"urlGenerate");xe.urlGenerate=$i;function Td(e){var t=e,r=ns(e);if(r){if(!r.path)return e;t=r.path}for(var n=xe.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,$i(r)):t}o(Td,"normalize");xe.normalize=Td;function IE(e,t){e===""&&(e="."),t===""&&(t=".");var r=ns(t),n=ns(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),$i(r);if(r||t.match(R3))return t;if(n&&!n.host&&!n.path)return n.host=t,$i(n);var i=t.charAt(0)==="/"?t:Td(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,$i(n)):i}o(IE,"join");xe.join=IE;xe.isAbsolute=function(e){return e.charAt(0)==="/"||wE.test(e)};function N3(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)}o(N3,"relative");xe.relative=N3;var TE=function(){var e=Object.create(null);return!("__proto__"in e)}();function CE(e){return e}o(CE,"identity");function k3(e){return RE(e)?"$"+e:e}o(k3,"toSetString");xe.toSetString=TE?CE:k3;function j3(e){return RE(e)?e.slice(1):e}o(j3,"fromSetString");xe.fromSetString=TE?CE:j3;function RE(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}o(RE,"isProtoString");function q3(e,t,r){var n=xi(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:xi(e.name,t.name)}o(q3,"compareByOriginalPositions");xe.compareByOriginalPositions=q3;function M3(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=xi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:xi(e.name,t.name)}o(M3,"compareByGeneratedPositionsDeflated");xe.compareByGeneratedPositionsDeflated=M3;function xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(xi,"strcmp");function D3(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:xi(e.name,t.name)}o(D3,"compareByGeneratedPositionsInflated");xe.compareByGeneratedPositionsInflated=D3;function L3(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(L3,"parseSourceMapInput");xe.parseSourceMapInput=L3;function F3(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ns(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=IE($i(n),t)}return Td(t)}o(F3,"computeSourceURL");xe.computeSourceURL=F3});var Nd=h(NE=>{var Cd=Ai(),Rd=Object.prototype.hasOwnProperty,_n=typeof Map<"u";function Xt(){this._array=[],this._set=_n?new Map:Object.create(null)}o(Xt,"ArraySet");Xt.fromArray=o(function(t,r){for(var n=new Xt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Xt.prototype.size=o(function(){return _n?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Xt.prototype.add=o(function(t,r){var n=_n?t:Cd.toSetString(t),i=_n?this.has(t):Rd.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(_n?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Xt.prototype.has=o(function(t){if(_n)return this._set.has(t);var r=Cd.toSetString(t);return Rd.call(this._set,r)},"ArraySet_has");Xt.prototype.indexOf=o(function(t){if(_n){var r=this._set.get(t);if(r>=0)return r}else{var n=Cd.toSetString(t);if(Rd.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Xt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Xt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");NE.ArraySet=Xt});var qE=h(jE=>{var kE=Ai();function H3(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||kE.compareByGeneratedPositionsInflated(e,t)<=0}o(H3,"generatedPositionAfter");function Sc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Sc,"MappingList");Sc.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Sc.prototype.add=o(function(t){H3(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Sc.prototype.toArray=o(function(){return this._sorted||(this._array.sort(kE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");jE.MappingList=Sc});var kd=h(ME=>{var is=Id(),oe=Ai(),vc=Nd().ArraySet,V3=qE().MappingList;function nt(e){e||(e={}),this._file=oe.getArg(e,"file",null),this._sourceRoot=oe.getArg(e,"sourceRoot",null),this._skipValidation=oe.getArg(e,"skipValidation",!1),this._sources=new vc,this._names=new vc,this._mappings=new V3,this._sourcesContents=null}o(nt,"SourceMapGenerator");nt.prototype._version=3;nt.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new nt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=oe.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=oe.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");nt.prototype.addMapping=o(function(t){var r=oe.getArg(t,"generated"),n=oe.getArg(t,"original",null),i=oe.getArg(t,"source",null),s=oe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");nt.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=oe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[oe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[oe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nt.prototype.applySourceMap=o(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 s=this._sourceRoot;s!=null&&(i=oe.relative(s,i));var a=new vc,c=new vc;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=oe.join(n,u.source)),s!=null&&(u.source=oe.relative(s,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=oe.join(n,u)),s!=null&&(u=oe.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");nt.prototype._validateMapping=o(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");nt.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=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(!oe.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=is.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=is.encode(p-a),a=p,u+=is.encode(l.originalLine-1-i),i=l.originalLine-1,u+=is.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=is.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");nt.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=oe.relative(r,n));var i=oe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nt.prototype.toJSON=o(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");nt.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");ME.SourceMapGenerator=nt});var DE=h(En=>{En.GREATEST_LOWER_BOUND=1;En.LEAST_UPPER_BOUND=2;function jd(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?jd(a,t,r,n,i,s):s==En.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?jd(e,a,r,n,i,s):s==En.LEAST_UPPER_BOUND?a:e<0?-1:e}o(jd,"recursiveSearch");En.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=jd(-1,r.length,t,r,n,i||En.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var FE=h(LE=>{function qd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(qd,"swap");function B3(e,t){return Math.round(e+Math.random()*(t-e))}o(B3,"randomIntInRange");function Md(e,t,r,n){if(r<n){var i=B3(r,n),s=r-1;qd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,qd(e,s,c));qd(e,s+1,c);var u=s+1;Md(e,t,r,u-1),Md(e,t,u+1,n)}}o(Md,"doQuickSort");LE.quickSort=function(e,t){Md(e,t,0,e.length-1)}});var VE=h(bc=>{var O=Ai(),Dd=DE(),wi=Nd().ArraySet,G3=Id(),os=FE().quickSort;function W(e,t){var r=e;return typeof e=="string"&&(r=O.parseSourceMapInput(e)),r.sections!=null?new ht(r,t):new ye(r,t)}o(W,"SourceMapConsumer");W.fromSourceMap=function(e,t){return ye.fromSourceMap(e,t)};W.prototype._version=3;W.prototype.__generatedMappings=null;Object.defineProperty(W.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});W.prototype.__originalMappings=null;Object.defineProperty(W.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});W.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");W.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");W.GENERATED_ORDER=1;W.ORIGINAL_ORDER=2;W.GREATEST_LOWER_BOUND=1;W.LEAST_UPPER_BOUND=2;W.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||W.GENERATED_ORDER,a;switch(s){case W.GENERATED_ORDER:a=this._generatedMappings;break;case W.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=O.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");W.prototype.allGeneratedPositionsFor=o(function(t){var r=O.getArg(t,"line"),n={source:O.getArg(t,"source"),originalLine:r,originalColumn:O.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,Dd.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");bc.SourceMapConsumer=W;function ye(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sources"),s=O.getArg(r,"names",[]),a=O.getArg(r,"sourceRoot",null),c=O.getArg(r,"sourcesContent",null),u=O.getArg(r,"mappings"),l=O.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=O.normalize(a)),i=i.map(String).map(O.normalize).map(function(f){return a&&O.isAbsolute(a)&&O.isAbsolute(f)?O.relative(a,f):f}),this._names=wi.fromArray(s.map(String),!0),this._sources=wi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return O.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(ye,"BasicSourceMapConsumer");ye.prototype=Object.create(W.prototype);ye.prototype.consumer=W;ye.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=O.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};ye.fromSourceMap=o(function(t,r){var n=Object.create(ye.prototype),i=n._names=wi.fromArray(t._names.toArray(),!0),s=n._sources=wi.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 O.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 HE;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.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 os(n.__originalMappings,O.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ye.prototype._version=3;Object.defineProperty(ye.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function HE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(HE,"Mapping");ye.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,S,v,b,E;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new HE,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(S=t.slice(f,b),v=p[S],v)f+=S.length;else{for(v=[];f<b;)G3.decode(t,f,d),E=d.value,f=d.rest,v.push(E);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");p[S]=v}y.generatedColumn=i+v[0],i=y.generatedColumn,v.length>1&&(y.source=c+v[1],c+=v[1],y.originalLine=s+v[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+v[3],a=y.originalColumn,v.length>4&&(y.name=u+v[4],u+=v[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}os(g,O.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,os(m,O.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ye.prototype._findMapping=o(function(t,r,n,i,s,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 Dd.search(t,r,s,a)},"SourceMapConsumer_findMapping");ye.prototype.computeColumnSpans=o(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");ye.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",O.compareByGeneratedPositionsDeflated,O.getArg(t,"bias",W.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=O.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=O.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=O.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:O.getArg(i,"originalLine",null),column:O.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ye.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ye.prototype.sourceContentFor=o(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=O.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=O.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.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");ye.prototype.generatedPositionFor=o(function(t){var r=O.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:O.getArg(t,"line"),originalColumn:O.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,O.getArg(t,"bias",W.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:O.getArg(s,"generatedLine",null),column:O.getArg(s,"generatedColumn",null),lastColumn:O.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");bc.BasicSourceMapConsumer=ye;function ht(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new wi,this._names=new wi;var s={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=O.getArg(a,"offset"),u=O.getArg(c,"line"),l=O.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new W(O.getArg(a,"map"),t)}})}o(ht,"IndexedSourceMapConsumer");ht.prototype=Object.create(W.prototype);ht.prototype.constructor=W;ht.prototype._version=3;Object.defineProperty(ht.prototype,"sources",{get:o(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")});ht.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=Dd.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.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");ht.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ht.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ht.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(O.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ht.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=O.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)}os(this.__generatedMappings,O.compareByGeneratedPositionsDeflated),os(this.__originalMappings,O.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");bc.IndexedSourceMapConsumer=ht});var GE=h(BE=>{var U3=kd().SourceMapGenerator,_c=Ai(),Z3=/(\r?\n)/,z3=10,Ii="$$$isSourceNode$$$";function Ue(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[Ii]=!0,n!=null&&this.add(n)}o(Ue,"SourceNode");Ue.fromStringWithSourceMap=o(function(t,r,n){var i=new Ue,s=t.split(Z3),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[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=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[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=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=_c.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?_c.join(n,d.source):d.source;i.add(new Ue(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ue.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ii]||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");Ue.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ii]||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");Ue.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ii]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ue.prototype.join=o(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");Ue.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Ii]?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");Ue.prototype.setSourceContent=o(function(t,r){this.sourceContents[_c.toSetString(t)]=r},"SourceNode_setSourceContent");Ue.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ii]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(_c.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ue.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ue.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new U3(t),i=!1,s=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?((s!==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}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===z3?(r.line++,r.column=0,p+1===d?(s=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");BE.SourceNode=Ue});var UE=h(Ec=>{Ec.SourceMapGenerator=kd().SourceMapGenerator;Ec.SourceMapConsumer=VE().SourceMapConsumer;Ec.SourceNode=GE().SourceNode});var QE=h((Pc,KE)=>{"use strict";Pc.__esModule=!0;var Fd=Ce(),Pn=void 0;try{(typeof define!="function"||!define.amd)&&(ZE=UE(),Pn=ZE.SourceNode)}catch{}var ZE;Pn||(Pn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pn.prototype={add:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Ld(e,t,r){if(Fd.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Ld,"castChunk");function zE(e){this.srcFile=e,this.source=[]}o(zE,"CodeGen");zE.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
58
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(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 o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();pc.default=Jj;aE.exports=pc.default});var hc=h((mc,pE)=>{"use strict";mc.__esModule=!0;function Xj(e){return e&&e.__esModule?e:{default:e}}o(Xj,"_interopRequireDefault");var e3=tt(),vd=Xj(e3);function fc(){this.parents=[]}o(fc,"Visitor");fc.prototype={constructor:fc,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!fc.prototype[n.type])throw new vd.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new vd.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(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:o(function(t){if(t){if(!this[t.type])throw new vd.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:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:dc,Decorator:dc,BlockStatement:uE,DecoratorBlock:uE,PartialStatement:lE,PartialBlockStatement:o(function(t){lE.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:dc,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function dc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(dc,"visitSubExpression");function uE(e){dc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(uE,"visitBlock");function lE(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(lE,"visitPartial");mc.default=fc;pE.exports=mc.default});var dE=h((gc,fE)=>{"use strict";gc.__esModule=!0;function t3(e){return e&&e.__esModule?e:{default:e}}o(t3,"_interopRequireDefault");var r3=hc(),n3=t3(r3);function qt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(qt,"WhitespaceControl");qt.prototype=new n3.default;qt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=bd(n,i,r),l=_d(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&bn(n,i,!0),c.open&&jr(n,i,!0),t&&d&&(bn(n,i),jr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(bn((a.program||a.inverse).body),jr(n,i)),t&&p&&(bn(n,i),jr((a.inverse||a.program).body))}}return e};qt.prototype.BlockStatement=qt.prototype.DecoratorBlock=qt.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 s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:_d(t.body),closeStandalone:bd((n||t).body)};if(e.openStrip.close&&bn(t.body,null,!0),r){var a=e.inverseStrip;a.open&&jr(t.body,null,!0),a.close&&bn(n.body,null,!0),e.closeStrip.open&&jr(i.body,null,!0),!this.options.ignoreStandalone&&bd(t.body)&&_d(n.body)&&(jr(t.body),bn(n.body))}else e.closeStrip.open&&jr(t.body,null,!0);return s};qt.prototype.Decorator=qt.prototype.MustacheStatement=function(e){return e.strip};qt.prototype.PartialStatement=qt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function bd(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)}o(bd,"isPrevWhitespace");function _d(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)}o(_d,"isNextWhitespace");function bn(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}}o(bn,"omitRight");function jr(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}}o(jr,"omitLeft");gc.default=qt;fE.exports=gc.default});var mE=h(rt=>{"use strict";rt.__esModule=!0;rt.SourceLocation=s3;rt.id=a3;rt.stripFlags=c3;rt.stripComment=u3;rt.preparePath=l3;rt.prepareMustache=p3;rt.prepareRawBlock=f3;rt.prepareBlock=d3;rt.prepareProgram=m3;rt.preparePartialBlock=h3;function i3(e){return e&&e.__esModule?e:{default:e}}o(i3,"_interopRequireDefault");var o3=tt(),Ed=i3(o3);function Pd(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Ed.default(e.path.original+" doesn't match "+t,r)}}o(Pd,"validateClose");function s3(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}}o(s3,"SourceLocation");function a3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(a3,"id");function c3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(c3,"stripFlags");function u3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(u3,"stripComment");function l3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=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 Ed.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(l3,"preparePath");function p3(e,t,r,n,i,s){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(s)}}o(p3,"prepareMustache");function f3(e,t,r,n){Pd(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}}o(f3,"prepareRawBlock");function d3(e,t,r,n,i,s){n&&n.path&&Pd(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Ed.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(s)}}o(d3,"prepareBlock");function m3(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}}o(m3,"prepareProgram");function h3(e,t,r,n){return Pd(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)}}o(h3,"preparePartialBlock")});var yE=h(Jo=>{"use strict";Jo.__esModule=!0;Jo.parseWithoutProcessing=gE;Jo.parse=P3;function g3(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}o(g3,"_interopRequireWildcard");function hE(e){return e&&e.__esModule?e:{default:e}}o(hE,"_interopRequireDefault");var y3=cE(),Od=hE(y3),S3=dE(),v3=hE(S3),b3=mE(),_3=g3(b3),E3=Ce();Jo.parser=Od.default;var yc={};E3.extend(yc,_3);function gE(e,t){if(e.type==="Program")return e;Od.default.yy=yc,yc.locInfo=function(n){return new yc.SourceLocation(t&&t.srcName,n)};var r=Od.default.parse(e);return r}o(gE,"parseWithoutProcessing");function P3(e,t){var r=gE(e,t),n=new v3.default(t);return n.accept(r)}o(P3,"parse")});var _E=h(rs=>{"use strict";rs.__esModule=!0;rs.Compiler=$d;rs.precompile=A3;rs.compile=w3;function vE(e){return e&&e.__esModule?e:{default:e}}o(vE,"_interopRequireDefault");var O3=tt(),es=vE(O3),ts=Ce(),$3=Sd(),Xo=vE($3),x3=[].slice;function $d(){}o($d,"Compiler");$d.prototype={compiler:$d,equals:o(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],s=t.opcodes[n];if(i.opcode!==s.opcode||!bE(i.args,s.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:o(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=ts.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:o(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:o(function(t){if(!this[t.type])throw new es.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(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:o(function(t){SE(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:o(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:o(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 es.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,s=t.name.type==="SubExpression";s&&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",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){SE(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=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",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new es.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Xo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Xo.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:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(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:o(function(t){this.opcodes.push({opcode:t,args:x3.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Xo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Xo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(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&&!Xo.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:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&ts.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function A3(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new es.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)}o(A3,"precompile");function w3(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new es.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ts.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)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(w3,"compile");function bE(e,t){if(e===t)return!0;if(ts.isArray(e)&&ts.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!bE(e[r],t[r]))return!1;return!0}}o(bE,"argEquals");function SE(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}}}o(SE,"transformLiteralToPath")});var PE=h(xd=>{var EE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");xd.encode=function(e){if(0<=e&&e<EE.length)return EE[e];throw new TypeError("Must be between 0 and 63: "+e)};xd.decode=function(e){var t=65,r=90,n=97,i=122,s=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:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var Id=h(wd=>{var OE=PE(),Ad=5,$E=1<<Ad,xE=$E-1,AE=$E;function I3(e){return e<0?(-e<<1)+1:(e<<1)+0}o(I3,"toVLQSigned");function T3(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(T3,"fromVLQSigned");wd.encode=o(function(t){var r="",n,i=I3(t);do n=i&xE,i>>>=Ad,i>0&&(n|=AE),r+=OE.encode(n);while(i>0);return r},"base64VLQ_encode");wd.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=OE.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&AE),u&=xE,s=s+(u<<a),a+=Ad}while(c);n.value=T3(s),n.rest=r},"base64VLQ_decode")});var Ai=h(xe=>{function C3(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(C3,"getArg");xe.getArg=C3;var wE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,R3=/^data:.+\,.+$/;function ns(e){var t=e.match(wE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(ns,"urlParse");xe.urlParse=ns;function $i(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}o($i,"urlGenerate");xe.urlGenerate=$i;function Td(e){var t=e,r=ns(e);if(r){if(!r.path)return e;t=r.path}for(var n=xe.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,$i(r)):t}o(Td,"normalize");xe.normalize=Td;function IE(e,t){e===""&&(e="."),t===""&&(t=".");var r=ns(t),n=ns(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),$i(r);if(r||t.match(R3))return t;if(n&&!n.host&&!n.path)return n.host=t,$i(n);var i=t.charAt(0)==="/"?t:Td(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,$i(n)):i}o(IE,"join");xe.join=IE;xe.isAbsolute=function(e){return e.charAt(0)==="/"||wE.test(e)};function N3(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)}o(N3,"relative");xe.relative=N3;var TE=function(){var e=Object.create(null);return!("__proto__"in e)}();function CE(e){return e}o(CE,"identity");function k3(e){return RE(e)?"$"+e:e}o(k3,"toSetString");xe.toSetString=TE?CE:k3;function j3(e){return RE(e)?e.slice(1):e}o(j3,"fromSetString");xe.fromSetString=TE?CE:j3;function RE(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}o(RE,"isProtoString");function q3(e,t,r){var n=xi(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:xi(e.name,t.name)}o(q3,"compareByOriginalPositions");xe.compareByOriginalPositions=q3;function M3(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=xi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:xi(e.name,t.name)}o(M3,"compareByGeneratedPositionsDeflated");xe.compareByGeneratedPositionsDeflated=M3;function xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(xi,"strcmp");function D3(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:xi(e.name,t.name)}o(D3,"compareByGeneratedPositionsInflated");xe.compareByGeneratedPositionsInflated=D3;function L3(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(L3,"parseSourceMapInput");xe.parseSourceMapInput=L3;function F3(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ns(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=IE($i(n),t)}return Td(t)}o(F3,"computeSourceURL");xe.computeSourceURL=F3});var Nd=h(NE=>{var Cd=Ai(),Rd=Object.prototype.hasOwnProperty,_n=typeof Map<"u";function Xt(){this._array=[],this._set=_n?new Map:Object.create(null)}o(Xt,"ArraySet");Xt.fromArray=o(function(t,r){for(var n=new Xt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Xt.prototype.size=o(function(){return _n?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Xt.prototype.add=o(function(t,r){var n=_n?t:Cd.toSetString(t),i=_n?this.has(t):Rd.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(_n?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Xt.prototype.has=o(function(t){if(_n)return this._set.has(t);var r=Cd.toSetString(t);return Rd.call(this._set,r)},"ArraySet_has");Xt.prototype.indexOf=o(function(t){if(_n){var r=this._set.get(t);if(r>=0)return r}else{var n=Cd.toSetString(t);if(Rd.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Xt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Xt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");NE.ArraySet=Xt});var qE=h(jE=>{var kE=Ai();function H3(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||kE.compareByGeneratedPositionsInflated(e,t)<=0}o(H3,"generatedPositionAfter");function Sc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Sc,"MappingList");Sc.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Sc.prototype.add=o(function(t){H3(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Sc.prototype.toArray=o(function(){return this._sorted||(this._array.sort(kE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");jE.MappingList=Sc});var kd=h(ME=>{var is=Id(),ie=Ai(),vc=Nd().ArraySet,V3=qE().MappingList;function nt(e){e||(e={}),this._file=ie.getArg(e,"file",null),this._sourceRoot=ie.getArg(e,"sourceRoot",null),this._skipValidation=ie.getArg(e,"skipValidation",!1),this._sources=new vc,this._names=new vc,this._mappings=new V3,this._sourcesContents=null}o(nt,"SourceMapGenerator");nt.prototype._version=3;nt.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new nt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=ie.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=ie.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");nt.prototype.addMapping=o(function(t){var r=ie.getArg(t,"generated"),n=ie.getArg(t,"original",null),i=ie.getArg(t,"source",null),s=ie.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");nt.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ie.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ie.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ie.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nt.prototype.applySourceMap=o(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 s=this._sourceRoot;s!=null&&(i=ie.relative(s,i));var a=new vc,c=new vc;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=ie.join(n,u.source)),s!=null&&(u.source=ie.relative(s,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=ie.join(n,u)),s!=null&&(u=ie.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");nt.prototype._validateMapping=o(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");nt.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=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(!ie.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=is.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=is.encode(p-a),a=p,u+=is.encode(l.originalLine-1-i),i=l.originalLine-1,u+=is.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=is.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");nt.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ie.relative(r,n));var i=ie.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nt.prototype.toJSON=o(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");nt.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");ME.SourceMapGenerator=nt});var DE=h(En=>{En.GREATEST_LOWER_BOUND=1;En.LEAST_UPPER_BOUND=2;function jd(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?jd(a,t,r,n,i,s):s==En.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?jd(e,a,r,n,i,s):s==En.LEAST_UPPER_BOUND?a:e<0?-1:e}o(jd,"recursiveSearch");En.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=jd(-1,r.length,t,r,n,i||En.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var FE=h(LE=>{function qd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(qd,"swap");function B3(e,t){return Math.round(e+Math.random()*(t-e))}o(B3,"randomIntInRange");function Md(e,t,r,n){if(r<n){var i=B3(r,n),s=r-1;qd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,qd(e,s,c));qd(e,s+1,c);var u=s+1;Md(e,t,r,u-1),Md(e,t,u+1,n)}}o(Md,"doQuickSort");LE.quickSort=function(e,t){Md(e,t,0,e.length-1)}});var VE=h(bc=>{var O=Ai(),Dd=DE(),wi=Nd().ArraySet,G3=Id(),os=FE().quickSort;function K(e,t){var r=e;return typeof e=="string"&&(r=O.parseSourceMapInput(e)),r.sections!=null?new ht(r,t):new ye(r,t)}o(K,"SourceMapConsumer");K.fromSourceMap=function(e,t){return ye.fromSourceMap(e,t)};K.prototype._version=3;K.prototype.__generatedMappings=null;Object.defineProperty(K.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});K.prototype.__originalMappings=null;Object.defineProperty(K.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});K.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");K.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");K.GENERATED_ORDER=1;K.ORIGINAL_ORDER=2;K.GREATEST_LOWER_BOUND=1;K.LEAST_UPPER_BOUND=2;K.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||K.GENERATED_ORDER,a;switch(s){case K.GENERATED_ORDER:a=this._generatedMappings;break;case K.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=O.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");K.prototype.allGeneratedPositionsFor=o(function(t){var r=O.getArg(t,"line"),n={source:O.getArg(t,"source"),originalLine:r,originalColumn:O.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,Dd.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");bc.SourceMapConsumer=K;function ye(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sources"),s=O.getArg(r,"names",[]),a=O.getArg(r,"sourceRoot",null),c=O.getArg(r,"sourcesContent",null),u=O.getArg(r,"mappings"),l=O.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=O.normalize(a)),i=i.map(String).map(O.normalize).map(function(f){return a&&O.isAbsolute(a)&&O.isAbsolute(f)?O.relative(a,f):f}),this._names=wi.fromArray(s.map(String),!0),this._sources=wi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return O.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(ye,"BasicSourceMapConsumer");ye.prototype=Object.create(K.prototype);ye.prototype.consumer=K;ye.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=O.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};ye.fromSourceMap=o(function(t,r){var n=Object.create(ye.prototype),i=n._names=wi.fromArray(t._names.toArray(),!0),s=n._sources=wi.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 O.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 HE;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.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 os(n.__originalMappings,O.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ye.prototype._version=3;Object.defineProperty(ye.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function HE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(HE,"Mapping");ye.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,S,v,b,E;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new HE,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(S=t.slice(f,b),v=p[S],v)f+=S.length;else{for(v=[];f<b;)G3.decode(t,f,d),E=d.value,f=d.rest,v.push(E);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");p[S]=v}y.generatedColumn=i+v[0],i=y.generatedColumn,v.length>1&&(y.source=c+v[1],c+=v[1],y.originalLine=s+v[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+v[3],a=y.originalColumn,v.length>4&&(y.name=u+v[4],u+=v[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}os(g,O.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,os(m,O.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ye.prototype._findMapping=o(function(t,r,n,i,s,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 Dd.search(t,r,s,a)},"SourceMapConsumer_findMapping");ye.prototype.computeColumnSpans=o(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");ye.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",O.compareByGeneratedPositionsDeflated,O.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=O.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=O.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=O.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:O.getArg(i,"originalLine",null),column:O.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ye.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ye.prototype.sourceContentFor=o(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=O.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=O.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.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");ye.prototype.generatedPositionFor=o(function(t){var r=O.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:O.getArg(t,"line"),originalColumn:O.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,O.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:O.getArg(s,"generatedLine",null),column:O.getArg(s,"generatedColumn",null),lastColumn:O.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");bc.BasicSourceMapConsumer=ye;function ht(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new wi,this._names=new wi;var s={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=O.getArg(a,"offset"),u=O.getArg(c,"line"),l=O.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new K(O.getArg(a,"map"),t)}})}o(ht,"IndexedSourceMapConsumer");ht.prototype=Object.create(K.prototype);ht.prototype.constructor=K;ht.prototype._version=3;Object.defineProperty(ht.prototype,"sources",{get:o(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")});ht.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=Dd.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.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");ht.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ht.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ht.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(O.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ht.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=O.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)}os(this.__generatedMappings,O.compareByGeneratedPositionsDeflated),os(this.__originalMappings,O.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");bc.IndexedSourceMapConsumer=ht});var GE=h(BE=>{var U3=kd().SourceMapGenerator,_c=Ai(),Z3=/(\r?\n)/,z3=10,Ii="$$$isSourceNode$$$";function Ue(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[Ii]=!0,n!=null&&this.add(n)}o(Ue,"SourceNode");Ue.fromStringWithSourceMap=o(function(t,r,n){var i=new Ue,s=t.split(Z3),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[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=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[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=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=_c.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?_c.join(n,d.source):d.source;i.add(new Ue(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ue.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ii]||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");Ue.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ii]||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");Ue.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ii]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ue.prototype.join=o(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");Ue.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Ii]?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");Ue.prototype.setSourceContent=o(function(t,r){this.sourceContents[_c.toSetString(t)]=r},"SourceNode_setSourceContent");Ue.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ii]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(_c.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ue.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ue.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new U3(t),i=!1,s=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?((s!==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}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===z3?(r.line++,r.column=0,p+1===d?(s=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");BE.SourceNode=Ue});var UE=h(Ec=>{Ec.SourceMapGenerator=kd().SourceMapGenerator;Ec.SourceMapConsumer=VE().SourceMapConsumer;Ec.SourceNode=GE().SourceNode});var QE=h((Pc,KE)=>{"use strict";Pc.__esModule=!0;var Fd=Ce(),Pn=void 0;try{(typeof define!="function"||!define.amd)&&(ZE=UE(),Pn=ZE.SourceNode)}catch{}var ZE;Pn||(Pn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pn.prototype={add:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Ld(e,t,r){if(Fd.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Ld,"castChunk");function zE(e){this.srcFile=e,this.source=[]}o(zE,"CodeGen");zE.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
59
  `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new Pn(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Pn?t:(t=Ld(t,this,r),new Pn(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(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:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Ld(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Ld(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Pc.default=zE;KE.exports=Pc.default});var eP=h((Oc,XE)=>{"use strict";Oc.__esModule=!0;function JE(e){return e&&e.__esModule?e:{default:e}}o(JE,"_interopRequireDefault");var WE=oc(),K3=tt(),Hd=JE(K3),Q3=Ce(),W3=QE(),YE=JE(W3);function Ti(e){this.value=e}o(Ti,"Literal");function Ci(){}o(Ci,"JavaScriptCompiler");Ci.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=WE.COMPILER_REVISION,r=WE.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return Q3.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(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 s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[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 Hd.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(`}
@@ -68,10 +68,10 @@ Expecting `+Dt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":cs="Parse error
68
68
  }
69
69
  return undefined
70
70
  }
71
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(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:o(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:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(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:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Y3(this.options.strict&&s,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:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(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:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(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:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.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",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(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:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",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:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(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:Ci,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=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]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.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:o(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:o(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:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Ti||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Ti(t))},"pushStackLiteral"),pushSource:o(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:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Hd.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ti)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Ti)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Ti)return n.value;if(!r){if(!this.stackSlot)throw new Hd.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Ti?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(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:o(function(t,r,n){var i=[],s=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:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],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(),s[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(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"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=Ci.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Ci.isValidJavaScriptVariableName=function(e){return!Ci.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function Y3(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(Y3,"strictLookup");Oc.default=Ci;XE.exports=Oc.default});var nP=h(($c,rP)=>{"use strict";$c.__esModule=!0;function ss(e){return e&&e.__esModule?e:{default:e}}o(ss,"_interopRequireDefault");var J3=iE(),X3=ss(J3),eq=Sd(),tq=ss(eq),Vd=yE(),Bd=_E(),rq=eP(),nq=ss(rq),iq=hc(),oq=ss(iq),sq=md(),aq=ss(sq),cq=X3.default.create;function tP(){var e=cq();return e.compile=function(t,r){return Bd.compile(t,r,e)},e.precompile=function(t,r){return Bd.precompile(t,r,e)},e.AST=tq.default,e.Compiler=Bd.Compiler,e.JavaScriptCompiler=nq.default,e.Parser=Vd.parser,e.parse=Vd.parse,e.parseWithoutProcessing=Vd.parseWithoutProcessing,e}o(tP,"create");var Ri=tP();Ri.create=tP;aq.default(Ri);Ri.Visitor=oq.default;Ri.default=Ri;$c.default=Ri;rP.exports=$c.default});var iP=h(xc=>{"use strict";xc.__esModule=!0;xc.print=fq;xc.PrintVisitor=te;function uq(e){return e&&e.__esModule?e:{default:e}}o(uq,"_interopRequireDefault");var lq=hc(),pq=uq(lq);function fq(e){return new te().accept(e)}o(fq,"print");function te(){this.padding=0}o(te,"PrintVisitor");te.prototype=new pq.default;te.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
- `,t};te.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};te.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};te.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};te.prototype.BlockStatement=te.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};te.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+" }}")};te.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+" }}")};te.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};te.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};te.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};te.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};te.prototype.StringLiteral=function(e){return'"'+e.value+'"'};te.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};te.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};te.prototype.UndefinedLiteral=function(){return"UNDEFINED"};te.prototype.NullLiteral=function(){return"NULL"};te.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(", ")+"}"};te.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var er=h((l9,aP)=>{var Ac=nP().default,sP=iP();Ac.PrintVisitor=sP.PrintVisitor;Ac.print=sP.print;aP.exports=Ac;function oP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ac.compile(n)}o(oP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=oP,require.extensions[".hbs"]=oP)});var mM={};BP(mM,{getGenerateFilesData:()=>dM,getGenerateMetadata:()=>fM});module.exports=GP(mM);var Kd=Re($v());var xv="Schema",Av="Enum",wv="Body",Iv="Param",Tv="Response",Cv="ErrorResponse",Ao="z.void()",li="z.any()",ma="z.instanceof(Blob)",wo="z.enum",Rv="z.int()",Nv="z.number()",ha="z.string()",kv="z.email()",jv="z.url()",qv="z.uuid()",Mv="z.iso.datetime({ offset: true })",vr={bindings:["z"],from:"zod"};var vf={input:"http://localhost:4000/docs-json/",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,tsPath:"@/data",importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"},configs:{outputFileNameSuffix:"configs",namespaceSuffix:"Configs"}},standalone:!1,baseUrl:"",schemaSuffix:xv,enumSuffix:Av,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:"@/util/rest/clients/app-rest-client",errorHandlingImportPath:"@/util/vendor/error-handling",removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:"@/types/react-query",axiosRequestConfig:!1,mutationEffects:!0,infiniteQueries:!1,infiniteQueryParamNames:{page:"page"},infiniteQueryResponseParamNames:{page:"page",totalItems:"totalItems",limit:"limit"},acl:!0,checkAcl:!0,abilityContextImportPath:"@/data/acl/ability.context",abilityContextGenericAppAbilities:!1,builderConfigs:!1,filterParamName:"filter",dataResponseParamNames:["data","items"],dynamicInputsImportPath:"@povio/ui",dynamicColumnsImportPath:"@povio/ui"};var B=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),br=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Io=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),me=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Dv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),bf=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Lv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),LN=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),_f=o(e=>{let t=e.map(B).map(Fv).map(r=>FN(r)).flat();return LN(t)},"getMostCommonAdjacentCombinationSplit"),Fv=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ga=o(e=>Fv(e).join(" "),"camelToSpaceSeparated"),FN=o((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 s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),Hv=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${br(r)}|${B(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var V=o(({type:e,tag:t,options:r})=>`${B(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Gt=Re(ya());var Sa=o(e=>e.method===Gt.OpenAPIV3.HttpMethods.GET,"isGetEndpoint"),Ef=o((e,t)=>Sa(e)&&Object.values(t.infiniteQueryParamNames).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isPaginatedGetEndpoint"),Vv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.GET&&!pi(e.pathSegments.at(-1))&&Ef(e,t),"isReadAllEndpoint"),Bv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.GET&&Pf(e,t),"isReadEndpoint"),Gv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.POST&&Wv(e,t),"isCreateEndpoint"),Uv=o((e,t)=>[Gt.OpenAPIV3.HttpMethods.PUT,Gt.OpenAPIV3.HttpMethods.PATCH].includes(e.method)&&Pf(e,t),"isUpdateEndpoint"),Zv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.DELETE&&Pf(e,t),"isDeleteEndpoint"),zv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.DELETE&&Wv(e,t),"isBulkDeleteEndpoint"),Kv=o(e=>e.split("/").filter(Boolean),"getPathSegments"),pi=o(e=>e==null?void 0:e.startsWith(":"),"isPathSegmentParam"),Qv=o((e,t)=>t.pathSegments.every((r,n)=>pi(r)&&pi(e.pathSegments[n])||r===e.pathSegments[n]),"hasMatchingPath"),Wv=o((e,t)=>e.pathSegments.length===t.pathSegments.length&&Qv(e,t),"hasMatchingPathWithoutTrailingParam"),Pf=o((e,t)=>e.pathSegments.length-1===t.pathSegments.length&&pi(e.pathSegments.at(-1))&&Qv(e,t),"hasMatchingPathWithTrailingParam");var kb=Re(ya());var sn="application/json",Of={"Content-Type":sn,Accept:sn},va="data",$f="axios",Er="config",At="AxiosRequestConfig",ba={defaultImport:$f,bindings:[At],from:"axios"};var Yv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),wt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function L(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(L,"isReferenceObject");function he(e){return!L(e)}o(he,"isSchemaObject");function _a(e){return e.type==="array"}o(_a,"isArraySchemaObject");function Jv(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,s)=>{if(BN(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(L(i)){let a=s(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")}}o(Jv,"inferRequiredSchema");var BN=o(e=>!L(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ut=Symbol.for("@ts-pattern/matcher"),GN=Symbol.for("@ts-pattern/isVariadic"),Pa="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Ea=o(e=>e&&!!e[Ut],"i"),Ct=o((e,t,r)=>{if(Ea(e)){let n=e[Ut](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(xf(e)){if(!xf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Ea(c)&&c[GN]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.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)=>Ct(l,a[f],r))&&i.every((l,f)=>Ct(l,c[f],r))&&(s.length===0||Ct(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ct(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ea(s=i)&&s[Ut]().matcherType==="optional")&&Ct(i,t[n],r);var s})}return Object.is(t,e)},"s"),Ar=o(e=>{var t,r,n;return xf(e)?Ea(e)?(t=(r=(n=e[Ut]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Co(e,Ar):Co(Object.values(e),Ar):[]},"o"),Co=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Je(e){return Object.assign(e,{optional:o(()=>UN(e),"optional"),and:o(t=>Y(e,t),"and"),or:o(t=>ZN(e,t),"or"),select:o(t=>t===void 0?Xv(e):Xv(t,e),"select")})}o(Je,"u");function UN(e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Ar(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ct(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Ar(e),"getSelectionKeys"),matcherType:"optional"})})}o(UN,"h");function Y(...e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"and"})})}o(Y,"m");function ZN(...e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Co(e,Ar).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"or"})})}o(ZN,"d");function H(e){return{[Ut]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(H,"p");function Xv(...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 Je({[Ut]:()=>({match:o(n=>{let i={[t??Pa]:n};return{matched:r===void 0||Ct(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Pa].concat(r===void 0?[]:Ar(r)),"getSelectionKeys")})})}o(Xv,"y");function It(e){return typeof e=="number"}o(It,"v");function Pr(e){return typeof e=="string"}o(Pr,"b");function Or(e){return typeof e=="bigint"}o(Or,"w");var V5=Je(H(function(e){return!0}));var $r=o(e=>Object.assign(Je(e),{startsWith:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&!!n.match(r)))));var r},"regex")}),"j"),B5=$r(H(Pr)),Tt=o(e=>Object.assign(Je(e),{between:o((t,r)=>Tt(Y(e,((n,i)=>H(s=>It(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n<r))(t))),"lt"),gt:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n>r))(t))),"gt"),lte:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n<=r))(t))),"lte"),gte:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n>=r))(t))),"gte"),int:o(()=>Tt(Y(e,H(t=>It(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Tt(Y(e,H(t=>It(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Tt(Y(e,H(t=>It(t)&&t>0))),"positive"),negative:o(()=>Tt(Y(e,H(t=>It(t)&&t<0))),"negative")}),"x"),G5=Tt(H(It)),xr=o(e=>Object.assign(Je(e),{between:o((t,r)=>xr(Y(e,((n,i)=>H(s=>Or(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n<r))(t))),"lt"),gt:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n>r))(t))),"gt"),lte:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n<=r))(t))),"lte"),gte:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n>=r))(t))),"gte"),positive:o(()=>xr(Y(e,H(t=>Or(t)&&t>0))),"positive"),negative:o(()=>xr(Y(e,H(t=>Or(t)&&t<0))),"negative")}),"A"),U5=xr(H(Or)),Z5=Je(H(function(e){return typeof e=="boolean"})),z5=Je(H(function(e){return typeof e=="symbol"})),K5=Je(H(function(e){return e==null})),Q5=Je(H(function(e){return e!=null}));var Tf=class Tf 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}};o(Tf,"W");var Af=Tf,wf={matched:!1,value:void 0};function $e(e){return new If(e,wf)}o($e,"z");var To=class To{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 s=!1,a={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Ct(l,this.input,c))||i&&!i(this.input)?wf:{matched:!0,value:r(s?Pa in a?a[Pa]:a:this.input,this.input)};return new To(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new To(this.input,n?{matched:!0,value:r(this.input,this.input)}:wf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Af(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(To,"I");var If=To;var Zt=Re(ya()),Cf=2,eb=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],tb=["query","header","path"],an=[Zt.OpenAPIV3.HttpMethods.GET,Zt.OpenAPIV3.HttpMethods.PUT,Zt.OpenAPIV3.HttpMethods.POST,Zt.OpenAPIV3.HttpMethods.DELETE,Zt.OpenAPIV3.HttpMethods.OPTIONS,Zt.OpenAPIV3.HttpMethods.HEAD,Zt.OpenAPIV3.HttpMethods.PATCH,Zt.OpenAPIV3.HttpMethods.TRACE],rb=["string","number","integer","boolean"],fi=["allOf","anyOf","oneOf"];var ib=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),cn=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),di=o(e=>cn(e).split("/").at(-1),"getSchemaNameByRef");function Nf(e){let t=zN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return me(t)}o(Nf,"normalizeString");function kf(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(kf,"wrapWithQuotesIfNeeded");function ob(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(ob,"unwrapQuotesIfNeeded");function zN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(zN,"prefixStringStartingWithNumberIfNeeded");function jf(e){let t=e.replaceAll("_","#");return me(t.replaceAll("-","_")).replaceAll("#","_")}o(jf,"pathParamToVariableName");var zt=o(e=>rb.includes(e),"isPrimitiveType");function sb(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,"\\/")}o(sb,"escapeControlCharacters");function Xe(e){return e.includes("application/")&&e.includes("json")||eb.includes(e)||e.includes("text/")}o(Xe,"isParamMediaTypeAllowed");function Ro(e){return e>=200&&e<300}o(Ro,"isMainResponseStatus");function Oa(e){return!(e>=200&&e<300)}o(Oa,"isErrorStatus");function mi(e){return e.startsWith("application/")}o(mi,"isMediaTypeAllowed");var nb=/({\w+})/g,KN=/[^\w\-]+/g;function ab(e){e=B(Io(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(nb)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(nb,"")}By${B(r.slice(1,-1))}`}return e.replace(KN,"_")}o(ab,"pathToVariableName");var Rf=/{(\b\w+(?:-\w+)*\b)}/g;function cb(e){let t=e.match(Rf);return t===null?e.replaceAll(Rf,":$1"):(t.forEach(r=>{let n=jf(r.replaceAll(Rf,":$1"));e=e.replaceAll(r,n)}),e)}o(cb,"replaceHyphenatedPath");var $a=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&he(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),un=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function Kt(e){return Dv(e)}o(Kt,"formatTag");function wr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Kt(r??t.defaultTag)}o(wr,"getOperationTag");function De(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Kt(r??t.defaultTag)}o(De,"getEndpointTag");function ub(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(ub,"isTagExcluded");var xa={fileName:"acl/app.ability",extension:"ts"},No="AppAbilities",Aa={fileName:"acl/useAclCheck",extension:"ts"},Ir="useAclCheck",ge={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},qf={bindings:[ge.abilityTuple,ge.pureAbility,ge.forcedSubject,ge.subjectType,ge.subject],from:"@casl/ability"};var ko="AppRestClient",wa={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Mf="src/data",Tr={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Ia={bindings:[Tr.ErrorHandler,Tr.SharedErrorHandler]},Df="AbilityContext",lb={bindings:[Df]},jo={dynamicInputs:"dynamicInputs",dynamicColumns:"dynamicColumns"};var Ta={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Ca={fileName:"app-rest-client",extension:"ts"},Lf="QueryModule",Ra={fileName:"queryModules",extension:"ts"},pb={fileName:"queryConfig.context",extension:"tsx"},hi={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},Na={fileName:"useMutationEffects",extension:"ts"},et={namespace:"ZodExtended",exports:{parse:"parse",sortExp:"sortExp"}},ka={fileName:"zod.extended",extension:"ts"};var Ve=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var qo=o(e=>`canUse${B(me(e.operationName))}`,"getAbilityFunctionName"),ja=o((e,t)=>`${t.tsNamespaces?`${V({type:"acl",tag:De(e,t),options:t})}.`:""}${qo(e)}`,"getImportedAbilityFunctionName"),Ff=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Hf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Mo=o(e=>{var t;return!!((t=gi(e))!=null&&t.length)},"hasAbilityConditions"),gi=o(e=>{var t,r;return(r=(t=e.acl)==null?void 0:t[0].conditionsTypes)==null?void 0:r.sort((n,i)=>n.name.localeCompare(i.name))},"getAbilityConditionsTypes"),fb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Vf=o(e=>{var n;let t=Hf(e),r=[`"${t??""}"`];return Mo(e)&&r.push(`ForcedSubject<"${t}"> & { ${(n=gi(e))==null?void 0:n.map(i=>`${i.name}${i.required?"":"?"}: ${i.type??""}${i.zodSchemaName??""},`).join(" ")} }`),r},"getAbilitySubjectTypes");function Bf({resolver:e,data:t,tag:r}){var c;let n=(c=t.get(r))==null?void 0:c.endpoints.filter(({acl:u})=>u&&u.length>0);if(!n||n.length===0)return;let i=n.some(({acl:u})=>(u==null?void 0:u[0].conditions)&&Object.keys(u[0].conditions).length>0),s=n.reduce((u,l)=>{var p,d;let f=(d=(p=l.acl)==null?void 0:p[0].conditionsTypes)==null?void 0:d.reduce((m,g)=>[...m,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...u,...f??[]]},[]),a=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(s)});return{endpoints:n,hasAdditionalAbilityImports:i,modelsImports:a}}o(Bf,"getAclData");var db=o(({resolver:e,data:t})=>{let r=new Map,n=[],i=!1;t.forEach((c,u)=>{let l=Bf({resolver:e,data:t,tag:u});if(!l)return;let{modelsImports:f,hasAdditionalAbilityImports:p,endpoints:d}=l;n.push(f),i=i||p,d.forEach(m=>{let g=Ff(m);g&&r.set(g,new Set([...r.get(g)??[],...Vf(m)]))})});let s=Do(e.options,...n);return{appAbilitiesType:r.size>0?Object.fromEntries(Array.from(r.entries()).map(([c,u])=>[c,Array.from(u)])):void 0,modelsImports:s,hasAdditionalAbilityImports:i}},"getAppAbilitiesType");function Te(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(L(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(fi.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Te(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Te(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Te(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Te(s,t)}}o(Te,"iterateSchema");var ln=o((e,t)=>bf(B(Nf(e)),t),"getZodSchemaName"),Lo=o((e,t,r)=>bf(B(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),ne=o(e=>["z.",`${et.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),mb=o(e=>e.startsWith(wo),"isEnumZodSchema"),pn=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),qa=o(e=>me(`${e}_${wv}`),"getBodyZodSchemaName"),hb=o((e,t)=>me(`${e}_${t}${Iv}`),"getParamZodSchemaName"),QN=o(e=>me(`${e}${Tv}`),"getMainResponseZodSchemaName"),WN=o((e,t)=>me(`${e}_${t}_${Cv}`),"getErrorResponseZodSchemaName");function Ma({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=pn(t,r,n);return!Ro(i)&&e!=="default"&&Oa(i)?WN(s,e):QN(s)}o(Ma,"getResponseZodSchemaName");function Fo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${B(ga(i))}: \`${e[i]}\``],[])}o(Fo,"getSchemaDescriptions");var Ho=o((e,t)=>Lv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Rr=o((e,t)=>ne(t)?`${e.options.tsNamespaces?`${V({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Cr=o((e,t,r)=>{if(!ne(t))return t===Ao?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${V({type:"models",tag:n,options:e.options})}.`:""}${Ho(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function gb(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(gb,"getZodSchemaType");function yb(e){if(e.schemaObj)return[e.schemaObj.description,...Fo(e.schemaObj)].filter(Boolean).join(". ")}o(yb,"getZodSchemaDescription");function Sb(e,t,r){var n;if(L(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Cr(e,i,r):void 0}if(_a(t)){if(!L(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Cr(e,i,r)}[]`:void 0}if(fi.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return Sb(e,i[0],r)}return t.type}o(Sb,"getType");function vb(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...Fo(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:Sb(e,c.schema,r)??"unknown",description:p.join(". ")})}return Te(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(L(c)){let u=e.resolveObject(c);Te(u,{data:{pathSegments:[]},onSchema:a})}}),Te(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(vb,"getZodSchemaPropertyDescriptions");function Rt({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=yi({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=yi({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ho(u,e.options),"getEntityName"),options:e.options});return Do(e.options,a,c)}o(Rt,"getModelsImports");function bb({tag:e,endpoints:t,options:r}){return yi({type:"endpoints",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Vo,options:r})}o(bb,"getEndpointsImports");function _b({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:fn,options:r})}o(_b,"getQueriesImports");function Eb({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Bo,options:r})}o(Eb,"getInfiniteQueriesImports");function Da({tag:e,endpoints:t,options:r}){return yi({type:"acl",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:qo,options:r})}o(Da,"getAclImports");function Qt(e){let t=e.tsPath;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Mf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Mf}`,"g"),e.tsPath)),`${t}/`.replace(/\/\//g,"/")}o(Qt,"getImportPath");function yi({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?V({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Qt(s)}${Si({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(yi,"getImports");function Do(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ve(n.bindings)}))}o(Do,"mergeImports");function dn({fileName:e,extension:t}){return`${e}.${t}`}o(dn,"getFileNameWithExtension");function Pb({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${br(t)}/`:""}${br(t)}.${i}`:i}o(Pb,"getTagFileNameWithoutExtension");function Si(...e){return Pb(...e)}o(Si,"getTagImportPath");function Ob(...e){return`${Pb(...e)}.ts`}o(Ob,"getTagFileName");function $b(e){return e.standalone?`${Qt(e)}${Ca.fileName}`:e.restClientImportPath}o($b,"getAppRestClientImportPath");function xb(e){return e.standalone?`${Qt(e)}${Ta.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(xb,"getQueryTypesImportPath");function Ab(e){return`${Qt(e)}${Ra.fileName}`}o(Ab,"getQueryModulesImportPath");function wb(e){return`${Qt(e)}${Na.fileName}`}o(wb,"getMutationEffectsImportPath");function Ib(e){return`${Qt(e)}${Aa.fileName}`}o(Ib,"getAclCheckImportPath");function Tb(e){return`${Qt(e)}${ka.fileName}`}o(Tb,"getZodExtendedImportPath");function Cb(e){return`${Qt(e)}${xa.fileName}`}o(Cb,"getAppAbilitiesImportPath");function La(e){return $e(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(La,"primitiveTypeToTsType");function vi({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&ne(e)?(n=Cr(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&zt(t==null?void 0:t.type)&&(n=La(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Si({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(vi,"getTsTypeBase");function mn({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of fi){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return mn({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(s[0])}return e.type==="array"?{metaType:"array",arrayType:Rb({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:YN({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(mn,"getSchemaTsMetaType");function Rb({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(L(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=vi({zodSchemaName:n,schema:i,resolver:r}),a=Nb(s,t),c=mn({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(Rb,"getArraySchemaTsType");function YN({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(L(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=vi({zodSchemaName:c,schema:u,resolver:r}),f=Nb(l,t),p=mn({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=Rb({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(zt(i.type))return{name:n,isRequired:s,type:La(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(YN,"getSchemaTsProperties");function Nb(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Nb,"getIsCircular");var Vo=o(e=>br(me(e.operationName)),"getEndpointName");function jb(e,t){return`${t.tsNamespaces?`${V({type:"endpoints",tag:De(e,t),options:t})}.`:""}${Vo(e)}`}o(jb,"getImportedEndpointName");var qb=o(e=>e.method!==kb.OpenAPIV3.HttpMethods.GET,"requiresBody"),Nr=o(e=>e.parameters.find(t=>t.type==="Body"),"getEndpointBody"),Mb=o((e,t)=>{let r=Gf(e),n=t.options.axiosRequestConfig;return Object.keys(r).length>0||n},"hasEndpointConfig"),Db=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function kr(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(ne(i.zodSchema))s=Cr(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&he(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&zt(f)&&(s=La(f))}return{name:wt(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==va)&&(!(r!=null&&r.excludePageParam)||i.name!==e.options.infiniteQueryParamNames.page)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===e.options.infiniteQueryParamNames.page?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(kr,"mapEndpointParamsToFunctionParams");function Gf(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Yv(i.name)?i.name:`"${i.name}"`,a=wt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Of["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Of.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=wt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(Gf,"getEndpointConfig");function Lb(e,t){return t.filter(r=>Le(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(Lb,"getUpdateQueryEndpoints");var Le=o(e=>Sa(e),"isQuery"),Nt=o(e=>!Sa(e)||!!e.mediaDownload,"isMutation"),bi=o((e,t)=>Ef(e,t),"isInfiniteQuery"),Fb=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...kr(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return kr(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");var fn=o((e,t)=>{let r=Le(e)&&Nt(e)&&t;return`use${B(me(e.operationName))}${r?"Mutation":""}`},"getQueryName"),Bo=o(e=>`use${B(me(e.operationName))}Infinite`,"getInfiniteQueryName"),hn=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${fn(e)}`,"getImportedQueryName"),Hb=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${Bo(e)}`,"getImportedInfiniteQueryName");function kt({schema:e,meta:t,options:r}){let n=[];$e(e.type).with("string",()=>n.push(ek(e))).with("number","integer",()=>n.push(rk(e))).with("array",()=>n.push(nk(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
71
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(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:o(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:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(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:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Y3(this.options.strict&&s,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:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(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:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(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:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.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",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(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:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",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:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(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:Ci,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=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]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.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:o(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:o(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:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Ti||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Ti(t))},"pushStackLiteral"),pushSource:o(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:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Hd.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ti)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Ti)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Ti)return n.value;if(!r){if(!this.stackSlot)throw new Hd.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Ti?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(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:o(function(t,r,n){var i=[],s=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:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],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(),s[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(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"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=Ci.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Ci.isValidJavaScriptVariableName=function(e){return!Ci.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function Y3(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(Y3,"strictLookup");Oc.default=Ci;XE.exports=Oc.default});var nP=h(($c,rP)=>{"use strict";$c.__esModule=!0;function ss(e){return e&&e.__esModule?e:{default:e}}o(ss,"_interopRequireDefault");var J3=iE(),X3=ss(J3),eq=Sd(),tq=ss(eq),Vd=yE(),Bd=_E(),rq=eP(),nq=ss(rq),iq=hc(),oq=ss(iq),sq=md(),aq=ss(sq),cq=X3.default.create;function tP(){var e=cq();return e.compile=function(t,r){return Bd.compile(t,r,e)},e.precompile=function(t,r){return Bd.precompile(t,r,e)},e.AST=tq.default,e.Compiler=Bd.Compiler,e.JavaScriptCompiler=nq.default,e.Parser=Vd.parser,e.parse=Vd.parse,e.parseWithoutProcessing=Vd.parseWithoutProcessing,e}o(tP,"create");var Ri=tP();Ri.create=tP;aq.default(Ri);Ri.Visitor=oq.default;Ri.default=Ri;$c.default=Ri;rP.exports=$c.default});var iP=h(xc=>{"use strict";xc.__esModule=!0;xc.print=fq;xc.PrintVisitor=ee;function uq(e){return e&&e.__esModule?e:{default:e}}o(uq,"_interopRequireDefault");var lq=hc(),pq=uq(lq);function fq(e){return new ee().accept(e)}o(fq,"print");function ee(){this.padding=0}o(ee,"PrintVisitor");ee.prototype=new pq.default;ee.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};ee.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};ee.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};ee.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};ee.prototype.BlockStatement=ee.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};ee.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+" }}")};ee.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+" }}")};ee.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};ee.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};ee.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};ee.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};ee.prototype.StringLiteral=function(e){return'"'+e.value+'"'};ee.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};ee.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};ee.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ee.prototype.NullLiteral=function(){return"NULL"};ee.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(", ")+"}"};ee.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var er=h((l9,aP)=>{var Ac=nP().default,sP=iP();Ac.PrintVisitor=sP.PrintVisitor;Ac.print=sP.print;aP.exports=Ac;function oP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ac.compile(n)}o(oP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=oP,require.extensions[".hbs"]=oP)});var mM={};BP(mM,{getGenerateFilesData:()=>dM,getGenerateMetadata:()=>fM});module.exports=GP(mM);var Kd=Re($v());var xv="Schema",Av="Enum",wv="Body",Iv="Param",Tv="Response",Cv="ErrorResponse",Ao="z.void()",li="z.any()",ma="z.instanceof(Blob)",wo="z.enum",Rv="z.int()",Nv="z.number()",ha="z.string()",kv="z.email()",jv="z.url()",qv="z.uuid()",Mv="z.iso.datetime({ offset: true })",vr={bindings:["z"],from:"zod"};var vf={input:"http://localhost:4000/docs-json/",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,tsPath:"@/data",importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"},configs:{outputFileNameSuffix:"configs",namespaceSuffix:"Configs"}},standalone:!1,baseUrl:"",schemaSuffix:xv,enumSuffix:Av,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:"@/util/rest/clients/app-rest-client",errorHandlingImportPath:"@/util/vendor/error-handling",removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:"@/types/react-query",axiosRequestConfig:!1,mutationEffects:!0,infiniteQueries:!1,infiniteQueryParamNames:{page:"page"},infiniteQueryResponseParamNames:{page:"page",totalItems:"totalItems",limit:"limit"},acl:!0,checkAcl:!0,abilityContextImportPath:"@/data/acl/ability.context",abilityContextGenericAppAbilities:!1,builderConfigs:!1,filterParamName:"filter",dataResponseParamNames:["data","items"],dynamicInputsImportPath:"@povio/ui",dynamicColumnsImportPath:"@povio/ui"};var B=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),br=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Io=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),me=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Dv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),bf=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Lv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),LN=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),_f=o(e=>{let t=e.map(B).map(Fv).map(r=>FN(r)).flat();return LN(t)},"getMostCommonAdjacentCombinationSplit"),Fv=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ga=o(e=>Fv(e).join(" "),"camelToSpaceSeparated"),FN=o((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 s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),Hv=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${br(r)}|${B(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var V=o(({type:e,tag:t,options:r})=>`${B(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Gt=Re(ya());var Sa=o(e=>e.method===Gt.OpenAPIV3.HttpMethods.GET,"isGetEndpoint"),Ef=o((e,t)=>Sa(e)&&Object.values(t.infiniteQueryParamNames).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isPaginatedGetEndpoint"),Vv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.GET&&!pi(e.pathSegments.at(-1))&&Ef(e,t),"isReadAllEndpoint"),Bv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.GET&&Pf(e,t),"isReadEndpoint"),Gv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.POST&&Wv(e,t),"isCreateEndpoint"),Uv=o((e,t)=>[Gt.OpenAPIV3.HttpMethods.PUT,Gt.OpenAPIV3.HttpMethods.PATCH].includes(e.method)&&Pf(e,t),"isUpdateEndpoint"),Zv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.DELETE&&Pf(e,t),"isDeleteEndpoint"),zv=o((e,t)=>e.method===Gt.OpenAPIV3.HttpMethods.DELETE&&Wv(e,t),"isBulkDeleteEndpoint"),Kv=o(e=>e.split("/").filter(Boolean),"getPathSegments"),pi=o(e=>e==null?void 0:e.startsWith(":"),"isPathSegmentParam"),Qv=o((e,t)=>t.pathSegments.every((r,n)=>pi(r)&&pi(e.pathSegments[n])||r===e.pathSegments[n]),"hasMatchingPath"),Wv=o((e,t)=>e.pathSegments.length===t.pathSegments.length&&Qv(e,t),"hasMatchingPathWithoutTrailingParam"),Pf=o((e,t)=>e.pathSegments.length-1===t.pathSegments.length&&pi(e.pathSegments.at(-1))&&Qv(e,t),"hasMatchingPathWithTrailingParam");var kb=Re(ya());var on="application/json",Of={"Content-Type":on,Accept:on},va="data",$f="axios",Er="config",At="AxiosRequestConfig",ba={defaultImport:$f,bindings:[At],from:"axios"};var Yv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),wt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function L(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(L,"isReferenceObject");function he(e){return!L(e)}o(he,"isSchemaObject");function _a(e){return e.type==="array"}o(_a,"isArraySchemaObject");function Jv(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,s)=>{if(BN(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(L(i)){let a=s(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")}}o(Jv,"inferRequiredSchema");var BN=o(e=>!L(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ut=Symbol.for("@ts-pattern/matcher"),GN=Symbol.for("@ts-pattern/isVariadic"),Pa="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Ea=o(e=>e&&!!e[Ut],"i"),Ct=o((e,t,r)=>{if(Ea(e)){let n=e[Ut](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(xf(e)){if(!xf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Ea(c)&&c[GN]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.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)=>Ct(l,a[f],r))&&i.every((l,f)=>Ct(l,c[f],r))&&(s.length===0||Ct(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ct(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ea(s=i)&&s[Ut]().matcherType==="optional")&&Ct(i,t[n],r);var s})}return Object.is(t,e)},"s"),Ar=o(e=>{var t,r,n;return xf(e)?Ea(e)?(t=(r=(n=e[Ut]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Co(e,Ar):Co(Object.values(e),Ar):[]},"o"),Co=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Je(e){return Object.assign(e,{optional:o(()=>UN(e),"optional"),and:o(t=>W(e,t),"and"),or:o(t=>ZN(e,t),"or"),select:o(t=>t===void 0?Xv(e):Xv(t,e),"select")})}o(Je,"u");function UN(e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Ar(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ct(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Ar(e),"getSelectionKeys"),matcherType:"optional"})})}o(UN,"h");function W(...e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"and"})})}o(W,"m");function ZN(...e){return Je({[Ut]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Co(e,Ar).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"or"})})}o(ZN,"d");function H(e){return{[Ut]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(H,"p");function Xv(...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 Je({[Ut]:()=>({match:o(n=>{let i={[t??Pa]:n};return{matched:r===void 0||Ct(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Pa].concat(r===void 0?[]:Ar(r)),"getSelectionKeys")})})}o(Xv,"y");function It(e){return typeof e=="number"}o(It,"v");function Pr(e){return typeof e=="string"}o(Pr,"b");function Or(e){return typeof e=="bigint"}o(Or,"w");var V5=Je(H(function(e){return!0}));var $r=o(e=>Object.assign(Je(e),{startsWith:o(t=>{return $r(W(e,(r=t,H(n=>Pr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return $r(W(e,(r=t,H(n=>Pr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>$r(W(e,(r=>H(n=>Pr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>$r(W(e,(r=>H(n=>Pr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>$r(W(e,(r=>H(n=>Pr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return $r(W(e,(r=t,H(n=>Pr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return $r(W(e,(r=t,H(n=>Pr(n)&&!!n.match(r)))));var r},"regex")}),"j"),B5=$r(H(Pr)),Tt=o(e=>Object.assign(Je(e),{between:o((t,r)=>Tt(W(e,((n,i)=>H(s=>It(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Tt(W(e,(r=>H(n=>It(n)&&n<r))(t))),"lt"),gt:o(t=>Tt(W(e,(r=>H(n=>It(n)&&n>r))(t))),"gt"),lte:o(t=>Tt(W(e,(r=>H(n=>It(n)&&n<=r))(t))),"lte"),gte:o(t=>Tt(W(e,(r=>H(n=>It(n)&&n>=r))(t))),"gte"),int:o(()=>Tt(W(e,H(t=>It(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Tt(W(e,H(t=>It(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Tt(W(e,H(t=>It(t)&&t>0))),"positive"),negative:o(()=>Tt(W(e,H(t=>It(t)&&t<0))),"negative")}),"x"),G5=Tt(H(It)),xr=o(e=>Object.assign(Je(e),{between:o((t,r)=>xr(W(e,((n,i)=>H(s=>Or(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>xr(W(e,(r=>H(n=>Or(n)&&n<r))(t))),"lt"),gt:o(t=>xr(W(e,(r=>H(n=>Or(n)&&n>r))(t))),"gt"),lte:o(t=>xr(W(e,(r=>H(n=>Or(n)&&n<=r))(t))),"lte"),gte:o(t=>xr(W(e,(r=>H(n=>Or(n)&&n>=r))(t))),"gte"),positive:o(()=>xr(W(e,H(t=>Or(t)&&t>0))),"positive"),negative:o(()=>xr(W(e,H(t=>Or(t)&&t<0))),"negative")}),"A"),U5=xr(H(Or)),Z5=Je(H(function(e){return typeof e=="boolean"})),z5=Je(H(function(e){return typeof e=="symbol"})),K5=Je(H(function(e){return e==null})),Q5=Je(H(function(e){return e!=null}));var Tf=class Tf 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}};o(Tf,"W");var Af=Tf,wf={matched:!1,value:void 0};function $e(e){return new If(e,wf)}o($e,"z");var To=class To{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 s=!1,a={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Ct(l,this.input,c))||i&&!i(this.input)?wf:{matched:!0,value:r(s?Pa in a?a[Pa]:a:this.input,this.input)};return new To(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new To(this.input,n?{matched:!0,value:r(this.input,this.input)}:wf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Af(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(To,"I");var If=To;var Zt=Re(ya()),Cf=2,eb=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],tb=["query","header","path"],sn=[Zt.OpenAPIV3.HttpMethods.GET,Zt.OpenAPIV3.HttpMethods.PUT,Zt.OpenAPIV3.HttpMethods.POST,Zt.OpenAPIV3.HttpMethods.DELETE,Zt.OpenAPIV3.HttpMethods.OPTIONS,Zt.OpenAPIV3.HttpMethods.HEAD,Zt.OpenAPIV3.HttpMethods.PATCH,Zt.OpenAPIV3.HttpMethods.TRACE],rb=["string","number","integer","boolean"],fi=["allOf","anyOf","oneOf"];var ib=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),an=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),di=o(e=>an(e).split("/").at(-1),"getSchemaNameByRef");function Nf(e){let t=zN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return me(t)}o(Nf,"normalizeString");function kf(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(kf,"wrapWithQuotesIfNeeded");function ob(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(ob,"unwrapQuotesIfNeeded");function zN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(zN,"prefixStringStartingWithNumberIfNeeded");function jf(e){let t=e.replaceAll("_","#");return me(t.replaceAll("-","_")).replaceAll("#","_")}o(jf,"pathParamToVariableName");var zt=o(e=>rb.includes(e),"isPrimitiveType");function sb(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,"\\/")}o(sb,"escapeControlCharacters");function Xe(e){return e.includes("application/")&&e.includes("json")||eb.includes(e)||e.includes("text/")}o(Xe,"isParamMediaTypeAllowed");function Ro(e){return e>=200&&e<300}o(Ro,"isMainResponseStatus");function Oa(e){return!(e>=200&&e<300)}o(Oa,"isErrorStatus");function mi(e){return e.startsWith("application/")}o(mi,"isMediaTypeAllowed");var nb=/({\w+})/g,KN=/[^\w\-]+/g;function ab(e){e=B(Io(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(nb)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(nb,"")}By${B(r.slice(1,-1))}`}return e.replace(KN,"_")}o(ab,"pathToVariableName");var Rf=/{(\b\w+(?:-\w+)*\b)}/g;function cb(e){let t=e.match(Rf);return t===null?e.replaceAll(Rf,":$1"):(t.forEach(r=>{let n=jf(r.replaceAll(Rf,":$1"));e=e.replaceAll(r,n)}),e)}o(cb,"replaceHyphenatedPath");var $a=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&he(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),cn=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function Kt(e){return Dv(e)}o(Kt,"formatTag");function wr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Kt(r??t.defaultTag)}o(wr,"getOperationTag");function De(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Kt(r??t.defaultTag)}o(De,"getEndpointTag");function ub(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(ub,"isTagExcluded");var xa={fileName:"acl/app.ability",extension:"ts"},No="AppAbilities",Aa={fileName:"acl/useAclCheck",extension:"ts"},Ir="useAclCheck",ge={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},qf={bindings:[ge.abilityTuple,ge.pureAbility,ge.forcedSubject,ge.subjectType,ge.subject],from:"@casl/ability"};var ko="AppRestClient",wa={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Mf="src/data",Tr={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Ia={bindings:[Tr.ErrorHandler,Tr.SharedErrorHandler]},Df="AbilityContext",lb={bindings:[Df]},jo={dynamicInputs:"dynamicInputs",dynamicColumns:"dynamicColumns"};var Ta={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Ca={fileName:"app-rest-client",extension:"ts"},Lf="QueryModule",Ra={fileName:"queryModules",extension:"ts"},pb={fileName:"queryConfig.context",extension:"tsx"},hi={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},Na={fileName:"useMutationEffects",extension:"ts"},et={namespace:"ZodExtended",exports:{parse:"parse",sortExp:"sortExp"}},ka={fileName:"zod.extended",extension:"ts"};var Ve=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var qo=o(e=>`canUse${B(me(e.operationName))}`,"getAbilityFunctionName"),ja=o((e,t)=>`${t.tsNamespaces?`${V({type:"acl",tag:De(e,t),options:t})}.`:""}${qo(e)}`,"getImportedAbilityFunctionName"),Ff=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Hf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Mo=o(e=>{var t;return!!((t=gi(e))!=null&&t.length)},"hasAbilityConditions"),gi=o(e=>{var t,r;return(r=(t=e.acl)==null?void 0:t[0].conditionsTypes)==null?void 0:r.sort((n,i)=>n.name.localeCompare(i.name))},"getAbilityConditionsTypes"),fb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Vf=o(e=>{var n;let t=Hf(e),r=[`"${t??""}"`];return Mo(e)&&r.push(`ForcedSubject<"${t}"> & { ${(n=gi(e))==null?void 0:n.map(i=>`${i.name}${i.required?"":"?"}: ${i.type??""}${i.zodSchemaName??""},`).join(" ")} }`),r},"getAbilitySubjectTypes");function Bf({resolver:e,data:t,tag:r}){var c;let n=(c=t.get(r))==null?void 0:c.endpoints.filter(({acl:u})=>u&&u.length>0);if(!n||n.length===0)return;let i=n.some(({acl:u})=>(u==null?void 0:u[0].conditions)&&Object.keys(u[0].conditions).length>0),s=n.reduce((u,l)=>{var p,d;let f=(d=(p=l.acl)==null?void 0:p[0].conditionsTypes)==null?void 0:d.reduce((m,g)=>[...m,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...u,...f??[]]},[]),a=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(s)});return{endpoints:n,hasAdditionalAbilityImports:i,modelsImports:a}}o(Bf,"getAclData");var db=o(({resolver:e,data:t})=>{let r=new Map,n=[],i=!1;t.forEach((c,u)=>{let l=Bf({resolver:e,data:t,tag:u});if(!l)return;let{modelsImports:f,hasAdditionalAbilityImports:p,endpoints:d}=l;n.push(f),i=i||p,d.forEach(m=>{let g=Ff(m);g&&r.set(g,new Set([...r.get(g)??[],...Vf(m)]))})});let s=Do(e.options,...n);return{appAbilitiesType:r.size>0?Object.fromEntries(Array.from(r.entries()).map(([c,u])=>[c,Array.from(u)])):void 0,modelsImports:s,hasAdditionalAbilityImports:i}},"getAppAbilitiesType");function Te(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(L(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(fi.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Te(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Te(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Te(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Te(s,t)}}o(Te,"iterateSchema");var un=o((e,t)=>bf(B(Nf(e)),t),"getZodSchemaName"),Lo=o((e,t,r)=>bf(B(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),ne=o(e=>["z.",`${et.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),mb=o(e=>e.startsWith(wo),"isEnumZodSchema"),ln=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),qa=o(e=>me(`${e}_${wv}`),"getBodyZodSchemaName"),hb=o((e,t)=>me(`${e}_${t}${Iv}`),"getParamZodSchemaName"),QN=o(e=>me(`${e}${Tv}`),"getMainResponseZodSchemaName"),WN=o((e,t)=>me(`${e}_${t}_${Cv}`),"getErrorResponseZodSchemaName");function Ma({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=ln(t,r,n);return!Ro(i)&&e!=="default"&&Oa(i)?WN(s,e):QN(s)}o(Ma,"getResponseZodSchemaName");function Fo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${B(ga(i))}: \`${e[i]}\``],[])}o(Fo,"getSchemaDescriptions");var Ho=o((e,t)=>Lv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),pn=o((e,t)=>ne(t)?`${e.options.tsNamespaces?`${V({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Cr=o((e,t,r)=>{if(!ne(t))return t===Ao?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${V({type:"models",tag:n,options:e.options})}.`:""}${Ho(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function gb(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(gb,"getZodSchemaType");function yb(e){if(e.schemaObj)return[e.schemaObj.description,...Fo(e.schemaObj)].filter(Boolean).join(". ")}o(yb,"getZodSchemaDescription");function Sb(e,t,r){var n;if(L(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Cr(e,i,r):void 0}if(_a(t)){if(!L(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Cr(e,i,r)}[]`:void 0}if(fi.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return Sb(e,i[0],r)}return t.type}o(Sb,"getType");function vb(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...Fo(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:Sb(e,c.schema,r)??"unknown",description:p.join(". ")})}return Te(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(L(c)){let u=e.resolveObject(c);Te(u,{data:{pathSegments:[]},onSchema:a})}}),Te(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(vb,"getZodSchemaPropertyDescriptions");function Rt({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=yi({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=yi({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ho(u,e.options),"getEntityName"),options:e.options});return Do(e.options,a,c)}o(Rt,"getModelsImports");function bb({tag:e,endpoints:t,options:r}){return yi({type:"endpoints",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Vo,options:r})}o(bb,"getEndpointsImports");function _b({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:fn,options:r})}o(_b,"getQueriesImports");function Eb({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Bo,options:r})}o(Eb,"getInfiniteQueriesImports");function Da({tag:e,endpoints:t,options:r}){return yi({type:"acl",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:qo,options:r})}o(Da,"getAclImports");function Qt(e){let t=e.tsPath;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Mf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Mf}`,"g"),e.tsPath)),`${t}/`.replace(/\/\//g,"/")}o(Qt,"getImportPath");function yi({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?V({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Qt(s)}${Si({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(yi,"getImports");function Do(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ve(n.bindings)}))}o(Do,"mergeImports");function dn({fileName:e,extension:t}){return`${e}.${t}`}o(dn,"getFileNameWithExtension");function Pb({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${br(t)}/`:""}${br(t)}.${i}`:i}o(Pb,"getTagFileNameWithoutExtension");function Si(...e){return Pb(...e)}o(Si,"getTagImportPath");function Ob(...e){return`${Pb(...e)}.ts`}o(Ob,"getTagFileName");function $b(e){return e.standalone?`${Qt(e)}${Ca.fileName}`:e.restClientImportPath}o($b,"getAppRestClientImportPath");function xb(e){return e.standalone?`${Qt(e)}${Ta.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(xb,"getQueryTypesImportPath");function Ab(e){return`${Qt(e)}${Ra.fileName}`}o(Ab,"getQueryModulesImportPath");function wb(e){return`${Qt(e)}${Na.fileName}`}o(wb,"getMutationEffectsImportPath");function Ib(e){return`${Qt(e)}${Aa.fileName}`}o(Ib,"getAclCheckImportPath");function Tb(e){return`${Qt(e)}${ka.fileName}`}o(Tb,"getZodExtendedImportPath");function Cb(e){return`${Qt(e)}${xa.fileName}`}o(Cb,"getAppAbilitiesImportPath");function La(e){return $e(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(La,"primitiveTypeToTsType");function vi({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&ne(e)?(n=Cr(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&zt(t==null?void 0:t.type)&&(n=La(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Si({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(vi,"getTsTypeBase");function mn({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of fi){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return mn({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(s[0])}return e.type==="array"?{metaType:"array",arrayType:Rb({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:YN({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(mn,"getSchemaTsMetaType");function Rb({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(L(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=vi({zodSchemaName:n,schema:i,resolver:r}),a=Nb(s,t),c=mn({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(Rb,"getArraySchemaTsType");function YN({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(L(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=vi({zodSchemaName:c,schema:u,resolver:r}),f=Nb(l,t),p=mn({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=Rb({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(zt(i.type))return{name:n,isRequired:s,type:La(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(YN,"getSchemaTsProperties");function Nb(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Nb,"getIsCircular");var Vo=o(e=>br(me(e.operationName)),"getEndpointName");function jb(e,t){return`${t.tsNamespaces?`${V({type:"endpoints",tag:De(e,t),options:t})}.`:""}${Vo(e)}`}o(jb,"getImportedEndpointName");var qb=o(e=>e.method!==kb.OpenAPIV3.HttpMethods.GET,"requiresBody"),Rr=o(e=>e.parameters.find(t=>t.type==="Body"),"getEndpointBody"),Mb=o((e,t)=>{let r=Gf(e),n=t.options.axiosRequestConfig;return Object.keys(r).length>0||n},"hasEndpointConfig"),Db=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Nr(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(ne(i.zodSchema))s=Cr(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&he(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&zt(f)&&(s=La(f))}return{name:wt(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==va)&&(!(r!=null&&r.excludePageParam)||i.name!==e.options.infiniteQueryParamNames.page)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===e.options.infiniteQueryParamNames.page?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(Nr,"mapEndpointParamsToFunctionParams");function Gf(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Yv(i.name)?i.name:`"${i.name}"`,a=wt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Of["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Of.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=wt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(Gf,"getEndpointConfig");function Lb(e,t){return t.filter(r=>Le(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(Lb,"getUpdateQueryEndpoints");var Le=o(e=>Sa(e),"isQuery"),Nt=o(e=>!Sa(e)||!!e.mediaDownload,"isMutation"),bi=o((e,t)=>Ef(e,t),"isInfiniteQuery"),Fb=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...Nr(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return Nr(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");var fn=o((e,t)=>{let r=Le(e)&&Nt(e)&&t;return`use${B(me(e.operationName))}${r?"Mutation":""}`},"getQueryName"),Bo=o(e=>`use${B(me(e.operationName))}Infinite`,"getInfiniteQueryName"),hn=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${fn(e)}`,"getImportedQueryName"),Hb=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${Bo(e)}`,"getImportedInfiniteQueryName");function kt({schema:e,meta:t,options:r}){let n=[];$e(e.type).with("string",()=>n.push(ek(e))).with("number","integer",()=>n.push(rk(e))).with("array",()=>n.push(nk(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
73
73
  `,"\r",`\r
74
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(JN({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?XN(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(kt,"getZodChain");function JN({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(JN,"getZodChainablePresence");function XN(e){return e.default!==void 0?`default(${$e(e.type).with("number","integer",()=>ob(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(XN,"getZodChainableDefault");function ek(e){let t=[];return 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(${tk(e.pattern)})`),t.join(".")}o(ek,"getZodChainableStringValidations");function tk(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=sb(e),`/${e}/`}o(tk,"formatPatternIfNeeded");function rk(e){let t=[];return e.enum?"":(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("."))}o(rk,"getZodChainableNumberValidations");function nk(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(nk,"getZodChainableArrayValidations");var gn=o(e=>e.reduce((t,r)=>t+r,0),"sum");function le(e,t){if(!t)return e;if(L(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Be("oneOf")+le(e,{...t,type:t.type[0]}):e+Be("oneOf")+gn(t.type.map(r=>le(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Be("oneOf")+le(e,t.oneOf[0]):e+Be("oneOf")+gn(t.oneOf.map(r=>le(0,r)));if(t.anyOf)return t.anyOf.length===1?Be("anyOf")+le(e,t.anyOf[0]):e+Be("anyOf")+gn(t.anyOf.map(r=>le(0,r)));if(t.allOf)return t.allOf.length===1?Be("allOf")+le(e,t.allOf[0]):e+Be("allOf")+gn(t.allOf.map(r=>le(0,r)));if(!t.type)return e;if(zt(t.type))return t.enum?e+Vb(t)+Be("enum")+gn(t.enum.map(r=>le(0,r))):e+Vb(t);if(t.type==="array")return t.items?Be("array")+le(e,t.items):Be("array")+le(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Be("object")+gn(r.map(n=>le(0,n)))}else e+=Be("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=le(0,t.additionalProperties):e+=le(1))}return e}o(le,"getOpenAPISchemaComplexity");function Vb(e){return $e(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Vb,"complexityByType");function Be(e){return $e(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Be,"complexityByComposite");var Zf=class Zf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;L(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 s,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=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${V({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return le(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Zf,"ZodSchema");var Go=Zf;function Uf(e){var t,r;if(e)return(t=e.parent)!=null&&t.ref?e.parent.ref:Uf((r=e.parent)==null?void 0:r.meta)}o(Uf,"getParentRef");function Bb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(Fa(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(Bb,"getZodSchemaRefs");function Fa(e,{skipObjectSchema:t=!1}={}){return e.children.reduce((n,i)=>{let s=i.ref??i.enumRef;return s&&n.add(s),i.children.length>0&&(!t||!he(i.schema)||i.schema.type!=="object")&&Fa(i).forEach(a=>n.add(a)),n},new Set)}o(Fa,"getSchemaRefs");function ee({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Go(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(L(e))return ik({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=sk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=ok({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=ak({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=ck({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=uk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(_a(e))return e.items?i.assign(`z.array(${ee({...a,schema:e.items}).getCodeString(n,t.options)}${kt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(${li})${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),v="{}";e.properties&&(v=`{ ${Object.entries(e.properties).map(([A,I])=>{var Dt;let J={...s,isRequired:S?!0:y?(Dt=e.required)==null?void 0:Dt.includes(A):t.options.withImplicitRequiredProps,name:A,isParentPartial:S},z=I;if(L(I)&&t&&(z=t.getSchemaByRef(I.$ref),!z))throw new Error(`Schema ${I.$ref} not found`);let q=ee({...a,schema:I,meta:J}),Z=q.getCodeString(n,t.options)+kt({schema:z,meta:J,options:t.options}),w=!1,Mt=Uf(r);return Mt&&(w=[...L(I)?[I.$ref]:[],...Fa(q,{skipObjectSchema:!0})].some(Ze=>{var Qd;return(Qd=t.dependencyGraph.deepDependencyGraph[Ze])==null?void 0:Qd.has(Mt)})),[A,Z,w]}).map(([A,I,J])=>J?`get ${kf(A)}() { return ${I} }`:`${kf(A)}: ${I}`).join(", ")} }`);let b="";e.additionalProperties&&(b=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?ee({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+kt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):li})`);let P=`z.object(${v})${S?".partial()":""}${b}${d}`;return i.assign(P)}if(m==="any")return i.assign(li);if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(ee,"getZodSchema");function ik({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!L(e))return;let s=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(s.length>1&&s.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=ee({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(ik,"getReferenceZodSchema");function ok({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!he(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=ee({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>he(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
75
- z.discriminatedUnion("${c}", [${e.oneOf.map(u=>ee({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
- `)}return t.assign(`z.union([${e.oneOf.map(c=>ee({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(ok,"getOneOfZodSchema");function sk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!he(e)||!Array.isArray(e.type)))return e.type.length===1?ee({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>ee({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(sk,"getArrayZodSchema");function ak({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=ee({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>ee({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ak,"getAnyOfZodSchema");function ck({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.allOf)return;if(e.allOf.length===1){let p=ee({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Jv(e),u=a.map(p=>{let d=ee({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(ee({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}`)}o(ck,"getAllOfZodSchema");function uk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&zt(s)){if(e.enum){if(s==="string")return lk({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($e(s).with("integer",()=>$e(e.type).with("integer",()=>Rv).otherwise(()=>Nv)).with("string",()=>$e(e.format).with("binary",()=>ma).with("email",()=>kv).with("hostname","uri",()=>jv).with("uuid",()=>qv).with("date-time",()=>Mv).otherwise(()=>ha)).otherwise(a=>`z.${a}()`))}}o(uk,"getPrimitiveZodSchema");function lk({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!he(t))return;let s=_i(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Go({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${V({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(lk,"getEnumZodSchema");function _i(e){var t;return`${wo}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(_i,"getEnumZodSchemaCode");function Gb(e){return`${wo}([${e.map(t=>`"${t}"`).join(", ")}])`}o(Gb,"getEnumZodSchemaCodeFromEnumNames");function Ei({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!ne(s)||t.ref===void 0)&&r){if(t.complexity<Cf)return s;let u=ln(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=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,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return le(0,n.getSchemaByRef(t.ref))<Cf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(Ei,"resolveZodSchemaName");function yn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(yn,"pick");var zf=["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"];function Pi(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=wr(e,t),i=ub(n,t);return r||i}o(Pi,"isOperationExcluded");function Kf({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${ab(e)}`,u=r.operationId?wt(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:B(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=Hv(u,i);l===""?u=t.toLowerCase():zf.includes(l)||(u=l)}return zf.includes(u)?c:u}o(Kf,"getOperationName");function Uo({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?wr(r,n):n.defaultTag,s=o(a=>{let c=Kf({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Kf({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Kf({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Uo,"getUniqueOperationName");function Ub(e,t,r){let n=[];for(let i in e.paths){if(un(i,r))continue;let s=e.paths[i],a=yn(s,an);for(let c in a){let u=a[c];if(!u||Pi(u,r))continue;let l=Uo({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(Ub,"getUniqueOperationNamesWithoutSplitByTags");function Zb(e,t){let r={};for(let n in e.paths){if(un(n,t))continue;let i=e.paths[n],s=yn(i,an);for(let a in s){let c=s[a];if(!c||Pi(c,t))continue;let u=t.splitByTags?wr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Zb,"getOperationsByTag");var zb={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function Zo(e){return{type:"invalid-schema",message:e}}o(Zo,"getInvalidSchemaError");function Kb(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(Kb,"getInvalidOperationIdError");function Qb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(Qb,"getMissingPathParameterError");function Wb(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(Wb,"getNotAllowedInlineEnumError");function Yb(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${Va(t,r)}`}}o(Yb,"getMissingAclConditionPropertyError");function Qf(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Ha(e)} in operation ${Va(t,r)}`}}o(Qf,"getMissingStatusCodeError");function Jb(e,t,r){return{type:"invalid-status-code",message:`Operation ${Va(t,r)} expected HTTP status code ${Ha(e.expected)} but received ${Ha(e.received)}`}}o(Jb,"getInvalidStatusCodeError");function Xb(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${Va(t,r)} has multiple success HTTP status codes: ${e.map(Ha).join(", ")}`}}o(Xb,"getMultipleSuccessStatusCodesError");function Va(e,t){return e.operationId??`${t.method} ${t.path}`}o(Va,"getOperationDescriptor");function Ha(e){return`${e} (${zb[e]})`}o(Ha,"getStatusCodeDescription");function e_({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=pk({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Yb(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(e_,"getEndpointAcl");function pk({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,S,v,b,E,P;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:_})=>_===s[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 _=t.parameters.find(({bodyObject:J})=>!!J),I=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(Xe);I&&(a=(b=(v=(S=_==null?void 0:_.bodyObject)==null?void 0:S.content)==null?void 0:v[I])==null?void 0:b.schema,u=`${Le(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(E=Object.entries(_.properties??{}).find(([I])=>I===s[l]))==null?void 0:E[1],c=((P=_.required)==null?void 0:P.includes(s[l]))??!1,l++}if(a)return{name:n,type:L(a)?void 0:a.type,zodSchemaName:L(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(pk,"getEndpointAclConditionPropertyType");function t_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Xe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=ee({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=Ei({schema:f,zodSchema:l,fallbackName:qa(pn(r,n,i)),resolver:e,tag:i}),d=kt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:va,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(t_,"getEndpointBody");function r_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!tb.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Xe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=hb(pn(r,n,i),s.name),u;if($a(s)){let m=Lo(c,e.options.enumSuffix,e.options.schemaSuffix),g=Gb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=ee({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=kt({schema:f,meta:l.meta,options:e.options}),d=Ei({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:$e(s.in).with("path",()=>jf(s.name)).otherwise(()=>s.name),type:$e(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(r_,"getEndpointParameter");function i_(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(un(c,e.options))continue;let u=e.openApiDoc.paths[c],l=yn(u,an),f=n_(u.parameters??[]);for(let p in l){let d=l[p];if(!d||Pi(d,e.options))continue;let m=d.operationId&&d.operationId!==wt(d.operationId);d.operationId&&m&&e.validationErrors.push(Kb(d.operationId));let g=Object.entries({...f,...n_(d.parameters??[])}).map(([,_])=>_),y=Uo({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),S=e.operationNames.filter(_=>_===y).length<=1,v=wr(d,e.options),b={method:p,path:cb(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Kt),requestFormat:sn,parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let _=t_({resolver:e,operation:d,operationName:y,isUniqueOperationName:S,tag:v});_&&(b.parameters.push(_.endpointParameter),b.requestFormat=_.requestFormat)}for(let _ of g){let A=r_({resolver:e,param:_,operationName:y,isUniqueOperationName:S,tag:v});A&&b.parameters.push(A)}let E=fk(b);E.forEach(_=>{b.parameters.push(_)}),E.length>0&&e.validationErrors.push(Qb(E,c));for(let _ in d.responses){b.responseStatusCodes.push(_);let A=e.resolveObject(d.responses[_]),J=Object.keys(A.content??{}).find(mi),z,q;if(J?(b.responseFormat=J,z=(i=(n=A.content)==null?void 0:n[J])==null?void 0:i.schema):(q=Ao,_==="200"&&e.validationErrors.push(Jb({received:"200",expected:"204"},d,b))),z){let Z=ee({schema:z,resolver:e,meta:{isRequired:!0},tag:v}),w=e.resolveObject(z);q=Ei({schema:w,zodSchema:Z,fallbackName:Z.ref?void 0:Ma({statusCode:_,operationName:y,isUniqueOperationName:S,tag:v}),resolver:e,tag:v})+kt({schema:w,meta:Z.meta,options:e.options})}if(q){let Z=Number(_);Ro(Z)&&!b.response?(b.response=q,b.responseObject=A,b.responseDescription=A.description):_!=="default"&&Oa(Z)&&b.errors.push({zodSchema:q,status:Z,description:A.description})}}b.response||(b.response=Ao);let P=Object.keys(d.responses).map(Number).filter(Ro);P.length>1&&e.validationErrors.push(Xb(P.map(String),d,b)),b.acl=e_({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(Qf("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(Qf("403",d,b)),t.push(b)}}return t}o(i_,"getEndpointsFromOpenAPIDoc");function n_(e){return Object.fromEntries((e??[]).map(t=>[L(t)?t.$ref:t.name,t]))}o(n_,"getParameters");function fk(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=>dk(r))}o(fk,"getMissingPathParameters");function dk(e){return{name:e,type:"Path",zodSchema:ha,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(dk,"getPathParameterFromName");function o_(e,t){let r=mk(e,t),n=hk(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(o_,"getOpenAPISchemaDependencyGraph");function mk(e,t){let r={},n={};return e.forEach(i=>gk({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(mk,"getRefsDependencyGraph");function hk(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(hk,"getDeepRefsDependencyGraph");function gk({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(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,Te(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Te(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(gk,"getSchemaRefsDependencyGraph");function Ba(e,t,r){let n=[];return Te(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):L(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Zo(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Zo(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Zo(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Zo(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Ba,"getSchemaRefObjs");function s_(e,t){return t.map(i=>cn(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(s_,"getDeepSchemaRefObjs");function a_(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=_f(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Lo(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Wf(e);)yk(e,t+2),t++;if(Wf(e)||e.extractedEnumZodSchemaData.filter(n=>!c_(e,n)).forEach(n=>{n.zodSchemaName=Lo(n.meta.zodSchemaNameSegments[0].map(i=>Yf(B(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Wf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(a_,"resolveExtractedEnumZodSchemaNames");function Wf(e){return e.extractedEnumZodSchemaData.every(t=>c_(e,t))}o(Wf,"allExtractedEnumZodSchemaNamesAreUnique");function yk(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Sk(n,t)})}o(yk,"additionalResolveExtractedEnumZodSchemaName");function Sk(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Yf(B(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=_f(n),s=[i?Yf(B(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Sk,"suffixWithPreviousSegmentName");function c_(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(c_,"isUnique");function Yf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Yf,"sanitizeName");function u_(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Ve(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(u_,"resolveExtractedEnumZodSchemaTags");function zo({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&l_({schema:e,nameSegments:t,...n}),Te(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),l_({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(zo,"updateExtractedEnumZodSchemaData");function l_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||L(t)||!t.enum)return;let a=_i(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(Wb(r?`${di(r)}.${s[s.length-1]}`:n??s.join(".")))}o(l_,"handleExtractedEnumZodSchemaDataUpdate");function p_(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=ln(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=_i(l):t[c]=ee({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(p_,"getZodSchemasFromOpenAPIDoc");function f_(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=ln(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:_i(a)})}),t}o(f_,"getEnumZodSchemasFromOpenAPIDoc");var Jf=class Jf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=o_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=f_(this),this.operationsByTag=Zb(t,r),this.operationNames=Ub(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];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(ib)}getSchemaByRef(t){return this.docSchemas[di(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(cn(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.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.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Kt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ve(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Kt(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(s=>s.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 s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.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(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.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}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return L(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=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=cn(a),u=di(c),l=ln(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(un(a,this.options))continue;let c=this.openApiDoc.paths[a],u=yn(c,an);for(let l in u){let f=u[l];if(!f||Pi(f,this.options))continue;let p=wr(f,this.options),d=Uo({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(v=>v===d).length<=1,g=me(pn(d,m,p)),y=[];if((t=f.parameters)==null||t.map(v=>{let b=v,E=b.schema,P=`Operation ${f.operationId??a} parameter ${b.name}`;y.push(...Ba(this,E,P)),this.options.extractEnums&&zo({resolver:this,schema:E,schemaInfo:P,tags:[p],nameSegments:[g,b.name],includeSelf:!0})}),f.requestBody){let v=this.resolveObject(f.requestBody),E=Object.keys(v.content??{}).find(Xe);if(E){let P=(n=(r=v.content)==null?void 0:r[E])==null?void 0:n.schema,_=`Operation ${f.operationId} request body`;y.push(...Ba(this,P,_)),this.options.extractEnums&&zo({resolver:this,schema:P,schemaInfo:_,tags:[p],nameSegments:[qa(g)]})}}for(let v in f.responses){let b=this.resolveObject(f.responses[v]),P=Object.keys(b.content??{}).find(mi);if(P){let _=(s=(i=b.content)==null?void 0:i[P])==null?void 0:s.schema,A=`Operation ${f.operationId} response body`;y.push(...Ba(this,_,A)),this.options.extractEnums&&zo({resolver:this,schema:_,schemaInfo:A,tags:[p],nameSegments:[Ma({statusCode:v,operationName:d,isUniqueOperationName:m,tag:p})]})}}s_(this,y).forEach(v=>{let b=this.getSchemaDataByRef(v);b&&(b.tags.push(p),b.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=cn(a);zo({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[di(c)]})}),u_(this),this.handleDuplicateEnumZodSchemas(),a_(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(Jf,"SchemaResolver");var Ga=Jf;function d_(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(d_,"topologicalSort");function m_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(m_,"sortObjKeysFromArray");function h_(e,t){let r=d_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return m_(t,r)}o(h_,"sortZodSchemasByTopology");function Ua(e,t){let r=new Ga(e,t),n=i_(r),i=p_(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=h_(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:vk({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Ua,"getDataFromOpenAPIDoc");function vk({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=De(s,n);g_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(g_(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(vk,"splitDataByTags");function g_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(g_,"getTagElement");async function y_(e,t){let{resolver:r,data:n}=await Ua(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=vi({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=mn({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=Kt(l);s.push({name:fn(f),importPath:Si({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?V({type:p,tag:d,options:t}):void 0,isQuery:Le(f),isMutation:Nt(f),params:bk({resolver:r,endpoint:f}),response:_k({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(y_,"getMetadataFromOpenAPIDoc");function bk({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(Xe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=vi({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=mn({schema:n,parentTypes:[i],resolver:e})),{name:wt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,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)}o(bk,"getQueryMetadataParams");function _k({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(mi);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=vi({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=mn({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(_k,"getQueryMetadataResponse");var Zd=Re(er());var Gd=Re(require("fs")),cP=Re(require("path"));function uP(e){return Gd.default.readFileSync(cP.default.join(__dirname,`../${e}`),"utf-8")}o(uP,"readFileSync");function Ud(e){let t=`src/generators/templates/${e}.hbs`;return uP(t)}o(Ud,"readHbsTemplateSync");function lP(e){let t=`src/assets/${e}`;return uP(t)}o(lP,"readAssetSync");function tr({output:e,fileName:t}){return`${e}/${t}`}o(tr,"getOutputFileName");var rr=Re(er());function pP(e){dq(),mq(e.options),hq(),gq(),yq(),Sq(),vq(),bq()}o(pP,"registerAclHbsHelpers");function dq(){rr.default.registerHelper("abilityFunctionName",qo)}o(dq,"registerAbilityFunctionNameHelper");function mq(e){rr.default.registerHelper("importedAbilityFunctionName",t=>ja(t,e))}o(mq,"registerImportedAbilityFunctionNameHelper");function hq(){rr.default.registerHelper("ablityAction",Ff)}o(hq,"registerAbilityActionHelper");function gq(){rr.default.registerHelper("ablitySubject",Hf)}o(gq,"registerAbilitySubjectHelper");function yq(){rr.default.registerHelper("hasAbilityConditions",Mo)}o(yq,"registerHasAbilityConditionsHelper");function Sq(){rr.default.registerHelper("abilityConditionsTypes",gi)}o(Sq,"registerAbilityConditionsTypesHelper");function vq(){rr.default.registerHelper("abilityDescription",fb)}o(vq,"registerAbilityDescriptionHelper");function bq(){rr.default.registerHelper("abilitySubjectTypes",Vf)}o(bq,"registerAbilitySubjectTypesHelper");var On=Re(er());function fP(){_q(),Eq(),Pq(),Oq(),$q(),xq()}o(fP,"registerCommonHbsHelpers");function _q(){On.default.registerHelper("isEqual",(e,t)=>e===t)}o(_q,"registerIsEqualHelper");function Eq(){On.default.registerHelper("commaSeparated",e=>e.join(", "))}o(Eq,"registerCommaSeparatedListHelper");function Pq(){On.default.registerHelper("union",e=>e.join(" | "))}o(Pq,"registerUnionHelper");function Oq(){On.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
- *`))}o(Oq,"registerAddAsteriskAfterNewLineHelper");function $q(){On.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o($q,"registerJsonStringifyHelper");function xq(){On.default.registerHelper("capitalize",B)}o(xq,"registerCapitalizeHelper");var Mr=Re(er());function dP(e){Aq(),wq(e.options),Cq(e),Iq(),Tq(),Rq(e),Nq()}o(dP,"registerEndpointsHbsHelpers");function Aq(){Mr.default.registerHelper("endpointName",Vo)}o(Aq,"registerEndpointNameHelper");function wq(e){Mr.default.registerHelper("importedEndpointName",t=>jb(t,e))}o(wq,"registerImportedEndpointNameHelper");function Iq(){Mr.default.registerHelper("endpointPath",Db)}o(Iq,"registerEndpointPathHelper");function Tq(){Mr.default.registerHelper("endpointBody",Nr)}o(Tq,"registerEndpointBodyHelper");function Cq(e){Mr.default.registerHelper("endpointParams",(t,r)=>kr(e,t,r.hash))}o(Cq,"registerEndpointParamsHelper");function Rq(e){Mr.default.registerHelper("endpointArgs",(t,r)=>kr(e,t,r.hash).map(n=>n.name).join(", "))}o(Rq,"registerEndpointArgsHelper");function Nq(){Mr.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&he(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Xe);p&&(i=e.bodyObject.content[p],i.schema&&he(i.schema)&&(n=i.schema))}if(n){let f=Fo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(Nq,"registerEndpointParamDescriptionHelper");var mP=Re(er());function hP(){kq()}o(hP,"registerImportsHbsHelpers");function kq(){mP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(kq,"registerBindingsHelper");var pe=Re(er());var gt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},gP={bindings:[gt.query,gt.infiniteQuery,gt.mutation],from:"@tanstack/react-query"},as="moduleName";function yP(e){jq(),qq(),Mq(),Dq(e),Lq(e),Fq(),Hq(e),Vq(e),Bq(e),Gq(e),Uq(e),Zq(),zq(),Kq(),Qq(),Wq(),Yq()}o(yP,"registerPartialsHbsHelpers");function jq(){pe.default.registerHelper("genModelJsDocs",(e,t,r)=>Se("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(jq,"registerGenerateModelJsDocsHelper");function qq(){pe.default.registerHelper("genImport",e=>Se("import")({import:e}))}o(qq,"registerImportHelper");function Mq(){pe.default.registerHelper("genEndpointParams",(e,t)=>Se("endpoint-params")({endpoint:e,options:t}))}o(Mq,"registerGenerateEndpointParamsHelper");function Dq(e){pe.default.registerHelper("hasUndefinedEndpointBody",t=>qb(t)&&!Nr(t)&&Mb(t,e))}o(Dq,"registerHasUndefinedEndpointBodyHelper");function Lq(e){pe.default.registerHelper("genEndpointConfig",t=>{let r=Gf(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Er:"":Se("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ma,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Er,generateParse:e.options.parseRequestParams})})}o(Lq,"registerGenerateEndpointConfigHelper");function Fq(){pe.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Se("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||ne(e.zodSchema))})})}o(Fq,"registerGenerateEndpointParamParseHelper");function Hq(e){pe.default.registerHelper("genQueryKeys",t=>t.length===0?"":Se("query-keys")({queryEndpoints:t,queriesModuleName:as,generateInfiniteQueries:e.options.infiniteQueries}))}o(Hq,"registerGenerateQueryKeysHelper");function Vq(e){pe.default.registerHelper("genQuery",t=>{if(!Le(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return Se("query-use-query")({endpoint:t,queryHook:gt.query,hasQueryFn:kr(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:n,aclCheckHook:Ir})})}o(Vq,"registerGenerateQueryHelper");function Bq(e){pe.default.registerHelper("genMutation",(t,r)=>{if(!Nt(t))return;let n=Lb(t,r),i=Fb(e,t,n),s=e.options.checkAcl&&t.acl;return Se("query-use-mutation")({endpoint:t,queryHook:gt.mutation,queriesModuleName:as,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:Ir})})}o(Bq,"registerGenerateMutationHelper");function Gq(e){pe.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!bi(t,e.options))return;let r=e.options.checkAcl&&t.acl;return Se("query-use-infinite-query")({endpoint:t,infiniteQueryHook:gt.infiniteQuery,hasQueryFnBody:r,pageParamName:e.options.infiniteQueryResponseParamNames.page,totalItemsName:e.options.infiniteQueryResponseParamNames.totalItems,limitParamName:e.options.infiniteQueryResponseParamNames.limit,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:r,aclCheckHook:Ir})})}o(Gq,"registerGenerateInfiniteQueryHelper");function Uq(e){pe.default.registerHelper("genQueryJsDocs",(t,r)=>Se("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType}))}o(Uq,"registerGenerateQueryJsDocsHelper");function Zq(){pe.default.registerHelper("genCaslAbilityType",e=>Se("casl-ability-type")({endpoint:e,abilityTuple:ge.abilityTuple}))}o(Zq,"registerGenerateCaslAbilityTypeHelper");function zq(){pe.default.registerHelper("genCaslAbilityFunction",e=>Se("casl-ability-function")({endpoint:e}))}o(zq,"registerGenerateCaslAbilityFunctionHelper");function Kq(){pe.default.registerHelper("genCaslAbilityQuery",e=>Se("casl-ability-query")({endpoint:e}))}o(Kq,"registerGenerateCaslAbilityQueryHelper");function Qq(){pe.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=gi(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return Se("acl-check-call")({endpoint:e,generateAclCheckParams:Mo(e)&&n})})}o(Qq,"registerGenerateAclCheckCallHelper");function Wq(){pe.default.registerHelper("genInputsConfig",e=>Se("inputs-config")({inputsConfig:e}))}o(Wq,"registerGenerateInputsConfigHelper");function Yq(){pe.default.registerHelper("genColumnsConfig",e=>Se("columns-config")({columnsConfig:e}))}o(Yq,"registerGenerateColumnsConfigHelper");var Ni=Re(er());function SP(e){Jq(),eM(),tM(),Xq(),rM(e)}o(SP,"registerQueryHbsHelpers");function Jq(){Ni.default.registerHelper("queryName",(e,t)=>fn(e,t.hash.mutation))}o(Jq,"registerQueryNameHelper");function Xq(){Ni.default.registerHelper("infiniteQueryName",Bo)}o(Xq,"registerInfiniteQueryNameHelper");function eM(){Ni.default.registerHelper("isQuery",Le)}o(eM,"registerIsQueryHelper");function tM(){Ni.default.registerHelper("isMutation",Nt)}o(tM,"registerIsMutationHelper");function rM(e){Ni.default.registerHelper("isInfiniteQuery",t=>bi(t,e.options))}o(rM,"registerIsInfiniteQueryHelper");var $n=Re(er());function vP(e){nM(e.options),iM(e),oM(e),sM(),aM(),cM(e)}o(vP,"registerZodHbsHelpers");function nM(e){$n.default.registerHelper("zodInferedType",t=>Ho(t,e))}o(nM,"registerInferedTypeHelper");function iM(e){$n.default.registerHelper("importedZodSchemaName",t=>Rr(e,t))}o(iM,"registerImportedZodSchemaNameHelper");function oM(e){$n.default.registerHelper("importedZodSchemaInferedType",t=>Cr(e,t))}o(oM,"registerImportedZodSchemaInferedTypeHelper");function sM(){$n.default.registerHelper("zodSchemaType",e=>gb(e))}o(sM,"registerZodSchemaTypeHelper");function aM(){$n.default.registerHelper("zodSchemaDescription",e=>yb(e))}o(aM,"registerZodSchemaDescriptionHelper");function cM(e){$n.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>vb(e,t,r))}o(cM,"registerZodSchemaPropertyDescriptionsHelper");function ce(e,t){let r=Ud(t);return fP(),hP(),vP(e),dP(e),SP(e),pP(e),yP(e),Zd.default.compile(r)}o(ce,"getHbsTemplateDelegate");function Se(e){let t=Ud(`partials/${e}`);return Zd.default.compile(t)}o(Se,"getHbsPartialTemplateDelegate");function bP({resolver:e,data:t,tag:r}){let n=Bf({resolver:e,data:t,tag:r});if(!n)return;let{hasAdditionalAbilityImports:i,modelsImports:s,endpoints:a}=n,c={bindings:[ge.abilityTuple,...i?[ge.forcedSubject,ge.subject]:[]],from:qf.from};return ce(e,"acl")({caslAbilityTupleImport:c,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"acl",tag:r,options:e.options}),endpoints:a})}o(bP,"generateAcl");function _P({resolver:e,data:t}){let{appAbilitiesType:r,hasAdditionalAbilityImports:n,modelsImports:i}=db({resolver:e,data:t}),s={bindings:[ge.pureAbility,ge.abilityTuple,...r?[]:[ge.subjectType],...n?[ge.forcedSubject]:[]],from:qf.from};return ce(e,"app-acl")({caslAbilityTupleImport:s,modelsImports:i,appAbilitiesType:r,appAbilities:No,abilityTuple:ge.abilityTuple,subjectType:ge.subjectType})}o(_P,"generateAppAcl");var zd="config";function EP({data:e,tag:t,resolver:r}){var S;let n=(S=e.get(t))==null?void 0:S.endpoints;if(!n||n.length===0)return{configs:[]};let i=n.map(v=>({...v,pathSegments:Kv(v.path)})),s=i.filter(v=>Vv(v,r.options)),a=uM(s),c=!1,u=[],l=[],f=[],p=Object.entries(a).map(([v,b])=>{l.push(b),f.push(b);let E=b.response;ne(E)?(u.push(E),E=Rr(r,E)):c=!0;let P=b.parameters.find(w=>w.name===r.options.filterParamName);P&&u.push(P.zodSchema);let _=lM(r,b);_!=null&&_.zodSchema&&(ne(_.zodSchema)?u.push(_.zodSchema):c=!0),_!=null&&_.sortableEnumSchemaName&&u.push(_.sortableEnumSchemaName);let A={name:v,title:B(ga(v.replace(/config$/i,""))),readAll:{acl:ki(b,r.options),schema:E,paginated:hn(b,r.options),infinite:Hb(b,r.options),filters:wc(r,P),columns:_==null?void 0:_.columns}},I=i.find(w=>Bv(w,b));if(I){l.push(I);let w=I.response;ne(w)?(u.push(w),w=Rr(r,w)):c=!0,A.read={acl:ki(I,r.options),schema:w,query:hn(I,r.options)}}let J=i.find(w=>Gv(w,b));if(J){l.push(J);let w=Nr(J);w&&u.push(w.zodSchema),A.create={acl:ki(J,r.options),mutation:hn(J,r.options),inputDefs:wc(r,w)}}let z=i.find(w=>Uv(w,b));if(z){l.push(z);let w=Nr(z);w&&u.push(w.zodSchema),A.update={acl:ki(z,r.options),mutation:hn(z,r.options),inputDefs:wc(r,w)}}let q=i.find(w=>Zv(w,b));q&&(l.push(q),A.delete={acl:ki(q,r.options),mutation:hn(q,r.options)});let Z=i.find(w=>zv(w,b));if(Z){l.push(Z);let w=Nr(Z);w&&u.push(w.zodSchema),A.bulkDelete={acl:ki(Z,r.options),mutation:hn(Z,r.options),inputDefs:wc(r,w)}}return A}),d=Rt({resolver:r,tag:t,zodSchemas:u}),m=_b({tag:t,endpoints:l,options:r.options}),g=Eb({tag:t,endpoints:f,options:r.options}),y=Da({tag:t,endpoints:l.filter(v=>v.acl),options:r.options});return{configs:p,hasZodImport:c,modelsImports:d,queriesImports:Do(r.options,m,g),aclImports:y}}o(EP,"getBuilderConfigs");function uM(e){let t=e.map(n=>({...n,namePathSegments:n.pathSegments.filter(i=>!pi(i))})).sort((n,i)=>n.namePathSegments.length-i.namePathSegments.length),r={};for(let n of t){let i=n.namePathSegments,s=i.length>0?`${Io(i.pop())}${B(zd)}`:zd;for(;r[s];){if(i.length===0)throw new Error(`Can't uniquely resolve builder config name: ${s}`);s=`${Io(i.pop())}${B(s)}`}r[s]=n}return r}o(uM,"resolveBuilderConfigNames");function ki(e,t){return t.acl&&e.acl?ja(e,t):void 0}o(ki,"getAclConfig");function wc(e,t){var s,a,c;if(!t)return;let r;if(t.type==="Body"?r=(a=(s=t.bodyObject)==null?void 0:s.content[sn])==null?void 0:a.schema:r=(c=t.parameterObject)==null?void 0:c.schema,!r)return;let n=e.resolveObject(r),i=Object.keys((n==null?void 0:n.properties)??{}).reduce((u,l)=>({...u,[l]:!0}),{});return{schema:Rr(e,t.zodSchema),options:{inputs:i}}}o(wc,"getInputsConfig");function lM(e,t){var m,g,y;let r=t.responseObject;if(!r)return;let n=(g=(m=r.content)==null?void 0:m[sn])==null?void 0:g.schema;if(!n)return;let i=PP(e,n),s=Object.keys(i).filter(S=>e.resolveObject(i[S]).type==="array");s.sort((S,v)=>{let b=e.options.dataResponseParamNames.indexOf(S),E=e.options.dataResponseParamNames.indexOf(v);return b!==-1&&E!==-1?b-E:b!==-1?-1:E!==-1?1:S.localeCompare(v)});let a=s[0];if(!a)return;let c=e.resolveObject(i[a]);if(!c||c.type!=="array")return;let u=c.items,l=e.resolveObject(u);if(!l)return;let f=L(u)?e.getZodSchemaNameByRef(u.$ref):li,p=Object.keys((l==null?void 0:l.properties)??{}).reduce((S,v)=>({...S,[v]:!0}),{}),d=(y=t.parameters.find(S=>S.parameterObject&&$a(S.parameterObject)))==null?void 0:y.parameterSortingEnumSchemaName;return{columns:{schema:Rr(e,f),options:{columns:p,sortable:d?Rr(e,d):void 0}},zodSchema:f,sortableEnumSchemaName:d}}o(lM,"getColumnsConfig");function PP(e,t){let r=e.resolveObject(t);return r.properties?r.properties:"allOf"in r&&r.allOf?r.allOf.reduce((n,i)=>({...n,...PP(e,i)}),{}):{}}o(PP,"getSchemaProperties");function OP(e){let{configs:t,hasZodImport:r,modelsImports:n,queriesImports:i,aclImports:s}=EP(e);if(t.length===0)return;let{resolver:a,tag:c}=e,u=t.some(m=>{var g,y;return m.readAll.filters||((g=m.create)==null?void 0:g.inputDefs)||((y=m.update)==null?void 0:y.inputDefs)}),l={bindings:[jo.dynamicInputs],from:a.options.dynamicInputsImportPath},f=t.some(m=>m.readAll.columns),p={bindings:[jo.dynamicColumns],from:a.options.dynamicColumnsImportPath};return ce(a,"configs")({hasZodImport:r,zodImport:vr,hasDynamicInputsImport:u,dynamicInputsImport:l,hasDynamicColumnsImport:f,dynamicColumnsImport:p,modelsImports:n,queriesImports:i,aclImports:s,includeNamespace:a.options.tsNamespaces,namespace:V({type:"configs",tag:c,options:a.options}),configs:t,dynamicInputs:jo.dynamicInputs,dynamicColumns:jo.dynamicColumns})}o(OP,"generateConfigs");function $P({resolver:e,data:t,tag:r}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[ko],from:$b(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[At]:[],from:ba.from},u=e.options.parseRequestParams,l=n.reduce((E,P)=>[...E,...P.parameters],[]),f=l.filter(E=>!["Path","Header"].includes(E.type)).map(E=>E.parameterSortingEnumSchemaName??E.zodSchema),p=n.map(E=>E.response),d=Ve([...p,...u?f:[]]),m=d.some(E=>!ne(E)),g=e.options.parseRequestParams&&f.length>0,y={bindings:[et.namespace],from:Tb(e.options)},S=Rt({resolver:e,tag:r,zodSchemas:d.filter(ne),zodSchemasAsTypes:Ve(l.map(E=>E.zodSchema).filter(ne))});return ce(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:m,zodImport:vr,hasZodExtendedImport:g,zodExtendedImport:y,modelsImports:S,includeNamespace:e.options.tsNamespaces,namespace:V({type:"endpoints",tag:r,options:e.options}),restClientName:ko,hasAxiosRequestConfig:s,axiosRequestConfigName:Er,axiosRequestConfigType:At,endpoints:n,generateParse:u})}o($P,"generateEndpoints");function xP({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,...Bb(e,f)],[]).filter(l=>!n[l]),s=Rt({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getZodSchemaObj(f),m={code:p,isEnum:mb(p),schemaObj:d};return{...l,[f]:m}},{});return ce(e,"models")({zodImport:vr,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(xP,"generateModels");function AP({resolver:e,data:t,tag:r}){var z;let n=(z=t.get(r))==null?void 0:z.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:q})=>q),a=i||s,c={defaultImport:s?$f:void 0,bindings:i?[At]:[],from:ba.from},u=n.filter(Le),l=u.filter(q=>bi(q,e.options)),f=n.filter(Nt),p={bindings:[...u.length>0?[gt.query]:[],...e.options.infiniteQueries&&l.length>0?[gt.infiniteQuery]:[],...f.length>0?[gt.mutation]:[]],from:gP.from},d=e.options.mutationEffects,m={bindings:[Lf],from:Ab(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[hi.optionsType,hi.hookName]:[]],from:wb(e.options)},S=n.filter(q=>q.acl),v=e.options.checkAcl&&S.length>0,b={bindings:[Ir],from:Ib(e.options)},E={bindings:[...u.length>0?[wa.query]:[],...e.options.infiniteQueries&&l.length>0?[wa.infiniteQuery]:[],...f.length>0?[wa.mutation]:[]],from:xb(e.options)},P=n.reduce((q,Z)=>[...q,...Z.parameters],[]),_=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(P.map(q=>q.zodSchema).filter(ne))}),A=bb({tag:r,endpoints:n,options:e.options}),I=Da({tag:r,endpoints:S,options:e.options});return ce(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,hasAclCheck:v,aclCheckImport:b,queryTypesImport:E,modelsImports:_,endpointsImports:A,aclImports:I,includeNamespace:e.options.tsNamespaces,tag:r,namespace:V({type:"queries",tag:r,options:e.options}),queriesModuleName:as,queryModuleEnum:Lf,endpoints:n,queryEndpoints:u})}o(AP,"generateQueries");function wP(e){return ce(e,"acl-check")({abilityContextImport:{...lb,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[No],from:Cb(e.options)},errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath},abilityContext:Df,appAbilities:No,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,aclCheckHook:Ir,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(wP,"generateAclCheck");function IP(e){return ce(e,"app-rest-client")({appRestClientName:ko,baseUrl:e.getBaseUrl()})}o(IP,"generateAppRestClient");function TP({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:V({type:"queries",tag:s,options:e.options})})}),ce(e,"query-modules")({modules:r})}o(TP,"generateQueryModules");function CP(e){return ce(e,"zod-extended")({zodImport:vr,zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath}})}o(CP,"generateZodExtended");function RP(e,t){return t.options.acl?[{fileName:tr({output:t.options.output,fileName:dn(xa)}),content:_P({resolver:t,data:e})},...t.options.checkAcl?[{fileName:tr({output:t.options.output,fileName:dn(Aa)}),content:wP(t)}]:[]]:[]}o(RP,"getAclFiles");function NP(e,t){return t.options.mutationEffects?[...qP([pb,Na],t),{fileName:tr({output:t.options.output,fileName:dn(Ra)}),content:TP({resolver:t,data:e})}]:[]}o(NP,"getMutationEffectsFiles");function kP(e){return e.options.standalone?[...qP(Object.values(Ta),e),{fileName:tr({output:e.options.output,fileName:dn(Ca)}),content:IP(e)}]:[]}o(kP,"getStandaloneFiles");function jP(e,t){return t.options.parseRequestParams?[{fileName:tr({output:t.options.output,fileName:dn(ka)}),content:CP(t)}]:[]}o(jP,"getZodExtendedFiles");function qP(e,t){return e.reduce((r,n)=>[...r,pM(n,t)],[])}o(qP,"getAssetFiles");function pM(e,t){let r=dn(e);return{fileName:tr({output:t.options.output,fileName:r}),content:lP(r)}}o(pM,"getAssetFile");function MP(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,{resolver:n,data:i}=Ua(e,{...t,importPath:r}),s=[],a=[],c=["models","endpoints","queries",...n.options.acl?["acl"]:[],...n.options.builderConfigs?["configs"]:[]],u={models:xP,endpoints:$P,queries:AP,acl:bP,configs:OP};return i.forEach((l,f)=>{c.forEach(p=>{let d=u[p]({resolver:n,data:i,tag:f});if(d){let m=tr({output:t.output,fileName:Ob({tag:f,type:p,options:t})});s.push({fileName:m,content:d}),p==="acl"&&a.push(f)}})}),s.push(...RP(i,n),...NP(i,n),...jP(i,n),...kP(n)),s}o(MP,"generateCodeFromOpenAPIDoc");async function fM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return await y_(n,r)}o(fM,"getGenerateMetadata");async function dM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return MP(n,r)}o(dM,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
74
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(JN({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?XN(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(kt,"getZodChain");function JN({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(JN,"getZodChainablePresence");function XN(e){return e.default!==void 0?`default(${$e(e.type).with("number","integer",()=>ob(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(XN,"getZodChainableDefault");function ek(e){let t=[];return 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(${tk(e.pattern)})`),t.join(".")}o(ek,"getZodChainableStringValidations");function tk(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=sb(e),`/${e}/`}o(tk,"formatPatternIfNeeded");function rk(e){let t=[];return e.enum?"":(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("."))}o(rk,"getZodChainableNumberValidations");function nk(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(nk,"getZodChainableArrayValidations");var gn=o(e=>e.reduce((t,r)=>t+r,0),"sum");function le(e,t){if(!t)return e;if(L(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Be("oneOf")+le(e,{...t,type:t.type[0]}):e+Be("oneOf")+gn(t.type.map(r=>le(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Be("oneOf")+le(e,t.oneOf[0]):e+Be("oneOf")+gn(t.oneOf.map(r=>le(0,r)));if(t.anyOf)return t.anyOf.length===1?Be("anyOf")+le(e,t.anyOf[0]):e+Be("anyOf")+gn(t.anyOf.map(r=>le(0,r)));if(t.allOf)return t.allOf.length===1?Be("allOf")+le(e,t.allOf[0]):e+Be("allOf")+gn(t.allOf.map(r=>le(0,r)));if(!t.type)return e;if(zt(t.type))return t.enum?e+Vb(t)+Be("enum")+gn(t.enum.map(r=>le(0,r))):e+Vb(t);if(t.type==="array")return t.items?Be("array")+le(e,t.items):Be("array")+le(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Be("object")+gn(r.map(n=>le(0,n)))}else e+=Be("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=le(0,t.additionalProperties):e+=le(1))}return e}o(le,"getOpenAPISchemaComplexity");function Vb(e){return $e(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Vb,"complexityByType");function Be(e){return $e(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Be,"complexityByComposite");var Zf=class Zf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;L(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 s,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=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${V({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return le(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Zf,"ZodSchema");var Go=Zf;function Uf(e){var t,r;if(e)return(t=e.parent)!=null&&t.ref?e.parent.ref:Uf((r=e.parent)==null?void 0:r.meta)}o(Uf,"getParentRef");function Bb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(Fa(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(Bb,"getZodSchemaRefs");function Fa(e,{skipObjectSchema:t=!1}={}){return e.children.reduce((n,i)=>{let s=i.ref??i.enumRef;return s&&n.add(s),i.children.length>0&&(!t||!he(i.schema)||i.schema.type!=="object")&&Fa(i).forEach(a=>n.add(a)),n},new Set)}o(Fa,"getSchemaRefs");function X({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Go(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(L(e))return ik({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=sk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=ok({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=ak({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=ck({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=uk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(_a(e))return e.items?i.assign(`z.array(${X({...a,schema:e.items}).getCodeString(n,t.options)}${kt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(${li})${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),v="{}";e.properties&&(v=`{ ${Object.entries(e.properties).map(([w,I])=>{var Dt;let Y={...s,isRequired:S?!0:y?(Dt=e.required)==null?void 0:Dt.includes(w):t.options.withImplicitRequiredProps,name:w,isParentPartial:S},Q=I;if(L(I)&&t&&(Q=t.getSchemaByRef(I.$ref),!Q))throw new Error(`Schema ${I.$ref} not found`);let j=X({...a,schema:I,meta:Y}),A=j.getCodeString(n,t.options)+kt({schema:Q,meta:Y,options:t.options}),ce=!1,Mt=Uf(r);return Mt&&(ce=[...L(I)?[I.$ref]:[],...Fa(j,{skipObjectSchema:!0})].some(Ze=>{var Qd;return(Qd=t.dependencyGraph.deepDependencyGraph[Ze])==null?void 0:Qd.has(Mt)})),[w,A,ce]}).map(([w,I,Y])=>Y?`get ${kf(w)}() { return ${I} }`:`${kf(w)}: ${I}`).join(", ")} }`);let b="";e.additionalProperties&&(b=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?X({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+kt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):li})`);let P=`z.object(${v})${S?".partial()":""}${b}${d}`;return i.assign(P)}if(m==="any")return i.assign(li);if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(X,"getZodSchema");function ik({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!L(e))return;let s=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(s.length>1&&s.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=X({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(ik,"getReferenceZodSchema");function ok({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!he(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=X({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>he(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
75
+ z.discriminatedUnion("${c}", [${e.oneOf.map(u=>X({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>X({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(ok,"getOneOfZodSchema");function sk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!he(e)||!Array.isArray(e.type)))return e.type.length===1?X({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>X({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(sk,"getArrayZodSchema");function ak({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=X({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>X({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ak,"getAnyOfZodSchema");function ck({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.allOf)return;if(e.allOf.length===1){let p=X({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Jv(e),u=a.map(p=>{let d=X({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(X({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}`)}o(ck,"getAllOfZodSchema");function uk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&zt(s)){if(e.enum){if(s==="string")return lk({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($e(s).with("integer",()=>$e(e.type).with("integer",()=>Rv).otherwise(()=>Nv)).with("string",()=>$e(e.format).with("binary",()=>ma).with("email",()=>kv).with("hostname","uri",()=>jv).with("uuid",()=>qv).with("date-time",()=>Mv).otherwise(()=>ha)).otherwise(a=>`z.${a}()`))}}o(uk,"getPrimitiveZodSchema");function lk({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!he(t))return;let s=_i(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Go({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${V({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(lk,"getEnumZodSchema");function _i(e){var t;return`${wo}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(_i,"getEnumZodSchemaCode");function Gb(e){return`${wo}([${e.map(t=>`"${t}"`).join(", ")}])`}o(Gb,"getEnumZodSchemaCodeFromEnumNames");function Ei({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!ne(s)||t.ref===void 0)&&r){if(t.complexity<Cf)return s;let u=un(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=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,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return le(0,n.getSchemaByRef(t.ref))<Cf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(Ei,"resolveZodSchemaName");function yn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(yn,"pick");var zf=["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"];function Pi(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=wr(e,t),i=ub(n,t);return r||i}o(Pi,"isOperationExcluded");function Kf({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${ab(e)}`,u=r.operationId?wt(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:B(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=Hv(u,i);l===""?u=t.toLowerCase():zf.includes(l)||(u=l)}return zf.includes(u)?c:u}o(Kf,"getOperationName");function Uo({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?wr(r,n):n.defaultTag,s=o(a=>{let c=Kf({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Kf({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Kf({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Uo,"getUniqueOperationName");function Ub(e,t,r){let n=[];for(let i in e.paths){if(cn(i,r))continue;let s=e.paths[i],a=yn(s,sn);for(let c in a){let u=a[c];if(!u||Pi(u,r))continue;let l=Uo({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(Ub,"getUniqueOperationNamesWithoutSplitByTags");function Zb(e,t){let r={};for(let n in e.paths){if(cn(n,t))continue;let i=e.paths[n],s=yn(i,sn);for(let a in s){let c=s[a];if(!c||Pi(c,t))continue;let u=t.splitByTags?wr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Zb,"getOperationsByTag");var zb={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function Zo(e){return{type:"invalid-schema",message:e}}o(Zo,"getInvalidSchemaError");function Kb(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(Kb,"getInvalidOperationIdError");function Qb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(Qb,"getMissingPathParameterError");function Wb(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(Wb,"getNotAllowedInlineEnumError");function Yb(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${Va(t,r)}`}}o(Yb,"getMissingAclConditionPropertyError");function Qf(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Ha(e)} in operation ${Va(t,r)}`}}o(Qf,"getMissingStatusCodeError");function Jb(e,t,r){return{type:"invalid-status-code",message:`Operation ${Va(t,r)} expected HTTP status code ${Ha(e.expected)} but received ${Ha(e.received)}`}}o(Jb,"getInvalidStatusCodeError");function Xb(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${Va(t,r)} has multiple success HTTP status codes: ${e.map(Ha).join(", ")}`}}o(Xb,"getMultipleSuccessStatusCodesError");function Va(e,t){return e.operationId??`${t.method} ${t.path}`}o(Va,"getOperationDescriptor");function Ha(e){return`${e} (${zb[e]})`}o(Ha,"getStatusCodeDescription");function e_({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=pk({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Yb(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(e_,"getEndpointAcl");function pk({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,S,v,b,E,P;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:_})=>_===s[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 _=t.parameters.find(({bodyObject:Y})=>!!Y),I=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(Xe);I&&(a=(b=(v=(S=_==null?void 0:_.bodyObject)==null?void 0:S.content)==null?void 0:v[I])==null?void 0:b.schema,u=`${Le(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(E=Object.entries(_.properties??{}).find(([I])=>I===s[l]))==null?void 0:E[1],c=((P=_.required)==null?void 0:P.includes(s[l]))??!1,l++}if(a)return{name:n,type:L(a)?void 0:a.type,zodSchemaName:L(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(pk,"getEndpointAclConditionPropertyType");function t_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Xe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=X({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=Ei({schema:f,zodSchema:l,fallbackName:qa(ln(r,n,i)),resolver:e,tag:i}),d=kt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:va,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(t_,"getEndpointBody");function r_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!tb.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Xe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=hb(ln(r,n,i),s.name),u;if($a(s)){let m=Lo(c,e.options.enumSuffix,e.options.schemaSuffix),g=Gb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=X({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=kt({schema:f,meta:l.meta,options:e.options}),d=Ei({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:$e(s.in).with("path",()=>jf(s.name)).otherwise(()=>s.name),type:$e(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(r_,"getEndpointParameter");function i_(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(cn(c,e.options))continue;let u=e.openApiDoc.paths[c],l=yn(u,sn),f=n_(u.parameters??[]);for(let p in l){let d=l[p];if(!d||Pi(d,e.options))continue;let m=d.operationId&&d.operationId!==wt(d.operationId);d.operationId&&m&&e.validationErrors.push(Kb(d.operationId));let g=Object.entries({...f,...n_(d.parameters??[])}).map(([,_])=>_),y=Uo({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),S=e.operationNames.filter(_=>_===y).length<=1,v=wr(d,e.options),b={method:p,path:cb(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Kt),requestFormat:on,parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let _=t_({resolver:e,operation:d,operationName:y,isUniqueOperationName:S,tag:v});_&&(b.parameters.push(_.endpointParameter),b.requestFormat=_.requestFormat)}for(let _ of g){let w=r_({resolver:e,param:_,operationName:y,isUniqueOperationName:S,tag:v});w&&b.parameters.push(w)}let E=fk(b);E.forEach(_=>{b.parameters.push(_)}),E.length>0&&e.validationErrors.push(Qb(E,c));for(let _ in d.responses){b.responseStatusCodes.push(_);let w=e.resolveObject(d.responses[_]),Y=Object.keys(w.content??{}).find(mi),Q,j;if(Y?(b.responseFormat=Y,Q=(i=(n=w.content)==null?void 0:n[Y])==null?void 0:i.schema):(j=Ao,_==="200"&&e.validationErrors.push(Jb({received:"200",expected:"204"},d,b))),Q){let A=X({schema:Q,resolver:e,meta:{isRequired:!0},tag:v}),ce=e.resolveObject(Q);j=Ei({schema:ce,zodSchema:A,fallbackName:A.ref?void 0:Ma({statusCode:_,operationName:y,isUniqueOperationName:S,tag:v}),resolver:e,tag:v})+kt({schema:ce,meta:A.meta,options:e.options})}if(j){let A=Number(_);Ro(A)&&!b.response?(b.response=j,b.responseObject=w,b.responseDescription=w.description):_!=="default"&&Oa(A)&&b.errors.push({zodSchema:j,status:A,description:w.description})}}b.response||(b.response=Ao);let P=Object.keys(d.responses).map(Number).filter(Ro);P.length>1&&e.validationErrors.push(Xb(P.map(String),d,b)),b.acl=e_({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(Qf("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(Qf("403",d,b)),t.push(b)}}return t}o(i_,"getEndpointsFromOpenAPIDoc");function n_(e){return Object.fromEntries((e??[]).map(t=>[L(t)?t.$ref:t.name,t]))}o(n_,"getParameters");function fk(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=>dk(r))}o(fk,"getMissingPathParameters");function dk(e){return{name:e,type:"Path",zodSchema:ha,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(dk,"getPathParameterFromName");function o_(e,t){let r=mk(e,t),n=hk(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(o_,"getOpenAPISchemaDependencyGraph");function mk(e,t){let r={},n={};return e.forEach(i=>gk({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(mk,"getRefsDependencyGraph");function hk(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(hk,"getDeepRefsDependencyGraph");function gk({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(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,Te(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Te(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(gk,"getSchemaRefsDependencyGraph");function Ba(e,t,r){let n=[];return Te(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):L(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Zo(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Zo(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Zo(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Zo(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Ba,"getSchemaRefObjs");function s_(e,t){return t.map(i=>an(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(s_,"getDeepSchemaRefObjs");function a_(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=_f(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Lo(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Wf(e);)yk(e,t+2),t++;if(Wf(e)||e.extractedEnumZodSchemaData.filter(n=>!c_(e,n)).forEach(n=>{n.zodSchemaName=Lo(n.meta.zodSchemaNameSegments[0].map(i=>Yf(B(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Wf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(a_,"resolveExtractedEnumZodSchemaNames");function Wf(e){return e.extractedEnumZodSchemaData.every(t=>c_(e,t))}o(Wf,"allExtractedEnumZodSchemaNamesAreUnique");function yk(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Sk(n,t)})}o(yk,"additionalResolveExtractedEnumZodSchemaName");function Sk(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Yf(B(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=_f(n),s=[i?Yf(B(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Sk,"suffixWithPreviousSegmentName");function c_(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(c_,"isUnique");function Yf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Yf,"sanitizeName");function u_(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Ve(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(u_,"resolveExtractedEnumZodSchemaTags");function zo({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&l_({schema:e,nameSegments:t,...n}),Te(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),l_({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(zo,"updateExtractedEnumZodSchemaData");function l_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||L(t)||!t.enum)return;let a=_i(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(Wb(r?`${di(r)}.${s[s.length-1]}`:n??s.join(".")))}o(l_,"handleExtractedEnumZodSchemaDataUpdate");function p_(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=un(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=_i(l):t[c]=X({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(p_,"getZodSchemasFromOpenAPIDoc");function f_(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=un(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:_i(a)})}),t}o(f_,"getEnumZodSchemasFromOpenAPIDoc");var Jf=class Jf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=o_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=f_(this),this.operationsByTag=Zb(t,r),this.operationNames=Ub(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];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(ib)}getSchemaByRef(t){return this.docSchemas[di(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(an(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.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.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Kt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ve(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Kt(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(s=>s.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 s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.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(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.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}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return L(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=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=an(a),u=di(c),l=un(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(cn(a,this.options))continue;let c=this.openApiDoc.paths[a],u=yn(c,sn);for(let l in u){let f=u[l];if(!f||Pi(f,this.options))continue;let p=wr(f,this.options),d=Uo({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(v=>v===d).length<=1,g=me(ln(d,m,p)),y=[];if((t=f.parameters)==null||t.map(v=>{let b=v,E=b.schema,P=`Operation ${f.operationId??a} parameter ${b.name}`;y.push(...Ba(this,E,P)),this.options.extractEnums&&zo({resolver:this,schema:E,schemaInfo:P,tags:[p],nameSegments:[g,b.name],includeSelf:!0})}),f.requestBody){let v=this.resolveObject(f.requestBody),E=Object.keys(v.content??{}).find(Xe);if(E){let P=(n=(r=v.content)==null?void 0:r[E])==null?void 0:n.schema,_=`Operation ${f.operationId} request body`;y.push(...Ba(this,P,_)),this.options.extractEnums&&zo({resolver:this,schema:P,schemaInfo:_,tags:[p],nameSegments:[qa(g)]})}}for(let v in f.responses){let b=this.resolveObject(f.responses[v]),P=Object.keys(b.content??{}).find(mi);if(P){let _=(s=(i=b.content)==null?void 0:i[P])==null?void 0:s.schema,w=`Operation ${f.operationId} response body`;y.push(...Ba(this,_,w)),this.options.extractEnums&&zo({resolver:this,schema:_,schemaInfo:w,tags:[p],nameSegments:[Ma({statusCode:v,operationName:d,isUniqueOperationName:m,tag:p})]})}}s_(this,y).forEach(v=>{let b=this.getSchemaDataByRef(v);b&&(b.tags.push(p),b.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=an(a);zo({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[di(c)]})}),u_(this),this.handleDuplicateEnumZodSchemas(),a_(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(Jf,"SchemaResolver");var Ga=Jf;function d_(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(d_,"topologicalSort");function m_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(m_,"sortObjKeysFromArray");function h_(e,t){let r=d_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return m_(t,r)}o(h_,"sortZodSchemasByTopology");function Ua(e,t){let r=new Ga(e,t),n=i_(r),i=p_(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=h_(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:vk({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Ua,"getDataFromOpenAPIDoc");function vk({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=De(s,n);g_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(g_(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(vk,"splitDataByTags");function g_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(g_,"getTagElement");async function y_(e,t){let{resolver:r,data:n}=await Ua(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=vi({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=mn({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=Kt(l);s.push({name:fn(f),importPath:Si({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?V({type:p,tag:d,options:t}):void 0,isQuery:Le(f),isMutation:Nt(f),params:bk({resolver:r,endpoint:f}),response:_k({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(y_,"getMetadataFromOpenAPIDoc");function bk({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(Xe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=vi({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=mn({schema:n,parentTypes:[i],resolver:e})),{name:wt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,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)}o(bk,"getQueryMetadataParams");function _k({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(mi);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=vi({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=mn({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(_k,"getQueryMetadataResponse");var Zd=Re(er());var Gd=Re(require("fs")),cP=Re(require("path"));function uP(e){return Gd.default.readFileSync(cP.default.join(__dirname,`../${e}`),"utf-8")}o(uP,"readFileSync");function Ud(e){let t=`src/generators/templates/${e}.hbs`;return uP(t)}o(Ud,"readHbsTemplateSync");function lP(e){let t=`src/assets/${e}`;return uP(t)}o(lP,"readAssetSync");function tr({output:e,fileName:t}){return`${e}/${t}`}o(tr,"getOutputFileName");var rr=Re(er());function pP(e){dq(),mq(e.options),hq(),gq(),yq(),Sq(),vq(),bq()}o(pP,"registerAclHbsHelpers");function dq(){rr.default.registerHelper("abilityFunctionName",qo)}o(dq,"registerAbilityFunctionNameHelper");function mq(e){rr.default.registerHelper("importedAbilityFunctionName",t=>ja(t,e))}o(mq,"registerImportedAbilityFunctionNameHelper");function hq(){rr.default.registerHelper("ablityAction",Ff)}o(hq,"registerAbilityActionHelper");function gq(){rr.default.registerHelper("ablitySubject",Hf)}o(gq,"registerAbilitySubjectHelper");function yq(){rr.default.registerHelper("hasAbilityConditions",Mo)}o(yq,"registerHasAbilityConditionsHelper");function Sq(){rr.default.registerHelper("abilityConditionsTypes",gi)}o(Sq,"registerAbilityConditionsTypesHelper");function vq(){rr.default.registerHelper("abilityDescription",fb)}o(vq,"registerAbilityDescriptionHelper");function bq(){rr.default.registerHelper("abilitySubjectTypes",Vf)}o(bq,"registerAbilitySubjectTypesHelper");var On=Re(er());function fP(){_q(),Eq(),Pq(),Oq(),$q(),xq()}o(fP,"registerCommonHbsHelpers");function _q(){On.default.registerHelper("isEqual",(e,t)=>e===t)}o(_q,"registerIsEqualHelper");function Eq(){On.default.registerHelper("commaSeparated",e=>e.join(", "))}o(Eq,"registerCommaSeparatedListHelper");function Pq(){On.default.registerHelper("union",e=>e.join(" | "))}o(Pq,"registerUnionHelper");function Oq(){On.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
+ *`))}o(Oq,"registerAddAsteriskAfterNewLineHelper");function $q(){On.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o($q,"registerJsonStringifyHelper");function xq(){On.default.registerHelper("capitalize",B)}o(xq,"registerCapitalizeHelper");var qr=Re(er());function dP(e){Aq(),wq(e.options),Cq(e),Iq(),Tq(),Rq(e),Nq()}o(dP,"registerEndpointsHbsHelpers");function Aq(){qr.default.registerHelper("endpointName",Vo)}o(Aq,"registerEndpointNameHelper");function wq(e){qr.default.registerHelper("importedEndpointName",t=>jb(t,e))}o(wq,"registerImportedEndpointNameHelper");function Iq(){qr.default.registerHelper("endpointPath",Db)}o(Iq,"registerEndpointPathHelper");function Tq(){qr.default.registerHelper("endpointBody",Rr)}o(Tq,"registerEndpointBodyHelper");function Cq(e){qr.default.registerHelper("endpointParams",(t,r)=>Nr(e,t,r.hash))}o(Cq,"registerEndpointParamsHelper");function Rq(e){qr.default.registerHelper("endpointArgs",(t,r)=>Nr(e,t,r.hash).map(n=>n.name).join(", "))}o(Rq,"registerEndpointArgsHelper");function Nq(){qr.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&he(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Xe);p&&(i=e.bodyObject.content[p],i.schema&&he(i.schema)&&(n=i.schema))}if(n){let f=Fo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(Nq,"registerEndpointParamDescriptionHelper");var mP=Re(er());function hP(){kq()}o(hP,"registerImportsHbsHelpers");function kq(){mP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(kq,"registerBindingsHelper");var pe=Re(er());var gt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},gP={bindings:[gt.query,gt.infiniteQuery,gt.mutation],from:"@tanstack/react-query"},as="moduleName";function yP(e){jq(),qq(),Mq(),Dq(e),Lq(e),Fq(),Hq(e),Vq(e),Bq(e),Gq(e),Uq(e),Zq(),zq(),Kq(),Qq(),Wq(),Yq()}o(yP,"registerPartialsHbsHelpers");function jq(){pe.default.registerHelper("genModelJsDocs",(e,t,r)=>Se("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(jq,"registerGenerateModelJsDocsHelper");function qq(){pe.default.registerHelper("genImport",e=>Se("import")({import:e}))}o(qq,"registerImportHelper");function Mq(){pe.default.registerHelper("genEndpointParams",(e,t)=>Se("endpoint-params")({endpoint:e,options:t}))}o(Mq,"registerGenerateEndpointParamsHelper");function Dq(e){pe.default.registerHelper("hasUndefinedEndpointBody",t=>qb(t)&&!Rr(t)&&Mb(t,e))}o(Dq,"registerHasUndefinedEndpointBodyHelper");function Lq(e){pe.default.registerHelper("genEndpointConfig",t=>{let r=Gf(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Er:"":Se("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ma,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Er,generateParse:e.options.parseRequestParams})})}o(Lq,"registerGenerateEndpointConfigHelper");function Fq(){pe.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Se("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||ne(e.zodSchema))})})}o(Fq,"registerGenerateEndpointParamParseHelper");function Hq(e){pe.default.registerHelper("genQueryKeys",t=>t.length===0?"":Se("query-keys")({queryEndpoints:t,queriesModuleName:as,generateInfiniteQueries:e.options.infiniteQueries}))}o(Hq,"registerGenerateQueryKeysHelper");function Vq(e){pe.default.registerHelper("genQuery",t=>{if(!Le(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return Se("query-use-query")({endpoint:t,queryHook:gt.query,hasQueryFn:Nr(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:n,aclCheckHook:Ir})})}o(Vq,"registerGenerateQueryHelper");function Bq(e){pe.default.registerHelper("genMutation",(t,r)=>{if(!Nt(t))return;let n=Lb(t,r),i=Fb(e,t,n),s=e.options.checkAcl&&t.acl;return Se("query-use-mutation")({endpoint:t,queryHook:gt.mutation,queriesModuleName:as,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:Ir})})}o(Bq,"registerGenerateMutationHelper");function Gq(e){pe.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!bi(t,e.options))return;let r=e.options.checkAcl&&t.acl;return Se("query-use-infinite-query")({endpoint:t,infiniteQueryHook:gt.infiniteQuery,hasQueryFnBody:r,pageParamName:e.options.infiniteQueryResponseParamNames.page,totalItemsName:e.options.infiniteQueryResponseParamNames.totalItems,limitParamName:e.options.infiniteQueryResponseParamNames.limit,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:r,aclCheckHook:Ir})})}o(Gq,"registerGenerateInfiniteQueryHelper");function Uq(e){pe.default.registerHelper("genQueryJsDocs",(t,r)=>Se("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType}))}o(Uq,"registerGenerateQueryJsDocsHelper");function Zq(){pe.default.registerHelper("genCaslAbilityType",e=>Se("casl-ability-type")({endpoint:e,abilityTuple:ge.abilityTuple}))}o(Zq,"registerGenerateCaslAbilityTypeHelper");function zq(){pe.default.registerHelper("genCaslAbilityFunction",e=>Se("casl-ability-function")({endpoint:e}))}o(zq,"registerGenerateCaslAbilityFunctionHelper");function Kq(){pe.default.registerHelper("genCaslAbilityQuery",e=>Se("casl-ability-query")({endpoint:e}))}o(Kq,"registerGenerateCaslAbilityQueryHelper");function Qq(){pe.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=gi(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return Se("acl-check-call")({endpoint:e,generateAclCheckParams:Mo(e)&&n})})}o(Qq,"registerGenerateAclCheckCallHelper");function Wq(){pe.default.registerHelper("genInputsConfig",e=>Se("inputs-config")({inputsConfig:e}))}o(Wq,"registerGenerateInputsConfigHelper");function Yq(){pe.default.registerHelper("genColumnsConfig",e=>Se("columns-config")({columnsConfig:e}))}o(Yq,"registerGenerateColumnsConfigHelper");var Ni=Re(er());function SP(e){Jq(),eM(),tM(),Xq(),rM(e)}o(SP,"registerQueryHbsHelpers");function Jq(){Ni.default.registerHelper("queryName",(e,t)=>fn(e,t.hash.mutation))}o(Jq,"registerQueryNameHelper");function Xq(){Ni.default.registerHelper("infiniteQueryName",Bo)}o(Xq,"registerInfiniteQueryNameHelper");function eM(){Ni.default.registerHelper("isQuery",Le)}o(eM,"registerIsQueryHelper");function tM(){Ni.default.registerHelper("isMutation",Nt)}o(tM,"registerIsMutationHelper");function rM(e){Ni.default.registerHelper("isInfiniteQuery",t=>bi(t,e.options))}o(rM,"registerIsInfiniteQueryHelper");var $n=Re(er());function vP(e){nM(e.options),iM(e),oM(e),sM(),aM(),cM(e)}o(vP,"registerZodHbsHelpers");function nM(e){$n.default.registerHelper("zodInferedType",t=>Ho(t,e))}o(nM,"registerInferedTypeHelper");function iM(e){$n.default.registerHelper("importedZodSchemaName",t=>pn(e,t))}o(iM,"registerImportedZodSchemaNameHelper");function oM(e){$n.default.registerHelper("importedZodSchemaInferedType",t=>Cr(e,t))}o(oM,"registerImportedZodSchemaInferedTypeHelper");function sM(){$n.default.registerHelper("zodSchemaType",e=>gb(e))}o(sM,"registerZodSchemaTypeHelper");function aM(){$n.default.registerHelper("zodSchemaDescription",e=>yb(e))}o(aM,"registerZodSchemaDescriptionHelper");function cM(e){$n.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>vb(e,t,r))}o(cM,"registerZodSchemaPropertyDescriptionsHelper");function ae(e,t){let r=Ud(t);return fP(),hP(),vP(e),dP(e),SP(e),pP(e),yP(e),Zd.default.compile(r)}o(ae,"getHbsTemplateDelegate");function Se(e){let t=Ud(`partials/${e}`);return Zd.default.compile(t)}o(Se,"getHbsPartialTemplateDelegate");function bP({resolver:e,data:t,tag:r}){let n=Bf({resolver:e,data:t,tag:r});if(!n)return;let{hasAdditionalAbilityImports:i,modelsImports:s,endpoints:a}=n,c={bindings:[ge.abilityTuple,...i?[ge.forcedSubject,ge.subject]:[]],from:qf.from};return ae(e,"acl")({caslAbilityTupleImport:c,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"acl",tag:r,options:e.options}),endpoints:a})}o(bP,"generateAcl");function _P({resolver:e,data:t}){let{appAbilitiesType:r,hasAdditionalAbilityImports:n,modelsImports:i}=db({resolver:e,data:t}),s={bindings:[ge.pureAbility,ge.abilityTuple,...r?[]:[ge.subjectType],...n?[ge.forcedSubject]:[]],from:qf.from};return ae(e,"app-acl")({caslAbilityTupleImport:s,modelsImports:i,appAbilitiesType:r,appAbilities:No,abilityTuple:ge.abilityTuple,subjectType:ge.subjectType})}o(_P,"generateAppAcl");var zd="config";function EP({data:e,tag:t,resolver:r}){var S;let n=(S=e.get(t))==null?void 0:S.endpoints;if(!n||n.length===0)return{configs:[]};let i=n.map(v=>({...v,pathSegments:Kv(v.path)})),s=i.filter(v=>Vv(v,r.options)),a=uM(s),c=!1,u=[],l=[],f=[],p=Object.entries(a).map(([v,b])=>{let E=lM(r,b);if(!E)return;l.push(b),f.push(b),E.zodSchema&&(ne(E.zodSchema)?u.push(E.zodSchema):c=!0),E.sortableEnumSchemaName&&u.push(E.sortableEnumSchemaName);let P=b.parameters.find(A=>A.name===r.options.filterParamName);P&&u.push(P.zodSchema);let _={name:v,title:B(ga(v.replace(/config$/i,""))),readAll:{acl:ki(b,r.options),schema:E.columns.schema,paginated:hn(b,r.options),infinite:Hb(b,r.options),filters:wc(r,P),columns:E.columns}},w=i.find(A=>Bv(A,b));if(w){l.push(w);let A=w.response;ne(A)?(u.push(A),A=pn(r,A)):c=!0,_.read={acl:ki(w,r.options),schema:A,query:hn(w,r.options)}}let I=i.find(A=>Gv(A,b));if(I){l.push(I);let A=Rr(I);A&&u.push(A.zodSchema),_.create={acl:ki(I,r.options),mutation:hn(I,r.options),inputDefs:wc(r,A)}}let Y=i.find(A=>Uv(A,b));if(Y){l.push(Y);let A=Rr(Y);A&&u.push(A.zodSchema),_.update={acl:ki(Y,r.options),mutation:hn(Y,r.options),inputDefs:wc(r,A)}}let Q=i.find(A=>Zv(A,b));Q&&(l.push(Q),_.delete={acl:ki(Q,r.options),mutation:hn(Q,r.options)});let j=i.find(A=>zv(A,b));if(j){l.push(j);let A=Rr(j);A&&u.push(A.zodSchema),_.bulkDelete={acl:ki(j,r.options),mutation:hn(j,r.options),inputDefs:wc(r,A)}}return _}),d=Rt({resolver:r,tag:t,zodSchemas:u}),m=_b({tag:t,endpoints:l,options:r.options}),g=Eb({tag:t,endpoints:f,options:r.options}),y=Da({tag:t,endpoints:l.filter(v=>v.acl),options:r.options});return{configs:p.filter(Boolean),hasZodImport:c,modelsImports:d,queriesImports:Do(r.options,m,g),aclImports:y}}o(EP,"getBuilderConfigs");function uM(e){let t=e.map(n=>({...n,namePathSegments:n.pathSegments.filter(i=>!pi(i))})).sort((n,i)=>n.namePathSegments.length-i.namePathSegments.length),r={};for(let n of t){let i=n.namePathSegments,s=i.length>0?`${Io(i.pop())}${B(zd)}`:zd;for(;r[s];){if(i.length===0)throw new Error(`Can't uniquely resolve builder config name: ${s}`);s=`${Io(i.pop())}${B(s)}`}r[s]=n}return r}o(uM,"resolveBuilderConfigNames");function ki(e,t){return t.acl&&e.acl?ja(e,t):void 0}o(ki,"getAclConfig");function wc(e,t){var s,a,c;if(!t)return;let r;if(t.type==="Body"?r=(a=(s=t.bodyObject)==null?void 0:s.content[on])==null?void 0:a.schema:r=(c=t.parameterObject)==null?void 0:c.schema,!r)return;let n=e.resolveObject(r),i=Object.keys((n==null?void 0:n.properties)??{}).reduce((u,l)=>({...u,[l]:!0}),{});return{schema:pn(e,t.zodSchema),options:{inputs:i}}}o(wc,"getInputsConfig");function lM(e,t){var m,g,y;let r=t.responseObject;if(!r)return;let n=(g=(m=r.content)==null?void 0:m[on])==null?void 0:g.schema;if(!n)return;let i=PP(e,n),s=Object.keys(i).filter(S=>e.resolveObject(i[S]).type==="array");s.sort((S,v)=>{let b=e.options.dataResponseParamNames.indexOf(S),E=e.options.dataResponseParamNames.indexOf(v);return b!==-1&&E!==-1?b-E:b!==-1?-1:E!==-1?1:S.localeCompare(v)});let a=s[0];if(!a)return;let c=e.resolveObject(i[a]);if(!c||c.type!=="array")return;let u=c.items,l=e.resolveObject(u);if(!l)return;let f=L(u)?e.getZodSchemaNameByRef(u.$ref):li,p=Object.keys((l==null?void 0:l.properties)??{}).reduce((S,v)=>({...S,[v]:!0}),{}),d=(y=t.parameters.find(S=>S.parameterObject&&$a(S.parameterObject)))==null?void 0:y.parameterSortingEnumSchemaName;return{columns:{schema:pn(e,f),options:{columns:p,sortable:d?pn(e,d):void 0}},zodSchema:f,sortableEnumSchemaName:d}}o(lM,"getColumnsConfig");function PP(e,t){let r=e.resolveObject(t);return r.properties?r.properties:"allOf"in r&&r.allOf?r.allOf.reduce((n,i)=>({...n,...PP(e,i)}),{}):{}}o(PP,"getSchemaProperties");function OP(e){let{configs:t,hasZodImport:r,modelsImports:n,queriesImports:i,aclImports:s}=EP(e);if(t.length===0)return;let{resolver:a,tag:c}=e,u=t.some(m=>{var g,y;return m.readAll.filters||((g=m.create)==null?void 0:g.inputDefs)||((y=m.update)==null?void 0:y.inputDefs)}),l={bindings:[jo.dynamicInputs],from:a.options.dynamicInputsImportPath},f=t.some(m=>m.readAll.columns),p={bindings:[jo.dynamicColumns],from:a.options.dynamicColumnsImportPath};return ae(a,"configs")({hasZodImport:r,zodImport:vr,hasDynamicInputsImport:u,dynamicInputsImport:l,hasDynamicColumnsImport:f,dynamicColumnsImport:p,modelsImports:n,queriesImports:i,aclImports:s,includeNamespace:a.options.tsNamespaces,namespace:V({type:"configs",tag:c,options:a.options}),configs:t,dynamicInputs:jo.dynamicInputs,dynamicColumns:jo.dynamicColumns})}o(OP,"generateConfigs");function $P({resolver:e,data:t,tag:r}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[ko],from:$b(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[At]:[],from:ba.from},u=e.options.parseRequestParams,l=n.reduce((E,P)=>[...E,...P.parameters],[]),f=l.filter(E=>!["Path","Header"].includes(E.type)).map(E=>E.parameterSortingEnumSchemaName??E.zodSchema),p=n.map(E=>E.response),d=Ve([...p,...u?f:[]]),m=d.some(E=>!ne(E)),g=e.options.parseRequestParams&&f.length>0,y={bindings:[et.namespace],from:Tb(e.options)},S=Rt({resolver:e,tag:r,zodSchemas:d.filter(ne),zodSchemasAsTypes:Ve(l.map(E=>E.zodSchema).filter(ne))});return ae(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:m,zodImport:vr,hasZodExtendedImport:g,zodExtendedImport:y,modelsImports:S,includeNamespace:e.options.tsNamespaces,namespace:V({type:"endpoints",tag:r,options:e.options}),restClientName:ko,hasAxiosRequestConfig:s,axiosRequestConfigName:Er,axiosRequestConfigType:At,endpoints:n,generateParse:u})}o($P,"generateEndpoints");function xP({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,...Bb(e,f)],[]).filter(l=>!n[l]),s=Rt({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getZodSchemaObj(f),m={code:p,isEnum:mb(p),schemaObj:d};return{...l,[f]:m}},{});return ae(e,"models")({zodImport:vr,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(xP,"generateModels");function AP({resolver:e,data:t,tag:r}){var Q;let n=(Q=t.get(r))==null?void 0:Q.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:j})=>j),a=i||s,c={defaultImport:s?$f:void 0,bindings:i?[At]:[],from:ba.from},u=n.filter(Le),l=u.filter(j=>bi(j,e.options)),f=n.filter(Nt),p={bindings:[...u.length>0?[gt.query]:[],...e.options.infiniteQueries&&l.length>0?[gt.infiniteQuery]:[],...f.length>0?[gt.mutation]:[]],from:gP.from},d=e.options.mutationEffects,m={bindings:[Lf],from:Ab(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[hi.optionsType,hi.hookName]:[]],from:wb(e.options)},S=n.filter(j=>j.acl),v=e.options.checkAcl&&S.length>0,b={bindings:[Ir],from:Ib(e.options)},E={bindings:[...u.length>0?[wa.query]:[],...e.options.infiniteQueries&&l.length>0?[wa.infiniteQuery]:[],...f.length>0?[wa.mutation]:[]],from:xb(e.options)},P=n.reduce((j,A)=>[...j,...A.parameters],[]),_=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(P.map(j=>j.zodSchema).filter(ne))}),w=bb({tag:r,endpoints:n,options:e.options}),I=Da({tag:r,endpoints:S,options:e.options});return ae(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,hasAclCheck:v,aclCheckImport:b,queryTypesImport:E,modelsImports:_,endpointsImports:w,aclImports:I,includeNamespace:e.options.tsNamespaces,tag:r,namespace:V({type:"queries",tag:r,options:e.options}),queriesModuleName:as,queryModuleEnum:Lf,endpoints:n,queryEndpoints:u})}o(AP,"generateQueries");function wP(e){return ae(e,"acl-check")({abilityContextImport:{...lb,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[No],from:Cb(e.options)},errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath},abilityContext:Df,appAbilities:No,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,aclCheckHook:Ir,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(wP,"generateAclCheck");function IP(e){return ae(e,"app-rest-client")({appRestClientName:ko,baseUrl:e.getBaseUrl()})}o(IP,"generateAppRestClient");function TP({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:V({type:"queries",tag:s,options:e.options})})}),ae(e,"query-modules")({modules:r})}o(TP,"generateQueryModules");function CP(e){return ae(e,"zod-extended")({zodImport:vr,zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath}})}o(CP,"generateZodExtended");function RP(e,t){return t.options.acl?[{fileName:tr({output:t.options.output,fileName:dn(xa)}),content:_P({resolver:t,data:e})},...t.options.checkAcl?[{fileName:tr({output:t.options.output,fileName:dn(Aa)}),content:wP(t)}]:[]]:[]}o(RP,"getAclFiles");function NP(e,t){return t.options.mutationEffects?[...qP([pb,Na],t),{fileName:tr({output:t.options.output,fileName:dn(Ra)}),content:TP({resolver:t,data:e})}]:[]}o(NP,"getMutationEffectsFiles");function kP(e){return e.options.standalone?[...qP(Object.values(Ta),e),{fileName:tr({output:e.options.output,fileName:dn(Ca)}),content:IP(e)}]:[]}o(kP,"getStandaloneFiles");function jP(e,t){return t.options.parseRequestParams?[{fileName:tr({output:t.options.output,fileName:dn(ka)}),content:CP(t)}]:[]}o(jP,"getZodExtendedFiles");function qP(e,t){return e.reduce((r,n)=>[...r,pM(n,t)],[])}o(qP,"getAssetFiles");function pM(e,t){let r=dn(e);return{fileName:tr({output:t.options.output,fileName:r}),content:lP(r)}}o(pM,"getAssetFile");function MP(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,{resolver:n,data:i}=Ua(e,{...t,importPath:r}),s=[],a=[],c=["models","endpoints","queries",...n.options.acl?["acl"]:[],...n.options.builderConfigs?["configs"]:[]],u={models:xP,endpoints:$P,queries:AP,acl:bP,configs:OP};return i.forEach((l,f)=>{c.forEach(p=>{let d=u[p]({resolver:n,data:i,tag:f});if(d){let m=tr({output:t.output,fileName:Ob({tag:f,type:p,options:t})});s.push({fileName:m,content:d}),p==="acl"&&a.push(f)}})}),s.push(...RP(i,n),...NP(i,n),...jP(i,n),...kP(n)),s}o(MP,"generateCodeFromOpenAPIDoc");async function fM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return await y_(n,r)}o(fM,"getGenerateMetadata");async function dM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return MP(n,r)}o(dM,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});