@povio/openapi-codegen-cli 0.4.0 → 0.4.1

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
@@ -1,58 +1,80 @@
1
- "use strict";var kg=Object.create;var cn=Object.defineProperty;var Mg=Object.getOwnPropertyDescriptor;var Dg=Object.getOwnPropertyNames;var Fg=Object.getPrototypeOf,Vg=Object.prototype.hasOwnProperty;var s=(e,t)=>cn(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lg=(e,t)=>{for(var r in t)cn(e,r,{get:t[r],enumerable:!0})},zu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Dg(t))!Vg.call(e,i)&&i!==r&&cn(e,i,{get:()=>t[i],enumerable:!(n=Mg(t,i))||n.enumerable});return e};var ci=(e,t,r)=>(r=e!=null?kg(Fg(e)):{},zu(t||!e||!e.__esModule?cn(r,"default",{value:e,enumerable:!0}):r,e)),Bg=e=>zu(cn({},"__esModule",{value:!0}),e);var Se=m((ve,Zu)=>{"use strict";var ui=/^win/.test(process.platform),zg=/\//g,Ug=/^(\w{2,}):\/\//i,Uu=Zu.exports,Zg=/~1/g,Hg=/~0/g,To=[/\?/g,"%3F",/\#/g,"%23"],Ro=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ve.parse=require("url").parse;ve.resolve=require("url").resolve;ve.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ve.getProtocol=s(function(t){let r=Ug.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ve.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ve.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ve.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ve.isHttp=s(function(t){let r=Uu.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ve.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Uu.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ve.fromFileSystemPath=s(function(t){ui&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<To.length;r+=2)t=t.replace(To[r],To[r+1]);return t},"fromFileSystemPath");ve.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Ro.length;i+=2)t=t.replace(Ro[i],Ro[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),ui&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=ui?t:"/"+t)),ui&&!n&&(t=t.replace(zg,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ve.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Zg,"/").replace(Hg,"~"))},"safePointerToPath")});var fi=m(un=>{"use strict";var Hu=require("util"),Gg=Se();un.format=Hu.format;un.inherits=Hu.inherits;un.swaggerParamRegExp=/\{([^/}]+)}/g;var Kg=["get","post","put","delete","patch","options","head","trace"];function Io(e,t){if(e.url&&e.url.startsWith("/")){let r=Gg.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Io,"fixServers");function Wg(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Io(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Io(a,t)):Kg.includes(o)&&i[o].servers&&i[o].servers.map(a=>Io(a,t))})})}))}s(Wg,"fixOasRelativeServers");un.fixOasRelativeServers=Wg});var li=m(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.getDeepKeys=hr.toJSON=void 0;var Yg=["function","symbol","undefined"],Jg=["constructor","prototype","__proto__"],Xg=Object.getPrototypeOf({});function Qg(){let e={},t=this;for(let r of Gu(t))if(typeof r=="string"){let n=t[r],i=typeof n;Yg.includes(i)||(e[r]=n)}return e}s(Qg,"toJSON");hr.toJSON=Qg;function Gu(e,t=[]){let r=[];for(;e&&e!==Xg;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Jg))n.delete(i);return n}s(Gu,"getDeepKeys");hr.getDeepKeys=Gu});var qo=m(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.addInspectMethod=yr.format=void 0;var Ku=require("util"),e$=li(),Wu=Ku.inspect.custom||Symbol.for("nodejs.util.inspect.custom");yr.format=Ku.format;function t$(e){e[Wu]=r$}s(t$,"addInspectMethod");yr.addInspectMethod=t$;function r$(){let e={},t=this;for(let r of e$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Wu],e}s(r$,"inspect")});var Xu=m(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.lazyJoinStacks=Ue.joinStacks=Ue.isWritableStack=Ue.isLazyStack=void 0;var n$=/\r?\n/,i$=/\bono[ @]/;function o$(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(o$,"isLazyStack");Ue.isLazyStack=o$;function s$(e){return!!(!e||e.writable||typeof e.set=="function")}s(s$,"isWritableStack");Ue.isWritableStack=s$;function Yu(e,t){let r=Ju(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var US=Object.create;var oi=Object.defineProperty;var zS=Object.getOwnPropertyDescriptor;var GS=Object.getOwnPropertyNames;var ZS=Object.getPrototypeOf,KS=Object.prototype.hasOwnProperty;var o=(e,t)=>oi(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),WS=(e,t)=>{for(var r in t)oi(e,r,{get:t[r],enumerable:!0})},Zp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GS(t))!KS.call(e,i)&&i!==r&&oi(e,i,{get:()=>t[i],enumerable:!(n=zS(t,i))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?US(ZS(e)):{},Zp(t||!e||!e.__esModule?oi(r,"default",{value:e,enumerable:!0}):r,e)),YS=e=>Zp(oi({},"__esModule",{value:!0}),e);var Ce=m((Te,Wp)=>{"use strict";var $o=/^win/.test(process.platform),QS=/\//g,JS=/^(\w{2,}):\/\//i,Kp=Wp.exports,XS=/~1/g,e2=/~0/g,Ta=[/\?/g,"%3F",/\#/g,"%23"],Ca=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Te.parse=require("url").parse;Te.resolve=require("url").resolve;Te.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Te.getProtocol=o(function(t){let r=JS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Te.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Te.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Te.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Te.isHttp=o(function(t){let r=Kp.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Te.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Kp.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Te.fromFileSystemPath=o(function(t){$o&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ta.length;r+=2)t=t.replace(Ta[r],Ta[r+1]);return t},"fromFileSystemPath");Te.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Ca.length;i+=2)t=t.replace(Ca[i],Ca[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),$o&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=$o?t:"/"+t)),$o&&!n&&(t=t.replace(QS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Te.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(XS,"/").replace(e2,"~"))},"safePointerToPath")});var Oo=m(si=>{"use strict";var Yp=require("util"),t2=Ce();si.format=Yp.format;si.inherits=Yp.inherits;si.swaggerParamRegExp=/\{([^/}]+)}/g;var r2=["get","post","put","delete","patch","options","head","trace"];function Na(e,t){if(e.url&&e.url.startsWith("/")){let r=t2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Na,"fixServers");function n2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Na(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Na(a,t)):r2.includes(s)&&i[s].servers&&i[s].servers.map(a=>Na(a,t))})})}))}o(n2,"fixOasRelativeServers");si.fixOasRelativeServers=n2});var Eo=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getDeepKeys=Xr.toJSON=void 0;var i2=["function","symbol","undefined"],o2=["constructor","prototype","__proto__"],s2=Object.getPrototypeOf({});function a2(){let e={},t=this;for(let r of Qp(t))if(typeof r=="string"){let n=t[r],i=typeof n;i2.includes(i)||(e[r]=n)}return e}o(a2,"toJSON");Xr.toJSON=a2;function Qp(e,t=[]){let r=[];for(;e&&e!==s2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(o2))n.delete(i);return n}o(Qp,"getDeepKeys");Xr.getDeepKeys=Qp});var qa=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.addInspectMethod=en.format=void 0;var Jp=require("util"),u2=Eo(),Xp=Jp.inspect.custom||Symbol.for("nodejs.util.inspect.custom");en.format=Jp.format;function c2(e){e[Xp]=l2}o(c2,"addInspectMethod");en.addInspectMethod=c2;function l2(){let e={},t=this;for(let r of u2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Xp],e}o(l2,"inspect")});var rd=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var f2=/\r?\n/,p2=/\bono[ @]/;function d2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(d2,"isLazyStack");pt.isLazyStack=d2;function h2(e){return!!(!e||e.writable||typeof e.set=="function")}o(h2,"isWritableStack");pt.isWritableStack=h2;function ed(e,t){let r=td(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}s(Yu,"joinStacks");Ue.joinStacks=Yu;function a$(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Yu({stack:n},r)},"get"),enumerable:!1,configurable:!0}):c$(t,e)}s(a$,"lazyJoinStacks");Ue.lazyJoinStacks=a$;function Ju(e){if(e){let t=e.split(n$),r;for(let n=0;n<t.length;n++){let i=t[n];if(i$.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
- `)}return e}s(Ju,"popStack");function c$(e,t){Object.defineProperty(e,"stack",{get:s(()=>Ju(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(c$,"lazyPopStack")});var tf=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.extendError=void 0;var Qu=qo(),pi=Xu(),ef=li(),u$=["name","message","stack"];function f$(e,t,r){let n=e;return l$(n,t),t&&typeof t=="object"&&p$(n,t),n.toJSON=ef.toJSON,Qu.addInspectMethod&&Qu.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(f$,"extendError");di.extendError=f$;function l$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");pi.isLazyStack(r)?pi.lazyJoinStacks(r,e,t):pi.isWritableStack(r)&&(e.stack=pi.joinStacks(e,t))}s(l$,"extendStack");function p$(e,t){let r=ef.getDeepKeys(t,u$),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(p$,"mergeErrors")});var rf=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.normalizeArgs=gr.normalizeOptions=void 0;var d$=qo();function m$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?d$.format:typeof e.format=="function"?e.format:!1}}s(m$,"normalizeOptions");gr.normalizeOptions=m$;function h$(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
5
- `:"")+r.message),{originalError:r,props:n,message:o}}s(h$,"normalizeArgs");gr.normalizeArgs=h$});var Co=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Ono=void 0;var mi=tf(),nf=rf(),y$=li(),g$=No;hi.Ono=g$;function No(e,t){t=nf.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=nf.normalizeArgs(n,t),c=new e(a);return mi.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(No,"Ono");No.toJSON=s(function(t){return y$.toJSON.call(t)},"toJSON");No.extend=s(function(t,r,n){return n||r instanceof Error?mi.extendError(t,r,n):r?mi.extendError(t,void 0,r):mi.extendError(t)},"extend")});var of=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.ono=void 0;var Lt=Co(),$$=Ze;yi.ono=$$;Ze.error=new Lt.Ono(Error);Ze.eval=new Lt.Ono(EvalError);Ze.range=new Lt.Ono(RangeError);Ze.reference=new Lt.Ono(ReferenceError);Ze.syntax=new Lt.Ono(SyntaxError);Ze.type=new Lt.Ono(TypeError);Ze.uri=new Lt.Ono(URIError);var b$=Ze;function Ze(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(b$))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 Ze.error.apply(void 0,e)}s(Ze,"ono")});var af=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var XA=require("util")});var Ie=m((Re,$r)=>{"use strict";var v$=Re&&Re.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),S$=Re&&Re.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&v$(t,e,r)};Object.defineProperty(Re,"__esModule",{value:!0});Re.ono=void 0;var cf=of();Object.defineProperty(Re,"ono",{enumerable:!0,get:s(function(){return cf.ono},"get")});var P$=Co();Object.defineProperty(Re,"Ono",{enumerable:!0,get:s(function(){return P$.Ono},"get")});S$(af(),Re);Re.default=cf.ono;typeof $r=="object"&&typeof $r.exports=="object"&&($r.exports=Object.assign($r.exports.default,$r.exports))});var pn=m(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.regexpCode=N.getEsmExportName=N.getProperty=N.safeStringify=N.stringify=N.strConcat=N.addCodeArg=N.str=N._=N.nil=N._Code=N.Name=N.IDENTIFIER=N._CodeOrName=void 0;var Do=class Do{};s(Do,"_CodeOrName");var fn=Do;N._CodeOrName=fn;N.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Fo=class Fo extends fn{constructor(t){if(super(),!N.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Fo,"Name");var Bt=Fo;N.Name=Bt;var Vo=class Vo extends fn{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 Bt&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Vo,"_Code");var _e=Vo;N._Code=_e;N.nil=new _e("");function uf(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Mo(r,t[n]),r.push(e[++n]);return new _e(r)}s(uf,"_");N._=uf;var ko=new _e("+");function ff(e,...t){let r=[ln(e[0])],n=0;for(;n<t.length;)r.push(ko),Mo(r,t[n]),r.push(ko,ln(e[++n]));return _$(r),new _e(r)}s(ff,"str");N.str=ff;function Mo(e,t){t instanceof _e?e.push(...t._items):t instanceof Bt?e.push(t):e.push(w$(t))}s(Mo,"addCodeArg");N.addCodeArg=Mo;function _$(e){let t=1;for(;t<e.length-1;){if(e[t]===ko){let r=O$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(_$,"optimize");function O$(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Bt||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 Bt))return`"${e}${t.slice(1)}`}s(O$,"mergeExprItems");function x$(e,t){return t.emptyStr()?e:e.emptyStr()?t:ff`${e}${t}`}s(x$,"strConcat");N.strConcat=x$;function w$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ln(Array.isArray(e)?e.join(","):e)}s(w$,"interpolate");function E$(e){return new _e(ln(e))}s(E$,"stringify");N.stringify=E$;function ln(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ln,"safeStringify");N.safeStringify=ln;function j$(e){return typeof e=="string"&&N.IDENTIFIER.test(e)?new _e(`.${e}`):uf`[${e}]`}s(j$,"getProperty");N.getProperty=j$;function A$(e){if(typeof e=="string"&&N.IDENTIFIER.test(e))return new _e(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(A$,"getEsmExportName");N.getEsmExportName=A$;function T$(e){return new _e(e.toString())}s(T$,"regexpCode");N.regexpCode=T$});var Go=m(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.ValueScope=ye.ValueScopeName=ye.Scope=ye.varKinds=ye.UsedValueState=void 0;var he=pn(),zo=class zo extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(zo,"ValueError");var Lo=zo,gi;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(gi||(ye.UsedValueState=gi={}));ye.varKinds={const:new he.Name("const"),let:new he.Name("let"),var:new he.Name("var")};var Uo=class Uo{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof he.Name?t:this.name(t)}name(t){return new he.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Uo,"Scope");var $i=Uo;ye.Scope=$i;var Zo=class Zo extends he.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,he._)`.${new he.Name(r)}[${n}]`}};s(Zo,"ValueScopeName");var bi=Zo;ye.ValueScopeName=bi;var R$=(0,he._)`\n`,Ho=class Ho extends $i{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?R$:he.nil}}get(){return this._scope}name(t){return new bi(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let l=c.get(a);if(l)return l}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),f=u.length;return u[f]=r.ref,i.setValue(r,{property:o,itemIndex:f}),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,he._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=he.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(f=>{if(u.has(f))return;u.set(f,gi.Started);let l=r(f);if(l){let p=this.opts.es5?ye.varKinds.var:ye.varKinds.const;o=(0,he._)`${o}${p} ${f} = ${l};${this.opts._n}`}else if(l=i==null?void 0:i(f))o=(0,he._)`${o}${l}${this.opts._n}`;else throw new Lo(f);u.set(f,gi.Completed)})}return o}};s(Ho,"ValueScope");var Bo=Ho;ye.ValueScope=Bo});var w=m(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.or=j.and=j.not=j.CodeGen=j.operators=j.varKinds=j.ValueScopeName=j.ValueScope=j.Scope=j.Name=j.regexpCode=j.stringify=j.getProperty=j.nil=j.strConcat=j.str=j._=void 0;var I=pn(),qe=Go(),mt=pn();Object.defineProperty(j,"_",{enumerable:!0,get:s(function(){return mt._},"get")});Object.defineProperty(j,"str",{enumerable:!0,get:s(function(){return mt.str},"get")});Object.defineProperty(j,"strConcat",{enumerable:!0,get:s(function(){return mt.strConcat},"get")});Object.defineProperty(j,"nil",{enumerable:!0,get:s(function(){return mt.nil},"get")});Object.defineProperty(j,"getProperty",{enumerable:!0,get:s(function(){return mt.getProperty},"get")});Object.defineProperty(j,"stringify",{enumerable:!0,get:s(function(){return mt.stringify},"get")});Object.defineProperty(j,"regexpCode",{enumerable:!0,get:s(function(){return mt.regexpCode},"get")});Object.defineProperty(j,"Name",{enumerable:!0,get:s(function(){return mt.Name},"get")});var _i=Go();Object.defineProperty(j,"Scope",{enumerable:!0,get:s(function(){return _i.Scope},"get")});Object.defineProperty(j,"ValueScope",{enumerable:!0,get:s(function(){return _i.ValueScope},"get")});Object.defineProperty(j,"ValueScopeName",{enumerable:!0,get:s(function(){return _i.ValueScopeName},"get")});Object.defineProperty(j,"varKinds",{enumerable:!0,get:s(function(){return _i.varKinds},"get")});j.operators={GT:new I._Code(">"),GTE:new I._Code(">="),LT:new I._Code("<"),LTE:new I._Code("<="),EQ:new I._Code("==="),NEQ:new I._Code("!=="),NOT:new I._Code("!"),OR:new I._Code("||"),AND:new I._Code("&&"),ADD:new I._Code("+")};var ss=class ss{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(ss,"Node");var st=ss,as=class as extends st{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?qe.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=Sr(this.rhs,t,r)),this}get names(){return this.rhs instanceof I._CodeOrName?this.rhs.names:{}}};s(as,"Def");var Ko=as,cs=class cs extends st{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 I.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Sr(this.rhs,t,r),this}get names(){let t=this.lhs instanceof I.Name?{}:{...this.lhs.names};return Pi(t,this.rhs)}};s(cs,"Assign");var vi=cs,us=class us extends vi{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(us,"AssignOp");var Wo=us,fs=class fs extends st{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(fs,"Label");var Yo=fs,ls=class ls extends st{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(ls,"Break");var Jo=ls,ps=class ps extends st{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(ps,"Throw");var Xo=ps,ds=class ds extends st{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=Sr(this.code,t,r),this}get names(){return this.code instanceof I._CodeOrName?this.code.names:{}}};s(ds,"AnyCode");var Qo=ds,ms=class ms extends st{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(I$(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Zt(t,r.names),{})}};s(ms,"ParentNode");var dn=ms,hs=class hs extends dn{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(hs,"BlockNode");var at=hs,ys=class ys extends dn{};s(ys,"Root");var es=ys,gs=class gs extends at{};s(gs,"Else");var vr=gs;vr.kind="else";var br=class br extends at{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 vr(n):n}if(r)return t===!1?r instanceof br?r:r.nodes:this.nodes.length?this:new br(lf(t),r instanceof br?[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=Sr(this.condition,t,r),this}get names(){let t=super.names;return Pi(t,this.condition),this.else&&Zt(t,this.else.names),t}};s(br,"If");var zt=br;zt.kind="if";var $s=class $s extends at{};s($s,"For");var Ut=$s;Ut.kind="for";var bs=class bs extends Ut{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=Sr(this.iteration,t,r),this}get names(){return Zt(super.names,this.iteration.names)}};s(bs,"ForLoop");var ts=bs,vs=class vs extends Ut{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?qe.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Pi(super.names,this.from);return Pi(t,this.to)}};s(vs,"ForRange");var rs=vs,Ss=class Ss extends Ut{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=Sr(this.iterable,t,r),this}get names(){return Zt(super.names,this.iterable.names)}};s(Ss,"ForIter");var Si=Ss,Ps=class Ps extends at{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(Ps,"Func");var mn=Ps;mn.kind="func";var _s=class _s extends dn{render(t){return"return "+super.render(t)}};s(_s,"Return");var hn=_s;hn.kind="return";var Os=class Os extends at{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&&Zt(t,this.catch.names),this.finally&&Zt(t,this.finally.names),t}};s(Os,"Try");var ns=Os,xs=class xs extends at{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(xs,"Catch");var yn=xs;yn.kind="catch";var ws=class ws extends at{render(t){return"finally"+super.render(t)}};s(ws,"Finally");var gn=ws;gn.kind="finally";var Es=class Es{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new qe.Scope({parent:t}),this._nodes=[new es]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ko(t,o,n)),o}const(t,r,n){return this._def(qe.varKinds.const,t,r,n)}let(t,r,n){return this._def(qe.varKinds.let,t,r,n)}var(t,r,n){return this._def(qe.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new vi(t,r,n))}add(t,r){return this._leafNode(new Wo(t,j.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==I.nil&&this._leafNode(new Qo(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,I.addCodeArg)(r,i));return r.push("}"),new I._Code(r)}if(t,r,n){if(this._blockNode(new zt(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 zt(t))}else(){return this._elseNode(new vr)}endIf(){return this._endBlockNode(zt,vr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new ts(t),r)}forRange(t,r,n,i,o=this.opts.es5?qe.varKinds.var:qe.varKinds.let){let a=this._scope.toName(t);return this._for(new rs(o,a,r,n),()=>i(a))}forOf(t,r,n,i=qe.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof I.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,I._)`${a}.length`,c=>{this.var(o,(0,I._)`${a}[${c}]`),n(o)})}return this._for(new Si("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?qe.varKinds.var:qe.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,I._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Si("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Ut)}label(t){return this._leafNode(new Yo(t))}break(t){return this._leafNode(new Jo(t))}return(t){let r=new hn;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(hn)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ns;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new yn(o),r(o)}return n&&(this._currNode=i.finally=new gn,this.code(n)),this._endBlockNode(yn,gn)}throw(t){return this._leafNode(new Xo(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=I.nil,n,i){return this._blockNode(new mn(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(mn)}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 zt))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(Es,"CodeGen");var is=Es;j.CodeGen=is;function Zt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Zt,"addNames");function Pi(e,t){return t instanceof I._CodeOrName?Zt(e,t.names):e}s(Pi,"addExprNames");function Sr(e,t,r){if(e instanceof I.Name)return n(e);if(!i(e))return e;return new I._Code(e._items.reduce((o,a)=>(a instanceof I.Name&&(a=n(a)),a instanceof I._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof I._Code&&o._items.some(a=>a instanceof I.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Sr,"optimizeExpr");function I$(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(I$,"subtractNames");function lf(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,I._)`!${os(e)}`}s(lf,"not");j.not=lf;var q$=pf(j.operators.AND);function N$(...e){return e.reduce(q$)}s(N$,"and");j.and=N$;var C$=pf(j.operators.OR);function k$(...e){return e.reduce(C$)}s(k$,"or");j.or=k$;function pf(e){return(t,r)=>t===I.nil?r:r===I.nil?t:(0,I._)`${os(t)} ${e} ${os(r)}`}s(pf,"mappend");function os(e){return e instanceof I.Name?e:(0,I._)`(${e})`}s(os,"par")});var R=m(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.checkStrictMode=A.getErrorPath=A.Type=A.useFunc=A.setEvaluated=A.evaluatedPropsToName=A.mergeEvaluated=A.eachItem=A.unescapeJsonPointer=A.escapeJsonPointer=A.escapeFragment=A.unescapeFragment=A.schemaRefOrVal=A.schemaHasRulesButRef=A.schemaHasRules=A.checkUnknownRules=A.alwaysValidSchema=A.toHash=void 0;var M=w(),M$=pn();function D$(e){let t={};for(let r of e)t[r]=!0;return t}s(D$,"toHash");A.toHash=D$;function F$(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(hf(e,t),!yf(t,e.self.RULES.all))}s(F$,"alwaysValidSchema");A.alwaysValidSchema=F$;function hf(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||bf(e,`unknown keyword: "${o}"`)}s(hf,"checkUnknownRules");A.checkUnknownRules=hf;function yf(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(yf,"schemaHasRules");A.schemaHasRules=yf;function V$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(V$,"schemaHasRulesButRef");A.schemaHasRulesButRef=V$;function L$({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,M._)`${r}`}return(0,M._)`${e}${t}${(0,M.getProperty)(n)}`}s(L$,"schemaRefOrVal");A.schemaRefOrVal=L$;function B$(e){return gf(decodeURIComponent(e))}s(B$,"unescapeFragment");A.unescapeFragment=B$;function z$(e){return encodeURIComponent(As(e))}s(z$,"escapeFragment");A.escapeFragment=z$;function As(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(As,"escapeJsonPointer");A.escapeJsonPointer=As;function gf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(gf,"unescapeJsonPointer");A.unescapeJsonPointer=gf;function U$(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(U$,"eachItem");A.eachItem=U$;function df({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof M.Name?(o instanceof M.Name?e(i,o,a):t(i,o,a),a):o instanceof M.Name?(t(i,a,o),o):r(o,a);return c===M.Name&&!(u instanceof M.Name)?n(i,u):u}}s(df,"makeMergeEvaluated");A.mergeEvaluated={props:df({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,M._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,M._)`${r} || {}`).code((0,M._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,M._)`${r} || {}`),Ts(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:$f}),items:df({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,M._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,M._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function $f(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,M._)`{}`);return t!==void 0&&Ts(e,r,t),r}s($f,"evaluatedPropsToName");A.evaluatedPropsToName=$f;function Ts(e,t,r){Object.keys(r).forEach(n=>e.assign((0,M._)`${t}${(0,M.getProperty)(n)}`,!0))}s(Ts,"setEvaluated");A.setEvaluated=Ts;var mf={};function Z$(e,t){return e.scopeValue("func",{ref:t,code:mf[t.code]||(mf[t.code]=new M$._Code(t.code))})}s(Z$,"useFunc");A.useFunc=Z$;var js;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(js||(A.Type=js={}));function H$(e,t,r){if(e instanceof M.Name){let n=t===js.Num;return r?n?(0,M._)`"[" + ${e} + "]"`:(0,M._)`"['" + ${e} + "']"`:n?(0,M._)`"/" + ${e}`:(0,M._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,M.getProperty)(e).toString():"/"+As(e)}s(H$,"getErrorPath");A.getErrorPath=H$;function bf(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(bf,"checkStrictMode");A.checkStrictMode=bf});var Oe=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var ne=w(),G$={data:new ne.Name("data"),valCxt:new ne.Name("valCxt"),instancePath:new ne.Name("instancePath"),parentData:new ne.Name("parentData"),parentDataProperty:new ne.Name("parentDataProperty"),rootData:new ne.Name("rootData"),dynamicAnchors:new ne.Name("dynamicAnchors"),vErrors:new ne.Name("vErrors"),errors:new ne.Name("errors"),this:new ne.Name("this"),self:new ne.Name("self"),scope:new ne.Name("scope"),json:new ne.Name("json"),jsonPos:new ne.Name("jsonPos"),jsonLen:new ne.Name("jsonLen"),jsonPart:new ne.Name("jsonPart")};Rs.default=G$});var $n=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.extendErrors=ie.resetErrorsCount=ie.reportExtraError=ie.reportError=ie.keyword$DataError=ie.keywordError=void 0;var q=w(),Oi=R(),ue=Oe();ie.keywordError={message:s(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};ie.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function K$(e,t=ie.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Pf(e,t,r);n??(a||c)?vf(o,u):Sf(i,(0,q._)`[${u}]`)}s(K$,"reportError");ie.reportError=K$;function W$(e,t=ie.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Pf(e,t,r);vf(i,c),o||a||Sf(n,ue.default.vErrors)}s(W$,"reportExtraError");ie.reportExtraError=W$;function Y$(e,t){e.assign(ue.default.errors,t),e.if((0,q._)`${ue.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${ue.default.vErrors}.length`,t),()=>e.assign(ue.default.vErrors,null)))}s(Y$,"resetErrorsCount");ie.resetErrorsCount=Y$;function J$({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ue.default.errors,c=>{e.const(a,(0,q._)`${ue.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(ue.default.instancePath,o.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}s(J$,"extendErrors");ie.extendErrors=J$;function vf(e,t){let r=e.const("err",t);e.if((0,q._)`${ue.default.vErrors} === null`,()=>e.assign(ue.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${ue.default.vErrors}.push(${r})`),e.code((0,q._)`${ue.default.errors}++`)}s(vf,"addError");function Sf(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}s(Sf,"returnErrors");var Ht={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function Pf(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:X$(e,t,r)}s(Pf,"errorObjectCode");function X$(e,t,r={}){let{gen:n,it:i}=e,o=[Q$(i,r),e0(e,r)];return t0(e,t,o),n.object(...o)}s(X$,"errorObject");function Q$({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,Oi.getErrorPath)(t,Oi.Type.Str)}`:e;return[ue.default.instancePath,(0,q.strConcat)(ue.default.instancePath,r)]}s(Q$,"errorInstancePath");function e0({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,Oi.getErrorPath)(r,Oi.Type.Str)}`),[Ht.schemaPath,i]}s(e0,"errorSchemaPath");function t0(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:f,topSchemaRef:l,schemaPath:p}=c;n.push([Ht.keyword,i],[Ht.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([Ht.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ht.schema,a],[Ht.parentSchema,(0,q._)`${l}${p}`],[ue.default.data,o]),f&&n.push([Ht.propertyName,f])}s(t0,"extraErrorProps")});var Of=m(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.boolOrEmptySchema=Pr.topBoolOrEmptySchema=void 0;var r0=$n(),n0=w(),i0=Oe(),o0={message:"boolean schema is false"};function s0(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_f(e,!1):typeof r=="object"&&r.$async===!0?t.return(i0.default.data):(t.assign((0,n0._)`${n}.errors`,null),t.return(!0))}s(s0,"topBoolOrEmptySchema");Pr.topBoolOrEmptySchema=s0;function a0(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_f(e)):r.var(t,!0)}s(a0,"boolOrEmptySchema");Pr.boolOrEmptySchema=a0;function _f(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,r0.reportError)(i,o0,void 0,t)}s(_f,"falseSchemaError")});var Is=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.getRules=_r.isJSONType=void 0;var c0=["string","number","integer","boolean","null","object","array"],u0=new Set(c0);function f0(e){return typeof e=="string"&&u0.has(e)}s(f0,"isJSONType");_r.isJSONType=f0;function l0(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(l0,"getRules");_r.getRules=l0});var qs=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.shouldUseRule=ht.shouldUseGroup=ht.schemaHasRulesForType=void 0;function p0({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&xf(e,n)}s(p0,"schemaHasRulesForType");ht.schemaHasRulesForType=p0;function xf(e,t){return t.rules.some(r=>wf(e,r))}s(xf,"shouldUseGroup");ht.shouldUseGroup=xf;function wf(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(wf,"shouldUseRule");ht.shouldUseRule=wf});var bn=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.reportTypeError=oe.checkDataTypes=oe.checkDataType=oe.coerceAndCheckDataType=oe.getJSONTypes=oe.getSchemaTypes=oe.DataType=void 0;var d0=Is(),m0=qs(),h0=$n(),E=w(),Ef=R(),Or;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Or||(oe.DataType=Or={}));function y0(e){let t=jf(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(y0,"getSchemaTypes");oe.getSchemaTypes=y0;function jf(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(d0.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(jf,"getJSONTypes");oe.getJSONTypes=jf;function g0(e,t){let{gen:r,data:n,opts:i}=e,o=$0(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,m0.schemaHasRulesForType)(e,t[0]));if(a){let c=Cs(t,n,i.strictNumbers,Or.Wrong);r.if(c,()=>{o.length?b0(e,t,o):ks(e)})}return a}s(g0,"coerceAndCheckDataType");oe.coerceAndCheckDataType=g0;var Af=new Set(["string","number","integer","boolean","null"]);function $0(e,t){return t?e.filter(r=>Af.has(r)||t==="array"&&r==="array"):[]}s($0,"coerceToTypes");function b0(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,E._)`typeof ${i}`),c=n.let("coerced",(0,E._)`undefined`);o.coerceTypes==="array"&&n.if((0,E._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,E._)`${i}[0]`).assign(a,(0,E._)`typeof ${i}`).if(Cs(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,E._)`${c} !== undefined`);for(let f of r)(Af.has(f)||f==="array"&&o.coerceTypes==="array")&&u(f);n.else(),ks(e),n.endIf(),n.if((0,E._)`${c} !== undefined`,()=>{n.assign(i,c),v0(e,c)});function u(f){switch(f){case"string":n.elseIf((0,E._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,E._)`"" + ${i}`).elseIf((0,E._)`${i} === null`).assign(c,(0,E._)`""`);return;case"number":n.elseIf((0,E._)`${a} == "boolean" || ${i} === null
7
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,E._)`+${i}`);return;case"integer":n.elseIf((0,E._)`${a} === "boolean" || ${i} === null
8
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,E._)`+${i}`);return;case"boolean":n.elseIf((0,E._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,E._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,E._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,E._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,E._)`[${i}]`)}}s(u,"coerceSpecificType")}s(b0,"coerceData");function v0({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(v0,"assignParentData");function Ns(e,t,r,n=Or.Correct){let i=n===Or.Correct?E.operators.EQ:E.operators.NEQ,o;switch(e){case"null":return(0,E._)`${t} ${i} null`;case"array":o=(0,E._)`Array.isArray(${t})`;break;case"object":o=(0,E._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,E._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,E._)`typeof ${t} ${i} ${e}`}return n===Or.Correct?o:(0,E.not)(o);function a(c=E.nil){return(0,E.and)((0,E._)`typeof ${t} == "number"`,c,r?(0,E._)`isFinite(${t})`:E.nil)}}s(Ns,"checkDataType");oe.checkDataType=Ns;function Cs(e,t,r,n){if(e.length===1)return Ns(e[0],t,r,n);let i,o=(0,Ef.toHash)(e);if(o.array&&o.object){let a=(0,E._)`typeof ${t} != "object"`;i=o.null?a:(0,E._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=E.nil;o.number&&delete o.integer;for(let a in o)i=(0,E.and)(i,Ns(a,t,r,n));return i}s(Cs,"checkDataTypes");oe.checkDataTypes=Cs;var S0={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,E._)`{type: ${e}}`:(0,E._)`{type: ${t}}`,"params")};function ks(e){let t=P0(e);(0,h0.reportError)(t,S0)}s(ks,"reportTypeError");oe.reportTypeError=ks;function P0(e){let{gen:t,data:r,schema:n}=e,i=(0,Ef.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(P0,"getTypeErrorContext")});var Rf=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.assignDefaults=void 0;var xr=w(),_0=R();function O0(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Tf(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Tf(e,o,i.default))}s(O0,"assignDefaults");xi.assignDefaults=O0;function Tf(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,xr._)`${o}${(0,xr.getProperty)(t)}`;if(i){(0,_0.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,xr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,xr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,xr._)`${c} = ${(0,xr.stringify)(r)}`)}s(Tf,"assignDefault")});var xe=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.validateUnion=k.validateArray=k.usePattern=k.callValidateCode=k.schemaProperties=k.allSchemaProperties=k.noPropertyInData=k.propertyInData=k.isOwnProperty=k.hasPropFunc=k.reportMissingProp=k.checkMissingProp=k.checkReportMissingProp=void 0;var D=w(),Ms=R(),yt=Oe(),x0=R();function w0(e,t){let{gen:r,data:n,it:i}=e;r.if(Fs(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,D._)`${t}`},!0),e.error()})}s(w0,"checkReportMissingProp");k.checkReportMissingProp=w0;function E0({gen:e,data:t,it:{opts:r}},n,i){return(0,D.or)(...n.map(o=>(0,D.and)(Fs(e,t,o,r.ownProperties),(0,D._)`${i} = ${o}`)))}s(E0,"checkMissingProp");k.checkMissingProp=E0;function j0(e,t){e.setParams({missingProperty:t},!0),e.error()}s(j0,"reportMissingProp");k.reportMissingProp=j0;function If(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,D._)`Object.prototype.hasOwnProperty`})}s(If,"hasPropFunc");k.hasPropFunc=If;function Ds(e,t,r){return(0,D._)`${If(e)}.call(${t}, ${r})`}s(Ds,"isOwnProperty");k.isOwnProperty=Ds;function A0(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} !== undefined`;return n?(0,D._)`${i} && ${Ds(e,t,r)}`:i}s(A0,"propertyInData");k.propertyInData=A0;function Fs(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} === undefined`;return n?(0,D.or)(i,(0,D.not)(Ds(e,t,r))):i}s(Fs,"noPropertyInData");k.noPropertyInData=Fs;function qf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(qf,"allSchemaProperties");k.allSchemaProperties=qf;function T0(e,t){return qf(t).filter(r=>!(0,Ms.alwaysValidSchema)(e,t[r]))}s(T0,"schemaProperties");k.schemaProperties=T0;function R0({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,f){let l=f?(0,D._)`${e}, ${t}, ${n}${i}`:t,p=[[yt.default.instancePath,(0,D.strConcat)(yt.default.instancePath,o)],[yt.default.parentData,a.parentData],[yt.default.parentDataProperty,a.parentDataProperty],[yt.default.rootData,yt.default.rootData]];a.opts.dynamicRef&&p.push([yt.default.dynamicAnchors,yt.default.dynamicAnchors]);let h=(0,D._)`${l}, ${r.object(...p)}`;return u!==D.nil?(0,D._)`${c}.call(${u}, ${h})`:(0,D._)`${c}(${h})`}s(R0,"callValidateCode");k.callValidateCode=R0;var I0=(0,D._)`new RegExp`;function q0({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,D._)`${i.code==="new RegExp"?I0:(0,x0.useFunc)(e,i)}(${r}, ${n})`})}s(q0,"usePattern");k.usePattern=q0;function N0(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,D._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:Ms.Type.Num},o),t.if((0,D.not)(o),c)})}s(a,"validateItems")}s(N0,"validateArray");k.validateArray=N0;function C0(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,Ms.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,f)=>{let l=e.subschema({keyword:n,schemaProp:f,compositeRule:!0},c);t.assign(a,(0,D._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,D.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(C0,"validateUnion");k.validateUnion=C0});var kf=m(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.validateKeywordUsage=He.validSchemaType=He.funcKeywordCode=He.macroKeywordCode=void 0;var fe=w(),Gt=Oe(),k0=xe(),M0=$n();function D0(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=Cf(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let f=r.name("valid");e.subschema({schema:c,schemaPath:fe.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}s(D0,"macroKeywordCode");He.macroKeywordCode=D0;function F0(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;L0(u,t);let f=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=Cf(n,i,f),p=n.let("valid");e.block$data(p,h),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function h(){if(t.errors===!1)$(),t.modifying&&Nf(e),g(()=>e.error());else{let b=t.async?d():y();t.modifying&&Nf(e),g(()=>V0(e,b))}}s(h,"validateKeyword");function d(){let b=n.let("ruleErrs",null);return n.try(()=>$((0,fe._)`await `),v=>n.assign(p,!1).if((0,fe._)`${v} instanceof ${u.ValidationError}`,()=>n.assign(b,(0,fe._)`${v}.errors`),()=>n.throw(v))),b}s(d,"validateAsync");function y(){let b=(0,fe._)`${l}.errors`;return n.assign(b,null),$(fe.nil),b}s(y,"validateSync");function $(b=t.async?(0,fe._)`await `:fe.nil){let v=u.opts.passContext?Gt.default.this:Gt.default.self,S=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,fe._)`${b}${(0,k0.callValidateCode)(e,l,v,S)}`,t.modifying)}s($,"assignValid");function g(b){var v;n.if((0,fe.not)((v=t.valid)!==null&&v!==void 0?v:p),b)}s(g,"reportErrs")}s(F0,"funcKeywordCode");He.funcKeywordCode=F0;function Nf(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,fe._)`${n.parentData}[${n.parentDataProperty}]`))}s(Nf,"modifyData");function V0(e,t){let{gen:r}=e;r.if((0,fe._)`Array.isArray(${t})`,()=>{r.assign(Gt.default.vErrors,(0,fe._)`${Gt.default.vErrors} === null ? ${t} : ${Gt.default.vErrors}.concat(${t})`).assign(Gt.default.errors,(0,fe._)`${Gt.default.vErrors}.length`),(0,M0.extendErrors)(e)},()=>e.error())}s(V0,"addErrs");function L0({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(L0,"checkAsyncKeyword");function Cf(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,fe.stringify)(r)})}s(Cf,"useKeyword");function B0(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(B0,"validSchemaType");He.validSchemaType=B0;function z0({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(z0,"validateKeywordUsage");He.validateKeywordUsage=z0});var Df=m(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.extendSubschemaMode=gt.extendSubschemaData=gt.getSubschema=void 0;var Ge=w(),Mf=R();function U0(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Ge._)`${e.schemaPath}${(0,Ge.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ge._)`${e.schemaPath}${(0,Ge.getProperty)(t)}${(0,Ge.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Mf.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(U0,"getSubschema");gt.getSubschema=U0;function Z0(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:f,dataPathArr:l,opts:p}=t,h=c.let("data",(0,Ge._)`${t.data}${(0,Ge.getProperty)(r)}`,!0);u(h),e.errorPath=(0,Ge.str)`${f}${(0,Mf.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Ge._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Ge.Name?i:c.let("data",i,!0);u(f),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(f){e.data=f,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,f]}s(u,"dataContextProps")}s(Z0,"extendSubschemaData");gt.extendSubschemaData=Z0;function H0(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(H0,"extendSubschemaMode");gt.extendSubschemaMode=H0});var Vs=m((jT,Ff)=>{"use strict";Ff.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Lf=m((TT,Vf)=>{"use strict";var $t=Vf.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(){};wi(t,n,i,e,"",e)};$t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$t.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 wi(e,t,r,n,i,o,a,c,u,f){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,f);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in $t.arrayKeywords)for(var h=0;h<p.length;h++)wi(e,t,r,p[h],i+"/"+l+"/"+h,o,i,l,n,h)}else if(l in $t.propsKeywords){if(p&&typeof p=="object")for(var d in p)wi(e,t,r,p[d],i+"/"+l+"/"+G0(d),o,i,l,n,d)}else(l in $t.keywords||e.allKeys&&!(l in $t.skipKeywords))&&wi(e,t,r,p,i+"/"+l,o,i,l,n)}r(n,i,o,a,c,u,f)}}s(wi,"_traverse");function G0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(G0,"escapeJsonPtr")});var vn=m(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.getSchemaRefs=ge.resolveUrl=ge.normalizeId=ge._getFullPath=ge.getFullPath=ge.inlineRef=void 0;var K0=R(),W0=Vs(),Y0=Lf(),J0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function X0(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ls(e):t?Bf(e)<=t:!1}s(X0,"inlineRef");ge.inlineRef=X0;var Q0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ls(e){for(let t in e){if(Q0.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Ls)||typeof r=="object"&&Ls(r))return!0}return!1}s(Ls,"hasRef");function Bf(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!J0.has(r)&&(typeof e[r]=="object"&&(0,K0.eachItem)(e[r],n=>t+=Bf(n)),t===1/0))return 1/0}return t}s(Bf,"countKeys");function zf(e,t="",r){r!==!1&&(t=wr(t));let n=e.parse(t);return Uf(e,n)}s(zf,"getFullPath");ge.getFullPath=zf;function Uf(e,t){return e.serialize(t).split("#")[0]+"#"}s(Uf,"_getFullPath");ge._getFullPath=Uf;var eb=/#\/?$/;function wr(e){return e?e.replace(eb,""):""}s(wr,"normalizeId");ge.normalizeId=wr;function tb(e,t,r){return r=wr(r),e.resolve(t,r)}s(tb,"resolveUrl");ge.resolveUrl=tb;var rb=/^[a-z_][-a-z0-9._]*$/i;function nb(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=wr(e[r]||t),o={"":i},a=zf(n,i,!1),c={},u=new Set;return Y0(e,{allKeys:!0},(p,h,d,y)=>{if(y===void 0)return;let $=a+h,g=o[y];typeof p[r]=="string"&&(g=b.call(this,p[r])),v.call(this,p.$anchor),v.call(this,p.$dynamicAnchor),o[h]=g;function b(S){let T=this.opts.uriResolver.resolve;if(S=wr(g?T(g,S):S),u.has(S))throw l(S);u.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?f(p,P.schema,S):S!==wr($)&&(S[0]==="#"?(f(p,c[S],S),c[S]=p):this.refs[S]=$),S}s(b,"addRef");function v(S){if(typeof S=="string"){if(!rb.test(S))throw new Error(`invalid anchor "${S}"`);b.call(this,`#${S}`)}}s(v,"addAnchor")}),c;function f(p,h,d){if(h!==void 0&&!W0(p,h))throw l(d)}s(f,"checkAmbiguosRef");function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(l,"ambiguos")}s(nb,"getSchemaRefs");ge.getSchemaRefs=nb});var _n=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getData=bt.KeywordCxt=bt.validateFunctionCode=void 0;var Wf=Of(),Zf=bn(),zs=qs(),Ei=bn(),ib=Rf(),Pn=kf(),Bs=Df(),_=w(),x=Oe(),ob=vn(),ct=R(),Sn=$n();function sb(e){if(Xf(e)&&(Qf(e),Jf(e))){ub(e);return}Yf(e,()=>(0,Wf.topBoolOrEmptySchema)(e))}s(sb,"validateFunctionCode");bt.validateFunctionCode=sb;function Yf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,_._)`${x.default.data}, ${x.default.valCxt}`,n.$async,()=>{e.code((0,_._)`"use strict"; ${Hf(r,i)}`),cb(e,i),e.code(o)}):e.func(t,(0,_._)`${x.default.data}, ${ab(i)}`,n.$async,()=>e.code(Hf(r,i)).code(o))}s(Yf,"validateFunction");function ab(e){return(0,_._)`{${x.default.instancePath}="", ${x.default.parentData}, ${x.default.parentDataProperty}, ${x.default.rootData}=${x.default.data}${e.dynamicRef?(0,_._)`, ${x.default.dynamicAnchors}={}`:_.nil}}={}`}s(ab,"destructureValCxt");function cb(e,t){e.if(x.default.valCxt,()=>{e.var(x.default.instancePath,(0,_._)`${x.default.valCxt}.${x.default.instancePath}`),e.var(x.default.parentData,(0,_._)`${x.default.valCxt}.${x.default.parentData}`),e.var(x.default.parentDataProperty,(0,_._)`${x.default.valCxt}.${x.default.parentDataProperty}`),e.var(x.default.rootData,(0,_._)`${x.default.valCxt}.${x.default.rootData}`),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`${x.default.valCxt}.${x.default.dynamicAnchors}`)},()=>{e.var(x.default.instancePath,(0,_._)`""`),e.var(x.default.parentData,(0,_._)`undefined`),e.var(x.default.parentDataProperty,(0,_._)`undefined`),e.var(x.default.rootData,x.default.data),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`{}`)})}s(cb,"destructureValCxtES5");function ub(e){let{schema:t,opts:r,gen:n}=e;Yf(e,()=>{r.$comment&&t.$comment&&tl(e),mb(e),n.let(x.default.vErrors,null),n.let(x.default.errors,0),r.unevaluated&&fb(e),el(e),gb(e)})}s(ub,"topSchemaObjCode");function fb(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`))}s(fb,"resetEvaluated");function Hf(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,_._)`/*# sourceURL=${r} */`:_.nil}s(Hf,"funcSourceUrl");function lb(e,t){if(Xf(e)&&(Qf(e),Jf(e))){pb(e,t);return}(0,Wf.boolOrEmptySchema)(e,t)}s(lb,"subschemaCode");function Jf({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Jf,"schemaCxtHasRules");function Xf(e){return typeof e.schema!="boolean"}s(Xf,"isSchemaObj");function pb(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&tl(e),hb(e),yb(e);let o=n.const("_errs",x.default.errors);el(e,o),n.var(t,(0,_._)`${o} === ${x.default.errors}`)}s(pb,"subSchemaObjCode");function Qf(e){(0,ct.checkUnknownRules)(e),db(e)}s(Qf,"checkKeywords");function el(e,t){if(e.opts.jtd)return Gf(e,[],!1,t);let r=(0,Zf.getSchemaTypes)(e.schema),n=(0,Zf.coerceAndCheckDataType)(e,r);Gf(e,r,!n,t)}s(el,"typeAndKeywords");function db(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(db,"checkRefsAndKeywords");function mb(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ct.checkStrictMode)(e,"default is ignored in the schema root")}s(mb,"checkNoDefault");function hb(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ob.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(hb,"updateContext");function yb(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(yb,"checkAsyncSchema");function tl({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,_._)`${x.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,_.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,_._)`${x.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(tl,"commentKeyword");function gb(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,_._)`${x.default.errors} === 0`,()=>t.return(x.default.data),()=>t.throw((0,_._)`new ${i}(${x.default.vErrors})`)):(t.assign((0,_._)`${n}.errors`,x.default.vErrors),o.unevaluated&&$b(e),t.return((0,_._)`${x.default.errors} === 0`))}s(gb,"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)}s($b,"assignEvaluated");function Gf(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:f}=e,{RULES:l}=f;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,ct.schemaHasRulesButRef)(o,l))){i.block(()=>nl(e,"$ref",l.all.$ref.definition));return}u.jtd||bb(e,t),i.block(()=>{for(let h of l.rules)p(h);p(l.post)});function p(h){(0,zs.shouldUseGroup)(o,h)&&(h.type?(i.if((0,Ei.checkDataType)(h.type,a,u.strictNumbers)),Kf(e,h),t.length===1&&t[0]===h.type&&r&&(i.else(),(0,Ei.reportTypeError)(e)),i.endIf()):Kf(e,h),c||i.if((0,_._)`${x.default.errors} === ${n||0}`))}s(p,"groupKeywords")}s(Gf,"schemaKeywords");function Kf(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,ib.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,zs.shouldUseRule)(n,o)&&nl(e,o.keyword,o.definition,t.type)})}s(Kf,"iterateKeywords");function bb(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(vb(e,t),e.opts.allowUnionTypes||Sb(e,t),Pb(e,e.dataTypes))}s(bb,"checkStrictTypes");function vb(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{rl(e.dataTypes,r)||Us(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ob(e,t)}}s(vb,"checkContextTypes");function Sb(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Us(e,"use allowUnionTypes to allow union type keyword")}s(Sb,"checkMultipleTypes");function Pb(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zs.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>_b(t,a))&&Us(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(Pb,"checkKeywordTypes");function _b(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(_b,"hasApplicableType");function rl(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(rl,"includesType");function Ob(e,t){let r=[];for(let n of e.dataTypes)rl(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(Ob,"narrowSchemaTypes");function Us(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ct.checkStrictMode)(e,t,e.opts.strictTypes)}s(Us,"strictTypesError");var Zs=class Zs{constructor(t,r,n){if((0,Pn.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,ct.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",il(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Pn.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",x.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?Sn.reportExtraError:Sn.reportError)(this,this.def.error,r)}$dataError(){(0,Sn.reportError)(this,this.def.$dataError||Sn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Sn.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:o,def:a}=this;n.if((0,_.or)((0,_._)`${i} === undefined`,r)),t!==_.nil&&n.assign(t,!0),(o.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:o}=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,Ei.checkDataTypes)(u,r,o.opts.strictNumbers,Ei.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,Bs.getSubschema)(this.it,t);(0,Bs.extendSubschemaData)(n,this.it,t),(0,Bs.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return lb(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ct.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}};s(Zs,"KeywordCxt");var ji=Zs;bt.KeywordCxt=ji;function nl(e,t,r,n){let i=new ji(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Pn.funcKeywordCode)(i,r):"macro"in r?(0,Pn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Pn.funcKeywordCode)(i,r)}s(nl,"keywordCode");var xb=/^\/(?:[^~]|~0|~1)*$/,wb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function il(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return x.default.rootData;if(e[0]==="/"){if(!xb.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=x.default.rootData}else{let f=wb.exec(e);if(!f)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+f[1];if(i=f[2],i==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(o=r[t-l],!i)return o}let a=o,c=i.split("/");for(let f of c)f&&(o=(0,_._)`${o}${(0,_.getProperty)((0,ct.unescapeJsonPointer)(f))}`,a=(0,_._)`${a} && ${o}`);return a;function u(f,l){return`Cannot access ${f} ${l} levels up, current level is ${t}`}}s(il,"getData");bt.getData=il});var Ai=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var Ks=class Ks extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ks,"ValidationError");var Hs=Ks;Gs.default=Hs});var On=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Ws=vn(),Xs=class Xs extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ws.resolveUrl)(t,r,n),this.missingSchema=(0,Ws.normalizeId)((0,Ws.getFullPath)(t,this.missingRef))}};s(Xs,"MissingRefError");var Ys=Xs;Js.default=Ys});var xn=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.resolveSchema=we.getCompilingSchema=we.resolveRef=we.compileSchema=we.SchemaEnv=void 0;var Ne=w(),Eb=Ai(),Kt=Oe(),Ce=vn(),ol=R(),jb=_n(),ta=class ta{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,Ce.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(ta,"SchemaEnv");var Er=ta;we.SchemaEnv=Er;function ea(e){let t=sl.call(this,e);if(t)return t;let r=(0,Ce.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ne.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:Eb.default,code:(0,Ne._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let f={gen:a,allErrors:this.opts.allErrors,data:Kt.default.data,parentData:Kt.default.parentData,parentDataProperty:Kt.default.parentDataProperty,dataNames:[Kt.default.data],dataPathArr:[Ne.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ne.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ne.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ne._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,jb.validateFunctionCode)(f),a.optimize(this.opts.code.optimize);let p=a.toString();l=`${a.scopeRefs(Kt.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${Kt.default.self}`,`${Kt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:$}=f;d.evaluated={props:y instanceof Ne.Name?void 0:y,items:$ instanceof Ne.Name?void 0:$,dynamicProps:y instanceof Ne.Name,dynamicItems:$ instanceof Ne.Name},d.source&&(d.source.evaluated=(0,Ne.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(e)}}s(ea,"compileSchema");we.compileSchema=ea;function Ab(e,t,r){var n;r=(0,Ce.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Ib.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new Er({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=Tb.call(this,o)}s(Ab,"resolveRef");we.resolveRef=Ab;function Tb(e){return(0,Ce.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ea.call(this,e)}s(Tb,"inlineOrCompile");function sl(e){for(let t of this._compilations)if(Rb(t,e))return t}s(sl,"getCompilingSchema");we.getCompilingSchema=sl;function Rb(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(Rb,"sameSchemaEnv");function Ib(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ti.call(this,e,t)}s(Ib,"resolve");function Ti(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ce._getFullPath)(this.opts.uriResolver,r),i=(0,Ce.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Qs.call(this,r,e);let o=(0,Ce.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Ti.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Qs.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||ea.call(this,a),o===(0,Ce.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,f=c[u];return f&&(i=(0,Ce.resolveUrl)(this.opts.uriResolver,i,f)),new Er({schema:c,schemaId:u,root:e,baseId:i})}return Qs.call(this,r,a)}}s(Ti,"resolveSchema");we.resolveSchema=Ti;var qb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Qs(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,ol.unescapeFragment)(c)];if(u===void 0)return;r=u;let f=typeof r=="object"&&r[this.opts.schemaId];!qb.has(c)&&f&&(t=(0,Ce.resolveUrl)(this.opts.uriResolver,t,f))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ol.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Ce.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ti.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new Er({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Qs,"getJsonPointer")});var al=m((BT,Nb)=>{Nb.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 ul=m((zT,cl)=>{"use strict";var Cb={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};cl.exports={HEX:Cb}});var gl=m((UT,yl)=>{"use strict";var{HEX:kb}=ul();function dl(e){if(hl(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:Db(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(dl,"normalizeIPv4");function ra(e,t=!1){let r="",n=!0;for(let i of e){if(kb[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(ra,"stringArrayToHexStripped");function Mb(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let f=ra(i);if(f!==void 0)n.push(f);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let f=0;f<e.length;f++){let l=e[f];if(!(l==="["||l==="]"))if(l===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}f-1>=0&&e[f-1]===":"&&(a=!0);continue}else if(l==="%"){if(!u())break;o=!0}else{i.push(l);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(ra(i))),r.address=n.join(""),r}s(Mb,"getIPV6");function ml(e,t={}){if(hl(e,":")<2)return{host:e,isIPV6:!1};let r=Mb(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(ml,"normalizeIPv6");function Db(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Db,"stripLeadingZeros");function hl(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(hl,"findToken");var fl=/^\.\.?\//u,ll=/^\/\.(?:\/|$)/u,pl=/^\/\.\.(?:\/|$)/u,Fb=/^\/?(?:.|\n)*?(?=\/|$)/u;function Vb(e){let t=[];for(;e.length;)if(e.match(fl))e=e.replace(fl,"");else if(e.match(ll))e=e.replace(ll,"/");else if(e.match(pl))e=e.replace(pl,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Fb);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(Vb,"removeDotSegments");function Lb(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Lb,"normalizeComponentEncoding");function Bb(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=dl(n);if(i.isIPV4)n=i.host;else{let o=ml(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Bb,"recomposeAuthority");yl.exports={recomposeAuthority:Bb,normalizeComponentEncoding:Lb,removeDotSegments:Vb,normalizeIPv4:dl,normalizeIPv6:ml,stringArrayToHexStripped:ra}});var _l=m((HT,Pl)=>{"use strict";var zb=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Ub=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function $l(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s($l,"isSecure");function bl(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(bl,"httpParse");function vl(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(vl,"httpSerialize");function Zb(e){return e.secure=$l(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Zb,"wsParse");function Hb(e){if((e.port===($l(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(Hb,"wsSerialize");function Gb(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Ub);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=na[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(Gb,"urnParse");function Kb(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=na[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(Kb,"urnSerialize");function Wb(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!zb.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(Wb,"urnuuidParse");function Yb(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(Yb,"urnuuidSerialize");var Sl={scheme:"http",domainHost:!0,parse:bl,serialize:vl},Jb={scheme:"https",domainHost:Sl.domainHost,parse:bl,serialize:vl},Ri={scheme:"ws",domainHost:!0,parse:Zb,serialize:Hb},Xb={scheme:"wss",domainHost:Ri.domainHost,parse:Ri.parse,serialize:Ri.serialize},Qb={scheme:"urn",parse:Gb,serialize:Kb,skipNormalize:!0},ev={scheme:"urn:uuid",parse:Wb,serialize:Yb,skipNormalize:!0},na={http:Sl,https:Jb,ws:Ri,wss:Xb,urn:Qb,"urn:uuid":ev};Pl.exports=na});var xl=m((KT,qi)=>{"use strict";var{normalizeIPv6:tv,normalizeIPv4:rv,removeDotSegments:wn,recomposeAuthority:nv,normalizeComponentEncoding:Ii}=gl(),ia=_l();function iv(e,t){return typeof e=="string"?e=Ke(ut(e,t),t):typeof e=="object"&&(e=ut(Ke(e,t),t)),e}s(iv,"normalize");function ov(e,t,r){let n=Object.assign({scheme:"null"},r),i=Ol(ut(e,n),ut(t,n),n,!0);return Ke(i,{...n,skipEscape:!0})}s(ov,"resolve");function Ol(e,t,r,n){let i={};return n||(e=ut(Ke(e,r),r),t=ut(Ke(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=wn(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=wn(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=wn(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=wn(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Ol,"resolveComponents");function sv(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ke(Ii(ut(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ke(Ii(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ke(Ii(ut(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ke(Ii(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(sv,"equal");function Ke(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=ia[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=nv(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=wn(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(Ke,"serialize");var av=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function cv(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||av[t])return!0;return!1}s(cv,"nonSimpleDomain");var uv=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ut(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(uv);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=rv(n.host);if(u.isIPV4===!1){let f=tv(u.host,{isIPV4:!1});n.host=f.host.toLowerCase(),o=f.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=ia[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&cv(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(ut,"parse");var oa={SCHEMES:ia,normalize:iv,resolve:ov,resolveComponents:Ol,equal:sv,serialize:Ke,parse:ut};qi.exports=oa;qi.exports.default=oa;qi.exports.fastUri=oa});var El=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var wl=xl();wl.code='require("ajv/dist/runtime/uri").default';sa.default=wl});var Ar=m(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.CodeGen=te.Name=te.nil=te.stringify=te.str=te._=te.KeywordCxt=void 0;var fv=_n();Object.defineProperty(te,"KeywordCxt",{enumerable:!0,get:s(function(){return fv.KeywordCxt},"get")});var jr=w();Object.defineProperty(te,"_",{enumerable:!0,get:s(function(){return jr._},"get")});Object.defineProperty(te,"str",{enumerable:!0,get:s(function(){return jr.str},"get")});Object.defineProperty(te,"stringify",{enumerable:!0,get:s(function(){return jr.stringify},"get")});Object.defineProperty(te,"nil",{enumerable:!0,get:s(function(){return jr.nil},"get")});Object.defineProperty(te,"Name",{enumerable:!0,get:s(function(){return jr.Name},"get")});Object.defineProperty(te,"CodeGen",{enumerable:!0,get:s(function(){return jr.CodeGen},"get")});var lv=Ai(),Il=On(),pv=Is(),En=xn(),dv=w(),jn=vn(),Ni=bn(),ca=R(),jl=al(),mv=El(),ql=s((e,t)=>new RegExp(e,t),"defaultRegExp");ql.code="new RegExp";var hv=["removeAdditional","useDefaults","coerceTypes"],yv=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),gv={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."},$v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Al=200;function bv(e){var t,r,n,i,o,a,c,u,f,l,p,h,d,y,$,g,b,v,S,T,P,z,W,ee,me;let ot=e.strict,Vt=(t=e.code)===null||t===void 0?void 0:t.optimize,ai=Vt===!0||Vt===void 0?1:Vt||0,an=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ql,Cg=(i=e.uriResolver)!==null&&i!==void 0?i:mv.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ot)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:ot)!==null&&u!==void 0?u:!0,strictTypes:(l=(f=e.strictTypes)!==null&&f!==void 0?f:ot)!==null&&l!==void 0?l:"log",strictTuples:(h=(p=e.strictTuples)!==null&&p!==void 0?p:ot)!==null&&h!==void 0?h:"log",strictRequired:(y=(d=e.strictRequired)!==null&&d!==void 0?d:ot)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:ai,regExp:an}:{optimize:ai,regExp:an},loopRequired:($=e.loopRequired)!==null&&$!==void 0?$:Al,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Al,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(z=e.validateSchema)!==null&&z!==void 0?z:!0,validateFormats:(W=e.validateFormats)!==null&&W!==void 0?W:!0,unicodeRegExp:(ee=e.unicodeRegExp)!==null&&ee!==void 0?ee:!0,int32range:(me=e.int32range)!==null&&me!==void 0?me:!0,uriResolver:Cg}}s(bv,"requiredOptions");var ua=class ua{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...bv(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new dv.ValueScope({scope:{},prefixes:yv,es5:r,lines:n}),this.logger=xv(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,pv.getRules)(),Tl.call(this,gv,t,"NOT SUPPORTED"),Tl.call(this,$v,t,"DEPRECATED","warn"),this._metaOpts=_v.call(this),t.formats&&Sv.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Pv.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),vv.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=jl;n==="id"&&(i={...jl},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(l,p){await o.call(this,l.$schema);let h=this._addSchema(l,p);return h.validate||a.call(this,h)}async function o(l){l&&!this.getSchema(l)&&await i.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof Il.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function u(l){let p=await f.call(this,l);this.refs[l]||await o.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function f(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,jn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=Rl.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new En.SchemaEnv({schema:{},schemaId:n});if(r=En.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=Rl.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,jn.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(Ev.call(this,n,r),!r)return(0,ca.eachItem)(n,o=>aa.call(this,o)),this;Av.call(this,r);let i={...r,type:(0,Ni.getJSONTypes)(r.type),schemaType:(0,Ni.getJSONTypes)(r.schemaType)};return(0,ca.eachItem)(n,i.type.length===0?o=>aa.call(this,o,i):o=>i.type.forEach(a=>aa.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:f}=u.definition,l=a[c];f&&l&&(a[c]=Nl(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,jn.normalizeId)(a||n);let f=jn.getSchemaRefs.call(this,t,n);return u=new En.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:f}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):En.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{En.compileSchema.call(this,t)}finally{this.opts=r}}};s(ua,"Ajv");var An=ua;An.ValidationError=lv.default;An.MissingRefError=Il.default;te.default=An;function Tl(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(Tl,"checkOptions");function Rl(e){return e=(0,jn.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Rl,"getSchEnv");function vv(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(vv,"addInitialSchemas");function Sv(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(Sv,"addInitialFormats");function Pv(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(Pv,"addInitialKeywords");function _v(){let e={...this.opts};for(let t of hv)delete e[t];return e}s(_v,"getMetaSchemaOptions");var Ov={log(){},warn(){},error(){}};function xv(e){if(e===!1)return Ov;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(xv,"getLogger");var wv=/^[a-z_$][a-z0-9_$:-]*$/i;function Ev(e,t){let{RULES:r}=this;if((0,ca.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wv.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(Ev,"checkKeyword");function aa(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Ni.getJSONTypes)(t.type),schemaType:(0,Ni.getJSONTypes)(t.schemaType)}};t.before?jv.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(aa,"addRule");function jv(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(jv,"addBeforeRule");function Av(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Nl(t)),e.validateSchema=this.compile(t,!0))}s(Av,"keywordMetaschema");var Tv={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Nl(e){return{anyOf:[e,Tv]}}s(Nl,"schemaOrData")});var Tn=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.callRef=Wt.getValidate=void 0;var Rv=On(),Cl=xe(),$e=w(),Tr=Oe(),kl=xn(),Ci=R(),Iv={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:f}=o;if((r==="#"||r==="#/")&&i===f.baseId)return p();let l=kl.resolveRef.call(u,f,i,r);if(l===void 0)throw new Rv.default(n.opts.uriResolver,i,r);if(l instanceof kl.SchemaEnv)return h(l);return d(l);function p(){if(o===f)return ki(e,a,o,o.$async);let y=t.scopeValue("root",{ref:f});return ki(e,(0,$e._)`${y}.validate`,f,f.$async)}function h(y){let $=Ml(e,y);ki(e,$,y,y.$async)}function d(y){let $=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,$e.stringify)(y)}:{ref:y}),g=t.name("valid"),b=e.subschema({schema:y,dataTypes:[],schemaPath:$e.nil,topSchemaRef:$,errSchemaPath:r},g);e.mergeEvaluated(b),e.ok(g)}}};function Ml(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,$e._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Ml,"getValidate");Wt.getValidate=Ml;function ki(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,f=u.passContext?Tr.default.this:$e.nil;n?l():p();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,$e._)`await ${(0,Cl.callValidateCode)(e,t,f)}`),d(t),a||i.assign(y,!0)},$=>{i.if((0,$e._)`!(${$} instanceof ${o.ValidationError})`,()=>i.throw($)),h($),a||i.assign(y,!1)}),e.ok(y)}s(l,"callAsyncRef");function p(){e.result((0,Cl.callValidateCode)(e,t,f),()=>d(t),()=>h(t))}s(p,"callSyncRef");function h(y){let $=(0,$e._)`${y}.errors`;i.assign(Tr.default.vErrors,(0,$e._)`${Tr.default.vErrors} === null ? ${$} : ${Tr.default.vErrors}.concat(${$})`),i.assign(Tr.default.errors,(0,$e._)`${Tr.default.vErrors}.length`)}s(h,"addErrorsFrom");function d(y){var $;if(!o.opts.unevaluated)return;let g=($=r==null?void 0:r.validate)===null||$===void 0?void 0:$.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=Ci.mergeEvaluated.props(i,g.props,o.props));else{let b=i.var("props",(0,$e._)`${y}.evaluated.props`);o.props=Ci.mergeEvaluated.props(i,b,o.props,$e.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=Ci.mergeEvaluated.items(i,g.items,o.items));else{let b=i.var("items",(0,$e._)`${y}.evaluated.items`);o.items=Ci.mergeEvaluated.items(i,b,o.items,$e.Name)}}s(d,"addEvaluatedFrom")}s(ki,"callRef");Wt.callRef=ki;Wt.default=Iv});var Dl=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var qv=Tn(),Nv=["$schema","id","$defs",{keyword:"$comment"},"definitions",qv.default];fa.default=Nv});var Fl=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var la=Ar(),Cv=w(),vt=Cv.operators,pa={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:vt.LTE,fail:vt.GT},{okStr:"<",ok:vt.LT,fail:vt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:vt.GTE,fail:vt.LT},{okStr:">",ok:vt.GT,fail:vt.LTE}]}},kv={message:s(e=>la.str`must be ${da(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>la._`{comparison: ${da(e).okStr}, limit: ${e.schemaCode}}`,"params")},Mv={keyword:Object.keys(pa),type:"number",schemaType:"number",$data:!0,error:kv,code(e){let{data:t,schemaCode:r}=e;e.fail$data(la._`${t} ${da(e).fail} ${r} || isNaN(${t})`)}};function da(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[pa[r].exclusive]?1:0;return pa[r].ops[n]}s(da,"kwdOp");ma.default=Mv});var Ll=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var Vl={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Dv={keyword:Object.keys(Vl),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Vl[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ha.default=Dv});var ga=m(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var Rn=w(),Fv={message:s(({schemaCode:e})=>(0,Rn.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Rn._)`{multipleOf: ${e}}`,"params")},Vv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Fv,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Rn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Rn._)`${a} !== parseInt(${a})`;e.fail$data((0,Rn._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};ya.default=Vv});var zl=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});function Bl(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(Bl,"ucs2length");$a.default=Bl;Bl.code='require("ajv/dist/runtime/ucs2length").default'});var va=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Yt=w(),Lv=R(),Bv=zl(),zv={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Yt.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Yt._)`{limit: ${e}}`,"params")},Uv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zv,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Yt.operators.GT:Yt.operators.LT,a=i.opts.unicode===!1?(0,Yt._)`${r}.length`:(0,Yt._)`${(0,Lv.useFunc)(e.gen,Bv.default)}(${r})`;e.fail$data((0,Yt._)`${a} ${o} ${n}`)}};ba.default=Uv});var Pa=m(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Zv=xe(),Mi=w(),Hv={message:s(({schemaCode:e})=>(0,Mi.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Mi._)`{pattern: ${e}}`,"params")},Gv={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Hv,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,Mi._)`(new RegExp(${i}, ${a}))`:(0,Zv.usePattern)(e,n);e.fail$data((0,Mi._)`!${c}.test(${t})`)}};Sa.default=Gv});var Oa=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var In=w(),Kv={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,In.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,In._)`{limit: ${e}}`,"params")},Wv={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Kv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?In.operators.GT:In.operators.LT;e.fail$data((0,In._)`Object.keys(${r}).length ${i} ${n}`)}};_a.default=Wv});var wa=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var qn=xe(),Nn=w(),Yv=R(),Jv={message:s(({params:{missingProperty:e}})=>(0,Nn.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Nn._)`{missingProperty: ${e}}`,"params")},Xv={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Jv,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?f():l(),c.strictRequired){let d=e.parentSchema.properties,{definedProperties:y}=e.it;for(let $ of r)if((d==null?void 0:d[$])===void 0&&!y.has($)){let g=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${$}" is not defined at "${g}" (strictRequired)`;(0,Yv.checkStrictMode)(a,b,a.opts.strictRequired)}}function f(){if(u||o)e.block$data(Nn.nil,p);else for(let d of r)(0,qn.checkReportMissingProp)(e,d)}s(f,"allErrorsMode");function l(){let d=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>h(d,y)),e.ok(y)}else t.if((0,qn.checkMissingProp)(e,r,d)),(0,qn.reportMissingProp)(e,d),t.else()}s(l,"exitOnErrorMode");function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,qn.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function h(d,y){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(y,(0,qn.propertyInData)(t,i,d,c.ownProperties)),t.if((0,Nn.not)(y),()=>{e.error(),t.break()})},Nn.nil)}s(h,"loopUntilMissing")}};xa.default=Xv});var ja=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Cn=w(),Qv={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Cn.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Cn._)`{limit: ${e}}`,"params")},eS={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Qv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Cn.operators.GT:Cn.operators.LT;e.fail$data((0,Cn._)`${r}.length ${i} ${n}`)}};Ea.default=eS});var Di=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ul=Vs();Ul.code='require("ajv/dist/runtime/equal").default';Aa.default=Ul});var Ia=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Ta=bn(),re=w(),tS=R(),rS=Di(),nS={message:s(({params:{i:e,j:t}})=>(0,re.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,re._)`{i: ${e}, j: ${t}}`,"params")},iS={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nS,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),f=o.items?(0,Ta.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,re._)`${a} === false`),e.ok(u);function l(){let y=t.let("i",(0,re._)`${r}.length`),$=t.let("j");e.setParams({i:y,j:$}),t.assign(u,!0),t.if((0,re._)`${y} > 1`,()=>(p()?h:d)(y,$))}s(l,"validateUniqueItems");function p(){return f.length>0&&!f.some(y=>y==="object"||y==="array")}s(p,"canOptimize");function h(y,$){let g=t.name("item"),b=(0,Ta.checkDataTypes)(f,g,c.opts.strictNumbers,Ta.DataType.Wrong),v=t.const("indices",(0,re._)`{}`);t.for((0,re._)`;${y}--;`,()=>{t.let(g,(0,re._)`${r}[${y}]`),t.if(b,(0,re._)`continue`),f.length>1&&t.if((0,re._)`typeof ${g} == "string"`,(0,re._)`${g} += "_"`),t.if((0,re._)`typeof ${v}[${g}] == "number"`,()=>{t.assign($,(0,re._)`${v}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,re._)`${v}[${g}] = ${y}`)})}s(h,"loopN");function d(y,$){let g=(0,tS.useFunc)(t,rS.default),b=t.name("outer");t.label(b).for((0,re._)`;${y}--;`,()=>t.for((0,re._)`${$} = ${y}; ${$}--;`,()=>t.if((0,re._)`${g}(${r}[${y}], ${r}[${$}])`,()=>{e.error(),t.assign(u,!1).break(b)})))}s(d,"loopN2")}};Ra.default=iS});var Ca=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var qa=w(),oS=R(),sS=Di(),aS={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,qa._)`{allowedValue: ${e}}`,"params")},cS={keyword:"const",$data:!0,error:aS,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,qa._)`!${(0,oS.useFunc)(t,sS.default)}(${r}, ${i})`):e.fail((0,qa._)`${o} !== ${r}`)}};Na.default=cS});var Ma=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var kn=w(),uS=R(),fS=Di(),lS={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,kn._)`{allowedValues: ${e}}`,"params")},pS={keyword:"enum",schemaType:"array",$data:!0,error:lS,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,f=s(()=>u??(u=(0,uS.useFunc)(t,fS.default)),"getEql"),l;if(c||n)l=t.let("valid"),e.block$data(l,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);l=(0,kn.or)(...i.map((y,$)=>h(d,$)))}e.pass(l);function p(){t.assign(l,!1),t.forOf("v",o,d=>t.if((0,kn._)`${f()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}s(p,"loopEnum");function h(d,y){let $=i[y];return typeof $=="object"&&$!==null?(0,kn._)`${f()}(${r}, ${d}[${y}])`:(0,kn._)`${r} === ${$}`}s(h,"equalCode")}};ka.default=pS});var Zl=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var dS=Fl(),mS=Ll(),hS=ga(),yS=va(),gS=Pa(),$S=Oa(),bS=wa(),vS=ja(),SS=Ia(),PS=Ca(),_S=Ma(),OS=[dS.default,mS.default,hS.default,yS.default,gS.default,$S.default,bS.default,vS.default,SS.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},PS.default,_S.default];Da.default=OS});var Va=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.validateAdditionalItems=void 0;var Jt=w(),Fa=R(),xS={message:s(({params:{len:e}})=>(0,Jt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Jt._)`{limit: ${e}}`,"params")},wS={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xS,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Fa.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Hl(e,n)}};function Hl(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,Jt._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Jt._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Fa.alwaysValidSchema)(a,n)){let f=r.var("valid",(0,Jt._)`${c} <= ${t.length}`);r.if((0,Jt.not)(f),()=>u(f)),e.ok(f)}function u(f){r.forRange("i",t.length,c,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:Fa.Type.Num},f),a.allErrors||r.if((0,Jt.not)(f),()=>r.break())})}s(u,"validateItems")}s(Hl,"validateAdditionalItems");Mn.validateAdditionalItems=Hl;Mn.default=wS});var La=m(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateTuple=void 0;var Gl=w(),Fi=R(),ES=xe(),jS={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Kl(e,"additionalItems",t);r.items=!0,!(0,Fi.alwaysValidSchema)(r,t)&&e.ok((0,ES.validateArray)(e))}};function Kl(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;l(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Fi.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),f=n.const("len",(0,Gl._)`${o}.length`);r.forEach((p,h)=>{(0,Fi.alwaysValidSchema)(c,p)||(n.if((0,Gl._)`${f} > ${h}`,()=>e.subschema({keyword:a,schemaProp:h,dataProp:h},u)),e.ok(u))});function l(p){let{opts:h,errSchemaPath:d}=c,y=r.length,$=y===p.minItems&&(y===p.maxItems||p[t]===!1);if(h.strictTuples&&!$){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Fi.checkStrictMode)(c,g,h.strictTuples)}}s(l,"checkStrictTuple")}s(Kl,"validateTuple");Dn.validateTuple=Kl;Dn.default=jS});var Wl=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var AS=La(),TS={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,AS.validateTuple)(e,"items"),"code")};Ba.default=TS});var Jl=m(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var Yl=w(),RS=R(),IS=xe(),qS=Va(),NS={message:s(({params:{len:e}})=>(0,Yl.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Yl._)`{limit: ${e}}`,"params")},CS={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:NS,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,RS.alwaysValidSchema)(n,t)&&(i?(0,qS.validateAdditionalItems)(e,i):e.ok((0,IS.validateArray)(e)))}};za.default=CS});var Xl=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Ee=w(),Vi=R(),kS={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Ee.str)`must contain at least ${e} valid item(s)`:(0,Ee.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Ee._)`{minContains: ${e}}`:(0,Ee._)`{minContains: ${e}, maxContains: ${t}}`,"params")},MS={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kS,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:f}=n;o.opts.next?(a=u===void 0?1:u,c=f):a=1;let l=t.const("len",(0,Ee._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Vi.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Vi.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vi.alwaysValidSchema)(o,r)){let $=(0,Ee._)`${l} >= ${a}`;c!==void 0&&($=(0,Ee._)`${$} && ${l} <= ${c}`),e.pass($);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?d(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Ee._)`${i}.length > 0`,h)):(t.let(p,!1),h()),e.result(p,()=>e.reset());function h(){let $=t.name("_valid"),g=t.let("count",0);d($,()=>t.if($,()=>y(g)))}s(h,"validateItemsWithCount");function d($,g){t.forRange("i",0,l,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Vi.Type.Num,compositeRule:!0},$),g()})}s(d,"validateItems");function y($){t.code((0,Ee._)`${$}++`),c===void 0?t.if((0,Ee._)`${$} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ee._)`${$} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ee._)`${$} >= ${a}`,()=>t.assign(p,!0)))}s(y,"checkLimits")}};Ua.default=MS});var Li=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.validateSchemaDeps=We.validatePropertyDeps=We.error=void 0;var Za=w(),DS=R(),Fn=xe();We.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Za.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Za._)`{property: ${e},
3
+ `+n:r||n}o(ed,"joinStacks");pt.joinStacks=ed;function m2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return ed({stack:n},r)},"get"),enumerable:!1,configurable:!0}):g2(t,e)}o(m2,"lazyJoinStacks");pt.lazyJoinStacks=m2;function td(e){if(e){let t=e.split(f2),r;for(let n=0;n<t.length;n++){let i=t[n];if(p2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
+ `)}return e}o(td,"popStack");function g2(e,t){Object.defineProperty(e,"stack",{get:o(()=>td(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(g2,"lazyPopStack")});var od=m(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.extendError=void 0;var nd=qa(),xo=rd(),id=Eo(),y2=["name","message","stack"];function v2(e,t,r){let n=e;return _2(n,t),t&&typeof t=="object"&&b2(n,t),n.toJSON=id.toJSON,nd.addInspectMethod&&nd.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(v2,"extendError");wo.extendError=v2;function _2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");xo.isLazyStack(r)?xo.lazyJoinStacks(r,e,t):xo.isWritableStack(r)&&(e.stack=xo.joinStacks(e,t))}o(_2,"extendStack");function b2(e,t){let r=id.getDeepKeys(t,y2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(b2,"mergeErrors")});var sd=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.normalizeArgs=tn.normalizeOptions=void 0;var S2=qa();function P2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?S2.format:typeof e.format=="function"?e.format:!1}}o(P2,"normalizeOptions");tn.normalizeOptions=P2;function $2(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($2,"normalizeArgs");tn.normalizeArgs=$2});var Ma=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.Ono=void 0;var Ao=od(),ad=sd(),O2=Eo(),E2=ja;Io.Ono=E2;function ja(e,t){t=ad.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=ad.normalizeArgs(n,t),u=new e(a);return Ao.extendError(u,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(ja,"Ono");ja.toJSON=o(function(t){return O2.toJSON.call(t)},"toJSON");ja.extend=o(function(t,r,n){return n||r instanceof Error?Ao.extendError(t,r,n):r?Ao.extendError(t,void 0,r):Ao.extendError(t)},"extend")});var ud=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ono=void 0;var vr=Ma(),x2=dt;ko.ono=x2;dt.error=new vr.Ono(Error);dt.eval=new vr.Ono(EvalError);dt.range=new vr.Ono(RangeError);dt.reference=new vr.Ono(ReferenceError);dt.syntax=new vr.Ono(SyntaxError);dt.type=new vr.Ono(TypeError);dt.uri=new vr.Ono(URIError);var w2=dt;function dt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(w2))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 dt.error.apply(void 0,e)}o(dt,"ono")});var ld=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var vq=require("util")});var Qe=m((Ye,rn)=>{"use strict";var A2=Ye&&Ye.__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]}),I2=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&A2(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ono=void 0;var fd=ud();Object.defineProperty(Ye,"ono",{enumerable:!0,get:o(function(){return fd.ono},"get")});var k2=Ma();Object.defineProperty(Ye,"Ono",{enumerable:!0,get:o(function(){return k2.Ono},"get")});I2(ld(),Ye);Ye.default=fd.ono;typeof rn=="object"&&typeof rn.exports=="object"&&(rn.exports=Object.assign(rn.exports.default,rn.exports))});var ci=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Fa=class Fa{};o(Fa,"_CodeOrName");var ai=Fa;q._CodeOrName=ai;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Va=class Va extends ai{constructor(t){if(super(),!q.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Va,"Name");var _r=Va;q.Name=_r;var Ba=class Ba extends ai{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 _r&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Ba,"_Code");var Le=Ba;q._Code=Le;q.nil=new Le("");function pd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)La(r,t[n]),r.push(e[++n]);return new Le(r)}o(pd,"_");q._=pd;var Da=new Le("+");function dd(e,...t){let r=[ui(e[0])],n=0;for(;n<t.length;)r.push(Da),La(r,t[n]),r.push(Da,ui(e[++n]));return R2(r),new Le(r)}o(dd,"str");q.str=dd;function La(e,t){t instanceof Le?e.push(...t._items):t instanceof _r?e.push(t):e.push(N2(t))}o(La,"addCodeArg");q.addCodeArg=La;function R2(e){let t=1;for(;t<e.length-1;){if(e[t]===Da){let r=T2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(R2,"optimize");function T2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof _r||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 _r))return`"${e}${t.slice(1)}`}o(T2,"mergeExprItems");function C2(e,t){return t.emptyStr()?e:e.emptyStr()?t:dd`${e}${t}`}o(C2,"strConcat");q.strConcat=C2;function N2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ui(Array.isArray(e)?e.join(","):e)}o(N2,"interpolate");function q2(e){return new Le(ui(e))}o(q2,"stringify");q.stringify=q2;function ui(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ui,"safeStringify");q.safeStringify=ui;function j2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Le(`.${e}`):pd`[${e}]`}o(j2,"getProperty");q.getProperty=j2;function M2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Le(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(M2,"getEsmExportName");q.getEsmExportName=M2;function D2(e){return new Le(e.toString())}o(D2,"regexpCode");q.regexpCode=D2});var Wa=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ci(),za=class za extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(za,"ValueError");var Ha=za,Ro;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ro||(we.UsedValueState=Ro={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ga=class Ga{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xe.Name?t:this.name(t)}name(t){return new xe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Ga,"Scope");var To=Ga;we.Scope=To;var Za=class Za extends xe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xe._)`.${new xe.Name(r)}[${n}]`}};o(Za,"ValueScopeName");var Co=Za;we.ValueScopeName=Co;var L2=(0,xe._)`\n`,Ka=class Ka extends To{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?L2:xe.nil}}get(){return this._scope}name(t){return new Co(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,u=this._values[s];if(u){let p=u.get(a);if(p)return p}else u=this._values[s]=new Map;u.set(a,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[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,xe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=xe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,Ro.Started);let p=r(l);if(p){let f=this.opts.es5?we.varKinds.var:we.varKinds.const;s=(0,xe._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,xe._)`${s}${p}${this.opts._n}`;else throw new Ha(l);c.set(l,Ro.Completed)})}return s}};o(Ka,"ValueScope");var Ua=Ka;we.ValueScope=Ua});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ci(),Je=Wa(),Ht=ci();Object.defineProperty(k,"_",{enumerable:!0,get:o(function(){return Ht._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:o(function(){return Ht.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:o(function(){return Ht.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:o(function(){return Ht.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:o(function(){return Ht.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:o(function(){return Ht.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:o(function(){return Ht.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:o(function(){return Ht.Name},"get")});var Mo=Wa();Object.defineProperty(k,"Scope",{enumerable:!0,get:o(function(){return Mo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:o(function(){return Mo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:o(function(){return Mo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:o(function(){return Mo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var uu=class uu{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(uu,"Node");var Rt=uu,cu=class cu extends Rt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Je.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=sn(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};o(cu,"Def");var Ya=cu,lu=class lu extends Rt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=sn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return jo(t,this.rhs)}};o(lu,"Assign");var No=lu,fu=class fu extends No{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(fu,"AssignOp");var Qa=fu,pu=class pu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(pu,"Label");var Ja=pu,du=class du extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(du,"Break");var Xa=du,hu=class hu extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(hu,"Throw");var eu=hu,mu=class mu extends Rt{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=sn(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};o(mu,"AnyCode");var tu=mu,gu=class gu extends Rt{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)||(F2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Pr(t,r.names),{})}};o(gu,"ParentNode");var li=gu,yu=class yu extends li{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(yu,"BlockNode");var Tt=yu,vu=class vu extends li{};o(vu,"Root");var ru=vu,_u=class _u extends Tt{};o(_u,"Else");var on=_u;on.kind="else";var nn=class nn extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new on(n):n}if(r)return t===!1?r instanceof nn?r:r.nodes:this.nodes.length?this:new nn(hd(t),r instanceof nn?[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=sn(this.condition,t,r),this}get names(){let t=super.names;return jo(t,this.condition),this.else&&Pr(t,this.else.names),t}};o(nn,"If");var br=nn;br.kind="if";var bu=class bu extends Tt{};o(bu,"For");var Sr=bu;Sr.kind="for";var Su=class Su extends Sr{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=sn(this.iteration,t,r),this}get names(){return Pr(super.names,this.iteration.names)}};o(Su,"ForLoop");var nu=Su,Pu=class Pu extends Sr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Je.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=jo(super.names,this.from);return jo(t,this.to)}};o(Pu,"ForRange");var iu=Pu,$u=class $u extends Sr{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=sn(this.iterable,t,r),this}get names(){return Pr(super.names,this.iterable.names)}};o($u,"ForIter");var qo=$u,Ou=class Ou extends Tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Ou,"Func");var fi=Ou;fi.kind="func";var Eu=class Eu extends li{render(t){return"return "+super.render(t)}};o(Eu,"Return");var pi=Eu;pi.kind="return";var xu=class xu extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Pr(t,this.catch.names),this.finally&&Pr(t,this.finally.names),t}};o(xu,"Try");var ou=xu,wu=class wu extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(wu,"Catch");var di=wu;di.kind="catch";var Au=class Au extends Tt{render(t){return"finally"+super.render(t)}};o(Au,"Finally");var hi=Au;hi.kind="finally";var Iu=class Iu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new Je.Scope({parent:t}),this._nodes=[new ru]}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 Ya(t,s,n)),s}const(t,r,n){return this._def(Je.varKinds.const,t,r,n)}let(t,r,n){return this._def(Je.varKinds.let,t,r,n)}var(t,r,n){return this._def(Je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new No(t,r,n))}add(t,r){return this._leafNode(new Qa(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new tu(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new br(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 br(t))}else(){return this._elseNode(new on)}endIf(){return this._endBlockNode(br,on)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new nu(t),r)}forRange(t,r,n,i,s=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(t);return this._for(new iu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Je.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(s,(0,C._)`${a}[${u}]`),n(s)})}return this._for(new qo("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new qo("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Sr)}label(t){return this._leafNode(new Ja(t))}break(t){return this._leafNode(new Xa(t))}return(t){let r=new pi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(pi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ou;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new di(s),r(s)}return n&&(this._currNode=i.finally=new hi,this.code(n)),this._endBlockNode(di,hi)}throw(t){return this._leafNode(new eu(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new fi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(fi)}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 br))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(Iu,"CodeGen");var su=Iu;k.CodeGen=su;function Pr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Pr,"addNames");function jo(e,t){return t instanceof C._CodeOrName?Pr(e,t.names):e}o(jo,"addExprNames");function sn(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((s,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._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 C._Code&&s._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(sn,"optimizeExpr");function F2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(F2,"subtractNames");function hd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${au(e)}`}o(hd,"not");k.not=hd;var V2=md(k.operators.AND);function B2(...e){return e.reduce(V2)}o(B2,"and");k.and=B2;var H2=md(k.operators.OR);function U2(...e){return e.reduce(H2)}o(U2,"or");k.or=U2;function md(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${au(t)} ${e} ${au(r)}`}o(md,"mappend");function au(e){return e instanceof C.Name?e:(0,C._)`(${e})`}o(au,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),z2=ci();function G2(e){let t={};for(let r of e)t[r]=!0;return t}o(G2,"toHash");R.toHash=G2;function Z2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(vd(e,t),!_d(t,e.self.RULES.all))}o(Z2,"alwaysValidSchema");R.alwaysValidSchema=Z2;function vd(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]||Pd(e,`unknown keyword: "${s}"`)}o(vd,"checkUnknownRules");R.checkUnknownRules=vd;function _d(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(_d,"schemaHasRules");R.schemaHasRules=_d;function K2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(K2,"schemaHasRulesButRef");R.schemaHasRulesButRef=K2;function W2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}o(W2,"schemaRefOrVal");R.schemaRefOrVal=W2;function Y2(e){return bd(decodeURIComponent(e))}o(Y2,"unescapeFragment");R.unescapeFragment=Y2;function Q2(e){return encodeURIComponent(Ru(e))}o(Q2,"escapeFragment");R.escapeFragment=Q2;function Ru(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ru,"escapeJsonPointer");R.escapeJsonPointer=Ru;function bd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(bd,"unescapeJsonPointer");R.unescapeJsonPointer=bd;function J2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(J2,"eachItem");R.eachItem=J2;function gd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,u)=>{let c=a===void 0?s:a instanceof F.Name?(s instanceof F.Name?e(i,s,a):t(i,s,a),a):s instanceof F.Name?(t(i,a,s),s):r(s,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}o(gd,"makeMergeEvaluated");R.mergeEvaluated={props:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Tu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Sd}),items:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${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 Sd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Tu(e,r,t),r}o(Sd,"evaluatedPropsToName");R.evaluatedPropsToName=Sd;function Tu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}o(Tu,"setEvaluated");R.setEvaluated=Tu;var yd={};function X2(e,t){return e.scopeValue("func",{ref:t,code:yd[t.code]||(yd[t.code]=new z2._Code(t.code))})}o(X2,"useFunc");R.useFunc=X2;var ku;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ku||(R.Type=ku={}));function e1(e,t,r){if(e instanceof F.Name){let n=t===ku.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+Ru(e)}o(e1,"getErrorPath");R.getErrorPath=e1;function Pd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(Pd,"checkStrictMode");R.checkStrictMode=Pd});var Fe=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var fe=A(),t1={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};Cu.default=t1});var mi=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;var N=A(),Do=T(),_e=Fe();pe.keywordError={message:o(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};pe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function r1(e,t=pe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:u}=i,c=Ed(e,t,r);n??(a||u)?$d(s,c):Od(i,(0,N._)`[${c}]`)}o(r1,"reportError");pe.reportError=r1;function n1(e,t=pe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,u=Ed(e,t,r);$d(i,u),s||a||Od(n,_e.default.vErrors)}o(n1,"reportExtraError");pe.reportExtraError=n1;function i1(e,t){e.assign(_e.default.errors,t),e.if((0,N._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}o(i1,"resetErrorsCount");pe.resetErrorsCount=i1;function o1({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,_e.default.errors,u=>{e.const(a,(0,N._)`${_e.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(_e.default.instancePath,s.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}o(o1,"extendErrors");pe.extendErrors=o1;function $d(e,t){let r=e.const("err",t);e.if((0,N._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${_e.default.vErrors}.push(${r})`),e.code((0,N._)`${_e.default.errors}++`)}o($d,"addError");function Od(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}o(Od,"returnErrors");var $r={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function Ed(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:s1(e,t,r)}o(Ed,"errorObjectCode");function s1(e,t,r={}){let{gen:n,it:i}=e,s=[a1(i,r),u1(e,r)];return c1(e,t,s),n.object(...s)}o(s1,"errorObject");function a1({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Do.getErrorPath)(t,Do.Type.Str)}`:e;return[_e.default.instancePath,(0,N.strConcat)(_e.default.instancePath,r)]}o(a1,"errorInstancePath");function u1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Do.getErrorPath)(r,Do.Type.Str)}`),[$r.schemaPath,i]}o(u1,"errorSchemaPath");function c1(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([$r.keyword,i],[$r.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([$r.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([$r.schema,a],[$r.parentSchema,(0,N._)`${p}${f}`],[_e.default.data,s]),l&&n.push([$r.propertyName,l])}o(c1,"extraErrorProps")});var wd=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;var l1=mi(),f1=A(),p1=Fe(),d1={message:"boolean schema is false"};function h1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?xd(e,!1):typeof r=="object"&&r.$async===!0?t.return(p1.default.data):(t.assign((0,f1._)`${n}.errors`,null),t.return(!0))}o(h1,"topBoolOrEmptySchema");an.topBoolOrEmptySchema=h1;function m1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),xd(e)):r.var(t,!0)}o(m1,"boolOrEmptySchema");an.boolOrEmptySchema=m1;function xd(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,l1.reportError)(i,d1,void 0,t)}o(xd,"falseSchemaError")});var Nu=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRules=un.isJSONType=void 0;var g1=["string","number","integer","boolean","null","object","array"],y1=new Set(g1);function v1(e){return typeof e=="string"&&y1.has(e)}o(v1,"isJSONType");un.isJSONType=v1;function _1(){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(_1,"getRules");un.getRules=_1});var qu=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function b1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Ad(e,n)}o(b1,"schemaHasRulesForType");Ut.schemaHasRulesForType=b1;function Ad(e,t){return t.rules.some(r=>Id(e,r))}o(Ad,"shouldUseGroup");Ut.shouldUseGroup=Ad;function Id(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(Id,"shouldUseRule");Ut.shouldUseRule=Id});var gi=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var S1=Nu(),P1=qu(),$1=mi(),I=A(),kd=T(),cn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(cn||(de.DataType=cn={}));function O1(e){let t=Rd(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(O1,"getSchemaTypes");de.getSchemaTypes=O1;function Rd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(S1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Rd,"getJSONTypes");de.getJSONTypes=Rd;function E1(e,t){let{gen:r,data:n,opts:i}=e,s=x1(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,P1.schemaHasRulesForType)(e,t[0]));if(a){let u=Mu(t,n,i.strictNumbers,cn.Wrong);r.if(u,()=>{s.length?w1(e,t,s):Du(e)})}return a}o(E1,"coerceAndCheckDataType");de.coerceAndCheckDataType=E1;var Td=new Set(["string","number","integer","boolean","null"]);function x1(e,t){return t?e.filter(r=>Td.has(r)||t==="array"&&r==="array"):[]}o(x1,"coerceToTypes");function w1(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);s.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Mu(t,i,s.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(Td.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Du(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),A1(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
7
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
8
+ || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
9
+ || ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}o(c,"coerceSpecificType")}o(w1,"coerceData");function A1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(A1,"assignParentData");function ju(e,t,r,n=cn.Correct){let i=n===cn.Correct?I.operators.EQ:I.operators.NEQ,s;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":s=(0,I._)`Array.isArray(${t})`;break;case"object":s=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===cn.Correct?s:(0,I.not)(s);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}o(ju,"checkDataType");de.checkDataType=ju;function Mu(e,t,r,n){if(e.length===1)return ju(e[0],t,r,n);let i,s=(0,kd.toHash)(e);if(s.array&&s.object){let a=(0,I._)`typeof ${t} != "object"`;i=s.null?a:(0,I._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=I.nil;s.number&&delete s.integer;for(let a in s)i=(0,I.and)(i,ju(a,t,r,n));return i}o(Mu,"checkDataTypes");de.checkDataTypes=Mu;var I1={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Du(e){let t=k1(e);(0,$1.reportError)(t,I1)}o(Du,"reportTypeError");de.reportTypeError=Du;function k1(e){let{gen:t,data:r,schema:n}=e,i=(0,kd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(k1,"getTypeErrorContext")});var Nd=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.assignDefaults=void 0;var ln=A(),R1=T();function T1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Cd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Cd(e,s,i.default))}o(T1,"assignDefaults");Lo.assignDefaults=T1;function Cd(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let u=(0,ln._)`${s}${(0,ln.getProperty)(t)}`;if(i){(0,R1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,ln._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,ln._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,ln._)`${u} = ${(0,ln.stringify)(r)}`)}o(Cd,"assignDefault")});var Ve=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Lu=T(),zt=Fe(),C1=T();function N1(e,t){let{gen:r,data:n,it:i}=e;r.if(Vu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}o(N1,"checkReportMissingProp");L.checkReportMissingProp=N1;function q1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(s=>(0,V.and)(Vu(e,t,s,r.ownProperties),(0,V._)`${i} = ${s}`)))}o(q1,"checkMissingProp");L.checkMissingProp=q1;function j1(e,t){e.setParams({missingProperty:t},!0),e.error()}o(j1,"reportMissingProp");L.reportMissingProp=j1;function qd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}o(qd,"hasPropFunc");L.hasPropFunc=qd;function Fu(e,t,r){return(0,V._)`${qd(e)}.call(${t}, ${r})`}o(Fu,"isOwnProperty");L.isOwnProperty=Fu;function M1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${Fu(e,t,r)}`:i}o(M1,"propertyInData");L.propertyInData=M1;function Vu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(Fu(e,t,r))):i}o(Vu,"noPropertyInData");L.noPropertyInData=Vu;function jd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(jd,"allSchemaProperties");L.allSchemaProperties=jd;function D1(e,t){return jd(t).filter(r=>!(0,Lu.alwaysValidSchema)(e,t[r]))}o(D1,"schemaProperties");L.schemaProperties=D1;function L1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[zt.default.instancePath,(0,V.strConcat)(zt.default.instancePath,s)],[zt.default.parentData,a.parentData],[zt.default.parentDataProperty,a.parentDataProperty],[zt.default.rootData,zt.default.rootData]];a.opts.dynamicRef&&f.push([zt.default.dynamicAnchors,zt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}o(L1,"callValidateCode");L.callValidateCode=L1;var F1=(0,V._)`new RegExp`;function V1({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,V._)`${i.code==="new RegExp"?F1:(0,C1.useFunc)(e,i)}(${r}, ${n})`})}o(V1,"usePattern");L.usePattern=V1;function B1(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(s,!0),a(()=>t.break()),s;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lu.Type.Num},s),t.if((0,V.not)(s),u)})}o(a,"validateItems")}o(B1,"validateArray");L.validateArray=B1;function H1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Lu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(H1,"validateUnion");L.validateUnion=H1});var Ld=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var be=A(),Or=Fe(),U1=Ve(),z1=mi();function G1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,u=t.macro.call(a.self,i,s,a),c=Dd(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(G1,"macroKeywordCode");ht.macroKeywordCode=G1;function Z1(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:u,it:c}=e;W1(c,t);let l=!u&&t.compile?t.compile.call(c.self,s,a,c):t.validate,p=Dd(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&Md(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&Md(e),v(()=>K1(e,_))}}o(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),b=>n.assign(f,!1).if((0,be._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,be._)`${b}.errors`),()=>n.throw(b))),_}o(h,"validateAsync");function g(){let _=(0,be._)`${p}.errors`;return n.assign(_,null),y(be.nil),_}o(g,"validateSync");function y(_=t.async?(0,be._)`await `:be.nil){let b=c.opts.passContext?Or.default.this:Or.default.self,S=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,be._)`${_}${(0,U1.callValidateCode)(e,p,b,S)}`,t.modifying)}o(y,"assignValid");function v(_){var b;n.if((0,be.not)((b=t.valid)!==null&&b!==void 0?b:f),_)}o(v,"reportErrs")}o(Z1,"funcKeywordCode");ht.funcKeywordCode=Z1;function Md(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}o(Md,"modifyData");function K1(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Or.default.vErrors,(0,be._)`${Or.default.vErrors} === null ? ${t} : ${Or.default.vErrors}.concat(${t})`).assign(Or.default.errors,(0,be._)`${Or.default.vErrors}.length`),(0,z1.extendErrors)(e)},()=>e.error())}o(K1,"addErrs");function W1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(W1,"checkAsyncKeyword");function Dd(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,be.stringify)(r)})}o(Dd,"useKeyword");function Y1(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(Y1,"validSchemaType");ht.validSchemaType=Y1;function Q1({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(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}o(Q1,"validateKeywordUsage");ht.validateKeywordUsage=Q1});var Vd=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.extendSubschemaMode=Gt.extendSubschemaData=Gt.getSubschema=void 0;var mt=A(),Fd=T();function J1(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 u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Fd.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(J1,"getSubschema");Gt.getSubschema=J1;function X1(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:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);c(d),e.errorPath=(0,mt.str)`${l}${(0,Fd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(c,"dataContextProps")}o(X1,"extendSubschemaData");Gt.extendSubschemaData=X1;function eP(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(eP,"extendSubschemaMode");Gt.extendSubschemaMode=eP});var Bu=m((Kq,Bd)=>{"use strict";Bd.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 Ud=m((Yq,Hd)=>{"use strict";var Zt=Hd.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(){};Fo(t,n,i,e,"",e)};Zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Zt.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 Fo(e,t,r,n,i,s,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Zt.arrayKeywords)for(var d=0;d<f.length;d++)Fo(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Zt.propsKeywords){if(f&&typeof f=="object")for(var h in f)Fo(e,t,r,f[h],i+"/"+p+"/"+tP(h),s,i,p,n,h)}else(p in Zt.keywords||e.allKeys&&!(p in Zt.skipKeywords))&&Fo(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,u,c,l)}}o(Fo,"_traverse");function tP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(tP,"escapeJsonPtr")});var yi=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var rP=T(),nP=Bu(),iP=Ud(),oP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function sP(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Hu(e):t?zd(e)<=t:!1}o(sP,"inlineRef");Ae.inlineRef=sP;var aP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hu(e){for(let t in e){if(aP.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Hu)||typeof r=="object"&&Hu(r))return!0}return!1}o(Hu,"hasRef");function zd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!oP.has(r)&&(typeof e[r]=="object"&&(0,rP.eachItem)(e[r],n=>t+=zd(n)),t===1/0))return 1/0}return t}o(zd,"countKeys");function Gd(e,t="",r){r!==!1&&(t=fn(t));let n=e.parse(t);return Zd(e,n)}o(Gd,"getFullPath");Ae.getFullPath=Gd;function Zd(e,t){return e.serialize(t).split("#")[0]+"#"}o(Zd,"_getFullPath");Ae._getFullPath=Zd;var uP=/#\/?$/;function fn(e){return e?e.replace(uP,""):""}o(fn,"normalizeId");Ae.normalizeId=fn;function cP(e,t,r){return r=fn(r),e.resolve(t,r)}o(cP,"resolveUrl");Ae.resolveUrl=cP;var lP=/^[a-z_][-a-z0-9._]*$/i;function fP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=fn(e[r]||t),s={"":i},a=Gd(n,i,!1),u={},c=new Set;return iP(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=v;function _(S){let E=this.opts.uriResolver.resolve;if(S=fn(v?E(v,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,S):S!==fn(y)&&(S[0]==="#"?(l(f,u[S],S),u[S]=f):this.refs[S]=y),S}o(_,"addRef");function b(S){if(typeof S=="string"){if(!lP.test(S))throw new Error(`invalid anchor "${S}"`);_.call(this,`#${S}`)}}o(b,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!nP(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(fP,"getSchemaRefs");Ae.getSchemaRefs=fP});var bi=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var Jd=wd(),Kd=gi(),zu=qu(),Vo=gi(),pP=Nd(),_i=Ld(),Uu=Vd(),O=A(),w=Fe(),dP=yi(),Ct=T(),vi=mi();function hP(e){if(th(e)&&(rh(e),eh(e))){yP(e);return}Xd(e,()=>(0,Jd.topBoolOrEmptySchema)(e))}o(hP,"validateFunctionCode");Kt.validateFunctionCode=hP;function Xd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Wd(r,i)}`),gP(e,i),e.code(s)}):e.func(t,(0,O._)`${w.default.data}, ${mP(i)}`,n.$async,()=>e.code(Wd(r,i)).code(s))}o(Xd,"validateFunction");function mP(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}o(mP,"destructureValCxt");function gP(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}o(gP,"destructureValCxtES5");function yP(e){let{schema:t,opts:r,gen:n}=e;Xd(e,()=>{r.$comment&&t.$comment&&ih(e),PP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&vP(e),nh(e),EP(e)})}o(yP,"topSchemaObjCode");function vP(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}o(vP,"resetEvaluated");function Wd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}o(Wd,"funcSourceUrl");function _P(e,t){if(th(e)&&(rh(e),eh(e))){bP(e,t);return}(0,Jd.boolOrEmptySchema)(e,t)}o(_P,"subschemaCode");function eh({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(eh,"schemaCxtHasRules");function th(e){return typeof e.schema!="boolean"}o(th,"isSchemaObj");function bP(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ih(e),$P(e),OP(e);let s=n.const("_errs",w.default.errors);nh(e,s),n.var(t,(0,O._)`${s} === ${w.default.errors}`)}o(bP,"subSchemaObjCode");function rh(e){(0,Ct.checkUnknownRules)(e),SP(e)}o(rh,"checkKeywords");function nh(e,t){if(e.opts.jtd)return Yd(e,[],!1,t);let r=(0,Kd.getSchemaTypes)(e.schema),n=(0,Kd.coerceAndCheckDataType)(e,r);Yd(e,r,!n,t)}o(nh,"typeAndKeywords");function SP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(SP,"checkRefsAndKeywords");function PP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ct.checkStrictMode)(e,"default is ignored in the schema root")}o(PP,"checkNoDefault");function $P(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o($P,"updateContext");function OP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(OP,"checkAsyncSchema");function ih({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${s}, ${a}, ${u}.schema)`)}}o(ih,"commentKeyword");function EP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),s.unevaluated&&xP(e),t.return((0,O._)`${w.default.errors} === 0`))}o(EP,"returnResults");function xP({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}o(xP,"assignEvaluated");function Yd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Ct.schemaHasRulesButRef)(s,p))){i.block(()=>sh(e,"$ref",p.all.$ref.definition));return}c.jtd||wP(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,zu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Vo.checkDataType)(d.type,a,c.strictNumbers)),Qd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Vo.reportTypeError)(e)),i.endIf()):Qd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Yd,"schemaKeywords");function Qd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,pP.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,zu.shouldUseRule)(n,s)&&sh(e,s.keyword,s.definition,t.type)})}o(Qd,"iterateKeywords");function wP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(AP(e,t),e.opts.allowUnionTypes||IP(e,t),kP(e,e.dataTypes))}o(wP,"checkStrictTypes");function AP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{oh(e.dataTypes,r)||Gu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),TP(e,t)}}o(AP,"checkContextTypes");function IP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gu(e,"use allowUnionTypes to allow union type keyword")}o(IP,"checkMultipleTypes");function kP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>RP(t,a))&&Gu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(kP,"checkKeywordTypes");function RP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(RP,"hasApplicableType");function oh(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(oh,"includesType");function TP(e,t){let r=[];for(let n of e.dataTypes)oh(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(TP,"narrowSchemaTypes");function Gu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ct.checkStrictMode)(e,t,e.opts.strictTypes)}o(Gu,"strictTypesError");var Zu=class Zu{constructor(t,r,n){if((0,_i.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,Ct.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",ah(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,_i.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?vi.reportExtraError:vi.reportError)(this,this.def.error,r)}$dataError(){(0,vi.reportError)(this,this.def.$dataError||vi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,vi.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Vo.checkDataTypes)(c,r,s.opts.strictNumbers,Vo.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Uu.getSubschema)(this.it,t);(0,Uu.extendSubschemaData)(n,this.it,t),(0,Uu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return _P(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};o(Zu,"KeywordCxt");var Bo=Zu;Kt.KeywordCxt=Bo;function sh(e,t,r,n){let i=new Bo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,_i.funcKeywordCode)(i,r):"macro"in r?(0,_i.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,_i.funcKeywordCode)(i,r)}o(sh,"keywordCode");var CP=/^\/(?:[^~]|~0|~1)*$/,NP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ah(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!CP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=NP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(s=r[t-p],!i)return s}let a=s,u=i.split("/");for(let l of u)l&&(s=(0,O._)`${s}${(0,O.getProperty)((0,Ct.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${s}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(ah,"getData");Kt.getData=ah});var Ho=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Yu=class Yu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Yu,"ValidationError");var Ku=Yu;Wu.default=Ku});var Si=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Qu=yi(),ec=class ec extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qu.resolveUrl)(t,r,n),this.missingSchema=(0,Qu.normalizeId)((0,Qu.getFullPath)(t,this.missingRef))}};o(ec,"MissingRefError");var Ju=ec;Xu.default=Ju});var Pi=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.resolveSchema=Be.getCompilingSchema=Be.resolveRef=Be.compileSchema=Be.SchemaEnv=void 0;var Xe=A(),qP=Ho(),Er=Fe(),et=yi(),uh=T(),jP=bi(),nc=class nc{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,et.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(nc,"SchemaEnv");var pn=nc;Be.SchemaEnv=pn;function rc(e){let t=ch.call(this,e);if(t)return t;let r=(0,et.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Xe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),u;e.$async&&(u=a.scopeValue("Error",{ref:qP.default,code:(0,Xe._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[Xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xe.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xe._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,jP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Er.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Er.default.self}`,`${Er.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Xe.Name?void 0:g,items:y instanceof Xe.Name?void 0:y,dynamicProps:g instanceof Xe.Name,dynamicItems:y instanceof Xe.Name},h.source&&(h.source.evaluated=(0,Xe.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(rc,"compileSchema");Be.compileSchema=rc;function MP(e,t,r){var n;r=(0,et.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=FP.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(s=new pn({schema:a,schemaId:u,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=DP.call(this,s)}o(MP,"resolveRef");Be.resolveRef=MP;function DP(e){return(0,et.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:rc.call(this,e)}o(DP,"inlineOrCompile");function ch(e){for(let t of this._compilations)if(LP(t,e))return t}o(ch,"getCompilingSchema");Be.getCompilingSchema=ch;function LP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(LP,"sameSchemaEnv");function FP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Uo.call(this,e,t)}o(FP,"resolve");function Uo(e,t){let r=this.opts.uriResolver.parse(t),n=(0,et._getFullPath)(this.opts.uriResolver,r),i=(0,et.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return tc.call(this,r,e);let s=(0,et.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let u=Uo.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:tc.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||rc.call(this,a),s===(0,et.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,et.resolveUrl)(this.opts.uriResolver,i,l)),new pn({schema:u,schemaId:c,root:e,baseId:i})}return tc.call(this,r,a)}}o(Uo,"resolveSchema");Be.resolveSchema=Uo;var VP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tc(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,uh.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!VP.has(u)&&l&&(t=(0,et.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,uh.schemaHasRulesButRef)(r,this.RULES)){let u=(0,et.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Uo.call(this,n,u)}let{schemaId:a}=this.opts;if(s=s||new pn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(tc,"getJsonPointer")});var lh=m((uj,BP)=>{BP.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 ph=m((cj,fh)=>{"use strict";var HP={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};fh.exports={HEX:HP}});var bh=m((lj,_h)=>{"use strict";var{HEX:UP}=ph();function gh(e){if(vh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:GP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(gh,"normalizeIPv4");function ic(e,t=!1){let r="",n=!0;for(let i of e){if(UP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(ic,"stringArrayToHexStripped");function zP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,u=!1;function c(){if(i.length){if(s===!1){let l=ic(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):u?n.push(i.join("")):n.push(ic(i))),r.address=n.join(""),r}o(zP,"getIPV6");function yh(e,t={}){if(vh(e,":")<2)return{host:e,isIPV6:!1};let r=zP(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(yh,"normalizeIPv6");function GP(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(GP,"stripLeadingZeros");function vh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(vh,"findToken");var dh=/^\.\.?\//u,hh=/^\/\.(?:\/|$)/u,mh=/^\/\.\.(?:\/|$)/u,ZP=/^\/?(?:.|\n)*?(?=\/|$)/u;function KP(e){let t=[];for(;e.length;)if(e.match(dh))e=e.replace(dh,"");else if(e.match(hh))e=e.replace(hh,"/");else if(e.match(mh))e=e.replace(mh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(ZP);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(KP,"removeDotSegments");function WP(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(WP,"normalizeComponentEncoding");function YP(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=gh(n);if(i.isIPV4)n=i.host;else{let s=yh(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(YP,"recomposeAuthority");_h.exports={recomposeAuthority:YP,normalizeComponentEncoding:WP,removeDotSegments:KP,normalizeIPv4:gh,normalizeIPv6:yh,stringArrayToHexStripped:ic}});var xh=m((pj,Eh)=>{"use strict";var QP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,JP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Sh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Sh,"isSecure");function Ph(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Ph,"httpParse");function $h(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($h,"httpSerialize");function XP(e){return e.secure=Sh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(XP,"wsParse");function e$(e){if((e.port===(Sh(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(e$,"wsSerialize");function t$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(JP);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=oc[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(t$,"urnParse");function r$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=oc[i];s&&(e=s.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}o(r$,"urnSerialize");function n$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!QP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(n$,"urnuuidParse");function i$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(i$,"urnuuidSerialize");var Oh={scheme:"http",domainHost:!0,parse:Ph,serialize:$h},o$={scheme:"https",domainHost:Oh.domainHost,parse:Ph,serialize:$h},zo={scheme:"ws",domainHost:!0,parse:XP,serialize:e$},s$={scheme:"wss",domainHost:zo.domainHost,parse:zo.parse,serialize:zo.serialize},a$={scheme:"urn",parse:t$,serialize:r$,skipNormalize:!0},u$={scheme:"urn:uuid",parse:n$,serialize:i$,skipNormalize:!0},oc={http:Oh,https:o$,ws:zo,wss:s$,urn:a$,"urn:uuid":u$};Eh.exports=oc});var Ah=m((hj,Zo)=>{"use strict";var{normalizeIPv6:c$,normalizeIPv4:l$,removeDotSegments:$i,recomposeAuthority:f$,normalizeComponentEncoding:Go}=bh(),sc=xh();function p$(e,t){return typeof e=="string"?e=gt(Nt(e,t),t):typeof e=="object"&&(e=Nt(gt(e,t),t)),e}o(p$,"normalize");function d$(e,t,r){let n=Object.assign({scheme:"null"},r),i=wh(Nt(e,n),Nt(t,n),n,!0);return gt(i,{...n,skipEscape:!0})}o(d$,"resolve");function wh(e,t,r,n){let i={};return n||(e=Nt(gt(e,r),r),t=Nt(gt(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=$i(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=$i(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=$i(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=$i(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(wh,"resolveComponents");function h$(e,t,r){return typeof e=="string"?(e=unescape(e),e=gt(Go(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gt(Go(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gt(Go(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gt(Go(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(h$,"equal");function gt(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=sc[(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=f$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(u=$i(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(gt,"serialize");var m$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function g$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||m$[t])return!0;return!1}o(g$,"nonSimpleDomain");var y$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(y$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=l$(n.host);if(c.isIPV4===!1){let l=c$(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=c.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 u=sc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&s===!1&&g$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Nt,"parse");var ac={SCHEMES:sc,normalize:p$,resolve:d$,resolveComponents:wh,equal:h$,serialize:gt,parse:Nt};Zo.exports=ac;Zo.exports.default=ac;Zo.exports.fastUri=ac});var kh=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Ih=Ah();Ih.code='require("ajv/dist/runtime/uri").default';uc.default=Ih});var hn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var v$=bi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return v$.KeywordCxt},"get")});var dn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return dn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return dn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return dn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return dn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return dn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return dn.CodeGen},"get")});var _$=Ho(),qh=Si(),b$=Nu(),Oi=Pi(),S$=A(),Ei=yi(),Ko=gi(),lc=T(),Rh=lh(),P$=kh(),jh=o((e,t)=>new RegExp(e,t),"defaultRegExp");jh.code="new RegExp";var $$=["removeAdditional","useDefaults","coerceTypes"],O$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E$={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."},x$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Th=200;function w$(e){var t,r,n,i,s,a,u,c,l,p,f,d,h,g,y,v,_,b,S,E,$,M,j,ie,oe;let le=e.strict,Me=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=Me===!0||Me===void 0?1:Me||0,Bt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:jh,Jr=(i=e.uriResolver)!==null&&i!==void 0?i:P$.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:le)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:le)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Bt}:{optimize:Ee,regExp:Bt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Th,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Th,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(oe=e.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Jr}}o(w$,"requiredOptions");var fc=class fc{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...w$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new S$.ValueScope({scope:{},prefixes:O$,es5:r,lines:n}),this.logger=C$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,b$.getRules)(),Ch.call(this,E$,t,"NOT SUPPORTED"),Ch.call(this,x$,t,"DEPRECATED","warn"),this._metaOpts=R$.call(this),t.formats&&I$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&k$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),A$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Rh;n==="id"&&(i={...Rh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof qh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let 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,Ei.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=Nh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Oi.SchemaEnv({schema:{},schemaId:n});if(r=Oi.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=Nh.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,Ei.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(q$.call(this,n,r),!r)return(0,lc.eachItem)(n,s=>cc.call(this,s)),this;M$.call(this,r);let i={...r,type:(0,Ko.getJSONTypes)(r.type),schemaType:(0,Ko.getJSONTypes)(r.schemaType)};return(0,lc.eachItem)(n,i.type.length===0?s=>cc.call(this,s,i):s=>i.type.forEach(a=>cc.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 u of s)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=Mh(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Ei.normalizeId)(a||n);let l=Ei.getSchemaRefs.call(this,t,n);return c=new Oi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Oi.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{Oi.compileSchema.call(this,t)}finally{this.opts=r}}};o(fc,"Ajv");var xi=fc;xi.ValidationError=_$.default;xi.MissingRefError=qh.default;ae.default=xi;function Ch(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(Ch,"checkOptions");function Nh(e){return e=(0,Ei.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Nh,"getSchEnv");function A$(){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(A$,"addInitialSchemas");function I$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(I$,"addInitialFormats");function k$(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(k$,"addInitialKeywords");function R$(){let e={...this.opts};for(let t of $$)delete e[t];return e}o(R$,"getMetaSchemaOptions");var T$={log(){},warn(){},error(){}};function C$(e){if(e===!1)return T$;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(C$,"getLogger");var N$=/^[a-z_$][a-z0-9_$:-]*$/i;function q$(e,t){let{RULES:r}=this;if((0,lc.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!N$.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(q$,"checkKeyword");function cc(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:c})=>c===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Ko.getJSONTypes)(t.type),schemaType:(0,Ko.getJSONTypes)(t.schemaType)}};t.before?j$.call(this,a,u,t.before):a.rules.push(u),s.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}o(cc,"addRule");function j$(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(j$,"addBeforeRule");function M$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Mh(t)),e.validateSchema=this.compile(t,!0))}o(M$,"keywordMetaschema");var D$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Mh(e){return{anyOf:[e,D$]}}o(Mh,"schemaOrData")});var wi=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.callRef=xr.getValidate=void 0;var L$=Si(),Dh=Ve(),Ie=A(),mn=Fe(),Lh=Pi(),Wo=T(),F$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:u,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Lh.resolveRef.call(c,l,i,r);if(p===void 0)throw new L$.default(n.opts.uriResolver,i,r);if(p instanceof Lh.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Yo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Yo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Fh(e,g);Yo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Fh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Fh,"getValidate");xr.getValidate=Fh;function Yo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:u,opts:c}=s,l=c.passContext?mn.default.this:Ie.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Dh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(p,"callAsyncRef");function f(){e.result((0,Dh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(mn.default.vErrors,(0,Ie._)`${mn.default.vErrors} === null ? ${y} : ${mn.default.vErrors}.concat(${y})`),i.assign(mn.default.errors,(0,Ie._)`${mn.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Wo.mergeEvaluated.props(i,v.props,s.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);s.props=Wo.mergeEvaluated.props(i,_,s.props,Ie.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Wo.mergeEvaluated.items(i,v.items,s.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);s.items=Wo.mergeEvaluated.items(i,_,s.items,Ie.Name)}}o(h,"addEvaluatedFrom")}o(Yo,"callRef");xr.callRef=Yo;xr.default=F$});var Vh=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var V$=wi(),B$=["$schema","id","$defs",{keyword:"$comment"},"definitions",V$.default];pc.default=B$});var Bh=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var dc=hn(),H$=A(),Wt=H$.operators,hc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},{okStr:"<",ok:Wt.LT,fail:Wt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Wt.GTE,fail:Wt.LT},{okStr:">",ok:Wt.GT,fail:Wt.LTE}]}},U$={message:o(e=>dc.str`must be ${mc(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>dc._`{comparison: ${mc(e).okStr}, limit: ${e.schemaCode}}`,"params")},z$={keyword:Object.keys(hc),type:"number",schemaType:"number",$data:!0,error:U$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(dc._`${t} ${mc(e).fail} ${r} || isNaN(${t})`)}};function mc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[hc[r].exclusive]?1:0;return hc[r].ops[n]}o(mc,"kwdOp");gc.default=z$});var Uh=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Hh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},G$={keyword:Object.keys(Hh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Hh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};yc.default=G$});var _c=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Ai=A(),Z$={message:o(({schemaCode:e})=>(0,Ai.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ai._)`{multipleOf: ${e}}`,"params")},K$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Z$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),u=s?(0,Ai._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ai._)`${a} !== parseInt(${a})`;e.fail$data((0,Ai._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};vc.default=K$});var Gh=m(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});function zh(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(zh,"ucs2length");bc.default=zh;zh.code='require("ajv/dist/runtime/ucs2length").default'});var Pc=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var wr=A(),W$=T(),Y$=Gh(),Q$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,wr._)`{limit: ${e}}`,"params")},J$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Q$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?wr.operators.GT:wr.operators.LT,a=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,W$.useFunc)(e.gen,Y$.default)}(${r})`;e.fail$data((0,wr._)`${a} ${s} ${n}`)}};Sc.default=J$});var Oc=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var X$=Ve(),Qo=A(),eO={message:o(({schemaCode:e})=>(0,Qo.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qo._)`{pattern: ${e}}`,"params")},tO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:eO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",u=r?(0,Qo._)`(new RegExp(${i}, ${a}))`:(0,X$.usePattern)(e,n);e.fail$data((0,Qo._)`!${u}.test(${t})`)}};$c.default=tO});var xc=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var Ii=A(),rO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ii.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Ii._)`{limit: ${e}}`,"params")},nO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:rO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ii.operators.GT:Ii.operators.LT;e.fail$data((0,Ii._)`Object.keys(${r}).length ${i} ${n}`)}};Ec.default=nO});var Ac=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var ki=Ve(),Ri=A(),iO=T(),oO={message:o(({params:{missingProperty:e}})=>(0,Ri.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ri._)`{missingProperty: ${e}}`,"params")},sO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:oO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:u}=a;if(!s&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,iO.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||s)e.block$data(Ri.nil,f);else for(let h of r)(0,ki.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||s){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,ki.checkMissingProp)(e,r,h)),(0,ki.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ki.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,ki.propertyInData)(t,i,h,u.ownProperties)),t.if((0,Ri.not)(g),()=>{e.error(),t.break()})},Ri.nil)}o(d,"loopUntilMissing")}};wc.default=sO});var kc=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var Ti=A(),aO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ti.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ti._)`{limit: ${e}}`,"params")},uO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:aO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ti.operators.GT:Ti.operators.LT;e.fail$data((0,Ti._)`${r}.length ${i} ${n}`)}};Ic.default=uO});var Jo=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var Zh=Bu();Zh.code='require("ajv/dist/runtime/equal").default';Rc.default=Zh});var Nc=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Tc=gi(),ue=A(),cO=T(),lO=Jo(),fO={message:o(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},pO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=s.items?(0,Tc.getSchemaTypes)(s.items):[];e.block$data(c,p,(0,ue._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,ue._)`${g} > 1`,()=>(f()?d:h)(g,y))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Tc.checkDataTypes)(l,v,u.opts.strictNumbers,Tc.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(_,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function h(g,y){let v=(0,cO.useFunc)(t,lO.default),_=t.name("outer");t.label(_).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}o(h,"loopN2")}};Cc.default=pO});var Mc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var qc=A(),dO=T(),hO=Jo(),mO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,qc._)`{allowedValue: ${e}}`,"params")},gO={keyword:"const",$data:!0,error:mO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,qc._)`!${(0,dO.useFunc)(t,hO.default)}(${r}, ${i})`):e.fail((0,qc._)`${s} !== ${r}`)}};jc.default=gO});var Lc=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var Ci=A(),yO=T(),vO=Jo(),_O={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ci._)`{allowedValues: ${e}}`,"params")},bO={keyword:"enum",schemaType:"array",$data:!0,error:_O,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 u=i.length>=a.opts.loopEnum,c,l=o(()=>c??(c=(0,yO.useFunc)(t,vO.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,Ci.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Ci._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ci._)`${l()}(${r}, ${h}[${g}])`:(0,Ci._)`${r} === ${y}`}o(d,"equalCode")}};Dc.default=bO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var SO=Bh(),PO=Uh(),$O=_c(),OO=Pc(),EO=Oc(),xO=xc(),wO=Ac(),AO=kc(),IO=Nc(),kO=Mc(),RO=Lc(),TO=[SO.default,PO.default,$O.default,OO.default,EO.default,xO.default,wO.default,AO.default,IO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kO.default,RO.default];Fc.default=TO});var Bc=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.validateAdditionalItems=void 0;var Ar=A(),Vc=T(),CO={message:o(({params:{len:e}})=>(0,Ar.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ar._)`{limit: ${e}}`,"params")},NO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:CO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Vc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Wh(e,n)}};function Wh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let u=r.const("len",(0,Ar._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ar._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Vc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ar._)`${u} <= ${t.length}`);r.if((0,Ar.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Vc.Type.Num},l),a.allErrors||r.if((0,Ar.not)(l),()=>r.break())})}o(c,"validateItems")}o(Wh,"validateAdditionalItems");Ni.validateAdditionalItems=Wh;Ni.default=NO});var Hc=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.validateTuple=void 0;var Yh=A(),Xo=T(),qO=Ve(),jO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Qh(e,"additionalItems",t);r.items=!0,!(0,Xo.alwaysValidSchema)(r,t)&&e.ok((0,qO.validateArray)(e))}};function Qh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Xo.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Yh._)`${s}.length`);r.forEach((f,d)=>{(0,Xo.alwaysValidSchema)(u,f)||(n.if((0,Yh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Xo.checkStrictMode)(u,v,d.strictTuples)}}o(p,"checkStrictTuple")}o(Qh,"validateTuple");qi.validateTuple=Qh;qi.default=jO});var Jh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var MO=Hc(),DO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,MO.validateTuple)(e,"items"),"code")};Uc.default=DO});var em=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Xh=A(),LO=T(),FO=Ve(),VO=Bc(),BO={message:o(({params:{len:e}})=>(0,Xh.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Xh._)`{limit: ${e}}`,"params")},HO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,LO.alwaysValidSchema)(n,t)&&(i?(0,VO.validateAdditionalItems)(e,i):e.ok((0,FO.validateArray)(e)))}};zc.default=HO});var tm=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var He=A(),es=T(),UO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,He.str)`must contain at least ${e} valid item(s)`:(0,He.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,He._)`{minContains: ${e}}`:(0,He._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:UO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,u,{minContains:c,maxContains:l}=n;s.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,es.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,es.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,es.alwaysValidSchema)(s,r)){let y=(0,He._)`${p} >= ${a}`;u!==void 0&&(y=(0,He._)`${y} && ${p} <= ${u}`),e.pass(y);return}s.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:es.Type.Num,compositeRule:!0},y),v()})}o(h,"validateItems");function g(y){t.code((0,He._)`${y}++`),u===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,He._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0)))}o(g,"checkLimits")}};Gc.default=zO});var ts=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var Zc=A(),GO=T(),ji=Ve();yt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Zc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Zc._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var FS={keyword:"dependencies",type:"object",schemaType:"object",error:We.error,code(e){let[t,r]=VS(e);Ql(e,t),ep(e,r)}};function VS({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(VS,"splitDependencies");function Ql(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Fn.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let f of c)(0,Fn.checkReportMissingProp)(e,f)}):(r.if((0,Za._)`${u} && (${(0,Fn.checkMissingProp)(e,c,o)})`),(0,Fn.reportMissingProp)(e,o),r.else())}}s(Ql,"validatePropertyDeps");We.validatePropertyDeps=Ql;function ep(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,DS.alwaysValidSchema)(o,t[c])||(r.if((0,Fn.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(ep,"validateSchemaDeps");We.validateSchemaDeps=ep;We.default=FS});var rp=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var tp=w(),LS=R(),BS={message:"property name must be valid",params:s(({params:e})=>(0,tp._)`{propertyName: ${e.propertyName}}`,"params")},zS={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:BS,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,LS.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,tp.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Ha.default=zS});var Ka=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Bi=xe(),ke=w(),US=Oe(),zi=R(),ZS={message:"must NOT have additional properties",params:s(({params:e})=>(0,ke._)`{additionalProperty: ${e.additionalProperty}}`,"params")},HS={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ZS,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,zi.alwaysValidSchema)(a,r))return;let f=(0,Bi.allSchemaProperties)(n.properties),l=(0,Bi.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ke._)`${o} === ${US.default.errors}`);function p(){t.forIn("key",i,g=>{!f.length&&!l.length?y(g):t.if(h(g),()=>y(g))})}s(p,"checkAdditionalProperties");function h(g){let b;if(f.length>8){let v=(0,zi.schemaRefOrVal)(a,n.properties,"properties");b=(0,Bi.isOwnProperty)(t,v,g)}else f.length?b=(0,ke.or)(...f.map(v=>(0,ke._)`${g} === ${v}`)):b=ke.nil;return l.length&&(b=(0,ke.or)(b,...l.map(v=>(0,ke._)`${(0,Bi.usePattern)(e,v)}.test(${g})`))),(0,ke.not)(b)}s(h,"isAdditional");function d(g){t.code((0,ke._)`delete ${i}[${g}]`)}s(d,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,zi.alwaysValidSchema)(a,r)){let b=t.name("valid");u.removeAdditional==="failing"?($(g,b,!1),t.if((0,ke.not)(b),()=>{e.reset(),d(g)})):($(g,b),c||t.if((0,ke.not)(b),()=>t.break()))}}s(y,"additionalPropertyCode");function $(g,b,v){let S={keyword:"additionalProperties",dataProp:g,dataPropType:zi.Type.Str};v===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,b)}s($,"applyAdditionalSchema")}};Ga.default=HS});var op=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var GS=_n(),np=xe(),Wa=R(),ip=Ka(),KS={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ip.default.code(new GS.KeywordCxt(o,ip.default,"additionalProperties"));let a=(0,np.allSchemaProperties)(r);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Wa.mergeEvaluated.props(t,(0,Wa.toHash)(a),o.props));let c=a.filter(p=>!(0,Wa.alwaysValidSchema)(o,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)f(p)?l(p):(t.if((0,np.propertyInData)(t,i,p,o.opts.ownProperties)),l(p),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function f(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}s(f,"hasDefault");function l(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}s(l,"applyPropertySchema")}};Ya.default=KS});var up=m(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var sp=xe(),Ui=w(),ap=R(),cp=R(),WS={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,sp.allSchemaProperties)(r),u=c.filter($=>(0,ap.alwaysValidSchema)(o,r[$]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let f=a.strictSchema&&!a.allowMatchingProperties&&i.properties,l=t.name("valid");o.props!==!0&&!(o.props instanceof Ui.Name)&&(o.props=(0,cp.evaluatedPropsToName)(t,o.props));let{props:p}=o;h();function h(){for(let $ of c)f&&d($),o.allErrors?y($):(t.var(l,!0),y($),t.if(l))}s(h,"validatePatternProperties");function d($){for(let g in f)new RegExp($).test(g)&&(0,ap.checkStrictMode)(o,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}s(d,"checkMatchingProperties");function y($){t.forIn("key",n,g=>{t.if((0,Ui._)`${(0,sp.usePattern)(e,$)}.test(${g})`,()=>{let b=u.includes($);b||e.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:cp.Type.Str},l),o.opts.unevaluated&&p!==!0?t.assign((0,Ui._)`${p}[${g}]`,!0):!b&&!o.allErrors&&t.if((0,Ui.not)(l),()=>t.break())})})}s(y,"validateProperties")}};Ja.default=WS});var fp=m(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var YS=R(),JS={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,YS.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"}};Xa.default=JS});var lp=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var XS=xe(),QS={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:XS.validateUnion,error:{message:"must match a schema in anyOf"}};Qa.default=QS});var pp=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var Zi=w(),eP=R(),tP={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Zi._)`{passingSchemas: ${e.passing}}`,"params")},rP={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:tP,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(f),e.result(a,()=>e.reset(),()=>e.error(!0));function f(){o.forEach((l,p)=>{let h;(0,eP.alwaysValidSchema)(i,l)?t.var(u,!0):h=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Zi._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Zi._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),h&&e.mergeEvaluated(h,Zi.Name)})})}s(f,"validateOneOf")}};ec.default=rP});var dp=m(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var nP=R(),iP={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,nP.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};tc.default=iP});var yp=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Hi=w(),hp=R(),oP={message:s(({params:e})=>(0,Hi.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Hi._)`{failingKeyword: ${e.ifClause}}`,"params")},sP={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:oP,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,hp.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=mp(n,"then"),o=mp(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(c,f("then",l),f("else",l))}else i?t.if(c,f("then")):t.if((0,Hi.not)(c),f("else"));e.pass(a,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(l)}s(u,"validateIf");function f(l,p){return()=>{let h=e.subschema({keyword:l},c);t.assign(a,c),e.mergeValidEvaluated(h,a),p?t.assign(p,(0,Hi._)`${l}`):e.setParams({ifClause:l})}}s(f,"validateClause")}};function mp(e,t){let r=e.schema[t];return r!==void 0&&!(0,hp.alwaysValidSchema)(e,r)}s(mp,"hasSchema");rc.default=sP});var gp=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var aP=R(),cP={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,aP.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};nc.default=cP});var oc=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var uP=Va(),fP=Wl(),lP=La(),pP=Jl(),dP=Xl(),mP=Li(),hP=rp(),yP=Ka(),gP=op(),$P=up(),bP=fp(),vP=lp(),SP=pp(),PP=dp(),_P=yp(),OP=gp();function xP(e=!1){let t=[bP.default,vP.default,SP.default,PP.default,_P.default,OP.default,hP.default,yP.default,mP.default,gP.default,$P.default];return e?t.push(fP.default,pP.default):t.push(uP.default,lP.default),t.push(dP.default),t}s(xP,"getApplicator");ic.default=xP});var $p=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var G=w(),wP={message:s(({schemaCode:e})=>(0,G.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,G._)`{format: ${e}}`,"params")},EP={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wP,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:f,schemaEnv:l,self:p}=c;if(!u.validateFormats)return;i?h():d();function h(){let y=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),$=r.const("fDef",(0,G._)`${y}[${a}]`),g=r.let("fType"),b=r.let("format");r.if((0,G._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>r.assign(g,(0,G._)`${$}.type || "string"`).assign(b,(0,G._)`${$}.validate`),()=>r.assign(g,(0,G._)`"string"`).assign(b,$)),e.fail$data((0,G.or)(v(),S()));function v(){return u.strictSchema===!1?G.nil:(0,G._)`${a} && !${b}`}s(v,"unknownFmt");function S(){let T=l.$async?(0,G._)`(${$}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,G._)`${b}(${n})`,P=(0,G._)`(typeof ${b} == "function" ? ${T} : ${b}.test(${n}))`;return(0,G._)`${b} && ${b} !== true && ${g} === ${t} && !${P}`}s(S,"invalidFmt")}s(h,"validate$DataFormat");function d(){let y=p.formats[o];if(!y){v();return}if(y===!0)return;let[$,g,b]=S(y);$===t&&e.pass(T());function v(){if(u.strictSchema===!1){p.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(v,"unknownFormat");function S(P){let z=P instanceof RegExp?(0,G.regexpCode)(P):u.code.formats?(0,G._)`${u.code.formats}${(0,G.getProperty)(o)}`:void 0,W=r.scopeValue("formats",{key:o,ref:P,code:z});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,G._)`${W}.validate`]:["string",P,W]}s(S,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!l.$async)throw new Error("async format in sync schema");return(0,G._)`await ${b}(${n})`}return typeof g=="function"?(0,G._)`${b}(${n})`:(0,G._)`${b}.test(${n})`}s(T,"validCondition")}s(d,"validateFormat")}};sc.default=EP});var cc=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var jP=$p(),AP=[jP.default];ac.default=AP});var bp=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var TP=Dl(),RP=Zl(),IP=oc(),qP=cc(),NP=["title","description","default"],CP=[TP.default,RP.default,IP.default(),qP.default,NP];uc.default=CP});var Sp=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.DiscrError=void 0;var vp;(function(e){e.Tag="tag",e.Mapping="mapping"})(vp||(Gi.DiscrError=vp={}))});var pc=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Rr=w(),fc=Sp(),Pp=xn(),kP=On(),MP=R(),DP={message:s(({params:{discrError:e,tagName:t}})=>e===fc.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,Rr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},FP={keyword:"discriminator",type:"object",schemaType:"object",error:DP,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),f=t.const("tag",(0,Rr._)`${r}${(0,Rr.getProperty)(c)}`);t.if((0,Rr._)`typeof ${f} == "string"`,()=>l(),()=>e.error(!1,{discrError:fc.DiscrError.Tag,tag:f,tagName:c})),e.ok(u);function l(){let d=h();t.if(!1);for(let y in d)t.elseIf((0,Rr._)`${f} === ${y}`),t.assign(u,p(d[y]));t.else(),e.error(!1,{discrError:fc.DiscrError.Mapping,tag:f,tagName:c}),t.endIf()}s(l,"validateMapping");function p(d){let y=t.name("valid"),$=e.subschema({keyword:"oneOf",schemaProp:d},y);return e.mergeEvaluated($,Rr.Name),y}s(p,"applyTagSchema");function h(){var d;let y={},$=b(i),g=!0;for(let T=0;T<a.length;T++){let P=a[T];if(P!=null&&P.$ref&&!(0,MP.schemaHasRulesButRef)(P,o.self.RULES)){let W=P.$ref;if(P=Pp.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,W),P instanceof Pp.SchemaEnv&&(P=P.schema),P===void 0)throw new kP.default(o.opts.uriResolver,o.baseId,W)}let z=(d=P==null?void 0:P.properties)===null||d===void 0?void 0:d[c];if(typeof z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&($||b(P)),v(z,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function b({required:T}){return Array.isArray(T)&&T.includes(c)}function v(T,P){if(T.const)S(T.const,P);else if(T.enum)for(let z of T.enum)S(z,P);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function S(T,P){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=P}}s(h,"getMapping")}};lc.default=FP});var _p=m((fI,VP)=>{VP.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 wp=m((Y,xp)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.CodeGen=Y.Name=Y.nil=Y.stringify=Y.str=Y._=Y.KeywordCxt=void 0;var LP=Ar(),BP=bp(),zP=pc(),Op=_p(),UP=["/properties"],Ki="http://json-schema.org/draft-04/schema",dc=class dc extends LP.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),BP.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(zP.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Op,UP):Op;this.addMetaSchema(t,Ki,!1),this.refs["http://json-schema.org/schema"]=Ki}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ki)?Ki:void 0)}};s(dc,"Ajv");var Wi=dc;xp.exports=Y=Wi;Object.defineProperty(Y,"__esModule",{value:!0});Y.default=Wi;var ZP=Ar();Object.defineProperty(Y,"KeywordCxt",{enumerable:!0,get:s(function(){return ZP.KeywordCxt},"get")});var Ir=Ar();Object.defineProperty(Y,"_",{enumerable:!0,get:s(function(){return Ir._},"get")});Object.defineProperty(Y,"str",{enumerable:!0,get:s(function(){return Ir.str},"get")});Object.defineProperty(Y,"stringify",{enumerable:!0,get:s(function(){return Ir.stringify},"get")});Object.defineProperty(Y,"nil",{enumerable:!0,get:s(function(){return Ir.nil},"get")});Object.defineProperty(Y,"Name",{enumerable:!0,get:s(function(){return Ir.Name},"get")});Object.defineProperty(Y,"CodeGen",{enumerable:!0,get:s(function(){return Ir.CodeGen},"get")})});var Ep=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var HP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};mc.default=HP});var jp=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var GP=Ep(),KP=Tn(),WP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",GP.default,KP.default];hc.default=WP});var Ap=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Yi=w(),St=Yi.operators,Ji={maximum:{okStr:"<=",ok:St.LTE,fail:St.GT},minimum:{okStr:">=",ok:St.GTE,fail:St.LT},exclusiveMaximum:{okStr:"<",ok:St.LT,fail:St.GTE},exclusiveMinimum:{okStr:">",ok:St.GT,fail:St.LTE}},YP={message:s(({keyword:e,schemaCode:t})=>(0,Yi.str)`must be ${Ji[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Yi._)`{comparison: ${Ji[e].okStr}, limit: ${t}}`,"params")},JP={keyword:Object.keys(Ji),type:"number",schemaType:"number",$data:!0,error:YP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Yi._)`${r} ${Ji[t].fail} ${n} || isNaN(${r})`)}};yc.default=JP});var Tp=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var XP=Ap(),QP=ga(),e_=va(),t_=Pa(),r_=Oa(),n_=wa(),i_=ja(),o_=Ia(),s_=Ca(),a_=Ma(),c_=[XP.default,QP.default,e_.default,t_.default,r_.default,n_.default,i_.default,o_.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},s_.default,a_.default];gc.default=c_});var bc=m(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.dynamicAnchor=void 0;var $c=w(),u_=Oe(),Rp=xn(),f_=Tn(),l_={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Ip(e,e.schema),"code")};function Ip(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,$c._)`${u_.default.dynamicAnchors}${(0,$c.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:p_(e);r.if((0,$c._)`!${i}`,()=>r.assign(i,o))}s(Ip,"dynamicAnchor");Vn.dynamicAnchor=Ip;function p_(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,f=new Rp.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return Rp.compileSchema.call(n,f),(0,f_.getValidate)(e,f)}s(p_,"_getValidate");Vn.default=l_});var vc=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.dynamicRef=void 0;var qp=w(),d_=Oe(),Np=Tn(),m_={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Cp(e,e.schema),"code")};function Cp(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let f=r.let("_v",(0,qp._)`${d_.default.dynamicAnchors}${(0,qp.getProperty)(o)}`);r.if(f,c(f,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,f){return f?()=>r.block(()=>{(0,Np.callRef)(e,u),r.let(f,!0)}):()=>(0,Np.callRef)(e,u)}s(c,"_callRef")}s(Cp,"dynamicRef");Ln.dynamicRef=Cp;Ln.default=m_});var kp=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var h_=bc(),y_=R(),g_={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,h_.dynamicAnchor)(e,""):(0,y_.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Sc.default=g_});var Mp=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var $_=vc(),b_={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,$_.dynamicRef)(e,e.schema),"code")};Pc.default=b_});var Dp=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var v_=bc(),S_=vc(),P_=kp(),__=Mp(),O_=[v_.default,S_.default,P_.default,__.default];_c.default=O_});var Vp=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Fp=Li(),x_={keyword:"dependentRequired",type:"object",schemaType:"object",error:Fp.error,code:s(e=>(0,Fp.validatePropertyDeps)(e),"code")};Oc.default=x_});var Lp=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var w_=Li(),E_={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,w_.validateSchemaDeps)(e),"code")};xc.default=E_});var Bp=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var j_=R(),A_={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,j_.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};wc.default=A_});var zp=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var T_=Vp(),R_=Lp(),I_=Bp(),q_=[T_.default,R_.default,I_.default];Ec.default=q_});var Zp=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Pt=w(),Up=R(),N_=Oe(),C_={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Pt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},k_={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:C_,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof Pt.Name?t.if((0,Pt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(f(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(l(c,p),()=>u(p))),o.props=!0,e.ok((0,Pt._)`${i} === ${N_.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Up.alwaysValidSchema)(o,r)){let h=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Up.Type.Str},h),a||t.if((0,Pt.not)(h),()=>t.break())}}s(u,"unevaluatedPropCode");function f(p,h){return(0,Pt._)`!${p} || !${p}[${h}]`}s(f,"unevaluatedDynamic");function l(p,h){let d=[];for(let y in p)p[y]===!0&&d.push((0,Pt._)`${h} !== ${y}`);return(0,Pt.and)(...d)}s(l,"unevaluatedStatic")}};jc.default=k_});var Gp=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var Xt=w(),Hp=R(),M_={message:s(({params:{len:e}})=>(0,Xt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Xt._)`{limit: ${e}}`,"params")},D_={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:M_,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Xt._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Xt._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Hp.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Xt._)`${a} <= ${o}`);t.if((0,Xt.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,f){t.forRange("i",f,a,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:Hp.Type.Num},u),i.allErrors||t.if((0,Xt.not)(u),()=>t.break())})}s(c,"validateItems")}};Ac.default=D_});var Kp=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var F_=Zp(),V_=Gp(),L_=[F_.default,V_.default];Tc.default=L_});var Wp=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Jp=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var B_=jp(),z_=Tp(),U_=oc(),Z_=Dp(),H_=zp(),G_=Kp(),K_=cc(),Yp=Wp(),W_=[Z_.default,B_.default,z_.default,(0,U_.default)(!0),K_.default,Yp.metadataVocabulary,Yp.contentVocabulary,H_.default,G_.default];Rc.default=W_});var Xp=m((DI,Y_)=>{Y_.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 Qp=m((FI,J_)=>{J_.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 ed=m((VI,X_)=>{X_.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 td=m((LI,Q_)=>{Q_.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 rd=m((BI,eO)=>{eO.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 nd=m((zI,tO)=>{tO.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 id=m((UI,rO)=>{rO.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 od=m((ZI,nO)=>{nO.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 sd=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var iO=Xp(),oO=Qp(),sO=ed(),aO=td(),cO=rd(),uO=nd(),fO=id(),lO=od(),pO=["/properties"];function dO(e){return[iO,oO,sO,aO,cO,t(this,uO),fO,t(this,lO)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,pO):n}s(t,"with$data")}s(dO,"addMetaSchema2020");Ic.default=dO});var ad=m((F,Nc)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.MissingRefError=F.ValidationError=F.CodeGen=F.Name=F.nil=F.stringify=F.str=F._=F.KeywordCxt=F.Ajv2020=void 0;var mO=Ar(),hO=Jp(),yO=pc(),gO=sd(),qc="https://json-schema.org/draft/2020-12/schema",Cc=class Cc extends mO.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),hO.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(yO.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(gO.default.call(this,t),this.refs["http://json-schema.org/schema"]=qc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qc)?qc:void 0)}};s(Cc,"Ajv2020");var Nr=Cc;F.Ajv2020=Nr;Nc.exports=F=Nr;Nc.exports.Ajv2020=Nr;Object.defineProperty(F,"__esModule",{value:!0});F.default=Nr;var $O=_n();Object.defineProperty(F,"KeywordCxt",{enumerable:!0,get:s(function(){return $O.KeywordCxt},"get")});var Cr=w();Object.defineProperty(F,"_",{enumerable:!0,get:s(function(){return Cr._},"get")});Object.defineProperty(F,"str",{enumerable:!0,get:s(function(){return Cr.str},"get")});Object.defineProperty(F,"stringify",{enumerable:!0,get:s(function(){return Cr.stringify},"get")});Object.defineProperty(F,"nil",{enumerable:!0,get:s(function(){return Cr.nil},"get")});Object.defineProperty(F,"Name",{enumerable:!0,get:s(function(){return Cr.Name},"get")});Object.defineProperty(F,"CodeGen",{enumerable:!0,get:s(function(){return Cr.CodeGen},"get")});var bO=Ai();Object.defineProperty(F,"ValidationError",{enumerable:!0,get:s(function(){return bO.default},"get")});var vO=On();Object.defineProperty(F,"MissingRefError",{enumerable:!0,get:s(function(){return vO.default},"get")})});var cd=m((WI,SO)=>{SO.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 ud=m((YI,PO)=>{PO.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 fd=m((JI,_O)=>{_O.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 ld=m((XI,OO)=>{OO.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 pd=m((Q,kr)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.openapi=Q.openapiV31=Q.openapiV3=Q.openapiV2=Q.openapiV1=void 0;Q.openapiV1=cd();Q.openapiV2=ud();Q.openapiV3=fd();Q.openapiV31=ld();Q.openapi={v1:Q.openapiV1,v2:Q.openapiV2,v3:Q.openapiV3,v31:Q.openapiV31};Q.default=Q.openapi;typeof kr=="object"&&typeof kr.exports=="object"&&(kr.exports=Object.assign(kr.exports.default,kr.exports))});var Dc=m((QI,dd)=>{"use strict";var xO=fi(),{ono:wO}=Ie(),EO=wp(),jO=ad(),{openapi:kc}=pd();dd.exports=AO;function AO(e){let t,r;if(e.swagger)r=kc.v2,t=Mc();else if(e.openapi.startsWith("3.1")){r=kc.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=Mc(!1)}else r=kc.v3,t=Mc();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
- `+TO(i);throw wO.syntax(i,{details:i},o)}}s(AO,"validateSchema");function Mc(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new EO(t):new jO(t)}s(Mc,"initializeAjv");function TO(e,t){t=t||" ";let r="";for(let n of e)r+=xO.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}s(TO,"formatAjvError")});var hd=m((t1,md)=>{"use strict";md.exports=["get","put","post","delete","options","head","patch"]});var Lc=m((r1,bd)=>{"use strict";var RO=fi(),{ono:se}=Ie(),IO=hd(),Fc=["array","boolean","integer","number","string"],gd=["array","boolean","integer","number","string","object","null",void 0];bd.exports=qO;function qO(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&NO(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;$d(o,a)}}s(qO,"validateSpec");function NO(e,t,r,n){for(let i of IO){let o=t[i],a=r+"/"+i;if(o){let c=o.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw se.syntax(`Validation failed. Duplicate operation id '${c}'`);CO(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let f of u){let l=o.responses[f],p=a+"/responses/"+f;FO(f,l||{},p)}}}}s(NO,"validatePath");function CO(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{yd(o)}catch(u){throw se.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{yd(a)}catch(u){throw se.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,f)=>(u.some(p=>p.in===f.in&&p.name===f.name)||u.push(f),u),a.slice());kO(c,i),MO(c,r,i),DO(c,e,n,i)}s(CO,"validateParameters");function kO(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw se.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw se.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(kO,"validateBodyParameters");function MO(e,t,r){let n=t.match(RO.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw se.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 se.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw se.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw se.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(MO,"validatePathParameters");function DO(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=gd;break;case"formData":a=i,c=Fc.concat("file");break;default:a=i,c=Fc}if(Vc(a,o,c),$d(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(h=>u.test(h)||f.test(h)))throw se.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(DO,"validateParameterTypes");function yd(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 se.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(yd,"checkForDuplicates");function FO(e,t,r){if(e!=="default"&&(e<100||e>599))throw se.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Vc(o,a,Fc)}if(t.schema){let i=gd.concat("file");if(i.indexOf(t.schema.type)===-1)throw se.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Vc(t.schema,r+"/schema",i)}}s(FO,"validateResponse");function Vc(e,t,r){if(r.indexOf(e.type)===-1)throw se.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw se.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Vc,"validateSchema");function $d(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw se.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s($d,"validateRequiredPropertiesExist")});var De=m(Me=>{"use strict";var{Ono:vd}=Ie(),{stripHash:Sd,toFileSystemPath:VO}=Se(),Mr,_t=Me.JSONParserError=(Mr=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,vd.extend(this)}},s(Mr,"JSONParserError"),Mr);Ot(_t);var Qt,Pd=Me.JSONParserErrorGroup=(Qt=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${VO(t.$refs._root$Ref.path)}'`,vd.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 Qt.getParserErrors(this.files)}},s(Qt,"JSONParserErrorGroup"),Qt);Ot(Pd);var Dr,LO=Me.ParserError=(Dr=class extends _t{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(Dr,"ParserError"),Dr);Ot(LO);var Fr,BO=Me.UnmatchedParserError=(Fr=class extends _t{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(Fr,"UnmatchedParserError"),Fr);Ot(BO);var Vr,zO=Me.ResolverError=(Vr=class extends _t{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Vr,"ResolverError"),Vr);Ot(zO);var Lr,UO=Me.UnmatchedResolverError=(Lr=class extends _t{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(Lr,"UnmatchedResolverError"),Lr);Ot(UO);var Br,ZO=Me.MissingPointerError=(Br=class extends _t{constructor(t,r){super(`Token "${t}" does not exist.`,Sd(r)),this.code="EMISSINGPOINTER"}},s(Br,"MissingPointerError"),Br);Ot(ZO);var zr,HO=Me.InvalidPointerError=(zr=class extends _t{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Sd(r)),this.code="EINVALIDPOINTER"}},s(zr,"InvalidPointerError"),zr);Ot(HO);function Ot(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Ot,"setErrorName");Me.isHandledError=function(e){return e instanceof _t||e instanceof Pd};Me.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Od=m((s1,_d)=>{"use strict";var{ParserError:GO}=De();_d.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 GO(r.message,e.url)}}else return t}}});var tr=m((a1,er)=>{"use strict";function xd(e){return typeof e>"u"||e===null}s(xd,"isNothing");function KO(e){return typeof e=="object"&&e!==null}s(KO,"isObject");function WO(e){return Array.isArray(e)?e:xd(e)?[]:[e]}s(WO,"toArray");function YO(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(YO,"extend");function JO(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(JO,"repeat");function XO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(XO,"isNegativeZero");er.exports.isNothing=xd;er.exports.isObject=KO;er.exports.toArray=WO;er.exports.repeat=JO;er.exports.isNegativeZero=XO;er.exports.extend=YO});var Ur=m((u1,wd)=>{"use strict";function Bn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Bn,"YAMLException");Bn.prototype=Object.create(Error.prototype);Bn.prototype.constructor=Bn;Bn.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");wd.exports=Bn});var Ad=m((l1,jd)=>{"use strict";var Ed=tr();function Bc(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Bc,"Mark");Bc.prototype.getSnippet=s(function(t,r){var n,i,o,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Ed.repeat(" ",t)+n+c+o+`
17
- `+Ed.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Bc.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
- `+r)),n},"toString");jd.exports=Bc});var J=m((d1,Rd)=>{"use strict";var Td=Ur(),QO=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ex=["scalar","sequence","mapping"];function tx(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(tx,"compileStyleAliases");function rx(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(QO.indexOf(r)===-1)throw new Td('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=tx(t.styleAliases||null),ex.indexOf(this.kind)===-1)throw new Td('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(rx,"Type");Rd.exports=rx});var rr=m((h1,qd)=>{"use strict";var Id=tr(),Xi=Ur(),nx=J();function zc(e,t,r){var n=[];return e.include.forEach(function(i){r=zc(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(zc,"compileList");function ix(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(ix,"compileMap");function Zr(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 Xi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zc(this,"implicit",[]),this.compiledExplicit=zc(this,"explicit",[]),this.compiledTypeMap=ix(this.compiledImplicit,this.compiledExplicit)}s(Zr,"Schema");Zr.DEFAULT=null;Zr.create=s(function(){var t,r;switch(arguments.length){case 1:t=Zr.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Xi("Wrong number of arguments for Schema.create function")}if(t=Id.toArray(t),r=Id.toArray(r),!t.every(function(n){return n instanceof Zr}))throw new Xi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof nx}))throw new Xi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Zr({include:t,explicit:r})},"createSchema");qd.exports=Zr});var Cd=m((g1,Nd)=>{"use strict";var ox=J();Nd.exports=new ox("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Md=m((b1,kd)=>{"use strict";var sx=J();kd.exports=new sx("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Fd=m((S1,Dd)=>{"use strict";var ax=J();Dd.exports=new ax("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Qi=m((_1,Vd)=>{"use strict";var cx=rr();Vd.exports=new cx({explicit:[Cd(),Md(),Fd()]})});var Bd=m((O1,Ld)=>{"use strict";var ux=J();function fx(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(fx,"resolveYamlNull");function lx(){return null}s(lx,"constructYamlNull");function px(e){return e===null}s(px,"isNull");Ld.exports=new ux("tag:yaml.org,2002:null",{kind:"scalar",resolve:fx,construct:lx,predicate:px,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Ud=m((w1,zd)=>{"use strict";var dx=J();function mx(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(mx,"resolveYamlBoolean");function hx(e){return e==="true"||e==="True"||e==="TRUE"}s(hx,"constructYamlBoolean");function yx(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(yx,"isBoolean");zd.exports=new dx("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mx,construct:hx,predicate:yx,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Hd=m((j1,Zd)=>{"use strict";var gx=tr(),$x=J();function bx(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(bx,"isHexCode");function vx(e){return 48<=e&&e<=55}s(vx,"isOctCode");function Sx(e){return 48<=e&&e<=57}s(Sx,"isDecCode");function Px(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(!bx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!vx(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(!Sx(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(Px,"resolveYamlInteger");function _x(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(_x,"constructYamlInteger");function Ox(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!gx.isNegativeZero(e)}s(Ox,"isInteger");Zd.exports=new $x("tag:yaml.org,2002:int",{kind:"scalar",resolve:Px,construct:_x,predicate:Ox,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Wd=m((T1,Kd)=>{"use strict";var Gd=tr(),xx=J(),wx=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 Ex(e){return!(e===null||!wx.test(e)||e[e.length-1]==="_")}s(Ex,"resolveYamlFloat");function jx(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(jx,"constructYamlFloat");var Ax=/^[-+]?[0-9]+e/;function Tx(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(Gd.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ax.test(r)?r.replace("e",".e"):r}s(Tx,"representYamlFloat");function Rx(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Gd.isNegativeZero(e))}s(Rx,"isFloat");Kd.exports=new xx("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ex,construct:jx,predicate:Rx,represent:Tx,defaultStyle:"lowercase"})});var Uc=m((I1,Yd)=>{"use strict";var Ix=rr();Yd.exports=new Ix({include:[Qi()],implicit:[Bd(),Ud(),Hd(),Wd()]})});var Zc=m((q1,Jd)=>{"use strict";var qx=rr();Jd.exports=new qx({include:[Uc()]})});var tm=m((N1,em)=>{"use strict";var Nx=J(),Xd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Qd=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 Cx(e){return e===null?!1:Xd.exec(e)!==null||Qd.exec(e)!==null}s(Cx,"resolveYamlTimestamp");function kx(e){var t,r,n,i,o,a,c,u=0,f=null,l,p,h;if(t=Xd.exec(e),t===null&&(t=Qd.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],p=+(t[11]||0),f=(l*60+p)*6e4,t[9]==="-"&&(f=-f)),h=new Date(Date.UTC(r,n,i,o,a,c,u)),f&&h.setTime(h.getTime()-f),h}s(kx,"constructYamlTimestamp");function Mx(e){return e.toISOString()}s(Mx,"representYamlTimestamp");em.exports=new Nx("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Cx,construct:kx,instanceOf:Date,represent:Mx})});var nm=m((k1,rm)=>{"use strict";var Dx=J();function Fx(e){return e==="<<"||e===null}s(Fx,"resolveYamlMerge");rm.exports=new Dx("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fx})});var sm=m((D1,om)=>{"use strict";var nr;try{im=require,nr=im("buffer").Buffer}catch{}var im,Vx=J(),Hc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function Lx(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Hc;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(Lx,"resolveYamlBinary");function Bx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Hc,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),nr?nr.from?nr.from(c):new nr(c):c}s(Bx,"constructYamlBinary");function zx(e){var t="",r=0,n,i,o=e.length,a=Hc;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(zx,"representYamlBinary");function Ux(e){return nr&&nr.isBuffer(e)}s(Ux,"isBinary");om.exports=new Vx("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Lx,construct:Bx,predicate:Ux,represent:zx})});var cm=m((V1,am)=>{"use strict";var Zx=J(),Hx=Object.prototype.hasOwnProperty,Gx=Object.prototype.toString;function Kx(e){if(e===null)return!0;var t=[],r,n,i,o,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,Gx.call(i)!=="[object Object]")return!1;for(o in i)if(Hx.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(Kx,"resolveYamlOmap");function Wx(e){return e!==null?e:[]}s(Wx,"constructYamlOmap");am.exports=new Zx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kx,construct:Wx})});var fm=m((B1,um)=>{"use strict";var Yx=J(),Jx=Object.prototype.toString;function Xx(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],Jx.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(Xx,"resolveYamlPairs");function Qx(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(Qx,"constructYamlPairs");um.exports=new Yx("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xx,construct:Qx})});var pm=m((U1,lm)=>{"use strict";var ew=J(),tw=Object.prototype.hasOwnProperty;function rw(e){if(e===null)return!0;var t,r=e;for(t in r)if(tw.call(r,t)&&r[t]!==null)return!1;return!0}s(rw,"resolveYamlSet");function nw(e){return e!==null?e:{}}s(nw,"constructYamlSet");lm.exports=new ew("tag:yaml.org,2002:set",{kind:"mapping",resolve:rw,construct:nw})});var Hr=m((H1,dm)=>{"use strict";var iw=rr();dm.exports=new iw({include:[Zc()],implicit:[tm(),nm()],explicit:[sm(),cm(),fm(),pm()]})});var hm=m((G1,mm)=>{"use strict";var ow=J();function sw(){return!0}s(sw,"resolveJavascriptUndefined");function aw(){}s(aw,"constructJavascriptUndefined");function cw(){return""}s(cw,"representJavascriptUndefined");function uw(e){return typeof e>"u"}s(uw,"isUndefined");mm.exports=new ow("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:sw,construct:aw,predicate:uw,represent:cw})});var gm=m((W1,ym)=>{"use strict";var fw=J();function lw(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(lw,"resolveJavascriptRegExp");function pw(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(pw,"constructJavascriptRegExp");function dw(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(dw,"representJavascriptRegExp");function mw(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(mw,"isRegExp");ym.exports=new fw("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:lw,construct:pw,predicate:mw,represent:dw})});var vm=m((J1,bm)=>{"use strict";var eo;try{$m=require,eo=$m("esprima")}catch{typeof window<"u"&&(eo=window.esprima)}var $m,hw=J();function yw(e){if(e===null)return!1;try{var t="("+e+")",r=eo.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(yw,"resolveJavascriptFunction");function gw(e){var t="("+e+")",r=eo.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(gw,"constructJavascriptFunction");function $w(e){return e.toString()}s($w,"representJavascriptFunction");function bw(e){return Object.prototype.toString.call(e)==="[object Function]"}s(bw,"isFunction");bm.exports=new hw("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:yw,construct:gw,predicate:bw,represent:$w})});var zn=m((Q1,Pm)=>{"use strict";var Sm=rr();Pm.exports=Sm.DEFAULT=new Sm({include:[Hr()],explicit:[hm(),gm(),vm()]})});var Lm=m((eq,Un)=>{"use strict";var ft=tr(),Am=Ur(),vw=Ad(),Tm=Hr(),Sw=zn(),wt=Object.prototype.hasOwnProperty,to=1,Rm=2,Im=3,ro=4,Gc=1,Pw=2,_m=3,_w=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ow=/[\x85\u2028\u2029]/,xw=/[,\[\]\{\}]/,qm=/^(?:!|!!|![a-z\-]+!)$/i,Nm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Om(e){return Object.prototype.toString.call(e)}s(Om,"_class");function Ye(e){return e===10||e===13}s(Ye,"is_EOL");function or(e){return e===9||e===32}s(or,"is_WHITE_SPACE");function be(e){return e===9||e===32||e===10||e===13}s(be,"is_WS_OR_EOL");function Gr(e){return e===44||e===91||e===93||e===123||e===125}s(Gr,"is_FLOW_INDICATOR");function ww(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(ww,"fromHexCode");function Ew(e){return e===120?2:e===117?4:e===85?8:0}s(Ew,"escapedHexLen");function jw(e){return 48<=e&&e<=57?e-48:-1}s(jw,"fromDecimalCode");function xm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(xm,"simpleEscapeSequence");function Aw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(Aw,"charFromCodepoint");var Cm=new Array(256),km=new Array(256);for(ir=0;ir<256;ir++)Cm[ir]=xm(ir)?1:0,km[ir]=xm(ir);var ir;function Tw(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Sw,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(Tw,"State");function Mm(e,t){return new Am(t,new vw(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Mm,"generateError");function O(e,t){throw Mm(e,t)}s(O,"throwError");function no(e,t){e.onWarning&&e.onWarning.call(null,Mm(e,t))}s(no,"throwWarning");var wm={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&O(t,"duplication of %YAML directive"),n.length!==1&&O(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&O(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&O(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&no(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&O(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],qm.test(i)||O(t,"ill-formed tag handle (first argument) of the TAG directive"),wt.call(t.tagMap,i)&&O(t,'there is a previously declared suffix for "'+i+'" tag handle'),Nm.test(o)||O(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function xt(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||O(e,"expected valid JSON character");else _w.test(c)&&O(e,"the stream contains non-printable characters");e.result+=c}}s(xt,"captureSegment");function Em(e,t,r,n){var i,o,a,c;for(ft.isObject(r)||O(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],wt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Em,"mergeMappings");function Kr(e,t,r,n,i,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&O(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Om(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Om(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,f=o.length;u<f;u+=1)Em(e,t,o[u],r);else Em(e,t,o,r);else!e.json&&!wt.call(r,i)&&wt.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,O(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(Kr,"storeMappingPair");function Kc(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++):O(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Kc,"readLineBreak");function K(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;or(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(Ye(i))for(Kc(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&&no(e,"deficient indentation"),n}s(K,"skipSeparationSpace");function io(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||be(r)))}s(io,"testDocumentSeparator");function Wc(e,t){t===1?e.result+=" ":t>1&&(e.result+=ft.repeat(`
21
- `,t-1))}s(Wc,"writeFoldedLines");function Rw(e,t,r){var n,i,o,a,c,u,f,l,p=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),be(d)||Gr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),be(i)||r&&Gr(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),be(i)||r&&Gr(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),be(n))break}else{if(e.position===e.lineStart&&io(e)||r&&Gr(d))break;if(Ye(d))if(u=e.line,f=e.lineStart,l=e.lineIndent,K(e,!1,-1),e.lineIndent>=t){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=f,e.lineIndent=l;break}}c&&(xt(e,o,a,!1),Wc(e,e.line-u),o=a=e.position,c=!1),or(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return xt(e,o,a,!1),e.result?!0:(e.kind=p,e.result=h,!1)}s(Rw,"readPlainScalar");function Iw(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(xt(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 Ye(r)?(xt(e,n,i,!0),Wc(e,K(e,!1,t)),n=i=e.position):e.position===e.lineStart&&io(e)?O(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);O(e,"unexpected end of the stream within a single quoted scalar")}s(Iw,"readSingleQuotedScalar");function qw(e,t){var r,n,i,o,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return xt(e,r,e.position,!0),e.position++,!0;if(c===92){if(xt(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Ye(c))K(e,!1,t);else if(c<256&&Cm[c])e.result+=km[c],e.position++;else if((a=Ew(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=ww(c))>=0?o=(o<<4)+a:O(e,"expected hexadecimal character");e.result+=Aw(o),e.position++}else O(e,"unknown escape sequence");r=n=e.position}else Ye(c)?(xt(e,r,n,!0),Wc(e,K(e,!1,t)),r=n=e.position):e.position===e.lineStart&&io(e)?O(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}O(e,"unexpected end of the stream within a double quoted scalar")}s(qw,"readDoubleQuotedScalar");function Nw(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,f,l,p,h={},d,y,$,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,p=!1,o=[];else if(g===123)u=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(K(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=o,!0;r||O(e,"missed comma between flow collection entries"),y=d=$=null,f=l=!1,g===63&&(c=e.input.charCodeAt(e.position+1),be(c)&&(f=l=!0,e.position++,K(e,!0,t))),n=e.line,Wr(e,t,to,!1,!0),y=e.tag,d=e.result,K(e,!0,t),g=e.input.charCodeAt(e.position),(l||e.line===n)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),K(e,!0,t),Wr(e,t,to,!1,!0),$=e.result),p?Kr(e,o,h,y,d,$):f?o.push(Kr(e,null,h,y,d,$)):o.push(d),K(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}O(e,"unexpected end of the stream within a flow collection")}s(Nw,"readFlowCollection");function Cw(e,t){var r,n,i=Gc,o=!1,a=!1,c=t,u=0,f=!1,l,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)Gc===i?i=p===43?_m:Pw:O(e,"repeat of a chomping mode identifier");else if((l=jw(p))>=0)l===0?O(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?O(e,"repeat of an indentation width identifier"):(c=t+l-1,a=!0);else break;if(or(p)){do p=e.input.charCodeAt(++e.position);while(or(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Ye(p)&&p!==0)}for(;p!==0;){for(Kc(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),Ye(p)){u++;continue}if(e.lineIndent<c){i===_m?e.result+=ft.repeat(`
22
- `,o?1+u:u):i===Gc&&o&&(e.result+=`
23
- `);break}for(n?or(p)?(f=!0,e.result+=ft.repeat(`
24
- `,o?1+u:u)):f?(f=!1,e.result+=ft.repeat(`
25
- `,u+1)):u===0?o&&(e.result+=" "):e.result+=ft.repeat(`
26
- `,u):e.result+=ft.repeat(`
27
- `,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!Ye(p)&&p!==0;)p=e.input.charCodeAt(++e.position);xt(e,r,e.position,!1)}return!0}s(Cw,"readBlockScalar");function jm(e,t){var r,n=e.tag,i=e.anchor,o=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!be(a)));){if(c=!0,e.position++,K(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Wr(e,t,Im,!1,!0),o.push(e.result),K(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)O(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(jm,"readBlockSequence");function kw(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,f={},l={},p=null,h=null,d=null,y=!1,$=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(g===63||g===58)&&be(n))g===63?(y&&(Kr(e,f,l,p,h,null),p=h=d=null),$=!0,y=!0,i=!0):y?(y=!1,i=!0):O(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(Wr(e,r,Rm,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);or(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),be(g)||O(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Kr(e,f,l,p,h,null),p=h=d=null),$=!0,y=!1,i=!1,p=e.tag,h=e.result;else if($)O(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if($)O(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(Wr(e,t,ro,!0,i)&&(y?h=e.result:d=e.result),y||(Kr(e,f,l,p,h,d,o,a),p=h=d=null),K(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)O(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Kr(e,f,l,p,h,null),$&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),$}s(kw,"readBlockMapping");function Mw(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&O(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):O(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!be(a);)a===33&&(n?O(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),qm.test(i)||O(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),xw.test(o)&&O(e,"tag suffix cannot contain flow indicator characters")}return o&&!Nm.test(o)&&O(e,"tag name cannot contain such characters: "+o),r?e.tag=o:wt.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:O(e,'undeclared tag handle "'+i+'"'),!0}s(Mw,"readTagProperty");function Dw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&O(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!be(r)&&!Gr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(Dw,"readAnchorProperty");function Fw(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&&!be(n)&&!Gr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),wt.call(e.anchorMap,r)||O(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],K(e,!0,-1),!0}s(Fw,"readAlias");function Wr(e,t,r,n,i){var o,a,c,u=1,f=!1,l=!1,p,h,d,y,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=ro===r||Im===r,n&&K(e,!0,-1)&&(f=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Mw(e)||Dw(e);)K(e,!0,-1)?(f=!0,c=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=f||i),(u===1||ro===r)&&(to===r||Rm===r?y=t:y=t+1,$=e.position-e.lineStart,u===1?c&&(jm(e,$)||kw(e,$,y))||Nw(e,y)?l=!0:(a&&Cw(e,y)||Iw(e,y)||qw(e,y)?l=!0:Fw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&O(e,"alias node should not have any properties")):Rw(e,y,to===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=c&&jm(e,$))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&O(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(d=e.implicitTypes[p],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else wt.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&O(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):O(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):O(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}s(Wr,"composeNode");function Vw(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(K(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!be(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&O(e,"directive name must not be less than one character in length");a!==0;){for(;or(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ye(a));break}if(Ye(a))break;for(r=e.position;a!==0&&!be(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Kc(e),wt.call(wm,n)?wm[n](e,n,i):no(e,'unknown document directive "'+n+'"')}if(K(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,K(e,!0,-1)):o&&O(e,"directives end mark is expected"),Wr(e,e.lineIndent-1,ro,!1,!0),K(e,!0,-1),e.checkLineBreaks&&Ow.test(e.input.slice(t,e.position))&&no(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&io(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,K(e,!0,-1));return}if(e.position<e.length-1)O(e,"end of the stream or a document separator is expected");else return}s(Vw,"readDocument");function Dm(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 Tw(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,O(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;)Vw(r);return r.documents}s(Dm,"loadDocuments");function Fm(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Dm(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(Fm,"loadAll");function Vm(e,t){var r=Dm(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Am("expected a single document in the stream, but found more")}}s(Vm,"load");function Lw(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Fm(e,t,ft.extend({schema:Tm},r))}s(Lw,"safeLoadAll");function Bw(e,t){return Vm(e,ft.extend({schema:Tm},t))}s(Bw,"safeLoad");Un.exports.loadAll=Fm;Un.exports.load=Vm;Un.exports.safeLoadAll=Lw;Un.exports.safeLoad=Bw});var fh=m((rq,Qc)=>{"use strict";var Hn=tr(),Gn=Ur(),zw=zn(),Uw=Hr(),Wm=Object.prototype.toString,Ym=Object.prototype.hasOwnProperty,Zw=9,Zn=10,Hw=13,Gw=32,Kw=33,Ww=34,Jm=35,Yw=37,Jw=38,Xw=39,Qw=42,Xm=44,eE=45,Qm=58,tE=61,rE=62,nE=63,iE=64,eh=91,th=93,oE=96,rh=123,sE=124,nh=125,ae={};ae[0]="\\0";ae[7]="\\a";ae[8]="\\b";ae[9]="\\t";ae[10]="\\n";ae[11]="\\v";ae[12]="\\f";ae[13]="\\r";ae[27]="\\e";ae[34]='\\"';ae[92]="\\\\";ae[133]="\\N";ae[160]="\\_";ae[8232]="\\L";ae[8233]="\\P";var aE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function cE(e,t){var r,n,i,o,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&Ym.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(cE,"compileStyleMap");function Bm(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 Gn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Hn.repeat("0",n-t.length)+t}s(Bm,"encodeHex");function uE(e){this.schema=e.schema||zw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Hn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=cE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(uE,"State");function zm(e,t){for(var r=Hn.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
29
- `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(o+=r),o+=a;return o}s(zm,"indentString");function Yc(e,t){return`
31
- `+Hn.repeat(" ",e.indent*t)}s(Yc,"generateNextLine");function fE(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(fE,"testImplicitResolving");function Xc(e){return e===Gw||e===Zw}s(Xc,"isWhitespace");function Yr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(Yr,"isPrintable");function lE(e){return Yr(e)&&!Xc(e)&&e!==65279&&e!==Hw&&e!==Zn}s(lE,"isNsChar");function Um(e,t){return Yr(e)&&e!==65279&&e!==Xm&&e!==eh&&e!==th&&e!==rh&&e!==nh&&e!==Qm&&(e!==Jm||t&&lE(t))}s(Um,"isPlainSafe");function pE(e){return Yr(e)&&e!==65279&&!Xc(e)&&e!==eE&&e!==nE&&e!==Qm&&e!==Xm&&e!==eh&&e!==th&&e!==rh&&e!==nh&&e!==Jm&&e!==Jw&&e!==Qw&&e!==Kw&&e!==sE&&e!==tE&&e!==rE&&e!==Xw&&e!==Ww&&e!==Yw&&e!==iE&&e!==oE}s(pE,"isPlainSafeFirst");function ih(e){var t=/^\n* /;return t.test(e)}s(ih,"needIndentIndicator");var oh=1,sh=2,ah=3,ch=4,oo=5;function dE(e,t,r,n,i){var o,a,c,u=!1,f=!1,l=n!==-1,p=-1,h=pE(e.charCodeAt(0))&&!Xc(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Yr(a))return oo;c=o>0?e.charCodeAt(o-1):null,h=h&&Um(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Zn)u=!0,l&&(f=f||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Yr(a))return oo;c=o>0?e.charCodeAt(o-1):null,h=h&&Um(a,c)}f=f||l&&o-p-1>n&&e[p+1]!==" "}return!u&&!f?h&&!i(e)?oh:sh:r>9&&ih(e)?oo:f?ch:ah}s(dE,"chooseScalarStyle");function mE(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&aE.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return fE(e,u)}switch(s(c,"testAmbiguity"),dE(t,a,e.indent,o,c)){case oh:return t;case sh:return"'"+t.replace(/'/g,"''")+"'";case ah:return"|"+Zm(t,e.indent)+Hm(zm(t,i));case ch:return">"+Zm(t,e.indent)+Hm(zm(hE(t,o),i));case oo:return'"'+yE(t,o)+'"';default:throw new Gn("impossible error: invalid scalar style")}}()}s(mE,"writeScalar");function Zm(e,t){var r=ih(e)?String(t):"",n=e[e.length-1]===`
12
+ deps: ${r}}`,"params")};var ZO={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(e){let[t,r]=KO(e);rm(e,t),nm(e,r)}};function KO({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(KO,"splitDependencies");function rm(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 u=t[a];if(u.length===0)continue;let c=(0,ji.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,ji.checkReportMissingProp)(e,l)}):(r.if((0,Zc._)`${c} && (${(0,ji.checkMissingProp)(e,u,s)})`),(0,ji.reportMissingProp)(e,s),r.else())}}o(rm,"validatePropertyDeps");yt.validatePropertyDeps=rm;function nm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let u in t)(0,GO.alwaysValidSchema)(s,t[u])||(r.if((0,ji.propertyInData)(r,n,u,s.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}o(nm,"validateSchemaDeps");yt.validateSchemaDeps=nm;yt.default=ZO});var om=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var im=A(),WO=T(),YO={message:"property name must be valid",params:o(({params:e})=>(0,im._)`{propertyName: ${e.propertyName}}`,"params")},QO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:YO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,WO.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,im.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Kc.default=QO});var Yc=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var rs=Ve(),tt=A(),JO=Fe(),ns=T(),XO={message:"must NOT have additional properties",params:o(({params:e})=>(0,tt._)`{additionalProperty: ${e.additionalProperty}}`,"params")},eE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:XO,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:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,ns.alwaysValidSchema)(a,r))return;let l=(0,rs.allSchemaProperties)(n.properties),p=(0,rs.allSchemaProperties)(n.patternProperties);f(),e.ok((0,tt._)`${s} === ${JO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}o(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,ns.schemaRefOrVal)(a,n.properties,"properties");_=(0,rs.isOwnProperty)(t,b,v)}else l.length?_=(0,tt.or)(...l.map(b=>(0,tt._)`${v} === ${b}`)):_=tt.nil;return p.length&&(_=(0,tt.or)(_,...p.map(b=>(0,tt._)`${(0,rs.usePattern)(e,b)}.test(${v})`))),(0,tt.not)(_)}o(d,"isAdditional");function h(v){t.code((0,tt._)`delete ${i}[${v}]`)}o(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,ns.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,tt.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,tt.not)(_),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,_,b){let S={keyword:"additionalProperties",dataProp:v,dataPropType:ns.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,_)}o(y,"applyAdditionalSchema")}};Wc.default=eE});var um=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var tE=bi(),sm=Ve(),Qc=T(),am=Yc(),rE={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&&am.default.code(new tE.KeywordCxt(s,am.default,"additionalProperties"));let a=(0,sm.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Qc.mergeEvaluated.props(t,(0,Qc.toHash)(a),s.props));let u=a.filter(f=>!(0,Qc.alwaysValidSchema)(s,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,sm.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}o(p,"applyPropertySchema")}};Jc.default=rE});var pm=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var cm=Ve(),is=A(),lm=T(),fm=T(),nE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,u=(0,cm.allSchemaProperties)(r),c=u.filter(y=>(0,lm.alwaysValidSchema)(s,r[y]));if(u.length===0||c.length===u.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof is.Name)&&(s.props=(0,fm.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let y of u)l&&h(y),s.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}o(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,lm.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,is._)`${(0,cm.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:fm.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,is._)`${f}[${v}]`,!0):!_&&!s.allErrors&&t.if((0,is.not)(p),()=>t.break())})})}o(g,"validateProperties")}};Xc.default=nE});var dm=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var iE=T(),oE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,iE.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"}};el.default=oE});var hm=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var sE=Ve(),aE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sE.validateUnion,error:{message:"must match a schema in anyOf"}};tl.default=aE});var mm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var os=A(),uE=T(),cE={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,os._)`{passingSchemas: ${e.passing}}`,"params")},lE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cE,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),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,uE.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,os._)`${c} && ${a}`).assign(a,!1).assign(u,(0,os._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,os.Name)})})}o(l,"validateOneOf")}};rl.default=lE});var gm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var fE=T(),pE={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,fE.alwaysValidSchema)(n,s))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};nl.default=pE});var _m=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var ss=A(),vm=T(),dE={message:o(({params:e})=>(0,ss.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ss._)`{failingKeyword: ${e.ifClause}}`,"params")},hE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:dE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,vm.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ym(n,"then"),s=ym(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,ss.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}o(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,ss._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function ym(e,t){let r=e.schema[t];return r!==void 0&&!(0,vm.alwaysValidSchema)(e,r)}o(ym,"hasSchema");il.default=hE});var bm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var mE=T(),gE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,mE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ol.default=gE});var al=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var yE=Bc(),vE=Jh(),_E=Hc(),bE=em(),SE=tm(),PE=ts(),$E=om(),OE=Yc(),EE=um(),xE=pm(),wE=dm(),AE=hm(),IE=mm(),kE=gm(),RE=_m(),TE=bm();function CE(e=!1){let t=[wE.default,AE.default,IE.default,kE.default,RE.default,TE.default,$E.default,OE.default,PE.default,EE.default,xE.default];return e?t.push(vE.default,bE.default):t.push(yE.default,_E.default),t.push(SE.default),t}o(CE,"getApplicator");sl.default=CE});var Sm=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var Q=A(),NE={message:o(({schemaCode:e})=>(0,Q.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Q._)`{format: ${e}}`,"params")},qE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:NE,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Q._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,Q._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Q._)`${y}.type || "string"`).assign(_,(0,Q._)`${y}.validate`),()=>r.assign(v,(0,Q._)`"string"`).assign(_,y)),e.fail$data((0,Q.or)(b(),S()));function b(){return c.strictSchema===!1?Q.nil:(0,Q._)`${a} && !${_}`}o(b,"unknownFmt");function S(){let E=p.$async?(0,Q._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Q._)`${_}(${n})`,$=(0,Q._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,Q._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}o(S,"invalidFmt")}o(d,"validate$DataFormat");function h(){let g=f.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,_]=S(g);y===t&&e.pass(E());function b(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function S($){let M=$ instanceof RegExp?(0,Q.regexpCode)($):c.code.formats?(0,Q._)`${c.code.formats}${(0,Q.getProperty)(s)}`:void 0,j=r.scopeValue("formats",{key:s,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Q._)`${j}.validate`]:["string",$,j]}o(S,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Q._)`await ${_}(${n})`}return typeof v=="function"?(0,Q._)`${_}(${n})`:(0,Q._)`${_}.test(${n})`}o(E,"validCondition")}o(h,"validateFormat")}};ul.default=qE});var ll=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var jE=Sm(),ME=[jE.default];cl.default=ME});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var DE=Vh(),LE=Kh(),FE=al(),VE=ll(),BE=["title","description","default"],HE=[DE.default,LE.default,FE.default(),VE.default,BE];fl.default=HE});var Om=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.DiscrError=void 0;var $m;(function(e){e.Tag="tag",e.Mapping="mapping"})($m||(as.DiscrError=$m={}))});var hl=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var gn=A(),pl=Om(),Em=Pi(),UE=Si(),zE=T(),GE={message:o(({params:{discrError:e,tagName:t}})=>e===pl.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,gn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},ZE={keyword:"discriminator",type:"object",schemaType:"object",error:GE,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 u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,gn._)`${r}${(0,gn.getProperty)(u)}`);t.if((0,gn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:pl.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,gn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:pl.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}o(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,gn.Name),g}o(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,zE.schemaHasRulesButRef)($,s.self.RULES)){let j=$.$ref;if($=Em.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,j),$ instanceof Em.SchemaEnv&&($=$.schema),$===void 0)throw new UE.default(s.opts.uriResolver,s.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),b(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function b(E,$){if(E.const)S(E.const,$);else if(E.enum)for(let M of E.enum)S(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function S(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}o(d,"getMapping")}};dl.default=ZE});var xm=m((k4,KE)=>{KE.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 Im=m((ee,Am)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.CodeGen=ee.Name=ee.nil=ee.stringify=ee.str=ee._=ee.KeywordCxt=void 0;var WE=hn(),YE=Pm(),QE=hl(),wm=xm(),JE=["/properties"],us="http://json-schema.org/draft-04/schema",ml=class ml extends WE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),YE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(QE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(wm,JE):wm;this.addMetaSchema(t,us,!1),this.refs["http://json-schema.org/schema"]=us}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(us)?us:void 0)}};o(ml,"Ajv");var cs=ml;Am.exports=ee=cs;Object.defineProperty(ee,"__esModule",{value:!0});ee.default=cs;var XE=hn();Object.defineProperty(ee,"KeywordCxt",{enumerable:!0,get:o(function(){return XE.KeywordCxt},"get")});var yn=hn();Object.defineProperty(ee,"_",{enumerable:!0,get:o(function(){return yn._},"get")});Object.defineProperty(ee,"str",{enumerable:!0,get:o(function(){return yn.str},"get")});Object.defineProperty(ee,"stringify",{enumerable:!0,get:o(function(){return yn.stringify},"get")});Object.defineProperty(ee,"nil",{enumerable:!0,get:o(function(){return yn.nil},"get")});Object.defineProperty(ee,"Name",{enumerable:!0,get:o(function(){return yn.Name},"get")});Object.defineProperty(ee,"CodeGen",{enumerable:!0,get:o(function(){return yn.CodeGen},"get")})});var km=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ex={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gl.default=ex});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var tx=km(),rx=wi(),nx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tx.default,rx.default];yl.default=nx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ls=A(),Yt=ls.operators,fs={maximum:{okStr:"<=",ok:Yt.LTE,fail:Yt.GT},minimum:{okStr:">=",ok:Yt.GTE,fail:Yt.LT},exclusiveMaximum:{okStr:"<",ok:Yt.LT,fail:Yt.GTE},exclusiveMinimum:{okStr:">",ok:Yt.GT,fail:Yt.LTE}},ix={message:o(({keyword:e,schemaCode:t})=>(0,ls.str)`must be ${fs[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,ls._)`{comparison: ${fs[e].okStr}, limit: ${t}}`,"params")},ox={keyword:Object.keys(fs),type:"number",schemaType:"number",$data:!0,error:ix,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ls._)`${r} ${fs[t].fail} ${n} || isNaN(${r})`)}};vl.default=ox});var Cm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var sx=Tm(),ax=_c(),ux=Pc(),cx=Oc(),lx=xc(),fx=Ac(),px=kc(),dx=Nc(),hx=Mc(),mx=Lc(),gx=[sx.default,ax.default,ux.default,cx.default,lx.default,fx.default,px.default,dx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hx.default,mx.default];_l.default=gx});var Sl=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.dynamicAnchor=void 0;var bl=A(),yx=Fe(),Nm=Pi(),vx=wi(),_x={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>qm(e,e.schema),"code")};function qm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,bl._)`${yx.default.dynamicAnchors}${(0,bl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:bx(e);r.if((0,bl._)`!${i}`,()=>r.assign(i,s))}o(qm,"dynamicAnchor");Mi.dynamicAnchor=qm;function bx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new Nm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:s,localRefs:a,meta:u});return Nm.compileSchema.call(n,l),(0,vx.getValidate)(e,l)}o(bx,"_getValidate");Mi.default=_x});var Pl=m(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.dynamicRef=void 0;var jm=A(),Sx=Fe(),Mm=wi(),Px={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Dm(e,e.schema),"code")};function Dm(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 c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,jm._)`${Sx.default.dynamicAnchors}${(0,jm.getProperty)(s)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}o(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,Mm.callRef)(e,c),r.let(l,!0)}):()=>(0,Mm.callRef)(e,c)}o(u,"_callRef")}o(Dm,"dynamicRef");Di.dynamicRef=Dm;Di.default=Px});var Lm=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var $x=Sl(),Ox=T(),Ex={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$x.dynamicAnchor)(e,""):(0,Ox.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$l.default=Ex});var Fm=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var xx=Pl(),wx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,xx.dynamicRef)(e,e.schema),"code")};Ol.default=wx});var Vm=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ax=Sl(),Ix=Pl(),kx=Lm(),Rx=Fm(),Tx=[Ax.default,Ix.default,kx.default,Rx.default];El.default=Tx});var Hm=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Bm=ts(),Cx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Bm.error,code:o(e=>(0,Bm.validatePropertyDeps)(e),"code")};xl.default=Cx});var Um=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Nx=ts(),qx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Nx.validateSchemaDeps)(e),"code")};wl.default=qx});var zm=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var jx=T(),Mx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,jx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Al.default=Mx});var Gm=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Dx=Hm(),Lx=Um(),Fx=zm(),Vx=[Dx.default,Lx.default,Fx.default];Il.default=Vx});var Km=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Qt=A(),Zm=T(),Bx=Fe(),Hx={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Qt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Ux={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Hx,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:u}=s;u instanceof Qt.Name?t.if((0,Qt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),s.props=!0,e.ok((0,Qt._)`${i} === ${Bx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Zm.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Zm.Type.Str},d),a||t.if((0,Qt.not)(d),()=>t.break())}}o(c,"unevaluatedPropCode");function l(f,d){return(0,Qt._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Qt._)`${d} !== ${g}`);return(0,Qt.and)(...h)}o(p,"unevaluatedStatic")}};kl.default=Ux});var Ym=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Ir=A(),Wm=T(),zx={message:o(({params:{len:e}})=>(0,Ir.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ir._)`{limit: ${e}}`,"params")},Gx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zx,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,Ir._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ir._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Wm.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Ir._)`${a} <= ${s}`);t.if((0,Ir.not)(c),()=>u(c,s)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Wm.Type.Num},c),i.allErrors||t.if((0,Ir.not)(c),()=>t.break())})}o(u,"validateItems")}};Rl.default=Gx});var Qm=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Zx=Km(),Kx=Ym(),Wx=[Zx.default,Kx.default];Tl.default=Wx});var Jm=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.contentVocabulary=vn.metadataVocabulary=void 0;vn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var eg=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var Yx=Rm(),Qx=Cm(),Jx=al(),Xx=Vm(),ew=Gm(),tw=Qm(),rw=ll(),Xm=Jm(),nw=[Xx.default,Yx.default,Qx.default,(0,Jx.default)(!0),rw.default,Xm.metadataVocabulary,Xm.contentVocabulary,ew.default,tw.default];Cl.default=nw});var tg=m((iM,iw)=>{iw.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 rg=m((oM,ow)=>{ow.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 ng=m((sM,sw)=>{sw.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 ig=m((aM,aw)=>{aw.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 og=m((uM,uw)=>{uw.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 sg=m((cM,cw)=>{cw.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 ag=m((lM,lw)=>{lw.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 ug=m((fM,fw)=>{fw.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 cg=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var pw=tg(),dw=rg(),hw=ng(),mw=ig(),gw=og(),yw=sg(),vw=ag(),_w=ug(),bw=["/properties"];function Sw(e){return[pw,dw,hw,mw,gw,t(this,yw),vw,t(this,_w)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,bw):n}o(t,"with$data")}o(Sw,"addMetaSchema2020");Nl.default=Sw});var lg=m((B,jl)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Pw=hn(),$w=eg(),Ow=hl(),Ew=cg(),ql="https://json-schema.org/draft/2020-12/schema",Ml=class Ml extends Pw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),$w.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ow.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ew.default.call(this,t),this.refs["http://json-schema.org/schema"]=ql)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ql)?ql:void 0)}};o(Ml,"Ajv2020");var _n=Ml;B.Ajv2020=_n;jl.exports=B=_n;jl.exports.Ajv2020=_n;Object.defineProperty(B,"__esModule",{value:!0});B.default=_n;var xw=bi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return xw.KeywordCxt},"get")});var bn=A();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return bn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return bn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return bn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return bn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return bn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return bn.CodeGen},"get")});var ww=Ho();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return ww.default},"get")});var Aw=Si();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return Aw.default},"get")})});var fg=m((mM,Iw)=>{Iw.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 pg=m((gM,kw)=>{kw.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 dg=m((yM,Rw)=>{Rw.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 hg=m((vM,Tw)=>{Tw.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 mg=m((se,Sn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=fg();se.openapiV2=pg();se.openapiV3=dg();se.openapiV31=hg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Sn=="object"&&typeof Sn.exports=="object"&&(Sn.exports=Object.assign(Sn.exports.default,Sn.exports))});var Fl=m((_M,gg)=>{"use strict";var Cw=Oo(),{ono:Nw}=Qe(),qw=Im(),jw=lg(),{openapi:Dl}=mg();gg.exports=Mw;function Mw(e){let t,r;if(e.swagger)r=Dl.v2,t=Ll();else if(e.openapi.startsWith("3.1")){r=Dl.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=Ll(!1)}else r=Dl.v3,t=Ll();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
+ `+Dw(i);throw Nw.syntax(i,{details:i},s)}}o(Mw,"validateSchema");function Ll(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new qw(t):new jw(t)}o(Ll,"initializeAjv");function Dw(e,t){t=t||" ";let r="";for(let n of e)r+=Cw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}o(Dw,"formatAjvError")});var vg=m((SM,yg)=>{"use strict";yg.exports=["get","put","post","delete","options","head","patch"]});var Hl=m((PM,Pg)=>{"use strict";var Lw=Oo(),{ono:he}=Qe(),Fw=vg(),Vl=["array","boolean","integer","number","string"],bg=["array","boolean","integer","number","string","object","null",void 0];Pg.exports=Vw;function Vw(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&&Bw(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Sg(s,a)}}o(Vw,"validateSpec");function Bw(e,t,r,n){for(let i of Fw){let s=t[i],a=r+"/"+i;if(s){let u=s.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw he.syntax(`Validation failed. Duplicate operation id '${u}'`);Hw(e,t,r,s,a);let c=Object.keys(s.responses||{});for(let l of c){let p=s.responses[l],f=a+"/responses/"+l;Zw(l,p||{},f)}}}}o(Bw,"validatePath");function Hw(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{_g(s)}catch(c){throw he.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{_g(a)}catch(c){throw he.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=s.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Uw(u,i),zw(u,r,i),Gw(u,e,n,i)}o(Hw,"validateParameters");function Uw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw he.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw he.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Uw,"validateBodyParameters");function zw(e,t,r){let n=t.match(Lw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw he.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 he.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 he.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 he.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(zw,"validatePathParameters");function Gw(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=bg;break;case"formData":a=i,u=Vl.concat("file");break;default:a=i,u=Vl}if(Bl(a,s,u),Sg(a,s),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw he.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Gw,"validateParameterTypes");function _g(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 he.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(_g,"checkForDuplicates");function Zw(e,t,r){if(e!=="default"&&(e<100||e>599))throw he.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;Bl(s,a,Vl)}if(t.schema){let i=bg.concat("file");if(i.indexOf(t.schema.type)===-1)throw he.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Bl(t.schema,r+"/schema",i)}}o(Zw,"validateResponse");function Bl(e,t,r){if(r.indexOf(e.type)===-1)throw he.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw he.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Bl,"validateSchema");function Sg(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 he.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Sg,"validateRequiredPropertiesExist")});var nt=m(rt=>{"use strict";var{Ono:$g}=Qe(),{stripHash:Og,toFileSystemPath:Kw}=Ce(),Pn,Jt=rt.JSONParserError=(Pn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,$g.extend(this)}},o(Pn,"JSONParserError"),Pn);Xt(Jt);var kr,Eg=rt.JSONParserErrorGroup=(kr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Kw(t.$refs._root$Ref.path)}'`,$g.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 kr.getParserErrors(this.files)}},o(kr,"JSONParserErrorGroup"),kr);Xt(Eg);var $n,Ww=rt.ParserError=($n=class extends Jt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o($n,"ParserError"),$n);Xt(Ww);var On,Yw=rt.UnmatchedParserError=(On=class extends Jt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(On,"UnmatchedParserError"),On);Xt(Yw);var En,Qw=rt.ResolverError=(En=class extends Jt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(En,"ResolverError"),En);Xt(Qw);var xn,Jw=rt.UnmatchedResolverError=(xn=class extends Jt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(xn,"UnmatchedResolverError"),xn);Xt(Jw);var wn,Xw=rt.MissingPointerError=(wn=class extends Jt{constructor(t,r){super(`Token "${t}" does not exist.`,Og(r)),this.code="EMISSINGPOINTER"}},o(wn,"MissingPointerError"),wn);Xt(Xw);var An,eA=rt.InvalidPointerError=(An=class extends Jt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Og(r)),this.code="EINVALIDPOINTER"}},o(An,"InvalidPointerError"),An);Xt(eA);function Xt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Xt,"setErrorName");rt.isHandledError=function(e){return e instanceof Jt||e instanceof Eg};rt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var wg=m((xM,xg)=>{"use strict";var{ParserError:tA}=nt();xg.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 tA(r.message,e.url)}}else return t}}});var Tr=m((wM,Rr)=>{"use strict";function Ag(e){return typeof e>"u"||e===null}o(Ag,"isNothing");function rA(e){return typeof e=="object"&&e!==null}o(rA,"isObject");function nA(e){return Array.isArray(e)?e:Ag(e)?[]:[e]}o(nA,"toArray");function iA(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(iA,"extend");function oA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(oA,"repeat");function sA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(sA,"isNegativeZero");Rr.exports.isNothing=Ag;Rr.exports.isObject=rA;Rr.exports.toArray=nA;Rr.exports.repeat=oA;Rr.exports.isNegativeZero=sA;Rr.exports.extend=iA});var In=m((IM,Ig)=>{"use strict";function Li(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(Li,"YAMLException");Li.prototype=Object.create(Error.prototype);Li.prototype.constructor=Li;Li.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ig.exports=Li});var Tg=m((RM,Rg)=>{"use strict";var kg=Tr();function Ul(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Ul,"Mark");Ul.prototype.getSnippet=o(function(t,r){var n,i,s,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
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
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return u=this.buffer.slice(i,a),kg.repeat(" ",t)+n+u+s+`
17
+ `+kg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Ul.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");Rg.exports=Ul});var te=m((CM,Ng)=>{"use strict";var Cg=In(),aA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],uA=["scalar","sequence","mapping"];function cA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(cA,"compileStyleAliases");function lA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(aA.indexOf(r)===-1)throw new Cg('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=cA(t.styleAliases||null),uA.indexOf(this.kind)===-1)throw new Cg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(lA,"Type");Ng.exports=lA});var Cr=m((qM,jg)=>{"use strict";var qg=Tr(),ps=In(),fA=te();function zl(e,t,r){var n=[];return e.include.forEach(function(i){r=zl(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(zl,"compileList");function pA(){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(pA,"compileMap");function kn(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 ps("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zl(this,"implicit",[]),this.compiledExplicit=zl(this,"explicit",[]),this.compiledTypeMap=pA(this.compiledImplicit,this.compiledExplicit)}o(kn,"Schema");kn.DEFAULT=null;kn.create=o(function(){var t,r;switch(arguments.length){case 1:t=kn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ps("Wrong number of arguments for Schema.create function")}if(t=qg.toArray(t),r=qg.toArray(r),!t.every(function(n){return n instanceof kn}))throw new ps("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof fA}))throw new ps("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new kn({include:t,explicit:r})},"createSchema");jg.exports=kn});var Dg=m((MM,Mg)=>{"use strict";var dA=te();Mg.exports=new dA("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var Fg=m((LM,Lg)=>{"use strict";var hA=te();Lg.exports=new hA("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Bg=m((VM,Vg)=>{"use strict";var mA=te();Vg.exports=new mA("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ds=m((HM,Hg)=>{"use strict";var gA=Cr();Hg.exports=new gA({explicit:[Dg(),Fg(),Bg()]})});var zg=m((UM,Ug)=>{"use strict";var yA=te();function vA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(vA,"resolveYamlNull");function _A(){return null}o(_A,"constructYamlNull");function bA(e){return e===null}o(bA,"isNull");Ug.exports=new yA("tag:yaml.org,2002:null",{kind:"scalar",resolve:vA,construct:_A,predicate:bA,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 Zg=m((GM,Gg)=>{"use strict";var SA=te();function PA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(PA,"resolveYamlBoolean");function $A(e){return e==="true"||e==="True"||e==="TRUE"}o($A,"constructYamlBoolean");function OA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(OA,"isBoolean");Gg.exports=new SA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:PA,construct:$A,predicate:OA,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 Wg=m((KM,Kg)=>{"use strict";var EA=Tr(),xA=te();function wA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(wA,"isHexCode");function AA(e){return 48<=e&&e<=55}o(AA,"isOctCode");function IA(e){return 48<=e&&e<=57}o(IA,"isDecCode");function kA(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(!wA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!AA(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(!IA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(kA,"resolveYamlInteger");function RA(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(RA,"constructYamlInteger");function TA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!EA.isNegativeZero(e)}o(TA,"isInteger");Kg.exports=new xA("tag:yaml.org,2002:int",{kind:"scalar",resolve:kA,construct:RA,predicate:TA,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 Jg=m((YM,Qg)=>{"use strict";var Yg=Tr(),CA=te(),NA=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 qA(e){return!(e===null||!NA.test(e)||e[e.length-1]==="_")}o(qA,"resolveYamlFloat");function jA(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(jA,"constructYamlFloat");var MA=/^[-+]?[0-9]+e/;function DA(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(Yg.isNegativeZero(e))return"-0.0";return r=e.toString(10),MA.test(r)?r.replace("e",".e"):r}o(DA,"representYamlFloat");function LA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Yg.isNegativeZero(e))}o(LA,"isFloat");Qg.exports=new CA("tag:yaml.org,2002:float",{kind:"scalar",resolve:qA,construct:jA,predicate:LA,represent:DA,defaultStyle:"lowercase"})});var Gl=m((JM,Xg)=>{"use strict";var FA=Cr();Xg.exports=new FA({include:[ds()],implicit:[zg(),Zg(),Wg(),Jg()]})});var Zl=m((XM,ey)=>{"use strict";var VA=Cr();ey.exports=new VA({include:[Gl()]})});var iy=m((e8,ny)=>{"use strict";var BA=te(),ty=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ry=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 HA(e){return e===null?!1:ty.exec(e)!==null||ry.exec(e)!==null}o(HA,"resolveYamlTimestamp");function UA(e){var t,r,n,i,s,a,u,c=0,l=null,p,f,d;if(t=ty.exec(e),t===null&&(t=ry.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],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,u,c)),l&&d.setTime(d.getTime()-l),d}o(UA,"constructYamlTimestamp");function zA(e){return e.toISOString()}o(zA,"representYamlTimestamp");ny.exports=new BA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HA,construct:UA,instanceOf:Date,represent:zA})});var sy=m((r8,oy)=>{"use strict";var GA=te();function ZA(e){return e==="<<"||e===null}o(ZA,"resolveYamlMerge");oy.exports=new GA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ZA})});var cy=m((i8,uy)=>{"use strict";var Nr;try{ay=require,Nr=ay("buffer").Buffer}catch{}var ay,KA=te(),Kl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function WA(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Kl;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(WA,"resolveYamlBinary");function YA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Kl,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Nr?Nr.from?Nr.from(u):new Nr(u):u}o(YA,"constructYamlBinary");function QA(e){var t="",r=0,n,i,s=e.length,a=Kl;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(QA,"representYamlBinary");function JA(e){return Nr&&Nr.isBuffer(e)}o(JA,"isBinary");uy.exports=new KA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:WA,construct:YA,predicate:JA,represent:QA})});var fy=m((s8,ly)=>{"use strict";var XA=te(),eI=Object.prototype.hasOwnProperty,tI=Object.prototype.toString;function rI(e){if(e===null)return!0;var t=[],r,n,i,s,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,tI.call(i)!=="[object Object]")return!1;for(s in i)if(eI.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(rI,"resolveYamlOmap");function nI(e){return e!==null?e:[]}o(nI,"constructYamlOmap");ly.exports=new XA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rI,construct:nI})});var dy=m((u8,py)=>{"use strict";var iI=te(),oI=Object.prototype.toString;function sI(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],oI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(sI,"resolveYamlPairs");function aI(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(aI,"constructYamlPairs");py.exports=new iI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sI,construct:aI})});var my=m((l8,hy)=>{"use strict";var uI=te(),cI=Object.prototype.hasOwnProperty;function lI(e){if(e===null)return!0;var t,r=e;for(t in r)if(cI.call(r,t)&&r[t]!==null)return!1;return!0}o(lI,"resolveYamlSet");function fI(e){return e!==null?e:{}}o(fI,"constructYamlSet");hy.exports=new uI("tag:yaml.org,2002:set",{kind:"mapping",resolve:lI,construct:fI})});var Rn=m((p8,gy)=>{"use strict";var pI=Cr();gy.exports=new pI({include:[Zl()],implicit:[iy(),sy()],explicit:[cy(),fy(),dy(),my()]})});var vy=m((d8,yy)=>{"use strict";var dI=te();function hI(){return!0}o(hI,"resolveJavascriptUndefined");function mI(){}o(mI,"constructJavascriptUndefined");function gI(){return""}o(gI,"representJavascriptUndefined");function yI(e){return typeof e>"u"}o(yI,"isUndefined");yy.exports=new dI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:hI,construct:mI,predicate:yI,represent:gI})});var by=m((m8,_y)=>{"use strict";var vI=te();function _I(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(_I,"resolveJavascriptRegExp");function bI(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(bI,"constructJavascriptRegExp");function SI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(SI,"representJavascriptRegExp");function PI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(PI,"isRegExp");_y.exports=new vI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:_I,construct:bI,predicate:PI,represent:SI})});var $y=m((y8,Py)=>{"use strict";var hs;try{Sy=require,hs=Sy("esprima")}catch{typeof window<"u"&&(hs=window.esprima)}var Sy,$I=te();function OI(e){if(e===null)return!1;try{var t="("+e+")",r=hs.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(OI,"resolveJavascriptFunction");function EI(e){var t="("+e+")",r=hs.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(EI,"constructJavascriptFunction");function xI(e){return e.toString()}o(xI,"representJavascriptFunction");function wI(e){return Object.prototype.toString.call(e)==="[object Function]"}o(wI,"isFunction");Py.exports=new $I("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:OI,construct:EI,predicate:wI,represent:xI})});var Fi=m((_8,Ey)=>{"use strict";var Oy=Cr();Ey.exports=Oy.DEFAULT=new Oy({include:[Rn()],explicit:[vy(),by(),$y()]})});var Uy=m((b8,Vi)=>{"use strict";var qt=Tr(),Ty=In(),AI=Tg(),Cy=Rn(),II=Fi(),tr=Object.prototype.hasOwnProperty,ms=1,Ny=2,qy=3,gs=4,Wl=1,kI=2,xy=3,RI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,TI=/[\x85\u2028\u2029]/,CI=/[,\[\]\{\}]/,jy=/^(?:!|!!|![a-z\-]+!)$/i,My=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wy(e){return Object.prototype.toString.call(e)}o(wy,"_class");function vt(e){return e===10||e===13}o(vt,"is_EOL");function jr(e){return e===9||e===32}o(jr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}o(ke,"is_WS_OR_EOL");function Tn(e){return e===44||e===91||e===93||e===123||e===125}o(Tn,"is_FLOW_INDICATOR");function NI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(NI,"fromHexCode");function qI(e){return e===120?2:e===117?4:e===85?8:0}o(qI,"escapedHexLen");function jI(e){return 48<=e&&e<=57?e-48:-1}o(jI,"fromDecimalCode");function Ay(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(Ay,"simpleEscapeSequence");function MI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(MI,"charFromCodepoint");var Dy=new Array(256),Ly=new Array(256);for(qr=0;qr<256;qr++)Dy[qr]=Ay(qr)?1:0,Ly[qr]=Ay(qr);var qr;function DI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||II,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(DI,"State");function Fy(e,t){return new Ty(t,new AI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(Fy,"generateError");function x(e,t){throw Fy(e,t)}o(x,"throwError");function ys(e,t){e.onWarning&&e.onWarning.call(null,Fy(e,t))}o(ys,"throwWarning");var Iy={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&&ys(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],jy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),My.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function er(e,t,r,n){var i,s,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,s=u.length;i<s;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else RI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}o(er,"captureSegment");function ky(e,t,r,n){var i,s,a,u;for(qt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)s=i[a],tr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(ky,"mergeMappings");function Cn(e,t,r,n,i,s,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&wy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&wy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)ky(e,t,s[c],r);else ky(e,t,s,r);else!e.json&&!tr.call(r,i)&&tr.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Cn,"storeMappingPair");function Yl(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(Yl,"readLineBreak");function J(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jr(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(vt(i))for(Yl(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&&ys(e,"deficient indentation"),n}o(J,"skipSeparationSpace");function vs(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||ke(r)))}o(vs,"testDocumentSeparator");function Ql(e,t){t===1?e.result+=" ":t>1&&(e.result+=qt.repeat(`
21
+ `,t-1))}o(Ql,"writeFoldedLines");function LI(e,t,r){var n,i,s,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),ke(h)||Tn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&vs(e)||r&&Tn(h))break;if(vt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,J(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(er(e,s,a,!1),Ql(e,e.line-c),s=a=e.position,u=!1),jr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return er(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(LI,"readPlainScalar");function FI(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(er(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 vt(r)?(er(e,n,i,!0),Ql(e,J(e,!1,t)),n=i=e.position):e.position===e.lineStart&&vs(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(FI,"readSingleQuotedScalar");function VI(e,t){var r,n,i,s,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return er(e,r,e.position,!0),e.position++,!0;if(u===92){if(er(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),vt(u))J(e,!1,t);else if(u<256&&Dy[u])e.result+=Ly[u],e.position++;else if((a=qI(u))>0){for(i=a,s=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=NI(u))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=MI(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else vt(u)?(er(e,r,n,!0),Ql(e,J(e,!1,t)),r=n=e.position):e.position===e.lineStart&&vs(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(VI,"readDoubleQuotedScalar");function BI(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,s=[];else if(v===123)c=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(J(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),ke(u)&&(l=p=!0,e.position++,J(e,!0,t))),n=e.line,Nn(e,t,ms,!1,!0),g=e.tag,h=e.result,J(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),J(e,!0,t),Nn(e,t,ms,!1,!0),y=e.result),f?Cn(e,s,d,g,h,y):l?s.push(Cn(e,null,d,g,h,y)):s.push(h),J(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(BI,"readFlowCollection");function HI(e,t){var r,n,i=Wl,s=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Wl===i?i=f===43?xy:kI:x(e,"repeat of a chomping mode identifier");else if((p=jI(f))>=0)p===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"):(u=t+p-1,a=!0);else break;if(jr(f)){do f=e.input.charCodeAt(++e.position);while(jr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!vt(f)&&f!==0)}for(;f!==0;){for(Yl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),vt(f)){c++;continue}if(e.lineIndent<u){i===xy?e.result+=qt.repeat(`
22
+ `,s?1+c:c):i===Wl&&s&&(e.result+=`
23
+ `);break}for(n?jr(f)?(l=!0,e.result+=qt.repeat(`
24
+ `,s?1+c:c)):l?(l=!1,e.result+=qt.repeat(`
25
+ `,c+1)):c===0?s&&(e.result+=" "):e.result+=qt.repeat(`
26
+ `,c):e.result+=qt.repeat(`
27
+ `,s?1+c:c),s=!0,a=!0,c=0,r=e.position;!vt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);er(e,r,e.position,!1)}return!0}o(HI,"readBlockScalar");function Ry(e,t){var r,n=e.tag,i=e.anchor,s=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(u=!0,e.position++,J(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Nn(e,t,qy,!1,!0),s.push(e.result),J(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(Ry,"readBlockSequence");function UI(e,t,r){var n,i,s,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(v===63||v===58)&&ke(n))v===63?(g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Nn(e,r,Ny,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);jr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ke(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=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=u,e.anchor=c,!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=u,e.anchor=c,!0;else break;if((e.line===s||e.lineIndent>t)&&(Nn(e,t,gs,!0,i)&&(g?d=e.result:h=e.result),g||(Cn(e,l,p,f,d,h,s,a),f=d=h=null),J(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Cn(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}o(UI,"readBlockMapping");function zI(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&&!ke(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),jy.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),CI.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!My.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:tr.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(zI,"readTagProperty");function GI(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&&!ke(r)&&!Tn(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(GI,"readAnchorProperty");function ZI(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&&!ke(n)&&!Tn(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),tr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],J(e,!0,-1),!0}o(ZI,"readAlias");function Nn(e,t,r,n,i){var s,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=u=gs===r||qy===r,n&&J(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;zI(e)||GI(e);)J(e,!0,-1)?(l=!0,u=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||gs===r)&&(ms===r||Ny===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(Ry(e,y)||UI(e,y,g))||BI(e,g)?p=!0:(a&&HI(e,g)||FI(e,g)||VI(e,g)?p=!0:ZI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):LI(e,g,ms===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&Ry(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+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else tr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.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||p}o(Nn,"composeNode");function KI(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&&(J(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&&!ke(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(;jr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!vt(a));break}if(vt(a))break;for(r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Yl(e),tr.call(Iy,n)?Iy[n](e,n,i):ys(e,'unknown document directive "'+n+'"')}if(J(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,J(e,!0,-1)):s&&x(e,"directives end mark is expected"),Nn(e,e.lineIndent-1,gs,!1,!0),J(e,!0,-1),e.checkLineBreaks&&TI.test(e.input.slice(t,e.position))&&ys(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,J(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(KI,"readDocument");function Vy(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 DI(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;)KI(r);return r.documents}o(Vy,"loadDocuments");function By(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Vy(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(By,"loadAll");function Hy(e,t){var r=Vy(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ty("expected a single document in the stream, but found more")}}o(Hy,"load");function WI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),By(e,t,qt.extend({schema:Cy},r))}o(WI,"safeLoadAll");function YI(e,t){return Hy(e,qt.extend({schema:Cy},t))}o(YI,"safeLoad");Vi.exports.loadAll=By;Vi.exports.load=Hy;Vi.exports.safeLoadAll=WI;Vi.exports.safeLoad=YI});var d0=m((P8,tf)=>{"use strict";var Hi=Tr(),Ui=In(),QI=Fi(),JI=Rn(),Jy=Object.prototype.toString,Xy=Object.prototype.hasOwnProperty,XI=9,Bi=10,ek=13,tk=32,rk=33,nk=34,e0=35,ik=37,ok=38,sk=39,ak=42,t0=44,uk=45,r0=58,ck=61,lk=62,fk=63,pk=64,n0=91,i0=93,dk=96,o0=123,hk=124,s0=125,me={};me[0]="\\0";me[7]="\\a";me[8]="\\b";me[9]="\\t";me[10]="\\n";me[11]="\\v";me[12]="\\f";me[13]="\\r";me[27]="\\e";me[34]='\\"';me[92]="\\\\";me[133]="\\N";me[160]="\\_";me[8232]="\\L";me[8233]="\\P";var mk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function gk(e,t){var r,n,i,s,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&Xy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}o(gk,"compileStyleMap");function zy(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 Ui("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Hi.repeat("0",n-t.length)+t}o(zy,"encodeHex");function yk(e){this.schema=e.schema||QI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Hi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gk(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(yk,"State");function Gy(e,t){for(var r=Hi.repeat(" ",t),n=0,i=-1,s="",a,u=e.length;n<u;)i=e.indexOf(`
29
+ `,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
+ `&&(s+=r),s+=a;return s}o(Gy,"indentString");function Jl(e,t){return`
31
+ `+Hi.repeat(" ",e.indent*t)}o(Jl,"generateNextLine");function vk(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(vk,"testImplicitResolving");function ef(e){return e===tk||e===XI}o(ef,"isWhitespace");function qn(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(qn,"isPrintable");function _k(e){return qn(e)&&!ef(e)&&e!==65279&&e!==ek&&e!==Bi}o(_k,"isNsChar");function Zy(e,t){return qn(e)&&e!==65279&&e!==t0&&e!==n0&&e!==i0&&e!==o0&&e!==s0&&e!==r0&&(e!==e0||t&&_k(t))}o(Zy,"isPlainSafe");function bk(e){return qn(e)&&e!==65279&&!ef(e)&&e!==uk&&e!==fk&&e!==r0&&e!==t0&&e!==n0&&e!==i0&&e!==o0&&e!==s0&&e!==e0&&e!==ok&&e!==ak&&e!==rk&&e!==hk&&e!==ck&&e!==lk&&e!==sk&&e!==nk&&e!==ik&&e!==pk&&e!==dk}o(bk,"isPlainSafeFirst");function a0(e){var t=/^\n* /;return t.test(e)}o(a0,"needIndentIndicator");var u0=1,c0=2,l0=3,f0=4,_s=5;function Sk(e,t,r,n,i){var s,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=bk(e.charCodeAt(0))&&!ef(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!qn(a))return _s;u=s>0?e.charCodeAt(s-1):null,d=d&&Zy(a,u)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Bi)c=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!qn(a))return _s;u=s>0?e.charCodeAt(s-1):null,d=d&&Zy(a,u)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?u0:c0:r>9&&a0(e)?_s:l?f0:l0}o(Sk,"chooseScalarStyle");function Pk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&mk.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 u(c){return vk(e,c)}switch(o(u,"testAmbiguity"),Sk(t,a,e.indent,s,u)){case u0:return t;case c0:return"'"+t.replace(/'/g,"''")+"'";case l0:return"|"+Ky(t,e.indent)+Wy(Gy(t,i));case f0:return">"+Ky(t,e.indent)+Wy(Gy($k(t,s),i));case _s:return'"'+Ok(t,s)+'"';default:throw new Ui("impossible error: invalid scalar style")}}()}o(Pk,"writeScalar");function Ky(e,t){var r=a0(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
- `),o=i?"+":n?"":"-";return r+o+`
35
- `}s(Zm,"blockHeader");function Hm(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}s(Hm,"dropEndingNewline");function hE(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
37
- `);return f=f!==-1?f:e.length,r.lastIndex=f,Gm(e.slice(0,f),t)}(),i=e[0]===`
38
- `||e[0]===" ",o,a;a=r.exec(e);){var c=a[1],u=a[2];o=u[0]===" ",n+=c+(!i&&!o&&u!==""?`
39
- `:"")+Gm(u,t),i=o}return n}s(hE,"foldString");function Gm(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(o=a>i?a:c,u+=`
40
- `+e.slice(i,o),i=o+1),a=c;return u+=`
41
- `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(Gm,"foldLine");function yE(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Bm((r-55296)*1024+n-56320+65536),o++;continue}i=ae[r],t+=!i&&Yr(r)?e[o]:i||Bm(r)}return t}s(yE,"escapeString");function gE(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)sr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(gE,"writeFlowSequence");function $E(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)sr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Yc(e,t)),e.dump&&Zn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s($E,"writeBlockSequence");function bE(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,c,u,f,l;for(a=0,c=o.length;a<c;a+=1)l="",a!==0&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[a],f=r[u],sr(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),sr(e,t,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}s(bE,"writeFlowMapping");function vE(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,f,l,p,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Gn("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)h="",(!n||c!==0)&&(h+=Yc(e,t)),f=a[c],l=r[f],sr(e,t+1,f,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Zn===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=Yc(e,t)),sr(e,t+1,l,!0,p)&&(e.dump&&Zn===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=o,e.dump=i||"{}"}s(vE,"writeBlockMapping");function Km(e,t,r){var n,i,o,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,Wm.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(Ym.call(c.represent,u))n=c.represent[u](t,u);else throw new Gn("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(Km,"detectType");function sr(e,t,r,n,i,o){e.tag=null,e.dump=r,Km(e,r,!1)||Km(e,r,!0);var a=Wm.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,f;if(c&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(vE(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(bE(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var l=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?($E(e,l,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(gE(e,l,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&mE(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Gn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(sr,"writeNode");function SE(e,t){var r=[],n=[],i,o;for(Jc(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(SE,"getDuplicateReferences");function Jc(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Jc(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jc(e[n[i]],t,r)}s(Jc,"inspectNode");function uh(e,t){t=t||{};var r=new uE(t);return r.noRefs||SE(e,r),sr(r,0,e,!0,!0)?r.dump+`
43
- `:""}s(uh,"dump");function PE(e,t){return uh(e,Hn.extend({schema:Uw},t))}s(PE,"safeDump");Qc.exports.dump=uh;Qc.exports.safeDump=PE});var ph=m((iq,Z)=>{"use strict";var so=Lm(),lh=fh();function ao(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(ao,"deprecated");Z.exports.Type=J();Z.exports.Schema=rr();Z.exports.FAILSAFE_SCHEMA=Qi();Z.exports.JSON_SCHEMA=Uc();Z.exports.CORE_SCHEMA=Zc();Z.exports.DEFAULT_SAFE_SCHEMA=Hr();Z.exports.DEFAULT_FULL_SCHEMA=zn();Z.exports.load=so.load;Z.exports.loadAll=so.loadAll;Z.exports.safeLoad=so.safeLoad;Z.exports.safeLoadAll=so.safeLoadAll;Z.exports.dump=lh.dump;Z.exports.safeDump=lh.safeDump;Z.exports.YAMLException=Ur();Z.exports.MINIMAL_SCHEMA=Qi();Z.exports.SAFE_SCHEMA=Hr();Z.exports.DEFAULT_SCHEMA=zn();Z.exports.scan=ao("scan");Z.exports.parse=ao("parse");Z.exports.compose=ao("compose");Z.exports.addConstructor=ao("addConstructor")});var mh=m((sq,dh)=>{"use strict";var _E=ph();dh.exports=_E});var yh=m((aq,hh)=>{"use strict";var{ParserError:OE}=De(),xE=mh();hh.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 xE.safeLoad(t)}catch(r){throw new OE(r.message,e.url)}else return t}}});var $h=m((cq,gh)=>{"use strict";var{ParserError:wE}=De(),EE=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;gh.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&EE.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 wE("data is not text",e.url)}}});var vh=m((uq,bh)=>{"use strict";var jE=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;bh.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&jE.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var _h=m((fq,Ph)=>{"use strict";var AE=require("fs"),{ono:eu}=Ie(),Sh=Se(),{ResolverError:tu}=De();Ph.exports={order:100,canRead(e){return Sh.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Sh.toFileSystemPath(e.url)}catch(i){r(new tu(eu.uri(i,`Malformed URI: ${e.url}`),e.url))}try{AE.readFile(n,(i,o)=>{i?r(new tu(eu(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new tu(eu(i,`Error opening file "${n}"`),n))}})}}});var Eh=m((lq,wh)=>{"use strict";var TE=require("http"),RE=require("https"),{ono:co}=Ie(),Kn=Se(),{ResolverError:Oh}=De();wh.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Kn.isHttp(e.url)},read(e){let t=Kn.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Kn.parse(location.href).protocol),xh(t,this)}};function xh(e,t,r){return new Promise((n,i)=>{e=Kn.parse(e),r=r||[],r.push(e.href),IE(e,t).then(o=>{if(o.statusCode>=400)throw co({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new Oh(co({status:o.statusCode},`Error downloading ${r[0]}.
34
+ `),s=i?"+":n?"":"-";return r+s+`
35
+ `}o(Ky,"blockHeader");function Wy(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}o(Wy,"dropEndingNewline");function $k(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
37
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,Yy(e.slice(0,l),t)}(),i=e[0]===`
38
+ `||e[0]===" ",s,a;a=r.exec(e);){var u=a[1],c=a[2];s=c[0]===" ",n+=u+(!i&&!s&&c!==""?`
39
+ `:"")+Yy(c,t),i=s}return n}o($k,"foldString");function Yy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(s=a>i?a:u,c+=`
40
+ `+e.slice(i,s),i=s+1),a=u;return c+=`
41
+ `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
42
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}o(Yy,"foldLine");function Ok(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+=zy((r-55296)*1024+n-56320+65536),s++;continue}i=me[r],t+=!i&&qn(r)?e[s]:i||zy(r)}return t}o(Ok,"escapeString");function Ek(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Mr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(Ek,"writeFlowSequence");function xk(e,t,r,n){var i="",s=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Mr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Jl(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(xk,"writeBlockSequence");function wk(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,u,c,l,p;for(a=0,u=s.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=s[a],l=r[c],Mr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(wk,"writeFlowMapping");function Ak(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Ui("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Jl(e,t)),l=a[u],p=r[l],Mr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Bi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Jl(e,t)),Mr(e,t+1,p,!0,f)&&(e.dump&&Bi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(Ak,"writeBlockMapping");function Qy(e,t,r){var n,i,s,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(u=i[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Jy.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(Xy.call(u.represent,c))n=u.represent[c](t,c);else throw new Ui("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}o(Qy,"detectType");function Mr(e,t,r,n,i,s){e.tag=null,e.dump=r,Qy(e,r,!1)||Qy(e,r,!0);var a=Jy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(Ak(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(wk(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(xk(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(Ek(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Pk(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Ui("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Mr,"writeNode");function Ik(e,t){var r=[],n=[],i,s;for(Xl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(Ik,"getDuplicateReferences");function Xl(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)Xl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Xl(e[n[i]],t,r)}o(Xl,"inspectNode");function p0(e,t){t=t||{};var r=new yk(t);return r.noRefs||Ik(e,r),Mr(r,0,e,!0,!0)?r.dump+`
43
+ `:""}o(p0,"dump");function kk(e,t){return p0(e,Hi.extend({schema:JI},t))}o(kk,"safeDump");tf.exports.dump=p0;tf.exports.safeDump=kk});var m0=m((O8,K)=>{"use strict";var bs=Uy(),h0=d0();function Ss(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Ss,"deprecated");K.exports.Type=te();K.exports.Schema=Cr();K.exports.FAILSAFE_SCHEMA=ds();K.exports.JSON_SCHEMA=Gl();K.exports.CORE_SCHEMA=Zl();K.exports.DEFAULT_SAFE_SCHEMA=Rn();K.exports.DEFAULT_FULL_SCHEMA=Fi();K.exports.load=bs.load;K.exports.loadAll=bs.loadAll;K.exports.safeLoad=bs.safeLoad;K.exports.safeLoadAll=bs.safeLoadAll;K.exports.dump=h0.dump;K.exports.safeDump=h0.safeDump;K.exports.YAMLException=In();K.exports.MINIMAL_SCHEMA=ds();K.exports.SAFE_SCHEMA=Rn();K.exports.DEFAULT_SCHEMA=Fi();K.exports.scan=Ss("scan");K.exports.parse=Ss("parse");K.exports.compose=Ss("compose");K.exports.addConstructor=Ss("addConstructor")});var y0=m((x8,g0)=>{"use strict";var Rk=m0();g0.exports=Rk});var _0=m((w8,v0)=>{"use strict";var{ParserError:Tk}=nt(),Ck=y0();v0.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 Ck.safeLoad(t)}catch(r){throw new Tk(r.message,e.url)}else return t}}});var S0=m((A8,b0)=>{"use strict";var{ParserError:Nk}=nt(),qk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;b0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&qk.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 Nk("data is not text",e.url)}}});var $0=m((I8,P0)=>{"use strict";var jk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;P0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&jk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var x0=m((k8,E0)=>{"use strict";var Mk=require("fs"),{ono:rf}=Qe(),O0=Ce(),{ResolverError:nf}=nt();E0.exports={order:100,canRead(e){return O0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=O0.toFileSystemPath(e.url)}catch(i){r(new nf(rf.uri(i,`Malformed URI: ${e.url}`),e.url))}try{Mk.readFile(n,(i,s)=>{i?r(new nf(rf(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new nf(rf(i,`Error opening file "${n}"`),n))}})}}});var k0=m((R8,I0)=>{"use strict";var Dk=require("http"),Lk=require("https"),{ono:Ps}=Qe(),zi=Ce(),{ResolverError:w0}=nt();I0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return zi.isHttp(e.url)},read(e){let t=zi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=zi.parse(location.href).protocol),A0(t,this)}};function A0(e,t,r){return new Promise((n,i)=>{e=zi.parse(e),r=r||[],r.push(e.href),Fk(e,t).then(s=>{if(s.statusCode>=400)throw Ps({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new w0(Ps({status:s.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(o.headers.location){let a=Kn.resolve(e,o.headers.location);xh(a,t,r).then(n,i)}else throw co({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new Oh(co(o,`Error downloading ${e.href}`),e.href))})})}s(xh,"download");function IE(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?RE:TE).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(IE,"get")});var iu=m((dq,Ah)=>{"use strict";var qE=Od(),NE=yh(),CE=$h(),kE=vh(),ME=_h(),DE=Eh();Ah.exports=nu;function nu(e){ru(this,nu.defaults),ru(this,e)}s(nu,"$RefParserOptions");nu.defaults={parse:{json:qE,yaml:NE,text:CE,binary:kE},resolve:{file:ME,http:DE,external:!0},continueOnError:!1,dereference:{circular:!0}};function ru(e,t){if(jh(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];jh(o)?e[i]=ru(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(ru,"merge");function jh(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(jh,"isMergeable")});var ou=m((hq,Rh)=>{"use strict";var Th=iu();Rh.exports=FE;function FE(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 Th||(n=new Th(n)),{path:t,schema:r,options:n,callback:i}}s(FE,"normalizeArgs")});var qh=m((gq,Ih)=>{"use strict";var su=iu(),VE=Dc(),LE=Lc(),BE=require("util");Ih.exports=uo;function uo(e){su.call(this,uo.defaults),su.apply(this,arguments)}s(uo,"ParserOptions");uo.defaults={validate:{schema:VE,spec:LE}};BE.inherits(uo,su)});var Ch=m((bq,Nh)=>{"use strict";function zE(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(zE,"makeNext");Nh.exports=zE()});var au=m((Sq,Mh)=>{"use strict";var kh=Ch();Mh.exports=s(function(t,r){if(t){r.then(function(n){kh(function(){t(null,n)})},function(n){kh(function(){t(n)})});return}else return r},"maybe")});var Wn=m((_q,Vh)=>{"use strict";Vh.exports=Et;var cu=Jr(),uu=Se(),{JSONParserError:UE,InvalidPointerError:ZE,MissingPointerError:HE,isHandledError:GE}=De(),KE=/\//g,WE=/~/g,YE=/~1/g,JE=/~0/g;function Et(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(Et,"Pointer");Et.prototype.resolve=function(e,t,r){let n=Et.parse(this.path,this.originalPath);this.value=Fh(e);for(let i=0;i<n.length;i++){if(fo(this,t)&&(this.path=Et.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new HE(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&uu.resolve(this.path,this.value.$ref)!==r)&&fo(this,t),this};Et.prototype.set=function(e,t,r){let n=Et.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=Fh(e);for(let o=0;o<n.length-1;o++)fo(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=Dh(this,i,{});return fo(this,r),i=n[n.length-1],Dh(this,i,t),e};Et.parse=function(e,t){let r=uu.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(YE,"/").replace(JE,"~"));if(r[0]!=="")throw new ZE(r,t===void 0?e:t);return r.slice(1)};Et.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(WE,"~0").replace(KE,"~1"))}return e};function fo(e,t){if(cu.isAllowed$Ref(e.value,t)){let r=uu.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,cu.isExtended$Ref(e.value)?(e.value=cu.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(fo,"resolveIf$Ref");function Dh(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 UE(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}s(Dh,"setValue");function Fh(e){if(GE(e))throw e;return e}s(Fh,"unwrapOrThrow")});var Jr=m((xq,zh)=>{"use strict";zh.exports=le;var Bh=Wn(),{InvalidPointerError:XE,isHandledError:QE,normalizeError:Lh}=De(),{safePointerToPath:ej,stripHash:tj,getHash:rj}=Se();function le(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(le,"$Ref");le.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(Lh)):this.errors.push(Lh(e))};le.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};le.prototype.get=function(e,t){return this.resolve(e,t).value};le.prototype.resolve=function(e,t,r,n){let i=new Bh(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!QE(o))throw o;return o.path===null&&(o.path=ej(rj(n))),o instanceof XE&&(o.source=tj(n)),this.addError(o),null}};le.prototype.set=function(e,t){let r=new Bh(this,e);this.value=r.set(this.value,t)};le.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};le.isExternal$Ref=function(e){return le.is$Ref(e)&&e.$ref[0]!=="#"};le.isAllowed$Ref=function(e,t){if(le.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};le.isExtended$Ref=function(e){return le.is$Ref(e)&&Object.keys(e).length>1};le.dereference=function(e,t){if(t&&typeof t=="object"&&le.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 Gh=m((Eq,Hh)=>{"use strict";var{ono:Uh}=Ie(),nj=Jr(),jt=Se();Hh.exports=Fe;function Fe(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Fe,"$Refs");Fe.prototype.paths=function(e){return Zh(this._$refs,arguments).map(r=>r.decoded)};Fe.prototype.values=function(e){let t=this._$refs;return Zh(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Fe.prototype.toJSON=Fe.prototype.values;Fe.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Fe.prototype.get=function(e,t){return this._resolve(e,"",t).value};Fe.prototype.set=function(e,t){let r=jt.resolve(this._root$Ref.path,e),n=jt.stripHash(r),i=this._$refs[n];if(!i)throw Uh(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};Fe.prototype._add=function(e){let t=jt.stripHash(e),r=new nj;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Fe.prototype._resolve=function(e,t,r){let n=jt.resolve(this._root$Ref.path,e),i=jt.stripHash(n),o=this._$refs[i];if(!o)throw Uh(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return o.resolve(n,r,e,t)};Fe.prototype._get$Ref=function(e){e=jt.resolve(this._root$Ref.path,e);let t=jt.stripHash(e);return this._$refs[t]};function Zh(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"?jt.toFileSystemPath(n,!0):n}))}s(Zh,"getPaths")});var Wh=m(Yn=>{"use strict";Yn.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Yn.filter=function(e,t,r){return e.filter(n=>!!Kh(n,t,r))};Yn.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)};Yn.run=function(e,t,r,n){let i,o,a=0;return new Promise((c,u)=>{f();function f(){if(i=e[a++],!i)return u(o);try{let d=Kh(i,t,r,l,n);if(d&&typeof d.then=="function")d.then(p,h);else if(d!==void 0)p(d);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(d){h(d)}}s(f,"runNextPlugin");function l(d,y){d?h(d):p(y)}s(l,"callback");function p(d){c({plugin:i,result:d})}s(p,"onSuccess");function h(d){o={plugin:i,error:d},f()}s(h,"onError")})};function Kh(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(Kh,"getResult")});var lu=m((Rq,Qh)=>{"use strict";var{ono:fu}=Ie(),Yh=Se(),At=Wh(),{ResolverError:Jh,ParserError:Xh,UnmatchedParserError:ij,UnmatchedResolverError:oj,isHandledError:sj}=De();Qh.exports=aj;async function aj(e,t,r){e=Yh.stripHash(e);let n=t._add(e),i={url:e,extension:Yh.getExtension(e)};try{let o=await cj(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await uj(i,r,t);return n.value=a.result,a.result}catch(o){throw sj(o)&&(n.value=o),o}}s(aj,"parse");function cj(e,t,r){return new Promise((n,i)=>{let o=At.all(t.resolve);o=At.filter(o,"canRead",e),At.sort(o),At.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new oj(e.url)):!c||!("error"in c)?i(fu.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Jh?i(c.error):i(new Jh(c,e.url))}s(a,"onError")})}s(cj,"readFile");function uj(e,t,r){return new Promise((n,i)=>{let o=At.all(t.parse),a=At.filter(o,"canParse",e),c=a.length>0?a:o;At.sort(c),At.run(c,"parse",e,r).then(u,f);function u(l){!l.plugin.allowEmpty&&fj(l.result)?i(fu.syntax(`Error parsing "${e.url}" as ${l.plugin.name}.
50
- Parsed value is empty`)):n(l)}s(u,"onParsed");function f(l){!l&&t.continueOnError?i(new ij(e.url)):!l||!("error"in l)?i(fu.syntax(`Unable to parse ${e.url}`)):l.error instanceof Xh?i(l.error):i(new Xh(l.error.message,e.url))}s(f,"onError")})}s(uj,"parseFile");function fj(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(fj,"isEmpty")});var ny=m((qq,ry)=>{"use strict";var ey=Jr(),lj=Wn(),pj=lu(),Jn=Se(),{isHandledError:dj}=De();ry.exports=mj;function mj(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=pu(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(mj,"resolveExternal");function pu(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(ey.isExternal$Ref(e))i.push(ty(e,t,r,n));else for(let o of Object.keys(e)){let a=lj.join(t,o),c=e[o];ey.isExternal$Ref(c)?i.push(ty(c,a,r,n)):i=i.concat(pu(c,a,r,n))}return i}s(pu,"crawl");async function ty(e,t,r,n){let i=Jn.resolve(t,e.$ref),o=Jn.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await pj(i,r,n),c=pu(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!dj(a))throw a;return r._$refs[o]&&(a.source=Jn.stripHash(t),a.path=Jn.safePointerToPath(Jn.getHash(t))),[]}}s(ty,"resolve$Ref")});var sy=m((Cq,oy)=>{"use strict";var lo=Jr(),Xn=Wn(),du=Se();oy.exports=hj;function hj(e,t){let r=[];mu(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),yj(r)}s(hj,"bundle");function mu(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(lo.isAllowed$Ref(u))iy(e,t,r,n,i,o,a,c);else{let f=Object.keys(u).sort((l,p)=>l==="definitions"?-1:p==="definitions"?1:l.length-p.length);for(let l of f){let p=Xn.join(r,l),h=Xn.join(n,l),d=u[l];lo.isAllowed$Ref(d)?iy(u,l,r,h,i,o,a,c):mu(u,l,p,h,i,o,a,c)}}}s(mu,"crawl");function iy(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],f=du.resolve(r,u.$ref),l=a._resolve(f,n,c);if(l===null)return;let p=Xn.parse(n).length,h=du.stripHash(l.path),d=du.getHash(l.path),y=h!==a._root$Ref.path,$=lo.isExtended$Ref(u);i+=l.indirections;let g=gj(o,e,t);if(g)if(p<g.depth||i<g.indirections)$j(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:h,hash:d,value:l.value,circular:l.circular,extended:$,external:y,indirections:i}),g||mu(l.value,null,l.path,n,i+1,o,a,c)}s(iy,"inventory$Ref");function yj(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Xn.join(n,Xn.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=lo.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(yj,"remap");function gj(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(gj,"findInInventory");function $j(e,t){let r=e.indexOf(t);e.splice(r,1)}s($j,"removeFromInventory")});var gu=m((Mq,fy)=>{"use strict";var hu=Jr(),ay=Wn(),{ono:bj}=Ie(),vj=Se();fy.exports=Sj;function Sj(e,t){let r=yu(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(Sj,"dereference");function yu(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hu.isAllowed$Ref(e,o))a=cy(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let f=ay.join(t,u),l=ay.join(r,u),p=e[u],h=!1;hu.isAllowed$Ref(p,o)?(a=cy(p,f,l,n,i,o),h=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=yu(p,f,l,n,i,o),h=a.circular,e[u]!==a.value&&(e[u]=a.value)):h=uy(f,i,o),c.circular=c.circular||h}n.pop()}return c}s(yu,"crawl");function cy(e,t,r,n,i,o){let a=vj.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,f=u||n.indexOf(c.value)!==-1;f&&uy(t,i,o);let l=hu.dereference(e,c.value);if(!f){let p=yu(l,c.path,r,n,i,o);f=p.circular,l=p.value}return f&&!u&&o.dereference.circular==="ignore"&&(l=e),u&&(l.$ref=r),{circular:f,value:l}}s(cy,"dereference$Ref");function uy(e,t,r){if(t.circular=!0,!r.dereference.circular)throw bj.reference(`Circular $ref pointer found at ${e}`);return!0}s(uy,"foundCircularReference")});var my=m((Fq,Xe)=>{"use strict";var dy=Gh(),Pj=lu(),po=ou(),_j=ny(),Oj=sy(),xj=gu(),Xr=Se(),{JSONParserError:wj,InvalidPointerError:Ej,MissingPointerError:jj,ResolverError:Aj,ParserError:Tj,UnmatchedParserError:Rj,UnmatchedResolverError:Ij,isHandledError:qj,JSONParserErrorGroup:ly}=De(),Ve=au(),{ono:py}=Ie();Xe.exports=Je;Xe.exports.default=Je;Xe.exports.JSONParserError=wj;Xe.exports.InvalidPointerError=Ej;Xe.exports.MissingPointerError=jj;Xe.exports.ResolverError=Aj;Xe.exports.ParserError=Tj;Xe.exports.UnmatchedParserError=Rj;Xe.exports.UnmatchedResolverError=Ij;function Je(){this.schema=null,this.$refs=new dy}s(Je,"$RefParser");Je.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Je.prototype.parse=s(async function(t,r,n,i){let o=po(arguments),a;if(!o.path&&!o.schema){let f=py(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Ve(o.callback,Promise.reject(f))}this.schema=null,this.$refs=new dy;let c="http";if(Xr.isFileSystemPath(o.path)&&(o.path=Xr.fromFileSystemPath(o.path),c="file"),o.path=Xr.resolve(Xr.cwd(),o.path),o.schema&&typeof o.schema=="object"){let f=this.$refs._add(o.path);f.value=o.schema,f.pathType=c,a=Promise.resolve(o.schema)}else a=Pj(o.path,this.$refs,o.options);let u=this;try{let f=await a;if(f!==null&&typeof f=="object"&&!Buffer.isBuffer(f))return u.schema=f,Ve(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Ve(o.callback,Promise.resolve(u.schema));throw py.syntax(`"${u.$refs._root$Ref.path||f}" is not a valid JSON Schema`)}catch(f){return!o.options.continueOnError||!qj(f)?Ve(o.callback,Promise.reject(f)):(this.$refs._$refs[Xr.stripHash(o.path)]&&this.$refs._$refs[Xr.stripHash(o.path)].addError(f),Ve(o.callback,Promise.resolve(null)))}},"parse");Je.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Je.prototype.resolve=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.parse(a.path,a.schema,a.options),await _j(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.$refs))}catch(c){return Ve(a.callback,Promise.reject(c))}},"resolve");Je.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Je.prototype.bundle=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.resolve(a.path,a.schema,a.options),Oj(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.schema))}catch(c){return Ve(a.callback,Promise.reject(c))}},"bundle");Je.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Je.prototype.dereference=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.resolve(a.path,a.schema,a.options),xj(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.schema))}catch(c){return Ve(a.callback,Promise.reject(c))}},"dereference");function $u(e){if(ly.getParserErrors(e).length>0)throw new ly(e)}s($u,"finalize")});var by=m((Lq,$y)=>{"use strict";var Nj=Dc(),Cj=Lc(),hy=ou(),yy=fi(),gy=qh(),mo=au(),{ono:Le}=Ie(),ar=my(),kj=gu();$y.exports=Qe;function Qe(){ar.apply(this,arguments)}s(Qe,"SwaggerParser");yy.inherits(Qe,ar);Qe.parse=ar.parse;Qe.resolve=ar.resolve;Qe.bundle=ar.bundle;Qe.dereference=ar.dereference;Object.defineProperty(Qe.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Qe.prototype.parse=async function(e,t,r,n){let i=hy(arguments);i.options=new gy(i.options);try{let o=await ar.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Le.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Le.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Le.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Le.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Le.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Le.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}yy.fixOasRelativeServers(o,i.path)}return mo(i.callback,Promise.resolve(o))}catch(o){return mo(i.callback,Promise.reject(o))}};Qe.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Qe.prototype.validate=async function(e,t,r,n){let i=this,o=hy(arguments);o.options=new gy(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(Nj(i.api),i.$refs.circular)){if(a===!0)kj(i,o.options);else if(a===!1)throw Le.reference("The API contains circular references")}return o.options.validate.spec&&Cj(i.api),mo(o.callback,Promise.resolve(i.schema))}catch(c){return mo(o.callback,Promise.reject(c))}}});var qA={};Lg(qA,{getGenerateMetadata:()=>IA});module.exports=Bg(qA);var Ng=ci(by());var vy="Schema",Sy="Enum",Py="Body",_y="Param",Oy="Response",xy="ErrorResponse",bu="z.void()";var wy={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:vy,enumSuffix:Sy,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Qn=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var pe=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ho=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),vu=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Pe=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Ey=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Su=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),jy=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Mj=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Pu=s(e=>{let t=e.map(pe).map(Dj).map(r=>Fj(r)).flat();return Mj(t)},"getMostCommonAdjacentCombinationSplit"),Dj=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),Fj=s((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Ay=s(e=>`use${pe(Pe(e.operationName))}`,"getQueryName");function yo({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ho(t)}/`:""}${ho(t)}.${i}`:i}s(yo,"getTagFileName");var lt=s(({type:e,tag:t,options:r})=>`${pe(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var cr=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var pt=Symbol.for("@ts-pattern/matcher"),Vj=Symbol.for("@ts-pattern/isVariadic"),$o="@ts-pattern/anonymous-select-key",_u=s(e=>!!(e&&typeof e=="object"),"r"),go=s(e=>e&&!!e[pt],"i"),rt=s((e,t,r)=>{if(go(e)){let n=e[pt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(_u(e)){if(!_u(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];go(c)&&c[Vj]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((f,l)=>rt(f,a[l],r))&&i.every((f,l)=>rt(f,c[l],r))&&(o.length===0||rt(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>rt(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||go(o=i)&&o[pt]().matcherType==="optional")&&rt(i,t[n],r);var o})}return Object.is(t,e)},"s"),Nt=s(e=>{var t,r,n;return _u(e)?go(e)?(t=(r=(n=e[pt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?ti(e,Nt):ti(Object.values(e),Nt):[]},"o"),ti=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function je(e){return Object.assign(e,{optional:s(()=>Lj(e),"optional"),and:s(t=>L(e,t),"and"),or:s(t=>Bj(e,t),"or"),select:s(t=>t===void 0?Ty(e):Ty(t,e),"select")})}s(je,"u");function Lj(e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(Nt(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:rt(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>Nt(e),"getSelectionKeys"),matcherType:"optional"})})}s(Lj,"h");function L(...e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>rt(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>ti(e,Nt),"getSelectionKeys"),matcherType:"and"})})}s(L,"m");function Bj(...e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return ti(e,Nt).forEach(i=>n(i,void 0)),{matched:e.some(i=>rt(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>ti(e,Nt),"getSelectionKeys"),matcherType:"or"})})}s(Bj,"d");function C(e){return{[pt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(C,"p");function Ty(...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({[pt]:()=>({match:s(n=>{let i={[t??$o]:n};return{matched:r===void 0||rt(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??$o].concat(r===void 0?[]:Nt(r)),"getSelectionKeys")})})}s(Ty,"y");function et(e){return typeof e=="number"}s(et,"v");function Tt(e){return typeof e=="string"}s(Tt,"b");function Rt(e){return typeof e=="bigint"}s(Rt,"w");var aN=je(C(function(e){return!0}));var It=s(e=>Object.assign(je(e),{startsWith:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length>=r))(t))),"minLength"),length:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length===r))(t))),"length"),maxLength:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&!!n.match(r)))));var r},"regex")}),"j"),cN=It(C(Tt)),tt=s(e=>Object.assign(je(e),{between:s((t,r)=>tt(L(e,((n,i)=>C(o=>et(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>tt(L(e,(r=>C(n=>et(n)&&n<r))(t))),"lt"),gt:s(t=>tt(L(e,(r=>C(n=>et(n)&&n>r))(t))),"gt"),lte:s(t=>tt(L(e,(r=>C(n=>et(n)&&n<=r))(t))),"lte"),gte:s(t=>tt(L(e,(r=>C(n=>et(n)&&n>=r))(t))),"gte"),int:s(()=>tt(L(e,C(t=>et(t)&&Number.isInteger(t)))),"int"),finite:s(()=>tt(L(e,C(t=>et(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>tt(L(e,C(t=>et(t)&&t>0))),"positive"),negative:s(()=>tt(L(e,C(t=>et(t)&&t<0))),"negative")}),"x"),uN=tt(C(et)),qt=s(e=>Object.assign(je(e),{between:s((t,r)=>qt(L(e,((n,i)=>C(o=>Rt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n<r))(t))),"lt"),gt:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n>r))(t))),"gt"),lte:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n<=r))(t))),"lte"),gte:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n>=r))(t))),"gte"),positive:s(()=>qt(L(e,C(t=>Rt(t)&&t>0))),"positive"),negative:s(()=>qt(L(e,C(t=>Rt(t)&&t<0))),"negative")}),"A"),fN=qt(C(Rt)),lN=je(C(function(e){return typeof e=="boolean"})),pN=je(C(function(e){return typeof e=="symbol"})),dN=je(C(function(e){return e==null})),mN=je(C(function(e){return e!=null}));var Eu=class Eu extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(Eu,"W");var Ou=Eu,xu={matched:!1,value:void 0};function ce(e){return new wu(e,xu)}s(ce,"z");var ei=class ei{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((f,l)=>{o=!0,a[f]=l},"a"),u=!n.some(f=>rt(f,this.input,c))||i&&!i(this.input)?xu:{matched:!0,value:r(o?$o in a?a[$o]:a:this.input,this.input)};return new ei(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ei(this.input,n?{matched:!0,value:r(this.input,this.input)}:xu)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Ou(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(ei,"I");var wu=ei;var Ry=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var ju=2,Iy=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],qy=["query","header","path"],Ct=["get","put","post","delete","options","head","patch","trace"],Ny=["string","number","integer","boolean"],bo=["allOf","anyOf","oneOf"];function kt(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(kt,"pick");function nt(e){return Ey(e)}s(nt,"formatTag");function ur(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return nt(r??t.defaultTag)}s(ur,"getOperationTag");function Cy(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=kt(i,Ct);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?ur(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(Cy,"getOperationsByTag");var My=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),fr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),en=s(e=>fr(e).split("/").at(-1),"getSchemaNameByRef");function V(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(V,"isReferenceObject");function Ru(e){let t=zj(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Pe(t)}s(Ru,"normalizeString");function Dy(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Dy,"wrapWithQuotesIfNeeded");function Fy(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Fy,"unwrapQuotesIfNeeded");function zj(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(zj,"prefixStringStartingWithNumberIfNeeded");function Iu(e){let t=e.replaceAll("_","#");return Pe(t.replaceAll("-","_")).replaceAll("#","_")}s(Iu,"pathParamToVariableName");var Mt=s(e=>Ny.includes(e),"isPrimitiveType");function Vy(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(Vy,"escapeControlCharacters");function Dt(e){return e.includes("application/")&&e.includes("json")||Iy.includes(e)||e.includes("text/")}s(Dt,"isParamMediaTypeAllowed");function vo(e){return e>=200&&e<300}s(vo,"isMainResponseStatus");function So(e){return!(e>=200&&e<300)}s(So,"isErrorStatus");function tn(e){return e==="application/json"}s(tn,"isMediaTypeAllowed");function Au({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${Zj(e)}`,a=r.operationId?cr(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,f)=>f===0?u:pe(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return Ry.includes(a)?o:a}s(Au,"getOperationName");function ri({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?ur(r,i):i.defaultTag,a=Au({path:e,method:t,operation:r,options:i});return n[o].filter(u=>Au({path:e,method:t,operation:u,options:i})===a).length===1?a:Au({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(ri,"getUniqueOperationName");function Ly(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=kt(o,Ct);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let f=ri({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(f)}}return n}s(Ly,"getUniqueOperationNamesWithoutSplitByTags");var ky=/({\w+})/g,Uj=/[^\w\-]+/g;function Zj(e){e=pe(vu(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(ky)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(ky,"")}By${pe(r.slice(1,-1))}`}return e.replace(Uj,"_")}s(Zj,"pathToVariableName");var Tu=/{(\b\w+(?:-\w+)*\b)}/g;function By(e){let t=e.match(Tu);return t===null?e.replaceAll(Tu,":$1"):(t.forEach(r=>{let n=Iu(r.replaceAll(Tu,":$1"));e=e.replaceAll(r,n)}),e)}s(By,"replaceHyphenatedPath");var zy=s(e=>e.method==="get","isQuery"),Uy=s(e=>e.method!=="get","isMutation");var Ft=s((e,t)=>Su(pe(Ru(e)),t),"getZodSchemaName"),Zy=s((e,t,r)=>Su(pe(Ru(e)),`${t}${r}`),"getEnumZodSchemaName"),lr=s(e=>!e.startsWith("z."),"isNamedZodSchema"),pr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Po=s(e=>Pe(`${e}_${Py}`),"getBodyZodSchemaName"),Hy=s((e,t)=>Pe(`${e}_${t}${_y}`),"getParamZodSchemaName"),Hj=s(e=>Pe(`${e}${Oy}`),"getMainResponseZodSchemaName"),Gj=s((e,t)=>Pe(`${e}_${t}_${xy}`),"getErrorResponseZodSchemaName");function _o({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=pr(t,r,n);return!vo(i)&&e!=="default"&&So(i)?Gj(o,e):Hj(o)}s(_o,"getResponseZodSchemaName");var Kj=s((e,t)=>jy(e,t.schemaSuffix),"getZodSchemaInferedTypeName");var qu=s((e,t)=>lr(t)?`${e.options.includeNamespaces?`${lt({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Kj(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Nu(e){return ce(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Nu,"primitiveTypeToTsType");function rn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&lr(e)?(n=qu(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Nu(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:yo({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(rn,"getTsTypeBase");function dr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of bo){let o=e[i];if(o)if(o.length>1){let a=o.map(c=>{let u=n.resolveObject(c);return dr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let f=u.map(({name:l})=>l);return[...c.filter(({name:l})=>!f.includes(l)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Gy({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:Wj({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(dr,"getSchemaTsMetaType");function Gy({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(V(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let o=rn({zodSchemaName:n,schema:i,resolver:r}),a=Ky(o,t),c=dr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...c}}s(Gy,"getArraySchemaTsType");function Wj({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(V(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),f=rn({zodSchemaName:c,schema:u,resolver:r}),l=Ky(f,t),p=dr({schema:u,isCircular:l,parentTypes:[...t,f],resolver:r});return{name:n,isRequired:o,...f,...p}}else if(i.type==="array"){let c=Gy({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:c}}else if(Mt(i.type))return{name:n,isRequired:o,type:Nu(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(Wj,"getSchemaTsProperties");function Ky(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Ky,"getIsCircular");var Wy="data";function dt(e){return!V(e)}s(dt,"isSchemaObject");function Yy(e){return e.type==="array"}s(Yy,"isArraySchemaObject");function Jy(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(Yj(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(V(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(Jy,"inferRequiredSchema");var Yj=s(e=>!V(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Xy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return nt(r??t.defaultTag)}s(Xy,"getEndpointTag");var Qy=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),eg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),tg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),B={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},_C=Object.keys(B.modifier),Jj=Object.keys(B.color),Xj=Object.keys(B.bgColor),OC=[...Jj,...Xj];function Qj(){let e=new Map;for(let[t,r]of Object.entries(B)){for(let[n,i]of Object.entries(r))B[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=B[n],e.set(i[0],i[1]);Object.defineProperty(B,t,{value:r,enumerable:!1})}return Object.defineProperty(B,"codes",{value:e,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=Qy(),B.color.ansi256=eg(),B.color.ansi16m=tg(),B.bgColor.ansi=Qy(10),B.bgColor.ansi256=eg(10),B.bgColor.ansi16m=tg(10),Object.defineProperties(B,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>B.rgbToAnsi256(...B.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>B.ansi256ToAnsi(B.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>B.ansi256ToAnsi(B.hexToAnsi256(t)),"value"),enumerable:!1}}),B}s(Qj,"assembleStyles");var eA=Qj(),Be=eA;var xo=ci(require("process"),1),ng=ci(require("os"),1),Cu=ci(require("tty"),1);function Ae(e,t=globalThis.Deno?globalThis.Deno.args:xo.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Ae,"hasFlag");var{env:U}=xo.default,Oo;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?Oo=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(Oo=1);function tA(){if("FORCE_COLOR"in U)return U.FORCE_COLOR==="true"?1:U.FORCE_COLOR==="false"?0:U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}s(tA,"envForceColor");function rA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(rA,"translateLevel");function nA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=tA();n!==void 0&&(Oo=n);let i=r?Oo:n;if(i===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(U.TERM==="dumb")return o;if(xo.default.platform==="win32"){let a=ng.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in U)return"GITHUB_ACTIONS"in U||"GITEA_ACTIONS"in U?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in U)||U.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor"||U.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in U){let a=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:o}s(nA,"_supportsColor");function rg(e,t={}){let r=nA(e,{streamIsTTY:e&&e.isTTY,...t});return rA(r)}s(rg,"createSupportsColor");var iA={stdout:rg({isTTY:Cu.default.isatty(1)}),stderr:rg({isTTY:Cu.default.isatty(2)})},ig=iA;function og(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(og,"stringReplaceAll");function sg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
46
+ `)}`)));else if(s.headers.location){let a=zi.resolve(e,s.headers.location);A0(a,t,r).then(n,i)}else throw Ps({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new w0(Ps(s,`Error downloading ${e.href}`),e.href))})})}o(A0,"download");function Fk(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?Lk:Dk).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",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(Fk,"get")});var af=m((C8,T0)=>{"use strict";var Vk=wg(),Bk=_0(),Hk=S0(),Uk=$0(),zk=x0(),Gk=k0();T0.exports=sf;function sf(e){of(this,sf.defaults),of(this,e)}o(sf,"$RefParserOptions");sf.defaults={parse:{json:Vk,yaml:Bk,text:Hk,binary:Uk},resolve:{file:zk,http:Gk,external:!0},continueOnError:!1,dereference:{circular:!0}};function of(e,t){if(R0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];R0(s)?e[i]=of(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(of,"merge");function R0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(R0,"isMergeable")});var uf=m((q8,N0)=>{"use strict";var C0=af();N0.exports=Zk;function Zk(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 C0||(n=new C0(n)),{path:t,schema:r,options:n,callback:i}}o(Zk,"normalizeArgs")});var j0=m((M8,q0)=>{"use strict";var cf=af(),Kk=Fl(),Wk=Hl(),Yk=require("util");q0.exports=$s;function $s(e){cf.call(this,$s.defaults),cf.apply(this,arguments)}o($s,"ParserOptions");$s.defaults={validate:{schema:Kk,spec:Wk}};Yk.inherits($s,cf)});var D0=m((L8,M0)=>{"use strict";function Qk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(Qk,"makeNext");M0.exports=Qk()});var lf=m((V8,F0)=>{"use strict";var L0=D0();F0.exports=o(function(t,r){if(t){r.then(function(n){L0(function(){t(null,n)})},function(n){L0(function(){t(n)})});return}else return r},"maybe")});var Gi=m((H8,H0)=>{"use strict";H0.exports=rr;var ff=jn(),pf=Ce(),{JSONParserError:Jk,InvalidPointerError:Xk,MissingPointerError:eR,isHandledError:tR}=nt(),rR=/\//g,nR=/~/g,iR=/~1/g,oR=/~0/g;function rr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(rr,"Pointer");rr.prototype.resolve=function(e,t,r){let n=rr.parse(this.path,this.originalPath);this.value=B0(e);for(let i=0;i<n.length;i++){if(Os(this,t)&&(this.path=rr.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 eR(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&pf.resolve(this.path,this.value.$ref)!==r)&&Os(this,t),this};rr.prototype.set=function(e,t,r){let n=rr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=B0(e);for(let s=0;s<n.length-1;s++)Os(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=V0(this,i,{});return Os(this,r),i=n[n.length-1],V0(this,i,t),e};rr.parse=function(e,t){let r=pf.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(iR,"/").replace(oR,"~"));if(r[0]!=="")throw new Xk(r,t===void 0?e:t);return r.slice(1)};rr.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(nR,"~0").replace(rR,"~1"))}return e};function Os(e,t){if(ff.isAllowed$Ref(e.value,t)){let r=pf.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,ff.isExtended$Ref(e.value)?(e.value=ff.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Os,"resolveIf$Ref");function V0(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 Jk(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}o(V0,"setValue");function B0(e){if(tR(e))throw e;return e}o(B0,"unwrapOrThrow")});var jn=m((z8,G0)=>{"use strict";G0.exports=Se;var z0=Gi(),{InvalidPointerError:sR,isHandledError:aR,normalizeError:U0}=nt(),{safePointerToPath:uR,stripHash:cR,getHash:lR}=Ce();function Se(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Se,"$Ref");Se.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(U0)):this.errors.push(U0(e))};Se.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Se.prototype.get=function(e,t){return this.resolve(e,t).value};Se.prototype.resolve=function(e,t,r,n){let i=new z0(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!aR(s))throw s;return s.path===null&&(s.path=uR(lR(n))),s instanceof sR&&(s.source=cR(n)),this.addError(s),null}};Se.prototype.set=function(e,t){let r=new z0(this,e);this.value=r.set(this.value,t)};Se.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Se.isExternal$Ref=function(e){return Se.is$Ref(e)&&e.$ref[0]!=="#"};Se.isAllowed$Ref=function(e,t){if(Se.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Se.isExtended$Ref=function(e){return Se.is$Ref(e)&&Object.keys(e).length>1};Se.dereference=function(e,t){if(t&&typeof t=="object"&&Se.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 Y0=m((Z8,W0)=>{"use strict";var{ono:Z0}=Qe(),fR=jn(),nr=Ce();W0.exports=it;function it(){this.circular=!1,this._$refs={},this._root$Ref=null}o(it,"$Refs");it.prototype.paths=function(e){return K0(this._$refs,arguments).map(r=>r.decoded)};it.prototype.values=function(e){let t=this._$refs;return K0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};it.prototype.toJSON=it.prototype.values;it.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};it.prototype.get=function(e,t){return this._resolve(e,"",t).value};it.prototype.set=function(e,t){let r=nr.resolve(this._root$Ref.path,e),n=nr.stripHash(r),i=this._$refs[n];if(!i)throw Z0(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};it.prototype._add=function(e){let t=nr.stripHash(e),r=new fR;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};it.prototype._resolve=function(e,t,r){let n=nr.resolve(this._root$Ref.path,e),i=nr.stripHash(n),s=this._$refs[i];if(!s)throw Z0(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return s.resolve(n,r,e,t)};it.prototype._get$Ref=function(e){e=nr.resolve(this._root$Ref.path,e);let t=nr.stripHash(e);return this._$refs[t]};function K0(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"?nr.toFileSystemPath(n,!0):n}))}o(K0,"getPaths")});var J0=m(Zi=>{"use strict";Zi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Zi.filter=function(e,t,r){return e.filter(n=>!!Q0(n,t,r))};Zi.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)};Zi.run=function(e,t,r,n){let i,s,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(s);try{let h=Q0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}o(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}o(p,"callback");function f(h){u({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function Q0(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(Q0,"getResult")});var hf=m((Q8,rv)=>{"use strict";var{ono:df}=Qe(),X0=Ce(),ir=J0(),{ResolverError:ev,ParserError:tv,UnmatchedParserError:pR,UnmatchedResolverError:dR,isHandledError:hR}=nt();rv.exports=mR;async function mR(e,t,r){e=X0.stripHash(e);let n=t._add(e),i={url:e,extension:X0.getExtension(e)};try{let s=await gR(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await yR(i,r,t);return n.value=a.result,a.result}catch(s){throw hR(s)&&(n.value=s),s}}o(mR,"parse");function gR(e,t,r){return new Promise((n,i)=>{let s=ir.all(t.resolve);s=ir.filter(s,"canRead",e),ir.sort(s),ir.run(s,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new dR(e.url)):!u||!("error"in u)?i(df.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof ev?i(u.error):i(new ev(u,e.url))}o(a,"onError")})}o(gR,"readFile");function yR(e,t,r){return new Promise((n,i)=>{let s=ir.all(t.parse),a=ir.filter(s,"canParse",e),u=a.length>0?a:s;ir.sort(u),ir.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&vR(p.result)?i(df.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
50
+ Parsed value is empty`)):n(p)}o(c,"onParsed");function l(p){!p&&t.continueOnError?i(new pR(e.url)):!p||!("error"in p)?i(df.syntax(`Unable to parse ${e.url}`)):p.error instanceof tv?i(p.error):i(new tv(p.error.message,e.url))}o(l,"onError")})}o(yR,"parseFile");function vR(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(vR,"isEmpty")});var sv=m((X8,ov)=>{"use strict";var nv=jn(),_R=Gi(),bR=hf(),Ki=Ce(),{isHandledError:SR}=nt();ov.exports=PR;function PR(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=mf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(PR,"resolveExternal");function mf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(nv.isExternal$Ref(e))i.push(iv(e,t,r,n));else for(let s of Object.keys(e)){let a=_R.join(t,s),u=e[s];nv.isExternal$Ref(u)?i.push(iv(u,a,r,n)):i=i.concat(mf(u,a,r,n))}return i}o(mf,"crawl");async function iv(e,t,r,n){let i=Ki.resolve(t,e.$ref),s=Ki.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await bR(i,r,n),u=mf(a,s+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!SR(a))throw a;return r._$refs[s]&&(a.source=Ki.stripHash(t),a.path=Ki.safePointerToPath(Ki.getHash(t))),[]}}o(iv,"resolve$Ref")});var cv=m((tD,uv)=>{"use strict";var Es=jn(),Wi=Gi(),gf=Ce();uv.exports=$R;function $R(e,t){let r=[];yf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),OR(r)}o($R,"bundle");function yf(e,t,r,n,i,s,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Es.isAllowed$Ref(c))av(e,t,r,n,i,s,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Wi.join(r,p),d=Wi.join(n,p),h=c[p];Es.isAllowed$Ref(h)?av(c,p,r,d,i,s,a,u):yf(c,p,f,d,i,s,a,u)}}}o(yf,"crawl");function av(e,t,r,n,i,s,a,u){let c=t===null?e:e[t],l=gf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Wi.parse(n).length,d=gf.stripHash(p.path),h=gf.getHash(p.path),g=d!==a._root$Ref.path,y=Es.isExtended$Ref(c);i+=p.indirections;let v=ER(s,e,t);if(v)if(f<v.depth||i<v.indirections)xR(s,v);else return;s.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||yf(p.value,null,p.path,n,i+1,s,a,u)}o(av,"inventory$Ref");function OR(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"),u=s.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-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=Wi.join(n,Wi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Es.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(OR,"remap");function ER(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(ER,"findInInventory");function xR(e,t){let r=e.indexOf(t);e.splice(r,1)}o(xR,"removeFromInventory")});var bf=m((nD,dv)=>{"use strict";var vf=jn(),lv=Gi(),{ono:wR}=Qe(),AR=Ce();dv.exports=IR;function IR(e,t){let r=_f(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(IR,"dereference");function _f(e,t,r,n,i,s){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),vf.isAllowed$Ref(e,s))a=fv(e,t,r,n,i,s),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=lv.join(t,c),p=lv.join(r,c),f=e[c],d=!1;vf.isAllowed$Ref(f,s)?(a=fv(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=_f(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=pv(l,i,s),u.circular=u.circular||d}n.pop()}return u}o(_f,"crawl");function fv(e,t,r,n,i,s){let a=AR.resolve(t,e.$ref),u=i._resolve(a,t,s);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&pv(t,i,s);let p=vf.dereference(e,u.value);if(!l){let f=_f(p,u.path,r,n,i,s);l=f.circular,p=f.value}return l&&!c&&s.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}o(fv,"dereference$Ref");function pv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw wR.reference(`Circular $ref pointer found at ${e}`);return!0}o(pv,"foundCircularReference")});var yv=m((oD,bt)=>{"use strict";var gv=Y0(),kR=hf(),xs=uf(),RR=sv(),TR=cv(),CR=bf(),Mn=Ce(),{JSONParserError:NR,InvalidPointerError:qR,MissingPointerError:jR,ResolverError:MR,ParserError:DR,UnmatchedParserError:LR,UnmatchedResolverError:FR,isHandledError:VR,JSONParserErrorGroup:hv}=nt(),ot=lf(),{ono:mv}=Qe();bt.exports=_t;bt.exports.default=_t;bt.exports.JSONParserError=NR;bt.exports.InvalidPointerError=qR;bt.exports.MissingPointerError=jR;bt.exports.ResolverError=MR;bt.exports.ParserError=DR;bt.exports.UnmatchedParserError=LR;bt.exports.UnmatchedResolverError=FR;function _t(){this.schema=null,this.$refs=new gv}o(_t,"$RefParser");_t.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");_t.prototype.parse=o(async function(t,r,n,i){let s=xs(arguments),a;if(!s.path&&!s.schema){let l=mv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ot(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new gv;let u="http";if(Mn.isFileSystemPath(s.path)&&(s.path=Mn.fromFileSystemPath(s.path),u="file"),s.path=Mn.resolve(Mn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=u,a=Promise.resolve(s.schema)}else a=kR(s.path,this.$refs,s.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,ot(s.callback,Promise.resolve(c.schema));if(s.options.continueOnError)return c.schema=null,ot(s.callback,Promise.resolve(c.schema));throw mv.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!VR(l)?ot(s.callback,Promise.reject(l)):(this.$refs._$refs[Mn.stripHash(s.path)]&&this.$refs._$refs[Mn.stripHash(s.path)].addError(l),ot(s.callback,Promise.resolve(null)))}},"parse");_t.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");_t.prototype.resolve=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.parse(a.path,a.schema,a.options),await RR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.$refs))}catch(u){return ot(a.callback,Promise.reject(u))}},"resolve");_t.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");_t.prototype.bundle=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),TR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"bundle");_t.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");_t.prototype.dereference=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),CR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"dereference");function Sf(e){if(hv.getParserErrors(e).length>0)throw new hv(e)}o(Sf,"finalize")});var Pv=m((aD,Sv)=>{"use strict";var BR=Fl(),HR=Hl(),vv=uf(),_v=Oo(),bv=j0(),ws=lf(),{ono:st}=Qe(),Dr=yv(),UR=bf();Sv.exports=St;function St(){Dr.apply(this,arguments)}o(St,"SwaggerParser");_v.inherits(St,Dr);St.parse=Dr.parse;St.resolve=Dr.resolve;St.bundle=Dr.bundle;St.dereference=Dr.dereference;Object.defineProperty(St.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});St.prototype.parse=async function(e,t,r,n){let i=vv(arguments);i.options=new bv(i.options);try{let s=await Dr.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 st.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw st.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw st.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 st.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 st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw st.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw st.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}_v.fixOasRelativeServers(s,i.path)}return ws(i.callback,Promise.resolve(s))}catch(s){return ws(i.callback,Promise.reject(s))}};St.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};St.prototype.validate=async function(e,t,r,n){let i=this,s=vv(arguments);s.options=new bv(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&&(BR(i.api),i.$refs.circular)){if(a===!0)UR(i,s.options);else if(a===!1)throw st.reference("The API contains circular references")}return s.options.validate.spec&&HR(i.api),ws(s.callback,Promise.resolve(i.schema))}catch(u){return ws(s.callback,Promise.reject(u))}}});var Oe=m(qe=>{"use strict";qe.__esModule=!0;qe.extend=F_;qe.indexOf=zT;qe.escapeExpression=GT;qe.isEmpty=ZT;qe.createFrame=KT;qe.blockParams=WT;qe.appendContextPath=YT;var VT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},BT=/[&<>"'`=]/g,HT=/[&<>"'`=]/;function UT(e){return VT[e]}o(UT,"escapeChar");function F_(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(F_,"extend");var Qf=Object.prototype.toString;qe.toString=Qf;var Yf=o(function(t){return typeof t=="function"},"isFunction");Yf(/x/)&&(qe.isFunction=Yf=o(function(e){return typeof e=="function"&&Qf.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Yf;var V_=Array.isArray||function(e){return e&&typeof e=="object"?Qf.call(e)==="[object Array]":!1};qe.isArray=V_;function zT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(zT,"indexOf");function GT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return HT.test(e)?e.replace(BT,UT):e}o(GT,"escapeExpression");function ZT(e){return!e&&e!==0?!0:!!(V_(e)&&e.length===0)}o(ZT,"isEmpty");function KT(e){var t=F_({},e);return t._parent=e,t}o(KT,"createFrame");function WT(e,t){return e.path=t,e}o(WT,"blockParams");function YT(e,t){return(e?e+".":"")+t}o(YT,"appendContextPath")});var Ze=m((Ks,B_)=>{"use strict";Ks.__esModule=!0;var Jf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Xf(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 u=Error.prototype.constructor.call(this,e),c=0;c<Jf.length;c++)this[Jf[c]]=u[Jf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Xf);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(Xf,"Exception");Xf.prototype=new Error;Ks.default=Xf;B_.exports=Ks.default});var U_=m((Ws,H_)=>{"use strict";Ws.__esModule=!0;var ep=Oe();Ws.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(ep.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=ep.createFrame(r.data);s.contextPath=ep.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};H_.exports=Ws.default});var G_=m((Ys,z_)=>{"use strict";Ys.__esModule=!0;function QT(e){return e&&e.__esModule?e:{default:e}}o(QT,"_interopRequireDefault");var co=Oe(),JT=Ze(),XT=QT(JT);Ys.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new XT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=co.appendContextPath(r.data.contextPath,r.ids[0])+"."),co.isFunction(t)&&(t=t.call(this)),r.data&&(u=co.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:co.blockParams([t[g],g],[c+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(co.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;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})};z_.exports=Ys.default});var K_=m((Qs,Z_)=>{"use strict";Qs.__esModule=!0;function e3(e){return e&&e.__esModule?e:{default:e}}o(e3,"_interopRequireDefault");var t3=Ze(),r3=e3(t3);Qs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r3.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Z_.exports=Qs.default});var J_=m((Js,Q_)=>{"use strict";Js.__esModule=!0;function n3(e){return e&&e.__esModule?e:{default:e}}o(n3,"_interopRequireDefault");var W_=Oe(),i3=Ze(),Y_=n3(i3);Js.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Y_.default("#if requires exactly one argument");return W_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||W_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Y_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Q_.exports=Js.default});var eb=m((Xs,X_)=>{"use strict";Xs.__esModule=!0;Xs.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)})};X_.exports=Xs.default});var rb=m((ea,tb)=>{"use strict";ea.__esModule=!0;ea.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};tb.exports=ea.default});var ib=m((ta,nb)=>{"use strict";ta.__esModule=!0;function o3(e){return e&&e.__esModule?e:{default:e}}o(o3,"_interopRequireDefault");var lo=Oe(),s3=Ze(),a3=o3(s3);ta.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new a3.default("#with requires exactly one argument");lo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(lo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=lo.createFrame(r.data),i.contextPath=lo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:lo.blockParams([t],[i&&i.contextPath])})})};nb.exports=ta.default});var tp=m(ra=>{"use strict";ra.__esModule=!0;ra.registerDefaultHelpers=P3;ra.moveHelperToHooks=$3;function Ur(e){return e&&e.__esModule?e:{default:e}}o(Ur,"_interopRequireDefault");var u3=U_(),c3=Ur(u3),l3=G_(),f3=Ur(l3),p3=K_(),d3=Ur(p3),h3=J_(),m3=Ur(h3),g3=eb(),y3=Ur(g3),v3=rb(),_3=Ur(v3),b3=ib(),S3=Ur(b3);function P3(e){c3.default(e),f3.default(e),d3.default(e),m3.default(e),y3.default(e),_3.default(e),S3.default(e)}o(P3,"registerDefaultHelpers");function $3(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o($3,"moveHelperToHooks")});var sb=m((na,ob)=>{"use strict";na.__esModule=!0;var O3=Oe();na.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,u){var c=n.partials;n.partials=O3.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,s})};ob.exports=na.default});var ab=m(rp=>{"use strict";rp.__esModule=!0;rp.registerDefaultDecorators=A3;function E3(e){return e&&e.__esModule?e:{default:e}}o(E3,"_interopRequireDefault");var x3=sb(),w3=E3(x3);function A3(e){w3.default(e)}o(A3,"registerDefaultDecorators")});var np=m((ia,ub)=>{"use strict";ia.__esModule=!0;var I3=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=I3.indexOf(Gn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Gn.lookupLevel(t),typeof console<"u"&&Gn.lookupLevel(Gn.level)<=t){var r=Gn.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")};ia.default=Gn;ub.exports=ia.default});var cb=m(ip=>{"use strict";ip.__esModule=!0;ip.createNewLookupObject=R3;var k3=Oe();function R3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return k3.extend.apply(void 0,[Object.create(null)].concat(t))}o(R3,"createNewLookupObject")});var op=m(fo=>{"use strict";fo.__esModule=!0;fo.createProtoAccessControl=q3;fo.resultIsAllowed=j3;fo.resetLoggedProperties=D3;function T3(e){return e&&e.__esModule?e:{default:e}}o(T3,"_interopRequireDefault");var lb=cb(),C3=np(),N3=T3(C3),oa=Object.create(null);function q3(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:lb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:lb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(q3,"createProtoAccessControl");function j3(e,t,r){return fb(typeof e=="function"?t.methods:t.properties,r)}o(j3,"resultIsAllowed");function fb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(M3(t),!1)}o(fb,"checkWhiteList");function M3(e){oa[e]!==!0&&(oa[e]=!0,N3.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
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(M3,"logUnexpecedPropertyAccessOnce");function D3(){Object.keys(oa).forEach(function(e){delete oa[e]})}o(D3,"resetLoggedProperties")});var aa=m(It=>{"use strict";It.__esModule=!0;It.HandlebarsEnvironment=up;function pb(e){return e&&e.__esModule?e:{default:e}}o(pb,"_interopRequireDefault");var zr=Oe(),L3=Ze(),sp=pb(L3),F3=tp(),V3=ab(),B3=np(),sa=pb(B3),H3=op(),U3="4.7.8";It.VERSION=U3;var z3=8;It.COMPILER_REVISION=z3;var G3=7;It.LAST_COMPATIBLE_COMPILER_REVISION=G3;var Z3={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"};It.REVISION_CHANGES=Z3;var ap="[object Object]";function up(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},F3.registerDefaultHelpers(this),V3.registerDefaultDecorators(this)}o(up,"HandlebarsEnvironment");up.prototype={constructor:up,logger:sa.default,log:sa.default.log,registerHelper:o(function(t,r){if(zr.toString.call(t)===ap){if(r)throw new sp.default("Arg not supported with multiple helpers");zr.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(zr.toString.call(t)===ap)zr.extend(this.partials,t);else{if(typeof r>"u")throw new sp.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(zr.toString.call(t)===ap){if(r)throw new sp.default("Arg not supported with multiple decorators");zr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){H3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var K3=sa.default.log;It.log=K3;It.createFrame=zr.createFrame;It.logger=sa.default});var hb=m((ua,db)=>{"use strict";ua.__esModule=!0;function cp(e){this.string=e}o(cp,"SafeString");cp.prototype.toString=cp.prototype.toHTML=function(){return""+this.string};ua.default=cp;db.exports=ua.default});var mb=m(lp=>{"use strict";lp.__esModule=!0;lp.wrapHelper=W3;function W3(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(W3,"wrapHelper")});var bb=m(mr=>{"use strict";mr.__esModule=!0;mr.checkRevision=tC;mr.template=rC;mr.wrapProgram=ca;mr.resolvePartial=nC;mr.invokePartial=iC;mr.noop=vb;function Y3(e){return e&&e.__esModule?e:{default:e}}o(Y3,"_interopRequireDefault");function Q3(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(Q3,"_interopRequireWildcard");var J3=Oe(),Dt=Q3(J3),X3=Ze(),Lt=Y3(X3),Ft=aa(),gb=tp(),eC=mb(),yb=op();function tC(e){var t=e&&e[0]||1,r=Ft.COMPILER_REVISION;if(!(t>=Ft.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Ft.COMPILER_REVISION))if(t<Ft.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ft.REVISION_CHANGES[r],i=Ft.REVISION_CHANGES[t];throw new Lt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Lt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(tC,"checkRevision");function rC(e,t){if(!t)throw new Lt.default("No environment passed to template");if(!e||!e.main)throw new Lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Dt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Dt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
53
+ `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
54
+ `)}return p}else throw new Lt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(u,c,l){if(!u||!(c in u))throw new Lt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:o(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||yb.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:o(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:o(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:o(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:o(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=ca(this,u,h,c,l,p,f):d||(d=this.programs[u]=ca(this,u,h)),d},"program"),data:o(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:o(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Dt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;s._setup(u),!u.partial&&e.useData&&(c=oC(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return o(f,"main"),f=_b(e.main,f,i,u.depths||[],c,p),f(a,u)}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 u=Dt.extend({},t.helpers,a.helpers);sC(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=yb.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;gb.moveHelperToHooks(i,"helperMissing",c),gb.moveHelperToHooks(i,"blockHelperMissing",c)}},s._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ca(i,a,e[a],u,0,c,l)},s}o(rC,"template");function ca(e,t,r,n,i,s,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(u,"prog"),u=_b(r,u,e,a,n,s),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}o(ca,"wrapProgram");function nC(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(nC,"resolvePartial");function iC(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!==vb&&function(){r.data=Ft.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ft.createFrame(c.data),c.data["partial-block"]=n,s(u,c)},"partialBlockWrapper"),s.partials&&(r.partials=Dt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Lt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(iC,"invokePartial");function vb(){return""}o(vb,"noop");function oC(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}o(oC,"initData");function _b(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Dt.extend(t,a)}return t}o(_b,"executeDecorators");function sC(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=aC(n,t)})}o(sC,"wrapHelpersToPassLookupProperty");function aC(e,t){var r=t.lookupProperty;return eC.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}o(aC,"passLookupPropertyOption")});var fp=m((la,Sb)=>{"use strict";la.__esModule=!0;la.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}};Sb.exports=la.default});var xb=m((fa,Eb)=>{"use strict";fa.__esModule=!0;function dp(e){return e&&e.__esModule?e:{default:e}}o(dp,"_interopRequireDefault");function hp(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(hp,"_interopRequireWildcard");var uC=aa(),Pb=hp(uC),cC=hb(),lC=dp(cC),fC=Ze(),pC=dp(fC),dC=Oe(),pp=hp(dC),hC=bb(),$b=hp(hC),mC=fp(),gC=dp(mC);function Ob(){var e=new Pb.HandlebarsEnvironment;return pp.extend(e,Pb),e.SafeString=lC.default,e.Exception=pC.default,e.Utils=pp,e.escapeExpression=pp.escapeExpression,e.VM=$b,e.template=function(t){return $b.template(t,e)},e}o(Ob,"create");var po=Ob();po.create=Ob;gC.default(po);po.default=po;fa.default=po;Eb.exports=fa.default});var mp=m((pa,Ab)=>{"use strict";pa.__esModule=!0;var wb={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&&!wb.helpers.scopedId(t)&&!t.depth},"simpleId")}};pa.default=wb;Ab.exports=pa.default});var kb=m((da,Ib)=>{"use strict";da.__esModule=!0;var yC=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,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ft){a.length=a.length-2*ft,u.length=u.length-ft,c.length=c.length-ft}o(b,"popStack");function S(){var ft;return ft=s.lexer.lex()||1,typeof ft!="number"&&(ft=s.symbols_[ft]||ft),ft}o(S,"lex");for(var E,$,M,j,ie,oe,le={},Me,Ee,Bt,Jr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=S()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var Ra="";if(!h){Jr=[];for(Me in l[M])this.terminals_[Me]&&Me>2&&Jr.push("'"+this.terminals_[Me]+"'");this.lexer.showPosition?Ra="Parse error on line "+(f+1)+`:
55
+ `+this.lexer.showPosition()+`
56
+ Expecting `+Jr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Ra="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Ra,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Jr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if(Ee=this.productions_[j[1]][1],le.$=u[u.length-Ee],le._$={first_line:c[c.length-(Ee||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ee||1)].first_column,last_column:c[c.length-1].last_column},_&&(le._$.range=[c[c.length-(Ee||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.call(le,p,d,f,this.yy,j[1],u,c),typeof oe<"u")return oe;Ee&&(a=a.slice(0,-1*Ee*2),u=u.slice(0,-1*Ee),c=c.slice(0,-1*Ee)),a.push(this.productions_[j[1]][0]),u.push(le.$),c.push(le._$),Bt=l[a[a.length-2]][a[a.length-1]],a.push(Bt);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,u=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 c=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),u.length-1&&(this.yylineno-=u.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:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[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
+ `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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,f[c],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,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();da.default=yC;Ib.exports=da.default});var ya=m((ga,Cb)=>{"use strict";ga.__esModule=!0;function vC(e){return e&&e.__esModule?e:{default:e}}o(vC,"_interopRequireDefault");var _C=Ze(),gp=vC(_C);function ha(){this.parents=[]}o(ha,"Visitor");ha.prototype={constructor:ha,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ha.prototype[n.type])throw new gp.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 gp.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 gp.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:ma,Decorator:ma,BlockStatement:Rb,DecoratorBlock:Rb,PartialStatement:Tb,PartialBlockStatement:o(function(t){Tb.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ma,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 ma(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ma,"visitSubExpression");function Rb(e){ma.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(Rb,"visitBlock");function Tb(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Tb,"visitPartial");ga.default=ha;Cb.exports=ga.default});var qb=m((va,Nb)=>{"use strict";va.__esModule=!0;function bC(e){return e&&e.__esModule?e:{default:e}}o(bC,"_interopRequireDefault");var SC=ya(),PC=bC(SC);function kt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(kt,"WhitespaceControl");kt.prototype=new PC.default;kt.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],u=this.accept(a);if(u){var c=yp(n,i,r),l=vp(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Gr(n,i,!0),u.open&&gr(n,i,!0),t&&d&&(Gr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gr((a.program||a.inverse).body),gr(n,i)),t&&f&&(Gr(n,i),gr((a.inverse||a.program).body))}}return e};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.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:vp(t.body),closeStandalone:yp((n||t).body)};if(e.openStrip.close&&Gr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Gr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&yp(t.body)&&vp(n.body)&&(gr(t.body),Gr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return s};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(e){return e.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function yp(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(yp,"isPrevWhitespace");function vp(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(vp,"isNextWhitespace");function Gr(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(Gr,"omitRight");function gr(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(gr,"omitLeft");va.default=kt;Nb.exports=va.default});var jb=m(Ke=>{"use strict";Ke.__esModule=!0;Ke.SourceLocation=EC;Ke.id=xC;Ke.stripFlags=wC;Ke.stripComment=AC;Ke.preparePath=IC;Ke.prepareMustache=kC;Ke.prepareRawBlock=RC;Ke.prepareBlock=TC;Ke.prepareProgram=CC;Ke.preparePartialBlock=NC;function $C(e){return e&&e.__esModule?e:{default:e}}o($C,"_interopRequireDefault");var OC=Ze(),_p=$C(OC);function bp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new _p.default(e.path.original+" doesn't match "+t,r)}}o(bp,"validateClose");function EC(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(EC,"SourceLocation");function xC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(xC,"id");function wC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(wC,"stripFlags");function AC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(AC,"stripComment");function IC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new _p.default("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(IC,"preparePath");function kC(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(s)}}o(kC,"prepareMustache");function RC(e,t,r,n){bp(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(RC,"prepareRawBlock");function TC(e,t,r,n,i,s){n&&n.path&&bp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new _p.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(TC,"prepareBlock");function CC(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(CC,"prepareProgram");function NC(e,t,r,n){return bp(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(NC,"preparePartialBlock")});var Lb=m(ho=>{"use strict";ho.__esModule=!0;ho.parseWithoutProcessing=Db;ho.parse=BC;function qC(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(qC,"_interopRequireWildcard");function Mb(e){return e&&e.__esModule?e:{default:e}}o(Mb,"_interopRequireDefault");var jC=kb(),Sp=Mb(jC),MC=qb(),DC=Mb(MC),LC=jb(),FC=qC(LC),VC=Oe();ho.parser=Sp.default;var _a={};VC.extend(_a,FC);function Db(e,t){if(e.type==="Program")return e;Sp.default.yy=_a,_a.locInfo=function(n){return new _a.SourceLocation(t&&t.srcName,n)};var r=Sp.default.parse(e);return r}o(Db,"parseWithoutProcessing");function BC(e,t){var r=Db(e,t),n=new DC.default(t);return n.accept(r)}o(BC,"parse")});var Hb=m(vo=>{"use strict";vo.__esModule=!0;vo.Compiler=Pp;vo.precompile=GC;vo.compile=ZC;function Vb(e){return e&&e.__esModule?e:{default:e}}o(Vb,"_interopRequireDefault");var HC=Ze(),go=Vb(HC),yo=Oe(),UC=mp(),mo=Vb(UC),zC=[].slice;function Pp(){}o(Pp,"Compiler");Pp.prototype={compiler:Pp,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||!Bb(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=yo.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 go.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){Fb(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 go.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){Fb(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 go.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,mo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=mo.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:zC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=mo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&mo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.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&&!mo.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&&yo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function GC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new go.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(GC,"precompile");function ZC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new go.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=yo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}o(i,"compileInput");function s(a,u){return n||(n=i()),n.call(this,a,u)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},s}o(ZC,"compile");function Bb(e,t){if(e===t)return!0;if(yo.isArray(e)&&yo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Bb(e[r],t[r]))return!1;return!0}}o(Bb,"argEquals");function Fb(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(Fb,"transformLiteralToPath")});var zb=m($p=>{var Ub="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$p.encode=function(e){if(0<=e&&e<Ub.length)return Ub[e];throw new TypeError("Must be between 0 and 63: "+e)};$p.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==u?62:e==c?63:-1}});var xp=m(Ep=>{var Gb=zb(),Op=5,Zb=1<<Op,Kb=Zb-1,Wb=Zb;function KC(e){return e<0?(-e<<1)+1:(e<<1)+0}o(KC,"toVLQSigned");function WC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(WC,"fromVLQSigned");Ep.encode=o(function(t){var r="",n,i=KC(t);do n=i&Kb,i>>>=Op,i>0&&(n|=Wb),r+=Gb.encode(n);while(i>0);return r},"base64VLQ_encode");Ep.decode=o(function(t,r,n){var i=t.length,s=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Gb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&Wb),c&=Kb,s=s+(c<<a),a+=Op}while(u);n.value=WC(s),n.rest=r},"base64VLQ_decode")});var Wn=m(ve=>{function YC(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(YC,"getArg");ve.getArg=YC;var Yb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,QC=/^data:.+\,.+$/;function _o(e){var t=e.match(Yb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(_o,"urlParse");ve.urlParse=_o;function Zn(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(Zn,"urlGenerate");ve.urlGenerate=Zn;function wp(e){var t=e,r=_o(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.isAbsolute(t),i=t.split(/\/+/),s,a=0,u=i.length-1;u>=0;u--)s=i[u],s==="."?i.splice(u,1):s===".."?a++:a>0&&(s===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}o(wp,"normalize");ve.normalize=wp;function Qb(e,t){e===""&&(e="."),t===""&&(t=".");var r=_o(t),n=_o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(QC))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:wp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}o(Qb,"join");ve.join=Qb;ve.isAbsolute=function(e){return e.charAt(0)==="/"||Yb.test(e)};function JC(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(JC,"relative");ve.relative=JC;var Jb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Xb(e){return e}o(Xb,"identity");function XC(e){return eS(e)?"$"+e:e}o(XC,"toSetString");ve.toSetString=Jb?Xb:XC;function eN(e){return eS(e)?e.slice(1):e}o(eN,"fromSetString");ve.fromSetString=Jb?Xb:eN;function eS(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(eS,"isProtoString");function tN(e,t,r){var n=Kn(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:Kn(e.name,t.name)}o(tN,"compareByOriginalPositions");ve.compareByOriginalPositions=tN;function rN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Kn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Kn(e.name,t.name)}o(rN,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=rN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Kn,"strcmp");function nN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Kn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Kn(e.name,t.name)}o(nN,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=nN;function iN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(iN,"parseSourceMapInput");ve.parseSourceMapInput=iN;function oN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=_o(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=Qb(Zn(n),t)}return wp(t)}o(oN,"computeSourceURL");ve.computeSourceURL=oN});var kp=m(tS=>{var Ap=Wn(),Ip=Object.prototype.hasOwnProperty,Zr=typeof Map<"u";function Vt(){this._array=[],this._set=Zr?new Map:Object.create(null)}o(Vt,"ArraySet");Vt.fromArray=o(function(t,r){for(var n=new Vt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=o(function(){return Zr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=o(function(t,r){var n=Zr?t:Ap.toSetString(t),i=Zr?this.has(t):Ip.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Zr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Vt.prototype.has=o(function(t){if(Zr)return this._set.has(t);var r=Ap.toSetString(t);return Ip.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=o(function(t){if(Zr){var r=this._set.get(t);if(r>=0)return r}else{var n=Ap.toSetString(t);if(Ip.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.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");Vt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");tS.ArraySet=Vt});var iS=m(nS=>{var rS=Wn();function sN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||rS.compareByGeneratedPositionsInflated(e,t)<=0}o(sN,"generatedPositionAfter");function ba(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(ba,"MappingList");ba.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");ba.prototype.add=o(function(t){sN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");ba.prototype.toArray=o(function(){return this._sorted||(this._array.sort(rS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");nS.MappingList=ba});var Rp=m(oS=>{var bo=xp(),X=Wn(),Sa=kp().ArraySet,aN=iS().MappingList;function We(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new Sa,this._names=new Sa,this._mappings=new aN,this._sourcesContents=null}o(We,"SourceMapGenerator");We.prototype._version=3;We.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new We({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=X.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=X.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");We.prototype.addMapping=o(function(t){var r=X.getArg(t,"generated"),n=X.getArg(t,"original",null),i=X.getArg(t,"source",null),s=X.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");We.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=X.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");We.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=X.relative(s,i));var a=new Sa,u=new Sa;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=X.join(n,c.source)),s!=null&&(c.source=X.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=X.join(n,c)),s!=null&&(c=X.relative(s,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");We.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");We.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=bo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=bo.encode(f-a),a=f,c+=bo.encode(l.originalLine-1-i),i=l.originalLine-1,c+=bo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=bo.encode(p-s),s=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");We.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=X.relative(r,n));var i=X.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");We.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");We.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");oS.SourceMapGenerator=We});var sS=m(Kr=>{Kr.GREATEST_LOWER_BOUND=1;Kr.LEAST_UPPER_BOUND=2;function Tp(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?Tp(a,t,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Tp(e,a,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Tp,"recursiveSearch");Kr.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Tp(-1,r.length,t,r,n,i||Kr.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 uS=m(aS=>{function Cp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Cp,"swap");function uN(e,t){return Math.round(e+Math.random()*(t-e))}o(uN,"randomIntInRange");function Np(e,t,r,n){if(r<n){var i=uN(r,n),s=r-1;Cp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(s+=1,Cp(e,s,u));Cp(e,s+1,u);var c=s+1;Np(e,t,r,c-1),Np(e,t,c+1,n)}}o(Np,"doQuickSort");aS.quickSort=function(e,t){Np(e,t,0,e.length-1)}});var lS=m(Pa=>{var P=Wn(),qp=sS(),Yn=kp().ArraySet,cN=xp(),So=uS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new lt(r,t):new ce(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ce.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||U.GENERATED_ORDER,a;switch(s){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,qp.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Pa.SourceMapConsumer=U;function ce(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),s=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Yn.fromArray(s.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}o(ce,"BasicSourceMapConsumer");ce.prototype=Object.create(U.prototype);ce.prototype.consumer=U;ce.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ce.fromSourceMap=o(function(t,r){var n=Object.create(ce.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),s=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new cS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return So(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ce.prototype._version=3;Object.defineProperty(ce.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function cS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(cS,"Mapping");ce.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,b,S;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new cS,y.generatedLine=n,b=p;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(p,b),_=f[v],_)p+=v.length;else{for(_=[];p<b;)cN.decode(t,p,d),S=d.value,p=d.rest,_.push(S);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=s+_[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}So(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,So(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ce.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 qp.search(t,r,s,a)},"SourceMapConsumer_findMapping");ce.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");ce.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=P.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=P.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ce.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ce.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=P.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=P.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");ce.prototype.generatedPositionFor=o(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:P.getArg(s,"generatedLine",null),column:P.getArg(s,"generatedColumn",null),lastColumn:P.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Pa.BasicSourceMapConsumer=ce;function lt(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;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 u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}o(lt,"IndexedSourceMapConsumer");lt.prototype=Object.create(U.prototype);lt.prototype.constructor=U;lt.prototype._version=3;Object.defineProperty(lt.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")});lt.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=qp.search(r,this._sections,function(s,a){var u=s.generatedLine-a.generatedOffset.generatedLine;return u||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");lt.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");lt.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");lt.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var 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");lt.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 u=s[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}So(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),So(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Pa.IndexedSourceMapConsumer=lt});var pS=m(fS=>{var lN=Rp().SourceMapGenerator,$a=Wn(),fN=/(\r?\n)/,pN=10,Qn="$$$isSourceNode$$$";function je(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[Qn]=!0,n!=null&&this.add(n)}o(je,"SourceNode");je.fromStringWithSourceMap=o(function(t,r,n){var i=new je,s=t.split(fN),a=0,u=o(function(){var d=g(),h=g()||"";return d+h;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=s[a]||"",g=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,u()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=$a.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?$a.join(n,d.source):d.source;i.add(new je(d.originalLine,d.originalColumn,g,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");je.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Qn]||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");je.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[Qn]||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");je.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Qn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");je.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");je.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Qn]?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");je.prototype.setSourceContent=o(function(t,r){this.sourceContents[$a.toSetString(t)]=r},"SourceNode_setSourceContent");je.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Qn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($a.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");je.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");je.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new lN(t),i=!1,s=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===pN?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");fS.SourceNode=je});var dS=m(Oa=>{Oa.SourceMapGenerator=Rp().SourceMapGenerator;Oa.SourceMapConsumer=lS().SourceMapConsumer;Oa.SourceNode=pS().SourceNode});var yS=m((Ea,gS)=>{"use strict";Ea.__esModule=!0;var Mp=Oe(),Wr=void 0;try{(typeof define!="function"||!define.amd)&&(hS=dS(),Wr=hS.SourceNode)}catch{}var hS;Wr||(Wr=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wr.prototype={add:o(function(t){Mp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Mp.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 jp(e,t,r){if(Mp.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(jp,"castChunk");function mS(e){this.srcFile=e,this.source=[]}o(mS,"CodeGen");mS.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
+ `])}),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 Wr(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 Wr?t:(t=jp(t,this,r),new Wr(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=jp(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(jp(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Ea.default=mS;gS.exports=Ea.default});var PS=m((xa,SS)=>{"use strict";xa.__esModule=!0;function bS(e){return e&&e.__esModule?e:{default:e}}o(bS,"_interopRequireDefault");var vS=aa(),dN=Ze(),Dp=bS(dN),hN=Oe(),mN=yS(),_S=bS(mN);function Jn(e){this.value=e}o(Jn,"Literal");function Xn(){}o(Xn,"JavaScriptCompiler");Xn.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=vS.COMPILER_REVISION,r=vS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return hN.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,u=void 0,c=void 0,l=void 0;for(c=0,l=s.length;c<l;c++)a=s[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Dp.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
+ `]),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
+ `),this.decorators.push(`}
62
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new _S.default(this.options.srcName),this.decorators=new _S.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+c,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
+ `,u,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(s?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
64
+ `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
65
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
66
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
67
+ return parent[propertyName];
68
+ }
69
+ return undefined
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(gN(this.options.strict&&s,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda: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 u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",s.callParams);this.push(c)},"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:Xn,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,u=n.length;a<u;a++){i=n[a],s=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=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=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.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 Jn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Jn(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 Dp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Jn)n=[a.value],r=["(",n],s=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"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 Jn)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 Jn)return n.value;if(!r){if(!this.stackSlot)throw new Dp.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 Jn?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"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(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=Xn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Xn.isValidJavaScriptVariableName=function(e){return!Xn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function gN(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(gN,"strictLookup");xa.default=Xn;SS.exports=xa.default});var ES=m((wa,OS)=>{"use strict";wa.__esModule=!0;function Po(e){return e&&e.__esModule?e:{default:e}}o(Po,"_interopRequireDefault");var yN=xb(),vN=Po(yN),_N=mp(),bN=Po(_N),Lp=Lb(),Fp=Hb(),SN=PS(),PN=Po(SN),$N=ya(),ON=Po($N),EN=fp(),xN=Po(EN),wN=vN.default.create;function $S(){var e=wN();return e.compile=function(t,r){return Fp.compile(t,r,e)},e.precompile=function(t,r){return Fp.precompile(t,r,e)},e.AST=bN.default,e.Compiler=Fp.Compiler,e.JavaScriptCompiler=PN.default,e.Parser=Lp.parser,e.parse=Lp.parse,e.parseWithoutProcessing=Lp.parseWithoutProcessing,e}o($S,"create");var ei=$S();ei.create=$S;xN.default(ei);ei.Visitor=ON.default;ei.default=ei;wa.default=ei;OS.exports=wa.default});var xS=m(Aa=>{"use strict";Aa.__esModule=!0;Aa.print=RN;Aa.PrintVisitor=Y;function AN(e){return e&&e.__esModule?e:{default:e}}o(AN,"_interopRequireDefault");var IN=ya(),kN=AN(IN);function RN(e){return new Y().accept(e)}o(RN,"print");function Y(){this.padding=0}o(Y,"PrintVisitor");Y.prototype=new kN.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var 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};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,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};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Yr=m((ZF,IS)=>{var Ia=ES().default,AS=xS();Ia.PrintVisitor=AS.PrintVisitor;Ia.print=AS.print;IS.exports=Ia;function wS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ia.compile(n)}o(wS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=wS,require.extensions[".hbs"]=wS)});var XN={};WS(XN,{getGenerateFileData:()=>JN,getGenerateMetadata:()=>QN});module.exports=YS(XN);var Gp=De(Pv());var $v="Schema",Ov="Enum",Ev="Body",xv="Param",wv="Response",Av="ErrorResponse",Pf="z.void()",As={bindings:["z"],from:"zod"};var Yi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:$v,enumSuffix:Ov,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ne=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var ge=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Qi=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Is=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Re=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Iv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),$f=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),kv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),zR=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"),Of=o(e=>{let t=e.map(ge).map(GR).map(r=>ZR(r)).flat();return zR(t)},"getMostCommonAdjacentCombinationSplit"),GR=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ZR=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");var ks=o(e=>`use${ge(Re(e.operationName))}`,"getQueryName"),Ef=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=Ne(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${ge(Is(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),Rv=o((e,t)=>{let n=Ef(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function or({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Qi(t)}/`:""}${Qi(t)}.${i}`:i}o(or,"getTagFileName");var re=o(({type:e,tag:t,options:r})=>`${ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Tv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Pt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var jt=Symbol.for("@ts-pattern/matcher"),KR=Symbol.for("@ts-pattern/isVariadic"),Ts="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Rs=o(e=>e&&!!e[jt],"i"),Et=o((e,t,r)=>{if(Rs(e)){let n=e[jt](),{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 u=e[a];Rs(u)&&u[KR]?s.push(u):s.length?i.push(u):n.push(u)}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),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Et(l,a[p],r))&&i.every((l,p)=>Et(l,u[p],r))&&(s.length===0||Et(s[0],c,r))}return e.length===t.length&&e.every((a,u)=>Et(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Rs(s=i)&&s[jt]().matcherType==="optional")&&Et(i,t[n],r);var s})}return Object.is(t,e)},"s"),lr=o(e=>{var t,r,n;return xf(e)?Rs(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Xi(e,lr):Xi(Object.values(e),lr):[]},"o"),Xi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:o(()=>WR(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>YR(e,t),"or"),select:o(t=>t===void 0?Cv(e):Cv(t,e),"select")})}o(Ue,"u");function WR(e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Et(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}o(WR,"h");function z(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function YR(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Xi(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"or"})})}o(YR,"d");function D(e){return{[jt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(D,"p");function Cv(...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 Ue({[jt]:()=>({match:o(n=>{let i={[t??Ts]:n};return{matched:r===void 0||Et(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Ts].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}o(Cv,"y");function $t(e){return typeof e=="number"}o($t,"v");function sr(e){return typeof e=="string"}o(sr,"b");function ar(e){return typeof e=="bigint"}o(ar,"w");var wD=Ue(D(function(e){return!0}));var ur=o(e=>Object.assign(Ue(e),{startsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),AD=ur(D(sr)),Ot=o(e=>Object.assign(Ue(e),{between:o((t,r)=>Ot(z(e,((n,i)=>D(s=>$t(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<r))(t))),"lt"),gt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>r))(t))),"gt"),lte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<=r))(t))),"lte"),gte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>=r))(t))),"gte"),int:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Ot(z(e,D(t=>$t(t)&&t>0))),"positive"),negative:o(()=>Ot(z(e,D(t=>$t(t)&&t<0))),"negative")}),"x"),ID=Ot(D($t)),cr=o(e=>Object.assign(Ue(e),{between:o((t,r)=>cr(z(e,((n,i)=>D(s=>ar(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:o(()=>cr(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:o(()=>cr(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),kD=cr(D(ar)),RD=Ue(D(function(e){return typeof e=="boolean"})),TD=Ue(D(function(e){return typeof e=="symbol"})),CD=Ue(D(function(e){return e==null})),ND=Ue(D(function(e){return e!=null}));var kf=class kf 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(kf,"W");var wf=kf,Af={matched:!1,value:void 0};function ye(e){return new If(e,Af)}o(ye,"z");var Ji=class Ji{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={},u=o((l,p)=>{s=!0,a[l]=p},"a"),c=!n.some(l=>Et(l,this.input,u))||i&&!i(this.input)?Af:{matched:!0,value:r(s?Ts in a?a[Ts]:a:this.input,this.input)};return new Ji(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ji(this.input,n?{matched:!0,value:r(this.input,this.input)}:Af)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new wf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Ji,"I");var If=Ji;var Nv=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Rf=2,qv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],jv=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],Mv=["string","number","integer","boolean"],Cs=["allOf","anyOf","oneOf"];function pr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(pr,"pick");function xt(e){return Iv(e)}o(xt,"formatTag");function Lr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return xt(r??t.defaultTag)}o(Lr,"getOperationTag");function Dv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=pr(i,fr);for(let a in s){let u=s[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Lr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}o(Dv,"getOperationsByTag");var Fv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Dn=o(e=>Fr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(H,"isReferenceObject");function Nf(e){let t=QR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Re(t)}o(Nf,"normalizeString");function Vv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Vv,"wrapWithQuotesIfNeeded");function Bv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(Bv,"unwrapQuotesIfNeeded");function QR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(QR,"prefixStringStartingWithNumberIfNeeded");function qf(e){let t=e.replaceAll("_","#");return Re(t.replaceAll("-","_")).replaceAll("#","_")}o(qf,"pathParamToVariableName");var Mt=o(e=>Mv.includes(e),"isPrimitiveType");function Hv(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(Hv,"escapeControlCharacters");function dr(e){return e.includes("application/")&&e.includes("json")||qv.includes(e)||e.includes("text/")}o(dr,"isParamMediaTypeAllowed");function Ns(e){return e>=200&&e<300}o(Ns,"isMainResponseStatus");function qs(e){return!(e>=200&&e<300)}o(qs,"isErrorStatus");function Ln(e){return e==="application/json"}o(Ln,"isMediaTypeAllowed");function Tf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${XR(e)}`,a=r.operationId?Pt(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return Nv.includes(a)?s:a}o(Tf,"getOperationName");function eo({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Lr(r,i):i.defaultTag,a=Tf({path:e,method:t,operation:r,options:i});return n[s].filter(c=>Tf({path:e,method:t,operation:c,options:i})===a).length===1?a:Tf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(eo,"getUniqueOperationName");function Uv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=pr(s,fr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=eo({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}o(Uv,"getUniqueOperationNamesWithoutSplitByTags");var Lv=/({\w+})/g,JR=/[^\w\-]+/g;function XR(e){e=ge(Is(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Lv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Lv,"")}By${ge(r.slice(1,-1))}`}return e.replace(JR,"_")}o(XR,"pathToVariableName");var Cf=/{(\b\w+(?:-\w+)*\b)}/g;function zv(e){let t=e.match(Cf);return t===null?e.replaceAll(Cf,":$1"):(t.forEach(r=>{let n=qf(r.replaceAll(Cf,":$1"));e=e.replaceAll(r,n)}),e)}o(zv,"replaceHyphenatedPath");var Fn=o(e=>e.method==="get","isQuery"),js=o(e=>e.method!=="get","isMutation");var hr=o((e,t)=>$f(ge(Nf(e)),t),"getZodSchemaName"),Gv=o((e,t,r)=>$f(ge(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Vr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Ms=o(e=>Re(`${e}_${Ev}`),"getBodyZodSchemaName"),Zv=o((e,t)=>Re(`${e}_${t}${xv}`),"getParamZodSchemaName"),eT=o(e=>Re(`${e}${wv}`),"getMainResponseZodSchemaName"),tT=o((e,t)=>Re(`${e}_${t}_${Av}`),"getErrorResponseZodSchemaName");function Ds({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Vr(t,r,n);return!Ns(i)&&e!=="default"&&qs(i)?tT(s,e):eT(s)}o(Ds,"getResponseZodSchemaName");var to=o((e,t)=>kv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Kv=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ls=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${to(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Fs(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Fs,"primitiveTypeToTsType");function Vn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Ls(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Fs(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{filePath:or({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Vn,"getTsTypeBase");function Br({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Cs){let s=e[i];if(s)if(s.length>1){let a=s.map(u=>{let c=n.resolveObject(u);return Br({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Wv({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:rT({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Br,"getSchemaTsMetaType");function Wv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let s=Vn({zodSchemaName:n,schema:i,resolver:r}),a=Yv(s,t),u=Br({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...u}}o(Wv,"getArraySchemaTsType");function rT({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(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=Vn({zodSchemaName:u,schema:c,resolver:r}),p=Yv(l,t),f=Br({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...f}}else if(i.type==="array"){let u=Wv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:u}}else if(Mt(i.type))return{name:n,isRequired:s,type:Fs(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(rT,"getSchemaTsProperties");function Yv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Yv,"getIsCircular");var jf={"Content-Type":"application/json",Accept:"application/json"},Qv="data";function wt(e){return!H(e)}o(wt,"isSchemaObject");function Jv(e){return e.type==="array"}o(Jv,"isArraySchemaObject");function Xv(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(nT(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(H(i)){let a=s(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}o(Xv,"inferRequiredSchema");var nT=o(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var ro=o(e=>Qi(Re(e.operationName)),"getEndpointName");function e_(e,t){return`${t.includeNamespaces?`${re({type:"endpoints",tag:no(e,t),options:t})}.`:""}${ro(e)}`}o(e_,"getImportedEndpointName");var t_=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function no(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return xt(r??t.defaultTag)}o(no,"getEndpointTag");function Mf(e,t){return t.parameters.map(r=>{var i,s,a,u;let n="string";if(Pe(r.zodSchema))n=Ls(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&wt(r.parameterObject.schema)){let c=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;c&&Mt(c)&&(n=Fs(c))}return{name:Pt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(Mf,"mapEndpointParamsToFunctionParams");function r_(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Tv(i.name)?i.name:`"${i.name}"`,a=Pt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==jf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==jf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Pt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(r_,"getEndpointConfig");var n_=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),i_=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),o_=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V5=Object.keys(G.modifier),iT=Object.keys(G.color),oT=Object.keys(G.bgColor),B5=[...iT,...oT];function sT(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=n_(),G.color.ansi256=i_(),G.color.ansi16m=o_(),G.bgColor.ansi=n_(10),G.bgColor.ansi256=i_(10),G.bgColor.ansi16m=o_(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>G.rgbToAnsi256(...G.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),"value"),enumerable:!1}}),G}o(sT,"assembleStyles");var aT=sT(),ut=aT;var Bs=De(require("process"),1),a_=De(require("os"),1),Df=De(require("tty"),1);function ze(e,t=globalThis.Deno?globalThis.Deno.args:Bs.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(ze,"hasFlag");var{env:Z}=Bs.default,Vs;ze("no-color")||ze("no-colors")||ze("color=false")||ze("color=never")?Vs=0:(ze("color")||ze("colors")||ze("color=true")||ze("color=always"))&&(Vs=1);function uT(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}o(uT,"envForceColor");function cT(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(cT,"translateLevel");function lT(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=uT();n!==void 0&&(Vs=n);let i=r?Vs:n;if(i===0)return 0;if(r){if(ze("color=16m")||ze("color=full")||ze("color=truecolor"))return 3;if(ze("color=256"))return 2}if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Bs.default.platform==="win32"){let a=a_.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Z)return"GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor"||Z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Z){let a=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}o(lT,"_supportsColor");function s_(e,t={}){let r=lT(e,{streamIsTTY:e&&e.isTTY,...t});return cT(r)}o(s_,"createSupportsColor");var fT={stdout:s_({isTTY:Df.default.isatty(1)}),stderr:s_({isTTY:Df.default.isatty(2)})},u_=fT;function c_(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(c_,"stringReplaceAll");function l_(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
51
73
  `:`
52
74
  `)+r,i=n+1,n=e.indexOf(`
53
- `,i)}while(n!==-1);return o+=e.slice(i),o}s(sg,"stringEncaseCRLFWithFirstIndex");var{stdout:ag,stderr:cg}=ig,ku=Symbol("GENERATOR"),nn=Symbol("STYLER"),ni=Symbol("IS_EMPTY"),ug=["ansi","ansi","ansi256","ansi16m"],on=Object.create(null),oA=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ag?ag.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Fu=class Fu{constructor(t){return fg(t)}};s(Fu,"Chalk");var wo=Fu,fg=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return oA(t,e),Object.setPrototypeOf(t,ii.prototype),t},"chalkFactory");function ii(e){return fg(e)}s(ii,"createChalk");Object.setPrototypeOf(ii.prototype,Function.prototype);for(let[e,t]of Object.entries(Be))on[e]={get(){let r=Eo(this,Du(t.open,t.close,this[nn]),this[ni]);return Object.defineProperty(this,e,{value:r}),r}};on.visible={get(){let e=Eo(this,this[nn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Mu=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Be[r].ansi16m(...n):t==="ansi256"?Be[r].ansi256(Be.rgbToAnsi256(...n)):Be[r].ansi(Be.rgbToAnsi(...n)):e==="hex"?Mu("rgb",t,r,...Be.hexToRgb(...n)):Be[r][e](...n),"getModelAnsi"),sA=["rgb","hex","ansi256"];for(let e of sA){on[e]={get(){let{level:r}=this;return function(...n){let i=Du(Mu(e,ug[r],"color",...n),Be.color.close,this[nn]);return Eo(this,i,this[ni])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);on[t]={get(){let{level:r}=this;return function(...n){let i=Du(Mu(e,ug[r],"bgColor",...n),Be.bgColor.close,this[nn]);return Eo(this,i,this[ni])}}}}var aA=Object.defineProperties(()=>{},{...on,level:{enumerable:!0,get(){return this[ku].level},set(e){this[ku].level=e}}}),Du=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Eo=s((e,t,r)=>{let n=s((...i)=>cA(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,aA),n[ku]=e,n[nn]=t,n[ni]=r,n},"createBuilder"),cA=s((e,t)=>{if(e.level<=0||!t)return e[ni]?"":t;let r=e[nn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=og(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
54
- `);return o!==-1&&(t=sg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(ii.prototype,on);var NC=ii(),CC=ii({level:cg?cg.level:0});var Te=new wo;function lg(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}s(lg,"getInvalidSchemaError");function pg(e){return{type:"invalid-operation-id",message:`Operation ${Te.gray(e)}`}}s(pg,"getInvalidOperationIdError");function dg(e,t){return{type:"missing-path-parameter",message:`Path ${Te.gray(t)} is missing [${e.map(({name:r})=>Te.gray(r)).join(", ")}]`}}s(dg,"getMissingPathParameterError");function mg(e){return{type:"not-allowed-inline-enum",message:e}}s(mg,"getNotAllowedInlineEnumError");function it({schema:e,meta:t,options:r}){let n=[];ce(e.type).with("string",()=>n.push(lA(e))).with("number","integer",()=>n.push(dA(e))).with("array",()=>n.push(mA(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
75
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(l_,"stringEncaseCRLFWithFirstIndex");var{stdout:f_,stderr:p_}=u_,Lf=Symbol("GENERATOR"),Bn=Symbol("STYLER"),io=Symbol("IS_EMPTY"),d_=["ansi","ansi","ansi256","ansi16m"],Hn=Object.create(null),pT=o((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=f_?f_.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Bf=class Bf{constructor(t){return h_(t)}};o(Bf,"Chalk");var Hs=Bf,h_=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return pT(t,e),Object.setPrototypeOf(t,oo.prototype),t},"chalkFactory");function oo(e){return h_(e)}o(oo,"createChalk");Object.setPrototypeOf(oo.prototype,Function.prototype);for(let[e,t]of Object.entries(ut))Hn[e]={get(){let r=Us(this,Vf(t.open,t.close,this[Bn]),this[io]);return Object.defineProperty(this,e,{value:r}),r}};Hn.visible={get(){let e=Us(this,this[Bn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ff=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ut[r].ansi16m(...n):t==="ansi256"?ut[r].ansi256(ut.rgbToAnsi256(...n)):ut[r].ansi(ut.rgbToAnsi(...n)):e==="hex"?Ff("rgb",t,r,...ut.hexToRgb(...n)):ut[r][e](...n),"getModelAnsi"),dT=["rgb","hex","ansi256"];for(let e of dT){Hn[e]={get(){let{level:r}=this;return function(...n){let i=Vf(Ff(e,d_[r],"color",...n),ut.color.close,this[Bn]);return Us(this,i,this[io])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Hn[t]={get(){let{level:r}=this;return function(...n){let i=Vf(Ff(e,d_[r],"bgColor",...n),ut.bgColor.close,this[Bn]);return Us(this,i,this[io])}}}}var hT=Object.defineProperties(()=>{},{...Hn,level:{enumerable:!0,get(){return this[Lf].level},set(e){this[Lf].level=e}}}),Vf=o((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Us=o((e,t,r)=>{let n=o((...i)=>mT(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,hT),n[Lf]=e,n[Bn]=t,n[io]=r,n},"createBuilder"),mT=o((e,t)=>{if(e.level<=0||!t)return e[io]?"":t;let r=e[Bn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=c_(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
76
+ `);return s!==-1&&(t=l_(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(oo.prototype,Hn);var J5=oo(),X5=oo({level:p_?p_.level:0});var Ge=new Hs;function m_(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}o(m_,"getInvalidSchemaError");function g_(e){return{type:"invalid-operation-id",message:`Operation ${Ge.gray(e)}`}}o(g_,"getInvalidOperationIdError");function y_(e,t){return{type:"missing-path-parameter",message:`Path ${Ge.gray(t)} is missing [${e.map(({name:r})=>Ge.gray(r)).join(", ")}]`}}o(y_,"getMissingPathParameterError");function v_(e){return{type:"not-allowed-inline-enum",message:e}}o(v_,"getNotAllowedInlineEnumError");function At({schema:e,meta:t,options:r}){let n=[];ye(e.type).with("string",()=>n.push(vT(e))).with("number","integer",()=>n.push(bT(e))).with("array",()=>n.push(ST(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
55
77
  `,"\r",`\r
56
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(uA(e,t),(r==null?void 0:r.withDefaultValues)!==!1?fA(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(it,"getZodChain");function uA(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(uA,"getZodChainablePresence");function fA(e){return e.default!==void 0?`default(${ce(e.type).with("number","integer",()=>Fy(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(fA,"getZodChainableDefault");function lA(e){let t=[];if(e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${pA(e.pattern)})`),e.format){let r=ce(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(lA,"getZodChainableStringValidations");function pA(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Vy(e),`/${e}/`}s(pA,"formatPatternIfNeeded");function dA(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(dA,"getZodChainableNumberValidations");function mA(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(mA,"getZodChainableArrayValidations");var mr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function X(e,t){if(!t)return e;if(V(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?de("oneOf")+X(e,{...t,type:t.type[0]}):e+de("oneOf")+mr(t.type.map(r=>X(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?de("oneOf")+X(e,t.oneOf[0]):e+de("oneOf")+mr(t.oneOf.map(r=>X(0,r)));if(t.anyOf)return t.anyOf.length===1?de("anyOf")+X(e,t.anyOf[0]):e+de("anyOf")+mr(t.anyOf.map(r=>X(0,r)));if(t.allOf)return t.allOf.length===1?de("allOf")+X(e,t.allOf[0]):e+de("allOf")+mr(t.allOf.map(r=>X(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+hg(t)+de("enum")+mr(t.enum.map(r=>X(0,r))):e+hg(t);if(t.type==="array")return t.items?de("array")+X(e,t.items):de("array")+X(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?de("record")+X(e):de("record")+X(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+de("object")+mr(r.map(n=>X(0,n)))}return de("empty-object")+X(e)}return e}s(X,"getOpenAPISchemaComplexity");function hg(e){return ce(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(hg,"complexityByType");function de(e){return ce(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s(de,"complexityByComposite");var Vu=class Vu{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;V(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var o,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${lt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return X(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Vu,"ZodSchema");var oi=Vu;function H({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new oi(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(V(e))return hA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let c=gA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let u=yA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let f=$A({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let l=bA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=vA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let h=t.options.allReadonly?".readonly()":"";if(Yy(e))return e.items?i.assign(`z.array(${H({...a,schema:e.items}).getCodeString(n,t.options)}${it({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${h}`):i.assign(`z.array(z.any())${h}`);let d=e.type?e.type.toLowerCase():void 0;if(d==="object"||e.properties||e.additionalProperties){let $=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,b=(e.additionalProperties===null||e.additionalProperties===void 0?$:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${H({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+it({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let v=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((y=e.required)!=null&&y.length),T="{}";e.properties&&(T="{ "+Object.entries(e.properties).map(([ee,me])=>{var an;let ot={...o,isRequired:S?!0:v?(an=e.required)==null?void 0:an.includes(ee):t.options.withImplicitRequiredProps,name:ee},Vt=me;if(V(me)&&t&&(Vt=t.getSchemaByRef(me.$ref),!Vt))throw new Error(`Schema ${me.$ref} not found`);let ai=H({...a,schema:me,meta:ot}).getCodeString(n,t.options)+it({schema:Vt,meta:ot,options:t.options});return[ee,ai]}).map(([ee,me])=>`${Dy(ee)}: ${me}`).join(", ")+" }");let P=S?".partial()":"",z=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${T})${P}${z}${b}${h}`)}if(!d)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${d}`)}s(H,"getZodSchema");function hA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!V(e))return;let o=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=H({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}s(hA,"getReferenceZodSchema");function yA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!dt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=H({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(c=>dt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!o){let c=e.discriminator.propertyName;return t.assign(`
57
- z.discriminatedUnion("${c}", [${e.oneOf.map(u=>H({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
58
- `)}return t.assign(`z.union([${e.oneOf.map(c=>H({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(yA,"getOneOfZodSchema");function gA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!dt(e)||!Array.isArray(e.type)))return e.type.length===1?H({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>H({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(gA,"getArrayZodSchema");function $A({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=H({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>H({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s($A,"getAnyOfZodSchema");function bA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e)||!e.allOf)return;if(e.allOf.length===1){let p=H({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Jy(e),u=a.map(p=>{let h=H({schema:p,resolver:r,meta:n,tag:i});return r&&o(p,r.getSchemaByRef.bind(r)),h});c.required.length&&u.push(H({schema:c,resolver:r,meta:n,tag:i}));let f=u.at(0),l=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${f.getCodeString(i,r.options)}.${l}`)}s(bA,"getAllOfZodSchema");function vA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Mt(o)){if(e.enum){if(o==="string")return SA({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(ce(o).with("integer",()=>"z.number()").with("string",()=>ce(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(vA,"getPrimitiveZodSchema");function SA({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!dt(t))return;let o=Lu(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let c=e.options.includeNamespaces&&a.tag!==i?`${lt({type:"models",tag:a.tag,options:e.options})}.`:"";return new oi(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}s(SA,"getEnumZodSchema");function Lu(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Lu,"getEnumZodSchemaCode");function sn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let o=t.getCodeString();if((!lr(o)||t.ref===void 0)&&r){if(t.complexity<ju)return o;let u=Ft(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(o))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,o,i),n.addZodSchemaForCompositeCode(o,t,u,e),u}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return X(0,n.getSchemaByRef(t.ref))<ju?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(sn,"resolveZodSchemaName");function yg({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var d,y;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find(Dt);if(!c)return;let u=(y=(d=o.content)==null?void 0:d[c])==null?void 0:y.schema;if(!u)return;let f=H({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:i}),l=e.resolveObject(u),p=sn({schema:l,zodSchema:f,fallbackName:Po(pr(r,n,i)),resolver:e,tag:i}),h=it({schema:l,meta:f.meta,options:e.options});return{endpointParameter:{name:Wy,type:"Body",description:o.description,zodSchema:p+h,bodyObject:o},requestFormat:c}}s(yg,"getEndpointBody");function gg({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!qy.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),h=p.find(Dt);if(!h)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let d=o.content[h];if(!d)throw new Error(`No content with media type for param ${o.name}: ${h}`);a=(d==null?void 0:d.schema)??d}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let c=H({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),u=e.resolveObject(a),f=it({schema:u,meta:c.meta,options:e.options}),l=sn({schema:u,zodSchema:c.assign(c.getCodeString(i)+f),fallbackName:Hy(pr(r,n,i),o.name),resolver:e,tag:i});return{name:ce(o.in).with("path",()=>Iu(o.name)).otherwise(()=>o.name),type:ce(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(gg,"getEndpointParameter");function bg(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],c=kt(a,Ct),u=$g(a.parameters??[]);for(let f in c){let l=c[f];if(!l||l.deprecated&&!e.options.withDeprecatedEndpoints)continue;let p=l.operationId&&l.operationId!==cr(l.operationId);l.operationId&&p&&e.validationErrors.push(pg(l.operationId));let h=Object.entries({...u,...$g(l.parameters??[])}).map(([,v])=>v),d=ri({path:o,method:f,operation:l,operationsByTag:e.operationsByTag,options:e.options}),y=e.operationNames.filter(v=>v===d).length<=1,$=ur(l,e.options),g={method:f,path:By(o),operationName:d,description:l.description,tags:(r=l.tags)==null?void 0:r.map(nt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(l.requestBody){let v=yg({resolver:e,operation:l,operationName:d,isUniqueOperationName:y,tag:$});v&&(g.parameters.push(v.endpointParameter),g.requestFormat=v.requestFormat)}for(let v of h){let S=gg({resolver:e,param:v,operationName:d,isUniqueOperationName:y,tag:$});S&&g.parameters.push(S)}let b=PA(g);b.forEach(v=>{g.parameters.push(v)}),b.length>0&&e.validationErrors.push(dg(b,o));for(let v in l.responses){let S=e.resolveObject(l.responses[v]),P=Object.keys(S.content??{}).find(tn),z,W;if(P?(g.responseFormat=P,z=(i=(n=S.content)==null?void 0:n[P])==null?void 0:i.schema):W=bu,z){let ee=H({schema:z,resolver:e,meta:{isRequired:!0},tag:$}),me=e.resolveObject(z);W=sn({schema:me,zodSchema:ee,fallbackName:ee.ref?void 0:_o({statusCode:v,operationName:d,isUniqueOperationName:y,tag:$}),resolver:e,tag:$})+it({schema:me,meta:ee.meta,options:e.options})}if(W){let ee=Number(v);vo(ee)?(g.response=W,g.responseObject=S):v!=="default"&&So(ee)&&g.errors.push({zodSchema:W,status:ee,description:S.description})}}g.response||(g.response=bu),t.push(g)}}return t}s(bg,"getEndpointsFromOpenAPIDoc");function $g(e){return Object.fromEntries((e??[]).map(t=>[V(t)?t.$ref:t.name,t]))}s($g,"getParameters");function PA(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=>_A(r))}s(PA,"getMissingPathParameters");function _A(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(_A,"getPathParameterFromName");function ze(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(V(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(bo.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ze(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ze(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ze(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;ze(o,t)}}s(ze,"iterateSchema");function vg(e,t){let r=OA(e,t),n=xA(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(vg,"getOpenAPISchemaDependencyGraph");function OA(e,t){let r={},n={};return e.forEach(i=>wA({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(OA,"getRefsDependencyGraph");function xA(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(xA,"getDeepRefsDependencyGraph");function wA({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,ze(r(c.$ref),{data:{fromRef:c.$ref},onSchema:o})},"onSchema");return ze(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(wA,"getSchemaRefsDependencyGraph");function jo(e,t,r){let n=[];return ze(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):V(i.parentSchema)&&e.validationErrors.push(lg(r))},"onSchema")}),n}s(jo,"getSchemaRefObjs");function Sg(e,t){return t.map(i=>fr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(Sg,"getDeepSchemaRefObjs");function si({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Pg({schema:e,nameSegments:t,...n}),ze(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),Pg({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(si,"updateEnumZodSchemaData");function Pg({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||V(t)||!t.enum)return;let a=Lu(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(o),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(mg(r?`schema ${Te.gray(en(r))} property ${Te.gray(o[o.length-1])}`:n??o.join("->")))}s(Pg,"handleEnumZodSchemaDataUpdate");function Og(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=Pu(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Zy(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!_g(e);)EA(e,t+2),t++;if(!_g(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(Og,"resolveEnumZodSchemaNames");function _g(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(_g,"allEnumZodSchemaNamesAreUnique");function EA(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&jA(n,t)})}s(EA,"additionalResolveEnumZodSchemaName");function jA(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[pe(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Pu(n);r.zodSchemaName=[i?pe(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(jA,"suffixWithPreviousSegmentName");function xg(e){e.enumZodSchemaData.forEach(t=>{let r=Qn(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(xg,"resolveEnumZodSchemaTags");var Bu=class Bu{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=vg(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Cy(t,r),this.operationNames=Ly(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(My)}getSchemaByRef(t){return this.docSchemas[en(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,f;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(l=>l.zodSchemaName===t);if(r)return nt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],o=((f=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:f.tags)??[],a=Qn(i,o),c=a.length===1?a[0]:this.options.defaultTag;return nt(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return V(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(c=>{let u=fr(c),f=en(u),l=Ft(f,this.options.schemaSuffix);this.schemaData.push({ref:u,name:f,zodSchemaName:l,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],f=kt(u,Ct);for(let l in f){let p=f[l];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let h=ur(p,this.options),d=ri({path:c,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),y=this.operationNames.filter(v=>v===d).length<=1,$=Pe(pr(d,y,h)),g=[];if((r=p.parameters)==null||r.map(v=>{let S=v,T=S.schema,P=`operation ${Te.gray(p.operationId??c)} parameter ${Te.gray(S.name)}`;g.push(...jo(this,T,P)),this.options.extractEnums&&si({resolver:this,schema:T,schemaInfo:P,tags:[h],nameSegments:[$,S.name],includeSelf:!0})}),p.requestBody){let v=this.resolveObject(p.requestBody),T=Object.keys(v.content??{}).find(Dt);if(T){let P=(i=(n=v.content)==null?void 0:n[T])==null?void 0:i.schema,z=`operation ${Te.gray(p.operationId)} request body`;g.push(...jo(this,P,z)),this.options.extractEnums&&si({resolver:this,schema:P,schemaInfo:z,tags:[h],nameSegments:[Po($)]})}}for(let v in p.responses){let S=this.resolveObject(p.responses[v]),P=Object.keys(S.content??{}).find(tn);if(P){let z=(a=(o=S.content)==null?void 0:o[P])==null?void 0:a.schema,W=`operation ${Te.gray(p.operationId)} response body`;g.push(...jo(this,z,W)),this.options.extractEnums&&si({resolver:this,schema:z,schemaInfo:W,tags:[h],nameSegments:[_o({statusCode:v,operationName:d,isUniqueOperationName:y,tag:h})]})}}Sg(this,g).forEach(v=>{let S=this.getSchemaDataByRef(v);S&&S.tags.push(h)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var f;let u=fr(c);si({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((f=this.getSchemaDataByRef(u))==null?void 0:f.tags)??[],nameSegments:[en(u)]})}),Og(this),xg(this))}};s(Bu,"SchemaResolver");var Ao=Bu;function wg(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Ft(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=H({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(wg,"getZodSchemasFromOpenAPIDoc");function Eg(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(Eg,"topologicalSort");function jg(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(jg,"sortObjKeysFromArray");function Ag(e,t){let r=Eg(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return jg(t,r)}s(Ag,"sortZodSchemasByTopology");function Tg(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n),a=o&&e.isSchemaCircular(o);r[Ft(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}s(Tg,"wrapCircularZodSchemas");function Ig(e,t){let r=new Ao(e,t),n=bg(r),o={...wg(r),...r.getZodSchemas()};return o=Tg(r,o),o=Ag(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:AA({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ig,"getDataFromOpenAPIDoc");function AA({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Xy(o,n);Rg(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(Rg(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(AA,"splitDataByTags");function Rg(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(Rg,"getTagElement");async function qg(e,t){let{resolver:r,data:n}=await Ig(e,t),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},f)=>{var h;((h=t.excludeTags)==null?void 0:h.findIndex(d=>d.toLowerCase()===f.toLowerCase()))===-1&&(Object.keys(u).forEach(d=>{let y=r.getRefByZodSchemaName(d),$=y?r.getSchemaByRef(y):r.getSchemaByCompositeZodSchemaName(d),g=rn({zodSchemaName:d,schema:$,resolver:r}),b;$&&(b=dr({schema:$,parentTypes:[g],resolver:r})),i.push({...g,metaType:"primitive",...b})}),c.forEach(d=>{let y="queries",$=nt(f);o.push({name:Ay(d),filePath:yo({type:y,tag:$,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?lt({type:y,tag:$,options:t}):void 0,isQuery:zy(d),isMutation:Uy(d),params:TA({resolver:r,endpoint:d}),response:RA({resolver:r,endpoint:d})})}))}),{openApiDoc:e,models:i,queries:o}}s(qg,"getMetadataFromOpenAPIDoc");function TA({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,f;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(Dt);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=rn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=dr({schema:n,parentTypes:[i],resolver:e})),{name:cr(r.name),isRequired:((f=r.parameterObject)==null?void 0:f.required)??!0,...i,...o,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}s(TA,"getQueryMetadataParams");function RA({resolver:e,endpoint:t}){var a,c,u,f;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(tn);n&&(r=e.resolveObject((f=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:f.schema));let i=rn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=dr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(RA,"getQueryMetadataResponse");async function IA({input:e,options:t}){let r={...wy,...t},n=await Ng.default.bundle(e);return await qg(n,r)}s(IA,"getGenerateMetadata");0&&(module.exports={getGenerateMetadata});
78
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(gT(e,t),(r==null?void 0:r.withDefaultValues)!==!1?yT(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(At,"getZodChain");function gT(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(gT,"getZodChainablePresence");function yT(e){return e.default!==void 0?`default(${ye(e.type).with("number","integer",()=>Bv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(yT,"getZodChainableDefault");function vT(e){let t=[];if(e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${_T(e.pattern)})`),e.format){let r=ye(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(vT,"getZodChainableStringValidations");function _T(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Hv(e),`/${e}/`}o(_T,"formatPatternIfNeeded");function bT(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(bT,"getZodChainableNumberValidations");function ST(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(ST,"getZodChainableArrayValidations");var Hr=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ne(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$e("oneOf")+ne(e,{...t,type:t.type[0]}):e+$e("oneOf")+Hr(t.type.map(r=>ne(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?$e("oneOf")+ne(e,t.oneOf[0]):e+$e("oneOf")+Hr(t.oneOf.map(r=>ne(0,r)));if(t.anyOf)return t.anyOf.length===1?$e("anyOf")+ne(e,t.anyOf[0]):e+$e("anyOf")+Hr(t.anyOf.map(r=>ne(0,r)));if(t.allOf)return t.allOf.length===1?$e("allOf")+ne(e,t.allOf[0]):e+$e("allOf")+Hr(t.allOf.map(r=>ne(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+__(t)+$e("enum")+Hr(t.enum.map(r=>ne(0,r))):e+__(t);if(t.type==="array")return t.items?$e("array")+ne(e,t.items):$e("array")+ne(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$e("record")+ne(e):$e("record")+ne(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+$e("object")+Hr(r.map(n=>ne(0,n)))}return $e("empty-object")+ne(e)}return e}o(ne,"getOpenAPISchemaComplexity");function __(e){return ye(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(__,"complexityByType");function $e(e){return ye(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o($e,"complexityByComposite");var Hf=class Hf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(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.includeNamespaces&&i&&i!==t?`${re({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ne(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Hf,"ZodSchema");var so=Hf;function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new so(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(H(e))return PT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let u=OT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let c=$T({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let l=ET({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=xT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=wT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Jv(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${At({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${W({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+At({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ie,oe])=>{var Bt;let le={...s,isRequired:S?!0:b?(Bt=e.required)==null?void 0:Bt.includes(ie):t.options.withImplicitRequiredProps,name:ie},Me=oe;if(H(oe)&&t&&(Me=t.getSchemaByRef(oe.$ref),!Me))throw new Error(`Schema ${oe.$ref} not found`);let Ee=W({...a,schema:oe,meta:le}).getCodeString(n,t.options)+At({schema:Me,meta:le,options:t.options});return[ie,Ee]}).map(([ie,oe])=>`${Vv(ie)}: ${oe}`).join(", ")+" }");let $=S?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(W,"getZodSchema");function PT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let s=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.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 u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}o(PT,"getReferenceZodSchema");function $T({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!wt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(u=>wt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!s){let u=e.discriminator.propertyName;return t.assign(`
79
+ z.discriminatedUnion("${u}", [${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
80
+ `)}return t.assign(`z.union([${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o($T,"getOneOfZodSchema");function OT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!wt(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>W({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(OT,"getArrayZodSchema");function ET({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>W({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ET,"getAnyOfZodSchema");function xT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.allOf)return;if(e.allOf.length===1){let f=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Xv(e),c=a.map(f=>{let d=W({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(W({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(xT,"getAllOfZodSchema");function wT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Mt(s)){if(e.enum){if(s==="string")return AT({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(ye(s).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(wT,"getPrimitiveZodSchema");function AT({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!wt(t))return;let s=Uf(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.includeNamespaces&&a.tag!==i?`${re({type:"models",tag:a.tag,options:e.options})}.`:"";return new so(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}o(AT,"getEnumZodSchema");function Uf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Uf,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let s=t.getCodeString();if((!Pe(s)||t.ref===void 0)&&r){if(t.complexity<Rf)return s;let c=hr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(s))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,s,i),n.addZodSchemaForCompositeCode(s,t,c,e),c}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<Rf?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Un,"resolveZodSchemaName");function b_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let s=e.resolveObject(t.requestBody);if(!s)return;let u=Object.keys(s.content??{}).find(dr);if(!u)return;let c=(g=(h=s.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=W({schema:c,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(c),f=Un({schema:p,zodSchema:l,fallbackName:Ms(Vr(r,n,i)),resolver:e,tag:i}),d=At({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Qv,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:u}}o(b_,"getEndpointBody");function S_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!jv.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(dr);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let u=W({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),c=e.resolveObject(a),l=At({schema:c,meta:u.meta,options:e.options}),p=Un({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Zv(Vr(r,n,i),s.name),resolver:e,tag:i});return{name:ye(s.in).with("path",()=>qf(s.name)).otherwise(()=>s.name),type:ye(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(S_,"getEndpointParameter");function $_(e){var r,n,i;let t=[];for(let s in e.openApiDoc.paths){let a=e.openApiDoc.paths[s],u=pr(a,fr),c=P_(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==Pt(p.operationId);p.operationId&&f&&e.validationErrors.push(g_(p.operationId));let d=Object.entries({...c,...P_(p.parameters??[])}).map(([,b])=>b),h=eo({path:s,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===h).length<=1,y=Lr(p,e.options),v={method:l,path:zv(s),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(xt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let b=b_({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let S=S_({resolver:e,param:b,operationName:h,isUniqueOperationName:g,tag:y});S&&v.parameters.push(S)}let _=IT(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(y_(_,s));for(let b in p.responses){let S=e.resolveObject(p.responses[b]),$=Object.keys(S.content??{}).find(Ln),M,j;if($?(v.responseFormat=$,M=(i=(n=S.content)==null?void 0:n[$])==null?void 0:i.schema):j=Pf,M){let ie=W({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),oe=e.resolveObject(M);j=Un({schema:oe,zodSchema:ie,fallbackName:ie.ref?void 0:Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+At({schema:oe,meta:ie.meta,options:e.options})}if(j){let ie=Number(b);Ns(ie)?(v.response=j,v.responseObject=S):b!=="default"&&qs(ie)&&v.errors.push({zodSchema:j,status:ie,description:S.description})}}v.response||(v.response=Pf),t.push(v)}}return t}o($_,"getEndpointsFromOpenAPIDoc");function P_(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}o(P_,"getParameters");function IT(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=>kT(r))}o(IT,"getMissingPathParameters");function kT(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(kT,"getPathParameterFromName");function ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Cs.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ct(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;ct(s,t)}}o(ct,"iterateSchema");function O_(e,t){let r=RT(e,t),n=TT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(O_,"getOpenAPISchemaDependencyGraph");function RT(e,t){let r={},n={};return e.forEach(i=>CT({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(RT,"getRefsDependencyGraph");function TT(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(u=>i(u,s)))}),n}o(TT,"getDeepRefsDependencyGraph");function CT({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,ct(r(u.$ref),{data:{fromRef:u.$ref},onSchema:s})},"onSchema");return ct(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(CT,"getSchemaRefsDependencyGraph");function zs(e,t,r){let n=[];return ct(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(m_(r))},"onSchema")}),n}o(zs,"getSchemaRefObjs");function E_(e,t){return t.map(i=>Fr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(E_,"getDeepSchemaRefObjs");function ao({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&x_({schema:e,nameSegments:t,...n}),ct(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),x_({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(ao,"updateEnumZodSchemaData");function x_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||H(t)||!t.enum)return;let a=Uf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(s),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(v_(r?`schema ${Ge.gray(Dn(r))} property ${Ge.gray(s[s.length-1])}`:n??s.join("->")))}o(x_,"handleEnumZodSchemaDataUpdate");function A_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Of(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Gv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!w_(e);)NT(e,t+2),t++;if(!w_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(A_,"resolveEnumZodSchemaNames");function w_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}o(w_,"allEnumZodSchemaNamesAreUnique");function NT(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&qT(n,t)})}o(NT,"additionalResolveEnumZodSchemaName");function qT(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[ge(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Of(n);r.zodSchemaName=[i?ge(i):"",r.zodSchemaName].filter(Boolean).join("")}})}o(qT,"suffixWithPreviousSegmentName");function I_(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(I_,"resolveEnumZodSchemaTags");var zf=class zf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=O_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Dv(t,r),this.operationNames=Uv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Fv)}getSchemaByRef(t){return this.docSchemas[Dn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.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 c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return xt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,s),u=a.length===1?a[0]:this.options.defaultTag;return xt(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(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(u=>u.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.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(u=>{let c=Fr(u),l=Dn(c),p=hr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=pr(c,fr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Lr(f,this.options),h=eo({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===h).length<=1,y=Re(Vr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(b=>{let S=b,E=S.schema,$=`operation ${Ge.gray(f.operationId??u)} parameter ${Ge.gray(S.name)}`;v.push(...zs(this,E,$)),this.options.extractEnums&&ao({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),E=Object.keys(b.content??{}).find(dr);if(E){let $=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${Ge.gray(f.operationId)} request body`;v.push(...zs(this,$,M)),this.options.extractEnums&&ao({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[Ms(y)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),$=Object.keys(S.content??{}).find(Ln);if($){let M=(a=(s=S.content)==null?void 0:s[$])==null?void 0:a.schema,j=`operation ${Ge.gray(f.operationId)} response body`;v.push(...zs(this,M,j)),this.options.extractEnums&&ao({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:d})]})}}E_(this,v).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=Fr(u);ao({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Dn(c)]})}),A_(this),I_(this))}};o(zf,"SchemaResolver");var Gs=zf;function k_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=hr(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=W({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(k_,"getZodSchemasFromOpenAPIDoc");function R_(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(R_,"topologicalSort");function T_(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(T_,"sortObjKeysFromArray");function C_(e,t){let r=R_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return T_(t,r)}o(C_,"sortZodSchemasByTopology");function N_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n),a=s&&e.isSchemaCircular(s);r[hr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}o(N_,"wrapCircularZodSchemas");function Zs(e,t){let r=new Gs(e,t),n=$_(r),s={...k_(r),...r.getZodSchemas()};return s=N_(r,s),s=C_(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:jT({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Zs,"getDataFromOpenAPIDoc");function jT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=no(s,n);q_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let u=e.getTagByZodSchemaName(s);u&&(q_(u,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(jT,"splitDataByTags");function q_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(q_,"getTagElement");async function j_(e,t){let{resolver:r,data:n}=await Zs(e,t),i=[],s=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=Vn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Br({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=xt(l);s.push({name:ks(h),filePath:or({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?re({type:g,tag:y,options:t}):void 0,isQuery:Fn(h),isMutation:js(h),params:MT({resolver:r,endpoint:h}),response:DT({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:s}}o(j_,"getMetadataFromOpenAPIDoc");function MT({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(dr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=Vn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Br({schema:n,parentTypes:[i],resolver:e})),{name:Pt(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(MT,"getQueryMetadataParams");function DT({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Ln);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=Vn({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Br({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(DT,"getQueryMetadataResponse");var Gf="src/data",Zf="@/data",Kf="AppRestClient",M_={bindings:[Kf],from:"@/util/rest/clients/app-rest-client"},uo={query:"AppQueryOptions",mutation:"AppMutationOptions"},D_={bindings:[uo.query,uo.mutation],from:"@/types/react-query"};function zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(c=>e.getTagByZodSchemaName(c),"getTag"),a=Wf({type:i,tag:t,entities:r,getTag:s,getEntityName:o(c=>c,"getEntityName"),options:e.options}),u=Wf({type:i,tag:t,entities:n,getTag:s,getEntityName:o(c=>to(c,e.options),"getEntityName"),options:e.options});return FT(e.options,a,u)}o(zn,"getModelsImports");function L_({tag:e,endpoints:t,options:r}){return Wf({type:"endpoints",tag:e,entities:t,getTag:o(n=>no(n,r),"getTag"),getEntityName:ro,options:r})}o(L_,"getEndpointsImports");function LT(e){let t=Zf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Gf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Gf}`,"g"),Zf)),`${t}/`.replace(/\/\//g,"/")}o(LT,"getImportPath");function Wf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))s.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[s.includeNamespaces?re({type:e,tag:c,options:s}):i(u)],from:`${l?"./":LT(s)}${or({type:e,tag:c,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Wf,"getImports");function FT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ne(n.bindings)}))}o(FT,"mergeImports");var zp=De(Yr());var ti=De(require("fs")),Vp=De(require("path"));function Bp(e){let t=`src/generators/templates/${e}.hbs`;return ti.default.readFileSync(Vp.default.join(__dirname,`../${t}`),"utf-8")}o(Bp,"readHbsTemplateSync");function kS({output:e,fileName:t}){return`${e}/${t}.ts`}o(kS,"getOutputFileName");function RS({fileName:e,content:t}){TN(e,t)}o(RS,"writeTsFileSync");function TN(e,t){let r=Vp.default.dirname(e);ti.default.existsSync(r)||ti.default.mkdirSync(r,{recursive:!0}),ti.default.writeFileSync(e,t,"utf-8")}o(TN,"writeFileWithDirSync");var Hp=De(Yr());function TS(){CN(),NN()}o(TS,"registerCommonHbsHelpers");function CN(){Hp.default.registerHelper("isEqual",(e,t)=>e===t)}o(CN,"registerIsEqualHelper");function NN(){Hp.default.registerHelper("commaSeparated",e=>e.join(", "))}o(NN,"registerCommaSeparatedListHelper");var Qr=De(Yr());function CS(e){qN(),jN(e.options),LN(e),MN(),DN(),FN(e)}o(CS,"registerEndpointsHbsHelpers");function qN(){Qr.default.registerHelper("endpointName",ro)}o(qN,"registerEndpointNameHelper");function jN(e){Qr.default.registerHelper("importedEndpointName",t=>e_(t,e))}o(jN,"registerImportedEndpointNameHelper");function MN(){Qr.default.registerHelper("endpointPath",t_)}o(MN,"registerEndpointPathHelper");function DN(){Qr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(DN,"registerEndpointBodyHelper");function LN(e){Qr.default.registerHelper("endpointParams",t=>Mf(e,t))}o(LN,"registerEndpointParamsHelper");function FN(e){Qr.default.registerHelper("endpointArgs",t=>Mf(e,t).map(r=>r.name).join(", "))}o(FN,"registerEndpointArgsHelper");var ri=De(Yr());var yr={query:"useQuery",mutation:"useMutation"},NS={bindings:[yr.query,yr.mutation],from:"@tanstack/react-query"};function qS(){VN(),BN(),HN(),UN(),zN()}o(qS,"registerPartialsHbsHelpers");function VN(){ri.default.registerHelper("genImport",e=>ni("import")({import:e}))}o(VN,"registerImportHelper");function BN(){ri.default.registerHelper("genEndpointParams",e=>ni("endpoint-params")({endpoint:e}))}o(BN,"registerGenerateEndpointParamsHelper");function HN(){ri.default.registerHelper("genEndpointConfig",e=>{let t=r_(e);return Object.keys(t).length===0?"":ni("endpoint-config")({endpointConfig:t})})}o(HN,"registerGenerateEndpointConfigHelper");function UN(){ri.default.registerHelper("genQueryKeys",e=>e.length===0?"":ni("query-keys")({endpoints:e}))}o(UN,"registerGenerateQueryKeysHelper");function zN(){ri.default.registerHelper("genQuery",e=>{let t,r;return Fn(e)?(t="query-use-query",r=yr.query):(t="query-use-mutation",r=yr.mutation),ni(t)({endpoint:e,queryHook:r})})}o(zN,"registerGenerateQueryHelper");var ka=De(Yr());function jS(){GN(),ZN(),KN()}o(jS,"registerQueryHbsHelpers");function GN(){ka.default.registerHelper("queryName",ks)}o(GN,"registerQueryNameHelper");function ZN(){ka.default.registerHelper("allQueryKeys",Ef)}o(ZN,"registerQueryKeysHelper");function KN(){ka.default.registerHelper("endpointPathQueryKeys",Rv)}o(KN,"registerEndpointPathQueryKeysHelper");var Up=De(Yr());function MS(e){WN(e.options),YN(e)}o(MS,"registerZodHbsHelpers");function WN(e){Up.default.registerHelper("zodInferedType",t=>to(t,e))}o(WN,"registerInferedTypeHelper");function YN(e){Up.default.registerHelper("importedZodSchemaName",t=>Kv(e,t))}o(YN,"registerImportedZodSchemaNameHelper");function ii(e,t){let r=Bp(t);return TS(),MS(e),CS(e),jS(),qS(),zp.default.compile(r)}o(ii,"getHbsTemplateDelegate");function ni(e){let t=Bp(`partials/${e}`);return zp.default.compile(t)}o(ni,"getHbsPartialTemplateDelegate");function DS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),s=i.some(p=>!Pe(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=zn({resolver:e,tag:r,zodSchemas:Ne(i.filter(Pe)),zodSchemasAsTypes:Ne(a.map(p=>p.zodSchema).filter(Pe))});return ii(e,"endpoints")({restClientImport:M_,hasZodImport:s,zodImport:As,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:re({type:"endpoints",tag:r,options:e.options}),restClientName:Kf,endpoints:n})}o(DS,"generateEndpoints");function LS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(FS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(LS,"getZodSchemaRefs");function FS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&FS(n).forEach(s=>r.add(s)),r},new Set)}o(FS,"getSchemaRefs");function VS({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...LS(e,p)],[]).filter(l=>!n[l]),s=zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return ii(e,"models")({zodImport:As,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:re({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(VS,"generateModels");function BS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Fn),s=n.filter(js),a={...NS,bindings:[...i.length>0?[yr.query]:[],...s.length>0?[yr.mutation]:[]]},u={...D_,bindings:[...i.length>0?[uo.query]:[],...s.length>0?[uo.mutation]:[]]},c=[...i,...s].reduce((h,g)=>[...h,...g.parameters],[]),l=zn({resolver:e,tag:r,zodSchemasAsTypes:Ne(c.map(h=>h.zodSchema).filter(Pe))}),p=L_({tag:r,endpoints:n,options:e.options});return ii(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:re({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(BS,"generateQueries");function HS(e,t,r=!0){let n={...Yi,...t},{resolver:i,data:s}=Zs(e,n),a=[],u=["models","endpoints","queries"],c={models:VS,endpoints:DS,queries:BS};return s.forEach((l,p)=>{n.excludeTags.find(d=>d.toLowerCase()===p.toLowerCase())||u.forEach(d=>{let h=c[d]({resolver:i,data:s,tag:p});if(h){let g=kS({output:n.output,fileName:or({tag:p,type:d,options:n})});a.push({fileName:g,content:h})}})}),r&&a.forEach(RS),a}o(HS,"generateCodeFromOpenAPIDoc");async function QN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return await j_(n,r)}o(QN,"getGenerateMetadata");async function JN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return HS(n,r,!1)}o(JN,"getGenerateFileData");0&&(module.exports={getGenerateFileData,getGenerateMetadata});