@povio/openapi-codegen-cli 0.2.6 → 0.2.7

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,54 +1,54 @@
1
- "use strict";var Vy=Object.create;var Zr=Object.defineProperty;var Ly=Object.getOwnPropertyDescriptor;var zy=Object.getOwnPropertyNames;var Uy=Object.getPrototypeOf,By=Object.prototype.hasOwnProperty;var s=(e,t)=>Zr(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hy=(e,t)=>{for(var r in t)Zr(e,r,{get:t[r],enumerable:!0})},uu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zy(t))!By.call(e,i)&&i!==r&&Zr(e,i,{get:()=>t[i],enumerable:!(n=Ly(t,i))||n.enumerable});return e};var Gy=(e,t,r)=>(r=e!=null?Vy(Uy(e)):{},uu(t||!e||!e.__esModule?Zr(r,"default",{value:e,enumerable:!0}):r,e)),Zy=e=>uu(Zr({},"__esModule",{value:!0}),e);var ge=h((ye,lu)=>{"use strict";var Gn=/^win/.test(process.platform),Ky=/\//g,Wy=/^(\w{2,}):\/\//i,fu=lu.exports,Yy=/~1/g,Jy=/~0/g,no=[/\?/g,"%3F",/\#/g,"%23"],io=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ye.parse=require("url").parse;ye.resolve=require("url").resolve;ye.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ye.getProtocol=s(function(t){let r=Wy.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ye.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ye.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ye.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ye.isHttp=s(function(t){let r=fu.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ye.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=fu.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ye.fromFileSystemPath=s(function(t){Gn&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<no.length;r+=2)t=t.replace(no[r],no[r+1]);return t},"fromFileSystemPath");ye.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<io.length;i+=2)t=t.replace(io[i],io[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Gn&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Gn?t:"/"+t)),Gn&&!n&&(t=t.replace(Ky,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ye.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Yy,"/").replace(Jy,"~"))},"safePointerToPath")});var Zn=h(Kr=>{"use strict";var du=require("util"),Xy=ge();Kr.format=du.format;Kr.inherits=du.inherits;Kr.swaggerParamRegExp=/\{([^/}]+)}/g;var Qy=["get","post","put","delete","patch","options","head","trace"];function oo(e,t){if(e.url&&e.url.startsWith("/")){let r=Xy.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(oo,"fixServers");function eg(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>oo(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=>oo(a,t)):Qy.includes(o)&&i[o].servers&&i[o].servers.map(a=>oo(a,t))})})}))}s(eg,"fixOasRelativeServers");Kr.fixOasRelativeServers=eg});var Kn=h(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.getDeepKeys=tr.toJSON=void 0;var tg=["function","symbol","undefined"],rg=["constructor","prototype","__proto__"],ng=Object.getPrototypeOf({});function ig(){let e={},t=this;for(let r of pu(t))if(typeof r=="string"){let n=t[r],i=typeof n;tg.includes(i)||(e[r]=n)}return e}s(ig,"toJSON");tr.toJSON=ig;function pu(e,t=[]){let r=[];for(;e&&e!==ng;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(rg))n.delete(i);return n}s(pu,"getDeepKeys");tr.getDeepKeys=pu});var so=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.addInspectMethod=rr.format=void 0;var mu=require("util"),og=Kn(),hu=mu.inspect.custom||Symbol.for("nodejs.util.inspect.custom");rr.format=mu.format;function sg(e){e[hu]=ag}s(sg,"addInspectMethod");rr.addInspectMethod=sg;function ag(){let e={},t=this;for(let r of og.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[hu],e}s(ag,"inspect")});var $u=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.lazyJoinStacks=Ce.joinStacks=Ce.isWritableStack=Ce.isLazyStack=void 0;var cg=/\r?\n/,ug=/\bono[ @]/;function fg(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(fg,"isLazyStack");Ce.isLazyStack=fg;function lg(e){return!!(!e||e.writable||typeof e.set=="function")}s(lg,"isWritableStack");Ce.isWritableStack=lg;function yu(e,t){let r=gu(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var Vy=Object.create;var Wr=Object.defineProperty;var Ly=Object.getOwnPropertyDescriptor;var zy=Object.getOwnPropertyNames;var Uy=Object.getPrototypeOf,By=Object.prototype.hasOwnProperty;var s=(e,t)=>Wr(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hy=(e,t)=>{for(var r in t)Wr(e,r,{get:t[r],enumerable:!0})},du=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zy(t))!By.call(e,i)&&i!==r&&Wr(e,i,{get:()=>t[i],enumerable:!(n=Ly(t,i))||n.enumerable});return e};var Gy=(e,t,r)=>(r=e!=null?Vy(Uy(e)):{},du(t||!e||!e.__esModule?Wr(r,"default",{value:e,enumerable:!0}):r,e)),Zy=e=>du(Wr({},"__esModule",{value:!0}),e);var ge=h((ye,mu)=>{"use strict";var Zn=/^win/.test(process.platform),Ky=/\//g,Wy=/^(\w{2,}):\/\//i,pu=mu.exports,Yy=/~1/g,Jy=/~0/g,io=[/\?/g,"%3F",/\#/g,"%23"],oo=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ye.parse=require("url").parse;ye.resolve=require("url").resolve;ye.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ye.getProtocol=s(function(t){let r=Wy.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ye.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ye.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ye.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ye.isHttp=s(function(t){let r=pu.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ye.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=pu.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ye.fromFileSystemPath=s(function(t){Zn&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<io.length;r+=2)t=t.replace(io[r],io[r+1]);return t},"fromFileSystemPath");ye.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<oo.length;i+=2)t=t.replace(oo[i],oo[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Zn&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Zn?t:"/"+t)),Zn&&!n&&(t=t.replace(Ky,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ye.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Yy,"/").replace(Jy,"~"))},"safePointerToPath")});var Kn=h(Yr=>{"use strict";var hu=require("util"),Xy=ge();Yr.format=hu.format;Yr.inherits=hu.inherits;Yr.swaggerParamRegExp=/\{([^/}]+)}/g;var Qy=["get","post","put","delete","patch","options","head","trace"];function so(e,t){if(e.url&&e.url.startsWith("/")){let r=Xy.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(so,"fixServers");function eg(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>so(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=>so(a,t)):Qy.includes(o)&&i[o].servers&&i[o].servers.map(a=>so(a,t))})})}))}s(eg,"fixOasRelativeServers");Yr.fixOasRelativeServers=eg});var Wn=h(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.getDeepKeys=nr.toJSON=void 0;var tg=["function","symbol","undefined"],rg=["constructor","prototype","__proto__"],ng=Object.getPrototypeOf({});function ig(){let e={},t=this;for(let r of yu(t))if(typeof r=="string"){let n=t[r],i=typeof n;tg.includes(i)||(e[r]=n)}return e}s(ig,"toJSON");nr.toJSON=ig;function yu(e,t=[]){let r=[];for(;e&&e!==ng;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(rg))n.delete(i);return n}s(yu,"getDeepKeys");nr.getDeepKeys=yu});var ao=h(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.addInspectMethod=ir.format=void 0;var gu=require("util"),og=Wn(),$u=gu.inspect.custom||Symbol.for("nodejs.util.inspect.custom");ir.format=gu.format;function sg(e){e[$u]=ag}s(sg,"addInspectMethod");ir.addInspectMethod=sg;function ag(){let e={},t=this;for(let r of og.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[$u],e}s(ag,"inspect")});var _u=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.lazyJoinStacks=Ce.joinStacks=Ce.isWritableStack=Ce.isLazyStack=void 0;var cg=/\r?\n/,ug=/\bono[ @]/;function fg(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(fg,"isLazyStack");Ce.isLazyStack=fg;function lg(e){return!!(!e||e.writable||typeof e.set=="function")}s(lg,"isWritableStack");Ce.isWritableStack=lg;function vu(e,t){let r=bu(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}s(yu,"joinStacks");Ce.joinStacks=yu;function dg(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}):pg(t,e)}s(dg,"lazyJoinStacks");Ce.lazyJoinStacks=dg;function gu(e){if(e){let t=e.split(cg),r;for(let n=0;n<t.length;n++){let i=t[n];if(ug.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(gu,"popStack");function pg(e,t){Object.defineProperty(e,"stack",{get:s(()=>gu(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(pg,"lazyPopStack")});var _u=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.extendError=void 0;var vu=so(),Wn=$u(),bu=Kn(),mg=["name","message","stack"];function hg(e,t,r){let n=e;return yg(n,t),t&&typeof t=="object"&&gg(n,t),n.toJSON=bu.toJSON,vu.addInspectMethod&&vu.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(hg,"extendError");Yn.extendError=hg;function yg(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Wn.isLazyStack(r)?Wn.lazyJoinStacks(r,e,t):Wn.isWritableStack(r)&&(e.stack=Wn.joinStacks(e,t))}s(yg,"extendStack");function gg(e,t){let r=bu.getDeepKeys(t,mg),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(gg,"mergeErrors")});var Pu=h(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.normalizeArgs=nr.normalizeOptions=void 0;var $g=so();function vg(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?$g.format:typeof e.format=="function"?e.format:!1}}s(vg,"normalizeOptions");nr.normalizeOptions=vg;function bg(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(bg,"normalizeArgs");nr.normalizeArgs=bg});var co=h(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.Ono=void 0;var Jn=_u(),Su=Pu(),_g=Kn(),Pg=ao;Xn.Ono=Pg;function ao(e,t){t=Su.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Su.normalizeArgs(n,t),c=new e(a);return Jn.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(ao,"Ono");ao.toJSON=s(function(t){return _g.toJSON.call(t)},"toJSON");ao.extend=s(function(t,r,n){return n||r instanceof Error?Jn.extendError(t,r,n):r?Jn.extendError(t,void 0,r):Jn.extendError(t)},"extend")});var xu=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ono=void 0;var It=co(),Sg=Me;Qn.ono=Sg;Me.error=new It.Ono(Error);Me.eval=new It.Ono(EvalError);Me.range=new It.Ono(RangeError);Me.reference=new It.Ono(ReferenceError);Me.syntax=new It.Ono(SyntaxError);Me.type=new It.Ono(TypeError);Me.uri=new It.Ono(URIError);var xg=Me;function Me(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(xg))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 Me.error.apply(void 0,e)}s(Me,"ono")});var Ou=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var RA=require("util")});var we=h((xe,ir)=>{"use strict";var wg=xe&&xe.__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]}),Og=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&wg(t,e,r)};Object.defineProperty(xe,"__esModule",{value:!0});xe.ono=void 0;var Eu=xu();Object.defineProperty(xe,"ono",{enumerable:!0,get:s(function(){return Eu.ono},"get")});var Eg=co();Object.defineProperty(xe,"Ono",{enumerable:!0,get:s(function(){return Eg.Ono},"get")});Og(Ou(),xe);xe.default=Eu.ono;typeof ir=="object"&&typeof ir.exports=="object"&&(ir.exports=Object.assign(ir.exports.default,ir.exports))});var Jr=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.regexpCode=k.getEsmExportName=k.getProperty=k.safeStringify=k.stringify=k.strConcat=k.addCodeArg=k.str=k._=k.nil=k._Code=k.Name=k.IDENTIFIER=k._CodeOrName=void 0;var lo=class lo{};s(lo,"_CodeOrName");var Wr=lo;k._CodeOrName=Wr;k.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var po=class po extends Wr{constructor(t){if(super(),!k.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(po,"Name");var Rt=po;k.Name=Rt;var mo=class mo extends Wr{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 Rt&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(mo,"_Code");var $e=mo;k._Code=$e;k.nil=new $e("");function Au(e,...t){let r=[e[0]],n=0;for(;n<t.length;)fo(r,t[n]),r.push(e[++n]);return new $e(r)}s(Au,"_");k._=Au;var uo=new $e("+");function ju(e,...t){let r=[Yr(e[0])],n=0;for(;n<t.length;)r.push(uo),fo(r,t[n]),r.push(uo,Yr(e[++n]));return Ag(r),new $e(r)}s(ju,"str");k.str=ju;function fo(e,t){t instanceof $e?e.push(...t._items):t instanceof Rt?e.push(t):e.push(Ig(t))}s(fo,"addCodeArg");k.addCodeArg=fo;function Ag(e){let t=1;for(;t<e.length-1;){if(e[t]===uo){let r=jg(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(Ag,"optimize");function jg(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Rt||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 Rt))return`"${e}${t.slice(1)}`}s(jg,"mergeExprItems");function qg(e,t){return t.emptyStr()?e:e.emptyStr()?t:ju`${e}${t}`}s(qg,"strConcat");k.strConcat=qg;function Ig(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Yr(Array.isArray(e)?e.join(","):e)}s(Ig,"interpolate");function Rg(e){return new $e(Yr(e))}s(Rg,"stringify");k.stringify=Rg;function Yr(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(Yr,"safeStringify");k.safeStringify=Yr;function Tg(e){return typeof e=="string"&&k.IDENTIFIER.test(e)?new $e(`.${e}`):Au`[${e}]`}s(Tg,"getProperty");k.getProperty=Tg;function kg(e){if(typeof e=="string"&&k.IDENTIFIER.test(e))return new $e(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(kg,"getEsmExportName");k.getEsmExportName=kg;function Ng(e){return new $e(e.toString())}s(Ng,"regexpCode");k.regexpCode=Ng});var _o=h(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.ValueScope=le.ValueScopeName=le.Scope=le.varKinds=le.UsedValueState=void 0;var fe=Jr(),go=class go extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(go,"ValueError");var ho=go,ei;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ei||(le.UsedValueState=ei={}));le.varKinds={const:new fe.Name("const"),let:new fe.Name("let"),var:new fe.Name("var")};var $o=class $o{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof fe.Name?t:this.name(t)}name(t){return new fe.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($o,"Scope");var ti=$o;le.Scope=ti;var vo=class vo extends fe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,fe._)`.${new fe.Name(r)}[${n}]`}};s(vo,"ValueScopeName");var ri=vo;le.ValueScopeName=ri;var Cg=(0,fe._)`\n`,bo=class bo extends ti{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Cg:fe.nil}}get(){return this._scope}name(t){return new ri(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,fe._)`${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=fe.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,ei.Started);let l=r(f);if(l){let d=this.opts.es5?le.varKinds.var:le.varKinds.const;o=(0,fe._)`${o}${d} ${f} = ${l};${this.opts._n}`}else if(l=i==null?void 0:i(f))o=(0,fe._)`${o}${l}${this.opts._n}`;else throw new ho(f);u.set(f,ei.Completed)})}return o}};s(bo,"ValueScope");var yo=bo;le.ValueScope=yo});var E=h(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 R=Jr(),Oe=_o(),at=Jr();Object.defineProperty(j,"_",{enumerable:!0,get:s(function(){return at._},"get")});Object.defineProperty(j,"str",{enumerable:!0,get:s(function(){return at.str},"get")});Object.defineProperty(j,"strConcat",{enumerable:!0,get:s(function(){return at.strConcat},"get")});Object.defineProperty(j,"nil",{enumerable:!0,get:s(function(){return at.nil},"get")});Object.defineProperty(j,"getProperty",{enumerable:!0,get:s(function(){return at.getProperty},"get")});Object.defineProperty(j,"stringify",{enumerable:!0,get:s(function(){return at.stringify},"get")});Object.defineProperty(j,"regexpCode",{enumerable:!0,get:s(function(){return at.regexpCode},"get")});Object.defineProperty(j,"Name",{enumerable:!0,get:s(function(){return at.Name},"get")});var si=_o();Object.defineProperty(j,"Scope",{enumerable:!0,get:s(function(){return si.Scope},"get")});Object.defineProperty(j,"ValueScope",{enumerable:!0,get:s(function(){return si.ValueScope},"get")});Object.defineProperty(j,"ValueScopeName",{enumerable:!0,get:s(function(){return si.ValueScopeName},"get")});Object.defineProperty(j,"varKinds",{enumerable:!0,get:s(function(){return si.varKinds},"get")});j.operators={GT:new R._Code(">"),GTE:new R._Code(">="),LT:new R._Code("<"),LTE:new R._Code("<="),EQ:new R._Code("==="),NEQ:new R._Code("!=="),NOT:new R._Code("!"),OR:new R._Code("||"),AND:new R._Code("&&"),ADD:new R._Code("+")};var ko=class ko{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(ko,"Node");var et=ko,No=class No extends et{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Oe.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=ar(this.rhs,t,r)),this}get names(){return this.rhs instanceof R._CodeOrName?this.rhs.names:{}}};s(No,"Def");var Po=No,Co=class Co extends et{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 R.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ar(this.rhs,t,r),this}get names(){let t=this.lhs instanceof R.Name?{}:{...this.lhs.names};return oi(t,this.rhs)}};s(Co,"Assign");var ni=Co,Mo=class Mo extends ni{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Mo,"AssignOp");var So=Mo,Do=class Do extends et{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Do,"Label");var xo=Do,Fo=class Fo extends et{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Fo,"Break");var wo=Fo,Vo=class Vo extends et{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(Vo,"Throw");var Oo=Vo,Lo=class Lo extends et{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=ar(this.code,t,r),this}get names(){return this.code instanceof R._CodeOrName?this.code.names:{}}};s(Lo,"AnyCode");var Eo=Lo,zo=class zo extends et{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)||(Mg(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Nt(t,r.names),{})}};s(zo,"ParentNode");var Xr=zo,Uo=class Uo extends Xr{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Uo,"BlockNode");var tt=Uo,Bo=class Bo extends Xr{};s(Bo,"Root");var Ao=Bo,Ho=class Ho extends tt{};s(Ho,"Else");var sr=Ho;sr.kind="else";var or=class or 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 sr(n):n}if(r)return t===!1?r instanceof or?r:r.nodes:this.nodes.length?this:new or(qu(t),r instanceof or?[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=ar(this.condition,t,r),this}get names(){let t=super.names;return oi(t,this.condition),this.else&&Nt(t,this.else.names),t}};s(or,"If");var Tt=or;Tt.kind="if";var Go=class Go extends tt{};s(Go,"For");var kt=Go;kt.kind="for";var Zo=class Zo extends kt{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=ar(this.iteration,t,r),this}get names(){return Nt(super.names,this.iteration.names)}};s(Zo,"ForLoop");var jo=Zo,Ko=class Ko extends kt{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Oe.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=oi(super.names,this.from);return oi(t,this.to)}};s(Ko,"ForRange");var qo=Ko,Wo=class Wo extends kt{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=ar(this.iterable,t,r),this}get names(){return Nt(super.names,this.iterable.names)}};s(Wo,"ForIter");var ii=Wo,Yo=class Yo extends tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(Yo,"Func");var Qr=Yo;Qr.kind="func";var Jo=class Jo extends Xr{render(t){return"return "+super.render(t)}};s(Jo,"Return");var en=Jo;en.kind="return";var Xo=class Xo 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&&Nt(t,this.catch.names),this.finally&&Nt(t,this.finally.names),t}};s(Xo,"Try");var Io=Xo,Qo=class Qo extends tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(Qo,"Catch");var tn=Qo;tn.kind="catch";var es=class es extends tt{render(t){return"finally"+super.render(t)}};s(es,"Finally");var rn=es;rn.kind="finally";var ts=class ts{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new Oe.Scope({parent:t}),this._nodes=[new Ao]}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 Po(t,o,n)),o}const(t,r,n){return this._def(Oe.varKinds.const,t,r,n)}let(t,r,n){return this._def(Oe.varKinds.let,t,r,n)}var(t,r,n){return this._def(Oe.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ni(t,r,n))}add(t,r){return this._leafNode(new So(t,j.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==R.nil&&this._leafNode(new Eo(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,R.addCodeArg)(r,i));return r.push("}"),new R._Code(r)}if(t,r,n){if(this._blockNode(new Tt(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 Tt(t))}else(){return this._elseNode(new sr)}endIf(){return this._endBlockNode(Tt,sr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new jo(t),r)}forRange(t,r,n,i,o=this.opts.es5?Oe.varKinds.var:Oe.varKinds.let){let a=this._scope.toName(t);return this._for(new qo(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Oe.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof R.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,R._)`${a}.length`,c=>{this.var(o,(0,R._)`${a}[${c}]`),n(o)})}return this._for(new ii("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Oe.varKinds.var:Oe.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,R._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new ii("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(kt)}label(t){return this._leafNode(new xo(t))}break(t){return this._leafNode(new wo(t))}return(t){let r=new en;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(en)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Io;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new tn(o),r(o)}return n&&(this._currNode=i.finally=new rn,this.code(n)),this._endBlockNode(tn,rn)}throw(t){return this._leafNode(new Oo(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=R.nil,n,i){return this._blockNode(new Qr(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Qr)}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 Tt))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(ts,"CodeGen");var Ro=ts;j.CodeGen=Ro;function Nt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Nt,"addNames");function oi(e,t){return t instanceof R._CodeOrName?Nt(e,t.names):e}s(oi,"addExprNames");function ar(e,t,r){if(e instanceof R.Name)return n(e);if(!i(e))return e;return new R._Code(e._items.reduce((o,a)=>(a instanceof R.Name&&(a=n(a)),a instanceof R._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 R._Code&&o._items.some(a=>a instanceof R.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(ar,"optimizeExpr");function Mg(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(Mg,"subtractNames");function qu(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,R._)`!${To(e)}`}s(qu,"not");j.not=qu;var Dg=Iu(j.operators.AND);function Fg(...e){return e.reduce(Dg)}s(Fg,"and");j.and=Fg;var Vg=Iu(j.operators.OR);function Lg(...e){return e.reduce(Vg)}s(Lg,"or");j.or=Lg;function Iu(e){return(t,r)=>t===R.nil?r:r===R.nil?t:(0,R._)`${To(t)} ${e} ${To(r)}`}s(Iu,"mappend");function To(e){return e instanceof R.Name?e:(0,R._)`(${e})`}s(To,"par")});var I=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.checkStrictMode=q.getErrorPath=q.Type=q.useFunc=q.setEvaluated=q.evaluatedPropsToName=q.mergeEvaluated=q.eachItem=q.unescapeJsonPointer=q.escapeJsonPointer=q.escapeFragment=q.unescapeFragment=q.schemaRefOrVal=q.schemaHasRulesButRef=q.schemaHasRules=q.checkUnknownRules=q.alwaysValidSchema=q.toHash=void 0;var D=E(),zg=Jr();function Ug(e){let t={};for(let r of e)t[r]=!0;return t}s(Ug,"toHash");q.toHash=Ug;function Bg(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ku(e,t),!Nu(t,e.self.RULES.all))}s(Bg,"alwaysValidSchema");q.alwaysValidSchema=Bg;function ku(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]||Du(e,`unknown keyword: "${o}"`)}s(ku,"checkUnknownRules");q.checkUnknownRules=ku;function Nu(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(Nu,"schemaHasRules");q.schemaHasRules=Nu;function Hg(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(Hg,"schemaHasRulesButRef");q.schemaHasRulesButRef=Hg;function Gg({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,D._)`${r}`}return(0,D._)`${e}${t}${(0,D.getProperty)(n)}`}s(Gg,"schemaRefOrVal");q.schemaRefOrVal=Gg;function Zg(e){return Cu(decodeURIComponent(e))}s(Zg,"unescapeFragment");q.unescapeFragment=Zg;function Kg(e){return encodeURIComponent(ns(e))}s(Kg,"escapeFragment");q.escapeFragment=Kg;function ns(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(ns,"escapeJsonPointer");q.escapeJsonPointer=ns;function Cu(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Cu,"unescapeJsonPointer");q.unescapeJsonPointer=Cu;function Wg(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(Wg,"eachItem");q.eachItem=Wg;function Ru({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof D.Name?(o instanceof D.Name?e(i,o,a):t(i,o,a),a):o instanceof D.Name?(t(i,a,o),o):r(o,a);return c===D.Name&&!(u instanceof D.Name)?n(i,u):u}}s(Ru,"makeMergeEvaluated");q.mergeEvaluated={props:Ru({mergeNames:s((e,t,r)=>e.if((0,D._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,D._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,D._)`${r} || {}`).code((0,D._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,D._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,D._)`${r} || {}`),is(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Mu}),items:Ru({mergeNames:s((e,t,r)=>e.if((0,D._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,D._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,D._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,D._)`${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 Mu(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,D._)`{}`);return t!==void 0&&is(e,r,t),r}s(Mu,"evaluatedPropsToName");q.evaluatedPropsToName=Mu;function is(e,t,r){Object.keys(r).forEach(n=>e.assign((0,D._)`${t}${(0,D.getProperty)(n)}`,!0))}s(is,"setEvaluated");q.setEvaluated=is;var Tu={};function Yg(e,t){return e.scopeValue("func",{ref:t,code:Tu[t.code]||(Tu[t.code]=new zg._Code(t.code))})}s(Yg,"useFunc");q.useFunc=Yg;var rs;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(rs||(q.Type=rs={}));function Jg(e,t,r){if(e instanceof D.Name){let n=t===rs.Num;return r?n?(0,D._)`"[" + ${e} + "]"`:(0,D._)`"['" + ${e} + "']"`:n?(0,D._)`"/" + ${e}`:(0,D._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,D.getProperty)(e).toString():"/"+ns(e)}s(Jg,"getErrorPath");q.getErrorPath=Jg;function Du(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(Du,"checkStrictMode");q.checkStrictMode=Du});var ve=h(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var ee=E(),Xg={data:new ee.Name("data"),valCxt:new ee.Name("valCxt"),instancePath:new ee.Name("instancePath"),parentData:new ee.Name("parentData"),parentDataProperty:new ee.Name("parentDataProperty"),rootData:new ee.Name("rootData"),dynamicAnchors:new ee.Name("dynamicAnchors"),vErrors:new ee.Name("vErrors"),errors:new ee.Name("errors"),this:new ee.Name("this"),self:new ee.Name("self"),scope:new ee.Name("scope"),json:new ee.Name("json"),jsonPos:new ee.Name("jsonPos"),jsonLen:new ee.Name("jsonLen"),jsonPart:new ee.Name("jsonPart")};os.default=Xg});var nn=h(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.extendErrors=te.resetErrorsCount=te.reportExtraError=te.reportError=te.keyword$DataError=te.keywordError=void 0;var T=E(),ai=I(),se=ve();te.keywordError={message:s(({keyword:e})=>(0,T.str)`must pass "${e}" keyword validation`,"message")};te.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,T.str)`"${e}" keyword must be ${t} ($data)`:(0,T.str)`"${e}" keyword is invalid ($data)`,"message")};function Qg(e,t=te.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Lu(e,t,r);n??(a||c)?Fu(o,u):Vu(i,(0,T._)`[${u}]`)}s(Qg,"reportError");te.reportError=Qg;function e$(e,t=te.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Lu(e,t,r);Fu(i,c),o||a||Vu(n,se.default.vErrors)}s(e$,"reportExtraError");te.reportExtraError=e$;function t$(e,t){e.assign(se.default.errors,t),e.if((0,T._)`${se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,T._)`${se.default.vErrors}.length`,t),()=>e.assign(se.default.vErrors,null)))}s(t$,"resetErrorsCount");te.resetErrorsCount=t$;function r$({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,se.default.errors,c=>{e.const(a,(0,T._)`${se.default.vErrors}[${c}]`),e.if((0,T._)`${a}.instancePath === undefined`,()=>e.assign((0,T._)`${a}.instancePath`,(0,T.strConcat)(se.default.instancePath,o.errorPath))),e.assign((0,T._)`${a}.schemaPath`,(0,T.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,T._)`${a}.schema`,r),e.assign((0,T._)`${a}.data`,n))})}s(r$,"extendErrors");te.extendErrors=r$;function Fu(e,t){let r=e.const("err",t);e.if((0,T._)`${se.default.vErrors} === null`,()=>e.assign(se.default.vErrors,(0,T._)`[${r}]`),(0,T._)`${se.default.vErrors}.push(${r})`),e.code((0,T._)`${se.default.errors}++`)}s(Fu,"addError");function Vu(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,T._)`new ${e.ValidationError}(${t})`):(r.assign((0,T._)`${n}.errors`,t),r.return(!1))}s(Vu,"returnErrors");var Ct={keyword:new T.Name("keyword"),schemaPath:new T.Name("schemaPath"),params:new T.Name("params"),propertyName:new T.Name("propertyName"),message:new T.Name("message"),schema:new T.Name("schema"),parentSchema:new T.Name("parentSchema")};function Lu(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,T._)`{}`:n$(e,t,r)}s(Lu,"errorObjectCode");function n$(e,t,r={}){let{gen:n,it:i}=e,o=[i$(i,r),o$(e,r)];return s$(e,t,o),n.object(...o)}s(n$,"errorObject");function i$({errorPath:e},{instancePath:t}){let r=t?(0,T.str)`${e}${(0,ai.getErrorPath)(t,ai.Type.Str)}`:e;return[se.default.instancePath,(0,T.strConcat)(se.default.instancePath,r)]}s(i$,"errorInstancePath");function o$({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,T.str)`${t}/${e}`;return r&&(i=(0,T.str)`${i}${(0,ai.getErrorPath)(r,ai.Type.Str)}`),[Ct.schemaPath,i]}s(o$,"errorSchemaPath");function s$(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:f,topSchemaRef:l,schemaPath:d}=c;n.push([Ct.keyword,i],[Ct.params,typeof t=="function"?t(e):t||(0,T._)`{}`]),u.messages&&n.push([Ct.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ct.schema,a],[Ct.parentSchema,(0,T._)`${l}${d}`],[se.default.data,o]),f&&n.push([Ct.propertyName,f])}s(s$,"extraErrorProps")});var Uu=h(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.boolOrEmptySchema=cr.topBoolOrEmptySchema=void 0;var a$=nn(),c$=E(),u$=ve(),f$={message:"boolean schema is false"};function l$(e){let{gen:t,schema:r,validateName:n}=e;r===!1?zu(e,!1):typeof r=="object"&&r.$async===!0?t.return(u$.default.data):(t.assign((0,c$._)`${n}.errors`,null),t.return(!0))}s(l$,"topBoolOrEmptySchema");cr.topBoolOrEmptySchema=l$;function d$(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),zu(e)):r.var(t,!0)}s(d$,"boolOrEmptySchema");cr.boolOrEmptySchema=d$;function zu(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,a$.reportError)(i,f$,void 0,t)}s(zu,"falseSchemaError")});var ss=h(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.getRules=ur.isJSONType=void 0;var p$=["string","number","integer","boolean","null","object","array"],m$=new Set(p$);function h$(e){return typeof e=="string"&&m$.has(e)}s(h$,"isJSONType");ur.isJSONType=h$;function y$(){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(y$,"getRules");ur.getRules=y$});var as=h(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.shouldUseRule=ct.shouldUseGroup=ct.schemaHasRulesForType=void 0;function g$({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Bu(e,n)}s(g$,"schemaHasRulesForType");ct.schemaHasRulesForType=g$;function Bu(e,t){return t.rules.some(r=>Hu(e,r))}s(Bu,"shouldUseGroup");ct.shouldUseGroup=Bu;function Hu(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(Hu,"shouldUseRule");ct.shouldUseRule=Hu});var on=h(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.reportTypeError=re.checkDataTypes=re.checkDataType=re.coerceAndCheckDataType=re.getJSONTypes=re.getSchemaTypes=re.DataType=void 0;var $$=ss(),v$=as(),b$=nn(),A=E(),Gu=I(),fr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(fr||(re.DataType=fr={}));function _$(e){let t=Zu(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(_$,"getSchemaTypes");re.getSchemaTypes=_$;function Zu(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every($$.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(Zu,"getJSONTypes");re.getJSONTypes=Zu;function P$(e,t){let{gen:r,data:n,opts:i}=e,o=S$(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,v$.schemaHasRulesForType)(e,t[0]));if(a){let c=us(t,n,i.strictNumbers,fr.Wrong);r.if(c,()=>{o.length?x$(e,t,o):fs(e)})}return a}s(P$,"coerceAndCheckDataType");re.coerceAndCheckDataType=P$;var Ku=new Set(["string","number","integer","boolean","null"]);function S$(e,t){return t?e.filter(r=>Ku.has(r)||t==="array"&&r==="array"):[]}s(S$,"coerceToTypes");function x$(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,A._)`typeof ${i}`),c=n.let("coerced",(0,A._)`undefined`);o.coerceTypes==="array"&&n.if((0,A._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,A._)`${i}[0]`).assign(a,(0,A._)`typeof ${i}`).if(us(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,A._)`${c} !== undefined`);for(let f of r)(Ku.has(f)||f==="array"&&o.coerceTypes==="array")&&u(f);n.else(),fs(e),n.endIf(),n.if((0,A._)`${c} !== undefined`,()=>{n.assign(i,c),w$(e,c)});function u(f){switch(f){case"string":n.elseIf((0,A._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,A._)`"" + ${i}`).elseIf((0,A._)`${i} === null`).assign(c,(0,A._)`""`);return;case"number":n.elseIf((0,A._)`${a} == "boolean" || ${i} === null
7
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,A._)`+${i}`);return;case"integer":n.elseIf((0,A._)`${a} === "boolean" || ${i} === null
8
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,A._)`+${i}`);return;case"boolean":n.elseIf((0,A._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,A._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,A._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,A._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,A._)`[${i}]`)}}s(u,"coerceSpecificType")}s(x$,"coerceData");function w$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,A._)`${t} !== undefined`,()=>e.assign((0,A._)`${t}[${r}]`,n))}s(w$,"assignParentData");function cs(e,t,r,n=fr.Correct){let i=n===fr.Correct?A.operators.EQ:A.operators.NEQ,o;switch(e){case"null":return(0,A._)`${t} ${i} null`;case"array":o=(0,A._)`Array.isArray(${t})`;break;case"object":o=(0,A._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,A._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,A._)`typeof ${t} ${i} ${e}`}return n===fr.Correct?o:(0,A.not)(o);function a(c=A.nil){return(0,A.and)((0,A._)`typeof ${t} == "number"`,c,r?(0,A._)`isFinite(${t})`:A.nil)}}s(cs,"checkDataType");re.checkDataType=cs;function us(e,t,r,n){if(e.length===1)return cs(e[0],t,r,n);let i,o=(0,Gu.toHash)(e);if(o.array&&o.object){let a=(0,A._)`typeof ${t} != "object"`;i=o.null?a:(0,A._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=A.nil;o.number&&delete o.integer;for(let a in o)i=(0,A.and)(i,cs(a,t,r,n));return i}s(us,"checkDataTypes");re.checkDataTypes=us;var O$={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,A._)`{type: ${e}}`:(0,A._)`{type: ${t}}`,"params")};function fs(e){let t=E$(e);(0,b$.reportError)(t,O$)}s(fs,"reportTypeError");re.reportTypeError=fs;function E$(e){let{gen:t,data:r,schema:n}=e,i=(0,Gu.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(E$,"getTypeErrorContext")});var Yu=h(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.assignDefaults=void 0;var lr=E(),A$=I();function j$(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Wu(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Wu(e,o,i.default))}s(j$,"assignDefaults");ci.assignDefaults=j$;function Wu(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,lr._)`${o}${(0,lr.getProperty)(t)}`;if(i){(0,A$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,lr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,lr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,lr._)`${c} = ${(0,lr.stringify)(r)}`)}s(Wu,"assignDefault")});var be=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.validateUnion=M.validateArray=M.usePattern=M.callValidateCode=M.schemaProperties=M.allSchemaProperties=M.noPropertyInData=M.propertyInData=M.isOwnProperty=M.hasPropFunc=M.reportMissingProp=M.checkMissingProp=M.checkReportMissingProp=void 0;var F=E(),ls=I(),ut=ve(),q$=I();function I$(e,t){let{gen:r,data:n,it:i}=e;r.if(ps(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,F._)`${t}`},!0),e.error()})}s(I$,"checkReportMissingProp");M.checkReportMissingProp=I$;function R$({gen:e,data:t,it:{opts:r}},n,i){return(0,F.or)(...n.map(o=>(0,F.and)(ps(e,t,o,r.ownProperties),(0,F._)`${i} = ${o}`)))}s(R$,"checkMissingProp");M.checkMissingProp=R$;function T$(e,t){e.setParams({missingProperty:t},!0),e.error()}s(T$,"reportMissingProp");M.reportMissingProp=T$;function Ju(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,F._)`Object.prototype.hasOwnProperty`})}s(Ju,"hasPropFunc");M.hasPropFunc=Ju;function ds(e,t,r){return(0,F._)`${Ju(e)}.call(${t}, ${r})`}s(ds,"isOwnProperty");M.isOwnProperty=ds;function k$(e,t,r,n){let i=(0,F._)`${t}${(0,F.getProperty)(r)} !== undefined`;return n?(0,F._)`${i} && ${ds(e,t,r)}`:i}s(k$,"propertyInData");M.propertyInData=k$;function ps(e,t,r,n){let i=(0,F._)`${t}${(0,F.getProperty)(r)} === undefined`;return n?(0,F.or)(i,(0,F.not)(ds(e,t,r))):i}s(ps,"noPropertyInData");M.noPropertyInData=ps;function Xu(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Xu,"allSchemaProperties");M.allSchemaProperties=Xu;function N$(e,t){return Xu(t).filter(r=>!(0,ls.alwaysValidSchema)(e,t[r]))}s(N$,"schemaProperties");M.schemaProperties=N$;function C$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,f){let l=f?(0,F._)`${e}, ${t}, ${n}${i}`:t,d=[[ut.default.instancePath,(0,F.strConcat)(ut.default.instancePath,o)],[ut.default.parentData,a.parentData],[ut.default.parentDataProperty,a.parentDataProperty],[ut.default.rootData,ut.default.rootData]];a.opts.dynamicRef&&d.push([ut.default.dynamicAnchors,ut.default.dynamicAnchors]);let p=(0,F._)`${l}, ${r.object(...d)}`;return u!==F.nil?(0,F._)`${c}.call(${u}, ${p})`:(0,F._)`${c}(${p})`}s(C$,"callValidateCode");M.callValidateCode=C$;var M$=(0,F._)`new RegExp`;function D$({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,F._)`${i.code==="new RegExp"?M$:(0,q$.useFunc)(e,i)}(${r}, ${n})`})}s(D$,"usePattern");M.usePattern=D$;function F$(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,F._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:ls.Type.Num},o),t.if((0,F.not)(o),c)})}s(a,"validateItems")}s(F$,"validateArray");M.validateArray=F$;function V$(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,ls.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,F._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,F.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(V$,"validateUnion");M.validateUnion=V$});var tf=h(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.validateKeywordUsage=De.validSchemaType=De.funcKeywordCode=De.macroKeywordCode=void 0;var ae=E(),Mt=ve(),L$=be(),z$=nn();function U$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=ef(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let f=r.name("valid");e.subschema({schema:c,schemaPath:ae.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}s(U$,"macroKeywordCode");De.macroKeywordCode=U$;function B$(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;G$(u,t);let f=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=ef(n,i,f),d=n.let("valid");e.block$data(d,p),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function p(){if(t.errors===!1)$(),t.modifying&&Qu(e),g(()=>e.error());else{let v=t.async?m():y();t.modifying&&Qu(e),g(()=>H$(e,v))}}s(p,"validateKeyword");function m(){let v=n.let("ruleErrs",null);return n.try(()=>$((0,ae._)`await `),b=>n.assign(d,!1).if((0,ae._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,ae._)`${b}.errors`),()=>n.throw(b))),v}s(m,"validateAsync");function y(){let v=(0,ae._)`${l}.errors`;return n.assign(v,null),$(ae.nil),v}s(y,"validateSync");function $(v=t.async?(0,ae._)`await `:ae.nil){let b=u.opts.passContext?Mt.default.this:Mt.default.self,S=!("compile"in t&&!c||t.schema===!1);n.assign(d,(0,ae._)`${v}${(0,L$.callValidateCode)(e,l,b,S)}`,t.modifying)}s($,"assignValid");function g(v){var b;n.if((0,ae.not)((b=t.valid)!==null&&b!==void 0?b:d),v)}s(g,"reportErrs")}s(B$,"funcKeywordCode");De.funcKeywordCode=B$;function Qu(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ae._)`${n.parentData}[${n.parentDataProperty}]`))}s(Qu,"modifyData");function H$(e,t){let{gen:r}=e;r.if((0,ae._)`Array.isArray(${t})`,()=>{r.assign(Mt.default.vErrors,(0,ae._)`${Mt.default.vErrors} === null ? ${t} : ${Mt.default.vErrors}.concat(${t})`).assign(Mt.default.errors,(0,ae._)`${Mt.default.vErrors}.length`),(0,z$.extendErrors)(e)},()=>e.error())}s(H$,"addErrs");function G$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(G$,"checkAsyncKeyword");function ef(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,ae.stringify)(r)})}s(ef,"useKeyword");function Z$(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(Z$,"validSchemaType");De.validSchemaType=Z$;function K$({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(K$,"validateKeywordUsage");De.validateKeywordUsage=K$});var nf=h(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.extendSubschemaMode=ft.extendSubschemaData=ft.getSubschema=void 0;var Fe=E(),rf=I();function W$(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,Fe._)`${e.schemaPath}${(0,Fe.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Fe._)`${e.schemaPath}${(0,Fe.getProperty)(t)}${(0,Fe.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,rf.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(W$,"getSubschema");ft.getSubschema=W$;function Y$(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:d}=t,p=c.let("data",(0,Fe._)`${t.data}${(0,Fe.getProperty)(r)}`,!0);u(p),e.errorPath=(0,Fe.str)`${f}${(0,rf.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Fe._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Fe.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(Y$,"extendSubschemaData");ft.extendSubschemaData=Y$;function J$(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(J$,"extendSubschemaMode");ft.extendSubschemaMode=J$});var ms=h((cj,of)=>{"use strict";of.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 af=h((fj,sf)=>{"use strict";var lt=sf.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(){};ui(t,n,i,e,"",e)};lt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};lt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};lt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};lt.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 ui(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 d=n[l];if(Array.isArray(d)){if(l in lt.arrayKeywords)for(var p=0;p<d.length;p++)ui(e,t,r,d[p],i+"/"+l+"/"+p,o,i,l,n,p)}else if(l in lt.propsKeywords){if(d&&typeof d=="object")for(var m in d)ui(e,t,r,d[m],i+"/"+l+"/"+X$(m),o,i,l,n,m)}else(l in lt.keywords||e.allKeys&&!(l in lt.skipKeywords))&&ui(e,t,r,d,i+"/"+l,o,i,l,n)}r(n,i,o,a,c,u,f)}}s(ui,"_traverse");function X$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(X$,"escapeJsonPtr")});var sn=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.getSchemaRefs=de.resolveUrl=de.normalizeId=de._getFullPath=de.getFullPath=de.inlineRef=void 0;var Q$=I(),e0=ms(),t0=af(),r0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n0(e,t=!0){return typeof e=="boolean"?!0:t===!0?!hs(e):t?cf(e)<=t:!1}s(n0,"inlineRef");de.inlineRef=n0;var i0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hs(e){for(let t in e){if(i0.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(hs)||typeof r=="object"&&hs(r))return!0}return!1}s(hs,"hasRef");function cf(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!r0.has(r)&&(typeof e[r]=="object"&&(0,Q$.eachItem)(e[r],n=>t+=cf(n)),t===1/0))return 1/0}return t}s(cf,"countKeys");function uf(e,t="",r){r!==!1&&(t=dr(t));let n=e.parse(t);return ff(e,n)}s(uf,"getFullPath");de.getFullPath=uf;function ff(e,t){return e.serialize(t).split("#")[0]+"#"}s(ff,"_getFullPath");de._getFullPath=ff;var o0=/#\/?$/;function dr(e){return e?e.replace(o0,""):""}s(dr,"normalizeId");de.normalizeId=dr;function s0(e,t,r){return r=dr(r),e.resolve(t,r)}s(s0,"resolveUrl");de.resolveUrl=s0;var a0=/^[a-z_][-a-z0-9._]*$/i;function c0(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=dr(e[r]||t),o={"":i},a=uf(n,i,!1),c={},u=new Set;return t0(e,{allKeys:!0},(d,p,m,y)=>{if(y===void 0)return;let $=a+p,g=o[y];typeof d[r]=="string"&&(g=v.call(this,d[r])),b.call(this,d.$anchor),b.call(this,d.$dynamicAnchor),o[p]=g;function v(S){let O=this.opts.uriResolver.resolve;if(S=dr(g?O(g,S):S),u.has(S))throw l(S);u.add(S);let _=this.refs[S];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?f(d,_.schema,S):S!==dr($)&&(S[0]==="#"?(f(d,c[S],S),c[S]=d):this.refs[S]=$),S}s(v,"addRef");function b(S){if(typeof S=="string"){if(!a0.test(S))throw new Error(`invalid anchor "${S}"`);v.call(this,`#${S}`)}}s(b,"addAnchor")}),c;function f(d,p,m){if(p!==void 0&&!e0(d,p))throw l(m)}s(f,"checkAmbiguosRef");function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}s(l,"ambiguos")}s(c0,"getSchemaRefs");de.getSchemaRefs=c0});var un=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getData=dt.KeywordCxt=dt.validateFunctionCode=void 0;var hf=Uu(),lf=on(),gs=as(),fi=on(),u0=Yu(),cn=tf(),ys=nf(),P=E(),w=ve(),f0=sn(),rt=I(),an=nn();function l0(e){if($f(e)&&(vf(e),gf(e))){m0(e);return}yf(e,()=>(0,hf.topBoolOrEmptySchema)(e))}s(l0,"validateFunctionCode");dt.validateFunctionCode=l0;function yf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,P._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,P._)`"use strict"; ${df(r,i)}`),p0(e,i),e.code(o)}):e.func(t,(0,P._)`${w.default.data}, ${d0(i)}`,n.$async,()=>e.code(df(r,i)).code(o))}s(yf,"validateFunction");function d0(e){return(0,P._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,P._)`, ${w.default.dynamicAnchors}={}`:P.nil}}={}`}s(d0,"destructureValCxt");function p0(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,P._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,P._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,P._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,P._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,P._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,P._)`""`),e.var(w.default.parentData,(0,P._)`undefined`),e.var(w.default.parentDataProperty,(0,P._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,P._)`{}`)})}s(p0,"destructureValCxtES5");function m0(e){let{schema:t,opts:r,gen:n}=e;yf(e,()=>{r.$comment&&t.$comment&&_f(e),v0(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&h0(e),bf(e),P0(e)})}s(m0,"topSchemaObjCode");function h0(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,P._)`${r}.evaluated`),t.if((0,P._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,P._)`${e.evaluated}.props`,(0,P._)`undefined`)),t.if((0,P._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,P._)`${e.evaluated}.items`,(0,P._)`undefined`))}s(h0,"resetEvaluated");function df(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,P._)`/*# sourceURL=${r} */`:P.nil}s(df,"funcSourceUrl");function y0(e,t){if($f(e)&&(vf(e),gf(e))){g0(e,t);return}(0,hf.boolOrEmptySchema)(e,t)}s(y0,"subschemaCode");function gf({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(gf,"schemaCxtHasRules");function $f(e){return typeof e.schema!="boolean"}s($f,"isSchemaObj");function g0(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&_f(e),b0(e),_0(e);let o=n.const("_errs",w.default.errors);bf(e,o),n.var(t,(0,P._)`${o} === ${w.default.errors}`)}s(g0,"subSchemaObjCode");function vf(e){(0,rt.checkUnknownRules)(e),$0(e)}s(vf,"checkKeywords");function bf(e,t){if(e.opts.jtd)return pf(e,[],!1,t);let r=(0,lf.getSchemaTypes)(e.schema),n=(0,lf.coerceAndCheckDataType)(e,r);pf(e,r,!n,t)}s(bf,"typeAndKeywords");function $0(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,rt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s($0,"checkRefsAndKeywords");function v0(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,rt.checkStrictMode)(e,"default is ignored in the schema root")}s(v0,"checkNoDefault");function b0(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f0.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(b0,"updateContext");function _0(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(_0,"checkAsyncSchema");function _f({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,P._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,P.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,P._)`${w.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(_f,"commentKeyword");function P0(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,P._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,P._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,P._)`${n}.errors`,w.default.vErrors),o.unevaluated&&S0(e),t.return((0,P._)`${w.default.errors} === 0`))}s(P0,"returnResults");function S0({gen:e,evaluated:t,props:r,items:n}){r instanceof P.Name&&e.assign((0,P._)`${t}.props`,r),n instanceof P.Name&&e.assign((0,P._)`${t}.items`,n)}s(S0,"assignEvaluated");function pf(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,rt.schemaHasRulesButRef)(o,l))){i.block(()=>Sf(e,"$ref",l.all.$ref.definition));return}u.jtd||x0(e,t),i.block(()=>{for(let p of l.rules)d(p);d(l.post)});function d(p){(0,gs.shouldUseGroup)(o,p)&&(p.type?(i.if((0,fi.checkDataType)(p.type,a,u.strictNumbers)),mf(e,p),t.length===1&&t[0]===p.type&&r&&(i.else(),(0,fi.reportTypeError)(e)),i.endIf()):mf(e,p),c||i.if((0,P._)`${w.default.errors} === ${n||0}`))}s(d,"groupKeywords")}s(pf,"schemaKeywords");function mf(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,u0.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,gs.shouldUseRule)(n,o)&&Sf(e,o.keyword,o.definition,t.type)})}s(mf,"iterateKeywords");function x0(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(w0(e,t),e.opts.allowUnionTypes||O0(e,t),E0(e,e.dataTypes))}s(x0,"checkStrictTypes");function w0(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Pf(e.dataTypes,r)||$s(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),j0(e,t)}}s(w0,"checkContextTypes");function O0(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&$s(e,"use allowUnionTypes to allow union type keyword")}s(O0,"checkMultipleTypes");function E0(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,gs.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>A0(t,a))&&$s(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(E0,"checkKeywordTypes");function A0(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(A0,"hasApplicableType");function Pf(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Pf,"includesType");function j0(e,t){let r=[];for(let n of e.dataTypes)Pf(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(j0,"narrowSchemaTypes");function $s(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,rt.checkStrictMode)(e,t,e.opts.strictTypes)}s($s,"strictTypesError");var vs=class vs{constructor(t,r,n){if((0,cn.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,rt.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",xf(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,cn.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,P.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,P.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,P._)`${r} !== undefined && (${(0,P.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?an.reportExtraError:an.reportError)(this,this.def.error,r)}$dataError(){(0,an.reportError)(this,this.def.$dataError||an.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,an.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=P.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=P.nil,r=P.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,P.or)((0,P._)`${i} === undefined`,r)),t!==P.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==P.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,P.or)(a(),c());function a(){if(n.length){if(!(r instanceof P.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,P._)`${(0,fi.checkDataTypes)(u,r,o.opts.strictNumbers,fi.DataType.Wrong)}`}return P.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,P._)`!${u}(${r})`}return P.nil}}subschema(t,r){let n=(0,ys.getSubschema)(this.it,t);(0,ys.extendSubschemaData)(n,this.it,t),(0,ys.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return y0(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=rt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=rt.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,P.Name)),!0}};s(vs,"KeywordCxt");var li=vs;dt.KeywordCxt=li;function Sf(e,t,r,n){let i=new li(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,cn.funcKeywordCode)(i,r):"macro"in r?(0,cn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,cn.funcKeywordCode)(i,r)}s(Sf,"keywordCode");var q0=/^\/(?:[^~]|~0|~1)*$/,I0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xf(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!q0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let f=I0.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,P._)`${o}${(0,P.getProperty)((0,rt.unescapeJsonPointer)(f))}`,a=(0,P._)`${a} && ${o}`);return a;function u(f,l){return`Cannot access ${f} ${l} levels up, current level is ${t}`}}s(xf,"getData");dt.getData=xf});var di=h(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var Ps=class Ps extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ps,"ValidationError");var bs=Ps;_s.default=bs});var fn=h(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var Ss=sn(),Os=class Os extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ss.resolveUrl)(t,r,n),this.missingSchema=(0,Ss.normalizeId)((0,Ss.getFullPath)(t,this.missingRef))}};s(Os,"MissingRefError");var xs=Os;ws.default=xs});var ln=h(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.resolveSchema=_e.getCompilingSchema=_e.resolveRef=_e.compileSchema=_e.SchemaEnv=void 0;var Ee=E(),R0=di(),Dt=ve(),Ae=sn(),wf=I(),T0=un(),js=class js{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,Ae.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(js,"SchemaEnv");var pr=js;_e.SchemaEnv=pr;function As(e){let t=Of.call(this,e);if(t)return t;let r=(0,Ae.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ee.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:R0.default,code:(0,Ee._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let f={gen:a,allErrors:this.opts.allErrors,data:Dt.default.data,parentData:Dt.default.parentData,parentDataProperty:Dt.default.parentDataProperty,dataNames:[Dt.default.data],dataPathArr:[Ee.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ee.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ee.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ee._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,T0.validateFunctionCode)(f),a.optimize(this.opts.code.optimize);let d=a.toString();l=`${a.scopeRefs(Dt.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${Dt.default.self}`,`${Dt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:d,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:$}=f;m.evaluated={props:y instanceof Ee.Name?void 0:y,items:$ instanceof Ee.Name?void 0:$,dynamicProps:y instanceof Ee.Name,dynamicItems:$ instanceof Ee.Name},m.source&&(m.source.evaluated=(0,Ee.stringify)(m.evaluated))}return e.validate=m,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}s(As,"compileSchema");_e.compileSchema=As;function k0(e,t,r){var n;r=(0,Ae.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=M0.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 pr({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=N0.call(this,o)}s(k0,"resolveRef");_e.resolveRef=k0;function N0(e){return(0,Ae.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:As.call(this,e)}s(N0,"inlineOrCompile");function Of(e){for(let t of this._compilations)if(C0(t,e))return t}s(Of,"getCompilingSchema");_e.getCompilingSchema=Of;function C0(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(C0,"sameSchemaEnv");function M0(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||pi.call(this,e,t)}s(M0,"resolve");function pi(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ae._getFullPath)(this.opts.uriResolver,r),i=(0,Ae.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Es.call(this,r,e);let o=(0,Ae.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=pi.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Es.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||As.call(this,a),o===(0,Ae.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,f=c[u];return f&&(i=(0,Ae.resolveUrl)(this.opts.uriResolver,i,f)),new pr({schema:c,schemaId:u,root:e,baseId:i})}return Es.call(this,r,a)}}s(pi,"resolveSchema");_e.resolveSchema=pi;var D0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Es(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,wf.unescapeFragment)(c)];if(u===void 0)return;r=u;let f=typeof r=="object"&&r[this.opts.schemaId];!D0.has(c)&&f&&(t=(0,Ae.resolveUrl)(this.opts.uriResolver,t,f))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,wf.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Ae.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=pi.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new pr({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Es,"getJsonPointer")});var Ef=h((Pj,F0)=>{F0.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 jf=h((Sj,Af)=>{"use strict";var V0={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};Af.exports={HEX:V0}});var Mf=h((xj,Cf)=>{"use strict";var{HEX:L0}=jf();function Tf(e){if(Nf(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:U0(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Tf,"normalizeIPv4");function qs(e,t=!1){let r="",n=!0;for(let i of e){if(L0[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(qs,"stringArrayToHexStripped");function z0(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=qs(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(qs(i))),r.address=n.join(""),r}s(z0,"getIPV6");function kf(e,t={}){if(Nf(e,":")<2)return{host:e,isIPV6:!1};let r=z0(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(kf,"normalizeIPv6");function U0(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(U0,"stripLeadingZeros");function Nf(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Nf,"findToken");var qf=/^\.\.?\//u,If=/^\/\.(?:\/|$)/u,Rf=/^\/\.\.(?:\/|$)/u,B0=/^\/?(?:.|\n)*?(?=\/|$)/u;function H0(e){let t=[];for(;e.length;)if(e.match(qf))e=e.replace(qf,"");else if(e.match(If))e=e.replace(If,"/");else if(e.match(Rf))e=e.replace(Rf,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(B0);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(H0,"removeDotSegments");function G0(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(G0,"normalizeComponentEncoding");function Z0(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=Tf(n);if(i.isIPV4)n=i.host;else{let o=kf(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(Z0,"recomposeAuthority");Cf.exports={recomposeAuthority:Z0,normalizeComponentEncoding:G0,removeDotSegments:H0,normalizeIPv4:Tf,normalizeIPv6:kf,stringArrayToHexStripped:qs}});var Uf=h((Oj,zf)=>{"use strict";var K0=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,W0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Df(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(Df,"isSecure");function Ff(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Ff,"httpParse");function Vf(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(Vf,"httpSerialize");function Y0(e){return e.secure=Df(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Y0,"wsParse");function J0(e){if((e.port===(Df(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(J0,"wsSerialize");function X0(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(W0);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=Is[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(X0,"urnParse");function Q0(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Is[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(Q0,"urnSerialize");function ev(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!K0.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(ev,"urnuuidParse");function tv(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(tv,"urnuuidSerialize");var Lf={scheme:"http",domainHost:!0,parse:Ff,serialize:Vf},rv={scheme:"https",domainHost:Lf.domainHost,parse:Ff,serialize:Vf},mi={scheme:"ws",domainHost:!0,parse:Y0,serialize:J0},nv={scheme:"wss",domainHost:mi.domainHost,parse:mi.parse,serialize:mi.serialize},iv={scheme:"urn",parse:X0,serialize:Q0,skipNormalize:!0},ov={scheme:"urn:uuid",parse:ev,serialize:tv,skipNormalize:!0},Is={http:Lf,https:rv,ws:mi,wss:nv,urn:iv,"urn:uuid":ov};zf.exports=Is});var Hf=h((Aj,yi)=>{"use strict";var{normalizeIPv6:sv,normalizeIPv4:av,removeDotSegments:dn,recomposeAuthority:cv,normalizeComponentEncoding:hi}=Mf(),Rs=Uf();function uv(e,t){return typeof e=="string"?e=Ve(nt(e,t),t):typeof e=="object"&&(e=nt(Ve(e,t),t)),e}s(uv,"normalize");function fv(e,t,r){let n=Object.assign({scheme:"null"},r),i=Bf(nt(e,n),nt(t,n),n,!0);return Ve(i,{...n,skipEscape:!0})}s(fv,"resolve");function Bf(e,t,r,n){let i={};return n||(e=nt(Ve(e,r),r),t=nt(Ve(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=dn(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=dn(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=dn(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=dn(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(Bf,"resolveComponents");function lv(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ve(hi(nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ve(hi(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ve(hi(nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ve(hi(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(lv,"equal");function Ve(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=Rs[(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=cv(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=dn(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(Ve,"serialize");var dv=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function pv(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||dv[t])return!0;return!1}s(pv,"nonSimpleDomain");var mv=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(mv);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=av(n.host);if(u.isIPV4===!1){let f=sv(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=Rs[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&pv(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(nt,"parse");var Ts={SCHEMES:Rs,normalize:uv,resolve:fv,resolveComponents:Bf,equal:lv,serialize:Ve,parse:nt};yi.exports=Ts;yi.exports.default=Ts;yi.exports.fastUri=Ts});var Zf=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Gf=Hf();Gf.code='require("ajv/dist/runtime/uri").default';ks.default=Gf});var hr=h(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CodeGen=X.Name=X.nil=X.stringify=X.str=X._=X.KeywordCxt=void 0;var hv=un();Object.defineProperty(X,"KeywordCxt",{enumerable:!0,get:s(function(){return hv.KeywordCxt},"get")});var mr=E();Object.defineProperty(X,"_",{enumerable:!0,get:s(function(){return mr._},"get")});Object.defineProperty(X,"str",{enumerable:!0,get:s(function(){return mr.str},"get")});Object.defineProperty(X,"stringify",{enumerable:!0,get:s(function(){return mr.stringify},"get")});Object.defineProperty(X,"nil",{enumerable:!0,get:s(function(){return mr.nil},"get")});Object.defineProperty(X,"Name",{enumerable:!0,get:s(function(){return mr.Name},"get")});Object.defineProperty(X,"CodeGen",{enumerable:!0,get:s(function(){return mr.CodeGen},"get")});var yv=di(),Xf=fn(),gv=ss(),pn=ln(),$v=E(),mn=sn(),gi=on(),Cs=I(),Kf=Ef(),vv=Zf(),Qf=s((e,t)=>new RegExp(e,t),"defaultRegExp");Qf.code="new RegExp";var bv=["removeAdditional","useDefaults","coerceTypes"],_v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Pv={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."},Sv={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Wf=200;function xv(e){var t,r,n,i,o,a,c,u,f,l,d,p,m,y,$,g,v,b,S,O,_,H,L,qt,Ne;let he=e.strict,Qt=(t=e.code)===null||t===void 0?void 0:t.optimize,er=Qt===!0||Qt===void 0?1:Qt||0,Bn=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Qf,Hn=(i=e.uriResolver)!==null&&i!==void 0?i:vv.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:he)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:he)!==null&&u!==void 0?u:!0,strictTypes:(l=(f=e.strictTypes)!==null&&f!==void 0?f:he)!==null&&l!==void 0?l:"log",strictTuples:(p=(d=e.strictTuples)!==null&&d!==void 0?d:he)!==null&&p!==void 0?p:"log",strictRequired:(y=(m=e.strictRequired)!==null&&m!==void 0?m:he)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:er,regExp:Bn}:{optimize:er,regExp:Bn},loopRequired:($=e.loopRequired)!==null&&$!==void 0?$:Wf,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Wf,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(O=e.schemaId)!==null&&O!==void 0?O:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(H=e.validateSchema)!==null&&H!==void 0?H:!0,validateFormats:(L=e.validateFormats)!==null&&L!==void 0?L:!0,unicodeRegExp:(qt=e.unicodeRegExp)!==null&&qt!==void 0?qt:!0,int32range:(Ne=e.int32range)!==null&&Ne!==void 0?Ne:!0,uriResolver:Hn}}s(xv,"requiredOptions");var Ms=class Ms{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...xv(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new $v.ValueScope({scope:{},prefixes:_v,es5:r,lines:n}),this.logger=qv(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,gv.getRules)(),Yf.call(this,Pv,t,"NOT SUPPORTED"),Yf.call(this,Sv,t,"DEPRECATED","warn"),this._metaOpts=Av.call(this),t.formats&&Ov.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ev.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),wv.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Kf;n==="id"&&(i={...Kf},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,d){await o.call(this,l.$schema);let p=this._addSchema(l,d);return p.validate||a.call(this,p)}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(d){if(!(d instanceof Xf.default))throw d;return c.call(this,d),await u.call(this,d.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function u(l){let d=await f.call(this,l);this.refs[l]||await o.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function f(l){let d=this._loading[l];if(d)return d;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,mn.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=Jf.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new pn.SchemaEnv({schema:{},schemaId:n});if(r=pn.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=Jf.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,mn.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(Rv.call(this,n,r),!r)return(0,Cs.eachItem)(n,o=>Ns.call(this,o)),this;kv.call(this,r);let i={...r,type:(0,gi.getJSONTypes)(r.type),schemaType:(0,gi.getJSONTypes)(r.schemaType)};return(0,Cs.eachItem)(n,i.type.length===0?o=>Ns.call(this,o,i):o=>i.type.forEach(a=>Ns.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]=el(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,mn.normalizeId)(a||n);let f=mn.getSchemaRefs.call(this,t,n);return u=new pn.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):pn.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{pn.compileSchema.call(this,t)}finally{this.opts=r}}};s(Ms,"Ajv");var hn=Ms;hn.ValidationError=yv.default;hn.MissingRefError=Xf.default;X.default=hn;function Yf(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(Yf,"checkOptions");function Jf(e){return e=(0,mn.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Jf,"getSchEnv");function wv(){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(wv,"addInitialSchemas");function Ov(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(Ov,"addInitialFormats");function Ev(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(Ev,"addInitialKeywords");function Av(){let e={...this.opts};for(let t of bv)delete e[t];return e}s(Av,"getMetaSchemaOptions");var jv={log(){},warn(){},error(){}};function qv(e){if(e===!1)return jv;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(qv,"getLogger");var Iv=/^[a-z_$][a-z0-9_$:-]*$/i;function Rv(e,t){let{RULES:r}=this;if((0,Cs.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Iv.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(Rv,"checkKeyword");function Ns(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,gi.getJSONTypes)(t.type),schemaType:(0,gi.getJSONTypes)(t.schemaType)}};t.before?Tv.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(Ns,"addRule");function Tv(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(Tv,"addBeforeRule");function kv(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=el(t)),e.validateSchema=this.compile(t,!0))}s(kv,"keywordMetaschema");var Nv={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function el(e){return{anyOf:[e,Nv]}}s(el,"schemaOrData")});var yn=h(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.callRef=Ft.getValidate=void 0;var Cv=fn(),tl=be(),pe=E(),yr=ve(),rl=ln(),$i=I(),Mv={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 d();let l=rl.resolveRef.call(u,f,i,r);if(l===void 0)throw new Cv.default(n.opts.uriResolver,i,r);if(l instanceof rl.SchemaEnv)return p(l);return m(l);function d(){if(o===f)return vi(e,a,o,o.$async);let y=t.scopeValue("root",{ref:f});return vi(e,(0,pe._)`${y}.validate`,f,f.$async)}function p(y){let $=nl(e,y);vi(e,$,y,y.$async)}function m(y){let $=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,pe.stringify)(y)}:{ref:y}),g=t.name("valid"),v=e.subschema({schema:y,dataTypes:[],schemaPath:pe.nil,topSchemaRef:$,errSchemaPath:r},g);e.mergeEvaluated(v),e.ok(g)}}};function nl(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,pe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(nl,"getValidate");Ft.getValidate=nl;function vi(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,f=u.passContext?yr.default.this:pe.nil;n?l():d();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,pe._)`await ${(0,tl.callValidateCode)(e,t,f)}`),m(t),a||i.assign(y,!0)},$=>{i.if((0,pe._)`!(${$} instanceof ${o.ValidationError})`,()=>i.throw($)),p($),a||i.assign(y,!1)}),e.ok(y)}s(l,"callAsyncRef");function d(){e.result((0,tl.callValidateCode)(e,t,f),()=>m(t),()=>p(t))}s(d,"callSyncRef");function p(y){let $=(0,pe._)`${y}.errors`;i.assign(yr.default.vErrors,(0,pe._)`${yr.default.vErrors} === null ? ${$} : ${yr.default.vErrors}.concat(${$})`),i.assign(yr.default.errors,(0,pe._)`${yr.default.vErrors}.length`)}s(p,"addErrorsFrom");function m(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=$i.mergeEvaluated.props(i,g.props,o.props));else{let v=i.var("props",(0,pe._)`${y}.evaluated.props`);o.props=$i.mergeEvaluated.props(i,v,o.props,pe.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=$i.mergeEvaluated.items(i,g.items,o.items));else{let v=i.var("items",(0,pe._)`${y}.evaluated.items`);o.items=$i.mergeEvaluated.items(i,v,o.items,pe.Name)}}s(m,"addEvaluatedFrom")}s(vi,"callRef");Ft.callRef=vi;Ft.default=Mv});var il=h(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Dv=yn(),Fv=["$schema","id","$defs",{keyword:"$comment"},"definitions",Dv.default];Ds.default=Fv});var ol=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var Fs=hr(),Vv=E(),pt=Vv.operators,Vs={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:pt.LTE,fail:pt.GT},{okStr:"<",ok:pt.LT,fail:pt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:pt.GTE,fail:pt.LT},{okStr:">",ok:pt.GT,fail:pt.LTE}]}},Lv={message:s(e=>Fs.str`must be ${Ls(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Fs._`{comparison: ${Ls(e).okStr}, limit: ${e.schemaCode}}`,"params")},zv={keyword:Object.keys(Vs),type:"number",schemaType:"number",$data:!0,error:Lv,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Fs._`${t} ${Ls(e).fail} ${r} || isNaN(${t})`)}};function Ls(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Vs[r].exclusive]?1:0;return Vs[r].ops[n]}s(Ls,"kwdOp");zs.default=zv});var al=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var sl={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Uv={keyword:Object.keys(sl),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=sl[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Us.default=Uv});var Hs=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var gn=E(),Bv={message:s(({schemaCode:e})=>(0,gn.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,gn._)`{multipleOf: ${e}}`,"params")},Hv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Bv,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,gn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,gn._)`${a} !== parseInt(${a})`;e.fail$data((0,gn._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Bs.default=Hv});var ul=h(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function cl(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(cl,"ucs2length");Gs.default=cl;cl.code='require("ajv/dist/runtime/ucs2length").default'});var Ks=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Vt=E(),Gv=I(),Zv=ul(),Kv={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Vt.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Vt._)`{limit: ${e}}`,"params")},Wv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Kv,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Vt.operators.GT:Vt.operators.LT,a=i.opts.unicode===!1?(0,Vt._)`${r}.length`:(0,Vt._)`${(0,Gv.useFunc)(e.gen,Zv.default)}(${r})`;e.fail$data((0,Vt._)`${a} ${o} ${n}`)}};Zs.default=Wv});var Ys=h(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var Yv=be(),bi=E(),Jv={message:s(({schemaCode:e})=>(0,bi.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,bi._)`{pattern: ${e}}`,"params")},Xv={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Jv,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,bi._)`(new RegExp(${i}, ${a}))`:(0,Yv.usePattern)(e,n);e.fail$data((0,bi._)`!${c}.test(${t})`)}};Ws.default=Xv});var Xs=h(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var $n=E(),Qv={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,$n.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,$n._)`{limit: ${e}}`,"params")},eb={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Qv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?$n.operators.GT:$n.operators.LT;e.fail$data((0,$n._)`Object.keys(${r}).length ${i} ${n}`)}};Js.default=eb});var ea=h(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var vn=be(),bn=E(),tb=I(),rb={message:s(({params:{missingProperty:e}})=>(0,bn.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,bn._)`{missingProperty: ${e}}`,"params")},nb={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rb,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 m=e.parentSchema.properties,{definedProperties:y}=e.it;for(let $ of r)if((m==null?void 0:m[$])===void 0&&!y.has($)){let g=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${$}" is not defined at "${g}" (strictRequired)`;(0,tb.checkStrictMode)(a,v,a.opts.strictRequired)}}function f(){if(u||o)e.block$data(bn.nil,d);else for(let m of r)(0,vn.checkReportMissingProp)(e,m)}s(f,"allErrorsMode");function l(){let m=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>p(m,y)),e.ok(y)}else t.if((0,vn.checkMissingProp)(e,r,m)),(0,vn.reportMissingProp)(e,m),t.else()}s(l,"exitOnErrorMode");function d(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,vn.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}s(d,"loopAllRequired");function p(m,y){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(y,(0,vn.propertyInData)(t,i,m,c.ownProperties)),t.if((0,bn.not)(y),()=>{e.error(),t.break()})},bn.nil)}s(p,"loopUntilMissing")}};Qs.default=nb});var ra=h(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var _n=E(),ib={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,_n.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,_n._)`{limit: ${e}}`,"params")},ob={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ib,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?_n.operators.GT:_n.operators.LT;e.fail$data((0,_n._)`${r}.length ${i} ${n}`)}};ta.default=ob});var _i=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var fl=ms();fl.code='require("ajv/dist/runtime/equal").default';na.default=fl});var sa=h(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var ia=on(),Q=E(),sb=I(),ab=_i(),cb={message:s(({params:{i:e,j:t}})=>(0,Q.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,Q._)`{i: ${e}, j: ${t}}`,"params")},ub={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:cb,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,ia.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,Q._)`${a} === false`),e.ok(u);function l(){let y=t.let("i",(0,Q._)`${r}.length`),$=t.let("j");e.setParams({i:y,j:$}),t.assign(u,!0),t.if((0,Q._)`${y} > 1`,()=>(d()?p:m)(y,$))}s(l,"validateUniqueItems");function d(){return f.length>0&&!f.some(y=>y==="object"||y==="array")}s(d,"canOptimize");function p(y,$){let g=t.name("item"),v=(0,ia.checkDataTypes)(f,g,c.opts.strictNumbers,ia.DataType.Wrong),b=t.const("indices",(0,Q._)`{}`);t.for((0,Q._)`;${y}--;`,()=>{t.let(g,(0,Q._)`${r}[${y}]`),t.if(v,(0,Q._)`continue`),f.length>1&&t.if((0,Q._)`typeof ${g} == "string"`,(0,Q._)`${g} += "_"`),t.if((0,Q._)`typeof ${b}[${g}] == "number"`,()=>{t.assign($,(0,Q._)`${b}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Q._)`${b}[${g}] = ${y}`)})}s(p,"loopN");function m(y,$){let g=(0,sb.useFunc)(t,ab.default),v=t.name("outer");t.label(v).for((0,Q._)`;${y}--;`,()=>t.for((0,Q._)`${$} = ${y}; ${$}--;`,()=>t.if((0,Q._)`${g}(${r}[${y}], ${r}[${$}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}s(m,"loopN2")}};oa.default=ub});var ua=h(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var aa=E(),fb=I(),lb=_i(),db={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,aa._)`{allowedValue: ${e}}`,"params")},pb={keyword:"const",$data:!0,error:db,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,aa._)`!${(0,fb.useFunc)(t,lb.default)}(${r}, ${i})`):e.fail((0,aa._)`${o} !== ${r}`)}};ca.default=pb});var la=h(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var Pn=E(),mb=I(),hb=_i(),yb={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Pn._)`{allowedValues: ${e}}`,"params")},gb={keyword:"enum",schemaType:"array",$data:!0,error:yb,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,mb.useFunc)(t,hb.default)),"getEql"),l;if(c||n)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",o);l=(0,Pn.or)(...i.map((y,$)=>p(m,$)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",o,m=>t.if((0,Pn._)`${f()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}s(d,"loopEnum");function p(m,y){let $=i[y];return typeof $=="object"&&$!==null?(0,Pn._)`${f()}(${r}, ${m}[${y}])`:(0,Pn._)`${r} === ${$}`}s(p,"equalCode")}};fa.default=gb});var ll=h(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var $b=ol(),vb=al(),bb=Hs(),_b=Ks(),Pb=Ys(),Sb=Xs(),xb=ea(),wb=ra(),Ob=sa(),Eb=ua(),Ab=la(),jb=[$b.default,vb.default,bb.default,_b.default,Pb.default,Sb.default,xb.default,wb.default,Ob.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Eb.default,Ab.default];da.default=jb});var ma=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.validateAdditionalItems=void 0;var Lt=E(),pa=I(),qb={message:s(({params:{len:e}})=>(0,Lt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Lt._)`{limit: ${e}}`,"params")},Ib={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:qb,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,pa.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}dl(e,n)}};function dl(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,Lt._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Lt._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,pa.alwaysValidSchema)(a,n)){let f=r.var("valid",(0,Lt._)`${c} <= ${t.length}`);r.if((0,Lt.not)(f),()=>u(f)),e.ok(f)}function u(f){r.forRange("i",t.length,c,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:pa.Type.Num},f),a.allErrors||r.if((0,Lt.not)(f),()=>r.break())})}s(u,"validateItems")}s(dl,"validateAdditionalItems");Sn.validateAdditionalItems=dl;Sn.default=Ib});var ha=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.validateTuple=void 0;var pl=E(),Pi=I(),Rb=be(),Tb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return ml(e,"additionalItems",t);r.items=!0,!(0,Pi.alwaysValidSchema)(r,t)&&e.ok((0,Rb.validateArray)(e))}};function ml(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=Pi.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),f=n.const("len",(0,pl._)`${o}.length`);r.forEach((d,p)=>{(0,Pi.alwaysValidSchema)(c,d)||(n.if((0,pl._)`${f} > ${p}`,()=>e.subschema({keyword:a,schemaProp:p,dataProp:p},u)),e.ok(u))});function l(d){let{opts:p,errSchemaPath:m}=c,y=r.length,$=y===d.minItems&&(y===d.maxItems||d[t]===!1);if(p.strictTuples&&!$){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Pi.checkStrictMode)(c,g,p.strictTuples)}}s(l,"checkStrictTuple")}s(ml,"validateTuple");xn.validateTuple=ml;xn.default=Tb});var hl=h(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var kb=ha(),Nb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,kb.validateTuple)(e,"items"),"code")};ya.default=Nb});var gl=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var yl=E(),Cb=I(),Mb=be(),Db=ma(),Fb={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")},Vb={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Fb,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Cb.alwaysValidSchema)(n,t)&&(i?(0,Db.validateAdditionalItems)(e,i):e.ok((0,Mb.validateArray)(e)))}};ga.default=Vb});var $l=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Pe=E(),Si=I(),Lb={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Pe.str)`must contain at least ${e} valid item(s)`:(0,Pe.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,Pe._)`{minContains: ${e}}`:(0,Pe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Lb,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,Pe._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Si.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Si.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Si.alwaysValidSchema)(o,r)){let $=(0,Pe._)`${l} >= ${a}`;c!==void 0&&($=(0,Pe._)`${$} && ${l} <= ${c}`),e.pass($);return}o.items=!0;let d=t.name("valid");c===void 0&&a===1?m(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),c!==void 0&&t.if((0,Pe._)`${i}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,()=>e.reset());function p(){let $=t.name("_valid"),g=t.let("count",0);m($,()=>t.if($,()=>y(g)))}s(p,"validateItemsWithCount");function m($,g){t.forRange("i",0,l,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Si.Type.Num,compositeRule:!0},$),g()})}s(m,"validateItems");function y($){t.code((0,Pe._)`${$}++`),c===void 0?t.if((0,Pe._)`${$} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,Pe._)`${$} > ${c}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,Pe._)`${$} >= ${a}`,()=>t.assign(d,!0)))}s(y,"checkLimits")}};$a.default=zb});var xi=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.validateSchemaDeps=Le.validatePropertyDeps=Le.error=void 0;var va=E(),Ub=I(),wn=be();Le.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,va.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,va._)`{property: ${e},
3
+ `+n:r||n}s(vu,"joinStacks");Ce.joinStacks=vu;function dg(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return vu({stack:n},r)},"get"),enumerable:!1,configurable:!0}):pg(t,e)}s(dg,"lazyJoinStacks");Ce.lazyJoinStacks=dg;function bu(e){if(e){let t=e.split(cg),r;for(let n=0;n<t.length;n++){let i=t[n];if(ug.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(bu,"popStack");function pg(e,t){Object.defineProperty(e,"stack",{get:s(()=>bu(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(pg,"lazyPopStack")});var xu=h(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.extendError=void 0;var Pu=ao(),Yn=_u(),Su=Wn(),mg=["name","message","stack"];function hg(e,t,r){let n=e;return yg(n,t),t&&typeof t=="object"&&gg(n,t),n.toJSON=Su.toJSON,Pu.addInspectMethod&&Pu.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(hg,"extendError");Jn.extendError=hg;function yg(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Yn.isLazyStack(r)?Yn.lazyJoinStacks(r,e,t):Yn.isWritableStack(r)&&(e.stack=Yn.joinStacks(e,t))}s(yg,"extendStack");function gg(e,t){let r=Su.getDeepKeys(t,mg),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(gg,"mergeErrors")});var wu=h(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.normalizeArgs=or.normalizeOptions=void 0;var $g=ao();function vg(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?$g.format:typeof e.format=="function"?e.format:!1}}s(vg,"normalizeOptions");or.normalizeOptions=vg;function bg(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(bg,"normalizeArgs");or.normalizeArgs=bg});var uo=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Ono=void 0;var Xn=xu(),Ou=wu(),_g=Wn(),Pg=co;Qn.Ono=Pg;function co(e,t){t=Ou.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Ou.normalizeArgs(n,t),c=new e(a);return Xn.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(co,"Ono");co.toJSON=s(function(t){return _g.toJSON.call(t)},"toJSON");co.extend=s(function(t,r,n){return n||r instanceof Error?Xn.extendError(t,r,n):r?Xn.extendError(t,void 0,r):Xn.extendError(t)},"extend")});var Eu=h(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.ono=void 0;var It=uo(),Sg=Me;ei.ono=Sg;Me.error=new It.Ono(Error);Me.eval=new It.Ono(EvalError);Me.range=new It.Ono(RangeError);Me.reference=new It.Ono(ReferenceError);Me.syntax=new It.Ono(SyntaxError);Me.type=new It.Ono(TypeError);Me.uri=new It.Ono(URIError);var xg=Me;function Me(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(xg))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 Me.error.apply(void 0,e)}s(Me,"ono")});var Au=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Cj=require("util")});var we=h((xe,sr)=>{"use strict";var wg=xe&&xe.__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]}),Og=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&wg(t,e,r)};Object.defineProperty(xe,"__esModule",{value:!0});xe.ono=void 0;var qu=Eu();Object.defineProperty(xe,"ono",{enumerable:!0,get:s(function(){return qu.ono},"get")});var Eg=uo();Object.defineProperty(xe,"Ono",{enumerable:!0,get:s(function(){return Eg.Ono},"get")});Og(Au(),xe);xe.default=qu.ono;typeof sr=="object"&&typeof sr.exports=="object"&&(sr.exports=Object.assign(sr.exports.default,sr.exports))});var Qr=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.regexpCode=k.getEsmExportName=k.getProperty=k.safeStringify=k.stringify=k.strConcat=k.addCodeArg=k.str=k._=k.nil=k._Code=k.Name=k.IDENTIFIER=k._CodeOrName=void 0;var po=class po{};s(po,"_CodeOrName");var Jr=po;k._CodeOrName=Jr;k.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mo=class mo extends Jr{constructor(t){if(super(),!k.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(mo,"Name");var Tt=mo;k.Name=Tt;var ho=class ho extends Jr{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 Tt&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(ho,"_Code");var $e=ho;k._Code=$e;k.nil=new $e("");function Iu(e,...t){let r=[e[0]],n=0;for(;n<t.length;)lo(r,t[n]),r.push(e[++n]);return new $e(r)}s(Iu,"_");k._=Iu;var fo=new $e("+");function Tu(e,...t){let r=[Xr(e[0])],n=0;for(;n<t.length;)r.push(fo),lo(r,t[n]),r.push(fo,Xr(e[++n]));return jg(r),new $e(r)}s(Tu,"str");k.str=Tu;function lo(e,t){t instanceof $e?e.push(...t._items):t instanceof Tt?e.push(t):e.push(Ig(t))}s(lo,"addCodeArg");k.addCodeArg=lo;function jg(e){let t=1;for(;t<e.length-1;){if(e[t]===fo){let r=Ag(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(jg,"optimize");function Ag(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Tt||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 Tt))return`"${e}${t.slice(1)}`}s(Ag,"mergeExprItems");function qg(e,t){return t.emptyStr()?e:e.emptyStr()?t:Tu`${e}${t}`}s(qg,"strConcat");k.strConcat=qg;function Ig(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Xr(Array.isArray(e)?e.join(","):e)}s(Ig,"interpolate");function Tg(e){return new $e(Xr(e))}s(Tg,"stringify");k.stringify=Tg;function Xr(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(Xr,"safeStringify");k.safeStringify=Xr;function Rg(e){return typeof e=="string"&&k.IDENTIFIER.test(e)?new $e(`.${e}`):Iu`[${e}]`}s(Rg,"getProperty");k.getProperty=Rg;function Ng(e){if(typeof e=="string"&&k.IDENTIFIER.test(e))return new $e(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(Ng,"getEsmExportName");k.getEsmExportName=Ng;function kg(e){return new $e(e.toString())}s(kg,"regexpCode");k.regexpCode=kg});var Po=h(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.ValueScope=le.ValueScopeName=le.Scope=le.varKinds=le.UsedValueState=void 0;var fe=Qr(),$o=class $o extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s($o,"ValueError");var yo=$o,ti;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ti||(le.UsedValueState=ti={}));le.varKinds={const:new fe.Name("const"),let:new fe.Name("let"),var:new fe.Name("var")};var vo=class vo{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof fe.Name?t:this.name(t)}name(t){return new fe.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(vo,"Scope");var ri=vo;le.Scope=ri;var bo=class bo extends fe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,fe._)`.${new fe.Name(r)}[${n}]`}};s(bo,"ValueScopeName");var ni=bo;le.ValueScopeName=ni;var Cg=(0,fe._)`\n`,_o=class _o extends ri{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Cg:fe.nil}}get(){return this._scope}name(t){return new ni(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,fe._)`${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=fe.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,ti.Started);let l=r(f);if(l){let d=this.opts.es5?le.varKinds.var:le.varKinds.const;o=(0,fe._)`${o}${d} ${f} = ${l};${this.opts._n}`}else if(l=i==null?void 0:i(f))o=(0,fe._)`${o}${l}${this.opts._n}`;else throw new yo(f);u.set(f,ti.Completed)})}return o}};s(_o,"ValueScope");var go=_o;le.ValueScope=go});var O=h(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.or=A.and=A.not=A.CodeGen=A.operators=A.varKinds=A.ValueScopeName=A.ValueScope=A.Scope=A.Name=A.regexpCode=A.stringify=A.getProperty=A.nil=A.strConcat=A.str=A._=void 0;var R=Qr(),Oe=Po(),st=Qr();Object.defineProperty(A,"_",{enumerable:!0,get:s(function(){return st._},"get")});Object.defineProperty(A,"str",{enumerable:!0,get:s(function(){return st.str},"get")});Object.defineProperty(A,"strConcat",{enumerable:!0,get:s(function(){return st.strConcat},"get")});Object.defineProperty(A,"nil",{enumerable:!0,get:s(function(){return st.nil},"get")});Object.defineProperty(A,"getProperty",{enumerable:!0,get:s(function(){return st.getProperty},"get")});Object.defineProperty(A,"stringify",{enumerable:!0,get:s(function(){return st.stringify},"get")});Object.defineProperty(A,"regexpCode",{enumerable:!0,get:s(function(){return st.regexpCode},"get")});Object.defineProperty(A,"Name",{enumerable:!0,get:s(function(){return st.Name},"get")});var ai=Po();Object.defineProperty(A,"Scope",{enumerable:!0,get:s(function(){return ai.Scope},"get")});Object.defineProperty(A,"ValueScope",{enumerable:!0,get:s(function(){return ai.ValueScope},"get")});Object.defineProperty(A,"ValueScopeName",{enumerable:!0,get:s(function(){return ai.ValueScopeName},"get")});Object.defineProperty(A,"varKinds",{enumerable:!0,get:s(function(){return ai.varKinds},"get")});A.operators={GT:new R._Code(">"),GTE:new R._Code(">="),LT:new R._Code("<"),LTE:new R._Code("<="),EQ:new R._Code("==="),NEQ:new R._Code("!=="),NOT:new R._Code("!"),OR:new R._Code("||"),AND:new R._Code("&&"),ADD:new R._Code("+")};var ko=class ko{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(ko,"Node");var Qe=ko,Co=class Co extends Qe{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Oe.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=ur(this.rhs,t,r)),this}get names(){return this.rhs instanceof R._CodeOrName?this.rhs.names:{}}};s(Co,"Def");var So=Co,Mo=class Mo extends Qe{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 R.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ur(this.rhs,t,r),this}get names(){let t=this.lhs instanceof R.Name?{}:{...this.lhs.names};return si(t,this.rhs)}};s(Mo,"Assign");var ii=Mo,Do=class Do extends ii{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Do,"AssignOp");var xo=Do,Fo=class Fo extends Qe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Fo,"Label");var wo=Fo,Vo=class Vo extends Qe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Vo,"Break");var Oo=Vo,Lo=class Lo extends Qe{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(Lo,"Throw");var Eo=Lo,zo=class zo extends Qe{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=ur(this.code,t,r),this}get names(){return this.code instanceof R._CodeOrName?this.code.names:{}}};s(zo,"AnyCode");var jo=zo,Uo=class Uo extends Qe{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)||(Mg(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>kt(t,r.names),{})}};s(Uo,"ParentNode");var en=Uo,Bo=class Bo extends en{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Bo,"BlockNode");var et=Bo,Ho=class Ho extends en{};s(Ho,"Root");var Ao=Ho,Go=class Go extends et{};s(Go,"Else");var cr=Go;cr.kind="else";var ar=class ar extends et{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 cr(n):n}if(r)return t===!1?r instanceof ar?r:r.nodes:this.nodes.length?this:new ar(Ru(t),r instanceof ar?[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=ur(this.condition,t,r),this}get names(){let t=super.names;return si(t,this.condition),this.else&&kt(t,this.else.names),t}};s(ar,"If");var Rt=ar;Rt.kind="if";var Zo=class Zo extends et{};s(Zo,"For");var Nt=Zo;Nt.kind="for";var Ko=class Ko extends Nt{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=ur(this.iteration,t,r),this}get names(){return kt(super.names,this.iteration.names)}};s(Ko,"ForLoop");var qo=Ko,Wo=class Wo extends Nt{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Oe.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=si(super.names,this.from);return si(t,this.to)}};s(Wo,"ForRange");var Io=Wo,Yo=class Yo extends Nt{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=ur(this.iterable,t,r),this}get names(){return kt(super.names,this.iterable.names)}};s(Yo,"ForIter");var oi=Yo,Jo=class Jo extends et{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(Jo,"Func");var tn=Jo;tn.kind="func";var Xo=class Xo extends en{render(t){return"return "+super.render(t)}};s(Xo,"Return");var rn=Xo;rn.kind="return";var Qo=class Qo extends et{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&&kt(t,this.catch.names),this.finally&&kt(t,this.finally.names),t}};s(Qo,"Try");var To=Qo,es=class es extends et{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(es,"Catch");var nn=es;nn.kind="catch";var ts=class ts extends et{render(t){return"finally"+super.render(t)}};s(ts,"Finally");var on=ts;on.kind="finally";var rs=class rs{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new Oe.Scope({parent:t}),this._nodes=[new Ao]}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 So(t,o,n)),o}const(t,r,n){return this._def(Oe.varKinds.const,t,r,n)}let(t,r,n){return this._def(Oe.varKinds.let,t,r,n)}var(t,r,n){return this._def(Oe.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ii(t,r,n))}add(t,r){return this._leafNode(new xo(t,A.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==R.nil&&this._leafNode(new jo(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,R.addCodeArg)(r,i));return r.push("}"),new R._Code(r)}if(t,r,n){if(this._blockNode(new Rt(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 Rt(t))}else(){return this._elseNode(new cr)}endIf(){return this._endBlockNode(Rt,cr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new qo(t),r)}forRange(t,r,n,i,o=this.opts.es5?Oe.varKinds.var:Oe.varKinds.let){let a=this._scope.toName(t);return this._for(new Io(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Oe.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof R.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,R._)`${a}.length`,c=>{this.var(o,(0,R._)`${a}[${c}]`),n(o)})}return this._for(new oi("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Oe.varKinds.var:Oe.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,R._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new oi("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Nt)}label(t){return this._leafNode(new wo(t))}break(t){return this._leafNode(new Oo(t))}return(t){let r=new rn;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(rn)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new To;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new nn(o),r(o)}return n&&(this._currNode=i.finally=new on,this.code(n)),this._endBlockNode(nn,on)}throw(t){return this._leafNode(new Eo(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=R.nil,n,i){return this._blockNode(new tn(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(tn)}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 Rt))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(rs,"CodeGen");var Ro=rs;A.CodeGen=Ro;function kt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(kt,"addNames");function si(e,t){return t instanceof R._CodeOrName?kt(e,t.names):e}s(si,"addExprNames");function ur(e,t,r){if(e instanceof R.Name)return n(e);if(!i(e))return e;return new R._Code(e._items.reduce((o,a)=>(a instanceof R.Name&&(a=n(a)),a instanceof R._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 R._Code&&o._items.some(a=>a instanceof R.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(ur,"optimizeExpr");function Mg(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(Mg,"subtractNames");function Ru(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,R._)`!${No(e)}`}s(Ru,"not");A.not=Ru;var Dg=Nu(A.operators.AND);function Fg(...e){return e.reduce(Dg)}s(Fg,"and");A.and=Fg;var Vg=Nu(A.operators.OR);function Lg(...e){return e.reduce(Vg)}s(Lg,"or");A.or=Lg;function Nu(e){return(t,r)=>t===R.nil?r:r===R.nil?t:(0,R._)`${No(t)} ${e} ${No(r)}`}s(Nu,"mappend");function No(e){return e instanceof R.Name?e:(0,R._)`(${e})`}s(No,"par")});var I=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.checkStrictMode=q.getErrorPath=q.Type=q.useFunc=q.setEvaluated=q.evaluatedPropsToName=q.mergeEvaluated=q.eachItem=q.unescapeJsonPointer=q.escapeJsonPointer=q.escapeFragment=q.unescapeFragment=q.schemaRefOrVal=q.schemaHasRulesButRef=q.schemaHasRules=q.checkUnknownRules=q.alwaysValidSchema=q.toHash=void 0;var D=O(),zg=Qr();function Ug(e){let t={};for(let r of e)t[r]=!0;return t}s(Ug,"toHash");q.toHash=Ug;function Bg(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Mu(e,t),!Du(t,e.self.RULES.all))}s(Bg,"alwaysValidSchema");q.alwaysValidSchema=Bg;function Mu(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]||Lu(e,`unknown keyword: "${o}"`)}s(Mu,"checkUnknownRules");q.checkUnknownRules=Mu;function Du(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(Du,"schemaHasRules");q.schemaHasRules=Du;function Hg(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(Hg,"schemaHasRulesButRef");q.schemaHasRulesButRef=Hg;function Gg({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,D._)`${r}`}return(0,D._)`${e}${t}${(0,D.getProperty)(n)}`}s(Gg,"schemaRefOrVal");q.schemaRefOrVal=Gg;function Zg(e){return Fu(decodeURIComponent(e))}s(Zg,"unescapeFragment");q.unescapeFragment=Zg;function Kg(e){return encodeURIComponent(is(e))}s(Kg,"escapeFragment");q.escapeFragment=Kg;function is(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(is,"escapeJsonPointer");q.escapeJsonPointer=is;function Fu(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Fu,"unescapeJsonPointer");q.unescapeJsonPointer=Fu;function Wg(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(Wg,"eachItem");q.eachItem=Wg;function ku({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof D.Name?(o instanceof D.Name?e(i,o,a):t(i,o,a),a):o instanceof D.Name?(t(i,a,o),o):r(o,a);return c===D.Name&&!(u instanceof D.Name)?n(i,u):u}}s(ku,"makeMergeEvaluated");q.mergeEvaluated={props:ku({mergeNames:s((e,t,r)=>e.if((0,D._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,D._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,D._)`${r} || {}`).code((0,D._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,D._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,D._)`${r} || {}`),os(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Vu}),items:ku({mergeNames:s((e,t,r)=>e.if((0,D._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,D._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,D._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,D._)`${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 Vu(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,D._)`{}`);return t!==void 0&&os(e,r,t),r}s(Vu,"evaluatedPropsToName");q.evaluatedPropsToName=Vu;function os(e,t,r){Object.keys(r).forEach(n=>e.assign((0,D._)`${t}${(0,D.getProperty)(n)}`,!0))}s(os,"setEvaluated");q.setEvaluated=os;var Cu={};function Yg(e,t){return e.scopeValue("func",{ref:t,code:Cu[t.code]||(Cu[t.code]=new zg._Code(t.code))})}s(Yg,"useFunc");q.useFunc=Yg;var ns;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ns||(q.Type=ns={}));function Jg(e,t,r){if(e instanceof D.Name){let n=t===ns.Num;return r?n?(0,D._)`"[" + ${e} + "]"`:(0,D._)`"['" + ${e} + "']"`:n?(0,D._)`"/" + ${e}`:(0,D._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,D.getProperty)(e).toString():"/"+is(e)}s(Jg,"getErrorPath");q.getErrorPath=Jg;function Lu(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(Lu,"checkStrictMode");q.checkStrictMode=Lu});var ve=h(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var ee=O(),Xg={data:new ee.Name("data"),valCxt:new ee.Name("valCxt"),instancePath:new ee.Name("instancePath"),parentData:new ee.Name("parentData"),parentDataProperty:new ee.Name("parentDataProperty"),rootData:new ee.Name("rootData"),dynamicAnchors:new ee.Name("dynamicAnchors"),vErrors:new ee.Name("vErrors"),errors:new ee.Name("errors"),this:new ee.Name("this"),self:new ee.Name("self"),scope:new ee.Name("scope"),json:new ee.Name("json"),jsonPos:new ee.Name("jsonPos"),jsonLen:new ee.Name("jsonLen"),jsonPart:new ee.Name("jsonPart")};ss.default=Xg});var sn=h(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.extendErrors=te.resetErrorsCount=te.reportExtraError=te.reportError=te.keyword$DataError=te.keywordError=void 0;var N=O(),ci=I(),se=ve();te.keywordError={message:s(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};te.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function Qg(e,t=te.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Bu(e,t,r);n??(a||c)?zu(o,u):Uu(i,(0,N._)`[${u}]`)}s(Qg,"reportError");te.reportError=Qg;function e$(e,t=te.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Bu(e,t,r);zu(i,c),o||a||Uu(n,se.default.vErrors)}s(e$,"reportExtraError");te.reportExtraError=e$;function t$(e,t){e.assign(se.default.errors,t),e.if((0,N._)`${se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${se.default.vErrors}.length`,t),()=>e.assign(se.default.vErrors,null)))}s(t$,"resetErrorsCount");te.resetErrorsCount=t$;function r$({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,se.default.errors,c=>{e.const(a,(0,N._)`${se.default.vErrors}[${c}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(se.default.instancePath,o.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}s(r$,"extendErrors");te.extendErrors=r$;function zu(e,t){let r=e.const("err",t);e.if((0,N._)`${se.default.vErrors} === null`,()=>e.assign(se.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${se.default.vErrors}.push(${r})`),e.code((0,N._)`${se.default.errors}++`)}s(zu,"addError");function Uu(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}s(Uu,"returnErrors");var Ct={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 Bu(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:n$(e,t,r)}s(Bu,"errorObjectCode");function n$(e,t,r={}){let{gen:n,it:i}=e,o=[i$(i,r),o$(e,r)];return s$(e,t,o),n.object(...o)}s(n$,"errorObject");function i$({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,ci.getErrorPath)(t,ci.Type.Str)}`:e;return[se.default.instancePath,(0,N.strConcat)(se.default.instancePath,r)]}s(i$,"errorInstancePath");function o$({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,ci.getErrorPath)(r,ci.Type.Str)}`),[Ct.schemaPath,i]}s(o$,"errorSchemaPath");function s$(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:f,topSchemaRef:l,schemaPath:d}=c;n.push([Ct.keyword,i],[Ct.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),u.messages&&n.push([Ct.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ct.schema,a],[Ct.parentSchema,(0,N._)`${l}${d}`],[se.default.data,o]),f&&n.push([Ct.propertyName,f])}s(s$,"extraErrorProps")});var Gu=h(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.boolOrEmptySchema=fr.topBoolOrEmptySchema=void 0;var a$=sn(),c$=O(),u$=ve(),f$={message:"boolean schema is false"};function l$(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Hu(e,!1):typeof r=="object"&&r.$async===!0?t.return(u$.default.data):(t.assign((0,c$._)`${n}.errors`,null),t.return(!0))}s(l$,"topBoolOrEmptySchema");fr.topBoolOrEmptySchema=l$;function d$(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Hu(e)):r.var(t,!0)}s(d$,"boolOrEmptySchema");fr.boolOrEmptySchema=d$;function Hu(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,a$.reportError)(i,f$,void 0,t)}s(Hu,"falseSchemaError")});var as=h(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.getRules=lr.isJSONType=void 0;var p$=["string","number","integer","boolean","null","object","array"],m$=new Set(p$);function h$(e){return typeof e=="string"&&m$.has(e)}s(h$,"isJSONType");lr.isJSONType=h$;function y$(){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(y$,"getRules");lr.getRules=y$});var cs=h(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.shouldUseRule=at.shouldUseGroup=at.schemaHasRulesForType=void 0;function g$({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Zu(e,n)}s(g$,"schemaHasRulesForType");at.schemaHasRulesForType=g$;function Zu(e,t){return t.rules.some(r=>Ku(e,r))}s(Zu,"shouldUseGroup");at.shouldUseGroup=Zu;function Ku(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(Ku,"shouldUseRule");at.shouldUseRule=Ku});var an=h(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.reportTypeError=re.checkDataTypes=re.checkDataType=re.coerceAndCheckDataType=re.getJSONTypes=re.getSchemaTypes=re.DataType=void 0;var $$=as(),v$=cs(),b$=sn(),E=O(),Wu=I(),dr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(dr||(re.DataType=dr={}));function _$(e){let t=Yu(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(_$,"getSchemaTypes");re.getSchemaTypes=_$;function Yu(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every($$.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(Yu,"getJSONTypes");re.getJSONTypes=Yu;function P$(e,t){let{gen:r,data:n,opts:i}=e,o=S$(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,v$.schemaHasRulesForType)(e,t[0]));if(a){let c=fs(t,n,i.strictNumbers,dr.Wrong);r.if(c,()=>{o.length?x$(e,t,o):ls(e)})}return a}s(P$,"coerceAndCheckDataType");re.coerceAndCheckDataType=P$;var Ju=new Set(["string","number","integer","boolean","null"]);function S$(e,t){return t?e.filter(r=>Ju.has(r)||t==="array"&&r==="array"):[]}s(S$,"coerceToTypes");function x$(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(fs(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,E._)`${c} !== undefined`);for(let f of r)(Ju.has(f)||f==="array"&&o.coerceTypes==="array")&&u(f);n.else(),ls(e),n.endIf(),n.if((0,E._)`${c} !== undefined`,()=>{n.assign(i,c),w$(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(x$,"coerceData");function w$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(w$,"assignParentData");function us(e,t,r,n=dr.Correct){let i=n===dr.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===dr.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(us,"checkDataType");re.checkDataType=us;function fs(e,t,r,n){if(e.length===1)return us(e[0],t,r,n);let i,o=(0,Wu.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,us(a,t,r,n));return i}s(fs,"checkDataTypes");re.checkDataTypes=fs;var O$={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 ls(e){let t=E$(e);(0,b$.reportError)(t,O$)}s(ls,"reportTypeError");re.reportTypeError=ls;function E$(e){let{gen:t,data:r,schema:n}=e,i=(0,Wu.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(E$,"getTypeErrorContext")});var Qu=h(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.assignDefaults=void 0;var pr=O(),j$=I();function A$(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Xu(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Xu(e,o,i.default))}s(A$,"assignDefaults");ui.assignDefaults=A$;function Xu(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,pr._)`${o}${(0,pr.getProperty)(t)}`;if(i){(0,j$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,pr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,pr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,pr._)`${c} = ${(0,pr.stringify)(r)}`)}s(Xu,"assignDefault")});var be=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.validateUnion=M.validateArray=M.usePattern=M.callValidateCode=M.schemaProperties=M.allSchemaProperties=M.noPropertyInData=M.propertyInData=M.isOwnProperty=M.hasPropFunc=M.reportMissingProp=M.checkMissingProp=M.checkReportMissingProp=void 0;var F=O(),ds=I(),ct=ve(),q$=I();function I$(e,t){let{gen:r,data:n,it:i}=e;r.if(ms(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,F._)`${t}`},!0),e.error()})}s(I$,"checkReportMissingProp");M.checkReportMissingProp=I$;function T$({gen:e,data:t,it:{opts:r}},n,i){return(0,F.or)(...n.map(o=>(0,F.and)(ms(e,t,o,r.ownProperties),(0,F._)`${i} = ${o}`)))}s(T$,"checkMissingProp");M.checkMissingProp=T$;function R$(e,t){e.setParams({missingProperty:t},!0),e.error()}s(R$,"reportMissingProp");M.reportMissingProp=R$;function ef(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,F._)`Object.prototype.hasOwnProperty`})}s(ef,"hasPropFunc");M.hasPropFunc=ef;function ps(e,t,r){return(0,F._)`${ef(e)}.call(${t}, ${r})`}s(ps,"isOwnProperty");M.isOwnProperty=ps;function N$(e,t,r,n){let i=(0,F._)`${t}${(0,F.getProperty)(r)} !== undefined`;return n?(0,F._)`${i} && ${ps(e,t,r)}`:i}s(N$,"propertyInData");M.propertyInData=N$;function ms(e,t,r,n){let i=(0,F._)`${t}${(0,F.getProperty)(r)} === undefined`;return n?(0,F.or)(i,(0,F.not)(ps(e,t,r))):i}s(ms,"noPropertyInData");M.noPropertyInData=ms;function tf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(tf,"allSchemaProperties");M.allSchemaProperties=tf;function k$(e,t){return tf(t).filter(r=>!(0,ds.alwaysValidSchema)(e,t[r]))}s(k$,"schemaProperties");M.schemaProperties=k$;function C$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,f){let l=f?(0,F._)`${e}, ${t}, ${n}${i}`:t,d=[[ct.default.instancePath,(0,F.strConcat)(ct.default.instancePath,o)],[ct.default.parentData,a.parentData],[ct.default.parentDataProperty,a.parentDataProperty],[ct.default.rootData,ct.default.rootData]];a.opts.dynamicRef&&d.push([ct.default.dynamicAnchors,ct.default.dynamicAnchors]);let p=(0,F._)`${l}, ${r.object(...d)}`;return u!==F.nil?(0,F._)`${c}.call(${u}, ${p})`:(0,F._)`${c}(${p})`}s(C$,"callValidateCode");M.callValidateCode=C$;var M$=(0,F._)`new RegExp`;function D$({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,F._)`${i.code==="new RegExp"?M$:(0,q$.useFunc)(e,i)}(${r}, ${n})`})}s(D$,"usePattern");M.usePattern=D$;function F$(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,F._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:ds.Type.Num},o),t.if((0,F.not)(o),c)})}s(a,"validateItems")}s(F$,"validateArray");M.validateArray=F$;function V$(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,ds.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,F._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,F.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(V$,"validateUnion");M.validateUnion=V$});var of=h(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.validateKeywordUsage=De.validSchemaType=De.funcKeywordCode=De.macroKeywordCode=void 0;var ae=O(),Mt=ve(),L$=be(),z$=sn();function U$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=nf(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let f=r.name("valid");e.subschema({schema:c,schemaPath:ae.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}s(U$,"macroKeywordCode");De.macroKeywordCode=U$;function B$(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;G$(u,t);let f=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=nf(n,i,f),d=n.let("valid");e.block$data(d,p),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function p(){if(t.errors===!1)$(),t.modifying&&rf(e),g(()=>e.error());else{let v=t.async?m():y();t.modifying&&rf(e),g(()=>H$(e,v))}}s(p,"validateKeyword");function m(){let v=n.let("ruleErrs",null);return n.try(()=>$((0,ae._)`await `),P=>n.assign(d,!1).if((0,ae._)`${P} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,ae._)`${P}.errors`),()=>n.throw(P))),v}s(m,"validateAsync");function y(){let v=(0,ae._)`${l}.errors`;return n.assign(v,null),$(ae.nil),v}s(y,"validateSync");function $(v=t.async?(0,ae._)`await `:ae.nil){let P=u.opts.passContext?Mt.default.this:Mt.default.self,x=!("compile"in t&&!c||t.schema===!1);n.assign(d,(0,ae._)`${v}${(0,L$.callValidateCode)(e,l,P,x)}`,t.modifying)}s($,"assignValid");function g(v){var P;n.if((0,ae.not)((P=t.valid)!==null&&P!==void 0?P:d),v)}s(g,"reportErrs")}s(B$,"funcKeywordCode");De.funcKeywordCode=B$;function rf(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ae._)`${n.parentData}[${n.parentDataProperty}]`))}s(rf,"modifyData");function H$(e,t){let{gen:r}=e;r.if((0,ae._)`Array.isArray(${t})`,()=>{r.assign(Mt.default.vErrors,(0,ae._)`${Mt.default.vErrors} === null ? ${t} : ${Mt.default.vErrors}.concat(${t})`).assign(Mt.default.errors,(0,ae._)`${Mt.default.vErrors}.length`),(0,z$.extendErrors)(e)},()=>e.error())}s(H$,"addErrs");function G$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(G$,"checkAsyncKeyword");function nf(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,ae.stringify)(r)})}s(nf,"useKeyword");function Z$(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(Z$,"validSchemaType");De.validSchemaType=Z$;function K$({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(K$,"validateKeywordUsage");De.validateKeywordUsage=K$});var af=h(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.extendSubschemaMode=ut.extendSubschemaData=ut.getSubschema=void 0;var Fe=O(),sf=I();function W$(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,Fe._)`${e.schemaPath}${(0,Fe.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Fe._)`${e.schemaPath}${(0,Fe.getProperty)(t)}${(0,Fe.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,sf.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(W$,"getSubschema");ut.getSubschema=W$;function Y$(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:d}=t,p=c.let("data",(0,Fe._)`${t.data}${(0,Fe.getProperty)(r)}`,!0);u(p),e.errorPath=(0,Fe.str)`${f}${(0,sf.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Fe._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Fe.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(Y$,"extendSubschemaData");ut.extendSubschemaData=Y$;function J$(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(J$,"extendSubschemaMode");ut.extendSubschemaMode=J$});var hs=h((dA,cf)=>{"use strict";cf.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 ff=h((mA,uf)=>{"use strict";var ft=uf.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(){};fi(t,n,i,e,"",e)};ft.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ft.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ft.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ft.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 fi(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 d=n[l];if(Array.isArray(d)){if(l in ft.arrayKeywords)for(var p=0;p<d.length;p++)fi(e,t,r,d[p],i+"/"+l+"/"+p,o,i,l,n,p)}else if(l in ft.propsKeywords){if(d&&typeof d=="object")for(var m in d)fi(e,t,r,d[m],i+"/"+l+"/"+X$(m),o,i,l,n,m)}else(l in ft.keywords||e.allKeys&&!(l in ft.skipKeywords))&&fi(e,t,r,d,i+"/"+l,o,i,l,n)}r(n,i,o,a,c,u,f)}}s(fi,"_traverse");function X$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(X$,"escapeJsonPtr")});var cn=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.getSchemaRefs=de.resolveUrl=de.normalizeId=de._getFullPath=de.getFullPath=de.inlineRef=void 0;var Q$=I(),e0=hs(),t0=ff(),r0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n0(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ys(e):t?lf(e)<=t:!1}s(n0,"inlineRef");de.inlineRef=n0;var i0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ys(e){for(let t in e){if(i0.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ys)||typeof r=="object"&&ys(r))return!0}return!1}s(ys,"hasRef");function lf(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!r0.has(r)&&(typeof e[r]=="object"&&(0,Q$.eachItem)(e[r],n=>t+=lf(n)),t===1/0))return 1/0}return t}s(lf,"countKeys");function df(e,t="",r){r!==!1&&(t=mr(t));let n=e.parse(t);return pf(e,n)}s(df,"getFullPath");de.getFullPath=df;function pf(e,t){return e.serialize(t).split("#")[0]+"#"}s(pf,"_getFullPath");de._getFullPath=pf;var o0=/#\/?$/;function mr(e){return e?e.replace(o0,""):""}s(mr,"normalizeId");de.normalizeId=mr;function s0(e,t,r){return r=mr(r),e.resolve(t,r)}s(s0,"resolveUrl");de.resolveUrl=s0;var a0=/^[a-z_][-a-z0-9._]*$/i;function c0(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=mr(e[r]||t),o={"":i},a=df(n,i,!1),c={},u=new Set;return t0(e,{allKeys:!0},(d,p,m,y)=>{if(y===void 0)return;let $=a+p,g=o[y];typeof d[r]=="string"&&(g=v.call(this,d[r])),P.call(this,d.$anchor),P.call(this,d.$dynamicAnchor),o[p]=g;function v(x){let j=this.opts.uriResolver.resolve;if(x=mr(g?j(g,x):x),u.has(x))throw l(x);u.add(x);let _=this.refs[x];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?f(d,_.schema,x):x!==mr($)&&(x[0]==="#"?(f(d,c[x],x),c[x]=d):this.refs[x]=$),x}s(v,"addRef");function P(x){if(typeof x=="string"){if(!a0.test(x))throw new Error(`invalid anchor "${x}"`);v.call(this,`#${x}`)}}s(P,"addAnchor")}),c;function f(d,p,m){if(p!==void 0&&!e0(d,p))throw l(m)}s(f,"checkAmbiguosRef");function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}s(l,"ambiguos")}s(c0,"getSchemaRefs");de.getSchemaRefs=c0});var ln=h(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.getData=lt.KeywordCxt=lt.validateFunctionCode=void 0;var $f=Gu(),mf=an(),$s=cs(),li=an(),u0=Qu(),fn=of(),gs=af(),b=O(),w=ve(),f0=cn(),tt=I(),un=sn();function l0(e){if(_f(e)&&(Pf(e),bf(e))){m0(e);return}vf(e,()=>(0,$f.topBoolOrEmptySchema)(e))}s(l0,"validateFunctionCode");lt.validateFunctionCode=l0;function vf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,b._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,b._)`"use strict"; ${hf(r,i)}`),p0(e,i),e.code(o)}):e.func(t,(0,b._)`${w.default.data}, ${d0(i)}`,n.$async,()=>e.code(hf(r,i)).code(o))}s(vf,"validateFunction");function d0(e){return(0,b._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,b._)`, ${w.default.dynamicAnchors}={}`:b.nil}}={}`}s(d0,"destructureValCxt");function p0(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,b._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,b._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,b._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,b._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,b._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,b._)`""`),e.var(w.default.parentData,(0,b._)`undefined`),e.var(w.default.parentDataProperty,(0,b._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,b._)`{}`)})}s(p0,"destructureValCxtES5");function m0(e){let{schema:t,opts:r,gen:n}=e;vf(e,()=>{r.$comment&&t.$comment&&xf(e),v0(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&h0(e),Sf(e),P0(e)})}s(m0,"topSchemaObjCode");function h0(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,b._)`${r}.evaluated`),t.if((0,b._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,b._)`${e.evaluated}.props`,(0,b._)`undefined`)),t.if((0,b._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,b._)`${e.evaluated}.items`,(0,b._)`undefined`))}s(h0,"resetEvaluated");function hf(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,b._)`/*# sourceURL=${r} */`:b.nil}s(hf,"funcSourceUrl");function y0(e,t){if(_f(e)&&(Pf(e),bf(e))){g0(e,t);return}(0,$f.boolOrEmptySchema)(e,t)}s(y0,"subschemaCode");function bf({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(bf,"schemaCxtHasRules");function _f(e){return typeof e.schema!="boolean"}s(_f,"isSchemaObj");function g0(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&xf(e),b0(e),_0(e);let o=n.const("_errs",w.default.errors);Sf(e,o),n.var(t,(0,b._)`${o} === ${w.default.errors}`)}s(g0,"subSchemaObjCode");function Pf(e){(0,tt.checkUnknownRules)(e),$0(e)}s(Pf,"checkKeywords");function Sf(e,t){if(e.opts.jtd)return yf(e,[],!1,t);let r=(0,mf.getSchemaTypes)(e.schema),n=(0,mf.coerceAndCheckDataType)(e,r);yf(e,r,!n,t)}s(Sf,"typeAndKeywords");function $0(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,tt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s($0,"checkRefsAndKeywords");function v0(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,tt.checkStrictMode)(e,"default is ignored in the schema root")}s(v0,"checkNoDefault");function b0(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f0.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(b0,"updateContext");function _0(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(_0,"checkAsyncSchema");function xf({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,b._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,b.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,b._)`${w.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(xf,"commentKeyword");function P0(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,b._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,b._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,b._)`${n}.errors`,w.default.vErrors),o.unevaluated&&S0(e),t.return((0,b._)`${w.default.errors} === 0`))}s(P0,"returnResults");function S0({gen:e,evaluated:t,props:r,items:n}){r instanceof b.Name&&e.assign((0,b._)`${t}.props`,r),n instanceof b.Name&&e.assign((0,b._)`${t}.items`,n)}s(S0,"assignEvaluated");function yf(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,tt.schemaHasRulesButRef)(o,l))){i.block(()=>Of(e,"$ref",l.all.$ref.definition));return}u.jtd||x0(e,t),i.block(()=>{for(let p of l.rules)d(p);d(l.post)});function d(p){(0,$s.shouldUseGroup)(o,p)&&(p.type?(i.if((0,li.checkDataType)(p.type,a,u.strictNumbers)),gf(e,p),t.length===1&&t[0]===p.type&&r&&(i.else(),(0,li.reportTypeError)(e)),i.endIf()):gf(e,p),c||i.if((0,b._)`${w.default.errors} === ${n||0}`))}s(d,"groupKeywords")}s(yf,"schemaKeywords");function gf(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,u0.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,$s.shouldUseRule)(n,o)&&Of(e,o.keyword,o.definition,t.type)})}s(gf,"iterateKeywords");function x0(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(w0(e,t),e.opts.allowUnionTypes||O0(e,t),E0(e,e.dataTypes))}s(x0,"checkStrictTypes");function w0(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{wf(e.dataTypes,r)||vs(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),A0(e,t)}}s(w0,"checkContextTypes");function O0(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&vs(e,"use allowUnionTypes to allow union type keyword")}s(O0,"checkMultipleTypes");function E0(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,$s.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>j0(t,a))&&vs(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(E0,"checkKeywordTypes");function j0(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(j0,"hasApplicableType");function wf(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(wf,"includesType");function A0(e,t){let r=[];for(let n of e.dataTypes)wf(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(A0,"narrowSchemaTypes");function vs(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,tt.checkStrictMode)(e,t,e.opts.strictTypes)}s(vs,"strictTypesError");var bs=class bs{constructor(t,r,n){if((0,fn.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,tt.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",Ef(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fn.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,b.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,b.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,b._)`${r} !== undefined && (${(0,b.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?un.reportExtraError:un.reportError)(this,this.def.error,r)}$dataError(){(0,un.reportError)(this,this.def.$dataError||un.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,un.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=b.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=b.nil,r=b.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,b.or)((0,b._)`${i} === undefined`,r)),t!==b.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==b.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,b.or)(a(),c());function a(){if(n.length){if(!(r instanceof b.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,b._)`${(0,li.checkDataTypes)(u,r,o.opts.strictNumbers,li.DataType.Wrong)}`}return b.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,b._)`!${u}(${r})`}return b.nil}}subschema(t,r){let n=(0,gs.getSubschema)(this.it,t);(0,gs.extendSubschemaData)(n,this.it,t),(0,gs.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return y0(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=tt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=tt.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,b.Name)),!0}};s(bs,"KeywordCxt");var di=bs;lt.KeywordCxt=di;function Of(e,t,r,n){let i=new di(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,fn.funcKeywordCode)(i,r):"macro"in r?(0,fn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,fn.funcKeywordCode)(i,r)}s(Of,"keywordCode");var q0=/^\/(?:[^~]|~0|~1)*$/,I0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ef(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!q0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let f=I0.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,b._)`${o}${(0,b.getProperty)((0,tt.unescapeJsonPointer)(f))}`,a=(0,b._)`${a} && ${o}`);return a;function u(f,l){return`Cannot access ${f} ${l} levels up, current level is ${t}`}}s(Ef,"getData");lt.getData=Ef});var pi=h(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var Ss=class Ss extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ss,"ValidationError");var _s=Ss;Ps.default=_s});var dn=h(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var xs=cn(),Es=class Es extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,xs.resolveUrl)(t,r,n),this.missingSchema=(0,xs.normalizeId)((0,xs.getFullPath)(t,this.missingRef))}};s(Es,"MissingRefError");var ws=Es;Os.default=ws});var pn=h(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.resolveSchema=_e.getCompilingSchema=_e.resolveRef=_e.compileSchema=_e.SchemaEnv=void 0;var Ee=O(),T0=pi(),Dt=ve(),je=cn(),jf=I(),R0=ln(),qs=class qs{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,je.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(qs,"SchemaEnv");var hr=qs;_e.SchemaEnv=hr;function As(e){let t=Af.call(this,e);if(t)return t;let r=(0,je.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ee.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:T0.default,code:(0,Ee._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let f={gen:a,allErrors:this.opts.allErrors,data:Dt.default.data,parentData:Dt.default.parentData,parentDataProperty:Dt.default.parentDataProperty,dataNames:[Dt.default.data],dataPathArr:[Ee.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ee.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ee.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ee._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,R0.validateFunctionCode)(f),a.optimize(this.opts.code.optimize);let d=a.toString();l=`${a.scopeRefs(Dt.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${Dt.default.self}`,`${Dt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:d,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:$}=f;m.evaluated={props:y instanceof Ee.Name?void 0:y,items:$ instanceof Ee.Name?void 0:$,dynamicProps:y instanceof Ee.Name,dynamicItems:$ instanceof Ee.Name},m.source&&(m.source.evaluated=(0,Ee.stringify)(m.evaluated))}return e.validate=m,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}s(As,"compileSchema");_e.compileSchema=As;function N0(e,t,r){var n;r=(0,je.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=M0.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 hr({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=k0.call(this,o)}s(N0,"resolveRef");_e.resolveRef=N0;function k0(e){return(0,je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:As.call(this,e)}s(k0,"inlineOrCompile");function Af(e){for(let t of this._compilations)if(C0(t,e))return t}s(Af,"getCompilingSchema");_e.getCompilingSchema=Af;function C0(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(C0,"sameSchemaEnv");function M0(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||mi.call(this,e,t)}s(M0,"resolve");function mi(e,t){let r=this.opts.uriResolver.parse(t),n=(0,je._getFullPath)(this.opts.uriResolver,r),i=(0,je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return js.call(this,r,e);let o=(0,je.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=mi.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:js.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||As.call(this,a),o===(0,je.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,f=c[u];return f&&(i=(0,je.resolveUrl)(this.opts.uriResolver,i,f)),new hr({schema:c,schemaId:u,root:e,baseId:i})}return js.call(this,r,a)}}s(mi,"resolveSchema");_e.resolveSchema=mi;var D0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function js(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,jf.unescapeFragment)(c)];if(u===void 0)return;r=u;let f=typeof r=="object"&&r[this.opts.schemaId];!D0.has(c)&&f&&(t=(0,je.resolveUrl)(this.opts.uriResolver,t,f))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,jf.schemaHasRulesButRef)(r,this.RULES)){let c=(0,je.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=mi.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new hr({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(js,"getJsonPointer")});var qf=h((OA,F0)=>{F0.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 Tf=h((EA,If)=>{"use strict";var V0={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};If.exports={HEX:V0}});var Vf=h((jA,Ff)=>{"use strict";var{HEX:L0}=Tf();function Cf(e){if(Df(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:U0(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Cf,"normalizeIPv4");function Is(e,t=!1){let r="",n=!0;for(let i of e){if(L0[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Is,"stringArrayToHexStripped");function z0(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=Is(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(Is(i))),r.address=n.join(""),r}s(z0,"getIPV6");function Mf(e,t={}){if(Df(e,":")<2)return{host:e,isIPV6:!1};let r=z0(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(Mf,"normalizeIPv6");function U0(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(U0,"stripLeadingZeros");function Df(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Df,"findToken");var Rf=/^\.\.?\//u,Nf=/^\/\.(?:\/|$)/u,kf=/^\/\.\.(?:\/|$)/u,B0=/^\/?(?:.|\n)*?(?=\/|$)/u;function H0(e){let t=[];for(;e.length;)if(e.match(Rf))e=e.replace(Rf,"");else if(e.match(Nf))e=e.replace(Nf,"/");else if(e.match(kf))e=e.replace(kf,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(B0);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(H0,"removeDotSegments");function G0(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(G0,"normalizeComponentEncoding");function Z0(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=Cf(n);if(i.isIPV4)n=i.host;else{let o=Mf(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(Z0,"recomposeAuthority");Ff.exports={recomposeAuthority:Z0,normalizeComponentEncoding:G0,removeDotSegments:H0,normalizeIPv4:Cf,normalizeIPv6:Mf,stringArrayToHexStripped:Is}});var Gf=h((qA,Hf)=>{"use strict";var K0=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,W0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Lf(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(Lf,"isSecure");function zf(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(zf,"httpParse");function Uf(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(Uf,"httpSerialize");function Y0(e){return e.secure=Lf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Y0,"wsParse");function J0(e){if((e.port===(Lf(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(J0,"wsSerialize");function X0(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(W0);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=Ts[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(X0,"urnParse");function Q0(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Ts[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(Q0,"urnSerialize");function ev(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!K0.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(ev,"urnuuidParse");function tv(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(tv,"urnuuidSerialize");var Bf={scheme:"http",domainHost:!0,parse:zf,serialize:Uf},rv={scheme:"https",domainHost:Bf.domainHost,parse:zf,serialize:Uf},hi={scheme:"ws",domainHost:!0,parse:Y0,serialize:J0},nv={scheme:"wss",domainHost:hi.domainHost,parse:hi.parse,serialize:hi.serialize},iv={scheme:"urn",parse:X0,serialize:Q0,skipNormalize:!0},ov={scheme:"urn:uuid",parse:ev,serialize:tv,skipNormalize:!0},Ts={http:Bf,https:rv,ws:hi,wss:nv,urn:iv,"urn:uuid":ov};Hf.exports=Ts});var Kf=h((TA,gi)=>{"use strict";var{normalizeIPv6:sv,normalizeIPv4:av,removeDotSegments:mn,recomposeAuthority:cv,normalizeComponentEncoding:yi}=Vf(),Rs=Gf();function uv(e,t){return typeof e=="string"?e=Ve(rt(e,t),t):typeof e=="object"&&(e=rt(Ve(e,t),t)),e}s(uv,"normalize");function fv(e,t,r){let n=Object.assign({scheme:"null"},r),i=Zf(rt(e,n),rt(t,n),n,!0);return Ve(i,{...n,skipEscape:!0})}s(fv,"resolve");function Zf(e,t,r,n){let i={};return n||(e=rt(Ve(e,r),r),t=rt(Ve(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=mn(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=mn(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=mn(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=mn(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(Zf,"resolveComponents");function lv(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ve(yi(rt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ve(yi(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ve(yi(rt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ve(yi(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(lv,"equal");function Ve(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=Rs[(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=cv(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=mn(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(Ve,"serialize");var dv=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function pv(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||dv[t])return!0;return!1}s(pv,"nonSimpleDomain");var mv=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function rt(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(mv);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=av(n.host);if(u.isIPV4===!1){let f=sv(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=Rs[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&pv(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(rt,"parse");var Ns={SCHEMES:Rs,normalize:uv,resolve:fv,resolveComponents:Zf,equal:lv,serialize:Ve,parse:rt};gi.exports=Ns;gi.exports.default=Ns;gi.exports.fastUri=Ns});var Yf=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Wf=Kf();Wf.code='require("ajv/dist/runtime/uri").default';ks.default=Wf});var gr=h(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CodeGen=X.Name=X.nil=X.stringify=X.str=X._=X.KeywordCxt=void 0;var hv=ln();Object.defineProperty(X,"KeywordCxt",{enumerable:!0,get:s(function(){return hv.KeywordCxt},"get")});var yr=O();Object.defineProperty(X,"_",{enumerable:!0,get:s(function(){return yr._},"get")});Object.defineProperty(X,"str",{enumerable:!0,get:s(function(){return yr.str},"get")});Object.defineProperty(X,"stringify",{enumerable:!0,get:s(function(){return yr.stringify},"get")});Object.defineProperty(X,"nil",{enumerable:!0,get:s(function(){return yr.nil},"get")});Object.defineProperty(X,"Name",{enumerable:!0,get:s(function(){return yr.Name},"get")});Object.defineProperty(X,"CodeGen",{enumerable:!0,get:s(function(){return yr.CodeGen},"get")});var yv=pi(),tl=dn(),gv=as(),hn=pn(),$v=O(),yn=cn(),$i=an(),Ms=I(),Jf=qf(),vv=Yf(),rl=s((e,t)=>new RegExp(e,t),"defaultRegExp");rl.code="new RegExp";var bv=["removeAdditional","useDefaults","coerceTypes"],_v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Pv={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."},Sv={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Xf=200;function xv(e){var t,r,n,i,o,a,c,u,f,l,d,p,m,y,$,g,v,P,x,j,_,Y,G,qt,ke;let he=e.strict,tr=(t=e.code)===null||t===void 0?void 0:t.optimize,rr=tr===!0||tr===void 0?1:tr||0,Hn=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:rl,Gn=(i=e.uriResolver)!==null&&i!==void 0?i:vv.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:he)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:he)!==null&&u!==void 0?u:!0,strictTypes:(l=(f=e.strictTypes)!==null&&f!==void 0?f:he)!==null&&l!==void 0?l:"log",strictTuples:(p=(d=e.strictTuples)!==null&&d!==void 0?d:he)!==null&&p!==void 0?p:"log",strictRequired:(y=(m=e.strictRequired)!==null&&m!==void 0?m:he)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:rr,regExp:Hn}:{optimize:rr,regExp:Hn},loopRequired:($=e.loopRequired)!==null&&$!==void 0?$:Xf,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Xf,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(P=e.messages)!==null&&P!==void 0?P:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(j=e.schemaId)!==null&&j!==void 0?j:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(Y=e.validateSchema)!==null&&Y!==void 0?Y:!0,validateFormats:(G=e.validateFormats)!==null&&G!==void 0?G:!0,unicodeRegExp:(qt=e.unicodeRegExp)!==null&&qt!==void 0?qt:!0,int32range:(ke=e.int32range)!==null&&ke!==void 0?ke:!0,uriResolver:Gn}}s(xv,"requiredOptions");var Ds=class Ds{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...xv(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new $v.ValueScope({scope:{},prefixes:_v,es5:r,lines:n}),this.logger=qv(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,gv.getRules)(),Qf.call(this,Pv,t,"NOT SUPPORTED"),Qf.call(this,Sv,t,"DEPRECATED","warn"),this._metaOpts=jv.call(this),t.formats&&Ov.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ev.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),wv.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Jf;n==="id"&&(i={...Jf},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,d){await o.call(this,l.$schema);let p=this._addSchema(l,d);return p.validate||a.call(this,p)}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(d){if(!(d instanceof tl.default))throw d;return c.call(this,d),await u.call(this,d.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function u(l){let d=await f.call(this,l);this.refs[l]||await o.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function f(l){let d=this._loading[l];if(d)return d;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,yn.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=el.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new hn.SchemaEnv({schema:{},schemaId:n});if(r=hn.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=el.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,yn.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(Tv.call(this,n,r),!r)return(0,Ms.eachItem)(n,o=>Cs.call(this,o)),this;Nv.call(this,r);let i={...r,type:(0,$i.getJSONTypes)(r.type),schemaType:(0,$i.getJSONTypes)(r.schemaType)};return(0,Ms.eachItem)(n,i.type.length===0?o=>Cs.call(this,o,i):o=>i.type.forEach(a=>Cs.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,yn.normalizeId)(a||n);let f=yn.getSchemaRefs.call(this,t,n);return u=new hn.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):hn.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{hn.compileSchema.call(this,t)}finally{this.opts=r}}};s(Ds,"Ajv");var gn=Ds;gn.ValidationError=yv.default;gn.MissingRefError=tl.default;X.default=gn;function Qf(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(Qf,"checkOptions");function el(e){return e=(0,yn.normalizeId)(e),this.schemas[e]||this.refs[e]}s(el,"getSchEnv");function wv(){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(wv,"addInitialSchemas");function Ov(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(Ov,"addInitialFormats");function Ev(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(Ev,"addInitialKeywords");function jv(){let e={...this.opts};for(let t of bv)delete e[t];return e}s(jv,"getMetaSchemaOptions");var Av={log(){},warn(){},error(){}};function qv(e){if(e===!1)return Av;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(qv,"getLogger");var Iv=/^[a-z_$][a-z0-9_$:-]*$/i;function Tv(e,t){let{RULES:r}=this;if((0,Ms.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Iv.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(Tv,"checkKeyword");function Cs(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,$i.getJSONTypes)(t.type),schemaType:(0,$i.getJSONTypes)(t.schemaType)}};t.before?Rv.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(Cs,"addRule");function Rv(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(Rv,"addBeforeRule");function Nv(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=nl(t)),e.validateSchema=this.compile(t,!0))}s(Nv,"keywordMetaschema");var kv={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function nl(e){return{anyOf:[e,kv]}}s(nl,"schemaOrData")});var $n=h(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.callRef=Ft.getValidate=void 0;var Cv=dn(),il=be(),pe=O(),$r=ve(),ol=pn(),vi=I(),Mv={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 d();let l=ol.resolveRef.call(u,f,i,r);if(l===void 0)throw new Cv.default(n.opts.uriResolver,i,r);if(l instanceof ol.SchemaEnv)return p(l);return m(l);function d(){if(o===f)return bi(e,a,o,o.$async);let y=t.scopeValue("root",{ref:f});return bi(e,(0,pe._)`${y}.validate`,f,f.$async)}function p(y){let $=sl(e,y);bi(e,$,y,y.$async)}function m(y){let $=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,pe.stringify)(y)}:{ref:y}),g=t.name("valid"),v=e.subschema({schema:y,dataTypes:[],schemaPath:pe.nil,topSchemaRef:$,errSchemaPath:r},g);e.mergeEvaluated(v),e.ok(g)}}};function sl(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,pe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(sl,"getValidate");Ft.getValidate=sl;function bi(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,f=u.passContext?$r.default.this:pe.nil;n?l():d();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,pe._)`await ${(0,il.callValidateCode)(e,t,f)}`),m(t),a||i.assign(y,!0)},$=>{i.if((0,pe._)`!(${$} instanceof ${o.ValidationError})`,()=>i.throw($)),p($),a||i.assign(y,!1)}),e.ok(y)}s(l,"callAsyncRef");function d(){e.result((0,il.callValidateCode)(e,t,f),()=>m(t),()=>p(t))}s(d,"callSyncRef");function p(y){let $=(0,pe._)`${y}.errors`;i.assign($r.default.vErrors,(0,pe._)`${$r.default.vErrors} === null ? ${$} : ${$r.default.vErrors}.concat(${$})`),i.assign($r.default.errors,(0,pe._)`${$r.default.vErrors}.length`)}s(p,"addErrorsFrom");function m(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=vi.mergeEvaluated.props(i,g.props,o.props));else{let v=i.var("props",(0,pe._)`${y}.evaluated.props`);o.props=vi.mergeEvaluated.props(i,v,o.props,pe.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=vi.mergeEvaluated.items(i,g.items,o.items));else{let v=i.var("items",(0,pe._)`${y}.evaluated.items`);o.items=vi.mergeEvaluated.items(i,v,o.items,pe.Name)}}s(m,"addEvaluatedFrom")}s(bi,"callRef");Ft.callRef=bi;Ft.default=Mv});var al=h(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var Dv=$n(),Fv=["$schema","id","$defs",{keyword:"$comment"},"definitions",Dv.default];Fs.default=Fv});var cl=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Vs=gr(),Vv=O(),dt=Vv.operators,Ls={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:dt.LTE,fail:dt.GT},{okStr:"<",ok:dt.LT,fail:dt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:dt.GTE,fail:dt.LT},{okStr:">",ok:dt.GT,fail:dt.LTE}]}},Lv={message:s(e=>Vs.str`must be ${zs(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Vs._`{comparison: ${zs(e).okStr}, limit: ${e.schemaCode}}`,"params")},zv={keyword:Object.keys(Ls),type:"number",schemaType:"number",$data:!0,error:Lv,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Vs._`${t} ${zs(e).fail} ${r} || isNaN(${t})`)}};function zs(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Ls[r].exclusive]?1:0;return Ls[r].ops[n]}s(zs,"kwdOp");Us.default=zv});var fl=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var ul={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Uv={keyword:Object.keys(ul),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=ul[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Bs.default=Uv});var Gs=h(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var vn=O(),Bv={message:s(({schemaCode:e})=>(0,vn.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,vn._)`{multipleOf: ${e}}`,"params")},Hv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Bv,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,vn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,vn._)`${a} !== parseInt(${a})`;e.fail$data((0,vn._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Hs.default=Hv});var dl=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});function ll(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(ll,"ucs2length");Zs.default=ll;ll.code='require("ajv/dist/runtime/ucs2length").default'});var Ws=h(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vt=O(),Gv=I(),Zv=dl(),Kv={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Vt.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Vt._)`{limit: ${e}}`,"params")},Wv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Kv,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Vt.operators.GT:Vt.operators.LT,a=i.opts.unicode===!1?(0,Vt._)`${r}.length`:(0,Vt._)`${(0,Gv.useFunc)(e.gen,Zv.default)}(${r})`;e.fail$data((0,Vt._)`${a} ${o} ${n}`)}};Ks.default=Wv});var Js=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var Yv=be(),_i=O(),Jv={message:s(({schemaCode:e})=>(0,_i.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,_i._)`{pattern: ${e}}`,"params")},Xv={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Jv,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,_i._)`(new RegExp(${i}, ${a}))`:(0,Yv.usePattern)(e,n);e.fail$data((0,_i._)`!${c}.test(${t})`)}};Ys.default=Xv});var Qs=h(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var bn=O(),Qv={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bn.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bn._)`{limit: ${e}}`,"params")},eb={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Qv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bn.operators.GT:bn.operators.LT;e.fail$data((0,bn._)`Object.keys(${r}).length ${i} ${n}`)}};Xs.default=eb});var ta=h(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var _n=be(),Pn=O(),tb=I(),rb={message:s(({params:{missingProperty:e}})=>(0,Pn.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Pn._)`{missingProperty: ${e}}`,"params")},nb={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rb,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 m=e.parentSchema.properties,{definedProperties:y}=e.it;for(let $ of r)if((m==null?void 0:m[$])===void 0&&!y.has($)){let g=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${$}" is not defined at "${g}" (strictRequired)`;(0,tb.checkStrictMode)(a,v,a.opts.strictRequired)}}function f(){if(u||o)e.block$data(Pn.nil,d);else for(let m of r)(0,_n.checkReportMissingProp)(e,m)}s(f,"allErrorsMode");function l(){let m=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>p(m,y)),e.ok(y)}else t.if((0,_n.checkMissingProp)(e,r,m)),(0,_n.reportMissingProp)(e,m),t.else()}s(l,"exitOnErrorMode");function d(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,_n.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}s(d,"loopAllRequired");function p(m,y){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(y,(0,_n.propertyInData)(t,i,m,c.ownProperties)),t.if((0,Pn.not)(y),()=>{e.error(),t.break()})},Pn.nil)}s(p,"loopUntilMissing")}};ea.default=nb});var na=h(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var Sn=O(),ib={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Sn.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Sn._)`{limit: ${e}}`,"params")},ob={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ib,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Sn.operators.GT:Sn.operators.LT;e.fail$data((0,Sn._)`${r}.length ${i} ${n}`)}};ra.default=ob});var Pi=h(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var pl=hs();pl.code='require("ajv/dist/runtime/equal").default';ia.default=pl});var aa=h(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var oa=an(),Q=O(),sb=I(),ab=Pi(),cb={message:s(({params:{i:e,j:t}})=>(0,Q.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,Q._)`{i: ${e}, j: ${t}}`,"params")},ub={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:cb,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,oa.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,Q._)`${a} === false`),e.ok(u);function l(){let y=t.let("i",(0,Q._)`${r}.length`),$=t.let("j");e.setParams({i:y,j:$}),t.assign(u,!0),t.if((0,Q._)`${y} > 1`,()=>(d()?p:m)(y,$))}s(l,"validateUniqueItems");function d(){return f.length>0&&!f.some(y=>y==="object"||y==="array")}s(d,"canOptimize");function p(y,$){let g=t.name("item"),v=(0,oa.checkDataTypes)(f,g,c.opts.strictNumbers,oa.DataType.Wrong),P=t.const("indices",(0,Q._)`{}`);t.for((0,Q._)`;${y}--;`,()=>{t.let(g,(0,Q._)`${r}[${y}]`),t.if(v,(0,Q._)`continue`),f.length>1&&t.if((0,Q._)`typeof ${g} == "string"`,(0,Q._)`${g} += "_"`),t.if((0,Q._)`typeof ${P}[${g}] == "number"`,()=>{t.assign($,(0,Q._)`${P}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Q._)`${P}[${g}] = ${y}`)})}s(p,"loopN");function m(y,$){let g=(0,sb.useFunc)(t,ab.default),v=t.name("outer");t.label(v).for((0,Q._)`;${y}--;`,()=>t.for((0,Q._)`${$} = ${y}; ${$}--;`,()=>t.if((0,Q._)`${g}(${r}[${y}], ${r}[${$}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}s(m,"loopN2")}};sa.default=ub});var fa=h(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var ca=O(),fb=I(),lb=Pi(),db={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,ca._)`{allowedValue: ${e}}`,"params")},pb={keyword:"const",$data:!0,error:db,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,ca._)`!${(0,fb.useFunc)(t,lb.default)}(${r}, ${i})`):e.fail((0,ca._)`${o} !== ${r}`)}};ua.default=pb});var da=h(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var xn=O(),mb=I(),hb=Pi(),yb={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,xn._)`{allowedValues: ${e}}`,"params")},gb={keyword:"enum",schemaType:"array",$data:!0,error:yb,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,mb.useFunc)(t,hb.default)),"getEql"),l;if(c||n)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",o);l=(0,xn.or)(...i.map((y,$)=>p(m,$)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",o,m=>t.if((0,xn._)`${f()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}s(d,"loopEnum");function p(m,y){let $=i[y];return typeof $=="object"&&$!==null?(0,xn._)`${f()}(${r}, ${m}[${y}])`:(0,xn._)`${r} === ${$}`}s(p,"equalCode")}};la.default=gb});var ml=h(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var $b=cl(),vb=fl(),bb=Gs(),_b=Ws(),Pb=Js(),Sb=Qs(),xb=ta(),wb=na(),Ob=aa(),Eb=fa(),jb=da(),Ab=[$b.default,vb.default,bb.default,_b.default,Pb.default,Sb.default,xb.default,wb.default,Ob.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Eb.default,jb.default];pa.default=Ab});var ha=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateAdditionalItems=void 0;var Lt=O(),ma=I(),qb={message:s(({params:{len:e}})=>(0,Lt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Lt._)`{limit: ${e}}`,"params")},Ib={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:qb,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ma.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,Lt._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Lt._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,ma.alwaysValidSchema)(a,n)){let f=r.var("valid",(0,Lt._)`${c} <= ${t.length}`);r.if((0,Lt.not)(f),()=>u(f)),e.ok(f)}function u(f){r.forRange("i",t.length,c,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:ma.Type.Num},f),a.allErrors||r.if((0,Lt.not)(f),()=>r.break())})}s(u,"validateItems")}s(hl,"validateAdditionalItems");wn.validateAdditionalItems=hl;wn.default=Ib});var ya=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.validateTuple=void 0;var yl=O(),Si=I(),Tb=be(),Rb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return gl(e,"additionalItems",t);r.items=!0,!(0,Si.alwaysValidSchema)(r,t)&&e.ok((0,Tb.validateArray)(e))}};function gl(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=Si.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),f=n.const("len",(0,yl._)`${o}.length`);r.forEach((d,p)=>{(0,Si.alwaysValidSchema)(c,d)||(n.if((0,yl._)`${f} > ${p}`,()=>e.subschema({keyword:a,schemaProp:p,dataProp:p},u)),e.ok(u))});function l(d){let{opts:p,errSchemaPath:m}=c,y=r.length,$=y===d.minItems&&(y===d.maxItems||d[t]===!1);if(p.strictTuples&&!$){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Si.checkStrictMode)(c,g,p.strictTuples)}}s(l,"checkStrictTuple")}s(gl,"validateTuple");On.validateTuple=gl;On.default=Rb});var $l=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var Nb=ya(),kb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,Nb.validateTuple)(e,"items"),"code")};ga.default=kb});var bl=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var vl=O(),Cb=I(),Mb=be(),Db=ha(),Fb={message:s(({params:{len:e}})=>(0,vl.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,vl._)`{limit: ${e}}`,"params")},Vb={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Fb,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Cb.alwaysValidSchema)(n,t)&&(i?(0,Db.validateAdditionalItems)(e,i):e.ok((0,Mb.validateArray)(e)))}};$a.default=Vb});var _l=h(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Pe=O(),xi=I(),Lb={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Pe.str)`must contain at least ${e} valid item(s)`:(0,Pe.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,Pe._)`{minContains: ${e}}`:(0,Pe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Lb,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,Pe._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,xi.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,xi.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,xi.alwaysValidSchema)(o,r)){let $=(0,Pe._)`${l} >= ${a}`;c!==void 0&&($=(0,Pe._)`${$} && ${l} <= ${c}`),e.pass($);return}o.items=!0;let d=t.name("valid");c===void 0&&a===1?m(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),c!==void 0&&t.if((0,Pe._)`${i}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,()=>e.reset());function p(){let $=t.name("_valid"),g=t.let("count",0);m($,()=>t.if($,()=>y(g)))}s(p,"validateItemsWithCount");function m($,g){t.forRange("i",0,l,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:xi.Type.Num,compositeRule:!0},$),g()})}s(m,"validateItems");function y($){t.code((0,Pe._)`${$}++`),c===void 0?t.if((0,Pe._)`${$} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,Pe._)`${$} > ${c}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,Pe._)`${$} >= ${a}`,()=>t.assign(d,!0)))}s(y,"checkLimits")}};va.default=zb});var wi=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.validateSchemaDeps=Le.validatePropertyDeps=Le.error=void 0;var ba=O(),Ub=I(),En=be();Le.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ba.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ba._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var Bb={keyword:"dependencies",type:"object",schemaType:"object",error:Le.error,code(e){let[t,r]=Hb(e);vl(e,t),bl(e,r)}};function Hb({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(Hb,"splitDependencies");function vl(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,wn.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,wn.checkReportMissingProp)(e,f)}):(r.if((0,va._)`${u} && (${(0,wn.checkMissingProp)(e,c,o)})`),(0,wn.reportMissingProp)(e,o),r.else())}}s(vl,"validatePropertyDeps");Le.validatePropertyDeps=vl;function bl(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,Ub.alwaysValidSchema)(o,t[c])||(r.if((0,wn.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(bl,"validateSchemaDeps");Le.validateSchemaDeps=bl;Le.default=Bb});var Pl=h(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var _l=E(),Gb=I(),Zb={message:"property name must be valid",params:s(({params:e})=>(0,_l._)`{propertyName: ${e.propertyName}}`,"params")},Kb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Zb,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,Gb.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,_l.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};ba.default=Kb});var Pa=h(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var wi=be(),je=E(),Wb=ve(),Oi=I(),Yb={message:"must NOT have additional properties",params:s(({params:e})=>(0,je._)`{additionalProperty: ${e.additionalProperty}}`,"params")},Jb={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Yb,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,Oi.alwaysValidSchema)(a,r))return;let f=(0,wi.allSchemaProperties)(n.properties),l=(0,wi.allSchemaProperties)(n.patternProperties);d(),e.ok((0,je._)`${o} === ${Wb.default.errors}`);function d(){t.forIn("key",i,g=>{!f.length&&!l.length?y(g):t.if(p(g),()=>y(g))})}s(d,"checkAdditionalProperties");function p(g){let v;if(f.length>8){let b=(0,Oi.schemaRefOrVal)(a,n.properties,"properties");v=(0,wi.isOwnProperty)(t,b,g)}else f.length?v=(0,je.or)(...f.map(b=>(0,je._)`${g} === ${b}`)):v=je.nil;return l.length&&(v=(0,je.or)(v,...l.map(b=>(0,je._)`${(0,wi.usePattern)(e,b)}.test(${g})`))),(0,je.not)(v)}s(p,"isAdditional");function m(g){t.code((0,je._)`delete ${i}[${g}]`)}s(m,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Oi.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?($(g,v,!1),t.if((0,je.not)(v),()=>{e.reset(),m(g)})):($(g,v),c||t.if((0,je.not)(v),()=>t.break()))}}s(y,"additionalPropertyCode");function $(g,v,b){let S={keyword:"additionalProperties",dataProp:g,dataPropType:Oi.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,v)}s($,"applyAdditionalSchema")}};_a.default=Jb});var wl=h(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var Xb=un(),Sl=be(),Sa=I(),xl=Pa(),Qb={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&&xl.default.code(new Xb.KeywordCxt(o,xl.default,"additionalProperties"));let a=(0,Sl.allSchemaProperties)(r);for(let d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Sa.mergeEvaluated.props(t,(0,Sa.toHash)(a),o.props));let c=a.filter(d=>!(0,Sa.alwaysValidSchema)(o,r[d]));if(c.length===0)return;let u=t.name("valid");for(let d of c)f(d)?l(d):(t.if((0,Sl.propertyInData)(t,i,d,o.opts.ownProperties)),l(d),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function f(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}s(f,"hasDefault");function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}s(l,"applyPropertySchema")}};xa.default=Qb});var jl=h(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var Ol=be(),Ei=E(),El=I(),Al=I(),e_={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,Ol.allSchemaProperties)(r),u=c.filter($=>(0,El.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 Ei.Name)&&(o.props=(0,Al.evaluatedPropsToName)(t,o.props));let{props:d}=o;p();function p(){for(let $ of c)f&&m($),o.allErrors?y($):(t.var(l,!0),y($),t.if(l))}s(p,"validatePatternProperties");function m($){for(let g in f)new RegExp($).test(g)&&(0,El.checkStrictMode)(o,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}s(m,"checkMatchingProperties");function y($){t.forIn("key",n,g=>{t.if((0,Ei._)`${(0,Ol.usePattern)(e,$)}.test(${g})`,()=>{let v=u.includes($);v||e.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:Al.Type.Str},l),o.opts.unevaluated&&d!==!0?t.assign((0,Ei._)`${d}[${g}]`,!0):!v&&!o.allErrors&&t.if((0,Ei.not)(l),()=>t.break())})})}s(y,"validateProperties")}};wa.default=e_});var ql=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var t_=I(),r_={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,t_.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"}};Oa.default=r_});var Il=h(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var n_=be(),i_={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n_.validateUnion,error:{message:"must match a schema in anyOf"}};Ea.default=i_});var Rl=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ai=E(),o_=I(),s_={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Ai._)`{passingSchemas: ${e.passing}}`,"params")},a_={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:s_,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,d)=>{let p;(0,o_.alwaysValidSchema)(i,l)?t.var(u,!0):p=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Ai._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ai._)`[${c}, ${d}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,d),p&&e.mergeEvaluated(p,Ai.Name)})})}s(f,"validateOneOf")}};Aa.default=a_});var Tl=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var c_=I(),u_={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,c_.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};ja.default=u_});var Cl=h(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var ji=E(),Nl=I(),f_={message:s(({params:e})=>(0,ji.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,ji._)`{failingKeyword: ${e.ifClause}}`,"params")},l_={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:f_,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Nl.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=kl(n,"then"),o=kl(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,ji.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,d){return()=>{let p=e.subschema({keyword:l},c);t.assign(a,c),e.mergeValidEvaluated(p,a),d?t.assign(d,(0,ji._)`${l}`):e.setParams({ifClause:l})}}s(f,"validateClause")}};function kl(e,t){let r=e.schema[t];return r!==void 0&&!(0,Nl.alwaysValidSchema)(e,r)}s(kl,"hasSchema");qa.default=l_});var Ml=h(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var d_=I(),p_={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,d_.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ia.default=p_});var Ta=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var m_=ma(),h_=hl(),y_=ha(),g_=gl(),$_=$l(),v_=xi(),b_=Pl(),__=Pa(),P_=wl(),S_=jl(),x_=ql(),w_=Il(),O_=Rl(),E_=Tl(),A_=Cl(),j_=Ml();function q_(e=!1){let t=[x_.default,w_.default,O_.default,E_.default,A_.default,j_.default,b_.default,__.default,v_.default,P_.default,S_.default];return e?t.push(h_.default,g_.default):t.push(m_.default,y_.default),t.push($_.default),t}s(q_,"getApplicator");Ra.default=q_});var Dl=h(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var G=E(),I_={message:s(({schemaCode:e})=>(0,G.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,G._)`{format: ${e}}`,"params")},R_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:I_,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:f,schemaEnv:l,self:d}=c;if(!u.validateFormats)return;i?p():m();function p(){let y=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),$=r.const("fDef",(0,G._)`${y}[${a}]`),g=r.let("fType"),v=r.let("format");r.if((0,G._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>r.assign(g,(0,G._)`${$}.type || "string"`).assign(v,(0,G._)`${$}.validate`),()=>r.assign(g,(0,G._)`"string"`).assign(v,$)),e.fail$data((0,G.or)(b(),S()));function b(){return u.strictSchema===!1?G.nil:(0,G._)`${a} && !${v}`}s(b,"unknownFmt");function S(){let O=l.$async?(0,G._)`(${$}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,G._)`${v}(${n})`,_=(0,G._)`(typeof ${v} == "function" ? ${O} : ${v}.test(${n}))`;return(0,G._)`${v} && ${v} !== true && ${g} === ${t} && !${_}`}s(S,"invalidFmt")}s(p,"validate$DataFormat");function m(){let y=d.formats[o];if(!y){b();return}if(y===!0)return;let[$,g,v]=S(y);$===t&&e.pass(O());function b(){if(u.strictSchema===!1){d.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(b,"unknownFormat");function S(_){let H=_ instanceof RegExp?(0,G.regexpCode)(_):u.code.formats?(0,G._)`${u.code.formats}${(0,G.getProperty)(o)}`:void 0,L=r.scopeValue("formats",{key:o,ref:_,code:H});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,G._)`${L}.validate`]:["string",_,L]}s(S,"getFormat");function O(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!l.$async)throw new Error("async format in sync schema");return(0,G._)`await ${v}(${n})`}return typeof g=="function"?(0,G._)`${v}(${n})`:(0,G._)`${v}.test(${n})`}s(O,"validCondition")}s(m,"validateFormat")}};ka.default=R_});var Ca=h(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var T_=Dl(),k_=[T_.default];Na.default=k_});var Fl=h(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var N_=il(),C_=ll(),M_=Ta(),D_=Ca(),F_=["title","description","default"],V_=[N_.default,C_.default,M_.default(),D_.default,F_];Ma.default=V_});var Ll=h(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.DiscrError=void 0;var Vl;(function(e){e.Tag="tag",e.Mapping="mapping"})(Vl||(qi.DiscrError=Vl={}))});var Va=h(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var gr=E(),Da=Ll(),zl=ln(),L_=fn(),z_=I(),U_={message:s(({params:{discrError:e,tagName:t}})=>e===Da.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,gr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},B_={keyword:"discriminator",type:"object",schemaType:"object",error:U_,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,gr._)`${r}${(0,gr.getProperty)(c)}`);t.if((0,gr._)`typeof ${f} == "string"`,()=>l(),()=>e.error(!1,{discrError:Da.DiscrError.Tag,tag:f,tagName:c})),e.ok(u);function l(){let m=p();t.if(!1);for(let y in m)t.elseIf((0,gr._)`${f} === ${y}`),t.assign(u,d(m[y]));t.else(),e.error(!1,{discrError:Da.DiscrError.Mapping,tag:f,tagName:c}),t.endIf()}s(l,"validateMapping");function d(m){let y=t.name("valid"),$=e.subschema({keyword:"oneOf",schemaProp:m},y);return e.mergeEvaluated($,gr.Name),y}s(d,"applyTagSchema");function p(){var m;let y={},$=v(i),g=!0;for(let O=0;O<a.length;O++){let _=a[O];if(_!=null&&_.$ref&&!(0,z_.schemaHasRulesButRef)(_,o.self.RULES)){let L=_.$ref;if(_=zl.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,L),_ instanceof zl.SchemaEnv&&(_=_.schema),_===void 0)throw new L_.default(o.opts.uriResolver,o.baseId,L)}let H=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof H!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&($||v(_)),b(H,O)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function v({required:O}){return Array.isArray(O)&&O.includes(c)}function b(O,_){if(O.const)S(O.const,_);else if(O.enum)for(let H of O.enum)S(H,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function S(O,_){if(typeof O!="string"||O in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[O]=_}}s(p,"getMapping")}};Fa.default=B_});var Ul=h((Bq,H_)=>{H_.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 Gl=h((K,Hl)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.CodeGen=K.Name=K.nil=K.stringify=K.str=K._=K.KeywordCxt=void 0;var G_=hr(),Z_=Fl(),K_=Va(),Bl=Ul(),W_=["/properties"],Ii="http://json-schema.org/draft-04/schema",La=class La extends G_.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),Z_.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(K_.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Bl,W_):Bl;this.addMetaSchema(t,Ii,!1),this.refs["http://json-schema.org/schema"]=Ii}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ii)?Ii:void 0)}};s(La,"Ajv");var Ri=La;Hl.exports=K=Ri;Object.defineProperty(K,"__esModule",{value:!0});K.default=Ri;var Y_=hr();Object.defineProperty(K,"KeywordCxt",{enumerable:!0,get:s(function(){return Y_.KeywordCxt},"get")});var $r=hr();Object.defineProperty(K,"_",{enumerable:!0,get:s(function(){return $r._},"get")});Object.defineProperty(K,"str",{enumerable:!0,get:s(function(){return $r.str},"get")});Object.defineProperty(K,"stringify",{enumerable:!0,get:s(function(){return $r.stringify},"get")});Object.defineProperty(K,"nil",{enumerable:!0,get:s(function(){return $r.nil},"get")});Object.defineProperty(K,"Name",{enumerable:!0,get:s(function(){return $r.Name},"get")});Object.defineProperty(K,"CodeGen",{enumerable:!0,get:s(function(){return $r.CodeGen},"get")})});var Zl=h(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var J_={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};za.default=J_});var Kl=h(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var X_=Zl(),Q_=yn(),eP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",X_.default,Q_.default];Ua.default=eP});var Wl=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Ti=E(),mt=Ti.operators,ki={maximum:{okStr:"<=",ok:mt.LTE,fail:mt.GT},minimum:{okStr:">=",ok:mt.GTE,fail:mt.LT},exclusiveMaximum:{okStr:"<",ok:mt.LT,fail:mt.GTE},exclusiveMinimum:{okStr:">",ok:mt.GT,fail:mt.LTE}},tP={message:s(({keyword:e,schemaCode:t})=>(0,Ti.str)`must be ${ki[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Ti._)`{comparison: ${ki[e].okStr}, limit: ${t}}`,"params")},rP={keyword:Object.keys(ki),type:"number",schemaType:"number",$data:!0,error:tP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ti._)`${r} ${ki[t].fail} ${n} || isNaN(${r})`)}};Ba.default=rP});var Yl=h(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var nP=Wl(),iP=Hs(),oP=Ks(),sP=Ys(),aP=Xs(),cP=ea(),uP=ra(),fP=sa(),lP=ua(),dP=la(),pP=[nP.default,iP.default,oP.default,sP.default,aP.default,cP.default,uP.default,fP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},lP.default,dP.default];Ha.default=pP});var Za=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.dynamicAnchor=void 0;var Ga=E(),mP=ve(),Jl=ln(),hP=yn(),yP={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Xl(e,e.schema),"code")};function Xl(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Ga._)`${mP.default.dynamicAnchors}${(0,Ga.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:gP(e);r.if((0,Ga._)`!${i}`,()=>r.assign(i,o))}s(Xl,"dynamicAnchor");On.dynamicAnchor=Xl;function gP(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 Jl.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return Jl.compileSchema.call(n,f),(0,hP.getValidate)(e,f)}s(gP,"_getValidate");On.default=yP});var Ka=h(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.dynamicRef=void 0;var Ql=E(),$P=ve(),ed=yn(),vP={keyword:"$dynamicRef",schemaType:"string",code:s(e=>td(e,e.schema),"code")};function td(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,Ql._)`${$P.default.dynamicAnchors}${(0,Ql.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,ed.callRef)(e,u),r.let(f,!0)}):()=>(0,ed.callRef)(e,u)}s(c,"_callRef")}s(td,"dynamicRef");En.dynamicRef=td;En.default=vP});var rd=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var bP=Za(),_P=I(),PP={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,bP.dynamicAnchor)(e,""):(0,_P.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Wa.default=PP});var nd=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var SP=Ka(),xP={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,SP.dynamicRef)(e,e.schema),"code")};Ya.default=xP});var id=h(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var wP=Za(),OP=Ka(),EP=rd(),AP=nd(),jP=[wP.default,OP.default,EP.default,AP.default];Ja.default=jP});var sd=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var od=xi(),qP={keyword:"dependentRequired",type:"object",schemaType:"object",error:od.error,code:s(e=>(0,od.validatePropertyDeps)(e),"code")};Xa.default=qP});var ad=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var IP=xi(),RP={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,IP.validateSchemaDeps)(e),"code")};Qa.default=RP});var cd=h(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var TP=I(),kP={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,TP.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ec.default=kP});var ud=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var NP=sd(),CP=ad(),MP=cd(),DP=[NP.default,CP.default,MP.default];tc.default=DP});var ld=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var ht=E(),fd=I(),FP=ve(),VP={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,ht._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},LP={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:VP,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 ht.Name?t.if((0,ht._)`${c} !== true`,()=>t.forIn("key",n,d=>t.if(f(c,d),()=>u(d)))):c!==!0&&t.forIn("key",n,d=>c===void 0?u(d):t.if(l(c,d),()=>u(d))),o.props=!0,e.ok((0,ht._)`${i} === ${FP.default.errors}`);function u(d){if(r===!1){e.setParams({unevaluatedProperty:d}),e.error(),a||t.break();return}if(!(0,fd.alwaysValidSchema)(o,r)){let p=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:fd.Type.Str},p),a||t.if((0,ht.not)(p),()=>t.break())}}s(u,"unevaluatedPropCode");function f(d,p){return(0,ht._)`!${d} || !${d}[${p}]`}s(f,"unevaluatedDynamic");function l(d,p){let m=[];for(let y in d)d[y]===!0&&m.push((0,ht._)`${p} !== ${y}`);return(0,ht.and)(...m)}s(l,"unevaluatedStatic")}};rc.default=LP});var pd=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var zt=E(),dd=I(),zP={message:s(({params:{len:e}})=>(0,zt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,zt._)`{limit: ${e}}`,"params")},UP={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zP,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,zt._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,zt._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,dd.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,zt._)`${a} <= ${o}`);t.if((0,zt.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:dd.Type.Num},u),i.allErrors||t.if((0,zt.not)(u),()=>t.break())})}s(c,"validateItems")}};nc.default=UP});var md=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var BP=ld(),HP=pd(),GP=[BP.default,HP.default];ic.default=GP});var hd=h(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.contentVocabulary=vr.metadataVocabulary=void 0;vr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var gd=h(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var ZP=Kl(),KP=Yl(),WP=Ta(),YP=id(),JP=ud(),XP=md(),QP=Ca(),yd=hd(),eS=[YP.default,ZP.default,KP.default,(0,WP.default)(!0),QP.default,yd.metadataVocabulary,yd.contentVocabulary,JP.default,XP.default];oc.default=eS});var $d=h(($I,tS)=>{tS.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 vd=h((vI,rS)=>{rS.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 bd=h((bI,nS)=>{nS.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 _d=h((_I,iS)=>{iS.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 Pd=h((PI,oS)=>{oS.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 Sd=h((SI,sS)=>{sS.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 xd=h((xI,aS)=>{aS.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 wd=h((wI,cS)=>{cS.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 Od=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var uS=$d(),fS=vd(),lS=bd(),dS=_d(),pS=Pd(),mS=Sd(),hS=xd(),yS=wd(),gS=["/properties"];function $S(e){return[uS,fS,lS,dS,pS,t(this,mS),hS,t(this,yS)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,gS):n}s(t,"with$data")}s($S,"addMetaSchema2020");sc.default=$S});var Ed=h((V,cc)=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.MissingRefError=V.ValidationError=V.CodeGen=V.Name=V.nil=V.stringify=V.str=V._=V.KeywordCxt=V.Ajv2020=void 0;var vS=hr(),bS=gd(),_S=Va(),PS=Od(),ac="https://json-schema.org/draft/2020-12/schema",uc=class uc extends vS.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),bS.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(_S.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(PS.default.call(this,t),this.refs["http://json-schema.org/schema"]=ac)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ac)?ac:void 0)}};s(uc,"Ajv2020");var br=uc;V.Ajv2020=br;cc.exports=V=br;cc.exports.Ajv2020=br;Object.defineProperty(V,"__esModule",{value:!0});V.default=br;var SS=un();Object.defineProperty(V,"KeywordCxt",{enumerable:!0,get:s(function(){return SS.KeywordCxt},"get")});var _r=E();Object.defineProperty(V,"_",{enumerable:!0,get:s(function(){return _r._},"get")});Object.defineProperty(V,"str",{enumerable:!0,get:s(function(){return _r.str},"get")});Object.defineProperty(V,"stringify",{enumerable:!0,get:s(function(){return _r.stringify},"get")});Object.defineProperty(V,"nil",{enumerable:!0,get:s(function(){return _r.nil},"get")});Object.defineProperty(V,"Name",{enumerable:!0,get:s(function(){return _r.Name},"get")});Object.defineProperty(V,"CodeGen",{enumerable:!0,get:s(function(){return _r.CodeGen},"get")});var xS=di();Object.defineProperty(V,"ValidationError",{enumerable:!0,get:s(function(){return xS.default},"get")});var wS=fn();Object.defineProperty(V,"MissingRefError",{enumerable:!0,get:s(function(){return wS.default},"get")})});var Ad=h((jI,OS)=>{OS.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 jd=h((qI,ES)=>{ES.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 qd=h((II,AS)=>{AS.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 Id=h((RI,jS)=>{jS.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 Rd=h((J,Pr)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.openapi=J.openapiV31=J.openapiV3=J.openapiV2=J.openapiV1=void 0;J.openapiV1=Ad();J.openapiV2=jd();J.openapiV3=qd();J.openapiV31=Id();J.openapi={v1:J.openapiV1,v2:J.openapiV2,v3:J.openapiV3,v31:J.openapiV31};J.default=J.openapi;typeof Pr=="object"&&typeof Pr.exports=="object"&&(Pr.exports=Object.assign(Pr.exports.default,Pr.exports))});var dc=h((TI,Td)=>{"use strict";var qS=Zn(),{ono:IS}=we(),RS=Gl(),TS=Ed(),{openapi:fc}=Rd();Td.exports=kS;function kS(e){let t,r;if(e.swagger)r=fc.v2,t=lc();else if(e.openapi.startsWith("3.1")){r=fc.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=lc(!1)}else r=fc.v3,t=lc();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
- `+NS(i);throw IS.syntax(i,{details:i},o)}}s(kS,"validateSchema");function lc(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new RS(t):new TS(t)}s(lc,"initializeAjv");function NS(e,t){t=t||" ";let r="";for(let n of e)r+=qS.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}s(NS,"formatAjvError")});var Nd=h((NI,kd)=>{"use strict";kd.exports=["get","put","post","delete","options","head","patch"]});var hc=h((CI,Fd)=>{"use strict";var CS=Zn(),{ono:ne}=we(),MS=Nd(),pc=["array","boolean","integer","number","string"],Md=["array","boolean","integer","number","string","object","null",void 0];Fd.exports=DS;function DS(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&&FS(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;Dd(o,a)}}s(DS,"validateSpec");function FS(e,t,r,n){for(let i of MS){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 ne.syntax(`Validation failed. Duplicate operation id '${c}'`);VS(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let f of u){let l=o.responses[f],d=a+"/responses/"+f;BS(f,l||{},d)}}}}s(FS,"validatePath");function VS(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{Cd(o)}catch(u){throw ne.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Cd(a)}catch(u){throw ne.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,f)=>(u.some(d=>d.in===f.in&&d.name===f.name)||u.push(f),u),a.slice());LS(c,i),zS(c,r,i),US(c,e,n,i)}s(VS,"validateParameters");function LS(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ne.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ne.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(LS,"validateBodyParameters");function zS(e,t,r){let n=t.match(CS.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ne.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 ne.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 ne.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 ne.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(zS,"validatePathParameters");function US(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=Md;break;case"formData":a=i,c=pc.concat("file");break;default:a=i,c=pc}if(mc(a,o,c),Dd(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(p=>u.test(p)||f.test(p)))throw ne.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(US,"validateParameterTypes");function Cd(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 ne.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(Cd,"checkForDuplicates");function BS(e,t,r){if(e!=="default"&&(e<100||e>599))throw ne.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;mc(o,a,pc)}if(t.schema){let i=Md.concat("file");if(i.indexOf(t.schema.type)===-1)throw ne.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);mc(t.schema,r+"/schema",i)}}s(BS,"validateResponse");function mc(e,t,r){if(r.indexOf(e.type)===-1)throw ne.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ne.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(mc,"validateSchema");function Dd(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 ne.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(Dd,"validateRequiredPropertiesExist")});var Ie=h(qe=>{"use strict";var{Ono:Vd}=we(),{stripHash:Ld,toFileSystemPath:HS}=ge(),Sr,yt=qe.JSONParserError=(Sr=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Vd.extend(this)}},s(Sr,"JSONParserError"),Sr);gt(yt);var Ut,zd=qe.JSONParserErrorGroup=(Ut=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${HS(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 Ut.getParserErrors(this.files)}},s(Ut,"JSONParserErrorGroup"),Ut);gt(zd);var xr,GS=qe.ParserError=(xr=class extends yt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(xr,"ParserError"),xr);gt(GS);var wr,ZS=qe.UnmatchedParserError=(wr=class extends yt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(wr,"UnmatchedParserError"),wr);gt(ZS);var Or,KS=qe.ResolverError=(Or=class extends yt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Or,"ResolverError"),Or);gt(KS);var Er,WS=qe.UnmatchedResolverError=(Er=class extends yt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(Er,"UnmatchedResolverError"),Er);gt(WS);var Ar,YS=qe.MissingPointerError=(Ar=class extends yt{constructor(t,r){super(`Token "${t}" does not exist.`,Ld(r)),this.code="EMISSINGPOINTER"}},s(Ar,"MissingPointerError"),Ar);gt(YS);var jr,JS=qe.InvalidPointerError=(jr=class extends yt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ld(r)),this.code="EINVALIDPOINTER"}},s(jr,"InvalidPointerError"),jr);gt(JS);function gt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(gt,"setErrorName");qe.isHandledError=function(e){return e instanceof yt||e instanceof zd};qe.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Bd=h((VI,Ud)=>{"use strict";var{ParserError:XS}=Ie();Ud.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 XS(r.message,e.url)}}else return t}}});var Ht=h((LI,Bt)=>{"use strict";function Hd(e){return typeof e>"u"||e===null}s(Hd,"isNothing");function QS(e){return typeof e=="object"&&e!==null}s(QS,"isObject");function ex(e){return Array.isArray(e)?e:Hd(e)?[]:[e]}s(ex,"toArray");function tx(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(tx,"extend");function rx(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(rx,"repeat");function nx(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(nx,"isNegativeZero");Bt.exports.isNothing=Hd;Bt.exports.isObject=QS;Bt.exports.toArray=ex;Bt.exports.repeat=rx;Bt.exports.isNegativeZero=nx;Bt.exports.extend=tx});var qr=h((UI,Gd)=>{"use strict";function An(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(An,"YAMLException");An.prototype=Object.create(Error.prototype);An.prototype.constructor=An;An.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Gd.exports=An});var Wd=h((HI,Kd)=>{"use strict";var Zd=Ht();function yc(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(yc,"Mark");yc.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
12
+ deps: ${r}}`,"params")};var Bb={keyword:"dependencies",type:"object",schemaType:"object",error:Le.error,code(e){let[t,r]=Hb(e);Pl(e,t),Sl(e,r)}};function Hb({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(Hb,"splitDependencies");function Pl(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,En.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,En.checkReportMissingProp)(e,f)}):(r.if((0,ba._)`${u} && (${(0,En.checkMissingProp)(e,c,o)})`),(0,En.reportMissingProp)(e,o),r.else())}}s(Pl,"validatePropertyDeps");Le.validatePropertyDeps=Pl;function Sl(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,Ub.alwaysValidSchema)(o,t[c])||(r.if((0,En.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(Sl,"validateSchemaDeps");Le.validateSchemaDeps=Sl;Le.default=Bb});var wl=h(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var xl=O(),Gb=I(),Zb={message:"property name must be valid",params:s(({params:e})=>(0,xl._)`{propertyName: ${e.propertyName}}`,"params")},Kb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Zb,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,Gb.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,xl.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};_a.default=Kb});var Sa=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Oi=be(),Ae=O(),Wb=ve(),Ei=I(),Yb={message:"must NOT have additional properties",params:s(({params:e})=>(0,Ae._)`{additionalProperty: ${e.additionalProperty}}`,"params")},Jb={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Yb,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,Ei.alwaysValidSchema)(a,r))return;let f=(0,Oi.allSchemaProperties)(n.properties),l=(0,Oi.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Ae._)`${o} === ${Wb.default.errors}`);function d(){t.forIn("key",i,g=>{!f.length&&!l.length?y(g):t.if(p(g),()=>y(g))})}s(d,"checkAdditionalProperties");function p(g){let v;if(f.length>8){let P=(0,Ei.schemaRefOrVal)(a,n.properties,"properties");v=(0,Oi.isOwnProperty)(t,P,g)}else f.length?v=(0,Ae.or)(...f.map(P=>(0,Ae._)`${g} === ${P}`)):v=Ae.nil;return l.length&&(v=(0,Ae.or)(v,...l.map(P=>(0,Ae._)`${(0,Oi.usePattern)(e,P)}.test(${g})`))),(0,Ae.not)(v)}s(p,"isAdditional");function m(g){t.code((0,Ae._)`delete ${i}[${g}]`)}s(m,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Ei.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?($(g,v,!1),t.if((0,Ae.not)(v),()=>{e.reset(),m(g)})):($(g,v),c||t.if((0,Ae.not)(v),()=>t.break()))}}s(y,"additionalPropertyCode");function $(g,v,P){let x={keyword:"additionalProperties",dataProp:g,dataPropType:Ei.Type.Str};P===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,v)}s($,"applyAdditionalSchema")}};Pa.default=Jb});var jl=h(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var Xb=ln(),Ol=be(),xa=I(),El=Sa(),Qb={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&&El.default.code(new Xb.KeywordCxt(o,El.default,"additionalProperties"));let a=(0,Ol.allSchemaProperties)(r);for(let d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=xa.mergeEvaluated.props(t,(0,xa.toHash)(a),o.props));let c=a.filter(d=>!(0,xa.alwaysValidSchema)(o,r[d]));if(c.length===0)return;let u=t.name("valid");for(let d of c)f(d)?l(d):(t.if((0,Ol.propertyInData)(t,i,d,o.opts.ownProperties)),l(d),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function f(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}s(f,"hasDefault");function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}s(l,"applyPropertySchema")}};wa.default=Qb});var Tl=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Al=be(),ji=O(),ql=I(),Il=I(),e_={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,Al.allSchemaProperties)(r),u=c.filter($=>(0,ql.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 ji.Name)&&(o.props=(0,Il.evaluatedPropsToName)(t,o.props));let{props:d}=o;p();function p(){for(let $ of c)f&&m($),o.allErrors?y($):(t.var(l,!0),y($),t.if(l))}s(p,"validatePatternProperties");function m($){for(let g in f)new RegExp($).test(g)&&(0,ql.checkStrictMode)(o,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}s(m,"checkMatchingProperties");function y($){t.forIn("key",n,g=>{t.if((0,ji._)`${(0,Al.usePattern)(e,$)}.test(${g})`,()=>{let v=u.includes($);v||e.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:Il.Type.Str},l),o.opts.unevaluated&&d!==!0?t.assign((0,ji._)`${d}[${g}]`,!0):!v&&!o.allErrors&&t.if((0,ji.not)(l),()=>t.break())})})}s(y,"validateProperties")}};Oa.default=e_});var Rl=h(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var t_=I(),r_={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,t_.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"}};Ea.default=r_});var Nl=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var n_=be(),i_={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n_.validateUnion,error:{message:"must match a schema in anyOf"}};ja.default=i_});var kl=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ai=O(),o_=I(),s_={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Ai._)`{passingSchemas: ${e.passing}}`,"params")},a_={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:s_,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,d)=>{let p;(0,o_.alwaysValidSchema)(i,l)?t.var(u,!0):p=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Ai._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ai._)`[${c}, ${d}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,d),p&&e.mergeEvaluated(p,Ai.Name)})})}s(f,"validateOneOf")}};Aa.default=a_});var Cl=h(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var c_=I(),u_={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,c_.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};qa.default=u_});var Fl=h(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var qi=O(),Dl=I(),f_={message:s(({params:e})=>(0,qi.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,qi._)`{failingKeyword: ${e.ifClause}}`,"params")},l_={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:f_,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Dl.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Ml(n,"then"),o=Ml(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,qi.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,d){return()=>{let p=e.subschema({keyword:l},c);t.assign(a,c),e.mergeValidEvaluated(p,a),d?t.assign(d,(0,qi._)`${l}`):e.setParams({ifClause:l})}}s(f,"validateClause")}};function Ml(e,t){let r=e.schema[t];return r!==void 0&&!(0,Dl.alwaysValidSchema)(e,r)}s(Ml,"hasSchema");Ia.default=l_});var Vl=h(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var d_=I(),p_={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,d_.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ta.default=p_});var Na=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var m_=ha(),h_=$l(),y_=ya(),g_=bl(),$_=_l(),v_=wi(),b_=wl(),__=Sa(),P_=jl(),S_=Tl(),x_=Rl(),w_=Nl(),O_=kl(),E_=Cl(),j_=Fl(),A_=Vl();function q_(e=!1){let t=[x_.default,w_.default,O_.default,E_.default,j_.default,A_.default,b_.default,__.default,v_.default,P_.default,S_.default];return e?t.push(h_.default,g_.default):t.push(m_.default,y_.default),t.push($_.default),t}s(q_,"getApplicator");Ra.default=q_});var Ll=h(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var B=O(),I_={message:s(({schemaCode:e})=>(0,B.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,B._)`{format: ${e}}`,"params")},T_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:I_,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:f,schemaEnv:l,self:d}=c;if(!u.validateFormats)return;i?p():m();function p(){let y=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),$=r.const("fDef",(0,B._)`${y}[${a}]`),g=r.let("fType"),v=r.let("format");r.if((0,B._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>r.assign(g,(0,B._)`${$}.type || "string"`).assign(v,(0,B._)`${$}.validate`),()=>r.assign(g,(0,B._)`"string"`).assign(v,$)),e.fail$data((0,B.or)(P(),x()));function P(){return u.strictSchema===!1?B.nil:(0,B._)`${a} && !${v}`}s(P,"unknownFmt");function x(){let j=l.$async?(0,B._)`(${$}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,B._)`${v}(${n})`,_=(0,B._)`(typeof ${v} == "function" ? ${j} : ${v}.test(${n}))`;return(0,B._)`${v} && ${v} !== true && ${g} === ${t} && !${_}`}s(x,"invalidFmt")}s(p,"validate$DataFormat");function m(){let y=d.formats[o];if(!y){P();return}if(y===!0)return;let[$,g,v]=x(y);$===t&&e.pass(j());function P(){if(u.strictSchema===!1){d.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(P,"unknownFormat");function x(_){let Y=_ instanceof RegExp?(0,B.regexpCode)(_):u.code.formats?(0,B._)`${u.code.formats}${(0,B.getProperty)(o)}`:void 0,G=r.scopeValue("formats",{key:o,ref:_,code:Y});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,B._)`${G}.validate`]:["string",_,G]}s(x,"getFormat");function j(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!l.$async)throw new Error("async format in sync schema");return(0,B._)`await ${v}(${n})`}return typeof g=="function"?(0,B._)`${v}(${n})`:(0,B._)`${v}.test(${n})`}s(j,"validCondition")}s(m,"validateFormat")}};ka.default=T_});var Ma=h(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var R_=Ll(),N_=[R_.default];Ca.default=N_});var zl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var k_=al(),C_=ml(),M_=Na(),D_=Ma(),F_=["title","description","default"],V_=[k_.default,C_.default,M_.default(),D_.default,F_];Da.default=V_});var Bl=h(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.DiscrError=void 0;var Ul;(function(e){e.Tag="tag",e.Mapping="mapping"})(Ul||(Ii.DiscrError=Ul={}))});var La=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var vr=O(),Fa=Bl(),Hl=pn(),L_=dn(),z_=I(),U_={message:s(({params:{discrError:e,tagName:t}})=>e===Fa.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,vr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},B_={keyword:"discriminator",type:"object",schemaType:"object",error:U_,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,vr._)`${r}${(0,vr.getProperty)(c)}`);t.if((0,vr._)`typeof ${f} == "string"`,()=>l(),()=>e.error(!1,{discrError:Fa.DiscrError.Tag,tag:f,tagName:c})),e.ok(u);function l(){let m=p();t.if(!1);for(let y in m)t.elseIf((0,vr._)`${f} === ${y}`),t.assign(u,d(m[y]));t.else(),e.error(!1,{discrError:Fa.DiscrError.Mapping,tag:f,tagName:c}),t.endIf()}s(l,"validateMapping");function d(m){let y=t.name("valid"),$=e.subschema({keyword:"oneOf",schemaProp:m},y);return e.mergeEvaluated($,vr.Name),y}s(d,"applyTagSchema");function p(){var m;let y={},$=v(i),g=!0;for(let j=0;j<a.length;j++){let _=a[j];if(_!=null&&_.$ref&&!(0,z_.schemaHasRulesButRef)(_,o.self.RULES)){let G=_.$ref;if(_=Hl.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,G),_ instanceof Hl.SchemaEnv&&(_=_.schema),_===void 0)throw new L_.default(o.opts.uriResolver,o.baseId,G)}let Y=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof Y!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&($||v(_)),P(Y,j)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function v({required:j}){return Array.isArray(j)&&j.includes(c)}function P(j,_){if(j.const)x(j.const,_);else if(j.enum)for(let Y of j.enum)x(Y,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function x(j,_){if(typeof j!="string"||j in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[j]=_}}s(p,"getMapping")}};Va.default=B_});var Gl=h((Kq,H_)=>{H_.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 Wl=h((Z,Kl)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.CodeGen=Z.Name=Z.nil=Z.stringify=Z.str=Z._=Z.KeywordCxt=void 0;var G_=gr(),Z_=zl(),K_=La(),Zl=Gl(),W_=["/properties"],Ti="http://json-schema.org/draft-04/schema",za=class za extends G_.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),Z_.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(K_.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Zl,W_):Zl;this.addMetaSchema(t,Ti,!1),this.refs["http://json-schema.org/schema"]=Ti}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ti)?Ti:void 0)}};s(za,"Ajv");var Ri=za;Kl.exports=Z=Ri;Object.defineProperty(Z,"__esModule",{value:!0});Z.default=Ri;var Y_=gr();Object.defineProperty(Z,"KeywordCxt",{enumerable:!0,get:s(function(){return Y_.KeywordCxt},"get")});var br=gr();Object.defineProperty(Z,"_",{enumerable:!0,get:s(function(){return br._},"get")});Object.defineProperty(Z,"str",{enumerable:!0,get:s(function(){return br.str},"get")});Object.defineProperty(Z,"stringify",{enumerable:!0,get:s(function(){return br.stringify},"get")});Object.defineProperty(Z,"nil",{enumerable:!0,get:s(function(){return br.nil},"get")});Object.defineProperty(Z,"Name",{enumerable:!0,get:s(function(){return br.Name},"get")});Object.defineProperty(Z,"CodeGen",{enumerable:!0,get:s(function(){return br.CodeGen},"get")})});var Yl=h(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var J_={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ua.default=J_});var Jl=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var X_=Yl(),Q_=$n(),eP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",X_.default,Q_.default];Ba.default=eP});var Xl=h(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Ni=O(),pt=Ni.operators,ki={maximum:{okStr:"<=",ok:pt.LTE,fail:pt.GT},minimum:{okStr:">=",ok:pt.GTE,fail:pt.LT},exclusiveMaximum:{okStr:"<",ok:pt.LT,fail:pt.GTE},exclusiveMinimum:{okStr:">",ok:pt.GT,fail:pt.LTE}},tP={message:s(({keyword:e,schemaCode:t})=>(0,Ni.str)`must be ${ki[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Ni._)`{comparison: ${ki[e].okStr}, limit: ${t}}`,"params")},rP={keyword:Object.keys(ki),type:"number",schemaType:"number",$data:!0,error:tP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ni._)`${r} ${ki[t].fail} ${n} || isNaN(${r})`)}};Ha.default=rP});var Ql=h(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var nP=Xl(),iP=Gs(),oP=Ws(),sP=Js(),aP=Qs(),cP=ta(),uP=na(),fP=aa(),lP=fa(),dP=da(),pP=[nP.default,iP.default,oP.default,sP.default,aP.default,cP.default,uP.default,fP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},lP.default,dP.default];Ga.default=pP});var Ka=h(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.dynamicAnchor=void 0;var Za=O(),mP=ve(),ed=pn(),hP=$n(),yP={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>td(e,e.schema),"code")};function td(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Za._)`${mP.default.dynamicAnchors}${(0,Za.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:gP(e);r.if((0,Za._)`!${i}`,()=>r.assign(i,o))}s(td,"dynamicAnchor");jn.dynamicAnchor=td;function gP(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 ed.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return ed.compileSchema.call(n,f),(0,hP.getValidate)(e,f)}s(gP,"_getValidate");jn.default=yP});var Wa=h(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.dynamicRef=void 0;var rd=O(),$P=ve(),nd=$n(),vP={keyword:"$dynamicRef",schemaType:"string",code:s(e=>id(e,e.schema),"code")};function id(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,rd._)`${$P.default.dynamicAnchors}${(0,rd.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,nd.callRef)(e,u),r.let(f,!0)}):()=>(0,nd.callRef)(e,u)}s(c,"_callRef")}s(id,"dynamicRef");An.dynamicRef=id;An.default=vP});var od=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var bP=Ka(),_P=I(),PP={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,bP.dynamicAnchor)(e,""):(0,_P.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Ya.default=PP});var sd=h(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var SP=Wa(),xP={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,SP.dynamicRef)(e,e.schema),"code")};Ja.default=xP});var ad=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var wP=Ka(),OP=Wa(),EP=od(),jP=sd(),AP=[wP.default,OP.default,EP.default,jP.default];Xa.default=AP});var ud=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var cd=wi(),qP={keyword:"dependentRequired",type:"object",schemaType:"object",error:cd.error,code:s(e=>(0,cd.validatePropertyDeps)(e),"code")};Qa.default=qP});var fd=h(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var IP=wi(),TP={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,IP.validateSchemaDeps)(e),"code")};ec.default=TP});var ld=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var RP=I(),NP={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,RP.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};tc.default=NP});var dd=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var kP=ud(),CP=fd(),MP=ld(),DP=[kP.default,CP.default,MP.default];rc.default=DP});var md=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var mt=O(),pd=I(),FP=ve(),VP={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,mt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},LP={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:VP,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 mt.Name?t.if((0,mt._)`${c} !== true`,()=>t.forIn("key",n,d=>t.if(f(c,d),()=>u(d)))):c!==!0&&t.forIn("key",n,d=>c===void 0?u(d):t.if(l(c,d),()=>u(d))),o.props=!0,e.ok((0,mt._)`${i} === ${FP.default.errors}`);function u(d){if(r===!1){e.setParams({unevaluatedProperty:d}),e.error(),a||t.break();return}if(!(0,pd.alwaysValidSchema)(o,r)){let p=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:pd.Type.Str},p),a||t.if((0,mt.not)(p),()=>t.break())}}s(u,"unevaluatedPropCode");function f(d,p){return(0,mt._)`!${d} || !${d}[${p}]`}s(f,"unevaluatedDynamic");function l(d,p){let m=[];for(let y in d)d[y]===!0&&m.push((0,mt._)`${p} !== ${y}`);return(0,mt.and)(...m)}s(l,"unevaluatedStatic")}};nc.default=LP});var yd=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zt=O(),hd=I(),zP={message:s(({params:{len:e}})=>(0,zt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,zt._)`{limit: ${e}}`,"params")},UP={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zP,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,zt._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,zt._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,hd.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,zt._)`${a} <= ${o}`);t.if((0,zt.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:hd.Type.Num},u),i.allErrors||t.if((0,zt.not)(u),()=>t.break())})}s(c,"validateItems")}};ic.default=UP});var gd=h(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var BP=md(),HP=yd(),GP=[BP.default,HP.default];oc.default=GP});var $d=h(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.contentVocabulary=_r.metadataVocabulary=void 0;_r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];_r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bd=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ZP=Jl(),KP=Ql(),WP=Na(),YP=ad(),JP=dd(),XP=gd(),QP=Ma(),vd=$d(),eS=[YP.default,ZP.default,KP.default,(0,WP.default)(!0),QP.default,vd.metadataVocabulary,vd.contentVocabulary,JP.default,XP.default];sc.default=eS});var _d=h((PI,tS)=>{tS.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 Pd=h((SI,rS)=>{rS.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 Sd=h((xI,nS)=>{nS.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 xd=h((wI,iS)=>{iS.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 wd=h((OI,oS)=>{oS.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 Od=h((EI,sS)=>{sS.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 Ed=h((jI,aS)=>{aS.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 jd=h((AI,cS)=>{cS.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 Ad=h(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var uS=_d(),fS=Pd(),lS=Sd(),dS=xd(),pS=wd(),mS=Od(),hS=Ed(),yS=jd(),gS=["/properties"];function $S(e){return[uS,fS,lS,dS,pS,t(this,mS),hS,t(this,yS)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,gS):n}s(t,"with$data")}s($S,"addMetaSchema2020");ac.default=$S});var qd=h((V,uc)=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.MissingRefError=V.ValidationError=V.CodeGen=V.Name=V.nil=V.stringify=V.str=V._=V.KeywordCxt=V.Ajv2020=void 0;var vS=gr(),bS=bd(),_S=La(),PS=Ad(),cc="https://json-schema.org/draft/2020-12/schema",fc=class fc extends vS.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),bS.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(_S.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(PS.default.call(this,t),this.refs["http://json-schema.org/schema"]=cc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(cc)?cc:void 0)}};s(fc,"Ajv2020");var Pr=fc;V.Ajv2020=Pr;uc.exports=V=Pr;uc.exports.Ajv2020=Pr;Object.defineProperty(V,"__esModule",{value:!0});V.default=Pr;var SS=ln();Object.defineProperty(V,"KeywordCxt",{enumerable:!0,get:s(function(){return SS.KeywordCxt},"get")});var Sr=O();Object.defineProperty(V,"_",{enumerable:!0,get:s(function(){return Sr._},"get")});Object.defineProperty(V,"str",{enumerable:!0,get:s(function(){return Sr.str},"get")});Object.defineProperty(V,"stringify",{enumerable:!0,get:s(function(){return Sr.stringify},"get")});Object.defineProperty(V,"nil",{enumerable:!0,get:s(function(){return Sr.nil},"get")});Object.defineProperty(V,"Name",{enumerable:!0,get:s(function(){return Sr.Name},"get")});Object.defineProperty(V,"CodeGen",{enumerable:!0,get:s(function(){return Sr.CodeGen},"get")});var xS=pi();Object.defineProperty(V,"ValidationError",{enumerable:!0,get:s(function(){return xS.default},"get")});var wS=dn();Object.defineProperty(V,"MissingRefError",{enumerable:!0,get:s(function(){return wS.default},"get")})});var Id=h((RI,OS)=>{OS.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 Td=h((NI,ES)=>{ES.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 Rd=h((kI,jS)=>{jS.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 Nd=h((CI,AS)=>{AS.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 kd=h((J,xr)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.openapi=J.openapiV31=J.openapiV3=J.openapiV2=J.openapiV1=void 0;J.openapiV1=Id();J.openapiV2=Td();J.openapiV3=Rd();J.openapiV31=Nd();J.openapi={v1:J.openapiV1,v2:J.openapiV2,v3:J.openapiV3,v31:J.openapiV31};J.default=J.openapi;typeof xr=="object"&&typeof xr.exports=="object"&&(xr.exports=Object.assign(xr.exports.default,xr.exports))});var pc=h((MI,Cd)=>{"use strict";var qS=Kn(),{ono:IS}=we(),TS=Wl(),RS=qd(),{openapi:lc}=kd();Cd.exports=NS;function NS(e){let t,r;if(e.swagger)r=lc.v2,t=dc();else if(e.openapi.startsWith("3.1")){r=lc.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=dc(!1)}else r=lc.v3,t=dc();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
+ `+kS(i);throw IS.syntax(i,{details:i},o)}}s(NS,"validateSchema");function dc(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new TS(t):new RS(t)}s(dc,"initializeAjv");function kS(e,t){t=t||" ";let r="";for(let n of e)r+=qS.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}s(kS,"formatAjvError")});var Dd=h((FI,Md)=>{"use strict";Md.exports=["get","put","post","delete","options","head","patch"]});var yc=h((VI,zd)=>{"use strict";var CS=Kn(),{ono:ne}=we(),MS=Dd(),mc=["array","boolean","integer","number","string"],Vd=["array","boolean","integer","number","string","object","null",void 0];zd.exports=DS;function DS(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&&FS(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;Ld(o,a)}}s(DS,"validateSpec");function FS(e,t,r,n){for(let i of MS){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 ne.syntax(`Validation failed. Duplicate operation id '${c}'`);VS(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let f of u){let l=o.responses[f],d=a+"/responses/"+f;BS(f,l||{},d)}}}}s(FS,"validatePath");function VS(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{Fd(o)}catch(u){throw ne.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Fd(a)}catch(u){throw ne.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,f)=>(u.some(d=>d.in===f.in&&d.name===f.name)||u.push(f),u),a.slice());LS(c,i),zS(c,r,i),US(c,e,n,i)}s(VS,"validateParameters");function LS(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ne.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ne.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(LS,"validateBodyParameters");function zS(e,t,r){let n=t.match(CS.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ne.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 ne.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 ne.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 ne.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(zS,"validatePathParameters");function US(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=Vd;break;case"formData":a=i,c=mc.concat("file");break;default:a=i,c=mc}if(hc(a,o,c),Ld(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(p=>u.test(p)||f.test(p)))throw ne.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(US,"validateParameterTypes");function Fd(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 ne.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(Fd,"checkForDuplicates");function BS(e,t,r){if(e!=="default"&&(e<100||e>599))throw ne.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;hc(o,a,mc)}if(t.schema){let i=Vd.concat("file");if(i.indexOf(t.schema.type)===-1)throw ne.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);hc(t.schema,r+"/schema",i)}}s(BS,"validateResponse");function hc(e,t,r){if(r.indexOf(e.type)===-1)throw ne.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ne.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(hc,"validateSchema");function Ld(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 ne.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(Ld,"validateRequiredPropertiesExist")});var Ie=h(qe=>{"use strict";var{Ono:Ud}=we(),{stripHash:Bd,toFileSystemPath:HS}=ge(),wr,ht=qe.JSONParserError=(wr=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Ud.extend(this)}},s(wr,"JSONParserError"),wr);yt(ht);var Ut,Hd=qe.JSONParserErrorGroup=(Ut=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${HS(t.$refs._root$Ref.path)}'`,Ud.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 Ut.getParserErrors(this.files)}},s(Ut,"JSONParserErrorGroup"),Ut);yt(Hd);var Or,GS=qe.ParserError=(Or=class extends ht{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(Or,"ParserError"),Or);yt(GS);var Er,ZS=qe.UnmatchedParserError=(Er=class extends ht{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(Er,"UnmatchedParserError"),Er);yt(ZS);var jr,KS=qe.ResolverError=(jr=class extends ht{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(jr,"ResolverError"),jr);yt(KS);var Ar,WS=qe.UnmatchedResolverError=(Ar=class extends ht{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(Ar,"UnmatchedResolverError"),Ar);yt(WS);var qr,YS=qe.MissingPointerError=(qr=class extends ht{constructor(t,r){super(`Token "${t}" does not exist.`,Bd(r)),this.code="EMISSINGPOINTER"}},s(qr,"MissingPointerError"),qr);yt(YS);var Ir,JS=qe.InvalidPointerError=(Ir=class extends ht{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Bd(r)),this.code="EINVALIDPOINTER"}},s(Ir,"InvalidPointerError"),Ir);yt(JS);function yt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(yt,"setErrorName");qe.isHandledError=function(e){return e instanceof ht||e instanceof Hd};qe.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Zd=h((BI,Gd)=>{"use strict";var{ParserError:XS}=Ie();Gd.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 XS(r.message,e.url)}}else return t}}});var Ht=h((HI,Bt)=>{"use strict";function Kd(e){return typeof e>"u"||e===null}s(Kd,"isNothing");function QS(e){return typeof e=="object"&&e!==null}s(QS,"isObject");function ex(e){return Array.isArray(e)?e:Kd(e)?[]:[e]}s(ex,"toArray");function tx(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(tx,"extend");function rx(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(rx,"repeat");function nx(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(nx,"isNegativeZero");Bt.exports.isNothing=Kd;Bt.exports.isObject=QS;Bt.exports.toArray=ex;Bt.exports.repeat=rx;Bt.exports.isNegativeZero=nx;Bt.exports.extend=tx});var Tr=h((ZI,Wd)=>{"use strict";function qn(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(qn,"YAMLException");qn.prototype=Object.create(Error.prototype);qn.prototype.constructor=qn;qn.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=qn});var Xd=h((WI,Jd)=>{"use strict";var Yd=Ht();function gc(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(gc,"Mark");gc.prototype.getSnippet=s(function(t,r){var n,i,o,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
15
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Zd.repeat(" ",t)+n+c+o+`
17
- `+Zd.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");yc.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");Kd.exports=yc});var W=h((ZI,Jd)=>{"use strict";var Yd=qr(),ix=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ox=["scalar","sequence","mapping"];function sx(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(sx,"compileStyleAliases");function ax(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(ix.indexOf(r)===-1)throw new Yd('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=sx(t.styleAliases||null),ox.indexOf(this.kind)===-1)throw new Yd('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(ax,"Type");Jd.exports=ax});var Gt=h((WI,Qd)=>{"use strict";var Xd=Ht(),Ni=qr(),cx=W();function gc(e,t,r){var n=[];return e.include.forEach(function(i){r=gc(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(gc,"compileList");function ux(){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(ux,"compileMap");function Ir(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 Ni("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=gc(this,"implicit",[]),this.compiledExplicit=gc(this,"explicit",[]),this.compiledTypeMap=ux(this.compiledImplicit,this.compiledExplicit)}s(Ir,"Schema");Ir.DEFAULT=null;Ir.create=s(function(){var t,r;switch(arguments.length){case 1:t=Ir.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ni("Wrong number of arguments for Schema.create function")}if(t=Xd.toArray(t),r=Xd.toArray(r),!t.every(function(n){return n instanceof Ir}))throw new Ni("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof cx}))throw new Ni("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ir({include:t,explicit:r})},"createSchema");Qd.exports=Ir});var tp=h((JI,ep)=>{"use strict";var fx=W();ep.exports=new fx("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var np=h((QI,rp)=>{"use strict";var lx=W();rp.exports=new lx("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var op=h((t1,ip)=>{"use strict";var dx=W();ip.exports=new dx("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Ci=h((n1,sp)=>{"use strict";var px=Gt();sp.exports=new px({explicit:[tp(),np(),op()]})});var cp=h((i1,ap)=>{"use strict";var mx=W();function hx(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(hx,"resolveYamlNull");function yx(){return null}s(yx,"constructYamlNull");function gx(e){return e===null}s(gx,"isNull");ap.exports=new mx("tag:yaml.org,2002:null",{kind:"scalar",resolve:hx,construct:yx,predicate:gx,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 fp=h((s1,up)=>{"use strict";var $x=W();function vx(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(vx,"resolveYamlBoolean");function bx(e){return e==="true"||e==="True"||e==="TRUE"}s(bx,"constructYamlBoolean");function _x(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(_x,"isBoolean");up.exports=new $x("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vx,construct:bx,predicate:_x,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 dp=h((c1,lp)=>{"use strict";var Px=Ht(),Sx=W();function xx(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(xx,"isHexCode");function wx(e){return 48<=e&&e<=55}s(wx,"isOctCode");function Ox(e){return 48<=e&&e<=57}s(Ox,"isDecCode");function Ex(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(!xx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!wx(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(!Ox(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(Ex,"resolveYamlInteger");function Ax(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(Ax,"constructYamlInteger");function jx(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Px.isNegativeZero(e)}s(jx,"isInteger");lp.exports=new Sx("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ex,construct:Ax,predicate:jx,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 hp=h((f1,mp)=>{"use strict";var pp=Ht(),qx=W(),Ix=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 Rx(e){return!(e===null||!Ix.test(e)||e[e.length-1]==="_")}s(Rx,"resolveYamlFloat");function Tx(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(Tx,"constructYamlFloat");var kx=/^[-+]?[0-9]+e/;function Nx(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(pp.isNegativeZero(e))return"-0.0";return r=e.toString(10),kx.test(r)?r.replace("e",".e"):r}s(Nx,"representYamlFloat");function Cx(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pp.isNegativeZero(e))}s(Cx,"isFloat");mp.exports=new qx("tag:yaml.org,2002:float",{kind:"scalar",resolve:Rx,construct:Tx,predicate:Cx,represent:Nx,defaultStyle:"lowercase"})});var $c=h((d1,yp)=>{"use strict";var Mx=Gt();yp.exports=new Mx({include:[Ci()],implicit:[cp(),fp(),dp(),hp()]})});var vc=h((p1,gp)=>{"use strict";var Dx=Gt();gp.exports=new Dx({include:[$c()]})});var _p=h((m1,bp)=>{"use strict";var Fx=W(),$p=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vp=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 Vx(e){return e===null?!1:$p.exec(e)!==null||vp.exec(e)!==null}s(Vx,"resolveYamlTimestamp");function Lx(e){var t,r,n,i,o,a,c,u=0,f=null,l,d,p;if(t=$p.exec(e),t===null&&(t=vp.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],d=+(t[11]||0),f=(l*60+d)*6e4,t[9]==="-"&&(f=-f)),p=new Date(Date.UTC(r,n,i,o,a,c,u)),f&&p.setTime(p.getTime()-f),p}s(Lx,"constructYamlTimestamp");function zx(e){return e.toISOString()}s(zx,"representYamlTimestamp");bp.exports=new Fx("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Vx,construct:Lx,instanceOf:Date,represent:zx})});var Sp=h((y1,Pp)=>{"use strict";var Ux=W();function Bx(e){return e==="<<"||e===null}s(Bx,"resolveYamlMerge");Pp.exports=new Ux("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bx})});var Op=h(($1,wp)=>{"use strict";var Zt;try{xp=require,Zt=xp("buffer").Buffer}catch{}var xp,Hx=W(),bc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function Gx(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=bc;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(Gx,"resolveYamlBinary");function Zx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=bc,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),Zt?Zt.from?Zt.from(c):new Zt(c):c}s(Zx,"constructYamlBinary");function Kx(e){var t="",r=0,n,i,o=e.length,a=bc;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(Kx,"representYamlBinary");function Wx(e){return Zt&&Zt.isBuffer(e)}s(Wx,"isBinary");wp.exports=new Hx("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gx,construct:Zx,predicate:Wx,represent:Kx})});var Ap=h((b1,Ep)=>{"use strict";var Yx=W(),Jx=Object.prototype.hasOwnProperty,Xx=Object.prototype.toString;function Qx(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,Xx.call(i)!=="[object Object]")return!1;for(o in i)if(Jx.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(Qx,"resolveYamlOmap");function ew(e){return e!==null?e:[]}s(ew,"constructYamlOmap");Ep.exports=new Yx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qx,construct:ew})});var qp=h((P1,jp)=>{"use strict";var tw=W(),rw=Object.prototype.toString;function nw(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],rw.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(nw,"resolveYamlPairs");function iw(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(iw,"constructYamlPairs");jp.exports=new tw("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nw,construct:iw})});var Rp=h((x1,Ip)=>{"use strict";var ow=W(),sw=Object.prototype.hasOwnProperty;function aw(e){if(e===null)return!0;var t,r=e;for(t in r)if(sw.call(r,t)&&r[t]!==null)return!1;return!0}s(aw,"resolveYamlSet");function cw(e){return e!==null?e:{}}s(cw,"constructYamlSet");Ip.exports=new ow("tag:yaml.org,2002:set",{kind:"mapping",resolve:aw,construct:cw})});var Rr=h((O1,Tp)=>{"use strict";var uw=Gt();Tp.exports=new uw({include:[vc()],implicit:[_p(),Sp()],explicit:[Op(),Ap(),qp(),Rp()]})});var Np=h((E1,kp)=>{"use strict";var fw=W();function lw(){return!0}s(lw,"resolveJavascriptUndefined");function dw(){}s(dw,"constructJavascriptUndefined");function pw(){return""}s(pw,"representJavascriptUndefined");function mw(e){return typeof e>"u"}s(mw,"isUndefined");kp.exports=new fw("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lw,construct:dw,predicate:mw,represent:pw})});var Mp=h((j1,Cp)=>{"use strict";var hw=W();function yw(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(yw,"resolveJavascriptRegExp");function gw(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(gw,"constructJavascriptRegExp");function $w(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s($w,"representJavascriptRegExp");function vw(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(vw,"isRegExp");Cp.exports=new hw("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yw,construct:gw,predicate:vw,represent:$w})});var Vp=h((I1,Fp)=>{"use strict";var Mi;try{Dp=require,Mi=Dp("esprima")}catch{typeof window<"u"&&(Mi=window.esprima)}var Dp,bw=W();function _w(e){if(e===null)return!1;try{var t="("+e+")",r=Mi.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(_w,"resolveJavascriptFunction");function Pw(e){var t="("+e+")",r=Mi.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(Pw,"constructJavascriptFunction");function Sw(e){return e.toString()}s(Sw,"representJavascriptFunction");function xw(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xw,"isFunction");Fp.exports=new bw("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_w,construct:Pw,predicate:xw,represent:Sw})});var jn=h((T1,zp)=>{"use strict";var Lp=Gt();zp.exports=Lp.DEFAULT=new Lp({include:[Rr()],explicit:[Np(),Mp(),Vp()]})});var am=h((k1,qn)=>{"use strict";var it=Ht(),Wp=qr(),ww=Wd(),Yp=Rr(),Ow=jn(),vt=Object.prototype.hasOwnProperty,Di=1,Jp=2,Xp=3,Fi=4,_c=1,Ew=2,Up=3,Aw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jw=/[\x85\u2028\u2029]/,qw=/[,\[\]\{\}]/,Qp=/^(?:!|!!|![a-z\-]+!)$/i,em=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Bp(e){return Object.prototype.toString.call(e)}s(Bp,"_class");function ze(e){return e===10||e===13}s(ze,"is_EOL");function Wt(e){return e===9||e===32}s(Wt,"is_WHITE_SPACE");function me(e){return e===9||e===32||e===10||e===13}s(me,"is_WS_OR_EOL");function Tr(e){return e===44||e===91||e===93||e===123||e===125}s(Tr,"is_FLOW_INDICATOR");function Iw(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(Iw,"fromHexCode");function Rw(e){return e===120?2:e===117?4:e===85?8:0}s(Rw,"escapedHexLen");function Tw(e){return 48<=e&&e<=57?e-48:-1}s(Tw,"fromDecimalCode");function Hp(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(Hp,"simpleEscapeSequence");function kw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(kw,"charFromCodepoint");var tm=new Array(256),rm=new Array(256);for(Kt=0;Kt<256;Kt++)tm[Kt]=Hp(Kt)?1:0,rm[Kt]=Hp(Kt);var Kt;function Nw(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ow,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(Nw,"State");function nm(e,t){return new Wp(t,new ww(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(nm,"generateError");function x(e,t){throw nm(e,t)}s(x,"throwError");function Vi(e,t){e.onWarning&&e.onWarning.call(null,nm(e,t))}s(Vi,"throwWarning");var Gp={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Vi(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],Qp.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),vt.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),em.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function $t(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else Aw.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}s($t,"captureSegment");function Zp(e,t,r,n){var i,o,a,c;for(it.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],vt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Zp,"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])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Bp(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Bp(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)Zp(e,t,o[u],r);else Zp(e,t,o,r);else!e.json&&!vt.call(r,i)&&vt.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(kr,"storeMappingPair");function Pc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Pc,"readLineBreak");function Z(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Wt(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(ze(i))for(Pc(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&&Vi(e,"deficient indentation"),n}s(Z,"skipSeparationSpace");function Li(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||me(r)))}s(Li,"testDocumentSeparator");function Sc(e,t){t===1?e.result+=" ":t>1&&(e.result+=it.repeat(`
21
- `,t-1))}s(Sc,"writeFoldedLines");function Cw(e,t,r){var n,i,o,a,c,u,f,l,d=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),me(m)||Tr(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),me(i)||r&&Tr(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),me(i)||r&&Tr(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),me(n))break}else{if(e.position===e.lineStart&&Li(e)||r&&Tr(m))break;if(ze(m))if(u=e.line,f=e.lineStart,l=e.lineIndent,Z(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=f,e.lineIndent=l;break}}c&&($t(e,o,a,!1),Sc(e,e.line-u),o=a=e.position,c=!1),Wt(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return $t(e,o,a,!1),e.result?!0:(e.kind=d,e.result=p,!1)}s(Cw,"readPlainScalar");function Mw(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($t(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 ze(r)?($t(e,n,i,!0),Sc(e,Z(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Li(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}s(Mw,"readSingleQuotedScalar");function Dw(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 $t(e,r,e.position,!0),e.position++,!0;if(c===92){if($t(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),ze(c))Z(e,!1,t);else if(c<256&&tm[c])e.result+=rm[c],e.position++;else if((a=Rw(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Iw(c))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=kw(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else ze(c)?($t(e,r,n,!0),Sc(e,Z(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Li(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}s(Dw,"readDoubleQuotedScalar");function Fw(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,f,l,d,p={},m,y,$,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,d=!1,o=[];else if(g===123)u=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Z(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),y=m=$=null,f=l=!1,g===63&&(c=e.input.charCodeAt(e.position+1),me(c)&&(f=l=!0,e.position++,Z(e,!0,t))),n=e.line,Nr(e,t,Di,!1,!0),y=e.tag,m=e.result,Z(e,!0,t),g=e.input.charCodeAt(e.position),(l||e.line===n)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),Z(e,!0,t),Nr(e,t,Di,!1,!0),$=e.result),d?kr(e,o,p,y,m,$):f?o.push(kr(e,null,p,y,m,$)):o.push(m),Z(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}s(Fw,"readFlowCollection");function Vw(e,t){var r,n,i=_c,o=!1,a=!1,c=t,u=0,f=!1,l,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)_c===i?i=d===43?Up:Ew:x(e,"repeat of a chomping mode identifier");else if((l=Tw(d))>=0)l===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+l-1,a=!0);else break;if(Wt(d)){do d=e.input.charCodeAt(++e.position);while(Wt(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ze(d)&&d!==0)}for(;d!==0;){for(Pc(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),ze(d)){u++;continue}if(e.lineIndent<c){i===Up?e.result+=it.repeat(`
22
- `,o?1+u:u):i===_c&&o&&(e.result+=`
23
- `);break}for(n?Wt(d)?(f=!0,e.result+=it.repeat(`
24
- `,o?1+u:u)):f?(f=!1,e.result+=it.repeat(`
25
- `,u+1)):u===0?o&&(e.result+=" "):e.result+=it.repeat(`
26
- `,u):e.result+=it.repeat(`
27
- `,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!ze(d)&&d!==0;)d=e.input.charCodeAt(++e.position);$t(e,r,e.position,!1)}return!0}s(Vw,"readBlockScalar");function Kp(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),!me(a)));){if(c=!0,e.position++,Z(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Nr(e,t,Xp,!1,!0),o.push(e.result),Z(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(Kp,"readBlockSequence");function Lw(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,f={},l={},d=null,p=null,m=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)&&me(n))g===63?(y&&(kr(e,f,l,d,p,null),d=p=m=null),$=!0,y=!0,i=!0):y?(y=!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,g=n;else if(Nr(e,r,Jp,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);Wt(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),me(g)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(kr(e,f,l,d,p,null),d=p=m=null),$=!0,y=!1,i=!1,d=e.tag,p=e.result;else if($)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if($)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(Nr(e,t,Fi,!0,i)&&(y?p=e.result:m=e.result),y||(kr(e,f,l,d,p,m,o,a),d=p=m=null),Z(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&kr(e,f,l,d,p,null),$&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),$}s(Lw,"readBlockMapping");function zw(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!me(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Qp.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),qw.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!em.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:vt.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(zw,"readTagProperty");function Uw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!me(r)&&!Tr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(Uw,"readAnchorProperty");function Bw(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!me(n)&&!Tr(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),vt.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Z(e,!0,-1),!0}s(Bw,"readAlias");function Nr(e,t,r,n,i){var o,a,c,u=1,f=!1,l=!1,d,p,m,y,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=Fi===r||Xp===r,n&&Z(e,!0,-1)&&(f=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;zw(e)||Uw(e);)Z(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||Fi===r)&&(Di===r||Jp===r?y=t:y=t+1,$=e.position-e.lineStart,u===1?c&&(Kp(e,$)||Lw(e,$,y))||Fw(e,y)?l=!0:(a&&Vw(e,y)||Mw(e,y)||Dw(e,y)?l=!0:Bw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):Cw(e,y,Di===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=c&&Kp(e,$))),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+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else vt.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}s(Nr,"composeNode");function Hw(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&&(Z(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&&!me(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;Wt(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ze(a));break}if(ze(a))break;for(r=e.position;a!==0&&!me(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Pc(e),vt.call(Gp,n)?Gp[n](e,n,i):Vi(e,'unknown document directive "'+n+'"')}if(Z(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,Z(e,!0,-1)):o&&x(e,"directives end mark is expected"),Nr(e,e.lineIndent-1,Fi,!1,!0),Z(e,!0,-1),e.checkLineBreaks&&jw.test(e.input.slice(t,e.position))&&Vi(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Li(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Z(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(Hw,"readDocument");function im(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 Nw(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;)Hw(r);return r.documents}s(im,"loadDocuments");function om(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=im(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(om,"loadAll");function sm(e,t){var r=im(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Wp("expected a single document in the stream, but found more")}}s(sm,"load");function Gw(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),om(e,t,it.extend({schema:Yp},r))}s(Gw,"safeLoadAll");function Zw(e,t){return sm(e,it.extend({schema:Yp},t))}s(Zw,"safeLoad");qn.exports.loadAll=om;qn.exports.load=sm;qn.exports.safeLoadAll=Gw;qn.exports.safeLoad=Zw});var qm=h((C1,Ec)=>{"use strict";var Rn=Ht(),Tn=qr(),Kw=jn(),Ww=Rr(),hm=Object.prototype.toString,ym=Object.prototype.hasOwnProperty,Yw=9,In=10,Jw=13,Xw=32,Qw=33,eO=34,gm=35,tO=37,rO=38,nO=39,iO=42,$m=44,oO=45,vm=58,sO=61,aO=62,cO=63,uO=64,bm=91,_m=93,fO=96,Pm=123,lO=124,Sm=125,ie={};ie[0]="\\0";ie[7]="\\a";ie[8]="\\b";ie[9]="\\t";ie[10]="\\n";ie[11]="\\v";ie[12]="\\f";ie[13]="\\r";ie[27]="\\e";ie[34]='\\"';ie[92]="\\\\";ie[133]="\\N";ie[160]="\\_";ie[8232]="\\L";ie[8233]="\\P";var dO=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function pO(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(pO,"compileStyleMap");function cm(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 Tn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Rn.repeat("0",n-t.length)+t}s(cm,"encodeHex");function mO(e){this.schema=e.schema||Kw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Rn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=pO(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(mO,"State");function um(e,t){for(var r=Rn.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
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),Yd.repeat(" ",t)+n+c+o+`
17
+ `+Yd.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");gc.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=gc});var K=h((JI,ep)=>{"use strict";var Qd=Tr(),ix=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ox=["scalar","sequence","mapping"];function sx(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(sx,"compileStyleAliases");function ax(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(ix.indexOf(r)===-1)throw new Qd('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=sx(t.styleAliases||null),ox.indexOf(this.kind)===-1)throw new Qd('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(ax,"Type");ep.exports=ax});var Gt=h((QI,rp)=>{"use strict";var tp=Ht(),Ci=Tr(),cx=K();function $c(e,t,r){var n=[];return e.include.forEach(function(i){r=$c(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($c,"compileList");function ux(){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(ux,"compileMap");function Rr(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 Ci("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=$c(this,"implicit",[]),this.compiledExplicit=$c(this,"explicit",[]),this.compiledTypeMap=ux(this.compiledImplicit,this.compiledExplicit)}s(Rr,"Schema");Rr.DEFAULT=null;Rr.create=s(function(){var t,r;switch(arguments.length){case 1:t=Rr.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ci("Wrong number of arguments for Schema.create function")}if(t=tp.toArray(t),r=tp.toArray(r),!t.every(function(n){return n instanceof Rr}))throw new Ci("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof cx}))throw new Ci("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Rr({include:t,explicit:r})},"createSchema");rp.exports=Rr});var ip=h((tT,np)=>{"use strict";var fx=K();np.exports=new fx("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var sp=h((nT,op)=>{"use strict";var lx=K();op.exports=new lx("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var cp=h((oT,ap)=>{"use strict";var dx=K();ap.exports=new dx("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Mi=h((aT,up)=>{"use strict";var px=Gt();up.exports=new px({explicit:[ip(),sp(),cp()]})});var lp=h((cT,fp)=>{"use strict";var mx=K();function hx(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(hx,"resolveYamlNull");function yx(){return null}s(yx,"constructYamlNull");function gx(e){return e===null}s(gx,"isNull");fp.exports=new mx("tag:yaml.org,2002:null",{kind:"scalar",resolve:hx,construct:yx,predicate:gx,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 pp=h((fT,dp)=>{"use strict";var $x=K();function vx(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(vx,"resolveYamlBoolean");function bx(e){return e==="true"||e==="True"||e==="TRUE"}s(bx,"constructYamlBoolean");function _x(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(_x,"isBoolean");dp.exports=new $x("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vx,construct:bx,predicate:_x,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 hp=h((dT,mp)=>{"use strict";var Px=Ht(),Sx=K();function xx(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(xx,"isHexCode");function wx(e){return 48<=e&&e<=55}s(wx,"isOctCode");function Ox(e){return 48<=e&&e<=57}s(Ox,"isDecCode");function Ex(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(!xx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!wx(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(!Ox(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(Ex,"resolveYamlInteger");function jx(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(jx,"constructYamlInteger");function Ax(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Px.isNegativeZero(e)}s(Ax,"isInteger");mp.exports=new Sx("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ex,construct:jx,predicate:Ax,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 $p=h((mT,gp)=>{"use strict";var yp=Ht(),qx=K(),Ix=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 Tx(e){return!(e===null||!Ix.test(e)||e[e.length-1]==="_")}s(Tx,"resolveYamlFloat");function Rx(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(Rx,"constructYamlFloat");var Nx=/^[-+]?[0-9]+e/;function kx(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(yp.isNegativeZero(e))return"-0.0";return r=e.toString(10),Nx.test(r)?r.replace("e",".e"):r}s(kx,"representYamlFloat");function Cx(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||yp.isNegativeZero(e))}s(Cx,"isFloat");gp.exports=new qx("tag:yaml.org,2002:float",{kind:"scalar",resolve:Tx,construct:Rx,predicate:Cx,represent:kx,defaultStyle:"lowercase"})});var vc=h((yT,vp)=>{"use strict";var Mx=Gt();vp.exports=new Mx({include:[Mi()],implicit:[lp(),pp(),hp(),$p()]})});var bc=h((gT,bp)=>{"use strict";var Dx=Gt();bp.exports=new Dx({include:[vc()]})});var xp=h(($T,Sp)=>{"use strict";var Fx=K(),_p=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pp=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 Vx(e){return e===null?!1:_p.exec(e)!==null||Pp.exec(e)!==null}s(Vx,"resolveYamlTimestamp");function Lx(e){var t,r,n,i,o,a,c,u=0,f=null,l,d,p;if(t=_p.exec(e),t===null&&(t=Pp.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],d=+(t[11]||0),f=(l*60+d)*6e4,t[9]==="-"&&(f=-f)),p=new Date(Date.UTC(r,n,i,o,a,c,u)),f&&p.setTime(p.getTime()-f),p}s(Lx,"constructYamlTimestamp");function zx(e){return e.toISOString()}s(zx,"representYamlTimestamp");Sp.exports=new Fx("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Vx,construct:Lx,instanceOf:Date,represent:zx})});var Op=h((bT,wp)=>{"use strict";var Ux=K();function Bx(e){return e==="<<"||e===null}s(Bx,"resolveYamlMerge");wp.exports=new Ux("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bx})});var Ap=h((PT,jp)=>{"use strict";var Zt;try{Ep=require,Zt=Ep("buffer").Buffer}catch{}var Ep,Hx=K(),_c=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function Gx(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=_c;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(Gx,"resolveYamlBinary");function Zx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=_c,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),Zt?Zt.from?Zt.from(c):new Zt(c):c}s(Zx,"constructYamlBinary");function Kx(e){var t="",r=0,n,i,o=e.length,a=_c;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(Kx,"representYamlBinary");function Wx(e){return Zt&&Zt.isBuffer(e)}s(Wx,"isBinary");jp.exports=new Hx("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gx,construct:Zx,predicate:Wx,represent:Kx})});var Ip=h((xT,qp)=>{"use strict";var Yx=K(),Jx=Object.prototype.hasOwnProperty,Xx=Object.prototype.toString;function Qx(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,Xx.call(i)!=="[object Object]")return!1;for(o in i)if(Jx.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(Qx,"resolveYamlOmap");function ew(e){return e!==null?e:[]}s(ew,"constructYamlOmap");qp.exports=new Yx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qx,construct:ew})});var Rp=h((OT,Tp)=>{"use strict";var tw=K(),rw=Object.prototype.toString;function nw(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],rw.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(nw,"resolveYamlPairs");function iw(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(iw,"constructYamlPairs");Tp.exports=new tw("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nw,construct:iw})});var kp=h((jT,Np)=>{"use strict";var ow=K(),sw=Object.prototype.hasOwnProperty;function aw(e){if(e===null)return!0;var t,r=e;for(t in r)if(sw.call(r,t)&&r[t]!==null)return!1;return!0}s(aw,"resolveYamlSet");function cw(e){return e!==null?e:{}}s(cw,"constructYamlSet");Np.exports=new ow("tag:yaml.org,2002:set",{kind:"mapping",resolve:aw,construct:cw})});var Nr=h((qT,Cp)=>{"use strict";var uw=Gt();Cp.exports=new uw({include:[bc()],implicit:[xp(),Op()],explicit:[Ap(),Ip(),Rp(),kp()]})});var Dp=h((IT,Mp)=>{"use strict";var fw=K();function lw(){return!0}s(lw,"resolveJavascriptUndefined");function dw(){}s(dw,"constructJavascriptUndefined");function pw(){return""}s(pw,"representJavascriptUndefined");function mw(e){return typeof e>"u"}s(mw,"isUndefined");Mp.exports=new fw("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lw,construct:dw,predicate:mw,represent:pw})});var Vp=h((RT,Fp)=>{"use strict";var hw=K();function yw(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(yw,"resolveJavascriptRegExp");function gw(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(gw,"constructJavascriptRegExp");function $w(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s($w,"representJavascriptRegExp");function vw(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(vw,"isRegExp");Fp.exports=new hw("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yw,construct:gw,predicate:vw,represent:$w})});var Up=h((kT,zp)=>{"use strict";var Di;try{Lp=require,Di=Lp("esprima")}catch{typeof window<"u"&&(Di=window.esprima)}var Lp,bw=K();function _w(e){if(e===null)return!1;try{var t="("+e+")",r=Di.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(_w,"resolveJavascriptFunction");function Pw(e){var t="("+e+")",r=Di.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(Pw,"constructJavascriptFunction");function Sw(e){return e.toString()}s(Sw,"representJavascriptFunction");function xw(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xw,"isFunction");zp.exports=new bw("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_w,construct:Pw,predicate:xw,represent:Sw})});var In=h((MT,Hp)=>{"use strict";var Bp=Gt();Hp.exports=Bp.DEFAULT=new Bp({include:[Nr()],explicit:[Dp(),Vp(),Up()]})});var fm=h((DT,Tn)=>{"use strict";var nt=Ht(),Xp=Tr(),ww=Xd(),Qp=Nr(),Ow=In(),$t=Object.prototype.hasOwnProperty,Fi=1,em=2,tm=3,Vi=4,Pc=1,Ew=2,Gp=3,jw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Aw=/[\x85\u2028\u2029]/,qw=/[,\[\]\{\}]/,rm=/^(?:!|!!|![a-z\-]+!)$/i,nm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Zp(e){return Object.prototype.toString.call(e)}s(Zp,"_class");function ze(e){return e===10||e===13}s(ze,"is_EOL");function Wt(e){return e===9||e===32}s(Wt,"is_WHITE_SPACE");function me(e){return e===9||e===32||e===10||e===13}s(me,"is_WS_OR_EOL");function kr(e){return e===44||e===91||e===93||e===123||e===125}s(kr,"is_FLOW_INDICATOR");function Iw(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(Iw,"fromHexCode");function Tw(e){return e===120?2:e===117?4:e===85?8:0}s(Tw,"escapedHexLen");function Rw(e){return 48<=e&&e<=57?e-48:-1}s(Rw,"fromDecimalCode");function Kp(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(Kp,"simpleEscapeSequence");function Nw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(Nw,"charFromCodepoint");var im=new Array(256),om=new Array(256);for(Kt=0;Kt<256;Kt++)im[Kt]=Kp(Kt)?1:0,om[Kt]=Kp(Kt);var Kt;function kw(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ow,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(kw,"State");function sm(e,t){return new Xp(t,new ww(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(sm,"generateError");function S(e,t){throw sm(e,t)}s(S,"throwError");function Li(e,t){e.onWarning&&e.onWarning.call(null,sm(e,t))}s(Li,"throwWarning");var Wp={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&S(t,"duplication of %YAML directive"),n.length!==1&&S(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&S(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&S(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Li(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&S(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],rm.test(i)||S(t,"ill-formed tag handle (first argument) of the TAG directive"),$t.call(t.tagMap,i)&&S(t,'there is a previously declared suffix for "'+i+'" tag handle'),nm.test(o)||S(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function gt(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||S(e,"expected valid JSON character");else jw.test(c)&&S(e,"the stream contains non-printable characters");e.result+=c}}s(gt,"captureSegment");function Yp(e,t,r,n){var i,o,a,c;for(nt.isObject(r)||S(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],$t.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Yp,"mergeMappings");function Cr(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])&&S(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Zp(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Zp(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)Yp(e,t,o[u],r);else Yp(e,t,o,r);else!e.json&&!$t.call(r,i)&&$t.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,S(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(Cr,"storeMappingPair");function Sc(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++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Sc,"readLineBreak");function H(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Wt(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(ze(i))for(Sc(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&&Li(e,"deficient indentation"),n}s(H,"skipSeparationSpace");function zi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||me(r)))}s(zi,"testDocumentSeparator");function xc(e,t){t===1?e.result+=" ":t>1&&(e.result+=nt.repeat(`
21
+ `,t-1))}s(xc,"writeFoldedLines");function Cw(e,t,r){var n,i,o,a,c,u,f,l,d=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),me(m)||kr(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),me(i)||r&&kr(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),me(i)||r&&kr(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),me(n))break}else{if(e.position===e.lineStart&&zi(e)||r&&kr(m))break;if(ze(m))if(u=e.line,f=e.lineStart,l=e.lineIndent,H(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=f,e.lineIndent=l;break}}c&&(gt(e,o,a,!1),xc(e,e.line-u),o=a=e.position,c=!1),Wt(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return gt(e,o,a,!1),e.result?!0:(e.kind=d,e.result=p,!1)}s(Cw,"readPlainScalar");function Mw(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(gt(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 ze(r)?(gt(e,n,i,!0),xc(e,H(e,!1,t)),n=i=e.position):e.position===e.lineStart&&zi(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}s(Mw,"readSingleQuotedScalar");function Dw(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 gt(e,r,e.position,!0),e.position++,!0;if(c===92){if(gt(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),ze(c))H(e,!1,t);else if(c<256&&im[c])e.result+=om[c],e.position++;else if((a=Tw(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Iw(c))>=0?o=(o<<4)+a:S(e,"expected hexadecimal character");e.result+=Nw(o),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else ze(c)?(gt(e,r,n,!0),xc(e,H(e,!1,t)),r=n=e.position):e.position===e.lineStart&&zi(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}s(Dw,"readDoubleQuotedScalar");function Fw(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,f,l,d,p={},m,y,$,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,d=!1,o=[];else if(g===123)u=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(H(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r||S(e,"missed comma between flow collection entries"),y=m=$=null,f=l=!1,g===63&&(c=e.input.charCodeAt(e.position+1),me(c)&&(f=l=!0,e.position++,H(e,!0,t))),n=e.line,Mr(e,t,Fi,!1,!0),y=e.tag,m=e.result,H(e,!0,t),g=e.input.charCodeAt(e.position),(l||e.line===n)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),H(e,!0,t),Mr(e,t,Fi,!1,!0),$=e.result),d?Cr(e,o,p,y,m,$):f?o.push(Cr(e,null,p,y,m,$)):o.push(m),H(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}S(e,"unexpected end of the stream within a flow collection")}s(Fw,"readFlowCollection");function Vw(e,t){var r,n,i=Pc,o=!1,a=!1,c=t,u=0,f=!1,l,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Pc===i?i=d===43?Gp:Ew:S(e,"repeat of a chomping mode identifier");else if((l=Rw(d))>=0)l===0?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?S(e,"repeat of an indentation width identifier"):(c=t+l-1,a=!0);else break;if(Wt(d)){do d=e.input.charCodeAt(++e.position);while(Wt(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ze(d)&&d!==0)}for(;d!==0;){for(Sc(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),ze(d)){u++;continue}if(e.lineIndent<c){i===Gp?e.result+=nt.repeat(`
22
+ `,o?1+u:u):i===Pc&&o&&(e.result+=`
23
+ `);break}for(n?Wt(d)?(f=!0,e.result+=nt.repeat(`
24
+ `,o?1+u:u)):f?(f=!1,e.result+=nt.repeat(`
25
+ `,u+1)):u===0?o&&(e.result+=" "):e.result+=nt.repeat(`
26
+ `,u):e.result+=nt.repeat(`
27
+ `,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!ze(d)&&d!==0;)d=e.input.charCodeAt(++e.position);gt(e,r,e.position,!1)}return!0}s(Vw,"readBlockScalar");function Jp(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),!me(a)));){if(c=!0,e.position++,H(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Mr(e,t,tm,!1,!0),o.push(e.result),H(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)S(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(Jp,"readBlockSequence");function Lw(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,f={},l={},d=null,p=null,m=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)&&me(n))g===63?(y&&(Cr(e,f,l,d,p,null),d=p=m=null),$=!0,y=!0,i=!0):y?(y=!1,i=!0):S(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(Mr(e,r,em,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);Wt(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),me(g)||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Cr(e,f,l,d,p,null),d=p=m=null),$=!0,y=!1,i=!1,d=e.tag,p=e.result;else if($)S(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if($)S(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)&&(Mr(e,t,Vi,!0,i)&&(y?p=e.result:m=e.result),y||(Cr(e,f,l,d,p,m,o,a),d=p=m=null),H(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Cr(e,f,l,d,p,null),$&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),$}s(Lw,"readBlockMapping");function zw(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&&S(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)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!me(a);)a===33&&(n?S(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),rm.test(i)||S(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),qw.test(o)&&S(e,"tag suffix cannot contain flow indicator characters")}return o&&!nm.test(o)&&S(e,"tag name cannot contain such characters: "+o),r?e.tag=o:$t.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:S(e,'undeclared tag handle "'+i+'"'),!0}s(zw,"readTagProperty");function Uw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&S(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!me(r)&&!kr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(Uw,"readAnchorProperty");function Bw(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!me(n)&&!kr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),$t.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],H(e,!0,-1),!0}s(Bw,"readAlias");function Mr(e,t,r,n,i){var o,a,c,u=1,f=!1,l=!1,d,p,m,y,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=Vi===r||tm===r,n&&H(e,!0,-1)&&(f=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;zw(e)||Uw(e);)H(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||Vi===r)&&(Fi===r||em===r?y=t:y=t+1,$=e.position-e.lineStart,u===1?c&&(Jp(e,$)||Lw(e,$,y))||Fw(e,y)?l=!0:(a&&Vw(e,y)||Mw(e,y)||Dw(e,y)?l=!0:Bw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&S(e,"alias node should not have any properties")):Cw(e,y,Fi===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=c&&Jp(e,$))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&S(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else $t.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&S(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):S(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}s(Mr,"composeNode");function Hw(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&&(H(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&&!me(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&S(e,"directive name must not be less than one character in length");a!==0;){for(;Wt(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ze(a));break}if(ze(a))break;for(r=e.position;a!==0&&!me(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Sc(e),$t.call(Wp,n)?Wp[n](e,n,i):Li(e,'unknown document directive "'+n+'"')}if(H(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,H(e,!0,-1)):o&&S(e,"directives end mark is expected"),Mr(e,e.lineIndent-1,Vi,!1,!0),H(e,!0,-1),e.checkLineBreaks&&Aw.test(e.input.slice(t,e.position))&&Li(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&zi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,H(e,!0,-1));return}if(e.position<e.length-1)S(e,"end of the stream or a document separator is expected");else return}s(Hw,"readDocument");function am(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 kw(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,S(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;)Hw(r);return r.documents}s(am,"loadDocuments");function cm(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=am(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(cm,"loadAll");function um(e,t){var r=am(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Xp("expected a single document in the stream, but found more")}}s(um,"load");function Gw(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),cm(e,t,nt.extend({schema:Qp},r))}s(Gw,"safeLoadAll");function Zw(e,t){return um(e,nt.extend({schema:Qp},t))}s(Zw,"safeLoad");Tn.exports.loadAll=cm;Tn.exports.load=um;Tn.exports.safeLoadAll=Gw;Tn.exports.safeLoad=Zw});var Rm=h((VT,jc)=>{"use strict";var Nn=Ht(),kn=Tr(),Kw=In(),Ww=Nr(),$m=Object.prototype.toString,vm=Object.prototype.hasOwnProperty,Yw=9,Rn=10,Jw=13,Xw=32,Qw=33,eO=34,bm=35,tO=37,rO=38,nO=39,iO=42,_m=44,oO=45,Pm=58,sO=61,aO=62,cO=63,uO=64,Sm=91,xm=93,fO=96,wm=123,lO=124,Om=125,ie={};ie[0]="\\0";ie[7]="\\a";ie[8]="\\b";ie[9]="\\t";ie[10]="\\n";ie[11]="\\v";ie[12]="\\f";ie[13]="\\r";ie[27]="\\e";ie[34]='\\"';ie[92]="\\\\";ie[133]="\\N";ie[160]="\\_";ie[8232]="\\L";ie[8233]="\\P";var dO=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function pO(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&&vm.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(pO,"compileStyleMap");function lm(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 kn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Nn.repeat("0",n-t.length)+t}s(lm,"encodeHex");function mO(e){this.schema=e.schema||Kw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Nn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=pO(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(mO,"State");function dm(e,t){for(var r=Nn.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
29
29
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(o+=r),o+=a;return o}s(um,"indentString");function xc(e,t){return`
31
- `+Rn.repeat(" ",e.indent*t)}s(xc,"generateNextLine");function hO(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(hO,"testImplicitResolving");function Oc(e){return e===Xw||e===Yw}s(Oc,"isWhitespace");function Cr(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(Cr,"isPrintable");function yO(e){return Cr(e)&&!Oc(e)&&e!==65279&&e!==Jw&&e!==In}s(yO,"isNsChar");function fm(e,t){return Cr(e)&&e!==65279&&e!==$m&&e!==bm&&e!==_m&&e!==Pm&&e!==Sm&&e!==vm&&(e!==gm||t&&yO(t))}s(fm,"isPlainSafe");function gO(e){return Cr(e)&&e!==65279&&!Oc(e)&&e!==oO&&e!==cO&&e!==vm&&e!==$m&&e!==bm&&e!==_m&&e!==Pm&&e!==Sm&&e!==gm&&e!==rO&&e!==iO&&e!==Qw&&e!==lO&&e!==sO&&e!==aO&&e!==nO&&e!==eO&&e!==tO&&e!==uO&&e!==fO}s(gO,"isPlainSafeFirst");function xm(e){var t=/^\n* /;return t.test(e)}s(xm,"needIndentIndicator");var wm=1,Om=2,Em=3,Am=4,zi=5;function $O(e,t,r,n,i){var o,a,c,u=!1,f=!1,l=n!==-1,d=-1,p=gO(e.charCodeAt(0))&&!Oc(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Cr(a))return zi;c=o>0?e.charCodeAt(o-1):null,p=p&&fm(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===In)u=!0,l&&(f=f||o-d-1>n&&e[d+1]!==" ",d=o);else if(!Cr(a))return zi;c=o>0?e.charCodeAt(o-1):null,p=p&&fm(a,c)}f=f||l&&o-d-1>n&&e[d+1]!==" "}return!u&&!f?p&&!i(e)?wm:Om:r>9&&xm(e)?zi:f?Am:Em}s($O,"chooseScalarStyle");function vO(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&dO.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 hO(e,u)}switch(s(c,"testAmbiguity"),$O(t,a,e.indent,o,c)){case wm:return t;case Om:return"'"+t.replace(/'/g,"''")+"'";case Em:return"|"+lm(t,e.indent)+dm(um(t,i));case Am:return">"+lm(t,e.indent)+dm(um(bO(t,o),i));case zi:return'"'+_O(t,o)+'"';default:throw new Tn("impossible error: invalid scalar style")}}()}s(vO,"writeScalar");function lm(e,t){var r=xm(e)?String(t):"",n=e[e.length-1]===`
30
+ `&&(o+=r),o+=a;return o}s(dm,"indentString");function wc(e,t){return`
31
+ `+Nn.repeat(" ",e.indent*t)}s(wc,"generateNextLine");function hO(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(hO,"testImplicitResolving");function Ec(e){return e===Xw||e===Yw}s(Ec,"isWhitespace");function Dr(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(Dr,"isPrintable");function yO(e){return Dr(e)&&!Ec(e)&&e!==65279&&e!==Jw&&e!==Rn}s(yO,"isNsChar");function pm(e,t){return Dr(e)&&e!==65279&&e!==_m&&e!==Sm&&e!==xm&&e!==wm&&e!==Om&&e!==Pm&&(e!==bm||t&&yO(t))}s(pm,"isPlainSafe");function gO(e){return Dr(e)&&e!==65279&&!Ec(e)&&e!==oO&&e!==cO&&e!==Pm&&e!==_m&&e!==Sm&&e!==xm&&e!==wm&&e!==Om&&e!==bm&&e!==rO&&e!==iO&&e!==Qw&&e!==lO&&e!==sO&&e!==aO&&e!==nO&&e!==eO&&e!==tO&&e!==uO&&e!==fO}s(gO,"isPlainSafeFirst");function Em(e){var t=/^\n* /;return t.test(e)}s(Em,"needIndentIndicator");var jm=1,Am=2,qm=3,Im=4,Ui=5;function $O(e,t,r,n,i){var o,a,c,u=!1,f=!1,l=n!==-1,d=-1,p=gO(e.charCodeAt(0))&&!Ec(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Dr(a))return Ui;c=o>0?e.charCodeAt(o-1):null,p=p&&pm(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Rn)u=!0,l&&(f=f||o-d-1>n&&e[d+1]!==" ",d=o);else if(!Dr(a))return Ui;c=o>0?e.charCodeAt(o-1):null,p=p&&pm(a,c)}f=f||l&&o-d-1>n&&e[d+1]!==" "}return!u&&!f?p&&!i(e)?jm:Am:r>9&&Em(e)?Ui:f?Im:qm}s($O,"chooseScalarStyle");function vO(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&dO.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 hO(e,u)}switch(s(c,"testAmbiguity"),$O(t,a,e.indent,o,c)){case jm:return t;case Am:return"'"+t.replace(/'/g,"''")+"'";case qm:return"|"+mm(t,e.indent)+hm(dm(t,i));case Im:return">"+mm(t,e.indent)+hm(dm(bO(t,o),i));case Ui:return'"'+_O(t,o)+'"';default:throw new kn("impossible error: invalid scalar style")}}()}s(vO,"writeScalar");function mm(e,t){var r=Em(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
34
  `),o=i?"+":n?"":"-";return r+o+`
35
- `}s(lm,"blockHeader");function dm(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}s(dm,"dropEndingNewline");function bO(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,pm(e.slice(0,f),t)}(),i=e[0]===`
35
+ `}s(mm,"blockHeader");function hm(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}s(hm,"dropEndingNewline");function bO(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,ym(e.slice(0,f),t)}(),i=e[0]===`
38
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
- `:"")+pm(u,t),i=o}return n}s(bO,"foldString");function pm(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+=`
39
+ `:"")+ym(u,t),i=o}return n}s(bO,"foldString");function ym(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
40
  `+e.slice(i,o),i=o+1),a=c;return u+=`
41
41
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(pm,"foldLine");function _O(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+=cm((r-55296)*1024+n-56320+65536),o++;continue}i=ie[r],t+=!i&&Cr(r)?e[o]:i||cm(r)}return t}s(_O,"escapeString");function PO(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Yt(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(PO,"writeFlowSequence");function SO(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Yt(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=xc(e,t)),e.dump&&In===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(SO,"writeBlockSequence");function xO(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],Yt(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Yt(e,t,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}s(xO,"writeFlowMapping");function wO(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,f,l,d,p;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)p="",(!n||c!==0)&&(p+=xc(e,t)),f=a[c],l=r[f],Yt(e,t+1,f,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&In===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=xc(e,t)),Yt(e,t+1,l,!0,d)&&(e.dump&&In===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}s(wO,"writeBlockMapping");function mm(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,hm.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 Tn("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(mm,"detectType");function Yt(e,t,r,n,i,o){e.tag=null,e.dump=r,mm(e,r,!1)||mm(e,r,!0);var a=hm.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?(wO(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(xO(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?(SO(e,l,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(PO(e,l,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&vO(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Tn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Yt,"writeNode");function OO(e,t){var r=[],n=[],i,o;for(wc(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(OO,"getDuplicateReferences");function wc(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)wc(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)wc(e[n[i]],t,r)}s(wc,"inspectNode");function jm(e,t){t=t||{};var r=new mO(t);return r.noRefs||OO(e,r),Yt(r,0,e,!0,!0)?r.dump+`
43
- `:""}s(jm,"dump");function EO(e,t){return jm(e,Rn.extend({schema:Ww},t))}s(EO,"safeDump");Ec.exports.dump=jm;Ec.exports.safeDump=EO});var Rm=h((D1,U)=>{"use strict";var Ui=am(),Im=qm();function Bi(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Bi,"deprecated");U.exports.Type=W();U.exports.Schema=Gt();U.exports.FAILSAFE_SCHEMA=Ci();U.exports.JSON_SCHEMA=$c();U.exports.CORE_SCHEMA=vc();U.exports.DEFAULT_SAFE_SCHEMA=Rr();U.exports.DEFAULT_FULL_SCHEMA=jn();U.exports.load=Ui.load;U.exports.loadAll=Ui.loadAll;U.exports.safeLoad=Ui.safeLoad;U.exports.safeLoadAll=Ui.safeLoadAll;U.exports.dump=Im.dump;U.exports.safeDump=Im.safeDump;U.exports.YAMLException=qr();U.exports.MINIMAL_SCHEMA=Ci();U.exports.SAFE_SCHEMA=Rr();U.exports.DEFAULT_SCHEMA=jn();U.exports.scan=Bi("scan");U.exports.parse=Bi("parse");U.exports.compose=Bi("compose");U.exports.addConstructor=Bi("addConstructor")});var km=h((V1,Tm)=>{"use strict";var AO=Rm();Tm.exports=AO});var Cm=h((L1,Nm)=>{"use strict";var{ParserError:jO}=Ie(),qO=km();Nm.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 qO.safeLoad(t)}catch(r){throw new jO(r.message,e.url)}else return t}}});var Dm=h((z1,Mm)=>{"use strict";var{ParserError:IO}=Ie(),RO=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;Mm.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&RO.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 IO("data is not text",e.url)}}});var Vm=h((U1,Fm)=>{"use strict";var TO=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;Fm.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&TO.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var Um=h((B1,zm)=>{"use strict";var kO=require("fs"),{ono:Ac}=we(),Lm=ge(),{ResolverError:jc}=Ie();zm.exports={order:100,canRead(e){return Lm.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Lm.toFileSystemPath(e.url)}catch(i){r(new jc(Ac.uri(i,`Malformed URI: ${e.url}`),e.url))}try{kO.readFile(n,(i,o)=>{i?r(new jc(Ac(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new jc(Ac(i,`Error opening file "${n}"`),n))}})}}});var Zm=h((H1,Gm)=>{"use strict";var NO=require("http"),CO=require("https"),{ono:Hi}=we(),kn=ge(),{ResolverError:Bm}=Ie();Gm.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),Hm(t,this)}};function Hm(e,t,r){return new Promise((n,i)=>{e=kn.parse(e),r=r||[],r.push(e.href),MO(e,t).then(o=>{if(o.statusCode>=400)throw Hi({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new Bm(Hi({status:o.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(ym,"foldLine");function _O(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+=lm((r-55296)*1024+n-56320+65536),o++;continue}i=ie[r],t+=!i&&Dr(r)?e[o]:i||lm(r)}return t}s(_O,"escapeString");function PO(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Yt(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(PO,"writeFlowSequence");function SO(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Yt(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=wc(e,t)),e.dump&&Rn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(SO,"writeBlockSequence");function xO(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],Yt(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Yt(e,t,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}s(xO,"writeFlowMapping");function wO(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,f,l,d,p;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new kn("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)p="",(!n||c!==0)&&(p+=wc(e,t)),f=a[c],l=r[f],Yt(e,t+1,f,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Rn===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=wc(e,t)),Yt(e,t+1,l,!0,d)&&(e.dump&&Rn===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}s(wO,"writeBlockMapping");function gm(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,$m.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(vm.call(c.represent,u))n=c.represent[u](t,u);else throw new kn("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(gm,"detectType");function Yt(e,t,r,n,i,o){e.tag=null,e.dump=r,gm(e,r,!1)||gm(e,r,!0);var a=$m.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?(wO(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(xO(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?(SO(e,l,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(PO(e,l,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&vO(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new kn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Yt,"writeNode");function OO(e,t){var r=[],n=[],i,o;for(Oc(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(OO,"getDuplicateReferences");function Oc(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)Oc(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Oc(e[n[i]],t,r)}s(Oc,"inspectNode");function Tm(e,t){t=t||{};var r=new mO(t);return r.noRefs||OO(e,r),Yt(r,0,e,!0,!0)?r.dump+`
43
+ `:""}s(Tm,"dump");function EO(e,t){return Tm(e,Nn.extend({schema:Ww},t))}s(EO,"safeDump");jc.exports.dump=Tm;jc.exports.safeDump=EO});var km=h((zT,z)=>{"use strict";var Bi=fm(),Nm=Rm();function Hi(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Hi,"deprecated");z.exports.Type=K();z.exports.Schema=Gt();z.exports.FAILSAFE_SCHEMA=Mi();z.exports.JSON_SCHEMA=vc();z.exports.CORE_SCHEMA=bc();z.exports.DEFAULT_SAFE_SCHEMA=Nr();z.exports.DEFAULT_FULL_SCHEMA=In();z.exports.load=Bi.load;z.exports.loadAll=Bi.loadAll;z.exports.safeLoad=Bi.safeLoad;z.exports.safeLoadAll=Bi.safeLoadAll;z.exports.dump=Nm.dump;z.exports.safeDump=Nm.safeDump;z.exports.YAMLException=Tr();z.exports.MINIMAL_SCHEMA=Mi();z.exports.SAFE_SCHEMA=Nr();z.exports.DEFAULT_SCHEMA=In();z.exports.scan=Hi("scan");z.exports.parse=Hi("parse");z.exports.compose=Hi("compose");z.exports.addConstructor=Hi("addConstructor")});var Mm=h((BT,Cm)=>{"use strict";var jO=km();Cm.exports=jO});var Fm=h((HT,Dm)=>{"use strict";var{ParserError:AO}=Ie(),qO=Mm();Dm.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 qO.safeLoad(t)}catch(r){throw new AO(r.message,e.url)}else return t}}});var Lm=h((GT,Vm)=>{"use strict";var{ParserError:IO}=Ie(),TO=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;Vm.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&TO.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 IO("data is not text",e.url)}}});var Um=h((ZT,zm)=>{"use strict";var RO=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;zm.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&RO.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var Gm=h((KT,Hm)=>{"use strict";var NO=require("fs"),{ono:Ac}=we(),Bm=ge(),{ResolverError:qc}=Ie();Hm.exports={order:100,canRead(e){return Bm.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Bm.toFileSystemPath(e.url)}catch(i){r(new qc(Ac.uri(i,`Malformed URI: ${e.url}`),e.url))}try{NO.readFile(n,(i,o)=>{i?r(new qc(Ac(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new qc(Ac(i,`Error opening file "${n}"`),n))}})}}});var Ym=h((WT,Wm)=>{"use strict";var kO=require("http"),CO=require("https"),{ono:Gi}=we(),Cn=ge(),{ResolverError:Zm}=Ie();Wm.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Cn.isHttp(e.url)},read(e){let t=Cn.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Cn.parse(location.href).protocol),Km(t,this)}};function Km(e,t,r){return new Promise((n,i)=>{e=Cn.parse(e),r=r||[],r.push(e.href),MO(e,t).then(o=>{if(o.statusCode>=400)throw Gi({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new Zm(Gi({status:o.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);Hm(a,t,r).then(n,i)}else throw Hi({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new Bm(Hi(o,`Error downloading ${e.href}`),e.href))})})}s(Hm,"download");function MO(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?CO:NO).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(MO,"get")});var Rc=h((Z1,Wm)=>{"use strict";var DO=Bd(),FO=Cm(),VO=Dm(),LO=Vm(),zO=Um(),UO=Zm();Wm.exports=Ic;function Ic(e){qc(this,Ic.defaults),qc(this,e)}s(Ic,"$RefParserOptions");Ic.defaults={parse:{json:DO,yaml:FO,text:VO,binary:LO},resolve:{file:zO,http:UO,external:!0},continueOnError:!1,dereference:{circular:!0}};function qc(e,t){if(Km(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];Km(o)?e[i]=qc(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(qc,"merge");function Km(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(Km,"isMergeable")});var Tc=h((W1,Jm)=>{"use strict";var Ym=Rc();Jm.exports=BO;function BO(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 Ym||(n=new Ym(n)),{path:t,schema:r,options:n,callback:i}}s(BO,"normalizeArgs")});var Qm=h((J1,Xm)=>{"use strict";var kc=Rc(),HO=dc(),GO=hc(),ZO=require("util");Xm.exports=Gi;function Gi(e){kc.call(this,Gi.defaults),kc.apply(this,arguments)}s(Gi,"ParserOptions");Gi.defaults={validate:{schema:HO,spec:GO}};ZO.inherits(Gi,kc)});var th=h((Q1,eh)=>{"use strict";function KO(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(KO,"makeNext");eh.exports=KO()});var Nc=h((tR,nh)=>{"use strict";var rh=th();nh.exports=s(function(t,r){if(t){r.then(function(n){rh(function(){t(null,n)})},function(n){rh(function(){t(n)})});return}else return r},"maybe")});var Nn=h((nR,sh)=>{"use strict";sh.exports=bt;var Cc=Mr(),Mc=ge(),{JSONParserError:WO,InvalidPointerError:YO,MissingPointerError:JO,isHandledError:XO}=Ie(),QO=/\//g,eE=/~/g,tE=/~1/g,rE=/~0/g;function bt(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(bt,"Pointer");bt.prototype.resolve=function(e,t,r){let n=bt.parse(this.path,this.originalPath);this.value=oh(e);for(let i=0;i<n.length;i++){if(Zi(this,t)&&(this.path=bt.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 JO(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Mc.resolve(this.path,this.value.$ref)!==r)&&Zi(this,t),this};bt.prototype.set=function(e,t,r){let n=bt.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=oh(e);for(let o=0;o<n.length-1;o++)Zi(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=ih(this,i,{});return Zi(this,r),i=n[n.length-1],ih(this,i,t),e};bt.parse=function(e,t){let r=Mc.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(tE,"/").replace(rE,"~"));if(r[0]!=="")throw new YO(r,t===void 0?e:t);return r.slice(1)};bt.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(eE,"~0").replace(QO,"~1"))}return e};function Zi(e,t){if(Cc.isAllowed$Ref(e.value,t)){let r=Mc.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,Cc.isExtended$Ref(e.value)?(e.value=Cc.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(Zi,"resolveIf$Ref");function ih(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 WO(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}s(ih,"setValue");function oh(e){if(XO(e))throw e;return e}s(oh,"unwrapOrThrow")});var Mr=h((oR,uh)=>{"use strict";uh.exports=ce;var ch=Nn(),{InvalidPointerError:nE,isHandledError:iE,normalizeError:ah}=Ie(),{safePointerToPath:oE,stripHash:sE,getHash:aE}=ge();function ce(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(ce,"$Ref");ce.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(ah)):this.errors.push(ah(e))};ce.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};ce.prototype.get=function(e,t){return this.resolve(e,t).value};ce.prototype.resolve=function(e,t,r,n){let i=new ch(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!iE(o))throw o;return o.path===null&&(o.path=oE(aE(n))),o instanceof nE&&(o.source=sE(n)),this.addError(o),null}};ce.prototype.set=function(e,t){let r=new ch(this,e);this.value=r.set(this.value,t)};ce.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};ce.isExternal$Ref=function(e){return ce.is$Ref(e)&&e.$ref[0]!=="#"};ce.isAllowed$Ref=function(e,t){if(ce.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};ce.isExtended$Ref=function(e){return ce.is$Ref(e)&&Object.keys(e).length>1};ce.dereference=function(e,t){if(t&&typeof t=="object"&&ce.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 ph=h((aR,dh)=>{"use strict";var{ono:fh}=we(),cE=Mr(),_t=ge();dh.exports=Re;function Re(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Re,"$Refs");Re.prototype.paths=function(e){return lh(this._$refs,arguments).map(r=>r.decoded)};Re.prototype.values=function(e){let t=this._$refs;return lh(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Re.prototype.toJSON=Re.prototype.values;Re.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Re.prototype.get=function(e,t){return this._resolve(e,"",t).value};Re.prototype.set=function(e,t){let r=_t.resolve(this._root$Ref.path,e),n=_t.stripHash(r),i=this._$refs[n];if(!i)throw fh(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};Re.prototype._add=function(e){let t=_t.stripHash(e),r=new cE;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Re.prototype._resolve=function(e,t,r){let n=_t.resolve(this._root$Ref.path,e),i=_t.stripHash(n),o=this._$refs[i];if(!o)throw fh(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return o.resolve(n,r,e,t)};Re.prototype._get$Ref=function(e){e=_t.resolve(this._root$Ref.path,e);let t=_t.stripHash(e);return this._$refs[t]};function lh(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"?_t.toFileSystemPath(n,!0):n}))}s(lh,"getPaths")});var hh=h(Cn=>{"use strict";Cn.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Cn.filter=function(e,t,r){return e.filter(n=>!!mh(n,t,r))};Cn.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)};Cn.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 m=mh(i,t,r,l,n);if(m&&typeof m.then=="function")m.then(d,p);else if(m!==void 0)d(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){p(m)}}s(f,"runNextPlugin");function l(m,y){m?p(m):d(y)}s(l,"callback");function d(m){c({plugin:i,result:m})}s(d,"onSuccess");function p(m){o={plugin:i,error:m},f()}s(p,"onError")})};function mh(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(mh,"getResult")});var Fc=h((lR,vh)=>{"use strict";var{ono:Dc}=we(),yh=ge(),Pt=hh(),{ResolverError:gh,ParserError:$h,UnmatchedParserError:uE,UnmatchedResolverError:fE,isHandledError:lE}=Ie();vh.exports=dE;async function dE(e,t,r){e=yh.stripHash(e);let n=t._add(e),i={url:e,extension:yh.getExtension(e)};try{let o=await pE(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await mE(i,r,t);return n.value=a.result,a.result}catch(o){throw lE(o)&&(n.value=o),o}}s(dE,"parse");function pE(e,t,r){return new Promise((n,i)=>{let o=Pt.all(t.resolve);o=Pt.filter(o,"canRead",e),Pt.sort(o),Pt.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new fE(e.url)):!c||!("error"in c)?i(Dc.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof gh?i(c.error):i(new gh(c,e.url))}s(a,"onError")})}s(pE,"readFile");function mE(e,t,r){return new Promise((n,i)=>{let o=Pt.all(t.parse),a=Pt.filter(o,"canParse",e),c=a.length>0?a:o;Pt.sort(c),Pt.run(c,"parse",e,r).then(u,f);function u(l){!l.plugin.allowEmpty&&hE(l.result)?i(Dc.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 uE(e.url)):!l||!("error"in l)?i(Dc.syntax(`Unable to parse ${e.url}`)):l.error instanceof $h?i(l.error):i(new $h(l.error.message,e.url))}s(f,"onError")})}s(mE,"parseFile");function hE(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(hE,"isEmpty")});var Sh=h((pR,Ph)=>{"use strict";var bh=Mr(),yE=Nn(),gE=Fc(),Mn=ge(),{isHandledError:$E}=Ie();Ph.exports=vE;function vE(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Vc(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(vE,"resolveExternal");function Vc(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(bh.isExternal$Ref(e))i.push(_h(e,t,r,n));else for(let o of Object.keys(e)){let a=yE.join(t,o),c=e[o];bh.isExternal$Ref(c)?i.push(_h(c,a,r,n)):i=i.concat(Vc(c,a,r,n))}return i}s(Vc,"crawl");async function _h(e,t,r,n){let i=Mn.resolve(t,e.$ref),o=Mn.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await gE(i,r,n),c=Vc(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!$E(a))throw a;return r._$refs[o]&&(a.source=Mn.stripHash(t),a.path=Mn.safePointerToPath(Mn.getHash(t))),[]}}s(_h,"resolve$Ref")});var Oh=h((hR,wh)=>{"use strict";var Ki=Mr(),Dn=Nn(),Lc=ge();wh.exports=bE;function bE(e,t){let r=[];zc(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),_E(r)}s(bE,"bundle");function zc(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Ki.isAllowed$Ref(u))xh(e,t,r,n,i,o,a,c);else{let f=Object.keys(u).sort((l,d)=>l==="definitions"?-1:d==="definitions"?1:l.length-d.length);for(let l of f){let d=Dn.join(r,l),p=Dn.join(n,l),m=u[l];Ki.isAllowed$Ref(m)?xh(u,l,r,p,i,o,a,c):zc(u,l,d,p,i,o,a,c)}}}s(zc,"crawl");function xh(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],f=Lc.resolve(r,u.$ref),l=a._resolve(f,n,c);if(l===null)return;let d=Dn.parse(n).length,p=Lc.stripHash(l.path),m=Lc.getHash(l.path),y=p!==a._root$Ref.path,$=Ki.isExtended$Ref(u);i+=l.indirections;let g=PE(o,e,t);if(g)if(d<g.depth||i<g.indirections)SE(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:d,file:p,hash:m,value:l.value,circular:l.circular,extended:$,external:y,indirections:i}),g||zc(l.value,null,l.path,n,i+1,o,a,c)}s(xh,"inventory$Ref");function _E(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=Dn.join(n,Dn.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Ki.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(_E,"remap");function PE(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(PE,"findInInventory");function SE(e,t){let r=e.indexOf(t);e.splice(r,1)}s(SE,"removeFromInventory")});var Hc=h((gR,qh)=>{"use strict";var Uc=Mr(),Eh=Nn(),{ono:xE}=we(),wE=ge();qh.exports=OE;function OE(e,t){let r=Bc(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(OE,"dereference");function Bc(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),Uc.isAllowed$Ref(e,o))a=Ah(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let f=Eh.join(t,u),l=Eh.join(r,u),d=e[u],p=!1;Uc.isAllowed$Ref(d,o)?(a=Ah(d,f,l,n,i,o),p=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(d)===-1?(a=Bc(d,f,l,n,i,o),p=a.circular,e[u]!==a.value&&(e[u]=a.value)):p=jh(f,i,o),c.circular=c.circular||p}n.pop()}return c}s(Bc,"crawl");function Ah(e,t,r,n,i,o){let a=wE.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&&jh(t,i,o);let l=Uc.dereference(e,c.value);if(!f){let d=Bc(l,c.path,r,n,i,o);f=d.circular,l=d.value}return f&&!u&&o.dereference.circular==="ignore"&&(l=e),u&&(l.$ref=r),{circular:f,value:l}}s(Ah,"dereference$Ref");function jh(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xE.reference(`Circular $ref pointer found at ${e}`);return!0}s(jh,"foundCircularReference")});var kh=h((vR,Be)=>{"use strict";var Th=ph(),EE=Fc(),Wi=Tc(),AE=Sh(),jE=Oh(),qE=Hc(),Dr=ge(),{JSONParserError:IE,InvalidPointerError:RE,MissingPointerError:TE,ResolverError:kE,ParserError:NE,UnmatchedParserError:CE,UnmatchedResolverError:ME,isHandledError:DE,JSONParserErrorGroup:Ih}=Ie(),Te=Nc(),{ono:Rh}=we();Be.exports=Ue;Be.exports.default=Ue;Be.exports.JSONParserError=IE;Be.exports.InvalidPointerError=RE;Be.exports.MissingPointerError=TE;Be.exports.ResolverError=kE;Be.exports.ParserError=NE;Be.exports.UnmatchedParserError=CE;Be.exports.UnmatchedResolverError=ME;function Ue(){this.schema=null,this.$refs=new Th}s(Ue,"$RefParser");Ue.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Ue.prototype.parse=s(async function(t,r,n,i){let o=Wi(arguments),a;if(!o.path&&!o.schema){let f=Rh(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Te(o.callback,Promise.reject(f))}this.schema=null,this.$refs=new Th;let c="http";if(Dr.isFileSystemPath(o.path)&&(o.path=Dr.fromFileSystemPath(o.path),c="file"),o.path=Dr.resolve(Dr.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=EE(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,Te(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Te(o.callback,Promise.resolve(u.schema));throw Rh.syntax(`"${u.$refs._root$Ref.path||f}" is not a valid JSON Schema`)}catch(f){return!o.options.continueOnError||!DE(f)?Te(o.callback,Promise.reject(f)):(this.$refs._$refs[Dr.stripHash(o.path)]&&this.$refs._$refs[Dr.stripHash(o.path)].addError(f),Te(o.callback,Promise.resolve(null)))}},"parse");Ue.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Ue.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Wi(arguments);try{return await this.parse(a.path,a.schema,a.options),await AE(o,a.options),Gc(o),Te(a.callback,Promise.resolve(o.$refs))}catch(c){return Te(a.callback,Promise.reject(c))}},"resolve");Ue.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Ue.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Wi(arguments);try{return await this.resolve(a.path,a.schema,a.options),jE(o,a.options),Gc(o),Te(a.callback,Promise.resolve(o.schema))}catch(c){return Te(a.callback,Promise.reject(c))}},"bundle");Ue.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Ue.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Wi(arguments);try{return await this.resolve(a.path,a.schema,a.options),qE(o,a.options),Gc(o),Te(a.callback,Promise.resolve(o.schema))}catch(c){return Te(a.callback,Promise.reject(c))}},"dereference");function Gc(e){if(Ih.getParserErrors(e).length>0)throw new Ih(e)}s(Gc,"finalize")});var Fh=h((_R,Dh)=>{"use strict";var FE=dc(),VE=hc(),Nh=Tc(),Ch=Zn(),Mh=Qm(),Yi=Nc(),{ono:ke}=we(),Jt=kh(),LE=Hc();Dh.exports=He;function He(){Jt.apply(this,arguments)}s(He,"SwaggerParser");Ch.inherits(He,Jt);He.parse=Jt.parse;He.resolve=Jt.resolve;He.bundle=Jt.bundle;He.dereference=Jt.dereference;Object.defineProperty(He.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});He.prototype.parse=async function(e,t,r,n){let i=Nh(arguments);i.options=new Mh(i.options);try{let o=await Jt.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 ke.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw ke.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw ke.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw ke.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 ke.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 ke.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw ke.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw ke.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw ke.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw ke.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Ch.fixOasRelativeServers(o,i.path)}return Yi(i.callback,Promise.resolve(o))}catch(o){return Yi(i.callback,Promise.reject(o))}};He.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};He.prototype.validate=async function(e,t,r,n){let i=this,o=Nh(arguments);o.options=new Mh(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&&(FE(i.api),i.$refs.circular)){if(a===!0)LE(i,o.options);else if(a===!1)throw ke.reference("The API contains circular references")}return o.options.validate.spec&&VE(i.api),Yi(o.callback,Promise.resolve(i.schema))}catch(c){return Yi(o.callback,Promise.reject(c))}}});var pA={};Hy(pA,{getGenerateMetadata:()=>dA});module.exports=Zy(pA);var Fy=Gy(Fh());var Vh="Schema",Lh="Body",zh="Param",Uh="Response",Bh="ErrorResponse",Zc="z.void()";var Hh={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Vh,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Gh="data";var Zh=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 ot=Symbol.for("@ts-pattern/matcher"),zE=Symbol.for("@ts-pattern/isVariadic"),Xi="@ts-pattern/anonymous-select-key",Kc=s(e=>!!(e&&typeof e=="object"),"r"),Ji=s(e=>e&&!!e[ot],"i"),Ke=s((e,t,r)=>{if(Ji(e)){let n=e[ot](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Kc(e)){if(!Kc(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];Ji(c)&&c[zE]?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)=>Ke(f,a[l],r))&&i.every((f,l)=>Ke(f,c[l],r))&&(o.length===0||Ke(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ke(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ji(o=i)&&o[ot]().matcherType==="optional")&&Ke(i,t[n],r);var o})}return Object.is(t,e)},"s"),Et=s(e=>{var t,r,n;return Kc(e)?Ji(e)?(t=(r=(n=e[ot]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Ln(e,Et):Ln(Object.values(e),Et):[]},"o"),Ln=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Se(e){return Object.assign(e,{optional:s(()=>UE(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>BE(e,t),"or"),select:s(t=>t===void 0?Kh(e):Kh(t,e),"select")})}s(Se,"u");function UE(e){return Se({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(Et(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ke(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>Et(e),"getSelectionKeys"),matcherType:"optional"})})}s(UE,"h");function z(...e){return Se({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Ke(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ln(e,Et),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function BE(...e){return Se({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Ln(e,Et).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ke(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ln(e,Et),"getSelectionKeys"),matcherType:"or"})})}s(BE,"d");function C(e){return{[ot]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(C,"p");function Kh(...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 Se({[ot]:()=>({match:s(n=>{let i={[t??Xi]:n};return{matched:r===void 0||Ke(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Xi].concat(r===void 0?[]:Et(r)),"getSelectionKeys")})})}s(Kh,"y");function Ge(e){return typeof e=="number"}s(Ge,"v");function St(e){return typeof e=="string"}s(St,"b");function xt(e){return typeof e=="bigint"}s(xt,"w");var IR=Se(C(function(e){return!0}));var wt=s(e=>Object.assign(Se(e),{startsWith:s(t=>{return wt(z(e,(r=t,C(n=>St(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return wt(z(e,(r=t,C(n=>St(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>wt(z(e,(r=>C(n=>St(n)&&n.length>=r))(t))),"minLength"),length:s(t=>wt(z(e,(r=>C(n=>St(n)&&n.length===r))(t))),"length"),maxLength:s(t=>wt(z(e,(r=>C(n=>St(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return wt(z(e,(r=t,C(n=>St(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return wt(z(e,(r=t,C(n=>St(n)&&!!n.match(r)))));var r},"regex")}),"j"),RR=wt(C(St)),Ze=s(e=>Object.assign(Se(e),{between:s((t,r)=>Ze(z(e,((n,i)=>C(o=>Ge(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Ze(z(e,(r=>C(n=>Ge(n)&&n<r))(t))),"lt"),gt:s(t=>Ze(z(e,(r=>C(n=>Ge(n)&&n>r))(t))),"gt"),lte:s(t=>Ze(z(e,(r=>C(n=>Ge(n)&&n<=r))(t))),"lte"),gte:s(t=>Ze(z(e,(r=>C(n=>Ge(n)&&n>=r))(t))),"gte"),int:s(()=>Ze(z(e,C(t=>Ge(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Ze(z(e,C(t=>Ge(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Ze(z(e,C(t=>Ge(t)&&t>0))),"positive"),negative:s(()=>Ze(z(e,C(t=>Ge(t)&&t<0))),"negative")}),"x"),TR=Ze(C(Ge)),Ot=s(e=>Object.assign(Se(e),{between:s((t,r)=>Ot(z(e,((n,i)=>C(o=>xt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Ot(z(e,(r=>C(n=>xt(n)&&n<r))(t))),"lt"),gt:s(t=>Ot(z(e,(r=>C(n=>xt(n)&&n>r))(t))),"gt"),lte:s(t=>Ot(z(e,(r=>C(n=>xt(n)&&n<=r))(t))),"lte"),gte:s(t=>Ot(z(e,(r=>C(n=>xt(n)&&n>=r))(t))),"gte"),positive:s(()=>Ot(z(e,C(t=>xt(t)&&t>0))),"positive"),negative:s(()=>Ot(z(e,C(t=>xt(t)&&t<0))),"negative")}),"A"),kR=Ot(C(xt)),NR=Se(C(function(e){return typeof e=="boolean"})),CR=Se(C(function(e){return typeof e=="symbol"})),MR=Se(C(function(e){return e==null})),DR=Se(C(function(e){return e!=null}));var Xc=class Xc 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(Xc,"W");var Wc=Xc,Yc={matched:!1,value:void 0};function oe(e){return new Jc(e,Yc)}s(oe,"z");var Vn=class Vn{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=>Ke(f,this.input,c))||i&&!i(this.input)?Yc:{matched:!0,value:r(o?Xi in a?a[Xi]:a:this.input,this.input)};return new Vn(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Vn(this.input,n?{matched:!0,value:r(this.input,this.input)}:Yc)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Wc(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Vn,"I");var Jc=Vn;var Qc=2,Wh=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Yh=["query","header","path"],Fr=["get","put","post","delete","options","head","patch","trace"],Jh=["string","number","integer","boolean"];function Vr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Vr,"pick");var We=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Qi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Xh=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Ye=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Qh=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),ey=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),ty=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var ny=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),zn=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Un=s(e=>zn(e).split("/").at(-1),"getSchemaNameByRef");function N(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(N,"isReferenceObject");function iy(e){return HE(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(iy,"normalizeString");function oy(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(oy,"wrapWithQuotesIfNeeded");function sy(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(sy,"unwrapQuotesIfNeeded");function HE(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(HE,"prefixStringStartingWithNumberIfNeeded");function ru(e){let t=e.replaceAll("_","#");return Ye(t.replaceAll("-","_")).replaceAll("#","_")}s(ru,"pathParamToVariableName");var At=s(e=>Jh.includes(e),"isPrimitiveType");function ay(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(ay,"escapeControlCharacters");function Lr(e){return e.includes("application/")&&e.includes("json")||Wh.includes(e)||e.includes("text/")}s(Lr,"isParamMediaTypeAllowed");function nu(e){return e>=200&&e<300}s(nu,"isMainResponseStatus");function iu(e){return!(e>=200&&e<300)}s(iu,"isErrorStatus");function eo(e){return e==="application/json"}s(eo,"isMediaTypeAllowed");function eu({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=r.operationId??t+KE(e);if(n.removeOperationPrefixEndingWith&&i)return o.split(n.removeOperationPrefixEndingWith).map((c,u)=>u===0?c:We(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let a=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);o=o.replace(a,"")}return o}s(eu,"getOperationName");function cy({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=GE(n,i),a=i.splitByTags?zr(r,i):i.defaultTag,c=eu({path:e,method:t,operation:r,options:i});return o[a].filter(f=>eu({path:e,method:t,operation:f,options:i})===c).length===1?c:eu({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(cy,"getUniqueOperationName");function GE(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=Vr(i,Fr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?zr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(GE,"getOperationsByTag");function Je(e){return Qh(e)}s(Je,"formatTag");function zr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Je(r??t.defaultTag)}s(zr,"getOperationTag");var ry=/({\w+})/g,ZE=/[^\w\-]+/g;function KE(e){e=We(Xh(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(ry)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(ry,"")}By${We(r.slice(1,-1))}`}return e.replace(ZE,"_")}s(KE,"pathToVariableName");var tu=/{(\b\w+(?:-\w+)*\b)}/g;function uy(e){let t=e.match(tu);return t===null?e.replaceAll(tu,":$1"):(t.forEach(r=>{let n=ru(r.replaceAll(tu,":$1"));e=e.replaceAll(r,n)}),e)}s(uy,"replaceHyphenatedPath");function st(e){return!N(e)}s(st,"isSchemaObject");function fy(e){return e.type==="array"}s(fy,"isArraySchemaObject");function ly(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(WE(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(N(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(ly,"inferRequiredSchema");var WE=s(e=>!N(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Ur({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Qi(t)}/`:""}${Qi(t)}.${i}`:i}s(Ur,"getTagFileName");var Xe=s(({type:e,tag:t,options:r})=>`${We(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function ou(e){return oe(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(ou,"primitiveTypeToTsType");function dy({schema:e,resolver:t,options:r}){return Object.entries(e.properties??{}).map(([n,i])=>{var o;return{name:n,required:((o=e.required)==null?void 0:o.includes(n))||!1,...py({obj:i,resolver:t,options:r})}})}s(dy,"getSchemaTsProperties");var py=s(({obj:e,resolver:t,options:r})=>{if(N(e)){let n=Un(e.$ref),i=t.getTagByZodSchemaName(t.getZodSchemaNameByRef(e.$ref));return{type:n,namespace:Xe({type:"models",tag:i,options:r}),filePath:Ur({type:"models",tag:i,includeTagDir:!0,options:r})}}if(e.type==="array"){let n=py({obj:e.items,resolver:t,options:r});return{...n,type:`${n.type}[]`}}else return At(e.type)?{type:ou(e.type)}:{type:"string"}},"getTsFieldType");var jt=s((e,t)=>ey(We(iy(e)),t),"getZodSchemaName"),Br=s(e=>!e.startsWith("z."),"isNamedZodSchema"),my=s(e=>Ye(`${e}_${Lh}`),"getBodyZodSchemaName"),hy=s((e,t)=>Ye(`${e}_${t}${zh}`),"getParamZodSchemaName"),yy=s(e=>Ye(`${e}${Uh}`),"getMainResponseZodSchemaName"),gy=s((e,t)=>Ye(`${e}_${t}_${Bh}`),"getErrorResponseZodSchemaName");var su=s((e,t)=>ty(e,t.schemaSuffix),"getZodSchemaInferedTypeName");var $y=s(({resolver:e,zodSchemaName:t,options:r})=>Br(t)?`${r.includeNamespaces?`${Xe({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${su(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function vy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Je(r??t.defaultTag)}s(vy,"getEndpointTag");function by({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var a,c,u,f;let i="string",o;if(Br(n.zodSchema))i=$y({resolver:e,zodSchemaName:n.zodSchema,options:r}),o=e.getTagByZodSchemaName(n.zodSchema);else if((a=n.parameterObject)!=null&&a.schema&&st(n.parameterObject.schema)){let l=(u=(c=n.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;l&&At(l)&&(i=ou(l))}return{name:Zh(n.name),type:i,paramType:n.type,required:((f=n.parameterObject)==null?void 0:f.required)??!0,tag:o}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(by,"mapEndpointParamsToFunctionParams");var _y=s(e=>`use${We(Ye(e.operationName))}`,"getQueryName");var Py=s(e=>e.method==="get","isQuery"),Sy=s(e=>e.method!=="get","isMutation");function Qe({schema:e,meta:t,options:r}){let n=[];oe(e.type).with("string",()=>n.push(XE(e))).with("number","integer",()=>n.push(eA(e))).with("array",()=>n.push(tA(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
46
+ `)}`)));else if(o.headers.location){let a=Cn.resolve(e,o.headers.location);Km(a,t,r).then(n,i)}else throw Gi({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new Zm(Gi(o,`Error downloading ${e.href}`),e.href))})})}s(Km,"download");function MO(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?CO:kO).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(MO,"get")});var Rc=h((JT,Xm)=>{"use strict";var DO=Zd(),FO=Fm(),VO=Lm(),LO=Um(),zO=Gm(),UO=Ym();Xm.exports=Tc;function Tc(e){Ic(this,Tc.defaults),Ic(this,e)}s(Tc,"$RefParserOptions");Tc.defaults={parse:{json:DO,yaml:FO,text:VO,binary:LO},resolve:{file:zO,http:UO,external:!0},continueOnError:!1,dereference:{circular:!0}};function Ic(e,t){if(Jm(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];Jm(o)?e[i]=Ic(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(Ic,"merge");function Jm(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(Jm,"isMergeable")});var Nc=h((QT,eh)=>{"use strict";var Qm=Rc();eh.exports=BO;function BO(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 Qm||(n=new Qm(n)),{path:t,schema:r,options:n,callback:i}}s(BO,"normalizeArgs")});var rh=h((t1,th)=>{"use strict";var kc=Rc(),HO=pc(),GO=yc(),ZO=require("util");th.exports=Zi;function Zi(e){kc.call(this,Zi.defaults),kc.apply(this,arguments)}s(Zi,"ParserOptions");Zi.defaults={validate:{schema:HO,spec:GO}};ZO.inherits(Zi,kc)});var ih=h((n1,nh)=>{"use strict";function KO(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(KO,"makeNext");nh.exports=KO()});var Cc=h((o1,sh)=>{"use strict";var oh=ih();sh.exports=s(function(t,r){if(t){r.then(function(n){oh(function(){t(null,n)})},function(n){oh(function(){t(n)})});return}else return r},"maybe")});var Mn=h((a1,uh)=>{"use strict";uh.exports=vt;var Mc=Fr(),Dc=ge(),{JSONParserError:WO,InvalidPointerError:YO,MissingPointerError:JO,isHandledError:XO}=Ie(),QO=/\//g,eE=/~/g,tE=/~1/g,rE=/~0/g;function vt(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(vt,"Pointer");vt.prototype.resolve=function(e,t,r){let n=vt.parse(this.path,this.originalPath);this.value=ch(e);for(let i=0;i<n.length;i++){if(Ki(this,t)&&(this.path=vt.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 JO(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Dc.resolve(this.path,this.value.$ref)!==r)&&Ki(this,t),this};vt.prototype.set=function(e,t,r){let n=vt.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=ch(e);for(let o=0;o<n.length-1;o++)Ki(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=ah(this,i,{});return Ki(this,r),i=n[n.length-1],ah(this,i,t),e};vt.parse=function(e,t){let r=Dc.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(tE,"/").replace(rE,"~"));if(r[0]!=="")throw new YO(r,t===void 0?e:t);return r.slice(1)};vt.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(eE,"~0").replace(QO,"~1"))}return e};function Ki(e,t){if(Mc.isAllowed$Ref(e.value,t)){let r=Dc.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,Mc.isExtended$Ref(e.value)?(e.value=Mc.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(Ki,"resolveIf$Ref");function ah(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 WO(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}s(ah,"setValue");function ch(e){if(XO(e))throw e;return e}s(ch,"unwrapOrThrow")});var Fr=h((u1,dh)=>{"use strict";dh.exports=ce;var lh=Mn(),{InvalidPointerError:nE,isHandledError:iE,normalizeError:fh}=Ie(),{safePointerToPath:oE,stripHash:sE,getHash:aE}=ge();function ce(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(ce,"$Ref");ce.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(fh)):this.errors.push(fh(e))};ce.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};ce.prototype.get=function(e,t){return this.resolve(e,t).value};ce.prototype.resolve=function(e,t,r,n){let i=new lh(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!iE(o))throw o;return o.path===null&&(o.path=oE(aE(n))),o instanceof nE&&(o.source=sE(n)),this.addError(o),null}};ce.prototype.set=function(e,t){let r=new lh(this,e);this.value=r.set(this.value,t)};ce.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};ce.isExternal$Ref=function(e){return ce.is$Ref(e)&&e.$ref[0]!=="#"};ce.isAllowed$Ref=function(e,t){if(ce.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};ce.isExtended$Ref=function(e){return ce.is$Ref(e)&&Object.keys(e).length>1};ce.dereference=function(e,t){if(t&&typeof t=="object"&&ce.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 yh=h((l1,hh)=>{"use strict";var{ono:ph}=we(),cE=Fr(),bt=ge();hh.exports=Te;function Te(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Te,"$Refs");Te.prototype.paths=function(e){return mh(this._$refs,arguments).map(r=>r.decoded)};Te.prototype.values=function(e){let t=this._$refs;return mh(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Te.prototype.toJSON=Te.prototype.values;Te.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Te.prototype.get=function(e,t){return this._resolve(e,"",t).value};Te.prototype.set=function(e,t){let r=bt.resolve(this._root$Ref.path,e),n=bt.stripHash(r),i=this._$refs[n];if(!i)throw ph(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};Te.prototype._add=function(e){let t=bt.stripHash(e),r=new cE;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Te.prototype._resolve=function(e,t,r){let n=bt.resolve(this._root$Ref.path,e),i=bt.stripHash(n),o=this._$refs[i];if(!o)throw ph(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return o.resolve(n,r,e,t)};Te.prototype._get$Ref=function(e){e=bt.resolve(this._root$Ref.path,e);let t=bt.stripHash(e);return this._$refs[t]};function mh(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"?bt.toFileSystemPath(n,!0):n}))}s(mh,"getPaths")});var $h=h(Dn=>{"use strict";Dn.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Dn.filter=function(e,t,r){return e.filter(n=>!!gh(n,t,r))};Dn.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)};Dn.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 m=gh(i,t,r,l,n);if(m&&typeof m.then=="function")m.then(d,p);else if(m!==void 0)d(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){p(m)}}s(f,"runNextPlugin");function l(m,y){m?p(m):d(y)}s(l,"callback");function d(m){c({plugin:i,result:m})}s(d,"onSuccess");function p(m){o={plugin:i,error:m},f()}s(p,"onError")})};function gh(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(gh,"getResult")});var Vc=h((h1,Ph)=>{"use strict";var{ono:Fc}=we(),vh=ge(),_t=$h(),{ResolverError:bh,ParserError:_h,UnmatchedParserError:uE,UnmatchedResolverError:fE,isHandledError:lE}=Ie();Ph.exports=dE;async function dE(e,t,r){e=vh.stripHash(e);let n=t._add(e),i={url:e,extension:vh.getExtension(e)};try{let o=await pE(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await mE(i,r,t);return n.value=a.result,a.result}catch(o){throw lE(o)&&(n.value=o),o}}s(dE,"parse");function pE(e,t,r){return new Promise((n,i)=>{let o=_t.all(t.resolve);o=_t.filter(o,"canRead",e),_t.sort(o),_t.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new fE(e.url)):!c||!("error"in c)?i(Fc.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof bh?i(c.error):i(new bh(c,e.url))}s(a,"onError")})}s(pE,"readFile");function mE(e,t,r){return new Promise((n,i)=>{let o=_t.all(t.parse),a=_t.filter(o,"canParse",e),c=a.length>0?a:o;_t.sort(c),_t.run(c,"parse",e,r).then(u,f);function u(l){!l.plugin.allowEmpty&&hE(l.result)?i(Fc.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 uE(e.url)):!l||!("error"in l)?i(Fc.syntax(`Unable to parse ${e.url}`)):l.error instanceof _h?i(l.error):i(new _h(l.error.message,e.url))}s(f,"onError")})}s(mE,"parseFile");function hE(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(hE,"isEmpty")});var Oh=h((g1,wh)=>{"use strict";var Sh=Fr(),yE=Mn(),gE=Vc(),Fn=ge(),{isHandledError:$E}=Ie();wh.exports=vE;function vE(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Lc(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(vE,"resolveExternal");function Lc(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Sh.isExternal$Ref(e))i.push(xh(e,t,r,n));else for(let o of Object.keys(e)){let a=yE.join(t,o),c=e[o];Sh.isExternal$Ref(c)?i.push(xh(c,a,r,n)):i=i.concat(Lc(c,a,r,n))}return i}s(Lc,"crawl");async function xh(e,t,r,n){let i=Fn.resolve(t,e.$ref),o=Fn.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await gE(i,r,n),c=Lc(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!$E(a))throw a;return r._$refs[o]&&(a.source=Fn.stripHash(t),a.path=Fn.safePointerToPath(Fn.getHash(t))),[]}}s(xh,"resolve$Ref")});var Ah=h((v1,jh)=>{"use strict";var Wi=Fr(),Vn=Mn(),zc=ge();jh.exports=bE;function bE(e,t){let r=[];Uc(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),_E(r)}s(bE,"bundle");function Uc(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Wi.isAllowed$Ref(u))Eh(e,t,r,n,i,o,a,c);else{let f=Object.keys(u).sort((l,d)=>l==="definitions"?-1:d==="definitions"?1:l.length-d.length);for(let l of f){let d=Vn.join(r,l),p=Vn.join(n,l),m=u[l];Wi.isAllowed$Ref(m)?Eh(u,l,r,p,i,o,a,c):Uc(u,l,d,p,i,o,a,c)}}}s(Uc,"crawl");function Eh(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],f=zc.resolve(r,u.$ref),l=a._resolve(f,n,c);if(l===null)return;let d=Vn.parse(n).length,p=zc.stripHash(l.path),m=zc.getHash(l.path),y=p!==a._root$Ref.path,$=Wi.isExtended$Ref(u);i+=l.indirections;let g=PE(o,e,t);if(g)if(d<g.depth||i<g.indirections)SE(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:d,file:p,hash:m,value:l.value,circular:l.circular,extended:$,external:y,indirections:i}),g||Uc(l.value,null,l.path,n,i+1,o,a,c)}s(Eh,"inventory$Ref");function _E(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=Vn.join(n,Vn.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Wi.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(_E,"remap");function PE(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(PE,"findInInventory");function SE(e,t){let r=e.indexOf(t);e.splice(r,1)}s(SE,"removeFromInventory")});var Gc=h((_1,Rh)=>{"use strict";var Bc=Fr(),qh=Mn(),{ono:xE}=we(),wE=ge();Rh.exports=OE;function OE(e,t){let r=Hc(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(OE,"dereference");function Hc(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),Bc.isAllowed$Ref(e,o))a=Ih(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let f=qh.join(t,u),l=qh.join(r,u),d=e[u],p=!1;Bc.isAllowed$Ref(d,o)?(a=Ih(d,f,l,n,i,o),p=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(d)===-1?(a=Hc(d,f,l,n,i,o),p=a.circular,e[u]!==a.value&&(e[u]=a.value)):p=Th(f,i,o),c.circular=c.circular||p}n.pop()}return c}s(Hc,"crawl");function Ih(e,t,r,n,i,o){let a=wE.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&&Th(t,i,o);let l=Bc.dereference(e,c.value);if(!f){let d=Hc(l,c.path,r,n,i,o);f=d.circular,l=d.value}return f&&!u&&o.dereference.circular==="ignore"&&(l=e),u&&(l.$ref=r),{circular:f,value:l}}s(Ih,"dereference$Ref");function Th(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xE.reference(`Circular $ref pointer found at ${e}`);return!0}s(Th,"foundCircularReference")});var Mh=h((S1,Be)=>{"use strict";var Ch=yh(),EE=Vc(),Yi=Nc(),jE=Oh(),AE=Ah(),qE=Gc(),Vr=ge(),{JSONParserError:IE,InvalidPointerError:TE,MissingPointerError:RE,ResolverError:NE,ParserError:kE,UnmatchedParserError:CE,UnmatchedResolverError:ME,isHandledError:DE,JSONParserErrorGroup:Nh}=Ie(),Re=Cc(),{ono:kh}=we();Be.exports=Ue;Be.exports.default=Ue;Be.exports.JSONParserError=IE;Be.exports.InvalidPointerError=TE;Be.exports.MissingPointerError=RE;Be.exports.ResolverError=NE;Be.exports.ParserError=kE;Be.exports.UnmatchedParserError=CE;Be.exports.UnmatchedResolverError=ME;function Ue(){this.schema=null,this.$refs=new Ch}s(Ue,"$RefParser");Ue.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Ue.prototype.parse=s(async function(t,r,n,i){let o=Yi(arguments),a;if(!o.path&&!o.schema){let f=kh(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Re(o.callback,Promise.reject(f))}this.schema=null,this.$refs=new Ch;let c="http";if(Vr.isFileSystemPath(o.path)&&(o.path=Vr.fromFileSystemPath(o.path),c="file"),o.path=Vr.resolve(Vr.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=EE(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,Re(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Re(o.callback,Promise.resolve(u.schema));throw kh.syntax(`"${u.$refs._root$Ref.path||f}" is not a valid JSON Schema`)}catch(f){return!o.options.continueOnError||!DE(f)?Re(o.callback,Promise.reject(f)):(this.$refs._$refs[Vr.stripHash(o.path)]&&this.$refs._$refs[Vr.stripHash(o.path)].addError(f),Re(o.callback,Promise.resolve(null)))}},"parse");Ue.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Ue.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Yi(arguments);try{return await this.parse(a.path,a.schema,a.options),await jE(o,a.options),Zc(o),Re(a.callback,Promise.resolve(o.$refs))}catch(c){return Re(a.callback,Promise.reject(c))}},"resolve");Ue.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Ue.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Yi(arguments);try{return await this.resolve(a.path,a.schema,a.options),AE(o,a.options),Zc(o),Re(a.callback,Promise.resolve(o.schema))}catch(c){return Re(a.callback,Promise.reject(c))}},"bundle");Ue.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Ue.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Yi(arguments);try{return await this.resolve(a.path,a.schema,a.options),qE(o,a.options),Zc(o),Re(a.callback,Promise.resolve(o.schema))}catch(c){return Re(a.callback,Promise.reject(c))}},"dereference");function Zc(e){if(Nh.getParserErrors(e).length>0)throw new Nh(e)}s(Zc,"finalize")});var zh=h((w1,Lh)=>{"use strict";var FE=pc(),VE=yc(),Dh=Nc(),Fh=Kn(),Vh=rh(),Ji=Cc(),{ono:Ne}=we(),Jt=Mh(),LE=Gc();Lh.exports=He;function He(){Jt.apply(this,arguments)}s(He,"SwaggerParser");Fh.inherits(He,Jt);He.parse=Jt.parse;He.resolve=Jt.resolve;He.bundle=Jt.bundle;He.dereference=Jt.dereference;Object.defineProperty(He.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});He.prototype.parse=async function(e,t,r,n){let i=Dh(arguments);i.options=new Vh(i.options);try{let o=await Jt.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 Ne.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Ne.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Ne.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Ne.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 Ne.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 Ne.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Ne.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Ne.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Ne.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Ne.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Fh.fixOasRelativeServers(o,i.path)}return Ji(i.callback,Promise.resolve(o))}catch(o){return Ji(i.callback,Promise.reject(o))}};He.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};He.prototype.validate=async function(e,t,r,n){let i=this,o=Dh(arguments);o.options=new Vh(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&&(FE(i.api),i.$refs.circular)){if(a===!0)LE(i,o.options);else if(a===!1)throw Ne.reference("The API contains circular references")}return o.options.validate.spec&&VE(i.api),Ji(o.callback,Promise.resolve(i.schema))}catch(c){return Ji(o.callback,Promise.reject(c))}}});var gj={};Hy(gj,{getGenerateMetadata:()=>yj});module.exports=Zy(gj);var Fy=Gy(zh());var Uh="Schema",Bh="Body",Hh="Param",Gh="Response",Zh="ErrorResponse",Kc="z.void()";var Kh={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Uh,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ge=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Xi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Wh=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Ze=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Yh=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Jh=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Xh=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var Qh=s(e=>`use${Ge(Ze(e.operationName))}`,"getQueryName");function Qi({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Xi(t)}/`:""}${Xi(t)}.${i}`:i}s(Qi,"getTagFileName");var Xt=s(({type:e,tag:t,options:r})=>`${Ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Wc=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 it=Symbol.for("@ts-pattern/matcher"),zE=Symbol.for("@ts-pattern/isVariadic"),to="@ts-pattern/anonymous-select-key",Yc=s(e=>!!(e&&typeof e=="object"),"r"),eo=s(e=>e&&!!e[it],"i"),Ye=s((e,t,r)=>{if(eo(e)){let n=e[it](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Yc(e)){if(!Yc(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];eo(c)&&c[zE]?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)=>Ye(f,a[l],r))&&i.every((f,l)=>Ye(f,c[l],r))&&(o.length===0||Ye(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ye(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||eo(o=i)&&o[it]().matcherType==="optional")&&Ye(i,t[n],r);var o})}return Object.is(t,e)},"s"),Ot=s(e=>{var t,r,n;return Yc(e)?eo(e)?(t=(r=(n=e[it]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Un(e,Ot):Un(Object.values(e),Ot):[]},"o"),Un=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Se(e){return Object.assign(e,{optional:s(()=>UE(e),"optional"),and:s(t=>L(e,t),"and"),or:s(t=>BE(e,t),"or"),select:s(t=>t===void 0?ey(e):ey(t,e),"select")})}s(Se,"u");function UE(e){return Se({[it]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(Ot(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ye(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>Ot(e),"getSelectionKeys"),matcherType:"optional"})})}s(UE,"h");function L(...e){return Se({[it]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Ye(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Un(e,Ot),"getSelectionKeys"),matcherType:"and"})})}s(L,"m");function BE(...e){return Se({[it]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Un(e,Ot).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ye(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Un(e,Ot),"getSelectionKeys"),matcherType:"or"})})}s(BE,"d");function C(e){return{[it]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(C,"p");function ey(...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 Se({[it]:()=>({match:s(n=>{let i={[t??to]:n};return{matched:r===void 0||Ye(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??to].concat(r===void 0?[]:Ot(r)),"getSelectionKeys")})})}s(ey,"y");function Ke(e){return typeof e=="number"}s(Ke,"v");function Pt(e){return typeof e=="string"}s(Pt,"b");function St(e){return typeof e=="bigint"}s(St,"w");var z1=Se(C(function(e){return!0}));var xt=s(e=>Object.assign(Se(e),{startsWith:s(t=>{return xt(L(e,(r=t,C(n=>Pt(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return xt(L(e,(r=t,C(n=>Pt(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>xt(L(e,(r=>C(n=>Pt(n)&&n.length>=r))(t))),"minLength"),length:s(t=>xt(L(e,(r=>C(n=>Pt(n)&&n.length===r))(t))),"length"),maxLength:s(t=>xt(L(e,(r=>C(n=>Pt(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return xt(L(e,(r=t,C(n=>Pt(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return xt(L(e,(r=t,C(n=>Pt(n)&&!!n.match(r)))));var r},"regex")}),"j"),U1=xt(C(Pt)),We=s(e=>Object.assign(Se(e),{between:s((t,r)=>We(L(e,((n,i)=>C(o=>Ke(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>We(L(e,(r=>C(n=>Ke(n)&&n<r))(t))),"lt"),gt:s(t=>We(L(e,(r=>C(n=>Ke(n)&&n>r))(t))),"gt"),lte:s(t=>We(L(e,(r=>C(n=>Ke(n)&&n<=r))(t))),"lte"),gte:s(t=>We(L(e,(r=>C(n=>Ke(n)&&n>=r))(t))),"gte"),int:s(()=>We(L(e,C(t=>Ke(t)&&Number.isInteger(t)))),"int"),finite:s(()=>We(L(e,C(t=>Ke(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>We(L(e,C(t=>Ke(t)&&t>0))),"positive"),negative:s(()=>We(L(e,C(t=>Ke(t)&&t<0))),"negative")}),"x"),B1=We(C(Ke)),wt=s(e=>Object.assign(Se(e),{between:s((t,r)=>wt(L(e,((n,i)=>C(o=>St(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>wt(L(e,(r=>C(n=>St(n)&&n<r))(t))),"lt"),gt:s(t=>wt(L(e,(r=>C(n=>St(n)&&n>r))(t))),"gt"),lte:s(t=>wt(L(e,(r=>C(n=>St(n)&&n<=r))(t))),"lte"),gte:s(t=>wt(L(e,(r=>C(n=>St(n)&&n>=r))(t))),"gte"),positive:s(()=>wt(L(e,C(t=>St(t)&&t>0))),"positive"),negative:s(()=>wt(L(e,C(t=>St(t)&&t<0))),"negative")}),"A"),H1=wt(C(St)),G1=Se(C(function(e){return typeof e=="boolean"})),Z1=Se(C(function(e){return typeof e=="symbol"})),K1=Se(C(function(e){return e==null})),W1=Se(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 Jc=eu,Xc={matched:!1,value:void 0};function oe(e){return new Qc(e,Xc)}s(oe,"z");var zn=class zn{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=>Ye(f,this.input,c))||i&&!i(this.input)?Xc:{matched:!0,value:r(o?to in a?a[to]:a:this.input,this.input)};return new zn(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new zn(this.input,n?{matched:!0,value:r(this.input,this.input)}:Xc)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Jc(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(zn,"I");var Qc=zn;var tu=2,ty=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],ry=["query","header","path"],Lr=["get","put","post","delete","options","head","patch","trace"],ny=["string","number","integer","boolean"];function zr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(zr,"pick");var oy=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Bn=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),iu=s(e=>Bn(e).split("/").at(-1),"getSchemaNameByRef");function T(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(T,"isReferenceObject");function sy(e){return HE(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(sy,"normalizeString");function ay(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(ay,"wrapWithQuotesIfNeeded");function cy(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(cy,"unwrapQuotesIfNeeded");function HE(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(HE,"prefixStringStartingWithNumberIfNeeded");function ou(e){let t=e.replaceAll("_","#");return Ze(t.replaceAll("-","_")).replaceAll("#","_")}s(ou,"pathParamToVariableName");var Et=s(e=>ny.includes(e),"isPrimitiveType");function uy(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(uy,"escapeControlCharacters");function jt(e){return e.includes("application/")&&e.includes("json")||ty.includes(e)||e.includes("text/")}s(jt,"isParamMediaTypeAllowed");function su(e){return e>=200&&e<300}s(su,"isMainResponseStatus");function au(e){return!(e>=200&&e<300)}s(au,"isErrorStatus");function Ur(e){return e==="application/json"}s(Ur,"isMediaTypeAllowed");function ru({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=r.operationId??t+KE(e);if(n.removeOperationPrefixEndingWith&&i)return o.split(n.removeOperationPrefixEndingWith).map((c,u)=>u===0?c:Ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let a=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);o=o.replace(a,"")}return o}s(ru,"getOperationName");function fy({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=GE(n,i),a=i.splitByTags?Br(r,i):i.defaultTag,c=ru({path:e,method:t,operation:r,options:i});return o[a].filter(f=>ru({path:e,method:t,operation:f,options:i})===c).length===1?c:ru({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(fy,"getUniqueOperationName");function GE(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=zr(i,Lr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Br(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(GE,"getOperationsByTag");function ot(e){return Yh(e)}s(ot,"formatTag");function Br(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return ot(r??t.defaultTag)}s(Br,"getOperationTag");var iy=/({\w+})/g,ZE=/[^\w\-]+/g;function KE(e){e=Ge(Wh(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(iy)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(iy,"")}By${Ge(r.slice(1,-1))}`}return e.replace(ZE,"_")}s(KE,"pathToVariableName");var nu=/{(\b\w+(?:-\w+)*\b)}/g;function ly(e){let t=e.match(nu);return t===null?e.replaceAll(nu,":$1"):(t.forEach(r=>{let n=ou(r.replaceAll(nu,":$1"));e=e.replaceAll(r,n)}),e)}s(ly,"replaceHyphenatedPath");function Je(e){return!T(e)}s(Je,"isSchemaObject");function dy(e){return e.type==="array"}s(dy,"isArraySchemaObject");function py(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(WE(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(T(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(py,"inferRequiredSchema");var WE=s(e=>!T(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var my=s(e=>e.method==="get","isQuery"),hy=s(e=>e.method!=="get","isMutation");var At=s((e,t)=>Jh(Ge(sy(e)),t),"getZodSchemaName"),Qt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),yy=s(e=>Ze(`${e}_${Bh}`),"getBodyZodSchemaName"),gy=s((e,t)=>Ze(`${e}_${t}${Hh}`),"getParamZodSchemaName"),$y=s(e=>Ze(`${e}${Gh}`),"getMainResponseZodSchemaName"),vy=s((e,t)=>Ze(`${e}_${t}_${Zh}`),"getErrorResponseZodSchemaName");var YE=s((e,t)=>Xh(e,t.schemaSuffix),"getZodSchemaInferedTypeName");var cu=s(({resolver:e,zodSchemaName:t,options:r})=>Qt(t)?`${r.includeNamespaces?`${Xt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${YE(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function uu(e){return oe(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(uu,"primitiveTypeToTsType");function Hr({zodSchemaName:e,schema:t,resolver:r,options:n}){let i="void",o;e&&Qt(e)?(i=cu({resolver:r,zodSchemaName:e,options:n}),o=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Et(t==null?void 0:t.type)&&(i=uu(t==null?void 0:t.type));let a=i.split(".");return{type:a[a.length-1],...a.length>1?{namespace:a[0]}:{},...o?{filePath:Qi({type:"models",tag:o,includeTagDir:!0,options:n})}:{}}}s(Hr,"getTypeInfo");function Gr({schema:e,isCircular:t,parentTypes:r,resolver:n,options:i}){let o=e==null?void 0:e.type;if(o==="array"){let a=by({arraySchema:e,resolver:n,options:i,parentTypes:r});return{dataType:o,arrayType:a}}else{if(o==="object"&&t)return{dataType:o,objectProperties:[],isCircular:!0};if(o==="object"){let a=JE({schema:e,parentTypes:r,resolver:n,options:i});return{dataType:o,objectProperties:a}}}return{dataType:"primitive"}}s(Gr,"getSchemaTsNestedDataType");function by({arraySchema:e,resolver:t,parentTypes:r,options:n}){let i,o;if(T(e.items)){let f=e.items.$ref;i=t.getZodSchemaNameByRef(f),o=t.getSchemaByRef(f)}else o=e.items;let a=Hr({zodSchemaName:i,schema:o,resolver:t,options:n}),c=_y(a,r),u=Gr({schema:o,isCircular:c,parentTypes:[...r,a],resolver:t,options:n});return{...a,...u}}s(by,"getArraySchemaTsNestedType");function JE({schema:e,resolver:t,parentTypes:r,options:n}){return Object.entries((e==null?void 0:e.properties)??{}).map(([i,o])=>{var c;let a=((c=e==null?void 0:e.required)==null?void 0:c.includes(i))??!1;if(T(o)){let u=t.getZodSchemaNameByRef(o.$ref),f=t.getSchemaByRef(o.$ref),l=Hr({zodSchemaName:u,schema:f,resolver:t,options:n}),d=_y(l,r),p=Gr({schema:f,isCircular:d,parentTypes:[...r,l],resolver:t,options:n});return{name:i,isRequired:a,...l,...p}}else if(o.type==="array"){let u=by({arraySchema:o,parentTypes:r,resolver:t,options:n});return{name:i,isRequired:a,type:"array",dataType:"array",arrayType:u}}else if(Et(o.type))return{name:i,isRequired:a,type:uu(o.type),dataType:"primitive"};return{name:i,isRequired:a,type:"void",dataType:"primitive"}})}s(JE,"getSchemaTsNestedProperties");function _y(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(_y,"getIsCircular");var Py="data";function Sy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return ot(r??t.defaultTag)}s(Sy,"getEndpointTag");function Xe({schema:e,meta:t,options:r}){let n=[];oe(e.type).with("string",()=>n.push(ej(e))).with("number","integer",()=>n.push(rj(e))).with("array",()=>n.push(nj(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
51
51
  `,"\r",`\r
52
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(YE(e,t),(r==null?void 0:r.withDefaultValues)!==!1?JE(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Qe,"getZodChain");function YE(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(YE,"getZodChainablePresence");function JE(e){return e.default!==void 0?`default(${oe(e.type).with("number","integer",()=>sy(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(JE,"getZodChainableDefault");function XE(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(${QE(e.pattern)})`),e.format){let r=oe(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(XE,"getZodChainableStringValidations");function QE(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=ay(e),`/${e}/`}s(QE,"formatPatternIfNeeded");function eA(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(eA,"getZodChainableNumberValidations");function tA(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(tA,"getZodChainableArrayValidations");var Xt=s(e=>e.reduce((t,r)=>t+r,0),"sum");function Y({current:e,schema:t}){if(!t)return e;if(N(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?ue("oneOf")+Y({current:e,schema:{...t,type:t.type[0]}}):e+ue("oneOf")+Xt(t.type.map(r=>Y({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?ue("oneOf")+Y({current:e,schema:t.oneOf[0]}):e+ue("oneOf")+Xt(t.oneOf.map(r=>Y({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?ue("anyOf")+Y({current:e,schema:t.anyOf[0]}):e+ue("anyOf")+Xt(t.anyOf.map(r=>Y({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?ue("allOf")+Y({current:e,schema:t.allOf[0]}):e+ue("allOf")+Xt(t.allOf.map(r=>Y({current:0,schema:r})));if(!t.type)return e;if(At(t.type))return t.enum?e+xy(t)+ue("enum")+Xt(t.enum.map(r=>Y({current:0,schema:r}))):e+xy(t);if(t.type==="array")return t.items?ue("array")+Y({current:e,schema:t.items}):ue("array")+Y({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?ue("record")+Y({current:e,schema:void 0}):ue("record")+Y({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+ue("object")+Xt(r.map(n=>Y({current:0,schema:n})))}return ue("empty-object")+Y({current:e,schema:void 0})}return e}s(Y,"getOpenAPISchemaComplexity");function xy(e){let t=e.type;return t?oe(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(xy,"complexityByType");function ue(e){return e?oe(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s(ue,"complexityByComposite");var au=class au{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;N(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.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?`${Xe({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return Y({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(au,"ZodSchema");var to=au;function B({schema:e,resolver:t,meta:r,tag:n,options:i}){var $;if(!e)throw new Error("Schema is required");let o=new to(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},c={resolver:t,meta:a,tag:n,options:i};if(N(e))return rA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let u=iA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(u)return u;let f=nA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let l=oA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let d=sA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let p=aA({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let m=i!=null&&i.allReadonly?".readonly()":"";if(fy(e))return e.items?o.assign(`z.array(${B({...c,schema:e.items}).getCodeString(n,i)}${Qe({schema:e.items,meta:{...a,isRequired:!0},options:i})})${m}`):o.assign(`z.array(z.any())${m}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,b=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${B({...c,schema:e.additionalProperties}).getCodeString(n,i)+Qe({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let S=e.required&&e.required.length>0,O=i!=null&&i.withImplicitRequiredProps?!1:!(($=e.required)!=null&&$.length),_="{}";e.properties&&(_="{ "+Object.entries(e.properties).map(([Ne,he])=>{var Hn;let Qt={...a,isRequired:O?!0:S?(Hn=e.required)==null?void 0:Hn.includes(Ne):i==null?void 0:i.withImplicitRequiredProps,name:Ne},er=he;if(N(he)&&t&&(er=t.getSchemaByRef(he.$ref),!er))throw new Error(`Schema ${he.$ref} not found`);let Bn=B({...c,schema:he,meta:Qt}).getCodeString(n,i)+Qe({schema:er,meta:Qt,options:i});return[Ne,Bn]}).map(([Ne,he])=>`${oy(Ne)}: ${he}`).join(", ")+" }");let H=O?".partial()":"",L=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${_})${H}${L}${b}${m}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(B,"getZodSchema");function rA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!N(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(f=>(r==null?void 0:r.getZodSchemaNameByRef(f.ref))??f.ref),c=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(c))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let f=r.getSchemaByRef(e.$ref);if(!f)throw new Error(`Schema ${e.$ref} not found`);u=B({schema:f,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(c)||r.setZodSchema(c,u,i),t}s(rA,"getReferenceZodSchema");function nA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var c;if(!st(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=B({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=(c=e.oneOf)==null?void 0:c.some(u=>st(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!a){let u=e.discriminator.propertyName;return t.assign(`
53
- z.discriminatedUnion("${u}", [${e.oneOf.map(f=>B({schema:f,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
54
- `)}return t.assign(`z.union([${e.oneOf.map(u=>B({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(nA,"getOneOfZodSchema");function iA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!st(e)||!Array.isArray(e.type)))return e.type.length===1?B({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>B({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(iA,"getArrayZodSchema");function oA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!st(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=B({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>B({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(oA,"getAnyOfZodSchema");function sA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!st(e)||!e.allOf)return;if(e.allOf.length===1){let p=B({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(p.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=ly(e),f=c.map(p=>{let m=B({schema:p,resolver:r,meta:n,tag:i,options:o});return r&&a(p,r.getSchemaByRef.bind(r)),m});u.required.length&&f.push(B({schema:u,resolver:r,meta:n,tag:i,options:o}));let l=f.at(0),d=f.slice(1).map(p=>`and(${p.getCodeString(i,o)})`).join(".");return t.assign(`${l.getCodeString(i,o)}.${d}`)}s(sA,"getAllOfZodSchema");function aA({schema:e,zodSchema:t}){if(!st(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&At(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(oe(r).with("integer",()=>"z.number()").with("string",()=>oe(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(aA,"getPrimitiveZodSchema");function Hr({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!Br(a)||t.ref===void 0)&&r){if(t.complexity<Qc)return a;let f=jt(r,o.schemaSuffix),l=f,d=1;for(;n.getCodeByZodSchemaName(l);){if((u=n.getZodSchemaNamesByDiscriminatorCode(a))!=null&&u.includes(l))return l;if(n.getCodeByZodSchemaName(l)===f)return l;d+=1,l=`${f}__${d}`}return n.setZodSchema(l,a,i),n.addZodSchemaForDiscriminatorCode(a,t,l,e),l}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return Y({current:0,schema:n.getSchemaByRef(t.ref)})<Qc?n.getCodeByZodSchemaName(a):a;throw new Error("Invalid ref: "+t.ref)}s(Hr,"resolveZodSchemaName");function wy({resolver:e,operation:t,operationName:r,tag:n,options:i}){var m,y;let o=N(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,c=Object.keys(o.content??{}).find(Lr);if(!c)return;let u=(y=(m=o.content)==null?void 0:m[c])==null?void 0:y.schema;if(!u)return;let f=B({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),l=N(u)?e.getSchemaByRef(u.$ref):u,d=Hr({schema:l,zodSchema:f,fallbackName:my(r),resolver:e,tag:n,options:i}),p=Qe({schema:l,meta:f.meta,options:i});return{endpointParameter:{name:Gh,type:"Body",description:o.description,zodSchema:d+p,bodyObject:o},requestFormat:c}}s(wy,"getEndpointBody");function Oy({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=N(t)?e.getSchemaByRef(t.$ref):t;if(!Yh.includes(o.in))return;let a={};if(o.content){let d=Object.keys(o.content??{}),p=d.find(Lr);if(!p)throw new Error(`Unsupported media type for param ${o.name}: ${d.join(", ")}`);let m=o.content[p];if(!m)throw new Error(`No content with media type for param ${o.name}: ${p}`);a=(m==null?void 0:m.schema)??m}else o.schema&&(a=o.schema);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let c=B({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),u=N(a)?e.getSchemaByRef(a.$ref):a,f=Qe({schema:u,meta:c.meta,options:i}),l=Hr({schema:u,zodSchema:c.assign(c.getCodeString(n,i)+f),fallbackName:hy(r,o.name),resolver:e,tag:n,options:i});return{name:oe(o.in).with("path",()=>ru(o.name)).otherwise(()=>o.name),type:oe(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(Oy,"getEndpointParameter");function Ay({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let c in e.paths){let u=e.paths[c],f=Vr(u,Fr),l=Ey(u.parameters??[]);for(let d in f){let p=f[d];if(!p||p.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let m=Object.entries({...l,...Ey(p.parameters??[])}).map(([,v])=>v),y=cy({path:c,method:d,operation:p,openApiDoc:e,options:r}),$=zr(p,r),g={method:d,path:uy(c),operationName:y,description:p.description,tags:(i=p.tags)==null?void 0:i.map(Je),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let v=wy({resolver:t,operation:p,operationName:y,tag:$,options:r});v&&(g.parameters.push(v.endpointParameter),g.requestFormat=v.requestFormat)}for(let v of m){let b=Oy({resolver:t,param:v,operationName:y,tag:$,options:r});b&&g.parameters.push(b)}for(let v in p.responses){let b=N(p.responses[v])?t.getSchemaByRef(p.responses[v].$ref):p.responses[v],O=Object.keys(b.content??{}).find(eo),_,H;if(O?(g.responseFormat=O,_=(a=(o=b.content)==null?void 0:o[O])==null?void 0:a.schema):H=Zc,_){let L=B({schema:_,resolver:t,meta:{isRequired:!0},tag:$,options:r}),qt=N(_)?t.getSchemaByRef(_.$ref):_;H=Hr({schema:qt,zodSchema:L,fallbackName:L.ref?void 0:cA(v,g),resolver:t,tag:$,options:r})+Qe({schema:qt,meta:L.meta,options:r})}if(H){let L=Number(v);nu(L)?(g.response=H,g.responseObject=b):v!=="default"&&iu(L)&&g.errors.push({zodSchema:H,status:L,description:b.description})}}g.response||(g.response=Zc),n.push(g)}}return n}s(Ay,"getEndpointsFromOpenAPIDoc");function cA(e,t){let r=Number(e);return(!nu(r)||t.response)&&e!=="default"&&iu(r)?gy(t.operationName,e):yy(t.operationName)}s(cA,"getResponseZodSchemaName");function Ey(e){return Object.fromEntries((e??[]).map(t=>[N(t)?t.$ref:t.name,t]))}s(Ey,"getParameters");function jy({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Gr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(jy,"getSchemaRefsDependencyGraph");function Gr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(N(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Gr({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let c of a)if(e[c])for(let u of e[c])Gr({...o,schema:u});if(!a.some(c=>e[c])){if(e.type==="array"){if(!e.items)return;Gr({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let c in e.properties)Gr({...o,schema:e.properties[c]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Gr({...o,schema:e.additionalProperties})}}}s(Gr,"visit");function qy(e,t){let r=uA(e,t),n=fA(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(qy,"getOpenAPISchemaDependencyGraph");function uA(e,t){let r={},n={};return e.forEach(i=>jy({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(uA,"getRefsDependencyGraph");function fA(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(fA,"getDeepRefsDependencyGraph");var cu=class cu{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=qy(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];discriminatorZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(ny)}getSchemaByRef(t){return this.docSchemas[Un(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===zn(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(f=>f.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return Je(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByDiscriminatorCode(t){var r;return(r=this.discriminatorZodSchemaData.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]})}addZodSchemaForDiscriminatorCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.discriminatorZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.discriminatorZodSchemaData.push({code:t,zodSchemas:[o]})}getDiscriminatorZodSchemaByZodSchemaName(t){var n;let r=this.discriminatorZodSchemaData.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}getSchemaByDiscriminatorZodSchemaName(t){var r,n;return(n=(r=this.discriminatorZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=zn(t),n=Un(r),i=jt(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,c;let t=s(u=>(u==null?void 0:u.filter(N))??[],"filterRefObjs");for(let u in this.openApiDoc.paths){let f=this.openApiDoc.paths[u],l=Vr(f,Fr);for(let d in l){let p=l[d];if(!p||p.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let m=[];if(m.push(...t((n=p.parameters)==null?void 0:n.map(v=>v.schema))),p.requestBody){let v=N(p.requestBody)?this.getSchemaByRef(p.requestBody.$ref):p.requestBody,S=Object.keys(v.content??{}).find(Lr);if(S){let O=(o=(i=v.content)==null?void 0:i[S])==null?void 0:o.schema;N(O)&&m.push(O)}}for(let v in p.responses){let b=N(p.responses[v])?this.getSchemaByRef(p.responses[v].$ref):p.responses[v],O=Object.keys(b.content??{}).find(eo);if(O){let _=(c=(a=b.content)==null?void 0:a[O])==null?void 0:c.schema;N(_)&&m.push(_)}}let $=m.map(v=>zn(v.$ref)).reduce((v,b)=>{let S=this.dependencyGraph.deepDependencyGraph[b];return[...v,b,...Array.from(S??[])]},[]),g=zr(p,this.options);$.forEach(v=>{let b=this.schemaData.find(S=>S.ref===v);b&&b.tags.push(g)})}}}};s(cu,"SchemaResolver");var ro=cu;function Iy({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=jt(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=B({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(Iy,"getZodSchemasFromOpenAPIDoc");function Ry(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(Ry,"topologicalSort");function Ty(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(Ty,"sortObjKeysFromArray");function ky({resolver:e,zodSchemas:t}){let r=Ry(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Ty(t,r)}s(ky,"sortZodSchemasByTopology");function Ny({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var u;let a=e.getRefByZodSchemaName(i),c=a&&((u=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:u.has(a));n[jt(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(Ny,"wrapCircularZodSchemas");function My({openApiDoc:e,options:t}){let r=new ro(e,t),n=Ay({resolver:r,openApiDoc:e,options:t}),o={...Iy({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=Ny({resolver:r,zodSchemas:o,options:t}),o=ky({resolver:r,zodSchemas:o}),{resolver:r,data:lA({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(My,"getDataFromOpenAPIDoc");function lA({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=vy(o,n);Cy(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(Cy(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(lA,"splitDataByTags");function Cy(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(Cy,"getTagElement");async function Dy({openApiDoc:e,options:t}){let{resolver:r,data:n}=await My({openApiDoc:e,options:t}),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},f)=>{var p;((p=t.excludeTags)==null?void 0:p.findIndex(m=>m.toLocaleLowerCase()===f.toLocaleLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let y="models",$=Je(f),g=su(m,t),v=Ur({type:y,tag:$,includeTagDir:!0,options:t}),b=t.includeNamespaces?Xe({type:y,tag:$,options:t}):void 0,S=r.getRefByZodSchemaName(m),O=S?r.getSchemaByRef(S):r.getSchemaByDiscriminatorZodSchemaName(m);i.push({name:g,filePath:v,namespace:b,properties:O?dy({schema:O,resolver:r,options:t}):[]})}),c.forEach(m=>{let y="queries",$=Je(f),g=_y(m),v=Ur({type:y,tag:$,includeTagDir:!0,options:t}),b=t.includeNamespaces?Xe({type:y,tag:$,options:t}):void 0;o.push({name:g,filePath:v,namespace:b,isQuery:Py(m),isMutation:Sy(m),params:by({resolver:r,endpoint:m,options:t}).map(({name:S,type:O,required:_,tag:H})=>{let L=O.split(".");return{name:S,type:L[L.length-1],namespace:L.length>1?L[0]:void 0,required:_,filePath:H?Ur({type:"models",tag:H,includeTagDir:!0,options:t}):void 0}})})}))}),{openApiDoc:e,models:i,queries:o}}s(Dy,"getMetadataFromOpenAPIDoc");async function dA({input:e,options:t}){let r={...Hh,...t},n=await Fy.default.bundle(e);return await Dy({openApiDoc:n,options:r})}s(dA,"getGenerateMetadata");0&&(module.exports={getGenerateMetadata});
52
+ `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(XE(e,t),(r==null?void 0:r.withDefaultValues)!==!1?QE(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Xe,"getZodChain");function XE(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(XE,"getZodChainablePresence");function QE(e){return e.default!==void 0?`default(${oe(e.type).with("number","integer",()=>cy(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(QE,"getZodChainableDefault");function ej(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(${tj(e.pattern)})`),e.format){let r=oe(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(ej,"getZodChainableStringValidations");function tj(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=uy(e),`/${e}/`}s(tj,"formatPatternIfNeeded");function rj(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(rj,"getZodChainableNumberValidations");function nj(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(nj,"getZodChainableArrayValidations");var er=s(e=>e.reduce((t,r)=>t+r,0),"sum");function W({current:e,schema:t}){if(!t)return e;if(T(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?ue("oneOf")+W({current:e,schema:{...t,type:t.type[0]}}):e+ue("oneOf")+er(t.type.map(r=>W({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?ue("oneOf")+W({current:e,schema:t.oneOf[0]}):e+ue("oneOf")+er(t.oneOf.map(r=>W({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?ue("anyOf")+W({current:e,schema:t.anyOf[0]}):e+ue("anyOf")+er(t.anyOf.map(r=>W({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?ue("allOf")+W({current:e,schema:t.allOf[0]}):e+ue("allOf")+er(t.allOf.map(r=>W({current:0,schema:r})));if(!t.type)return e;if(Et(t.type))return t.enum?e+xy(t)+ue("enum")+er(t.enum.map(r=>W({current:0,schema:r}))):e+xy(t);if(t.type==="array")return t.items?ue("array")+W({current:e,schema:t.items}):ue("array")+W({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?ue("record")+W({current:e,schema:void 0}):ue("record")+W({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+ue("object")+er(r.map(n=>W({current:0,schema:n})))}return ue("empty-object")+W({current:e,schema:void 0})}return e}s(W,"getOpenAPISchemaComplexity");function xy(e){let t=e.type;return t?oe(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(xy,"complexityByType");function ue(e){return e?oe(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s(ue,"complexityByComposite");var fu=class fu{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;T(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.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?`${Xt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return W({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(fu,"ZodSchema");var ro=fu;function U({schema:e,resolver:t,meta:r,tag:n,options:i}){var $;if(!e)throw new Error("Schema is required");let o=new ro(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},c={resolver:t,meta:a,tag:n,options:i};if(T(e))return ij({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let u=sj({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(u)return u;let f=oj({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let l=aj({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let d=cj({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let p=uj({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let m=i!=null&&i.allReadonly?".readonly()":"";if(dy(e))return e.items?o.assign(`z.array(${U({...c,schema:e.items}).getCodeString(n,i)}${Xe({schema:e.items,meta:{...a,isRequired:!0},options:i})})${m}`):o.assign(`z.array(z.any())${m}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,P=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${U({...c,schema:e.additionalProperties}).getCodeString(n,i)+Xe({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let x=e.required&&e.required.length>0,j=i!=null&&i.withImplicitRequiredProps?!1:!(($=e.required)!=null&&$.length),_="{}";e.properties&&(_="{ "+Object.entries(e.properties).map(([ke,he])=>{var Gn;let tr={...a,isRequired:j?!0:x?(Gn=e.required)==null?void 0:Gn.includes(ke):i==null?void 0:i.withImplicitRequiredProps,name:ke},rr=he;if(T(he)&&t&&(rr=t.getSchemaByRef(he.$ref),!rr))throw new Error(`Schema ${he.$ref} not found`);let Hn=U({...c,schema:he,meta:tr}).getCodeString(n,i)+Xe({schema:rr,meta:tr,options:i});return[ke,Hn]}).map(([ke,he])=>`${ay(ke)}: ${he}`).join(", ")+" }");let Y=j?".partial()":"",G=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${_})${Y}${G}${P}${m}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(U,"getZodSchema");function ij({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!T(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(f=>(r==null?void 0:r.getZodSchemaNameByRef(f.ref))??f.ref),c=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(c))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let f=r.getSchemaByRef(e.$ref);if(!f)throw new Error(`Schema ${e.$ref} not found`);u=U({schema:f,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(c)||r.setZodSchema(c,u,i),t}s(ij,"getReferenceZodSchema");function oj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var c;if(!Je(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=U({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=(c=e.oneOf)==null?void 0:c.some(u=>Je(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!a){let u=e.discriminator.propertyName;return t.assign(`
53
+ z.discriminatedUnion("${u}", [${e.oneOf.map(f=>U({schema:f,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
54
+ `)}return t.assign(`z.union([${e.oneOf.map(u=>U({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(oj,"getOneOfZodSchema");function sj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Je(e)||!Array.isArray(e.type)))return e.type.length===1?U({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>U({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(sj,"getArrayZodSchema");function aj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Je(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=U({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>U({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(aj,"getAnyOfZodSchema");function cj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Je(e)||!e.allOf)return;if(e.allOf.length===1){let p=U({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(p.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=py(e),f=c.map(p=>{let m=U({schema:p,resolver:r,meta:n,tag:i,options:o});return r&&a(p,r.getSchemaByRef.bind(r)),m});u.required.length&&f.push(U({schema:u,resolver:r,meta:n,tag:i,options:o}));let l=f.at(0),d=f.slice(1).map(p=>`and(${p.getCodeString(i,o)})`).join(".");return t.assign(`${l.getCodeString(i,o)}.${d}`)}s(cj,"getAllOfZodSchema");function uj({schema:e,zodSchema:t}){if(!Je(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&Et(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(oe(r).with("integer",()=>"z.number()").with("string",()=>oe(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(uj,"getPrimitiveZodSchema");function Zr({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!Qt(a)||t.ref===void 0)&&r){if(t.complexity<tu)return a;let f=At(r,o.schemaSuffix),l=f,d=1;for(;n.getCodeByZodSchemaName(l);){if((u=n.getZodSchemaNamesByDiscriminatorCode(a))!=null&&u.includes(l))return l;if(n.getCodeByZodSchemaName(l)===f)return l;d+=1,l=`${f}__${d}`}return n.setZodSchema(l,a,i),n.addZodSchemaForDiscriminatorCode(a,t,l,e),l}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return W({current:0,schema:n.getSchemaByRef(t.ref)})<tu?n.getCodeByZodSchemaName(a):a;throw new Error("Invalid ref: "+t.ref)}s(Zr,"resolveZodSchemaName");function wy({resolver:e,operation:t,operationName:r,tag:n,options:i}){var m,y;let o=T(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,c=Object.keys(o.content??{}).find(jt);if(!c)return;let u=(y=(m=o.content)==null?void 0:m[c])==null?void 0:y.schema;if(!u)return;let f=U({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),l=T(u)?e.getSchemaByRef(u.$ref):u,d=Zr({schema:l,zodSchema:f,fallbackName:yy(r),resolver:e,tag:n,options:i}),p=Xe({schema:l,meta:f.meta,options:i});return{endpointParameter:{name:Py,type:"Body",description:o.description,zodSchema:d+p,bodyObject:o},requestFormat:c}}s(wy,"getEndpointBody");function Oy({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=T(t)?e.getSchemaByRef(t.$ref):t;if(!ry.includes(o.in))return;let a={};if(o.content){let d=Object.keys(o.content??{}),p=d.find(jt);if(!p)throw new Error(`Unsupported media type for param ${o.name}: ${d.join(", ")}`);let m=o.content[p];if(!m)throw new Error(`No content with media type for param ${o.name}: ${p}`);a=(m==null?void 0:m.schema)??m}else o.schema&&(a=o.schema);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let c=U({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),u=T(a)?e.getSchemaByRef(a.$ref):a,f=Xe({schema:u,meta:c.meta,options:i}),l=Zr({schema:u,zodSchema:c.assign(c.getCodeString(n,i)+f),fallbackName:gy(r,o.name),resolver:e,tag:n,options:i});return{name:oe(o.in).with("path",()=>ou(o.name)).otherwise(()=>o.name),type:oe(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(Oy,"getEndpointParameter");function jy({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let c in e.paths){let u=e.paths[c],f=zr(u,Lr),l=Ey(u.parameters??[]);for(let d in f){let p=f[d];if(!p||p.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let m=Object.entries({...l,...Ey(p.parameters??[])}).map(([,v])=>v),y=fy({path:c,method:d,operation:p,openApiDoc:e,options:r}),$=Br(p,r),g={method:d,path:ly(c),operationName:y,description:p.description,tags:(i=p.tags)==null?void 0:i.map(ot),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let v=wy({resolver:t,operation:p,operationName:y,tag:$,options:r});v&&(g.parameters.push(v.endpointParameter),g.requestFormat=v.requestFormat)}for(let v of m){let P=Oy({resolver:t,param:v,operationName:y,tag:$,options:r});P&&g.parameters.push(P)}for(let v in p.responses){let P=T(p.responses[v])?t.getSchemaByRef(p.responses[v].$ref):p.responses[v],j=Object.keys(P.content??{}).find(Ur),_,Y;if(j?(g.responseFormat=j,_=(a=(o=P.content)==null?void 0:o[j])==null?void 0:a.schema):Y=Kc,_){let G=U({schema:_,resolver:t,meta:{isRequired:!0},tag:$,options:r}),qt=T(_)?t.getSchemaByRef(_.$ref):_;Y=Zr({schema:qt,zodSchema:G,fallbackName:G.ref?void 0:fj(v,g),resolver:t,tag:$,options:r})+Xe({schema:qt,meta:G.meta,options:r})}if(Y){let G=Number(v);su(G)?(g.response=Y,g.responseObject=P):v!=="default"&&au(G)&&g.errors.push({zodSchema:Y,status:G,description:P.description})}}g.response||(g.response=Kc),n.push(g)}}return n}s(jy,"getEndpointsFromOpenAPIDoc");function fj(e,t){let r=Number(e);return(!su(r)||t.response)&&e!=="default"&&au(r)?vy(t.operationName,e):$y(t.operationName)}s(fj,"getResponseZodSchemaName");function Ey(e){return Object.fromEntries((e??[]).map(t=>[T(t)?t.$ref:t.name,t]))}s(Ey,"getParameters");function Ay({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Kr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(Ay,"getSchemaRefsDependencyGraph");function Kr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(T(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Kr({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let c of a)if(e[c])for(let u of e[c])Kr({...o,schema:u});if(!a.some(c=>e[c])){if(e.type==="array"){if(!e.items)return;Kr({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let c in e.properties)Kr({...o,schema:e.properties[c]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Kr({...o,schema:e.additionalProperties})}}}s(Kr,"visit");function qy(e,t){let r=lj(e,t),n=dj(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(qy,"getOpenAPISchemaDependencyGraph");function lj(e,t){let r={},n={};return e.forEach(i=>Ay({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(lj,"getRefsDependencyGraph");function dj(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(dj,"getDeepRefsDependencyGraph");var lu=class lu{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=qy(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];discriminatorZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(oy)}getSchemaByRef(t){return this.docSchemas[iu(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Bn(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(f=>f.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return ot(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByDiscriminatorCode(t){var r;return(r=this.discriminatorZodSchemaData.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]})}addZodSchemaForDiscriminatorCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.discriminatorZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.discriminatorZodSchemaData.push({code:t,zodSchemas:[o]})}getDiscriminatorZodSchemaByZodSchemaName(t){var n;let r=this.discriminatorZodSchemaData.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}getSchemaByDiscriminatorZodSchemaName(t){var r,n;return(n=(r=this.discriminatorZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Bn(t),n=iu(r),i=At(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,c;let t=s(u=>(u==null?void 0:u.filter(T))??[],"filterRefObjs");for(let u in this.openApiDoc.paths){let f=this.openApiDoc.paths[u],l=zr(f,Lr);for(let d in l){let p=l[d];if(!p||p.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let m=[];if(m.push(...t((n=p.parameters)==null?void 0:n.map(v=>v.schema))),p.requestBody){let v=T(p.requestBody)?this.getSchemaByRef(p.requestBody.$ref):p.requestBody,x=Object.keys(v.content??{}).find(jt);if(x){let j=(o=(i=v.content)==null?void 0:i[x])==null?void 0:o.schema;T(j)&&m.push(j)}}for(let v in p.responses){let P=T(p.responses[v])?this.getSchemaByRef(p.responses[v].$ref):p.responses[v],j=Object.keys(P.content??{}).find(Ur);if(j){let _=(c=(a=P.content)==null?void 0:a[j])==null?void 0:c.schema;T(_)&&m.push(_)}}let $=m.map(v=>Bn(v.$ref)).reduce((v,P)=>{let x=this.dependencyGraph.deepDependencyGraph[P];return[...v,P,...Array.from(x??[])]},[]),g=Br(p,this.options);$.forEach(v=>{let P=this.schemaData.find(x=>x.ref===v);P&&P.tags.push(g)})}}}};s(lu,"SchemaResolver");var no=lu;function Iy({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=At(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=U({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(Iy,"getZodSchemasFromOpenAPIDoc");function Ty(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(Ty,"topologicalSort");function Ry(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(Ry,"sortObjKeysFromArray");function Ny({resolver:e,zodSchemas:t}){let r=Ty(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Ry(t,r)}s(Ny,"sortZodSchemasByTopology");function ky({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var u;let a=e.getRefByZodSchemaName(i),c=a&&((u=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:u.has(a));n[At(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(ky,"wrapCircularZodSchemas");function My({openApiDoc:e,options:t}){let r=new no(e,t),n=jy({resolver:r,openApiDoc:e,options:t}),o={...Iy({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=ky({resolver:r,zodSchemas:o,options:t}),o=Ny({resolver:r,zodSchemas:o}),{resolver:r,data:pj({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(My,"getDataFromOpenAPIDoc");function pj({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Sy(o,n);Cy(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(Cy(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(pj,"splitDataByTags");function Cy(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(Cy,"getTagElement");async function Dy({openApiDoc:e,options:t}){let{resolver:r,data:n}=await My({openApiDoc:e,options:t}),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},f)=>{var p;((p=t.excludeTags)==null?void 0:p.findIndex(m=>m.toLocaleLowerCase()===f.toLocaleLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let y=r.getRefByZodSchemaName(m),$=y?r.getSchemaByRef(y):r.getSchemaByDiscriminatorZodSchemaName(m),g=Hr({zodSchemaName:m,schema:$,resolver:r,options:t}),v;$&&(v=Gr({schema:$,parentTypes:[g],resolver:r,options:t})),i.push({...g,dataType:"primitive",...v})}),c.forEach(m=>{let y="queries",$=ot(f);o.push({name:Qh(m),filePath:Qi({type:y,tag:$,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?Xt({type:y,tag:$,options:t}):void 0,isQuery:my(m),isMutation:hy(m),params:mj({resolver:r,endpoint:m,options:t}),response:hj({resolver:r,endpoint:m,options:t})})}))}),{openApiDoc:e,models:i,queries:o}}s(Dy,"getMetadataFromOpenAPIDoc");function mj({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var c,u,f,l,d;let i;if((c=n.parameterObject)!=null&&c.schema&&Je(n.parameterObject.schema))i=(u=n.parameterObject)==null?void 0:u.schema;else if(n.bodyObject){let m=Object.keys(n.bodyObject.content??{}).find(jt);if(m){let y=(l=(f=n.bodyObject.content)==null?void 0:f[m])==null?void 0:l.schema;i=T(y)?e.getSchemaByRef(y.$ref):y}}let o=Hr({zodSchemaName:n.zodSchema,schema:i,resolver:e,options:r}),a;return i&&(a=Gr({schema:i,parentTypes:[o],resolver:e,options:r})),{name:Wc(n.name),isRequired:((d=n.parameterObject)==null?void 0:d.required)??!0,...o,...a,paramType:n.type}}).sort((n,i)=>{if(n.isRequired===i.isRequired){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.isRequired?-1:1}).map(({paramType:n,...i})=>i)}s(mj,"getQueryMetadataParams");function hj({resolver:e,endpoint:t,options:r}){var c,u,f,l;let n,i=Object.keys(((c=t.responseObject)==null?void 0:c.content)??{}).find(Ur);if(i){let d=(l=(f=(u=t.responseObject)==null?void 0:u.content)==null?void 0:f[i])==null?void 0:l.schema;n=T(d)?e.getSchemaByRef(d.$ref):d}let o=Hr({zodSchemaName:t.response,schema:n,resolver:e,options:r}),a;return n&&(a=Gr({schema:n,parentTypes:[o],resolver:e,options:r})),{...o,dataType:"primitive",...a}}s(hj,"getQueryMetadataResponse");async function yj({input:e,options:t}){let r={...Kh,...t},n=await Fy.default.bundle(e);return await Dy({openApiDoc:n,options:r})}s(yj,"getGenerateMetadata");0&&(module.exports={getGenerateMetadata});