@povio/openapi-codegen-cli 0.2.9 → 0.3.0
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/commands/generate.d.ts +2 -1
- package/dist/generators/types/metadata.d.ts +13 -13
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +1 -1
- package/dist/generators/utils/ts.utils.d.ts +4 -4
- package/dist/index.js +12 -12
- package/dist/sh.js +49 -49
- package/package.json +1 -1
- package/src/generators/templates/partials/query-use-mutation.hbs +1 -1
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.getDeepKeys=ir.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");ir.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");ir.getDeepKeys=yu});var ao=h(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.addInspectMethod=or.format=void 0;var gu=require("util"),og=Wn(),$u=gu.inspect.custom||Symbol.for("nodejs.util.inspect.custom");or.format=gu.format;function sg(e){e[$u]=ag}s(sg,"addInspectMethod");or.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(
|
|
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(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.getDeepKeys=ir.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");ir.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");ir.getDeepKeys=yu});var ao=h(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.addInspectMethod=or.format=void 0;var gu=require("util"),og=Wn(),$u=gu.inspect.custom||Symbol.for("nodejs.util.inspect.custom");or.format=gu.format;function sg(e){e[$u]=ag}s(sg,"addInspectMethod");or.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(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.lazyJoinStacks=Me.joinStacks=Me.isWritableStack=Me.isLazyStack=void 0;var cg=/\r?\n/,ug=/\bono[ @]/;function fg(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(fg,"isLazyStack");Me.isLazyStack=fg;function lg(e){return!!(!e||e.writable||typeof e.set=="function")}s(lg,"isWritableStack");Me.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(vu,"joinStacks");
|
|
3
|
+
`+n:r||n}s(vu,"joinStacks");Me.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");Me.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
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 Ou=h(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.normalizeArgs=sr.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");sr.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");sr.normalizeArgs=bg});var uo=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Ono=void 0;var Xn=xu(),wu=Ou(),_g=Wn(),Pg=co;Qn.Ono=Pg;function co(e,t){t=wu.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=wu.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 Tt=uo(),Sg=Me;ei.ono=Sg;Me.error=new Tt.Ono(Error);Me.eval=new Tt.Ono(EvalError);Me.range=new Tt.Ono(RangeError);Me.reference=new Tt.Ono(ReferenceError);Me.syntax=new Tt.Ono(SyntaxError);Me.type=new Tt.Ono(TypeError);Me.uri=new Tt.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 Oe=h((xe,ar)=>{"use strict";var Og=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]}),wg=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Og(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")});wg(Au(),xe);xe.default=qu.ono;typeof ar=="object"&&typeof ar.exports=="object"&&(ar.exports=Object.assign(ar.exports.default,ar.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 It=mo;k.Name=It;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 It&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(ho,"_Code");var $e=ho;k._Code=$e;k.nil=new $e("");function Tu(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(Tu,"_");k._=Tu;var fo=new $e("+");function Iu(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(Iu,"str");k.str=Iu;function lo(e,t){t instanceof $e?e.push(...t._items):t instanceof It?e.push(t):e.push(Tg(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 It||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 It))return`"${e}${t.slice(1)}`}s(Ag,"mergeExprItems");function qg(e,t){return t.emptyStr()?e:e.emptyStr()?t:Iu`${e}${t}`}s(qg,"strConcat");k.strConcat=qg;function Tg(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Xr(Array.isArray(e)?e.join(","):e)}s(Tg,"interpolate");function Ig(e){return new $e(Xr(e))}s(Ig,"stringify");k.stringify=Ig;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}`):Tu`[${e}]`}s(Rg,"getProperty");k.getProperty=Rg;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 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 w=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 I=Qr(),we=Po(),ot=Qr();Object.defineProperty(A,"_",{enumerable:!0,get:s(function(){return ot._},"get")});Object.defineProperty(A,"str",{enumerable:!0,get:s(function(){return ot.str},"get")});Object.defineProperty(A,"strConcat",{enumerable:!0,get:s(function(){return ot.strConcat},"get")});Object.defineProperty(A,"nil",{enumerable:!0,get:s(function(){return ot.nil},"get")});Object.defineProperty(A,"getProperty",{enumerable:!0,get:s(function(){return ot.getProperty},"get")});Object.defineProperty(A,"stringify",{enumerable:!0,get:s(function(){return ot.stringify},"get")});Object.defineProperty(A,"regexpCode",{enumerable:!0,get:s(function(){return ot.regexpCode},"get")});Object.defineProperty(A,"Name",{enumerable:!0,get:s(function(){return ot.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 I._Code(">"),GTE:new I._Code(">="),LT:new I._Code("<"),LTE:new I._Code("<="),EQ:new I._Code("==="),NEQ:new I._Code("!=="),NOT:new I._Code("!"),OR:new I._Code("||"),AND:new I._Code("&&"),ADD:new I._Code("+")};var No=class No{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(No,"Node");var Xe=No,Co=class Co extends Xe{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?we.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=fr(this.rhs,t,r)),this}get names(){return this.rhs instanceof I._CodeOrName?this.rhs.names:{}}};s(Co,"Def");var So=Co,Mo=class Mo extends Xe{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof I.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=fr(this.rhs,t,r),this}get names(){let t=this.lhs instanceof I.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 Xe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Fo,"Label");var Oo=Fo,Vo=class Vo extends Xe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Vo,"Break");var wo=Vo,Lo=class Lo extends Xe{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 Xe{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=fr(this.code,t,r),this}get names(){return this.code instanceof I._CodeOrName?this.code.names:{}}};s(zo,"AnyCode");var jo=zo,Uo=class Uo extends Xe{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(Uo,"ParentNode");var en=Uo,Bo=class Bo extends en{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Bo,"BlockNode");var Qe=Bo,Ho=class Ho extends en{};s(Ho,"Root");var Ao=Ho,Go=class Go extends Qe{};s(Go,"Else");var ur=Go;ur.kind="else";var cr=class cr extends Qe{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 ur(n):n}if(r)return t===!1?r instanceof cr?r:r.nodes:this.nodes.length?this:new cr(Ru(t),r instanceof cr?[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=fr(this.condition,t,r),this}get names(){let t=super.names;return si(t,this.condition),this.else&&Nt(t,this.else.names),t}};s(cr,"If");var Rt=cr;Rt.kind="if";var Zo=class Zo extends Qe{};s(Zo,"For");var kt=Zo;kt.kind="for";var Ko=class Ko 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=fr(this.iteration,t,r),this}get names(){return Nt(super.names,this.iteration.names)}};s(Ko,"ForLoop");var qo=Ko,Wo=class Wo 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?we.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 To=Wo,Yo=class Yo 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=fr(this.iterable,t,r),this}get names(){return Nt(super.names,this.iterable.names)}};s(Yo,"ForIter");var oi=Yo,Jo=class Jo extends Qe{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 Qe{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(Qo,"Try");var Io=Qo,es=class es extends Qe{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 Qe{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?`
|
|
5
|
+
`:"")+r.message),{originalError:r,props:n,message:o}}s(bg,"normalizeArgs");sr.normalizeArgs=bg});var uo=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Ono=void 0;var Xn=xu(),wu=Ou(),_g=Wn(),Pg=co;Qn.Ono=Pg;function co(e,t){t=wu.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=wu.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 Tt=uo(),Sg=De;ei.ono=Sg;De.error=new Tt.Ono(Error);De.eval=new Tt.Ono(EvalError);De.range=new Tt.Ono(RangeError);De.reference=new Tt.Ono(ReferenceError);De.syntax=new Tt.Ono(SyntaxError);De.type=new Tt.Ono(TypeError);De.uri=new Tt.Ono(URIError);var xg=De;function De(...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 De.error.apply(void 0,e)}s(De,"ono")});var Au=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Cj=require("util")});var Oe=h((xe,ar)=>{"use strict";var Og=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]}),wg=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Og(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")});wg(Au(),xe);xe.default=qu.ono;typeof ar=="object"&&typeof ar.exports=="object"&&(ar.exports=Object.assign(ar.exports.default,ar.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 It=mo;k.Name=It;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 It&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(ho,"_Code");var $e=ho;k._Code=$e;k.nil=new $e("");function Tu(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(Tu,"_");k._=Tu;var fo=new $e("+");function Iu(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(Iu,"str");k.str=Iu;function lo(e,t){t instanceof $e?e.push(...t._items):t instanceof It?e.push(t):e.push(Tg(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 It||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 It))return`"${e}${t.slice(1)}`}s(Ag,"mergeExprItems");function qg(e,t){return t.emptyStr()?e:e.emptyStr()?t:Iu`${e}${t}`}s(qg,"strConcat");k.strConcat=qg;function Tg(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Xr(Array.isArray(e)?e.join(","):e)}s(Tg,"interpolate");function Ig(e){return new $e(Xr(e))}s(Ig,"stringify");k.stringify=Ig;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}`):Tu`[${e}]`}s(Rg,"getProperty");k.getProperty=Rg;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 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 w=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 I=Qr(),we=Po(),ot=Qr();Object.defineProperty(A,"_",{enumerable:!0,get:s(function(){return ot._},"get")});Object.defineProperty(A,"str",{enumerable:!0,get:s(function(){return ot.str},"get")});Object.defineProperty(A,"strConcat",{enumerable:!0,get:s(function(){return ot.strConcat},"get")});Object.defineProperty(A,"nil",{enumerable:!0,get:s(function(){return ot.nil},"get")});Object.defineProperty(A,"getProperty",{enumerable:!0,get:s(function(){return ot.getProperty},"get")});Object.defineProperty(A,"stringify",{enumerable:!0,get:s(function(){return ot.stringify},"get")});Object.defineProperty(A,"regexpCode",{enumerable:!0,get:s(function(){return ot.regexpCode},"get")});Object.defineProperty(A,"Name",{enumerable:!0,get:s(function(){return ot.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 I._Code(">"),GTE:new I._Code(">="),LT:new I._Code("<"),LTE:new I._Code("<="),EQ:new I._Code("==="),NEQ:new I._Code("!=="),NOT:new I._Code("!"),OR:new I._Code("||"),AND:new I._Code("&&"),ADD:new I._Code("+")};var No=class No{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(No,"Node");var Xe=No,Co=class Co extends Xe{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?we.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=fr(this.rhs,t,r)),this}get names(){return this.rhs instanceof I._CodeOrName?this.rhs.names:{}}};s(Co,"Def");var So=Co,Mo=class Mo extends Xe{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof I.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=fr(this.rhs,t,r),this}get names(){let t=this.lhs instanceof I.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 Xe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Fo,"Label");var Oo=Fo,Vo=class Vo extends Xe{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Vo,"Break");var wo=Vo,Lo=class Lo extends Xe{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 Xe{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=fr(this.code,t,r),this}get names(){return this.code instanceof I._CodeOrName?this.code.names:{}}};s(zo,"AnyCode");var jo=zo,Uo=class Uo extends Xe{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(Uo,"ParentNode");var en=Uo,Bo=class Bo extends en{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Bo,"BlockNode");var Qe=Bo,Ho=class Ho extends en{};s(Ho,"Root");var Ao=Ho,Go=class Go extends Qe{};s(Go,"Else");var ur=Go;ur.kind="else";var cr=class cr extends Qe{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 ur(n):n}if(r)return t===!1?r instanceof cr?r:r.nodes:this.nodes.length?this:new cr(Ru(t),r instanceof cr?[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=fr(this.condition,t,r),this}get names(){let t=super.names;return si(t,this.condition),this.else&&Nt(t,this.else.names),t}};s(cr,"If");var Rt=cr;Rt.kind="if";var Zo=class Zo extends Qe{};s(Zo,"For");var kt=Zo;kt.kind="for";var Ko=class Ko 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=fr(this.iteration,t,r),this}get names(){return Nt(super.names,this.iteration.names)}};s(Ko,"ForLoop");var qo=Ko,Wo=class Wo 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?we.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 To=Wo,Yo=class Yo 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=fr(this.iterable,t,r),this}get names(){return Nt(super.names,this.iterable.names)}};s(Yo,"ForIter");var oi=Yo,Jo=class Jo extends Qe{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 Qe{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(Qo,"Try");var Io=Qo,es=class es extends Qe{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 Qe{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
6
|
`:""},this._extScope=t,this._scope=new we.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(we.varKinds.const,t,r,n)}let(t,r,n){return this._def(we.varKinds.let,t,r,n)}var(t,r,n){return this._def(we.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!==I.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,I.addCodeArg)(r,i));return r.push("}"),new I._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 ur)}endIf(){return this._endBlockNode(Rt,ur)}_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?we.varKinds.var:we.varKinds.let){let a=this._scope.toName(t);return this._for(new To(o,a,r,n),()=>i(a))}forOf(t,r,n,i=we.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof I.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,I._)`${a}.length`,c=>{this.var(o,(0,I._)`${a}[${c}]`),n(o)})}return this._for(new oi("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?we.varKinds.var:we.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,I._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new oi("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(kt)}label(t){return this._leafNode(new Oo(t))}break(t){return this._leafNode(new wo(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 Io;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=I.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 Nt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Nt,"addNames");function si(e,t){return t instanceof I._CodeOrName?Nt(e,t.names):e}s(si,"addExprNames");function fr(e,t,r){if(e instanceof I.Name)return n(e);if(!i(e))return e;return new I._Code(e._items.reduce((o,a)=>(a instanceof I.Name&&(a=n(a)),a instanceof I._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof I._Code&&o._items.some(a=>a instanceof I.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(fr,"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,I._)`!${ko(e)}`}s(Ru,"not");A.not=Ru;var Dg=ku(A.operators.AND);function Fg(...e){return e.reduce(Dg)}s(Fg,"and");A.and=Fg;var Vg=ku(A.operators.OR);function Lg(...e){return e.reduce(Vg)}s(Lg,"or");A.or=Lg;function ku(e){return(t,r)=>t===I.nil?r:r===I.nil?t:(0,I._)`${ko(t)} ${e} ${ko(r)}`}s(ku,"mappend");function ko(e){return e instanceof I.Name?e:(0,I._)`(${e})`}s(ko,"par")});var T=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 M=w(),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,M._)`${r}`}return(0,M._)`${e}${t}${(0,M.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 Nu({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof M.Name?(o instanceof M.Name?e(i,o,a):t(i,o,a),a):o instanceof M.Name?(t(i,a,o),o):r(o,a);return c===M.Name&&!(u instanceof M.Name)?n(i,u):u}}s(Nu,"makeMergeEvaluated");q.mergeEvaluated={props:Nu({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,M._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,M._)`${r} || {}`).code((0,M._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,M._)`${r} || {}`),os(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Vu}),items:Nu({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,M._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,M._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function Vu(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,M._)`{}`);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,M._)`${t}${(0,M.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 M.Name){let n=t===ns.Num;return r?n?(0,M._)`"[" + ${e} + "]"`:(0,M._)`"['" + ${e} + "']"`:n?(0,M._)`"/" + ${e}`:(0,M._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,M.getProperty)(e).toString():"/"+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=w(),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 R=w(),ci=T(),se=ve();te.keywordError={message:s(({keyword:e})=>(0,R.str)`must pass "${e}" keyword validation`,"message")};te.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,R.str)`"${e}" keyword must be ${t} ($data)`:(0,R.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,R._)`[${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,R._)`${se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,R._)`${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,R._)`${se.default.vErrors}[${c}]`),e.if((0,R._)`${a}.instancePath === undefined`,()=>e.assign((0,R._)`${a}.instancePath`,(0,R.strConcat)(se.default.instancePath,o.errorPath))),e.assign((0,R._)`${a}.schemaPath`,(0,R.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,R._)`${a}.schema`,r),e.assign((0,R._)`${a}.data`,n))})}s(r$,"extendErrors");te.extendErrors=r$;function zu(e,t){let r=e.const("err",t);e.if((0,R._)`${se.default.vErrors} === null`,()=>e.assign(se.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${se.default.vErrors}.push(${r})`),e.code((0,R._)`${se.default.errors}++`)}s(zu,"addError");function Uu(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,R._)`new ${e.ValidationError}(${t})`):(r.assign((0,R._)`${n}.errors`,t),r.return(!1))}s(Uu,"returnErrors");var Ct={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Bu(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,R._)`{}`: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,R.str)`${e}${(0,ci.getErrorPath)(t,ci.Type.Str)}`:e;return[se.default.instancePath,(0,R.strConcat)(se.default.instancePath,r)]}s(i$,"errorInstancePath");function o$({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,R.str)`${t}/${e}`;return r&&(i=(0,R.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,R._)`{}`]),u.messages&&n.push([Ct.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ct.schema,a],[Ct.parentSchema,(0,R._)`${l}${d}`],[se.default.data,o]),f&&n.push([Ct.propertyName,f])}s(s$,"extraErrorProps")});var Gu=h(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.boolOrEmptySchema=lr.topBoolOrEmptySchema=void 0;var a$=sn(),c$=w(),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");lr.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");lr.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(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getRules=dr.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");dr.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");dr.getRules=y$});var cs=h(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.shouldUseRule=st.shouldUseGroup=st.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");st.schemaHasRulesForType=g$;function Zu(e,t){return t.rules.some(r=>Ku(e,r))}s(Zu,"shouldUseGroup");st.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");st.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=w(),Wu=T(),pr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(pr||(re.DataType=pr={}));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,pr.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),O$(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
7
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,E._)`+${i}`);return;case"integer":n.elseIf((0,E._)`${a} === "boolean" || ${i} === null
|
|
8
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 O$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(O$,"assignParentData");function us(e,t,r,n=pr.Correct){let i=n===pr.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===pr.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 w$={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,w$)}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 mr=w(),j$=T();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,mr._)`${o}${(0,mr.getProperty)(t)}`;if(i){(0,j$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,mr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,mr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,mr._)`${c} = ${(0,mr.stringify)(r)}`)}s(Xu,"assignDefault")});var be=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.validateUnion=C.validateArray=C.usePattern=C.callValidateCode=C.schemaProperties=C.allSchemaProperties=C.noPropertyInData=C.propertyInData=C.isOwnProperty=C.hasPropFunc=C.reportMissingProp=C.checkMissingProp=C.checkReportMissingProp=void 0;var D=w(),ds=T(),at=ve(),q$=T();function T$(e,t){let{gen:r,data:n,it:i}=e;r.if(ms(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,D._)`${t}`},!0),e.error()})}s(T$,"checkReportMissingProp");C.checkReportMissingProp=T$;function I$({gen:e,data:t,it:{opts:r}},n,i){return(0,D.or)(...n.map(o=>(0,D.and)(ms(e,t,o,r.ownProperties),(0,D._)`${i} = ${o}`)))}s(I$,"checkMissingProp");C.checkMissingProp=I$;function R$(e,t){e.setParams({missingProperty:t},!0),e.error()}s(R$,"reportMissingProp");C.reportMissingProp=R$;function ef(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,D._)`Object.prototype.hasOwnProperty`})}s(ef,"hasPropFunc");C.hasPropFunc=ef;function ps(e,t,r){return(0,D._)`${ef(e)}.call(${t}, ${r})`}s(ps,"isOwnProperty");C.isOwnProperty=ps;function k$(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} !== undefined`;return n?(0,D._)`${i} && ${ps(e,t,r)}`:i}s(k$,"propertyInData");C.propertyInData=k$;function ms(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} === undefined`;return n?(0,D.or)(i,(0,D.not)(ps(e,t,r))):i}s(ms,"noPropertyInData");C.noPropertyInData=ms;function tf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(tf,"allSchemaProperties");C.allSchemaProperties=tf;function N$(e,t){return tf(t).filter(r=>!(0,ds.alwaysValidSchema)(e,t[r]))}s(N$,"schemaProperties");C.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,D._)`${e}, ${t}, ${n}${i}`:t,d=[[at.default.instancePath,(0,D.strConcat)(at.default.instancePath,o)],[at.default.parentData,a.parentData],[at.default.parentDataProperty,a.parentDataProperty],[at.default.rootData,at.default.rootData]];a.opts.dynamicRef&&d.push([at.default.dynamicAnchors,at.default.dynamicAnchors]);let p=(0,D._)`${l}, ${r.object(...d)}`;return u!==D.nil?(0,D._)`${c}.call(${u}, ${p})`:(0,D._)`${c}(${p})`}s(C$,"callValidateCode");C.callValidateCode=C$;var M$=(0,D._)`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,D._)`${i.code==="new RegExp"?M$:(0,q$.useFunc)(e,i)}(${r}, ${n})`})}s(D$,"usePattern");C.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,D._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:ds.Type.Num},o),t.if((0,D.not)(o),c)})}s(a,"validateItems")}s(F$,"validateArray");C.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,D._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,D.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(V$,"validateUnion");C.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=w(),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 `),_=>n.assign(d,!1).if((0,ae._)`${_} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,ae._)`${_}.errors`),()=>n.throw(_))),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 _=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,_,x)}`,t.modifying)}s($,"assignValid");function g(v){var _;n.if((0,ae.not)((_=t.valid)!==null&&_!==void 0?_: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(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.extendSubschemaMode=ct.extendSubschemaData=ct.getSubschema=void 0;var Fe=w(),sf=T();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");ct.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");ct.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");ct.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 ut=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)};ut.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ut.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ut.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ut.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 ut.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 ut.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 ut.keywords||e.allKeys&&!(l in ut.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$=T(),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=hr(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 hr(e){return e?e.replace(o0,""):""}s(hr,"normalizeId");de.normalizeId=hr;function s0(e,t,r){return r=hr(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=hr(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])),_.call(this,d.$anchor),_.call(this,d.$dynamicAnchor),o[p]=g;function v(x){let j=this.opts.uriResolver.resolve;if(x=hr(g?j(g,x):x),u.has(x))throw l(x);u.add(x);let P=this.refs[x];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?f(d,P.schema,x):x!==hr($)&&(x[0]==="#"?(f(d,c[x],x),c[x]=d):this.refs[x]=$),x}s(v,"addRef");function _(x){if(typeof x=="string"){if(!a0.test(x))throw new Error(`invalid anchor "${x}"`);v.call(this,`#${x}`)}}s(_,"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(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getData=ft.KeywordCxt=ft.validateFunctionCode=void 0;var $f=Gu(),mf=an(),$s=cs(),li=an(),u0=Qu(),fn=of(),gs=af(),b=w(),O=ve(),f0=cn(),et=T(),un=sn();function l0(e){if(_f(e)&&(Pf(e),bf(e))){m0(e);return}vf(e,()=>(0,$f.topBoolOrEmptySchema)(e))}s(l0,"validateFunctionCode");ft.validateFunctionCode=l0;function vf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,b._)`${O.default.data}, ${O.default.valCxt}`,n.$async,()=>{e.code((0,b._)`"use strict"; ${hf(r,i)}`),p0(e,i),e.code(o)}):e.func(t,(0,b._)`${O.default.data}, ${d0(i)}`,n.$async,()=>e.code(hf(r,i)).code(o))}s(vf,"validateFunction");function d0(e){return(0,b._)`{${O.default.instancePath}="", ${O.default.parentData}, ${O.default.parentDataProperty}, ${O.default.rootData}=${O.default.data}${e.dynamicRef?(0,b._)`, ${O.default.dynamicAnchors}={}`:b.nil}}={}`}s(d0,"destructureValCxt");function p0(e,t){e.if(O.default.valCxt,()=>{e.var(O.default.instancePath,(0,b._)`${O.default.valCxt}.${O.default.instancePath}`),e.var(O.default.parentData,(0,b._)`${O.default.valCxt}.${O.default.parentData}`),e.var(O.default.parentDataProperty,(0,b._)`${O.default.valCxt}.${O.default.parentDataProperty}`),e.var(O.default.rootData,(0,b._)`${O.default.valCxt}.${O.default.rootData}`),t.dynamicRef&&e.var(O.default.dynamicAnchors,(0,b._)`${O.default.valCxt}.${O.default.dynamicAnchors}`)},()=>{e.var(O.default.instancePath,(0,b._)`""`),e.var(O.default.parentData,(0,b._)`undefined`),e.var(O.default.parentDataProperty,(0,b._)`undefined`),e.var(O.default.rootData,O.default.data),t.dynamicRef&&e.var(O.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(O.default.vErrors,null),n.let(O.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",O.default.errors);Sf(e,o),n.var(t,(0,b._)`${o} === ${O.default.errors}`)}s(g0,"subSchemaObjCode");function Pf(e){(0,et.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,et.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,et.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._)`${O.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._)`${O.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._)`${O.default.errors} === 0`,()=>t.return(O.default.data),()=>t.throw((0,b._)`new ${i}(${O.default.vErrors})`)):(t.assign((0,b._)`${n}.errors`,O.default.vErrors),o.unevaluated&&S0(e),t.return((0,b._)`${O.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,et.schemaHasRulesButRef)(o,l))){i.block(()=>wf(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._)`${O.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)&&wf(e,o.keyword,o.definition,t.type)})}s(gf,"iterateKeywords");function x0(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(O0(e,t),e.opts.allowUnionTypes||w0(e,t),E0(e,e.dataTypes))}s(x0,"checkStrictTypes");function O0(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Of(e.dataTypes,r)||vs(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),A0(e,t)}}s(O0,"checkContextTypes");function w0(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&vs(e,"use allowUnionTypes to allow union type keyword")}s(w0,"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 Of(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Of,"includesType");function A0(e,t){let r=[];for(let n of e.dataTypes)Of(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,et.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,et.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",O.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=et.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=et.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;ft.KeywordCxt=di;function wf(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(wf,"keywordCode");var q0=/^\/(?:[^~]|~0|~1)*$/,T0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ef(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return O.default.rootData;if(e[0]==="/"){if(!q0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=O.default.rootData}else{let f=T0.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,et.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");ft.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(ws=>{"use strict";Object.defineProperty(ws,"__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 Os=Es;ws.default=Os});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=w(),I0=pi(),Dt=ve(),je=cn(),jf=T(),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 yr=qs;_e.SchemaEnv=yr;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:I0.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 k0(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 yr({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,je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:As.call(this,e)}s(N0,"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 yr({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 yr({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(js,"getJsonPointer")});var qf=h((wA,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 If=h((EA,Tf)=>{"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};Tf.exports={HEX:V0}});var Vf=h((jA,Ff)=>{"use strict";var{HEX:L0}=If();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 Ts(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(Ts,"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=Ts(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(Ts(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,kf=/^\/\.(?:\/|$)/u,Nf=/^\/\.\.(?:\/|$)/u,B0=/^\/?(?:.|\n)*?(?=\/|$)/u;function H0(e){let t=[];for(;e.length;)if(e.match(Rf))e=e.replace(Rf,"");else if(e.match(kf))e=e.replace(kf,"/");else if(e.match(Nf))e=e.replace(Nf,"/"),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:Ts}});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=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 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},Is={http:Bf,https:rv,ws:hi,wss:nv,urn:iv,"urn:uuid":ov};Hf.exports=Is});var Kf=h((IA,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(tt(e,t),t):typeof e=="object"&&(e=tt(Ve(e,t),t)),e}s(uv,"normalize");function fv(e,t,r){let n=Object.assign({scheme:"null"},r),i=Zf(tt(e,n),tt(t,n),n,!0);return Ve(i,{...n,skipEscape:!0})}s(fv,"resolve");function Zf(e,t,r,n){let i={};return n||(e=tt(Ve(e,r),r),t=tt(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(tt(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(tt(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 tt(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(tt,"parse");var ks={SCHEMES:Rs,normalize:uv,resolve:fv,resolveComponents:Zf,equal:lv,serialize:Ve,parse:tt};gi.exports=ks;gi.exports.default=ks;gi.exports.fastUri=ks});var Yf=h(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Wf=Kf();Wf.code='require("ajv/dist/runtime/uri").default';Ns.default=Wf});var $r=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 gr=w();Object.defineProperty(X,"_",{enumerable:!0,get:s(function(){return gr._},"get")});Object.defineProperty(X,"str",{enumerable:!0,get:s(function(){return gr.str},"get")});Object.defineProperty(X,"stringify",{enumerable:!0,get:s(function(){return gr.stringify},"get")});Object.defineProperty(X,"nil",{enumerable:!0,get:s(function(){return gr.nil},"get")});Object.defineProperty(X,"Name",{enumerable:!0,get:s(function(){return gr.Name},"get")});Object.defineProperty(X,"CodeGen",{enumerable:!0,get:s(function(){return gr.CodeGen},"get")});var yv=pi(),tl=dn(),gv=as(),hn=pn(),$v=w(),yn=cn(),$i=an(),Ms=T(),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,_,x,j,P,Y,G,qt,Ne;let he=e.strict,rr=(t=e.code)===null||t===void 0?void 0:t.optimize,nr=rr===!0||rr===void 0?1:rr||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:nr,regExp:Hn}:{optimize:nr,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:(_=e.messages)!==null&&_!==void 0?_:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(j=e.schemaId)!==null&&j!==void 0?j:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!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:(Ne=e.int32range)!==null&&Ne!==void 0?Ne:!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&&wv.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ev.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Ov.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(Iv.call(this,n,r),!r)return(0,Ms.eachItem)(n,o=>Cs.call(this,o)),this;kv.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 Ov(){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(Ov,"addInitialSchemas");function wv(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(wv,"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 Tv=/^[a-z_$][a-z0-9_$:-]*$/i;function Iv(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(!Tv.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(Iv,"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 kv(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=nl(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 nl(e){return{anyOf:[e,Nv]}}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=w(),vr=ve(),ol=pn(),vi=T(),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?vr.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(vr.default.vErrors,(0,pe._)`${vr.default.vErrors} === null ? ${$} : ${vr.default.vErrors}.concat(${$})`),i.assign(vr.default.errors,(0,pe._)`${vr.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=$r(),Vv=w(),lt=Vv.operators,Ls={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:lt.LTE,fail:lt.GT},{okStr:"<",ok:lt.LT,fail:lt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:lt.GTE,fail:lt.LT},{okStr:">",ok:lt.GT,fail:lt.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=w(),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=w(),Gv=T(),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=w(),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=w(),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=w(),tb=T(),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=w(),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=w(),sb=T(),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),_=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 ${_}[${g}] == "number"`,()=>{t.assign($,(0,Q._)`${_}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Q._)`${_}[${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=w(),fb=T(),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=w(),mb=T(),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(),Ob=na(),wb=aa(),Eb=fa(),jb=da(),Ab=[$b.default,vb.default,bb.default,_b.default,Pb.default,Sb.default,xb.default,Ob.default,wb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Eb.default,jb.default];pa.default=Ab});var ha=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.validateAdditionalItems=void 0;var Lt=w(),ma=T(),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")},Tb={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");On.validateAdditionalItems=hl;On.default=Tb});var ya=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateTuple=void 0;var yl=w(),Si=T(),Ib=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,Ib.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");wn.validateTuple=gl;wn.default=Rb});var $l=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var kb=ya(),Nb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,kb.validateTuple)(e,"items"),"code")};ga.default=Nb});var bl=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var vl=w(),Cb=T(),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=w(),xi=T(),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 Oi=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.validateSchemaDeps=Le.validatePropertyDeps=Le.error=void 0;var ba=w(),Ub=T(),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},
|
|
9
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,E._)`[${i}]`)}}s(u,"coerceSpecificType")}s(x$,"coerceData");function O$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(O$,"assignParentData");function us(e,t,r,n=pr.Correct){let i=n===pr.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===pr.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 w$={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,w$)}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 mr=w(),j$=T();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,mr._)`${o}${(0,mr.getProperty)(t)}`;if(i){(0,j$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,mr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,mr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,mr._)`${c} = ${(0,mr.stringify)(r)}`)}s(Xu,"assignDefault")});var be=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.validateUnion=C.validateArray=C.usePattern=C.callValidateCode=C.schemaProperties=C.allSchemaProperties=C.noPropertyInData=C.propertyInData=C.isOwnProperty=C.hasPropFunc=C.reportMissingProp=C.checkMissingProp=C.checkReportMissingProp=void 0;var D=w(),ds=T(),at=ve(),q$=T();function T$(e,t){let{gen:r,data:n,it:i}=e;r.if(ms(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,D._)`${t}`},!0),e.error()})}s(T$,"checkReportMissingProp");C.checkReportMissingProp=T$;function I$({gen:e,data:t,it:{opts:r}},n,i){return(0,D.or)(...n.map(o=>(0,D.and)(ms(e,t,o,r.ownProperties),(0,D._)`${i} = ${o}`)))}s(I$,"checkMissingProp");C.checkMissingProp=I$;function R$(e,t){e.setParams({missingProperty:t},!0),e.error()}s(R$,"reportMissingProp");C.reportMissingProp=R$;function ef(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,D._)`Object.prototype.hasOwnProperty`})}s(ef,"hasPropFunc");C.hasPropFunc=ef;function ps(e,t,r){return(0,D._)`${ef(e)}.call(${t}, ${r})`}s(ps,"isOwnProperty");C.isOwnProperty=ps;function k$(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} !== undefined`;return n?(0,D._)`${i} && ${ps(e,t,r)}`:i}s(k$,"propertyInData");C.propertyInData=k$;function ms(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} === undefined`;return n?(0,D.or)(i,(0,D.not)(ps(e,t,r))):i}s(ms,"noPropertyInData");C.noPropertyInData=ms;function tf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(tf,"allSchemaProperties");C.allSchemaProperties=tf;function N$(e,t){return tf(t).filter(r=>!(0,ds.alwaysValidSchema)(e,t[r]))}s(N$,"schemaProperties");C.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,D._)`${e}, ${t}, ${n}${i}`:t,d=[[at.default.instancePath,(0,D.strConcat)(at.default.instancePath,o)],[at.default.parentData,a.parentData],[at.default.parentDataProperty,a.parentDataProperty],[at.default.rootData,at.default.rootData]];a.opts.dynamicRef&&d.push([at.default.dynamicAnchors,at.default.dynamicAnchors]);let p=(0,D._)`${l}, ${r.object(...d)}`;return u!==D.nil?(0,D._)`${c}.call(${u}, ${p})`:(0,D._)`${c}(${p})`}s(C$,"callValidateCode");C.callValidateCode=C$;var M$=(0,D._)`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,D._)`${i.code==="new RegExp"?M$:(0,q$.useFunc)(e,i)}(${r}, ${n})`})}s(D$,"usePattern");C.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,D._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:ds.Type.Num},o),t.if((0,D.not)(o),c)})}s(a,"validateItems")}s(F$,"validateArray");C.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,D._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,D.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(V$,"validateUnion");C.validateUnion=V$});var of=h(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.validateKeywordUsage=Fe.validSchemaType=Fe.funcKeywordCode=Fe.macroKeywordCode=void 0;var ae=w(),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");Fe.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 `),_=>n.assign(d,!1).if((0,ae._)`${_} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,ae._)`${_}.errors`),()=>n.throw(_))),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 _=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,_,x)}`,t.modifying)}s($,"assignValid");function g(v){var _;n.if((0,ae.not)((_=t.valid)!==null&&_!==void 0?_:d),v)}s(g,"reportErrs")}s(B$,"funcKeywordCode");Fe.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");Fe.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");Fe.validateKeywordUsage=K$});var af=h(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.extendSubschemaMode=ct.extendSubschemaData=ct.getSubschema=void 0;var Ve=w(),sf=T();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,Ve._)`${e.schemaPath}${(0,Ve.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ve._)`${e.schemaPath}${(0,Ve.getProperty)(t)}${(0,Ve.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");ct.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,Ve._)`${t.data}${(0,Ve.getProperty)(r)}`,!0);u(p),e.errorPath=(0,Ve.str)`${f}${(0,sf.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Ve._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Ve.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");ct.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");ct.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 ut=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)};ut.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ut.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ut.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ut.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 ut.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 ut.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 ut.keywords||e.allKeys&&!(l in ut.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$=T(),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=hr(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 hr(e){return e?e.replace(o0,""):""}s(hr,"normalizeId");de.normalizeId=hr;function s0(e,t,r){return r=hr(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=hr(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])),_.call(this,d.$anchor),_.call(this,d.$dynamicAnchor),o[p]=g;function v(x){let j=this.opts.uriResolver.resolve;if(x=hr(g?j(g,x):x),u.has(x))throw l(x);u.add(x);let P=this.refs[x];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?f(d,P.schema,x):x!==hr($)&&(x[0]==="#"?(f(d,c[x],x),c[x]=d):this.refs[x]=$),x}s(v,"addRef");function _(x){if(typeof x=="string"){if(!a0.test(x))throw new Error(`invalid anchor "${x}"`);v.call(this,`#${x}`)}}s(_,"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(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getData=ft.KeywordCxt=ft.validateFunctionCode=void 0;var $f=Gu(),mf=an(),$s=cs(),li=an(),u0=Qu(),fn=of(),gs=af(),b=w(),O=ve(),f0=cn(),et=T(),un=sn();function l0(e){if(_f(e)&&(Pf(e),bf(e))){m0(e);return}vf(e,()=>(0,$f.topBoolOrEmptySchema)(e))}s(l0,"validateFunctionCode");ft.validateFunctionCode=l0;function vf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,b._)`${O.default.data}, ${O.default.valCxt}`,n.$async,()=>{e.code((0,b._)`"use strict"; ${hf(r,i)}`),p0(e,i),e.code(o)}):e.func(t,(0,b._)`${O.default.data}, ${d0(i)}`,n.$async,()=>e.code(hf(r,i)).code(o))}s(vf,"validateFunction");function d0(e){return(0,b._)`{${O.default.instancePath}="", ${O.default.parentData}, ${O.default.parentDataProperty}, ${O.default.rootData}=${O.default.data}${e.dynamicRef?(0,b._)`, ${O.default.dynamicAnchors}={}`:b.nil}}={}`}s(d0,"destructureValCxt");function p0(e,t){e.if(O.default.valCxt,()=>{e.var(O.default.instancePath,(0,b._)`${O.default.valCxt}.${O.default.instancePath}`),e.var(O.default.parentData,(0,b._)`${O.default.valCxt}.${O.default.parentData}`),e.var(O.default.parentDataProperty,(0,b._)`${O.default.valCxt}.${O.default.parentDataProperty}`),e.var(O.default.rootData,(0,b._)`${O.default.valCxt}.${O.default.rootData}`),t.dynamicRef&&e.var(O.default.dynamicAnchors,(0,b._)`${O.default.valCxt}.${O.default.dynamicAnchors}`)},()=>{e.var(O.default.instancePath,(0,b._)`""`),e.var(O.default.parentData,(0,b._)`undefined`),e.var(O.default.parentDataProperty,(0,b._)`undefined`),e.var(O.default.rootData,O.default.data),t.dynamicRef&&e.var(O.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(O.default.vErrors,null),n.let(O.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",O.default.errors);Sf(e,o),n.var(t,(0,b._)`${o} === ${O.default.errors}`)}s(g0,"subSchemaObjCode");function Pf(e){(0,et.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,et.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,et.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._)`${O.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._)`${O.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._)`${O.default.errors} === 0`,()=>t.return(O.default.data),()=>t.throw((0,b._)`new ${i}(${O.default.vErrors})`)):(t.assign((0,b._)`${n}.errors`,O.default.vErrors),o.unevaluated&&S0(e),t.return((0,b._)`${O.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,et.schemaHasRulesButRef)(o,l))){i.block(()=>wf(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._)`${O.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)&&wf(e,o.keyword,o.definition,t.type)})}s(gf,"iterateKeywords");function x0(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(O0(e,t),e.opts.allowUnionTypes||w0(e,t),E0(e,e.dataTypes))}s(x0,"checkStrictTypes");function O0(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Of(e.dataTypes,r)||vs(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),A0(e,t)}}s(O0,"checkContextTypes");function w0(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&vs(e,"use allowUnionTypes to allow union type keyword")}s(w0,"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 Of(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Of,"includesType");function A0(e,t){let r=[];for(let n of e.dataTypes)Of(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,et.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,et.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",O.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=et.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=et.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;ft.KeywordCxt=di;function wf(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(wf,"keywordCode");var q0=/^\/(?:[^~]|~0|~1)*$/,T0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ef(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return O.default.rootData;if(e[0]==="/"){if(!q0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=O.default.rootData}else{let f=T0.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,et.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");ft.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(ws=>{"use strict";Object.defineProperty(ws,"__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 Os=Es;ws.default=Os});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=w(),I0=pi(),Dt=ve(),je=cn(),jf=T(),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 yr=qs;_e.SchemaEnv=yr;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:I0.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 k0(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 yr({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,je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:As.call(this,e)}s(N0,"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 yr({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 yr({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(js,"getJsonPointer")});var qf=h((wA,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 If=h((EA,Tf)=>{"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};Tf.exports={HEX:V0}});var Vf=h((jA,Ff)=>{"use strict";var{HEX:L0}=If();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 Ts(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(Ts,"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=Ts(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(Ts(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,kf=/^\/\.(?:\/|$)/u,Nf=/^\/\.\.(?:\/|$)/u,B0=/^\/?(?:.|\n)*?(?=\/|$)/u;function H0(e){let t=[];for(;e.length;)if(e.match(Rf))e=e.replace(Rf,"");else if(e.match(kf))e=e.replace(kf,"/");else if(e.match(Nf))e=e.replace(Nf,"/"),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:Ts}});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=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 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},Is={http:Bf,https:rv,ws:hi,wss:nv,urn:iv,"urn:uuid":ov};Hf.exports=Is});var Kf=h((IA,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=Le(tt(e,t),t):typeof e=="object"&&(e=tt(Le(e,t),t)),e}s(uv,"normalize");function fv(e,t,r){let n=Object.assign({scheme:"null"},r),i=Zf(tt(e,n),tt(t,n),n,!0);return Le(i,{...n,skipEscape:!0})}s(fv,"resolve");function Zf(e,t,r,n){let i={};return n||(e=tt(Le(e,r),r),t=tt(Le(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=Le(yi(tt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Le(yi(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Le(yi(tt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Le(yi(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(lv,"equal");function Le(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(Le,"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 tt(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(tt,"parse");var ks={SCHEMES:Rs,normalize:uv,resolve:fv,resolveComponents:Zf,equal:lv,serialize:Le,parse:tt};gi.exports=ks;gi.exports.default=ks;gi.exports.fastUri=ks});var Yf=h(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Wf=Kf();Wf.code='require("ajv/dist/runtime/uri").default';Ns.default=Wf});var $r=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 gr=w();Object.defineProperty(X,"_",{enumerable:!0,get:s(function(){return gr._},"get")});Object.defineProperty(X,"str",{enumerable:!0,get:s(function(){return gr.str},"get")});Object.defineProperty(X,"stringify",{enumerable:!0,get:s(function(){return gr.stringify},"get")});Object.defineProperty(X,"nil",{enumerable:!0,get:s(function(){return gr.nil},"get")});Object.defineProperty(X,"Name",{enumerable:!0,get:s(function(){return gr.Name},"get")});Object.defineProperty(X,"CodeGen",{enumerable:!0,get:s(function(){return gr.CodeGen},"get")});var yv=pi(),tl=dn(),gv=as(),hn=pn(),$v=w(),yn=cn(),$i=an(),Ms=T(),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,_,x,j,P,Y,G,qt,Ce;let he=e.strict,rr=(t=e.code)===null||t===void 0?void 0:t.optimize,nr=rr===!0||rr===void 0?1:rr||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:nr,regExp:Hn}:{optimize:nr,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:(_=e.messages)!==null&&_!==void 0?_:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(j=e.schemaId)!==null&&j!==void 0?j:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!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:(Ce=e.int32range)!==null&&Ce!==void 0?Ce:!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&&wv.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ev.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Ov.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(Iv.call(this,n,r),!r)return(0,Ms.eachItem)(n,o=>Cs.call(this,o)),this;kv.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 Ov(){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(Ov,"addInitialSchemas");function wv(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(wv,"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 Tv=/^[a-z_$][a-z0-9_$:-]*$/i;function Iv(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(!Tv.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(Iv,"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 kv(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=nl(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 nl(e){return{anyOf:[e,Nv]}}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=w(),vr=ve(),ol=pn(),vi=T(),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?vr.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(vr.default.vErrors,(0,pe._)`${vr.default.vErrors} === null ? ${$} : ${vr.default.vErrors}.concat(${$})`),i.assign(vr.default.errors,(0,pe._)`${vr.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=$r(),Vv=w(),lt=Vv.operators,Ls={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:lt.LTE,fail:lt.GT},{okStr:"<",ok:lt.LT,fail:lt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:lt.GTE,fail:lt.LT},{okStr:">",ok:lt.GT,fail:lt.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=w(),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=w(),Gv=T(),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=w(),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=w(),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=w(),tb=T(),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=w(),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=w(),sb=T(),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),_=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 ${_}[${g}] == "number"`,()=>{t.assign($,(0,Q._)`${_}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Q._)`${_}[${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=w(),fb=T(),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=w(),mb=T(),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(),Ob=na(),wb=aa(),Eb=fa(),jb=da(),Ab=[$b.default,vb.default,bb.default,_b.default,Pb.default,Sb.default,xb.default,Ob.default,wb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Eb.default,jb.default];pa.default=Ab});var ha=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.validateAdditionalItems=void 0;var Lt=w(),ma=T(),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")},Tb={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");On.validateAdditionalItems=hl;On.default=Tb});var ya=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateTuple=void 0;var yl=w(),Si=T(),Ib=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,Ib.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");wn.validateTuple=gl;wn.default=Rb});var $l=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var kb=ya(),Nb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,kb.validateTuple)(e,"items"),"code")};ga.default=Nb});var bl=h($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var vl=w(),Cb=T(),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=w(),xi=T(),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 Oi=h(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.validateSchemaDeps=ze.validatePropertyDeps=ze.error=void 0;var ba=w(),Ub=T(),En=be();ze.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);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 Ol=h(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var xl=w(),Gb=T(),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 wi=be(),Ae=w(),Wb=ve(),Ei=T(),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,wi.allSchemaProperties)(n.properties),l=(0,wi.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 _=(0,Ei.schemaRefOrVal)(a,n.properties,"properties");v=(0,wi.isOwnProperty)(t,_,g)}else f.length?v=(0,Ae.or)(...f.map(_=>(0,Ae._)`${g} === ${_}`)):v=Ae.nil;return l.length&&(v=(0,Ae.or)(v,...l.map(_=>(0,Ae._)`${(0,wi.usePattern)(e,_)}.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,_){let x={keyword:"additionalProperties",dataProp:g,dataPropType:Ei.Type.Str};_===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,v)}s($,"applyAdditionalSchema")}};Pa.default=Jb});var jl=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Xb=ln(),wl=be(),xa=T(),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,wl.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,wl.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")}};Oa.default=Qb});var Il=h(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var Al=be(),ji=w(),ql=T(),Tl=T(),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,Tl.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:Tl.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")}};wa.default=e_});var Rl=h(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var t_=T(),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 kl=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 Nl=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ai=w(),o_=T(),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_=T(),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(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var qi=w(),Dl=T(),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");Ta.default=l_});var Vl=h(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var d_=T(),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 ka=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var m_=ha(),h_=$l(),y_=ya(),g_=bl(),$_=_l(),v_=Oi(),b_=Ol(),__=Sa(),P_=jl(),S_=Il(),x_=Rl(),O_=kl(),w_=Nl(),E_=Cl(),j_=Fl(),A_=Vl();function q_(e=!1){let t=[x_.default,O_.default,w_.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(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var B=w(),T_={message:s(({schemaCode:e})=>(0,B.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,B._)`{format: ${e}}`,"params")},I_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:T_,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)(_(),x()));function _(){return u.strictSchema===!1?B.nil:(0,B._)`${a} && !${v}`}s(_,"unknownFmt");function x(){let j=l.$async?(0,B._)`(${$}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,B._)`${v}(${n})`,P=(0,B._)`(typeof ${v} == "function" ? ${j} : ${v}.test(${n}))`;return(0,B._)`${v} && ${v} !== true && ${g} === ${t} && !${P}`}s(x,"invalidFmt")}s(p,"validate$DataFormat");function m(){let y=d.formats[o];if(!y){_();return}if(y===!0)return;let[$,g,v]=x(y);$===t&&e.pass(j());function _(){if(u.strictSchema===!1){d.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(_,"unknownFormat");function x(P){let Y=P instanceof RegExp?(0,B.regexpCode)(P):u.code.formats?(0,B._)`${u.code.formats}${(0,B.getProperty)(o)}`:void 0,G=r.scopeValue("formats",{key:o,ref:P,code:Y});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,B._)`${G}.validate`]:["string",P,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")}};Na.default=I_});var Ma=h(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var R_=Ll(),k_=[R_.default];Ca.default=k_});var zl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var N_=al(),C_=ml(),M_=ka(),D_=Ma(),F_=["title","description","default"],V_=[N_.default,C_.default,M_.default(),D_.default,F_];Da.default=V_});var Bl=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.DiscrError=void 0;var Ul;(function(e){e.Tag="tag",e.Mapping="mapping"})(Ul||(Ti.DiscrError=Ul={}))});var La=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var br=w(),Fa=Bl(),Hl=pn(),L_=dn(),z_=T(),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,br._)`{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,br._)`${r}${(0,br.getProperty)(c)}`);t.if((0,br._)`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,br._)`${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($,br.Name),y}s(d,"applyTagSchema");function p(){var m;let y={},$=v(i),g=!0;for(let j=0;j<a.length;j++){let P=a[j];if(P!=null&&P.$ref&&!(0,z_.schemaHasRulesButRef)(P,o.self.RULES)){let G=P.$ref;if(P=Hl.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,G),P instanceof Hl.SchemaEnv&&(P=P.schema),P===void 0)throw new L_.default(o.opts.uriResolver,o.baseId,G)}let Y=(m=P==null?void 0:P.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 _(j,P){if(j.const)x(j.const,P);else if(j.enum)for(let Y of j.enum)x(Y,P);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function x(j,P){if(typeof j!="string"||j in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[j]=P}}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_=$r(),Z_=zl(),K_=La(),Zl=Gl(),W_=["/properties"],Ii="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,Ii,!1),this.refs["http://json-schema.org/schema"]=Ii}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ii)?Ii:void 0)}};s(za,"Ajv");var Ri=za;Kl.exports=Z=Ri;Object.defineProperty(Z,"__esModule",{value:!0});Z.default=Ri;var Y_=$r();Object.defineProperty(Z,"KeywordCxt",{enumerable:!0,get:s(function(){return Y_.KeywordCxt},"get")});var _r=$r();Object.defineProperty(Z,"_",{enumerable:!0,get:s(function(){return _r._},"get")});Object.defineProperty(Z,"str",{enumerable:!0,get:s(function(){return _r.str},"get")});Object.defineProperty(Z,"stringify",{enumerable:!0,get:s(function(){return _r.stringify},"get")});Object.defineProperty(Z,"nil",{enumerable:!0,get:s(function(){return _r.nil},"get")});Object.defineProperty(Z,"Name",{enumerable:!0,get:s(function(){return _r.Name},"get")});Object.defineProperty(Z,"CodeGen",{enumerable:!0,get:s(function(){return _r.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 ki=w(),dt=ki.operators,Ni={maximum:{okStr:"<=",ok:dt.LTE,fail:dt.GT},minimum:{okStr:">=",ok:dt.GTE,fail:dt.LT},exclusiveMaximum:{okStr:"<",ok:dt.LT,fail:dt.GTE},exclusiveMinimum:{okStr:">",ok:dt.GT,fail:dt.LTE}},tP={message:s(({keyword:e,schemaCode:t})=>(0,ki.str)`must be ${Ni[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,ki._)`{comparison: ${Ni[e].okStr}, limit: ${t}}`,"params")},rP={keyword:Object.keys(Ni),type:"number",schemaType:"number",$data:!0,error:tP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ki._)`${r} ${Ni[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=w(),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=w(),$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=T(),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 OP=Ka(),wP=Wa(),EP=od(),jP=sd(),AP=[OP.default,wP.default,EP.default,jP.default];Xa.default=AP});var ud=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var cd=Oi(),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 TP=Oi(),IP={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,TP.validateSchemaDeps)(e),"code")};ec.default=IP});var ld=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var RP=T(),kP={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=kP});var dd=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var NP=ud(),CP=fd(),MP=ld(),DP=[NP.default,CP.default,MP.default];rc.default=DP});var md=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var pt=w(),pd=T(),FP=ve(),VP={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,pt._)`{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 pt.Name?t.if((0,pt._)`${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,pt._)`${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,pt.not)(p),()=>t.break())}}s(u,"unevaluatedPropCode");function f(d,p){return(0,pt._)`!${d} || !${d}[${p}]`}s(f,"unevaluatedDynamic");function l(d,p){let m=[];for(let y in d)d[y]===!0&&m.push((0,pt._)`${p} !== ${y}`);return(0,pt.and)(...m)}s(l,"unevaluatedStatic")}};nc.default=LP});var yd=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zt=w(),hd=T(),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(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.contentVocabulary=Pr.metadataVocabulary=void 0;Pr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Pr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bd=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ZP=Jl(),KP=Ql(),WP=ka(),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((PT,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((ST,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((xT,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((OT,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 Od=h((wT,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 wd=h((ET,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((jT,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((AT,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=Od(),mS=wd(),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((F,uc)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.MissingRefError=F.ValidationError=F.CodeGen=F.Name=F.nil=F.stringify=F.str=F._=F.KeywordCxt=F.Ajv2020=void 0;var vS=$r(),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 Sr=fc;F.Ajv2020=Sr;uc.exports=F=Sr;uc.exports.Ajv2020=Sr;Object.defineProperty(F,"__esModule",{value:!0});F.default=Sr;var SS=ln();Object.defineProperty(F,"KeywordCxt",{enumerable:!0,get:s(function(){return SS.KeywordCxt},"get")});var xr=w();Object.defineProperty(F,"_",{enumerable:!0,get:s(function(){return xr._},"get")});Object.defineProperty(F,"str",{enumerable:!0,get:s(function(){return xr.str},"get")});Object.defineProperty(F,"stringify",{enumerable:!0,get:s(function(){return xr.stringify},"get")});Object.defineProperty(F,"nil",{enumerable:!0,get:s(function(){return xr.nil},"get")});Object.defineProperty(F,"Name",{enumerable:!0,get:s(function(){return xr.Name},"get")});Object.defineProperty(F,"CodeGen",{enumerable:!0,get:s(function(){return xr.CodeGen},"get")});var xS=pi();Object.defineProperty(F,"ValidationError",{enumerable:!0,get:s(function(){return xS.default},"get")});var OS=dn();Object.defineProperty(F,"MissingRefError",{enumerable:!0,get:s(function(){return OS.default},"get")})});var Td=h((RT,wS)=>{wS.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 Id=h((kT,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((NT,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 kd=h((CT,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 Nd=h((J,Or)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.openapi=J.openapiV31=J.openapiV3=J.openapiV2=J.openapiV1=void 0;J.openapiV1=Td();J.openapiV2=Id();J.openapiV3=Rd();J.openapiV31=kd();J.openapi={v1:J.openapiV1,v2:J.openapiV2,v3:J.openapiV3,v31:J.openapiV31};J.default=J.openapi;typeof Or=="object"&&typeof Or.exports=="object"&&(Or.exports=Object.assign(Or.exports.default,Or.exports))});var pc=h((MT,Cd)=>{"use strict";var qS=Kn(),{ono:TS}=Oe(),IS=Wl(),RS=qd(),{openapi:lc}=Nd();Cd.exports=kS;function kS(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.
|
|
12
|
+
deps: ${r}}`,"params")};var Bb={keyword:"dependencies",type:"object",schemaType:"object",error:ze.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");ze.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");ze.validateSchemaDeps=Sl;ze.default=Bb});var Ol=h(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var xl=w(),Gb=T(),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 wi=be(),Ae=w(),Wb=ve(),Ei=T(),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,wi.allSchemaProperties)(n.properties),l=(0,wi.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 _=(0,Ei.schemaRefOrVal)(a,n.properties,"properties");v=(0,wi.isOwnProperty)(t,_,g)}else f.length?v=(0,Ae.or)(...f.map(_=>(0,Ae._)`${g} === ${_}`)):v=Ae.nil;return l.length&&(v=(0,Ae.or)(v,...l.map(_=>(0,Ae._)`${(0,wi.usePattern)(e,_)}.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,_){let x={keyword:"additionalProperties",dataProp:g,dataPropType:Ei.Type.Str};_===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,v)}s($,"applyAdditionalSchema")}};Pa.default=Jb});var jl=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Xb=ln(),wl=be(),xa=T(),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,wl.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,wl.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")}};Oa.default=Qb});var Il=h(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var Al=be(),ji=w(),ql=T(),Tl=T(),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,Tl.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:Tl.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")}};wa.default=e_});var Rl=h(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var t_=T(),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 kl=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 Nl=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ai=w(),o_=T(),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_=T(),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(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var qi=w(),Dl=T(),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");Ta.default=l_});var Vl=h(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var d_=T(),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 ka=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var m_=ha(),h_=$l(),y_=ya(),g_=bl(),$_=_l(),v_=Oi(),b_=Ol(),__=Sa(),P_=jl(),S_=Il(),x_=Rl(),O_=kl(),w_=Nl(),E_=Cl(),j_=Fl(),A_=Vl();function q_(e=!1){let t=[x_.default,O_.default,w_.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(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var B=w(),T_={message:s(({schemaCode:e})=>(0,B.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,B._)`{format: ${e}}`,"params")},I_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:T_,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)(_(),x()));function _(){return u.strictSchema===!1?B.nil:(0,B._)`${a} && !${v}`}s(_,"unknownFmt");function x(){let j=l.$async?(0,B._)`(${$}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,B._)`${v}(${n})`,P=(0,B._)`(typeof ${v} == "function" ? ${j} : ${v}.test(${n}))`;return(0,B._)`${v} && ${v} !== true && ${g} === ${t} && !${P}`}s(x,"invalidFmt")}s(p,"validate$DataFormat");function m(){let y=d.formats[o];if(!y){_();return}if(y===!0)return;let[$,g,v]=x(y);$===t&&e.pass(j());function _(){if(u.strictSchema===!1){d.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(_,"unknownFormat");function x(P){let Y=P instanceof RegExp?(0,B.regexpCode)(P):u.code.formats?(0,B._)`${u.code.formats}${(0,B.getProperty)(o)}`:void 0,G=r.scopeValue("formats",{key:o,ref:P,code:Y});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,B._)`${G}.validate`]:["string",P,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")}};Na.default=I_});var Ma=h(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var R_=Ll(),k_=[R_.default];Ca.default=k_});var zl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var N_=al(),C_=ml(),M_=ka(),D_=Ma(),F_=["title","description","default"],V_=[N_.default,C_.default,M_.default(),D_.default,F_];Da.default=V_});var Bl=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.DiscrError=void 0;var Ul;(function(e){e.Tag="tag",e.Mapping="mapping"})(Ul||(Ti.DiscrError=Ul={}))});var La=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var br=w(),Fa=Bl(),Hl=pn(),L_=dn(),z_=T(),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,br._)`{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,br._)`${r}${(0,br.getProperty)(c)}`);t.if((0,br._)`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,br._)`${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($,br.Name),y}s(d,"applyTagSchema");function p(){var m;let y={},$=v(i),g=!0;for(let j=0;j<a.length;j++){let P=a[j];if(P!=null&&P.$ref&&!(0,z_.schemaHasRulesButRef)(P,o.self.RULES)){let G=P.$ref;if(P=Hl.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,G),P instanceof Hl.SchemaEnv&&(P=P.schema),P===void 0)throw new L_.default(o.opts.uriResolver,o.baseId,G)}let Y=(m=P==null?void 0:P.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 _(j,P){if(j.const)x(j.const,P);else if(j.enum)for(let Y of j.enum)x(Y,P);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function x(j,P){if(typeof j!="string"||j in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[j]=P}}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_=$r(),Z_=zl(),K_=La(),Zl=Gl(),W_=["/properties"],Ii="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,Ii,!1),this.refs["http://json-schema.org/schema"]=Ii}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ii)?Ii:void 0)}};s(za,"Ajv");var Ri=za;Kl.exports=Z=Ri;Object.defineProperty(Z,"__esModule",{value:!0});Z.default=Ri;var Y_=$r();Object.defineProperty(Z,"KeywordCxt",{enumerable:!0,get:s(function(){return Y_.KeywordCxt},"get")});var _r=$r();Object.defineProperty(Z,"_",{enumerable:!0,get:s(function(){return _r._},"get")});Object.defineProperty(Z,"str",{enumerable:!0,get:s(function(){return _r.str},"get")});Object.defineProperty(Z,"stringify",{enumerable:!0,get:s(function(){return _r.stringify},"get")});Object.defineProperty(Z,"nil",{enumerable:!0,get:s(function(){return _r.nil},"get")});Object.defineProperty(Z,"Name",{enumerable:!0,get:s(function(){return _r.Name},"get")});Object.defineProperty(Z,"CodeGen",{enumerable:!0,get:s(function(){return _r.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 ki=w(),dt=ki.operators,Ni={maximum:{okStr:"<=",ok:dt.LTE,fail:dt.GT},minimum:{okStr:">=",ok:dt.GTE,fail:dt.LT},exclusiveMaximum:{okStr:"<",ok:dt.LT,fail:dt.GTE},exclusiveMinimum:{okStr:">",ok:dt.GT,fail:dt.LTE}},tP={message:s(({keyword:e,schemaCode:t})=>(0,ki.str)`must be ${Ni[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,ki._)`{comparison: ${Ni[e].okStr}, limit: ${t}}`,"params")},rP={keyword:Object.keys(Ni),type:"number",schemaType:"number",$data:!0,error:tP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ki._)`${r} ${Ni[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=w(),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=w(),$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=T(),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 OP=Ka(),wP=Wa(),EP=od(),jP=sd(),AP=[OP.default,wP.default,EP.default,jP.default];Xa.default=AP});var ud=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var cd=Oi(),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 TP=Oi(),IP={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,TP.validateSchemaDeps)(e),"code")};ec.default=IP});var ld=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var RP=T(),kP={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=kP});var dd=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var NP=ud(),CP=fd(),MP=ld(),DP=[NP.default,CP.default,MP.default];rc.default=DP});var md=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var pt=w(),pd=T(),FP=ve(),VP={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,pt._)`{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 pt.Name?t.if((0,pt._)`${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,pt._)`${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,pt.not)(p),()=>t.break())}}s(u,"unevaluatedPropCode");function f(d,p){return(0,pt._)`!${d} || !${d}[${p}]`}s(f,"unevaluatedDynamic");function l(d,p){let m=[];for(let y in d)d[y]===!0&&m.push((0,pt._)`${p} !== ${y}`);return(0,pt.and)(...m)}s(l,"unevaluatedStatic")}};nc.default=LP});var yd=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zt=w(),hd=T(),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(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.contentVocabulary=Pr.metadataVocabulary=void 0;Pr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Pr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bd=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ZP=Jl(),KP=Ql(),WP=ka(),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((PT,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((ST,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((xT,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((OT,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 Od=h((wT,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 wd=h((ET,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((jT,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((AT,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=Od(),mS=wd(),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((F,uc)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.MissingRefError=F.ValidationError=F.CodeGen=F.Name=F.nil=F.stringify=F.str=F._=F.KeywordCxt=F.Ajv2020=void 0;var vS=$r(),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 Sr=fc;F.Ajv2020=Sr;uc.exports=F=Sr;uc.exports.Ajv2020=Sr;Object.defineProperty(F,"__esModule",{value:!0});F.default=Sr;var SS=ln();Object.defineProperty(F,"KeywordCxt",{enumerable:!0,get:s(function(){return SS.KeywordCxt},"get")});var xr=w();Object.defineProperty(F,"_",{enumerable:!0,get:s(function(){return xr._},"get")});Object.defineProperty(F,"str",{enumerable:!0,get:s(function(){return xr.str},"get")});Object.defineProperty(F,"stringify",{enumerable:!0,get:s(function(){return xr.stringify},"get")});Object.defineProperty(F,"nil",{enumerable:!0,get:s(function(){return xr.nil},"get")});Object.defineProperty(F,"Name",{enumerable:!0,get:s(function(){return xr.Name},"get")});Object.defineProperty(F,"CodeGen",{enumerable:!0,get:s(function(){return xr.CodeGen},"get")});var xS=pi();Object.defineProperty(F,"ValidationError",{enumerable:!0,get:s(function(){return xS.default},"get")});var OS=dn();Object.defineProperty(F,"MissingRefError",{enumerable:!0,get:s(function(){return OS.default},"get")})});var Td=h((RT,wS)=>{wS.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 Id=h((kT,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((NT,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 kd=h((CT,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 Nd=h((J,Or)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.openapi=J.openapiV31=J.openapiV3=J.openapiV2=J.openapiV1=void 0;J.openapiV1=Td();J.openapiV2=Id();J.openapiV3=Rd();J.openapiV31=kd();J.openapi={v1:J.openapiV1,v2:J.openapiV2,v3:J.openapiV3,v31:J.openapiV31};J.default=J.openapi;typeof Or=="object"&&typeof Or.exports=="object"&&(Or.exports=Object.assign(Or.exports.default,Or.exports))});var pc=h((MT,Cd)=>{"use strict";var qS=Kn(),{ono:TS}=Oe(),IS=Wl(),RS=qd(),{openapi:lc}=Nd();Cd.exports=kS;function kS(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
13
|
`+NS(i);throw TS.syntax(i,{details:i},o)}}s(kS,"validateSchema");function dc(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new IS(t):new RS(t)}s(dc,"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
14
|
`);return r}s(NS,"formatAjvError")});var Dd=h((FT,Md)=>{"use strict";Md.exports=["get","put","post","delete","options","head","patch"]});var yc=h((VT,zd)=>{"use strict";var CS=Kn(),{ono:ne}=Oe(),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 Te=h(qe=>{"use strict";var{Ono:Ud}=Oe(),{stripHash:Bd,toFileSystemPath:HS}=ge(),wr,mt=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);ht(mt);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);ht(Hd);var Er,GS=qe.ParserError=(Er=class extends mt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(Er,"ParserError"),Er);ht(GS);var jr,ZS=qe.UnmatchedParserError=(jr=class extends mt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(jr,"UnmatchedParserError"),jr);ht(ZS);var Ar,KS=qe.ResolverError=(Ar=class extends mt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Ar,"ResolverError"),Ar);ht(KS);var qr,WS=qe.UnmatchedResolverError=(qr=class extends mt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(qr,"UnmatchedResolverError"),qr);ht(WS);var Tr,YS=qe.MissingPointerError=(Tr=class extends mt{constructor(t,r){super(`Token "${t}" does not exist.`,Bd(r)),this.code="EMISSINGPOINTER"}},s(Tr,"MissingPointerError"),Tr);ht(YS);var Ir,JS=qe.InvalidPointerError=(Ir=class extends mt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Bd(r)),this.code="EINVALIDPOINTER"}},s(Ir,"InvalidPointerError"),Ir);ht(JS);function ht(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(ht,"setErrorName");qe.isHandledError=function(e){return e instanceof mt||e instanceof Hd};qe.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Zd=h((BT,Gd)=>{"use strict";var{ParserError:XS}=Te();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((HT,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 Rr=h((ZT,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((WT,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
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
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
18
|
`+r)),n},"toString");Jd.exports=gc});var K=h((JT,ep)=>{"use strict";var Qd=Rr(),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((QT,rp)=>{"use strict";var tp=Ht(),Ci=Rr(),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 kr(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(kr,"Schema");kr.DEFAULT=null;kr.create=s(function(){var t,r;switch(arguments.length){case 1:t=kr.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 kr}))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 kr({include:t,explicit:r})},"createSchema");rp.exports=kr});var ip=h((tI,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((nI,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((oI,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((aI,up)=>{"use strict";var px=Gt();up.exports=new px({explicit:[ip(),sp(),cp()]})});var lp=h((cI,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((fI,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((dI,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 Ox(e){return 48<=e&&e<=55}s(Ox,"isOctCode");function wx(e){return 48<=e&&e<=57}s(wx,"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(!Ox(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(!wx(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((mI,gp)=>{"use strict";var yp=Ht(),qx=K(),Tx=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 Ix(e){return!(e===null||!Tx.test(e)||e[e.length-1]==="_")}s(Ix,"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 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(yp.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||yp.isNegativeZero(e))}s(Cx,"isFloat");gp.exports=new qx("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ix,construct:Rx,predicate:Cx,represent:Nx,defaultStyle:"lowercase"})});var vc=h((yI,vp)=>{"use strict";var Mx=Gt();vp.exports=new Mx({include:[Mi()],implicit:[lp(),pp(),hp(),$p()]})});var bc=h((gI,bp)=>{"use strict";var Dx=Gt();bp.exports=new Dx({include:[vc()]})});var xp=h(($I,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 wp=h((bI,Op)=>{"use strict";var Ux=K();function Bx(e){return e==="<<"||e===null}s(Bx,"resolveYamlMerge");Op.exports=new Ux("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bx})});var Ap=h((PI,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 Tp=h((xI,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 eO(e){return e!==null?e:[]}s(eO,"constructYamlOmap");qp.exports=new Yx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qx,construct:eO})});var Rp=h((wI,Ip)=>{"use strict";var tO=K(),rO=Object.prototype.toString;function nO(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],rO.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(nO,"resolveYamlPairs");function iO(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(iO,"constructYamlPairs");Ip.exports=new tO("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nO,construct:iO})});var Np=h((jI,kp)=>{"use strict";var oO=K(),sO=Object.prototype.hasOwnProperty;function aO(e){if(e===null)return!0;var t,r=e;for(t in r)if(sO.call(r,t)&&r[t]!==null)return!1;return!0}s(aO,"resolveYamlSet");function cO(e){return e!==null?e:{}}s(cO,"constructYamlSet");kp.exports=new oO("tag:yaml.org,2002:set",{kind:"mapping",resolve:aO,construct:cO})});var Nr=h((qI,Cp)=>{"use strict";var uO=Gt();Cp.exports=new uO({include:[bc()],implicit:[xp(),wp()],explicit:[Ap(),Tp(),Rp(),Np()]})});var Dp=h((TI,Mp)=>{"use strict";var fO=K();function lO(){return!0}s(lO,"resolveJavascriptUndefined");function dO(){}s(dO,"constructJavascriptUndefined");function pO(){return""}s(pO,"representJavascriptUndefined");function mO(e){return typeof e>"u"}s(mO,"isUndefined");Mp.exports=new fO("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lO,construct:dO,predicate:mO,represent:pO})});var Vp=h((RI,Fp)=>{"use strict";var hO=K();function yO(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(yO,"resolveJavascriptRegExp");function gO(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(gO,"constructJavascriptRegExp");function $O(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s($O,"representJavascriptRegExp");function vO(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(vO,"isRegExp");Fp.exports=new hO("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yO,construct:gO,predicate:vO,represent:$O})});var Up=h((NI,zp)=>{"use strict";var Di;try{Lp=require,Di=Lp("esprima")}catch{typeof window<"u"&&(Di=window.esprima)}var Lp,bO=K();function _O(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(_O,"resolveJavascriptFunction");function PO(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(PO,"constructJavascriptFunction");function SO(e){return e.toString()}s(SO,"representJavascriptFunction");function xO(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xO,"isFunction");zp.exports=new bO("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_O,construct:PO,predicate:xO,represent:SO})});var Tn=h((MI,Hp)=>{"use strict";var Bp=Gt();Hp.exports=Bp.DEFAULT=new Bp({include:[Nr()],explicit:[Dp(),Vp(),Up()]})});var fm=h((DI,In)=>{"use strict";var rt=Ht(),Xp=Rr(),OO=Xd(),Qp=Nr(),wO=Tn(),gt=Object.prototype.hasOwnProperty,Fi=1,em=2,tm=3,Vi=4,Pc=1,EO=2,Gp=3,jO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AO=/[\x85\u2028\u2029]/,qO=/[,\[\]\{\}]/,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
|
|
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 kO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(kO,"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 NO(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||wO,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(NO,"State");function sm(e,t){return new Xp(t,new OO(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"),gt.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 yt(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 jO.test(c)&&S(e,"the stream contains non-printable characters");e.result+=c}}s(yt,"captureSegment");function Yp(e,t,r,n){var i,o,a,c;for(rt.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],gt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Yp,"mergeMappings");function Mr(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&&!gt.call(r,i)&>.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(Mr,"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(
|
|
21
|
-
`,t-1))}s(xc,"writeFoldedLines");function CO(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)||Cr(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&&Cr(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&&Cr(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&&Cr(m))break;if(
|
|
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 Tp=h((xI,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 eO(e){return e!==null?e:[]}s(eO,"constructYamlOmap");qp.exports=new Yx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qx,construct:eO})});var Rp=h((wI,Ip)=>{"use strict";var tO=K(),rO=Object.prototype.toString;function nO(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],rO.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(nO,"resolveYamlPairs");function iO(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(iO,"constructYamlPairs");Ip.exports=new tO("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nO,construct:iO})});var Np=h((jI,kp)=>{"use strict";var oO=K(),sO=Object.prototype.hasOwnProperty;function aO(e){if(e===null)return!0;var t,r=e;for(t in r)if(sO.call(r,t)&&r[t]!==null)return!1;return!0}s(aO,"resolveYamlSet");function cO(e){return e!==null?e:{}}s(cO,"constructYamlSet");kp.exports=new oO("tag:yaml.org,2002:set",{kind:"mapping",resolve:aO,construct:cO})});var Nr=h((qI,Cp)=>{"use strict";var uO=Gt();Cp.exports=new uO({include:[bc()],implicit:[xp(),wp()],explicit:[Ap(),Tp(),Rp(),Np()]})});var Dp=h((TI,Mp)=>{"use strict";var fO=K();function lO(){return!0}s(lO,"resolveJavascriptUndefined");function dO(){}s(dO,"constructJavascriptUndefined");function pO(){return""}s(pO,"representJavascriptUndefined");function mO(e){return typeof e>"u"}s(mO,"isUndefined");Mp.exports=new fO("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lO,construct:dO,predicate:mO,represent:pO})});var Vp=h((RI,Fp)=>{"use strict";var hO=K();function yO(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(yO,"resolveJavascriptRegExp");function gO(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(gO,"constructJavascriptRegExp");function $O(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s($O,"representJavascriptRegExp");function vO(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(vO,"isRegExp");Fp.exports=new hO("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yO,construct:gO,predicate:vO,represent:$O})});var Up=h((NI,zp)=>{"use strict";var Di;try{Lp=require,Di=Lp("esprima")}catch{typeof window<"u"&&(Di=window.esprima)}var Lp,bO=K();function _O(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(_O,"resolveJavascriptFunction");function PO(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(PO,"constructJavascriptFunction");function SO(e){return e.toString()}s(SO,"representJavascriptFunction");function xO(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xO,"isFunction");zp.exports=new bO("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_O,construct:PO,predicate:xO,represent:SO})});var Tn=h((MI,Hp)=>{"use strict";var Bp=Gt();Hp.exports=Bp.DEFAULT=new Bp({include:[Nr()],explicit:[Dp(),Vp(),Up()]})});var fm=h((DI,In)=>{"use strict";var rt=Ht(),Xp=Rr(),OO=Xd(),Qp=Nr(),wO=Tn(),gt=Object.prototype.hasOwnProperty,Fi=1,em=2,tm=3,Vi=4,Pc=1,EO=2,Gp=3,jO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AO=/[\x85\u2028\u2029]/,qO=/[,\[\]\{\}]/,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 Ue(e){return e===10||e===13}s(Ue,"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 Cr(e){return e===44||e===91||e===93||e===123||e===125}s(Cr,"is_FLOW_INDICATOR");function TO(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(TO,"fromHexCode");function IO(e){return e===120?2:e===117?4:e===85?8:0}s(IO,"escapedHexLen");function RO(e){return 48<=e&&e<=57?e-48:-1}s(RO,"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 kO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(kO,"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 NO(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||wO,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(NO,"State");function sm(e,t){return new Xp(t,new OO(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"),gt.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 yt(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 jO.test(c)&&S(e,"the stream contains non-printable characters");e.result+=c}}s(yt,"captureSegment");function Yp(e,t,r,n){var i,o,a,c;for(rt.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],gt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Yp,"mergeMappings");function Mr(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&&!gt.call(r,i)&>.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(Mr,"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(Ue(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+=rt.repeat(`
|
|
21
|
+
`,t-1))}s(xc,"writeFoldedLines");function CO(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)||Cr(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&&Cr(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&&Cr(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&&Cr(m))break;if(Ue(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&&(yt(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 yt(e,o,a,!1),e.result?!0:(e.kind=d,e.result=p,!1)}s(CO,"readPlainScalar");function MO(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(yt(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 Ue(r)?(yt(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(MO,"readSingleQuotedScalar");function DO(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 yt(e,r,e.position,!0),e.position++,!0;if(c===92){if(yt(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Ue(c))H(e,!1,t);else if(c<256&&im[c])e.result+=om[c],e.position++;else if((a=IO(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=TO(c))>=0?o=(o<<4)+a:S(e,"expected hexadecimal character");e.result+=kO(o),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else Ue(c)?(yt(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(DO,"readDoubleQuotedScalar");function FO(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,Dr(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),Dr(e,t,Fi,!1,!0),$=e.result),d?Mr(e,o,p,y,m,$):f?o.push(Mr(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(FO,"readFlowCollection");function VO(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:EO:S(e,"repeat of a chomping mode identifier");else if((l=RO(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(!Ue(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),Ue(d)){u++;continue}if(e.lineIndent<c){i===Gp?e.result+=rt.repeat(`
|
|
22
22
|
`,o?1+u:u):i===Pc&&o&&(e.result+=`
|
|
23
23
|
`);break}for(n?Wt(d)?(f=!0,e.result+=rt.repeat(`
|
|
24
24
|
`,o?1+u:u)):f?(f=!1,e.result+=rt.repeat(`
|
|
25
25
|
`,u+1)):u===0?o&&(e.result+=" "):e.result+=rt.repeat(`
|
|
26
26
|
`,u):e.result+=rt.repeat(`
|
|
27
|
-
`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!
|
|
27
|
+
`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!Ue(d)&&d!==0;)d=e.input.charCodeAt(++e.position);yt(e,r,e.position,!1)}return!0}s(VO,"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,Dr(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 LO(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&&(Mr(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(Dr(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&&(Mr(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)&&(Dr(e,t,Vi,!0,i)&&(y?p=e.result:m=e.result),y||(Mr(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&&Mr(e,f,l,d,p,null),$&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),$}s(LO,"readBlockMapping");function zO(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),qO.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:gt.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(zO,"readTagProperty");function UO(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)&&!Cr(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(UO,"readAnchorProperty");function BO(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)&&!Cr(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),gt.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],H(e,!0,-1),!0}s(BO,"readAlias");function Dr(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(;zO(e)||UO(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,$)||LO(e,$,y))||FO(e,y)?l=!0:(a&&VO(e,y)||MO(e,y)||DO(e,y)?l=!0:BO(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&S(e,"alias node should not have any properties")):CO(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 gt.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(Dr,"composeNode");function HO(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&&!Ue(a));break}if(Ue(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),gt.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"),Dr(e,e.lineIndent-1,Vi,!1,!0),H(e,!0,-1),e.checkLineBreaks&&AO.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(HO,"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
28
|
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new NO(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;)HO(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 GO(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),cm(e,t,rt.extend({schema:Qp},r))}s(GO,"safeLoadAll");function ZO(e,t){return um(e,rt.extend({schema:Qp},t))}s(ZO,"safeLoad");In.exports.loadAll=cm;In.exports.load=um;In.exports.safeLoadAll=GO;In.exports.safeLoad=ZO});var Rm=h((VI,jc)=>{"use strict";var kn=Ht(),Nn=Rr(),KO=Tn(),WO=Nr(),$m=Object.prototype.toString,vm=Object.prototype.hasOwnProperty,YO=9,Rn=10,JO=13,XO=32,QO=33,ew=34,bm=35,tw=37,rw=38,nw=39,iw=42,_m=44,ow=45,Pm=58,sw=61,aw=62,cw=63,uw=64,Sm=91,xm=93,fw=96,Om=123,lw=124,wm=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 dw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function pw(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(pw,"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 Nn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+kn.repeat("0",n-t.length)+t}s(lm,"encodeHex");function mw(e){this.schema=e.schema||KO,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=kn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=pw(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(mw,"State");function dm(e,t){for(var r=kn.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
30
|
`&&(o+=r),o+=a;return o}s(dm,"indentString");function Oc(e,t){return`
|
|
@@ -47,8 +47,8 @@ Too many redirects:
|
|
|
47
47
|
Cannot set "${t}" of a non-object.`);return r}s(ah,"setValue");function ch(e){if(Xw(e))throw e;return e}s(ch,"unwrapOrThrow")});var Vr=h((u1,dh)=>{"use strict";dh.exports=ce;var lh=Mn(),{InvalidPointerError:nE,isHandledError:iE,normalizeError:fh}=Te(),{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}=Oe(),cE=Vr(),vt=ge();hh.exports=Ie;function Ie(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Ie,"$Refs");Ie.prototype.paths=function(e){return mh(this._$refs,arguments).map(r=>r.decoded)};Ie.prototype.values=function(e){let t=this._$refs;return mh(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Ie.prototype.toJSON=Ie.prototype.values;Ie.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Ie.prototype.get=function(e,t){return this._resolve(e,"",t).value};Ie.prototype.set=function(e,t){let r=vt.resolve(this._root$Ref.path,e),n=vt.stripHash(r),i=this._$refs[n];if(!i)throw ph(`Error resolving $ref pointer "${e}".
|
|
48
48
|
"${n}" not found.`);i.set(r,t)};Ie.prototype._add=function(e){let t=vt.stripHash(e),r=new cE;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Ie.prototype._resolve=function(e,t,r){let n=vt.resolve(this._root$Ref.path,e),i=vt.stripHash(n),o=this._$refs[i];if(!o)throw ph(`Error resolving $ref pointer "${e}".
|
|
49
49
|
"${i}" not found.`);return o.resolve(n,r,e,t)};Ie.prototype._get$Ref=function(e){e=vt.resolve(this._root$Ref.path,e);let t=vt.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"?vt.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}=Oe(),vh=ge(),bt=$h(),{ResolverError:bh,ParserError:_h,UnmatchedParserError:uE,UnmatchedResolverError:fE,isHandledError:lE}=Te();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=bt.all(t.resolve);o=bt.filter(o,"canRead",e),bt.sort(o),bt.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=bt.all(t.parse),a=bt.filter(o,"canParse",e),c=a.length>0?a:o;bt.sort(c),bt.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 wh=h((g1,Oh)=>{"use strict";var Sh=Vr(),yE=Mn(),gE=Vc(),Fn=ge(),{isHandledError:$E}=Te();Oh.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=Vr(),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=Vr(),qh=Mn(),{ono:xE}=Oe(),OE=ge();Rh.exports=wE;function wE(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(wE,"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=Th(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=Th(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=Ih(f,i,o),c.circular=c.circular||p}n.pop()}return c}s(Hc,"crawl");function Th(e,t,r,n,i,o){let a=OE.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&&Ih(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(Th,"dereference$Ref");function Ih(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xE.reference(`Circular $ref pointer found at ${e}`);return!0}s(Ih,"foundCircularReference")});var Mh=h((S1,Be)=>{"use strict";var Ch=yh(),EE=Vc(),Yi=kc(),jE=wh(),AE=Ah(),qE=Gc(),Lr=ge(),{JSONParserError:TE,InvalidPointerError:IE,MissingPointerError:RE,ResolverError:kE,ParserError:NE,UnmatchedParserError:CE,UnmatchedResolverError:ME,isHandledError:DE,JSONParserErrorGroup:kh}=Te(),Re=Cc(),{ono:Nh}=Oe();Be.exports=Ue;Be.exports.default=Ue;Be.exports.JSONParserError=TE;Be.exports.InvalidPointerError=IE;Be.exports.MissingPointerError=RE;Be.exports.ResolverError=kE;Be.exports.ParserError=NE;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=Nh(`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(Lr.isFileSystemPath(o.path)&&(o.path=Lr.fromFileSystemPath(o.path),c="file"),o.path=Lr.resolve(Lr.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 Nh.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[Lr.stripHash(o.path)]&&this.$refs._$refs[Lr.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(kh.getParserErrors(e).length>0)throw new kh(e)}s(Zc,"finalize")});var zh=h((O1,Lh)=>{"use strict";var FE=pc(),VE=yc(),Dh=kc(),Fh=Kn(),Vh=rh(),Ji=Cc(),{ono:ke}=Oe(),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 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(", ")}`)}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 ke.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 nt=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[nt],"i"),Ye=s((e,t,r)=>{if(eo(e)){let n=e[nt](),{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[nt]().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[nt]()).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=>V(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({[nt]:()=>({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 V(...e){return Se({[nt]:()=>({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(V,"m");function BE(...e){return Se({[nt]:()=>({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 N(e){return{[nt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(N,"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({[nt]:()=>({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 _t(e){return typeof e=="string"}s(_t,"b");function Pt(e){return typeof e=="bigint"}s(Pt,"w");var z1=Se(N(function(e){return!0}));var St=s(e=>Object.assign(Se(e),{startsWith:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length>=r))(t))),"minLength"),length:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length===r))(t))),"length"),maxLength:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&!!n.match(r)))));var r},"regex")}),"j"),U1=St(N(_t)),We=s(e=>Object.assign(Se(e),{between:s((t,r)=>We(V(e,((n,i)=>N(o=>Ke(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n<r))(t))),"lt"),gt:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n>r))(t))),"gt"),lte:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n<=r))(t))),"lte"),gte:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n>=r))(t))),"gte"),int:s(()=>We(V(e,N(t=>Ke(t)&&Number.isInteger(t)))),"int"),finite:s(()=>We(V(e,N(t=>Ke(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>We(V(e,N(t=>Ke(t)&&t>0))),"positive"),negative:s(()=>We(V(e,N(t=>Ke(t)&&t<0))),"negative")}),"x"),B1=We(N(Ke)),xt=s(e=>Object.assign(Se(e),{between:s((t,r)=>xt(V(e,((n,i)=>N(o=>Pt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n<r))(t))),"lt"),gt:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n>r))(t))),"gt"),lte:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n<=r))(t))),"lte"),gte:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n>=r))(t))),"gte"),positive:s(()=>xt(V(e,N(t=>Pt(t)&&t>0))),"positive"),negative:s(()=>xt(V(e,N(t=>Pt(t)&&t<0))),"negative")}),"A"),H1=xt(N(Pt)),G1=Se(N(function(e){return typeof e=="boolean"})),Z1=Se(N(function(e){return typeof e=="symbol"})),K1=Se(N(function(e){return e==null})),W1=Se(N(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"],zr=["get","put","post","delete","options","head","patch","trace"],ny=["string","number","integer","boolean"];function Ur(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Ur,"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 L(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(L,"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 wt=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 Et(e){return e.includes("application/")&&e.includes("json")||ty.includes(e)||e.includes("text/")}s(Et,"isParamMediaTypeAllowed");function su(e){return e>=200&&e<300}s(su,"isMainResponseStatus");function au(e){return!(e>=200&&e<300)}s(au,"isErrorStatus");function Br(e){return e==="application/json"}s(Br,"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?Hr(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=Ur(i,zr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Hr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(GE,"getOperationsByTag");function it(e){return Yh(e)}s(it,"formatTag");function Hr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return it(r??t.defaultTag)}s(Hr,"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");var dy=s(e=>e.method==="get","isQuery"),py=s(e=>e.method!=="get","isMutation");var jt=s((e,t)=>Jh(Ge(sy(e)),t),"getZodSchemaName"),Qt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),my=s(e=>Ze(`${e}_${Bh}`),"getBodyZodSchemaName"),hy=s((e,t)=>Ze(`${e}_${t}${Hh}`),"getParamZodSchemaName"),yy=s(e=>Ze(`${e}${Gh}`),"getMainResponseZodSchemaName"),gy=s((e,t)=>Ze(`${e}_${t}_${Zh}`),"getErrorResponseZodSchemaName");var WE=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})}.`:""}${WE(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 Gr({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&&wt(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(Gr,"getTsType");function er({schema:e,isCircular:t,parentTypes:r,resolver:n,options:i}){if(!e)return{metaType:"primitive"};let o=["allOf","anyOf","oneOf"];for(let a of o){let c=e[a];if(c)if(c.length>1){let u=c.map(f=>{let l=n.resolveObject(f);return er({schema:l,parentTypes:r,resolver:n,options:i})});return u.every(({metaType:f})=>f==="object")?{metaType:"object",objectProperties:u.reduce((f,{objectProperties:l})=>{let d=l.map(({name:p})=>p);return[...f.filter(({name:p})=>!d.includes(p)),...l]},[])}:{metaType:"composite",[a]:u}}else e=n.resolveObject(c[0])}return e.type==="array"?{metaType:"array",arrayType:$y({arraySchema:e,resolver:n,options:i,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:YE({schema:e,parentTypes:r,resolver:n,options:i})}:{metaType:"primitive"}}s(er,"getSchemaTsMetaType");function $y({arraySchema:e,parentTypes:t,resolver:r,options:n}){let i,o;if(L(e.items)){let f=e.items.$ref;i=r.getZodSchemaNameByRef(f),o=r.getSchemaByRef(f)}else o=e.items;let a=Gr({zodSchemaName:i,schema:o,resolver:r,options:n}),c=vy(a,t),u=er({schema:o,isCircular:c,parentTypes:[...t,a],resolver:r,options:n});return{...a,...u}}s($y,"getArraySchemaTsNestedType");function YE({schema:e,parentTypes:t,resolver: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(L(o)){let u=r.getZodSchemaNameByRef(o.$ref),f=r.getSchemaByRef(o.$ref),l=Gr({zodSchemaName:u,schema:f,resolver:r,options:n}),d=vy(l,t),p=er({schema:f,isCircular:d,parentTypes:[...t,l],resolver:r,options:n});return{name:i,isRequired:a,...l,...p}}else if(o.type==="array"){let u=$y({arraySchema:o,parentTypes:t,resolver:r,options:n});return{name:i,isRequired:a,type:"array",metaType:"array",arrayType:u}}else if(wt(o.type))return{name:i,isRequired:a,type:uu(o.type),metaType:"primitive"};return{name:i,isRequired:a,type:"void",metaType:"primitive"}})}s(YE,"getSchemaTsNestedProperties");function vy(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(vy,"getIsCircular");var by="data";function At(e){return!L(e)}s(At,"isSchemaObject");function _y(e){return e.type==="array"}s(_y,"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(JE(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(L(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 JE=s(e=>!L(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Sy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return it(r??t.defaultTag)}s(Sy,"getEndpointTag");function Je({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)&&([`
|
|
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 wh=h((g1,Oh)=>{"use strict";var Sh=Vr(),yE=Mn(),gE=Vc(),Fn=ge(),{isHandledError:$E}=Te();Oh.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=Vr(),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=Vr(),qh=Mn(),{ono:xE}=Oe(),OE=ge();Rh.exports=wE;function wE(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(wE,"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=Th(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=Th(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=Ih(f,i,o),c.circular=c.circular||p}n.pop()}return c}s(Hc,"crawl");function Th(e,t,r,n,i,o){let a=OE.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&&Ih(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(Th,"dereference$Ref");function Ih(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xE.reference(`Circular $ref pointer found at ${e}`);return!0}s(Ih,"foundCircularReference")});var Mh=h((S1,He)=>{"use strict";var Ch=yh(),EE=Vc(),Yi=kc(),jE=wh(),AE=Ah(),qE=Gc(),Lr=ge(),{JSONParserError:TE,InvalidPointerError:IE,MissingPointerError:RE,ResolverError:kE,ParserError:NE,UnmatchedParserError:CE,UnmatchedResolverError:ME,isHandledError:DE,JSONParserErrorGroup:kh}=Te(),Re=Cc(),{ono:Nh}=Oe();He.exports=Be;He.exports.default=Be;He.exports.JSONParserError=TE;He.exports.InvalidPointerError=IE;He.exports.MissingPointerError=RE;He.exports.ResolverError=kE;He.exports.ParserError=NE;He.exports.UnmatchedParserError=CE;He.exports.UnmatchedResolverError=ME;function Be(){this.schema=null,this.$refs=new Ch}s(Be,"$RefParser");Be.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Be.prototype.parse=s(async function(t,r,n,i){let o=Yi(arguments),a;if(!o.path&&!o.schema){let f=Nh(`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(Lr.isFileSystemPath(o.path)&&(o.path=Lr.fromFileSystemPath(o.path),c="file"),o.path=Lr.resolve(Lr.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 Nh.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[Lr.stripHash(o.path)]&&this.$refs._$refs[Lr.stripHash(o.path)].addError(f),Re(o.callback,Promise.resolve(null)))}},"parse");Be.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Be.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");Be.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Be.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");Be.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Be.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(kh.getParserErrors(e).length>0)throw new kh(e)}s(Zc,"finalize")});var zh=h((O1,Lh)=>{"use strict";var FE=pc(),VE=yc(),Dh=kc(),Fh=Kn(),Vh=rh(),Ji=Cc(),{ono:ke}=Oe(),Jt=Mh(),LE=Gc();Lh.exports=Ge;function Ge(){Jt.apply(this,arguments)}s(Ge,"SwaggerParser");Fh.inherits(Ge,Jt);Ge.parse=Jt.parse;Ge.resolve=Jt.resolve;Ge.bundle=Jt.bundle;Ge.dereference=Jt.dereference;Object.defineProperty(Ge.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Ge.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 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(", ")}`)}Fh.fixOasRelativeServers(o,i.path)}return Ji(i.callback,Promise.resolve(o))}catch(o){return Ji(i.callback,Promise.reject(o))}};Ge.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Ge.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 ke.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,useRelativeImports:!1,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Uh,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ze=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"),Ne=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${Ze(Ne(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})=>`${Ze(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 nt=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[nt],"i"),Ye=s((e,t,r)=>{if(eo(e)){let n=e[nt](),{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[nt]().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[nt]()).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=>V(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({[nt]:()=>({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 V(...e){return Se({[nt]:()=>({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(V,"m");function BE(...e){return Se({[nt]:()=>({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 N(e){return{[nt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(N,"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({[nt]:()=>({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 _t(e){return typeof e=="string"}s(_t,"b");function Pt(e){return typeof e=="bigint"}s(Pt,"w");var z1=Se(N(function(e){return!0}));var St=s(e=>Object.assign(Se(e),{startsWith:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length>=r))(t))),"minLength"),length:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length===r))(t))),"length"),maxLength:s(t=>St(V(e,(r=>N(n=>_t(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return St(V(e,(r=t,N(n=>_t(n)&&!!n.match(r)))));var r},"regex")}),"j"),U1=St(N(_t)),We=s(e=>Object.assign(Se(e),{between:s((t,r)=>We(V(e,((n,i)=>N(o=>Ke(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n<r))(t))),"lt"),gt:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n>r))(t))),"gt"),lte:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n<=r))(t))),"lte"),gte:s(t=>We(V(e,(r=>N(n=>Ke(n)&&n>=r))(t))),"gte"),int:s(()=>We(V(e,N(t=>Ke(t)&&Number.isInteger(t)))),"int"),finite:s(()=>We(V(e,N(t=>Ke(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>We(V(e,N(t=>Ke(t)&&t>0))),"positive"),negative:s(()=>We(V(e,N(t=>Ke(t)&&t<0))),"negative")}),"x"),B1=We(N(Ke)),xt=s(e=>Object.assign(Se(e),{between:s((t,r)=>xt(V(e,((n,i)=>N(o=>Pt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n<r))(t))),"lt"),gt:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n>r))(t))),"gt"),lte:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n<=r))(t))),"lte"),gte:s(t=>xt(V(e,(r=>N(n=>Pt(n)&&n>=r))(t))),"gte"),positive:s(()=>xt(V(e,N(t=>Pt(t)&&t>0))),"positive"),negative:s(()=>xt(V(e,N(t=>Pt(t)&&t<0))),"negative")}),"A"),H1=xt(N(Pt)),G1=Se(N(function(e){return typeof e=="boolean"})),Z1=Se(N(function(e){return typeof e=="symbol"})),K1=Se(N(function(e){return e==null})),W1=Se(N(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"],zr=["get","put","post","delete","options","head","patch","trace"],ny=["string","number","integer","boolean"];function Ur(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Ur,"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 L(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(L,"isReferenceObject");function sy(e){let t=HE(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Ne(t)}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 Ne(t.replaceAll("-","_")).replaceAll("#","_")}s(ou,"pathParamToVariableName");var wt=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 Et(e){return e.includes("application/")&&e.includes("json")||ty.includes(e)||e.includes("text/")}s(Et,"isParamMediaTypeAllowed");function su(e){return e>=200&&e<300}s(su,"isMainResponseStatus");function au(e){return!(e>=200&&e<300)}s(au,"isErrorStatus");function Br(e){return e==="application/json"}s(Br,"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:Ze(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?Hr(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=Ur(i,zr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Hr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(GE,"getOperationsByTag");function it(e){return Yh(e)}s(it,"formatTag");function Hr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return it(r??t.defaultTag)}s(Hr,"getOperationTag");var iy=/({\w+})/g,ZE=/[^\w\-]+/g;function KE(e){e=Ze(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${Ze(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");var dy=s(e=>e.method==="get","isQuery"),py=s(e=>e.method!=="get","isMutation");var jt=s((e,t)=>Jh(Ze(sy(e)),t),"getZodSchemaName"),Qt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),my=s(e=>Ne(`${e}_${Bh}`),"getBodyZodSchemaName"),hy=s((e,t)=>Ne(`${e}_${t}${Hh}`),"getParamZodSchemaName"),yy=s(e=>Ne(`${e}${Gh}`),"getMainResponseZodSchemaName"),gy=s((e,t)=>Ne(`${e}_${t}_${Zh}`),"getErrorResponseZodSchemaName");var WE=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})}.`:""}${WE(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 Gr({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&&wt(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(Gr,"getTsTypeBase");function er({schema:e,isCircular:t,parentTypes:r,resolver:n,options:i}){if(!e)return{metaType:"primitive"};let o=["allOf","anyOf","oneOf"];for(let a of o){let c=e[a];if(c)if(c.length>1){let u=c.map(f=>{let l=n.resolveObject(f);return er({schema:l,parentTypes:r,resolver:n,options:i})});return u.every(({metaType:f})=>f==="object")?{metaType:"object",objectProperties:u.reduce((f,{objectProperties:l})=>{let d=l.map(({name:p})=>p);return[...f.filter(({name:p})=>!d.includes(p)),...l]},[])}:{metaType:"composite",[a]:u}}else e=n.resolveObject(c[0])}return e.type==="array"?{metaType:"array",arrayType:$y({arraySchema:e,resolver:n,options:i,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:YE({schema:e,parentTypes:r,resolver:n,options:i})}:{metaType:"primitive"}}s(er,"getSchemaTsMetaType");function $y({arraySchema:e,parentTypes:t,resolver:r,options:n}){let i,o;if(L(e.items)){let f=e.items.$ref;i=r.getZodSchemaNameByRef(f),o=r.getSchemaByRef(f)}else o=e.items;let a=Gr({zodSchemaName:i,schema:o,resolver:r,options:n}),c=vy(a,t),u=er({schema:o,isCircular:c,parentTypes:[...t,a],resolver:r,options:n});return{...a,...u}}s($y,"getArraySchemaTsType");function YE({schema:e,parentTypes:t,resolver: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(L(o)){let u=r.getZodSchemaNameByRef(o.$ref),f=r.getSchemaByRef(o.$ref),l=Gr({zodSchemaName:u,schema:f,resolver:r,options:n}),d=vy(l,t),p=er({schema:f,isCircular:d,parentTypes:[...t,l],resolver:r,options:n});return{name:i,isRequired:a,...l,...p}}else if(o.type==="array"){let u=$y({arraySchema:o,parentTypes:t,resolver:r,options:n});return{name:i,isRequired:a,type:"array",metaType:"array",arrayType:u}}else if(wt(o.type))return{name:i,isRequired:a,type:uu(o.type),metaType:"primitive"};return{name:i,isRequired:a,type:"void",metaType:"primitive"}})}s(YE,"getSchemaTsProperties");function vy(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(vy,"getIsCircular");var by="data";function At(e){return!L(e)}s(At,"isSchemaObject");function _y(e){return e.type==="array"}s(_y,"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(JE(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(L(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 JE=s(e=>!L(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Sy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return it(r??t.defaultTag)}s(Sy,"getEndpointTag");function Je({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(XE(e,t),(r==null?void 0:r.withDefaultValues)!==!1?QE(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Je,"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 tr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function W({current:e,schema:t}){if(!t)return e;if(L(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")+tr(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")+tr(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")+tr(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")+tr(t.allOf.map(r=>W({current:0,schema:r})));if(!t.type)return e;if(wt(t.type))return t.enum?e+xy(t)+ue("enum")+tr(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")+tr(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;L(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(L(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(_y(e))return e.items?o.assign(`z.array(${U({...c,schema:e.items}).getCodeString(n,i)}${Je({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,_=(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)+Je({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),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([
|
|
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(Je,"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 tr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function W({current:e,schema:t}){if(!t)return e;if(L(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")+tr(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")+tr(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")+tr(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")+tr(t.allOf.map(r=>W({current:0,schema:r})));if(!t.type)return e;if(wt(t.type))return t.enum?e+xy(t)+ue("enum")+tr(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")+tr(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;L(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(L(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(_y(e))return e.items?o.assign(`z.array(${U({...c,schema:e.items}).getCodeString(n,i)}${Je({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,_=(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)+Je({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),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([Ce,he])=>{var Gn;let rr={...a,isRequired:j?!0:x?(Gn=e.required)==null?void 0:Gn.includes(Ce):i==null?void 0:i.withImplicitRequiredProps,name:Ce},nr=he;if(L(he)&&t&&(nr=t.getSchemaByRef(he.$ref),!nr))throw new Error(`Schema ${he.$ref} not found`);let Hn=U({...c,schema:he,meta:rr}).getCodeString(n,i)+Je({schema:nr,meta:rr,options:i});return[Ce,Hn]}).map(([Ce,he])=>`${ay(Ce)}: ${he}`).join(", ")+" }");let Y=j?".partial()":"",G=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${P})${Y}${G}${_}${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(!L(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(!At(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=>At(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!a){let u=e.discriminator.propertyName;return t.assign(`
|
|
53
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(!(!At(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(!At(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(!At(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(!At(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&wt(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=jt(r,o.schemaSuffix),l=f,d=1;for(;n.getCodeByZodSchemaName(l);){if((u=n.getZodSchemaNamesByCompositeCode(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.addZodSchemaForCompositeCode(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 Oy({resolver:e,operation:t,operationName:r,tag:n,options:i}){var m,y;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find(Et);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=e.resolveObject(u),d=Zr({schema:l,zodSchema:f,fallbackName:my(r),resolver:e,tag:n,options:i}),p=Je({schema:l,meta:f.meta,options:i});return{endpointParameter:{name:by,type:"Body",description:o.description,zodSchema:d+p,bodyObject:o},requestFormat:c}}s(Oy,"getEndpointBody");function wy({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=e.resolveObject(t);if(!ry.includes(o.in))return;let a={};if(o.content){let d=Object.keys(o.content??{}),p=d.find(Et);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=e.resolveObject(a),f=Je({schema:u,meta:c.meta,options:i}),l=Zr({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",()=>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(wy,"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=Ur(u,zr),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}),$=Hr(p,r),g={method:d,path:ly(c),operationName:y,description:p.description,tags:(i=p.tags)==null?void 0:i.map(it),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let v=Oy({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 _=wy({resolver:t,param:v,operationName:y,tag:$,options:r});_&&g.parameters.push(_)}for(let v in p.responses){let _=t.resolveObject(p.responses[v]),j=Object.keys(_.content??{}).find(Br),P,Y;if(j?(g.responseFormat=j,P=(a=(o=_.content)==null?void 0:o[j])==null?void 0:a.schema):Y=Kc,P){let G=U({schema:P,resolver:t,meta:{isRequired:!0},tag:$,options:r}),qt=t.resolveObject(P);Y=Zr({schema:qt,zodSchema:G,fallbackName:G.ref?void 0:fj(v,g),resolver:t,tag:$,options:r})+Je({schema:qt,meta:G.meta,options:r})}if(Y){let G=Number(v);su(G)?(g.response=Y,g.responseObject=_):v!=="default"&&au(G)&&g.errors.push({zodSchema:Y,status:G,description:_.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)?gy(t.operationName,e):yy(t.operationName)}s(fj,"getResponseZodSchemaName");function Ey(e){return Object.fromEntries((e??[]).map(t=>[L(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(L(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=[];compositeZodSchemaData=[];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 it(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return L(t)?this.getSchemaByRef(t.$ref):t}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Bn(t),n=iu(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(L))??[],"filterRefObjs");for(let u in this.openApiDoc.paths){let f=this.openApiDoc.paths[u],l=Ur(f,zr);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=this.resolveObject(p.requestBody),x=Object.keys(v.content??{}).find(Et);if(x){let j=(o=(i=v.content)==null?void 0:i[x])==null?void 0:o.schema;L(j)&&m.push(j)}}for(let v in p.responses){let _=this.resolveObject(p.responses[v]),j=Object.keys(_.content??{}).find(Br);if(j){let P=(c=(a=_.content)==null?void 0:a[j])==null?void 0:c.schema;L(P)&&m.push(P)}}let $=m.map(v=>Bn(v.$ref)).reduce((v,_)=>{let x=this.dependencyGraph.deepDependencyGraph[_];return[...v,_,...Array.from(x??[])]},[]),g=Hr(p,this.options);$.forEach(v=>{let _=this.schemaData.find(x=>x.ref===v);_&&_.tags.push(g)})}}}};s(lu,"SchemaResolver");var no=lu;function Ty({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]=U({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(Ty,"getZodSchemasFromOpenAPIDoc");function Iy(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(Iy,"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 ky({resolver:e,zodSchemas:t}){let r=Iy(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Ry(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 no(e,t),n=jy({resolver:r,openApiDoc:e,options:t}),o={...Ty({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: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.getSchemaByCompositeZodSchemaName(m),g=Gr({zodSchemaName:m,schema:$,resolver:r,options:t}),v;$&&(v=er({schema:$,parentTypes:[g],resolver:r,options:t})),i.push({...g,metaType:"primitive",...v})}),c.forEach(m=>{let y="queries",$=it(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:dy(m),isMutation:py(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;let i;if((c=n.parameterObject)!=null&&c.schema)i=e.resolveObject(n.parameterObject.schema);else if(n.bodyObject){let p=Object.keys(n.bodyObject.content??{}).find(Et);p&&(i=e.resolveObject((f=(u=n.bodyObject.content)==null?void 0:u[p])==null?void 0:f.schema))}let o=Gr({zodSchemaName:n.zodSchema,schema:i,resolver:e,options:r}),a;return i&&(a=er({schema:i,parentTypes:[o],resolver:e,options:r})),{name:Wc(n.name),isRequired:((l=n.parameterObject)==null?void 0:l.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(Br);i&&(n=e.resolveObject((l=(f=(u=t.responseObject)==null?void 0:u.content)==null?void 0:f[i])==null?void 0:l.schema));let o=Gr({zodSchemaName:t.response,schema:n,resolver:e,options:r}),a;return n&&(a=er({schema:n,parentTypes:[o],resolver:e,options:r})),{...o,metaType:"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});
|
|
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(!(!At(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(!At(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(!At(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=>`merge(${p.getCodeString(i,o)})`).join(".");return t.assign(`${l.getCodeString(i,o)}.${d}`)}s(cj,"getAllOfZodSchema");function uj({schema:e,zodSchema:t}){if(!At(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&wt(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=jt(r,o.schemaSuffix),l=f,d=1;for(;n.getCodeByZodSchemaName(l);){if((u=n.getZodSchemaNamesByCompositeCode(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.addZodSchemaForCompositeCode(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 Oy({resolver:e,operation:t,operationName:r,tag:n,options:i}){var m,y;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find(Et);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=e.resolveObject(u),d=Zr({schema:l,zodSchema:f,fallbackName:my(r),resolver:e,tag:n,options:i}),p=Je({schema:l,meta:f.meta,options:i});return{endpointParameter:{name:by,type:"Body",description:o.description,zodSchema:d+p,bodyObject:o},requestFormat:c}}s(Oy,"getEndpointBody");function wy({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=e.resolveObject(t);if(!ry.includes(o.in))return;let a={};if(o.content){let d=Object.keys(o.content??{}),p=d.find(Et);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=e.resolveObject(a),f=Je({schema:u,meta:c.meta,options:i}),l=Zr({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",()=>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(wy,"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=Ur(u,zr),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}),$=Hr(p,r),g={method:d,path:ly(c),operationName:y,description:p.description,tags:(i=p.tags)==null?void 0:i.map(it),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let v=Oy({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 _=wy({resolver:t,param:v,operationName:y,tag:$,options:r});_&&g.parameters.push(_)}for(let v in p.responses){let _=t.resolveObject(p.responses[v]),j=Object.keys(_.content??{}).find(Br),P,Y;if(j?(g.responseFormat=j,P=(a=(o=_.content)==null?void 0:o[j])==null?void 0:a.schema):Y=Kc,P){let G=U({schema:P,resolver:t,meta:{isRequired:!0},tag:$,options:r}),qt=t.resolveObject(P);Y=Zr({schema:qt,zodSchema:G,fallbackName:G.ref?void 0:fj(v,g),resolver:t,tag:$,options:r})+Je({schema:qt,meta:G.meta,options:r})}if(Y){let G=Number(v);su(G)?(g.response=Y,g.responseObject=_):v!=="default"&&au(G)&&g.errors.push({zodSchema:Y,status:G,description:_.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)?gy(t.operationName,e):yy(t.operationName)}s(fj,"getResponseZodSchemaName");function Ey(e){return Object.fromEntries((e??[]).map(t=>[L(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(L(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=[];compositeZodSchemaData=[];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 it(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return L(t)?this.getSchemaByRef(t.$ref):t}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Bn(t),n=iu(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(L))??[],"filterRefObjs");for(let u in this.openApiDoc.paths){let f=this.openApiDoc.paths[u],l=Ur(f,zr);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=this.resolveObject(p.requestBody),x=Object.keys(v.content??{}).find(Et);if(x){let j=(o=(i=v.content)==null?void 0:i[x])==null?void 0:o.schema;L(j)&&m.push(j)}}for(let v in p.responses){let _=this.resolveObject(p.responses[v]),j=Object.keys(_.content??{}).find(Br);if(j){let P=(c=(a=_.content)==null?void 0:a[j])==null?void 0:c.schema;L(P)&&m.push(P)}}let $=m.map(v=>Bn(v.$ref)).reduce((v,_)=>{let x=this.dependencyGraph.deepDependencyGraph[_];return[...v,_,...Array.from(x??[])]},[]),g=Hr(p,this.options);$.forEach(v=>{let _=this.schemaData.find(x=>x.ref===v);_&&_.tags.push(g)})}}}};s(lu,"SchemaResolver");var no=lu;function Ty({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]=U({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(Ty,"getZodSchemasFromOpenAPIDoc");function Iy(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(Iy,"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 ky({resolver:e,zodSchemas:t}){let r=Iy(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Ry(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 no(e,t),n=jy({resolver:r,openApiDoc:e,options:t}),o={...Ty({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: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.getSchemaByCompositeZodSchemaName(m),g=Gr({zodSchemaName:m,schema:$,resolver:r,options:t}),v;$&&(v=er({schema:$,parentTypes:[g],resolver:r,options:t})),i.push({...g,metaType:"primitive",...v})}),c.forEach(m=>{let y="queries",$=it(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:dy(m),isMutation:py(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;let i;if((c=n.parameterObject)!=null&&c.schema)i=e.resolveObject(n.parameterObject.schema);else if(n.bodyObject){let p=Object.keys(n.bodyObject.content??{}).find(Et);p&&(i=e.resolveObject((f=(u=n.bodyObject.content)==null?void 0:u[p])==null?void 0:f.schema))}let o=Gr({zodSchemaName:n.zodSchema,schema:i,resolver:e,options:r}),a;return i&&(a=er({schema:i,parentTypes:[o],resolver:e,options:r})),{name:Wc(n.name),isRequired:((l=n.parameterObject)==null?void 0:l.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(Br);i&&(n=e.resolveObject((l=(f=(u=t.responseObject)==null?void 0:u.content)==null?void 0:f[i])==null?void 0:l.schema));let o=Gr({zodSchemaName:t.response,schema:n,resolver:e,options:r}),a;return n&&(a=er({schema:n,parentTypes:[o],resolver:e,options:r})),{...o,metaType:"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});
|