@povio/openapi-codegen-cli 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -15
- package/dist/commands/generate.d.ts +1 -1
- package/dist/generators/const/acl.const.d.ts +2 -2
- package/dist/generators/const/deps.const.d.ts +17 -0
- package/dist/generators/core/SchemaResolver.class.d.ts +1 -0
- package/dist/generators/generate/generateAppRestClient.d.ts +2 -0
- package/dist/generators/types/generate.d.ts +4 -0
- package/dist/generators/types/metadata.d.ts +2 -2
- package/dist/generators/utils/deps.utils.d.ts +3 -0
- package/dist/generators/utils/file.utils.d.ts +2 -2
- package/dist/generators/utils/generate/generate.utils.d.ts +6 -2
- package/dist/index.js +47 -47
- package/dist/sh.js +64 -64
- package/package.json +3 -1
- package/src/assets/react-query.types.ts +24 -0
- package/src/assets/rest-client.ts +107 -0
- package/src/assets/rest-interceptor.ts +22 -0
- package/src/generators/templates/app-rest-client.hbs +7 -0
- package/src/generators/templates/endpoints.hbs +2 -2
- package/dist/generators/const/template.const.d.ts +0 -10
package/dist/sh.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var J2=Object.create;var Aa=Object.defineProperty;var gg=Object.getOwnPropertyDescriptor;var X2=Object.getOwnPropertyNames;var e$=Object.getPrototypeOf,t$=Object.prototype.hasOwnProperty;var o=(e,t)=>Aa(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var r$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of X2(t))!t$.call(e,i)&&i!==r&&Aa(e,i,{get:()=>t[i],enumerable:!(n=gg(t,i))||n.enumerable});return e};var gt=(e,t,r)=>(r=e!=null?J2(e$(e)):{},r$(t||!e||!e.__esModule?Aa(r,"default",{value:e,enumerable:!0}):r,e));var at=(e,t,r,n)=>{for(var i=n>1?void 0:n?gg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Aa(t,r,i),i};var ky=v(()=>{var Ny;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return cl(Object.create(null))}:u?function(){return cl({__proto__:null})}:function(){return cl({})},has:l?function(S,E){return n.call(S,E)}:function(S,E){return E in S},get:l?function(S,E){return n.call(S,E)?S[E]:void 0}:function(S,E){return S[E]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Z2(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:W2(),y=typeof WeakMap=="function"?WeakMap:K2(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Xe(),$=ft(g);function w(S,E,A,N){if(K(A)){if(!De(S))throw new TypeError;if(!jt(E))throw new TypeError;return j(S,E)}else{if(!De(S))throw new TypeError;if(!Ce(E))throw new TypeError;if(!Ce(N)&&!K(N)&&!Tt(N))throw new TypeError;return Tt(N)&&(N=void 0),A=_e(A),M(S,E,A,N)}}o(w,"decorate"),t("decorate",w);function T(S,E){function A(N,Q){if(!Ce(N))throw new TypeError;if(!K(Q)&&!Wi(Q))throw new TypeError;He(S,E,N,Q)}return o(A,"decorator"),A}o(T,"metadata"),t("metadata",T);function I(S,E,A,N){if(!Ce(A))throw new TypeError;return K(N)||(N=_e(N)),He(S,E,A,N)}o(I,"defineMetadata"),t("defineMetadata",I);function C(S,E,A){if(!Ce(E))throw new TypeError;return K(A)||(A=_e(A)),Y(S,E,A)}o(C,"hasMetadata"),t("hasMetadata",C);function ce(S,E,A){if(!Ce(E))throw new TypeError;return K(A)||(A=_e(A)),ue(S,E,A)}o(ce,"hasOwnMetadata"),t("hasOwnMetadata",ce);function re(S,E,A){if(!Ce(E))throw new TypeError;return K(A)||(A=_e(A)),ve(S,E,A)}o(re,"getMetadata"),t("getMetadata",re);function we(S,E,A){if(!Ce(E))throw new TypeError;return K(A)||(A=_e(A)),ge(S,E,A)}o(we,"getOwnMetadata"),t("getOwnMetadata",we);function Oe(S,E){if(!Ce(S))throw new TypeError;return K(E)||(E=_e(E)),Tr(S,E)}o(Oe,"getMetadataKeys"),t("getMetadataKeys",Oe);function J(S,E){if(!Ce(S))throw new TypeError;return K(E)||(E=_e(E)),xe(S,E)}o(J,"getOwnMetadataKeys"),t("getOwnMetadataKeys",J);function k(S,E,A){if(!Ce(E))throw new TypeError;if(K(A)||(A=_e(A)),!Ce(E))throw new TypeError;K(A)||(A=_e(A));var N=ns(E,A,!1);return K(N)?!1:N.OrdinaryDeleteMetadata(S,E,A)}o(k,"deleteMetadata"),t("deleteMetadata",k);function j(S,E){for(var A=S.length-1;A>=0;--A){var N=S[A],Q=N(E);if(!K(Q)&&!Tt(Q)){if(!jt(Q))throw new TypeError;E=Q}}return E}o(j,"DecorateConstructor");function M(S,E,A,N){for(var Q=S.length-1;Q>=0;--Q){var We=S[Q],rt=We(E,A,N);if(!K(rt)&&!Tt(rt)){if(!Ce(rt))throw new TypeError;N=rt}}return N}o(M,"DecorateProperty");function Y(S,E,A){var N=ue(S,E,A);if(N)return!0;var Q=q(E);return Tt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,E,A){var N=ns(E,A,!1);return K(N)?!1:Te(N.OrdinaryHasOwnMetadata(S,E,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,E,A){var N=ue(S,E,A);if(N)return ge(S,E,A);var Q=q(E);if(!Tt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,E,A){var N=ns(E,A,!1);if(!K(N))return N.OrdinaryGetOwnMetadata(S,E,A)}o(ge,"OrdinaryGetOwnMetadata");function He(S,E,A,N){var Q=ns(A,N,!0);Q.OrdinaryDefineOwnMetadata(S,E,A,N)}o(He,"OrdinaryDefineOwnMetadata");function Tr(S,E){var A=xe(S,E),N=q(S);if(N===null)return A;var Q=Tr(N,E);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var We=new h,rt=[],de=0,D=A;de<D.length;de++){var L=D[de],H=We.has(L);H||(We.add(L),rt.push(L))}for(var z=0,me=Q;z<me.length;z++){var L=me[z],H=We.has(L);H||(We.add(L),rt.push(L))}return rt}o(Tr,"OrdinaryMetadataKeys");function xe(S,E){var A=ns(S,E,!1);return A?A.OrdinaryOwnMetadataKeys(S,E):[]}o(xe,"OrdinaryOwnMetadataKeys");function Kt(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}o(Kt,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Tt(S){return S===null}o(Tt,"IsNull");function te(S){return typeof S=="symbol"}o(te,"IsSymbol");function Ce(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ce,"IsObject");function X(S,E){switch(Kt(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var A=E===3?"string":E===5?"number":"default",N=P(S,s);if(N!==void 0){var Q=N.call(S,A);if(Ce(Q))throw new TypeError;return Q}return Ae(S,A==="default"?"number":A)}o(X,"ToPrimitive");function Ae(S,E){if(E==="string"){var A=S.toString;if(st(A)){var N=A.call(S);if(!Ce(N))return N}var Q=S.valueOf;if(st(Q)){var N=Q.call(S);if(!Ce(N))return N}}else{var Q=S.valueOf;if(st(Q)){var N=Q.call(S);if(!Ce(N))return N}var We=S.toString;if(st(We)){var N=We.call(S);if(!Ce(N))return N}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Te(S){return!!S}o(Te,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var E=X(S,3);return te(E)?E:pe(E)}o(_e,"ToPropertyKey");function De(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(De,"IsArray");function st(S){return typeof S=="function"}o(st,"IsCallable");function jt(S){return typeof S=="function"}o(jt,"IsConstructor");function Wi(S){switch(Kt(S)){case 3:return!0;case 4:return!0;default:return!1}}o(Wi,"IsPropertyKey");function _(S,E){return S===E||S!==S&&E!==E}o(_,"SameValueZero");function P(S,E){var A=S[E];if(A!=null){if(!st(A))throw new TypeError;return A}}o(P,"GetMethod");function R(S){var E=P(S,a);if(!st(E))throw new TypeError;var A=E.call(S);if(!Ce(A))throw new TypeError;return A}o(R,"GetIterator");function x(S){return S.value}o(x,"IteratorValue");function O(S){var E=S.next();return E.done?!1:E}o(O,"IteratorStep");function B(S){var E=S.return;E&&E.call(S)}o(B,"IteratorClose");function q(S){var E=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||E!==f)return E;var A=S.prototype,N=A&&Object.getPrototypeOf(A);if(N==null||N===Object.prototype)return E;var Q=N.constructor;return typeof Q!="function"||Q===S?E:Q}o(q,"OrdinaryGetPrototypeOf");function G(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=G2(r.Reflect));var E,A,N,Q=new y,We={registerProvider:rt,getProvider:D,setProvider:H};return We;function rt(z){if(!Object.isExtensible(We))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case K(E):E=z;break;case E===z:break;case K(A):A=z;break;case A===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!K(E)){if(E.isProviderFor(z,me))return E;if(!K(A)){if(A.isProviderFor(z,me))return E;if(!K(N))for(var je=R(N);;){var Ke=O(je);if(!Ke)return;var dr=x(Ke);if(dr.isProviderFor(z,me))return B(je),dr}}}if(!K(S)&&S.isProviderFor(z,me))return S}function D(z,me){var je=Q.get(z),Ke;return K(je)||(Ke=je.get(me)),K(Ke)&&(Ke=de(z,me),K(Ke)||(K(je)&&(je=new d,Q.set(z,je)),je.set(me,Ke))),Ke}function L(z){if(K(z))throw new TypeError;return E===z||A===z||!K(N)&&N.has(z)}function H(z,me,je){if(!L(je))throw new Error("Metadata provider not registered.");var Ke=D(z,me);if(Ke!==je){if(!K(Ke))return!1;var dr=Q.get(z);K(dr)&&(dr=new d,Q.set(z,dr)),dr.set(me,je)}return!0}}o(G,"CreateMetadataRegistry");function Xe(){var S;return!K(b)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),K(S)&&(S=G()),!K(b)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(Xe,"GetOrCreateMetadataRegistry");function ft(S){var E=new y,A={isProviderFor:o(function(L,H){var z=E.get(L);return K(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:rt,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:We,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(A),A;function N(L,H,z){var me=E.get(L),je=!1;if(K(me)){if(!z)return;me=new d,E.set(L,me),je=!0}var Ke=me.get(H);if(K(Ke)){if(!z)return;if(Ke=new d,me.set(H,Ke),!S.setProvider(L,H,A))throw me.delete(H),je&&E.delete(L),new Error("Wrong provider for target.")}return Ke}o(N,"GetOrCreateMetadataMap");function Q(L,H,z){var me=N(H,z,!1);return K(me)?!1:Te(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function We(L,H,z){var me=N(H,z,!1);if(!K(me))return me.get(L)}o(We,"OrdinaryGetOwnMetadata");function rt(L,H,z,me){var je=N(z,me,!0);je.set(L,H)}o(rt,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(K(me))return z;for(var je=me.keys(),Ke=R(je),dr=0;;){var mg=O(Ke);if(!mg)return z.length=dr,z;var Y2=x(mg);try{z[dr]=Y2}catch(Q2){try{B(Ke)}finally{throw Q2}}dr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var je=E.get(H);K(je)||(je.delete(z),je.size===0&&E.delete(je))}return!0}o(D,"OrdinaryDeleteMetadata")}o(ft,"CreateMetadataProvider");function G2(S){var E=S.defineMetadata,A=S.hasOwnMetadata,N=S.getOwnMetadata,Q=S.getOwnMetadataKeys,We=S.deleteMetadata,rt=new y,de={isProviderFor:o(function(D,L){var H=rt.get(D);return!K(H)&&H.has(L)?!0:Q(D,L).length?(K(H)&&(H=new h,rt.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:E,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:We};return de}o(G2,"CreateFallbackProvider");function ns(S,E,A){var N=g.getProvider(S,E);if(!K(N))return N;if(A){if(g.setProvider(S,E,$))return $;throw new Error("Illegal state.")}}o(ns,"GetMetadataProvider");function Z2(){var S={},E=[],A=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new A(this._keys,this._values,Q)},de.prototype.values=function(){return new A(this._keys,this._values,We)},de.prototype.entries=function(){return new A(this._keys,this._values,rt)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function Q(de,D){return de}function We(de,D){return D}function rt(de,D){return[de,D]}}o(Z2,"CreateMapPolyfill");function W2(){var S=function(){function E(){this._map=new d}return o(E,"Set"),Object.defineProperty(E.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),E.prototype.has=function(A){return this._map.has(A)},E.prototype.add=function(A){return this._map.set(A,A),this},E.prototype.delete=function(A){return this._map.delete(A)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.keys()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[a]=function(){return this.keys()},E}();return S}o(W2,"CreateSetPolyfill");function K2(){var S=16,E=p.create(),A=N();return function(){function D(){this._key=N()}return o(D,"WeakMap"),D.prototype.has=function(L){var H=Q(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=Q(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=Q(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=Q(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(E,D));return E[D]=!0,D}function Q(D,L){if(!n.call(D,A)){if(!L)return;Object.defineProperty(D,A,{value:p.create()})}return D[A]}function We(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function rt(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):We(L,D),L}return We(new Array(D),D)}function de(){var D=rt(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(K2,"CreateWeakMapPolyfill");function cl(S){return S.__=void 0,delete S.__,S}o(cl,"MakeDictionary")})})(Ny||(Ny={}))});var zt=v((Ut,Dy)=>{"use strict";var rc=/^win/.test(process.platform),G$=/\//g,Z$=/^(\w{2,}):\/\//i,qy=Dy.exports,W$=/~1/g,K$=/~0/g,Ql=[/\?/g,"%3F",/\#/g,"%23"],Jl=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ut.parse=require("url").parse;Ut.resolve=require("url").resolve;Ut.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ut.getProtocol=o(function(t){let r=Z$.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ut.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ut.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ut.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ut.isHttp=o(function(t){let r=qy.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ut.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=qy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ut.fromFileSystemPath=o(function(t){rc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ql.length;r+=2)t=t.replace(Ql[r],Ql[r+1]);return t},"fromFileSystemPath");Ut.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Jl.length;i+=2)t=t.replace(Jl[i],Jl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),rc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=rc?t:"/"+t)),rc&&!n&&(t=t.replace(G$,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ut.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(W$,"/").replace(K$,"~"))},"safePointerToPath")});var nc=v(hs=>{"use strict";var Ly=require("util"),Y$=zt();hs.format=Ly.format;hs.inherits=Ly.inherits;hs.swaggerParamRegExp=/\{([^/}]+)}/g;var Q$=["get","post","put","delete","patch","options","head","trace"];function Xl(e,t){if(e.url&&e.url.startsWith("/")){let r=Y$.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Xl,"fixServers");function J$(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Xl(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Xl(a,t)):Q$.includes(s)&&i[s].servers&&i[s].servers.map(a=>Xl(a,t))})})}))}o(J$,"fixOasRelativeServers");hs.fixOasRelativeServers=J$});var ic=v(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.getDeepKeys=oo.toJSON=void 0;var X$=["function","symbol","undefined"],ew=["constructor","prototype","__proto__"],tw=Object.getPrototypeOf({});function rw(){let e={},t=this;for(let r of Fy(t))if(typeof r=="string"){let n=t[r],i=typeof n;X$.includes(i)||(e[r]=n)}return e}o(rw,"toJSON");oo.toJSON=rw;function Fy(e,t=[]){let r=[];for(;e&&e!==tw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(ew))n.delete(i);return n}o(Fy,"getDeepKeys");oo.getDeepKeys=Fy});var ef=v(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.addInspectMethod=so.format=void 0;var By=require("util"),nw=ic(),Vy=By.inspect.custom||Symbol.for("nodejs.util.inspect.custom");so.format=By.format;function iw(e){e[Vy]=ow}o(iw,"addInspectMethod");so.addInspectMethod=iw;function ow(){let e={},t=this;for(let r of nw.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Vy],e}o(ow,"inspect")});var zy=v(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.lazyJoinStacks=kr.joinStacks=kr.isWritableStack=kr.isLazyStack=void 0;var sw=/\r?\n/,aw=/\bono[ @]/;function cw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(cw,"isLazyStack");kr.isLazyStack=cw;function uw(e){return!!(!e||e.writable||typeof e.set=="function")}o(uw,"isWritableStack");kr.isWritableStack=uw;function Hy(e,t){let r=Uy(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
2
|
+
"use strict";var c$=Object.create;var Aa=Object.defineProperty;var Sg=Object.getOwnPropertyDescriptor;var u$=Object.getOwnPropertyNames;var l$=Object.getPrototypeOf,f$=Object.prototype.hasOwnProperty;var o=(e,t)=>Aa(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var p$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of u$(t))!f$.call(e,i)&&i!==r&&Aa(e,i,{get:()=>t[i],enumerable:!(n=Sg(t,i))||n.enumerable});return e};var gt=(e,t,r)=>(r=e!=null?c$(l$(e)):{},p$(t||!e||!e.__esModule?Aa(r,"default",{value:e,enumerable:!0}):r,e));var et=(e,t,r,n)=>{for(var i=n>1?void 0:n?Sg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Aa(t,r,i),i};var Fy=v(()=>{var Ly;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return dl(Object.create(null))}:u?function(){return dl({__proto__:null})}:function(){return dl({})},has:l?function(S,E){return n.call(S,E)}:function(S,E){return E in S},get:l?function(S,E){return n.call(S,E)?S[E]:void 0}:function(S,E){return S[E]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:n$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:i$(),y=typeof WeakMap=="function"?WeakMap:o$(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Xe(),$=ft(g);function w(S,E,A,N){if(K(A)){if(!De(S))throw new TypeError;if(!Rt(E))throw new TypeError;return T(S,E)}else{if(!De(S))throw new TypeError;if(!Ie(E))throw new TypeError;if(!Ie(N)&&!K(N)&&!Tt(N))throw new TypeError;return Tt(N)&&(N=void 0),A=_e(A),M(S,E,A,N)}}o(w,"decorate"),t("decorate",w);function j(S,E){function A(N,Q){if(!Ie(N))throw new TypeError;if(!K(Q)&&!Zi(Q))throw new TypeError;He(S,E,N,Q)}return o(A,"decorator"),A}o(j,"metadata"),t("metadata",j);function C(S,E,A,N){if(!Ie(A))throw new TypeError;return K(N)||(N=_e(N)),He(S,E,A,N)}o(C,"defineMetadata"),t("defineMetadata",C);function I(S,E,A){if(!Ie(E))throw new TypeError;return K(A)||(A=_e(A)),Y(S,E,A)}o(I,"hasMetadata"),t("hasMetadata",I);function ce(S,E,A){if(!Ie(E))throw new TypeError;return K(A)||(A=_e(A)),ue(S,E,A)}o(ce,"hasOwnMetadata"),t("hasOwnMetadata",ce);function re(S,E,A){if(!Ie(E))throw new TypeError;return K(A)||(A=_e(A)),ve(S,E,A)}o(re,"getMetadata"),t("getMetadata",re);function we(S,E,A){if(!Ie(E))throw new TypeError;return K(A)||(A=_e(A)),ge(S,E,A)}o(we,"getOwnMetadata"),t("getOwnMetadata",we);function Pe(S,E){if(!Ie(S))throw new TypeError;return K(E)||(E=_e(E)),Tr(S,E)}o(Pe,"getMetadataKeys"),t("getMetadataKeys",Pe);function J(S,E){if(!Ie(S))throw new TypeError;return K(E)||(E=_e(E)),xe(S,E)}o(J,"getOwnMetadataKeys"),t("getOwnMetadataKeys",J);function k(S,E,A){if(!Ie(E))throw new TypeError;if(K(A)||(A=_e(A)),!Ie(E))throw new TypeError;K(A)||(A=_e(A));var N=ns(E,A,!1);return K(N)?!1:N.OrdinaryDeleteMetadata(S,E,A)}o(k,"deleteMetadata"),t("deleteMetadata",k);function T(S,E){for(var A=S.length-1;A>=0;--A){var N=S[A],Q=N(E);if(!K(Q)&&!Tt(Q)){if(!Rt(Q))throw new TypeError;E=Q}}return E}o(T,"DecorateConstructor");function M(S,E,A,N){for(var Q=S.length-1;Q>=0;--Q){var Ze=S[Q],it=Ze(E,A,N);if(!K(it)&&!Tt(it)){if(!Ie(it))throw new TypeError;N=it}}return N}o(M,"DecorateProperty");function Y(S,E,A){var N=ue(S,E,A);if(N)return!0;var Q=q(E);return Tt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,E,A){var N=ns(E,A,!1);return K(N)?!1:je(N.OrdinaryHasOwnMetadata(S,E,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,E,A){var N=ue(S,E,A);if(N)return ge(S,E,A);var Q=q(E);if(!Tt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,E,A){var N=ns(E,A,!1);if(!K(N))return N.OrdinaryGetOwnMetadata(S,E,A)}o(ge,"OrdinaryGetOwnMetadata");function He(S,E,A,N){var Q=ns(A,N,!0);Q.OrdinaryDefineOwnMetadata(S,E,A,N)}o(He,"OrdinaryDefineOwnMetadata");function Tr(S,E){var A=xe(S,E),N=q(S);if(N===null)return A;var Q=Tr(N,E);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Ze=new h,it=[],de=0,D=A;de<D.length;de++){var L=D[de],H=Ze.has(L);H||(Ze.add(L),it.push(L))}for(var z=0,me=Q;z<me.length;z++){var L=me[z],H=Ze.has(L);H||(Ze.add(L),it.push(L))}return it}o(Tr,"OrdinaryMetadataKeys");function xe(S,E){var A=ns(S,E,!1);return A?A.OrdinaryOwnMetadataKeys(S,E):[]}o(xe,"OrdinaryOwnMetadataKeys");function Kt(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}o(Kt,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Tt(S){return S===null}o(Tt,"IsNull");function te(S){return typeof S=="symbol"}o(te,"IsSymbol");function Ie(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ie,"IsObject");function X(S,E){switch(Kt(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var A=E===3?"string":E===5?"number":"default",N=O(S,s);if(N!==void 0){var Q=N.call(S,A);if(Ie(Q))throw new TypeError;return Q}return Ae(S,A==="default"?"number":A)}o(X,"ToPrimitive");function Ae(S,E){if(E==="string"){var A=S.toString;if(ct(A)){var N=A.call(S);if(!Ie(N))return N}var Q=S.valueOf;if(ct(Q)){var N=Q.call(S);if(!Ie(N))return N}}else{var Q=S.valueOf;if(ct(Q)){var N=Q.call(S);if(!Ie(N))return N}var Ze=S.toString;if(ct(Ze)){var N=Ze.call(S);if(!Ie(N))return N}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function je(S){return!!S}o(je,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var E=X(S,3);return te(E)?E:pe(E)}o(_e,"ToPropertyKey");function De(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(De,"IsArray");function ct(S){return typeof S=="function"}o(ct,"IsCallable");function Rt(S){return typeof S=="function"}o(Rt,"IsConstructor");function Zi(S){switch(Kt(S)){case 3:return!0;case 4:return!0;default:return!1}}o(Zi,"IsPropertyKey");function _(S,E){return S===E||S!==S&&E!==E}o(_,"SameValueZero");function O(S,E){var A=S[E];if(A!=null){if(!ct(A))throw new TypeError;return A}}o(O,"GetMethod");function R(S){var E=O(S,a);if(!ct(E))throw new TypeError;var A=E.call(S);if(!Ie(A))throw new TypeError;return A}o(R,"GetIterator");function x(S){return S.value}o(x,"IteratorValue");function P(S){var E=S.next();return E.done?!1:E}o(P,"IteratorStep");function V(S){var E=S.return;E&&E.call(S)}o(V,"IteratorClose");function q(S){var E=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||E!==f)return E;var A=S.prototype,N=A&&Object.getPrototypeOf(A);if(N==null||N===Object.prototype)return E;var Q=N.constructor;return typeof Q!="function"||Q===S?E:Q}o(q,"OrdinaryGetPrototypeOf");function G(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=r$(r.Reflect));var E,A,N,Q=new y,Ze={registerProvider:it,getProvider:D,setProvider:H};return Ze;function it(z){if(!Object.isExtensible(Ze))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case K(E):E=z;break;case E===z:break;case K(A):A=z;break;case A===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!K(E)){if(E.isProviderFor(z,me))return E;if(!K(A)){if(A.isProviderFor(z,me))return E;if(!K(N))for(var Te=R(N);;){var Ke=P(Te);if(!Ke)return;var dr=x(Ke);if(dr.isProviderFor(z,me))return V(Te),dr}}}if(!K(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Te=Q.get(z),Ke;return K(Te)||(Ke=Te.get(me)),K(Ke)&&(Ke=de(z,me),K(Ke)||(K(Te)&&(Te=new d,Q.set(z,Te)),Te.set(me,Ke))),Ke}function L(z){if(K(z))throw new TypeError;return E===z||A===z||!K(N)&&N.has(z)}function H(z,me,Te){if(!L(Te))throw new Error("Metadata provider not registered.");var Ke=D(z,me);if(Ke!==Te){if(!K(Ke))return!1;var dr=Q.get(z);K(dr)&&(dr=new d,Q.set(z,dr)),dr.set(me,Te)}return!0}}o(G,"CreateMetadataRegistry");function Xe(){var S;return!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),K(S)&&(S=G()),!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(Xe,"GetOrCreateMetadataRegistry");function ft(S){var E=new y,A={isProviderFor:o(function(L,H){var z=E.get(L);return K(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:it,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Ze,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(A),A;function N(L,H,z){var me=E.get(L),Te=!1;if(K(me)){if(!z)return;me=new d,E.set(L,me),Te=!0}var Ke=me.get(H);if(K(Ke)){if(!z)return;if(Ke=new d,me.set(H,Ke),!S.setProvider(L,H,A))throw me.delete(H),Te&&E.delete(L),new Error("Wrong provider for target.")}return Ke}o(N,"GetOrCreateMetadataMap");function Q(L,H,z){var me=N(H,z,!1);return K(me)?!1:je(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Ze(L,H,z){var me=N(H,z,!1);if(!K(me))return me.get(L)}o(Ze,"OrdinaryGetOwnMetadata");function it(L,H,z,me){var Te=N(z,me,!0);Te.set(L,H)}o(it,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(K(me))return z;for(var Te=me.keys(),Ke=R(Te),dr=0;;){var _g=P(Ke);if(!_g)return z.length=dr,z;var s$=x(_g);try{z[dr]=s$}catch(a$){try{V(Ke)}finally{throw a$}}dr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Te=E.get(H);K(Te)||(Te.delete(z),Te.size===0&&E.delete(Te))}return!0}o(D,"OrdinaryDeleteMetadata")}o(ft,"CreateMetadataProvider");function r$(S){var E=S.defineMetadata,A=S.hasOwnMetadata,N=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Ze=S.deleteMetadata,it=new y,de={isProviderFor:o(function(D,L){var H=it.get(D);return!K(H)&&H.has(L)?!0:Q(D,L).length?(K(H)&&(H=new h,it.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:E,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Ze};return de}o(r$,"CreateFallbackProvider");function ns(S,E,A){var N=g.getProvider(S,E);if(!K(N))return N;if(A){if(g.setProvider(S,E,$))return $;throw new Error("Illegal state.")}}o(ns,"GetMetadataProvider");function n$(){var S={},E=[],A=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new A(this._keys,this._values,Q)},de.prototype.values=function(){return new A(this._keys,this._values,Ze)},de.prototype.entries=function(){return new A(this._keys,this._values,it)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function Q(de,D){return de}function Ze(de,D){return D}function it(de,D){return[de,D]}}o(n$,"CreateMapPolyfill");function i$(){var S=function(){function E(){this._map=new d}return o(E,"Set"),Object.defineProperty(E.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),E.prototype.has=function(A){return this._map.has(A)},E.prototype.add=function(A){return this._map.set(A,A),this},E.prototype.delete=function(A){return this._map.delete(A)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.keys()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[a]=function(){return this.keys()},E}();return S}o(i$,"CreateSetPolyfill");function o$(){var S=16,E=p.create(),A=N();return function(){function D(){this._key=N()}return o(D,"WeakMap"),D.prototype.has=function(L){var H=Q(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=Q(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=Q(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=Q(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(E,D));return E[D]=!0,D}function Q(D,L){if(!n.call(D,A)){if(!L)return;Object.defineProperty(D,A,{value:p.create()})}return D[A]}function Ze(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function it(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ze(L,D),L}return Ze(new Array(D),D)}function de(){var D=it(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(o$,"CreateWeakMapPolyfill");function dl(S){return S.__=void 0,delete S.__,S}o(dl,"MakeDictionary")})})(Ly||(Ly={}))});var zt=v((Ut,Hy)=>{"use strict";var rc=/^win/.test(process.platform),rw=/\//g,nw=/^(\w{2,}):\/\//i,By=Hy.exports,iw=/~1/g,ow=/~0/g,rf=[/\?/g,"%3F",/\#/g,"%23"],nf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ut.parse=require("url").parse;Ut.resolve=require("url").resolve;Ut.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ut.getProtocol=o(function(t){let r=nw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ut.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ut.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ut.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ut.isHttp=o(function(t){let r=By.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ut.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=By.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ut.fromFileSystemPath=o(function(t){rc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<rf.length;r+=2)t=t.replace(rf[r],rf[r+1]);return t},"fromFileSystemPath");Ut.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<nf.length;i+=2)t=t.replace(nf[i],nf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),rc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=rc?t:"/"+t)),rc&&!n&&(t=t.replace(rw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ut.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(iw,"/").replace(ow,"~"))},"safePointerToPath")});var nc=v(hs=>{"use strict";var Uy=require("util"),sw=zt();hs.format=Uy.format;hs.inherits=Uy.inherits;hs.swaggerParamRegExp=/\{([^/}]+)}/g;var aw=["get","post","put","delete","patch","options","head","trace"];function of(e,t){if(e.url&&e.url.startsWith("/")){let r=sw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(of,"fixServers");function cw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>of(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>of(a,t)):aw.includes(s)&&i[s].servers&&i[s].servers.map(a=>of(a,t))})})}))}o(cw,"fixOasRelativeServers");hs.fixOasRelativeServers=cw});var ic=v(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.getDeepKeys=oo.toJSON=void 0;var uw=["function","symbol","undefined"],lw=["constructor","prototype","__proto__"],fw=Object.getPrototypeOf({});function pw(){let e={},t=this;for(let r of zy(t))if(typeof r=="string"){let n=t[r],i=typeof n;uw.includes(i)||(e[r]=n)}return e}o(pw,"toJSON");oo.toJSON=pw;function zy(e,t=[]){let r=[];for(;e&&e!==fw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(lw))n.delete(i);return n}o(zy,"getDeepKeys");oo.getDeepKeys=zy});var sf=v(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.addInspectMethod=so.format=void 0;var Gy=require("util"),dw=ic(),Wy=Gy.inspect.custom||Symbol.for("nodejs.util.inspect.custom");so.format=Gy.format;function hw(e){e[Wy]=mw}o(hw,"addInspectMethod");so.addInspectMethod=hw;function mw(){let e={},t=this;for(let r of dw.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Wy],e}o(mw,"inspect")});var Yy=v(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.lazyJoinStacks=Mr.joinStacks=Mr.isWritableStack=Mr.isLazyStack=void 0;var gw=/\r?\n/,yw=/\bono[ @]/;function bw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(bw,"isLazyStack");Mr.isLazyStack=bw;function vw(e){return!!(!e||e.writable||typeof e.set=="function")}o(vw,"isWritableStack");Mr.isWritableStack=vw;function Zy(e,t){let r=Ky(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
3
3
|
|
|
4
|
-
`+n:r||n}o(
|
|
5
|
-
`)}return e}o(
|
|
6
|
-
`:"")+r.message),{originalError:r,props:n,message:s}}o(bw,"normalizeArgs");ao.normalizeArgs=bw});var rf=v(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.Ono=void 0;var ac=Wy(),Yy=Ky(),vw=ic(),_w=tf;cc.Ono=_w;function tf(e,t){t=Yy.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Yy.normalizeArgs(n,t),c=new e(a);return ac.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(tf,"Ono");tf.toJSON=o(function(t){return vw.toJSON.call(t)},"toJSON");tf.extend=o(function(t,r,n){return n||r instanceof Error?ac.extendError(t,r,n):r?ac.extendError(t,void 0,r):ac.extendError(t)},"extend")});var Qy=v(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.ono=void 0;var mi=rf(),Sw=Mr;uc.ono=Sw;Mr.error=new mi.Ono(Error);Mr.eval=new mi.Ono(EvalError);Mr.range=new mi.Ono(RangeError);Mr.reference=new mi.Ono(ReferenceError);Mr.syntax=new mi.Ono(SyntaxError);Mr.type=new mi.Ono(TypeError);Mr.uri=new mi.Ono(URIError);var Ow=Mr;function Mr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Ow))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 Mr.error.apply(void 0,e)}o(Mr,"ono")});var Xy=v(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var e6=require("util")});var br=v((yr,co)=>{"use strict";var Pw=yr&&yr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ew=yr&&yr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Pw(t,e,r)};Object.defineProperty(yr,"__esModule",{value:!0});yr.ono=void 0;var e0=Qy();Object.defineProperty(yr,"ono",{enumerable:!0,get:o(function(){return e0.ono},"get")});var $w=rf();Object.defineProperty(yr,"Ono",{enumerable:!0,get:o(function(){return $w.Ono},"get")});Ew(Xy(),yr);yr.default=e0.ono;typeof co=="object"&&typeof co.exports=="object"&&(co.exports=Object.assign(co.exports.default,co.exports))});var ys=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var sf=class sf{};o(sf,"_CodeOrName");var ms=sf;Se._CodeOrName=ms;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var af=class af extends ms{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(af,"Name");var gi=af;Se.Name=gi;var cf=class cf extends ms{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 gi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(cf,"_Code");var nr=cf;Se._Code=nr;Se.nil=new nr("");function t0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)of(r,t[n]),r.push(e[++n]);return new nr(r)}o(t0,"_");Se._=t0;var nf=new nr("+");function r0(e,...t){let r=[gs(e[0])],n=0;for(;n<t.length;)r.push(nf),of(r,t[n]),r.push(nf,gs(e[++n]));return ww(r),new nr(r)}o(r0,"str");Se.str=r0;function of(e,t){t instanceof nr?e.push(...t._items):t instanceof gi?e.push(t):e.push(Iw(t))}o(of,"addCodeArg");Se.addCodeArg=of;function ww(e){let t=1;for(;t<e.length-1;){if(e[t]===nf){let r=xw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(ww,"optimize");function xw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof gi||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 gi))return`"${e}${t.slice(1)}`}o(xw,"mergeExprItems");function Aw(e,t){return t.emptyStr()?e:e.emptyStr()?t:r0`${e}${t}`}o(Aw,"strConcat");Se.strConcat=Aw;function Iw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:gs(Array.isArray(e)?e.join(","):e)}o(Iw,"interpolate");function Cw(e){return new nr(gs(e))}o(Cw,"stringify");Se.stringify=Cw;function gs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(gs,"safeStringify");Se.safeStringify=gs;function Tw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new nr(`.${e}`):t0`[${e}]`}o(Tw,"getProperty");Se.getProperty=Tw;function jw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new nr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(jw,"getEsmExportName");Se.getEsmExportName=jw;function Rw(e){return new nr(e.toString())}o(Rw,"regexpCode");Se.regexpCode=Rw});var mf=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.ValueScope=Nt.ValueScopeName=Nt.Scope=Nt.varKinds=Nt.UsedValueState=void 0;var Rt=ys(),ff=class ff extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(ff,"ValueError");var uf=ff,lc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(lc||(Nt.UsedValueState=lc={}));Nt.varKinds={const:new Rt.Name("const"),let:new Rt.Name("let"),var:new Rt.Name("var")};var pf=class pf{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Rt.Name?t:this.name(t)}name(t){return new Rt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(pf,"Scope");var fc=pf;Nt.Scope=fc;var df=class df extends Rt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Rt._)`.${new Rt.Name(r)}[${n}]`}};o(df,"ValueScopeName");var pc=df;Nt.ValueScopeName=pc;var Nw=(0,Rt._)`\n`,hf=class hf extends fc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Nw:Rt.nil}}get(){return this._scope}name(t){return new pc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Rt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Rt.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,lc.Started);let p=r(l);if(p){let f=this.opts.es5?Nt.varKinds.var:Nt.varKinds.const;s=(0,Rt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Rt._)`${s}${p}${this.opts._n}`;else throw new uf(l);u.set(l,lc.Completed)})}return s}};o(hf,"ValueScope");var lf=hf;Nt.ValueScope=lf});var se=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=ys(),vr=mf(),Sn=ys();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return Sn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return Sn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return Sn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return Sn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return Sn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return Sn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return Sn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return Sn.Name},"get")});var gc=mf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return gc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return gc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return gc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return gc.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var Af=class Af{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(Af,"Node");var en=Af,If=class If extends en{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?vr.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=fo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(If,"Def");var gf=If,Cf=class Cf extends en{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 ye.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=fo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return mc(t,this.rhs)}};o(Cf,"Assign");var dc=Cf,Tf=class Tf extends dc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Tf,"AssignOp");var yf=Tf,jf=class jf extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(jf,"Label");var bf=jf,Rf=class Rf extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Rf,"Break");var vf=Rf,Nf=class Nf extends en{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Nf,"Throw");var _f=Nf,kf=class kf extends en{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=fo(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(kf,"AnyCode");var Sf=kf,Mf=class Mf extends en{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(kw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>vi(t,r.names),{})}};o(Mf,"ParentNode");var bs=Mf,qf=class qf extends bs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(qf,"BlockNode");var tn=qf,Df=class Df extends bs{};o(Df,"Root");var Of=Df,Lf=class Lf extends tn{};o(Lf,"Else");var lo=Lf;lo.kind="else";var uo=class uo extends tn{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 lo(n):n}if(r)return t===!1?r instanceof uo?r:r.nodes:this.nodes.length?this:new uo(n0(t),r instanceof uo?[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=fo(this.condition,t,r),this}get names(){let t=super.names;return mc(t,this.condition),this.else&&vi(t,this.else.names),t}};o(uo,"If");var yi=uo;yi.kind="if";var Ff=class Ff extends tn{};o(Ff,"For");var bi=Ff;bi.kind="for";var Bf=class Bf extends bi{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=fo(this.iteration,t,r),this}get names(){return vi(super.names,this.iteration.names)}};o(Bf,"ForLoop");var Pf=Bf,Vf=class Vf extends bi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?vr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=mc(super.names,this.from);return mc(t,this.to)}};o(Vf,"ForRange");var Ef=Vf,Hf=class Hf extends bi{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=fo(this.iterable,t,r),this}get names(){return vi(super.names,this.iterable.names)}};o(Hf,"ForIter");var hc=Hf,Uf=class Uf extends tn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Uf,"Func");var vs=Uf;vs.kind="func";var zf=class zf extends bs{render(t){return"return "+super.render(t)}};o(zf,"Return");var _s=zf;_s.kind="return";var Gf=class Gf extends tn{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&&vi(t,this.catch.names),this.finally&&vi(t,this.finally.names),t}};o(Gf,"Try");var $f=Gf,Zf=class Zf extends tn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Zf,"Catch");var Ss=Zf;Ss.kind="catch";var Wf=class Wf extends tn{render(t){return"finally"+super.render(t)}};o(Wf,"Finally");var Os=Wf;Os.kind="finally";var Kf=class Kf{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
7
|
-
`:""},this._extScope=t,this._scope=new vr.Scope({parent:t}),this._nodes=[new Of]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new gf(t,s,n)),s}const(t,r,n){return this._def(vr.varKinds.const,t,r,n)}let(t,r,n){return this._def(vr.varKinds.let,t,r,n)}var(t,r,n){return this._def(vr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new dc(t,r,n))}add(t,r){return this._leafNode(new yf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Sf(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new yi(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 yi(t))}else(){return this._elseNode(new lo)}endIf(){return this._endBlockNode(yi,lo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Pf(t),r)}forRange(t,r,n,i,s=this.opts.es5?vr.varKinds.var:vr.varKinds.let){let a=this._scope.toName(t);return this._for(new Ef(s,a,r,n),()=>i(a))}forOf(t,r,n,i=vr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new hc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?vr.varKinds.var:vr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new hc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(bi)}label(t){return this._leafNode(new bf(t))}break(t){return this._leafNode(new vf(t))}return(t){let r=new _s;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_s)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new $f;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Ss(s),r(s)}return n&&(this._currNode=i.finally=new Os,this.code(n)),this._endBlockNode(Ss,Os)}throw(t){return this._leafNode(new _f(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=ye.nil,n,i){return this._blockNode(new vs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(vs)}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 yi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Kf,"CodeGen");var wf=Kf;le.CodeGen=wf;function vi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(vi,"addNames");function mc(e,t){return t instanceof ye._CodeOrName?vi(e,t.names):e}o(mc,"addExprNames");function fo(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(fo,"optimizeExpr");function kw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(kw,"subtractNames");function n0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${xf(e)}`}o(n0,"not");le.not=n0;var Mw=i0(le.operators.AND);function qw(...e){return e.reduce(Mw)}o(qw,"and");le.and=qw;var Dw=i0(le.operators.OR);function Lw(...e){return e.reduce(Dw)}o(Lw,"or");le.or=Lw;function i0(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${xf(t)} ${e} ${xf(r)}`}o(i0,"mappend");function xf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(xf,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var $e=se(),Fw=ys();function Bw(e){let t={};for(let r of e)t[r]=!0;return t}o(Bw,"toHash");fe.toHash=Bw;function Vw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(a0(e,t),!c0(t,e.self.RULES.all))}o(Vw,"alwaysValidSchema");fe.alwaysValidSchema=Vw;function a0(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||f0(e,`unknown keyword: "${s}"`)}o(a0,"checkUnknownRules");fe.checkUnknownRules=a0;function c0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(c0,"schemaHasRules");fe.schemaHasRules=c0;function Hw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Hw,"schemaHasRulesButRef");fe.schemaHasRulesButRef=Hw;function Uw({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,$e._)`${r}`}return(0,$e._)`${e}${t}${(0,$e.getProperty)(n)}`}o(Uw,"schemaRefOrVal");fe.schemaRefOrVal=Uw;function zw(e){return u0(decodeURIComponent(e))}o(zw,"unescapeFragment");fe.unescapeFragment=zw;function Gw(e){return encodeURIComponent(Qf(e))}o(Gw,"escapeFragment");fe.escapeFragment=Gw;function Qf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Qf,"escapeJsonPointer");fe.escapeJsonPointer=Qf;function u0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(u0,"unescapeJsonPointer");fe.unescapeJsonPointer=u0;function Zw(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Zw,"eachItem");fe.eachItem=Zw;function o0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof $e.Name?(s instanceof $e.Name?e(i,s,a):t(i,s,a),a):s instanceof $e.Name?(t(i,a,s),s):r(s,a);return c===$e.Name&&!(u instanceof $e.Name)?n(i,u):u}}o(o0,"makeMergeEvaluated");fe.mergeEvaluated={props:o0({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,$e._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,$e._)`${r} || {}`).code((0,$e._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),Jf(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:l0}),items:o0({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,$e._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function l0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&Jf(e,r,t),r}o(l0,"evaluatedPropsToName");fe.evaluatedPropsToName=l0;function Jf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}o(Jf,"setEvaluated");fe.setEvaluated=Jf;var s0={};function Ww(e,t){return e.scopeValue("func",{ref:t,code:s0[t.code]||(s0[t.code]=new Fw._Code(t.code))})}o(Ww,"useFunc");fe.useFunc=Ww;var Yf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Yf||(fe.Type=Yf={}));function Kw(e,t,r){if(e instanceof $e.Name){let n=t===Yf.Num;return r?n?(0,$e._)`"[" + ${e} + "]"`:(0,$e._)`"['" + ${e} + "']"`:n?(0,$e._)`"/" + ${e}`:(0,$e._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,$e.getProperty)(e).toString():"/"+Qf(e)}o(Kw,"getErrorPath");fe.getErrorPath=Kw;function f0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(f0,"checkStrictMode");fe.checkStrictMode=f0});var ir=v(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var yt=se(),Yw={data:new yt.Name("data"),valCxt:new yt.Name("valCxt"),instancePath:new yt.Name("instancePath"),parentData:new yt.Name("parentData"),parentDataProperty:new yt.Name("parentDataProperty"),rootData:new yt.Name("rootData"),dynamicAnchors:new yt.Name("dynamicAnchors"),vErrors:new yt.Name("vErrors"),errors:new yt.Name("errors"),this:new yt.Name("this"),self:new yt.Name("self"),scope:new yt.Name("scope"),json:new yt.Name("json"),jsonPos:new yt.Name("jsonPos"),jsonLen:new yt.Name("jsonLen"),jsonPart:new yt.Name("jsonPart")};Xf.default=Yw});var Ps=v(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.extendErrors=bt.resetErrorsCount=bt.reportExtraError=bt.reportError=bt.keyword$DataError=bt.keywordError=void 0;var be=se(),yc=he(),$t=ir();bt.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};bt.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function Qw(e,t=bt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=h0(e,t,r);n??(a||c)?p0(s,u):d0(i,(0,be._)`[${u}]`)}o(Qw,"reportError");bt.reportError=Qw;function Jw(e,t=bt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=h0(e,t,r);p0(i,c),s||a||d0(n,$t.default.vErrors)}o(Jw,"reportExtraError");bt.reportExtraError=Jw;function Xw(e,t){e.assign($t.default.errors,t),e.if((0,be._)`${$t.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${$t.default.vErrors}.length`,t),()=>e.assign($t.default.vErrors,null)))}o(Xw,"resetErrorsCount");bt.resetErrorsCount=Xw;function ex({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,$t.default.errors,c=>{e.const(a,(0,be._)`${$t.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)($t.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(ex,"extendErrors");bt.extendErrors=ex;function p0(e,t){let r=e.const("err",t);e.if((0,be._)`${$t.default.vErrors} === null`,()=>e.assign($t.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${$t.default.vErrors}.push(${r})`),e.code((0,be._)`${$t.default.errors}++`)}o(p0,"addError");function d0(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(d0,"returnErrors");var _i={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function h0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:tx(e,t,r)}o(h0,"errorObjectCode");function tx(e,t,r={}){let{gen:n,it:i}=e,s=[rx(i,r),nx(e,r)];return ix(e,t,s),n.object(...s)}o(tx,"errorObject");function rx({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,yc.getErrorPath)(t,yc.Type.Str)}`:e;return[$t.default.instancePath,(0,be.strConcat)($t.default.instancePath,r)]}o(rx,"errorInstancePath");function nx({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,yc.getErrorPath)(r,yc.Type.Str)}`),[_i.schemaPath,i]}o(nx,"errorSchemaPath");function ix(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([_i.keyword,i],[_i.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([_i.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([_i.schema,a],[_i.parentSchema,(0,be._)`${p}${f}`],[$t.default.data,s]),l&&n.push([_i.propertyName,l])}o(ix,"extraErrorProps")});var g0=v(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.boolOrEmptySchema=po.topBoolOrEmptySchema=void 0;var ox=Ps(),sx=se(),ax=ir(),cx={message:"boolean schema is false"};function ux(e){let{gen:t,schema:r,validateName:n}=e;r===!1?m0(e,!1):typeof r=="object"&&r.$async===!0?t.return(ax.default.data):(t.assign((0,sx._)`${n}.errors`,null),t.return(!0))}o(ux,"topBoolOrEmptySchema");po.topBoolOrEmptySchema=ux;function lx(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),m0(e)):r.var(t,!0)}o(lx,"boolOrEmptySchema");po.boolOrEmptySchema=lx;function m0(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,ox.reportError)(i,cx,void 0,t)}o(m0,"falseSchemaError")});var ep=v(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.getRules=ho.isJSONType=void 0;var fx=["string","number","integer","boolean","null","object","array"],px=new Set(fx);function dx(e){return typeof e=="string"&&px.has(e)}o(dx,"isJSONType");ho.isJSONType=dx;function hx(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(hx,"getRules");ho.getRules=hx});var tp=v(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.shouldUseRule=On.shouldUseGroup=On.schemaHasRulesForType=void 0;function mx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&y0(e,n)}o(mx,"schemaHasRulesForType");On.schemaHasRulesForType=mx;function y0(e,t){return t.rules.some(r=>b0(e,r))}o(y0,"shouldUseGroup");On.shouldUseGroup=y0;function b0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(b0,"shouldUseRule");On.shouldUseRule=b0});var Es=v(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.reportTypeError=vt.checkDataTypes=vt.checkDataType=vt.coerceAndCheckDataType=vt.getJSONTypes=vt.getSchemaTypes=vt.DataType=void 0;var gx=ep(),yx=tp(),bx=Ps(),ae=se(),v0=he(),mo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(mo||(vt.DataType=mo={}));function vx(e){let t=_0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(vx,"getSchemaTypes");vt.getSchemaTypes=vx;function _0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(gx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(_0,"getJSONTypes");vt.getJSONTypes=_0;function _x(e,t){let{gen:r,data:n,opts:i}=e,s=Sx(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,yx.schemaHasRulesForType)(e,t[0]));if(a){let c=np(t,n,i.strictNumbers,mo.Wrong);r.if(c,()=>{s.length?Ox(e,t,s):ip(e)})}return a}o(_x,"coerceAndCheckDataType");vt.coerceAndCheckDataType=_x;var S0=new Set(["string","number","integer","boolean","null"]);function Sx(e,t){return t?e.filter(r=>S0.has(r)||t==="array"&&r==="array"):[]}o(Sx,"coerceToTypes");function Ox(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),c=n.let("coerced",(0,ae._)`undefined`);s.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(np(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ae._)`${c} !== undefined`);for(let l of r)(S0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),ip(e),n.endIf(),n.if((0,ae._)`${c} !== undefined`,()=>{n.assign(i,c),Px(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(c,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
|
|
4
|
+
`+n:r||n}o(Zy,"joinStacks");Mr.joinStacks=Zy;function _w(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Zy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Sw(t,e)}o(_w,"lazyJoinStacks");Mr.lazyJoinStacks=_w;function Ky(e){if(e){let t=e.split(gw),r;for(let n=0;n<t.length;n++){let i=t[n];if(yw.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(`
|
|
5
|
+
`)}return e}o(Ky,"popStack");function Sw(e,t){Object.defineProperty(e,"stack",{get:o(()=>Ky(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(Sw,"lazyPopStack")});var Xy=v(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.extendError=void 0;var Qy=sf(),oc=Yy(),Jy=ic(),Pw=["name","message","stack"];function Ow(e,t,r){let n=e;return Ew(n,t),t&&typeof t=="object"&&$w(n,t),n.toJSON=Jy.toJSON,Qy.addInspectMethod&&Qy.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(Ow,"extendError");sc.extendError=Ow;function Ew(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");oc.isLazyStack(r)?oc.lazyJoinStacks(r,e,t):oc.isWritableStack(r)&&(e.stack=oc.joinStacks(e,t))}o(Ew,"extendStack");function $w(e,t){let r=Jy.getDeepKeys(t,Pw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o($w,"mergeErrors")});var eb=v(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.normalizeArgs=ao.normalizeOptions=void 0;var ww=sf();function xw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?ww.format:typeof e.format=="function"?e.format:!1}}o(xw,"normalizeOptions");ao.normalizeOptions=xw;function Aw(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
|
|
6
|
+
`:"")+r.message),{originalError:r,props:n,message:s}}o(Aw,"normalizeArgs");ao.normalizeArgs=Aw});var cf=v(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.Ono=void 0;var ac=Xy(),tb=eb(),Cw=ic(),Iw=af;cc.Ono=Iw;function af(e,t){t=tb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=tb.normalizeArgs(n,t),c=new e(a);return ac.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(af,"Ono");af.toJSON=o(function(t){return Cw.toJSON.call(t)},"toJSON");af.extend=o(function(t,r,n){return n||r instanceof Error?ac.extendError(t,r,n):r?ac.extendError(t,void 0,r):ac.extendError(t)},"extend")});var rb=v(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.ono=void 0;var hi=cf(),jw=qr;uc.ono=jw;qr.error=new hi.Ono(Error);qr.eval=new hi.Ono(EvalError);qr.range=new hi.Ono(RangeError);qr.reference=new hi.Ono(ReferenceError);qr.syntax=new hi.Ono(SyntaxError);qr.type=new hi.Ono(TypeError);qr.uri=new hi.Ono(URIError);var Tw=qr;function qr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Tw))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 qr.error.apply(void 0,e)}o(qr,"ono")});var ib=v(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var f6=require("util")});var br=v((yr,co)=>{"use strict";var Rw=yr&&yr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Nw=yr&&yr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Rw(t,e,r)};Object.defineProperty(yr,"__esModule",{value:!0});yr.ono=void 0;var ob=rb();Object.defineProperty(yr,"ono",{enumerable:!0,get:o(function(){return ob.ono},"get")});var kw=cf();Object.defineProperty(yr,"Ono",{enumerable:!0,get:o(function(){return kw.Ono},"get")});Nw(ib(),yr);yr.default=ob.ono;typeof co=="object"&&typeof co.exports=="object"&&(co.exports=Object.assign(co.exports.default,co.exports))});var ys=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var ff=class ff{};o(ff,"_CodeOrName");var ms=ff;Se._CodeOrName=ms;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var pf=class pf extends ms{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(pf,"Name");var mi=pf;Se.Name=mi;var df=class df extends ms{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 mi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(df,"_Code");var nr=df;Se._Code=nr;Se.nil=new nr("");function sb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)lf(r,t[n]),r.push(e[++n]);return new nr(r)}o(sb,"_");Se._=sb;var uf=new nr("+");function ab(e,...t){let r=[gs(e[0])],n=0;for(;n<t.length;)r.push(uf),lf(r,t[n]),r.push(uf,gs(e[++n]));return Mw(r),new nr(r)}o(ab,"str");Se.str=ab;function lf(e,t){t instanceof nr?e.push(...t._items):t instanceof mi?e.push(t):e.push(Lw(t))}o(lf,"addCodeArg");Se.addCodeArg=lf;function Mw(e){let t=1;for(;t<e.length-1;){if(e[t]===uf){let r=qw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Mw,"optimize");function qw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof mi||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 mi))return`"${e}${t.slice(1)}`}o(qw,"mergeExprItems");function Dw(e,t){return t.emptyStr()?e:e.emptyStr()?t:ab`${e}${t}`}o(Dw,"strConcat");Se.strConcat=Dw;function Lw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:gs(Array.isArray(e)?e.join(","):e)}o(Lw,"interpolate");function Fw(e){return new nr(gs(e))}o(Fw,"stringify");Se.stringify=Fw;function gs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(gs,"safeStringify");Se.safeStringify=gs;function Vw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new nr(`.${e}`):sb`[${e}]`}o(Vw,"getProperty");Se.getProperty=Vw;function Bw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new nr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(Bw,"getEsmExportName");Se.getEsmExportName=Bw;function Hw(e){return new nr(e.toString())}o(Hw,"regexpCode");Se.regexpCode=Hw});var _f=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.ValueScope=kt.ValueScopeName=kt.Scope=kt.varKinds=kt.UsedValueState=void 0;var Nt=ys(),gf=class gf extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(gf,"ValueError");var hf=gf,lc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(lc||(kt.UsedValueState=lc={}));kt.varKinds={const:new Nt.Name("const"),let:new Nt.Name("let"),var:new Nt.Name("var")};var yf=class yf{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Nt.Name?t:this.name(t)}name(t){return new Nt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(yf,"Scope");var fc=yf;kt.Scope=fc;var bf=class bf extends Nt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Nt._)`.${new Nt.Name(r)}[${n}]`}};o(bf,"ValueScopeName");var pc=bf;kt.ValueScopeName=pc;var Uw=(0,Nt._)`\n`,vf=class vf extends fc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Uw:Nt.nil}}get(){return this._scope}name(t){return new pc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Nt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Nt.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,lc.Started);let p=r(l);if(p){let f=this.opts.es5?kt.varKinds.var:kt.varKinds.const;s=(0,Nt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Nt._)`${s}${p}${this.opts._n}`;else throw new hf(l);u.set(l,lc.Completed)})}return s}};o(vf,"ValueScope");var mf=vf;kt.ValueScope=mf});var se=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=ys(),vr=_f(),Sn=ys();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return Sn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return Sn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return Sn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return Sn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return Sn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return Sn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return Sn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return Sn.Name},"get")});var gc=_f();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return gc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return gc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return gc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return gc.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var Rf=class Rf{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(Rf,"Node");var tn=Rf,Nf=class Nf extends tn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?vr.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=fo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(Nf,"Def");var Sf=Nf,kf=class kf extends tn{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 ye.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=fo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return mc(t,this.rhs)}};o(kf,"Assign");var dc=kf,Mf=class Mf extends dc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Mf,"AssignOp");var Pf=Mf,qf=class qf extends tn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(qf,"Label");var Of=qf,Df=class Df extends tn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Df,"Break");var Ef=Df,Lf=class Lf extends tn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Lf,"Throw");var $f=Lf,Ff=class Ff extends tn{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=fo(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(Ff,"AnyCode");var wf=Ff,Vf=class Vf extends tn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(zw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>bi(t,r.names),{})}};o(Vf,"ParentNode");var bs=Vf,Bf=class Bf extends bs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Bf,"BlockNode");var rn=Bf,Hf=class Hf extends bs{};o(Hf,"Root");var xf=Hf,Uf=class Uf extends rn{};o(Uf,"Else");var lo=Uf;lo.kind="else";var uo=class uo extends rn{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 lo(n):n}if(r)return t===!1?r instanceof uo?r:r.nodes:this.nodes.length?this:new uo(cb(t),r instanceof uo?[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=fo(this.condition,t,r),this}get names(){let t=super.names;return mc(t,this.condition),this.else&&bi(t,this.else.names),t}};o(uo,"If");var gi=uo;gi.kind="if";var zf=class zf extends rn{};o(zf,"For");var yi=zf;yi.kind="for";var Gf=class Gf extends yi{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=fo(this.iteration,t,r),this}get names(){return bi(super.names,this.iteration.names)}};o(Gf,"ForLoop");var Af=Gf,Wf=class Wf extends yi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?vr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=mc(super.names,this.from);return mc(t,this.to)}};o(Wf,"ForRange");var Cf=Wf,Zf=class Zf extends yi{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=fo(this.iterable,t,r),this}get names(){return bi(super.names,this.iterable.names)}};o(Zf,"ForIter");var hc=Zf,Kf=class Kf extends rn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Kf,"Func");var vs=Kf;vs.kind="func";var Yf=class Yf extends bs{render(t){return"return "+super.render(t)}};o(Yf,"Return");var _s=Yf;_s.kind="return";var Qf=class Qf extends rn{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&&bi(t,this.catch.names),this.finally&&bi(t,this.finally.names),t}};o(Qf,"Try");var If=Qf,Jf=class Jf extends rn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Jf,"Catch");var Ss=Jf;Ss.kind="catch";var Xf=class Xf extends rn{render(t){return"finally"+super.render(t)}};o(Xf,"Finally");var Ps=Xf;Ps.kind="finally";var ep=class ep{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
7
|
+
`:""},this._extScope=t,this._scope=new vr.Scope({parent:t}),this._nodes=[new xf]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Sf(t,s,n)),s}const(t,r,n){return this._def(vr.varKinds.const,t,r,n)}let(t,r,n){return this._def(vr.varKinds.let,t,r,n)}var(t,r,n){return this._def(vr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new dc(t,r,n))}add(t,r){return this._leafNode(new Pf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new wf(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new gi(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 gi(t))}else(){return this._elseNode(new lo)}endIf(){return this._endBlockNode(gi,lo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Af(t),r)}forRange(t,r,n,i,s=this.opts.es5?vr.varKinds.var:vr.varKinds.let){let a=this._scope.toName(t);return this._for(new Cf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=vr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new hc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?vr.varKinds.var:vr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new hc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(yi)}label(t){return this._leafNode(new Of(t))}break(t){return this._leafNode(new Ef(t))}return(t){let r=new _s;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_s)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new If;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Ss(s),r(s)}return n&&(this._currNode=i.finally=new Ps,this.code(n)),this._endBlockNode(Ss,Ps)}throw(t){return this._leafNode(new $f(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=ye.nil,n,i){return this._blockNode(new vs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(vs)}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 gi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(ep,"CodeGen");var jf=ep;le.CodeGen=jf;function bi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(bi,"addNames");function mc(e,t){return t instanceof ye._CodeOrName?bi(e,t.names):e}o(mc,"addExprNames");function fo(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(fo,"optimizeExpr");function zw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(zw,"subtractNames");function cb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Tf(e)}`}o(cb,"not");le.not=cb;var Gw=ub(le.operators.AND);function Ww(...e){return e.reduce(Gw)}o(Ww,"and");le.and=Ww;var Zw=ub(le.operators.OR);function Kw(...e){return e.reduce(Zw)}o(Kw,"or");le.or=Kw;function ub(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Tf(t)} ${e} ${Tf(r)}`}o(ub,"mappend");function Tf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Tf,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var $e=se(),Yw=ys();function Qw(e){let t={};for(let r of e)t[r]=!0;return t}o(Qw,"toHash");fe.toHash=Qw;function Jw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(pb(e,t),!db(t,e.self.RULES.all))}o(Jw,"alwaysValidSchema");fe.alwaysValidSchema=Jw;function pb(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||gb(e,`unknown keyword: "${s}"`)}o(pb,"checkUnknownRules");fe.checkUnknownRules=pb;function db(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(db,"schemaHasRules");fe.schemaHasRules=db;function Xw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Xw,"schemaHasRulesButRef");fe.schemaHasRulesButRef=Xw;function ex({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,$e._)`${r}`}return(0,$e._)`${e}${t}${(0,$e.getProperty)(n)}`}o(ex,"schemaRefOrVal");fe.schemaRefOrVal=ex;function tx(e){return hb(decodeURIComponent(e))}o(tx,"unescapeFragment");fe.unescapeFragment=tx;function rx(e){return encodeURIComponent(rp(e))}o(rx,"escapeFragment");fe.escapeFragment=rx;function rp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(rp,"escapeJsonPointer");fe.escapeJsonPointer=rp;function hb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(hb,"unescapeJsonPointer");fe.unescapeJsonPointer=hb;function nx(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(nx,"eachItem");fe.eachItem=nx;function lb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof $e.Name?(s instanceof $e.Name?e(i,s,a):t(i,s,a),a):s instanceof $e.Name?(t(i,a,s),s):r(s,a);return c===$e.Name&&!(u instanceof $e.Name)?n(i,u):u}}o(lb,"makeMergeEvaluated");fe.mergeEvaluated={props:lb({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,$e._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,$e._)`${r} || {}`).code((0,$e._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),np(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:mb}),items:lb({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,$e._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function mb(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&np(e,r,t),r}o(mb,"evaluatedPropsToName");fe.evaluatedPropsToName=mb;function np(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}o(np,"setEvaluated");fe.setEvaluated=np;var fb={};function ix(e,t){return e.scopeValue("func",{ref:t,code:fb[t.code]||(fb[t.code]=new Yw._Code(t.code))})}o(ix,"useFunc");fe.useFunc=ix;var tp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(tp||(fe.Type=tp={}));function ox(e,t,r){if(e instanceof $e.Name){let n=t===tp.Num;return r?n?(0,$e._)`"[" + ${e} + "]"`:(0,$e._)`"['" + ${e} + "']"`:n?(0,$e._)`"/" + ${e}`:(0,$e._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,$e.getProperty)(e).toString():"/"+rp(e)}o(ox,"getErrorPath");fe.getErrorPath=ox;function gb(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(gb,"checkStrictMode");fe.checkStrictMode=gb});var ir=v(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var yt=se(),sx={data:new yt.Name("data"),valCxt:new yt.Name("valCxt"),instancePath:new yt.Name("instancePath"),parentData:new yt.Name("parentData"),parentDataProperty:new yt.Name("parentDataProperty"),rootData:new yt.Name("rootData"),dynamicAnchors:new yt.Name("dynamicAnchors"),vErrors:new yt.Name("vErrors"),errors:new yt.Name("errors"),this:new yt.Name("this"),self:new yt.Name("self"),scope:new yt.Name("scope"),json:new yt.Name("json"),jsonPos:new yt.Name("jsonPos"),jsonLen:new yt.Name("jsonLen"),jsonPart:new yt.Name("jsonPart")};ip.default=sx});var Os=v(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.extendErrors=bt.resetErrorsCount=bt.reportExtraError=bt.reportError=bt.keyword$DataError=bt.keywordError=void 0;var be=se(),yc=he(),wt=ir();bt.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};bt.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function ax(e,t=bt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=vb(e,t,r);n??(a||c)?yb(s,u):bb(i,(0,be._)`[${u}]`)}o(ax,"reportError");bt.reportError=ax;function cx(e,t=bt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=vb(e,t,r);yb(i,c),s||a||bb(n,wt.default.vErrors)}o(cx,"reportExtraError");bt.reportExtraError=cx;function ux(e,t){e.assign(wt.default.errors,t),e.if((0,be._)`${wt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${wt.default.vErrors}.length`,t),()=>e.assign(wt.default.vErrors,null)))}o(ux,"resetErrorsCount");bt.resetErrorsCount=ux;function lx({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,wt.default.errors,c=>{e.const(a,(0,be._)`${wt.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(wt.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(lx,"extendErrors");bt.extendErrors=lx;function yb(e,t){let r=e.const("err",t);e.if((0,be._)`${wt.default.vErrors} === null`,()=>e.assign(wt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${wt.default.vErrors}.push(${r})`),e.code((0,be._)`${wt.default.errors}++`)}o(yb,"addError");function bb(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(bb,"returnErrors");var vi={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function vb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:fx(e,t,r)}o(vb,"errorObjectCode");function fx(e,t,r={}){let{gen:n,it:i}=e,s=[px(i,r),dx(e,r)];return hx(e,t,s),n.object(...s)}o(fx,"errorObject");function px({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,yc.getErrorPath)(t,yc.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}o(px,"errorInstancePath");function dx({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,yc.getErrorPath)(r,yc.Type.Str)}`),[vi.schemaPath,i]}o(dx,"errorSchemaPath");function hx(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([vi.keyword,i],[vi.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([vi.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([vi.schema,a],[vi.parentSchema,(0,be._)`${p}${f}`],[wt.default.data,s]),l&&n.push([vi.propertyName,l])}o(hx,"extraErrorProps")});var Sb=v(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.boolOrEmptySchema=po.topBoolOrEmptySchema=void 0;var mx=Os(),gx=se(),yx=ir(),bx={message:"boolean schema is false"};function vx(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_b(e,!1):typeof r=="object"&&r.$async===!0?t.return(yx.default.data):(t.assign((0,gx._)`${n}.errors`,null),t.return(!0))}o(vx,"topBoolOrEmptySchema");po.topBoolOrEmptySchema=vx;function _x(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_b(e)):r.var(t,!0)}o(_x,"boolOrEmptySchema");po.boolOrEmptySchema=_x;function _b(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,mx.reportError)(i,bx,void 0,t)}o(_b,"falseSchemaError")});var op=v(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.getRules=ho.isJSONType=void 0;var Sx=["string","number","integer","boolean","null","object","array"],Px=new Set(Sx);function Ox(e){return typeof e=="string"&&Px.has(e)}o(Ox,"isJSONType");ho.isJSONType=Ox;function Ex(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(Ex,"getRules");ho.getRules=Ex});var sp=v(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.shouldUseRule=Pn.shouldUseGroup=Pn.schemaHasRulesForType=void 0;function $x({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Pb(e,n)}o($x,"schemaHasRulesForType");Pn.schemaHasRulesForType=$x;function Pb(e,t){return t.rules.some(r=>Ob(e,r))}o(Pb,"shouldUseGroup");Pn.shouldUseGroup=Pb;function Ob(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(Ob,"shouldUseRule");Pn.shouldUseRule=Ob});var Es=v(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.reportTypeError=vt.checkDataTypes=vt.checkDataType=vt.coerceAndCheckDataType=vt.getJSONTypes=vt.getSchemaTypes=vt.DataType=void 0;var wx=op(),xx=sp(),Ax=Os(),ae=se(),Eb=he(),mo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(mo||(vt.DataType=mo={}));function Cx(e){let t=$b(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(Cx,"getSchemaTypes");vt.getSchemaTypes=Cx;function $b(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(wx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o($b,"getJSONTypes");vt.getJSONTypes=$b;function Ix(e,t){let{gen:r,data:n,opts:i}=e,s=jx(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,xx.schemaHasRulesForType)(e,t[0]));if(a){let c=cp(t,n,i.strictNumbers,mo.Wrong);r.if(c,()=>{s.length?Tx(e,t,s):up(e)})}return a}o(Ix,"coerceAndCheckDataType");vt.coerceAndCheckDataType=Ix;var wb=new Set(["string","number","integer","boolean","null"]);function jx(e,t){return t?e.filter(r=>wb.has(r)||t==="array"&&r==="array"):[]}o(jx,"coerceToTypes");function Tx(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),c=n.let("coerced",(0,ae._)`undefined`);s.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(cp(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ae._)`${c} !== undefined`);for(let l of r)(wb.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),up(e),n.endIf(),n.if((0,ae._)`${c} !== undefined`,()=>{n.assign(i,c),Rx(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(c,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
|
|
8
8
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ae._)`+${i}`);return;case"integer":n.elseIf((0,ae._)`${a} === "boolean" || ${i} === null
|
|
9
9
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ae._)`+${i}`);return;case"boolean":n.elseIf((0,ae._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ae._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ae._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ae._)`${a} === "string" || ${a} === "number"
|
|
10
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,ae._)`[${i}]`)}}o(u,"coerceSpecificType")}o(Ox,"coerceData");function Px({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}o(Px,"assignParentData");function rp(e,t,r,n=mo.Correct){let i=n===mo.Correct?ae.operators.EQ:ae.operators.NEQ,s;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":s=(0,ae._)`Array.isArray(${t})`;break;case"object":s=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===mo.Correct?s:(0,ae.not)(s);function a(c=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,c,r?(0,ae._)`isFinite(${t})`:ae.nil)}}o(rp,"checkDataType");vt.checkDataType=rp;function np(e,t,r,n){if(e.length===1)return rp(e[0],t,r,n);let i,s=(0,v0.toHash)(e);if(s.array&&s.object){let a=(0,ae._)`typeof ${t} != "object"`;i=s.null?a:(0,ae._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ae.nil;s.number&&delete s.integer;for(let a in s)i=(0,ae.and)(i,rp(a,t,r,n));return i}o(np,"checkDataTypes");vt.checkDataTypes=np;var Ex={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function ip(e){let t=$x(e);(0,bx.reportError)(t,Ex)}o(ip,"reportTypeError");vt.reportTypeError=ip;function $x(e){let{gen:t,data:r,schema:n}=e,i=(0,v0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o($x,"getTypeErrorContext")});var P0=v(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.assignDefaults=void 0;var go=se(),wx=he();function xx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)O0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>O0(e,s,i.default))}o(xx,"assignDefaults");bc.assignDefaults=xx;function O0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,go._)`${s}${(0,go.getProperty)(t)}`;if(i){(0,wx.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,go._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,go._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,go._)`${c} = ${(0,go.stringify)(r)}`)}o(O0,"assignDefault")});var or=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var ke=se(),op=he(),Pn=ir(),Ax=he();function Ix(e,t){let{gen:r,data:n,it:i}=e;r.if(ap(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ke._)`${t}`},!0),e.error()})}o(Ix,"checkReportMissingProp");Ee.checkReportMissingProp=Ix;function Cx({gen:e,data:t,it:{opts:r}},n,i){return(0,ke.or)(...n.map(s=>(0,ke.and)(ap(e,t,s,r.ownProperties),(0,ke._)`${i} = ${s}`)))}o(Cx,"checkMissingProp");Ee.checkMissingProp=Cx;function Tx(e,t){e.setParams({missingProperty:t},!0),e.error()}o(Tx,"reportMissingProp");Ee.reportMissingProp=Tx;function E0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ke._)`Object.prototype.hasOwnProperty`})}o(E0,"hasPropFunc");Ee.hasPropFunc=E0;function sp(e,t,r){return(0,ke._)`${E0(e)}.call(${t}, ${r})`}o(sp,"isOwnProperty");Ee.isOwnProperty=sp;function jx(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} !== undefined`;return n?(0,ke._)`${i} && ${sp(e,t,r)}`:i}o(jx,"propertyInData");Ee.propertyInData=jx;function ap(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} === undefined`;return n?(0,ke.or)(i,(0,ke.not)(sp(e,t,r))):i}o(ap,"noPropertyInData");Ee.noPropertyInData=ap;function $0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o($0,"allSchemaProperties");Ee.allSchemaProperties=$0;function Rx(e,t){return $0(t).filter(r=>!(0,op.alwaysValidSchema)(e,t[r]))}o(Rx,"schemaProperties");Ee.schemaProperties=Rx;function Nx({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,ke._)`${e}, ${t}, ${n}${i}`:t,f=[[Pn.default.instancePath,(0,ke.strConcat)(Pn.default.instancePath,s)],[Pn.default.parentData,a.parentData],[Pn.default.parentDataProperty,a.parentDataProperty],[Pn.default.rootData,Pn.default.rootData]];a.opts.dynamicRef&&f.push([Pn.default.dynamicAnchors,Pn.default.dynamicAnchors]);let d=(0,ke._)`${p}, ${r.object(...f)}`;return u!==ke.nil?(0,ke._)`${c}.call(${u}, ${d})`:(0,ke._)`${c}(${d})`}o(Nx,"callValidateCode");Ee.callValidateCode=Nx;var kx=(0,ke._)`new RegExp`;function Mx({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ke._)`${i.code==="new RegExp"?kx:(0,Ax.useFunc)(e,i)}(${r}, ${n})`})}o(Mx,"usePattern");Ee.usePattern=Mx;function qx(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,ke._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:op.Type.Num},s),t.if((0,ke.not)(s),c)})}o(a,"validateItems")}o(qx,"validateArray");Ee.validateArray=qx;function Dx(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,op.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,ke._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,ke.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(Dx,"validateUnion");Ee.validateUnion=Dx});var A0=v(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.validateKeywordUsage=qr.validSchemaType=qr.funcKeywordCode=qr.macroKeywordCode=void 0;var wt=se(),Si=ir(),Lx=or(),Fx=Ps();function Bx(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=x0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:wt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(Bx,"macroKeywordCode");qr.macroKeywordCode=Bx;function Vx(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;Ux(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=x0(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)b(),t.modifying&&w0(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&w0(e),g(()=>Hx(e,$))}}o(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>b((0,wt._)`await `),w=>n.assign(f,!1).if((0,wt._)`${w} instanceof ${u.ValidationError}`,()=>n.assign($,(0,wt._)`${w}.errors`),()=>n.throw(w))),$}o(h,"validateAsync");function y(){let $=(0,wt._)`${p}.errors`;return n.assign($,null),b(wt.nil),$}o(y,"validateSync");function b($=t.async?(0,wt._)`await `:wt.nil){let w=u.opts.passContext?Si.default.this:Si.default.self,T=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,wt._)`${$}${(0,Lx.callValidateCode)(e,p,w,T)}`,t.modifying)}o(b,"assignValid");function g($){var w;n.if((0,wt.not)((w=t.valid)!==null&&w!==void 0?w:f),$)}o(g,"reportErrs")}o(Vx,"funcKeywordCode");qr.funcKeywordCode=Vx;function w0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,wt._)`${n.parentData}[${n.parentDataProperty}]`))}o(w0,"modifyData");function Hx(e,t){let{gen:r}=e;r.if((0,wt._)`Array.isArray(${t})`,()=>{r.assign(Si.default.vErrors,(0,wt._)`${Si.default.vErrors} === null ? ${t} : ${Si.default.vErrors}.concat(${t})`).assign(Si.default.errors,(0,wt._)`${Si.default.vErrors}.length`),(0,Fx.extendErrors)(e)},()=>e.error())}o(Hx,"addErrs");function Ux({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(Ux,"checkAsyncKeyword");function x0(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,wt.stringify)(r)})}o(x0,"useKeyword");function zx(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(zx,"validSchemaType");qr.validSchemaType=zx;function Gx({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(Gx,"validateKeywordUsage");qr.validateKeywordUsage=Gx});var C0=v(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.extendSubschemaMode=En.extendSubschemaData=En.getSubschema=void 0;var Dr=se(),I0=he();function Zx(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Dr._)`${e.schemaPath}${(0,Dr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Dr._)`${e.schemaPath}${(0,Dr.getProperty)(t)}${(0,Dr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,I0.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(Zx,"getSubschema");En.getSubschema=Zx;function Wx(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Dr._)`${t.data}${(0,Dr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Dr.str)`${l}${(0,I0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Dr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Dr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(Wx,"extendSubschemaData");En.extendSubschemaData=Wx;function Kx(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(Kx,"extendSubschemaMode");En.extendSubschemaMode=Kx});var cp=v((C6,T0)=>{"use strict";T0.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var R0=v((j6,j0)=>{"use strict";var $n=j0.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(){};vc(t,n,i,e,"",e)};$n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$n.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 vc(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in $n.arrayKeywords)for(var d=0;d<f.length;d++)vc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in $n.propsKeywords){if(f&&typeof f=="object")for(var h in f)vc(e,t,r,f[h],i+"/"+p+"/"+Yx(h),s,i,p,n,h)}else(p in $n.keywords||e.allKeys&&!(p in $n.skipKeywords))&&vc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(vc,"_traverse");function Yx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Yx,"escapeJsonPtr")});var $s=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getSchemaRefs=kt.resolveUrl=kt.normalizeId=kt._getFullPath=kt.getFullPath=kt.inlineRef=void 0;var Qx=he(),Jx=cp(),Xx=R0(),eA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function tA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!up(e):t?N0(e)<=t:!1}o(tA,"inlineRef");kt.inlineRef=tA;var rA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function up(e){for(let t in e){if(rA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(up)||typeof r=="object"&&up(r))return!0}return!1}o(up,"hasRef");function N0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!eA.has(r)&&(typeof e[r]=="object"&&(0,Qx.eachItem)(e[r],n=>t+=N0(n)),t===1/0))return 1/0}return t}o(N0,"countKeys");function k0(e,t="",r){r!==!1&&(t=yo(t));let n=e.parse(t);return M0(e,n)}o(k0,"getFullPath");kt.getFullPath=k0;function M0(e,t){return e.serialize(t).split("#")[0]+"#"}o(M0,"_getFullPath");kt._getFullPath=M0;var nA=/#\/?$/;function yo(e){return e?e.replace(nA,""):""}o(yo,"normalizeId");kt.normalizeId=yo;function iA(e,t,r){return r=yo(r),e.resolve(t,r)}o(iA,"resolveUrl");kt.resolveUrl=iA;var oA=/^[a-z_][-a-z0-9._]*$/i;function sA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=yo(e[r]||t),s={"":i},a=k0(n,i,!1),c={},u=new Set;return Xx(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[d]=g;function $(T){let I=this.opts.uriResolver.resolve;if(T=yo(g?I(g,T):T),u.has(T))throw p(T);u.add(T);let C=this.refs[T];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?l(f,C.schema,T):T!==yo(b)&&(T[0]==="#"?(l(f,c[T],T),c[T]=f):this.refs[T]=b),T}o($,"addRef");function w(T){if(typeof T=="string"){if(!oA.test(T))throw new Error(`invalid anchor "${T}"`);$.call(this,`#${T}`)}}o(w,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!Jx(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(sA,"getSchemaRefs");kt.getSchemaRefs=sA});var As=v(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getData=wn.KeywordCxt=wn.validateFunctionCode=void 0;var B0=g0(),q0=Es(),fp=tp(),_c=Es(),aA=P0(),xs=A0(),lp=C0(),W=se(),ie=ir(),cA=$s(),rn=he(),ws=Ps();function uA(e){if(U0(e)&&(z0(e),H0(e))){pA(e);return}V0(e,()=>(0,B0.topBoolOrEmptySchema)(e))}o(uA,"validateFunctionCode");wn.validateFunctionCode=uA;function V0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,W._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${D0(r,i)}`),fA(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${lA(i)}`,n.$async,()=>e.code(D0(r,i)).code(s))}o(V0,"validateFunction");function lA(e){return(0,W._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,W._)`, ${ie.default.dynamicAnchors}={}`:W.nil}}={}`}o(lA,"destructureValCxt");function fA(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,W._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,W._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,W._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,W._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,W._)`""`),e.var(ie.default.parentData,(0,W._)`undefined`),e.var(ie.default.parentDataProperty,(0,W._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`{}`)})}o(fA,"destructureValCxtES5");function pA(e){let{schema:t,opts:r,gen:n}=e;V0(e,()=>{r.$comment&&t.$comment&&Z0(e),yA(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&dA(e),G0(e),_A(e)})}o(pA,"topSchemaObjCode");function dA(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}o(dA,"resetEvaluated");function D0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}o(D0,"funcSourceUrl");function hA(e,t){if(U0(e)&&(z0(e),H0(e))){mA(e,t);return}(0,B0.boolOrEmptySchema)(e,t)}o(hA,"subschemaCode");function H0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(H0,"schemaCxtHasRules");function U0(e){return typeof e.schema!="boolean"}o(U0,"isSchemaObj");function mA(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Z0(e),bA(e),vA(e);let s=n.const("_errs",ie.default.errors);G0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(mA,"subSchemaObjCode");function z0(e){(0,rn.checkUnknownRules)(e),gA(e)}o(z0,"checkKeywords");function G0(e,t){if(e.opts.jtd)return L0(e,[],!1,t);let r=(0,q0.getSchemaTypes)(e.schema),n=(0,q0.coerceAndCheckDataType)(e,r);L0(e,r,!n,t)}o(G0,"typeAndKeywords");function gA(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,rn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(gA,"checkRefsAndKeywords");function yA(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,rn.checkStrictMode)(e,"default is ignored in the schema root")}o(yA,"checkNoDefault");function bA(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,cA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(bA,"updateContext");function vA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(vA,"checkAsyncSchema");function Z0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,W._)`${ie.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,W.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${ie.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(Z0,"commentKeyword");function _A(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,W._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,W._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,ie.default.vErrors),s.unevaluated&&SA(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(_A,"returnResults");function SA({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}o(SA,"assignEvaluated");function L0(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,rn.schemaHasRulesButRef)(s,p))){i.block(()=>K0(e,"$ref",p.all.$ref.definition));return}u.jtd||OA(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,fp.shouldUseGroup)(s,d)&&(d.type?(i.if((0,_c.checkDataType)(d.type,a,u.strictNumbers)),F0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,_c.reportTypeError)(e)),i.endIf()):F0(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(L0,"schemaKeywords");function F0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,aA.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,fp.shouldUseRule)(n,s)&&K0(e,s.keyword,s.definition,t.type)})}o(F0,"iterateKeywords");function OA(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(PA(e,t),e.opts.allowUnionTypes||EA(e,t),$A(e,e.dataTypes))}o(OA,"checkStrictTypes");function PA(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{W0(e.dataTypes,r)||pp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),xA(e,t)}}o(PA,"checkContextTypes");function EA(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&pp(e,"use allowUnionTypes to allow union type keyword")}o(EA,"checkMultipleTypes");function $A(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,fp.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>wA(t,a))&&pp(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o($A,"checkKeywordTypes");function wA(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(wA,"hasApplicableType");function W0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(W0,"includesType");function xA(e,t){let r=[];for(let n of e.dataTypes)W0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(xA,"narrowSchemaTypes");function pp(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,rn.checkStrictMode)(e,t,e.opts.strictTypes)}o(pp,"strictTypesError");var dp=class dp{constructor(t,r,n){if((0,xs.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,rn.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",Y0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,xs.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",ie.default.errors))}result(t,r,n){this.failResult((0,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?ws.reportExtraError:ws.reportError)(this,this.def.error,r)}$dataError(){(0,ws.reportError)(this,this.def.$dataError||ws.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ws.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,W.or)((0,W._)`${i} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,W.or)(a(),c());function a(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,W._)`${(0,_c.checkDataTypes)(u,r,s.opts.strictNumbers,_c.DataType.Wrong)}`}return W.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){let n=(0,lp.getSubschema)(this.it,t);(0,lp.extendSubschemaData)(n,this.it,t),(0,lp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return hA(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=rn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=rn.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,W.Name)),!0}};o(dp,"KeywordCxt");var Sc=dp;wn.KeywordCxt=Sc;function K0(e,t,r,n){let i=new Sc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,xs.funcKeywordCode)(i,r):"macro"in r?(0,xs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,xs.funcKeywordCode)(i,r)}o(K0,"keywordCode");var AA=/^\/(?:[^~]|~0|~1)*$/,IA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Y0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!AA.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=IA.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,W._)`${s}${(0,W.getProperty)((0,rn.unescapeJsonPointer)(l))}`,a=(0,W._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(Y0,"getData");wn.getData=Y0});var Oc=v(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var gp=class gp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(gp,"ValidationError");var hp=gp;mp.default=hp});var Is=v(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var yp=$s(),_p=class _p extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,yp.resolveUrl)(t,r,n),this.missingSchema=(0,yp.normalizeId)((0,yp.getFullPath)(t,this.missingRef))}};o(_p,"MissingRefError");var bp=_p;vp.default=bp});var Cs=v(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.resolveSchema=sr.getCompilingSchema=sr.resolveRef=sr.compileSchema=sr.SchemaEnv=void 0;var _r=se(),CA=Oc(),Oi=ir(),Sr=$s(),Q0=he(),TA=As(),Pp=class Pp{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,Sr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(Pp,"SchemaEnv");var bo=Pp;sr.SchemaEnv=bo;function Op(e){let t=J0.call(this,e);if(t)return t;let r=(0,Sr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new _r.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:CA.default,code:(0,_r._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Oi.default.data,parentData:Oi.default.parentData,parentDataProperty:Oi.default.parentDataProperty,dataNames:[Oi.default.data],dataPathArr:[_r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_r.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_r._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,TA.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Oi.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Oi.default.self}`,`${Oi.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof _r.Name?void 0:y,items:b instanceof _r.Name?void 0:b,dynamicProps:y instanceof _r.Name,dynamicItems:b instanceof _r.Name},h.source&&(h.source.evaluated=(0,_r.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(Op,"compileSchema");sr.compileSchema=Op;function jA(e,t,r){var n;r=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=kA.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new bo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=RA.call(this,s)}o(jA,"resolveRef");sr.resolveRef=jA;function RA(e){return(0,Sr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Op.call(this,e)}o(RA,"inlineOrCompile");function J0(e){for(let t of this._compilations)if(NA(t,e))return t}o(J0,"getCompilingSchema");sr.getCompilingSchema=J0;function NA(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(NA,"sameSchemaEnv");function kA(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Pc.call(this,e,t)}o(kA,"resolve");function Pc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Sr._getFullPath)(this.opts.uriResolver,r),i=(0,Sr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Sp.call(this,r,e);let s=(0,Sr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Pc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Sp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Op.call(this,a),s===(0,Sr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Sr.resolveUrl)(this.opts.uriResolver,i,l)),new bo({schema:c,schemaId:u,root:e,baseId:i})}return Sp.call(this,r,a)}}o(Pc,"resolveSchema");sr.resolveSchema=Pc;var MA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Sp(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,Q0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!MA.has(c)&&l&&(t=(0,Sr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Q0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Pc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new bo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Sp,"getJsonPointer")});var X0=v((U6,qA)=>{qA.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 tb=v((z6,eb)=>{"use strict";var DA={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};eb.exports={HEX:DA}});var ub=v((G6,cb)=>{"use strict";var{HEX:LA}=tb();function ob(e){if(ab(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:BA(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(ob,"normalizeIPv4");function Ep(e,t=!1){let r="",n=!0;for(let i of e){if(LA[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Ep,"stringArrayToHexStripped");function FA(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=Ep(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(Ep(i))),r.address=n.join(""),r}o(FA,"getIPV6");function sb(e,t={}){if(ab(e,":")<2)return{host:e,isIPV6:!1};let r=FA(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(sb,"normalizeIPv6");function BA(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(BA,"stripLeadingZeros");function ab(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(ab,"findToken");var rb=/^\.\.?\//u,nb=/^\/\.(?:\/|$)/u,ib=/^\/\.\.(?:\/|$)/u,VA=/^\/?(?:.|\n)*?(?=\/|$)/u;function HA(e){let t=[];for(;e.length;)if(e.match(rb))e=e.replace(rb,"");else if(e.match(nb))e=e.replace(nb,"/");else if(e.match(ib))e=e.replace(ib,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(VA);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(HA,"removeDotSegments");function UA(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(UA,"normalizeComponentEncoding");function zA(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=ob(n);if(i.isIPV4)n=i.host;else{let s=sb(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(zA,"recomposeAuthority");cb.exports={recomposeAuthority:zA,normalizeComponentEncoding:UA,removeDotSegments:HA,normalizeIPv4:ob,normalizeIPv6:sb,stringArrayToHexStripped:Ep}});var mb=v((W6,hb)=>{"use strict";var GA=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,ZA=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function lb(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(lb,"isSecure");function fb(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(fb,"httpParse");function pb(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(pb,"httpSerialize");function WA(e){return e.secure=lb(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(WA,"wsParse");function KA(e){if((e.port===(lb(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(KA,"wsSerialize");function YA(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(ZA);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=$p[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(YA,"urnParse");function QA(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=$p[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(QA,"urnSerialize");function JA(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!GA.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(JA,"urnuuidParse");function XA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(XA,"urnuuidSerialize");var db={scheme:"http",domainHost:!0,parse:fb,serialize:pb},eI={scheme:"https",domainHost:db.domainHost,parse:fb,serialize:pb},Ec={scheme:"ws",domainHost:!0,parse:WA,serialize:KA},tI={scheme:"wss",domainHost:Ec.domainHost,parse:Ec.parse,serialize:Ec.serialize},rI={scheme:"urn",parse:YA,serialize:QA,skipNormalize:!0},nI={scheme:"urn:uuid",parse:JA,serialize:XA,skipNormalize:!0},$p={http:db,https:eI,ws:Ec,wss:tI,urn:rI,"urn:uuid":nI};hb.exports=$p});var yb=v((Y6,wc)=>{"use strict";var{normalizeIPv6:iI,normalizeIPv4:oI,removeDotSegments:Ts,recomposeAuthority:sI,normalizeComponentEncoding:$c}=ub(),wp=mb();function aI(e,t){return typeof e=="string"?e=Lr(nn(e,t),t):typeof e=="object"&&(e=nn(Lr(e,t),t)),e}o(aI,"normalize");function cI(e,t,r){let n=Object.assign({scheme:"null"},r),i=gb(nn(e,n),nn(t,n),n,!0);return Lr(i,{...n,skipEscape:!0})}o(cI,"resolve");function gb(e,t,r,n){let i={};return n||(e=nn(Lr(e,r),r),t=nn(Lr(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=Ts(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=Ts(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Ts(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=Ts(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(gb,"resolveComponents");function uI(e,t,r){return typeof e=="string"?(e=unescape(e),e=Lr($c(nn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Lr($c(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Lr($c(nn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Lr($c(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(uI,"equal");function Lr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=wp[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=sI(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Ts(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(Lr,"serialize");var lI=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function fI(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||lI[t])return!0;return!1}o(fI,"nonSimpleDomain");var pI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function nn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(pI);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=oI(n.host);if(u.isIPV4===!1){let l=iI(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=wp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&fI(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(nn,"parse");var xp={SCHEMES:wp,normalize:aI,resolve:cI,resolveComponents:gb,equal:uI,serialize:Lr,parse:nn};wc.exports=xp;wc.exports.default=xp;wc.exports.fastUri=xp});var vb=v(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var bb=yb();bb.code='require("ajv/dist/runtime/uri").default';Ap.default=bb});var _o=v(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.CodeGen=pt.Name=pt.nil=pt.stringify=pt.str=pt._=pt.KeywordCxt=void 0;var dI=As();Object.defineProperty(pt,"KeywordCxt",{enumerable:!0,get:o(function(){return dI.KeywordCxt},"get")});var vo=se();Object.defineProperty(pt,"_",{enumerable:!0,get:o(function(){return vo._},"get")});Object.defineProperty(pt,"str",{enumerable:!0,get:o(function(){return vo.str},"get")});Object.defineProperty(pt,"stringify",{enumerable:!0,get:o(function(){return vo.stringify},"get")});Object.defineProperty(pt,"nil",{enumerable:!0,get:o(function(){return vo.nil},"get")});Object.defineProperty(pt,"Name",{enumerable:!0,get:o(function(){return vo.Name},"get")});Object.defineProperty(pt,"CodeGen",{enumerable:!0,get:o(function(){return vo.CodeGen},"get")});var hI=Oc(),Eb=Is(),mI=ep(),js=Cs(),gI=se(),Rs=$s(),xc=Es(),Cp=he(),_b=X0(),yI=vb(),$b=o((e,t)=>new RegExp(e,t),"defaultRegExp");$b.code="new RegExp";var bI=["removeAdditional","useDefaults","coerceTypes"],vI=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_I={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."},SI={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Sb=200;function OI(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,$,w,T,I,C,ce,re,we,Oe;let J=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,j=k===!0||k===void 0?1:k||0,M=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:$b,Y=(i=e.uriResolver)!==null&&i!==void 0?i:yI.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:J)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:J)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:J)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:J)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:J)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:j,regExp:M}:{optimize:j,regExp:M},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:Sb,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Sb,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(T=e.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(I=e.schemaId)!==null&&I!==void 0?I:"$id",addUsedSchema:(C=e.addUsedSchema)!==null&&C!==void 0?C:!0,validateSchema:(ce=e.validateSchema)!==null&&ce!==void 0?ce:!0,validateFormats:(re=e.validateFormats)!==null&&re!==void 0?re:!0,unicodeRegExp:(we=e.unicodeRegExp)!==null&&we!==void 0?we:!0,int32range:(Oe=e.int32range)!==null&&Oe!==void 0?Oe:!0,uriResolver:Y}}o(OI,"requiredOptions");var Tp=class Tp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...OI(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new gI.ValueScope({scope:{},prefixes:vI,es5:r,lines:n}),this.logger=AI(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,mI.getRules)(),Ob.call(this,_I,t,"NOT SUPPORTED"),Ob.call(this,SI,t,"DEPRECATED","warn"),this._metaOpts=wI.call(this),t.formats&&EI.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&$I.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),PI.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=_b;n==="id"&&(i={..._b},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Eb.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Rs.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Pb.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new js.SchemaEnv({schema:{},schemaId:n});if(r=js.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=Pb.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,Rs.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(CI.call(this,n,r),!r)return(0,Cp.eachItem)(n,s=>Ip.call(this,s)),this;jI.call(this,r);let i={...r,type:(0,xc.getJSONTypes)(r.type),schemaType:(0,xc.getJSONTypes)(r.schemaType)};return(0,Cp.eachItem)(n,i.type.length===0?s=>Ip.call(this,s,i):s=>i.type.forEach(a=>Ip.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=wb(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId: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,Rs.normalizeId)(a||n);let l=Rs.getSchemaRefs.call(this,t,n);return u=new js.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):js.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{js.compileSchema.call(this,t)}finally{this.opts=r}}};o(Tp,"Ajv");var Ns=Tp;Ns.ValidationError=hI.default;Ns.MissingRefError=Eb.default;pt.default=Ns;function Ob(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(Ob,"checkOptions");function Pb(e){return e=(0,Rs.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Pb,"getSchEnv");function PI(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(PI,"addInitialSchemas");function EI(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(EI,"addInitialFormats");function $I(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o($I,"addInitialKeywords");function wI(){let e={...this.opts};for(let t of bI)delete e[t];return e}o(wI,"getMetaSchemaOptions");var xI={log(){},warn(){},error(){}};function AI(e){if(e===!1)return xI;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(AI,"getLogger");var II=/^[a-z_$][a-z0-9_$:-]*$/i;function CI(e,t){let{RULES:r}=this;if((0,Cp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!II.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(CI,"checkKeyword");function Ip(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,xc.getJSONTypes)(t.type),schemaType:(0,xc.getJSONTypes)(t.schemaType)}};t.before?TI.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(Ip,"addRule");function TI(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(TI,"addBeforeRule");function jI(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=wb(t)),e.validateSchema=this.compile(t,!0))}o(jI,"keywordMetaschema");var RI={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function wb(e){return{anyOf:[e,RI]}}o(wb,"schemaOrData")});var ks=v(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.callRef=Pi.getValidate=void 0;var NI=Is(),xb=or(),Mt=se(),So=ir(),Ab=Cs(),Ac=he(),kI={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Ab.resolveRef.call(u,l,i,r);if(p===void 0)throw new NI.default(n.opts.uriResolver,i,r);if(p instanceof Ab.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Ic(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Ic(e,(0,Mt._)`${y}.validate`,l,l.$async)}function d(y){let b=Ib(e,y);Ic(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Mt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:Mt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function Ib(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Mt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Ib,"getValidate");Pi.getValidate=Ib;function Ic(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?So.default.this:Mt.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Mt._)`await ${(0,xb.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Mt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,xb.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Mt._)`${y}.errors`;i.assign(So.default.vErrors,(0,Mt._)`${So.default.vErrors} === null ? ${b} : ${So.default.vErrors}.concat(${b})`),i.assign(So.default.errors,(0,Mt._)`${So.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=Ac.mergeEvaluated.props(i,g.props,s.props));else{let $=i.var("props",(0,Mt._)`${y}.evaluated.props`);s.props=Ac.mergeEvaluated.props(i,$,s.props,Mt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=Ac.mergeEvaluated.items(i,g.items,s.items));else{let $=i.var("items",(0,Mt._)`${y}.evaluated.items`);s.items=Ac.mergeEvaluated.items(i,$,s.items,Mt.Name)}}o(h,"addEvaluatedFrom")}o(Ic,"callRef");Pi.callRef=Ic;Pi.default=kI});var Cb=v(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var MI=ks(),qI=["$schema","id","$defs",{keyword:"$comment"},"definitions",MI.default];jp.default=qI});var Tb=v(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var Rp=_o(),DI=se(),xn=DI.operators,Np={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:xn.LTE,fail:xn.GT},{okStr:"<",ok:xn.LT,fail:xn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:xn.GTE,fail:xn.LT},{okStr:">",ok:xn.GT,fail:xn.LTE}]}},LI={message:o(e=>Rp.str`must be ${kp(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Rp._`{comparison: ${kp(e).okStr}, limit: ${e.schemaCode}}`,"params")},FI={keyword:Object.keys(Np),type:"number",schemaType:"number",$data:!0,error:LI,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Rp._`${t} ${kp(e).fail} ${r} || isNaN(${t})`)}};function kp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Np[r].exclusive]?1:0;return Np[r].ops[n]}o(kp,"kwdOp");Mp.default=FI});var Rb=v(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var jb={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},BI={keyword:Object.keys(jb),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=jb[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};qp.default=BI});var Lp=v(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var Ms=se(),VI={message:o(({schemaCode:e})=>(0,Ms.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ms._)`{multipleOf: ${e}}`,"params")},HI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:VI,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Ms._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ms._)`${a} !== parseInt(${a})`;e.fail$data((0,Ms._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Dp.default=HI});var kb=v(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});function Nb(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(Nb,"ucs2length");Fp.default=Nb;Nb.code='require("ajv/dist/runtime/ucs2length").default'});var Vp=v(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var Ei=se(),UI=he(),zI=kb(),GI={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ei.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Ei._)`{limit: ${e}}`,"params")},ZI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:GI,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Ei.operators.GT:Ei.operators.LT,a=i.opts.unicode===!1?(0,Ei._)`${r}.length`:(0,Ei._)`${(0,UI.useFunc)(e.gen,zI.default)}(${r})`;e.fail$data((0,Ei._)`${a} ${s} ${n}`)}};Bp.default=ZI});var Up=v(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var WI=or(),Cc=se(),KI={message:o(({schemaCode:e})=>(0,Cc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Cc._)`{pattern: ${e}}`,"params")},YI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:KI,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Cc._)`(new RegExp(${i}, ${a}))`:(0,WI.usePattern)(e,n);e.fail$data((0,Cc._)`!${c}.test(${t})`)}};Hp.default=YI});var Gp=v(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var qs=se(),QI={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,qs.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,qs._)`{limit: ${e}}`,"params")},JI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QI,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?qs.operators.GT:qs.operators.LT;e.fail$data((0,qs._)`Object.keys(${r}).length ${i} ${n}`)}};zp.default=JI});var Wp=v(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var Ds=or(),Ls=se(),XI=he(),eC={message:o(({params:{missingProperty:e}})=>(0,Ls.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ls._)`{missingProperty: ${e}}`,"params")},tC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:eC,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,XI.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ls.nil,f);else for(let h of r)(0,Ds.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,Ds.checkMissingProp)(e,r,h)),(0,Ds.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ds.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,Ds.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ls.not)(y),()=>{e.error(),t.break()})},Ls.nil)}o(d,"loopUntilMissing")}};Zp.default=tC});var Yp=v(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var Fs=se(),rC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Fs.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Fs._)`{limit: ${e}}`,"params")},nC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:rC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Fs.operators.GT:Fs.operators.LT;e.fail$data((0,Fs._)`${r}.length ${i} ${n}`)}};Kp.default=nC});var Tc=v(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Mb=cp();Mb.code='require("ajv/dist/runtime/equal").default';Qp.default=Mb});var ed=v(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Jp=Es(),dt=se(),iC=he(),oC=Tc(),sC={message:o(({params:{i:e,j:t}})=>(0,dt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,dt._)`{i: ${e}, j: ${t}}`,"params")},aC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:sC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Jp.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,dt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,dt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,dt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),$=(0,Jp.checkDataTypes)(l,g,c.opts.strictNumbers,Jp.DataType.Wrong),w=t.const("indices",(0,dt._)`{}`);t.for((0,dt._)`;${y}--;`,()=>{t.let(g,(0,dt._)`${r}[${y}]`),t.if($,(0,dt._)`continue`),l.length>1&&t.if((0,dt._)`typeof ${g} == "string"`,(0,dt._)`${g} += "_"`),t.if((0,dt._)`typeof ${w}[${g}] == "number"`,()=>{t.assign(b,(0,dt._)`${w}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,dt._)`${w}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,iC.useFunc)(t,oC.default),$=t.name("outer");t.label($).for((0,dt._)`;${y}--;`,()=>t.for((0,dt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,dt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break($)})))}o(h,"loopN2")}};Xp.default=aC});var nd=v(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var td=se(),cC=he(),uC=Tc(),lC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,td._)`{allowedValue: ${e}}`,"params")},fC={keyword:"const",$data:!0,error:lC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,td._)`!${(0,cC.useFunc)(t,uC.default)}(${r}, ${i})`):e.fail((0,td._)`${s} !== ${r}`)}};rd.default=fC});var od=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var Bs=se(),pC=he(),dC=Tc(),hC={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Bs._)`{allowedValues: ${e}}`,"params")},mC={keyword:"enum",schemaType:"array",$data:!0,error:hC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,pC.useFunc)(t,dC.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,Bs.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Bs._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,Bs._)`${l()}(${r}, ${h}[${y}])`:(0,Bs._)`${r} === ${b}`}o(d,"equalCode")}};id.default=mC});var qb=v(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var gC=Tb(),yC=Rb(),bC=Lp(),vC=Vp(),_C=Up(),SC=Gp(),OC=Wp(),PC=Yp(),EC=ed(),$C=nd(),wC=od(),xC=[gC.default,yC.default,bC.default,vC.default,_C.default,SC.default,OC.default,PC.default,EC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$C.default,wC.default];sd.default=xC});var cd=v(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.validateAdditionalItems=void 0;var $i=se(),ad=he(),AC={message:o(({params:{len:e}})=>(0,$i.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,$i._)`{limit: ${e}}`,"params")},IC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:AC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ad.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Db(e,n)}};function Db(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,$i._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$i._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,ad.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,$i._)`${c} <= ${t.length}`);r.if((0,$i.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:ad.Type.Num},l),a.allErrors||r.if((0,$i.not)(l),()=>r.break())})}o(u,"validateItems")}o(Db,"validateAdditionalItems");Vs.validateAdditionalItems=Db;Vs.default=IC});var ud=v(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.validateTuple=void 0;var Lb=se(),jc=he(),CC=or(),TC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Fb(e,"additionalItems",t);r.items=!0,!(0,jc.alwaysValidSchema)(r,t)&&e.ok((0,CC.validateArray)(e))}};function Fb(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=jc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Lb._)`${s}.length`);r.forEach((f,d)=>{(0,jc.alwaysValidSchema)(c,f)||(n.if((0,Lb._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,jc.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(Fb,"validateTuple");Hs.validateTuple=Fb;Hs.default=TC});var Bb=v(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var jC=ud(),RC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,jC.validateTuple)(e,"items"),"code")};ld.default=RC});var Hb=v(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var Vb=se(),NC=he(),kC=or(),MC=cd(),qC={message:o(({params:{len:e}})=>(0,Vb.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Vb._)`{limit: ${e}}`,"params")},DC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:qC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,NC.alwaysValidSchema)(n,t)&&(i?(0,MC.validateAdditionalItems)(e,i):e.ok((0,kC.validateArray)(e)))}};fd.default=DC});var Ub=v(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var ar=se(),Rc=he(),LC={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ar.str)`must contain at least ${e} valid item(s)`:(0,ar.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,ar._)`{minContains: ${e}}`:(0,ar._)`{minContains: ${e}, maxContains: ${t}}`,"params")},FC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:LC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,ar._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Rc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Rc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Rc.alwaysValidSchema)(s,r)){let b=(0,ar._)`${p} >= ${a}`;c!==void 0&&(b=(0,ar._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,ar._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:Rc.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,ar._)`${b}++`),c===void 0?t.if((0,ar._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,ar._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,ar._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};pd.default=FC});var Nc=v(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.validateSchemaDeps=Fr.validatePropertyDeps=Fr.error=void 0;var dd=se(),BC=he(),Us=or();Fr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,dd.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,dd._)`{property: ${e},
|
|
10
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,ae._)`[${i}]`)}}o(u,"coerceSpecificType")}o(Tx,"coerceData");function Rx({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}o(Rx,"assignParentData");function ap(e,t,r,n=mo.Correct){let i=n===mo.Correct?ae.operators.EQ:ae.operators.NEQ,s;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":s=(0,ae._)`Array.isArray(${t})`;break;case"object":s=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===mo.Correct?s:(0,ae.not)(s);function a(c=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,c,r?(0,ae._)`isFinite(${t})`:ae.nil)}}o(ap,"checkDataType");vt.checkDataType=ap;function cp(e,t,r,n){if(e.length===1)return ap(e[0],t,r,n);let i,s=(0,Eb.toHash)(e);if(s.array&&s.object){let a=(0,ae._)`typeof ${t} != "object"`;i=s.null?a:(0,ae._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ae.nil;s.number&&delete s.integer;for(let a in s)i=(0,ae.and)(i,ap(a,t,r,n));return i}o(cp,"checkDataTypes");vt.checkDataTypes=cp;var Nx={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function up(e){let t=kx(e);(0,Ax.reportError)(t,Nx)}o(up,"reportTypeError");vt.reportTypeError=up;function kx(e){let{gen:t,data:r,schema:n}=e,i=(0,Eb.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(kx,"getTypeErrorContext")});var Ab=v(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.assignDefaults=void 0;var go=se(),Mx=he();function qx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)xb(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>xb(e,s,i.default))}o(qx,"assignDefaults");bc.assignDefaults=qx;function xb(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,go._)`${s}${(0,go.getProperty)(t)}`;if(i){(0,Mx.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,go._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,go._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,go._)`${c} = ${(0,go.stringify)(r)}`)}o(xb,"assignDefault")});var or=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var ke=se(),lp=he(),On=ir(),Dx=he();function Lx(e,t){let{gen:r,data:n,it:i}=e;r.if(pp(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ke._)`${t}`},!0),e.error()})}o(Lx,"checkReportMissingProp");Ee.checkReportMissingProp=Lx;function Fx({gen:e,data:t,it:{opts:r}},n,i){return(0,ke.or)(...n.map(s=>(0,ke.and)(pp(e,t,s,r.ownProperties),(0,ke._)`${i} = ${s}`)))}o(Fx,"checkMissingProp");Ee.checkMissingProp=Fx;function Vx(e,t){e.setParams({missingProperty:t},!0),e.error()}o(Vx,"reportMissingProp");Ee.reportMissingProp=Vx;function Cb(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ke._)`Object.prototype.hasOwnProperty`})}o(Cb,"hasPropFunc");Ee.hasPropFunc=Cb;function fp(e,t,r){return(0,ke._)`${Cb(e)}.call(${t}, ${r})`}o(fp,"isOwnProperty");Ee.isOwnProperty=fp;function Bx(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} !== undefined`;return n?(0,ke._)`${i} && ${fp(e,t,r)}`:i}o(Bx,"propertyInData");Ee.propertyInData=Bx;function pp(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} === undefined`;return n?(0,ke.or)(i,(0,ke.not)(fp(e,t,r))):i}o(pp,"noPropertyInData");Ee.noPropertyInData=pp;function Ib(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Ib,"allSchemaProperties");Ee.allSchemaProperties=Ib;function Hx(e,t){return Ib(t).filter(r=>!(0,lp.alwaysValidSchema)(e,t[r]))}o(Hx,"schemaProperties");Ee.schemaProperties=Hx;function Ux({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,ke._)`${e}, ${t}, ${n}${i}`:t,f=[[On.default.instancePath,(0,ke.strConcat)(On.default.instancePath,s)],[On.default.parentData,a.parentData],[On.default.parentDataProperty,a.parentDataProperty],[On.default.rootData,On.default.rootData]];a.opts.dynamicRef&&f.push([On.default.dynamicAnchors,On.default.dynamicAnchors]);let d=(0,ke._)`${p}, ${r.object(...f)}`;return u!==ke.nil?(0,ke._)`${c}.call(${u}, ${d})`:(0,ke._)`${c}(${d})`}o(Ux,"callValidateCode");Ee.callValidateCode=Ux;var zx=(0,ke._)`new RegExp`;function Gx({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ke._)`${i.code==="new RegExp"?zx:(0,Dx.useFunc)(e,i)}(${r}, ${n})`})}o(Gx,"usePattern");Ee.usePattern=Gx;function Wx(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,ke._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:lp.Type.Num},s),t.if((0,ke.not)(s),c)})}o(a,"validateItems")}o(Wx,"validateArray");Ee.validateArray=Wx;function Zx(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,lp.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,ke._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,ke.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(Zx,"validateUnion");Ee.validateUnion=Zx});var Rb=v(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.validateKeywordUsage=Dr.validSchemaType=Dr.funcKeywordCode=Dr.macroKeywordCode=void 0;var xt=se(),_i=ir(),Kx=or(),Yx=Os();function Qx(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Tb(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:xt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(Qx,"macroKeywordCode");Dr.macroKeywordCode=Qx;function Jx(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;eA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=Tb(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)b(),t.modifying&&jb(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&jb(e),g(()=>Xx(e,$))}}o(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>b((0,xt._)`await `),w=>n.assign(f,!1).if((0,xt._)`${w} instanceof ${u.ValidationError}`,()=>n.assign($,(0,xt._)`${w}.errors`),()=>n.throw(w))),$}o(h,"validateAsync");function y(){let $=(0,xt._)`${p}.errors`;return n.assign($,null),b(xt.nil),$}o(y,"validateSync");function b($=t.async?(0,xt._)`await `:xt.nil){let w=u.opts.passContext?_i.default.this:_i.default.self,j=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,xt._)`${$}${(0,Kx.callValidateCode)(e,p,w,j)}`,t.modifying)}o(b,"assignValid");function g($){var w;n.if((0,xt.not)((w=t.valid)!==null&&w!==void 0?w:f),$)}o(g,"reportErrs")}o(Jx,"funcKeywordCode");Dr.funcKeywordCode=Jx;function jb(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xt._)`${n.parentData}[${n.parentDataProperty}]`))}o(jb,"modifyData");function Xx(e,t){let{gen:r}=e;r.if((0,xt._)`Array.isArray(${t})`,()=>{r.assign(_i.default.vErrors,(0,xt._)`${_i.default.vErrors} === null ? ${t} : ${_i.default.vErrors}.concat(${t})`).assign(_i.default.errors,(0,xt._)`${_i.default.vErrors}.length`),(0,Yx.extendErrors)(e)},()=>e.error())}o(Xx,"addErrs");function eA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(eA,"checkAsyncKeyword");function Tb(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,xt.stringify)(r)})}o(Tb,"useKeyword");function tA(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(tA,"validSchemaType");Dr.validSchemaType=tA;function rA({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(rA,"validateKeywordUsage");Dr.validateKeywordUsage=rA});var kb=v(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.extendSubschemaMode=En.extendSubschemaData=En.getSubschema=void 0;var Lr=se(),Nb=he();function nA(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Lr._)`${e.schemaPath}${(0,Lr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Lr._)`${e.schemaPath}${(0,Lr.getProperty)(t)}${(0,Lr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Nb.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(nA,"getSubschema");En.getSubschema=nA;function iA(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Lr._)`${t.data}${(0,Lr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Lr.str)`${l}${(0,Nb.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Lr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Lr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(iA,"extendSubschemaData");En.extendSubschemaData=iA;function oA(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(oA,"extendSubschemaMode");En.extendSubschemaMode=oA});var dp=v((V6,Mb)=>{"use strict";Mb.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Db=v((H6,qb)=>{"use strict";var $n=qb.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(){};vc(t,n,i,e,"",e)};$n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$n.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 vc(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in $n.arrayKeywords)for(var d=0;d<f.length;d++)vc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in $n.propsKeywords){if(f&&typeof f=="object")for(var h in f)vc(e,t,r,f[h],i+"/"+p+"/"+sA(h),s,i,p,n,h)}else(p in $n.keywords||e.allKeys&&!(p in $n.skipKeywords))&&vc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(vc,"_traverse");function sA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(sA,"escapeJsonPtr")});var $s=v(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getSchemaRefs=Mt.resolveUrl=Mt.normalizeId=Mt._getFullPath=Mt.getFullPath=Mt.inlineRef=void 0;var aA=he(),cA=dp(),uA=Db(),lA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function fA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!hp(e):t?Lb(e)<=t:!1}o(fA,"inlineRef");Mt.inlineRef=fA;var pA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hp(e){for(let t in e){if(pA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(hp)||typeof r=="object"&&hp(r))return!0}return!1}o(hp,"hasRef");function Lb(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!lA.has(r)&&(typeof e[r]=="object"&&(0,aA.eachItem)(e[r],n=>t+=Lb(n)),t===1/0))return 1/0}return t}o(Lb,"countKeys");function Fb(e,t="",r){r!==!1&&(t=yo(t));let n=e.parse(t);return Vb(e,n)}o(Fb,"getFullPath");Mt.getFullPath=Fb;function Vb(e,t){return e.serialize(t).split("#")[0]+"#"}o(Vb,"_getFullPath");Mt._getFullPath=Vb;var dA=/#\/?$/;function yo(e){return e?e.replace(dA,""):""}o(yo,"normalizeId");Mt.normalizeId=yo;function hA(e,t,r){return r=yo(r),e.resolve(t,r)}o(hA,"resolveUrl");Mt.resolveUrl=hA;var mA=/^[a-z_][-a-z0-9._]*$/i;function gA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=yo(e[r]||t),s={"":i},a=Fb(n,i,!1),c={},u=new Set;return uA(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[d]=g;function $(j){let C=this.opts.uriResolver.resolve;if(j=yo(g?C(g,j):j),u.has(j))throw p(j);u.add(j);let I=this.refs[j];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,j):j!==yo(b)&&(j[0]==="#"?(l(f,c[j],j),c[j]=f):this.refs[j]=b),j}o($,"addRef");function w(j){if(typeof j=="string"){if(!mA.test(j))throw new Error(`invalid anchor "${j}"`);$.call(this,`#${j}`)}}o(w,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!cA(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(gA,"getSchemaRefs");Mt.getSchemaRefs=gA});var As=v(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getData=wn.KeywordCxt=wn.validateFunctionCode=void 0;var Gb=Sb(),Bb=Es(),gp=sp(),_c=Es(),yA=Ab(),xs=Rb(),mp=kb(),Z=se(),ie=ir(),bA=$s(),nn=he(),ws=Os();function vA(e){if(Kb(e)&&(Yb(e),Zb(e))){PA(e);return}Wb(e,()=>(0,Gb.topBoolOrEmptySchema)(e))}o(vA,"validateFunctionCode");wn.validateFunctionCode=vA;function Wb({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,Z._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,Z._)`"use strict"; ${Hb(r,i)}`),SA(e,i),e.code(s)}):e.func(t,(0,Z._)`${ie.default.data}, ${_A(i)}`,n.$async,()=>e.code(Hb(r,i)).code(s))}o(Wb,"validateFunction");function _A(e){return(0,Z._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,Z._)`, ${ie.default.dynamicAnchors}={}`:Z.nil}}={}`}o(_A,"destructureValCxt");function SA(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,Z._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,Z._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,Z._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,Z._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Z._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,Z._)`""`),e.var(ie.default.parentData,(0,Z._)`undefined`),e.var(ie.default.parentDataProperty,(0,Z._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Z._)`{}`)})}o(SA,"destructureValCxtES5");function PA(e){let{schema:t,opts:r,gen:n}=e;Wb(e,()=>{r.$comment&&t.$comment&&Jb(e),xA(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&OA(e),Qb(e),IA(e)})}o(PA,"topSchemaObjCode");function OA(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Z._)`${r}.evaluated`),t.if((0,Z._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Z._)`${e.evaluated}.props`,(0,Z._)`undefined`)),t.if((0,Z._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Z._)`${e.evaluated}.items`,(0,Z._)`undefined`))}o(OA,"resetEvaluated");function Hb(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Z._)`/*# sourceURL=${r} */`:Z.nil}o(Hb,"funcSourceUrl");function EA(e,t){if(Kb(e)&&(Yb(e),Zb(e))){$A(e,t);return}(0,Gb.boolOrEmptySchema)(e,t)}o(EA,"subschemaCode");function Zb({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(Zb,"schemaCxtHasRules");function Kb(e){return typeof e.schema!="boolean"}o(Kb,"isSchemaObj");function $A(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Jb(e),AA(e),CA(e);let s=n.const("_errs",ie.default.errors);Qb(e,s),n.var(t,(0,Z._)`${s} === ${ie.default.errors}`)}o($A,"subSchemaObjCode");function Yb(e){(0,nn.checkUnknownRules)(e),wA(e)}o(Yb,"checkKeywords");function Qb(e,t){if(e.opts.jtd)return Ub(e,[],!1,t);let r=(0,Bb.getSchemaTypes)(e.schema),n=(0,Bb.coerceAndCheckDataType)(e,r);Ub(e,r,!n,t)}o(Qb,"typeAndKeywords");function wA(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,nn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(wA,"checkRefsAndKeywords");function xA(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,nn.checkStrictMode)(e,"default is ignored in the schema root")}o(xA,"checkNoDefault");function AA(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,bA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(AA,"updateContext");function CA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(CA,"checkAsyncSchema");function Jb({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,Z._)`${ie.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,Z.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,Z._)`${ie.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(Jb,"commentKeyword");function IA(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,Z._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,Z._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,Z._)`${n}.errors`,ie.default.vErrors),s.unevaluated&&jA(e),t.return((0,Z._)`${ie.default.errors} === 0`))}o(IA,"returnResults");function jA({gen:e,evaluated:t,props:r,items:n}){r instanceof Z.Name&&e.assign((0,Z._)`${t}.props`,r),n instanceof Z.Name&&e.assign((0,Z._)`${t}.items`,n)}o(jA,"assignEvaluated");function Ub(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,nn.schemaHasRulesButRef)(s,p))){i.block(()=>e0(e,"$ref",p.all.$ref.definition));return}u.jtd||TA(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,gp.shouldUseGroup)(s,d)&&(d.type?(i.if((0,_c.checkDataType)(d.type,a,u.strictNumbers)),zb(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,_c.reportTypeError)(e)),i.endIf()):zb(e,d),c||i.if((0,Z._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Ub,"schemaKeywords");function zb(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,yA.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,gp.shouldUseRule)(n,s)&&e0(e,s.keyword,s.definition,t.type)})}o(zb,"iterateKeywords");function TA(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(RA(e,t),e.opts.allowUnionTypes||NA(e,t),kA(e,e.dataTypes))}o(TA,"checkStrictTypes");function RA(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Xb(e.dataTypes,r)||yp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),qA(e,t)}}o(RA,"checkContextTypes");function NA(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&yp(e,"use allowUnionTypes to allow union type keyword")}o(NA,"checkMultipleTypes");function kA(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,gp.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>MA(t,a))&&yp(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(kA,"checkKeywordTypes");function MA(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(MA,"hasApplicableType");function Xb(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(Xb,"includesType");function qA(e,t){let r=[];for(let n of e.dataTypes)Xb(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(qA,"narrowSchemaTypes");function yp(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,nn.checkStrictMode)(e,t,e.opts.strictTypes)}o(yp,"strictTypesError");var bp=class bp{constructor(t,r,n){if((0,xs.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,nn.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",t0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,xs.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",ie.default.errors))}result(t,r,n){this.failResult((0,Z.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,Z.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,Z._)`${r} !== undefined && (${(0,Z.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?ws.reportExtraError:ws.reportError)(this,this.def.error,r)}$dataError(){(0,ws.reportError)(this,this.def.$dataError||ws.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ws.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=Z.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Z.nil,r=Z.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,Z.or)((0,Z._)`${i} === undefined`,r)),t!==Z.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Z.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,Z.or)(a(),c());function a(){if(n.length){if(!(r instanceof Z.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,Z._)`${(0,_c.checkDataTypes)(u,r,s.opts.strictNumbers,_c.DataType.Wrong)}`}return Z.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Z._)`!${u}(${r})`}return Z.nil}}subschema(t,r){let n=(0,mp.getSubschema)(this.it,t);(0,mp.extendSubschemaData)(n,this.it,t),(0,mp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return EA(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=nn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=nn.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,Z.Name)),!0}};o(bp,"KeywordCxt");var Sc=bp;wn.KeywordCxt=Sc;function e0(e,t,r,n){let i=new Sc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,xs.funcKeywordCode)(i,r):"macro"in r?(0,xs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,xs.funcKeywordCode)(i,r)}o(e0,"keywordCode");var DA=/^\/(?:[^~]|~0|~1)*$/,LA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function t0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!DA.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=LA.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,Z._)`${s}${(0,Z.getProperty)((0,nn.unescapeJsonPointer)(l))}`,a=(0,Z._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(t0,"getData");wn.getData=t0});var Pc=v(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var Sp=class Sp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Sp,"ValidationError");var vp=Sp;_p.default=vp});var Cs=v(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});var Pp=$s(),$p=class $p extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Pp.resolveUrl)(t,r,n),this.missingSchema=(0,Pp.normalizeId)((0,Pp.getFullPath)(t,this.missingRef))}};o($p,"MissingRefError");var Op=$p;Ep.default=Op});var Is=v(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.resolveSchema=sr.getCompilingSchema=sr.resolveRef=sr.compileSchema=sr.SchemaEnv=void 0;var _r=se(),FA=Pc(),Si=ir(),Sr=$s(),r0=he(),VA=As(),Ap=class Ap{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,Sr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(Ap,"SchemaEnv");var bo=Ap;sr.SchemaEnv=bo;function xp(e){let t=n0.call(this,e);if(t)return t;let r=(0,Sr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new _r.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:FA.default,code:(0,_r._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Si.default.data,parentData:Si.default.parentData,parentDataProperty:Si.default.parentDataProperty,dataNames:[Si.default.data],dataPathArr:[_r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_r.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_r._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,VA.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Si.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Si.default.self}`,`${Si.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof _r.Name?void 0:y,items:b instanceof _r.Name?void 0:b,dynamicProps:y instanceof _r.Name,dynamicItems:b instanceof _r.Name},h.source&&(h.source.evaluated=(0,_r.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(xp,"compileSchema");sr.compileSchema=xp;function BA(e,t,r){var n;r=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=zA.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new bo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=HA.call(this,s)}o(BA,"resolveRef");sr.resolveRef=BA;function HA(e){return(0,Sr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:xp.call(this,e)}o(HA,"inlineOrCompile");function n0(e){for(let t of this._compilations)if(UA(t,e))return t}o(n0,"getCompilingSchema");sr.getCompilingSchema=n0;function UA(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(UA,"sameSchemaEnv");function zA(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Oc.call(this,e,t)}o(zA,"resolve");function Oc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Sr._getFullPath)(this.opts.uriResolver,r),i=(0,Sr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return wp.call(this,r,e);let s=(0,Sr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Oc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:wp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||xp.call(this,a),s===(0,Sr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Sr.resolveUrl)(this.opts.uriResolver,i,l)),new bo({schema:c,schemaId:u,root:e,baseId:i})}return wp.call(this,r,a)}}o(Oc,"resolveSchema");sr.resolveSchema=Oc;var GA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function wp(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,r0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!GA.has(c)&&l&&(t=(0,Sr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,r0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Oc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new bo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(wp,"getJsonPointer")});var i0=v((t7,WA)=>{WA.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 s0=v((r7,o0)=>{"use strict";var ZA={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};o0.exports={HEX:ZA}});var h0=v((n7,d0)=>{"use strict";var{HEX:KA}=s0();function l0(e){if(p0(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:QA(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(l0,"normalizeIPv4");function Cp(e,t=!1){let r="",n=!0;for(let i of e){if(KA[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Cp,"stringArrayToHexStripped");function YA(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=Cp(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(Cp(i))),r.address=n.join(""),r}o(YA,"getIPV6");function f0(e,t={}){if(p0(e,":")<2)return{host:e,isIPV6:!1};let r=YA(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(f0,"normalizeIPv6");function QA(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(QA,"stripLeadingZeros");function p0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(p0,"findToken");var a0=/^\.\.?\//u,c0=/^\/\.(?:\/|$)/u,u0=/^\/\.\.(?:\/|$)/u,JA=/^\/?(?:.|\n)*?(?=\/|$)/u;function XA(e){let t=[];for(;e.length;)if(e.match(a0))e=e.replace(a0,"");else if(e.match(c0))e=e.replace(c0,"/");else if(e.match(u0))e=e.replace(u0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(JA);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(XA,"removeDotSegments");function eC(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(eC,"normalizeComponentEncoding");function tC(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=l0(n);if(i.isIPV4)n=i.host;else{let s=f0(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(tC,"recomposeAuthority");d0.exports={recomposeAuthority:tC,normalizeComponentEncoding:eC,removeDotSegments:XA,normalizeIPv4:l0,normalizeIPv6:f0,stringArrayToHexStripped:Cp}});var _0=v((o7,v0)=>{"use strict";var rC=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,nC=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function m0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(m0,"isSecure");function g0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(g0,"httpParse");function y0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(y0,"httpSerialize");function iC(e){return e.secure=m0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(iC,"wsParse");function oC(e){if((e.port===(m0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(oC,"wsSerialize");function sC(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(nC);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=Ip[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(sC,"urnParse");function aC(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Ip[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(aC,"urnSerialize");function cC(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!rC.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(cC,"urnuuidParse");function uC(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(uC,"urnuuidSerialize");var b0={scheme:"http",domainHost:!0,parse:g0,serialize:y0},lC={scheme:"https",domainHost:b0.domainHost,parse:g0,serialize:y0},Ec={scheme:"ws",domainHost:!0,parse:iC,serialize:oC},fC={scheme:"wss",domainHost:Ec.domainHost,parse:Ec.parse,serialize:Ec.serialize},pC={scheme:"urn",parse:sC,serialize:aC,skipNormalize:!0},dC={scheme:"urn:uuid",parse:cC,serialize:uC,skipNormalize:!0},Ip={http:b0,https:lC,ws:Ec,wss:fC,urn:pC,"urn:uuid":dC};v0.exports=Ip});var P0=v((a7,wc)=>{"use strict";var{normalizeIPv6:hC,normalizeIPv4:mC,removeDotSegments:js,recomposeAuthority:gC,normalizeComponentEncoding:$c}=h0(),jp=_0();function yC(e,t){return typeof e=="string"?e=Fr(on(e,t),t):typeof e=="object"&&(e=on(Fr(e,t),t)),e}o(yC,"normalize");function bC(e,t,r){let n=Object.assign({scheme:"null"},r),i=S0(on(e,n),on(t,n),n,!0);return Fr(i,{...n,skipEscape:!0})}o(bC,"resolve");function S0(e,t,r,n){let i={};return n||(e=on(Fr(e,r),r),t=on(Fr(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=js(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=js(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=js(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=js(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(S0,"resolveComponents");function vC(e,t,r){return typeof e=="string"?(e=unescape(e),e=Fr($c(on(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Fr($c(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Fr($c(on(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Fr($c(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(vC,"equal");function Fr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=jp[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=gC(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=js(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(Fr,"serialize");var _C=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function SC(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||_C[t])return!0;return!1}o(SC,"nonSimpleDomain");var PC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function on(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(PC);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=mC(n.host);if(u.isIPV4===!1){let l=hC(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=jp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&SC(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(on,"parse");var Tp={SCHEMES:jp,normalize:yC,resolve:bC,resolveComponents:S0,equal:vC,serialize:Fr,parse:on};wc.exports=Tp;wc.exports.default=Tp;wc.exports.fastUri=Tp});var E0=v(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var O0=P0();O0.code='require("ajv/dist/runtime/uri").default';Rp.default=O0});var _o=v(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.CodeGen=pt.Name=pt.nil=pt.stringify=pt.str=pt._=pt.KeywordCxt=void 0;var OC=As();Object.defineProperty(pt,"KeywordCxt",{enumerable:!0,get:o(function(){return OC.KeywordCxt},"get")});var vo=se();Object.defineProperty(pt,"_",{enumerable:!0,get:o(function(){return vo._},"get")});Object.defineProperty(pt,"str",{enumerable:!0,get:o(function(){return vo.str},"get")});Object.defineProperty(pt,"stringify",{enumerable:!0,get:o(function(){return vo.stringify},"get")});Object.defineProperty(pt,"nil",{enumerable:!0,get:o(function(){return vo.nil},"get")});Object.defineProperty(pt,"Name",{enumerable:!0,get:o(function(){return vo.Name},"get")});Object.defineProperty(pt,"CodeGen",{enumerable:!0,get:o(function(){return vo.CodeGen},"get")});var EC=Pc(),C0=Cs(),$C=op(),Ts=Is(),wC=se(),Rs=$s(),xc=Es(),kp=he(),$0=i0(),xC=E0(),I0=o((e,t)=>new RegExp(e,t),"defaultRegExp");I0.code="new RegExp";var AC=["removeAdditional","useDefaults","coerceTypes"],CC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),IC={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."},jC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w0=200;function TC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,$,w,j,C,I,ce,re,we,Pe;let J=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,T=k===!0||k===void 0?1:k||0,M=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:I0,Y=(i=e.uriResolver)!==null&&i!==void 0?i:xC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:J)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:J)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:J)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:J)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:J)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:T,regExp:M}:{optimize:T,regExp:M},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:w0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:w0,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(j=e.inlineRefs)!==null&&j!==void 0?j:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(ce=e.validateSchema)!==null&&ce!==void 0?ce:!0,validateFormats:(re=e.validateFormats)!==null&&re!==void 0?re:!0,unicodeRegExp:(we=e.unicodeRegExp)!==null&&we!==void 0?we:!0,int32range:(Pe=e.int32range)!==null&&Pe!==void 0?Pe:!0,uriResolver:Y}}o(TC,"requiredOptions");var Mp=class Mp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...TC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wC.ValueScope({scope:{},prefixes:CC,es5:r,lines:n}),this.logger=DC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,$C.getRules)(),x0.call(this,IC,t,"NOT SUPPORTED"),x0.call(this,jC,t,"DEPRECATED","warn"),this._metaOpts=MC.call(this),t.formats&&NC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&kC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),RC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=$0;n==="id"&&(i={...$0},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof C0.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Rs.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=A0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Ts.SchemaEnv({schema:{},schemaId:n});if(r=Ts.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=A0.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,Rs.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(FC.call(this,n,r),!r)return(0,kp.eachItem)(n,s=>Np.call(this,s)),this;BC.call(this,r);let i={...r,type:(0,xc.getJSONTypes)(r.type),schemaType:(0,xc.getJSONTypes)(r.schemaType)};return(0,kp.eachItem)(n,i.type.length===0?s=>Np.call(this,s,i):s=>i.type.forEach(a=>Np.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=j0(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId: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,Rs.normalizeId)(a||n);let l=Rs.getSchemaRefs.call(this,t,n);return u=new Ts.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ts.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{Ts.compileSchema.call(this,t)}finally{this.opts=r}}};o(Mp,"Ajv");var Ns=Mp;Ns.ValidationError=EC.default;Ns.MissingRefError=C0.default;pt.default=Ns;function x0(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(x0,"checkOptions");function A0(e){return e=(0,Rs.normalizeId)(e),this.schemas[e]||this.refs[e]}o(A0,"getSchEnv");function RC(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(RC,"addInitialSchemas");function NC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(NC,"addInitialFormats");function kC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(kC,"addInitialKeywords");function MC(){let e={...this.opts};for(let t of AC)delete e[t];return e}o(MC,"getMetaSchemaOptions");var qC={log(){},warn(){},error(){}};function DC(e){if(e===!1)return qC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(DC,"getLogger");var LC=/^[a-z_$][a-z0-9_$:-]*$/i;function FC(e,t){let{RULES:r}=this;if((0,kp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!LC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(FC,"checkKeyword");function Np(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,xc.getJSONTypes)(t.type),schemaType:(0,xc.getJSONTypes)(t.schemaType)}};t.before?VC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(Np,"addRule");function VC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(VC,"addBeforeRule");function BC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=j0(t)),e.validateSchema=this.compile(t,!0))}o(BC,"keywordMetaschema");var HC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function j0(e){return{anyOf:[e,HC]}}o(j0,"schemaOrData")});var ks=v(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.callRef=Pi.getValidate=void 0;var UC=Cs(),T0=or(),qt=se(),So=ir(),R0=Is(),Ac=he(),zC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=R0.resolveRef.call(u,l,i,r);if(p===void 0)throw new UC.default(n.opts.uriResolver,i,r);if(p instanceof R0.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Cc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Cc(e,(0,qt._)`${y}.validate`,l,l.$async)}function d(y){let b=N0(e,y);Cc(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,qt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:qt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function N0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,qt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(N0,"getValidate");Pi.getValidate=N0;function Cc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?So.default.this:qt.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,qt._)`await ${(0,T0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,qt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,T0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,qt._)`${y}.errors`;i.assign(So.default.vErrors,(0,qt._)`${So.default.vErrors} === null ? ${b} : ${So.default.vErrors}.concat(${b})`),i.assign(So.default.errors,(0,qt._)`${So.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=Ac.mergeEvaluated.props(i,g.props,s.props));else{let $=i.var("props",(0,qt._)`${y}.evaluated.props`);s.props=Ac.mergeEvaluated.props(i,$,s.props,qt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=Ac.mergeEvaluated.items(i,g.items,s.items));else{let $=i.var("items",(0,qt._)`${y}.evaluated.items`);s.items=Ac.mergeEvaluated.items(i,$,s.items,qt.Name)}}o(h,"addEvaluatedFrom")}o(Cc,"callRef");Pi.callRef=Cc;Pi.default=zC});var k0=v(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var GC=ks(),WC=["$schema","id","$defs",{keyword:"$comment"},"definitions",GC.default];qp.default=WC});var M0=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var Dp=_o(),ZC=se(),xn=ZC.operators,Lp={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:xn.LTE,fail:xn.GT},{okStr:"<",ok:xn.LT,fail:xn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:xn.GTE,fail:xn.LT},{okStr:">",ok:xn.GT,fail:xn.LTE}]}},KC={message:o(e=>Dp.str`must be ${Fp(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Dp._`{comparison: ${Fp(e).okStr}, limit: ${e.schemaCode}}`,"params")},YC={keyword:Object.keys(Lp),type:"number",schemaType:"number",$data:!0,error:KC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Dp._`${t} ${Fp(e).fail} ${r} || isNaN(${t})`)}};function Fp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Lp[r].exclusive]?1:0;return Lp[r].ops[n]}o(Fp,"kwdOp");Vp.default=YC});var D0=v(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var q0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},QC={keyword:Object.keys(q0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=q0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Bp.default=QC});var Up=v(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var Ms=se(),JC={message:o(({schemaCode:e})=>(0,Ms.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ms._)`{multipleOf: ${e}}`,"params")},XC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:JC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Ms._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ms._)`${a} !== parseInt(${a})`;e.fail$data((0,Ms._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Hp.default=XC});var F0=v(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});function L0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(L0,"ucs2length");zp.default=L0;L0.code='require("ajv/dist/runtime/ucs2length").default'});var Wp=v(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Oi=se(),eI=he(),tI=F0(),rI={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},nI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:rI,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Oi.operators.GT:Oi.operators.LT,a=i.opts.unicode===!1?(0,Oi._)`${r}.length`:(0,Oi._)`${(0,eI.useFunc)(e.gen,tI.default)}(${r})`;e.fail$data((0,Oi._)`${a} ${s} ${n}`)}};Gp.default=nI});var Kp=v(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var iI=or(),Ic=se(),oI={message:o(({schemaCode:e})=>(0,Ic.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Ic._)`{pattern: ${e}}`,"params")},sI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:oI,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Ic._)`(new RegExp(${i}, ${a}))`:(0,iI.usePattern)(e,n);e.fail$data((0,Ic._)`!${c}.test(${t})`)}};Zp.default=sI});var Qp=v(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var qs=se(),aI={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,qs.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,qs._)`{limit: ${e}}`,"params")},cI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:aI,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?qs.operators.GT:qs.operators.LT;e.fail$data((0,qs._)`Object.keys(${r}).length ${i} ${n}`)}};Yp.default=cI});var Xp=v(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Ds=or(),Ls=se(),uI=he(),lI={message:o(({params:{missingProperty:e}})=>(0,Ls.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ls._)`{missingProperty: ${e}}`,"params")},fI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:lI,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,uI.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ls.nil,f);else for(let h of r)(0,Ds.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,Ds.checkMissingProp)(e,r,h)),(0,Ds.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ds.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,Ds.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ls.not)(y),()=>{e.error(),t.break()})},Ls.nil)}o(d,"loopUntilMissing")}};Jp.default=fI});var td=v(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var Fs=se(),pI={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Fs.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Fs._)`{limit: ${e}}`,"params")},dI={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:pI,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Fs.operators.GT:Fs.operators.LT;e.fail$data((0,Fs._)`${r}.length ${i} ${n}`)}};ed.default=dI});var jc=v(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var V0=dp();V0.code='require("ajv/dist/runtime/equal").default';rd.default=V0});var od=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var nd=Es(),dt=se(),hI=he(),mI=jc(),gI={message:o(({params:{i:e,j:t}})=>(0,dt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,dt._)`{i: ${e}, j: ${t}}`,"params")},yI={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:gI,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,nd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,dt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,dt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,dt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),$=(0,nd.checkDataTypes)(l,g,c.opts.strictNumbers,nd.DataType.Wrong),w=t.const("indices",(0,dt._)`{}`);t.for((0,dt._)`;${y}--;`,()=>{t.let(g,(0,dt._)`${r}[${y}]`),t.if($,(0,dt._)`continue`),l.length>1&&t.if((0,dt._)`typeof ${g} == "string"`,(0,dt._)`${g} += "_"`),t.if((0,dt._)`typeof ${w}[${g}] == "number"`,()=>{t.assign(b,(0,dt._)`${w}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,dt._)`${w}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,hI.useFunc)(t,mI.default),$=t.name("outer");t.label($).for((0,dt._)`;${y}--;`,()=>t.for((0,dt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,dt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break($)})))}o(h,"loopN2")}};id.default=yI});var cd=v(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var sd=se(),bI=he(),vI=jc(),_I={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,sd._)`{allowedValue: ${e}}`,"params")},SI={keyword:"const",$data:!0,error:_I,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,sd._)`!${(0,bI.useFunc)(t,vI.default)}(${r}, ${i})`):e.fail((0,sd._)`${s} !== ${r}`)}};ad.default=SI});var ld=v(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var Vs=se(),PI=he(),OI=jc(),EI={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Vs._)`{allowedValues: ${e}}`,"params")},$I={keyword:"enum",schemaType:"array",$data:!0,error:EI,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,PI.useFunc)(t,OI.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,Vs.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Vs._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,Vs._)`${l()}(${r}, ${h}[${y}])`:(0,Vs._)`${r} === ${b}`}o(d,"equalCode")}};ud.default=$I});var B0=v(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var wI=M0(),xI=D0(),AI=Up(),CI=Wp(),II=Kp(),jI=Qp(),TI=Xp(),RI=td(),NI=od(),kI=cd(),MI=ld(),qI=[wI.default,xI.default,AI.default,CI.default,II.default,jI.default,TI.default,RI.default,NI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kI.default,MI.default];fd.default=qI});var dd=v(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.validateAdditionalItems=void 0;var Ei=se(),pd=he(),DI={message:o(({params:{len:e}})=>(0,Ei.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ei._)`{limit: ${e}}`,"params")},LI={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:DI,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,pd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}H0(e,n)}};function H0(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Ei._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ei._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,pd.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ei._)`${c} <= ${t.length}`);r.if((0,Ei.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:pd.Type.Num},l),a.allErrors||r.if((0,Ei.not)(l),()=>r.break())})}o(u,"validateItems")}o(H0,"validateAdditionalItems");Bs.validateAdditionalItems=H0;Bs.default=LI});var hd=v(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.validateTuple=void 0;var U0=se(),Tc=he(),FI=or(),VI={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return z0(e,"additionalItems",t);r.items=!0,!(0,Tc.alwaysValidSchema)(r,t)&&e.ok((0,FI.validateArray)(e))}};function z0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Tc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,U0._)`${s}.length`);r.forEach((f,d)=>{(0,Tc.alwaysValidSchema)(c,f)||(n.if((0,U0._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Tc.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(z0,"validateTuple");Hs.validateTuple=z0;Hs.default=VI});var G0=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var BI=hd(),HI={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,BI.validateTuple)(e,"items"),"code")};md.default=HI});var Z0=v(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var W0=se(),UI=he(),zI=or(),GI=dd(),WI={message:o(({params:{len:e}})=>(0,W0.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,W0._)`{limit: ${e}}`,"params")},ZI={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:WI,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,UI.alwaysValidSchema)(n,t)&&(i?(0,GI.validateAdditionalItems)(e,i):e.ok((0,zI.validateArray)(e)))}};gd.default=ZI});var K0=v(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var ar=se(),Rc=he(),KI={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ar.str)`must contain at least ${e} valid item(s)`:(0,ar.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,ar._)`{minContains: ${e}}`:(0,ar._)`{minContains: ${e}, maxContains: ${t}}`,"params")},YI={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:KI,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,ar._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Rc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Rc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Rc.alwaysValidSchema)(s,r)){let b=(0,ar._)`${p} >= ${a}`;c!==void 0&&(b=(0,ar._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,ar._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:Rc.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,ar._)`${b}++`),c===void 0?t.if((0,ar._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,ar._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,ar._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};yd.default=YI});var Nc=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateSchemaDeps=Vr.validatePropertyDeps=Vr.error=void 0;var bd=se(),QI=he(),Us=or();Vr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,bd.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,bd._)`{property: ${e},
|
|
11
11
|
missingProperty: ${n},
|
|
12
12
|
depsCount: ${t},
|
|
13
|
-
deps: ${r}}`,"params")};var VC={keyword:"dependencies",type:"object",schemaType:"object",error:Fr.error,code(e){let[t,r]=HC(e);zb(e,t),Gb(e,r)}};function HC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(HC,"splitDependencies");function zb(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Us.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Us.checkReportMissingProp)(e,l)}):(r.if((0,dd._)`${u} && (${(0,Us.checkMissingProp)(e,c,s)})`),(0,Us.reportMissingProp)(e,s),r.else())}}o(zb,"validatePropertyDeps");Fr.validatePropertyDeps=zb;function Gb(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,BC.alwaysValidSchema)(s,t[c])||(r.if((0,Us.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Gb,"validateSchemaDeps");Fr.validateSchemaDeps=Gb;Fr.default=VC});var Wb=v(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var Zb=se(),UC=he(),zC={message:"property name must be valid",params:o(({params:e})=>(0,Zb._)`{propertyName: ${e.propertyName}}`,"params")},GC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,UC.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,Zb.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};hd.default=GC});var gd=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var kc=or(),Or=se(),ZC=ir(),Mc=he(),WC={message:"must NOT have additional properties",params:o(({params:e})=>(0,Or._)`{additionalProperty: ${e.additionalProperty}}`,"params")},KC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:WC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Mc.alwaysValidSchema)(a,r))return;let l=(0,kc.allSchemaProperties)(n.properties),p=(0,kc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Or._)`${s} === ${ZC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}o(f,"checkAdditionalProperties");function d(g){let $;if(l.length>8){let w=(0,Mc.schemaRefOrVal)(a,n.properties,"properties");$=(0,kc.isOwnProperty)(t,w,g)}else l.length?$=(0,Or.or)(...l.map(w=>(0,Or._)`${g} === ${w}`)):$=Or.nil;return p.length&&($=(0,Or.or)($,...p.map(w=>(0,Or._)`${(0,kc.usePattern)(e,w)}.test(${g})`))),(0,Or.not)($)}o(d,"isAdditional");function h(g){t.code((0,Or._)`delete ${i}[${g}]`)}o(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Mc.alwaysValidSchema)(a,r)){let $=t.name("valid");u.removeAdditional==="failing"?(b(g,$,!1),t.if((0,Or.not)($),()=>{e.reset(),h(g)})):(b(g,$),c||t.if((0,Or.not)($),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,$,w){let T={keyword:"additionalProperties",dataProp:g,dataPropType:Mc.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,$)}o(b,"applyAdditionalSchema")}};md.default=KC});var Qb=v(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var YC=As(),Kb=or(),yd=he(),Yb=gd(),QC={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Yb.default.code(new YC.KeywordCxt(s,Yb.default,"additionalProperties"));let a=(0,Kb.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=yd.mergeEvaluated.props(t,(0,yd.toHash)(a),s.props));let c=a.filter(f=>!(0,yd.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,Kb.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};bd.default=QC});var tv=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var Jb=or(),qc=se(),Xb=he(),ev=he(),JC={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Jb.allSchemaProperties)(r),u=c.filter(b=>(0,Xb.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof qc.Name)&&(s.props=(0,ev.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,Xb.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,qc._)`${(0,Jb.usePattern)(e,b)}.test(${g})`,()=>{let $=u.includes(b);$||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:ev.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,qc._)`${f}[${g}]`,!0):!$&&!s.allErrors&&t.if((0,qc.not)(p),()=>t.break())})})}o(y,"validateProperties")}};vd.default=JC});var rv=v(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var XC=he(),eT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,XC.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"}};_d.default=eT});var nv=v(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var tT=or(),rT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:tT.validateUnion,error:{message:"must match a schema in anyOf"}};Sd.default=rT});var iv=v(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Dc=se(),nT=he(),iT={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Dc._)`{passingSchemas: ${e.passing}}`,"params")},oT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:iT,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,nT.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Dc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Dc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Dc.Name)})})}o(l,"validateOneOf")}};Od.default=oT});var ov=v(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var sT=he(),aT={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,sT.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Pd.default=aT});var cv=v(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var Lc=se(),av=he(),cT={message:o(({params:e})=>(0,Lc.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Lc._)`{failingKeyword: ${e.ifClause}}`,"params")},uT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:cT,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,av.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=sv(n,"then"),s=sv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,Lc.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Lc._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function sv(e,t){let r=e.schema[t];return r!==void 0&&!(0,av.alwaysValidSchema)(e,r)}o(sv,"hasSchema");Ed.default=uT});var uv=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var lT=he(),fT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,lT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};$d.default=fT});var xd=v(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var pT=cd(),dT=Bb(),hT=ud(),mT=Hb(),gT=Ub(),yT=Nc(),bT=Wb(),vT=gd(),_T=Qb(),ST=tv(),OT=rv(),PT=nv(),ET=iv(),$T=ov(),wT=cv(),xT=uv();function AT(e=!1){let t=[OT.default,PT.default,ET.default,$T.default,wT.default,xT.default,bT.default,vT.default,yT.default,_T.default,ST.default];return e?t.push(dT.default,mT.default):t.push(pT.default,hT.default),t.push(gT.default),t}o(AT,"getApplicator");wd.default=AT});var lv=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Qe=se(),IT={message:o(({schemaCode:e})=>(0,Qe.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qe._)`{format: ${e}}`,"params")},CT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:IT,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,Qe._)`${y}[${a}]`),g=r.let("fType"),$=r.let("format");r.if((0,Qe._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,Qe._)`${b}.type || "string"`).assign($,(0,Qe._)`${b}.validate`),()=>r.assign(g,(0,Qe._)`"string"`).assign($,b)),e.fail$data((0,Qe.or)(w(),T()));function w(){return u.strictSchema===!1?Qe.nil:(0,Qe._)`${a} && !${$}`}o(w,"unknownFmt");function T(){let I=p.$async?(0,Qe._)`(${b}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,Qe._)`${$}(${n})`,C=(0,Qe._)`(typeof ${$} == "function" ? ${I} : ${$}.test(${n}))`;return(0,Qe._)`${$} && ${$} !== true && ${g} === ${t} && !${C}`}o(T,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){w();return}if(y===!0)return;let[b,g,$]=T(y);b===t&&e.pass(I());function w(){if(u.strictSchema===!1){f.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(w,"unknownFormat");function T(C){let ce=C instanceof RegExp?(0,Qe.regexpCode)(C):u.code.formats?(0,Qe._)`${u.code.formats}${(0,Qe.getProperty)(s)}`:void 0,re=r.scopeValue("formats",{key:s,ref:C,code:ce});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,Qe._)`${re}.validate`]:["string",C,re]}o(T,"getFormat");function I(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${$}(${n})`}return typeof g=="function"?(0,Qe._)`${$}(${n})`:(0,Qe._)`${$}.test(${n})`}o(I,"validCondition")}o(h,"validateFormat")}};Ad.default=CT});var Cd=v(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var TT=lv(),jT=[TT.default];Id.default=jT});var fv=v(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var RT=Cb(),NT=qb(),kT=xd(),MT=Cd(),qT=["title","description","default"],DT=[RT.default,NT.default,kT.default(),MT.default,qT];Td.default=DT});var dv=v(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DiscrError=void 0;var pv;(function(e){e.Tag="tag",e.Mapping="mapping"})(pv||(Fc.DiscrError=pv={}))});var Nd=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Oo=se(),jd=dv(),hv=Cs(),LT=Is(),FT=he(),BT={message:o(({params:{discrError:e,tagName:t}})=>e===jd.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Oo._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},VT={keyword:"discriminator",type:"object",schemaType:"object",error:BT,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Oo._)`${r}${(0,Oo.getProperty)(c)}`);t.if((0,Oo._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:jd.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Oo._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:jd.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Oo.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=$(i),g=!0;for(let I=0;I<a.length;I++){let C=a[I];if(C!=null&&C.$ref&&!(0,FT.schemaHasRulesButRef)(C,s.self.RULES)){let re=C.$ref;if(C=hv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,re),C instanceof hv.SchemaEnv&&(C=C.schema),C===void 0)throw new LT.default(s.opts.uriResolver,s.baseId,re)}let ce=(h=C==null?void 0:C.properties)===null||h===void 0?void 0:h[c];if(typeof ce!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||$(C)),w(ce,I)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function $({required:I}){return Array.isArray(I)&&I.includes(c)}function w(I,C){if(I.const)T(I.const,C);else if(I.enum)for(let ce of I.enum)T(ce,C);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function T(I,C){if(typeof I!="string"||I in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[I]=C}}o(d,"getMapping")}};Rd.default=VT});var mv=v((pB,HT)=>{HT.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 bv=v((nt,yv)=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.CodeGen=nt.Name=nt.nil=nt.stringify=nt.str=nt._=nt.KeywordCxt=void 0;var UT=_o(),zT=fv(),GT=Nd(),gv=mv(),ZT=["/properties"],Bc="http://json-schema.org/draft-04/schema",kd=class kd extends UT.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),zT.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(GT.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(gv,ZT):gv;this.addMetaSchema(t,Bc,!1),this.refs["http://json-schema.org/schema"]=Bc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Bc)?Bc:void 0)}};o(kd,"Ajv");var Vc=kd;yv.exports=nt=Vc;Object.defineProperty(nt,"__esModule",{value:!0});nt.default=Vc;var WT=_o();Object.defineProperty(nt,"KeywordCxt",{enumerable:!0,get:o(function(){return WT.KeywordCxt},"get")});var Po=_o();Object.defineProperty(nt,"_",{enumerable:!0,get:o(function(){return Po._},"get")});Object.defineProperty(nt,"str",{enumerable:!0,get:o(function(){return Po.str},"get")});Object.defineProperty(nt,"stringify",{enumerable:!0,get:o(function(){return Po.stringify},"get")});Object.defineProperty(nt,"nil",{enumerable:!0,get:o(function(){return Po.nil},"get")});Object.defineProperty(nt,"Name",{enumerable:!0,get:o(function(){return Po.Name},"get")});Object.defineProperty(nt,"CodeGen",{enumerable:!0,get:o(function(){return Po.CodeGen},"get")})});var vv=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var KT={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Md.default=KT});var _v=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var YT=vv(),QT=ks(),JT=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",YT.default,QT.default];qd.default=JT});var Sv=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var Hc=se(),An=Hc.operators,Uc={maximum:{okStr:"<=",ok:An.LTE,fail:An.GT},minimum:{okStr:">=",ok:An.GTE,fail:An.LT},exclusiveMaximum:{okStr:"<",ok:An.LT,fail:An.GTE},exclusiveMinimum:{okStr:">",ok:An.GT,fail:An.LTE}},XT={message:o(({keyword:e,schemaCode:t})=>(0,Hc.str)`must be ${Uc[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Hc._)`{comparison: ${Uc[e].okStr}, limit: ${t}}`,"params")},ej={keyword:Object.keys(Uc),type:"number",schemaType:"number",$data:!0,error:XT,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Hc._)`${r} ${Uc[t].fail} ${n} || isNaN(${r})`)}};Dd.default=ej});var Ov=v(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var tj=Sv(),rj=Lp(),nj=Vp(),ij=Up(),oj=Gp(),sj=Wp(),aj=Yp(),cj=ed(),uj=nd(),lj=od(),fj=[tj.default,rj.default,nj.default,ij.default,oj.default,sj.default,aj.default,cj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},uj.default,lj.default];Ld.default=fj});var Bd=v(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.dynamicAnchor=void 0;var Fd=se(),pj=ir(),Pv=Cs(),dj=ks(),hj={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Ev(e,e.schema),"code")};function Ev(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Fd._)`${pj.default.dynamicAnchors}${(0,Fd.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:mj(e);r.if((0,Fd._)`!${i}`,()=>r.assign(i,s))}o(Ev,"dynamicAnchor");zs.dynamicAnchor=Ev;function mj(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Pv.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Pv.compileSchema.call(n,l),(0,dj.getValidate)(e,l)}o(mj,"_getValidate");zs.default=hj});var Vd=v(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.dynamicRef=void 0;var $v=se(),gj=ir(),wv=ks(),yj={keyword:"$dynamicRef",schemaType:"string",code:o(e=>xv(e,e.schema),"code")};function xv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,$v._)`${gj.default.dynamicAnchors}${(0,$v.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,wv.callRef)(e,u),r.let(l,!0)}):()=>(0,wv.callRef)(e,u)}o(c,"_callRef")}o(xv,"dynamicRef");Gs.dynamicRef=xv;Gs.default=yj});var Av=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var bj=Bd(),vj=he(),_j={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,bj.dynamicAnchor)(e,""):(0,vj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Hd.default=_j});var Iv=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var Sj=Vd(),Oj={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,Sj.dynamicRef)(e,e.schema),"code")};Ud.default=Oj});var Cv=v(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Pj=Bd(),Ej=Vd(),$j=Av(),wj=Iv(),xj=[Pj.default,Ej.default,$j.default,wj.default];zd.default=xj});var jv=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var Tv=Nc(),Aj={keyword:"dependentRequired",type:"object",schemaType:"object",error:Tv.error,code:o(e=>(0,Tv.validatePropertyDeps)(e),"code")};Gd.default=Aj});var Rv=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Ij=Nc(),Cj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Ij.validateSchemaDeps)(e),"code")};Zd.default=Cj});var Nv=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var Tj=he(),jj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Tj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Wd.default=jj});var kv=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var Rj=jv(),Nj=Rv(),kj=Nv(),Mj=[Rj.default,Nj.default,kj.default];Kd.default=Mj});var qv=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var In=se(),Mv=he(),qj=ir(),Dj={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,In._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Lj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Dj,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof In.Name?t.if((0,In._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,In._)`${i} === ${qj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Mv.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Mv.Type.Str},d),a||t.if((0,In.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,In._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,In._)`${d} !== ${y}`);return(0,In.and)(...h)}o(p,"unevaluatedStatic")}};Yd.default=Lj});var Lv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var wi=se(),Dv=he(),Fj={message:o(({params:{len:e}})=>(0,wi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,wi._)`{limit: ${e}}`,"params")},Bj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Fj,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,wi._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,wi._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Dv.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,wi._)`${a} <= ${s}`);t.if((0,wi.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Dv.Type.Num},u),i.allErrors||t.if((0,wi.not)(u),()=>t.break())})}o(c,"validateItems")}};Qd.default=Bj});var Fv=v(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var Vj=qv(),Hj=Lv(),Uj=[Vj.default,Hj.default];Jd.default=Uj});var Bv=v(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.contentVocabulary=Eo.metadataVocabulary=void 0;Eo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Eo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Hv=v(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var zj=_v(),Gj=Ov(),Zj=xd(),Wj=Cv(),Kj=kv(),Yj=Fv(),Qj=Cd(),Vv=Bv(),Jj=[Wj.default,zj.default,Gj.default,(0,Zj.default)(!0),Qj.default,Vv.metadataVocabulary,Vv.contentVocabulary,Kj.default,Yj.default];Xd.default=Jj});var Uv=v((FB,Xj)=>{Xj.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 zv=v((BB,eR)=>{eR.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 Gv=v((VB,tR)=>{tR.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 Zv=v((HB,rR)=>{rR.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 Wv=v((UB,nR)=>{nR.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 Kv=v((zB,iR)=>{iR.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 Yv=v((GB,oR)=>{oR.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 Qv=v((ZB,sR)=>{sR.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 Jv=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var aR=Uv(),cR=zv(),uR=Gv(),lR=Zv(),fR=Wv(),pR=Kv(),dR=Yv(),hR=Qv(),mR=["/properties"];function gR(e){return[aR,cR,uR,lR,fR,t(this,pR),dR,t(this,hR)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,mR):n}o(t,"with$data")}o(gR,"addMetaSchema2020");eh.default=gR});var Xv=v((Me,rh)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var yR=_o(),bR=Hv(),vR=Nd(),_R=Jv(),th="https://json-schema.org/draft/2020-12/schema",nh=class nh extends yR.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),bR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(vR.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(_R.default.call(this,t),this.refs["http://json-schema.org/schema"]=th)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(th)?th:void 0)}};o(nh,"Ajv2020");var $o=nh;Me.Ajv2020=$o;rh.exports=Me=$o;rh.exports.Ajv2020=$o;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=$o;var SR=As();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:o(function(){return SR.KeywordCxt},"get")});var wo=se();Object.defineProperty(Me,"_",{enumerable:!0,get:o(function(){return wo._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:o(function(){return wo.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:o(function(){return wo.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:o(function(){return wo.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:o(function(){return wo.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:o(function(){return wo.CodeGen},"get")});var OR=Oc();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:o(function(){return OR.default},"get")});var PR=Is();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:o(function(){return PR.default},"get")})});var e_=v((QB,ER)=>{ER.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 t_=v((JB,$R)=>{$R.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 r_=v((XB,wR)=>{wR.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 n_=v((eV,xR)=>{xR.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 i_=v((lt,xo)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.openapi=lt.openapiV31=lt.openapiV3=lt.openapiV2=lt.openapiV1=void 0;lt.openapiV1=e_();lt.openapiV2=t_();lt.openapiV3=r_();lt.openapiV31=n_();lt.openapi={v1:lt.openapiV1,v2:lt.openapiV2,v3:lt.openapiV3,v31:lt.openapiV31};lt.default=lt.openapi;typeof xo=="object"&&typeof xo.exports=="object"&&(xo.exports=Object.assign(xo.exports.default,xo.exports))});var sh=v((tV,o_)=>{"use strict";var AR=nc(),{ono:IR}=br(),CR=bv(),TR=Xv(),{openapi:ih}=i_();o_.exports=jR;function jR(e){let t,r;if(e.swagger)r=ih.v2,t=oh();else if(e.openapi.startsWith("3.1")){r=ih.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=oh(!1)}else r=ih.v3,t=oh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
|
|
14
|
-
`+
|
|
15
|
-
`);return r}o(
|
|
13
|
+
deps: ${r}}`,"params")};var JI={keyword:"dependencies",type:"object",schemaType:"object",error:Vr.error,code(e){let[t,r]=XI(e);Y0(e,t),Q0(e,r)}};function XI({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(XI,"splitDependencies");function Y0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Us.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Us.checkReportMissingProp)(e,l)}):(r.if((0,bd._)`${u} && (${(0,Us.checkMissingProp)(e,c,s)})`),(0,Us.reportMissingProp)(e,s),r.else())}}o(Y0,"validatePropertyDeps");Vr.validatePropertyDeps=Y0;function Q0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,QI.alwaysValidSchema)(s,t[c])||(r.if((0,Us.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Q0,"validateSchemaDeps");Vr.validateSchemaDeps=Q0;Vr.default=JI});var X0=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var J0=se(),ej=he(),tj={message:"property name must be valid",params:o(({params:e})=>(0,J0._)`{propertyName: ${e.propertyName}}`,"params")},rj={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:tj,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,ej.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,J0.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};vd.default=rj});var Sd=v(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var kc=or(),Pr=se(),nj=ir(),Mc=he(),ij={message:"must NOT have additional properties",params:o(({params:e})=>(0,Pr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},oj={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ij,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Mc.alwaysValidSchema)(a,r))return;let l=(0,kc.allSchemaProperties)(n.properties),p=(0,kc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Pr._)`${s} === ${nj.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}o(f,"checkAdditionalProperties");function d(g){let $;if(l.length>8){let w=(0,Mc.schemaRefOrVal)(a,n.properties,"properties");$=(0,kc.isOwnProperty)(t,w,g)}else l.length?$=(0,Pr.or)(...l.map(w=>(0,Pr._)`${g} === ${w}`)):$=Pr.nil;return p.length&&($=(0,Pr.or)($,...p.map(w=>(0,Pr._)`${(0,kc.usePattern)(e,w)}.test(${g})`))),(0,Pr.not)($)}o(d,"isAdditional");function h(g){t.code((0,Pr._)`delete ${i}[${g}]`)}o(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Mc.alwaysValidSchema)(a,r)){let $=t.name("valid");u.removeAdditional==="failing"?(b(g,$,!1),t.if((0,Pr.not)($),()=>{e.reset(),h(g)})):(b(g,$),c||t.if((0,Pr.not)($),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,$,w){let j={keyword:"additionalProperties",dataProp:g,dataPropType:Mc.Type.Str};w===!1&&Object.assign(j,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(j,$)}o(b,"applyAdditionalSchema")}};_d.default=oj});var rv=v(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var sj=As(),ev=or(),Pd=he(),tv=Sd(),aj={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&tv.default.code(new sj.KeywordCxt(s,tv.default,"additionalProperties"));let a=(0,ev.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Pd.mergeEvaluated.props(t,(0,Pd.toHash)(a),s.props));let c=a.filter(f=>!(0,Pd.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,ev.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};Od.default=aj});var sv=v(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var nv=or(),qc=se(),iv=he(),ov=he(),cj={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,nv.allSchemaProperties)(r),u=c.filter(b=>(0,iv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof qc.Name)&&(s.props=(0,ov.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,iv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,qc._)`${(0,nv.usePattern)(e,b)}.test(${g})`,()=>{let $=u.includes(b);$||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:ov.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,qc._)`${f}[${g}]`,!0):!$&&!s.allErrors&&t.if((0,qc.not)(p),()=>t.break())})})}o(y,"validateProperties")}};Ed.default=cj});var av=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var uj=he(),lj={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,uj.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"}};$d.default=lj});var cv=v(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var fj=or(),pj={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fj.validateUnion,error:{message:"must match a schema in anyOf"}};wd.default=pj});var uv=v(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var Dc=se(),dj=he(),hj={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Dc._)`{passingSchemas: ${e.passing}}`,"params")},mj={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:hj,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,dj.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Dc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Dc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Dc.Name)})})}o(l,"validateOneOf")}};xd.default=mj});var lv=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var gj=he(),yj={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,gj.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Ad.default=yj});var dv=v(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var Lc=se(),pv=he(),bj={message:o(({params:e})=>(0,Lc.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Lc._)`{failingKeyword: ${e.ifClause}}`,"params")},vj={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bj,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,pv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=fv(n,"then"),s=fv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,Lc.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Lc._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function fv(e,t){let r=e.schema[t];return r!==void 0&&!(0,pv.alwaysValidSchema)(e,r)}o(fv,"hasSchema");Cd.default=vj});var hv=v(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var _j=he(),Sj={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,_j.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Id.default=Sj});var Td=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var Pj=dd(),Oj=G0(),Ej=hd(),$j=Z0(),wj=K0(),xj=Nc(),Aj=X0(),Cj=Sd(),Ij=rv(),jj=sv(),Tj=av(),Rj=cv(),Nj=uv(),kj=lv(),Mj=dv(),qj=hv();function Dj(e=!1){let t=[Tj.default,Rj.default,Nj.default,kj.default,Mj.default,qj.default,Aj.default,Cj.default,xj.default,Ij.default,jj.default];return e?t.push(Oj.default,$j.default):t.push(Pj.default,Ej.default),t.push(wj.default),t}o(Dj,"getApplicator");jd.default=Dj});var mv=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Qe=se(),Lj={message:o(({schemaCode:e})=>(0,Qe.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qe._)`{format: ${e}}`,"params")},Fj={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Lj,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,Qe._)`${y}[${a}]`),g=r.let("fType"),$=r.let("format");r.if((0,Qe._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,Qe._)`${b}.type || "string"`).assign($,(0,Qe._)`${b}.validate`),()=>r.assign(g,(0,Qe._)`"string"`).assign($,b)),e.fail$data((0,Qe.or)(w(),j()));function w(){return u.strictSchema===!1?Qe.nil:(0,Qe._)`${a} && !${$}`}o(w,"unknownFmt");function j(){let C=p.$async?(0,Qe._)`(${b}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,Qe._)`${$}(${n})`,I=(0,Qe._)`(typeof ${$} == "function" ? ${C} : ${$}.test(${n}))`;return(0,Qe._)`${$} && ${$} !== true && ${g} === ${t} && !${I}`}o(j,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){w();return}if(y===!0)return;let[b,g,$]=j(y);b===t&&e.pass(C());function w(){if(u.strictSchema===!1){f.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(w,"unknownFormat");function j(I){let ce=I instanceof RegExp?(0,Qe.regexpCode)(I):u.code.formats?(0,Qe._)`${u.code.formats}${(0,Qe.getProperty)(s)}`:void 0,re=r.scopeValue("formats",{key:s,ref:I,code:ce});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Qe._)`${re}.validate`]:["string",I,re]}o(j,"getFormat");function C(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${$}(${n})`}return typeof g=="function"?(0,Qe._)`${$}(${n})`:(0,Qe._)`${$}.test(${n})`}o(C,"validCondition")}o(h,"validateFormat")}};Rd.default=Fj});var kd=v(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Vj=mv(),Bj=[Vj.default];Nd.default=Bj});var gv=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var Hj=k0(),Uj=B0(),zj=Td(),Gj=kd(),Wj=["title","description","default"],Zj=[Hj.default,Uj.default,zj.default(),Gj.default,Wj];Md.default=Zj});var bv=v(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DiscrError=void 0;var yv;(function(e){e.Tag="tag",e.Mapping="mapping"})(yv||(Fc.DiscrError=yv={}))});var Ld=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var Po=se(),qd=bv(),vv=Is(),Kj=Cs(),Yj=he(),Qj={message:o(({params:{discrError:e,tagName:t}})=>e===qd.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Po._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},Jj={keyword:"discriminator",type:"object",schemaType:"object",error:Qj,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Po._)`${r}${(0,Po.getProperty)(c)}`);t.if((0,Po._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:qd.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Po._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:qd.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Po.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=$(i),g=!0;for(let C=0;C<a.length;C++){let I=a[C];if(I!=null&&I.$ref&&!(0,Yj.schemaHasRulesButRef)(I,s.self.RULES)){let re=I.$ref;if(I=vv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,re),I instanceof vv.SchemaEnv&&(I=I.schema),I===void 0)throw new Kj.default(s.opts.uriResolver,s.baseId,re)}let ce=(h=I==null?void 0:I.properties)===null||h===void 0?void 0:h[c];if(typeof ce!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||$(I)),w(ce,C)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function $({required:C}){return Array.isArray(C)&&C.includes(c)}function w(C,I){if(C.const)j(C.const,I);else if(C.enum)for(let ce of C.enum)j(ce,I);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function j(C,I){if(typeof C!="string"||C in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[C]=I}}o(d,"getMapping")}};Dd.default=Jj});var _v=v((OV,Xj)=>{Xj.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 Ov=v((ot,Pv)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.CodeGen=ot.Name=ot.nil=ot.stringify=ot.str=ot._=ot.KeywordCxt=void 0;var eT=_o(),tT=gv(),rT=Ld(),Sv=_v(),nT=["/properties"],Vc="http://json-schema.org/draft-04/schema",Fd=class Fd extends eT.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),tT.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(rT.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Sv,nT):Sv;this.addMetaSchema(t,Vc,!1),this.refs["http://json-schema.org/schema"]=Vc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Vc)?Vc:void 0)}};o(Fd,"Ajv");var Bc=Fd;Pv.exports=ot=Bc;Object.defineProperty(ot,"__esModule",{value:!0});ot.default=Bc;var iT=_o();Object.defineProperty(ot,"KeywordCxt",{enumerable:!0,get:o(function(){return iT.KeywordCxt},"get")});var Oo=_o();Object.defineProperty(ot,"_",{enumerable:!0,get:o(function(){return Oo._},"get")});Object.defineProperty(ot,"str",{enumerable:!0,get:o(function(){return Oo.str},"get")});Object.defineProperty(ot,"stringify",{enumerable:!0,get:o(function(){return Oo.stringify},"get")});Object.defineProperty(ot,"nil",{enumerable:!0,get:o(function(){return Oo.nil},"get")});Object.defineProperty(ot,"Name",{enumerable:!0,get:o(function(){return Oo.Name},"get")});Object.defineProperty(ot,"CodeGen",{enumerable:!0,get:o(function(){return Oo.CodeGen},"get")})});var Ev=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var oT={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vd.default=oT});var $v=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var sT=Ev(),aT=ks(),cT=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",sT.default,aT.default];Bd.default=cT});var wv=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var Hc=se(),An=Hc.operators,Uc={maximum:{okStr:"<=",ok:An.LTE,fail:An.GT},minimum:{okStr:">=",ok:An.GTE,fail:An.LT},exclusiveMaximum:{okStr:"<",ok:An.LT,fail:An.GTE},exclusiveMinimum:{okStr:">",ok:An.GT,fail:An.LTE}},uT={message:o(({keyword:e,schemaCode:t})=>(0,Hc.str)`must be ${Uc[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Hc._)`{comparison: ${Uc[e].okStr}, limit: ${t}}`,"params")},lT={keyword:Object.keys(Uc),type:"number",schemaType:"number",$data:!0,error:uT,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Hc._)`${r} ${Uc[t].fail} ${n} || isNaN(${r})`)}};Hd.default=lT});var xv=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var fT=wv(),pT=Up(),dT=Wp(),hT=Kp(),mT=Qp(),gT=Xp(),yT=td(),bT=od(),vT=cd(),_T=ld(),ST=[fT.default,pT.default,dT.default,hT.default,mT.default,gT.default,yT.default,bT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},vT.default,_T.default];Ud.default=ST});var Gd=v(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.dynamicAnchor=void 0;var zd=se(),PT=ir(),Av=Is(),OT=ks(),ET={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Cv(e,e.schema),"code")};function Cv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,zd._)`${PT.default.dynamicAnchors}${(0,zd.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:$T(e);r.if((0,zd._)`!${i}`,()=>r.assign(i,s))}o(Cv,"dynamicAnchor");zs.dynamicAnchor=Cv;function $T(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Av.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Av.compileSchema.call(n,l),(0,OT.getValidate)(e,l)}o($T,"_getValidate");zs.default=ET});var Wd=v(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.dynamicRef=void 0;var Iv=se(),wT=ir(),jv=ks(),xT={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Tv(e,e.schema),"code")};function Tv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Iv._)`${wT.default.dynamicAnchors}${(0,Iv.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,jv.callRef)(e,u),r.let(l,!0)}):()=>(0,jv.callRef)(e,u)}o(c,"_callRef")}o(Tv,"dynamicRef");Gs.dynamicRef=Tv;Gs.default=xT});var Rv=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var AT=Gd(),CT=he(),IT={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,AT.dynamicAnchor)(e,""):(0,CT.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Zd.default=IT});var Nv=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var jT=Wd(),TT={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,jT.dynamicRef)(e,e.schema),"code")};Kd.default=TT});var kv=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var RT=Gd(),NT=Wd(),kT=Rv(),MT=Nv(),qT=[RT.default,NT.default,kT.default,MT.default];Yd.default=qT});var qv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var Mv=Nc(),DT={keyword:"dependentRequired",type:"object",schemaType:"object",error:Mv.error,code:o(e=>(0,Mv.validatePropertyDeps)(e),"code")};Qd.default=DT});var Dv=v(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var LT=Nc(),FT={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,LT.validateSchemaDeps)(e),"code")};Jd.default=FT});var Lv=v(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var VT=he(),BT={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,VT.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Xd.default=BT});var Fv=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var HT=qv(),UT=Dv(),zT=Lv(),GT=[HT.default,UT.default,zT.default];eh.default=GT});var Bv=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var Cn=se(),Vv=he(),WT=ir(),ZT={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Cn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},KT={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:ZT,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof Cn.Name?t.if((0,Cn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,Cn._)`${i} === ${WT.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Vv.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Vv.Type.Str},d),a||t.if((0,Cn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Cn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Cn._)`${d} !== ${y}`);return(0,Cn.and)(...h)}o(p,"unevaluatedStatic")}};th.default=KT});var Uv=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var $i=se(),Hv=he(),YT={message:o(({params:{len:e}})=>(0,$i.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,$i._)`{limit: ${e}}`,"params")},QT={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:YT,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,$i._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,$i._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Hv.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,$i._)`${a} <= ${s}`);t.if((0,$i.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Hv.Type.Num},u),i.allErrors||t.if((0,$i.not)(u),()=>t.break())})}o(c,"validateItems")}};rh.default=QT});var zv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var JT=Bv(),XT=Uv(),eR=[JT.default,XT.default];nh.default=eR});var Gv=v(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.contentVocabulary=Eo.metadataVocabulary=void 0;Eo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Eo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Zv=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var tR=$v(),rR=xv(),nR=Td(),iR=kv(),oR=Fv(),sR=zv(),aR=kd(),Wv=Gv(),cR=[iR.default,tR.default,rR.default,(0,nR.default)(!0),aR.default,Wv.metadataVocabulary,Wv.contentVocabulary,oR.default,sR.default];ih.default=cR});var Kv=v((QV,uR)=>{uR.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 Yv=v((JV,lR)=>{lR.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 Qv=v((XV,fR)=>{fR.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 Jv=v((eB,pR)=>{pR.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 Xv=v((tB,dR)=>{dR.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 e_=v((rB,hR)=>{hR.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 t_=v((nB,mR)=>{mR.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 r_=v((iB,gR)=>{gR.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 n_=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var yR=Kv(),bR=Yv(),vR=Qv(),_R=Jv(),SR=Xv(),PR=e_(),OR=t_(),ER=r_(),$R=["/properties"];function wR(e){return[yR,bR,vR,_R,SR,t(this,PR),OR,t(this,ER)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,$R):n}o(t,"with$data")}o(wR,"addMetaSchema2020");oh.default=wR});var i_=v((Me,ah)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var xR=_o(),AR=Zv(),CR=Ld(),IR=n_(),sh="https://json-schema.org/draft/2020-12/schema",ch=class ch extends xR.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),AR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(CR.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(IR.default.call(this,t),this.refs["http://json-schema.org/schema"]=sh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(sh)?sh:void 0)}};o(ch,"Ajv2020");var $o=ch;Me.Ajv2020=$o;ah.exports=Me=$o;ah.exports.Ajv2020=$o;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=$o;var jR=As();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:o(function(){return jR.KeywordCxt},"get")});var wo=se();Object.defineProperty(Me,"_",{enumerable:!0,get:o(function(){return wo._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:o(function(){return wo.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:o(function(){return wo.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:o(function(){return wo.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:o(function(){return wo.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:o(function(){return wo.CodeGen},"get")});var TR=Pc();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:o(function(){return TR.default},"get")});var RR=Cs();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:o(function(){return RR.default},"get")})});var o_=v((cB,NR)=>{NR.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 s_=v((uB,kR)=>{kR.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 a_=v((lB,MR)=>{MR.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 c_=v((fB,qR)=>{qR.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 u_=v((lt,xo)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.openapi=lt.openapiV31=lt.openapiV3=lt.openapiV2=lt.openapiV1=void 0;lt.openapiV1=o_();lt.openapiV2=s_();lt.openapiV3=a_();lt.openapiV31=c_();lt.openapi={v1:lt.openapiV1,v2:lt.openapiV2,v3:lt.openapiV3,v31:lt.openapiV31};lt.default=lt.openapi;typeof xo=="object"&&typeof xo.exports=="object"&&(xo.exports=Object.assign(xo.exports.default,xo.exports))});var fh=v((pB,l_)=>{"use strict";var DR=nc(),{ono:LR}=br(),FR=Ov(),VR=i_(),{openapi:uh}=u_();l_.exports=BR;function BR(e){let t,r;if(e.swagger)r=uh.v2,t=lh();else if(e.openapi.startsWith("3.1")){r=uh.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=lh(!1)}else r=uh.v3,t=lh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
|
|
14
|
+
`+HR(i);throw LR.syntax(i,{details:i},s)}}o(BR,"validateSchema");function lh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new FR(t):new VR(t)}o(lh,"initializeAjv");function HR(e,t){t=t||" ";let r="";for(let n of e)r+=DR.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
15
|
+
`);return r}o(HR,"formatAjvError")});var p_=v((hB,f_)=>{"use strict";f_.exports=["get","put","post","delete","options","head","patch"]});var hh=v((mB,g_)=>{"use strict";var UR=nc(),{ono:_t}=br(),zR=p_(),ph=["array","boolean","integer","number","string"],h_=["array","boolean","integer","number","string","object","null",void 0];g_.exports=GR;function GR(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&WR(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;m_(s,a)}}o(GR,"validateSpec");function WR(e,t,r,n){for(let i of zR){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw _t.syntax(`Validation failed. Duplicate operation id '${c}'`);ZR(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let p=s.responses[l],f=a+"/responses/"+l;JR(l,p||{},f)}}}}o(WR,"validatePath");function ZR(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{d_(s)}catch(u){throw _t.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{d_(a)}catch(u){throw _t.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());KR(c,i),YR(c,r,i),QR(c,e,n,i)}o(ZR,"validateParameters");function KR(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw _t.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw _t.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(KR,"validateBodyParameters");function YR(e,t,r){let n=t.match(UR.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw _t.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 _t.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw _t.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw _t.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(YR,"validatePathParameters");function QR(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=h_;break;case"formData":a=i,c=ph.concat("file");break;default:a=i,c=ph}if(dh(a,s,c),m_(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw _t.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(QR,"validateParameterTypes");function d_(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 _t.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(d_,"checkForDuplicates");function JR(e,t,r){if(e!=="default"&&(e<100||e>599))throw _t.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;dh(s,a,ph)}if(t.schema){let i=h_.concat("file");if(i.indexOf(t.schema.type)===-1)throw _t.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);dh(t.schema,r+"/schema",i)}}o(JR,"validateResponse");function dh(e,t,r){if(r.indexOf(e.type)===-1)throw _t.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw _t.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(dh,"validateSchema");function m_(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw _t.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(m_,"validateRequiredPropertiesExist")});var Er=v(Or=>{"use strict";var{Ono:y_}=br(),{stripHash:b_,toFileSystemPath:XR}=zt(),Ao,In=Or.JSONParserError=(Ao=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,y_.extend(this)}},o(Ao,"JSONParserError"),Ao);jn(In);var wi,v_=Or.JSONParserErrorGroup=(wi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${XR(t.$refs._root$Ref.path)}'`,y_.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 wi.getParserErrors(this.files)}},o(wi,"JSONParserErrorGroup"),wi);jn(v_);var Co,eN=Or.ParserError=(Co=class extends In{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Co,"ParserError"),Co);jn(eN);var Io,tN=Or.UnmatchedParserError=(Io=class extends In{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Io,"UnmatchedParserError"),Io);jn(tN);var jo,rN=Or.ResolverError=(jo=class extends In{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(jo,"ResolverError"),jo);jn(rN);var To,nN=Or.UnmatchedResolverError=(To=class extends In{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(To,"UnmatchedResolverError"),To);jn(nN);var Ro,iN=Or.MissingPointerError=(Ro=class extends In{constructor(t,r){super(`Token "${t}" does not exist.`,b_(r)),this.code="EMISSINGPOINTER"}},o(Ro,"MissingPointerError"),Ro);jn(iN);var No,oN=Or.InvalidPointerError=(No=class extends In{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,b_(r)),this.code="EINVALIDPOINTER"}},o(No,"InvalidPointerError"),No);jn(oN);function jn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(jn,"setErrorName");Or.isHandledError=function(e){return e instanceof In||e instanceof v_};Or.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var S_=v((vB,__)=>{"use strict";var{ParserError:sN}=Er();__.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 sN(r.message,e.url)}}else return t}}});var Ai=v((_B,xi)=>{"use strict";function P_(e){return typeof e>"u"||e===null}o(P_,"isNothing");function aN(e){return typeof e=="object"&&e!==null}o(aN,"isObject");function cN(e){return Array.isArray(e)?e:P_(e)?[]:[e]}o(cN,"toArray");function uN(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(uN,"extend");function lN(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(lN,"repeat");function fN(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(fN,"isNegativeZero");xi.exports.isNothing=P_;xi.exports.isObject=aN;xi.exports.toArray=cN;xi.exports.repeat=lN;xi.exports.isNegativeZero=fN;xi.exports.extend=uN});var ko=v((PB,O_)=>{"use strict";function Ws(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(Ws,"YAMLException");Ws.prototype=Object.create(Error.prototype);Ws.prototype.constructor=Ws;Ws.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");O_.exports=Ws});var w_=v((EB,$_)=>{"use strict";var E_=Ai();function mh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(mh,"Mark");mh.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
16
16
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
|
|
17
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),
|
|
18
|
-
`+
|
|
19
|
-
`+r)),n},"toString")
|
|
20
|
-
\r`;function
|
|
21
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(
|
|
22
|
-
`,t-1))}o(
|
|
23
|
-
`,s?1+u:u):i===
|
|
24
|
-
`);break}for(n?
|
|
25
|
-
`,s?1+u:u)):l?(l=!1,e.result+=
|
|
26
|
-
`,u+1)):u===0?s&&(e.result+=" "):e.result+=
|
|
27
|
-
`,u):e.result+=
|
|
28
|
-
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Br(f)&&f!==0;)f=e.input.charCodeAt(++e.position);
|
|
29
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
17
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),E_.repeat(" ",t)+n+c+s+`
|
|
18
|
+
`+E_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");mh.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
19
|
+
`+r)),n},"toString");$_.exports=mh});var st=v((wB,A_)=>{"use strict";var x_=ko(),pN=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dN=["scalar","sequence","mapping"];function hN(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(hN,"compileStyleAliases");function mN(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(pN.indexOf(r)===-1)throw new x_('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=hN(t.styleAliases||null),dN.indexOf(this.kind)===-1)throw new x_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(mN,"Type");A_.exports=mN});var Ci=v((AB,I_)=>{"use strict";var C_=Ai(),zc=ko(),gN=st();function gh(e,t,r){var n=[];return e.include.forEach(function(i){r=gh(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(gh,"compileList");function yN(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(yN,"compileMap");function Mo(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 zc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=gh(this,"implicit",[]),this.compiledExplicit=gh(this,"explicit",[]),this.compiledTypeMap=yN(this.compiledImplicit,this.compiledExplicit)}o(Mo,"Schema");Mo.DEFAULT=null;Mo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Mo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new zc("Wrong number of arguments for Schema.create function")}if(t=C_.toArray(t),r=C_.toArray(r),!t.every(function(n){return n instanceof Mo}))throw new zc("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof gN}))throw new zc("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Mo({include:t,explicit:r})},"createSchema");I_.exports=Mo});var T_=v((IB,j_)=>{"use strict";var bN=st();j_.exports=new bN("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var N_=v((TB,R_)=>{"use strict";var vN=st();R_.exports=new vN("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var M_=v((NB,k_)=>{"use strict";var _N=st();k_.exports=new _N("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Gc=v((MB,q_)=>{"use strict";var SN=Ci();q_.exports=new SN({explicit:[T_(),N_(),M_()]})});var L_=v((qB,D_)=>{"use strict";var PN=st();function ON(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(ON,"resolveYamlNull");function EN(){return null}o(EN,"constructYamlNull");function $N(e){return e===null}o($N,"isNull");D_.exports=new PN("tag:yaml.org,2002:null",{kind:"scalar",resolve:ON,construct:EN,predicate:$N,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var V_=v((LB,F_)=>{"use strict";var wN=st();function xN(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(xN,"resolveYamlBoolean");function AN(e){return e==="true"||e==="True"||e==="TRUE"}o(AN,"constructYamlBoolean");function CN(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(CN,"isBoolean");F_.exports=new wN("tag:yaml.org,2002:bool",{kind:"scalar",resolve:xN,construct:AN,predicate:CN,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var H_=v((VB,B_)=>{"use strict";var IN=Ai(),jN=st();function TN(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(TN,"isHexCode");function RN(e){return 48<=e&&e<=55}o(RN,"isOctCode");function NN(e){return 48<=e&&e<=57}o(NN,"isDecCode");function kN(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(!TN(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!RN(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(!NN(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(kN,"resolveYamlInteger");function MN(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(MN,"constructYamlInteger");function qN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!IN.isNegativeZero(e)}o(qN,"isInteger");B_.exports=new jN("tag:yaml.org,2002:int",{kind:"scalar",resolve:kN,construct:MN,predicate:qN,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var G_=v((HB,z_)=>{"use strict";var U_=Ai(),DN=st(),LN=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 FN(e){return!(e===null||!LN.test(e)||e[e.length-1]==="_")}o(FN,"resolveYamlFloat");function VN(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(VN,"constructYamlFloat");var BN=/^[-+]?[0-9]+e/;function HN(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(U_.isNegativeZero(e))return"-0.0";return r=e.toString(10),BN.test(r)?r.replace("e",".e"):r}o(HN,"representYamlFloat");function UN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||U_.isNegativeZero(e))}o(UN,"isFloat");z_.exports=new DN("tag:yaml.org,2002:float",{kind:"scalar",resolve:FN,construct:VN,predicate:UN,represent:HN,defaultStyle:"lowercase"})});var yh=v((zB,W_)=>{"use strict";var zN=Ci();W_.exports=new zN({include:[Gc()],implicit:[L_(),V_(),H_(),G_()]})});var bh=v((GB,Z_)=>{"use strict";var GN=Ci();Z_.exports=new GN({include:[yh()]})});var J_=v((WB,Q_)=>{"use strict";var WN=st(),K_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Y_=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 ZN(e){return e===null?!1:K_.exec(e)!==null||Y_.exec(e)!==null}o(ZN,"resolveYamlTimestamp");function KN(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=K_.exec(e),t===null&&(t=Y_.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(KN,"constructYamlTimestamp");function YN(e){return e.toISOString()}o(YN,"representYamlTimestamp");Q_.exports=new WN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ZN,construct:KN,instanceOf:Date,represent:YN})});var eS=v((KB,X_)=>{"use strict";var QN=st();function JN(e){return e==="<<"||e===null}o(JN,"resolveYamlMerge");X_.exports=new QN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:JN})});var nS=v((QB,rS)=>{"use strict";var Ii;try{tS=require,Ii=tS("buffer").Buffer}catch{}var tS,XN=st(),vh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
20
|
+
\r`;function ek(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=vh;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(ek,"resolveYamlBinary");function tk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=vh,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Ii?Ii.from?Ii.from(c):new Ii(c):c}o(tk,"constructYamlBinary");function rk(e){var t="",r=0,n,i,s=e.length,a=vh;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(rk,"representYamlBinary");function nk(e){return Ii&&Ii.isBuffer(e)}o(nk,"isBinary");rS.exports=new XN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ek,construct:tk,predicate:nk,represent:rk})});var oS=v((XB,iS)=>{"use strict";var ik=st(),ok=Object.prototype.hasOwnProperty,sk=Object.prototype.toString;function ak(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,sk.call(i)!=="[object Object]")return!1;for(s in i)if(ok.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(ak,"resolveYamlOmap");function ck(e){return e!==null?e:[]}o(ck,"constructYamlOmap");iS.exports=new ik("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ak,construct:ck})});var aS=v((t9,sS)=>{"use strict";var uk=st(),lk=Object.prototype.toString;function fk(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],lk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(fk,"resolveYamlPairs");function pk(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(pk,"constructYamlPairs");sS.exports=new uk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fk,construct:pk})});var uS=v((n9,cS)=>{"use strict";var dk=st(),hk=Object.prototype.hasOwnProperty;function mk(e){if(e===null)return!0;var t,r=e;for(t in r)if(hk.call(r,t)&&r[t]!==null)return!1;return!0}o(mk,"resolveYamlSet");function gk(e){return e!==null?e:{}}o(gk,"constructYamlSet");cS.exports=new dk("tag:yaml.org,2002:set",{kind:"mapping",resolve:mk,construct:gk})});var qo=v((o9,lS)=>{"use strict";var yk=Ci();lS.exports=new yk({include:[bh()],implicit:[J_(),eS()],explicit:[nS(),oS(),aS(),uS()]})});var pS=v((s9,fS)=>{"use strict";var bk=st();function vk(){return!0}o(vk,"resolveJavascriptUndefined");function _k(){}o(_k,"constructJavascriptUndefined");function Sk(){return""}o(Sk,"representJavascriptUndefined");function Pk(e){return typeof e>"u"}o(Pk,"isUndefined");fS.exports=new bk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:vk,construct:_k,predicate:Pk,represent:Sk})});var hS=v((c9,dS)=>{"use strict";var Ok=st();function Ek(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(Ek,"resolveJavascriptRegExp");function $k(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o($k,"constructJavascriptRegExp");function wk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(wk,"representJavascriptRegExp");function xk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(xk,"isRegExp");dS.exports=new Ok("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Ek,construct:$k,predicate:xk,represent:wk})});var yS=v((l9,gS)=>{"use strict";var Wc;try{mS=require,Wc=mS("esprima")}catch{typeof window<"u"&&(Wc=window.esprima)}var mS,Ak=st();function Ck(e){if(e===null)return!1;try{var t="("+e+")",r=Wc.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(Ck,"resolveJavascriptFunction");function Ik(e){var t="("+e+")",r=Wc.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(Ik,"constructJavascriptFunction");function jk(e){return e.toString()}o(jk,"representJavascriptFunction");function Tk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Tk,"isFunction");gS.exports=new Ak("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Ck,construct:Ik,predicate:Tk,represent:jk})});var Zs=v((p9,vS)=>{"use strict";var bS=Ci();vS.exports=bS.DEFAULT=new bS({include:[qo()],explicit:[pS(),hS(),yS()]})});var DS=v((d9,Ks)=>{"use strict";var sn=Ai(),wS=ko(),Rk=w_(),xS=qo(),Nk=Zs(),Rn=Object.prototype.hasOwnProperty,Zc=1,AS=2,CS=3,Kc=4,_h=1,kk=2,_S=3,Mk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qk=/[\x85\u2028\u2029]/,Dk=/[,\[\]\{\}]/,IS=/^(?:!|!!|![a-z\-]+!)$/i,jS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function SS(e){return Object.prototype.toString.call(e)}o(SS,"_class");function Br(e){return e===10||e===13}o(Br,"is_EOL");function Ti(e){return e===9||e===32}o(Ti,"is_WHITE_SPACE");function Dt(e){return e===9||e===32||e===10||e===13}o(Dt,"is_WS_OR_EOL");function Do(e){return e===44||e===91||e===93||e===123||e===125}o(Do,"is_FLOW_INDICATOR");function Lk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Lk,"fromHexCode");function Fk(e){return e===120?2:e===117?4:e===85?8:0}o(Fk,"escapedHexLen");function Vk(e){return 48<=e&&e<=57?e-48:-1}o(Vk,"fromDecimalCode");function PS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
21
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(PS,"simpleEscapeSequence");function Bk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(Bk,"charFromCodepoint");var TS=new Array(256),RS=new Array(256);for(ji=0;ji<256;ji++)TS[ji]=PS(ji)?1:0,RS[ji]=PS(ji);var ji;function Hk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Nk,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(Hk,"State");function NS(e,t){return new wS(t,new Rk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(NS,"generateError");function ee(e,t){throw NS(e,t)}o(ee,"throwError");function Yc(e,t){e.onWarning&&e.onWarning.call(null,NS(e,t))}o(Yc,"throwWarning");var OS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Yc(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],IS.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Rn.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),jS.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Tn(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||ee(e,"expected valid JSON character");else Mk.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}o(Tn,"captureSegment");function ES(e,t,r,n){var i,s,a,c;for(sn.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],Rn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(ES,"mergeMappings");function Lo(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&SS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&SS(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)ES(e,t,s[u],r);else ES(e,t,s,r);else!e.json&&!Rn.call(r,i)&&Rn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Lo,"storeMappingPair");function Sh(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++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Sh,"readLineBreak");function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ti(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(Br(i))for(Sh(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&&Yc(e,"deficient indentation"),n}o(rt,"skipSeparationSpace");function Qc(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||Dt(r)))}o(Qc,"testDocumentSeparator");function Ph(e,t){t===1?e.result+=" ":t>1&&(e.result+=sn.repeat(`
|
|
22
|
+
`,t-1))}o(Ph,"writeFoldedLines");function Uk(e,t,r){var n,i,s,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Dt(h)||Do(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Dt(i)||r&&Do(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Dt(i)||r&&Do(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Dt(n))break}else{if(e.position===e.lineStart&&Qc(e)||r&&Do(h))break;if(Br(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=p;break}}c&&(Tn(e,s,a,!1),Ph(e,e.line-u),s=a=e.position,c=!1),Ti(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Tn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(Uk,"readPlainScalar");function zk(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(Tn(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 Br(r)?(Tn(e,n,i,!0),Ph(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Qc(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}o(zk,"readSingleQuotedScalar");function Gk(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Tn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Tn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Br(c))rt(e,!1,t);else if(c<256&&TS[c])e.result+=RS[c],e.position++;else if((a=Fk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Lk(c))>=0?s=(s<<4)+a:ee(e,"expected hexadecimal character");e.result+=Bk(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Br(c)?(Tn(e,r,n,!0),Ph(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Qc(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}o(Gk,"readDoubleQuotedScalar");function Wk(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(rt(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||ee(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Dt(c)&&(l=p=!0,e.position++,rt(e,!0,t))),n=e.line,Fo(e,t,Zc,!1,!0),y=e.tag,h=e.result,rt(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),rt(e,!0,t),Fo(e,t,Zc,!1,!0),b=e.result),f?Lo(e,s,d,y,h,b):l?s.push(Lo(e,null,d,y,h,b)):s.push(h),rt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}o(Wk,"readFlowCollection");function Zk(e,t){var r,n,i=_h,s=!1,a=!1,c=t,u=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)_h===i?i=f===43?_S:kk:ee(e,"repeat of a chomping mode identifier");else if((p=Vk(f))>=0)p===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?ee(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Ti(f)){do f=e.input.charCodeAt(++e.position);while(Ti(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Br(f)&&f!==0)}for(;f!==0;){for(Sh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Br(f)){u++;continue}if(e.lineIndent<c){i===_S?e.result+=sn.repeat(`
|
|
23
|
+
`,s?1+u:u):i===_h&&s&&(e.result+=`
|
|
24
|
+
`);break}for(n?Ti(f)?(l=!0,e.result+=sn.repeat(`
|
|
25
|
+
`,s?1+u:u)):l?(l=!1,e.result+=sn.repeat(`
|
|
26
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=sn.repeat(`
|
|
27
|
+
`,u):e.result+=sn.repeat(`
|
|
28
|
+
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Br(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Tn(e,r,e.position,!1)}return!0}o(Zk,"readBlockScalar");function $S(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Dt(a)));){if(c=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Fo(e,t,CS,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o($S,"readBlockSequence");function Kk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&Dt(n))g===63?(y&&(Lo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):ee(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(Fo(e,r,AS,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Ti(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Dt(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Lo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Fo(e,t,Kc,!0,i)&&(y?d=e.result:h=e.result),y||(Lo(e,l,p,f,d,h,s,a),f=d=h=null),rt(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Lo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(Kk,"readBlockMapping");function Yk(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Dt(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),IS.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Dk.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}return s&&!jS.test(s)&&ee(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Rn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}o(Yk,"readTagProperty");function Qk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Dt(r)&&!Do(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(Qk,"readAnchorProperty");function Jk(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&&!Dt(n)&&!Do(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Rn.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}o(Jk,"readAlias");function Fo(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=Kc===r||CS===r,n&&rt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Yk(e)||Qk(e);)rt(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||Kc===r)&&(Zc===r||AS===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&($S(e,b)||Kk(e,b,y))||Wk(e,y)?p=!0:(a&&Zk(e,y)||zk(e,y)||Gk(e,y)?p=!0:Jk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):Uk(e,y,Zc===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&$S(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Rn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ee(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Fo,"composeNode");function Xk(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(rt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Dt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");a!==0;){for(;Ti(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Br(a));break}if(Br(a))break;for(r=e.position;a!==0&&!Dt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Sh(e),Rn.call(OS,n)?OS[n](e,n,i):Yc(e,'unknown document directive "'+n+'"')}if(rt(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,rt(e,!0,-1)):s&&ee(e,"directives end mark is expected"),Fo(e,e.lineIndent-1,Kc,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&qk.test(e.input.slice(t,e.position))&&Yc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Qc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}o(Xk,"readDocument");function kS(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
29
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Hk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(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;)Xk(r);return r.documents}o(kS,"loadDocuments");function MS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=kS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(MS,"loadAll");function qS(e,t){var r=kS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new wS("expected a single document in the stream, but found more")}}o(qS,"load");function e3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),MS(e,t,sn.extend({schema:xS},r))}o(e3,"safeLoadAll");function t3(e,t){return qS(e,sn.extend({schema:xS},t))}o(t3,"safeLoad");Ks.exports.loadAll=MS;Ks.exports.load=qS;Ks.exports.safeLoadAll=e3;Ks.exports.safeLoad=t3});var aP=v((m9,wh)=>{"use strict";var Qs=Ai(),Js=ko(),r3=Zs(),n3=qo(),GS=Object.prototype.toString,WS=Object.prototype.hasOwnProperty,i3=9,Ys=10,o3=13,s3=32,a3=33,c3=34,ZS=35,u3=37,l3=38,f3=39,p3=42,KS=44,d3=45,YS=58,h3=61,m3=62,g3=63,y3=64,QS=91,JS=93,b3=96,XS=123,v3=124,eP=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var _3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function S3(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&WS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(S3,"compileStyleMap");function LS(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 Js("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Qs.repeat("0",n-t.length)+t}o(LS,"encodeHex");function P3(e){this.schema=e.schema||r3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qs.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=S3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(P3,"State");function FS(e,t){for(var r=Qs.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
|
|
30
30
|
`,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
31
|
-
`&&(s+=r),s+=a;return s}o(
|
|
32
|
-
`+Qs.repeat(" ",e.indent*t)}o(
|
|
31
|
+
`&&(s+=r),s+=a;return s}o(FS,"indentString");function Oh(e,t){return`
|
|
32
|
+
`+Qs.repeat(" ",e.indent*t)}o(Oh,"generateNextLine");function O3(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(O3,"testImplicitResolving");function $h(e){return e===s3||e===i3}o($h,"isWhitespace");function Vo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Vo,"isPrintable");function E3(e){return Vo(e)&&!$h(e)&&e!==65279&&e!==o3&&e!==Ys}o(E3,"isNsChar");function VS(e,t){return Vo(e)&&e!==65279&&e!==KS&&e!==QS&&e!==JS&&e!==XS&&e!==eP&&e!==YS&&(e!==ZS||t&&E3(t))}o(VS,"isPlainSafe");function $3(e){return Vo(e)&&e!==65279&&!$h(e)&&e!==d3&&e!==g3&&e!==YS&&e!==KS&&e!==QS&&e!==JS&&e!==XS&&e!==eP&&e!==ZS&&e!==l3&&e!==p3&&e!==a3&&e!==v3&&e!==h3&&e!==m3&&e!==f3&&e!==c3&&e!==u3&&e!==y3&&e!==b3}o($3,"isPlainSafeFirst");function tP(e){var t=/^\n* /;return t.test(e)}o(tP,"needIndentIndicator");var rP=1,nP=2,iP=3,oP=4,Jc=5;function w3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=$3(e.charCodeAt(0))&&!$h(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Vo(a))return Jc;c=s>0?e.charCodeAt(s-1):null,d=d&&VS(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Ys)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!Vo(a))return Jc;c=s>0?e.charCodeAt(s-1):null,d=d&&VS(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?rP:nP:r>9&&tP(e)?Jc:l?oP:iP}o(w3,"chooseScalarStyle");function x3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&_3.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return O3(e,u)}switch(o(c,"testAmbiguity"),w3(t,a,e.indent,s,c)){case rP:return t;case nP:return"'"+t.replace(/'/g,"''")+"'";case iP:return"|"+BS(t,e.indent)+HS(FS(t,i));case oP:return">"+BS(t,e.indent)+HS(FS(A3(t,s),i));case Jc:return'"'+C3(t,s)+'"';default:throw new Js("impossible error: invalid scalar style")}}()}o(x3,"writeScalar");function BS(e,t){var r=tP(e)?String(t):"",n=e[e.length-1]===`
|
|
33
33
|
`,i=n&&(e[e.length-2]===`
|
|
34
34
|
`||e===`
|
|
35
35
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
36
|
-
`}o(
|
|
37
|
-
`?e.slice(0,-1):e}o(
|
|
38
|
-
`);return l=l!==-1?l:e.length,r.lastIndex=l,
|
|
36
|
+
`}o(BS,"blockHeader");function HS(e){return e[e.length-1]===`
|
|
37
|
+
`?e.slice(0,-1):e}o(HS,"dropEndingNewline");function A3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
|
|
38
|
+
`);return l=l!==-1?l:e.length,r.lastIndex=l,US(e.slice(0,l),t)}(),i=e[0]===`
|
|
39
39
|
`||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
|
|
40
|
-
`:"")+
|
|
40
|
+
`:"")+US(u,t),i=s}return n}o(A3,"foldString");function US(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
|
|
41
41
|
`+e.slice(i,s),i=s+1),a=c;return u+=`
|
|
42
42
|
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
43
|
-
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(
|
|
44
|
-
`:""}o(
|
|
43
|
+
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(US,"foldLine");function C3(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=LS((r-55296)*1024+n-56320+65536),s++;continue}i=St[r],t+=!i&&Vo(r)?e[s]:i||LS(r)}return t}o(C3,"escapeString");function I3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ri(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(I3,"writeFlowSequence");function j3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Ri(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Oh(e,t)),e.dump&&Ys===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(j3,"writeBlockSequence");function T3(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,p;for(a=0,c=s.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=s[a],l=r[u],Ri(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ri(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(T3,"writeFlowMapping");function R3(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Js("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Oh(e,t)),l=a[c],p=r[l],Ri(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ys===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Oh(e,t)),Ri(e,t+1,p,!0,f)&&(e.dump&&Ys===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(R3,"writeBlockMapping");function zS(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,GS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(WS.call(c.represent,u))n=c.represent[u](t,u);else throw new Js("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(zS,"detectType");function Ri(e,t,r,n,i,s){e.tag=null,e.dump=r,zS(e,r,!1)||zS(e,r,!0);var a=GS.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(R3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(T3(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(j3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(I3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&x3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Js("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Ri,"writeNode");function N3(e,t){var r=[],n=[],i,s;for(Eh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(N3,"getDuplicateReferences");function Eh(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Eh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Eh(e[n[i]],t,r)}o(Eh,"inspectNode");function sP(e,t){t=t||{};var r=new P3(t);return r.noRefs||N3(e,r),Ri(r,0,e,!0,!0)?r.dump+`
|
|
44
|
+
`:""}o(sP,"dump");function k3(e,t){return sP(e,Qs.extend({schema:n3},t))}o(k3,"safeDump");wh.exports.dump=sP;wh.exports.safeDump=k3});var uP=v((y9,ze)=>{"use strict";var Xc=DS(),cP=aP();function eu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(eu,"deprecated");ze.exports.Type=st();ze.exports.Schema=Ci();ze.exports.FAILSAFE_SCHEMA=Gc();ze.exports.JSON_SCHEMA=yh();ze.exports.CORE_SCHEMA=bh();ze.exports.DEFAULT_SAFE_SCHEMA=qo();ze.exports.DEFAULT_FULL_SCHEMA=Zs();ze.exports.load=Xc.load;ze.exports.loadAll=Xc.loadAll;ze.exports.safeLoad=Xc.safeLoad;ze.exports.safeLoadAll=Xc.safeLoadAll;ze.exports.dump=cP.dump;ze.exports.safeDump=cP.safeDump;ze.exports.YAMLException=ko();ze.exports.MINIMAL_SCHEMA=Gc();ze.exports.SAFE_SCHEMA=qo();ze.exports.DEFAULT_SCHEMA=Zs();ze.exports.scan=eu("scan");ze.exports.parse=eu("parse");ze.exports.compose=eu("compose");ze.exports.addConstructor=eu("addConstructor")});var fP=v((v9,lP)=>{"use strict";var M3=uP();lP.exports=M3});var dP=v((_9,pP)=>{"use strict";var{ParserError:q3}=Er(),D3=fP();pP.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return D3.safeLoad(t)}catch(r){throw new q3(r.message,e.url)}else return t}}});var mP=v((S9,hP)=>{"use strict";var{ParserError:L3}=Er(),F3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;hP.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&F3.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new L3("data is not text",e.url)}}});var yP=v((P9,gP)=>{"use strict";var V3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;gP.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&V3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var _P=v((O9,vP)=>{"use strict";var B3=require("fs"),{ono:xh}=br(),bP=zt(),{ResolverError:Ah}=Er();vP.exports={order:100,canRead(e){return bP.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=bP.toFileSystemPath(e.url)}catch(i){r(new Ah(xh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{B3.readFile(n,(i,s)=>{i?r(new Ah(xh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Ah(xh(i,`Error opening file "${n}"`),n))}})}}});var EP=v((E9,OP)=>{"use strict";var H3=require("http"),U3=require("https"),{ono:tu}=br(),Xs=zt(),{ResolverError:SP}=Er();OP.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Xs.isHttp(e.url)},read(e){let t=Xs.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Xs.parse(location.href).protocol),PP(t,this)}};function PP(e,t,r){return new Promise((n,i)=>{e=Xs.parse(e),r=r||[],r.push(e.href),z3(e,t).then(s=>{if(s.statusCode>=400)throw tu({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new SP(tu({status:s.statusCode},`Error downloading ${r[0]}.
|
|
45
45
|
Too many redirects:
|
|
46
46
|
${r.join(`
|
|
47
|
-
`)}`)));else if(s.headers.location){let a=Xs.resolve(e,s.headers.location);
|
|
48
|
-
Cannot set "${t}" of a non-object.`);return r}o(
|
|
49
|
-
"${n}" not found.`);i.set(r,t)};$r.prototype._add=function(e){let t=kn.stripHash(e),r=new
|
|
50
|
-
"${i}" not found.`);return s.resolve(n,r,e,t)};$r.prototype._get$Ref=function(e){e=kn.resolve(this._root$Ref.path,e);let t=kn.stripHash(e);return this._$refs[t]};function
|
|
51
|
-
Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new a3(e.url)):!p||!("error"in p)?i(jh.syntax(`Unable to parse ${e.url}`)):p.error instanceof UO?i(p.error):i(new UO(p.error.message,e.url))}o(l,"onError")})}o(p3,"parseFile");function d3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(d3,"isEmpty")});var KO=v((k9,WO)=>{"use strict";var GO=Vo(),h3=ea(),m3=Rh(),ra=zt(),{isHandledError:g3}=Er();WO.exports=y3;function y3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Nh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(y3,"resolveExternal");function Nh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(GO.isExternal$Ref(e))i.push(ZO(e,t,r,n));else for(let s of Object.keys(e)){let a=h3.join(t,s),c=e[s];GO.isExternal$Ref(c)?i.push(ZO(c,a,r,n)):i=i.concat(Nh(c,a,r,n))}return i}o(Nh,"crawl");async function ZO(e,t,r,n){let i=ra.resolve(t,e.$ref),s=ra.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await m3(i,r,n),c=Nh(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!g3(a))throw a;return r._$refs[s]&&(a.source=ra.stripHash(t),a.path=ra.safePointerToPath(ra.getHash(t))),[]}}o(ZO,"resolve$Ref")});var JO=v((q9,QO)=>{"use strict";var iu=Vo(),na=ea(),kh=zt();QO.exports=b3;function b3(e,t){let r=[];Mh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),v3(r)}o(b3,"bundle");function Mh(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(iu.isAllowed$Ref(u))YO(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=na.join(r,p),d=na.join(n,p),h=u[p];iu.isAllowed$Ref(h)?YO(u,p,r,d,i,s,a,c):Mh(u,p,f,d,i,s,a,c)}}}o(Mh,"crawl");function YO(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=kh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=na.parse(n).length,d=kh.stripHash(p.path),h=kh.getHash(p.path),y=d!==a._root$Ref.path,b=iu.isExtended$Ref(u);i+=p.indirections;let g=_3(s,e,t);if(g)if(f<g.depth||i<g.indirections)S3(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||Mh(p.value,null,p.path,n,i+1,s,a,c)}o(YO,"inventory$Ref");function v3(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=na.join(n,na.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=iu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(v3,"remap");function _3(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(_3,"findInInventory");function S3(e,t){let r=e.indexOf(t);e.splice(r,1)}o(S3,"removeFromInventory")});var Lh=v((L9,rP)=>{"use strict";var qh=Vo(),XO=ea(),{ono:O3}=br(),P3=zt();rP.exports=E3;function E3(e,t){let r=Dh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(E3,"dereference");function Dh(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),qh.isAllowed$Ref(e,s))a=eP(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=XO.join(t,u),p=XO.join(r,u),f=e[u],d=!1;qh.isAllowed$Ref(f,s)?(a=eP(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Dh(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=tP(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Dh,"crawl");function eP(e,t,r,n,i,s){let a=P3.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&tP(t,i,s);let p=qh.dereference(e,c.value);if(!l){let f=Dh(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(eP,"dereference$Ref");function tP(e,t,r){if(t.circular=!0,!r.dereference.circular)throw O3.reference(`Circular $ref pointer found at ${e}`);return!0}o(tP,"foundCircularReference")});var sP=v((B9,Hr)=>{"use strict";var oP=LO(),$3=Rh(),ou=xh(),w3=KO(),x3=JO(),A3=Lh(),Ho=zt(),{JSONParserError:I3,InvalidPointerError:C3,MissingPointerError:T3,ResolverError:j3,ParserError:R3,UnmatchedParserError:N3,UnmatchedResolverError:k3,isHandledError:M3,JSONParserErrorGroup:nP}=Er(),wr=Ih(),{ono:iP}=br();Hr.exports=Vr;Hr.exports.default=Vr;Hr.exports.JSONParserError=I3;Hr.exports.InvalidPointerError=C3;Hr.exports.MissingPointerError=T3;Hr.exports.ResolverError=j3;Hr.exports.ParserError=R3;Hr.exports.UnmatchedParserError=N3;Hr.exports.UnmatchedResolverError=k3;function Vr(){this.schema=null,this.$refs=new oP}o(Vr,"$RefParser");Vr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Vr.prototype.parse=o(async function(t,r,n,i){let s=ou(arguments),a;if(!s.path&&!s.schema){let l=iP(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return wr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new oP;let c="http";if(Ho.isFileSystemPath(s.path)&&(s.path=Ho.fromFileSystemPath(s.path),c="file"),s.path=Ho.resolve(Ho.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=$3(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,wr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,wr(s.callback,Promise.resolve(u.schema));throw iP.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!M3(l)?wr(s.callback,Promise.reject(l)):(this.$refs._$refs[Ho.stripHash(s.path)]&&this.$refs._$refs[Ho.stripHash(s.path)].addError(l),wr(s.callback,Promise.resolve(null)))}},"parse");Vr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Vr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.parse(a.path,a.schema,a.options),await w3(s,a.options),Fh(s),wr(a.callback,Promise.resolve(s.$refs))}catch(c){return wr(a.callback,Promise.reject(c))}},"resolve");Vr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Vr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.resolve(a.path,a.schema,a.options),x3(s,a.options),Fh(s),wr(a.callback,Promise.resolve(s.schema))}catch(c){return wr(a.callback,Promise.reject(c))}},"bundle");Vr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Vr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.resolve(a.path,a.schema,a.options),A3(s,a.options),Fh(s),wr(a.callback,Promise.resolve(s.schema))}catch(c){return wr(a.callback,Promise.reject(c))}},"dereference");function Fh(e){if(nP.getParserErrors(e).length>0)throw new nP(e)}o(Fh,"finalize")});var Bh=v((H9,lP)=>{"use strict";var q3=sh(),D3=uh(),aP=xh(),cP=nc(),uP=$O(),su=Ih(),{ono:xr}=br(),ki=sP(),L3=Lh();lP.exports=Ur;function Ur(){ki.apply(this,arguments)}o(Ur,"SwaggerParser");cP.inherits(Ur,ki);Ur.parse=ki.parse;Ur.resolve=ki.resolve;Ur.bundle=ki.bundle;Ur.dereference=ki.dereference;Object.defineProperty(Ur.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Ur.prototype.parse=async function(e,t,r,n){let i=aP(arguments);i.options=new uP(i.options);try{let s=await ki.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw xr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw xr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw xr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw xr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw xr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw xr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}cP.fixOasRelativeServers(s,i.path)}return su(i.callback,Promise.resolve(s))}catch(s){return su(i.callback,Promise.reject(s))}};Ur.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Ur.prototype.validate=async function(e,t,r,n){let i=this,s=aP(arguments);s.options=new uP(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(q3(i.api),i.$refs.circular)){if(a===!0)L3(i,s.options);else if(a===!1)throw xr.reference("The API contains circular references")}return s.options.validate.spec&&D3(i.api),su(s.callback,Promise.resolve(i.schema))}catch(c){return su(s.callback,Promise.reject(c))}}});var Ct=v(Zt=>{"use strict";Zt.__esModule=!0;Zt.extend=k1;Zt.indexOf=xq;Zt.escapeExpression=Aq;Zt.isEmpty=Iq;Zt.createFrame=Cq;Zt.blockParams=Tq;Zt.appendContextPath=jq;var Pq={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Eq=/[&<>"'`=]/g,$q=/[&<>"'`=]/;function wq(e){return Pq[e]}o(wq,"escapeChar");function k1(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(k1,"extend");var Om=Object.prototype.toString;Zt.toString=Om;var Sm=o(function(t){return typeof t=="function"},"isFunction");Sm(/x/)&&(Zt.isFunction=Sm=o(function(e){return typeof e=="function"&&Om.call(e)==="[object Function]"},"isFunction"));Zt.isFunction=Sm;var M1=Array.isArray||function(e){return e&&typeof e=="object"?Om.call(e)==="[object Array]":!1};Zt.isArray=M1;function xq(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(xq,"indexOf");function Aq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return $q.test(e)?e.replace(Eq,wq):e}o(Aq,"escapeExpression");function Iq(e){return!e&&e!==0?!0:!!(M1(e)&&e.length===0)}o(Iq,"isEmpty");function Cq(e){var t=k1({},e);return t._parent=e,t}o(Cq,"createFrame");function Tq(e,t){return e.path=t,e}o(Tq,"blockParams");function jq(e,t){return(e?e+".":"")+t}o(jq,"appendContextPath")});var lr=v((Pu,q1)=>{"use strict";Pu.__esModule=!0;var Pm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Em(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Pm.length;u++)this[Pm[u]]=c[Pm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Em);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Em,"Exception");Em.prototype=new Error;Pu.default=Em;q1.exports=Pu.default});var L1=v((Eu,D1)=>{"use strict";Eu.__esModule=!0;var $m=Ct();Eu.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if($m.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=$m.createFrame(r.data);s.contextPath=$m.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};D1.exports=Eu.default});var B1=v(($u,F1)=>{"use strict";$u.__esModule=!0;function Rq(e){return e&&e.__esModule?e:{default:e}}o(Rq,"_interopRequireDefault");var ma=Ct(),Nq=lr(),kq=Rq(Nq);$u.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kq.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ma.appendContextPath(r.data.contextPath,r.ids[0])+"."),ma.isFunction(t)&&(t=t.call(this)),r.data&&(c=ma.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:ma.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(ma.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};F1.exports=$u.default});var H1=v((wu,V1)=>{"use strict";wu.__esModule=!0;function Mq(e){return e&&e.__esModule?e:{default:e}}o(Mq,"_interopRequireDefault");var qq=lr(),Dq=Mq(qq);wu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Dq.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};V1.exports=wu.default});var Z1=v((xu,G1)=>{"use strict";xu.__esModule=!0;function Lq(e){return e&&e.__esModule?e:{default:e}}o(Lq,"_interopRequireDefault");var U1=Ct(),Fq=lr(),z1=Lq(Fq);xu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new z1.default("#if requires exactly one argument");return U1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||U1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new z1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};G1.exports=xu.default});var K1=v((Au,W1)=>{"use strict";Au.__esModule=!0;Au.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};W1.exports=Au.default});var Q1=v((Iu,Y1)=>{"use strict";Iu.__esModule=!0;Iu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Y1.exports=Iu.default});var X1=v((Cu,J1)=>{"use strict";Cu.__esModule=!0;function Bq(e){return e&&e.__esModule?e:{default:e}}o(Bq,"_interopRequireDefault");var ga=Ct(),Vq=lr(),Hq=Bq(Vq);Cu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Hq.default("#with requires exactly one argument");ga.isFunction(t)&&(t=t.call(this));var n=r.fn;if(ga.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=ga.createFrame(r.data),i.contextPath=ga.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:ga.blockParams([t],[i&&i.contextPath])})})};J1.exports=Cu.default});var wm=v(Tu=>{"use strict";Tu.__esModule=!0;Tu.registerDefaultHelpers=i4;Tu.moveHelperToHooks=o4;function Vi(e){return e&&e.__esModule?e:{default:e}}o(Vi,"_interopRequireDefault");var Uq=L1(),zq=Vi(Uq),Gq=B1(),Zq=Vi(Gq),Wq=H1(),Kq=Vi(Wq),Yq=Z1(),Qq=Vi(Yq),Jq=K1(),Xq=Vi(Jq),e4=Q1(),t4=Vi(e4),r4=X1(),n4=Vi(r4);function i4(e){zq.default(e),Zq.default(e),Kq.default(e),Qq.default(e),Xq.default(e),t4.default(e),n4.default(e)}o(i4,"registerDefaultHelpers");function o4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(o4,"moveHelperToHooks")});var tE=v((ju,eE)=>{"use strict";ju.__esModule=!0;var s4=Ct();ju.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=s4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};eE.exports=ju.default});var rE=v(xm=>{"use strict";xm.__esModule=!0;xm.registerDefaultDecorators=l4;function a4(e){return e&&e.__esModule?e:{default:e}}o(a4,"_interopRequireDefault");var c4=tE(),u4=a4(c4);function l4(e){u4.default(e)}o(l4,"registerDefaultDecorators")});var Am=v((Ru,nE)=>{"use strict";Ru.__esModule=!0;var f4=Ct(),Zo={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=f4.indexOf(Zo.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Zo.lookupLevel(t),typeof console<"u"&&Zo.lookupLevel(Zo.level)<=t){var r=Zo.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};Ru.default=Zo;nE.exports=Ru.default});var iE=v(Im=>{"use strict";Im.__esModule=!0;Im.createNewLookupObject=d4;var p4=Ct();function d4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return p4.extend.apply(void 0,[Object.create(null)].concat(t))}o(d4,"createNewLookupObject")});var Cm=v(ya=>{"use strict";ya.__esModule=!0;ya.createProtoAccessControl=y4;ya.resultIsAllowed=b4;ya.resetLoggedProperties=_4;function h4(e){return e&&e.__esModule?e:{default:e}}o(h4,"_interopRequireDefault");var oE=iE(),m4=Am(),g4=h4(m4),Nu=Object.create(null);function y4(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:oE.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:oE.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(y4,"createProtoAccessControl");function b4(e,t,r){return sE(typeof e=="function"?t.methods:t.properties,r)}o(b4,"resultIsAllowed");function sE(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(v4(t),!1)}o(sE,"checkWhiteList");function v4(e){Nu[e]!==!0&&(Nu[e]=!0,g4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
47
|
+
`)}`)));else if(s.headers.location){let a=Xs.resolve(e,s.headers.location);PP(a,t,r).then(n,i)}else throw tu({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new SP(tu(s,`Error downloading ${e.href}`),e.href))})})}o(PP,"download");function z3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?U3:H3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(z3,"get")});var jh=v((w9,wP)=>{"use strict";var G3=S_(),W3=dP(),Z3=mP(),K3=yP(),Y3=_P(),Q3=EP();wP.exports=Ih;function Ih(e){Ch(this,Ih.defaults),Ch(this,e)}o(Ih,"$RefParserOptions");Ih.defaults={parse:{json:G3,yaml:W3,text:Z3,binary:K3},resolve:{file:Y3,http:Q3,external:!0},continueOnError:!1,dereference:{circular:!0}};function Ch(e,t){if($P(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];$P(s)?e[i]=Ch(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Ch,"merge");function $P(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o($P,"isMergeable")});var Th=v((A9,AP)=>{"use strict";var xP=jh();AP.exports=J3;function J3(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof xP||(n=new xP(n)),{path:t,schema:r,options:n,callback:i}}o(J3,"normalizeArgs")});var IP=v((I9,CP)=>{"use strict";var Rh=jh(),X3=fh(),eM=hh(),tM=require("util");CP.exports=ru;function ru(e){Rh.call(this,ru.defaults),Rh.apply(this,arguments)}o(ru,"ParserOptions");ru.defaults={validate:{schema:X3,spec:eM}};tM.inherits(ru,Rh)});var TP=v((T9,jP)=>{"use strict";function rM(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(rM,"makeNext");jP.exports=rM()});var Nh=v((N9,NP)=>{"use strict";var RP=TP();NP.exports=o(function(t,r){if(t){r.then(function(n){RP(function(){t(null,n)})},function(n){RP(function(){t(n)})});return}else return r},"maybe")});var ea=v((M9,qP)=>{"use strict";qP.exports=Nn;var kh=Bo(),Mh=zt(),{JSONParserError:nM,InvalidPointerError:iM,MissingPointerError:oM,isHandledError:sM}=Er(),aM=/\//g,cM=/~/g,uM=/~1/g,lM=/~0/g;function Nn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Nn,"Pointer");Nn.prototype.resolve=function(e,t,r){let n=Nn.parse(this.path,this.originalPath);this.value=MP(e);for(let i=0;i<n.length;i++){if(nu(this,t)&&(this.path=Nn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new oM(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Mh.resolve(this.path,this.value.$ref)!==r)&&nu(this,t),this};Nn.prototype.set=function(e,t,r){let n=Nn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=MP(e);for(let s=0;s<n.length-1;s++)nu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=kP(this,i,{});return nu(this,r),i=n[n.length-1],kP(this,i,t),e};Nn.parse=function(e,t){let r=Mh.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(uM,"/").replace(lM,"~"));if(r[0]!=="")throw new iM(r,t===void 0?e:t);return r.slice(1)};Nn.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(cM,"~0").replace(aM,"~1"))}return e};function nu(e,t){if(kh.isAllowed$Ref(e.value,t)){let r=Mh.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,kh.isExtended$Ref(e.value)?(e.value=kh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(nu,"resolveIf$Ref");function kP(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new nM(`Error assigning $ref pointer "${e.path}".
|
|
48
|
+
Cannot set "${t}" of a non-object.`);return r}o(kP,"setValue");function MP(e){if(sM(e))throw e;return e}o(MP,"unwrapOrThrow")});var Bo=v((D9,FP)=>{"use strict";FP.exports=At;var LP=ea(),{InvalidPointerError:fM,isHandledError:pM,normalizeError:DP}=Er(),{safePointerToPath:dM,stripHash:hM,getHash:mM}=zt();function At(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(At,"$Ref");At.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(DP)):this.errors.push(DP(e))};At.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};At.prototype.get=function(e,t){return this.resolve(e,t).value};At.prototype.resolve=function(e,t,r,n){let i=new LP(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!pM(s))throw s;return s.path===null&&(s.path=dM(mM(n))),s instanceof fM&&(s.source=hM(n)),this.addError(s),null}};At.prototype.set=function(e,t){let r=new LP(this,e);this.value=r.set(this.value,t)};At.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};At.isExternal$Ref=function(e){return At.is$Ref(e)&&e.$ref[0]!=="#"};At.isAllowed$Ref=function(e,t){if(At.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};At.isExtended$Ref=function(e){return At.is$Ref(e)&&Object.keys(e).length>1};At.dereference=function(e,t){if(t&&typeof t=="object"&&At.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 UP=v((F9,HP)=>{"use strict";var{ono:VP}=br(),gM=Bo(),kn=zt();HP.exports=$r;function $r(){this.circular=!1,this._$refs={},this._root$Ref=null}o($r,"$Refs");$r.prototype.paths=function(e){return BP(this._$refs,arguments).map(r=>r.decoded)};$r.prototype.values=function(e){let t=this._$refs;return BP(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};$r.prototype.toJSON=$r.prototype.values;$r.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};$r.prototype.get=function(e,t){return this._resolve(e,"",t).value};$r.prototype.set=function(e,t){let r=kn.resolve(this._root$Ref.path,e),n=kn.stripHash(r),i=this._$refs[n];if(!i)throw VP(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${n}" not found.`);i.set(r,t)};$r.prototype._add=function(e){let t=kn.stripHash(e),r=new gM;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};$r.prototype._resolve=function(e,t,r){let n=kn.resolve(this._root$Ref.path,e),i=kn.stripHash(n),s=this._$refs[i];if(!s)throw VP(`Error resolving $ref pointer "${e}".
|
|
50
|
+
"${i}" not found.`);return s.resolve(n,r,e,t)};$r.prototype._get$Ref=function(e){e=kn.resolve(this._root$Ref.path,e);let t=kn.stripHash(e);return this._$refs[t]};function BP(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"?kn.toFileSystemPath(n,!0):n}))}o(BP,"getPaths")});var GP=v(ta=>{"use strict";ta.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};ta.filter=function(e,t,r){return e.filter(n=>!!zP(n,t,r))};ta.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)};ta.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let h=zP(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}o(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}o(p,"callback");function f(h){c({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function zP(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(zP,"getResult")});var Dh=v((U9,YP)=>{"use strict";var{ono:qh}=br(),WP=zt(),Mn=GP(),{ResolverError:ZP,ParserError:KP,UnmatchedParserError:yM,UnmatchedResolverError:bM,isHandledError:vM}=Er();YP.exports=_M;async function _M(e,t,r){e=WP.stripHash(e);let n=t._add(e),i={url:e,extension:WP.getExtension(e)};try{let s=await SM(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await PM(i,r,t);return n.value=a.result,a.result}catch(s){throw vM(s)&&(n.value=s),s}}o(_M,"parse");function SM(e,t,r){return new Promise((n,i)=>{let s=Mn.all(t.resolve);s=Mn.filter(s,"canRead",e),Mn.sort(s),Mn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new bM(e.url)):!c||!("error"in c)?i(qh.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof ZP?i(c.error):i(new ZP(c,e.url))}o(a,"onError")})}o(SM,"readFile");function PM(e,t,r){return new Promise((n,i)=>{let s=Mn.all(t.parse),a=Mn.filter(s,"canParse",e),c=a.length>0?a:s;Mn.sort(c),Mn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&OM(p.result)?i(qh.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
|
|
51
|
+
Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new yM(e.url)):!p||!("error"in p)?i(qh.syntax(`Unable to parse ${e.url}`)):p.error instanceof KP?i(p.error):i(new KP(p.error.message,e.url))}o(l,"onError")})}o(PM,"parseFile");function OM(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(OM,"isEmpty")});var eO=v((G9,XP)=>{"use strict";var QP=Bo(),EM=ea(),$M=Dh(),ra=zt(),{isHandledError:wM}=Er();XP.exports=xM;function xM(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Lh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(xM,"resolveExternal");function Lh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(QP.isExternal$Ref(e))i.push(JP(e,t,r,n));else for(let s of Object.keys(e)){let a=EM.join(t,s),c=e[s];QP.isExternal$Ref(c)?i.push(JP(c,a,r,n)):i=i.concat(Lh(c,a,r,n))}return i}o(Lh,"crawl");async function JP(e,t,r,n){let i=ra.resolve(t,e.$ref),s=ra.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await $M(i,r,n),c=Lh(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!wM(a))throw a;return r._$refs[s]&&(a.source=ra.stripHash(t),a.path=ra.safePointerToPath(ra.getHash(t))),[]}}o(JP,"resolve$Ref")});var nO=v((Z9,rO)=>{"use strict";var iu=Bo(),na=ea(),Fh=zt();rO.exports=AM;function AM(e,t){let r=[];Vh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),CM(r)}o(AM,"bundle");function Vh(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(iu.isAllowed$Ref(u))tO(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=na.join(r,p),d=na.join(n,p),h=u[p];iu.isAllowed$Ref(h)?tO(u,p,r,d,i,s,a,c):Vh(u,p,f,d,i,s,a,c)}}}o(Vh,"crawl");function tO(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Fh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=na.parse(n).length,d=Fh.stripHash(p.path),h=Fh.getHash(p.path),y=d!==a._root$Ref.path,b=iu.isExtended$Ref(u);i+=p.indirections;let g=IM(s,e,t);if(g)if(f<g.depth||i<g.indirections)jM(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||Vh(p.value,null,p.path,n,i+1,s,a,c)}o(tO,"inventory$Ref");function CM(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=na.join(n,na.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=iu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(CM,"remap");function IM(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(IM,"findInInventory");function jM(e,t){let r=e.indexOf(t);e.splice(r,1)}o(jM,"removeFromInventory")});var Uh=v((Y9,aO)=>{"use strict";var Bh=Bo(),iO=ea(),{ono:TM}=br(),RM=zt();aO.exports=NM;function NM(e,t){let r=Hh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(NM,"dereference");function Hh(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),Bh.isAllowed$Ref(e,s))a=oO(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=iO.join(t,u),p=iO.join(r,u),f=e[u],d=!1;Bh.isAllowed$Ref(f,s)?(a=oO(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Hh(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=sO(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Hh,"crawl");function oO(e,t,r,n,i,s){let a=RM.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&sO(t,i,s);let p=Bh.dereference(e,c.value);if(!l){let f=Hh(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(oO,"dereference$Ref");function sO(e,t,r){if(t.circular=!0,!r.dereference.circular)throw TM.reference(`Circular $ref pointer found at ${e}`);return!0}o(sO,"foundCircularReference")});var fO=v((J9,Ur)=>{"use strict";var lO=UP(),kM=Dh(),ou=Th(),MM=eO(),qM=nO(),DM=Uh(),Ho=zt(),{JSONParserError:LM,InvalidPointerError:FM,MissingPointerError:VM,ResolverError:BM,ParserError:HM,UnmatchedParserError:UM,UnmatchedResolverError:zM,isHandledError:GM,JSONParserErrorGroup:cO}=Er(),wr=Nh(),{ono:uO}=br();Ur.exports=Hr;Ur.exports.default=Hr;Ur.exports.JSONParserError=LM;Ur.exports.InvalidPointerError=FM;Ur.exports.MissingPointerError=VM;Ur.exports.ResolverError=BM;Ur.exports.ParserError=HM;Ur.exports.UnmatchedParserError=UM;Ur.exports.UnmatchedResolverError=zM;function Hr(){this.schema=null,this.$refs=new lO}o(Hr,"$RefParser");Hr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Hr.prototype.parse=o(async function(t,r,n,i){let s=ou(arguments),a;if(!s.path&&!s.schema){let l=uO(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return wr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new lO;let c="http";if(Ho.isFileSystemPath(s.path)&&(s.path=Ho.fromFileSystemPath(s.path),c="file"),s.path=Ho.resolve(Ho.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=kM(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,wr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,wr(s.callback,Promise.resolve(u.schema));throw uO.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!GM(l)?wr(s.callback,Promise.reject(l)):(this.$refs._$refs[Ho.stripHash(s.path)]&&this.$refs._$refs[Ho.stripHash(s.path)].addError(l),wr(s.callback,Promise.resolve(null)))}},"parse");Hr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Hr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.parse(a.path,a.schema,a.options),await MM(s,a.options),zh(s),wr(a.callback,Promise.resolve(s.$refs))}catch(c){return wr(a.callback,Promise.reject(c))}},"resolve");Hr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Hr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.resolve(a.path,a.schema,a.options),qM(s,a.options),zh(s),wr(a.callback,Promise.resolve(s.schema))}catch(c){return wr(a.callback,Promise.reject(c))}},"bundle");Hr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Hr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=ou(arguments);try{return await this.resolve(a.path,a.schema,a.options),DM(s,a.options),zh(s),wr(a.callback,Promise.resolve(s.schema))}catch(c){return wr(a.callback,Promise.reject(c))}},"dereference");function zh(e){if(cO.getParserErrors(e).length>0)throw new cO(e)}o(zh,"finalize")});var Gh=v((eH,mO)=>{"use strict";var WM=fh(),ZM=hh(),pO=Th(),dO=nc(),hO=IP(),su=Nh(),{ono:xr}=br(),Ni=fO(),KM=Uh();mO.exports=zr;function zr(){Ni.apply(this,arguments)}o(zr,"SwaggerParser");dO.inherits(zr,Ni);zr.parse=Ni.parse;zr.resolve=Ni.resolve;zr.bundle=Ni.bundle;zr.dereference=Ni.dereference;Object.defineProperty(zr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});zr.prototype.parse=async function(e,t,r,n){let i=pO(arguments);i.options=new hO(i.options);try{let s=await Ni.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw xr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw xr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw xr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw xr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw xr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw xr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw xr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}dO.fixOasRelativeServers(s,i.path)}return su(i.callback,Promise.resolve(s))}catch(s){return su(i.callback,Promise.reject(s))}};zr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};zr.prototype.validate=async function(e,t,r,n){let i=this,s=pO(arguments);s.options=new hO(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(WM(i.api),i.$refs.circular)){if(a===!0)KM(i,s.options);else if(a===!1)throw xr.reference("The API contains circular references")}return s.options.validate.spec&&ZM(i.api),su(s.callback,Promise.resolve(i.schema))}catch(c){return su(s.callback,Promise.reject(c))}}});var jt=v(Wt=>{"use strict";Wt.__esModule=!0;Wt.extend=B1;Wt.indexOf=qq;Wt.escapeExpression=Dq;Wt.isEmpty=Lq;Wt.createFrame=Fq;Wt.blockParams=Vq;Wt.appendContextPath=Bq;var Rq={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Nq=/[&<>"'`=]/g,kq=/[&<>"'`=]/;function Mq(e){return Rq[e]}o(Mq,"escapeChar");function B1(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(B1,"extend");var xm=Object.prototype.toString;Wt.toString=xm;var wm=o(function(t){return typeof t=="function"},"isFunction");wm(/x/)&&(Wt.isFunction=wm=o(function(e){return typeof e=="function"&&xm.call(e)==="[object Function]"},"isFunction"));Wt.isFunction=wm;var H1=Array.isArray||function(e){return e&&typeof e=="object"?xm.call(e)==="[object Array]":!1};Wt.isArray=H1;function qq(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(qq,"indexOf");function Dq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return kq.test(e)?e.replace(Nq,Mq):e}o(Dq,"escapeExpression");function Lq(e){return!e&&e!==0?!0:!!(H1(e)&&e.length===0)}o(Lq,"isEmpty");function Fq(e){var t=B1({},e);return t._parent=e,t}o(Fq,"createFrame");function Vq(e,t){return e.path=t,e}o(Vq,"blockParams");function Bq(e,t){return(e?e+".":"")+t}o(Bq,"appendContextPath")});var lr=v((Au,U1)=>{"use strict";Au.__esModule=!0;var Am=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Cm(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Am.length;u++)this[Am[u]]=c[Am[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Cm);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Cm,"Exception");Cm.prototype=new Error;Au.default=Cm;U1.exports=Au.default});var G1=v((Cu,z1)=>{"use strict";Cu.__esModule=!0;var Im=jt();Cu.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Im.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=Im.createFrame(r.data);s.contextPath=Im.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};z1.exports=Cu.default});var Z1=v((Iu,W1)=>{"use strict";Iu.__esModule=!0;function Hq(e){return e&&e.__esModule?e:{default:e}}o(Hq,"_interopRequireDefault");var ma=jt(),Uq=lr(),zq=Hq(Uq);Iu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new zq.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ma.appendContextPath(r.data.contextPath,r.ids[0])+"."),ma.isFunction(t)&&(t=t.call(this)),r.data&&(c=ma.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:ma.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(ma.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};W1.exports=Iu.default});var Y1=v((ju,K1)=>{"use strict";ju.__esModule=!0;function Gq(e){return e&&e.__esModule?e:{default:e}}o(Gq,"_interopRequireDefault");var Wq=lr(),Zq=Gq(Wq);ju.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Zq.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};K1.exports=ju.default});var e2=v((Tu,X1)=>{"use strict";Tu.__esModule=!0;function Kq(e){return e&&e.__esModule?e:{default:e}}o(Kq,"_interopRequireDefault");var Q1=jt(),Yq=lr(),J1=Kq(Yq);Tu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new J1.default("#if requires exactly one argument");return Q1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Q1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new J1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};X1.exports=Tu.default});var r2=v((Ru,t2)=>{"use strict";Ru.__esModule=!0;Ru.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};t2.exports=Ru.default});var i2=v((Nu,n2)=>{"use strict";Nu.__esModule=!0;Nu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};n2.exports=Nu.default});var s2=v((ku,o2)=>{"use strict";ku.__esModule=!0;function Qq(e){return e&&e.__esModule?e:{default:e}}o(Qq,"_interopRequireDefault");var ga=jt(),Jq=lr(),Xq=Qq(Jq);ku.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Xq.default("#with requires exactly one argument");ga.isFunction(t)&&(t=t.call(this));var n=r.fn;if(ga.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=ga.createFrame(r.data),i.contextPath=ga.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:ga.blockParams([t],[i&&i.contextPath])})})};o2.exports=ku.default});var jm=v(Mu=>{"use strict";Mu.__esModule=!0;Mu.registerDefaultHelpers=h4;Mu.moveHelperToHooks=m4;function Bi(e){return e&&e.__esModule?e:{default:e}}o(Bi,"_interopRequireDefault");var e4=G1(),t4=Bi(e4),r4=Z1(),n4=Bi(r4),i4=Y1(),o4=Bi(i4),s4=e2(),a4=Bi(s4),c4=r2(),u4=Bi(c4),l4=i2(),f4=Bi(l4),p4=s2(),d4=Bi(p4);function h4(e){t4.default(e),n4.default(e),o4.default(e),a4.default(e),u4.default(e),f4.default(e),d4.default(e)}o(h4,"registerDefaultHelpers");function m4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(m4,"moveHelperToHooks")});var c2=v((qu,a2)=>{"use strict";qu.__esModule=!0;var g4=jt();qu.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=g4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};a2.exports=qu.default});var u2=v(Tm=>{"use strict";Tm.__esModule=!0;Tm.registerDefaultDecorators=_4;function y4(e){return e&&e.__esModule?e:{default:e}}o(y4,"_interopRequireDefault");var b4=c2(),v4=y4(b4);function _4(e){v4.default(e)}o(_4,"registerDefaultDecorators")});var Rm=v((Du,l2)=>{"use strict";Du.__esModule=!0;var S4=jt(),Wo={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=S4.indexOf(Wo.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Wo.lookupLevel(t),typeof console<"u"&&Wo.lookupLevel(Wo.level)<=t){var r=Wo.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};Du.default=Wo;l2.exports=Du.default});var f2=v(Nm=>{"use strict";Nm.__esModule=!0;Nm.createNewLookupObject=O4;var P4=jt();function O4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return P4.extend.apply(void 0,[Object.create(null)].concat(t))}o(O4,"createNewLookupObject")});var km=v(ya=>{"use strict";ya.__esModule=!0;ya.createProtoAccessControl=x4;ya.resultIsAllowed=A4;ya.resetLoggedProperties=I4;function E4(e){return e&&e.__esModule?e:{default:e}}o(E4,"_interopRequireDefault");var p2=f2(),$4=Rm(),w4=E4($4),Lu=Object.create(null);function x4(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:p2.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:p2.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(x4,"createProtoAccessControl");function A4(e,t,r){return d2(typeof e=="function"?t.methods:t.properties,r)}o(A4,"resultIsAllowed");function d2(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(C4(t),!1)}o(d2,"checkWhiteList");function C4(e){Lu[e]!==!0&&(Lu[e]=!0,w4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
52
52
|
You can add a runtime option to disable the check or this warning:
|
|
53
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(
|
|
53
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(C4,"logUnexpecedPropertyAccessOnce");function I4(){Object.keys(Lu).forEach(function(e){delete Lu[e]})}o(I4,"resetLoggedProperties")});var Vu=v(Qr=>{"use strict";Qr.__esModule=!0;Qr.HandlebarsEnvironment=Dm;function h2(e){return e&&e.__esModule?e:{default:e}}o(h2,"_interopRequireDefault");var Hi=jt(),j4=lr(),Mm=h2(j4),T4=jm(),R4=u2(),N4=Rm(),Fu=h2(N4),k4=km(),M4="4.7.8";Qr.VERSION=M4;var q4=8;Qr.COMPILER_REVISION=q4;var D4=7;Qr.LAST_COMPATIBLE_COMPILER_REVISION=D4;var L4={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Qr.REVISION_CHANGES=L4;var qm="[object Object]";function Dm(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},T4.registerDefaultHelpers(this),R4.registerDefaultDecorators(this)}o(Dm,"HandlebarsEnvironment");Dm.prototype={constructor:Dm,logger:Fu.default,log:Fu.default.log,registerHelper:o(function(t,r){if(Hi.toString.call(t)===qm){if(r)throw new Mm.default("Arg not supported with multiple helpers");Hi.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Hi.toString.call(t)===qm)Hi.extend(this.partials,t);else{if(typeof r>"u")throw new Mm.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Hi.toString.call(t)===qm){if(r)throw new Mm.default("Arg not supported with multiple decorators");Hi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){k4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var F4=Fu.default.log;Qr.log=F4;Qr.createFrame=Hi.createFrame;Qr.logger=Fu.default});var g2=v((Bu,m2)=>{"use strict";Bu.__esModule=!0;function Lm(e){this.string=e}o(Lm,"SafeString");Lm.prototype.toString=Lm.prototype.toHTML=function(){return""+this.string};Bu.default=Lm;m2.exports=Bu.default});var y2=v(Fm=>{"use strict";Fm.__esModule=!0;Fm.wrapHelper=V4;function V4(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(V4,"wrapHelper")});var P2=v(Kn=>{"use strict";Kn.__esModule=!0;Kn.checkRevision=W4;Kn.template=Z4;Kn.wrapProgram=Hu;Kn.resolvePartial=K4;Kn.invokePartial=Y4;Kn.noop=_2;function B4(e){return e&&e.__esModule?e:{default:e}}o(B4,"_interopRequireDefault");function H4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(H4,"_interopRequireWildcard");var U4=jt(),un=H4(U4),z4=lr(),ln=B4(z4),fn=Vu(),b2=jm(),G4=y2(),v2=km();function W4(e){var t=e&&e[0]||1,r=fn.COMPILER_REVISION;if(!(t>=fn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=fn.COMPILER_REVISION))if(t<fn.LAST_COMPATIBLE_COMPILER_REVISION){var n=fn.REVISION_CHANGES[r],i=fn.REVISION_CHANGES[t];throw new ln.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new ln.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(W4,"checkRevision");function Z4(e,t){if(!t)throw new ln.default("No environment passed to template");if(!e||!e.main)throw new ln.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=un.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=un.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,c,l);if(p==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),p=u.partials[u.name](c,l)),p!=null){if(u.indent){for(var f=p.split(`
|
|
54
54
|
`),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=u.indent+f[d];p=f.join(`
|
|
55
|
-
`)}return p}else throw new un.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new un.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||pE.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:cn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Du(this,c,h,u,l,p,f):d||(d=this.programs[c]=Du(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=cn.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=B4(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=hE(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=cn.extend({},t.helpers,a.helpers);V4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=cn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=pE.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;fE.moveHelperToHooks(i,"helperMissing",u),fE.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new un.default("must pass block params");if(e.useDepths&&!l)throw new un.default("must pass parent depths");return Du(i,a,e[a],c,0,u,l)},s}o(D4,"template");function Du(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=hE(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Du,"wrapProgram");function L4(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(L4,"resolvePartial");function F4(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==dE&&function(){r.data=ln.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ln.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=cn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new un.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(F4,"invokePartial");function dE(){return""}o(dE,"noop");function B4(e,t){return(!t||!("root"in t))&&(t=t?ln.createFrame(t):{},t.root=e),t}o(B4,"initData");function hE(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),cn.extend(t,a)}return t}o(hE,"executeDecorators");function V4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=H4(n,t)})}o(V4,"wrapHelpersToPassLookupProperty");function H4(e,t){var r=t.lookupProperty;return M4.wrapHelper(e,function(n){return cn.extend({lookupProperty:r},n)})}o(H4,"passLookupPropertyOption")});var Mm=v((Lu,gE)=>{"use strict";Lu.__esModule=!0;Lu.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};gE.exports=Lu.default});var SE=v((Fu,_E)=>{"use strict";Fu.__esModule=!0;function Dm(e){return e&&e.__esModule?e:{default:e}}o(Dm,"_interopRequireDefault");function Lm(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Lm,"_interopRequireWildcard");var U4=Mu(),yE=Lm(U4),z4=uE(),G4=Dm(z4),Z4=lr(),W4=Dm(Z4),K4=Ct(),qm=Lm(K4),Y4=mE(),bE=Lm(Y4),Q4=Mm(),J4=Dm(Q4);function vE(){var e=new yE.HandlebarsEnvironment;return qm.extend(e,yE),e.SafeString=G4.default,e.Exception=W4.default,e.Utils=qm,e.escapeExpression=qm.escapeExpression,e.VM=bE,e.template=function(t){return bE.template(t,e)},e}o(vE,"create");var ba=vE();ba.create=vE;J4.default(ba);ba.default=ba;Fu.default=ba;_E.exports=Fu.default});var Fm=v((Bu,PE)=>{"use strict";Bu.__esModule=!0;var OE={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!OE.helpers.scopedId(t)&&!t.depth},"simpleId")}};Bu.default=OE;PE.exports=Bu.default});var $E=v((Vu,EE)=>{"use strict";Vu.__esModule=!0;var X4=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function w(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o(w,"popStack");function T(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(T,"lex");for(var I,C,ce,re,we,Oe,J={},k,j,M,Y;;){if(ce=a[a.length-1],this.defaultActions[ce]?re=this.defaultActions[ce]:((I===null||typeof I>"u")&&(I=T()),re=l[ce]&&l[ce][I]),typeof re>"u"||!re.length||!re[0]){var ue="";if(!h){Y=[];for(k in l[ce])this.terminals_[k]&&k>2&&Y.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
|
|
55
|
+
`)}return p}else throw new ln.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new ln.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||v2.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:un.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Hu(this,c,h,u,l,p,f):d||(d=this.programs[c]=Hu(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=un.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=Q4(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=S2(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=un.extend({},t.helpers,a.helpers);J4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=un.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=v2.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;b2.moveHelperToHooks(i,"helperMissing",u),b2.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new ln.default("must pass block params");if(e.useDepths&&!l)throw new ln.default("must pass parent depths");return Hu(i,a,e[a],c,0,u,l)},s}o(Z4,"template");function Hu(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=S2(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Hu,"wrapProgram");function K4(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(K4,"resolvePartial");function Y4(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==_2&&function(){r.data=fn.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=fn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=un.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new ln.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Y4,"invokePartial");function _2(){return""}o(_2,"noop");function Q4(e,t){return(!t||!("root"in t))&&(t=t?fn.createFrame(t):{},t.root=e),t}o(Q4,"initData");function S2(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),un.extend(t,a)}return t}o(S2,"executeDecorators");function J4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=X4(n,t)})}o(J4,"wrapHelpersToPassLookupProperty");function X4(e,t){var r=t.lookupProperty;return G4.wrapHelper(e,function(n){return un.extend({lookupProperty:r},n)})}o(X4,"passLookupPropertyOption")});var Vm=v((Uu,O2)=>{"use strict";Uu.__esModule=!0;Uu.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};O2.exports=Uu.default});var A2=v((zu,x2)=>{"use strict";zu.__esModule=!0;function Hm(e){return e&&e.__esModule?e:{default:e}}o(Hm,"_interopRequireDefault");function Um(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Um,"_interopRequireWildcard");var eD=Vu(),E2=Um(eD),tD=g2(),rD=Hm(tD),nD=lr(),iD=Hm(nD),oD=jt(),Bm=Um(oD),sD=P2(),$2=Um(sD),aD=Vm(),cD=Hm(aD);function w2(){var e=new E2.HandlebarsEnvironment;return Bm.extend(e,E2),e.SafeString=rD.default,e.Exception=iD.default,e.Utils=Bm,e.escapeExpression=Bm.escapeExpression,e.VM=$2,e.template=function(t){return $2.template(t,e)},e}o(w2,"create");var ba=w2();ba.create=w2;cD.default(ba);ba.default=ba;zu.default=ba;x2.exports=zu.default});var zm=v((Gu,I2)=>{"use strict";Gu.__esModule=!0;var C2={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!C2.helpers.scopedId(t)&&!t.depth},"simpleId")}};Gu.default=C2;I2.exports=Gu.default});var T2=v((Wu,j2)=>{"use strict";Wu.__esModule=!0;var uD=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function w(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o(w,"popStack");function j(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(j,"lex");for(var C,I,ce,re,we,Pe,J={},k,T,M,Y;;){if(ce=a[a.length-1],this.defaultActions[ce]?re=this.defaultActions[ce]:((C===null||typeof C>"u")&&(C=j()),re=l[ce]&&l[ce][C]),typeof re>"u"||!re.length||!re[0]){var ue="";if(!h){Y=[];for(k in l[ce])this.terminals_[k]&&k>2&&Y.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
|
|
56
56
|
`+this.lexer.showPosition()+`
|
|
57
|
-
Expecting `+Y.join(", ")+", got '"+(this.terminals_[
|
|
57
|
+
Expecting `+Y.join(", ")+", got '"+(this.terminals_[C]||C)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(C==1?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[C]||C,line:this.lexer.yylineno,loc:g,expected:Y})}}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+C);switch(re[0]){case 1:a.push(C),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(re[1]),C=null,I?(C=I,I=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(T=this.productions_[re[1]][1],J.$=c[c.length-T],J._$={first_line:u[u.length-(T||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(T||1)].first_column,last_column:u[u.length-1].last_column},$&&(J._$.range=[u[u.length-(T||1)].range[0],u[u.length-1].range[1]]),Pe=this.performAction.call(J,p,d,f,this.yy,re[1],c,u),typeof Pe<"u")return Pe;T&&(a=a.slice(0,-1*T*2),c=c.slice(0,-1*T),u=u.slice(0,-1*T)),a.push(this.productions_[re[1]][0]),c.push(J.$),u.push(J._$),M=l[a[a.length-2]][a[a.length-1]],a.push(M);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
58
58
|
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(c=this._input.match(this.rules[f[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
59
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Vu.default=X4;EE.exports=Vu.default});var Gu=v((zu,AE)=>{"use strict";zu.__esModule=!0;function eD(e){return e&&e.__esModule?e:{default:e}}o(eD,"_interopRequireDefault");var tD=lr(),Bm=eD(tD);function Hu(){this.parents=[]}o(Hu,"Visitor");Hu.prototype={constructor:Hu,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Hu.prototype[n.type])throw new Bm.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Bm.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new Bm.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:Uu,Decorator:Uu,BlockStatement:wE,DecoratorBlock:wE,PartialStatement:xE,PartialBlockStatement:o(function(t){xE.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Uu,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function Uu(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Uu,"visitSubExpression");function wE(e){Uu.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(wE,"visitBlock");function xE(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(xE,"visitPartial");zu.default=Hu;AE.exports=zu.default});var CE=v((Zu,IE)=>{"use strict";Zu.__esModule=!0;function rD(e){return e&&e.__esModule?e:{default:e}}o(rD,"_interopRequireDefault");var nD=Gu(),iD=rD(nD);function Qr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(Qr,"WhitespaceControl");Qr.prototype=new iD.default;Qr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=Vm(n,i,r),l=Hm(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Ui(n,i,!0),c.open&&Qn(n,i,!0),t&&d&&(Ui(n,i),Qn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Ui((a.program||a.inverse).body),Qn(n,i)),t&&f&&(Ui(n,i),Qn((a.inverse||a.program).body))}}return e};Qr.prototype.BlockStatement=Qr.prototype.DecoratorBlock=Qr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Hm(t.body),closeStandalone:Vm((n||t).body)};if(e.openStrip.close&&Ui(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Qn(t.body,null,!0),a.close&&Ui(n.body,null,!0),e.closeStrip.open&&Qn(i.body,null,!0),!this.options.ignoreStandalone&&Vm(t.body)&&Hm(n.body)&&(Qn(t.body),Ui(n.body))}else e.closeStrip.open&&Qn(t.body,null,!0);return s};Qr.prototype.Decorator=Qr.prototype.MustacheStatement=function(e){return e.strip};Qr.prototype.PartialStatement=Qr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Vm(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(Vm,"isPrevWhitespace");function Hm(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(Hm,"isNextWhitespace");function Ui(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Ui,"omitRight");function Qn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(Qn,"omitLeft");Zu.default=Qr;IE.exports=Zu.default});var TE=v(fr=>{"use strict";fr.__esModule=!0;fr.SourceLocation=aD;fr.id=cD;fr.stripFlags=uD;fr.stripComment=lD;fr.preparePath=fD;fr.prepareMustache=pD;fr.prepareRawBlock=dD;fr.prepareBlock=hD;fr.prepareProgram=mD;fr.preparePartialBlock=gD;function oD(e){return e&&e.__esModule?e:{default:e}}o(oD,"_interopRequireDefault");var sD=lr(),Um=oD(sD);function zm(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Um.default(e.path.original+" doesn't match "+t,r)}}o(zm,"validateClose");function aD(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(aD,"SourceLocation");function cD(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(cD,"id");function uD(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(uD,"stripFlags");function lD(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(lD,"stripComment");function fD(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new Um.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(fD,"preparePath");function pD(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(pD,"prepareMustache");function dD(e,t,r,n){zm(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(dD,"prepareRawBlock");function hD(e,t,r,n,i,s){n&&n.path&&zm(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Um.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(hD,"prepareBlock");function mD(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(mD,"prepareProgram");function gD(e,t,r,n){return zm(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(gD,"preparePartialBlock")});var NE=v(va=>{"use strict";va.__esModule=!0;va.parseWithoutProcessing=RE;va.parse=ED;function yD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(yD,"_interopRequireWildcard");function jE(e){return e&&e.__esModule?e:{default:e}}o(jE,"_interopRequireDefault");var bD=$E(),Gm=jE(bD),vD=CE(),_D=jE(vD),SD=TE(),OD=yD(SD),PD=Ct();va.parser=Gm.default;var Wu={};PD.extend(Wu,OD);function RE(e,t){if(e.type==="Program")return e;Gm.default.yy=Wu,Wu.locInfo=function(n){return new Wu.SourceLocation(t&&t.srcName,n)};var r=Gm.default.parse(e);return r}o(RE,"parseWithoutProcessing");function ED(e,t){var r=RE(e,t),n=new _D.default(t);return n.accept(r)}o(ED,"parse")});var DE=v(Pa=>{"use strict";Pa.__esModule=!0;Pa.Compiler=Zm;Pa.precompile=AD;Pa.compile=ID;function ME(e){return e&&e.__esModule?e:{default:e}}o(ME,"_interopRequireDefault");var $D=lr(),Sa=ME($D),Oa=Ct(),wD=Fm(),_a=ME(wD),xD=[].slice;function Zm(){}o(Zm,"Compiler");Zm.prototype={compiler:Zm,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!qE(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Oa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Sa.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){kE(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Sa.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){kE(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Sa.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,_a.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=_a.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:xD.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=_a.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&_a.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!_a.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Oa.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function AD(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Sa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(AD,"precompile");function ID(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Sa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Oa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(ID,"compile");function qE(e,t){if(e===t)return!0;if(Oa.isArray(e)&&Oa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!qE(e[r],t[r]))return!1;return!0}}o(qE,"argEquals");function kE(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(kE,"transformLiteralToPath")});var FE=v(Wm=>{var LE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Wm.encode=function(e){if(0<=e&&e<LE.length)return LE[e];throw new TypeError("Must be between 0 and 63: "+e)};Wm.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var Qm=v(Ym=>{var BE=FE(),Km=5,VE=1<<Km,HE=VE-1,UE=VE;function CD(e){return e<0?(-e<<1)+1:(e<<1)+0}o(CD,"toVLQSigned");function TD(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(TD,"fromVLQSigned");Ym.encode=o(function(t){var r="",n,i=CD(t);do n=i&HE,i>>>=Km,i>0&&(n|=UE),r+=BE.encode(n);while(i>0);return r},"base64VLQ_encode");Ym.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=BE.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&UE),u&=HE,s=s+(u<<a),a+=Km}while(c);n.value=TD(s),n.rest=r},"base64VLQ_decode")});var Yo=v(Pt=>{function jD(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(jD,"getArg");Pt.getArg=jD;var zE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,RD=/^data:.+\,.+$/;function Ea(e){var t=e.match(zE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Ea,"urlParse");Pt.urlParse=Ea;function Wo(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(Wo,"urlGenerate");Pt.urlGenerate=Wo;function Jm(e){var t=e,r=Ea(e);if(r){if(!r.path)return e;t=r.path}for(var n=Pt.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Wo(r)):t}o(Jm,"normalize");Pt.normalize=Jm;function GE(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ea(t),n=Ea(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Wo(r);if(r||t.match(RD))return t;if(n&&!n.host&&!n.path)return n.host=t,Wo(n);var i=t.charAt(0)==="/"?t:Jm(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Wo(n)):i}o(GE,"join");Pt.join=GE;Pt.isAbsolute=function(e){return e.charAt(0)==="/"||zE.test(e)};function ND(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(ND,"relative");Pt.relative=ND;var ZE=function(){var e=Object.create(null);return!("__proto__"in e)}();function WE(e){return e}o(WE,"identity");function kD(e){return KE(e)?"$"+e:e}o(kD,"toSetString");Pt.toSetString=ZE?WE:kD;function MD(e){return KE(e)?e.slice(1):e}o(MD,"fromSetString");Pt.fromSetString=ZE?WE:MD;function KE(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(KE,"isProtoString");function qD(e,t,r){var n=Ko(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Ko(e.name,t.name)}o(qD,"compareByOriginalPositions");Pt.compareByOriginalPositions=qD;function DD(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Ko(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ko(e.name,t.name)}o(DD,"compareByGeneratedPositionsDeflated");Pt.compareByGeneratedPositionsDeflated=DD;function Ko(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Ko,"strcmp");function LD(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Ko(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ko(e.name,t.name)}o(LD,"compareByGeneratedPositionsInflated");Pt.compareByGeneratedPositionsInflated=LD;function FD(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(FD,"parseSourceMapInput");Pt.parseSourceMapInput=FD;function BD(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Ea(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=GE(Wo(n),t)}return Jm(t)}o(BD,"computeSourceURL");Pt.computeSourceURL=BD});var tg=v(YE=>{var Xm=Yo(),eg=Object.prototype.hasOwnProperty,zi=typeof Map<"u";function fn(){this._array=[],this._set=zi?new Map:Object.create(null)}o(fn,"ArraySet");fn.fromArray=o(function(t,r){for(var n=new fn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");fn.prototype.size=o(function(){return zi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");fn.prototype.add=o(function(t,r){var n=zi?t:Xm.toSetString(t),i=zi?this.has(t):eg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(zi?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");fn.prototype.has=o(function(t){if(zi)return this._set.has(t);var r=Xm.toSetString(t);return eg.call(this._set,r)},"ArraySet_has");fn.prototype.indexOf=o(function(t){if(zi){var r=this._set.get(t);if(r>=0)return r}else{var n=Xm.toSetString(t);if(eg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");fn.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");fn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");YE.ArraySet=fn});var XE=v(JE=>{var QE=Yo();function VD(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||QE.compareByGeneratedPositionsInflated(e,t)<=0}o(VD,"generatedPositionAfter");function Ku(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Ku,"MappingList");Ku.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Ku.prototype.add=o(function(t){VD(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Ku.prototype.toArray=o(function(){return this._sorted||(this._array.sort(QE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");JE.MappingList=Ku});var rg=v(e2=>{var $a=Qm(),tt=Yo(),Yu=tg().ArraySet,HD=XE().MappingList;function pr(e){e||(e={}),this._file=tt.getArg(e,"file",null),this._sourceRoot=tt.getArg(e,"sourceRoot",null),this._skipValidation=tt.getArg(e,"skipValidation",!1),this._sources=new Yu,this._names=new Yu,this._mappings=new HD,this._sourcesContents=null}o(pr,"SourceMapGenerator");pr.prototype._version=3;pr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new pr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=tt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=tt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");pr.prototype.addMapping=o(function(t){var r=tt.getArg(t,"generated"),n=tt.getArg(t,"original",null),i=tt.getArg(t,"source",null),s=tt.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");pr.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=tt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[tt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[tt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");pr.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=tt.relative(s,i));var a=new Yu,c=new Yu;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=tt.join(n,u.source)),s!=null&&(u.source=tt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=tt.join(n,u)),s!=null&&(u=tt.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");pr.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");pr.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!tt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=$a.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=$a.encode(f-a),a=f,u+=$a.encode(l.originalLine-1-i),i=l.originalLine-1,u+=$a.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=$a.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");pr.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=tt.relative(r,n));var i=tt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");pr.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");pr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");e2.SourceMapGenerator=pr});var t2=v(Gi=>{Gi.GREATEST_LOWER_BOUND=1;Gi.LEAST_UPPER_BOUND=2;function ng(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?ng(a,t,r,n,i,s):s==Gi.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?ng(e,a,r,n,i,s):s==Gi.LEAST_UPPER_BOUND?a:e<0?-1:e}o(ng,"recursiveSearch");Gi.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=ng(-1,r.length,t,r,n,i||Gi.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var n2=v(r2=>{function ig(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(ig,"swap");function UD(e,t){return Math.round(e+Math.random()*(t-e))}o(UD,"randomIntInRange");function og(e,t,r,n){if(r<n){var i=UD(r,n),s=r-1;ig(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,ig(e,s,c));ig(e,s+1,c);var u=s+1;og(e,t,r,u-1),og(e,t,u+1,n)}}o(og,"doQuickSort");r2.quickSort=function(e,t){og(e,t,0,e.length-1)}});var o2=v(Qu=>{var U=Yo(),sg=t2(),Qo=tg().ArraySet,zD=Qm(),wa=n2().quickSort;function qe(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Cr(r,t):new mt(r,t)}o(qe,"SourceMapConsumer");qe.fromSourceMap=function(e,t){return mt.fromSourceMap(e,t)};qe.prototype._version=3;qe.prototype.__generatedMappings=null;Object.defineProperty(qe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});qe.prototype.__originalMappings=null;Object.defineProperty(qe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});qe.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");qe.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");qe.GENERATED_ORDER=1;qe.ORIGINAL_ORDER=2;qe.GREATEST_LOWER_BOUND=1;qe.LEAST_UPPER_BOUND=2;qe.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||qe.GENERATED_ORDER,a;switch(s){case qe.GENERATED_ORDER:a=this._generatedMappings;break;case qe.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");qe.prototype.allGeneratedPositionsFor=o(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,sg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Qu.SourceMapConsumer=qe;function mt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=Qo.fromArray(s.map(String),!0),this._sources=Qo.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(mt,"BasicSourceMapConsumer");mt.prototype=Object.create(qe.prototype);mt.prototype.consumer=qe;mt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};mt.fromSourceMap=o(function(t,r){var n=Object.create(mt.prototype),i=n._names=Qo.fromArray(t._names.toArray(),!0),s=n._sources=Qo.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return U.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new i2;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return wa(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");mt.prototype._version=3;Object.defineProperty(mt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function i2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(i2,"Mapping");mt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,$,w,T;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new i2,b.generatedLine=n,w=p;w<l&&!this._charIsMappingSeparator(t,w);w++);if(g=t.slice(p,w),$=f[g],$)p+=g.length;else{for($=[];p<w;)zD.decode(t,p,d),T=d.value,p=d.rest,$.push(T);if($.length===2)throw new Error("Found a source, but no line and column");if($.length===3)throw new Error("Found a source and line, but no column");f[g]=$}b.generatedColumn=i+$[0],i=b.generatedColumn,$.length>1&&(b.source=c+$[1],c+=$[1],b.originalLine=s+$[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+$[3],a=b.originalColumn,$.length>4&&(b.name=u+$[4],u+=$[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}wa(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,wa(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");mt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return sg.search(t,r,s,a)},"SourceMapConsumer_findMapping");mt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");mt.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",qe.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");mt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");mt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");mt.prototype.generatedPositionFor=o(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",qe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Qu.BasicSourceMapConsumer=mt;function Cr(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Qo,this._names=new Qo;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new qe(U.getArg(a,"map"),t)}})}o(Cr,"IndexedSourceMapConsumer");Cr.prototype=Object.create(qe.prototype);Cr.prototype.constructor=qe;Cr.prototype._version=3;Object.defineProperty(Cr.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});Cr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=sg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");Cr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Cr.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");Cr.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");Cr.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}wa(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),wa(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Qu.IndexedSourceMapConsumer=Cr});var a2=v(s2=>{var GD=rg().SourceMapGenerator,Ju=Yo(),ZD=/(\r?\n)/,WD=10,Jo="$$$isSourceNode$$$";function Wt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Jo]=!0,n!=null&&this.add(n)}o(Wt,"SourceNode");Wt.fromStringWithSourceMap=o(function(t,r,n){var i=new Wt,s=t.split(ZD),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Ju.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?Ju.join(n,d.source):d.source;i.add(new Wt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Wt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Jo]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Wt.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Jo]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Wt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Jo]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Wt.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Wt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Jo]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Wt.prototype.setSourceContent=o(function(t,r){this.sourceContents[Ju.toSetString(t)]=r},"SourceNode_setSourceContent");Wt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Jo]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Ju.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Wt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Wt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new GD(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===WD?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");s2.SourceNode=Wt});var c2=v(Xu=>{Xu.SourceMapGenerator=rg().SourceMapGenerator;Xu.SourceMapConsumer=o2().SourceMapConsumer;Xu.SourceNode=a2().SourceNode});var p2=v((el,f2)=>{"use strict";el.__esModule=!0;var cg=Ct(),Zi=void 0;try{(typeof define!="function"||!define.amd)&&(u2=c2(),Zi=u2.SourceNode)}catch{}var u2;Zi||(Zi=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Zi.prototype={add:o(function(t){cg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){cg.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function ag(e,t,r){if(cg.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(ag,"castChunk");function l2(e){this.srcFile=e,this.source=[]}o(l2,"CodeGen");l2.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
60
|
-
`])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new
|
|
59
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Wu.default=uD;j2.exports=Wu.default});var Qu=v((Yu,k2)=>{"use strict";Yu.__esModule=!0;function lD(e){return e&&e.__esModule?e:{default:e}}o(lD,"_interopRequireDefault");var fD=lr(),Gm=lD(fD);function Zu(){this.parents=[]}o(Zu,"Visitor");Zu.prototype={constructor:Zu,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Zu.prototype[n.type])throw new Gm.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Gm.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new Gm.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:Ku,Decorator:Ku,BlockStatement:R2,DecoratorBlock:R2,PartialStatement:N2,PartialBlockStatement:o(function(t){N2.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Ku,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function Ku(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Ku,"visitSubExpression");function R2(e){Ku.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(R2,"visitBlock");function N2(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(N2,"visitPartial");Yu.default=Zu;k2.exports=Yu.default});var q2=v((Ju,M2)=>{"use strict";Ju.__esModule=!0;function pD(e){return e&&e.__esModule?e:{default:e}}o(pD,"_interopRequireDefault");var dD=Qu(),hD=pD(dD);function Jr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(Jr,"WhitespaceControl");Jr.prototype=new hD.default;Jr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=Wm(n,i,r),l=Zm(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Ui(n,i,!0),c.open&&Yn(n,i,!0),t&&d&&(Ui(n,i),Yn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Ui((a.program||a.inverse).body),Yn(n,i)),t&&f&&(Ui(n,i),Yn((a.inverse||a.program).body))}}return e};Jr.prototype.BlockStatement=Jr.prototype.DecoratorBlock=Jr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Zm(t.body),closeStandalone:Wm((n||t).body)};if(e.openStrip.close&&Ui(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Yn(t.body,null,!0),a.close&&Ui(n.body,null,!0),e.closeStrip.open&&Yn(i.body,null,!0),!this.options.ignoreStandalone&&Wm(t.body)&&Zm(n.body)&&(Yn(t.body),Ui(n.body))}else e.closeStrip.open&&Yn(t.body,null,!0);return s};Jr.prototype.Decorator=Jr.prototype.MustacheStatement=function(e){return e.strip};Jr.prototype.PartialStatement=Jr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Wm(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(Wm,"isPrevWhitespace");function Zm(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(Zm,"isNextWhitespace");function Ui(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Ui,"omitRight");function Yn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(Yn,"omitLeft");Ju.default=Jr;M2.exports=Ju.default});var D2=v(fr=>{"use strict";fr.__esModule=!0;fr.SourceLocation=yD;fr.id=bD;fr.stripFlags=vD;fr.stripComment=_D;fr.preparePath=SD;fr.prepareMustache=PD;fr.prepareRawBlock=OD;fr.prepareBlock=ED;fr.prepareProgram=$D;fr.preparePartialBlock=wD;function mD(e){return e&&e.__esModule?e:{default:e}}o(mD,"_interopRequireDefault");var gD=lr(),Km=mD(gD);function Ym(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Km.default(e.path.original+" doesn't match "+t,r)}}o(Ym,"validateClose");function yD(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(yD,"SourceLocation");function bD(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(bD,"id");function vD(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(vD,"stripFlags");function _D(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(_D,"stripComment");function SD(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new Km.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(SD,"preparePath");function PD(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(PD,"prepareMustache");function OD(e,t,r,n){Ym(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(OD,"prepareRawBlock");function ED(e,t,r,n,i,s){n&&n.path&&Ym(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Km.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(ED,"prepareBlock");function $D(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o($D,"prepareProgram");function wD(e,t,r,n){return Ym(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(wD,"preparePartialBlock")});var V2=v(va=>{"use strict";va.__esModule=!0;va.parseWithoutProcessing=F2;va.parse=ND;function xD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(xD,"_interopRequireWildcard");function L2(e){return e&&e.__esModule?e:{default:e}}o(L2,"_interopRequireDefault");var AD=T2(),Qm=L2(AD),CD=q2(),ID=L2(CD),jD=D2(),TD=xD(jD),RD=jt();va.parser=Qm.default;var Xu={};RD.extend(Xu,TD);function F2(e,t){if(e.type==="Program")return e;Qm.default.yy=Xu,Xu.locInfo=function(n){return new Xu.SourceLocation(t&&t.srcName,n)};var r=Qm.default.parse(e);return r}o(F2,"parseWithoutProcessing");function ND(e,t){var r=F2(e,t),n=new ID.default(t);return n.accept(r)}o(ND,"parse")});var z2=v(Oa=>{"use strict";Oa.__esModule=!0;Oa.Compiler=Jm;Oa.precompile=DD;Oa.compile=LD;function H2(e){return e&&e.__esModule?e:{default:e}}o(H2,"_interopRequireDefault");var kD=lr(),Sa=H2(kD),Pa=jt(),MD=zm(),_a=H2(MD),qD=[].slice;function Jm(){}o(Jm,"Compiler");Jm.prototype={compiler:Jm,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!U2(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Pa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Sa.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){B2(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Sa.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){B2(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Sa.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,_a.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=_a.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:qD.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=_a.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&_a.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!_a.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Pa.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function DD(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Sa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(DD,"precompile");function LD(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Sa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Pa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(LD,"compile");function U2(e,t){if(e===t)return!0;if(Pa.isArray(e)&&Pa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!U2(e[r],t[r]))return!1;return!0}}o(U2,"argEquals");function B2(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(B2,"transformLiteralToPath")});var W2=v(Xm=>{var G2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Xm.encode=function(e){if(0<=e&&e<G2.length)return G2[e];throw new TypeError("Must be between 0 and 63: "+e)};Xm.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var rg=v(tg=>{var Z2=W2(),eg=5,K2=1<<eg,Y2=K2-1,Q2=K2;function FD(e){return e<0?(-e<<1)+1:(e<<1)+0}o(FD,"toVLQSigned");function VD(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(VD,"fromVLQSigned");tg.encode=o(function(t){var r="",n,i=FD(t);do n=i&Y2,i>>>=eg,i>0&&(n|=Q2),r+=Z2.encode(n);while(i>0);return r},"base64VLQ_encode");tg.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Z2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&Q2),u&=Y2,s=s+(u<<a),a+=eg}while(c);n.value=VD(s),n.rest=r},"base64VLQ_decode")});var Yo=v(Ot=>{function BD(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(BD,"getArg");Ot.getArg=BD;var J2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,HD=/^data:.+\,.+$/;function Ea(e){var t=e.match(J2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Ea,"urlParse");Ot.urlParse=Ea;function Zo(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(Zo,"urlGenerate");Ot.urlGenerate=Zo;function ng(e){var t=e,r=Ea(e);if(r){if(!r.path)return e;t=r.path}for(var n=Ot.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zo(r)):t}o(ng,"normalize");Ot.normalize=ng;function X2(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ea(t),n=Ea(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zo(r);if(r||t.match(HD))return t;if(n&&!n.host&&!n.path)return n.host=t,Zo(n);var i=t.charAt(0)==="/"?t:ng(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zo(n)):i}o(X2,"join");Ot.join=X2;Ot.isAbsolute=function(e){return e.charAt(0)==="/"||J2.test(e)};function UD(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(UD,"relative");Ot.relative=UD;var eE=function(){var e=Object.create(null);return!("__proto__"in e)}();function tE(e){return e}o(tE,"identity");function zD(e){return rE(e)?"$"+e:e}o(zD,"toSetString");Ot.toSetString=eE?tE:zD;function GD(e){return rE(e)?e.slice(1):e}o(GD,"fromSetString");Ot.fromSetString=eE?tE:GD;function rE(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(rE,"isProtoString");function WD(e,t,r){var n=Ko(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Ko(e.name,t.name)}o(WD,"compareByOriginalPositions");Ot.compareByOriginalPositions=WD;function ZD(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Ko(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ko(e.name,t.name)}o(ZD,"compareByGeneratedPositionsDeflated");Ot.compareByGeneratedPositionsDeflated=ZD;function Ko(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Ko,"strcmp");function KD(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Ko(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ko(e.name,t.name)}o(KD,"compareByGeneratedPositionsInflated");Ot.compareByGeneratedPositionsInflated=KD;function YD(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(YD,"parseSourceMapInput");Ot.parseSourceMapInput=YD;function QD(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Ea(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=X2(Zo(n),t)}return ng(t)}o(QD,"computeSourceURL");Ot.computeSourceURL=QD});var sg=v(nE=>{var ig=Yo(),og=Object.prototype.hasOwnProperty,zi=typeof Map<"u";function pn(){this._array=[],this._set=zi?new Map:Object.create(null)}o(pn,"ArraySet");pn.fromArray=o(function(t,r){for(var n=new pn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");pn.prototype.size=o(function(){return zi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");pn.prototype.add=o(function(t,r){var n=zi?t:ig.toSetString(t),i=zi?this.has(t):og.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(zi?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");pn.prototype.has=o(function(t){if(zi)return this._set.has(t);var r=ig.toSetString(t);return og.call(this._set,r)},"ArraySet_has");pn.prototype.indexOf=o(function(t){if(zi){var r=this._set.get(t);if(r>=0)return r}else{var n=ig.toSetString(t);if(og.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");pn.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");pn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");nE.ArraySet=pn});var sE=v(oE=>{var iE=Yo();function JD(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||iE.compareByGeneratedPositionsInflated(e,t)<=0}o(JD,"generatedPositionAfter");function el(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(el,"MappingList");el.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");el.prototype.add=o(function(t){JD(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");el.prototype.toArray=o(function(){return this._sorted||(this._array.sort(iE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");oE.MappingList=el});var ag=v(aE=>{var $a=rg(),nt=Yo(),tl=sg().ArraySet,XD=sE().MappingList;function pr(e){e||(e={}),this._file=nt.getArg(e,"file",null),this._sourceRoot=nt.getArg(e,"sourceRoot",null),this._skipValidation=nt.getArg(e,"skipValidation",!1),this._sources=new tl,this._names=new tl,this._mappings=new XD,this._sourcesContents=null}o(pr,"SourceMapGenerator");pr.prototype._version=3;pr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new pr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=nt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=nt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");pr.prototype.addMapping=o(function(t){var r=nt.getArg(t,"generated"),n=nt.getArg(t,"original",null),i=nt.getArg(t,"source",null),s=nt.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");pr.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=nt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[nt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[nt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");pr.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=nt.relative(s,i));var a=new tl,c=new tl;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=nt.join(n,u.source)),s!=null&&(u.source=nt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=nt.join(n,u)),s!=null&&(u=nt.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");pr.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");pr.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!nt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=$a.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=$a.encode(f-a),a=f,u+=$a.encode(l.originalLine-1-i),i=l.originalLine-1,u+=$a.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=$a.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");pr.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=nt.relative(r,n));var i=nt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");pr.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");pr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");aE.SourceMapGenerator=pr});var cE=v(Gi=>{Gi.GREATEST_LOWER_BOUND=1;Gi.LEAST_UPPER_BOUND=2;function cg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?cg(a,t,r,n,i,s):s==Gi.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?cg(e,a,r,n,i,s):s==Gi.LEAST_UPPER_BOUND?a:e<0?-1:e}o(cg,"recursiveSearch");Gi.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=cg(-1,r.length,t,r,n,i||Gi.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var lE=v(uE=>{function ug(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(ug,"swap");function eL(e,t){return Math.round(e+Math.random()*(t-e))}o(eL,"randomIntInRange");function lg(e,t,r,n){if(r<n){var i=eL(r,n),s=r-1;ug(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,ug(e,s,c));ug(e,s+1,c);var u=s+1;lg(e,t,r,u-1),lg(e,t,u+1,n)}}o(lg,"doQuickSort");uE.quickSort=function(e,t){lg(e,t,0,e.length-1)}});var pE=v(rl=>{var U=Yo(),fg=cE(),Qo=sg().ArraySet,tL=rg(),wa=lE().quickSort;function qe(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Ir(r,t):new mt(r,t)}o(qe,"SourceMapConsumer");qe.fromSourceMap=function(e,t){return mt.fromSourceMap(e,t)};qe.prototype._version=3;qe.prototype.__generatedMappings=null;Object.defineProperty(qe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});qe.prototype.__originalMappings=null;Object.defineProperty(qe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});qe.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");qe.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");qe.GENERATED_ORDER=1;qe.ORIGINAL_ORDER=2;qe.GREATEST_LOWER_BOUND=1;qe.LEAST_UPPER_BOUND=2;qe.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||qe.GENERATED_ORDER,a;switch(s){case qe.GENERATED_ORDER:a=this._generatedMappings;break;case qe.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");qe.prototype.allGeneratedPositionsFor=o(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,fg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");rl.SourceMapConsumer=qe;function mt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=Qo.fromArray(s.map(String),!0),this._sources=Qo.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(mt,"BasicSourceMapConsumer");mt.prototype=Object.create(qe.prototype);mt.prototype.consumer=qe;mt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};mt.fromSourceMap=o(function(t,r){var n=Object.create(mt.prototype),i=n._names=Qo.fromArray(t._names.toArray(),!0),s=n._sources=Qo.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return U.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new fE;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return wa(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");mt.prototype._version=3;Object.defineProperty(mt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function fE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(fE,"Mapping");mt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,$,w,j;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new fE,b.generatedLine=n,w=p;w<l&&!this._charIsMappingSeparator(t,w);w++);if(g=t.slice(p,w),$=f[g],$)p+=g.length;else{for($=[];p<w;)tL.decode(t,p,d),j=d.value,p=d.rest,$.push(j);if($.length===2)throw new Error("Found a source, but no line and column");if($.length===3)throw new Error("Found a source and line, but no column");f[g]=$}b.generatedColumn=i+$[0],i=b.generatedColumn,$.length>1&&(b.source=c+$[1],c+=$[1],b.originalLine=s+$[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+$[3],a=b.originalColumn,$.length>4&&(b.name=u+$[4],u+=$[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}wa(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,wa(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");mt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return fg.search(t,r,s,a)},"SourceMapConsumer_findMapping");mt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");mt.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",qe.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");mt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");mt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");mt.prototype.generatedPositionFor=o(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",qe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");rl.BasicSourceMapConsumer=mt;function Ir(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Qo,this._names=new Qo;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new qe(U.getArg(a,"map"),t)}})}o(Ir,"IndexedSourceMapConsumer");Ir.prototype=Object.create(qe.prototype);Ir.prototype.constructor=qe;Ir.prototype._version=3;Object.defineProperty(Ir.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});Ir.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=fg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");Ir.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Ir.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");Ir.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");Ir.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}wa(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),wa(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");rl.IndexedSourceMapConsumer=Ir});var hE=v(dE=>{var rL=ag().SourceMapGenerator,nl=Yo(),nL=/(\r?\n)/,iL=10,Jo="$$$isSourceNode$$$";function Zt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Jo]=!0,n!=null&&this.add(n)}o(Zt,"SourceNode");Zt.fromStringWithSourceMap=o(function(t,r,n){var i=new Zt,s=t.split(nL),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=nl.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?nl.join(n,d.source):d.source;i.add(new Zt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Zt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Jo]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Zt.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Jo]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Zt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Jo]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Zt.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Zt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Jo]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Zt.prototype.setSourceContent=o(function(t,r){this.sourceContents[nl.toSetString(t)]=r},"SourceNode_setSourceContent");Zt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Jo]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(nl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Zt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Zt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new rL(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===iL?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");dE.SourceNode=Zt});var mE=v(il=>{il.SourceMapGenerator=ag().SourceMapGenerator;il.SourceMapConsumer=pE().SourceMapConsumer;il.SourceNode=hE().SourceNode});var vE=v((ol,bE)=>{"use strict";ol.__esModule=!0;var dg=jt(),Wi=void 0;try{(typeof define!="function"||!define.amd)&&(gE=mE(),Wi=gE.SourceNode)}catch{}var gE;Wi||(Wi=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wi.prototype={add:o(function(t){dg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){dg.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function pg(e,t,r){if(dg.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(pg,"castChunk");function yE(e){this.srcFile=e,this.source=[]}o(yE,"CodeGen");yE.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
60
|
+
`])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new Wi(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Wi?t:(t=pg(t,this,r),new Wi(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=pg(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(pg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};ol.default=yE;bE.exports=ol.default});var EE=v((sl,OE)=>{"use strict";sl.__esModule=!0;function PE(e){return e&&e.__esModule?e:{default:e}}o(PE,"_interopRequireDefault");var _E=Vu(),oL=lr(),hg=PE(oL),sL=jt(),aL=vE(),SE=PE(aL);function Xo(e){this.value=e}o(Xo,"Literal");function es(){}o(es,"JavaScriptCompiler");es.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=_E.COMPILER_REVISION,r=_E.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return sL.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new hg.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
61
61
|
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
62
62
|
`),this.decorators.push(`}
|
|
63
|
-
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new
|
|
63
|
+
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new SE.default(this.options.srcName),this.decorators=new SE.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
64
64
|
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
65
65
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
|
66
66
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -69,17 +69,17 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ue="Parse error o
|
|
|
69
69
|
}
|
|
70
70
|
return undefined
|
|
71
71
|
}
|
|
72
|
-
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(JD(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:es,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Xo||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Xo(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new ug.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Xo)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Xo)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Xo)return n.value;if(!r){if(!this.stackSlot)throw new ug.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Xo?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=es.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();es.isValidJavaScriptVariableName=function(e){return!es.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function JD(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(JD,"strictLookup");tl.default=es;g2.exports=tl.default});var _2=v((rl,v2)=>{"use strict";rl.__esModule=!0;function xa(e){return e&&e.__esModule?e:{default:e}}o(xa,"_interopRequireDefault");var XD=SE(),eL=xa(XD),tL=Fm(),rL=xa(tL),lg=NE(),fg=DE(),nL=y2(),iL=xa(nL),oL=Gu(),sL=xa(oL),aL=Mm(),cL=xa(aL),uL=eL.default.create;function b2(){var e=uL();return e.compile=function(t,r){return fg.compile(t,r,e)},e.precompile=function(t,r){return fg.precompile(t,r,e)},e.AST=rL.default,e.Compiler=fg.Compiler,e.JavaScriptCompiler=iL.default,e.Parser=lg.parser,e.parse=lg.parse,e.parseWithoutProcessing=lg.parseWithoutProcessing,e}o(b2,"create");var ts=b2();ts.create=b2;cL.default(ts);ts.Visitor=sL.default;ts.default=ts;rl.default=ts;v2.exports=rl.default});var S2=v(nl=>{"use strict";nl.__esModule=!0;nl.print=dL;nl.PrintVisitor=Ze;function lL(e){return e&&e.__esModule?e:{default:e}}o(lL,"_interopRequireDefault");var fL=Gu(),pL=lL(fL);function dL(e){return new Ze().accept(e)}o(dL,"print");function Ze(){this.padding=0}o(Ze,"PrintVisitor");Ze.prototype=new pL.default;Ze.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
73
|
-
`,t};
|
|
72
|
+
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(cL(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:es,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Xo||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Xo(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new hg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Xo)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Xo)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Xo)return n.value;if(!r){if(!this.stackSlot)throw new hg.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Xo?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=es.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();es.isValidJavaScriptVariableName=function(e){return!es.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function cL(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(cL,"strictLookup");sl.default=es;OE.exports=sl.default});var xE=v((al,wE)=>{"use strict";al.__esModule=!0;function xa(e){return e&&e.__esModule?e:{default:e}}o(xa,"_interopRequireDefault");var uL=A2(),lL=xa(uL),fL=zm(),pL=xa(fL),mg=V2(),gg=z2(),dL=EE(),hL=xa(dL),mL=Qu(),gL=xa(mL),yL=Vm(),bL=xa(yL),vL=lL.default.create;function $E(){var e=vL();return e.compile=function(t,r){return gg.compile(t,r,e)},e.precompile=function(t,r){return gg.precompile(t,r,e)},e.AST=pL.default,e.Compiler=gg.Compiler,e.JavaScriptCompiler=hL.default,e.Parser=mg.parser,e.parse=mg.parse,e.parseWithoutProcessing=mg.parseWithoutProcessing,e}o($E,"create");var ts=$E();ts.create=$E;bL.default(ts);ts.Visitor=gL.default;ts.default=ts;al.default=ts;wE.exports=al.default});var AE=v(cl=>{"use strict";cl.__esModule=!0;cl.print=OL;cl.PrintVisitor=We;function _L(e){return e&&e.__esModule?e:{default:e}}o(_L,"_interopRequireDefault");var SL=Qu(),PL=_L(SL);function OL(e){return new We().accept(e)}o(OL,"print");function We(){this.padding=0}o(We,"PrintVisitor");We.prototype=new PL.default;We.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
73
|
+
`,t};We.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};We.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};We.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};We.prototype.BlockStatement=We.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};We.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};We.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};We.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};We.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};We.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};We.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};We.prototype.StringLiteral=function(e){return'"'+e.value+'"'};We.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};We.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};We.prototype.UndefinedLiteral=function(){return"UNDEFINED"};We.prototype.NullLiteral=function(){return"NULL"};We.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};We.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Qn=v((HZ,jE)=>{var ul=xE().default,IE=AE();ul.PrintVisitor=IE.PrintVisitor;ul.print=IE.print;jE.exports=ul;function CE(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=ul.compile(n)}o(CE,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=CE,require.extensions[".hbs"]=CE)});var qa=require("assert");var d$={right:b$,center:v$},h$=0,Ca=1,m$=2,Ia=3,ml=class ml{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
|
|
74
74
|
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Ft.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Ft.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Ft.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
|
|
75
|
-
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Ft.stringWidth(a)&&(p+=" ".repeat(l-Ft.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=
|
|
75
|
+
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Ft.stringWidth(a)&&(p+=" ".repeat(l-Ft.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=d$[t[c].align];p=d(p,l),Ft.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Ft.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[Ia]&&(s+=" ".repeat(f[Ia])),s+=Pg(t[c],p,"| "),s+=p,s+=Pg(t[c],p," |"),f[Ca]&&(s+=" ".repeat(f[Ca])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=Ft.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=Ft.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
|
76
76
|
`):i=s.text.split(`
|
|
77
|
-
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[
|
|
78
|
-
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o(_g,"wrap");function pl(e){return bg(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:fl,wrap:_g})}o(pl,"ui");var Ki=require("path"),Ta=require("fs");function dl(e,t){let r=(0,Ki.resolve)(".",e),n;for((0,Ta.statSync)(r).isDirectory()||(r=(0,Ki.dirname)(r));;){if(n=t(r,(0,Ta.readdirSync)(r)),n)return(0,Ki.resolve)(r,n);if(r=(0,Ki.dirname)(n=r),n===r)break}}o(dl,"default");var Mg=require("util"),qg=require("fs"),Dg=require("url");var $g=require("util"),ka=require("path");function ri(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(ri,"camelCase");function ja(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(ja,"decamelize");function Ra(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}o(Ra,"looksLikeNumber");function Sg(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}o(Sg,"tokenizeArgString");var Yt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Yt||(Yt={}));var Xr,ml=class ml{constructor(t){Xr=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Sg(t),s=typeof t=="string",a=l$(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||Xr.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,R=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();R&&(g[R][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),Tt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){u[P]=u[_]})});let T=null;Wi();let I=[],C=Object.assign(Object.create(null),{_:[]}),ce={};for(let _=0;_<i.length;_++){let P=i[_],R=P.replace(/^-{3,}/,"---"),x,O,B,q,G,Xe;if(P!=="--"&&/^-/.test(P)&&Te(P))re(P);else if(R.match(/^---+(=|$)/)){re(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))q=P.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(te(q[1],g.arrays)?_=Oe(_,q[1],i,q[2]):te(q[1],g.nargs)!==!1?_=we(_,q[1],i,q[2]):J(q[1],q[2],!0));else if(P.match(w)&&c["boolean-negation"])q=P.match(w),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],J(O,te(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))q=P.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],te(O,g.arrays)?_=Oe(_,O,i):te(O,g.nargs)!==!1?_=we(_,O,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(J(O,G),_++):J(O,_e(O))));else if(P.match(/^-.\..+=/))q=P.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&J(q[1],q[2]);else if(P.match(/^-.\..+/)&&!P.match($))G=i[_+1],q=P.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],G!==void 0&&!G.match(/^-/)&&!te(O,g.bools)&&!te(O,g.counts)?(J(O,G),_++):J(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match($)){B=P.slice(1,-1).split(""),x=!1;for(let ft=0;ft<B.length;ft++){if(G=P.slice(ft+2),B[ft+1]&&B[ft+1]==="="){Xe=P.slice(ft+3),O=B[ft],te(O,g.arrays)?_=Oe(_,O,i,Xe):te(O,g.nargs)!==!1?_=we(_,O,i,Xe):J(O,Xe),x=!0;break}if(G==="-"){J(B[ft],G);continue}if(/[A-Za-z]/.test(B[ft])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){J(B[ft],G),x=!0;break}if(B[ft+1]&&B[ft+1].match(/\W/)){J(B[ft],G),x=!0;break}else J(B[ft],_e(B[ft]))}O=P.slice(-1)[0],!x&&O!=="-"&&(te(O,g.arrays)?_=Oe(_,O,i):te(O,g.nargs)!==!1?_=we(_,O,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(J(O,G),_++):J(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match($)&&te(P.slice(1),g.bools))O=P.slice(1),J(O,_e(O));else if(P==="--"){I=i.slice(_+1);break}else if(c["halt-at-non-option"]){I=i.slice(_);break}else re(P)}ge(C,!0),ge(C,!1),Y(C),ve(),xe(C,g.aliases,u,!0),He(C),c["set-placeholder-key"]&&Tr(C),Object.keys(g.counts).forEach(function(_){Kt(C,_.split("."))||J(_,0)}),f&&I.length&&(C[d]=[]),I.forEach(function(_){C[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(C).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete C[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete C[_.split(".").map(P=>ri(P)).join(".")],delete C[_]});function re(_){let P=M("_",_);(typeof P=="string"||typeof P=="number")&&C._.push(P)}o(re,"pushPositional");function we(_,P,R,x){let O,B=te(P,g.nargs);if(B=typeof B!="number"||isNaN(B)?1:B,B===0)return jt(x)||(T=Error(b("Argument unexpected for: %s",P))),J(P,_e(P)),_;let q=jt(x)?0:1;if(c["nargs-eats-options"])R.length-(_+1)+q<B&&(T=Error(b("Not enough arguments following: %s",P))),q=B;else{for(O=_+1;O<R.length&&(!R[O].match(/^-[^0-9]/)||R[O].match($)||Te(R[O]));O++)q++;q<B&&(T=Error(b("Not enough arguments following: %s",P)))}let G=Math.min(q,B);for(!jt(x)&&G>0&&(J(P,x),G--),O=_+1;O<G+_+1;O++)J(P,R[O]);return _+G}o(we,"eatNargs");function Oe(_,P,R,x){let O=[],B=x||R[_+1],q=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(B))O.push(!0);else if(jt(B)||jt(x)&&/^-/.test(B)&&!$.test(B)&&!Te(B)){if(u[P]!==void 0){let G=u[P];O=Array.isArray(G)?G:[G]}}else{jt(x)||O.push(j(P,x,!0));for(let G=_+1;G<R.length&&!(!c["greedy-arrays"]&&O.length>0||q&&typeof q=="number"&&O.length>=q||(B=R[G],/^-/.test(B)&&!$.test(B)&&!Te(B)));G++)_=G,O.push(j(P,B,s))}return typeof q=="number"&&(q&&O.length<q||isNaN(q)&&O.length===0)&&(T=Error(b("Not enough arguments following: %s",P))),J(P,O),_}o(Oe,"eatArray");function J(_,P,R=s){if(/-/.test(_)&&c["camel-case-expansion"]){let B=_.split(".").map(function(q){return ri(q)}).join(".");k(_,B)}let x=j(_,P,R),O=_.split(".");K(C,O,x),g.aliases[_]&&g.aliases[_].forEach(function(B){let q=B.split(".");K(C,q,x)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(B){let q=B.split("."),G=[].concat(O);G.shift(),q=q.concat(G),(g.aliases[_]||[]).includes(q.join("."))||K(C,q,x)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(ce,q,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Xr.normalize(G):G}})})}o(J,"setArg");function k(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||k(P,_)}o(k,"addNewAlias");function j(_,P,R){R&&(P=f$(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let x=Array.isArray(P)?P.map(function(O){return M(_,O)}):M(_,P);return te(_,g.counts)&&(jt(x)||typeof x=="boolean")&&(x=hl()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?x=P.map(O=>Xr.normalize(O)):x=Xr.normalize(P)),x}o(j,"processValue");function M(_,P){return!c["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(Ra(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!jt(P)&&te(_,g.numbers))&&(P=Number(P)),P}o(M,"maybeCoerceNumber");function Y(_){let P=Object.create(null);xe(P,g.aliases,u),Object.keys(g.configs).forEach(function(R){let x=_[R]||P[R];if(x)try{let O=null,B=Xr.resolve(Xr.cwd(),x),q=g.configs[R];if(typeof q=="function"){try{O=q(B)}catch(G){O=G}if(O instanceof Error){T=O;return}}else O=Xr.require(B);ue(O)}catch(O){O.name==="PermissionDenied"?T=O:_[R]&&(T=Error(b("Invalid JSON config file: %s",x)))}})}o(Y,"setConfig");function ue(_,P){Object.keys(_).forEach(function(R){let x=_[R],O=P?P+"."+R:R;typeof x=="object"&&x!==null&&!Array.isArray(x)&&c["dot-notation"]?ue(x,O):(!Kt(C,O.split("."))||te(O,g.arrays)&&c["combine-arrays"])&&J(O,x)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let R=typeof p=="string"?p:"",x=Xr.env();Object.keys(x).forEach(function(O){if(R===""||O.lastIndexOf(R,0)===0){let B=O.split("__").map(function(q,G){return G===0&&(q=q.substring(R.length)),ri(q)});(P&&g.configs[B.join(".")]||!P)&&!Kt(_,B)&&J(B.join("."),x[O])}})}o(ge,"applyEnvVars");function He(_){let P,R=new Set;Object.keys(_).forEach(function(x){if(!R.has(x)&&(P=te(x,g.coercions),typeof P=="function"))try{let O=M(x,P(_[x]));[].concat(g.aliases[x]||[],x).forEach(B=>{R.add(B),_[B]=O})}catch(O){T=O}})}o(He,"applyCoercions");function Tr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}o(Tr,"setPlaceholderKeys");function xe(_,P,R,x=!1){Object.keys(R).forEach(function(O){Kt(_,O.split("."))||(K(_,O.split("."),R[O]),x&&(y[O]=!0),(P[O]||[]).forEach(function(B){Kt(_,B.split("."))||K(_,B.split("."),R[O])}))})}o(xe,"applyDefaultsAndAliases");function Kt(_,P){let R=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){R=R[O]||{}});let x=P[P.length-1];return typeof R!="object"?!1:x in R}o(Kt,"hasKey");function K(_,P,R){let x=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Xe){Xe=Og(Xe),typeof x=="object"&&x[Xe]===void 0&&(x[Xe]={}),typeof x[Xe]!="object"||Array.isArray(x[Xe])?(Array.isArray(x[Xe])?x[Xe].push({}):x[Xe]=[x[Xe],{}],x=x[Xe][x[Xe].length-1]):x=x[Xe]});let O=Og(P[P.length-1]),B=te(P.join("."),g.arrays),q=Array.isArray(R),G=c["duplicate-arguments-array"];!G&&te(O,g.nargs)&&(G=!0,(!jt(x[O])&&g.nargs[O]===1||Array.isArray(x[O])&&x[O].length===g.nargs[O])&&(x[O]=void 0)),R===hl()?x[O]=hl(x[O]):Array.isArray(x[O])?G&&B&&q?x[O]=c["flatten-duplicate-arrays"]?x[O].concat(R):(Array.isArray(x[O][0])?x[O]:[x[O]]).concat([R]):!G&&!!B==!!q?x[O]=R:x[O]=x[O].concat([R]):x[O]===void 0&&B?x[O]=q?R:[R]:G&&!(x[O]===void 0||te(O,g.counts)||te(O,g.bools))?x[O]=[x[O],R]:x[O]=R}o(K,"setKey");function Tt(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(R){g.aliases[R]||(g.aliases[R]=[].concat(a[R]||[]),g.aliases[R].concat(R).forEach(function(x){if(/-/.test(x)&&c["camel-case-expansion"]){let O=ri(x);O!==R&&g.aliases[R].indexOf(O)===-1&&(g.aliases[R].push(O),h[O]=!0)}}),g.aliases[R].concat(R).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&c["camel-case-expansion"]){let O=ja(x,"-");O!==R&&g.aliases[R].indexOf(O)===-1&&(g.aliases[R].push(O),h[O]=!0)}}),g.aliases[R].forEach(function(x){g.aliases[x]=[R].concat(g.aliases[R].filter(function(O){return x!==O}))}))})})}o(Tt,"extendAliases");function te(_,P){let R=[].concat(g.aliases[_]||[],_),x=Object.keys(P),O=R.find(B=>x.includes(B));return O?P[O]:!1}o(te,"checkAllAliases");function Ce(_){let P=Object.keys(g);return[].concat(P.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}o(Ce,"hasAnyFlag");function X(_,...P){return[].concat(...P).some(function(x){let O=_.match(x);return O&&Ce(O[1])})}o(X,"hasFlagsMatching");function Ae(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let P=!0,R,x=_.slice(1).split("");for(let O=0;O<x.length;O++){if(R=_.slice(O+2),!Ce(x[O])){P=!1;break}if(x[O+1]&&x[O+1]==="="||R==="-"||/[A-Za-z]/.test(x[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||x[O+1]&&x[O+1].match(/\W/))break}return P}o(Ae,"hasAllShortFlags");function Te(_){return c["unknown-options-as-args"]&&pe(_)}o(Te,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ae(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in u?u[_]:De(st(_))}o(_e,"defaultValue");function De(_){return{[Yt.BOOLEAN]:!0,[Yt.STRING]:"",[Yt.NUMBER]:void 0,[Yt.ARRAY]:[]}[_]}o(De,"defaultForType");function st(_){let P=Yt.BOOLEAN;return te(_,g.strings)?P=Yt.STRING:te(_,g.numbers)?P=Yt.NUMBER:te(_,g.bools)?P=Yt.BOOLEAN:te(_,g.arrays)&&(P=Yt.ARRAY),P}o(st,"guessType");function jt(_){return _===void 0}o(jt,"isUndefined");function Wi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(Wi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ce,C),configuration:c,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},h)}}};o(ml,"YargsParser");var Na=ml;function l$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(l$,"combineAliases");function hl(e){return e!==void 0?e+1:1}o(hl,"increment");function Og(e){return e==="__proto__"?"___proto___":e}o(Og,"sanitizeKey");function f$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(f$,"stripQuotes");var wg=require("fs");var gl,yl,bl,Pg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Eg=(yl=(gl=process==null?void 0:process.versions)===null||gl===void 0?void 0:gl.node)!==null&&yl!==void 0?yl:(bl=process==null?void 0:process.version)===null||bl===void 0?void 0:bl.slice(1);if(Eg&&Number(Eg.match(/^([^.]+)/)[1])<Pg)throw Error(`yargs parser supports a minimum Node.js version of ${Pg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var p$=process?process.env:{},xg=new Na({cwd:process.cwd,env:o(()=>p$,"env"),format:$g.format,normalize:ka.normalize,resolve:ka.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,wg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),is=o(function(t,r){return xg.parse(t.slice(),r).argv},"Parser");is.detailed=function(e,t){return xg.parse(e.slice(),t)};is.camelCase=ri;is.decamelize=ja;is.looksLikeNumber=Ra;var vl=is;var mr=require("path");function Ag(){return d$()?0:1}o(Ag,"getProcessArgvBinIndex");function d$(){return h$()&&!process.defaultApp}o(d$,"isBundledElectronApp");function h$(){return!!process.versions.electron}o(h$,"isElectronApp");function _l(e){return e.slice(Ag()+1)}o(_l,"hideBin");function Ig(){return process.argv[Ag()]}o(Ig,"getProcessArgvBin");var Ma=class Ma extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Ma)}};o(Ma,"YError");var Re=Ma;var Yi=require("fs"),Cg=require("util"),Tg=require("path");var jg={fs:{readFileSync:Yi.readFileSync,writeFile:Yi.writeFile},format:Cg.format,resolve:Tg.resolve,exists:o(e=>{try{return(0,Yi.statSync)(e).isFile()}catch{return!1}},"exists")};var hr,Ol=class Ol{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=o(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),hr.format.apply(hr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),hr.format.apply(hr.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let a=r[s+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);hr.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{hr.fs.readFileSync&&(t=JSON.parse(hr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=hr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=hr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return hr.exists(t)}};o(Ol,"Y18N");var Sl=Ol;function Rg(e,t){hr=t;let r=new Sl(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}o(Rg,"y18n");var m$=o(e=>Rg(e,jg),"y18n"),Ng=m$;var b$={};var g$="require is not supported by ESM",kg="loading a directory of commands is not supported yet for ESM",os;try{os=(0,Dg.fileURLToPath)(b$.url)}catch{os=process.cwd()}var y$=os.substring(0,os.lastIndexOf("node_modules")),Pl={assert:{notStrictEqual:qa.notStrictEqual,strictEqual:qa.strictEqual},cliui:pl,findUp:dl,getEnv:o(e=>process.env[e],"getEnv"),inspect:Mg.inspect,getCallerFile:o(()=>{throw new Re(kg)},"getCallerFile"),getProcessArgvBin:Ig,mainFilename:y$||process.cwd(),Parser:vl,path:{basename:mr.basename,dirname:mr.dirname,extname:mr.extname,relative:mr.relative,resolve:mr.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:qg.readFileSync,require:o(()=>{throw new Re(g$)},"require"),requireDirectory:o(()=>{throw new Re(kg)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Ng({directory:(0,mr.resolve)(os,"../../../locales"),updateFiles:!1})};function Et(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(Et,"assertNotStrictEqual");function El(e,t){t.assert.strictEqual(typeof e,"string")}o(El,"assertSingleKey");function Qi(e){return Object.keys(e)}o(Qi,"objectKeys");function Ne(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Ne,"isPromise");function hn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(hn,"parseCommand");var v$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[hn(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new Re(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new Re(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Lg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Fg(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Lg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Fg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Lg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Lg,"guessType");function Fg(e,t,r){throw new Re(`Invalid ${v$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(Fg,"argumentTypeError");var $l=class $l{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};o($l,"GlobalMiddleware");var Da=$l;function Bg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Bg,"commandMiddlewareFactory");function ni(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Ne(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Ne(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(ni,"applyMiddleware");function ii(e,t,r=n=>{throw n}){try{let n=_$(e)?e():e;return Ne(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(ii,"maybeAsyncResult");function _$(e){return typeof e=="function"}o(_$,"isFunction");function wl(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}o(wl,"whichModule");var Ji=/(^\*)|(^\$0)/,Al=class Al{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=Bg(s);if(i=i||(()=>{}),Array.isArray(t))if(S$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(P$(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Vg(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=hn(t);c=c.map(d=>hn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>Ji.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(Ji,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return Ne(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(La(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Ne(f))return f.then(d=>(p=Ug(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else O$(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return Ne(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ji.test(r.original)?r.original.replace(Ji,"").trim():r.original,i=t.filter(s=>!Ji.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=ii(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=ni(n,a,c,!1),n=ii(n,p=>{let f=r.handler(p);return Ne(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ne(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=ni(n,c,l,!0);return Ne(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=hn(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ji.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(La(r))return r(t,!0);Vg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=wl(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Et(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Et(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};o(Al,"CommandInstance");var xl=Al;function Hg(e,t,r,n){return new xl(e,t,r,n)}o(Hg,"command");function Vg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Vg,"isCommandBuilderDefinition");function S$(e){return e.every(t=>typeof t=="string")}o(S$,"isCommandAndAliases");function La(e){return typeof e=="function"}o(La,"isCommandBuilderCallback");function O$(e){return typeof e=="object"}o(O$,"isCommandBuilderOptionDefinitions");function P$(e){return typeof e=="object"&&!Array.isArray(e)}o(P$,"isCommandHandlerDefinition");function mn(e={},t=()=>!0){let r={};return Qi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(mn,"objFilter");function gn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}o(gn,"setBlocking");function E$(e){return typeof e=="boolean"}o(E$,"isBoolean");function Gg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(j){i.push(j)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(j=!0,M){let[Y,ue]=typeof j=="string"?[!0,j]:[j,M];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(j,M){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(E$(ve)){if(M)throw M;if(j)throw Error(j)}else ve(j,M,n)}else{if(e.getExitProcess()&&gn(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(j||M)&&Y.error(j||M);let ue=s||a;ue&&((j||M)&&Y.error(""),Y.error(ue))}if(M=M||new Re(j),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,M);throw M}},"fail");let l=[],p=!1;n.usage=(k,j)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,j||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,j)=>{f.push([k,j||""])};let d=[];n.command=o(function(j,M,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([j,M||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(j,M){Array.isArray(j)?j.forEach(Y=>{n.describe(Y,M)}):typeof j=="object"?Object.keys(j).forEach(Y=>{n.describe(Y,j[Y])}):h[j]=M},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=k=>{y.push(k)};let b=!1,g;n.wrap=k=>{b=!0,g=k},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=we(),b=!0),g);let $="__yargsString__:";n.deferY18nLookup=k=>$+k,n.help=o(function(){if(I)return I;T();let j=e.customScriptName?e.$0:t.path.basename(e.$0),M=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),He=[];He=He.concat(Object.keys(h)),He=He.concat(Object.keys(M)),He=He.concat(Object.keys(Y)),He=He.concat(Object.keys(ge.default)),He=He.filter(ce),He=Object.keys(He.reduce((X,Ae)=>(Ae!=="_"&&(X[Ae]=!0),X),{}));let Tr=n.getWrap(),xe=t.cliui({width:Tr,wrap:!!Tr});if(!p){if(l.length)l.forEach(X=>{xe.div({text:`${X[0].replace(/\$0/g,j)}`}),X[1]&&xe.div({text:`${X[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let X=null;Y._?X=`${j} <${r("command")}>
|
|
79
|
-
`:X=`${
|
|
80
|
-
`,xe.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let X=e.getInternalMethods().getContext(),Ae=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let
|
|
77
|
+
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[h$]||0).fill("")),i.push(...new Array(s.padding[m$]||0).fill(""))),i.forEach((c,u)=>{r[u]||r.push([]);let l=r[u];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(c)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Ia]||0)+(t.padding[Ca]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Ft.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(s,g$(t[c])):a)}};o(ml,"UI");var hl=ml;function Pg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(Pg,"addBorder");function g$(e){let t=e.padding||[],r=1+(t[Ia]||0)+(t[Ca]||0);return e.border?r+4:r}o(g$,"_minWidth");function y$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(y$,"getWindowWidth");function b$(e,t){e=e.trim();let r=Ft.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(b$,"alignRight");function v$(e,t){e=e.trim();let r=Ft.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(v$,"alignCenter");var Ft;function Og(e,t){return Ft=t,new hl({width:(e==null?void 0:e.width)||y$(),wrap:e==null?void 0:e.wrap})}o(Og,"cliui");var Eg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function gl(e){return e.replace(Eg,"")}o(gl,"stripAnsi");function $g(e,t){let[r,n]=e.match(Eg)||["",""];e=gl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
|
|
78
|
+
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o($g,"wrap");function yl(e){return Og(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:gl,wrap:$g})}o(yl,"ui");var Ki=require("path"),ja=require("fs");function bl(e,t){let r=(0,Ki.resolve)(".",e),n;for((0,ja.statSync)(r).isDirectory()||(r=(0,Ki.dirname)(r));;){if(n=t(r,(0,ja.readdirSync)(r)),n)return(0,Ki.resolve)(r,n);if(r=(0,Ki.dirname)(n=r),n===r)break}}o(bl,"default");var Vg=require("util"),Bg=require("fs"),Hg=require("url");var Ig=require("util"),ka=require("path");function ti(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(ti,"camelCase");function Ta(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(Ta,"decamelize");function Ra(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}o(Ra,"looksLikeNumber");function wg(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}o(wg,"tokenizeArgString");var Yt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Yt||(Yt={}));var en,_l=class _l{constructor(t){en=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=wg(t),s=typeof t=="string",a=_$(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||en.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let O=typeof _=="object"?_.key:_,R=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();R&&(g[R][O]=!0),g.arrays[O]=!0,g.keys.push(O)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,O])=>{typeof O=="number"&&(g.nargs[_]=O,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,O])=>{typeof O=="function"&&(g.coercions[_]=O,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,O])=>{(typeof O=="boolean"||typeof O=="function")&&(g.configs[_]=O)})),Tt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(O){u[O]=u[_]})});let j=null;Zi();let C=[],I=Object.assign(Object.create(null),{_:[]}),ce={};for(let _=0;_<i.length;_++){let O=i[_],R=O.replace(/^-{3,}/,"---"),x,P,V,q,G,Xe;if(O!=="--"&&/^-/.test(O)&&je(O))re(O);else if(R.match(/^---+(=|$)/)){re(O);continue}else if(O.match(/^--.+=/)||!c["short-option-groups"]&&O.match(/^-.+=/))q=O.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(te(q[1],g.arrays)?_=Pe(_,q[1],i,q[2]):te(q[1],g.nargs)!==!1?_=we(_,q[1],i,q[2]):J(q[1],q[2],!0));else if(O.match(w)&&c["boolean-negation"])q=O.match(w),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],J(P,te(P,g.arrays)?[!1]:!1));else if(O.match(/^--.+/)||!c["short-option-groups"]&&O.match(/^-[^-]+/))q=O.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],te(P,g.arrays)?_=Pe(_,P,i):te(P,g.nargs)!==!1?_=we(_,P,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!te(P,g.bools)&&!te(P,g.counts)||/^(true|false)$/.test(G)?(J(P,G),_++):J(P,_e(P))));else if(O.match(/^-.\..+=/))q=O.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&J(q[1],q[2]);else if(O.match(/^-.\..+/)&&!O.match($))G=i[_+1],q=O.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],G!==void 0&&!G.match(/^-/)&&!te(P,g.bools)&&!te(P,g.counts)?(J(P,G),_++):J(P,_e(P)));else if(O.match(/^-[^-]+/)&&!O.match($)){V=O.slice(1,-1).split(""),x=!1;for(let ft=0;ft<V.length;ft++){if(G=O.slice(ft+2),V[ft+1]&&V[ft+1]==="="){Xe=O.slice(ft+3),P=V[ft],te(P,g.arrays)?_=Pe(_,P,i,Xe):te(P,g.nargs)!==!1?_=we(_,P,i,Xe):J(P,Xe),x=!0;break}if(G==="-"){J(V[ft],G);continue}if(/[A-Za-z]/.test(V[ft])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){J(V[ft],G),x=!0;break}if(V[ft+1]&&V[ft+1].match(/\W/)){J(V[ft],G),x=!0;break}else J(V[ft],_e(V[ft]))}P=O.slice(-1)[0],!x&&P!=="-"&&(te(P,g.arrays)?_=Pe(_,P,i):te(P,g.nargs)!==!1?_=we(_,P,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!te(P,g.bools)&&!te(P,g.counts)||/^(true|false)$/.test(G)?(J(P,G),_++):J(P,_e(P))))}else if(O.match(/^-[0-9]$/)&&O.match($)&&te(O.slice(1),g.bools))P=O.slice(1),J(P,_e(P));else if(O==="--"){C=i.slice(_+1);break}else if(c["halt-at-non-option"]){C=i.slice(_);break}else re(O)}ge(I,!0),ge(I,!1),Y(I),ve(),xe(I,g.aliases,u,!0),He(I),c["set-placeholder-key"]&&Tr(I),Object.keys(g.counts).forEach(function(_){Kt(I,_.split("."))||J(_,0)}),f&&C.length&&(I[d]=[]),C.forEach(function(_){I[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map(O=>ti(O)).join(".")],delete I[_]});function re(_){let O=M("_",_);(typeof O=="string"||typeof O=="number")&&I._.push(O)}o(re,"pushPositional");function we(_,O,R,x){let P,V=te(O,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Rt(x)||(j=Error(b("Argument unexpected for: %s",O))),J(O,_e(O)),_;let q=Rt(x)?0:1;if(c["nargs-eats-options"])R.length-(_+1)+q<V&&(j=Error(b("Not enough arguments following: %s",O))),q=V;else{for(P=_+1;P<R.length&&(!R[P].match(/^-[^0-9]/)||R[P].match($)||je(R[P]));P++)q++;q<V&&(j=Error(b("Not enough arguments following: %s",O)))}let G=Math.min(q,V);for(!Rt(x)&&G>0&&(J(O,x),G--),P=_+1;P<G+_+1;P++)J(O,R[P]);return _+G}o(we,"eatNargs");function Pe(_,O,R,x){let P=[],V=x||R[_+1],q=te(O,g.nargs);if(te(O,g.bools)&&!/^(true|false)$/.test(V))P.push(!0);else if(Rt(V)||Rt(x)&&/^-/.test(V)&&!$.test(V)&&!je(V)){if(u[O]!==void 0){let G=u[O];P=Array.isArray(G)?G:[G]}}else{Rt(x)||P.push(T(O,x,!0));for(let G=_+1;G<R.length&&!(!c["greedy-arrays"]&&P.length>0||q&&typeof q=="number"&&P.length>=q||(V=R[G],/^-/.test(V)&&!$.test(V)&&!je(V)));G++)_=G,P.push(T(O,V,s))}return typeof q=="number"&&(q&&P.length<q||isNaN(q)&&P.length===0)&&(j=Error(b("Not enough arguments following: %s",O))),J(O,P),_}o(Pe,"eatArray");function J(_,O,R=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(q){return ti(q)}).join(".");k(_,V)}let x=T(_,O,R),P=_.split(".");K(I,P,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let q=V.split(".");K(I,q,x)}),P.length>1&&c["dot-notation"]&&(g.aliases[P[0]]||[]).forEach(function(V){let q=V.split("."),G=[].concat(P);G.shift(),q=q.concat(G),(g.aliases[_]||[]).includes(q.join("."))||K(I,q,x)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(ce,q,{enumerable:!0,get(){return O},set(G){O=typeof G=="string"?en.normalize(G):G}})})}o(J,"setArg");function k(_,O){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[O],h[O]=!0),g.aliases[O]&&g.aliases[O].length||k(O,_)}o(k,"addNewAlias");function T(_,O,R){R&&(O=S$(O)),(te(_,g.bools)||te(_,g.counts))&&typeof O=="string"&&(O=O==="true");let x=Array.isArray(O)?O.map(function(P){return M(_,P)}):M(_,O);return te(_,g.counts)&&(Rt(x)||typeof x=="boolean")&&(x=vl()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(O)?x=O.map(P=>en.normalize(P)):x=en.normalize(O)),x}o(T,"processValue");function M(_,O){return!c["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(O)&&(Ra(O)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${O}`)))||!Rt(O)&&te(_,g.numbers))&&(O=Number(O)),O}o(M,"maybeCoerceNumber");function Y(_){let O=Object.create(null);xe(O,g.aliases,u),Object.keys(g.configs).forEach(function(R){let x=_[R]||O[R];if(x)try{let P=null,V=en.resolve(en.cwd(),x),q=g.configs[R];if(typeof q=="function"){try{P=q(V)}catch(G){P=G}if(P instanceof Error){j=P;return}}else P=en.require(V);ue(P)}catch(P){P.name==="PermissionDenied"?j=P:_[R]&&(j=Error(b("Invalid JSON config file: %s",x)))}})}o(Y,"setConfig");function ue(_,O){Object.keys(_).forEach(function(R){let x=_[R],P=O?O+"."+R:R;typeof x=="object"&&x!==null&&!Array.isArray(x)&&c["dot-notation"]?ue(x,P):(!Kt(I,P.split("."))||te(P,g.arrays)&&c["combine-arrays"])&&J(P,x)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,O){if(typeof p>"u")return;let R=typeof p=="string"?p:"",x=en.env();Object.keys(x).forEach(function(P){if(R===""||P.lastIndexOf(R,0)===0){let V=P.split("__").map(function(q,G){return G===0&&(q=q.substring(R.length)),ti(q)});(O&&g.configs[V.join(".")]||!O)&&!Kt(_,V)&&J(V.join("."),x[P])}})}o(ge,"applyEnvVars");function He(_){let O,R=new Set;Object.keys(_).forEach(function(x){if(!R.has(x)&&(O=te(x,g.coercions),typeof O=="function"))try{let P=M(x,O(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{R.add(V),_[V]=P})}catch(P){j=P}})}o(He,"applyCoercions");function Tr(_){return g.keys.forEach(O=>{~O.indexOf(".")||typeof _[O]>"u"&&(_[O]=void 0)}),_}o(Tr,"setPlaceholderKeys");function xe(_,O,R,x=!1){Object.keys(R).forEach(function(P){Kt(_,P.split("."))||(K(_,P.split("."),R[P]),x&&(y[P]=!0),(O[P]||[]).forEach(function(V){Kt(_,V.split("."))||K(_,V.split("."),R[P])}))})}o(xe,"applyDefaultsAndAliases");function Kt(_,O){let R=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(P){R=R[P]||{}});let x=O[O.length-1];return typeof R!="object"?!1:x in R}o(Kt,"hasKey");function K(_,O,R){let x=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(Xe){Xe=xg(Xe),typeof x=="object"&&x[Xe]===void 0&&(x[Xe]={}),typeof x[Xe]!="object"||Array.isArray(x[Xe])?(Array.isArray(x[Xe])?x[Xe].push({}):x[Xe]=[x[Xe],{}],x=x[Xe][x[Xe].length-1]):x=x[Xe]});let P=xg(O[O.length-1]),V=te(O.join("."),g.arrays),q=Array.isArray(R),G=c["duplicate-arguments-array"];!G&&te(P,g.nargs)&&(G=!0,(!Rt(x[P])&&g.nargs[P]===1||Array.isArray(x[P])&&x[P].length===g.nargs[P])&&(x[P]=void 0)),R===vl()?x[P]=vl(x[P]):Array.isArray(x[P])?G&&V&&q?x[P]=c["flatten-duplicate-arrays"]?x[P].concat(R):(Array.isArray(x[P][0])?x[P]:[x[P]]).concat([R]):!G&&!!V==!!q?x[P]=R:x[P]=x[P].concat([R]):x[P]===void 0&&V?x[P]=q?R:[R]:G&&!(x[P]===void 0||te(P,g.counts)||te(P,g.bools))?x[P]=[x[P],R]:x[P]=R}o(K,"setKey");function Tt(..._){_.forEach(function(O){Object.keys(O||{}).forEach(function(R){g.aliases[R]||(g.aliases[R]=[].concat(a[R]||[]),g.aliases[R].concat(R).forEach(function(x){if(/-/.test(x)&&c["camel-case-expansion"]){let P=ti(x);P!==R&&g.aliases[R].indexOf(P)===-1&&(g.aliases[R].push(P),h[P]=!0)}}),g.aliases[R].concat(R).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&c["camel-case-expansion"]){let P=Ta(x,"-");P!==R&&g.aliases[R].indexOf(P)===-1&&(g.aliases[R].push(P),h[P]=!0)}}),g.aliases[R].forEach(function(x){g.aliases[x]=[R].concat(g.aliases[R].filter(function(P){return x!==P}))}))})})}o(Tt,"extendAliases");function te(_,O){let R=[].concat(g.aliases[_]||[],_),x=Object.keys(O),P=R.find(V=>x.includes(V));return P?O[P]:!1}o(te,"checkAllAliases");function Ie(_){let O=Object.keys(g);return[].concat(O.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}o(Ie,"hasAnyFlag");function X(_,...O){return[].concat(...O).some(function(x){let P=_.match(x);return P&&Ie(P[1])})}o(X,"hasFlagsMatching");function Ae(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let O=!0,R,x=_.slice(1).split("");for(let P=0;P<x.length;P++){if(R=_.slice(P+2),!Ie(x[P])){O=!1;break}if(x[P+1]&&x[P+1]==="="||R==="-"||/[A-Za-z]/.test(x[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||x[P+1]&&x[P+1].match(/\W/))break}return O}o(Ae,"hasAllShortFlags");function je(_){return c["unknown-options-as-args"]&&pe(_)}o(je,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ae(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in u?u[_]:De(ct(_))}o(_e,"defaultValue");function De(_){return{[Yt.BOOLEAN]:!0,[Yt.STRING]:"",[Yt.NUMBER]:void 0,[Yt.ARRAY]:[]}[_]}o(De,"defaultForType");function ct(_){let O=Yt.BOOLEAN;return te(_,g.strings)?O=Yt.STRING:te(_,g.numbers)?O=Yt.NUMBER:te(_,g.bools)?O=Yt.BOOLEAN:te(_,g.arrays)&&(O=Yt.ARRAY),O}o(ct,"guessType");function Rt(_){return _===void 0}o(Rt,"isUndefined");function Zi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(j=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(j=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(Zi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ce,I),configuration:c,defaulted:Object.assign({},y),error:j,newAliases:Object.assign({},h)}}};o(_l,"YargsParser");var Na=_l;function _$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(_$,"combineAliases");function vl(e){return e!==void 0?e+1:1}o(vl,"increment");function xg(e){return e==="__proto__"?"___proto___":e}o(xg,"sanitizeKey");function S$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(S$,"stripQuotes");var jg=require("fs");var Sl,Pl,Ol,Ag=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Cg=(Pl=(Sl=process==null?void 0:process.versions)===null||Sl===void 0?void 0:Sl.node)!==null&&Pl!==void 0?Pl:(Ol=process==null?void 0:process.version)===null||Ol===void 0?void 0:Ol.slice(1);if(Cg&&Number(Cg.match(/^([^.]+)/)[1])<Ag)throw Error(`yargs parser supports a minimum Node.js version of ${Ag}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var P$=process?process.env:{},Tg=new Na({cwd:process.cwd,env:o(()=>P$,"env"),format:Ig.format,normalize:ka.normalize,resolve:ka.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,jg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),is=o(function(t,r){return Tg.parse(t.slice(),r).argv},"Parser");is.detailed=function(e,t){return Tg.parse(e.slice(),t)};is.camelCase=ti;is.decamelize=Ta;is.looksLikeNumber=Ra;var El=is;var mr=require("path");function Rg(){return O$()?0:1}o(Rg,"getProcessArgvBinIndex");function O$(){return E$()&&!process.defaultApp}o(O$,"isBundledElectronApp");function E$(){return!!process.versions.electron}o(E$,"isElectronApp");function $l(e){return e.slice(Rg()+1)}o($l,"hideBin");function Ng(){return process.argv[Rg()]}o(Ng,"getProcessArgvBin");var Ma=class Ma extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Ma)}};o(Ma,"YError");var Re=Ma;var Yi=require("fs"),kg=require("util"),Mg=require("path");var qg={fs:{readFileSync:Yi.readFileSync,writeFile:Yi.writeFile},format:kg.format,resolve:Mg.resolve,exists:o(e=>{try{return(0,Yi.statSync)(e).isFile()}catch{return!1}},"exists")};var hr,xl=class xl{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=o(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),hr.format.apply(hr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),hr.format.apply(hr.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let a=r[s+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);hr.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{hr.fs.readFileSync&&(t=JSON.parse(hr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=hr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=hr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return hr.exists(t)}};o(xl,"Y18N");var wl=xl;function Dg(e,t){hr=t;let r=new wl(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}o(Dg,"y18n");var $$=o(e=>Dg(e,qg),"y18n"),Lg=$$;var A$={};var w$="require is not supported by ESM",Fg="loading a directory of commands is not supported yet for ESM",os;try{os=(0,Hg.fileURLToPath)(A$.url)}catch{os=process.cwd()}var x$=os.substring(0,os.lastIndexOf("node_modules")),Al={assert:{notStrictEqual:qa.notStrictEqual,strictEqual:qa.strictEqual},cliui:yl,findUp:bl,getEnv:o(e=>process.env[e],"getEnv"),inspect:Vg.inspect,getCallerFile:o(()=>{throw new Re(Fg)},"getCallerFile"),getProcessArgvBin:Ng,mainFilename:x$||process.cwd(),Parser:El,path:{basename:mr.basename,dirname:mr.dirname,extname:mr.extname,relative:mr.relative,resolve:mr.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Bg.readFileSync,require:o(()=>{throw new Re(w$)},"require"),requireDirectory:o(()=>{throw new Re(Fg)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Lg({directory:(0,mr.resolve)(os,"../../../locales"),updateFiles:!1})};function $t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o($t,"assertNotStrictEqual");function Cl(e,t){t.assert.strictEqual(typeof e,"string")}o(Cl,"assertSingleKey");function Qi(e){return Object.keys(e)}o(Qi,"objectKeys");function Ne(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Ne,"isPromise");function hn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(hn,"parseCommand");var C$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[hn(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new Re(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new Re(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Ug(d);f.cmd.filter(b=>b===h||b==="*").length===0&&zg(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Ug(d);f.cmd.filter(b=>b===h||b==="*").length===0&&zg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Ug(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Ug,"guessType");function zg(e,t,r){throw new Re(`Invalid ${C$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(zg,"argumentTypeError");var Il=class Il{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};o(Il,"GlobalMiddleware");var Da=Il;function Gg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Gg,"commandMiddlewareFactory");function ri(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Ne(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Ne(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(ri,"applyMiddleware");function ni(e,t,r=n=>{throw n}){try{let n=I$(e)?e():e;return Ne(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(ni,"maybeAsyncResult");function I$(e){return typeof e=="function"}o(I$,"isFunction");function jl(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}o(jl,"whichModule");var Ji=/(^\*)|(^\$0)/,Rl=class Rl{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=Gg(s);if(i=i||(()=>{}),Array.isArray(t))if(j$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(R$(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Wg(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=hn(t);c=c.map(d=>hn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>Ji.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(Ji,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return Ne(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(La(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Ne(f))return f.then(d=>(p=Kg(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else T$(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return Ne(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ji.test(r.original)?r.original.replace(Ji,"").trim():r.original,i=t.filter(s=>!Ji.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=ni(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=ri(n,a,c,!1),n=ni(n,p=>{let f=r.handler(p);return Ne(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ne(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=ri(n,c,l,!0);return Ne(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=hn(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ji.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(La(r))return r(t,!0);Wg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=jl(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;$t(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();$t(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};o(Rl,"CommandInstance");var Tl=Rl;function Zg(e,t,r,n){return new Tl(e,t,r,n)}o(Zg,"command");function Wg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Wg,"isCommandBuilderDefinition");function j$(e){return e.every(t=>typeof t=="string")}o(j$,"isCommandAndAliases");function La(e){return typeof e=="function"}o(La,"isCommandBuilderCallback");function T$(e){return typeof e=="object"}o(T$,"isCommandBuilderOptionDefinitions");function R$(e){return typeof e=="object"&&!Array.isArray(e)}o(R$,"isCommandHandlerDefinition");function mn(e={},t=()=>!0){let r={};return Qi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(mn,"objFilter");function gn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}o(gn,"setBlocking");function N$(e){return typeof e=="boolean"}o(N$,"isBoolean");function Qg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(T){i.push(T)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(T=!0,M){let[Y,ue]=typeof T=="string"?[!0,T]:[T,M];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(T,M){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(N$(ve)){if(M)throw M;if(T)throw Error(T)}else ve(T,M,n)}else{if(e.getExitProcess()&&gn(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(T||M)&&Y.error(T||M);let ue=s||a;ue&&((T||M)&&Y.error(""),Y.error(ue))}if(M=M||new Re(T),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,M);throw M}},"fail");let l=[],p=!1;n.usage=(k,T)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,T||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,T)=>{f.push([k,T||""])};let d=[];n.command=o(function(T,M,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([T,M||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(T,M){Array.isArray(T)?T.forEach(Y=>{n.describe(Y,M)}):typeof T=="object"?Object.keys(T).forEach(Y=>{n.describe(Y,T[Y])}):h[T]=M},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=k=>{y.push(k)};let b=!1,g;n.wrap=k=>{b=!0,g=k},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=we(),b=!0),g);let $="__yargsString__:";n.deferY18nLookup=k=>$+k,n.help=o(function(){if(C)return C;j();let T=e.customScriptName?e.$0:t.path.basename(e.$0),M=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),He=[];He=He.concat(Object.keys(h)),He=He.concat(Object.keys(M)),He=He.concat(Object.keys(Y)),He=He.concat(Object.keys(ge.default)),He=He.filter(ce),He=Object.keys(He.reduce((X,Ae)=>(Ae!=="_"&&(X[Ae]=!0),X),{}));let Tr=n.getWrap(),xe=t.cliui({width:Tr,wrap:!!Tr});if(!p){if(l.length)l.forEach(X=>{xe.div({text:`${X[0].replace(/\$0/g,T)}`}),X[1]&&xe.div({text:`${X[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let X=null;Y._?X=`${T} <${r("command")}>
|
|
79
|
+
`:X=`${T} [${r("command")}]
|
|
80
|
+
`,xe.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let X=e.getInternalMethods().getContext(),Ae=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let je=T?`${T} `:"";d.forEach(pe=>{let _e=`${je}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:w(d,Tr,`${T}${Ae}`)+4},{text:pe[1]});let De=[];pe[2]&&De.push(`[${r("default")}]`),pe[3]&&pe[3].length&&De.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?De.push(`[${r("deprecated: %s",pe[4])}]`):De.push(`[${r("deprecated")}]`)),De.length?xe.div({text:De.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Kt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);He=He.filter(X=>!e.parsed.newAliases[X]&&Kt.every(Ae=>(ge.alias[Ae]||[]).indexOf(X)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),I(He,ge.alias,ve,K);let Tt=o(X=>/^--/.test(Fa(X)),"isLongSwitch"),te=Object.keys(ve).filter(X=>ve[X].length>0).map(X=>{let Ae=ve[X].filter(ce).map(je=>{if(Kt.includes(je))return je;for(let pe=0,_e;(_e=Kt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(je))return _e;return je});return{groupName:X,normalizedKeys:Ae}}).filter(({normalizedKeys:X})=>X.length>0).map(({groupName:X,normalizedKeys:Ae})=>{let je=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(De=>X===n.getPositionalGroupName()?De:(/^[0-9]$/.test(De)?ge.boolean.includes(_e)?"-":"--":De.length>1?"--":"-")+De).sort((De,ct)=>Tt(De)===Tt(ct)?0:Tt(De)?1:-1).join(", "),pe),{});return{groupName:X,normalizedKeys:Ae,switches:je}});if(te.filter(({groupName:X})=>X!==n.getPositionalGroupName()).some(({normalizedKeys:X,switches:Ae})=>!X.every(je=>Tt(Ae[je])))&&te.filter(({groupName:X})=>X!==n.getPositionalGroupName()).forEach(({normalizedKeys:X,switches:Ae})=>{X.forEach(je=>{Tt(Ae[je])&&(Ae[je]=k$(Ae[je],4))})}),te.forEach(({groupName:X,normalizedKeys:Ae,switches:je})=>{xe.div(X),Ae.forEach(pe=>{let _e=je[pe],De=h[pe]||"",ct=null;De.includes($)&&(De=r(De.substring($.length))),ge.boolean.includes(pe)&&(ct=`[${r("boolean")}]`),ge.count.includes(pe)&&(ct=`[${r("count")}]`),ge.string.includes(pe)&&(ct=`[${r("string")}]`),ge.normalize.includes(pe)&&(ct=`[${r("string")}]`),ge.array.includes(pe)&&(ct=`[${r("array")}]`),ge.number.includes(pe)&&(ct=`[${r("number")}]`);let Rt=o(O=>typeof O=="string"?`[${r("deprecated: %s",O)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Zi=[pe in ue?Rt(ue[pe]):null,ct,pe in M?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,re(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:Fa(_e),padding:[0,2,0,2+Yg(_e)],width:w(je,Tr)+4},De);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Zi&&!_?xe.div({text:Zi,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(X=>{X[0]=X[0].replace(/\$0/g,T)}),f.forEach(X=>{X[1]===""?xe.div({text:X[0],padding:[0,2,0,2]}):xe.div({text:X[0],padding:[0,2,0,2],width:w(f,Tr)+4},{text:X[1]})}),xe.div()),y.length>0){let X=y.map(Ae=>Ae.replace(/\$0/g,T)).join(`
|
|
81
81
|
`);xe.div(`${X}
|
|
82
|
-
`)}return xe.toString().replace(/\s*$/,"")},"help");function w(k,
|
|
82
|
+
`)}return xe.toString().replace(/\s*$/,"")},"help");function w(k,T,M){let Y=0;return Array.isArray(k)||(k=Object.values(k).map(ue=>[ue])),k.forEach(ue=>{Y=Math.max(t.stringWidth(M?`${M} ${Fa(ue[0])}`:Fa(ue[0]))+Yg(ue[0]),Y)}),T&&(Y=Math.min(Y,parseInt((T*.5).toString(),10))),Y}o(w,"maxWidth");function j(){let k=e.getDemandedOptions(),T=e.getOptions();(Object.keys(T.alias)||[]).forEach(M=>{T.alias[M].forEach(Y=>{h[Y]&&n.describe(M,h[Y]),Y in k&&e.demandOption(M,k[Y]),T.boolean.includes(Y)&&e.boolean(M),T.count.includes(Y)&&e.count(M),T.string.includes(Y)&&e.string(M),T.normalize.includes(Y)&&e.normalize(M),T.array.includes(Y)&&e.array(M),T.number.includes(Y)&&e.number(M)})})}o(j,"normalizeAliases");let C;n.cacheHelpMessage=function(){C=this.help()},n.clearCachedHelpMessage=function(){C=void 0},n.hasCachedHelpMessage=function(){return!!C};function I(k,T,M,Y){let ue=[],ve=null;return Object.keys(M).forEach(ge=>{ue=ue.concat(M[ge])}),k.forEach(ge=>{ve=[ge].concat(T[ge]),ve.some(He=>ue.indexOf(He)!==-1)||M[Y].push(ge)}),ue}o(I,"addUngroupedKeys");function ce(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ce,"filterHiddenOptions"),n.showHelp=k=>{let T=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:T[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(T,M){let Y="",ue=M||", ",ve=[].concat(T);return!T||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function re(k,T){let M=`[${r("default:")} `;if(k===void 0&&!T)return null;if(T)M+=T;else switch(typeof k){case"string":M+=`"${k}"`;break;case"object":M+=JSON.stringify(k);break;default:M+=k}return`${M}]`}o(re,"defaultString");function we(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(we,"windowWidth");let Pe=null;n.version=k=>{Pe=k},n.showVersion=k=>{let T=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:T[k])(Pe)},n.reset=o(function(T){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=mn(h,M=>!T[M]),n},"reset");let J=[];return n.freeze=o(function(){J.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(T=!1){let M=J.pop();M&&(T?(h={...M.descriptions,...h},d=[...M.commands,...d],l=[...M.usages,...l],f=[...M.examples,...f],y=[...M.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=M)},"unfreeze"),n}o(Qg,"usage");function Nl(e){return typeof e=="object"}o(Nl,"isIndentedText");function k$(e,t){return Nl(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(k$,"addIndentation");function Yg(e){return Nl(e)?e.indentation:0}o(Yg,"getIndentation");function Fa(e){return Nl(e)?e.text:e}o(Fa,"getText");var Jg=`###-begin-{{app_name}}-completions-###
|
|
83
83
|
#
|
|
84
84
|
# yargs command completion script
|
|
85
85
|
#
|
|
@@ -107,7 +107,7 @@ _{{app_name}}_yargs_completions()
|
|
|
107
107
|
}
|
|
108
108
|
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
109
109
|
###-end-{{app_name}}-completions-###
|
|
110
|
-
`,
|
|
110
|
+
`,Xg=`#compdef {{app_name}}
|
|
111
111
|
###-begin-{{app_name}}-completions-###
|
|
112
112
|
#
|
|
113
113
|
# yargs command completion script
|
|
@@ -126,29 +126,29 @@ _{{app_name}}_yargs_completions()
|
|
|
126
126
|
}
|
|
127
127
|
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
128
128
|
###-end-{{app_name}}-completions-###
|
|
129
|
-
`;var
|
|
129
|
+
`;var Ml=class Ml{constructor(t,r,n,i){var s,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(s[t[c]]&&s[t[c]].builder){let l=s[t[c]].builder;if(La(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=hn(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find($=>{let w=h[$];return typeof w=="string"&&w.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if($t(this.customCompletionFunction,null,this.shim),q$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Ne(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return D$(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return Ne(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?Xg:Jg,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};o(Ml,"Completion");var kl=Ml;function ey(e,t,r,n){return new kl(e,t,r,n)}o(ey,"completion");function q$(e){return e.length<3}o(q$,"isSyncCompletionFunction");function D$(e){return e.length>3}o(D$,"isFallbackCompletionFunction");function ty(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}o(ty,"levenshtein");var ry=["$0","--","_"];function ny(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=o(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),s.positionalCount=o(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),s.requiredArguments=o(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let g of Object.keys(h)){let $=h[g];$&&y.indexOf($)<0&&y.push($)}let b=y.length?`
|
|
130
130
|
${y.join(`
|
|
131
|
-
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let $=e.getInternalMethods().getCommandInstance().getCommands(),w=[],
|
|
132
|
-
${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):(
|
|
133
|
-
`;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,$)=>$.length-g.length);let y=null,b=1/0;for(let g=0,$;($=d[g])!==void 0;g++){let w=Yg(f,$);w<=3&&w<b&&(b=w,y=$)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=mn(a,d=>!f[d]),u=mn(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();Et(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(Jg,"validation");var jl=[],ss;function as(e,t,r,n){ss=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=C$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}I$(a),jl.push(a),i=s?JSON.parse(ss.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=as(i,ss.path.dirname(a),r,ss)}return jl=[],r?Xg(i,e):Object.assign({},i,e)}o(as,"applyExtends");function I$(e){if(jl.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}o(I$,"checkForCircularExtends");function C$(e,t){return ss.path.resolve(e,t)}o(C$,"getPathToDefaultConfig");function Xg(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=Xg(e[i],t[i]):r[i]=t[i];return r}o(Xg,"mergeDeep");var V=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ye,oi,cs,Qt,Bt,Ba,yn,si,Va,Jt,Ha,Xt,jr,Vt,er,Ua,Xi,ct,Z,za,Ga,Ht,ai,eo,ci,bn,Za,ne,ui,li,fi,oe,Wa,Rr,Ue;function vy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Hl(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(vy,"YargsFactory");var ey=Symbol("copyDoubleDash"),ty=Symbol("copyDoubleDash"),Rl=Symbol("deleteFromParserHintObject"),ry=Symbol("emitWarning"),ny=Symbol("freeze"),iy=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),oy=Symbol("getUsageConfiguration"),Nl=Symbol("guessLocale"),sy=Symbol("guessVersion"),ay=Symbol("parsePositionalNumbers"),kl=Symbol("pkgUp"),vn=Symbol("populateParserHintArray"),to=Symbol("populateParserHintSingleValueDictionary"),Ml=Symbol("populateParserHintArrayDictionary"),ql=Symbol("populateParserHintDictionary"),Dl=Symbol("sanitizeKey"),Ll=Symbol("setKey"),Fl=Symbol("unfreeze"),cy=Symbol("validateAsync"),uy=Symbol("getCommandInstance"),ly=Symbol("getContext"),fy=Symbol("getHasOutput"),py=Symbol("getLoggerInstance"),dy=Symbol("getParseContext"),hy=Symbol("getUsageInstance"),my=Symbol("getValidationInstance"),Ka=Symbol("hasParseCallback"),gy=Symbol("isGlobalContext"),di=Symbol("postProcess"),yy=Symbol("rebase"),Bl=Symbol("reset"),us=Symbol("runYargsParserAndExecuteCommands"),Vl=Symbol("runValidation"),by=Symbol("setHasOutput"),hi=Symbol("kTrackManuallySetKeys"),Ul=class Ul{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ye.set(this,void 0),oi.set(this,void 0),cs.set(this,{commands:[],fullCommands:[]}),Qt.set(this,null),Bt.set(this,null),Ba.set(this,"show-hidden"),yn.set(this,null),si.set(this,!0),Va.set(this,{}),Jt.set(this,!0),Ha.set(this,[]),Xt.set(this,void 0),jr.set(this,{}),Vt.set(this,!1),er.set(this,null),Ua.set(this,!0),Xi.set(this,void 0),ct.set(this,""),Z.set(this,void 0),za.set(this,void 0),Ga.set(this,{}),Ht.set(this,null),ai.set(this,null),eo.set(this,{}),ci.set(this,{}),bn.set(this,void 0),Za.set(this,!1),ne.set(this,void 0),ui.set(this,!1),li.set(this,!1),fi.set(this,!1),oe.set(this,void 0),Wa.set(this,{}),Rr.set(this,null),Ue.set(this,void 0),V(this,ne,i,"f"),V(this,bn,t,"f"),V(this,oi,r,"f"),V(this,za,n,"f"),V(this,Xt,new Da(this),"f"),this.$0=this[iy](),this[Bl](),V(this,Ye,m(this,Ye,"f"),"f"),V(this,oe,m(this,oe,"f"),"f"),V(this,Ue,m(this,Ue,"f"),"f"),V(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,Ba,"f"),V(this,Xi,this[ty](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,er,"f")&&(this[Rl](m(this,er,"f")),V(this,er,null,"f")),t===!1&&r===void 0?this:(V(this,er,typeof t=="string"?t:n,"f"),this.boolean(m(this,er,"f")),this.describe(m(this,er,"f"),r||m(this,oe,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,Ba,"f");return this.boolean(n),this.describe(n,r||m(this,oe,"f").deferY18nLookup("Show hidden options")),m(this,Z,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Ml](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[vn]("array",t),this[hi](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[vn]("boolean",t),this[hi](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>ii(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,oe,"f").fail(s.toString(),s):m(this,oe,"f").fail(m(this,ne,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,oe,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Ml](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Re("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new Re("coerce callback must be provided");return m(this,Z,"f").key[t]=!0,m(this,Xt,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?ii(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new Re(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ue,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=as(t,m(this,oi,"f"),this[pi]()["deep-merge-config"]||!1,m(this,ne,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,oe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,Z,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),V(this,Bt,t||m(this,Bt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Bt,"f"),r),n&&m(this,Qt,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),m(this,Ye,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,za,"f")||m(this,ne,"f").require;return m(this,Ye,"f").addDirectory(t,n,m(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[vn]("count",t),this[hi](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(El(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(El(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]||(m(this,Z,"f").defaultDescription[t]=m(this,oe,"f").functionDescription(r)),r=r.call()),this[to](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,Z,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Et(n,!0,m(this,ne,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Et(n,!0,m(this,ne,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Et(n,!0,m(this,ne,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[to](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,Z,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Ll](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),V(this,si,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,Z,"f").envPrefix:m(this,Z,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,oe,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,oe,"f").example(t,r),this}exit(t,r){V(this,Vt,!0,"f"),V(this,yn,r,"f"),m(this,Jt,"f")&&m(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),V(this,Jt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Re("Invalid first argument. Expected function or boolean 'false'");return m(this,oe,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,Qt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Qt,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),m(this,Z,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,Z,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,Z,"f").deprecatedOptions}getDetectLocale(){return m(this,si,"f")}getExitProcess(){return m(this,Jt,"f")}getGroups(){return Object.assign({},m(this,jr,"f"),m(this,ci,"f"))}getHelp(){if(V(this,Vt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[us](m(this,bn,"f"),void 0,void 0,0,!0);if(Ne(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Ye,"f").runDefaultBuilderOn(this);if(Ne(t))return t.then(()=>m(this,oe,"f").help())}return Promise.resolve(m(this,oe,"f").help())}getOptions(){return m(this,Z,"f")}getStrict(){return m(this,ui,"f")}getStrictCommands(){return m(this,li,"f")}getStrictOptions(){return m(this,fi,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,Z,"f").local=m(this,Z,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,Z,"f").local.includes(n)||m(this,Z,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,ci,"f")[r]||m(this,jr,"f")[r];m(this,ci,"f")[r]&&delete m(this,ci,"f")[r];let i={};return m(this,jr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,Z,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ue,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Nl](),m(this,ne,"f").y18n.getLocale()):(V(this,si,!1,"f"),m(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Xt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[to](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[vn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[vn]("number",t),this[hi](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[hi](t),m(this,Rr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[ry](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
134
|
-
`),void 0,"versionWarning"),m(this,
|
|
135
|
-
`,"f"),
|
|
136
|
-
`,"f"),V(this,ct,m(this,ct,"f")+t.join(" "),"f")},"error")}}[Rl](t){Qi(m(this,Z,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,Z,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,oe,"f").getDescriptions()[t]}[ry](t,r,n){m(this,Va,"f")[n]||(m(this,ne,"f").process.emitWarning(t,r),m(this,Va,"f")[n]=!0)}[ny](){m(this,Ha,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,Jt,"f"),groups:m(this,jr,"f"),strict:m(this,ui,"f"),strictCommands:m(this,li,"f"),strictOptions:m(this,fi,"f"),completionCommand:m(this,Bt,"f"),output:m(this,ct,"f"),exitError:m(this,yn,"f"),hasOutput:m(this,Vt,"f"),parsed:this.parsed,parseFn:m(this,Ht,"f"),parseContext:m(this,ai,"f")}),m(this,oe,"f").freeze(),m(this,Ue,"f").freeze(),m(this,Ye,"f").freeze(),m(this,Xt,"f").freeze()}[iy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ne,"f").process.argv()[0])?r=m(this,ne,"f").process.argv().slice(1,2):r=m(this,ne,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[yy](m(this,oi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ne,"f").getEnv("_")&&m(this,ne,"f").getProcessArgvBin()===m(this,ne,"f").getEnv("_")&&(t=m(this,ne,"f").getEnv("_").replace(`${m(this,ne,"f").path.dirname(m(this,ne,"f").process.execPath())}/`,"")),t}[pi](){return m(this,Ga,"f")}[oy](){return m(this,Wa,"f")}[Nl](){if(!m(this,si,"f"))return;let t=m(this,ne,"f").getEnv("LC_ALL")||m(this,ne,"f").getEnv("LC_MESSAGES")||m(this,ne,"f").getEnv("LANG")||m(this,ne,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[sy](){return this[kl]().version||"unknown"}[ay](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ne,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[kl](t){let r=t||"*";if(m(this,eo,"f")[r])return m(this,eo,"f")[r];let n={};try{let i=t||m(this,ne,"f").mainFilename;!t&&m(this,ne,"f").path.extname(i)&&(i=m(this,ne,"f").path.dirname(i));let s=m(this,ne,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});Et(s,void 0,m(this,ne,"f")),n=JSON.parse(m(this,ne,"f").readFileSync(s,"utf8"))}catch{}return m(this,eo,"f")[r]=n||{},m(this,eo,"f")[r]}[vn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Dl](n),m(this,Z,"f")[t].push(n)})}[to](t,r,n,i){this[ql](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[Ml](t,r,n,i){this[ql](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[ql](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Qi(n))t(a,n[a]);else s(r,this[Dl](n),i)}[Dl](t){return t==="__proto__"?"___proto___":t}[Ll](t,r){return this[to](this[Ll].bind(this),"key",t,r),this}[Fl](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,Ha,"f").pop();Et(h,void 0,m(this,ne,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){V(t,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){V(r,Jt,b,"f")}}.value,groups:{set value(b){V(n,jr,b,"f")}}.value,output:{set value(b){V(i,ct,b,"f")}}.value,exitError:{set value(b){V(s,yn,b,"f")}}.value,hasOutput:{set value(b){V(a,Vt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){V(c,ui,b,"f")}}.value,strictCommands:{set value(b){V(u,li,b,"f")}}.value,strictOptions:{set value(b){V(l,fi,b,"f")}}.value,completionCommand:{set value(b){V(p,Bt,b,"f")}}.value,parseFn:{set value(b){V(f,Ht,b,"f")}}.value,parseContext:{set value(b){V(d,ai,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,Ue,"f").unfreeze(),m(this,Ye,"f").unfreeze(),m(this,Xt,"f").unfreeze()}[cy](t,r){return ii(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[uy].bind(this),getContext:this[ly].bind(this),getHasOutput:this[fy].bind(this),getLoggerInstance:this[py].bind(this),getParseContext:this[dy].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[oy].bind(this),getUsageInstance:this[hy].bind(this),getValidationInstance:this[my].bind(this),hasParseCallback:this[Ka].bind(this),isGlobalContext:this[gy].bind(this),postProcess:this[di].bind(this),reset:this[Bl].bind(this),runValidation:this[Vl].bind(this),runYargsParserAndExecuteCommands:this[us].bind(this),setHasOutput:this[by].bind(this)}}[uy](){return m(this,Ye,"f")}[ly](){return m(this,cs,"f")}[fy](){return m(this,Vt,"f")}[py](){return m(this,Xi,"f")}[dy](){return m(this,ai,"f")||{}}[hy](){return m(this,oe,"f")}[my](){return m(this,Ue,"f")}[Ka](){return!!m(this,Ht,"f")}[gy](){return m(this,Ua,"f")}[di](t,r,n,i){return n||Ne(t)||(r||(t=this[ey](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[ay](t)),i&&(t=ni(t,this,m(this,Xt,"f").getMiddleware(),!1))),t}[Bl](t={}){V(this,Z,m(this,Z,"f")||{},"f");let r={};r.local=m(this,Z,"f").local||[],r.configObjects=m(this,Z,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,ci,"f"),Object.keys(m(this,jr,"f")).reduce((a,c)=>{let u=m(this,jr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),V(this,jr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,Z,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=mn(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,V(this,Z,r,"f"),V(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):Gg(this,m(this,ne,"f")),"f"),V(this,Ue,m(this,Ue,"f")?m(this,Ue,"f").reset(n):Jg(this,m(this,oe,"f"),m(this,ne,"f")),"f"),V(this,Ye,m(this,Ye,"f")?m(this,Ye,"f").reset():Hg(m(this,oe,"f"),m(this,Ue,"f"),m(this,Xt,"f"),m(this,ne,"f")),"f"),m(this,Qt,"f")||V(this,Qt,Kg(this,m(this,oe,"f"),m(this,Ye,"f"),m(this,ne,"f")),"f"),m(this,Xt,"f").reset(),V(this,Bt,null,"f"),V(this,ct,"","f"),V(this,yn,null,"f"),V(this,Vt,!1,"f"),this.parsed=!1,this}[yy](t,r){return m(this,ne,"f").path.relative(t,r)}[us](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,bn,"f"),m(this,Z,"f").__=m(this,ne,"f").y18n.__,m(this,Z,"f").configuration=this[pi]();let c=!!m(this,Z,"f").configuration["populate--"],u=Object.assign({},m(this,Z,"f").configuration,{"populate--":!0}),l=m(this,ne,"f").Parser.detailed(t,Object.assign({},m(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,ai,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,er,"f")&&p[b]?h=!0:b===m(this,Rr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[Nl](),r)return this[di](p,c,!!n,!1);m(this,er,"f")&&[m(this,er,"f")].concat(d[m(this,er,"f")]||[]).filter(T=>T.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),V(this,Ua,!1,"f");let b=m(this,Ye,"f").getCommands(),g=m(this,Qt,"f").completionKey in p,$=h||g||s;if(p._.length){if(b.length){let w;for(let T=i||0,I;p._[T]!==void 0;T++)if(I=String(p._[T]),b.includes(I)&&I!==m(this,Bt,"f")){let C=m(this,Ye,"f").runCommand(I,this,l,T+1,s,h||y||s);return this[di](C,c,!!n,!1)}else if(!w&&I!==m(this,Bt,"f")){w=I;break}!m(this,Ye,"f").hasDefaultCommand()&&m(this,Za,"f")&&w&&!$&&m(this,Ue,"f").recommendCommands(w,b)}m(this,Bt,"f")&&p._.includes(m(this,Bt,"f"))&&!g&&(m(this,Jt,"f")&&gn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ye,"f").hasDefaultCommand()&&!$){let w=m(this,Ye,"f").runCommand(null,this,l,0,s,h||y||s);return this[di](w,c,!!n,!1)}if(g){m(this,Jt,"f")&&gn(!0),t=[].concat(t);let w=t.slice(t.indexOf(`--${m(this,Qt,"f").completionKey}`)+1);return m(this,Qt,"f").getCompletion(w,(T,I)=>{if(T)throw new Re(T.message);(I||[]).forEach(C=>{m(this,Xi,"f").log(C)}),this.exit(0)}),this[di](p,!c,!!n,!1)}if(m(this,Vt,"f")||(h?(m(this,Jt,"f")&&gn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Jt,"f")&&gn(!0),a=!0,m(this,oe,"f").showVersion("log"),this.exit(0))),!a&&m(this,Z,"f").skipValidation.length>0&&(a=Object.keys(p).some(w=>m(this,Z,"f").skipValidation.indexOf(w)>=0&&p[w]===!0)),!a){if(l.error)throw new Re(l.error.message);if(!g){let w=this[Vl](d,{},l.error);n||(f=ni(p,this,m(this,Xt,"f").getMiddleware(),!0)),f=this[cy](w,f??p),Ne(f)&&!n&&(f=f.then(()=>ni(p,this,m(this,Xt,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof Re)m(this,oe,"f").fail(b.message,b);else throw b}return this[di](f??p,c,!!n,!0)}[Vl](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Ue,"f").nonOptionCount(a),m(this,Ue,"f").requiredArguments(a,s);let c=!1;m(this,li,"f")&&(c=m(this,Ue,"f").unknownCommands(a)),m(this,ui,"f")&&!c?m(this,Ue,"f").unknownArguments(a,t,r,!!i):m(this,fi,"f")&&m(this,Ue,"f").unknownArguments(a,t,{},!1,!1),m(this,Ue,"f").limitedChoices(a),m(this,Ue,"f").implications(a),m(this,Ue,"f").conflicting(a)}}[by](){V(this,Vt,!0,"f")}[hi](t){if(typeof t=="string")m(this,Z,"f").key[t]=!0;else for(let r of t)m(this,Z,"f").key[r]=!0}};o(Ul,"YargsInstance");var Hl=Ul;function Ug(e){return!!e&&typeof e.getInternalMethods=="function"}o(Ug,"isYargsInstance");var T$=vy(Pl),_y=T$;var Sy=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Oy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Py=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Le={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},uF=Object.keys(Le.modifier),j$=Object.keys(Le.color),R$=Object.keys(Le.bgColor),lF=[...j$,...R$];function N$(){let e=new Map;for(let[t,r]of Object.entries(Le)){for(let[n,i]of Object.entries(r))Le[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Le[n],e.set(i[0],i[1]);Object.defineProperty(Le,t,{value:r,enumerable:!1})}return Object.defineProperty(Le,"codes",{value:e,enumerable:!1}),Le.color.close="\x1B[39m",Le.bgColor.close="\x1B[49m",Le.color.ansi=Sy(),Le.color.ansi256=Oy(),Le.color.ansi16m=Py(),Le.bgColor.ansi=Sy(10),Le.bgColor.ansi256=Oy(10),Le.bgColor.ansi16m=Py(10),Object.defineProperties(Le,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Le.rgbToAnsi256(...Le.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Le.ansi256ToAnsi(Le.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Le.ansi256ToAnsi(Le.hexToAnsi256(t)),"value"),enumerable:!1}}),Le}o(N$,"assembleStyles");var k$=N$(),gr=k$;var Qa=gt(require("process"),1),$y=gt(require("os"),1),zl=gt(require("tty"),1);function tr(e,t=globalThis.Deno?globalThis.Deno.args:Qa.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(tr,"hasFlag");var{env:Be}=Qa.default,Ya;tr("no-color")||tr("no-colors")||tr("color=false")||tr("color=never")?Ya=0:(tr("color")||tr("colors")||tr("color=true")||tr("color=always"))&&(Ya=1);function M$(){if("FORCE_COLOR"in Be)return Be.FORCE_COLOR==="true"?1:Be.FORCE_COLOR==="false"?0:Be.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Be.FORCE_COLOR,10),3)}o(M$,"envForceColor");function q$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(q$,"translateLevel");function D$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=M$();n!==void 0&&(Ya=n);let i=r?Ya:n;if(i===0)return 0;if(r){if(tr("color=16m")||tr("color=full")||tr("color=truecolor"))return 3;if(tr("color=256"))return 2}if("TF_BUILD"in Be&&"AGENT_NAME"in Be)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Be.TERM==="dumb")return s;if(Qa.default.platform==="win32"){let a=$y.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Be)return"GITHUB_ACTIONS"in Be||"GITEA_ACTIONS"in Be?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Be)||Be.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Be)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Be.TEAMCITY_VERSION)?1:0;if(Be.COLORTERM==="truecolor"||Be.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Be){let a=Number.parseInt((Be.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Be.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Be.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Be.TERM)||"COLORTERM"in Be?1:s}o(D$,"_supportsColor");function Ey(e,t={}){let r=D$(e,{streamIsTTY:e&&e.isTTY,...t});return q$(r)}o(Ey,"createSupportsColor");var L$={stdout:Ey({isTTY:zl.default.isatty(1)}),stderr:Ey({isTTY:zl.default.isatty(2)})},wy=L$;function xy(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(xy,"stringReplaceAll");function Ay(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
131
|
+
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let $=e.getInternalMethods().getCommandInstance().getCommands(),w=[],j=e.getInternalMethods().getContext();if(Object.keys(f).forEach(C=>{!ry.includes(C)&&!Object.prototype.hasOwnProperty.call(h,C)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),C)&&!s.isValidAndSomeAliasIsNotNew(C,d)&&w.push(C)}),b&&(j.commands.length>0||$.length>0||y)&&f._.slice(j.commands.length).forEach(C=>{$.includes(""+C)||w.push(""+C)}),b){let I=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ce=j.commands.length+I;ce<f._.length&&f._.slice(ce).forEach(re=>{re=String(re),!j.commands.includes(re)&&!w.includes(re)&&w.push(re)})}w.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",w.length,w.map(C=>C.trim()?C:`"${C}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{ry.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach($=>{d.choices[g].indexOf($)===-1&&$!==void 0&&(h[g]=(h[g]||[]).concat($))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
|
|
132
|
+
${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):($t(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,$=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${$}`)})}),d.length){let h=`${n("Implications failed:")}
|
|
133
|
+
`;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,$)=>$.length-g.length);let y=null,b=1/0;for(let g=0,$;($=d[g])!==void 0;g++){let w=ty(f,$);w<=3&&w<b&&(b=w,y=$)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=mn(a,d=>!f[d]),u=mn(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();$t(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(ny,"validation");var ql=[],ss;function as(e,t,r,n){ss=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=F$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}L$(a),ql.push(a),i=s?JSON.parse(ss.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=as(i,ss.path.dirname(a),r,ss)}return ql=[],r?iy(i,e):Object.assign({},i,e)}o(as,"applyExtends");function L$(e){if(ql.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}o(L$,"checkForCircularExtends");function F$(e,t){return ss.path.resolve(e,t)}o(F$,"getPathToDefaultConfig");function iy(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=iy(e[i],t[i]):r[i]=t[i];return r}o(iy,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ye,ii,cs,Qt,Vt,Va,yn,oi,Ba,Jt,Ha,Xt,Rr,Bt,er,Ua,Xi,ut,W,za,Ga,Ht,si,eo,ai,bn,Wa,ne,ci,ui,li,oe,Za,Nr,Ue;function Ey(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Zl(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Ey,"YargsFactory");var oy=Symbol("copyDoubleDash"),sy=Symbol("copyDoubleDash"),Dl=Symbol("deleteFromParserHintObject"),ay=Symbol("emitWarning"),cy=Symbol("freeze"),uy=Symbol("getDollarZero"),fi=Symbol("getParserConfiguration"),ly=Symbol("getUsageConfiguration"),Ll=Symbol("guessLocale"),fy=Symbol("guessVersion"),py=Symbol("parsePositionalNumbers"),Fl=Symbol("pkgUp"),vn=Symbol("populateParserHintArray"),to=Symbol("populateParserHintSingleValueDictionary"),Vl=Symbol("populateParserHintArrayDictionary"),Bl=Symbol("populateParserHintDictionary"),Hl=Symbol("sanitizeKey"),Ul=Symbol("setKey"),zl=Symbol("unfreeze"),dy=Symbol("validateAsync"),hy=Symbol("getCommandInstance"),my=Symbol("getContext"),gy=Symbol("getHasOutput"),yy=Symbol("getLoggerInstance"),by=Symbol("getParseContext"),vy=Symbol("getUsageInstance"),_y=Symbol("getValidationInstance"),Ka=Symbol("hasParseCallback"),Sy=Symbol("isGlobalContext"),pi=Symbol("postProcess"),Py=Symbol("rebase"),Gl=Symbol("reset"),us=Symbol("runYargsParserAndExecuteCommands"),Wl=Symbol("runValidation"),Oy=Symbol("setHasOutput"),di=Symbol("kTrackManuallySetKeys"),Kl=class Kl{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ye.set(this,void 0),ii.set(this,void 0),cs.set(this,{commands:[],fullCommands:[]}),Qt.set(this,null),Vt.set(this,null),Va.set(this,"show-hidden"),yn.set(this,null),oi.set(this,!0),Ba.set(this,{}),Jt.set(this,!0),Ha.set(this,[]),Xt.set(this,void 0),Rr.set(this,{}),Bt.set(this,!1),er.set(this,null),Ua.set(this,!0),Xi.set(this,void 0),ut.set(this,""),W.set(this,void 0),za.set(this,void 0),Ga.set(this,{}),Ht.set(this,null),si.set(this,null),eo.set(this,{}),ai.set(this,{}),bn.set(this,void 0),Wa.set(this,!1),ne.set(this,void 0),ci.set(this,!1),ui.set(this,!1),li.set(this,!1),oe.set(this,void 0),Za.set(this,{}),Nr.set(this,null),Ue.set(this,void 0),B(this,ne,i,"f"),B(this,bn,t,"f"),B(this,ii,r,"f"),B(this,za,n,"f"),B(this,Xt,new Da(this),"f"),this.$0=this[uy](),this[Gl](),B(this,Ye,m(this,Ye,"f"),"f"),B(this,oe,m(this,oe,"f"),"f"),B(this,Ue,m(this,Ue,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,Va,"f"),B(this,Xi,this[sy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,er,"f")&&(this[Dl](m(this,er,"f")),B(this,er,null,"f")),t===!1&&r===void 0?this:(B(this,er,typeof t=="string"?t:n,"f"),this.boolean(m(this,er,"f")),this.describe(m(this,er,"f"),r||m(this,oe,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,Va,"f");return this.boolean(n),this.describe(n,r||m(this,oe,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Vl](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[vn]("array",t),this[di](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[vn]("boolean",t),this[di](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>ni(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,oe,"f").fail(s.toString(),s):m(this,oe,"f").fail(m(this,ne,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,oe,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Vl](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Re("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new Re("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Xt,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?ni(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new Re(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ue,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=as(t,m(this,ii,"f"),this[fi]()["deep-merge-config"]||!1,m(this,ne,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,oe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Vt,t||m(this,Vt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Vt,"f"),r),n&&m(this,Qt,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),m(this,Ye,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,za,"f")||m(this,ne,"f").require;return m(this,Ye,"f").addDirectory(t,n,m(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[vn]("count",t),this[di](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Cl(t,m(this,ne,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Cl(t,m(this,ne,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,oe,"f").functionDescription(r)),r=r.call()),this[to](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,W,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{$t(n,!0,m(this,ne,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?($t(n,!0,m(this,ne,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{$t(n,!0,m(this,ne,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[to](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,W,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Ul](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,oi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,oe,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,oe,"f").example(t,r),this}exit(t,r){B(this,Bt,!0,"f"),B(this,yn,r,"f"),m(this,Jt,"f")&&m(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,Jt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Re("Invalid first argument. Expected function or boolean 'false'");return m(this,oe,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,Qt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Qt,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,oi,"f")}getExitProcess(){return m(this,Jt,"f")}getGroups(){return Object.assign({},m(this,Rr,"f"),m(this,ai,"f"))}getHelp(){if(B(this,Bt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[us](m(this,bn,"f"),void 0,void 0,0,!0);if(Ne(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Ye,"f").runDefaultBuilderOn(this);if(Ne(t))return t.then(()=>m(this,oe,"f").help())}return Promise.resolve(m(this,oe,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,ci,"f")}getStrictCommands(){return m(this,ui,"f")}getStrictOptions(){return m(this,li,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,W,"f").local=m(this,W,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,W,"f").local.includes(n)||m(this,W,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,ai,"f")[r]||m(this,Rr,"f")[r];m(this,ai,"f")[r]&&delete m(this,ai,"f")[r];let i={};return m(this,Rr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ue,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Ll](),m(this,ne,"f").y18n.getLocale()):(B(this,oi,!1,"f"),m(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Xt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[to](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[vn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[vn]("number",t),this[di](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[di](t),m(this,Nr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[ay](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
134
|
+
`),void 0,"versionWarning"),m(this,W,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=m(this,oe,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[cy](),typeof t>"u"&&(t=m(this,bn,"f")),typeof r=="object"&&(B(this,si,r,"f"),r=n),typeof r=="function"&&(B(this,Ht,r,"f"),r=!1),r||B(this,bn,t,"f"),m(this,Ht,"f")&&B(this,Jt,!1,"f");let i=this[us](t,!!r),s=this.parsed;return m(this,Qt,"f").setParsed(this.parsed),Ne(i)?i.then(a=>(m(this,Ht,"f")&&m(this,Ht,"f").call(this,m(this,yn,"f"),a,m(this,ut,"f")),a)).catch(a=>{throw m(this,Ht,"f")&&m(this,Ht,"f")(a,this.parsed.argv,m(this,ut,"f")),a}).finally(()=>{this[zl](),this.parsed=s}):(m(this,Ht,"f")&&m(this,Ht,"f").call(this,m(this,yn,"f"),i,m(this,ut,"f")),this[zl](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Ne(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Ne(i))throw new Re(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,Ga,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Fl](r||m(this,ii,"f"));return i[t]&&typeof i[t]=="object"&&(n=as(i[t],r||m(this,ii,"f"),this[fi]()["deep-merge-config"]||!1,m(this,ne,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=mn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,cs,"f").fullCommands[m(this,cs,"f").fullCommands.length-1],s=i?m(this,Ye,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Qi(s).forEach(a=>{let c=s[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,m(this,oe,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,Wa,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return F("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&m(this,W,"f").narg[t]?this:(this[to](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return F("[string] [string]",[t,r],arguments.length),t=t||this.$0,m(this,Xi,"f").log(m(this,Qt,"f").generateCompletionScript(t,r||m(this,Vt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Bt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[us](m(this,bn,"f"),void 0,void 0,0,!0);if(Ne(n))return n.then(()=>{m(this,oe,"f").showHelp(t)}),this}let r=m(this,Ye,"f").runDefaultBuilderOn(this);if(Ne(r))return r.then(()=>{m(this,oe,"f").showHelp(t)}),this}return m(this,oe,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,oe,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,oe,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[vn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,ci,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,ui,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,li,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[vn]("string",t),this[di](t),this}terminalWidth(){return F([],0),m(this,ne,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,oi,!1,"f"),m(this,ne,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if($t(t,null,m(this,ne,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Re(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,oe,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,Za,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Nr,"f")&&(this[Dl](m(this,Nr,"f")),m(this,oe,"f").version(void 0),B(this,Nr,null,"f")),arguments.length===0)n=this[fy](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,Nr,typeof t=="string"?t:i,"f"),r=r||m(this,oe,"f").deferY18nLookup("Show version number"),m(this,oe,"f").version(n||void 0),this.boolean(m(this,Nr,"f")),this.describe(m(this,Nr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,oe,"f").wrap(t),this}[(Ye=new WeakMap,ii=new WeakMap,cs=new WeakMap,Qt=new WeakMap,Vt=new WeakMap,Va=new WeakMap,yn=new WeakMap,oi=new WeakMap,Ba=new WeakMap,Jt=new WeakMap,Ha=new WeakMap,Xt=new WeakMap,Rr=new WeakMap,Bt=new WeakMap,er=new WeakMap,Ua=new WeakMap,Xi=new WeakMap,ut=new WeakMap,W=new WeakMap,za=new WeakMap,Ga=new WeakMap,Ht=new WeakMap,si=new WeakMap,eo=new WeakMap,ai=new WeakMap,bn=new WeakMap,Wa=new WeakMap,ne=new WeakMap,ci=new WeakMap,ui=new WeakMap,li=new WeakMap,oe=new WeakMap,Za=new WeakMap,Nr=new WeakMap,Ue=new WeakMap,oy)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[sy](){return{log:o((...t)=>{this[Ka]()||console.log(...t),B(this,Bt,!0,"f"),m(this,ut,"f").length&&B(this,ut,m(this,ut,"f")+`
|
|
135
|
+
`,"f"),B(this,ut,m(this,ut,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[Ka]()||console.error(...t),B(this,Bt,!0,"f"),m(this,ut,"f").length&&B(this,ut,m(this,ut,"f")+`
|
|
136
|
+
`,"f"),B(this,ut,m(this,ut,"f")+t.join(" "),"f")},"error")}}[Dl](t){Qi(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,oe,"f").getDescriptions()[t]}[ay](t,r,n){m(this,Ba,"f")[n]||(m(this,ne,"f").process.emitWarning(t,r),m(this,Ba,"f")[n]=!0)}[cy](){m(this,Ha,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,Jt,"f"),groups:m(this,Rr,"f"),strict:m(this,ci,"f"),strictCommands:m(this,ui,"f"),strictOptions:m(this,li,"f"),completionCommand:m(this,Vt,"f"),output:m(this,ut,"f"),exitError:m(this,yn,"f"),hasOutput:m(this,Bt,"f"),parsed:this.parsed,parseFn:m(this,Ht,"f"),parseContext:m(this,si,"f")}),m(this,oe,"f").freeze(),m(this,Ue,"f").freeze(),m(this,Ye,"f").freeze(),m(this,Xt,"f").freeze()}[uy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ne,"f").process.argv()[0])?r=m(this,ne,"f").process.argv().slice(1,2):r=m(this,ne,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Py](m(this,ii,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ne,"f").getEnv("_")&&m(this,ne,"f").getProcessArgvBin()===m(this,ne,"f").getEnv("_")&&(t=m(this,ne,"f").getEnv("_").replace(`${m(this,ne,"f").path.dirname(m(this,ne,"f").process.execPath())}/`,"")),t}[fi](){return m(this,Ga,"f")}[ly](){return m(this,Za,"f")}[Ll](){if(!m(this,oi,"f"))return;let t=m(this,ne,"f").getEnv("LC_ALL")||m(this,ne,"f").getEnv("LC_MESSAGES")||m(this,ne,"f").getEnv("LANG")||m(this,ne,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[fy](){return this[Fl]().version||"unknown"}[py](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ne,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Fl](t){let r=t||"*";if(m(this,eo,"f")[r])return m(this,eo,"f")[r];let n={};try{let i=t||m(this,ne,"f").mainFilename;!t&&m(this,ne,"f").path.extname(i)&&(i=m(this,ne,"f").path.dirname(i));let s=m(this,ne,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});$t(s,void 0,m(this,ne,"f")),n=JSON.parse(m(this,ne,"f").readFileSync(s,"utf8"))}catch{}return m(this,eo,"f")[r]=n||{},m(this,eo,"f")[r]}[vn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Hl](n),m(this,W,"f")[t].push(n)})}[to](t,r,n,i){this[Bl](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=c})}[Vl](t,r,n,i){this[Bl](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=(m(this,W,"f")[s][a]||[]).concat(c)})}[Bl](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Qi(n))t(a,n[a]);else s(r,this[Hl](n),i)}[Hl](t){return t==="__proto__"?"___proto___":t}[Ul](t,r){return this[to](this[Ul].bind(this),"key",t,r),this}[zl](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,Ha,"f").pop();$t(h,void 0,m(this,ne,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){B(t,W,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,Jt,b,"f")}}.value,groups:{set value(b){B(n,Rr,b,"f")}}.value,output:{set value(b){B(i,ut,b,"f")}}.value,exitError:{set value(b){B(s,yn,b,"f")}}.value,hasOutput:{set value(b){B(a,Bt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,ci,b,"f")}}.value,strictCommands:{set value(b){B(u,ui,b,"f")}}.value,strictOptions:{set value(b){B(l,li,b,"f")}}.value,completionCommand:{set value(b){B(p,Vt,b,"f")}}.value,parseFn:{set value(b){B(f,Ht,b,"f")}}.value,parseContext:{set value(b){B(d,si,b,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,Ue,"f").unfreeze(),m(this,Ye,"f").unfreeze(),m(this,Xt,"f").unfreeze()}[dy](t,r){return ni(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[hy].bind(this),getContext:this[my].bind(this),getHasOutput:this[gy].bind(this),getLoggerInstance:this[yy].bind(this),getParseContext:this[by].bind(this),getParserConfiguration:this[fi].bind(this),getUsageConfiguration:this[ly].bind(this),getUsageInstance:this[vy].bind(this),getValidationInstance:this[_y].bind(this),hasParseCallback:this[Ka].bind(this),isGlobalContext:this[Sy].bind(this),postProcess:this[pi].bind(this),reset:this[Gl].bind(this),runValidation:this[Wl].bind(this),runYargsParserAndExecuteCommands:this[us].bind(this),setHasOutput:this[Oy].bind(this)}}[hy](){return m(this,Ye,"f")}[my](){return m(this,cs,"f")}[gy](){return m(this,Bt,"f")}[yy](){return m(this,Xi,"f")}[by](){return m(this,si,"f")||{}}[vy](){return m(this,oe,"f")}[_y](){return m(this,Ue,"f")}[Ka](){return!!m(this,Ht,"f")}[Sy](){return m(this,Ua,"f")}[pi](t,r,n,i){return n||Ne(t)||(r||(t=this[oy](t)),(this[fi]()["parse-positional-numbers"]||this[fi]()["parse-positional-numbers"]===void 0)&&(t=this[py](t)),i&&(t=ri(t,this,m(this,Xt,"f").getMiddleware(),!1))),t}[Gl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,ai,"f"),Object.keys(m(this,Rr,"f")).reduce((a,c)=>{let u=m(this,Rr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Rr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=mn(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):Qg(this,m(this,ne,"f")),"f"),B(this,Ue,m(this,Ue,"f")?m(this,Ue,"f").reset(n):ny(this,m(this,oe,"f"),m(this,ne,"f")),"f"),B(this,Ye,m(this,Ye,"f")?m(this,Ye,"f").reset():Zg(m(this,oe,"f"),m(this,Ue,"f"),m(this,Xt,"f"),m(this,ne,"f")),"f"),m(this,Qt,"f")||B(this,Qt,ey(this,m(this,oe,"f"),m(this,Ye,"f"),m(this,ne,"f")),"f"),m(this,Xt,"f").reset(),B(this,Vt,null,"f"),B(this,ut,"","f"),B(this,yn,null,"f"),B(this,Bt,!1,"f"),this.parsed=!1,this}[Py](t,r){return m(this,ne,"f").path.relative(t,r)}[us](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,bn,"f"),m(this,W,"f").__=m(this,ne,"f").y18n.__,m(this,W,"f").configuration=this[fi]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,ne,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,si,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,er,"f")&&p[b]?h=!0:b===m(this,Nr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[Ll](),r)return this[pi](p,c,!!n,!1);m(this,er,"f")&&[m(this,er,"f")].concat(d[m(this,er,"f")]||[]).filter(j=>j.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Ua,!1,"f");let b=m(this,Ye,"f").getCommands(),g=m(this,Qt,"f").completionKey in p,$=h||g||s;if(p._.length){if(b.length){let w;for(let j=i||0,C;p._[j]!==void 0;j++)if(C=String(p._[j]),b.includes(C)&&C!==m(this,Vt,"f")){let I=m(this,Ye,"f").runCommand(C,this,l,j+1,s,h||y||s);return this[pi](I,c,!!n,!1)}else if(!w&&C!==m(this,Vt,"f")){w=C;break}!m(this,Ye,"f").hasDefaultCommand()&&m(this,Wa,"f")&&w&&!$&&m(this,Ue,"f").recommendCommands(w,b)}m(this,Vt,"f")&&p._.includes(m(this,Vt,"f"))&&!g&&(m(this,Jt,"f")&&gn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ye,"f").hasDefaultCommand()&&!$){let w=m(this,Ye,"f").runCommand(null,this,l,0,s,h||y||s);return this[pi](w,c,!!n,!1)}if(g){m(this,Jt,"f")&&gn(!0),t=[].concat(t);let w=t.slice(t.indexOf(`--${m(this,Qt,"f").completionKey}`)+1);return m(this,Qt,"f").getCompletion(w,(j,C)=>{if(j)throw new Re(j.message);(C||[]).forEach(I=>{m(this,Xi,"f").log(I)}),this.exit(0)}),this[pi](p,!c,!!n,!1)}if(m(this,Bt,"f")||(h?(m(this,Jt,"f")&&gn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Jt,"f")&&gn(!0),a=!0,m(this,oe,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(w=>m(this,W,"f").skipValidation.indexOf(w)>=0&&p[w]===!0)),!a){if(l.error)throw new Re(l.error.message);if(!g){let w=this[Wl](d,{},l.error);n||(f=ri(p,this,m(this,Xt,"f").getMiddleware(),!0)),f=this[dy](w,f??p),Ne(f)&&!n&&(f=f.then(()=>ri(p,this,m(this,Xt,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof Re)m(this,oe,"f").fail(b.message,b);else throw b}return this[pi](f??p,c,!!n,!0)}[Wl](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Ue,"f").nonOptionCount(a),m(this,Ue,"f").requiredArguments(a,s);let c=!1;m(this,ui,"f")&&(c=m(this,Ue,"f").unknownCommands(a)),m(this,ci,"f")&&!c?m(this,Ue,"f").unknownArguments(a,t,r,!!i):m(this,li,"f")&&m(this,Ue,"f").unknownArguments(a,t,{},!1,!1),m(this,Ue,"f").limitedChoices(a),m(this,Ue,"f").implications(a),m(this,Ue,"f").conflicting(a)}}[Oy](){B(this,Bt,!0,"f")}[di](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};o(Kl,"YargsInstance");var Zl=Kl;function Kg(e){return!!e&&typeof e.getInternalMethods=="function"}o(Kg,"isYargsInstance");var V$=Ey(Al),$y=V$;var wy=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),xy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Ay=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Le={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},_F=Object.keys(Le.modifier),B$=Object.keys(Le.color),H$=Object.keys(Le.bgColor),SF=[...B$,...H$];function U$(){let e=new Map;for(let[t,r]of Object.entries(Le)){for(let[n,i]of Object.entries(r))Le[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Le[n],e.set(i[0],i[1]);Object.defineProperty(Le,t,{value:r,enumerable:!1})}return Object.defineProperty(Le,"codes",{value:e,enumerable:!1}),Le.color.close="\x1B[39m",Le.bgColor.close="\x1B[49m",Le.color.ansi=wy(),Le.color.ansi256=xy(),Le.color.ansi16m=Ay(),Le.bgColor.ansi=wy(10),Le.bgColor.ansi256=xy(10),Le.bgColor.ansi16m=Ay(10),Object.defineProperties(Le,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Le.rgbToAnsi256(...Le.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Le.ansi256ToAnsi(Le.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Le.ansi256ToAnsi(Le.hexToAnsi256(t)),"value"),enumerable:!1}}),Le}o(U$,"assembleStyles");var z$=U$(),gr=z$;var Qa=gt(require("process"),1),Iy=gt(require("os"),1),Yl=gt(require("tty"),1);function tr(e,t=globalThis.Deno?globalThis.Deno.args:Qa.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(tr,"hasFlag");var{env:Ve}=Qa.default,Ya;tr("no-color")||tr("no-colors")||tr("color=false")||tr("color=never")?Ya=0:(tr("color")||tr("colors")||tr("color=true")||tr("color=always"))&&(Ya=1);function G$(){if("FORCE_COLOR"in Ve)return Ve.FORCE_COLOR==="true"?1:Ve.FORCE_COLOR==="false"?0:Ve.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ve.FORCE_COLOR,10),3)}o(G$,"envForceColor");function W$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(W$,"translateLevel");function Z$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=G$();n!==void 0&&(Ya=n);let i=r?Ya:n;if(i===0)return 0;if(r){if(tr("color=16m")||tr("color=full")||tr("color=truecolor"))return 3;if(tr("color=256"))return 2}if("TF_BUILD"in Ve&&"AGENT_NAME"in Ve)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Ve.TERM==="dumb")return s;if(Qa.default.platform==="win32"){let a=Iy.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ve)return"GITHUB_ACTIONS"in Ve||"GITEA_ACTIONS"in Ve?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ve)||Ve.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ve.TEAMCITY_VERSION)?1:0;if(Ve.COLORTERM==="truecolor"||Ve.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ve){let a=Number.parseInt((Ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ve.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ve.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ve.TERM)||"COLORTERM"in Ve?1:s}o(Z$,"_supportsColor");function Cy(e,t={}){let r=Z$(e,{streamIsTTY:e&&e.isTTY,...t});return W$(r)}o(Cy,"createSupportsColor");var K$={stdout:Cy({isTTY:Yl.default.isatty(1)}),stderr:Cy({isTTY:Yl.default.isatty(2)})},jy=K$;function Ty(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(Ty,"stringReplaceAll");function Ry(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
137
137
|
`:`
|
|
138
138
|
`)+r,i=n+1,n=e.indexOf(`
|
|
139
|
-
`,i)}while(n!==-1);return s+=e.slice(i),s}o(
|
|
140
|
-
`);return s!==-1&&(t=Ay(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(fs.prototype,no);var _F=fs(),SF=fs({level:Cy?Cy.level:0});var Nr=new Ja;function ps(e,t,r){console.log(r!==void 0&&r!==t?`${Nr.yellow(`${e}:`.padEnd(20))}${Nr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(ps,"logVariable");function rr(e){console.log(`[INFO] ${e}`)}o(rr,"logInfo");function _n(e){console.log(Nr.green(`[SUCCESS] ${e}`))}o(_n,"logSuccess");function ds(e,t){e instanceof Error?(console.log(Nr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Nr.red(`[ERROR] ${e}`))}o(ds,"logError");function ec(e){console.log(Nr.bgYellow(`==== ${e} ====`))}o(ec,"logBanner");var Ry=gt(require("fs"));function io(){return"0.5.0"}o(io,"getVersion");var NF=gt(ky());var Yl=Symbol("options_key");function ut(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Yl,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(Yl,s,t)}}}o(ut,"YargOption");function My(e){let t=Reflect.getMetadata(Yl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(My,"getYargsOption");function tc(e){return async t=>t.options(U$(e)).middleware(async r=>await z$(e,r),!0)}o(tc,"getBuilder");function U$(e){return Object.entries(My(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(U$,"getYargsOptions");async function z$(e,t){let r=new e;for(let[n,i]of Object.entries(My(e)))r[n]=t[n]??i.default;return r}o(z$,"loadYargsConfig");var _1=gt(Bh());var fP="Schema",pP="Enum",dP="Body",hP="Param",mP="Response",gP="ErrorResponse",Vh="z.void()",au="z.enum",cu={bindings:["z"],from:"zod"};var uu={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},schemaSuffix:fP,enumSuffix:pP,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var yP={"invalid-schema":"Invalid Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing Status Codes"};var Hh={"Content-Type":"application/json",Accept:"application/json"},bP="data";var vP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),qn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var sn=Symbol.for("@ts-pattern/matcher"),F3=Symbol.for("@ts-pattern/isVariadic"),fu="@ts-pattern/anonymous-select-key",Uh=o(e=>!!(e&&typeof e=="object"),"r"),lu=o(e=>e&&!!e[sn],"i"),Zr=o((e,t,r)=>{if(lu(e)){let n=e[sn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Uh(e)){if(!Uh(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];lu(c)&&c[F3]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Zr(l,a[p],r))&&i.every((l,p)=>Zr(l,c[p],r))&&(s.length===0||Zr(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Zr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||lu(s=i)&&s[sn]().matcherType==="optional")&&Zr(i,t[n],r);var s})}return Object.is(t,e)},"s"),Vn=o(e=>{var t,r,n;return Uh(e)?lu(e)?(t=(r=(n=e[sn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?oa(e,Vn):oa(Object.values(e),Vn):[]},"o"),oa=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function ur(e){return Object.assign(e,{optional:o(()=>B3(e),"optional"),and:o(t=>Fe(e,t),"and"),or:o(t=>V3(e,t),"or"),select:o(t=>t===void 0?_P(e):_P(t,e),"select")})}o(ur,"u");function B3(e){return ur({[sn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Vn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Zr(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Vn(e),"getSelectionKeys"),matcherType:"optional"})})}o(B3,"h");function Fe(...e){return ur({[sn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>oa(e,Vn),"getSelectionKeys"),matcherType:"and"})})}o(Fe,"m");function V3(...e){return ur({[sn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return oa(e,Vn).forEach(i=>n(i,void 0)),{matched:e.some(i=>Zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>oa(e,Vn),"getSelectionKeys"),matcherType:"or"})})}o(V3,"d");function Pe(e){return{[sn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Pe,"p");function _P(...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 ur({[sn]:()=>({match:o(n=>{let i={[t??fu]:n};return{matched:r===void 0||Zr(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??fu].concat(r===void 0?[]:Vn(r)),"getSelectionKeys")})})}o(_P,"y");function zr(e){return typeof e=="number"}o(zr,"v");function Dn(e){return typeof e=="string"}o(Dn,"b");function Ln(e){return typeof e=="bigint"}o(Ln,"w");var eH=ur(Pe(function(e){return!0}));var Fn=o(e=>Object.assign(ur(e),{startsWith:o(t=>{return Fn(Fe(e,(r=t,Pe(n=>Dn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Fn(Fe(e,(r=t,Pe(n=>Dn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Fn(Fe(e,(r=>Pe(n=>Dn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Fn(Fe(e,(r=>Pe(n=>Dn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Fn(Fe(e,(r=>Pe(n=>Dn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Fn(Fe(e,(r=t,Pe(n=>Dn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Fn(Fe(e,(r=t,Pe(n=>Dn(n)&&!!n.match(r)))));var r},"regex")}),"j"),tH=Fn(Pe(Dn)),Gr=o(e=>Object.assign(ur(e),{between:o((t,r)=>Gr(Fe(e,((n,i)=>Pe(s=>zr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Gr(Fe(e,(r=>Pe(n=>zr(n)&&n<r))(t))),"lt"),gt:o(t=>Gr(Fe(e,(r=>Pe(n=>zr(n)&&n>r))(t))),"gt"),lte:o(t=>Gr(Fe(e,(r=>Pe(n=>zr(n)&&n<=r))(t))),"lte"),gte:o(t=>Gr(Fe(e,(r=>Pe(n=>zr(n)&&n>=r))(t))),"gte"),int:o(()=>Gr(Fe(e,Pe(t=>zr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Gr(Fe(e,Pe(t=>zr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Gr(Fe(e,Pe(t=>zr(t)&&t>0))),"positive"),negative:o(()=>Gr(Fe(e,Pe(t=>zr(t)&&t<0))),"negative")}),"x"),rH=Gr(Pe(zr)),Bn=o(e=>Object.assign(ur(e),{between:o((t,r)=>Bn(Fe(e,((n,i)=>Pe(s=>Ln(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Bn(Fe(e,(r=>Pe(n=>Ln(n)&&n<r))(t))),"lt"),gt:o(t=>Bn(Fe(e,(r=>Pe(n=>Ln(n)&&n>r))(t))),"gt"),lte:o(t=>Bn(Fe(e,(r=>Pe(n=>Ln(n)&&n<=r))(t))),"lte"),gte:o(t=>Bn(Fe(e,(r=>Pe(n=>Ln(n)&&n>=r))(t))),"gte"),positive:o(()=>Bn(Fe(e,Pe(t=>Ln(t)&&t>0))),"positive"),negative:o(()=>Bn(Fe(e,Pe(t=>Ln(t)&&t<0))),"negative")}),"A"),nH=Bn(Pe(Ln)),iH=ur(Pe(function(e){return typeof e=="boolean"})),oH=ur(Pe(function(e){return typeof e=="symbol"})),sH=ur(Pe(function(e){return e==null})),aH=ur(Pe(function(e){return e!=null}));var Wh=class Wh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Wh,"W");var zh=Wh,Gh={matched:!1,value:void 0};function Ot(e){return new Zh(e,Gh)}o(Ot,"z");var ia=class ia{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>Zr(l,this.input,c))||i&&!i(this.input)?Gh:{matched:!0,value:r(s?fu in a?a[fu]:a:this.input,this.input)};return new ia(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ia(this.input,n?{matched:!0,value:r(this.input,this.input)}:Gh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new zh(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(ia,"I");var Zh=ia;var SP=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Kh=2,OP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],PP=["query","header","path"],Hn=["get","put","post","delete","options","head","patch","trace"],EP=["string","number","integer","boolean"],Yh=["allOf","anyOf","oneOf"];function Un(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Un,"pick");var Ve=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Mi=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),pu=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ht=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),$P=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Qh=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),wP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),H3=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Jh=o(e=>{let t=e.map(Ve).map(xP).map(r=>U3(r)).flat();return H3(t)},"getMostCommonAdjacentCombinationSplit"),xP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),AP=o(e=>xP(e).join(" "),"camelToSpaceSeparated"),U3=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations");function zn(e){return $P(e)}o(zn,"formatTag");function qi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return zn(r??t.defaultTag)}o(qi,"getOperationTag");function IP(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Un(i,Hn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?qi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(IP,"getOperationsByTag");var TP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Di=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Uo=o(e=>Di(e).split("/").at(-1),"getSchemaNameByRef");function Ie(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Ie,"isReferenceObject");function tm(e){let t=z3(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ht(t)}o(tm,"normalizeString");function jP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(jP,"wrapWithQuotesIfNeeded");function RP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(RP,"unwrapQuotesIfNeeded");function z3(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(z3,"prefixStringStartingWithNumberIfNeeded");function rm(e){let t=e.replaceAll("_","#");return ht(t.replaceAll("-","_")).replaceAll("#","_")}o(rm,"pathParamToVariableName");var Li=o(e=>EP.includes(e),"isPrimitiveType");function NP(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(NP,"escapeControlCharacters");function Wr(e){return e.includes("application/")&&e.includes("json")||OP.includes(e)||e.includes("text/")}o(Wr,"isParamMediaTypeAllowed");function du(e){return e>=200&&e<300}o(du,"isMainResponseStatus");function hu(e){return!(e>=200&&e<300)}o(hu,"isErrorStatus");function mu(e){return e==="application/json"}o(mu,"isMediaTypeAllowed");function Xh({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${Z3(e)}`,a=r.operationId?qn(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:Ve(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return SP.includes(a)?s:a}o(Xh,"getOperationName");function sa({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?qi(r,i):i.defaultTag,a=Xh({path:e,method:t,operation:r,options:i});return n[s].filter(u=>Xh({path:e,method:t,operation:u,options:i})===a).length===1?a:Xh({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(sa,"getUniqueOperationName");function kP(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Un(s,Hn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=sa({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(kP,"getUniqueOperationNamesWithoutSplitByTags");var CP=/({\w+})/g,G3=/[^\w\-]+/g;function Z3(e){e=Ve(pu(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(CP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(CP,"")}By${Ve(r.slice(1,-1))}`}return e.replace(G3,"_")}o(Z3,"pathToVariableName");var em=/{(\b\w+(?:-\w+)*\b)}/g;function MP(e){let t=e.match(em);return t===null?e.replaceAll(em,":$1"):(t.forEach(r=>{let n=rm(r.replaceAll(em,":$1"));e=e.replaceAll(r,n)}),e)}o(MP,"replaceHyphenatedPath");function Gt(e){return!Ie(e)}o(Gt,"isSchemaObject");function qP(e){return e.type==="array"}o(qP,"isArraySchemaObject");function DP(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(W3(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(Ie(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(DP,"inferRequiredSchema");var W3=o(e=>!Ie(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Gn({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Mi(t)}/`:""}${Mi(t)}.${i}`:i}o(Gn,"getTagFileName");var Je=o(({type:e,tag:t,options:r})=>`${Ve(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var an=o((e,t)=>Qh(Ve(tm(e)),t),"getZodSchemaName"),nm=o((e,t,r)=>Qh(Ve(tm(e)),`${t}${r}`),"getEnumZodSchemaName"),Dt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),LP=o(e=>e.startsWith(au),"isEnumZodSchema"),Fi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),gu=o(e=>ht(`${e}_${dP}`),"getBodyZodSchemaName"),FP=o((e,t)=>ht(`${e}_${t}${hP}`),"getParamZodSchemaName"),K3=o(e=>ht(`${e}${mP}`),"getMainResponseZodSchemaName"),Y3=o((e,t)=>ht(`${e}_${t}_${gP}`),"getErrorResponseZodSchemaName");function yu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Fi(t,r,n);return!du(i)&&e!=="default"&&hu(i)?Y3(s,e):K3(s)}o(yu,"getResponseZodSchemaName");var aa=o((e,t)=>wP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),BP=o((e,t)=>Dt(t)?`${e.options.includeNamespaces?`${Je({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),im=o((e,t)=>Dt(t)?`${e.options.includeNamespaces?`${Je({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${aa(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function VP(e){return Ot(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(VP,"primitiveTypeToTsType");var ca=o(e=>Mi(ht(e.operationName)),"getEndpointName");function HP(e,t){return`${t.includeNamespaces?`${Je({type:"endpoints",tag:ua(e,t),options:t})}.`:""}${ca(e)}`}o(HP,"getImportedEndpointName");var UP=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ua(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return zn(r??t.defaultTag)}o(ua,"getEndpointTag");function om(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if(Dt(r.zodSchema))n=im(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Gt(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&Li(u)&&(n=VP(u))}return{name:qn(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0,parameterObject:r.parameterObject,bodyObject:r.bodyObject}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(om,"mapEndpointParamsToFunctionParams");function zP(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=vP(i.name)?i.name:`"${i.name}"`,a=qn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Hh["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Hh.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=qn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(zP,"getEndpointConfig");function bu(e){return{type:"invalid-schema",message:e}}o(bu,"getInvalidSchemaError");function GP(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(GP,"getInvalidOperationIdError");function ZP(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(ZP,"getMissingPathParameterError");function WP(e){return{type:"not-allowed-inline-enum",message:e}}o(WP,"getNotAllowedInlineEnumError");function KP(e){return{type:"not-allowed-circular-schema",message:e}}o(KP,"getNotAllowedCircularSchemaError");function YP(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${QP(t,r)}`}}o(YP,"getMissingAclConditionPropertyError");function sm(e,t,r){return{type:"missing-status-code",message:`Missing status code ${e} in operation ${QP(t,r)}`}}o(sm,"getMissingStatusCodeError");function QP(e,t){return e.operationId??`${t.method} ${t.path}`}o(QP,"getOperationDescriptor");function JP(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(JP,"groupByType");function Kr({schema:e,meta:t,options:r}){let n=[];Ot(e.type).with("string",()=>n.push(X3(e))).with("number","integer",()=>n.push(tq(e))).with("array",()=>n.push(rq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
139
|
+
`,i)}while(n!==-1);return s+=e.slice(i),s}o(Ry,"stringEncaseCRLFWithFirstIndex");var{stdout:Ny,stderr:ky}=jy,Ql=Symbol("GENERATOR"),ro=Symbol("STYLER"),ls=Symbol("IS_EMPTY"),My=["ansi","ansi","ansi256","ansi16m"],no=Object.create(null),Y$=o((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ny?Ny.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),ef=class ef{constructor(t){return qy(t)}};o(ef,"Chalk");var Ja=ef,qy=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return Y$(t,e),Object.setPrototypeOf(t,fs.prototype),t},"chalkFactory");function fs(e){return qy(e)}o(fs,"createChalk");Object.setPrototypeOf(fs.prototype,Function.prototype);for(let[e,t]of Object.entries(gr))no[e]={get(){let r=Xa(this,Xl(t.open,t.close,this[ro]),this[ls]);return Object.defineProperty(this,e,{value:r}),r}};no.visible={get(){let e=Xa(this,this[ro],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Jl=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?gr[r].ansi16m(...n):t==="ansi256"?gr[r].ansi256(gr.rgbToAnsi256(...n)):gr[r].ansi(gr.rgbToAnsi(...n)):e==="hex"?Jl("rgb",t,r,...gr.hexToRgb(...n)):gr[r][e](...n),"getModelAnsi"),Q$=["rgb","hex","ansi256"];for(let e of Q$){no[e]={get(){let{level:r}=this;return function(...n){let i=Xl(Jl(e,My[r],"color",...n),gr.color.close,this[ro]);return Xa(this,i,this[ls])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);no[t]={get(){let{level:r}=this;return function(...n){let i=Xl(Jl(e,My[r],"bgColor",...n),gr.bgColor.close,this[ro]);return Xa(this,i,this[ls])}}}}var J$=Object.defineProperties(()=>{},{...no,level:{enumerable:!0,get(){return this[Ql].level},set(e){this[Ql].level=e}}}),Xl=o((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Xa=o((e,t,r)=>{let n=o((...i)=>X$(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,J$),n[Ql]=e,n[ro]=t,n[ls]=r,n},"createBuilder"),X$=o((e,t)=>{if(e.level<=0||!t)return e[ls]?"":t;let r=e[ro];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Ty(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
140
|
+
`);return s!==-1&&(t=Ry(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(fs.prototype,no);var jF=fs(),TF=fs({level:ky?ky.level:0});var kr=new Ja;function ps(e,t,r){console.log(r!==void 0&&r!==t?`${kr.yellow(`${e}:`.padEnd(20))}${kr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(ps,"logVariable");function rr(e){console.log(`[INFO] ${e}`)}o(rr,"logInfo");function _n(e){console.log(kr.green(`[SUCCESS] ${e}`))}o(_n,"logSuccess");function ds(e,t){e instanceof Error?(console.log(kr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(kr.red(`[ERROR] ${e}`))}o(ds,"logError");function ec(e){console.log(kr.bgYellow(`==== ${e} ====`))}o(ec,"logBanner");var Dy=gt(require("fs"));function io(){return"0.5.1"}o(io,"getVersion");var zF=gt(Fy());var tf=Symbol("options_key");function tt(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(tf,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(tf,s,t)}}}o(tt,"YargOption");function Vy(e){let t=Reflect.getMetadata(tf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Vy,"getYargsOption");function tc(e){return async t=>t.options(ew(e)).middleware(async r=>await tw(e,r),!0)}o(tc,"getBuilder");function ew(e){return Object.entries(Vy(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(ew,"getYargsOptions");async function tw(e,t){let r=new e;for(let[n,i]of Object.entries(Vy(e)))r[n]=t[n]??i.default;return r}o(tw,"loadYargsConfig");var A1=gt(Gh());var gO="Schema",yO="Enum",bO="Body",vO="Param",_O="Response",SO="ErrorResponse",Wh="z.void()",au="z.enum",cu={bindings:["z"],from:"zod"};var uu={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:gO,enumSuffix:yO,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var PO={"invalid-schema":"Invalid Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing Status Codes"};var Zh={"Content-Type":"application/json",Accept:"application/json"},OO="data";var EO=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),qn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var an=Symbol.for("@ts-pattern/matcher"),YM=Symbol.for("@ts-pattern/isVariadic"),fu="@ts-pattern/anonymous-select-key",Kh=o(e=>!!(e&&typeof e=="object"),"r"),lu=o(e=>e&&!!e[an],"i"),Zr=o((e,t,r)=>{if(lu(e)){let n=e[an](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Kh(e)){if(!Kh(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];lu(c)&&c[YM]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Zr(l,a[p],r))&&i.every((l,p)=>Zr(l,c[p],r))&&(s.length===0||Zr(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Zr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||lu(s=i)&&s[an]().matcherType==="optional")&&Zr(i,t[n],r);var s})}return Object.is(t,e)},"s"),Bn=o(e=>{var t,r,n;return Kh(e)?lu(e)?(t=(r=(n=e[an]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?oa(e,Bn):oa(Object.values(e),Bn):[]},"o"),oa=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function ur(e){return Object.assign(e,{optional:o(()=>QM(e),"optional"),and:o(t=>Fe(e,t),"and"),or:o(t=>JM(e,t),"or"),select:o(t=>t===void 0?$O(e):$O(t,e),"select")})}o(ur,"u");function QM(e){return ur({[an]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Bn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Zr(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Bn(e),"getSelectionKeys"),matcherType:"optional"})})}o(QM,"h");function Fe(...e){return ur({[an]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>oa(e,Bn),"getSelectionKeys"),matcherType:"and"})})}o(Fe,"m");function JM(...e){return ur({[an]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return oa(e,Bn).forEach(i=>n(i,void 0)),{matched:e.some(i=>Zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>oa(e,Bn),"getSelectionKeys"),matcherType:"or"})})}o(JM,"d");function Oe(e){return{[an]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Oe,"p");function $O(...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 ur({[an]:()=>({match:o(n=>{let i={[t??fu]:n};return{matched:r===void 0||Zr(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??fu].concat(r===void 0?[]:Bn(r)),"getSelectionKeys")})})}o($O,"y");function Gr(e){return typeof e=="number"}o(Gr,"v");function Dn(e){return typeof e=="string"}o(Dn,"b");function Ln(e){return typeof e=="bigint"}o(Ln,"w");var fH=ur(Oe(function(e){return!0}));var Fn=o(e=>Object.assign(ur(e),{startsWith:o(t=>{return Fn(Fe(e,(r=t,Oe(n=>Dn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Fn(Fe(e,(r=t,Oe(n=>Dn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Fn(Fe(e,(r=>Oe(n=>Dn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Fn(Fe(e,(r=>Oe(n=>Dn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Fn(Fe(e,(r=>Oe(n=>Dn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Fn(Fe(e,(r=t,Oe(n=>Dn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Fn(Fe(e,(r=t,Oe(n=>Dn(n)&&!!n.match(r)))));var r},"regex")}),"j"),pH=Fn(Oe(Dn)),Wr=o(e=>Object.assign(ur(e),{between:o((t,r)=>Wr(Fe(e,((n,i)=>Oe(s=>Gr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Wr(Fe(e,(r=>Oe(n=>Gr(n)&&n<r))(t))),"lt"),gt:o(t=>Wr(Fe(e,(r=>Oe(n=>Gr(n)&&n>r))(t))),"gt"),lte:o(t=>Wr(Fe(e,(r=>Oe(n=>Gr(n)&&n<=r))(t))),"lte"),gte:o(t=>Wr(Fe(e,(r=>Oe(n=>Gr(n)&&n>=r))(t))),"gte"),int:o(()=>Wr(Fe(e,Oe(t=>Gr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Wr(Fe(e,Oe(t=>Gr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Wr(Fe(e,Oe(t=>Gr(t)&&t>0))),"positive"),negative:o(()=>Wr(Fe(e,Oe(t=>Gr(t)&&t<0))),"negative")}),"x"),dH=Wr(Oe(Gr)),Vn=o(e=>Object.assign(ur(e),{between:o((t,r)=>Vn(Fe(e,((n,i)=>Oe(s=>Ln(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Vn(Fe(e,(r=>Oe(n=>Ln(n)&&n<r))(t))),"lt"),gt:o(t=>Vn(Fe(e,(r=>Oe(n=>Ln(n)&&n>r))(t))),"gt"),lte:o(t=>Vn(Fe(e,(r=>Oe(n=>Ln(n)&&n<=r))(t))),"lte"),gte:o(t=>Vn(Fe(e,(r=>Oe(n=>Ln(n)&&n>=r))(t))),"gte"),positive:o(()=>Vn(Fe(e,Oe(t=>Ln(t)&&t>0))),"positive"),negative:o(()=>Vn(Fe(e,Oe(t=>Ln(t)&&t<0))),"negative")}),"A"),hH=Vn(Oe(Ln)),mH=ur(Oe(function(e){return typeof e=="boolean"})),gH=ur(Oe(function(e){return typeof e=="symbol"})),yH=ur(Oe(function(e){return e==null})),bH=ur(Oe(function(e){return e!=null}));var Xh=class Xh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Xh,"W");var Yh=Xh,Qh={matched:!1,value:void 0};function Pt(e){return new Jh(e,Qh)}o(Pt,"z");var ia=class ia{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>Zr(l,this.input,c))||i&&!i(this.input)?Qh:{matched:!0,value:r(s?fu in a?a[fu]:a:this.input,this.input)};return new ia(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ia(this.input,n?{matched:!0,value:r(this.input,this.input)}:Qh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Yh(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(ia,"I");var Jh=ia;var wO=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var em=2,xO=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],AO=["query","header","path"],Hn=["get","put","post","delete","options","head","patch","trace"],CO=["string","number","integer","boolean"],tm=["allOf","anyOf","oneOf"];function Un(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Un,"pick");var Be=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ki=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),pu=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ht=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),IO=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),rm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),jO=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),XM=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),nm=o(e=>{let t=e.map(Be).map(TO).map(r=>eq(r)).flat();return XM(t)},"getMostCommonAdjacentCombinationSplit"),TO=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),RO=o(e=>TO(e).join(" "),"camelToSpaceSeparated"),eq=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations");function zn(e){return IO(e)}o(zn,"formatTag");function Mi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return zn(r??t.defaultTag)}o(Mi,"getOperationTag");function NO(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Un(i,Hn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Mi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(NO,"getOperationsByTag");var MO=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),qi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Uo=o(e=>qi(e).split("/").at(-1),"getSchemaNameByRef");function Ce(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Ce,"isReferenceObject");function sm(e){let t=tq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ht(t)}o(sm,"normalizeString");function qO(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(qO,"wrapWithQuotesIfNeeded");function DO(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(DO,"unwrapQuotesIfNeeded");function tq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(tq,"prefixStringStartingWithNumberIfNeeded");function am(e){let t=e.replaceAll("_","#");return ht(t.replaceAll("-","_")).replaceAll("#","_")}o(am,"pathParamToVariableName");var Di=o(e=>CO.includes(e),"isPrimitiveType");function LO(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(LO,"escapeControlCharacters");function Kr(e){return e.includes("application/")&&e.includes("json")||xO.includes(e)||e.includes("text/")}o(Kr,"isParamMediaTypeAllowed");function du(e){return e>=200&&e<300}o(du,"isMainResponseStatus");function hu(e){return!(e>=200&&e<300)}o(hu,"isErrorStatus");function mu(e){return e==="application/json"}o(mu,"isMediaTypeAllowed");function im({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${nq(e)}`,a=r.operationId?qn(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:Be(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return wO.includes(a)?s:a}o(im,"getOperationName");function sa({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Mi(r,i):i.defaultTag,a=im({path:e,method:t,operation:r,options:i});return n[s].filter(u=>im({path:e,method:t,operation:u,options:i})===a).length===1?a:im({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(sa,"getUniqueOperationName");function FO(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Un(s,Hn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=sa({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(FO,"getUniqueOperationNamesWithoutSplitByTags");var kO=/({\w+})/g,rq=/[^\w\-]+/g;function nq(e){e=Be(pu(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(kO)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(kO,"")}By${Be(r.slice(1,-1))}`}return e.replace(rq,"_")}o(nq,"pathToVariableName");var om=/{(\b\w+(?:-\w+)*\b)}/g;function VO(e){let t=e.match(om);return t===null?e.replaceAll(om,":$1"):(t.forEach(r=>{let n=am(r.replaceAll(om,":$1"));e=e.replaceAll(r,n)}),e)}o(VO,"replaceHyphenatedPath");function Gt(e){return!Ce(e)}o(Gt,"isSchemaObject");function BO(e){return e.type==="array"}o(BO,"isArraySchemaObject");function HO(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(iq(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(Ce(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(HO,"inferRequiredSchema");var iq=o(e=>!Ce(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function gu({fileName:e,extension:t}){return`${e}.${t}`}o(gu,"getFileNameWithExtension");function UO({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ki(t)}/`:""}${ki(t)}.${i}`:i}o(UO,"getTagFileNameWithoutExtension");function yu(...e){return UO(...e)}o(yu,"getTagImportPath");function bu(...e){return`${UO(...e)}.ts`}o(bu,"getTagFileName");var Je=o(({type:e,tag:t,options:r})=>`${Be(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var cn=o((e,t)=>rm(Be(sm(e)),t),"getZodSchemaName"),cm=o((e,t,r)=>rm(Be(sm(e)),`${t}${r}`),"getEnumZodSchemaName"),Lt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),zO=o(e=>e.startsWith(au),"isEnumZodSchema"),Li=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),vu=o(e=>ht(`${e}_${bO}`),"getBodyZodSchemaName"),GO=o((e,t)=>ht(`${e}_${t}${vO}`),"getParamZodSchemaName"),oq=o(e=>ht(`${e}${_O}`),"getMainResponseZodSchemaName"),sq=o((e,t)=>ht(`${e}_${t}_${SO}`),"getErrorResponseZodSchemaName");function _u({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Li(t,r,n);return!du(i)&&e!=="default"&&hu(i)?sq(s,e):oq(s)}o(_u,"getResponseZodSchemaName");var aa=o((e,t)=>jO(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),WO=o((e,t)=>Lt(t)?`${e.options.includeNamespaces?`${Je({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),um=o((e,t)=>Lt(t)?`${e.options.includeNamespaces?`${Je({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${aa(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function ZO(e){return Pt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(ZO,"primitiveTypeToTsType");var ca=o(e=>ki(ht(e.operationName)),"getEndpointName");function KO(e,t){return`${t.includeNamespaces?`${Je({type:"endpoints",tag:ua(e,t),options:t})}.`:""}${ca(e)}`}o(KO,"getImportedEndpointName");var YO=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ua(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return zn(r??t.defaultTag)}o(ua,"getEndpointTag");function lm(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if(Lt(r.zodSchema))n=um(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Gt(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&Di(u)&&(n=ZO(u))}return{name:qn(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0,parameterObject:r.parameterObject,bodyObject:r.bodyObject}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(lm,"mapEndpointParamsToFunctionParams");function QO(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=EO(i.name)?i.name:`"${i.name}"`,a=qn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Zh["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Zh.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=qn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(QO,"getEndpointConfig");function Su(e){return{type:"invalid-schema",message:e}}o(Su,"getInvalidSchemaError");function JO(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(JO,"getInvalidOperationIdError");function XO(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(XO,"getMissingPathParameterError");function e1(e){return{type:"not-allowed-inline-enum",message:e}}o(e1,"getNotAllowedInlineEnumError");function t1(e){return{type:"not-allowed-circular-schema",message:e}}o(t1,"getNotAllowedCircularSchemaError");function r1(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${n1(t,r)}`}}o(r1,"getMissingAclConditionPropertyError");function fm(e,t,r){return{type:"missing-status-code",message:`Missing status code ${e} in operation ${n1(t,r)}`}}o(fm,"getMissingStatusCodeError");function n1(e,t){return e.operationId??`${t.method} ${t.path}`}o(n1,"getOperationDescriptor");function i1(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(i1,"groupByType");function Yr({schema:e,meta:t,options:r}){let n=[];Pt(e.type).with("string",()=>n.push(uq(e))).with("number","integer",()=>n.push(fq(e))).with("array",()=>n.push(pq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
141
141
|
`,"\r",`\r
|
|
142
|
-
`].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(
|
|
142
|
+
`].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(aq(e,t),(r==null?void 0:r.withDefaultValues)!==!1?cq(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(Yr,"getZodChain");function aq(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(aq,"getZodChainablePresence");function cq(e){return e.default!==void 0?`default(${Pt(e.type).with("number","integer",()=>DO(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(cq,"getZodChainableDefault");function uq(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(${lq(e.pattern)})`),e.format){let r=Pt(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(uq,"getZodChainableStringValidations");function lq(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=LO(e),`/${e}/`}o(lq,"formatPatternIfNeeded");function fq(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(fq,"getZodChainableNumberValidations");function pq(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(pq,"getZodChainableArrayValidations");var Fi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function at(e,t){if(!t)return e;if(Ce(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Ct("oneOf")+at(e,{...t,type:t.type[0]}):e+Ct("oneOf")+Fi(t.type.map(r=>at(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Ct("oneOf")+at(e,t.oneOf[0]):e+Ct("oneOf")+Fi(t.oneOf.map(r=>at(0,r)));if(t.anyOf)return t.anyOf.length===1?Ct("anyOf")+at(e,t.anyOf[0]):e+Ct("anyOf")+Fi(t.anyOf.map(r=>at(0,r)));if(t.allOf)return t.allOf.length===1?Ct("allOf")+at(e,t.allOf[0]):e+Ct("allOf")+Fi(t.allOf.map(r=>at(0,r)));if(!t.type)return e;if(Di(t.type))return t.enum?e+o1(t)+Ct("enum")+Fi(t.enum.map(r=>at(0,r))):e+o1(t);if(t.type==="array")return t.items?Ct("array")+at(e,t.items):Ct("array")+at(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Ct("record")+at(e):Ct("record")+at(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+Ct("object")+Fi(r.map(n=>at(0,n)))}return Ct("empty-object")+at(e)}return e}o(at,"getOpenAPISchemaComplexity");function o1(e){return Pt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(o1,"complexityByType");function Ct(e){return Pt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Ct,"complexityByComposite");var pm=class pm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Ce(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${Je({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return at(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(pm,"ZodSchema");var la=pm;function Ge({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new la(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(Ce(e))return dq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=mq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=hq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=gq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=yq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=bq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(BO(e))return e.items?i.assign(`z.array(${Ge({...a,schema:e.items}).getCodeString(n,t.options)}${Yr({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let b=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,$=(e.additionalProperties===null||e.additionalProperties===void 0?b:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${Ge({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+Yr({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let w=e.required&&e.required.length>0,j=t.options.withImplicitRequiredProps?!1:!((y=e.required)!=null&&y.length),C="{}";e.properties&&(C="{ "+Object.entries(e.properties).map(([we,Pe])=>{var M;let J={...s,isRequired:j?!0:w?(M=e.required)==null?void 0:M.includes(we):t.options.withImplicitRequiredProps,name:we},k=Pe;if(Ce(Pe)&&t&&(k=t.getSchemaByRef(Pe.$ref),!k))throw new Error(`Schema ${Pe.$ref} not found`);let T=Ge({...a,schema:Pe,meta:J}).getCodeString(n,t.options)+Yr({schema:k,meta:J,options:t.options});return[we,T]}).map(([we,Pe])=>`${qO(we)}: ${Pe}`).join(", ")+" }");let I=j?".partial()":"",ce=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${C})${I}${ce}${$}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Ge,"getZodSchema");function dq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ce(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Ge({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(dq,"getReferenceZodSchema");function hq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Gt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ge({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Gt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
|
|
143
143
|
z.discriminatedUnion("${c}", [${e.oneOf.map(u=>Ge({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
|
|
144
|
-
`)}return t.assign(`z.union([${e.oneOf.map(c=>Ge({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(iq,"getOneOfZodSchema");function oq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Gt(e)||!Array.isArray(e.type)))return e.type.length===1?Ge({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ge({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(oq,"getArrayZodSchema");function sq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ge({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ge({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(sq,"getAnyOfZodSchema");function aq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ge({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=DP(e),u=a.map(f=>{let d=Ge({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ge({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(aq,"getAllOfZodSchema");function cq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Li(s)){if(e.enum){if(s==="string")return uq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(Ot(s).with("integer",()=>"z.number()").with("string",()=>Ot(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(cq,"getPrimitiveZodSchema");function uq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Gt(t))return;let s=cm(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let c=e.options.includeNamespaces&&a.tag!==i?`${Je({type:"models",tag:a.tag,options:e.options})}.`:"";return new la(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o(uq,"getEnumZodSchema");function cm(e){var t;return`${au}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(cm,"getEnumZodSchemaCode");function zo({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Dt(s)||t.ref===void 0)&&r){if(t.complexity<Kh)return s;let u=an(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ot(0,n.getSchemaByRef(t.ref))<Kh?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(zo,"resolveZodSchemaName");var Zn=o(e=>e.method==="get","isQuery"),e1=o(e=>e.method!=="get","isMutation");function t1({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=lq({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(YP(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(t1,"getEndpointAcl");function lq({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,$,w,T,I;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:C})=>C===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${Mi(p.type)} parameter`,l++;else{let C=t.parameters.find(({bodyObject:we})=>!!we),re=Object.keys(((b=C==null?void 0:C.bodyObject)==null?void 0:b.content)??{}).find(Wr);re&&(a=(w=($=(g=C==null?void 0:C.bodyObject)==null?void 0:g.content)==null?void 0:$[re])==null?void 0:w.schema,u=`${Zn(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let C=e.resolveObject(a);a=(T=Object.entries(C.properties??{}).find(([re])=>re===s[l]))==null?void 0:T[1],c=((I=C.required)==null?void 0:I.includes(s[l]))??!1,l++}if(a)return{name:n,type:Ie(a)?void 0:a.type,zodSchemaName:Ie(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(lq,"getEndpointAclConditionPropertyType");function r1({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Wr);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ge({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=zo({schema:p,zodSchema:l,fallbackName:gu(Fi(r,n,i)),resolver:e,tag:i}),d=Kr({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:bP,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(r1,"getEndpointBody");function n1({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!PP.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(Wr);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=Ge({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=Kr({schema:u,meta:c.meta,options:e.options}),p=zo({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:FP(Fi(r,n,i),s.name),resolver:e,tag:i});return{name:Ot(s.in).with("path",()=>rm(s.name)).otherwise(()=>s.name),type:Ot(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(n1,"getEndpointParameter");function o1(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Un(u,Hn),p=i1(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let h=d.operationId&&d.operationId!==qn(d.operationId);d.operationId&&h&&e.validationErrors.push(GP(d.operationId));let y=Object.entries({...p,...i1(d.parameters??[])}).map(([,I])=>I),b=sa({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(I=>I===b).length<=1,$=qi(d,e.options),w={method:f,path:MP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(zn),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let I=r1({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:$});I&&(w.parameters.push(I.endpointParameter),w.requestFormat=I.requestFormat)}for(let I of y){let C=n1({resolver:e,param:I,operationName:b,isUniqueOperationName:g,tag:$});C&&w.parameters.push(C)}let T=fq(w);T.forEach(I=>{w.parameters.push(I)}),T.length>0&&e.validationErrors.push(ZP(T,c));for(let I in d.responses){w.responseStatusCodes.push(I);let C=e.resolveObject(d.responses[I]),re=Object.keys(C.content??{}).find(mu),we,Oe;if(re?(w.responseFormat=re,we=(i=(n=C.content)==null?void 0:n[re])==null?void 0:i.schema):Oe=Vh,we){let J=Ge({schema:we,resolver:e,meta:{isRequired:!0},tag:$}),k=e.resolveObject(we);Oe=zo({schema:k,zodSchema:J,fallbackName:J.ref?void 0:yu({statusCode:I,operationName:b,isUniqueOperationName:g,tag:$}),resolver:e,tag:$})+Kr({schema:k,meta:J.meta,options:e.options})}if(Oe){let J=Number(I);du(J)?(w.response=Oe,w.responseObject=C):I!=="default"&&hu(J)&&w.errors.push({zodSchema:Oe,status:J,description:C.description})}}w.response||(w.response=Vh),w.acl=t1({resolver:e,endpoint:w,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!w.responseStatusCodes.includes("401")&&e.validationErrors.push(sm("401",d,w)),(a=w.acl)!=null&&a[0]&&!w.responseStatusCodes.includes("403")&&e.validationErrors.push(sm("403",d,w)),t.push(w)}}return t}o(o1,"getEndpointsFromOpenAPIDoc");function i1(e){return Object.fromEntries((e??[]).map(t=>[Ie(t)?t.$ref:t.name,t]))}o(i1,"getParameters");function fq(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>pq(r))}o(fq,"getMissingPathParameters");function pq(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(pq,"getPathParameterFromName");var It=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function Ar(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Ie(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Yh.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;Ar(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Ar(s,t)}}o(Ar,"iterateSchema");function s1(e,t){let r=dq(e,t),n=hq(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(s1,"getOpenAPISchemaDependencyGraph");function dq(e,t){let r={},n={};return e.forEach(i=>mq({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(dq,"getRefsDependencyGraph");function hq(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(hq,"getDeepRefsDependencyGraph");function mq({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Ar(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Ar(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(mq,"getSchemaRefsDependencyGraph");function vu(e,t,r){let n=[];return Ar(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):Ie(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(bu(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(bu(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(bu(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(vu,"getSchemaRefObjs");function a1(e,t){return t.map(i=>Di(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(a1,"getDeepSchemaRefObjs");function fa({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&c1({schema:e,nameSegments:t,...n}),Ar(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),c1({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(fa,"updateEnumZodSchemaData");function c1({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Ie(t)||!t.enum)return;let a=cm(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(WP(r?`schema ${Uo(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(c1,"handleEnumZodSchemaDataUpdate");function u1(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Jh(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=nm(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!um(e);)gq(e,t+2),t++;if(um(e)||e.enumZodSchemaData.filter(n=>!f1(e,n)).forEach(n=>{n.zodSchemaName=nm(n.meta.zodSchemaNameSegments[0].map(i=>lm(Ve(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!um(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(u1,"resolveEnumZodSchemaNames");function um(e){return e.enumZodSchemaData.every(t=>f1(e,t))}o(um,"allEnumZodSchemaNamesAreUnique");function gq(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&yq(n,t)})}o(gq,"additionalResolveEnumZodSchemaName");function yq(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[lm(Ve(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Jh(n),s=[i?lm(Ve(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(yq,"suffixWithPreviousSegmentName");function l1(e){e.enumZodSchemaData.forEach(t=>{let r=It(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(l1,"resolveEnumZodSchemaTags");function f1(e,t){return e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(f1,"isUnique");function lm(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(lm,"sanitizeName");var fm=class fm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=s1(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=IP(t,r),this.operationNames=kP(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(TP)}getSchemaByRef(t){return this.docSchemas[Uo(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Di(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return zn(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=It(i,s),c=a.length===1?a[0]:this.options.defaultTag;return zn(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Ie(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(c=>{let u=Di(c),l=Uo(u),p=an(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:p,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=Un(u,Hn);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=qi(f,this.options),h=sa({path:c,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),y=this.operationNames.filter(w=>w===h).length<=1,b=ht(Fi(h,y,d)),g=[];if((r=f.parameters)==null||r.map(w=>{let T=w,I=T.schema,C=`operation ${f.operationId??c} parameter ${T.name}`;g.push(...vu(this,I,C)),this.options.extractEnums&&fa({resolver:this,schema:I,schemaInfo:C,tags:[d],nameSegments:[b,T.name],includeSelf:!0})}),f.requestBody){let w=this.resolveObject(f.requestBody),I=Object.keys(w.content??{}).find(Wr);if(I){let C=(i=(n=w.content)==null?void 0:n[I])==null?void 0:i.schema,ce=`operation ${f.operationId} request body`;g.push(...vu(this,C,ce)),this.options.extractEnums&&fa({resolver:this,schema:C,schemaInfo:ce,tags:[d],nameSegments:[gu(b)]})}}for(let w in f.responses){let T=this.resolveObject(f.responses[w]),C=Object.keys(T.content??{}).find(mu);if(C){let ce=(a=(s=T.content)==null?void 0:s[C])==null?void 0:a.schema,re=`operation ${f.operationId} response body`;g.push(...vu(this,ce,re)),this.options.extractEnums&&fa({resolver:this,schema:ce,schemaInfo:re,tags:[d],nameSegments:[yu({statusCode:w,operationName:h,isUniqueOperationName:y,tag:d})]})}}a1(this,g).forEach(w=>{let T=this.getSchemaDataByRef(w);T&&T.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=Di(c);fa({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Uo(u)]})}),u1(this),l1(this))}};o(fm,"SchemaResolver");var _u=fm;function p1(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=an(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=Ge({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(p1,"getZodSchemasFromOpenAPIDoc");function d1(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(d1,"topologicalSort");function h1(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(h1,"sortObjKeysFromArray");function m1(e,t){let r=d1(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return h1(t,r)}o(m1,"sortZodSchemasByTopology");function g1(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(KP(e.getCircularSchemaChain(s).join(" -> "))),r[an(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[an(n,e.options.schemaSuffix)]=i}),r}o(g1,"wrapCircularZodSchemas");function Su(e,t){let r=new _u(e,t),n=o1(r),s={...p1(r),...r.getZodSchemas()};return s=g1(r,s),s=m1(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:bq({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Su,"getDataFromOpenAPIDoc");function bq({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ua(s,n);y1(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(y1(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(bq,"splitDataByTags");function y1(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(y1,"getTagElement");var Go=gt(require("fs")),pm=gt(require("path"));function dm(e){let t=`src/generators/templates/${e}.hbs`;return Go.default.readFileSync(pm.default.join(__dirname,`../${t}`),"utf-8")}o(dm,"readHbsTemplateSync");function pa({output:e,fileName:t}){return`${e}/${t}.ts`}o(pa,"getOutputFileName");function vq({fileName:e,content:t}){_q(e,t)}o(vq,"writeTsFileSync");function _q(e,t){let r=pm.default.dirname(e);Go.default.existsSync(r)||Go.default.mkdirSync(r,{recursive:!0}),Go.default.writeFileSync(e,t,"utf-8")}o(_q,"writeFileWithDirSync");function b1(e){e.forEach(vq)}o(b1,"writeGeneratesFileData");function v1(e,t){let r={...uu,...t},{resolver:n,data:i}=Su(e,r);if(n.validationErrors.length>0){let s=JP(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Nr.red(`${yP[a]}:`)}
|
|
144
|
+
`)}return t.assign(`z.union([${e.oneOf.map(c=>Ge({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(hq,"getOneOfZodSchema");function mq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Gt(e)||!Array.isArray(e.type)))return e.type.length===1?Ge({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ge({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(mq,"getArrayZodSchema");function gq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ge({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ge({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(gq,"getAnyOfZodSchema");function yq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ge({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=HO(e),u=a.map(f=>{let d=Ge({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ge({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(yq,"getAllOfZodSchema");function bq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Di(s)){if(e.enum){if(s==="string")return vq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(Pt(s).with("integer",()=>"z.number()").with("string",()=>Pt(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(bq,"getPrimitiveZodSchema");function vq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Gt(t))return;let s=dm(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let c=e.options.includeNamespaces&&a.tag!==i?`${Je({type:"models",tag:a.tag,options:e.options})}.`:"";return new la(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o(vq,"getEnumZodSchema");function dm(e){var t;return`${au}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(dm,"getEnumZodSchemaCode");function zo({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Lt(s)||t.ref===void 0)&&r){if(t.complexity<em)return s;let u=cn(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return at(0,n.getSchemaByRef(t.ref))<em?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(zo,"resolveZodSchemaName");var Gn=o(e=>e.method==="get","isQuery"),s1=o(e=>e.method!=="get","isMutation");function a1({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=_q({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(r1(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(a1,"getEndpointAcl");function _q({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,$,w,j,C;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:I})=>I===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${ki(p.type)} parameter`,l++;else{let I=t.parameters.find(({bodyObject:we})=>!!we),re=Object.keys(((b=I==null?void 0:I.bodyObject)==null?void 0:b.content)??{}).find(Kr);re&&(a=(w=($=(g=I==null?void 0:I.bodyObject)==null?void 0:g.content)==null?void 0:$[re])==null?void 0:w.schema,u=`${Gn(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let I=e.resolveObject(a);a=(j=Object.entries(I.properties??{}).find(([re])=>re===s[l]))==null?void 0:j[1],c=((C=I.required)==null?void 0:C.includes(s[l]))??!1,l++}if(a)return{name:n,type:Ce(a)?void 0:a.type,zodSchemaName:Ce(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(_q,"getEndpointAclConditionPropertyType");function c1({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Kr);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ge({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=zo({schema:p,zodSchema:l,fallbackName:vu(Li(r,n,i)),resolver:e,tag:i}),d=Yr({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:OO,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(c1,"getEndpointBody");function u1({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!AO.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(Kr);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=Ge({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=Yr({schema:u,meta:c.meta,options:e.options}),p=zo({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:GO(Li(r,n,i),s.name),resolver:e,tag:i});return{name:Pt(s.in).with("path",()=>am(s.name)).otherwise(()=>s.name),type:Pt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(u1,"getEndpointParameter");function f1(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Un(u,Hn),p=l1(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let h=d.operationId&&d.operationId!==qn(d.operationId);d.operationId&&h&&e.validationErrors.push(JO(d.operationId));let y=Object.entries({...p,...l1(d.parameters??[])}).map(([,C])=>C),b=sa({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(C=>C===b).length<=1,$=Mi(d,e.options),w={method:f,path:VO(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(zn),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let C=c1({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:$});C&&(w.parameters.push(C.endpointParameter),w.requestFormat=C.requestFormat)}for(let C of y){let I=u1({resolver:e,param:C,operationName:b,isUniqueOperationName:g,tag:$});I&&w.parameters.push(I)}let j=Sq(w);j.forEach(C=>{w.parameters.push(C)}),j.length>0&&e.validationErrors.push(XO(j,c));for(let C in d.responses){w.responseStatusCodes.push(C);let I=e.resolveObject(d.responses[C]),re=Object.keys(I.content??{}).find(mu),we,Pe;if(re?(w.responseFormat=re,we=(i=(n=I.content)==null?void 0:n[re])==null?void 0:i.schema):Pe=Wh,we){let J=Ge({schema:we,resolver:e,meta:{isRequired:!0},tag:$}),k=e.resolveObject(we);Pe=zo({schema:k,zodSchema:J,fallbackName:J.ref?void 0:_u({statusCode:C,operationName:b,isUniqueOperationName:g,tag:$}),resolver:e,tag:$})+Yr({schema:k,meta:J.meta,options:e.options})}if(Pe){let J=Number(C);du(J)?(w.response=Pe,w.responseObject=I):C!=="default"&&hu(J)&&w.errors.push({zodSchema:Pe,status:J,description:I.description})}}w.response||(w.response=Wh),w.acl=a1({resolver:e,endpoint:w,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!w.responseStatusCodes.includes("401")&&e.validationErrors.push(fm("401",d,w)),(a=w.acl)!=null&&a[0]&&!w.responseStatusCodes.includes("403")&&e.validationErrors.push(fm("403",d,w)),t.push(w)}}return t}o(f1,"getEndpointsFromOpenAPIDoc");function l1(e){return Object.fromEntries((e??[]).map(t=>[Ce(t)?t.$ref:t.name,t]))}o(l1,"getParameters");function Sq(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>Pq(r))}o(Sq,"getMissingPathParameters");function Pq(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(Pq,"getPathParameterFromName");var It=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function Ar(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Ce(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(tm.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;Ar(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Ar(s,t)}}o(Ar,"iterateSchema");function p1(e,t){let r=Oq(e,t),n=Eq(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(p1,"getOpenAPISchemaDependencyGraph");function Oq(e,t){let r={},n={};return e.forEach(i=>$q({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(Oq,"getRefsDependencyGraph");function Eq(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(Eq,"getDeepRefsDependencyGraph");function $q({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Ar(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Ar(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o($q,"getSchemaRefsDependencyGraph");function Pu(e,t,r){let n=[];return Ar(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):Ce(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(Su(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(Su(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(Su(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Pu,"getSchemaRefObjs");function d1(e,t){return t.map(i=>qi(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(d1,"getDeepSchemaRefObjs");function fa({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&h1({schema:e,nameSegments:t,...n}),Ar(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),h1({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(fa,"updateEnumZodSchemaData");function h1({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Ce(t)||!t.enum)return;let a=dm(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(e1(r?`schema ${Uo(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(h1,"handleEnumZodSchemaDataUpdate");function m1(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=nm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=cm(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!hm(e);)wq(e,t+2),t++;if(hm(e)||e.enumZodSchemaData.filter(n=>!y1(e,n)).forEach(n=>{n.zodSchemaName=cm(n.meta.zodSchemaNameSegments[0].map(i=>mm(Be(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!hm(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(m1,"resolveEnumZodSchemaNames");function hm(e){return e.enumZodSchemaData.every(t=>y1(e,t))}o(hm,"allEnumZodSchemaNamesAreUnique");function wq(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&xq(n,t)})}o(wq,"additionalResolveEnumZodSchemaName");function xq(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[mm(Be(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=nm(n),s=[i?mm(Be(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(xq,"suffixWithPreviousSegmentName");function g1(e){e.enumZodSchemaData.forEach(t=>{let r=It(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(g1,"resolveEnumZodSchemaTags");function y1(e,t){return e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(y1,"isUnique");function mm(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(mm,"sanitizeName");var gm=class gm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=p1(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=NO(t,r),this.operationNames=FO(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(MO)}getSchemaByRef(t){return this.docSchemas[Uo(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(qi(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return zn(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=It(i,s),c=a.length===1?a[0]:this.options.defaultTag;return zn(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Ce(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}getBaseUrl(){var r;let t=(r=this.openApiDoc.servers)==null?void 0:r[0].url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(c=>{let u=qi(c),l=Uo(u),p=cn(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:p,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=Un(u,Hn);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Mi(f,this.options),h=sa({path:c,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),y=this.operationNames.filter(w=>w===h).length<=1,b=ht(Li(h,y,d)),g=[];if((r=f.parameters)==null||r.map(w=>{let j=w,C=j.schema,I=`operation ${f.operationId??c} parameter ${j.name}`;g.push(...Pu(this,C,I)),this.options.extractEnums&&fa({resolver:this,schema:C,schemaInfo:I,tags:[d],nameSegments:[b,j.name],includeSelf:!0})}),f.requestBody){let w=this.resolveObject(f.requestBody),C=Object.keys(w.content??{}).find(Kr);if(C){let I=(i=(n=w.content)==null?void 0:n[C])==null?void 0:i.schema,ce=`operation ${f.operationId} request body`;g.push(...Pu(this,I,ce)),this.options.extractEnums&&fa({resolver:this,schema:I,schemaInfo:ce,tags:[d],nameSegments:[vu(b)]})}}for(let w in f.responses){let j=this.resolveObject(f.responses[w]),I=Object.keys(j.content??{}).find(mu);if(I){let ce=(a=(s=j.content)==null?void 0:s[I])==null?void 0:a.schema,re=`operation ${f.operationId} response body`;g.push(...Pu(this,ce,re)),this.options.extractEnums&&fa({resolver:this,schema:ce,schemaInfo:re,tags:[d],nameSegments:[_u({statusCode:w,operationName:h,isUniqueOperationName:y,tag:d})]})}}d1(this,g).forEach(w=>{let j=this.getSchemaDataByRef(w);j&&j.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=qi(c);fa({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Uo(u)]})}),m1(this),g1(this))}};o(gm,"SchemaResolver");var Ou=gm;function b1(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=cn(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=Ge({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(b1,"getZodSchemasFromOpenAPIDoc");function v1(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(v1,"topologicalSort");function _1(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(_1,"sortObjKeysFromArray");function S1(e,t){let r=v1(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return _1(t,r)}o(S1,"sortZodSchemasByTopology");function P1(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(t1(e.getCircularSchemaChain(s).join(" -> "))),r[cn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[cn(n,e.options.schemaSuffix)]=i}),r}o(P1,"wrapCircularZodSchemas");function Eu(e,t){let r=new Ou(e,t),n=f1(r),s={...b1(r),...r.getZodSchemas()};return s=P1(r,s),s=S1(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:Aq({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Eu,"getDataFromOpenAPIDoc");function Aq({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ua(s,n);O1(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(O1(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(Aq,"splitDataByTags");function O1(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(O1,"getTagElement");var Go=gt(require("fs")),ym=gt(require("path"));function E1(e){return Go.default.readFileSync(ym.default.join(__dirname,`../${e}`),"utf-8")}o(E1,"readFileSync");function bm(e){let t=`src/generators/templates/${e}.hbs`;return E1(t)}o(bm,"readHbsTemplateSync");function $1(e){let t=`src/assets/${e}`;return E1(t)}o($1,"readAssetSync");function Vi({output:e,fileName:t}){return`${e}/${t}`}o(Vi,"getOutputFileName");function Cq(e,t){let r=ym.default.dirname(e);Go.default.existsSync(r)||Go.default.mkdirSync(r,{recursive:!0}),Go.default.writeFileSync(e,t,"utf-8")}o(Cq,"writeFileWithDirSync");function Iq({fileName:e,content:t}){Cq(e,t)}o(Iq,"writeFileSync");function w1(e){e.forEach(Iq)}o(w1,"writeGenerateFileData");function x1(e,t){let r={...uu,...t},{resolver:n,data:i}=Eu(e,r);if(n.validationErrors.length>0){let s=i1(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${kr.red(`${PO[a]}:`)}
|
|
145
145
|
${c.map(u=>`- ${u}`).join(`
|
|
146
146
|
`)}
|
|
147
|
-
`)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...
|
|
147
|
+
`)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...jq(c,r)],[]);console.log(`${kr.green("Outputs:")}
|
|
148
148
|
${s.map(a=>`- ${a}`).join(`
|
|
149
149
|
`)}
|
|
150
|
-
`)}return n.validationErrors}o(
|
|
151
|
-
*`))}o(EL,"registerAddAsteriskAfterNewLineHelper");var Xn=gt(Jn());function x2(e){$L(),wL(e.options),IL(e),xL(),AL(),CL(e),TL()}o(x2,"registerEndpointsHbsHelpers");function $L(){Xn.default.registerHelper("endpointName",ca)}o($L,"registerEndpointNameHelper");function wL(e){Xn.default.registerHelper("importedEndpointName",t=>HP(t,e))}o(wL,"registerImportedEndpointNameHelper");function xL(){Xn.default.registerHelper("endpointPath",UP)}o(xL,"registerEndpointPathHelper");function AL(){Xn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(AL,"registerEndpointBodyHelper");function IL(e){Xn.default.registerHelper("endpointParams",t=>om(e,t))}o(IL,"registerEndpointParamsHelper");function CL(e){Xn.default.registerHelper("endpointArgs",t=>om(e,t).map(r=>r.name).join(", "))}o(CL,"registerEndpointArgsHelper");function TL(){Xn.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Gt(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(Wr);f&&(i=e.bodyObject.content[f],i.schema&&Gt(i.schema)&&(n=i.schema))}return n&&["description","minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","example"].filter(f=>n[f]).forEach(f=>{t.push(`${Ve(AP(f))}: \`${n[f]}\``)}),i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(TL,"registerEndpointParamDescriptionHelper");var ei=gt(Jn());var Jr={query:"useQuery",mutation:"useMutation",queryClient:"useQueryClient"},A2={bindings:[Jr.query,Jr.mutation,Jr.queryClient],from:"@tanstack/react-query"};function I2(){jL(),RL(),NL(),kL(),ML(),qL(),DL()}o(I2,"registerPartialsHbsHelpers");function jL(){ei.default.registerHelper("genImport",e=>ti("import")({import:e}))}o(jL,"registerImportHelper");function RL(){ei.default.registerHelper("genEndpointParams",e=>ti("endpoint-params")({endpoint:e}))}o(RL,"registerGenerateEndpointParamsHelper");function NL(){ei.default.registerHelper("genEndpointConfig",e=>{let t=zP(e);return Object.keys(t).length===0?"":ti("endpoint-config")({endpointConfig:t})})}o(NL,"registerGenerateEndpointConfigHelper");function kL(){ei.default.registerHelper("genQueryKeys",e=>e.length===0?"":ti("query-keys")({endpoints:e}))}o(kL,"registerGenerateQueryKeysHelper");function ML(){ei.default.registerHelper("genQuery",(e,t)=>{let r,n;return Zn(e)?(r="query-use-query",n=Jr.query):(r="query-use-mutation",n=Jr.mutation),ti(r)({endpoint:e,endpoints:t,queryHook:n})})}o(ML,"registerGenerateQueryHelper");function qL(){ei.default.registerHelper("genCaslAbilityType",e=>ti("casl-ability-type")({endpoint:e,abilityTupleType:Ir.abilityTuple}))}o(qL,"registerGenerateCaslAbilityTypeHelper");function DL(){ei.default.registerHelper("genCaslAbilityFunction",e=>ti("casl-ability-function")({endpoint:e}))}o(DL,"registerGenerateCaslAbilityFunctionHelper");var rs=gt(Jn());var C2=o(e=>`use${Ve(ht(e.operationName))}`,"getQueryName"),sl=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=It(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${Ve(pu(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),T2=o((e,t)=>{let n=sl(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys"),al=o((e,t)=>{let n=sl(t).find(({path:i})=>e.path.startsWith(i));return n==null?void 0:n.name},"getEndpointAllQueryKey");function j2(){LL(),FL(),BL(),VL(),HL()}o(j2,"registerQueryHbsHelpers");function LL(){rs.default.registerHelper("queryName",C2)}o(LL,"registerQueryNameHelper");function FL(){rs.default.registerHelper("allQueryKeys",sl)}o(FL,"registerQueryKeysHelper");function BL(){rs.default.registerHelper("endpointPathQueryKeys",T2)}o(BL,"registerEndpointPathQueryKeysHelper");function VL(){rs.default.registerHelper("endpointAllQueryKey",al)}o(VL,"registerEndpointAllQueryKeyHelper");function HL(){rs.default.registerHelper("isQuery",Zn)}o(HL,"registerIsQueryHelper");var pg=gt(Jn());function R2(e){UL(e.options),zL(e)}o(R2,"registerZodHbsHelpers");function UL(e){pg.default.registerHelper("zodInferedType",t=>aa(t,e))}o(UL,"registerInferedTypeHelper");function zL(e){pg.default.registerHelper("importedZodSchemaName",t=>BP(e,t))}o(zL,"registerImportedZodSchemaNameHelper");function dn(e,t){let r=dm(t);return w2(),R2(e),x2(e),j2(),$2(),I2(),dg.default.compile(r)}o(dn,"getHbsTemplateDelegate");function ti(e){let t=dm(`partials/${e}`);return dg.default.compile(t)}o(ti,"getHbsPartialTemplateDelegate");function N2({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={...mm,bindings:[Ir.abilityTuple,...i?[Ir.forcedSubject,Ir.subject]:[]]},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=Kn({resolver:e,tag:r,zodSchemasAsTypes:It(a)});return dn(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"acl",tag:r,options:e.options}),endpoints:n})}o(N2,"generateAcl");function k2(e,t){if(!t||t.length===0)return;let r={...mm,bindings:[Ir.pureAbility]},n=R1({tags:t,entityName:da,getAliasEntityName:Ou,options:e.options}),i=t.map(a=>Je({type:"acl",tag:a,options:e.options}));return dn(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:da,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}o(k2,"generateAppAcl");function M2({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),s=i.some(p=>!Dt(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),c=Kn({resolver:e,tag:r,zodSchemas:It(i.filter(Dt)),zodSchemasAsTypes:It(a.map(p=>p.zodSchema).filter(Dt))});return dn(e,"endpoints")({restClientImport:C1,hasZodImport:s,zodImport:cu,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"endpoints",tag:r,options:e.options}),restClientName:vm,endpoints:n})}o(M2,"generateEndpoints");function q2(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(D2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(q2,"getZodSchemaRefs");function D2(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&D2(n).forEach(s=>r.add(s)),r},new Set)}o(D2,"getSchemaRefs");function L2({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...q2(e,p)],[]).filter(l=>!n[l]),s=Kn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d),isEnum:LP(f)}}},{});return dn(e,"models")({zodImport:cu,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(L2,"generateModels");function F2({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Zn),s=n.filter(e1),a={...A2,bindings:[...i.length>0?[Jr.query]:[],...s.length>0?[Jr.mutation]:[],...s.some(h=>al(h,i))?[Jr.queryClient]:[]]},c={...T1,bindings:[...i.length>0?[ha.query]:[],...s.length>0?[ha.mutation]:[]]},u=[...i,...s].reduce((h,y)=>[...h,...y.parameters],[]),l=Kn({resolver:e,tag:r,zodSchemasAsTypes:It(u.map(h=>h.zodSchema).filter(Dt))}),p=j1({tag:r,endpoints:n,options:e.options});return dn(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(F2,"generateQueries");function B2(e,t){let r={...uu,...t},{resolver:n,data:i}=Su(e,r),s=[],a=[],c=["models","endpoints","queries","acl"],u={models:L2,endpoints:M2,queries:F2,acl:N2};i.forEach((p,f)=>{r.excludeTags.find(h=>h.toLowerCase()===f.toLowerCase())||c.forEach(h=>{let y=u[h]({resolver:n,data:i,tag:f});if(y){let b=pa({output:r.output,fileName:Gn({tag:f,type:h,options:r})});s.push({fileName:b,content:y}),h==="acl"&&a.push(f)}})});let l=k2(n,a);if(l){let p=pa({output:r.output,fileName:P1});s.push({fileName:p,content:l})}return s}o(B2,"generateCodeFromOpenAPIDoc");async function U2({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&rr("Parsing OpenAPI spec...");let a=await V2.default.bundle(e);n&&_n("Parsing finished."),n&&rr("Generating code...");let c=B2(a,{input:e,excludeTags:t.split(","),...i});n&&_n("Generation finished."),n&&rr("Writing files..."),b1(c),n&&_n("Writing finished."),r&&GL({output:i.output,verbose:n}),n&&rr(`TIME: ${Date.now()-s}ms`)}o(U2,"generate");function GL({output:e,verbose:t}){t&&rr("Running Prettier..."),(0,H2.exec)(`prettier --write ${e}`,r=>{t&&(r?ds(r,"Prettier error"):_n("Prettier finished."))})}o(GL,"execPrettier");var Lt=class Lt{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;prettier;verbose};o(Lt,"GenerateOptions"),at([ut({envAlias:"input",demandOption:!0})],Lt.prototype,"input",2),at([ut({envAlias:"output",default:"output"})],Lt.prototype,"output",2),at([ut({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Lt.prototype,"includeNamespaces",2),at([ut({envAlias:"splitByTags",default:!0,type:"boolean"})],Lt.prototype,"splitByTags",2),at([ut({envAlias:"defaultTag",default:"Common"})],Lt.prototype,"defaultTag",2),at([ut({envAlias:"excludeTags",default:""})],Lt.prototype,"excludeTags",2),at([ut({envAlias:"importPath",default:"ts",type:"string"})],Lt.prototype,"importPath",2),at([ut({envAlias:"extractEnums",default:!0,type:"boolean"})],Lt.prototype,"extractEnums",2),at([ut({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Lt.prototype,"removeOperationPrefixEndingWith",2),at([ut({envAlias:"prettier",default:!0,type:"boolean"})],Lt.prototype,"prettier",2),at([ut({envAlias:"verbose",default:!1,type:"boolean"})],Lt.prototype,"verbose",2);var hg=Lt,z2={command:"generate",describe:"Generate code from OpenAPI spec",builder:tc(hg),handler:o(async e=>{let t=await e;return t.verbose&&(ec(`OpenAPI CodeGen ${io()}`),ps("input",t.input),ps("output",t.output)),U2(t)},"handler")};_y(_l(process.argv)).version(io()||"unknown").scriptName("openapi-codegen").command(z2).command(O1).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&ds(e),t&&ds(t),rr("Use '--help' for more info"),process.exit(1)}).parse();
|
|
150
|
+
`)}return n.validationErrors}o(x1,"checkOpenAPIDoc");function jq(e,t){return["models","endpoints","queries"].map(r=>Vi({output:t.output,fileName:bu({tag:e,type:r,options:t})}))}o(jq,"getOutputFileNames");async function C1({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&rr("Parsing OpenAPI spec...");let s=await A1.default.bundle(e);r&&_n("Parsing finished."),r&&rr("Running check...");let a=x1(s,{input:e,excludeTags:t.split(","),...n});if(r&&rr(`TIME: ${Date.now()-i}ms`),a.length===0)_n("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(C1,"check");var Wn=class Wn{input;splitByTags;defaultTag;excludeTags;verbose};o(Wn,"CheckOptions"),et([tt({envAlias:"input",demandOption:!0})],Wn.prototype,"input",2),et([tt({envAlias:"splitByTags",default:!0,type:"boolean"})],Wn.prototype,"splitByTags",2),et([tt({envAlias:"defaultTag",default:"Common"})],Wn.prototype,"defaultTag",2),et([tt({envAlias:"excludeTags",default:""})],Wn.prototype,"excludeTags",2),et([tt({envAlias:"verbose",default:!1,type:"boolean"})],Wn.prototype,"verbose",2);var vm=Wn,I1={command:"check",describe:"Check OpenAPI spec",builder:tc(vm),handler:o(async e=>{let t=await e;return t.verbose&&(ec(`OpenAPI CodeGen ${io()}`),ps("input",t.input)),C1(t)},"handler")};var JE=gt(Gh()),XE=require("child_process");var j1={fileName:"acl/app.ability",extension:"ts"},pa="AllAbilities",Cr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},_m={bindings:[Cr.abilityTuple,Cr.pureAbility,Cr.forcedSubject,Cr.subject],from:"@casl/ability"};var T1=o(e=>`Use${Be(ht(e.operationName))}Ability`,"getAbilityTypeName"),R1=o(e=>`canUse${Be(ht(e.operationName))}`,"getAbilityFunctionName"),N1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),k1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),M1=o(e=>{var t;return!!((t=Sm(e))!=null&&t.length)},"hasAbilityConditions"),Sm=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),q1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),$u=o(e=>`${Be(e)}${pa}`,"getTagAllAbilitiesName");var da="AppRestClient",Pm={query:"AppQueryOptions",mutation:"AppMutationOptions"},Om="src/data",Em="@/data",D1="@/util/rest/clients/app-rest-client",L1="@/types/react-query";var wu={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},xu={fileName:"app-rest-client",extension:"ts"};function Zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=$m({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=$m({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>aa(u,e.options),"getEntityName"),options:e.options});return Tq(e.options,a,c)}o(Zn,"getModelsImports");function F1({tag:e,endpoints:t,options:r}){return $m({type:"endpoints",tag:e,entities:t,getTag:o(n=>ua(n,r),"getTag"),getEntityName:ca,options:r})}o(F1,"getEndpointsImports");function V1({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(s=>{let a=`${t}${r?` as ${r(s)}`:""}`;i.has(s)?n.includeNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.includeNamespaces?Je({type:"acl",tag:s,options:n}):a],from:`${ha(n)}${yu({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(V1,"getAclImports");function ha(e){let t=Em;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Om}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Om}`,"g"),Em)),`${t}/`.replace(/\/\//g,"/")}o(ha,"getImportPath");function $m({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.includeNamespaces?Je({type:e,tag:u,options:s}):i(c)],from:`${l?"./":ha(s)}${yu({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o($m,"getImports");function Tq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:It(n.bindings)}))}o(Tq,"mergeImports");var bg=gt(Qn());var dn=gt(Qn());function TE(){EL(),$L(),wL(),xL(),AL(),CL(),IL(),jL()}o(TE,"registerAclHbsHelpers");function EL(){dn.default.registerHelper("abilityTypeName",T1)}o(EL,"registerAbilityTypeNameHelper");function $L(){dn.default.registerHelper("abilityFunctionName",R1)}o($L,"registerAbilityFunctionNameHelper");function wL(){dn.default.registerHelper("ablityAction",N1)}o(wL,"registerAbilityActionHelper");function xL(){dn.default.registerHelper("ablitySubject",k1)}o(xL,"registerAbilitySubjectHelper");function AL(){dn.default.registerHelper("hasAbilityConditions",M1)}o(AL,"registerHasAbilityConditionsHelper");function CL(){dn.default.registerHelper("abilityConditionsTypes",Sm)}o(CL,"registerAbilityConditionsTypesHelper");function IL(){dn.default.registerHelper("abilityDescription",q1)}o(IL,"registerAbilityDescriptionHelper");function jL(){dn.default.registerHelper("tagAllAbilitiesName",$u)}o(jL,"registerTagAllAbilitiesNameHelper");var ll=gt(Qn());function RE(){TL(),RL(),NL()}o(RE,"registerCommonHbsHelpers");function TL(){ll.default.registerHelper("isEqual",(e,t)=>e===t)}o(TL,"registerIsEqualHelper");function RL(){ll.default.registerHelper("commaSeparated",e=>e.join(", "))}o(RL,"registerCommaSeparatedListHelper");function NL(){ll.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
|
|
151
|
+
*`))}o(NL,"registerAddAsteriskAfterNewLineHelper");var Jn=gt(Qn());function NE(e){kL(),ML(e.options),LL(e),qL(),DL(),FL(e),VL()}o(NE,"registerEndpointsHbsHelpers");function kL(){Jn.default.registerHelper("endpointName",ca)}o(kL,"registerEndpointNameHelper");function ML(e){Jn.default.registerHelper("importedEndpointName",t=>KO(t,e))}o(ML,"registerImportedEndpointNameHelper");function qL(){Jn.default.registerHelper("endpointPath",YO)}o(qL,"registerEndpointPathHelper");function DL(){Jn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(DL,"registerEndpointBodyHelper");function LL(e){Jn.default.registerHelper("endpointParams",t=>lm(e,t))}o(LL,"registerEndpointParamsHelper");function FL(e){Jn.default.registerHelper("endpointArgs",t=>lm(e,t).map(r=>r.name).join(", "))}o(FL,"registerEndpointArgsHelper");function VL(){Jn.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Gt(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(Kr);f&&(i=e.bodyObject.content[f],i.schema&&Gt(i.schema)&&(n=i.schema))}return n&&["description","minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","example"].filter(f=>n[f]).forEach(f=>{t.push(`${Be(RO(f))}: \`${n[f]}\``)}),i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(VL,"registerEndpointParamDescriptionHelper");var Xn=gt(Qn());var Xr={query:"useQuery",mutation:"useMutation",queryClient:"useQueryClient"},kE={bindings:[Xr.query,Xr.mutation,Xr.queryClient],from:"@tanstack/react-query"};function ME(){BL(),HL(),UL(),zL(),GL(),WL(),ZL()}o(ME,"registerPartialsHbsHelpers");function BL(){Xn.default.registerHelper("genImport",e=>ei("import")({import:e}))}o(BL,"registerImportHelper");function HL(){Xn.default.registerHelper("genEndpointParams",e=>ei("endpoint-params")({endpoint:e}))}o(HL,"registerGenerateEndpointParamsHelper");function UL(){Xn.default.registerHelper("genEndpointConfig",e=>{let t=QO(e);return Object.keys(t).length===0?"":ei("endpoint-config")({endpointConfig:t})})}o(UL,"registerGenerateEndpointConfigHelper");function zL(){Xn.default.registerHelper("genQueryKeys",e=>e.length===0?"":ei("query-keys")({endpoints:e}))}o(zL,"registerGenerateQueryKeysHelper");function GL(){Xn.default.registerHelper("genQuery",(e,t)=>{let r,n;return Gn(e)?(r="query-use-query",n=Xr.query):(r="query-use-mutation",n=Xr.mutation),ei(r)({endpoint:e,endpoints:t,queryHook:n})})}o(GL,"registerGenerateQueryHelper");function WL(){Xn.default.registerHelper("genCaslAbilityType",e=>ei("casl-ability-type")({endpoint:e,abilityTupleType:Cr.abilityTuple}))}o(WL,"registerGenerateCaslAbilityTypeHelper");function ZL(){Xn.default.registerHelper("genCaslAbilityFunction",e=>ei("casl-ability-function")({endpoint:e}))}o(ZL,"registerGenerateCaslAbilityFunctionHelper");var rs=gt(Qn());var qE=o(e=>`use${Be(ht(e.operationName))}`,"getQueryName"),fl=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=It(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${Be(pu(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),DE=o((e,t)=>{let n=fl(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys"),pl=o((e,t)=>{let n=fl(t).find(({path:i})=>e.path.startsWith(i));return n==null?void 0:n.name},"getEndpointAllQueryKey");function LE(){KL(),YL(),QL(),JL(),XL()}o(LE,"registerQueryHbsHelpers");function KL(){rs.default.registerHelper("queryName",qE)}o(KL,"registerQueryNameHelper");function YL(){rs.default.registerHelper("allQueryKeys",fl)}o(YL,"registerQueryKeysHelper");function QL(){rs.default.registerHelper("endpointPathQueryKeys",DE)}o(QL,"registerEndpointPathQueryKeysHelper");function JL(){rs.default.registerHelper("endpointAllQueryKey",pl)}o(JL,"registerEndpointAllQueryKeyHelper");function XL(){rs.default.registerHelper("isQuery",Gn)}o(XL,"registerIsQueryHelper");var yg=gt(Qn());function FE(e){e8(e.options),t8(e)}o(FE,"registerZodHbsHelpers");function e8(e){yg.default.registerHelper("zodInferedType",t=>aa(t,e))}o(e8,"registerInferedTypeHelper");function t8(e){yg.default.registerHelper("importedZodSchemaName",t=>WO(e,t))}o(t8,"registerImportedZodSchemaNameHelper");function jr(e,t){let r=bm(t);return RE(),FE(e),NE(e),LE(),TE(),ME(),bg.default.compile(r)}o(jr,"getHbsTemplateDelegate");function ei(e){let t=bm(`partials/${e}`);return bg.default.compile(t)}o(ei,"getHbsPartialTemplateDelegate");function VE({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={..._m,bindings:[Cr.abilityTuple,...i?[Cr.forcedSubject,Cr.subject]:[]]},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=Zn({resolver:e,tag:r,zodSchemasAsTypes:It(a)});return jr(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"acl",tag:r,options:e.options}),endpoints:n})}o(VE,"generateAcl");function BE(e,t){if(!t||t.length===0)return;let r={..._m,bindings:[Cr.pureAbility]},n=V1({tags:t,entityName:pa,getAliasEntityName:$u,options:e.options}),i=t.map(a=>Je({type:"acl",tag:a,options:e.options}));return jr(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:pa,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}o(BE,"generateAppAcl");function HE(e){return e.standalone?`${ha(e)}${xu.fileName}`:D1}o(HE,"getAppRestClientImportPath");function UE(e){return e.standalone?`${ha(e)}${wu.reactQueryTypes.fileName}`:L1}o(UE,"getQueryTypesImportPath");function zE({resolver:e,data:t,tag:r=""}){var p;let n=(p=t.get(r))==null?void 0:p.endpoints;if(!n||n.length===0)return;let i={bindings:[da],from:HE(e.options)},s=n.map(f=>f.response),a=s.some(f=>!Lt(f)),c=n.reduce((f,d)=>[...f,...d.parameters],[]),u=Zn({resolver:e,tag:r,zodSchemas:It(s.filter(Lt)),zodSchemasAsTypes:It(c.map(f=>f.zodSchema).filter(Lt))});return jr(e,"endpoints")({appRestClientImport:i,hasZodImport:a,zodImport:cu,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"endpoints",tag:r,options:e.options}),restClientName:da,endpoints:n})}o(zE,"generateEndpoints");function GE(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(WE(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(GE,"getZodSchemaRefs");function WE(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&WE(n).forEach(s=>r.add(s)),r},new Set)}o(WE,"getSchemaRefs");function ZE({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...GE(e,p)],[]).filter(l=>!n[l]),s=Zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d),isEnum:zO(f)}}},{});return jr(e,"models")({zodImport:cu,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(ZE,"generateModels");function KE({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Gn),s=n.filter(s1),a={...kE,bindings:[...i.length>0?[Xr.query]:[],...s.length>0?[Xr.mutation]:[],...s.some(h=>pl(h,i))?[Xr.queryClient]:[]]},c={bindings:[...i.length>0?[Pm.query]:[],...s.length>0?[Pm.mutation]:[]],from:UE(e.options)},u=[...i,...s].reduce((h,y)=>[...h,...y.parameters],[]),l=Zn({resolver:e,tag:r,zodSchemasAsTypes:It(u.map(h=>h.zodSchema).filter(Lt))}),p=F1({tag:r,endpoints:n,options:e.options});return jr(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:Je({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(KE,"generateQueries");function YE(e){return jr(e,"app-rest-client")({appRestClientName:da,baseUrl:e.getBaseUrl()})}o(YE,"generateAppRestClient");function QE(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...uu,...t,importPath:r},{resolver:i,data:s}=Eu(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:ZE,endpoints:zE,queries:KE,acl:VE};s.forEach((f,d)=>{n.excludeTags.find(y=>y.toLowerCase()===d.toLowerCase())||u.forEach(y=>{let b=l[y]({resolver:i,data:s,tag:d});if(b){let g=Vi({output:n.output,fileName:bu({tag:d,type:y,options:n})});a.push({fileName:g,content:b}),y==="acl"&&c.push(d)}})});let p=BE(i,c);if(p){let f=Vi({output:n.output,fileName:gu(j1)});a.push({fileName:f,content:p})}return n.standalone&&a.push(...r8(i)),a}o(QE,"generateCodeFromOpenAPIDoc");function r8(e){let t=[];return Object.values(wu).forEach(r=>{let n=gu(r);t.push({fileName:Vi({output:e.options.output,fileName:n}),content:$1(n)})}),t.push({fileName:Vi({output:e.options.output,fileName:gu(xu)}),content:YE(e)}),t}o(r8,"getStandaloneFiles");async function e$({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&rr("Parsing OpenAPI spec...");let a=await JE.default.bundle(e);n&&_n("Parsing finished."),n&&rr("Generating code...");let c=QE(a,{input:e,excludeTags:t.split(","),...i});n&&_n("Generation finished."),n&&rr("Writing files..."),w1(c),n&&_n("Writing finished."),r&&n8({output:i.output,verbose:n}),n&&rr(`TIME: ${Date.now()-s}ms`)}o(e$,"generate");function n8({output:e,verbose:t}){t&&rr("Running Prettier..."),(0,XE.exec)(`prettier --write ${e}`,r=>{t&&(r?ds(r,"Prettier error"):_n("Prettier finished."))})}o(n8,"execPrettier");var Et=class Et{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;prettier;verbose;standalone;baseUrl};o(Et,"GenerateOptions"),et([tt({envAlias:"input",demandOption:!0})],Et.prototype,"input",2),et([tt({envAlias:"output",default:"output"})],Et.prototype,"output",2),et([tt({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Et.prototype,"includeNamespaces",2),et([tt({envAlias:"splitByTags",default:!0,type:"boolean"})],Et.prototype,"splitByTags",2),et([tt({envAlias:"defaultTag",default:"Common"})],Et.prototype,"defaultTag",2),et([tt({envAlias:"excludeTags",default:""})],Et.prototype,"excludeTags",2),et([tt({envAlias:"importPath",default:"ts",type:"string"})],Et.prototype,"importPath",2),et([tt({envAlias:"extractEnums",default:!0,type:"boolean"})],Et.prototype,"extractEnums",2),et([tt({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Et.prototype,"removeOperationPrefixEndingWith",2),et([tt({envAlias:"prettier",default:!0,type:"boolean"})],Et.prototype,"prettier",2),et([tt({envAlias:"verbose",default:!1,type:"boolean"})],Et.prototype,"verbose",2),et([tt({envAlias:"standalone",default:!1,type:"boolean"})],Et.prototype,"standalone",2),et([tt({envAlias:"baseUrl",default:""})],Et.prototype,"baseUrl",2);var vg=Et,t$={command:"generate",describe:"Generate code from OpenAPI spec",builder:tc(vg),handler:o(async e=>{let t=await e;return t.verbose&&(ec(`OpenAPI CodeGen ${io()}`),ps("input",t.input),ps("output",t.output)),e$(t)},"handler")};$y($l(process.argv)).version(io()||"unknown").scriptName("openapi-codegen").command(t$).command(I1).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&ds(e),t&&ds(t),rr("Use '--help' for more info"),process.exit(1)}).parse();
|
|
152
152
|
/*! Bundled license information:
|
|
153
153
|
|
|
154
154
|
reflect-metadata/Reflect.js:
|