@povio/openapi-codegen-cli 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sh.js CHANGED
@@ -1,66 +1,66 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var v$=Object.create;var qa=Object.defineProperty;var wg=Object.getOwnPropertyDescriptor;var _$=Object.getOwnPropertyNames;var S$=Object.getPrototypeOf,P$=Object.prototype.hasOwnProperty;var o=(e,t)=>qa(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var O$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _$(t))!P$.call(e,i)&&i!==r&&qa(e,i,{get:()=>t[i],enumerable:!(n=wg(t,i))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?v$(S$(e)):{},O$(t||!e||!e.__esModule?qa(r,"default",{value:e,enumerable:!0}):r,e));var Ue=(e,t,r,n)=>{for(var i=n>1?void 0:n?wg(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&&qa(t,r,i),i};var zy=v(()=>{var Uy;(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 Sl(Object.create(null))}:u?function(){return Sl({__proto__:null})}:function(){return Sl({})},has:l?function(S,$){return n.call(S,$)}:function(S,$){return $ in S},get:l?function(S,$){return n.call(S,$)?S[$]:void 0}:function(S,$){return S[$]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:h$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:m$(),y=typeof WeakMap=="function"?WeakMap:g$(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=tt(),E=dt(g);function w(S,$,A,N){if(K(A)){if(!qe(S))throw new TypeError;if(!jt($))throw new TypeError;return j(S,$)}else{if(!qe(S))throw new TypeError;if(!Ie($))throw new TypeError;if(!Ie(N)&&!K(N)&&!Tt(N))throw new TypeError;return Tt(N)&&(N=void 0),A=_e(A),D(S,$,A,N)}}o(w,"decorate"),t("decorate",w);function T(S,$){function A(N,Q){if(!Ie(N))throw new TypeError;if(!K(Q)&&!Qi(Q))throw new TypeError;He(S,$,N,Q)}return o(A,"decorator"),A}o(T,"metadata"),t("metadata",T);function I(S,$,A,N){if(!Ie(A))throw new TypeError;return K(N)||(N=_e(N)),He(S,$,A,N)}o(I,"defineMetadata"),t("defineMetadata",I);function C(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),Y(S,$,A)}o(C,"hasMetadata"),t("hasMetadata",C);function ae(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ue(S,$,A)}o(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function J(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ve(S,$,A)}o(J,"getMetadata"),t("getMetadata",J);function Ve(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ge(S,$,A)}o(Ve,"getOwnMetadata"),t("getOwnMetadata",Ve);function $e(S,$){if(!Ie(S))throw new TypeError;return K($)||($=_e($)),kr(S,$)}o($e,"getMetadataKeys"),t("getMetadataKeys",$e);function X(S,$){if(!Ie(S))throw new TypeError;return K($)||($=_e($)),xe(S,$)}o(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function k(S,$,A){if(!Ie($))throw new TypeError;if(K(A)||(A=_e(A)),!Ie($))throw new TypeError;K(A)||(A=_e(A));var N=ss($,A,!1);return K(N)?!1:N.OrdinaryDeleteMetadata(S,$,A)}o(k,"deleteMetadata"),t("deleteMetadata",k);function j(S,$){for(var A=S.length-1;A>=0;--A){var N=S[A],Q=N($);if(!K(Q)&&!Tt(Q)){if(!jt(Q))throw new TypeError;$=Q}}return $}o(j,"DecorateConstructor");function D(S,$,A,N){for(var Q=S.length-1;Q>=0;--Q){var Ye=S[Q],it=Ye($,A,N);if(!K(it)&&!Tt(it)){if(!Ie(it))throw new TypeError;N=it}}return N}o(D,"DecorateProperty");function Y(S,$,A){var N=ue(S,$,A);if(N)return!0;var Q=M($);return Tt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,$,A){var N=ss($,A,!1);return K(N)?!1:Ce(N.OrdinaryHasOwnMetadata(S,$,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,$,A){var N=ue(S,$,A);if(N)return ge(S,$,A);var Q=M($);if(!Tt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,$,A){var N=ss($,A,!1);if(!K(N))return N.OrdinaryGetOwnMetadata(S,$,A)}o(ge,"OrdinaryGetOwnMetadata");function He(S,$,A,N){var Q=ss(A,N,!0);Q.OrdinaryDefineOwnMetadata(S,$,A,N)}o(He,"OrdinaryDefineOwnMetadata");function kr(S,$){var A=xe(S,$),N=M(S);if(N===null)return A;var Q=kr(N,$);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Ye=new h,it=[],de=0,q=A;de<q.length;de++){var L=q[de],H=Ye.has(L);H||(Ye.add(L),it.push(L))}for(var z=0,me=Q;z<me.length;z++){var L=me[z],H=Ye.has(L);H||(Ye.add(L),it.push(L))}return it}o(kr,"OrdinaryMetadataKeys");function xe(S,$){var A=ss(S,$,!1);return A?A.OrdinaryOwnMetadataKeys(S,$):[]}o(xe,"OrdinaryOwnMetadataKeys");function Qt(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(Qt,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Tt(S){return S===null}o(Tt,"IsNull");function re(S){return typeof S=="symbol"}o(re,"IsSymbol");function Ie(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ie,"IsObject");function ee(S,$){switch(Qt(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=$===3?"string":$===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(ee,"ToPrimitive");function Ae(S,$){if($==="string"){var A=S.toString;if(at(A)){var N=A.call(S);if(!Ie(N))return N}var Q=S.valueOf;if(at(Q)){var N=Q.call(S);if(!Ie(N))return N}}else{var Q=S.valueOf;if(at(Q)){var N=Q.call(S);if(!Ie(N))return N}var Ye=S.toString;if(at(Ye)){var N=Ye.call(S);if(!Ie(N))return N}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Ce(S){return!!S}o(Ce,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var $=ee(S,3);return re($)?$:pe($)}o(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(qe,"IsArray");function at(S){return typeof S=="function"}o(at,"IsCallable");function jt(S){return typeof S=="function"}o(jt,"IsConstructor");function Qi(S){switch(Qt(S)){case 3:return!0;case 4:return!0;default:return!1}}o(Qi,"IsPropertyKey");function _(S,$){return S===$||S!==S&&$!==$}o(_,"SameValueZero");function O(S,$){var A=S[$];if(A!=null){if(!at(A))throw new TypeError;return A}}o(O,"GetMethod");function R(S){var $=O(S,a);if(!at($))throw new TypeError;var A=$.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 $=S.next();return $.done?!1:$}o(P,"IteratorStep");function V(S){var $=S.return;$&&$.call(S)}o(V,"IteratorClose");function M(S){var $=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||$!==f)return $;var A=S.prototype,N=A&&Object.getPrototypeOf(A);if(N==null||N===Object.prototype)return $;var Q=N.constructor;return typeof Q!="function"||Q===S?$:Q}o(M,"OrdinaryGetPrototypeOf");function G(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=d$(r.Reflect));var $,A,N,Q=new y,Ye={registerProvider:it,getProvider:q,setProvider:H};return Ye;function it(z){if(!Object.isExtensible(Ye))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case K($):$=z;break;case $===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($)){if($.isProviderFor(z,me))return $;if(!K(A)){if(A.isProviderFor(z,me))return $;if(!K(N))for(var Te=R(N);;){var Qe=P(Te);if(!Qe)return;var mr=x(Qe);if(mr.isProviderFor(z,me))return V(Te),mr}}}if(!K(S)&&S.isProviderFor(z,me))return S}function q(z,me){var Te=Q.get(z),Qe;return K(Te)||(Qe=Te.get(me)),K(Qe)&&(Qe=de(z,me),K(Qe)||(K(Te)&&(Te=new d,Q.set(z,Te)),Te.set(me,Qe))),Qe}function L(z){if(K(z))throw new TypeError;return $===z||A===z||!K(N)&&N.has(z)}function H(z,me,Te){if(!L(Te))throw new Error("Metadata provider not registered.");var Qe=q(z,me);if(Qe!==Te){if(!K(Qe))return!1;var mr=Q.get(z);K(mr)&&(mr=new d,Q.set(z,mr)),mr.set(me,Te)}return!0}}o(G,"CreateMetadataRegistry");function tt(){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(tt,"GetOrCreateMetadataRegistry");function dt(S){var $=new y,A={isProviderFor:o(function(L,H){var z=$.get(L);return K(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:it,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Ye,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:q};return g.registerProvider(A),A;function N(L,H,z){var me=$.get(L),Te=!1;if(K(me)){if(!z)return;me=new d,$.set(L,me),Te=!0}var Qe=me.get(H);if(K(Qe)){if(!z)return;if(Qe=new d,me.set(H,Qe),!S.setProvider(L,H,A))throw me.delete(H),Te&&$.delete(L),new Error("Wrong provider for target.")}return Qe}o(N,"GetOrCreateMetadataMap");function Q(L,H,z){var me=N(H,z,!1);return K(me)?!1:Ce(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Ye(L,H,z){var me=N(H,z,!1);if(!K(me))return me.get(L)}o(Ye,"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(),Qe=R(Te),mr=0;;){var $g=P(Qe);if(!$g)return z.length=mr,z;var y$=x($g);try{z[mr]=y$}catch(b$){try{V(Qe)}finally{throw b$}}mr++}}o(de,"OrdinaryOwnMetadataKeys");function q(L,H,z){var me=N(H,z,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Te=$.get(H);K(Te)||(Te.delete(z),Te.size===0&&$.delete(Te))}return!0}o(q,"OrdinaryDeleteMetadata")}o(dt,"CreateMetadataProvider");function d$(S){var $=S.defineMetadata,A=S.hasOwnMetadata,N=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Ye=S.deleteMetadata,it=new y,de={isProviderFor:o(function(q,L){var H=it.get(q);return!K(H)&&H.has(L)?!0:Q(q,L).length?(K(H)&&(H=new h,it.set(q,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Ye};return de}o(d$,"CreateFallbackProvider");function ss(S,$,A){var N=g.getProvider(S,$);if(!K(N))return N;if(A){if(g.setProvider(S,$,E))return E;throw new Error("Illegal state.")}}o(ss,"GetMetadataProvider");function h$(){var S={},$=[],A=function(){function de(q,L,H){this._index=0,this._keys=q,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 q=this._index;if(q>=0&&q<this._keys.length){var L=this._selector(this._keys[q],this._values[q]);return q+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(q){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),q},de.prototype.return=function(q){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:q,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(q){return this._find(q,!1)>=0},de.prototype.get=function(q){var L=this._find(q,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(q,L){var H=this._find(q,!0);return this._values[H]=L,this},de.prototype.delete=function(q){var L=this._find(q,!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--,_(q,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,Ye)},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(q,L){if(!_(this._cacheKey,q)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],q)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(q),this._values.push(void 0)),this._cacheIndex},de}();return N;function Q(de,q){return de}function Ye(de,q){return q}function it(de,q){return[de,q]}}o(h$,"CreateMapPolyfill");function m$(){var S=function(){function $(){this._map=new d}return o($,"Set"),Object.defineProperty($.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(A){return this._map.has(A)},$.prototype.add=function(A){return this._map.set(A,A),this},$.prototype.delete=function(A){return this._map.delete(A)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return S}o(m$,"CreateSetPolyfill");function g$(){var S=16,$=p.create(),A=N();return function(){function q(){this._key=N()}return o(q,"WeakMap"),q.prototype.has=function(L){var H=Q(L,!1);return H!==void 0?p.has(H,this._key):!1},q.prototype.get=function(L){var H=Q(L,!1);return H!==void 0?p.get(H,this._key):void 0},q.prototype.set=function(L,H){var z=Q(L,!0);return z[this._key]=H,this},q.prototype.delete=function(L){var H=Q(L,!1);return H!==void 0?delete H[this._key]:!1},q.prototype.clear=function(){this._key=N()},q}();function N(){var q;do q="@@WeakMap@@"+de();while(p.has($,q));return $[q]=!0,q}function Q(q,L){if(!n.call(q,A)){if(!L)return;Object.defineProperty(q,A,{value:p.create()})}return q[A]}function Ye(q,L){for(var H=0;H<L;++H)q[H]=Math.random()*255|0;return q}function it(q){if(typeof Uint8Array=="function"){var L=new Uint8Array(q);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ye(L,q),L}return Ye(new Array(q),q)}function de(){var q=it(S);q[6]=q[6]&79|64,q[8]=q[8]&191|128;for(var L="",H=0;H<S;++H){var z=q[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(g$,"CreateWeakMapPolyfill");function Sl(S){return S.__=void 0,delete S.__,S}o(Sl,"MakeDictionary")})})(Uy||(Uy={}))});var Ut=v((Ht,Wy)=>{"use strict";var fc=/^win/.test(process.platform),dw=/\//g,hw=/^(\w{2,}):\/\//i,Zy=Wy.exports,mw=/~1/g,gw=/~0/g,ff=[/\?/g,"%3F",/\#/g,"%23"],pf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ht.parse=require("url").parse;Ht.resolve=require("url").resolve;Ht.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ht.getProtocol=o(function(t){let r=hw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ht.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ht.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ht.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ht.isHttp=o(function(t){let r=Zy.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ht.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Zy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ht.fromFileSystemPath=o(function(t){fc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<ff.length;r+=2)t=t.replace(ff[r],ff[r+1]);return t},"fromFileSystemPath");Ht.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<pf.length;i+=2)t=t.replace(pf[i],pf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),fc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=fc?t:"/"+t)),fc&&!n&&(t=t.replace(dw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ht.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(mw,"/").replace(gw,"~"))},"safePointerToPath")});var pc=v(ys=>{"use strict";var Ky=require("util"),yw=Ut();ys.format=Ky.format;ys.inherits=Ky.inherits;ys.swaggerParamRegExp=/\{([^/}]+)}/g;var bw=["get","post","put","delete","patch","options","head","trace"];function df(e,t){if(e.url&&e.url.startsWith("/")){let r=yw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(df,"fixServers");function vw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>df(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=>df(a,t)):bw.includes(s)&&i[s].servers&&i[s].servers.map(a=>df(a,t))})})}))}o(vw,"fixOasRelativeServers");ys.fixOasRelativeServers=vw});var dc=v(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.getDeepKeys=co.toJSON=void 0;var _w=["function","symbol","undefined"],Sw=["constructor","prototype","__proto__"],Pw=Object.getPrototypeOf({});function Ow(){let e={},t=this;for(let r of Yy(t))if(typeof r=="string"){let n=t[r],i=typeof n;_w.includes(i)||(e[r]=n)}return e}o(Ow,"toJSON");co.toJSON=Ow;function Yy(e,t=[]){let r=[];for(;e&&e!==Pw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Sw))n.delete(i);return n}o(Yy,"getDeepKeys");co.getDeepKeys=Yy});var hf=v(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.addInspectMethod=uo.format=void 0;var Qy=require("util"),Ew=dc(),Jy=Qy.inspect.custom||Symbol.for("nodejs.util.inspect.custom");uo.format=Qy.format;function $w(e){e[Jy]=ww}o($w,"addInspectMethod");uo.addInspectMethod=$w;function ww(){let e={},t=this;for(let r of Ew.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Jy],e}o(ww,"inspect")});var tb=v(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.lazyJoinStacks=Lr.joinStacks=Lr.isWritableStack=Lr.isLazyStack=void 0;var xw=/\r?\n/,Aw=/\bono[ @]/;function Iw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(Iw,"isLazyStack");Lr.isLazyStack=Iw;function Cw(e){return!!(!e||e.writable||typeof e.set=="function")}o(Cw,"isWritableStack");Lr.isWritableStack=Cw;function Xy(e,t){let r=eb(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var O$=Object.create;var Fa=Object.defineProperty;var Ig=Object.getOwnPropertyDescriptor;var P$=Object.getOwnPropertyNames;var E$=Object.getPrototypeOf,$$=Object.prototype.hasOwnProperty;var o=(e,t)=>Fa(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var w$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of P$(t))!$$.call(e,i)&&i!==r&&Fa(e,i,{get:()=>t[i],enumerable:!(n=Ig(t,i))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?O$(E$(e)):{},w$(t||!e||!e.__esModule?Fa(r,"default",{value:e,enumerable:!0}):r,e));var Be=(e,t,r,n)=>{for(var i=n>1?void 0:n?Ig(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&&Fa(t,r,i),i};var Wy=v(()=>{var Zy;(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 $l(Object.create(null))}:u?function(){return $l({__proto__:null})}:function(){return $l({})},has:l?function(S,$){return n.call(S,$)}:function(S,$){return $ in S},get:l?function(S,$){return n.call(S,$)?S[$]:void 0}:function(S,$){return S[$]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:y$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:b$(),y=typeof WeakMap=="function"?WeakMap:v$(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=tt(),E=dt(g);function w(S,$,A,N){if(K(A)){if(!qe(S))throw new TypeError;if(!Rt($))throw new TypeError;return R(S,$)}else{if(!qe(S))throw new TypeError;if(!Ie($))throw new TypeError;if(!Ie(N)&&!K(N)&&!Tt(N))throw new TypeError;return Tt(N)&&(N=void 0),A=_e(A),D(S,$,A,N)}}o(w,"decorate"),t("decorate",w);function T(S,$){function A(N,Q){if(!Ie(N))throw new TypeError;if(!K(Q)&&!Ji(Q))throw new TypeError;ze(S,$,N,Q)}return o(A,"decorator"),A}o(T,"metadata"),t("metadata",T);function I(S,$,A,N){if(!Ie(A))throw new TypeError;return K(N)||(N=_e(N)),ze(S,$,A,N)}o(I,"defineMetadata"),t("defineMetadata",I);function C(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),Y(S,$,A)}o(C,"hasMetadata"),t("hasMetadata",C);function ae(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ue(S,$,A)}o(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function J(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ve(S,$,A)}o(J,"getMetadata"),t("getMetadata",J);function Ve(S,$,A){if(!Ie($))throw new TypeError;return K(A)||(A=_e(A)),ge(S,$,A)}o(Ve,"getOwnMetadata"),t("getOwnMetadata",Ve);function $e(S,$){if(!Ie(S))throw new TypeError;return K($)||($=_e($)),kr(S,$)}o($e,"getMetadataKeys"),t("getMetadataKeys",$e);function X(S,$){if(!Ie(S))throw new TypeError;return K($)||($=_e($)),xe(S,$)}o(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function k(S,$,A){if(!Ie($))throw new TypeError;if(K(A)||(A=_e(A)),!Ie($))throw new TypeError;K(A)||(A=_e(A));var N=cs($,A,!1);return K(N)?!1:N.OrdinaryDeleteMetadata(S,$,A)}o(k,"deleteMetadata"),t("deleteMetadata",k);function R(S,$){for(var A=S.length-1;A>=0;--A){var N=S[A],Q=N($);if(!K(Q)&&!Tt(Q)){if(!Rt(Q))throw new TypeError;$=Q}}return $}o(R,"DecorateConstructor");function D(S,$,A,N){for(var Q=S.length-1;Q>=0;--Q){var Ye=S[Q],it=Ye($,A,N);if(!K(it)&&!Tt(it)){if(!Ie(it))throw new TypeError;N=it}}return N}o(D,"DecorateProperty");function Y(S,$,A){var N=ue(S,$,A);if(N)return!0;var Q=M($);return Tt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,$,A){var N=cs($,A,!1);return K(N)?!1:Ce(N.OrdinaryHasOwnMetadata(S,$,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,$,A){var N=ue(S,$,A);if(N)return ge(S,$,A);var Q=M($);if(!Tt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,$,A){var N=cs($,A,!1);if(!K(N))return N.OrdinaryGetOwnMetadata(S,$,A)}o(ge,"OrdinaryGetOwnMetadata");function ze(S,$,A,N){var Q=cs(A,N,!0);Q.OrdinaryDefineOwnMetadata(S,$,A,N)}o(ze,"OrdinaryDefineOwnMetadata");function kr(S,$){var A=xe(S,$),N=M(S);if(N===null)return A;var Q=kr(N,$);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Ye=new h,it=[],de=0,q=A;de<q.length;de++){var L=q[de],H=Ye.has(L);H||(Ye.add(L),it.push(L))}for(var z=0,me=Q;z<me.length;z++){var L=me[z],H=Ye.has(L);H||(Ye.add(L),it.push(L))}return it}o(kr,"OrdinaryMetadataKeys");function xe(S,$){var A=cs(S,$,!1);return A?A.OrdinaryOwnMetadataKeys(S,$):[]}o(xe,"OrdinaryOwnMetadataKeys");function Qt(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(Qt,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Tt(S){return S===null}o(Tt,"IsNull");function re(S){return typeof S=="symbol"}o(re,"IsSymbol");function Ie(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ie,"IsObject");function ee(S,$){switch(Qt(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=$===3?"string":$===5?"number":"default",N=P(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(ee,"ToPrimitive");function Ae(S,$){if($==="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 Ye=S.toString;if(ct(Ye)){var N=Ye.call(S);if(!Ie(N))return N}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Ce(S){return!!S}o(Ce,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var $=ee(S,3);return re($)?$:pe($)}o(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(qe,"IsArray");function ct(S){return typeof S=="function"}o(ct,"IsCallable");function Rt(S){return typeof S=="function"}o(Rt,"IsConstructor");function Ji(S){switch(Qt(S)){case 3:return!0;case 4:return!0;default:return!1}}o(Ji,"IsPropertyKey");function _(S,$){return S===$||S!==S&&$!==$}o(_,"SameValueZero");function P(S,$){var A=S[$];if(A!=null){if(!ct(A))throw new TypeError;return A}}o(P,"GetMethod");function j(S){var $=P(S,a);if(!ct($))throw new TypeError;var A=$.call(S);if(!Ie(A))throw new TypeError;return A}o(j,"GetIterator");function x(S){return S.value}o(x,"IteratorValue");function O(S){var $=S.next();return $.done?!1:$}o(O,"IteratorStep");function V(S){var $=S.return;$&&$.call(S)}o(V,"IteratorClose");function M(S){var $=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||$!==f)return $;var A=S.prototype,N=A&&Object.getPrototypeOf(A);if(N==null||N===Object.prototype)return $;var Q=N.constructor;return typeof Q!="function"||Q===S?$:Q}o(M,"OrdinaryGetPrototypeOf");function G(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=g$(r.Reflect));var $,A,N,Q=new y,Ye={registerProvider:it,getProvider:q,setProvider:H};return Ye;function it(z){if(!Object.isExtensible(Ye))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case K($):$=z;break;case $===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($)){if($.isProviderFor(z,me))return $;if(!K(A)){if(A.isProviderFor(z,me))return $;if(!K(N))for(var Te=j(N);;){var Qe=O(Te);if(!Qe)return;var mr=x(Qe);if(mr.isProviderFor(z,me))return V(Te),mr}}}if(!K(S)&&S.isProviderFor(z,me))return S}function q(z,me){var Te=Q.get(z),Qe;return K(Te)||(Qe=Te.get(me)),K(Qe)&&(Qe=de(z,me),K(Qe)||(K(Te)&&(Te=new d,Q.set(z,Te)),Te.set(me,Qe))),Qe}function L(z){if(K(z))throw new TypeError;return $===z||A===z||!K(N)&&N.has(z)}function H(z,me,Te){if(!L(Te))throw new Error("Metadata provider not registered.");var Qe=q(z,me);if(Qe!==Te){if(!K(Qe))return!1;var mr=Q.get(z);K(mr)&&(mr=new d,Q.set(z,mr)),mr.set(me,Te)}return!0}}o(G,"CreateMetadataRegistry");function tt(){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(tt,"GetOrCreateMetadataRegistry");function dt(S){var $=new y,A={isProviderFor:o(function(L,H){var z=$.get(L);return K(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:it,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Ye,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:q};return g.registerProvider(A),A;function N(L,H,z){var me=$.get(L),Te=!1;if(K(me)){if(!z)return;me=new d,$.set(L,me),Te=!0}var Qe=me.get(H);if(K(Qe)){if(!z)return;if(Qe=new d,me.set(H,Qe),!S.setProvider(L,H,A))throw me.delete(H),Te&&$.delete(L),new Error("Wrong provider for target.")}return Qe}o(N,"GetOrCreateMetadataMap");function Q(L,H,z){var me=N(H,z,!1);return K(me)?!1:Ce(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Ye(L,H,z){var me=N(H,z,!1);if(!K(me))return me.get(L)}o(Ye,"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(),Qe=j(Te),mr=0;;){var Ag=O(Qe);if(!Ag)return z.length=mr,z;var _$=x(Ag);try{z[mr]=_$}catch(S$){try{V(Qe)}finally{throw S$}}mr++}}o(de,"OrdinaryOwnMetadataKeys");function q(L,H,z){var me=N(H,z,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Te=$.get(H);K(Te)||(Te.delete(z),Te.size===0&&$.delete(Te))}return!0}o(q,"OrdinaryDeleteMetadata")}o(dt,"CreateMetadataProvider");function g$(S){var $=S.defineMetadata,A=S.hasOwnMetadata,N=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Ye=S.deleteMetadata,it=new y,de={isProviderFor:o(function(q,L){var H=it.get(q);return!K(H)&&H.has(L)?!0:Q(q,L).length?(K(H)&&(H=new h,it.set(q,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Ye};return de}o(g$,"CreateFallbackProvider");function cs(S,$,A){var N=g.getProvider(S,$);if(!K(N))return N;if(A){if(g.setProvider(S,$,E))return E;throw new Error("Illegal state.")}}o(cs,"GetMetadataProvider");function y$(){var S={},$=[],A=function(){function de(q,L,H){this._index=0,this._keys=q,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 q=this._index;if(q>=0&&q<this._keys.length){var L=this._selector(this._keys[q],this._values[q]);return q+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(q){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),q},de.prototype.return=function(q){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:q,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(q){return this._find(q,!1)>=0},de.prototype.get=function(q){var L=this._find(q,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(q,L){var H=this._find(q,!0);return this._values[H]=L,this},de.prototype.delete=function(q){var L=this._find(q,!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--,_(q,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,Ye)},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(q,L){if(!_(this._cacheKey,q)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],q)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(q),this._values.push(void 0)),this._cacheIndex},de}();return N;function Q(de,q){return de}function Ye(de,q){return q}function it(de,q){return[de,q]}}o(y$,"CreateMapPolyfill");function b$(){var S=function(){function $(){this._map=new d}return o($,"Set"),Object.defineProperty($.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(A){return this._map.has(A)},$.prototype.add=function(A){return this._map.set(A,A),this},$.prototype.delete=function(A){return this._map.delete(A)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return S}o(b$,"CreateSetPolyfill");function v$(){var S=16,$=p.create(),A=N();return function(){function q(){this._key=N()}return o(q,"WeakMap"),q.prototype.has=function(L){var H=Q(L,!1);return H!==void 0?p.has(H,this._key):!1},q.prototype.get=function(L){var H=Q(L,!1);return H!==void 0?p.get(H,this._key):void 0},q.prototype.set=function(L,H){var z=Q(L,!0);return z[this._key]=H,this},q.prototype.delete=function(L){var H=Q(L,!1);return H!==void 0?delete H[this._key]:!1},q.prototype.clear=function(){this._key=N()},q}();function N(){var q;do q="@@WeakMap@@"+de();while(p.has($,q));return $[q]=!0,q}function Q(q,L){if(!n.call(q,A)){if(!L)return;Object.defineProperty(q,A,{value:p.create()})}return q[A]}function Ye(q,L){for(var H=0;H<L;++H)q[H]=Math.random()*255|0;return q}function it(q){if(typeof Uint8Array=="function"){var L=new Uint8Array(q);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ye(L,q),L}return Ye(new Array(q),q)}function de(){var q=it(S);q[6]=q[6]&79|64,q[8]=q[8]&191|128;for(var L="",H=0;H<S;++H){var z=q[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(v$,"CreateWeakMapPolyfill");function $l(S){return S.__=void 0,delete S.__,S}o($l,"MakeDictionary")})})(Zy||(Zy={}))});var Ut=v((Ht,Qy)=>{"use strict";var hc=/^win/.test(process.platform),gw=/\//g,yw=/^(\w{2,}):\/\//i,Yy=Qy.exports,bw=/~1/g,vw=/~0/g,mf=[/\?/g,"%3F",/\#/g,"%23"],gf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ht.parse=require("url").parse;Ht.resolve=require("url").resolve;Ht.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ht.getProtocol=o(function(t){let r=yw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ht.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ht.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ht.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ht.isHttp=o(function(t){let r=Yy.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ht.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Yy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ht.fromFileSystemPath=o(function(t){hc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<mf.length;r+=2)t=t.replace(mf[r],mf[r+1]);return t},"fromFileSystemPath");Ht.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<gf.length;i+=2)t=t.replace(gf[i],gf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),hc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=hc?t:"/"+t)),hc&&!n&&(t=t.replace(gw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ht.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(bw,"/").replace(vw,"~"))},"safePointerToPath")});var mc=v(vs=>{"use strict";var Jy=require("util"),_w=Ut();vs.format=Jy.format;vs.inherits=Jy.inherits;vs.swaggerParamRegExp=/\{([^/}]+)}/g;var Sw=["get","post","put","delete","patch","options","head","trace"];function yf(e,t){if(e.url&&e.url.startsWith("/")){let r=_w.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(yf,"fixServers");function Ow(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>yf(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=>yf(a,t)):Sw.includes(s)&&i[s].servers&&i[s].servers.map(a=>yf(a,t))})})}))}o(Ow,"fixOasRelativeServers");vs.fixOasRelativeServers=Ow});var gc=v(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.getDeepKeys=uo.toJSON=void 0;var Pw=["function","symbol","undefined"],Ew=["constructor","prototype","__proto__"],$w=Object.getPrototypeOf({});function ww(){let e={},t=this;for(let r of Xy(t))if(typeof r=="string"){let n=t[r],i=typeof n;Pw.includes(i)||(e[r]=n)}return e}o(ww,"toJSON");uo.toJSON=ww;function Xy(e,t=[]){let r=[];for(;e&&e!==$w;)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(Xy,"getDeepKeys");uo.getDeepKeys=Xy});var bf=v(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.addInspectMethod=lo.format=void 0;var eb=require("util"),xw=gc(),tb=eb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");lo.format=eb.format;function Aw(e){e[tb]=Iw}o(Aw,"addInspectMethod");lo.addInspectMethod=Aw;function Iw(){let e={},t=this;for(let r of xw.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[tb],e}o(Iw,"inspect")});var ib=v(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.lazyJoinStacks=Lr.joinStacks=Lr.isWritableStack=Lr.isLazyStack=void 0;var Cw=/\r?\n/,Tw=/\bono[ @]/;function Rw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(Rw,"isLazyStack");Lr.isLazyStack=Rw;function jw(e){return!!(!e||e.writable||typeof e.set=="function")}o(jw,"isWritableStack");Lr.isWritableStack=jw;function rb(e,t){let r=nb(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
- `+n:r||n}o(Xy,"joinStacks");Lr.joinStacks=Xy;function Tw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Xy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):jw(t,e)}o(Tw,"lazyJoinStacks");Lr.lazyJoinStacks=Tw;function eb(e){if(e){let t=e.split(xw),r;for(let n=0;n<t.length;n++){let i=t[n];if(Aw.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(eb,"popStack");function jw(e,t){Object.defineProperty(e,"stack",{get:o(()=>eb(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(jw,"lazyPopStack")});var ib=v(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.extendError=void 0;var rb=hf(),hc=tb(),nb=dc(),Rw=["name","message","stack"];function Nw(e,t,r){let n=e;return kw(n,t),t&&typeof t=="object"&&Mw(n,t),n.toJSON=nb.toJSON,rb.addInspectMethod&&rb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(Nw,"extendError");mc.extendError=Nw;function kw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");hc.isLazyStack(r)?hc.lazyJoinStacks(r,e,t):hc.isWritableStack(r)&&(e.stack=hc.joinStacks(e,t))}o(kw,"extendStack");function Mw(e,t){let r=nb.getDeepKeys(t,Rw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(Mw,"mergeErrors")});var ob=v(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.normalizeArgs=lo.normalizeOptions=void 0;var qw=hf();function Dw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?qw.format:typeof e.format=="function"?e.format:!1}}o(Dw,"normalizeOptions");lo.normalizeOptions=Dw;function Lw(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(Lw,"normalizeArgs");lo.normalizeArgs=Lw});var gf=v(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Ono=void 0;var gc=ib(),sb=ob(),Fw=dc(),Vw=mf;yc.Ono=Vw;function mf(e,t){t=sb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=sb.normalizeArgs(n,t),c=new e(a);return gc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(mf,"Ono");mf.toJSON=o(function(t){return Fw.toJSON.call(t)},"toJSON");mf.extend=o(function(t,r,n){return n||r instanceof Error?gc.extendError(t,r,n):r?gc.extendError(t,void 0,r):gc.extendError(t)},"extend")});var ab=v(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.ono=void 0;var mi=gf(),Bw=Fr;bc.ono=Bw;Fr.error=new mi.Ono(Error);Fr.eval=new mi.Ono(EvalError);Fr.range=new mi.Ono(RangeError);Fr.reference=new mi.Ono(ReferenceError);Fr.syntax=new mi.Ono(SyntaxError);Fr.type=new mi.Ono(TypeError);Fr.uri=new mi.Ono(URIError);var Hw=Fr;function Fr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Hw))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 Fr.error.apply(void 0,e)}o(Fr,"ono")});var ub=v(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var I6=require("util")});var _r=v((vr,fo)=>{"use strict";var Uw=vr&&vr.__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]}),zw=vr&&vr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Uw(t,e,r)};Object.defineProperty(vr,"__esModule",{value:!0});vr.ono=void 0;var lb=ab();Object.defineProperty(vr,"ono",{enumerable:!0,get:o(function(){return lb.ono},"get")});var Gw=gf();Object.defineProperty(vr,"Ono",{enumerable:!0,get:o(function(){return Gw.Ono},"get")});zw(ub(),vr);vr.default=lb.ono;typeof fo=="object"&&typeof fo.exports=="object"&&(fo.exports=Object.assign(fo.exports.default,fo.exports))});var _s=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 vf=class vf{};o(vf,"_CodeOrName");var bs=vf;Se._CodeOrName=bs;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _f=class _f extends bs{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(_f,"Name");var gi=_f;Se.Name=gi;var Sf=class Sf extends bs{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(Sf,"_Code");var or=Sf;Se._Code=or;Se.nil=new or("");function fb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bf(r,t[n]),r.push(e[++n]);return new or(r)}o(fb,"_");Se._=fb;var yf=new or("+");function pb(e,...t){let r=[vs(e[0])],n=0;for(;n<t.length;)r.push(yf),bf(r,t[n]),r.push(yf,vs(e[++n]));return Zw(r),new or(r)}o(pb,"str");Se.str=pb;function bf(e,t){t instanceof or?e.push(...t._items):t instanceof gi?e.push(t):e.push(Yw(t))}o(bf,"addCodeArg");Se.addCodeArg=bf;function Zw(e){let t=1;for(;t<e.length-1;){if(e[t]===yf){let r=Ww(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Zw,"optimize");function Ww(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(Ww,"mergeExprItems");function Kw(e,t){return t.emptyStr()?e:e.emptyStr()?t:pb`${e}${t}`}o(Kw,"strConcat");Se.strConcat=Kw;function Yw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:vs(Array.isArray(e)?e.join(","):e)}o(Yw,"interpolate");function Qw(e){return new or(vs(e))}o(Qw,"stringify");Se.stringify=Qw;function vs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(vs,"safeStringify");Se.safeStringify=vs;function Jw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new or(`.${e}`):fb`[${e}]`}o(Jw,"getProperty");Se.getProperty=Jw;function Xw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new or(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(Xw,"getEsmExportName");Se.getEsmExportName=Xw;function ex(e){return new or(e.toString())}o(ex,"regexpCode");Se.regexpCode=ex});var Af=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.ValueScope=Nt.ValueScopeName=Nt.Scope=Nt.varKinds=Nt.UsedValueState=void 0;var Rt=_s(),Ef=class Ef extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Ef,"ValueError");var Pf=Ef,vc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(vc||(Nt.UsedValueState=vc={}));Nt.varKinds={const:new Rt.Name("const"),let:new Rt.Name("let"),var:new Rt.Name("var")};var $f=class $f{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($f,"Scope");var _c=$f;Nt.Scope=_c;var wf=class wf 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(wf,"ValueScopeName");var Sc=wf;Nt.ValueScopeName=Sc;var tx=(0,Rt._)`\n`,xf=class xf extends _c{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?tx:Rt.nil}}get(){return this._scope}name(t){return new Sc(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,vc.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 Pf(l);u.set(l,vc.Completed)})}return s}};o(xf,"ValueScope");var Of=xf;Nt.ValueScope=Of});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=_s(),Sr=Af(),En=_s();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return En._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return En.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return En.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return En.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return En.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return En.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return En.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return En.Name},"get")});var $c=Af();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return $c.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return $c.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return $c.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return $c.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 Vf=class Vf{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(Vf,"Node");var on=Vf,Bf=class Bf extends on{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Sr.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=mo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(Bf,"Def");var If=Bf,Hf=class Hf extends on{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=mo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Ec(t,this.rhs)}};o(Hf,"Assign");var Pc=Hf,Uf=class Uf extends Pc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Uf,"AssignOp");var Cf=Uf,zf=class zf extends on{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(zf,"Label");var Tf=zf,Gf=class Gf extends on{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Gf,"Break");var jf=Gf,Zf=class Zf extends on{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Zf,"Throw");var Rf=Zf,Wf=class Wf extends on{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=mo(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(Wf,"AnyCode");var Nf=Wf,Kf=class Kf extends on{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)||(rx(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(Kf,"ParentNode");var Ss=Kf,Yf=class Yf extends Ss{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Yf,"BlockNode");var sn=Yf,Qf=class Qf extends Ss{};o(Qf,"Root");var kf=Qf,Jf=class Jf extends sn{};o(Jf,"Else");var ho=Jf;ho.kind="else";var po=class po extends sn{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 ho(n):n}if(r)return t===!1?r instanceof po?r:r.nodes:this.nodes.length?this:new po(db(t),r instanceof po?[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=mo(this.condition,t,r),this}get names(){let t=super.names;return Ec(t,this.condition),this.else&&vi(t,this.else.names),t}};o(po,"If");var yi=po;yi.kind="if";var Xf=class Xf extends sn{};o(Xf,"For");var bi=Xf;bi.kind="for";var ep=class ep 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=mo(this.iteration,t,r),this}get names(){return vi(super.names,this.iteration.names)}};o(ep,"ForLoop");var Mf=ep,tp=class tp 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?Sr.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=Ec(super.names,this.from);return Ec(t,this.to)}};o(tp,"ForRange");var qf=tp,rp=class rp 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=mo(this.iterable,t,r),this}get names(){return vi(super.names,this.iterable.names)}};o(rp,"ForIter");var Oc=rp,np=class np extends sn{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(np,"Func");var Ps=np;Ps.kind="func";var ip=class ip extends Ss{render(t){return"return "+super.render(t)}};o(ip,"Return");var Os=ip;Os.kind="return";var op=class op extends sn{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(op,"Try");var Df=op,sp=class sp extends sn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(sp,"Catch");var Es=sp;Es.kind="catch";var ap=class ap extends sn{render(t){return"finally"+super.render(t)}};o(ap,"Finally");var $s=ap;$s.kind="finally";var cp=class cp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new Sr.Scope({parent:t}),this._nodes=[new kf]}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 If(t,s,n)),s}const(t,r,n){return this._def(Sr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Sr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Sr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Pc(t,r,n))}add(t,r){return this._leafNode(new Cf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Nf(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 ho)}endIf(){return this._endBlockNode(yi,ho)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Mf(t),r)}forRange(t,r,n,i,s=this.opts.es5?Sr.varKinds.var:Sr.varKinds.let){let a=this._scope.toName(t);return this._for(new qf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Sr.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 Oc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Sr.varKinds.var:Sr.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 Oc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(bi)}label(t){return this._leafNode(new Tf(t))}break(t){return this._leafNode(new jf(t))}return(t){let r=new Os;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Os)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Df;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Es(s),r(s)}return n&&(this._currNode=i.finally=new $s,this.code(n)),this._endBlockNode(Es,$s)}throw(t){return this._leafNode(new Rf(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 Ps(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ps)}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(cp,"CodeGen");var Lf=cp;le.CodeGen=Lf;function vi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(vi,"addNames");function Ec(e,t){return t instanceof ye._CodeOrName?vi(e,t.names):e}o(Ec,"addExprNames");function mo(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(mo,"optimizeExpr");function rx(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(rx,"subtractNames");function db(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Ff(e)}`}o(db,"not");le.not=db;var nx=hb(le.operators.AND);function ix(...e){return e.reduce(nx)}o(ix,"and");le.and=ix;var ox=hb(le.operators.OR);function sx(...e){return e.reduce(ox)}o(sx,"or");le.or=sx;function hb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Ff(t)} ${e} ${Ff(r)}`}o(hb,"mappend");function Ff(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Ff,"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 we=se(),ax=_s();function cx(e){let t={};for(let r of e)t[r]=!0;return t}o(cx,"toHash");fe.toHash=cx;function ux(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(yb(e,t),!bb(t,e.self.RULES.all))}o(ux,"alwaysValidSchema");fe.alwaysValidSchema=ux;function yb(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]||Sb(e,`unknown keyword: "${s}"`)}o(yb,"checkUnknownRules");fe.checkUnknownRules=yb;function bb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(bb,"schemaHasRules");fe.schemaHasRules=bb;function lx(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(lx,"schemaHasRulesButRef");fe.schemaHasRulesButRef=lx;function fx({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(n)}`}o(fx,"schemaRefOrVal");fe.schemaRefOrVal=fx;function px(e){return vb(decodeURIComponent(e))}o(px,"unescapeFragment");fe.unescapeFragment=px;function dx(e){return encodeURIComponent(lp(e))}o(dx,"escapeFragment");fe.escapeFragment=dx;function lp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(lp,"escapeJsonPointer");fe.escapeJsonPointer=lp;function vb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(vb,"unescapeJsonPointer");fe.unescapeJsonPointer=vb;function hx(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(hx,"eachItem");fe.eachItem=hx;function mb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof we.Name?(s instanceof we.Name?e(i,s,a):t(i,s,a),a):s instanceof we.Name?(t(i,a,s),s):r(s,a);return c===we.Name&&!(u instanceof we.Name)?n(i,u):u}}o(mb,"makeMergeEvaluated");fe.mergeEvaluated={props:mb({mergeNames:o((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),fp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:_b}),items:mb({mergeNames:o((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${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 _b(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&fp(e,r,t),r}o(_b,"evaluatedPropsToName");fe.evaluatedPropsToName=_b;function fp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,we._)`${t}${(0,we.getProperty)(n)}`,!0))}o(fp,"setEvaluated");fe.setEvaluated=fp;var gb={};function mx(e,t){return e.scopeValue("func",{ref:t,code:gb[t.code]||(gb[t.code]=new ax._Code(t.code))})}o(mx,"useFunc");fe.useFunc=mx;var up;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(up||(fe.Type=up={}));function gx(e,t,r){if(e instanceof we.Name){let n=t===up.Num;return r?n?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:n?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+lp(e)}o(gx,"getErrorPath");fe.getErrorPath=gx;function Sb(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(Sb,"checkStrictMode");fe.checkStrictMode=Sb});var sr=v(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var bt=se(),yx={data:new bt.Name("data"),valCxt:new bt.Name("valCxt"),instancePath:new bt.Name("instancePath"),parentData:new bt.Name("parentData"),parentDataProperty:new bt.Name("parentDataProperty"),rootData:new bt.Name("rootData"),dynamicAnchors:new bt.Name("dynamicAnchors"),vErrors:new bt.Name("vErrors"),errors:new bt.Name("errors"),this:new bt.Name("this"),self:new bt.Name("self"),scope:new bt.Name("scope"),json:new bt.Name("json"),jsonPos:new bt.Name("jsonPos"),jsonLen:new bt.Name("jsonLen"),jsonPart:new bt.Name("jsonPart")};pp.default=yx});var ws=v(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.extendErrors=vt.resetErrorsCount=vt.reportExtraError=vt.reportError=vt.keyword$DataError=vt.keywordError=void 0;var be=se(),wc=he(),wt=sr();vt.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};vt.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 bx(e,t=vt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=Eb(e,t,r);n??(a||c)?Pb(s,u):Ob(i,(0,be._)`[${u}]`)}o(bx,"reportError");vt.reportError=bx;function vx(e,t=vt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=Eb(e,t,r);Pb(i,c),s||a||Ob(n,wt.default.vErrors)}o(vx,"reportExtraError");vt.reportExtraError=vx;function _x(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(_x,"resetErrorsCount");vt.resetErrorsCount=_x;function Sx({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(Sx,"extendErrors");vt.extendErrors=Sx;function Pb(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(Pb,"addError");function Ob(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(Ob,"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 Eb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:Px(e,t,r)}o(Eb,"errorObjectCode");function Px(e,t,r={}){let{gen:n,it:i}=e,s=[Ox(i,r),Ex(e,r)];return $x(e,t,s),n.object(...s)}o(Px,"errorObject");function Ox({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,wc.getErrorPath)(t,wc.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}o(Ox,"errorInstancePath");function Ex({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,wc.getErrorPath)(r,wc.Type.Str)}`),[_i.schemaPath,i]}o(Ex,"errorSchemaPath");function $x(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}`],[wt.default.data,s]),l&&n.push([_i.propertyName,l])}o($x,"extraErrorProps")});var wb=v(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.boolOrEmptySchema=go.topBoolOrEmptySchema=void 0;var wx=ws(),xx=se(),Ax=sr(),Ix={message:"boolean schema is false"};function Cx(e){let{gen:t,schema:r,validateName:n}=e;r===!1?$b(e,!1):typeof r=="object"&&r.$async===!0?t.return(Ax.default.data):(t.assign((0,xx._)`${n}.errors`,null),t.return(!0))}o(Cx,"topBoolOrEmptySchema");go.topBoolOrEmptySchema=Cx;function Tx(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),$b(e)):r.var(t,!0)}o(Tx,"boolOrEmptySchema");go.boolOrEmptySchema=Tx;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,wx.reportError)(i,Ix,void 0,t)}o($b,"falseSchemaError")});var dp=v(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.getRules=yo.isJSONType=void 0;var jx=["string","number","integer","boolean","null","object","array"],Rx=new Set(jx);function Nx(e){return typeof e=="string"&&Rx.has(e)}o(Nx,"isJSONType");yo.isJSONType=Nx;function kx(){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(kx,"getRules");yo.getRules=kx});var hp=v($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.shouldUseRule=$n.shouldUseGroup=$n.schemaHasRulesForType=void 0;function Mx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&xb(e,n)}o(Mx,"schemaHasRulesForType");$n.schemaHasRulesForType=Mx;function xb(e,t){return t.rules.some(r=>Ab(e,r))}o(xb,"shouldUseGroup");$n.shouldUseGroup=xb;function Ab(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(Ab,"shouldUseRule");$n.shouldUseRule=Ab});var xs=v(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.reportTypeError=_t.checkDataTypes=_t.checkDataType=_t.coerceAndCheckDataType=_t.getJSONTypes=_t.getSchemaTypes=_t.DataType=void 0;var qx=dp(),Dx=hp(),Lx=ws(),ce=se(),Ib=he(),bo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(bo||(_t.DataType=bo={}));function Fx(e){let t=Cb(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(Fx,"getSchemaTypes");_t.getSchemaTypes=Fx;function Cb(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(qx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Cb,"getJSONTypes");_t.getJSONTypes=Cb;function Vx(e,t){let{gen:r,data:n,opts:i}=e,s=Bx(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,Dx.schemaHasRulesForType)(e,t[0]));if(a){let c=gp(t,n,i.strictNumbers,bo.Wrong);r.if(c,()=>{s.length?Hx(e,t,s):yp(e)})}return a}o(Vx,"coerceAndCheckDataType");_t.coerceAndCheckDataType=Vx;var Tb=new Set(["string","number","integer","boolean","null"]);function Bx(e,t){return t?e.filter(r=>Tb.has(r)||t==="array"&&r==="array"):[]}o(Bx,"coerceToTypes");function Hx(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(gp(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(Tb.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),yp(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),Ux(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
4
+ `+n:r||n}o(rb,"joinStacks");Lr.joinStacks=rb;function Nw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return rb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):kw(t,e)}o(Nw,"lazyJoinStacks");Lr.lazyJoinStacks=Nw;function nb(e){if(e){let t=e.split(Cw),r;for(let n=0;n<t.length;n++){let i=t[n];if(Tw.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(nb,"popStack");function kw(e,t){Object.defineProperty(e,"stack",{get:o(()=>nb(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(kw,"lazyPopStack")});var ab=v(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.extendError=void 0;var ob=bf(),yc=ib(),sb=gc(),Mw=["name","message","stack"];function qw(e,t,r){let n=e;return Dw(n,t),t&&typeof t=="object"&&Lw(n,t),n.toJSON=sb.toJSON,ob.addInspectMethod&&ob.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(qw,"extendError");bc.extendError=qw;function Dw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");yc.isLazyStack(r)?yc.lazyJoinStacks(r,e,t):yc.isWritableStack(r)&&(e.stack=yc.joinStacks(e,t))}o(Dw,"extendStack");function Lw(e,t){let r=sb.getDeepKeys(t,Mw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(Lw,"mergeErrors")});var cb=v(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.normalizeArgs=fo.normalizeOptions=void 0;var Fw=bf();function Vw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?Fw.format:typeof e.format=="function"?e.format:!1}}o(Vw,"normalizeOptions");fo.normalizeOptions=Vw;function Bw(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(Bw,"normalizeArgs");fo.normalizeArgs=Bw});var _f=v(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.Ono=void 0;var vc=ab(),ub=cb(),Hw=gc(),Uw=vf;_c.Ono=Uw;function vf(e,t){t=ub.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=ub.normalizeArgs(n,t),c=new e(a);return vc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(vf,"Ono");vf.toJSON=o(function(t){return Hw.toJSON.call(t)},"toJSON");vf.extend=o(function(t,r,n){return n||r instanceof Error?vc.extendError(t,r,n):r?vc.extendError(t,void 0,r):vc.extendError(t)},"extend")});var lb=v(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.ono=void 0;var mi=_f(),zw=Fr;Sc.ono=zw;Fr.error=new mi.Ono(Error);Fr.eval=new mi.Ono(EvalError);Fr.range=new mi.Ono(RangeError);Fr.reference=new mi.Ono(ReferenceError);Fr.syntax=new mi.Ono(SyntaxError);Fr.type=new mi.Ono(TypeError);Fr.uri=new mi.Ono(URIError);var Gw=Fr;function Fr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Gw))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 Fr.error.apply(void 0,e)}o(Fr,"ono")});var pb=v(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0});var R6=require("util")});var _r=v((vr,po)=>{"use strict";var Zw=vr&&vr.__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]}),Ww=vr&&vr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Zw(t,e,r)};Object.defineProperty(vr,"__esModule",{value:!0});vr.ono=void 0;var db=lb();Object.defineProperty(vr,"ono",{enumerable:!0,get:o(function(){return db.ono},"get")});var Kw=_f();Object.defineProperty(vr,"Ono",{enumerable:!0,get:o(function(){return Kw.Ono},"get")});Ww(pb(),vr);vr.default=db.ono;typeof po=="object"&&typeof po.exports=="object"&&(po.exports=Object.assign(po.exports.default,po.exports))});var Os=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 Pf=class Pf{};o(Pf,"_CodeOrName");var _s=Pf;Se._CodeOrName=_s;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ef=class Ef extends _s{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(Ef,"Name");var gi=Ef;Se.Name=gi;var $f=class $f extends _s{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($f,"_Code");var or=$f;Se._Code=or;Se.nil=new or("");function hb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Of(r,t[n]),r.push(e[++n]);return new or(r)}o(hb,"_");Se._=hb;var Sf=new or("+");function mb(e,...t){let r=[Ss(e[0])],n=0;for(;n<t.length;)r.push(Sf),Of(r,t[n]),r.push(Sf,Ss(e[++n]));return Yw(r),new or(r)}o(mb,"str");Se.str=mb;function Of(e,t){t instanceof or?e.push(...t._items):t instanceof gi?e.push(t):e.push(Xw(t))}o(Of,"addCodeArg");Se.addCodeArg=Of;function Yw(e){let t=1;for(;t<e.length-1;){if(e[t]===Sf){let r=Qw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Yw,"optimize");function Qw(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(Qw,"mergeExprItems");function Jw(e,t){return t.emptyStr()?e:e.emptyStr()?t:mb`${e}${t}`}o(Jw,"strConcat");Se.strConcat=Jw;function Xw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ss(Array.isArray(e)?e.join(","):e)}o(Xw,"interpolate");function ex(e){return new or(Ss(e))}o(ex,"stringify");Se.stringify=ex;function Ss(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Ss,"safeStringify");Se.safeStringify=Ss;function tx(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new or(`.${e}`):hb`[${e}]`}o(tx,"getProperty");Se.getProperty=tx;function rx(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new or(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(rx,"getEsmExportName");Se.getEsmExportName=rx;function nx(e){return new or(e.toString())}o(nx,"regexpCode");Se.regexpCode=nx});var Rf=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.ValueScope=Nt.ValueScopeName=Nt.Scope=Nt.varKinds=Nt.UsedValueState=void 0;var jt=Os(),Af=class Af extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Af,"ValueError");var wf=Af,Oc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Oc||(Nt.UsedValueState=Oc={}));Nt.varKinds={const:new jt.Name("const"),let:new jt.Name("let"),var:new jt.Name("var")};var If=class If{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof jt.Name?t:this.name(t)}name(t){return new jt.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(If,"Scope");var Pc=If;Nt.Scope=Pc;var Cf=class Cf extends jt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,jt._)`.${new jt.Name(r)}[${n}]`}};o(Cf,"ValueScopeName");var Ec=Cf;Nt.ValueScopeName=Ec;var ix=(0,jt._)`\n`,Tf=class Tf extends Pc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?ix:jt.nil}}get(){return this._scope}name(t){return new Ec(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,jt._)`${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=jt.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,Oc.Started);let p=r(l);if(p){let f=this.opts.es5?Nt.varKinds.var:Nt.varKinds.const;s=(0,jt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,jt._)`${s}${p}${this.opts._n}`;else throw new wf(l);u.set(l,Oc.Completed)})}return s}};o(Tf,"ValueScope");var xf=Tf;Nt.ValueScope=xf});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=Os(),Sr=Rf(),En=Os();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return En._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return En.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return En.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return En.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return En.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return En.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return En.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return En.Name},"get")});var Ac=Rf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return Ac.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return Ac.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return Ac.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return Ac.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 zf=class zf{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(zf,"Node");var on=zf,Gf=class Gf extends on{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Sr.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=go(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(Gf,"Def");var jf=Gf,Zf=class Zf extends on{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=go(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return xc(t,this.rhs)}};o(Zf,"Assign");var $c=Zf,Wf=class Wf extends $c{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Wf,"AssignOp");var Nf=Wf,Kf=class Kf extends on{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Kf,"Label");var kf=Kf,Yf=class Yf extends on{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Yf,"Break");var Mf=Yf,Qf=class Qf extends on{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Qf,"Throw");var qf=Qf,Jf=class Jf extends on{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=go(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(Jf,"AnyCode");var Df=Jf,Xf=class Xf extends on{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)||(ox(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(Xf,"ParentNode");var Ps=Xf,ep=class ep extends Ps{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(ep,"BlockNode");var sn=ep,tp=class tp extends Ps{};o(tp,"Root");var Lf=tp,rp=class rp extends sn{};o(rp,"Else");var mo=rp;mo.kind="else";var ho=class ho extends sn{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 mo(n):n}if(r)return t===!1?r instanceof ho?r:r.nodes:this.nodes.length?this:new ho(gb(t),r instanceof ho?[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=go(this.condition,t,r),this}get names(){let t=super.names;return xc(t,this.condition),this.else&&vi(t,this.else.names),t}};o(ho,"If");var yi=ho;yi.kind="if";var np=class np extends sn{};o(np,"For");var bi=np;bi.kind="for";var ip=class ip 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=go(this.iteration,t,r),this}get names(){return vi(super.names,this.iteration.names)}};o(ip,"ForLoop");var Ff=ip,op=class op 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?Sr.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=xc(super.names,this.from);return xc(t,this.to)}};o(op,"ForRange");var Vf=op,sp=class sp 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=go(this.iterable,t,r),this}get names(){return vi(super.names,this.iterable.names)}};o(sp,"ForIter");var wc=sp,ap=class ap extends sn{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(ap,"Func");var Es=ap;Es.kind="func";var cp=class cp extends Ps{render(t){return"return "+super.render(t)}};o(cp,"Return");var $s=cp;$s.kind="return";var up=class up extends sn{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(up,"Try");var Bf=up,lp=class lp extends sn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(lp,"Catch");var ws=lp;ws.kind="catch";var fp=class fp extends sn{render(t){return"finally"+super.render(t)}};o(fp,"Finally");var xs=fp;xs.kind="finally";var pp=class pp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
+ `:""},this._extScope=t,this._scope=new Sr.Scope({parent:t}),this._nodes=[new Lf]}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 jf(t,s,n)),s}const(t,r,n){return this._def(Sr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Sr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Sr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new $c(t,r,n))}add(t,r){return this._leafNode(new Nf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Df(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 mo)}endIf(){return this._endBlockNode(yi,mo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ff(t),r)}forRange(t,r,n,i,s=this.opts.es5?Sr.varKinds.var:Sr.varKinds.let){let a=this._scope.toName(t);return this._for(new Vf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Sr.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 wc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Sr.varKinds.var:Sr.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 wc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(bi)}label(t){return this._leafNode(new kf(t))}break(t){return this._leafNode(new Mf(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 Bf;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new ws(s),r(s)}return n&&(this._currNode=i.finally=new xs,this.code(n)),this._endBlockNode(ws,xs)}throw(t){return this._leafNode(new qf(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 Es(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Es)}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(pp,"CodeGen");var Hf=pp;le.CodeGen=Hf;function vi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(vi,"addNames");function xc(e,t){return t instanceof ye._CodeOrName?vi(e,t.names):e}o(xc,"addExprNames");function go(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(go,"optimizeExpr");function ox(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(ox,"subtractNames");function gb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Uf(e)}`}o(gb,"not");le.not=gb;var sx=yb(le.operators.AND);function ax(...e){return e.reduce(sx)}o(ax,"and");le.and=ax;var cx=yb(le.operators.OR);function ux(...e){return e.reduce(cx)}o(ux,"or");le.or=ux;function yb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Uf(t)} ${e} ${Uf(r)}`}o(yb,"mappend");function Uf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Uf,"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 we=se(),lx=Os();function fx(e){let t={};for(let r of e)t[r]=!0;return t}o(fx,"toHash");fe.toHash=fx;function px(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(_b(e,t),!Sb(t,e.self.RULES.all))}o(px,"alwaysValidSchema");fe.alwaysValidSchema=px;function _b(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]||Eb(e,`unknown keyword: "${s}"`)}o(_b,"checkUnknownRules");fe.checkUnknownRules=_b;function Sb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Sb,"schemaHasRules");fe.schemaHasRules=Sb;function dx(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(dx,"schemaHasRulesButRef");fe.schemaHasRulesButRef=dx;function hx({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(n)}`}o(hx,"schemaRefOrVal");fe.schemaRefOrVal=hx;function mx(e){return Ob(decodeURIComponent(e))}o(mx,"unescapeFragment");fe.unescapeFragment=mx;function gx(e){return encodeURIComponent(hp(e))}o(gx,"escapeFragment");fe.escapeFragment=gx;function hp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(hp,"escapeJsonPointer");fe.escapeJsonPointer=hp;function Ob(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Ob,"unescapeJsonPointer");fe.unescapeJsonPointer=Ob;function yx(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(yx,"eachItem");fe.eachItem=yx;function bb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof we.Name?(s instanceof we.Name?e(i,s,a):t(i,s,a),a):s instanceof we.Name?(t(i,a,s),s):r(s,a);return c===we.Name&&!(u instanceof we.Name)?n(i,u):u}}o(bb,"makeMergeEvaluated");fe.mergeEvaluated={props:bb({mergeNames:o((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),mp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Pb}),items:bb({mergeNames:o((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${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 Pb(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&mp(e,r,t),r}o(Pb,"evaluatedPropsToName");fe.evaluatedPropsToName=Pb;function mp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,we._)`${t}${(0,we.getProperty)(n)}`,!0))}o(mp,"setEvaluated");fe.setEvaluated=mp;var vb={};function bx(e,t){return e.scopeValue("func",{ref:t,code:vb[t.code]||(vb[t.code]=new lx._Code(t.code))})}o(bx,"useFunc");fe.useFunc=bx;var dp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(dp||(fe.Type=dp={}));function vx(e,t,r){if(e instanceof we.Name){let n=t===dp.Num;return r?n?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:n?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+hp(e)}o(vx,"getErrorPath");fe.getErrorPath=vx;function Eb(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(Eb,"checkStrictMode");fe.checkStrictMode=Eb});var sr=v(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var bt=se(),_x={data:new bt.Name("data"),valCxt:new bt.Name("valCxt"),instancePath:new bt.Name("instancePath"),parentData:new bt.Name("parentData"),parentDataProperty:new bt.Name("parentDataProperty"),rootData:new bt.Name("rootData"),dynamicAnchors:new bt.Name("dynamicAnchors"),vErrors:new bt.Name("vErrors"),errors:new bt.Name("errors"),this:new bt.Name("this"),self:new bt.Name("self"),scope:new bt.Name("scope"),json:new bt.Name("json"),jsonPos:new bt.Name("jsonPos"),jsonLen:new bt.Name("jsonLen"),jsonPart:new bt.Name("jsonPart")};gp.default=_x});var As=v(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.extendErrors=vt.resetErrorsCount=vt.reportExtraError=vt.reportError=vt.keyword$DataError=vt.keywordError=void 0;var be=se(),Ic=he(),wt=sr();vt.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};vt.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 Sx(e,t=vt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=xb(e,t,r);n??(a||c)?$b(s,u):wb(i,(0,be._)`[${u}]`)}o(Sx,"reportError");vt.reportError=Sx;function Ox(e,t=vt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=xb(e,t,r);$b(i,c),s||a||wb(n,wt.default.vErrors)}o(Ox,"reportExtraError");vt.reportExtraError=Ox;function Px(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(Px,"resetErrorsCount");vt.resetErrorsCount=Px;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,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(Ex,"extendErrors");vt.extendErrors=Ex;function $b(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($b,"addError");function wb(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(wb,"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 xb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:$x(e,t,r)}o(xb,"errorObjectCode");function $x(e,t,r={}){let{gen:n,it:i}=e,s=[wx(i,r),xx(e,r)];return Ax(e,t,s),n.object(...s)}o($x,"errorObject");function wx({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Ic.getErrorPath)(t,Ic.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}o(wx,"errorInstancePath");function xx({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,Ic.getErrorPath)(r,Ic.Type.Str)}`),[_i.schemaPath,i]}o(xx,"errorSchemaPath");function Ax(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}`],[wt.default.data,s]),l&&n.push([_i.propertyName,l])}o(Ax,"extraErrorProps")});var Ib=v(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.boolOrEmptySchema=yo.topBoolOrEmptySchema=void 0;var Ix=As(),Cx=se(),Tx=sr(),Rx={message:"boolean schema is false"};function jx(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Ab(e,!1):typeof r=="object"&&r.$async===!0?t.return(Tx.default.data):(t.assign((0,Cx._)`${n}.errors`,null),t.return(!0))}o(jx,"topBoolOrEmptySchema");yo.topBoolOrEmptySchema=jx;function Nx(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Ab(e)):r.var(t,!0)}o(Nx,"boolOrEmptySchema");yo.boolOrEmptySchema=Nx;function Ab(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,Ix.reportError)(i,Rx,void 0,t)}o(Ab,"falseSchemaError")});var yp=v(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.getRules=bo.isJSONType=void 0;var kx=["string","number","integer","boolean","null","object","array"],Mx=new Set(kx);function qx(e){return typeof e=="string"&&Mx.has(e)}o(qx,"isJSONType");bo.isJSONType=qx;function Dx(){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(Dx,"getRules");bo.getRules=Dx});var bp=v($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.shouldUseRule=$n.shouldUseGroup=$n.schemaHasRulesForType=void 0;function Lx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Cb(e,n)}o(Lx,"schemaHasRulesForType");$n.schemaHasRulesForType=Lx;function Cb(e,t){return t.rules.some(r=>Tb(e,r))}o(Cb,"shouldUseGroup");$n.shouldUseGroup=Cb;function Tb(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(Tb,"shouldUseRule");$n.shouldUseRule=Tb});var Is=v(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.reportTypeError=_t.checkDataTypes=_t.checkDataType=_t.coerceAndCheckDataType=_t.getJSONTypes=_t.getSchemaTypes=_t.DataType=void 0;var Fx=yp(),Vx=bp(),Bx=As(),ce=se(),Rb=he(),vo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(vo||(_t.DataType=vo={}));function Hx(e){let t=jb(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(Hx,"getSchemaTypes");_t.getSchemaTypes=Hx;function jb(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Fx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(jb,"getJSONTypes");_t.getJSONTypes=jb;function Ux(e,t){let{gen:r,data:n,opts:i}=e,s=zx(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,Vx.schemaHasRulesForType)(e,t[0]));if(a){let c=_p(t,n,i.strictNumbers,vo.Wrong);r.if(c,()=>{s.length?Gx(e,t,s):Sp(e)})}return a}o(Ux,"coerceAndCheckDataType");_t.coerceAndCheckDataType=Ux;var Nb=new Set(["string","number","integer","boolean","null"]);function zx(e,t){return t?e.filter(r=>Nb.has(r)||t==="array"&&r==="array"):[]}o(zx,"coerceToTypes");function Gx(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(_p(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(Nb.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Sp(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),Zx(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
8
8
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${a} === "boolean" || ${i} === null
9
9
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ce._)`+${i}`);return;case"boolean":n.elseIf((0,ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ce._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ce._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(Hx,"coerceData");function Ux({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(Ux,"assignParentData");function mp(e,t,r,n=bo.Correct){let i=n===bo.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===bo.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(mp,"checkDataType");_t.checkDataType=mp;function gp(e,t,r,n){if(e.length===1)return mp(e[0],t,r,n);let i,s=(0,Ib.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,mp(a,t,r,n));return i}o(gp,"checkDataTypes");_t.checkDataTypes=gp;var zx={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function yp(e){let t=Gx(e);(0,Lx.reportError)(t,zx)}o(yp,"reportTypeError");_t.reportTypeError=yp;function Gx(e){let{gen:t,data:r,schema:n}=e,i=(0,Ib.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(Gx,"getTypeErrorContext")});var Rb=v(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.assignDefaults=void 0;var vo=se(),Zx=he();function Wx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)jb(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>jb(e,s,i.default))}o(Wx,"assignDefaults");xc.assignDefaults=Wx;function jb(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,vo._)`${s}${(0,vo.getProperty)(t)}`;if(i){(0,Zx.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,vo._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,vo._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,vo._)`${c} = ${(0,vo.stringify)(r)}`)}o(jb,"assignDefault")});var ar=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 Ne=se(),bp=he(),wn=sr(),Kx=he();function Yx(e,t){let{gen:r,data:n,it:i}=e;r.if(_p(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}o(Yx,"checkReportMissingProp");Ee.checkReportMissingProp=Yx;function Qx({gen:e,data:t,it:{opts:r}},n,i){return(0,Ne.or)(...n.map(s=>(0,Ne.and)(_p(e,t,s,r.ownProperties),(0,Ne._)`${i} = ${s}`)))}o(Qx,"checkMissingProp");Ee.checkMissingProp=Qx;function Jx(e,t){e.setParams({missingProperty:t},!0),e.error()}o(Jx,"reportMissingProp");Ee.reportMissingProp=Jx;function Nb(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}o(Nb,"hasPropFunc");Ee.hasPropFunc=Nb;function vp(e,t,r){return(0,Ne._)`${Nb(e)}.call(${t}, ${r})`}o(vp,"isOwnProperty");Ee.isOwnProperty=vp;function Xx(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${i} && ${vp(e,t,r)}`:i}o(Xx,"propertyInData");Ee.propertyInData=Xx;function _p(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(i,(0,Ne.not)(vp(e,t,r))):i}o(_p,"noPropertyInData");Ee.noPropertyInData=_p;function kb(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(kb,"allSchemaProperties");Ee.allSchemaProperties=kb;function eA(e,t){return kb(t).filter(r=>!(0,bp.alwaysValidSchema)(e,t[r]))}o(eA,"schemaProperties");Ee.schemaProperties=eA;function tA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,Ne._)`${e}, ${t}, ${n}${i}`:t,f=[[wn.default.instancePath,(0,Ne.strConcat)(wn.default.instancePath,s)],[wn.default.parentData,a.parentData],[wn.default.parentDataProperty,a.parentDataProperty],[wn.default.rootData,wn.default.rootData]];a.opts.dynamicRef&&f.push([wn.default.dynamicAnchors,wn.default.dynamicAnchors]);let d=(0,Ne._)`${p}, ${r.object(...f)}`;return u!==Ne.nil?(0,Ne._)`${c}.call(${u}, ${d})`:(0,Ne._)`${c}(${d})`}o(tA,"callValidateCode");Ee.callValidateCode=tA;var rA=(0,Ne._)`new RegExp`;function nA({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,Ne._)`${i.code==="new RegExp"?rA:(0,Kx.useFunc)(e,i)}(${r}, ${n})`})}o(nA,"usePattern");Ee.usePattern=nA;function iA(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,Ne._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:bp.Type.Num},s),t.if((0,Ne.not)(s),c)})}o(a,"validateItems")}o(iA,"validateArray");Ee.validateArray=iA;function oA(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,bp.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,Ne._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Ne.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(oA,"validateUnion");Ee.validateUnion=oA});var Db=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateKeywordUsage=Vr.validSchemaType=Vr.funcKeywordCode=Vr.macroKeywordCode=void 0;var xt=se(),Si=sr(),sA=ar(),aA=ws();function cA(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=qb(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(cA,"macroKeywordCode");Vr.macroKeywordCode=cA;function uA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;fA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=qb(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&&Mb(e),g(()=>e.error());else{let E=t.async?h():y();t.modifying&&Mb(e),g(()=>lA(e,E))}}o(d,"validateKeyword");function h(){let E=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(E,(0,xt._)`${w}.errors`),()=>n.throw(w))),E}o(h,"validateAsync");function y(){let E=(0,xt._)`${p}.errors`;return n.assign(E,null),b(xt.nil),E}o(y,"validateSync");function b(E=t.async?(0,xt._)`await `:xt.nil){let w=u.opts.passContext?Si.default.this:Si.default.self,T=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,xt._)`${E}${(0,sA.callValidateCode)(e,p,w,T)}`,t.modifying)}o(b,"assignValid");function g(E){var w;n.if((0,xt.not)((w=t.valid)!==null&&w!==void 0?w:f),E)}o(g,"reportErrs")}o(uA,"funcKeywordCode");Vr.funcKeywordCode=uA;function Mb(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xt._)`${n.parentData}[${n.parentDataProperty}]`))}o(Mb,"modifyData");function lA(e,t){let{gen:r}=e;r.if((0,xt._)`Array.isArray(${t})`,()=>{r.assign(Si.default.vErrors,(0,xt._)`${Si.default.vErrors} === null ? ${t} : ${Si.default.vErrors}.concat(${t})`).assign(Si.default.errors,(0,xt._)`${Si.default.vErrors}.length`),(0,aA.extendErrors)(e)},()=>e.error())}o(lA,"addErrs");function fA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(fA,"checkAsyncKeyword");function qb(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(qb,"useKeyword");function pA(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(pA,"validSchemaType");Vr.validSchemaType=pA;function dA({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(dA,"validateKeywordUsage");Vr.validateKeywordUsage=dA});var Fb=v(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.extendSubschemaMode=xn.extendSubschemaData=xn.getSubschema=void 0;var Br=se(),Lb=he();function hA(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,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}${(0,Br.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Lb.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(hA,"getSubschema");xn.getSubschema=hA;function mA(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,Br._)`${t.data}${(0,Br.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Br.str)`${l}${(0,Lb.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Br._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Br.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(mA,"extendSubschemaData");xn.extendSubschemaData=mA;function gA(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(gA,"extendSubschemaMode");xn.extendSubschemaMode=gA});var Sp=v((o7,Vb)=>{"use strict";Vb.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 Hb=v((a7,Bb)=>{"use strict";var An=Bb.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(){};Ac(t,n,i,e,"",e)};An.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};An.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};An.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};An.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 Ac(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 An.arrayKeywords)for(var d=0;d<f.length;d++)Ac(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in An.propsKeywords){if(f&&typeof f=="object")for(var h in f)Ac(e,t,r,f[h],i+"/"+p+"/"+yA(h),s,i,p,n,h)}else(p in An.keywords||e.allKeys&&!(p in An.skipKeywords))&&Ac(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(Ac,"_traverse");function yA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(yA,"escapeJsonPtr")});var As=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 bA=he(),vA=Sp(),_A=Hb(),SA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function PA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Pp(e):t?Ub(e)<=t:!1}o(PA,"inlineRef");kt.inlineRef=PA;var OA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Pp(e){for(let t in e){if(OA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Pp)||typeof r=="object"&&Pp(r))return!0}return!1}o(Pp,"hasRef");function Ub(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!SA.has(r)&&(typeof e[r]=="object"&&(0,bA.eachItem)(e[r],n=>t+=Ub(n)),t===1/0))return 1/0}return t}o(Ub,"countKeys");function zb(e,t="",r){r!==!1&&(t=_o(t));let n=e.parse(t);return Gb(e,n)}o(zb,"getFullPath");kt.getFullPath=zb;function Gb(e,t){return e.serialize(t).split("#")[0]+"#"}o(Gb,"_getFullPath");kt._getFullPath=Gb;var EA=/#\/?$/;function _o(e){return e?e.replace(EA,""):""}o(_o,"normalizeId");kt.normalizeId=_o;function $A(e,t,r){return r=_o(r),e.resolve(t,r)}o($A,"resolveUrl");kt.resolveUrl=$A;var wA=/^[a-z_][-a-z0-9._]*$/i;function xA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=_o(e[r]||t),s={"":i},a=zb(n,i,!1),c={},u=new Set;return _A(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=E.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[d]=g;function E(T){let I=this.opts.uriResolver.resolve;if(T=_o(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!==_o(b)&&(T[0]==="#"?(l(f,c[T],T),c[T]=f):this.refs[T]=b),T}o(E,"addRef");function w(T){if(typeof T=="string"){if(!wA.test(T))throw new Error(`invalid anchor "${T}"`);E.call(this,`#${T}`)}}o(w,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!vA(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(xA,"getSchemaRefs");kt.getSchemaRefs=xA});var Ts=v(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.getData=In.KeywordCxt=In.validateFunctionCode=void 0;var Qb=wb(),Zb=xs(),Ep=hp(),Ic=xs(),AA=Rb(),Cs=Db(),Op=Fb(),W=se(),ie=sr(),IA=As(),an=he(),Is=ws();function CA(e){if(e0(e)&&(t0(e),Xb(e))){RA(e);return}Jb(e,()=>(0,Qb.topBoolOrEmptySchema)(e))}o(CA,"validateFunctionCode");In.validateFunctionCode=CA;function Jb({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"; ${Wb(r,i)}`),jA(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${TA(i)}`,n.$async,()=>e.code(Wb(r,i)).code(s))}o(Jb,"validateFunction");function TA(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(TA,"destructureValCxt");function jA(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(jA,"destructureValCxtES5");function RA(e){let{schema:t,opts:r,gen:n}=e;Jb(e,()=>{r.$comment&&t.$comment&&n0(e),DA(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&NA(e),r0(e),VA(e)})}o(RA,"topSchemaObjCode");function NA(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(NA,"resetEvaluated");function Wb(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(Wb,"funcSourceUrl");function kA(e,t){if(e0(e)&&(t0(e),Xb(e))){MA(e,t);return}(0,Qb.boolOrEmptySchema)(e,t)}o(kA,"subschemaCode");function Xb({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(Xb,"schemaCxtHasRules");function e0(e){return typeof e.schema!="boolean"}o(e0,"isSchemaObj");function MA(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&n0(e),LA(e),FA(e);let s=n.const("_errs",ie.default.errors);r0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(MA,"subSchemaObjCode");function t0(e){(0,an.checkUnknownRules)(e),qA(e)}o(t0,"checkKeywords");function r0(e,t){if(e.opts.jtd)return Kb(e,[],!1,t);let r=(0,Zb.getSchemaTypes)(e.schema),n=(0,Zb.coerceAndCheckDataType)(e,r);Kb(e,r,!n,t)}o(r0,"typeAndKeywords");function qA(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,an.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(qA,"checkRefsAndKeywords");function DA(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,an.checkStrictMode)(e,"default is ignored in the schema root")}o(DA,"checkNoDefault");function LA(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,IA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(LA,"updateContext");function FA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(FA,"checkAsyncSchema");function n0({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(n0,"commentKeyword");function VA(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&&BA(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(VA,"returnResults");function BA({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(BA,"assignEvaluated");function Kb(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,an.schemaHasRulesButRef)(s,p))){i.block(()=>o0(e,"$ref",p.all.$ref.definition));return}u.jtd||HA(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Ep.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Ic.checkDataType)(d.type,a,u.strictNumbers)),Yb(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ic.reportTypeError)(e)),i.endIf()):Yb(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Kb,"schemaKeywords");function Yb(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,Ep.shouldUseRule)(n,s)&&o0(e,s.keyword,s.definition,t.type)})}o(Yb,"iterateKeywords");function HA(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(UA(e,t),e.opts.allowUnionTypes||zA(e,t),GA(e,e.dataTypes))}o(HA,"checkStrictTypes");function UA(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{i0(e.dataTypes,r)||$p(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),WA(e,t)}}o(UA,"checkContextTypes");function zA(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&$p(e,"use allowUnionTypes to allow union type keyword")}o(zA,"checkMultipleTypes");function GA(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Ep.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>ZA(t,a))&&$p(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(GA,"checkKeywordTypes");function ZA(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(ZA,"hasApplicableType");function i0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(i0,"includesType");function WA(e,t){let r=[];for(let n of e.dataTypes)i0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(WA,"narrowSchemaTypes");function $p(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,an.checkStrictMode)(e,t,e.opts.strictTypes)}o($p,"strictTypesError");var wp=class wp{constructor(t,r,n){if((0,Cs.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,an.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",s0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Cs.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?Is.reportExtraError:Is.reportError)(this,this.def.error,r)}$dataError(){(0,Is.reportError)(this,this.def.$dataError||Is.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Is.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,Ic.checkDataTypes)(u,r,s.opts.strictNumbers,Ic.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,Op.getSubschema)(this.it,t);(0,Op.extendSubschemaData)(n,this.it,t),(0,Op.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return kA(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=an.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=an.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(wp,"KeywordCxt");var Cc=wp;In.KeywordCxt=Cc;function o0(e,t,r,n){let i=new Cc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Cs.funcKeywordCode)(i,r):"macro"in r?(0,Cs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Cs.funcKeywordCode)(i,r)}o(o0,"keywordCode");var KA=/^\/(?:[^~]|~0|~1)*$/,YA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function s0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!KA.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=YA.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,an.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(s0,"getData");In.getData=s0});var Tc=v(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var Ip=class Ip extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Ip,"ValidationError");var xp=Ip;Ap.default=xp});var js=v(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var Cp=As(),Rp=class Rp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Cp.resolveUrl)(t,r,n),this.missingSchema=(0,Cp.normalizeId)((0,Cp.getFullPath)(t,this.missingRef))}};o(Rp,"MissingRefError");var Tp=Rp;jp.default=Tp});var Rs=v(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.resolveSchema=cr.getCompilingSchema=cr.resolveRef=cr.compileSchema=cr.SchemaEnv=void 0;var Pr=se(),QA=Tc(),Pi=sr(),Or=As(),a0=he(),JA=Ts(),Mp=class Mp{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,Or.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(Mp,"SchemaEnv");var So=Mp;cr.SchemaEnv=So;function kp(e){let t=c0.call(this,e);if(t)return t;let r=(0,Or.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Pr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:QA.default,code:(0,Pr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Pi.default.data,parentData:Pi.default.parentData,parentDataProperty:Pi.default.parentDataProperty,dataNames:[Pi.default.data],dataPathArr:[Pr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Pr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Pr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,JA.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Pi.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Pi.default.self}`,`${Pi.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 Pr.Name?void 0:y,items:b instanceof Pr.Name?void 0:b,dynamicProps:y instanceof Pr.Name,dynamicItems:b instanceof Pr.Name},h.source&&(h.source.evaluated=(0,Pr.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(kp,"compileSchema");cr.compileSchema=kp;function XA(e,t,r){var n;r=(0,Or.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=rI.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 So({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=eI.call(this,s)}o(XA,"resolveRef");cr.resolveRef=XA;function eI(e){return(0,Or.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:kp.call(this,e)}o(eI,"inlineOrCompile");function c0(e){for(let t of this._compilations)if(tI(t,e))return t}o(c0,"getCompilingSchema");cr.getCompilingSchema=c0;function tI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(tI,"sameSchemaEnv");function rI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||jc.call(this,e,t)}o(rI,"resolve");function jc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Or._getFullPath)(this.opts.uriResolver,r),i=(0,Or.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Np.call(this,r,e);let s=(0,Or.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=jc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Np.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||kp.call(this,a),s===(0,Or.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Or.resolveUrl)(this.opts.uriResolver,i,l)),new So({schema:c,schemaId:u,root:e,baseId:i})}return Np.call(this,r,a)}}o(jc,"resolveSchema");cr.resolveSchema=jc;var nI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Np(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,a0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!nI.has(c)&&l&&(t=(0,Or.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,a0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Or.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=jc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new So({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Np,"getJsonPointer")});var u0=v((v7,iI)=>{iI.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 f0=v((_7,l0)=>{"use strict";var oI={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};l0.exports={HEX:oI}});var v0=v((S7,b0)=>{"use strict";var{HEX:sI}=f0();function m0(e){if(y0(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:cI(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(m0,"normalizeIPv4");function qp(e,t=!1){let r="",n=!0;for(let i of e){if(sI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(qp,"stringArrayToHexStripped");function aI(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=qp(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(qp(i))),r.address=n.join(""),r}o(aI,"getIPV6");function g0(e,t={}){if(y0(e,":")<2)return{host:e,isIPV6:!1};let r=aI(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(g0,"normalizeIPv6");function cI(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(cI,"stripLeadingZeros");function y0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(y0,"findToken");var p0=/^\.\.?\//u,d0=/^\/\.(?:\/|$)/u,h0=/^\/\.\.(?:\/|$)/u,uI=/^\/?(?:.|\n)*?(?=\/|$)/u;function lI(e){let t=[];for(;e.length;)if(e.match(p0))e=e.replace(p0,"");else if(e.match(d0))e=e.replace(d0,"/");else if(e.match(h0))e=e.replace(h0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(uI);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(lI,"removeDotSegments");function fI(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(fI,"normalizeComponentEncoding");function pI(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=m0(n);if(i.isIPV4)n=i.host;else{let s=g0(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(pI,"recomposeAuthority");b0.exports={recomposeAuthority:pI,normalizeComponentEncoding:fI,removeDotSegments:lI,normalizeIPv4:m0,normalizeIPv6:g0,stringArrayToHexStripped:qp}});var $0=v((O7,E0)=>{"use strict";var dI=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,hI=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function _0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(_0,"isSecure");function S0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(S0,"httpParse");function P0(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(P0,"httpSerialize");function mI(e){return e.secure=_0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(mI,"wsParse");function gI(e){if((e.port===(_0(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(gI,"wsSerialize");function yI(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(hI);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=Dp[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(yI,"urnParse");function bI(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Dp[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(bI,"urnSerialize");function vI(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!dI.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(vI,"urnuuidParse");function _I(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(_I,"urnuuidSerialize");var O0={scheme:"http",domainHost:!0,parse:S0,serialize:P0},SI={scheme:"https",domainHost:O0.domainHost,parse:S0,serialize:P0},Rc={scheme:"ws",domainHost:!0,parse:mI,serialize:gI},PI={scheme:"wss",domainHost:Rc.domainHost,parse:Rc.parse,serialize:Rc.serialize},OI={scheme:"urn",parse:yI,serialize:bI,skipNormalize:!0},EI={scheme:"urn:uuid",parse:vI,serialize:_I,skipNormalize:!0},Dp={http:O0,https:SI,ws:Rc,wss:PI,urn:OI,"urn:uuid":EI};E0.exports=Dp});var x0=v(($7,kc)=>{"use strict";var{normalizeIPv6:$I,normalizeIPv4:wI,removeDotSegments:Ns,recomposeAuthority:xI,normalizeComponentEncoding:Nc}=v0(),Lp=$0();function AI(e,t){return typeof e=="string"?e=Hr(cn(e,t),t):typeof e=="object"&&(e=cn(Hr(e,t),t)),e}o(AI,"normalize");function II(e,t,r){let n=Object.assign({scheme:"null"},r),i=w0(cn(e,n),cn(t,n),n,!0);return Hr(i,{...n,skipEscape:!0})}o(II,"resolve");function w0(e,t,r,n){let i={};return n||(e=cn(Hr(e,r),r),t=cn(Hr(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=Ns(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=Ns(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Ns(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=Ns(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(w0,"resolveComponents");function CI(e,t,r){return typeof e=="string"?(e=unescape(e),e=Hr(Nc(cn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Hr(Nc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Hr(Nc(cn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Hr(Nc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(CI,"equal");function Hr(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=Lp[(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=xI(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=Ns(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(Hr,"serialize");var TI=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function jI(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||TI[t])return!0;return!1}o(jI,"nonSimpleDomain");var RI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function cn(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(RI);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=wI(n.host);if(u.isIPV4===!1){let l=$I(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=Lp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&jI(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(cn,"parse");var Fp={SCHEMES:Lp,normalize:AI,resolve:II,resolveComponents:w0,equal:CI,serialize:Hr,parse:cn};kc.exports=Fp;kc.exports.default=Fp;kc.exports.fastUri=Fp});var I0=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var A0=x0();A0.code='require("ajv/dist/runtime/uri").default';Vp.default=A0});var Oo=v(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.CodeGen=ht.Name=ht.nil=ht.stringify=ht.str=ht._=ht.KeywordCxt=void 0;var NI=Ts();Object.defineProperty(ht,"KeywordCxt",{enumerable:!0,get:o(function(){return NI.KeywordCxt},"get")});var Po=se();Object.defineProperty(ht,"_",{enumerable:!0,get:o(function(){return Po._},"get")});Object.defineProperty(ht,"str",{enumerable:!0,get:o(function(){return Po.str},"get")});Object.defineProperty(ht,"stringify",{enumerable:!0,get:o(function(){return Po.stringify},"get")});Object.defineProperty(ht,"nil",{enumerable:!0,get:o(function(){return Po.nil},"get")});Object.defineProperty(ht,"Name",{enumerable:!0,get:o(function(){return Po.Name},"get")});Object.defineProperty(ht,"CodeGen",{enumerable:!0,get:o(function(){return Po.CodeGen},"get")});var kI=Tc(),N0=js(),MI=dp(),ks=Rs(),qI=se(),Ms=As(),Mc=xs(),Hp=he(),C0=u0(),DI=I0(),k0=o((e,t)=>new RegExp(e,t),"defaultRegExp");k0.code="new RegExp";var LI=["removeAdditional","useDefaults","coerceTypes"],FI=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),VI={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."},BI={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},T0=200;function HI(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,E,w,T,I,C,ae,J,Ve,$e;let X=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,j=k===!0||k===void 0?1:k||0,D=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:k0,Y=(i=e.uriResolver)!==null&&i!==void 0?i:DI.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:j,regExp:D}:{optimize:j,regExp:D},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:T0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:T0,meta:(E=e.meta)!==null&&E!==void 0?E:!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:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(J=e.validateFormats)!==null&&J!==void 0?J:!0,unicodeRegExp:(Ve=e.unicodeRegExp)!==null&&Ve!==void 0?Ve:!0,int32range:($e=e.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Y}}o(HI,"requiredOptions");var Up=class Up{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...HI(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new qI.ValueScope({scope:{},prefixes:FI,es5:r,lines:n}),this.logger=KI(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,MI.getRules)(),j0.call(this,VI,t,"NOT SUPPORTED"),j0.call(this,BI,t,"DEPRECATED","warn"),this._metaOpts=ZI.call(this),t.formats&&zI.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&GI.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),UI.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=C0;n==="id"&&(i={...C0},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 N0.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,Ms.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=R0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ks.SchemaEnv({schema:{},schemaId:n});if(r=ks.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=R0.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,Ms.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(QI.call(this,n,r),!r)return(0,Hp.eachItem)(n,s=>Bp.call(this,s)),this;XI.call(this,r);let i={...r,type:(0,Mc.getJSONTypes)(r.type),schemaType:(0,Mc.getJSONTypes)(r.schemaType)};return(0,Hp.eachItem)(n,i.type.length===0?s=>Bp.call(this,s,i):s=>i.type.forEach(a=>Bp.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]=M0(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,Ms.normalizeId)(a||n);let l=Ms.getSchemaRefs.call(this,t,n);return u=new ks.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):ks.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{ks.compileSchema.call(this,t)}finally{this.opts=r}}};o(Up,"Ajv");var qs=Up;qs.ValidationError=kI.default;qs.MissingRefError=N0.default;ht.default=qs;function j0(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(j0,"checkOptions");function R0(e){return e=(0,Ms.normalizeId)(e),this.schemas[e]||this.refs[e]}o(R0,"getSchEnv");function UI(){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(UI,"addInitialSchemas");function zI(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(zI,"addInitialFormats");function GI(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(GI,"addInitialKeywords");function ZI(){let e={...this.opts};for(let t of LI)delete e[t];return e}o(ZI,"getMetaSchemaOptions");var WI={log(){},warn(){},error(){}};function KI(e){if(e===!1)return WI;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(KI,"getLogger");var YI=/^[a-z_$][a-z0-9_$:-]*$/i;function QI(e,t){let{RULES:r}=this;if((0,Hp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!YI.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(QI,"checkKeyword");function Bp(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,Mc.getJSONTypes)(t.type),schemaType:(0,Mc.getJSONTypes)(t.schemaType)}};t.before?JI.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(Bp,"addRule");function JI(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(JI,"addBeforeRule");function XI(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=M0(t)),e.validateSchema=this.compile(t,!0))}o(XI,"keywordMetaschema");var eC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M0(e){return{anyOf:[e,eC]}}o(M0,"schemaOrData")});var Ds=v(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.callRef=Oi.getValidate=void 0;var tC=js(),q0=ar(),Mt=se(),Eo=sr(),D0=Rs(),qc=he(),rC={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=D0.resolveRef.call(u,l,i,r);if(p===void 0)throw new tC.default(n.opts.uriResolver,i,r);if(p instanceof D0.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Dc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Dc(e,(0,Mt._)`${y}.validate`,l,l.$async)}function d(y){let b=L0(e,y);Dc(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=e.subschema({schema:y,dataTypes:[],schemaPath:Mt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(E),e.ok(g)}}};function L0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Mt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(L0,"getValidate");Oi.getValidate=L0;function Dc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Eo.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,q0.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,q0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Mt._)`${y}.errors`;i.assign(Eo.default.vErrors,(0,Mt._)`${Eo.default.vErrors} === null ? ${b} : ${Eo.default.vErrors}.concat(${b})`),i.assign(Eo.default.errors,(0,Mt._)`${Eo.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=qc.mergeEvaluated.props(i,g.props,s.props));else{let E=i.var("props",(0,Mt._)`${y}.evaluated.props`);s.props=qc.mergeEvaluated.props(i,E,s.props,Mt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=qc.mergeEvaluated.items(i,g.items,s.items));else{let E=i.var("items",(0,Mt._)`${y}.evaluated.items`);s.items=qc.mergeEvaluated.items(i,E,s.items,Mt.Name)}}o(h,"addEvaluatedFrom")}o(Dc,"callRef");Oi.callRef=Dc;Oi.default=rC});var F0=v(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var nC=Ds(),iC=["$schema","id","$defs",{keyword:"$comment"},"definitions",nC.default];zp.default=iC});var V0=v(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var Gp=Oo(),oC=se(),Cn=oC.operators,Zp={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Cn.LTE,fail:Cn.GT},{okStr:"<",ok:Cn.LT,fail:Cn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Cn.GTE,fail:Cn.LT},{okStr:">",ok:Cn.GT,fail:Cn.LTE}]}},sC={message:o(e=>Gp.str`must be ${Wp(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Gp._`{comparison: ${Wp(e).okStr}, limit: ${e.schemaCode}}`,"params")},aC={keyword:Object.keys(Zp),type:"number",schemaType:"number",$data:!0,error:sC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Gp._`${t} ${Wp(e).fail} ${r} || isNaN(${t})`)}};function Wp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Zp[r].exclusive]?1:0;return Zp[r].ops[n]}o(Wp,"kwdOp");Kp.default=aC});var H0=v(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var B0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},cC={keyword:Object.keys(B0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=B0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Yp.default=cC});var Jp=v(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Ls=se(),uC={message:o(({schemaCode:e})=>(0,Ls.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ls._)`{multipleOf: ${e}}`,"params")},lC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:uC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Ls._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ls._)`${a} !== parseInt(${a})`;e.fail$data((0,Ls._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Qp.default=lC});var z0=v(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});function U0(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(U0,"ucs2length");Xp.default=U0;U0.code='require("ajv/dist/runtime/ucs2length").default'});var td=v(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var Ei=se(),fC=he(),pC=z0(),dC={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")},hC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:dC,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,fC.useFunc)(e.gen,pC.default)}(${r})`;e.fail$data((0,Ei._)`${a} ${s} ${n}`)}};ed.default=hC});var nd=v(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var mC=ar(),Lc=se(),gC={message:o(({schemaCode:e})=>(0,Lc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Lc._)`{pattern: ${e}}`,"params")},yC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:gC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Lc._)`(new RegExp(${i}, ${a}))`:(0,mC.usePattern)(e,n);e.fail$data((0,Lc._)`!${c}.test(${t})`)}};rd.default=yC});var od=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var Fs=se(),bC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Fs.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Fs._)`{limit: ${e}}`,"params")},vC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:bC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Fs.operators.GT:Fs.operators.LT;e.fail$data((0,Fs._)`Object.keys(${r}).length ${i} ${n}`)}};id.default=vC});var ad=v(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var Vs=ar(),Bs=se(),_C=he(),SC={message:o(({params:{missingProperty:e}})=>(0,Bs.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Bs._)`{missingProperty: ${e}}`,"params")},PC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:SC,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,E=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,_C.checkStrictMode)(a,E,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Bs.nil,f);else for(let h of r)(0,Vs.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,Vs.checkMissingProp)(e,r,h)),(0,Vs.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Vs.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,Vs.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Bs.not)(y),()=>{e.error(),t.break()})},Bs.nil)}o(d,"loopUntilMissing")}};sd.default=PC});var ud=v(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var Hs=se(),OC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Hs.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Hs._)`{limit: ${e}}`,"params")},EC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:OC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Hs.operators.GT:Hs.operators.LT;e.fail$data((0,Hs._)`${r}.length ${i} ${n}`)}};cd.default=EC});var Fc=v(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var G0=Sp();G0.code='require("ajv/dist/runtime/equal").default';ld.default=G0});var dd=v(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var fd=xs(),mt=se(),$C=he(),wC=Fc(),xC={message:o(({params:{i:e,j:t}})=>(0,mt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,mt._)`{i: ${e}, j: ${t}}`,"params")},AC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:xC,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,fd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,mt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,mt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,mt._)`${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"),E=(0,fd.checkDataTypes)(l,g,c.opts.strictNumbers,fd.DataType.Wrong),w=t.const("indices",(0,mt._)`{}`);t.for((0,mt._)`;${y}--;`,()=>{t.let(g,(0,mt._)`${r}[${y}]`),t.if(E,(0,mt._)`continue`),l.length>1&&t.if((0,mt._)`typeof ${g} == "string"`,(0,mt._)`${g} += "_"`),t.if((0,mt._)`typeof ${w}[${g}] == "number"`,()=>{t.assign(b,(0,mt._)`${w}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,mt._)`${w}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,$C.useFunc)(t,wC.default),E=t.name("outer");t.label(E).for((0,mt._)`;${y}--;`,()=>t.for((0,mt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,mt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(E)})))}o(h,"loopN2")}};pd.default=AC});var gd=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var hd=se(),IC=he(),CC=Fc(),TC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,hd._)`{allowedValue: ${e}}`,"params")},jC={keyword:"const",$data:!0,error:TC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,hd._)`!${(0,IC.useFunc)(t,CC.default)}(${r}, ${i})`):e.fail((0,hd._)`${s} !== ${r}`)}};md.default=jC});var bd=v(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var Us=se(),RC=he(),NC=Fc(),kC={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Us._)`{allowedValues: ${e}}`,"params")},MC={keyword:"enum",schemaType:"array",$data:!0,error:kC,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,RC.useFunc)(t,NC.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,Us.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,Us._)`${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,Us._)`${l()}(${r}, ${h}[${y}])`:(0,Us._)`${r} === ${b}`}o(d,"equalCode")}};yd.default=MC});var Z0=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var qC=V0(),DC=H0(),LC=Jp(),FC=td(),VC=nd(),BC=od(),HC=ad(),UC=ud(),zC=dd(),GC=gd(),ZC=bd(),WC=[qC.default,DC.default,LC.default,FC.default,VC.default,BC.default,HC.default,UC.default,zC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GC.default,ZC.default];vd.default=WC});var Sd=v(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.validateAdditionalItems=void 0;var $i=se(),_d=he(),KC={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")},YC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:KC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,_d.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}W0(e,n)}};function W0(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,_d.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:_d.Type.Num},l),a.allErrors||r.if((0,$i.not)(l),()=>r.break())})}o(u,"validateItems")}o(W0,"validateAdditionalItems");zs.validateAdditionalItems=W0;zs.default=YC});var Pd=v(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.validateTuple=void 0;var K0=se(),Vc=he(),QC=ar(),JC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Y0(e,"additionalItems",t);r.items=!0,!(0,Vc.alwaysValidSchema)(r,t)&&e.ok((0,QC.validateArray)(e))}};function Y0(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=Vc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,K0._)`${s}.length`);r.forEach((f,d)=>{(0,Vc.alwaysValidSchema)(c,f)||(n.if((0,K0._)`${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,Vc.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(Y0,"validateTuple");Gs.validateTuple=Y0;Gs.default=JC});var Q0=v(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var XC=Pd(),eT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,XC.validateTuple)(e,"items"),"code")};Od.default=eT});var X0=v(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var J0=se(),tT=he(),rT=ar(),nT=Sd(),iT={message:o(({params:{len:e}})=>(0,J0.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,J0._)`{limit: ${e}}`,"params")},oT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:iT,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,tT.alwaysValidSchema)(n,t)&&(i?(0,nT.validateAdditionalItems)(e,i):e.ok((0,rT.validateArray)(e)))}};Ed.default=oT});var ev=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var ur=se(),Bc=he(),sT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ur.str)`must contain at least ${e} valid item(s)`:(0,ur.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,ur._)`{minContains: ${e}}`:(0,ur._)`{minContains: ${e}, maxContains: ${t}}`,"params")},aT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:sT,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,ur._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Bc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Bc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Bc.alwaysValidSchema)(s,r)){let b=(0,ur._)`${p} >= ${a}`;c!==void 0&&(b=(0,ur._)`${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,ur._)`${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=>{e.subschema({keyword:"contains",dataProp:E,dataPropType:Bc.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,ur._)`${b}++`),c===void 0?t.if((0,ur._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,ur._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,ur._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};$d.default=aT});var Hc=v(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.validateSchemaDeps=Ur.validatePropertyDeps=Ur.error=void 0;var wd=se(),cT=he(),Zs=ar();Ur.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,wd.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,wd._)`{property: ${e},
10
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(Gx,"coerceData");function Zx({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(Zx,"assignParentData");function vp(e,t,r,n=vo.Correct){let i=n===vo.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===vo.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(vp,"checkDataType");_t.checkDataType=vp;function _p(e,t,r,n){if(e.length===1)return vp(e[0],t,r,n);let i,s=(0,Rb.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,vp(a,t,r,n));return i}o(_p,"checkDataTypes");_t.checkDataTypes=_p;var Wx={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function Sp(e){let t=Kx(e);(0,Bx.reportError)(t,Wx)}o(Sp,"reportTypeError");_t.reportTypeError=Sp;function Kx(e){let{gen:t,data:r,schema:n}=e,i=(0,Rb.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 Mb=v(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.assignDefaults=void 0;var _o=se(),Yx=he();function Qx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)kb(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>kb(e,s,i.default))}o(Qx,"assignDefaults");Cc.assignDefaults=Qx;function kb(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,_o._)`${s}${(0,_o.getProperty)(t)}`;if(i){(0,Yx.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,_o._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,_o._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,_o._)`${c} = ${(0,_o.stringify)(r)}`)}o(kb,"assignDefault")});var ar=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 Ne=se(),Op=he(),wn=sr(),Jx=he();function Xx(e,t){let{gen:r,data:n,it:i}=e;r.if(Ep(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}o(Xx,"checkReportMissingProp");Ee.checkReportMissingProp=Xx;function eA({gen:e,data:t,it:{opts:r}},n,i){return(0,Ne.or)(...n.map(s=>(0,Ne.and)(Ep(e,t,s,r.ownProperties),(0,Ne._)`${i} = ${s}`)))}o(eA,"checkMissingProp");Ee.checkMissingProp=eA;function tA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(tA,"reportMissingProp");Ee.reportMissingProp=tA;function qb(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}o(qb,"hasPropFunc");Ee.hasPropFunc=qb;function Pp(e,t,r){return(0,Ne._)`${qb(e)}.call(${t}, ${r})`}o(Pp,"isOwnProperty");Ee.isOwnProperty=Pp;function rA(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${i} && ${Pp(e,t,r)}`:i}o(rA,"propertyInData");Ee.propertyInData=rA;function Ep(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(i,(0,Ne.not)(Pp(e,t,r))):i}o(Ep,"noPropertyInData");Ee.noPropertyInData=Ep;function Db(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Db,"allSchemaProperties");Ee.allSchemaProperties=Db;function nA(e,t){return Db(t).filter(r=>!(0,Op.alwaysValidSchema)(e,t[r]))}o(nA,"schemaProperties");Ee.schemaProperties=nA;function iA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,Ne._)`${e}, ${t}, ${n}${i}`:t,f=[[wn.default.instancePath,(0,Ne.strConcat)(wn.default.instancePath,s)],[wn.default.parentData,a.parentData],[wn.default.parentDataProperty,a.parentDataProperty],[wn.default.rootData,wn.default.rootData]];a.opts.dynamicRef&&f.push([wn.default.dynamicAnchors,wn.default.dynamicAnchors]);let d=(0,Ne._)`${p}, ${r.object(...f)}`;return u!==Ne.nil?(0,Ne._)`${c}.call(${u}, ${d})`:(0,Ne._)`${c}(${d})`}o(iA,"callValidateCode");Ee.callValidateCode=iA;var oA=(0,Ne._)`new RegExp`;function sA({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,Ne._)`${i.code==="new RegExp"?oA:(0,Jx.useFunc)(e,i)}(${r}, ${n})`})}o(sA,"usePattern");Ee.usePattern=sA;function aA(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,Ne._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Op.Type.Num},s),t.if((0,Ne.not)(s),c)})}o(a,"validateItems")}o(aA,"validateArray");Ee.validateArray=aA;function cA(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,Ne._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Ne.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(cA,"validateUnion");Ee.validateUnion=cA});var Vb=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateKeywordUsage=Vr.validSchemaType=Vr.funcKeywordCode=Vr.macroKeywordCode=void 0;var xt=se(),Si=sr(),uA=ar(),lA=As();function fA(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Fb(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(fA,"macroKeywordCode");Vr.macroKeywordCode=fA;function pA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;hA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=Fb(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&&Lb(e),g(()=>e.error());else{let E=t.async?h():y();t.modifying&&Lb(e),g(()=>dA(e,E))}}o(d,"validateKeyword");function h(){let E=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(E,(0,xt._)`${w}.errors`),()=>n.throw(w))),E}o(h,"validateAsync");function y(){let E=(0,xt._)`${p}.errors`;return n.assign(E,null),b(xt.nil),E}o(y,"validateSync");function b(E=t.async?(0,xt._)`await `:xt.nil){let w=u.opts.passContext?Si.default.this:Si.default.self,T=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,xt._)`${E}${(0,uA.callValidateCode)(e,p,w,T)}`,t.modifying)}o(b,"assignValid");function g(E){var w;n.if((0,xt.not)((w=t.valid)!==null&&w!==void 0?w:f),E)}o(g,"reportErrs")}o(pA,"funcKeywordCode");Vr.funcKeywordCode=pA;function Lb(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xt._)`${n.parentData}[${n.parentDataProperty}]`))}o(Lb,"modifyData");function dA(e,t){let{gen:r}=e;r.if((0,xt._)`Array.isArray(${t})`,()=>{r.assign(Si.default.vErrors,(0,xt._)`${Si.default.vErrors} === null ? ${t} : ${Si.default.vErrors}.concat(${t})`).assign(Si.default.errors,(0,xt._)`${Si.default.vErrors}.length`),(0,lA.extendErrors)(e)},()=>e.error())}o(dA,"addErrs");function hA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(hA,"checkAsyncKeyword");function Fb(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(Fb,"useKeyword");function mA(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(mA,"validSchemaType");Vr.validSchemaType=mA;function gA({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(gA,"validateKeywordUsage");Vr.validateKeywordUsage=gA});var Hb=v(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.extendSubschemaMode=xn.extendSubschemaData=xn.getSubschema=void 0;var Br=se(),Bb=he();function yA(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,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}${(0,Br.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Bb.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(yA,"getSubschema");xn.getSubschema=yA;function bA(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,Br._)`${t.data}${(0,Br.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Br.str)`${l}${(0,Bb.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Br._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Br.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(bA,"extendSubschemaData");xn.extendSubschemaData=bA;function vA(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(vA,"extendSubschemaMode");xn.extendSubschemaMode=vA});var $p=v((c7,Ub)=>{"use strict";Ub.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 Gb=v((l7,zb)=>{"use strict";var An=zb.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(){};Tc(t,n,i,e,"",e)};An.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};An.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};An.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};An.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 Tc(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 An.arrayKeywords)for(var d=0;d<f.length;d++)Tc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in An.propsKeywords){if(f&&typeof f=="object")for(var h in f)Tc(e,t,r,f[h],i+"/"+p+"/"+_A(h),s,i,p,n,h)}else(p in An.keywords||e.allKeys&&!(p in An.skipKeywords))&&Tc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(Tc,"_traverse");function _A(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(_A,"escapeJsonPtr")});var Cs=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 SA=he(),OA=$p(),PA=Gb(),EA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function $A(e,t=!0){return typeof e=="boolean"?!0:t===!0?!wp(e):t?Zb(e)<=t:!1}o($A,"inlineRef");kt.inlineRef=$A;var wA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function wp(e){for(let t in e){if(wA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(wp)||typeof r=="object"&&wp(r))return!0}return!1}o(wp,"hasRef");function Zb(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,SA.eachItem)(e[r],n=>t+=Zb(n)),t===1/0))return 1/0}return t}o(Zb,"countKeys");function Wb(e,t="",r){r!==!1&&(t=So(t));let n=e.parse(t);return Kb(e,n)}o(Wb,"getFullPath");kt.getFullPath=Wb;function Kb(e,t){return e.serialize(t).split("#")[0]+"#"}o(Kb,"_getFullPath");kt._getFullPath=Kb;var xA=/#\/?$/;function So(e){return e?e.replace(xA,""):""}o(So,"normalizeId");kt.normalizeId=So;function AA(e,t,r){return r=So(r),e.resolve(t,r)}o(AA,"resolveUrl");kt.resolveUrl=AA;var IA=/^[a-z_][-a-z0-9._]*$/i;function CA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=So(e[r]||t),s={"":i},a=Wb(n,i,!1),c={},u=new Set;return PA(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=E.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[d]=g;function E(T){let I=this.opts.uriResolver.resolve;if(T=So(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!==So(b)&&(T[0]==="#"?(l(f,c[T],T),c[T]=f):this.refs[T]=b),T}o(E,"addRef");function w(T){if(typeof T=="string"){if(!IA.test(T))throw new Error(`invalid anchor "${T}"`);E.call(this,`#${T}`)}}o(w,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!OA(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(CA,"getSchemaRefs");kt.getSchemaRefs=CA});var js=v(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.getData=In.KeywordCxt=In.validateFunctionCode=void 0;var e0=Ib(),Yb=Is(),Ap=bp(),Rc=Is(),TA=Mb(),Rs=Vb(),xp=Hb(),W=se(),ie=sr(),RA=Cs(),an=he(),Ts=As();function jA(e){if(n0(e)&&(i0(e),r0(e))){MA(e);return}t0(e,()=>(0,e0.topBoolOrEmptySchema)(e))}o(jA,"validateFunctionCode");In.validateFunctionCode=jA;function t0({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"; ${Qb(r,i)}`),kA(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${NA(i)}`,n.$async,()=>e.code(Qb(r,i)).code(s))}o(t0,"validateFunction");function NA(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(NA,"destructureValCxt");function kA(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(kA,"destructureValCxtES5");function MA(e){let{schema:t,opts:r,gen:n}=e;t0(e,()=>{r.$comment&&t.$comment&&s0(e),VA(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&qA(e),o0(e),UA(e)})}o(MA,"topSchemaObjCode");function qA(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(qA,"resetEvaluated");function Qb(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(Qb,"funcSourceUrl");function DA(e,t){if(n0(e)&&(i0(e),r0(e))){LA(e,t);return}(0,e0.boolOrEmptySchema)(e,t)}o(DA,"subschemaCode");function r0({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(r0,"schemaCxtHasRules");function n0(e){return typeof e.schema!="boolean"}o(n0,"isSchemaObj");function LA(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&s0(e),BA(e),HA(e);let s=n.const("_errs",ie.default.errors);o0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(LA,"subSchemaObjCode");function i0(e){(0,an.checkUnknownRules)(e),FA(e)}o(i0,"checkKeywords");function o0(e,t){if(e.opts.jtd)return Jb(e,[],!1,t);let r=(0,Yb.getSchemaTypes)(e.schema),n=(0,Yb.coerceAndCheckDataType)(e,r);Jb(e,r,!n,t)}o(o0,"typeAndKeywords");function FA(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,an.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(FA,"checkRefsAndKeywords");function VA(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,an.checkStrictMode)(e,"default is ignored in the schema root")}o(VA,"checkNoDefault");function BA(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,RA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(BA,"updateContext");function HA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(HA,"checkAsyncSchema");function s0({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(s0,"commentKeyword");function UA(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&&zA(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(UA,"returnResults");function zA({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(zA,"assignEvaluated");function Jb(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,an.schemaHasRulesButRef)(s,p))){i.block(()=>c0(e,"$ref",p.all.$ref.definition));return}u.jtd||GA(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Ap.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Rc.checkDataType)(d.type,a,u.strictNumbers)),Xb(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Rc.reportTypeError)(e)),i.endIf()):Xb(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Jb,"schemaKeywords");function Xb(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,TA.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Ap.shouldUseRule)(n,s)&&c0(e,s.keyword,s.definition,t.type)})}o(Xb,"iterateKeywords");function GA(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(ZA(e,t),e.opts.allowUnionTypes||WA(e,t),KA(e,e.dataTypes))}o(GA,"checkStrictTypes");function ZA(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{a0(e.dataTypes,r)||Ip(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),QA(e,t)}}o(ZA,"checkContextTypes");function WA(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ip(e,"use allowUnionTypes to allow union type keyword")}o(WA,"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,Ap.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>YA(t,a))&&Ip(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(KA,"checkKeywordTypes");function YA(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(YA,"hasApplicableType");function a0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(a0,"includesType");function QA(e,t){let r=[];for(let n of e.dataTypes)a0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(QA,"narrowSchemaTypes");function Ip(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,an.checkStrictMode)(e,t,e.opts.strictTypes)}o(Ip,"strictTypesError");var Cp=class Cp{constructor(t,r,n){if((0,Rs.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,an.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",u0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Rs.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?Ts.reportExtraError:Ts.reportError)(this,this.def.error,r)}$dataError(){(0,Ts.reportError)(this,this.def.$dataError||Ts.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ts.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,Rc.checkDataTypes)(u,r,s.opts.strictNumbers,Rc.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,xp.getSubschema)(this.it,t);(0,xp.extendSubschemaData)(n,this.it,t),(0,xp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return DA(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=an.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=an.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(Cp,"KeywordCxt");var jc=Cp;In.KeywordCxt=jc;function c0(e,t,r,n){let i=new jc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Rs.funcKeywordCode)(i,r):"macro"in r?(0,Rs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Rs.funcKeywordCode)(i,r)}o(c0,"keywordCode");var JA=/^\/(?:[^~]|~0|~1)*$/,XA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function u0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!JA.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=XA.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,an.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(u0,"getData");In.getData=u0});var Nc=v(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var jp=class jp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(jp,"ValidationError");var Tp=jp;Rp.default=Tp});var Ns=v(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var Np=Cs(),qp=class qp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Np.resolveUrl)(t,r,n),this.missingSchema=(0,Np.normalizeId)((0,Np.getFullPath)(t,this.missingRef))}};o(qp,"MissingRefError");var kp=qp;Mp.default=kp});var ks=v(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.resolveSchema=cr.getCompilingSchema=cr.resolveRef=cr.compileSchema=cr.SchemaEnv=void 0;var Or=se(),eI=Nc(),Oi=sr(),Pr=Cs(),l0=he(),tI=js(),Fp=class Fp{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,Pr.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(Fp,"SchemaEnv");var Oo=Fp;cr.SchemaEnv=Oo;function Lp(e){let t=f0.call(this,e);if(t)return t;let r=(0,Pr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Or.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:eI.default,code:(0,Or._)`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:[Or.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Or.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Or.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Or._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,tI.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 Or.Name?void 0:y,items:b instanceof Or.Name?void 0:b,dynamicProps:y instanceof Or.Name,dynamicItems:b instanceof Or.Name},h.source&&(h.source.evaluated=(0,Or.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(Lp,"compileSchema");cr.compileSchema=Lp;function rI(e,t,r){var n;r=(0,Pr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=oI.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 Oo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=nI.call(this,s)}o(rI,"resolveRef");cr.resolveRef=rI;function nI(e){return(0,Pr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Lp.call(this,e)}o(nI,"inlineOrCompile");function f0(e){for(let t of this._compilations)if(iI(t,e))return t}o(f0,"getCompilingSchema");cr.getCompilingSchema=f0;function iI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(iI,"sameSchemaEnv");function oI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||kc.call(this,e,t)}o(oI,"resolve");function kc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Pr._getFullPath)(this.opts.uriResolver,r),i=(0,Pr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Dp.call(this,r,e);let s=(0,Pr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=kc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Dp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Lp.call(this,a),s===(0,Pr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Pr.resolveUrl)(this.opts.uriResolver,i,l)),new Oo({schema:c,schemaId:u,root:e,baseId:i})}return Dp.call(this,r,a)}}o(kc,"resolveSchema");cr.resolveSchema=kc;var sI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Dp(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,l0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!sI.has(c)&&l&&(t=(0,Pr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,l0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Pr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=kc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Oo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Dp,"getJsonPointer")});var p0=v((O7,aI)=>{aI.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 h0=v((P7,d0)=>{"use strict";var cI={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};d0.exports={HEX:cI}});var O0=v((E7,S0)=>{"use strict";var{HEX:uI}=h0();function b0(e){if(_0(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:fI(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(b0,"normalizeIPv4");function Vp(e,t=!1){let r="",n=!0;for(let i of e){if(uI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Vp,"stringArrayToHexStripped");function lI(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=Vp(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(Vp(i))),r.address=n.join(""),r}o(lI,"getIPV6");function v0(e,t={}){if(_0(e,":")<2)return{host:e,isIPV6:!1};let r=lI(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(v0,"normalizeIPv6");function fI(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(fI,"stripLeadingZeros");function _0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(_0,"findToken");var m0=/^\.\.?\//u,g0=/^\/\.(?:\/|$)/u,y0=/^\/\.\.(?:\/|$)/u,pI=/^\/?(?:.|\n)*?(?=\/|$)/u;function dI(e){let t=[];for(;e.length;)if(e.match(m0))e=e.replace(m0,"");else if(e.match(g0))e=e.replace(g0,"/");else if(e.match(y0))e=e.replace(y0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(pI);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(dI,"removeDotSegments");function hI(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(hI,"normalizeComponentEncoding");function mI(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=b0(n);if(i.isIPV4)n=i.host;else{let s=v0(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(mI,"recomposeAuthority");S0.exports={recomposeAuthority:mI,normalizeComponentEncoding:hI,removeDotSegments:dI,normalizeIPv4:b0,normalizeIPv6:v0,stringArrayToHexStripped:Vp}});var A0=v((w7,x0)=>{"use strict";var gI=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,yI=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function P0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(P0,"isSecure");function E0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(E0,"httpParse");function $0(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($0,"httpSerialize");function bI(e){return e.secure=P0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(bI,"wsParse");function vI(e){if((e.port===(P0(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(vI,"wsSerialize");function _I(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(yI);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=Bp[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(_I,"urnParse");function SI(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Bp[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(SI,"urnSerialize");function OI(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!gI.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(OI,"urnuuidParse");function PI(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(PI,"urnuuidSerialize");var w0={scheme:"http",domainHost:!0,parse:E0,serialize:$0},EI={scheme:"https",domainHost:w0.domainHost,parse:E0,serialize:$0},Mc={scheme:"ws",domainHost:!0,parse:bI,serialize:vI},$I={scheme:"wss",domainHost:Mc.domainHost,parse:Mc.parse,serialize:Mc.serialize},wI={scheme:"urn",parse:_I,serialize:SI,skipNormalize:!0},xI={scheme:"urn:uuid",parse:OI,serialize:PI,skipNormalize:!0},Bp={http:w0,https:EI,ws:Mc,wss:$I,urn:wI,"urn:uuid":xI};x0.exports=Bp});var C0=v((A7,Dc)=>{"use strict";var{normalizeIPv6:AI,normalizeIPv4:II,removeDotSegments:Ms,recomposeAuthority:CI,normalizeComponentEncoding:qc}=O0(),Hp=A0();function TI(e,t){return typeof e=="string"?e=Hr(cn(e,t),t):typeof e=="object"&&(e=cn(Hr(e,t),t)),e}o(TI,"normalize");function RI(e,t,r){let n=Object.assign({scheme:"null"},r),i=I0(cn(e,n),cn(t,n),n,!0);return Hr(i,{...n,skipEscape:!0})}o(RI,"resolve");function I0(e,t,r,n){let i={};return n||(e=cn(Hr(e,r),r),t=cn(Hr(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=Ms(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=Ms(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Ms(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=Ms(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(I0,"resolveComponents");function jI(e,t,r){return typeof e=="string"?(e=unescape(e),e=Hr(qc(cn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Hr(qc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Hr(qc(cn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Hr(qc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(jI,"equal");function Hr(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=Hp[(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=CI(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=Ms(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(Hr,"serialize");var NI=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function kI(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||NI[t])return!0;return!1}o(kI,"nonSimpleDomain");var MI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function cn(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(MI);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=II(n.host);if(u.isIPV4===!1){let l=AI(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=Hp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&kI(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(cn,"parse");var Up={SCHEMES:Hp,normalize:TI,resolve:RI,resolveComponents:I0,equal:jI,serialize:Hr,parse:cn};Dc.exports=Up;Dc.exports.default=Up;Dc.exports.fastUri=Up});var R0=v(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var T0=C0();T0.code='require("ajv/dist/runtime/uri").default';zp.default=T0});var Eo=v(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.CodeGen=ht.Name=ht.nil=ht.stringify=ht.str=ht._=ht.KeywordCxt=void 0;var qI=js();Object.defineProperty(ht,"KeywordCxt",{enumerable:!0,get:o(function(){return qI.KeywordCxt},"get")});var Po=se();Object.defineProperty(ht,"_",{enumerable:!0,get:o(function(){return Po._},"get")});Object.defineProperty(ht,"str",{enumerable:!0,get:o(function(){return Po.str},"get")});Object.defineProperty(ht,"stringify",{enumerable:!0,get:o(function(){return Po.stringify},"get")});Object.defineProperty(ht,"nil",{enumerable:!0,get:o(function(){return Po.nil},"get")});Object.defineProperty(ht,"Name",{enumerable:!0,get:o(function(){return Po.Name},"get")});Object.defineProperty(ht,"CodeGen",{enumerable:!0,get:o(function(){return Po.CodeGen},"get")});var DI=Nc(),q0=Ns(),LI=yp(),qs=ks(),FI=se(),Ds=Cs(),Lc=Is(),Zp=he(),j0=p0(),VI=R0(),D0=o((e,t)=>new RegExp(e,t),"defaultRegExp");D0.code="new RegExp";var BI=["removeAdditional","useDefaults","coerceTypes"],HI=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),UI={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."},zI={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},N0=200;function GI(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,E,w,T,I,C,ae,J,Ve,$e;let X=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,R=k===!0||k===void 0?1:k||0,D=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:D0,Y=(i=e.uriResolver)!==null&&i!==void 0?i:VI.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:D}:{optimize:R,regExp:D},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:N0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:N0,meta:(E=e.meta)!==null&&E!==void 0?E:!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:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(J=e.validateFormats)!==null&&J!==void 0?J:!0,unicodeRegExp:(Ve=e.unicodeRegExp)!==null&&Ve!==void 0?Ve:!0,int32range:($e=e.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Y}}o(GI,"requiredOptions");var Wp=class Wp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...GI(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new FI.ValueScope({scope:{},prefixes:HI,es5:r,lines:n}),this.logger=JI(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,LI.getRules)(),k0.call(this,UI,t,"NOT SUPPORTED"),k0.call(this,zI,t,"DEPRECATED","warn"),this._metaOpts=YI.call(this),t.formats&&WI.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&KI.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),ZI.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=j0;n==="id"&&(i={...j0},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 q0.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,Ds.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=M0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new qs.SchemaEnv({schema:{},schemaId:n});if(r=qs.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=M0.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,Ds.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(eC.call(this,n,r),!r)return(0,Zp.eachItem)(n,s=>Gp.call(this,s)),this;rC.call(this,r);let i={...r,type:(0,Lc.getJSONTypes)(r.type),schemaType:(0,Lc.getJSONTypes)(r.schemaType)};return(0,Zp.eachItem)(n,i.type.length===0?s=>Gp.call(this,s,i):s=>i.type.forEach(a=>Gp.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]=L0(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,Ds.normalizeId)(a||n);let l=Ds.getSchemaRefs.call(this,t,n);return u=new qs.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):qs.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{qs.compileSchema.call(this,t)}finally{this.opts=r}}};o(Wp,"Ajv");var Ls=Wp;Ls.ValidationError=DI.default;Ls.MissingRefError=q0.default;ht.default=Ls;function k0(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(k0,"checkOptions");function M0(e){return e=(0,Ds.normalizeId)(e),this.schemas[e]||this.refs[e]}o(M0,"getSchEnv");function ZI(){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(ZI,"addInitialSchemas");function WI(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(WI,"addInitialFormats");function KI(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(KI,"addInitialKeywords");function YI(){let e={...this.opts};for(let t of BI)delete e[t];return e}o(YI,"getMetaSchemaOptions");var QI={log(){},warn(){},error(){}};function JI(e){if(e===!1)return QI;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(JI,"getLogger");var XI=/^[a-z_$][a-z0-9_$:-]*$/i;function eC(e,t){let{RULES:r}=this;if((0,Zp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!XI.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(eC,"checkKeyword");function Gp(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,Lc.getJSONTypes)(t.type),schemaType:(0,Lc.getJSONTypes)(t.schemaType)}};t.before?tC.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(Gp,"addRule");function tC(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(tC,"addBeforeRule");function rC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=L0(t)),e.validateSchema=this.compile(t,!0))}o(rC,"keywordMetaschema");var nC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function L0(e){return{anyOf:[e,nC]}}o(L0,"schemaOrData")});var Fs=v(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.callRef=Pi.getValidate=void 0;var iC=Ns(),F0=ar(),Mt=se(),$o=sr(),V0=ks(),Fc=he(),oC={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=V0.resolveRef.call(u,l,i,r);if(p===void 0)throw new iC.default(n.opts.uriResolver,i,r);if(p instanceof V0.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Vc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Vc(e,(0,Mt._)`${y}.validate`,l,l.$async)}function d(y){let b=B0(e,y);Vc(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=e.subschema({schema:y,dataTypes:[],schemaPath:Mt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(E),e.ok(g)}}};function B0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Mt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(B0,"getValidate");Pi.getValidate=B0;function Vc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?$o.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,F0.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,F0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Mt._)`${y}.errors`;i.assign($o.default.vErrors,(0,Mt._)`${$o.default.vErrors} === null ? ${b} : ${$o.default.vErrors}.concat(${b})`),i.assign($o.default.errors,(0,Mt._)`${$o.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=Fc.mergeEvaluated.props(i,g.props,s.props));else{let E=i.var("props",(0,Mt._)`${y}.evaluated.props`);s.props=Fc.mergeEvaluated.props(i,E,s.props,Mt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=Fc.mergeEvaluated.items(i,g.items,s.items));else{let E=i.var("items",(0,Mt._)`${y}.evaluated.items`);s.items=Fc.mergeEvaluated.items(i,E,s.items,Mt.Name)}}o(h,"addEvaluatedFrom")}o(Vc,"callRef");Pi.callRef=Vc;Pi.default=oC});var H0=v(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var sC=Fs(),aC=["$schema","id","$defs",{keyword:"$comment"},"definitions",sC.default];Kp.default=aC});var U0=v(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Yp=Eo(),cC=se(),Cn=cC.operators,Qp={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Cn.LTE,fail:Cn.GT},{okStr:"<",ok:Cn.LT,fail:Cn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Cn.GTE,fail:Cn.LT},{okStr:">",ok:Cn.GT,fail:Cn.LTE}]}},uC={message:o(e=>Yp.str`must be ${Jp(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Yp._`{comparison: ${Jp(e).okStr}, limit: ${e.schemaCode}}`,"params")},lC={keyword:Object.keys(Qp),type:"number",schemaType:"number",$data:!0,error:uC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Yp._`${t} ${Jp(e).fail} ${r} || isNaN(${t})`)}};function Jp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Qp[r].exclusive]?1:0;return Qp[r].ops[n]}o(Jp,"kwdOp");Xp.default=lC});var G0=v(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var z0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},fC={keyword:Object.keys(z0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=z0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ed.default=fC});var rd=v(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var Vs=se(),pC={message:o(({schemaCode:e})=>(0,Vs.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Vs._)`{multipleOf: ${e}}`,"params")},dC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:pC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Vs._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Vs._)`${a} !== parseInt(${a})`;e.fail$data((0,Vs._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};td.default=dC});var W0=v(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});function Z0(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(Z0,"ucs2length");nd.default=Z0;Z0.code='require("ajv/dist/runtime/ucs2length").default'});var od=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var Ei=se(),hC=he(),mC=W0(),gC={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")},yC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gC,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,hC.useFunc)(e.gen,mC.default)}(${r})`;e.fail$data((0,Ei._)`${a} ${s} ${n}`)}};id.default=yC});var ad=v(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var bC=ar(),Bc=se(),vC={message:o(({schemaCode:e})=>(0,Bc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Bc._)`{pattern: ${e}}`,"params")},_C={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:vC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Bc._)`(new RegExp(${i}, ${a}))`:(0,bC.usePattern)(e,n);e.fail$data((0,Bc._)`!${c}.test(${t})`)}};sd.default=_C});var ud=v(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var Bs=se(),SC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Bs.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Bs._)`{limit: ${e}}`,"params")},OC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:SC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Bs.operators.GT:Bs.operators.LT;e.fail$data((0,Bs._)`Object.keys(${r}).length ${i} ${n}`)}};cd.default=OC});var fd=v(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Hs=ar(),Us=se(),PC=he(),EC={message:o(({params:{missingProperty:e}})=>(0,Us.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Us._)`{missingProperty: ${e}}`,"params")},$C={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,E=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,PC.checkStrictMode)(a,E,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Us.nil,f);else for(let h of r)(0,Hs.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,Hs.checkMissingProp)(e,r,h)),(0,Hs.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Hs.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,Hs.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Us.not)(y),()=>{e.error(),t.break()})},Us.nil)}o(d,"loopUntilMissing")}};ld.default=$C});var dd=v(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var zs=se(),wC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,zs.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,zs._)`{limit: ${e}}`,"params")},xC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:wC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?zs.operators.GT:zs.operators.LT;e.fail$data((0,zs._)`${r}.length ${i} ${n}`)}};pd.default=xC});var Hc=v(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var K0=$p();K0.code='require("ajv/dist/runtime/equal").default';hd.default=K0});var yd=v(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var md=Is(),mt=se(),AC=he(),IC=Hc(),CC={message:o(({params:{i:e,j:t}})=>(0,mt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,mt._)`{i: ${e}, j: ${t}}`,"params")},TC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:CC,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,md.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,mt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,mt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,mt._)`${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"),E=(0,md.checkDataTypes)(l,g,c.opts.strictNumbers,md.DataType.Wrong),w=t.const("indices",(0,mt._)`{}`);t.for((0,mt._)`;${y}--;`,()=>{t.let(g,(0,mt._)`${r}[${y}]`),t.if(E,(0,mt._)`continue`),l.length>1&&t.if((0,mt._)`typeof ${g} == "string"`,(0,mt._)`${g} += "_"`),t.if((0,mt._)`typeof ${w}[${g}] == "number"`,()=>{t.assign(b,(0,mt._)`${w}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,mt._)`${w}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,AC.useFunc)(t,IC.default),E=t.name("outer");t.label(E).for((0,mt._)`;${y}--;`,()=>t.for((0,mt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,mt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(E)})))}o(h,"loopN2")}};gd.default=TC});var _d=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var bd=se(),RC=he(),jC=Hc(),NC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,bd._)`{allowedValue: ${e}}`,"params")},kC={keyword:"const",$data:!0,error:NC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,bd._)`!${(0,RC.useFunc)(t,jC.default)}(${r}, ${i})`):e.fail((0,bd._)`${s} !== ${r}`)}};vd.default=kC});var Od=v(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var Gs=se(),MC=he(),qC=Hc(),DC={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Gs._)`{allowedValues: ${e}}`,"params")},LC={keyword:"enum",schemaType:"array",$data:!0,error:DC,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,MC.useFunc)(t,qC.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,Gs.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,Gs._)`${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,Gs._)`${l()}(${r}, ${h}[${y}])`:(0,Gs._)`${r} === ${b}`}o(d,"equalCode")}};Sd.default=LC});var Y0=v(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var FC=U0(),VC=G0(),BC=rd(),HC=od(),UC=ad(),zC=ud(),GC=fd(),ZC=dd(),WC=yd(),KC=_d(),YC=Od(),QC=[FC.default,VC.default,BC.default,HC.default,UC.default,zC.default,GC.default,ZC.default,WC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},KC.default,YC.default];Pd.default=QC});var $d=v(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.validateAdditionalItems=void 0;var $i=se(),Ed=he(),JC={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")},XC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:JC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ed.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Q0(e,n)}};function Q0(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,Ed.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:Ed.Type.Num},l),a.allErrors||r.if((0,$i.not)(l),()=>r.break())})}o(u,"validateItems")}o(Q0,"validateAdditionalItems");Zs.validateAdditionalItems=Q0;Zs.default=XC});var wd=v(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.validateTuple=void 0;var J0=se(),Uc=he(),eT=ar(),tT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return X0(e,"additionalItems",t);r.items=!0,!(0,Uc.alwaysValidSchema)(r,t)&&e.ok((0,eT.validateArray)(e))}};function X0(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=Uc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,J0._)`${s}.length`);r.forEach((f,d)=>{(0,Uc.alwaysValidSchema)(c,f)||(n.if((0,J0._)`${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,Uc.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(X0,"validateTuple");Ws.validateTuple=X0;Ws.default=tT});var ev=v(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var rT=wd(),nT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,rT.validateTuple)(e,"items"),"code")};xd.default=nT});var rv=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var tv=se(),iT=he(),oT=ar(),sT=$d(),aT={message:o(({params:{len:e}})=>(0,tv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,tv._)`{limit: ${e}}`,"params")},cT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:aT,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,iT.alwaysValidSchema)(n,t)&&(i?(0,sT.validateAdditionalItems)(e,i):e.ok((0,oT.validateArray)(e)))}};Ad.default=cT});var nv=v(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var ur=se(),zc=he(),uT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ur.str)`must contain at least ${e} valid item(s)`:(0,ur.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,ur._)`{minContains: ${e}}`:(0,ur._)`{minContains: ${e}, maxContains: ${t}}`,"params")},lT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uT,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,ur._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,zc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,zc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,zc.alwaysValidSchema)(s,r)){let b=(0,ur._)`${p} >= ${a}`;c!==void 0&&(b=(0,ur._)`${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,ur._)`${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=>{e.subschema({keyword:"contains",dataProp:E,dataPropType:zc.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,ur._)`${b}++`),c===void 0?t.if((0,ur._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,ur._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,ur._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};Id.default=lT});var Gc=v(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.validateSchemaDeps=Ur.validatePropertyDeps=Ur.error=void 0;var Cd=se(),fT=he(),Ks=ar();Ur.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Cd.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Cd._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
- deps: ${r}}`,"params")};var uT={keyword:"dependencies",type:"object",schemaType:"object",error:Ur.error,code(e){let[t,r]=lT(e);tv(e,t),rv(e,r)}};function lT({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(lT,"splitDependencies");function tv(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,Zs.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,Zs.checkReportMissingProp)(e,l)}):(r.if((0,wd._)`${u} && (${(0,Zs.checkMissingProp)(e,c,s)})`),(0,Zs.reportMissingProp)(e,s),r.else())}}o(tv,"validatePropertyDeps");Ur.validatePropertyDeps=tv;function rv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,cT.alwaysValidSchema)(s,t[c])||(r.if((0,Zs.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(rv,"validateSchemaDeps");Ur.validateSchemaDeps=rv;Ur.default=uT});var iv=v(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var nv=se(),fT=he(),pT={message:"property name must be valid",params:o(({params:e})=>(0,nv._)`{propertyName: ${e.propertyName}}`,"params")},dT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:pT,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,fT.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,nv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};xd.default=dT});var Id=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Uc=ar(),Er=se(),hT=sr(),zc=he(),mT={message:"must NOT have additional properties",params:o(({params:e})=>(0,Er._)`{additionalProperty: ${e.additionalProperty}}`,"params")},gT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:mT,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,zc.alwaysValidSchema)(a,r))return;let l=(0,Uc.allSchemaProperties)(n.properties),p=(0,Uc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Er._)`${s} === ${hT.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 E;if(l.length>8){let w=(0,zc.schemaRefOrVal)(a,n.properties,"properties");E=(0,Uc.isOwnProperty)(t,w,g)}else l.length?E=(0,Er.or)(...l.map(w=>(0,Er._)`${g} === ${w}`)):E=Er.nil;return p.length&&(E=(0,Er.or)(E,...p.map(w=>(0,Er._)`${(0,Uc.usePattern)(e,w)}.test(${g})`))),(0,Er.not)(E)}o(d,"isAdditional");function h(g){t.code((0,Er._)`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,zc.alwaysValidSchema)(a,r)){let E=t.name("valid");u.removeAdditional==="failing"?(b(g,E,!1),t.if((0,Er.not)(E),()=>{e.reset(),h(g)})):(b(g,E),c||t.if((0,Er.not)(E),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,E,w){let T={keyword:"additionalProperties",dataProp:g,dataPropType:zc.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,E)}o(b,"applyAdditionalSchema")}};Ad.default=gT});var av=v(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var yT=Ts(),ov=ar(),Cd=he(),sv=Id(),bT={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&&sv.default.code(new yT.KeywordCxt(s,sv.default,"additionalProperties"));let a=(0,ov.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Cd.mergeEvaluated.props(t,(0,Cd.toHash)(a),s.props));let c=a.filter(f=>!(0,Cd.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,ov.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")}};Td.default=bT});var fv=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var cv=ar(),Gc=se(),uv=he(),lv=he(),vT={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,cv.allSchemaProperties)(r),u=c.filter(b=>(0,uv.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 Gc.Name)&&(s.props=(0,lv.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,uv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,Gc._)`${(0,cv.usePattern)(e,b)}.test(${g})`,()=>{let E=u.includes(b);E||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:lv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,Gc._)`${f}[${g}]`,!0):!E&&!s.allErrors&&t.if((0,Gc.not)(p),()=>t.break())})})}o(y,"validateProperties")}};jd.default=vT});var pv=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var _T=he(),ST={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,_T.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Rd.default=ST});var dv=v(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var PT=ar(),OT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:PT.validateUnion,error:{message:"must match a schema in anyOf"}};Nd.default=OT});var hv=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var Zc=se(),ET=he(),$T={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Zc._)`{passingSchemas: ${e.passing}}`,"params")},wT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:$T,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,ET.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Zc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Zc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Zc.Name)})})}o(l,"validateOneOf")}};kd.default=wT});var mv=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var xT=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,xT.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Md.default=AT});var bv=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var Wc=se(),yv=he(),IT={message:o(({params:e})=>(0,Wc.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Wc._)`{failingKeyword: ${e.ifClause}}`,"params")},CT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IT,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,yv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=gv(n,"then"),s=gv(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,Wc.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,Wc._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function gv(e,t){let r=e.schema[t];return r!==void 0&&!(0,yv.alwaysValidSchema)(e,r)}o(gv,"hasSchema");qd.default=CT});var vv=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var TT=he(),jT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,TT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Dd.default=jT});var Fd=v(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var RT=Sd(),NT=Q0(),kT=Pd(),MT=X0(),qT=ev(),DT=Hc(),LT=iv(),FT=Id(),VT=av(),BT=fv(),HT=pv(),UT=dv(),zT=hv(),GT=mv(),ZT=bv(),WT=vv();function KT(e=!1){let t=[HT.default,UT.default,zT.default,GT.default,ZT.default,WT.default,LT.default,FT.default,DT.default,VT.default,BT.default];return e?t.push(NT.default,MT.default):t.push(RT.default,kT.default),t.push(qT.default),t}o(KT,"getApplicator");Ld.default=KT});var _v=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var Xe=se(),YT={message:o(({schemaCode:e})=>(0,Xe.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Xe._)`{format: ${e}}`,"params")},QT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:YT,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,Xe._)`${y}[${a}]`),g=r.let("fType"),E=r.let("format");r.if((0,Xe._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,Xe._)`${b}.type || "string"`).assign(E,(0,Xe._)`${b}.validate`),()=>r.assign(g,(0,Xe._)`"string"`).assign(E,b)),e.fail$data((0,Xe.or)(w(),T()));function w(){return u.strictSchema===!1?Xe.nil:(0,Xe._)`${a} && !${E}`}o(w,"unknownFmt");function T(){let I=p.$async?(0,Xe._)`(${b}.async ? await ${E}(${n}) : ${E}(${n}))`:(0,Xe._)`${E}(${n})`,C=(0,Xe._)`(typeof ${E} == "function" ? ${I} : ${E}.test(${n}))`;return(0,Xe._)`${E} && ${E} !== 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,E]=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 ae=C instanceof RegExp?(0,Xe.regexpCode)(C):u.code.formats?(0,Xe._)`${u.code.formats}${(0,Xe.getProperty)(s)}`:void 0,J=r.scopeValue("formats",{key:s,ref:C,code:ae});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,Xe._)`${J}.validate`]:["string",C,J]}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,Xe._)`await ${E}(${n})`}return typeof g=="function"?(0,Xe._)`${E}(${n})`:(0,Xe._)`${E}.test(${n})`}o(I,"validCondition")}o(h,"validateFormat")}};Vd.default=QT});var Hd=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var JT=_v(),XT=[JT.default];Bd.default=XT});var Sv=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var ej=F0(),tj=Z0(),rj=Fd(),nj=Hd(),ij=["title","description","default"],oj=[ej.default,tj.default,rj.default(),nj.default,ij];Ud.default=oj});var Ov=v(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.DiscrError=void 0;var Pv;(function(e){e.Tag="tag",e.Mapping="mapping"})(Pv||(Kc.DiscrError=Pv={}))});var Zd=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var $o=se(),zd=Ov(),Ev=Rs(),sj=js(),aj=he(),cj={message:o(({params:{discrError:e,tagName:t}})=>e===zd.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,$o._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},uj={keyword:"discriminator",type:"object",schemaType:"object",error:cj,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,$o._)`${r}${(0,$o.getProperty)(c)}`);t.if((0,$o._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:zd.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,$o._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:zd.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,$o.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=E(i),g=!0;for(let I=0;I<a.length;I++){let C=a[I];if(C!=null&&C.$ref&&!(0,aj.schemaHasRulesButRef)(C,s.self.RULES)){let J=C.$ref;if(C=Ev.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,J),C instanceof Ev.SchemaEnv&&(C=C.schema),C===void 0)throw new sj.default(s.opts.uriResolver,s.baseId,J)}let ae=(h=C==null?void 0:C.properties)===null||h===void 0?void 0:h[c];if(typeof ae!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||E(C)),w(ae,I)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function E({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 ae of I.enum)T(ae,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")}};Gd.default=uj});var $v=v((VV,lj)=>{lj.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 Av=v((ot,xv)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.CodeGen=ot.Name=ot.nil=ot.stringify=ot.str=ot._=ot.KeywordCxt=void 0;var fj=Oo(),pj=Sv(),dj=Zd(),wv=$v(),hj=["/properties"],Yc="http://json-schema.org/draft-04/schema",Wd=class Wd extends fj.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),pj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(dj.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(wv,hj):wv;this.addMetaSchema(t,Yc,!1),this.refs["http://json-schema.org/schema"]=Yc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Yc)?Yc:void 0)}};o(Wd,"Ajv");var Qc=Wd;xv.exports=ot=Qc;Object.defineProperty(ot,"__esModule",{value:!0});ot.default=Qc;var mj=Oo();Object.defineProperty(ot,"KeywordCxt",{enumerable:!0,get:o(function(){return mj.KeywordCxt},"get")});var wo=Oo();Object.defineProperty(ot,"_",{enumerable:!0,get:o(function(){return wo._},"get")});Object.defineProperty(ot,"str",{enumerable:!0,get:o(function(){return wo.str},"get")});Object.defineProperty(ot,"stringify",{enumerable:!0,get:o(function(){return wo.stringify},"get")});Object.defineProperty(ot,"nil",{enumerable:!0,get:o(function(){return wo.nil},"get")});Object.defineProperty(ot,"Name",{enumerable:!0,get:o(function(){return wo.Name},"get")});Object.defineProperty(ot,"CodeGen",{enumerable:!0,get:o(function(){return wo.CodeGen},"get")})});var Iv=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var gj={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Kd.default=gj});var Cv=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var yj=Iv(),bj=Ds(),vj=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",yj.default,bj.default];Yd.default=vj});var Tv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var Jc=se(),Tn=Jc.operators,Xc={maximum:{okStr:"<=",ok:Tn.LTE,fail:Tn.GT},minimum:{okStr:">=",ok:Tn.GTE,fail:Tn.LT},exclusiveMaximum:{okStr:"<",ok:Tn.LT,fail:Tn.GTE},exclusiveMinimum:{okStr:">",ok:Tn.GT,fail:Tn.LTE}},_j={message:o(({keyword:e,schemaCode:t})=>(0,Jc.str)`must be ${Xc[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Jc._)`{comparison: ${Xc[e].okStr}, limit: ${t}}`,"params")},Sj={keyword:Object.keys(Xc),type:"number",schemaType:"number",$data:!0,error:_j,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Jc._)`${r} ${Xc[t].fail} ${n} || isNaN(${r})`)}};Qd.default=Sj});var jv=v(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var Pj=Tv(),Oj=Jp(),Ej=td(),$j=nd(),wj=od(),xj=ad(),Aj=ud(),Ij=dd(),Cj=gd(),Tj=bd(),jj=[Pj.default,Oj.default,Ej.default,$j.default,wj.default,xj.default,Aj.default,Ij.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Cj.default,Tj.default];Jd.default=jj});var eh=v(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.dynamicAnchor=void 0;var Xd=se(),Rj=sr(),Rv=Rs(),Nj=Ds(),kj={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Nv(e,e.schema),"code")};function Nv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Xd._)`${Rj.default.dynamicAnchors}${(0,Xd.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:Mj(e);r.if((0,Xd._)`!${i}`,()=>r.assign(i,s))}o(Nv,"dynamicAnchor");Ws.dynamicAnchor=Nv;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 Rv.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Rv.compileSchema.call(n,l),(0,Nj.getValidate)(e,l)}o(Mj,"_getValidate");Ws.default=kj});var th=v(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.dynamicRef=void 0;var kv=se(),qj=sr(),Mv=Ds(),Dj={keyword:"$dynamicRef",schemaType:"string",code:o(e=>qv(e,e.schema),"code")};function qv(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,kv._)`${qj.default.dynamicAnchors}${(0,kv.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,Mv.callRef)(e,u),r.let(l,!0)}):()=>(0,Mv.callRef)(e,u)}o(c,"_callRef")}o(qv,"dynamicRef");Ks.dynamicRef=qv;Ks.default=Dj});var Dv=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var Lj=eh(),Fj=he(),Vj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Lj.dynamicAnchor)(e,""):(0,Fj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};rh.default=Vj});var Lv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var Bj=th(),Hj={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,Bj.dynamicRef)(e,e.schema),"code")};nh.default=Hj});var Fv=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var Uj=eh(),zj=th(),Gj=Dv(),Zj=Lv(),Wj=[Uj.default,zj.default,Gj.default,Zj.default];ih.default=Wj});var Bv=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var Vv=Hc(),Kj={keyword:"dependentRequired",type:"object",schemaType:"object",error:Vv.error,code:o(e=>(0,Vv.validatePropertyDeps)(e),"code")};oh.default=Kj});var Hv=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var Yj=Hc(),Qj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Yj.validateSchemaDeps)(e),"code")};sh.default=Qj});var Uv=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Jj=he(),Xj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Jj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ah.default=Xj});var zv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var eR=Bv(),tR=Hv(),rR=Uv(),nR=[eR.default,tR.default,rR.default];ch.default=nR});var Zv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var jn=se(),Gv=he(),iR=sr(),oR={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,jn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},sR={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:oR,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 jn.Name?t.if((0,jn._)`${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,jn._)`${i} === ${iR.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Gv.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Gv.Type.Str},d),a||t.if((0,jn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,jn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,jn._)`${d} !== ${y}`);return(0,jn.and)(...h)}o(p,"unevaluatedStatic")}};uh.default=sR});var Kv=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var wi=se(),Wv=he(),aR={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")},cR={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:aR,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,Wv.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:Wv.Type.Num},u),i.allErrors||t.if((0,wi.not)(u),()=>t.break())})}o(c,"validateItems")}};lh.default=cR});var Yv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var uR=Zv(),lR=Kv(),fR=[uR.default,lR.default];fh.default=fR});var Qv=v(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.contentVocabulary=xo.metadataVocabulary=void 0;xo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];xo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Xv=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var pR=Cv(),dR=jv(),hR=Fd(),mR=Fv(),gR=zv(),yR=Yv(),bR=Hd(),Jv=Qv(),vR=[mR.default,pR.default,dR.default,(0,hR.default)(!0),bR.default,Jv.metadataVocabulary,Jv.contentVocabulary,gR.default,yR.default];ph.default=vR});var e_=v((mB,_R)=>{_R.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 t_=v((gB,SR)=>{SR.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 r_=v((yB,PR)=>{PR.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 n_=v((bB,OR)=>{OR.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 i_=v((vB,ER)=>{ER.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 o_=v((_B,$R)=>{$R.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 s_=v((SB,wR)=>{wR.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 a_=v((PB,xR)=>{xR.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 c_=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var AR=e_(),IR=t_(),CR=r_(),TR=n_(),jR=i_(),RR=o_(),NR=s_(),kR=a_(),MR=["/properties"];function qR(e){return[AR,IR,CR,TR,jR,t(this,RR),NR,t(this,kR)].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(qR,"addMetaSchema2020");dh.default=qR});var u_=v((ke,mh)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.MissingRefError=ke.ValidationError=ke.CodeGen=ke.Name=ke.nil=ke.stringify=ke.str=ke._=ke.KeywordCxt=ke.Ajv2020=void 0;var DR=Oo(),LR=Xv(),FR=Zd(),VR=c_(),hh="https://json-schema.org/draft/2020-12/schema",gh=class gh extends DR.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),LR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(FR.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(VR.default.call(this,t),this.refs["http://json-schema.org/schema"]=hh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hh)?hh:void 0)}};o(gh,"Ajv2020");var Ao=gh;ke.Ajv2020=Ao;mh.exports=ke=Ao;mh.exports.Ajv2020=Ao;Object.defineProperty(ke,"__esModule",{value:!0});ke.default=Ao;var BR=Ts();Object.defineProperty(ke,"KeywordCxt",{enumerable:!0,get:o(function(){return BR.KeywordCxt},"get")});var Io=se();Object.defineProperty(ke,"_",{enumerable:!0,get:o(function(){return Io._},"get")});Object.defineProperty(ke,"str",{enumerable:!0,get:o(function(){return Io.str},"get")});Object.defineProperty(ke,"stringify",{enumerable:!0,get:o(function(){return Io.stringify},"get")});Object.defineProperty(ke,"nil",{enumerable:!0,get:o(function(){return Io.nil},"get")});Object.defineProperty(ke,"Name",{enumerable:!0,get:o(function(){return Io.Name},"get")});Object.defineProperty(ke,"CodeGen",{enumerable:!0,get:o(function(){return Io.CodeGen},"get")});var HR=Tc();Object.defineProperty(ke,"ValidationError",{enumerable:!0,get:o(function(){return HR.default},"get")});var UR=js();Object.defineProperty(ke,"MissingRefError",{enumerable:!0,get:o(function(){return UR.default},"get")})});var l_=v((wB,zR)=>{zR.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 f_=v((xB,GR)=>{GR.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 p_=v((AB,ZR)=>{ZR.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 d_=v((IB,WR)=>{WR.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 h_=v((ut,Co)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.openapi=ut.openapiV31=ut.openapiV3=ut.openapiV2=ut.openapiV1=void 0;ut.openapiV1=l_();ut.openapiV2=f_();ut.openapiV3=p_();ut.openapiV31=d_();ut.openapi={v1:ut.openapiV1,v2:ut.openapiV2,v3:ut.openapiV3,v31:ut.openapiV31};ut.default=ut.openapi;typeof Co=="object"&&typeof Co.exports=="object"&&(Co.exports=Object.assign(Co.exports.default,Co.exports))});var vh=v((CB,m_)=>{"use strict";var KR=pc(),{ono:YR}=_r(),QR=Av(),JR=u_(),{openapi:yh}=h_();m_.exports=XR;function XR(e){let t,r;if(e.swagger)r=yh.v2,t=bh();else if(e.openapi.startsWith("3.1")){r=yh.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=bh(!1)}else r=yh.v3,t=bh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
- `+eN(i);throw YR.syntax(i,{details:i},s)}}o(XR,"validateSchema");function bh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new QR(t):new JR(t)}o(bh,"initializeAjv");function eN(e,t){t=t||" ";let r="";for(let n of e)r+=KR.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}o(eN,"formatAjvError")});var y_=v((jB,g_)=>{"use strict";g_.exports=["get","put","post","delete","options","head","patch"]});var Ph=v((RB,S_)=>{"use strict";var tN=pc(),{ono:St}=_r(),rN=y_(),_h=["array","boolean","integer","number","string"],v_=["array","boolean","integer","number","string","object","null",void 0];S_.exports=nN;function nN(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&&iN(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;__(s,a)}}o(nN,"validateSpec");function iN(e,t,r,n){for(let i of rN){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 St.syntax(`Validation failed. Duplicate operation id '${c}'`);oN(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;uN(l,p||{},f)}}}}o(iN,"validatePath");function oN(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{b_(s)}catch(u){throw St.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{b_(a)}catch(u){throw St.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());sN(c,i),aN(c,r,i),cN(c,e,n,i)}o(oN,"validateParameters");function sN(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw St.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw St.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(sN,"validateBodyParameters");function aN(e,t,r){let n=t.match(tN.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw St.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 St.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 St.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 St.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(aN,"validatePathParameters");function cN(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=v_;break;case"formData":a=i,c=_h.concat("file");break;default:a=i,c=_h}if(Sh(a,s,c),__(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 St.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(cN,"validateParameterTypes");function b_(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 St.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(b_,"checkForDuplicates");function uN(e,t,r){if(e!=="default"&&(e<100||e>599))throw St.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;Sh(s,a,_h)}if(t.schema){let i=v_.concat("file");if(i.indexOf(t.schema.type)===-1)throw St.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Sh(t.schema,r+"/schema",i)}}o(uN,"validateResponse");function Sh(e,t,r){if(r.indexOf(e.type)===-1)throw St.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw St.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Sh,"validateSchema");function __(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 St.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(__,"validateRequiredPropertiesExist")});var wr=v($r=>{"use strict";var{Ono:P_}=_r(),{stripHash:O_,toFileSystemPath:lN}=Ut(),To,Rn=$r.JSONParserError=(To=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,P_.extend(this)}},o(To,"JSONParserError"),To);Nn(Rn);var xi,E_=$r.JSONParserErrorGroup=(xi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${lN(t.$refs._root$Ref.path)}'`,P_.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 xi.getParserErrors(this.files)}},o(xi,"JSONParserErrorGroup"),xi);Nn(E_);var jo,fN=$r.ParserError=(jo=class extends Rn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(jo,"ParserError"),jo);Nn(fN);var Ro,pN=$r.UnmatchedParserError=(Ro=class extends Rn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Ro,"UnmatchedParserError"),Ro);Nn(pN);var No,dN=$r.ResolverError=(No=class extends Rn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(No,"ResolverError"),No);Nn(dN);var ko,hN=$r.UnmatchedResolverError=(ko=class extends Rn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(ko,"UnmatchedResolverError"),ko);Nn(hN);var Mo,mN=$r.MissingPointerError=(Mo=class extends Rn{constructor(t,r){super(`Token "${t}" does not exist.`,O_(r)),this.code="EMISSINGPOINTER"}},o(Mo,"MissingPointerError"),Mo);Nn(mN);var qo,gN=$r.InvalidPointerError=(qo=class extends Rn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,O_(r)),this.code="EINVALIDPOINTER"}},o(qo,"InvalidPointerError"),qo);Nn(gN);function Nn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Nn,"setErrorName");$r.isHandledError=function(e){return e instanceof Rn||e instanceof E_};$r.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var w_=v((qB,$_)=>{"use strict";var{ParserError:yN}=wr();$_.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 yN(r.message,e.url)}}else return t}}});var Ii=v((DB,Ai)=>{"use strict";function x_(e){return typeof e>"u"||e===null}o(x_,"isNothing");function bN(e){return typeof e=="object"&&e!==null}o(bN,"isObject");function vN(e){return Array.isArray(e)?e:x_(e)?[]:[e]}o(vN,"toArray");function _N(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(_N,"extend");function SN(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(SN,"repeat");function PN(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(PN,"isNegativeZero");Ai.exports.isNothing=x_;Ai.exports.isObject=bN;Ai.exports.toArray=vN;Ai.exports.repeat=SN;Ai.exports.isNegativeZero=PN;Ai.exports.extend=_N});var Do=v((FB,A_)=>{"use strict";function Ys(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(Ys,"YAMLException");Ys.prototype=Object.create(Error.prototype);Ys.prototype.constructor=Ys;Ys.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");A_.exports=Ys});var T_=v((BB,C_)=>{"use strict";var I_=Ii();function Oh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Oh,"Mark");Oh.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
13
+ deps: ${r}}`,"params")};var pT={keyword:"dependencies",type:"object",schemaType:"object",error:Ur.error,code(e){let[t,r]=dT(e);iv(e,t),ov(e,r)}};function dT({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(dT,"splitDependencies");function iv(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,Ks.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,Ks.checkReportMissingProp)(e,l)}):(r.if((0,Cd._)`${u} && (${(0,Ks.checkMissingProp)(e,c,s)})`),(0,Ks.reportMissingProp)(e,s),r.else())}}o(iv,"validatePropertyDeps");Ur.validatePropertyDeps=iv;function ov(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,fT.alwaysValidSchema)(s,t[c])||(r.if((0,Ks.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(ov,"validateSchemaDeps");Ur.validateSchemaDeps=ov;Ur.default=pT});var av=v(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var sv=se(),hT=he(),mT={message:"property name must be valid",params:o(({params:e})=>(0,sv._)`{propertyName: ${e.propertyName}}`,"params")},gT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mT,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,hT.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,sv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Td.default=gT});var jd=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Zc=ar(),Er=se(),yT=sr(),Wc=he(),bT={message:"must NOT have additional properties",params:o(({params:e})=>(0,Er._)`{additionalProperty: ${e.additionalProperty}}`,"params")},vT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:bT,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,Wc.alwaysValidSchema)(a,r))return;let l=(0,Zc.allSchemaProperties)(n.properties),p=(0,Zc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Er._)`${s} === ${yT.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 E;if(l.length>8){let w=(0,Wc.schemaRefOrVal)(a,n.properties,"properties");E=(0,Zc.isOwnProperty)(t,w,g)}else l.length?E=(0,Er.or)(...l.map(w=>(0,Er._)`${g} === ${w}`)):E=Er.nil;return p.length&&(E=(0,Er.or)(E,...p.map(w=>(0,Er._)`${(0,Zc.usePattern)(e,w)}.test(${g})`))),(0,Er.not)(E)}o(d,"isAdditional");function h(g){t.code((0,Er._)`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,Wc.alwaysValidSchema)(a,r)){let E=t.name("valid");u.removeAdditional==="failing"?(b(g,E,!1),t.if((0,Er.not)(E),()=>{e.reset(),h(g)})):(b(g,E),c||t.if((0,Er.not)(E),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,E,w){let T={keyword:"additionalProperties",dataProp:g,dataPropType:Wc.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,E)}o(b,"applyAdditionalSchema")}};Rd.default=vT});var lv=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var _T=js(),cv=ar(),Nd=he(),uv=jd(),ST={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&&uv.default.code(new _T.KeywordCxt(s,uv.default,"additionalProperties"));let a=(0,cv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Nd.mergeEvaluated.props(t,(0,Nd.toHash)(a),s.props));let c=a.filter(f=>!(0,Nd.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,cv.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")}};kd.default=ST});var hv=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var fv=ar(),Kc=se(),pv=he(),dv=he(),OT={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,fv.allSchemaProperties)(r),u=c.filter(b=>(0,pv.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 Kc.Name)&&(s.props=(0,dv.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,pv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,Kc._)`${(0,fv.usePattern)(e,b)}.test(${g})`,()=>{let E=u.includes(b);E||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:dv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,Kc._)`${f}[${g}]`,!0):!E&&!s.allErrors&&t.if((0,Kc.not)(p),()=>t.break())})})}o(y,"validateProperties")}};Md.default=OT});var mv=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var PT=he(),ET={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,PT.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"}};qd.default=ET});var gv=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var $T=ar(),wT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$T.validateUnion,error:{message:"must match a schema in anyOf"}};Dd.default=wT});var yv=v(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var Yc=se(),xT=he(),AT={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Yc._)`{passingSchemas: ${e.passing}}`,"params")},IT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:AT,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,xT.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Yc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Yc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Yc.Name)})})}o(l,"validateOneOf")}};Ld.default=IT});var bv=v(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var CT=he(),TT={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,CT.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Fd.default=TT});var Sv=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var Qc=se(),_v=he(),RT={message:o(({params:e})=>(0,Qc.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Qc._)`{failingKeyword: ${e.ifClause}}`,"params")},jT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:RT,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_v.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=vv(n,"then"),s=vv(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,Qc.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,Qc._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function vv(e,t){let r=e.schema[t];return r!==void 0&&!(0,_v.alwaysValidSchema)(e,r)}o(vv,"hasSchema");Vd.default=jT});var Ov=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var NT=he(),kT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,NT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Bd.default=kT});var Ud=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var MT=$d(),qT=ev(),DT=wd(),LT=rv(),FT=nv(),VT=Gc(),BT=av(),HT=jd(),UT=lv(),zT=hv(),GT=mv(),ZT=gv(),WT=yv(),KT=bv(),YT=Sv(),QT=Ov();function JT(e=!1){let t=[GT.default,ZT.default,WT.default,KT.default,YT.default,QT.default,BT.default,HT.default,VT.default,UT.default,zT.default];return e?t.push(qT.default,LT.default):t.push(MT.default,DT.default),t.push(FT.default),t}o(JT,"getApplicator");Hd.default=JT});var Pv=v(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Xe=se(),XT={message:o(({schemaCode:e})=>(0,Xe.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Xe._)`{format: ${e}}`,"params")},eR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:XT,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,Xe._)`${y}[${a}]`),g=r.let("fType"),E=r.let("format");r.if((0,Xe._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,Xe._)`${b}.type || "string"`).assign(E,(0,Xe._)`${b}.validate`),()=>r.assign(g,(0,Xe._)`"string"`).assign(E,b)),e.fail$data((0,Xe.or)(w(),T()));function w(){return u.strictSchema===!1?Xe.nil:(0,Xe._)`${a} && !${E}`}o(w,"unknownFmt");function T(){let I=p.$async?(0,Xe._)`(${b}.async ? await ${E}(${n}) : ${E}(${n}))`:(0,Xe._)`${E}(${n})`,C=(0,Xe._)`(typeof ${E} == "function" ? ${I} : ${E}.test(${n}))`;return(0,Xe._)`${E} && ${E} !== 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,E]=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 ae=C instanceof RegExp?(0,Xe.regexpCode)(C):u.code.formats?(0,Xe._)`${u.code.formats}${(0,Xe.getProperty)(s)}`:void 0,J=r.scopeValue("formats",{key:s,ref:C,code:ae});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,Xe._)`${J}.validate`]:["string",C,J]}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,Xe._)`await ${E}(${n})`}return typeof g=="function"?(0,Xe._)`${E}(${n})`:(0,Xe._)`${E}.test(${n})`}o(I,"validCondition")}o(h,"validateFormat")}};zd.default=eR});var Zd=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var tR=Pv(),rR=[tR.default];Gd.default=rR});var Ev=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var nR=H0(),iR=Y0(),oR=Ud(),sR=Zd(),aR=["title","description","default"],cR=[nR.default,iR.default,oR.default(),sR.default,aR];Wd.default=cR});var wv=v(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DiscrError=void 0;var $v;(function(e){e.Tag="tag",e.Mapping="mapping"})($v||(Jc.DiscrError=$v={}))});var Qd=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var wo=se(),Kd=wv(),xv=ks(),uR=Ns(),lR=he(),fR={message:o(({params:{discrError:e,tagName:t}})=>e===Kd.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,wo._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},pR={keyword:"discriminator",type:"object",schemaType:"object",error:fR,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,wo._)`${r}${(0,wo.getProperty)(c)}`);t.if((0,wo._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Kd.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,wo._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:Kd.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,wo.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=E(i),g=!0;for(let I=0;I<a.length;I++){let C=a[I];if(C!=null&&C.$ref&&!(0,lR.schemaHasRulesButRef)(C,s.self.RULES)){let J=C.$ref;if(C=xv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,J),C instanceof xv.SchemaEnv&&(C=C.schema),C===void 0)throw new uR.default(s.opts.uriResolver,s.baseId,J)}let ae=(h=C==null?void 0:C.properties)===null||h===void 0?void 0:h[c];if(typeof ae!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||E(C)),w(ae,I)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function E({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 ae of I.enum)T(ae,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")}};Yd.default=pR});var Av=v((UV,dR)=>{dR.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 Tv=v((ot,Cv)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.CodeGen=ot.Name=ot.nil=ot.stringify=ot.str=ot._=ot.KeywordCxt=void 0;var hR=Eo(),mR=Ev(),gR=Qd(),Iv=Av(),yR=["/properties"],Xc="http://json-schema.org/draft-04/schema",Jd=class Jd extends hR.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),mR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Iv,yR):Iv;this.addMetaSchema(t,Xc,!1),this.refs["http://json-schema.org/schema"]=Xc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Xc)?Xc:void 0)}};o(Jd,"Ajv");var eu=Jd;Cv.exports=ot=eu;Object.defineProperty(ot,"__esModule",{value:!0});ot.default=eu;var bR=Eo();Object.defineProperty(ot,"KeywordCxt",{enumerable:!0,get:o(function(){return bR.KeywordCxt},"get")});var xo=Eo();Object.defineProperty(ot,"_",{enumerable:!0,get:o(function(){return xo._},"get")});Object.defineProperty(ot,"str",{enumerable:!0,get:o(function(){return xo.str},"get")});Object.defineProperty(ot,"stringify",{enumerable:!0,get:o(function(){return xo.stringify},"get")});Object.defineProperty(ot,"nil",{enumerable:!0,get:o(function(){return xo.nil},"get")});Object.defineProperty(ot,"Name",{enumerable:!0,get:o(function(){return xo.Name},"get")});Object.defineProperty(ot,"CodeGen",{enumerable:!0,get:o(function(){return xo.CodeGen},"get")})});var Rv=v(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var vR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xd.default=vR});var jv=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var _R=Rv(),SR=Fs(),OR=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_R.default,SR.default];eh.default=OR});var Nv=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var tu=se(),Tn=tu.operators,ru={maximum:{okStr:"<=",ok:Tn.LTE,fail:Tn.GT},minimum:{okStr:">=",ok:Tn.GTE,fail:Tn.LT},exclusiveMaximum:{okStr:"<",ok:Tn.LT,fail:Tn.GTE},exclusiveMinimum:{okStr:">",ok:Tn.GT,fail:Tn.LTE}},PR={message:o(({keyword:e,schemaCode:t})=>(0,tu.str)`must be ${ru[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,tu._)`{comparison: ${ru[e].okStr}, limit: ${t}}`,"params")},ER={keyword:Object.keys(ru),type:"number",schemaType:"number",$data:!0,error:PR,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,tu._)`${r} ${ru[t].fail} ${n} || isNaN(${r})`)}};th.default=ER});var kv=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var $R=Nv(),wR=rd(),xR=od(),AR=ad(),IR=ud(),CR=fd(),TR=dd(),RR=yd(),jR=_d(),NR=Od(),kR=[$R.default,wR.default,xR.default,AR.default,IR.default,CR.default,TR.default,RR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},jR.default,NR.default];rh.default=kR});var ih=v(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.dynamicAnchor=void 0;var nh=se(),MR=sr(),Mv=ks(),qR=Fs(),DR={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>qv(e,e.schema),"code")};function qv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,nh._)`${MR.default.dynamicAnchors}${(0,nh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:LR(e);r.if((0,nh._)`!${i}`,()=>r.assign(i,s))}o(qv,"dynamicAnchor");Ys.dynamicAnchor=qv;function LR(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 Mv.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Mv.compileSchema.call(n,l),(0,qR.getValidate)(e,l)}o(LR,"_getValidate");Ys.default=DR});var oh=v(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.dynamicRef=void 0;var Dv=se(),FR=sr(),Lv=Fs(),VR={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Fv(e,e.schema),"code")};function Fv(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,Dv._)`${FR.default.dynamicAnchors}${(0,Dv.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,Lv.callRef)(e,u),r.let(l,!0)}):()=>(0,Lv.callRef)(e,u)}o(c,"_callRef")}o(Fv,"dynamicRef");Qs.dynamicRef=Fv;Qs.default=VR});var Vv=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var BR=ih(),HR=he(),UR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,BR.dynamicAnchor)(e,""):(0,HR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};sh.default=UR});var Bv=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var zR=oh(),GR={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,zR.dynamicRef)(e,e.schema),"code")};ah.default=GR});var Hv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var ZR=ih(),WR=oh(),KR=Vv(),YR=Bv(),QR=[ZR.default,WR.default,KR.default,YR.default];ch.default=QR});var zv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var Uv=Gc(),JR={keyword:"dependentRequired",type:"object",schemaType:"object",error:Uv.error,code:o(e=>(0,Uv.validatePropertyDeps)(e),"code")};uh.default=JR});var Gv=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var XR=Gc(),ej={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,XR.validateSchemaDeps)(e),"code")};lh.default=ej});var Zv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var tj=he(),rj={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`)}};fh.default=rj});var Wv=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var nj=zv(),ij=Gv(),oj=Zv(),sj=[nj.default,ij.default,oj.default];ph.default=sj});var Yv=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var Rn=se(),Kv=he(),aj=sr(),cj={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Rn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},uj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:cj,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 Rn.Name?t.if((0,Rn._)`${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,Rn._)`${i} === ${aj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Kv.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Kv.Type.Str},d),a||t.if((0,Rn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Rn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Rn._)`${d} !== ${y}`);return(0,Rn.and)(...h)}o(p,"unevaluatedStatic")}};dh.default=uj});var Jv=v(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var wi=se(),Qv=he(),lj={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")},fj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:lj,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,Qv.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:Qv.Type.Num},u),i.allErrors||t.if((0,wi.not)(u),()=>t.break())})}o(c,"validateItems")}};hh.default=fj});var Xv=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var pj=Yv(),dj=Jv(),hj=[pj.default,dj.default];mh.default=hj});var e_=v(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.contentVocabulary=Ao.metadataVocabulary=void 0;Ao.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ao.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var r_=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var mj=jv(),gj=kv(),yj=Ud(),bj=Hv(),vj=Wv(),_j=Xv(),Sj=Zd(),t_=e_(),Oj=[bj.default,mj.default,gj.default,(0,yj.default)(!0),Sj.default,t_.metadataVocabulary,t_.contentVocabulary,vj.default,_j.default];gh.default=Oj});var n_=v((bB,Pj)=>{Pj.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 i_=v((vB,Ej)=>{Ej.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 o_=v((_B,$j)=>{$j.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 s_=v((SB,wj)=>{wj.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 a_=v((OB,xj)=>{xj.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 c_=v((PB,Aj)=>{Aj.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 u_=v((EB,Ij)=>{Ij.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 l_=v(($B,Cj)=>{Cj.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 f_=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var Tj=n_(),Rj=i_(),jj=o_(),Nj=s_(),kj=a_(),Mj=c_(),qj=u_(),Dj=l_(),Lj=["/properties"];function Fj(e){return[Tj,Rj,jj,Nj,kj,t(this,Mj),qj,t(this,Dj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Lj):n}o(t,"with$data")}o(Fj,"addMetaSchema2020");yh.default=Fj});var p_=v((ke,vh)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.MissingRefError=ke.ValidationError=ke.CodeGen=ke.Name=ke.nil=ke.stringify=ke.str=ke._=ke.KeywordCxt=ke.Ajv2020=void 0;var Vj=Eo(),Bj=r_(),Hj=Qd(),Uj=f_(),bh="https://json-schema.org/draft/2020-12/schema",_h=class _h extends Vj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Bj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Hj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Uj.default.call(this,t),this.refs["http://json-schema.org/schema"]=bh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(bh)?bh:void 0)}};o(_h,"Ajv2020");var Io=_h;ke.Ajv2020=Io;vh.exports=ke=Io;vh.exports.Ajv2020=Io;Object.defineProperty(ke,"__esModule",{value:!0});ke.default=Io;var zj=js();Object.defineProperty(ke,"KeywordCxt",{enumerable:!0,get:o(function(){return zj.KeywordCxt},"get")});var Co=se();Object.defineProperty(ke,"_",{enumerable:!0,get:o(function(){return Co._},"get")});Object.defineProperty(ke,"str",{enumerable:!0,get:o(function(){return Co.str},"get")});Object.defineProperty(ke,"stringify",{enumerable:!0,get:o(function(){return Co.stringify},"get")});Object.defineProperty(ke,"nil",{enumerable:!0,get:o(function(){return Co.nil},"get")});Object.defineProperty(ke,"Name",{enumerable:!0,get:o(function(){return Co.Name},"get")});Object.defineProperty(ke,"CodeGen",{enumerable:!0,get:o(function(){return Co.CodeGen},"get")});var Gj=Nc();Object.defineProperty(ke,"ValidationError",{enumerable:!0,get:o(function(){return Gj.default},"get")});var Zj=Ns();Object.defineProperty(ke,"MissingRefError",{enumerable:!0,get:o(function(){return Zj.default},"get")})});var d_=v((IB,Wj)=>{Wj.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 h_=v((CB,Kj)=>{Kj.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 m_=v((TB,Yj)=>{Yj.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 g_=v((RB,Qj)=>{Qj.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 y_=v((lt,To)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.openapi=lt.openapiV31=lt.openapiV3=lt.openapiV2=lt.openapiV1=void 0;lt.openapiV1=d_();lt.openapiV2=h_();lt.openapiV3=m_();lt.openapiV31=g_();lt.openapi={v1:lt.openapiV1,v2:lt.openapiV2,v3:lt.openapiV3,v31:lt.openapiV31};lt.default=lt.openapi;typeof To=="object"&&typeof To.exports=="object"&&(To.exports=Object.assign(To.exports.default,To.exports))});var Ph=v((jB,b_)=>{"use strict";var Jj=mc(),{ono:Xj}=_r(),eN=Tv(),tN=p_(),{openapi:Sh}=y_();b_.exports=rN;function rN(e){let t,r;if(e.swagger)r=Sh.v2,t=Oh();else if(e.openapi.startsWith("3.1")){r=Sh.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=Sh.v3,t=Oh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
+ `+nN(i);throw Xj.syntax(i,{details:i},s)}}o(rN,"validateSchema");function Oh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new eN(t):new tN(t)}o(Oh,"initializeAjv");function nN(e,t){t=t||" ";let r="";for(let n of e)r+=Jj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
+ `);return r}o(nN,"formatAjvError")});var __=v((kB,v_)=>{"use strict";v_.exports=["get","put","post","delete","options","head","patch"]});var wh=v((MB,E_)=>{"use strict";var iN=mc(),{ono:St}=_r(),oN=__(),Eh=["array","boolean","integer","number","string"],O_=["array","boolean","integer","number","string","object","null",void 0];E_.exports=sN;function sN(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&&aN(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;P_(s,a)}}o(sN,"validateSpec");function aN(e,t,r,n){for(let i of oN){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 St.syntax(`Validation failed. Duplicate operation id '${c}'`);cN(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;pN(l,p||{},f)}}}}o(aN,"validatePath");function cN(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{S_(s)}catch(u){throw St.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{S_(a)}catch(u){throw St.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());uN(c,i),lN(c,r,i),fN(c,e,n,i)}o(cN,"validateParameters");function uN(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw St.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw St.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(uN,"validateBodyParameters");function lN(e,t,r){let n=t.match(iN.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw St.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 St.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 St.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 St.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(lN,"validatePathParameters");function fN(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=O_;break;case"formData":a=i,c=Eh.concat("file");break;default:a=i,c=Eh}if($h(a,s,c),P_(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 St.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(fN,"validateParameterTypes");function S_(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 St.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(S_,"checkForDuplicates");function pN(e,t,r){if(e!=="default"&&(e<100||e>599))throw St.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;$h(s,a,Eh)}if(t.schema){let i=O_.concat("file");if(i.indexOf(t.schema.type)===-1)throw St.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);$h(t.schema,r+"/schema",i)}}o(pN,"validateResponse");function $h(e,t,r){if(r.indexOf(e.type)===-1)throw St.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw St.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o($h,"validateSchema");function P_(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 St.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(P_,"validateRequiredPropertiesExist")});var wr=v($r=>{"use strict";var{Ono:$_}=_r(),{stripHash:w_,toFileSystemPath:dN}=Ut(),Ro,jn=$r.JSONParserError=(Ro=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,$_.extend(this)}},o(Ro,"JSONParserError"),Ro);Nn(jn);var xi,x_=$r.JSONParserErrorGroup=(xi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${dN(t.$refs._root$Ref.path)}'`,$_.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 xi.getParserErrors(this.files)}},o(xi,"JSONParserErrorGroup"),xi);Nn(x_);var jo,hN=$r.ParserError=(jo=class extends jn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(jo,"ParserError"),jo);Nn(hN);var No,mN=$r.UnmatchedParserError=(No=class extends jn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(No,"UnmatchedParserError"),No);Nn(mN);var ko,gN=$r.ResolverError=(ko=class extends jn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(ko,"ResolverError"),ko);Nn(gN);var Mo,yN=$r.UnmatchedResolverError=(Mo=class extends jn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Mo,"UnmatchedResolverError"),Mo);Nn(yN);var qo,bN=$r.MissingPointerError=(qo=class extends jn{constructor(t,r){super(`Token "${t}" does not exist.`,w_(r)),this.code="EMISSINGPOINTER"}},o(qo,"MissingPointerError"),qo);Nn(bN);var Do,vN=$r.InvalidPointerError=(Do=class extends jn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,w_(r)),this.code="EINVALIDPOINTER"}},o(Do,"InvalidPointerError"),Do);Nn(vN);function Nn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Nn,"setErrorName");$r.isHandledError=function(e){return e instanceof jn||e instanceof x_};$r.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var I_=v((FB,A_)=>{"use strict";var{ParserError:_N}=wr();A_.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 _N(r.message,e.url)}}else return t}}});var Ii=v((VB,Ai)=>{"use strict";function C_(e){return typeof e>"u"||e===null}o(C_,"isNothing");function SN(e){return typeof e=="object"&&e!==null}o(SN,"isObject");function ON(e){return Array.isArray(e)?e:C_(e)?[]:[e]}o(ON,"toArray");function PN(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(PN,"extend");function EN(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(EN,"repeat");function $N(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o($N,"isNegativeZero");Ai.exports.isNothing=C_;Ai.exports.isObject=SN;Ai.exports.toArray=ON;Ai.exports.repeat=EN;Ai.exports.isNegativeZero=$N;Ai.exports.extend=PN});var Lo=v((HB,T_)=>{"use strict";function Js(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(Js,"YAMLException");Js.prototype=Object.create(Error.prototype);Js.prototype.constructor=Js;Js.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");T_.exports=Js});var N_=v((zB,j_)=>{"use strict";var R_=Ii();function xh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(xh,"Mark");xh.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),I_.repeat(" ",t)+n+c+s+`
18
- `+I_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Oh.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");C_.exports=Oh});var st=v((UB,R_)=>{"use strict";var j_=Do(),ON=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],EN=["scalar","sequence","mapping"];function $N(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o($N,"compileStyleAliases");function wN(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(ON.indexOf(r)===-1)throw new j_('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=$N(t.styleAliases||null),EN.indexOf(this.kind)===-1)throw new j_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(wN,"Type");R_.exports=wN});var Ci=v((GB,k_)=>{"use strict";var N_=Ii(),eu=Do(),xN=st();function Eh(e,t,r){var n=[];return e.include.forEach(function(i){r=Eh(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(Eh,"compileList");function AN(){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(AN,"compileMap");function Lo(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 eu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Eh(this,"implicit",[]),this.compiledExplicit=Eh(this,"explicit",[]),this.compiledTypeMap=AN(this.compiledImplicit,this.compiledExplicit)}o(Lo,"Schema");Lo.DEFAULT=null;Lo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Lo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new eu("Wrong number of arguments for Schema.create function")}if(t=N_.toArray(t),r=N_.toArray(r),!t.every(function(n){return n instanceof Lo}))throw new eu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof xN}))throw new eu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lo({include:t,explicit:r})},"createSchema");k_.exports=Lo});var q_=v((WB,M_)=>{"use strict";var IN=st();M_.exports=new IN("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var L_=v((YB,D_)=>{"use strict";var CN=st();D_.exports=new CN("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var V_=v((JB,F_)=>{"use strict";var TN=st();F_.exports=new TN("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var tu=v((eH,B_)=>{"use strict";var jN=Ci();B_.exports=new jN({explicit:[q_(),L_(),V_()]})});var U_=v((tH,H_)=>{"use strict";var RN=st();function NN(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(NN,"resolveYamlNull");function kN(){return null}o(kN,"constructYamlNull");function MN(e){return e===null}o(MN,"isNull");H_.exports=new RN("tag:yaml.org,2002:null",{kind:"scalar",resolve:NN,construct:kN,predicate:MN,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 G_=v((nH,z_)=>{"use strict";var qN=st();function DN(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(DN,"resolveYamlBoolean");function LN(e){return e==="true"||e==="True"||e==="TRUE"}o(LN,"constructYamlBoolean");function FN(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(FN,"isBoolean");z_.exports=new qN("tag:yaml.org,2002:bool",{kind:"scalar",resolve:DN,construct:LN,predicate:FN,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 W_=v((oH,Z_)=>{"use strict";var VN=Ii(),BN=st();function HN(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(HN,"isHexCode");function UN(e){return 48<=e&&e<=55}o(UN,"isOctCode");function zN(e){return 48<=e&&e<=57}o(zN,"isDecCode");function GN(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(!HN(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!UN(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(!zN(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(GN,"resolveYamlInteger");function ZN(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(ZN,"constructYamlInteger");function WN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!VN.isNegativeZero(e)}o(WN,"isInteger");Z_.exports=new BN("tag:yaml.org,2002:int",{kind:"scalar",resolve:GN,construct:ZN,predicate:WN,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 Q_=v((aH,Y_)=>{"use strict";var K_=Ii(),KN=st(),YN=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 QN(e){return!(e===null||!YN.test(e)||e[e.length-1]==="_")}o(QN,"resolveYamlFloat");function JN(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(JN,"constructYamlFloat");var XN=/^[-+]?[0-9]+e/;function ek(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(K_.isNegativeZero(e))return"-0.0";return r=e.toString(10),XN.test(r)?r.replace("e",".e"):r}o(ek,"representYamlFloat");function tk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||K_.isNegativeZero(e))}o(tk,"isFloat");Y_.exports=new KN("tag:yaml.org,2002:float",{kind:"scalar",resolve:QN,construct:JN,predicate:tk,represent:ek,defaultStyle:"lowercase"})});var $h=v((uH,J_)=>{"use strict";var rk=Ci();J_.exports=new rk({include:[tu()],implicit:[U_(),G_(),W_(),Q_()]})});var wh=v((lH,X_)=>{"use strict";var nk=Ci();X_.exports=new nk({include:[$h()]})});var nS=v((fH,rS)=>{"use strict";var ik=st(),eS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tS=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 ok(e){return e===null?!1:eS.exec(e)!==null||tS.exec(e)!==null}o(ok,"resolveYamlTimestamp");function sk(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=eS.exec(e),t===null&&(t=tS.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(sk,"constructYamlTimestamp");function ak(e){return e.toISOString()}o(ak,"representYamlTimestamp");rS.exports=new ik("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ok,construct:sk,instanceOf:Date,represent:ak})});var oS=v((dH,iS)=>{"use strict";var ck=st();function uk(e){return e==="<<"||e===null}o(uk,"resolveYamlMerge");iS.exports=new ck("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uk})});var cS=v((mH,aS)=>{"use strict";var Ti;try{sS=require,Ti=sS("buffer").Buffer}catch{}var sS,lk=st(),xh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function fk(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=xh;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(fk,"resolveYamlBinary");function pk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=xh,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),Ti?Ti.from?Ti.from(c):new Ti(c):c}o(pk,"constructYamlBinary");function dk(e){var t="",r=0,n,i,s=e.length,a=xh;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(dk,"representYamlBinary");function hk(e){return Ti&&Ti.isBuffer(e)}o(hk,"isBinary");aS.exports=new lk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fk,construct:pk,predicate:hk,represent:dk})});var lS=v((yH,uS)=>{"use strict";var mk=st(),gk=Object.prototype.hasOwnProperty,yk=Object.prototype.toString;function bk(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,yk.call(i)!=="[object Object]")return!1;for(s in i)if(gk.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(bk,"resolveYamlOmap");function vk(e){return e!==null?e:[]}o(vk,"constructYamlOmap");uS.exports=new mk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bk,construct:vk})});var pS=v((vH,fS)=>{"use strict";var _k=st(),Sk=Object.prototype.toString;function Pk(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],Sk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(Pk,"resolveYamlPairs");function Ok(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(Ok,"constructYamlPairs");fS.exports=new _k("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Pk,construct:Ok})});var hS=v((SH,dS)=>{"use strict";var Ek=st(),$k=Object.prototype.hasOwnProperty;function wk(e){if(e===null)return!0;var t,r=e;for(t in r)if($k.call(r,t)&&r[t]!==null)return!1;return!0}o(wk,"resolveYamlSet");function xk(e){return e!==null?e:{}}o(xk,"constructYamlSet");dS.exports=new Ek("tag:yaml.org,2002:set",{kind:"mapping",resolve:wk,construct:xk})});var Fo=v((OH,mS)=>{"use strict";var Ak=Ci();mS.exports=new Ak({include:[wh()],implicit:[nS(),oS()],explicit:[cS(),lS(),pS(),hS()]})});var yS=v((EH,gS)=>{"use strict";var Ik=st();function Ck(){return!0}o(Ck,"resolveJavascriptUndefined");function Tk(){}o(Tk,"constructJavascriptUndefined");function jk(){return""}o(jk,"representJavascriptUndefined");function Rk(e){return typeof e>"u"}o(Rk,"isUndefined");gS.exports=new Ik("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Ck,construct:Tk,predicate:Rk,represent:jk})});var vS=v((wH,bS)=>{"use strict";var Nk=st();function kk(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(kk,"resolveJavascriptRegExp");function Mk(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(Mk,"constructJavascriptRegExp");function qk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(qk,"representJavascriptRegExp");function Dk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(Dk,"isRegExp");bS.exports=new Nk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:kk,construct:Mk,predicate:Dk,represent:qk})});var PS=v((AH,SS)=>{"use strict";var ru;try{_S=require,ru=_S("esprima")}catch{typeof window<"u"&&(ru=window.esprima)}var _S,Lk=st();function Fk(e){if(e===null)return!1;try{var t="("+e+")",r=ru.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(Fk,"resolveJavascriptFunction");function Vk(e){var t="("+e+")",r=ru.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(Vk,"constructJavascriptFunction");function Bk(e){return e.toString()}o(Bk,"representJavascriptFunction");function Hk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Hk,"isFunction");SS.exports=new Lk("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Fk,construct:Vk,predicate:Hk,represent:Bk})});var Qs=v((CH,ES)=>{"use strict";var OS=Ci();ES.exports=OS.DEFAULT=new OS({include:[Fo()],explicit:[yS(),vS(),PS()]})});var HS=v((TH,Js)=>{"use strict";var un=Ii(),TS=Do(),Uk=T_(),jS=Fo(),zk=Qs(),Mn=Object.prototype.hasOwnProperty,nu=1,RS=2,NS=3,iu=4,Ah=1,Gk=2,$S=3,Zk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Wk=/[\x85\u2028\u2029]/,Kk=/[,\[\]\{\}]/,kS=/^(?:!|!!|![a-z\-]+!)$/i,MS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wS(e){return Object.prototype.toString.call(e)}o(wS,"_class");function zr(e){return e===10||e===13}o(zr,"is_EOL");function Ri(e){return e===9||e===32}o(Ri,"is_WHITE_SPACE");function qt(e){return e===9||e===32||e===10||e===13}o(qt,"is_WS_OR_EOL");function Vo(e){return e===44||e===91||e===93||e===123||e===125}o(Vo,"is_FLOW_INDICATOR");function Yk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Yk,"fromHexCode");function Qk(e){return e===120?2:e===117?4:e===85?8:0}o(Qk,"escapedHexLen");function Jk(e){return 48<=e&&e<=57?e-48:-1}o(Jk,"fromDecimalCode");function xS(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(xS,"simpleEscapeSequence");function Xk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(Xk,"charFromCodepoint");var qS=new Array(256),DS=new Array(256);for(ji=0;ji<256;ji++)qS[ji]=xS(ji)?1:0,DS[ji]=xS(ji);var ji;function e3(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||zk,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(e3,"State");function LS(e,t){return new TS(t,new Uk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(LS,"generateError");function te(e,t){throw LS(e,t)}o(te,"throwError");function ou(e,t){e.onWarning&&e.onWarning.call(null,LS(e,t))}o(ou,"throwWarning");var AS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ou(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],kS.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Mn.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),MS.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function kn(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||te(e,"expected valid JSON character");else Zk.test(c)&&te(e,"the stream contains non-printable characters");e.result+=c}}o(kn,"captureSegment");function IS(e,t,r,n){var i,s,a,c;for(un.isObject(r)||te(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],Mn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(IS,"mergeMappings");function Bo(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])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&wS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&wS(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)IS(e,t,s[u],r);else IS(e,t,s,r);else!e.json&&!Mn.call(r,i)&&Mn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,te(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Bo,"storeMappingPair");function Ih(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++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Ih,"readLineBreak");function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ri(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(zr(i))for(Ih(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&&ou(e,"deficient indentation"),n}o(rt,"skipSeparationSpace");function su(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||qt(r)))}o(su,"testDocumentSeparator");function Ch(e,t){t===1?e.result+=" ":t>1&&(e.result+=un.repeat(`
22
- `,t-1))}o(Ch,"writeFoldedLines");function t3(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),qt(h)||Vo(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),qt(i)||r&&Vo(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),qt(i)||r&&Vo(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),qt(n))break}else{if(e.position===e.lineStart&&su(e)||r&&Vo(h))break;if(zr(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&&(kn(e,s,a,!1),Ch(e,e.line-u),s=a=e.position,c=!1),Ri(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return kn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(t3,"readPlainScalar");function r3(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(kn(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 zr(r)?(kn(e,n,i,!0),Ch(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&su(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}o(r3,"readSingleQuotedScalar");function n3(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 kn(e,r,e.position,!0),e.position++,!0;if(c===92){if(kn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),zr(c))rt(e,!1,t);else if(c<256&&qS[c])e.result+=DS[c],e.position++;else if((a=Qk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Yk(c))>=0?s=(s<<4)+a:te(e,"expected hexadecimal character");e.result+=Xk(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else zr(c)?(kn(e,r,n,!0),Ch(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&su(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}o(n3,"readDoubleQuotedScalar");function i3(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||te(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),qt(c)&&(l=p=!0,e.position++,rt(e,!0,t))),n=e.line,Ho(e,t,nu,!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),Ho(e,t,nu,!1,!0),b=e.result),f?Bo(e,s,d,y,h,b):l?s.push(Bo(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}te(e,"unexpected end of the stream within a flow collection")}o(i3,"readFlowCollection");function o3(e,t){var r,n,i=Ah,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)Ah===i?i=f===43?$S:Gk:te(e,"repeat of a chomping mode identifier");else if((p=Jk(f))>=0)p===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?te(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Ri(f)){do f=e.input.charCodeAt(++e.position);while(Ri(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!zr(f)&&f!==0)}for(;f!==0;){for(Ih(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),zr(f)){u++;continue}if(e.lineIndent<c){i===$S?e.result+=un.repeat(`
23
- `,s?1+u:u):i===Ah&&s&&(e.result+=`
24
- `);break}for(n?Ri(f)?(l=!0,e.result+=un.repeat(`
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),R_.repeat(" ",t)+n+c+s+`
18
+ `+R_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");xh.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");j_.exports=xh});var st=v((ZB,M_)=>{"use strict";var k_=Lo(),wN=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],xN=["scalar","sequence","mapping"];function AN(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(AN,"compileStyleAliases");function IN(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(wN.indexOf(r)===-1)throw new k_('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=AN(t.styleAliases||null),xN.indexOf(this.kind)===-1)throw new k_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(IN,"Type");M_.exports=IN});var Ci=v((KB,D_)=>{"use strict";var q_=Ii(),nu=Lo(),CN=st();function Ah(e,t,r){var n=[];return e.include.forEach(function(i){r=Ah(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(Ah,"compileList");function TN(){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(TN,"compileMap");function Fo(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 nu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ah(this,"implicit",[]),this.compiledExplicit=Ah(this,"explicit",[]),this.compiledTypeMap=TN(this.compiledImplicit,this.compiledExplicit)}o(Fo,"Schema");Fo.DEFAULT=null;Fo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Fo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new nu("Wrong number of arguments for Schema.create function")}if(t=q_.toArray(t),r=q_.toArray(r),!t.every(function(n){return n instanceof Fo}))throw new nu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof CN}))throw new nu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Fo({include:t,explicit:r})},"createSchema");D_.exports=Fo});var F_=v((QB,L_)=>{"use strict";var RN=st();L_.exports=new RN("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var B_=v((XB,V_)=>{"use strict";var jN=st();V_.exports=new jN("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var U_=v((tH,H_)=>{"use strict";var NN=st();H_.exports=new NN("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var iu=v((nH,z_)=>{"use strict";var kN=Ci();z_.exports=new kN({explicit:[F_(),B_(),U_()]})});var Z_=v((iH,G_)=>{"use strict";var MN=st();function qN(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(qN,"resolveYamlNull");function DN(){return null}o(DN,"constructYamlNull");function LN(e){return e===null}o(LN,"isNull");G_.exports=new MN("tag:yaml.org,2002:null",{kind:"scalar",resolve:qN,construct:DN,predicate:LN,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 K_=v((sH,W_)=>{"use strict";var FN=st();function VN(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(VN,"resolveYamlBoolean");function BN(e){return e==="true"||e==="True"||e==="TRUE"}o(BN,"constructYamlBoolean");function HN(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(HN,"isBoolean");W_.exports=new FN("tag:yaml.org,2002:bool",{kind:"scalar",resolve:VN,construct:BN,predicate:HN,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 Q_=v((cH,Y_)=>{"use strict";var UN=Ii(),zN=st();function GN(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(GN,"isHexCode");function ZN(e){return 48<=e&&e<=55}o(ZN,"isOctCode");function WN(e){return 48<=e&&e<=57}o(WN,"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(!GN(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ZN(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(!WN(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 YN(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(YN,"constructYamlInteger");function QN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!UN.isNegativeZero(e)}o(QN,"isInteger");Y_.exports=new zN("tag:yaml.org,2002:int",{kind:"scalar",resolve:KN,construct:YN,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 eS=v((lH,X_)=>{"use strict";var J_=Ii(),JN=st(),XN=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 ek(e){return!(e===null||!XN.test(e)||e[e.length-1]==="_")}o(ek,"resolveYamlFloat");function tk(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(tk,"constructYamlFloat");var rk=/^[-+]?[0-9]+e/;function nk(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(J_.isNegativeZero(e))return"-0.0";return r=e.toString(10),rk.test(r)?r.replace("e",".e"):r}o(nk,"representYamlFloat");function ik(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||J_.isNegativeZero(e))}o(ik,"isFloat");X_.exports=new JN("tag:yaml.org,2002:float",{kind:"scalar",resolve:ek,construct:tk,predicate:ik,represent:nk,defaultStyle:"lowercase"})});var Ih=v((pH,tS)=>{"use strict";var ok=Ci();tS.exports=new ok({include:[iu()],implicit:[Z_(),K_(),Q_(),eS()]})});var Ch=v((dH,rS)=>{"use strict";var sk=Ci();rS.exports=new sk({include:[Ih()]})});var sS=v((hH,oS)=>{"use strict";var ak=st(),nS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),iS=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 ck(e){return e===null?!1:nS.exec(e)!==null||iS.exec(e)!==null}o(ck,"resolveYamlTimestamp");function uk(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=nS.exec(e),t===null&&(t=iS.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(uk,"constructYamlTimestamp");function lk(e){return e.toISOString()}o(lk,"representYamlTimestamp");oS.exports=new ak("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ck,construct:uk,instanceOf:Date,represent:lk})});var cS=v((gH,aS)=>{"use strict";var fk=st();function pk(e){return e==="<<"||e===null}o(pk,"resolveYamlMerge");aS.exports=new fk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pk})});var fS=v((bH,lS)=>{"use strict";var Ti;try{uS=require,Ti=uS("buffer").Buffer}catch{}var uS,dk=st(),Th=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function hk(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Th;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(hk,"resolveYamlBinary");function mk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Th,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),Ti?Ti.from?Ti.from(c):new Ti(c):c}o(mk,"constructYamlBinary");function gk(e){var t="",r=0,n,i,s=e.length,a=Th;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(gk,"representYamlBinary");function yk(e){return Ti&&Ti.isBuffer(e)}o(yk,"isBinary");lS.exports=new dk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hk,construct:mk,predicate:yk,represent:gk})});var dS=v((_H,pS)=>{"use strict";var bk=st(),vk=Object.prototype.hasOwnProperty,_k=Object.prototype.toString;function Sk(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,_k.call(i)!=="[object Object]")return!1;for(s in i)if(vk.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(Sk,"resolveYamlOmap");function Ok(e){return e!==null?e:[]}o(Ok,"constructYamlOmap");pS.exports=new bk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Sk,construct:Ok})});var mS=v((OH,hS)=>{"use strict";var Pk=st(),Ek=Object.prototype.toString;function $k(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],Ek.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o($k,"resolveYamlPairs");function wk(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(wk,"constructYamlPairs");hS.exports=new Pk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:$k,construct:wk})});var yS=v((EH,gS)=>{"use strict";var xk=st(),Ak=Object.prototype.hasOwnProperty;function Ik(e){if(e===null)return!0;var t,r=e;for(t in r)if(Ak.call(r,t)&&r[t]!==null)return!1;return!0}o(Ik,"resolveYamlSet");function Ck(e){return e!==null?e:{}}o(Ck,"constructYamlSet");gS.exports=new xk("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ik,construct:Ck})});var Vo=v((wH,bS)=>{"use strict";var Tk=Ci();bS.exports=new Tk({include:[Ch()],implicit:[sS(),cS()],explicit:[fS(),dS(),mS(),yS()]})});var _S=v((xH,vS)=>{"use strict";var Rk=st();function jk(){return!0}o(jk,"resolveJavascriptUndefined");function Nk(){}o(Nk,"constructJavascriptUndefined");function kk(){return""}o(kk,"representJavascriptUndefined");function Mk(e){return typeof e>"u"}o(Mk,"isUndefined");vS.exports=new Rk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:jk,construct:Nk,predicate:Mk,represent:kk})});var OS=v((IH,SS)=>{"use strict";var qk=st();function Dk(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(Dk,"resolveJavascriptRegExp");function Lk(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(Lk,"constructJavascriptRegExp");function Fk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(Fk,"representJavascriptRegExp");function Vk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(Vk,"isRegExp");SS.exports=new qk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Dk,construct:Lk,predicate:Vk,represent:Fk})});var $S=v((TH,ES)=>{"use strict";var ou;try{PS=require,ou=PS("esprima")}catch{typeof window<"u"&&(ou=window.esprima)}var PS,Bk=st();function Hk(e){if(e===null)return!1;try{var t="("+e+")",r=ou.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(Hk,"resolveJavascriptFunction");function Uk(e){var t="("+e+")",r=ou.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(Uk,"constructJavascriptFunction");function zk(e){return e.toString()}o(zk,"representJavascriptFunction");function Gk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Gk,"isFunction");ES.exports=new Bk("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Hk,construct:Uk,predicate:Gk,represent:zk})});var Xs=v((jH,xS)=>{"use strict";var wS=Ci();xS.exports=wS.DEFAULT=new wS({include:[Vo()],explicit:[_S(),OS(),$S()]})});var GS=v((NH,ea)=>{"use strict";var un=Ii(),NS=Lo(),Zk=N_(),kS=Vo(),Wk=Xs(),Mn=Object.prototype.hasOwnProperty,su=1,MS=2,qS=3,au=4,Rh=1,Kk=2,AS=3,Yk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qk=/[\x85\u2028\u2029]/,Jk=/[,\[\]\{\}]/,DS=/^(?:!|!!|![a-z\-]+!)$/i,LS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function IS(e){return Object.prototype.toString.call(e)}o(IS,"_class");function zr(e){return e===10||e===13}o(zr,"is_EOL");function ji(e){return e===9||e===32}o(ji,"is_WHITE_SPACE");function qt(e){return e===9||e===32||e===10||e===13}o(qt,"is_WS_OR_EOL");function Bo(e){return e===44||e===91||e===93||e===123||e===125}o(Bo,"is_FLOW_INDICATOR");function Xk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Xk,"fromHexCode");function e3(e){return e===120?2:e===117?4:e===85?8:0}o(e3,"escapedHexLen");function t3(e){return 48<=e&&e<=57?e-48:-1}o(t3,"fromDecimalCode");function CS(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(CS,"simpleEscapeSequence");function r3(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(r3,"charFromCodepoint");var FS=new Array(256),VS=new Array(256);for(Ri=0;Ri<256;Ri++)FS[Ri]=CS(Ri)?1:0,VS[Ri]=CS(Ri);var Ri;function n3(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Wk,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(n3,"State");function BS(e,t){return new NS(t,new Zk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(BS,"generateError");function te(e,t){throw BS(e,t)}o(te,"throwError");function cu(e,t){e.onWarning&&e.onWarning.call(null,BS(e,t))}o(cu,"throwWarning");var TS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&cu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],DS.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Mn.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),LS.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function kn(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||te(e,"expected valid JSON character");else Yk.test(c)&&te(e,"the stream contains non-printable characters");e.result+=c}}o(kn,"captureSegment");function RS(e,t,r,n){var i,s,a,c;for(un.isObject(r)||te(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],Mn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(RS,"mergeMappings");function Ho(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])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&IS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&IS(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)RS(e,t,s[u],r);else RS(e,t,s,r);else!e.json&&!Mn.call(r,i)&&Mn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,te(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Ho,"storeMappingPair");function jh(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++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(jh,"readLineBreak");function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ji(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(zr(i))for(jh(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&&cu(e,"deficient indentation"),n}o(rt,"skipSeparationSpace");function uu(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||qt(r)))}o(uu,"testDocumentSeparator");function Nh(e,t){t===1?e.result+=" ":t>1&&(e.result+=un.repeat(`
22
+ `,t-1))}o(Nh,"writeFoldedLines");function i3(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),qt(h)||Bo(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),qt(i)||r&&Bo(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),qt(i)||r&&Bo(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),qt(n))break}else{if(e.position===e.lineStart&&uu(e)||r&&Bo(h))break;if(zr(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&&(kn(e,s,a,!1),Nh(e,e.line-u),s=a=e.position,c=!1),ji(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return kn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(i3,"readPlainScalar");function o3(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(kn(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 zr(r)?(kn(e,n,i,!0),Nh(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&uu(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}o(o3,"readSingleQuotedScalar");function s3(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 kn(e,r,e.position,!0),e.position++,!0;if(c===92){if(kn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),zr(c))rt(e,!1,t);else if(c<256&&FS[c])e.result+=VS[c],e.position++;else if((a=e3(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Xk(c))>=0?s=(s<<4)+a:te(e,"expected hexadecimal character");e.result+=r3(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else zr(c)?(kn(e,r,n,!0),Nh(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&uu(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}o(s3,"readDoubleQuotedScalar");function a3(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||te(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),qt(c)&&(l=p=!0,e.position++,rt(e,!0,t))),n=e.line,Uo(e,t,su,!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),Uo(e,t,su,!1,!0),b=e.result),f?Ho(e,s,d,y,h,b):l?s.push(Ho(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}te(e,"unexpected end of the stream within a flow collection")}o(a3,"readFlowCollection");function c3(e,t){var r,n,i=Rh,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)Rh===i?i=f===43?AS:Kk:te(e,"repeat of a chomping mode identifier");else if((p=t3(f))>=0)p===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?te(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(ji(f)){do f=e.input.charCodeAt(++e.position);while(ji(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!zr(f)&&f!==0)}for(;f!==0;){for(jh(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),zr(f)){u++;continue}if(e.lineIndent<c){i===AS?e.result+=un.repeat(`
23
+ `,s?1+u:u):i===Rh&&s&&(e.result+=`
24
+ `);break}for(n?ji(f)?(l=!0,e.result+=un.repeat(`
25
25
  `,s?1+u:u)):l?(l=!1,e.result+=un.repeat(`
26
26
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=un.repeat(`
27
27
  `,u):e.result+=un.repeat(`
28
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!zr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);kn(e,r,e.position,!1)}return!0}o(o3,"readBlockScalar");function CS(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),!qt(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,Ho(e,t,NS,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(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(CS,"readBlockSequence");function s3(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)&&qt(n))g===63?(y&&(Bo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):te(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(Ho(e,r,RS,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Ri(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),qt(g)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Bo(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)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)te(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)&&(Ho(e,t,iu,!0,i)&&(y?d=e.result:h=e.result),y||(Bo(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)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Bo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(s3,"readBlockMapping");function a3(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&&te(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)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!qt(a);)a===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),kS.test(i)||te(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),Kk.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}return s&&!MS.test(s)&&te(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}o(a3,"readTagProperty");function c3(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!Vo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(c3,"readAnchorProperty");function u3(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&&!qt(n)&&!Vo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Mn.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}o(u3,"readAlias");function Ho(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=iu===r||NS===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(;a3(e)||c3(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||iu===r)&&(nu===r||RS===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(CS(e,b)||s3(e,b,y))||i3(e,y)?p=!0:(a&&o3(e,y)||r3(e,y)||n3(e,y)?p=!0:u3(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):t3(e,y,nu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&CS(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(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 Mn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&te(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)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):te(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Ho,"composeNode");function l3(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&&!qt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");a!==0;){for(;Ri(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!zr(a));break}if(zr(a))break;for(r=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Ih(e),Mn.call(AS,n)?AS[n](e,n,i):ou(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&&te(e,"directives end mark is expected"),Ho(e,e.lineIndent-1,iu,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&Wk.test(e.input.slice(t,e.position))&&ou(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&su(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}o(l3,"readDocument");function FS(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 e3(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)l3(r);return r.documents}o(FS,"loadDocuments");function VS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=FS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(VS,"loadAll");function BS(e,t){var r=FS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new TS("expected a single document in the stream, but found more")}}o(BS,"load");function f3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),VS(e,t,un.extend({schema:jS},r))}o(f3,"safeLoadAll");function p3(e,t){return BS(e,un.extend({schema:jS},t))}o(p3,"safeLoad");Js.exports.loadAll=VS;Js.exports.load=BS;Js.exports.safeLoadAll=f3;Js.exports.safeLoad=p3});var pP=v((RH,Nh)=>{"use strict";var ea=Ii(),ta=Do(),d3=Qs(),h3=Fo(),QS=Object.prototype.toString,JS=Object.prototype.hasOwnProperty,m3=9,Xs=10,g3=13,y3=32,b3=33,v3=34,XS=35,_3=37,S3=38,P3=39,O3=42,eP=44,E3=45,tP=58,$3=61,w3=62,x3=63,A3=64,rP=91,nP=93,I3=96,iP=123,C3=124,oP=125,Pt={};Pt[0]="\\0";Pt[7]="\\a";Pt[8]="\\b";Pt[9]="\\t";Pt[10]="\\n";Pt[11]="\\v";Pt[12]="\\f";Pt[13]="\\r";Pt[27]="\\e";Pt[34]='\\"';Pt[92]="\\\\";Pt[133]="\\N";Pt[160]="\\_";Pt[8232]="\\L";Pt[8233]="\\P";var T3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function j3(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&&JS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(j3,"compileStyleMap");function US(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 ta("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ea.repeat("0",n-t.length)+t}o(US,"encodeHex");function R3(e){this.schema=e.schema||d3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ea.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=j3(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(R3,"State");function zS(e,t){for(var r=ea.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
28
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!zr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);kn(e,r,e.position,!1)}return!0}o(c3,"readBlockScalar");function jS(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),!qt(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,Uo(e,t,qS,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(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(jS,"readBlockSequence");function u3(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)&&qt(n))g===63?(y&&(Ho(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):te(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(Uo(e,r,MS,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);ji(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),qt(g)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Ho(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)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)te(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)&&(Uo(e,t,au,!0,i)&&(y?d=e.result:h=e.result),y||(Ho(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)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Ho(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(u3,"readBlockMapping");function l3(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&&te(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)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!qt(a);)a===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),DS.test(i)||te(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),Jk.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}return s&&!LS.test(s)&&te(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}o(l3,"readTagProperty");function f3(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!Bo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(f3,"readAnchorProperty");function p3(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&&!qt(n)&&!Bo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Mn.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}o(p3,"readAlias");function Uo(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=au===r||qS===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(;l3(e)||f3(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||au===r)&&(su===r||MS===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(jS(e,b)||u3(e,b,y))||a3(e,y)?p=!0:(a&&c3(e,y)||o3(e,y)||s3(e,y)?p=!0:p3(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):i3(e,y,su===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&jS(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(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 Mn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&te(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)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):te(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Uo,"composeNode");function d3(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&&!qt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");a!==0;){for(;ji(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!zr(a));break}if(zr(a))break;for(r=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&jh(e),Mn.call(TS,n)?TS[n](e,n,i):cu(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&&te(e,"directives end mark is expected"),Uo(e,e.lineIndent-1,au,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&Qk.test(e.input.slice(t,e.position))&&cu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&uu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}o(d3,"readDocument");function HS(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 n3(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)d3(r);return r.documents}o(HS,"loadDocuments");function US(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=HS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(US,"loadAll");function zS(e,t){var r=HS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new NS("expected a single document in the stream, but found more")}}o(zS,"load");function h3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),US(e,t,un.extend({schema:kS},r))}o(h3,"safeLoadAll");function m3(e,t){return zS(e,un.extend({schema:kS},t))}o(m3,"safeLoad");ea.exports.loadAll=US;ea.exports.load=zS;ea.exports.safeLoadAll=h3;ea.exports.safeLoad=m3});var mO=v((MH,Dh)=>{"use strict";var ra=Ii(),na=Lo(),g3=Xs(),y3=Vo(),eO=Object.prototype.toString,tO=Object.prototype.hasOwnProperty,b3=9,ta=10,v3=13,_3=32,S3=33,O3=34,rO=35,P3=37,E3=38,$3=39,w3=42,nO=44,x3=45,iO=58,A3=61,I3=62,C3=63,T3=64,oO=91,sO=93,R3=96,aO=123,j3=124,cO=125,Ot={};Ot[0]="\\0";Ot[7]="\\a";Ot[8]="\\b";Ot[9]="\\t";Ot[10]="\\n";Ot[11]="\\v";Ot[12]="\\f";Ot[13]="\\r";Ot[27]="\\e";Ot[34]='\\"';Ot[92]="\\\\";Ot[133]="\\N";Ot[160]="\\_";Ot[8232]="\\L";Ot[8233]="\\P";var N3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function k3(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&&tO.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(k3,"compileStyleMap");function ZS(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 na("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ra.repeat("0",n-t.length)+t}o(ZS,"encodeHex");function M3(e){this.schema=e.schema||g3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ra.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=k3(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(M3,"State");function WS(e,t){for(var r=ra.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(zS,"indentString");function Th(e,t){return`
32
- `+ea.repeat(" ",e.indent*t)}o(Th,"generateNextLine");function N3(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(N3,"testImplicitResolving");function Rh(e){return e===y3||e===m3}o(Rh,"isWhitespace");function Uo(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(Uo,"isPrintable");function k3(e){return Uo(e)&&!Rh(e)&&e!==65279&&e!==g3&&e!==Xs}o(k3,"isNsChar");function GS(e,t){return Uo(e)&&e!==65279&&e!==eP&&e!==rP&&e!==nP&&e!==iP&&e!==oP&&e!==tP&&(e!==XS||t&&k3(t))}o(GS,"isPlainSafe");function M3(e){return Uo(e)&&e!==65279&&!Rh(e)&&e!==E3&&e!==x3&&e!==tP&&e!==eP&&e!==rP&&e!==nP&&e!==iP&&e!==oP&&e!==XS&&e!==S3&&e!==O3&&e!==b3&&e!==C3&&e!==$3&&e!==w3&&e!==P3&&e!==v3&&e!==_3&&e!==A3&&e!==I3}o(M3,"isPlainSafeFirst");function sP(e){var t=/^\n* /;return t.test(e)}o(sP,"needIndentIndicator");var aP=1,cP=2,uP=3,lP=4,au=5;function q3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=M3(e.charCodeAt(0))&&!Rh(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Uo(a))return au;c=s>0?e.charCodeAt(s-1):null,d=d&&GS(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Xs)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!Uo(a))return au;c=s>0?e.charCodeAt(s-1):null,d=d&&GS(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?aP:cP:r>9&&sP(e)?au:l?lP:uP}o(q3,"chooseScalarStyle");function D3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&T3.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 N3(e,u)}switch(o(c,"testAmbiguity"),q3(t,a,e.indent,s,c)){case aP:return t;case cP:return"'"+t.replace(/'/g,"''")+"'";case uP:return"|"+ZS(t,e.indent)+WS(zS(t,i));case lP:return">"+ZS(t,e.indent)+WS(zS(L3(t,s),i));case au:return'"'+F3(t,s)+'"';default:throw new ta("impossible error: invalid scalar style")}}()}o(D3,"writeScalar");function ZS(e,t){var r=sP(e)?String(t):"",n=e[e.length-1]===`
31
+ `&&(s+=r),s+=a;return s}o(WS,"indentString");function kh(e,t){return`
32
+ `+ra.repeat(" ",e.indent*t)}o(kh,"generateNextLine");function q3(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(q3,"testImplicitResolving");function qh(e){return e===_3||e===b3}o(qh,"isWhitespace");function zo(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(zo,"isPrintable");function D3(e){return zo(e)&&!qh(e)&&e!==65279&&e!==v3&&e!==ta}o(D3,"isNsChar");function KS(e,t){return zo(e)&&e!==65279&&e!==nO&&e!==oO&&e!==sO&&e!==aO&&e!==cO&&e!==iO&&(e!==rO||t&&D3(t))}o(KS,"isPlainSafe");function L3(e){return zo(e)&&e!==65279&&!qh(e)&&e!==x3&&e!==C3&&e!==iO&&e!==nO&&e!==oO&&e!==sO&&e!==aO&&e!==cO&&e!==rO&&e!==E3&&e!==w3&&e!==S3&&e!==j3&&e!==A3&&e!==I3&&e!==$3&&e!==O3&&e!==P3&&e!==T3&&e!==R3}o(L3,"isPlainSafeFirst");function uO(e){var t=/^\n* /;return t.test(e)}o(uO,"needIndentIndicator");var lO=1,fO=2,pO=3,dO=4,lu=5;function F3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=L3(e.charCodeAt(0))&&!qh(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!zo(a))return lu;c=s>0?e.charCodeAt(s-1):null,d=d&&KS(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===ta)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!zo(a))return lu;c=s>0?e.charCodeAt(s-1):null,d=d&&KS(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?lO:fO:r>9&&uO(e)?lu:l?dO:pO}o(F3,"chooseScalarStyle");function V3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&N3.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 q3(e,u)}switch(o(c,"testAmbiguity"),F3(t,a,e.indent,s,c)){case lO:return t;case fO:return"'"+t.replace(/'/g,"''")+"'";case pO:return"|"+YS(t,e.indent)+QS(WS(t,i));case dO:return">"+YS(t,e.indent)+QS(WS(B3(t,s),i));case lu:return'"'+H3(t,s)+'"';default:throw new na("impossible error: invalid scalar style")}}()}o(V3,"writeScalar");function YS(e,t){var r=uO(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(ZS,"blockHeader");function WS(e){return e[e.length-1]===`
37
- `?e.slice(0,-1):e}o(WS,"dropEndingNewline");function L3(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,KS(e.slice(0,l),t)}(),i=e[0]===`
36
+ `}o(YS,"blockHeader");function QS(e){return e[e.length-1]===`
37
+ `?e.slice(0,-1):e}o(QS,"dropEndingNewline");function B3(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,JS(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
- `:"")+KS(u,t),i=s}return n}o(L3,"foldString");function KS(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
+ `:"")+JS(u,t),i=s}return n}o(B3,"foldString");function JS(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(KS,"foldLine");function F3(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+=US((r-55296)*1024+n-56320+65536),s++;continue}i=Pt[r],t+=!i&&Uo(r)?e[s]:i||US(r)}return t}o(F3,"escapeString");function V3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ni(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(V3,"writeFlowSequence");function B3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Ni(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Th(e,t)),e.dump&&Xs===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(B3,"writeBlockSequence");function H3(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],Ni(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ni(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(H3,"writeFlowMapping");function U3(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 ta("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Th(e,t)),l=a[c],p=r[l],Ni(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Xs===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Th(e,t)),Ni(e,t+1,p,!0,f)&&(e.dump&&Xs===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(U3,"writeBlockMapping");function YS(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,QS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(JS.call(c.represent,u))n=c.represent[u](t,u);else throw new ta("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(YS,"detectType");function Ni(e,t,r,n,i,s){e.tag=null,e.dump=r,YS(e,r,!1)||YS(e,r,!0);var a=QS.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?(U3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(H3(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?(B3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(V3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&D3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ta("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Ni,"writeNode");function z3(e,t){var r=[],n=[],i,s;for(jh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(z3,"getDuplicateReferences");function jh(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)jh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)jh(e[n[i]],t,r)}o(jh,"inspectNode");function fP(e,t){t=t||{};var r=new R3(t);return r.noRefs||z3(e,r),Ni(r,0,e,!0,!0)?r.dump+`
44
- `:""}o(fP,"dump");function G3(e,t){return fP(e,ea.extend({schema:h3},t))}o(G3,"safeDump");Nh.exports.dump=fP;Nh.exports.safeDump=G3});var hP=v((kH,Ze)=>{"use strict";var cu=HS(),dP=pP();function uu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(uu,"deprecated");Ze.exports.Type=st();Ze.exports.Schema=Ci();Ze.exports.FAILSAFE_SCHEMA=tu();Ze.exports.JSON_SCHEMA=$h();Ze.exports.CORE_SCHEMA=wh();Ze.exports.DEFAULT_SAFE_SCHEMA=Fo();Ze.exports.DEFAULT_FULL_SCHEMA=Qs();Ze.exports.load=cu.load;Ze.exports.loadAll=cu.loadAll;Ze.exports.safeLoad=cu.safeLoad;Ze.exports.safeLoadAll=cu.safeLoadAll;Ze.exports.dump=dP.dump;Ze.exports.safeDump=dP.safeDump;Ze.exports.YAMLException=Do();Ze.exports.MINIMAL_SCHEMA=tu();Ze.exports.SAFE_SCHEMA=Fo();Ze.exports.DEFAULT_SCHEMA=Qs();Ze.exports.scan=uu("scan");Ze.exports.parse=uu("parse");Ze.exports.compose=uu("compose");Ze.exports.addConstructor=uu("addConstructor")});var gP=v((qH,mP)=>{"use strict";var Z3=hP();mP.exports=Z3});var bP=v((DH,yP)=>{"use strict";var{ParserError:W3}=wr(),K3=gP();yP.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 K3.safeLoad(t)}catch(r){throw new W3(r.message,e.url)}else return t}}});var _P=v((LH,vP)=>{"use strict";var{ParserError:Y3}=wr(),Q3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;vP.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&Q3.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 Y3("data is not text",e.url)}}});var PP=v((FH,SP)=>{"use strict";var J3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;SP.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&J3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var $P=v((VH,EP)=>{"use strict";var X3=require("fs"),{ono:kh}=_r(),OP=Ut(),{ResolverError:Mh}=wr();EP.exports={order:100,canRead(e){return OP.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=OP.toFileSystemPath(e.url)}catch(i){r(new Mh(kh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{X3.readFile(n,(i,s)=>{i?r(new Mh(kh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Mh(kh(i,`Error opening file "${n}"`),n))}})}}});var IP=v((BH,AP)=>{"use strict";var eM=require("http"),tM=require("https"),{ono:lu}=_r(),ra=Ut(),{ResolverError:wP}=wr();AP.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return ra.isHttp(e.url)},read(e){let t=ra.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=ra.parse(location.href).protocol),xP(t,this)}};function xP(e,t,r){return new Promise((n,i)=>{e=ra.parse(e),r=r||[],r.push(e.href),rM(e,t).then(s=>{if(s.statusCode>=400)throw lu({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new wP(lu({status:s.statusCode},`Error downloading ${r[0]}.
43
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(JS,"foldLine");function H3(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+=ZS((r-55296)*1024+n-56320+65536),s++;continue}i=Ot[r],t+=!i&&zo(r)?e[s]:i||ZS(r)}return t}o(H3,"escapeString");function U3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ni(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(U3,"writeFlowSequence");function z3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Ni(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=kh(e,t)),e.dump&&ta===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(z3,"writeBlockSequence");function G3(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],Ni(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ni(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(G3,"writeFlowMapping");function Z3(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 na("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=kh(e,t)),l=a[c],p=r[l],Ni(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ta===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=kh(e,t)),Ni(e,t+1,p,!0,f)&&(e.dump&&ta===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(Z3,"writeBlockMapping");function XS(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,eO.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(tO.call(c.represent,u))n=c.represent[u](t,u);else throw new na("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(XS,"detectType");function Ni(e,t,r,n,i,s){e.tag=null,e.dump=r,XS(e,r,!1)||XS(e,r,!0);var a=eO.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?(Z3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(G3(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?(z3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(U3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&V3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new na("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Ni,"writeNode");function W3(e,t){var r=[],n=[],i,s;for(Mh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(W3,"getDuplicateReferences");function Mh(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)Mh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Mh(e[n[i]],t,r)}o(Mh,"inspectNode");function hO(e,t){t=t||{};var r=new M3(t);return r.noRefs||W3(e,r),Ni(r,0,e,!0,!0)?r.dump+`
44
+ `:""}o(hO,"dump");function K3(e,t){return hO(e,ra.extend({schema:y3},t))}o(K3,"safeDump");Dh.exports.dump=hO;Dh.exports.safeDump=K3});var yO=v((DH,Ze)=>{"use strict";var fu=GS(),gO=mO();function pu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(pu,"deprecated");Ze.exports.Type=st();Ze.exports.Schema=Ci();Ze.exports.FAILSAFE_SCHEMA=iu();Ze.exports.JSON_SCHEMA=Ih();Ze.exports.CORE_SCHEMA=Ch();Ze.exports.DEFAULT_SAFE_SCHEMA=Vo();Ze.exports.DEFAULT_FULL_SCHEMA=Xs();Ze.exports.load=fu.load;Ze.exports.loadAll=fu.loadAll;Ze.exports.safeLoad=fu.safeLoad;Ze.exports.safeLoadAll=fu.safeLoadAll;Ze.exports.dump=gO.dump;Ze.exports.safeDump=gO.safeDump;Ze.exports.YAMLException=Lo();Ze.exports.MINIMAL_SCHEMA=iu();Ze.exports.SAFE_SCHEMA=Vo();Ze.exports.DEFAULT_SCHEMA=Xs();Ze.exports.scan=pu("scan");Ze.exports.parse=pu("parse");Ze.exports.compose=pu("compose");Ze.exports.addConstructor=pu("addConstructor")});var vO=v((FH,bO)=>{"use strict";var Y3=yO();bO.exports=Y3});var SO=v((VH,_O)=>{"use strict";var{ParserError:Q3}=wr(),J3=vO();_O.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 J3.safeLoad(t)}catch(r){throw new Q3(r.message,e.url)}else return t}}});var PO=v((BH,OO)=>{"use strict";var{ParserError:X3}=wr(),eM=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;OO.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&eM.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 X3("data is not text",e.url)}}});var $O=v((HH,EO)=>{"use strict";var tM=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;EO.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&tM.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var AO=v((UH,xO)=>{"use strict";var rM=require("fs"),{ono:Lh}=_r(),wO=Ut(),{ResolverError:Fh}=wr();xO.exports={order:100,canRead(e){return wO.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=wO.toFileSystemPath(e.url)}catch(i){r(new Fh(Lh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{rM.readFile(n,(i,s)=>{i?r(new Fh(Lh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Fh(Lh(i,`Error opening file "${n}"`),n))}})}}});var RO=v((zH,TO)=>{"use strict";var nM=require("http"),iM=require("https"),{ono:du}=_r(),ia=Ut(),{ResolverError:IO}=wr();TO.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return ia.isHttp(e.url)},read(e){let t=ia.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=ia.parse(location.href).protocol),CO(t,this)}};function CO(e,t,r){return new Promise((n,i)=>{e=ia.parse(e),r=r||[],r.push(e.href),oM(e,t).then(s=>{if(s.statusCode>=400)throw du({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new IO(du({status:s.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
47
- `)}`)));else if(s.headers.location){let a=ra.resolve(e,s.headers.location);xP(a,t,r).then(n,i)}else throw lu({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new wP(lu(s,`Error downloading ${e.href}`),e.href))})})}o(xP,"download");function rM(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?tM:eM).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(rM,"get")});var Lh=v((UH,TP)=>{"use strict";var nM=w_(),iM=bP(),oM=_P(),sM=PP(),aM=$P(),cM=IP();TP.exports=Dh;function Dh(e){qh(this,Dh.defaults),qh(this,e)}o(Dh,"$RefParserOptions");Dh.defaults={parse:{json:nM,yaml:iM,text:oM,binary:sM},resolve:{file:aM,http:cM,external:!0},continueOnError:!1,dereference:{circular:!0}};function qh(e,t){if(CP(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];CP(s)?e[i]=qh(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(qh,"merge");function CP(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(CP,"isMergeable")});var Fh=v((GH,RP)=>{"use strict";var jP=Lh();RP.exports=uM;function uM(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 jP||(n=new jP(n)),{path:t,schema:r,options:n,callback:i}}o(uM,"normalizeArgs")});var kP=v((WH,NP)=>{"use strict";var Vh=Lh(),lM=vh(),fM=Ph(),pM=require("util");NP.exports=fu;function fu(e){Vh.call(this,fu.defaults),Vh.apply(this,arguments)}o(fu,"ParserOptions");fu.defaults={validate:{schema:lM,spec:fM}};pM.inherits(fu,Vh)});var qP=v((YH,MP)=>{"use strict";function dM(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(dM,"makeNext");MP.exports=dM()});var Bh=v((JH,LP)=>{"use strict";var DP=qP();LP.exports=o(function(t,r){if(t){r.then(function(n){DP(function(){t(null,n)})},function(n){DP(function(){t(n)})});return}else return r},"maybe")});var na=v((e9,BP)=>{"use strict";BP.exports=qn;var Hh=zo(),Uh=Ut(),{JSONParserError:hM,InvalidPointerError:mM,MissingPointerError:gM,isHandledError:yM}=wr(),bM=/\//g,vM=/~/g,_M=/~1/g,SM=/~0/g;function qn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(qn,"Pointer");qn.prototype.resolve=function(e,t,r){let n=qn.parse(this.path,this.originalPath);this.value=VP(e);for(let i=0;i<n.length;i++){if(pu(this,t)&&(this.path=qn.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 gM(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Uh.resolve(this.path,this.value.$ref)!==r)&&pu(this,t),this};qn.prototype.set=function(e,t,r){let n=qn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=VP(e);for(let s=0;s<n.length-1;s++)pu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=FP(this,i,{});return pu(this,r),i=n[n.length-1],FP(this,i,t),e};qn.parse=function(e,t){let r=Uh.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(_M,"/").replace(SM,"~"));if(r[0]!=="")throw new mM(r,t===void 0?e:t);return r.slice(1)};qn.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(vM,"~0").replace(bM,"~1"))}return e};function pu(e,t){if(Hh.isAllowed$Ref(e.value,t)){let r=Uh.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,Hh.isExtended$Ref(e.value)?(e.value=Hh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(pu,"resolveIf$Ref");function FP(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 hM(`Error assigning $ref pointer "${e.path}".
48
- Cannot set "${t}" of a non-object.`);return r}o(FP,"setValue");function VP(e){if(yM(e))throw e;return e}o(VP,"unwrapOrThrow")});var zo=v((r9,zP)=>{"use strict";zP.exports=At;var UP=na(),{InvalidPointerError:PM,isHandledError:OM,normalizeError:HP}=wr(),{safePointerToPath:EM,stripHash:$M,getHash:wM}=Ut();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(HP)):this.errors.push(HP(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 UP(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!OM(s))throw s;return s.path===null&&(s.path=EM(wM(n))),s instanceof PM&&(s.source=$M(n)),this.addError(s),null}};At.prototype.set=function(e,t){let r=new UP(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 KP=v((i9,WP)=>{"use strict";var{ono:GP}=_r(),xM=zo(),Dn=Ut();WP.exports=xr;function xr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(xr,"$Refs");xr.prototype.paths=function(e){return ZP(this._$refs,arguments).map(r=>r.decoded)};xr.prototype.values=function(e){let t=this._$refs;return ZP(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};xr.prototype.toJSON=xr.prototype.values;xr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};xr.prototype.get=function(e,t){return this._resolve(e,"",t).value};xr.prototype.set=function(e,t){let r=Dn.resolve(this._root$Ref.path,e),n=Dn.stripHash(r),i=this._$refs[n];if(!i)throw GP(`Error resolving $ref pointer "${e}".
49
- "${n}" not found.`);i.set(r,t)};xr.prototype._add=function(e){let t=Dn.stripHash(e),r=new xM;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};xr.prototype._resolve=function(e,t,r){let n=Dn.resolve(this._root$Ref.path,e),i=Dn.stripHash(n),s=this._$refs[i];if(!s)throw GP(`Error resolving $ref pointer "${e}".
50
- "${i}" not found.`);return s.resolve(n,r,e,t)};xr.prototype._get$Ref=function(e){e=Dn.resolve(this._root$Ref.path,e);let t=Dn.stripHash(e);return this._$refs[t]};function ZP(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"?Dn.toFileSystemPath(n,!0):n}))}o(ZP,"getPaths")});var QP=v(ia=>{"use strict";ia.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};ia.filter=function(e,t,r){return e.filter(n=>!!YP(n,t,r))};ia.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)};ia.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=YP(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 YP(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(YP,"getResult")});var Gh=v((c9,tO)=>{"use strict";var{ono:zh}=_r(),JP=Ut(),Ln=QP(),{ResolverError:XP,ParserError:eO,UnmatchedParserError:AM,UnmatchedResolverError:IM,isHandledError:CM}=wr();tO.exports=TM;async function TM(e,t,r){e=JP.stripHash(e);let n=t._add(e),i={url:e,extension:JP.getExtension(e)};try{let s=await jM(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await RM(i,r,t);return n.value=a.result,a.result}catch(s){throw CM(s)&&(n.value=s),s}}o(TM,"parse");function jM(e,t,r){return new Promise((n,i)=>{let s=Ln.all(t.resolve);s=Ln.filter(s,"canRead",e),Ln.sort(s),Ln.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new IM(e.url)):!c||!("error"in c)?i(zh.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof XP?i(c.error):i(new XP(c,e.url))}o(a,"onError")})}o(jM,"readFile");function RM(e,t,r){return new Promise((n,i)=>{let s=Ln.all(t.parse),a=Ln.filter(s,"canParse",e),c=a.length>0?a:s;Ln.sort(c),Ln.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&NM(p.result)?i(zh.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 AM(e.url)):!p||!("error"in p)?i(zh.syntax(`Unable to parse ${e.url}`)):p.error instanceof eO?i(p.error):i(new eO(p.error.message,e.url))}o(l,"onError")})}o(RM,"parseFile");function NM(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(NM,"isEmpty")});var oO=v((l9,iO)=>{"use strict";var rO=zo(),kM=na(),MM=Gh(),oa=Ut(),{isHandledError:qM}=wr();iO.exports=DM;function DM(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Zh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(DM,"resolveExternal");function Zh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(rO.isExternal$Ref(e))i.push(nO(e,t,r,n));else for(let s of Object.keys(e)){let a=kM.join(t,s),c=e[s];rO.isExternal$Ref(c)?i.push(nO(c,a,r,n)):i=i.concat(Zh(c,a,r,n))}return i}o(Zh,"crawl");async function nO(e,t,r,n){let i=oa.resolve(t,e.$ref),s=oa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await MM(i,r,n),c=Zh(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!qM(a))throw a;return r._$refs[s]&&(a.source=oa.stripHash(t),a.path=oa.safePointerToPath(oa.getHash(t))),[]}}o(nO,"resolve$Ref")});var cO=v((p9,aO)=>{"use strict";var du=zo(),sa=na(),Wh=Ut();aO.exports=LM;function LM(e,t){let r=[];Kh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),FM(r)}o(LM,"bundle");function Kh(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(du.isAllowed$Ref(u))sO(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=sa.join(r,p),d=sa.join(n,p),h=u[p];du.isAllowed$Ref(h)?sO(u,p,r,d,i,s,a,c):Kh(u,p,f,d,i,s,a,c)}}}o(Kh,"crawl");function sO(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Wh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=sa.parse(n).length,d=Wh.stripHash(p.path),h=Wh.getHash(p.path),y=d!==a._root$Ref.path,b=du.isExtended$Ref(u);i+=p.indirections;let g=VM(s,e,t);if(g)if(f<g.depth||i<g.indirections)BM(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||Kh(p.value,null,p.path,n,i+1,s,a,c)}o(sO,"inventory$Ref");function FM(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=sa.join(n,sa.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=du.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(FM,"remap");function VM(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(VM,"findInInventory");function BM(e,t){let r=e.indexOf(t);e.splice(r,1)}o(BM,"removeFromInventory")});var Jh=v((h9,pO)=>{"use strict";var Yh=zo(),uO=na(),{ono:HM}=_r(),UM=Ut();pO.exports=zM;function zM(e,t){let r=Qh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(zM,"dereference");function Qh(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),Yh.isAllowed$Ref(e,s))a=lO(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=uO.join(t,u),p=uO.join(r,u),f=e[u],d=!1;Yh.isAllowed$Ref(f,s)?(a=lO(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Qh(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=fO(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Qh,"crawl");function lO(e,t,r,n,i,s){let a=UM.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&&fO(t,i,s);let p=Yh.dereference(e,c.value);if(!l){let f=Qh(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(lO,"dereference$Ref");function fO(e,t,r){if(t.circular=!0,!r.dereference.circular)throw HM.reference(`Circular $ref pointer found at ${e}`);return!0}o(fO,"foundCircularReference")});var gO=v((g9,Zr)=>{"use strict";var mO=KP(),GM=Gh(),hu=Fh(),ZM=oO(),WM=cO(),KM=Jh(),Go=Ut(),{JSONParserError:YM,InvalidPointerError:QM,MissingPointerError:JM,ResolverError:XM,ParserError:eq,UnmatchedParserError:tq,UnmatchedResolverError:rq,isHandledError:nq,JSONParserErrorGroup:dO}=wr(),Ar=Bh(),{ono:hO}=_r();Zr.exports=Gr;Zr.exports.default=Gr;Zr.exports.JSONParserError=YM;Zr.exports.InvalidPointerError=QM;Zr.exports.MissingPointerError=JM;Zr.exports.ResolverError=XM;Zr.exports.ParserError=eq;Zr.exports.UnmatchedParserError=tq;Zr.exports.UnmatchedResolverError=rq;function Gr(){this.schema=null,this.$refs=new mO}o(Gr,"$RefParser");Gr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Gr.prototype.parse=o(async function(t,r,n,i){let s=hu(arguments),a;if(!s.path&&!s.schema){let l=hO(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Ar(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new mO;let c="http";if(Go.isFileSystemPath(s.path)&&(s.path=Go.fromFileSystemPath(s.path),c="file"),s.path=Go.resolve(Go.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=GM(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,Ar(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Ar(s.callback,Promise.resolve(u.schema));throw hO.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!nq(l)?Ar(s.callback,Promise.reject(l)):(this.$refs._$refs[Go.stripHash(s.path)]&&this.$refs._$refs[Go.stripHash(s.path)].addError(l),Ar(s.callback,Promise.resolve(null)))}},"parse");Gr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Gr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=hu(arguments);try{return await this.parse(a.path,a.schema,a.options),await ZM(s,a.options),Xh(s),Ar(a.callback,Promise.resolve(s.$refs))}catch(c){return Ar(a.callback,Promise.reject(c))}},"resolve");Gr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Gr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=hu(arguments);try{return await this.resolve(a.path,a.schema,a.options),WM(s,a.options),Xh(s),Ar(a.callback,Promise.resolve(s.schema))}catch(c){return Ar(a.callback,Promise.reject(c))}},"bundle");Gr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Gr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=hu(arguments);try{return await this.resolve(a.path,a.schema,a.options),KM(s,a.options),Xh(s),Ar(a.callback,Promise.resolve(s.schema))}catch(c){return Ar(a.callback,Promise.reject(c))}},"dereference");function Xh(e){if(dO.getParserErrors(e).length>0)throw new dO(e)}o(Xh,"finalize")});var em=v((b9,_O)=>{"use strict";var iq=vh(),oq=Ph(),yO=Fh(),bO=pc(),vO=kP(),mu=Bh(),{ono:Ir}=_r(),ki=gO(),sq=Jh();_O.exports=Wr;function Wr(){ki.apply(this,arguments)}o(Wr,"SwaggerParser");bO.inherits(Wr,ki);Wr.parse=ki.parse;Wr.resolve=ki.resolve;Wr.bundle=ki.bundle;Wr.dereference=ki.dereference;Object.defineProperty(Wr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Wr.prototype.parse=async function(e,t,r,n){let i=yO(arguments);i.options=new vO(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 Ir.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Ir.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Ir.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Ir.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 Ir.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 Ir.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Ir.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Ir.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Ir.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Ir.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}bO.fixOasRelativeServers(s,i.path)}return mu(i.callback,Promise.resolve(s))}catch(s){return mu(i.callback,Promise.reject(s))}};Wr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Wr.prototype.validate=async function(e,t,r,n){let i=this,s=yO(arguments);s.options=new vO(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&&(iq(i.api),i.$refs.circular)){if(a===!0)sq(i,s.options);else if(a===!1)throw Ir.reference("The API contains circular references")}return s.options.validate.spec&&oq(i.api),mu(s.callback,Promise.resolve(i.schema))}catch(c){return mu(s.callback,Promise.reject(c))}}});var Ct=v(Kt=>{"use strict";Kt.__esModule=!0;Kt.extend=r1;Kt.indexOf=Wq;Kt.escapeExpression=Kq;Kt.isEmpty=Yq;Kt.createFrame=Qq;Kt.blockParams=Jq;Kt.appendContextPath=Xq;var Uq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},zq=/[&<>"'`=]/g,Gq=/[&<>"'`=]/;function Zq(e){return Uq[e]}o(Zq,"escapeChar");function r1(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(r1,"extend");var Rm=Object.prototype.toString;Kt.toString=Rm;var jm=o(function(t){return typeof t=="function"},"isFunction");jm(/x/)&&(Kt.isFunction=jm=o(function(e){return typeof e=="function"&&Rm.call(e)==="[object Function]"},"isFunction"));Kt.isFunction=jm;var n1=Array.isArray||function(e){return e&&typeof e=="object"?Rm.call(e)==="[object Array]":!1};Kt.isArray=n1;function Wq(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(Wq,"indexOf");function Kq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Gq.test(e)?e.replace(zq,Zq):e}o(Kq,"escapeExpression");function Yq(e){return!e&&e!==0?!0:!!(n1(e)&&e.length===0)}o(Yq,"isEmpty");function Qq(e){var t=r1({},e);return t._parent=e,t}o(Qq,"createFrame");function Jq(e,t){return e.path=t,e}o(Jq,"blockParams");function Xq(e,t){return(e?e+".":"")+t}o(Xq,"appendContextPath")});var pr=v((Lu,i1)=>{"use strict";Lu.__esModule=!0;var Nm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function km(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<Nm.length;u++)this[Nm[u]]=c[Nm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,km);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(km,"Exception");km.prototype=new Error;Lu.default=km;i1.exports=Lu.default});var s1=v((Fu,o1)=>{"use strict";Fu.__esModule=!0;var Mm=Ct();Fu.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(Mm.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=Mm.createFrame(r.data);s.contextPath=Mm.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};o1.exports=Fu.default});var c1=v((Vu,a1)=>{"use strict";Vu.__esModule=!0;function e4(e){return e&&e.__esModule?e:{default:e}}o(e4,"_interopRequireDefault");var Pa=Ct(),t4=pr(),r4=e4(t4);Vu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new r4.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=Pa.appendContextPath(r.data.contextPath,r.ids[0])+"."),Pa.isFunction(t)&&(t=t.call(this)),r.data&&(c=Pa.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:Pa.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Pa.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})};a1.exports=Vu.default});var l1=v((Bu,u1)=>{"use strict";Bu.__esModule=!0;function n4(e){return e&&e.__esModule?e:{default:e}}o(n4,"_interopRequireDefault");var i4=pr(),o4=n4(i4);Bu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o4.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};u1.exports=Bu.default});var h1=v((Hu,d1)=>{"use strict";Hu.__esModule=!0;function s4(e){return e&&e.__esModule?e:{default:e}}o(s4,"_interopRequireDefault");var f1=Ct(),a4=pr(),p1=s4(a4);Hu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new p1.default("#if requires exactly one argument");return f1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||f1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new p1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};d1.exports=Hu.default});var g1=v((Uu,m1)=>{"use strict";Uu.__esModule=!0;Uu.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)})};m1.exports=Uu.default});var b1=v((zu,y1)=>{"use strict";zu.__esModule=!0;zu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};y1.exports=zu.default});var _1=v((Gu,v1)=>{"use strict";Gu.__esModule=!0;function c4(e){return e&&e.__esModule?e:{default:e}}o(c4,"_interopRequireDefault");var Oa=Ct(),u4=pr(),l4=c4(u4);Gu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new l4.default("#with requires exactly one argument");Oa.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Oa.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Oa.createFrame(r.data),i.contextPath=Oa.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Oa.blockParams([t],[i&&i.contextPath])})})};v1.exports=Gu.default});var qm=v(Zu=>{"use strict";Zu.__esModule=!0;Zu.registerDefaultHelpers=$4;Zu.moveHelperToHooks=w4;function Ui(e){return e&&e.__esModule?e:{default:e}}o(Ui,"_interopRequireDefault");var f4=s1(),p4=Ui(f4),d4=c1(),h4=Ui(d4),m4=l1(),g4=Ui(m4),y4=h1(),b4=Ui(y4),v4=g1(),_4=Ui(v4),S4=b1(),P4=Ui(S4),O4=_1(),E4=Ui(O4);function $4(e){p4.default(e),h4.default(e),g4.default(e),b4.default(e),_4.default(e),P4.default(e),E4.default(e)}o($4,"registerDefaultHelpers");function w4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(w4,"moveHelperToHooks")});var P1=v((Wu,S1)=>{"use strict";Wu.__esModule=!0;var x4=Ct();Wu.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=x4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};S1.exports=Wu.default});var O1=v(Dm=>{"use strict";Dm.__esModule=!0;Dm.registerDefaultDecorators=T4;function A4(e){return e&&e.__esModule?e:{default:e}}o(A4,"_interopRequireDefault");var I4=P1(),C4=A4(I4);function T4(e){C4.default(e)}o(T4,"registerDefaultDecorators")});var Lm=v((Ku,E1)=>{"use strict";Ku.__esModule=!0;var j4=Ct(),Qo={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=j4.indexOf(Qo.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Qo.lookupLevel(t),typeof console<"u"&&Qo.lookupLevel(Qo.level)<=t){var r=Qo.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")};Ku.default=Qo;E1.exports=Ku.default});var $1=v(Fm=>{"use strict";Fm.__esModule=!0;Fm.createNewLookupObject=N4;var R4=Ct();function N4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return R4.extend.apply(void 0,[Object.create(null)].concat(t))}o(N4,"createNewLookupObject")});var Vm=v(Ea=>{"use strict";Ea.__esModule=!0;Ea.createProtoAccessControl=D4;Ea.resultIsAllowed=L4;Ea.resetLoggedProperties=V4;function k4(e){return e&&e.__esModule?e:{default:e}}o(k4,"_interopRequireDefault");var w1=$1(),M4=Lm(),q4=k4(M4),Yu=Object.create(null);function D4(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:w1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:w1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(D4,"createProtoAccessControl");function L4(e,t,r){return x1(typeof e=="function"?t.methods:t.properties,r)}o(L4,"resultIsAllowed");function x1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(F4(t),!1)}o(x1,"checkWhiteList");function F4(e){Yu[e]!==!0&&(Yu[e]=!0,q4.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=ia.resolve(e,s.headers.location);CO(a,t,r).then(n,i)}else throw du({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new IO(du(s,`Error downloading ${e.href}`),e.href))})})}o(CO,"download");function oM(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?iM:nM).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(oM,"get")});var Hh=v((ZH,NO)=>{"use strict";var sM=I_(),aM=SO(),cM=PO(),uM=$O(),lM=AO(),fM=RO();NO.exports=Bh;function Bh(e){Vh(this,Bh.defaults),Vh(this,e)}o(Bh,"$RefParserOptions");Bh.defaults={parse:{json:sM,yaml:aM,text:cM,binary:uM},resolve:{file:lM,http:fM,external:!0},continueOnError:!1,dereference:{circular:!0}};function Vh(e,t){if(jO(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];jO(s)?e[i]=Vh(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Vh,"merge");function jO(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(jO,"isMergeable")});var Uh=v((KH,MO)=>{"use strict";var kO=Hh();MO.exports=pM;function pM(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 kO||(n=new kO(n)),{path:t,schema:r,options:n,callback:i}}o(pM,"normalizeArgs")});var DO=v((QH,qO)=>{"use strict";var zh=Hh(),dM=Ph(),hM=wh(),mM=require("util");qO.exports=hu;function hu(e){zh.call(this,hu.defaults),zh.apply(this,arguments)}o(hu,"ParserOptions");hu.defaults={validate:{schema:dM,spec:hM}};mM.inherits(hu,zh)});var FO=v((XH,LO)=>{"use strict";function gM(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(gM,"makeNext");LO.exports=gM()});var Gh=v((t9,BO)=>{"use strict";var VO=FO();BO.exports=o(function(t,r){if(t){r.then(function(n){VO(function(){t(null,n)})},function(n){VO(function(){t(n)})});return}else return r},"maybe")});var oa=v((n9,zO)=>{"use strict";zO.exports=qn;var Zh=Go(),Wh=Ut(),{JSONParserError:yM,InvalidPointerError:bM,MissingPointerError:vM,isHandledError:_M}=wr(),SM=/\//g,OM=/~/g,PM=/~1/g,EM=/~0/g;function qn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(qn,"Pointer");qn.prototype.resolve=function(e,t,r){let n=qn.parse(this.path,this.originalPath);this.value=UO(e);for(let i=0;i<n.length;i++){if(mu(this,t)&&(this.path=qn.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 vM(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Wh.resolve(this.path,this.value.$ref)!==r)&&mu(this,t),this};qn.prototype.set=function(e,t,r){let n=qn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=UO(e);for(let s=0;s<n.length-1;s++)mu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=HO(this,i,{});return mu(this,r),i=n[n.length-1],HO(this,i,t),e};qn.parse=function(e,t){let r=Wh.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(PM,"/").replace(EM,"~"));if(r[0]!=="")throw new bM(r,t===void 0?e:t);return r.slice(1)};qn.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(OM,"~0").replace(SM,"~1"))}return e};function mu(e,t){if(Zh.isAllowed$Ref(e.value,t)){let r=Wh.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,Zh.isExtended$Ref(e.value)?(e.value=Zh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(mu,"resolveIf$Ref");function HO(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 yM(`Error assigning $ref pointer "${e.path}".
48
+ Cannot set "${t}" of a non-object.`);return r}o(HO,"setValue");function UO(e){if(_M(e))throw e;return e}o(UO,"unwrapOrThrow")});var Go=v((o9,WO)=>{"use strict";WO.exports=At;var ZO=oa(),{InvalidPointerError:$M,isHandledError:wM,normalizeError:GO}=wr(),{safePointerToPath:xM,stripHash:AM,getHash:IM}=Ut();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(GO)):this.errors.push(GO(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 ZO(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!wM(s))throw s;return s.path===null&&(s.path=xM(IM(n))),s instanceof $M&&(s.source=AM(n)),this.addError(s),null}};At.prototype.set=function(e,t){let r=new ZO(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 JO=v((a9,QO)=>{"use strict";var{ono:KO}=_r(),CM=Go(),Dn=Ut();QO.exports=xr;function xr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(xr,"$Refs");xr.prototype.paths=function(e){return YO(this._$refs,arguments).map(r=>r.decoded)};xr.prototype.values=function(e){let t=this._$refs;return YO(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};xr.prototype.toJSON=xr.prototype.values;xr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};xr.prototype.get=function(e,t){return this._resolve(e,"",t).value};xr.prototype.set=function(e,t){let r=Dn.resolve(this._root$Ref.path,e),n=Dn.stripHash(r),i=this._$refs[n];if(!i)throw KO(`Error resolving $ref pointer "${e}".
49
+ "${n}" not found.`);i.set(r,t)};xr.prototype._add=function(e){let t=Dn.stripHash(e),r=new CM;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};xr.prototype._resolve=function(e,t,r){let n=Dn.resolve(this._root$Ref.path,e),i=Dn.stripHash(n),s=this._$refs[i];if(!s)throw KO(`Error resolving $ref pointer "${e}".
50
+ "${i}" not found.`);return s.resolve(n,r,e,t)};xr.prototype._get$Ref=function(e){e=Dn.resolve(this._root$Ref.path,e);let t=Dn.stripHash(e);return this._$refs[t]};function YO(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"?Dn.toFileSystemPath(n,!0):n}))}o(YO,"getPaths")});var eP=v(sa=>{"use strict";sa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};sa.filter=function(e,t,r){return e.filter(n=>!!XO(n,t,r))};sa.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)};sa.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=XO(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 XO(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(XO,"getResult")});var Yh=v((f9,iP)=>{"use strict";var{ono:Kh}=_r(),tP=Ut(),Ln=eP(),{ResolverError:rP,ParserError:nP,UnmatchedParserError:TM,UnmatchedResolverError:RM,isHandledError:jM}=wr();iP.exports=NM;async function NM(e,t,r){e=tP.stripHash(e);let n=t._add(e),i={url:e,extension:tP.getExtension(e)};try{let s=await kM(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await MM(i,r,t);return n.value=a.result,a.result}catch(s){throw jM(s)&&(n.value=s),s}}o(NM,"parse");function kM(e,t,r){return new Promise((n,i)=>{let s=Ln.all(t.resolve);s=Ln.filter(s,"canRead",e),Ln.sort(s),Ln.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new RM(e.url)):!c||!("error"in c)?i(Kh.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof rP?i(c.error):i(new rP(c,e.url))}o(a,"onError")})}o(kM,"readFile");function MM(e,t,r){return new Promise((n,i)=>{let s=Ln.all(t.parse),a=Ln.filter(s,"canParse",e),c=a.length>0?a:s;Ln.sort(c),Ln.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&qM(p.result)?i(Kh.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 TM(e.url)):!p||!("error"in p)?i(Kh.syntax(`Unable to parse ${e.url}`)):p.error instanceof nP?i(p.error):i(new nP(p.error.message,e.url))}o(l,"onError")})}o(MM,"parseFile");function qM(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(qM,"isEmpty")});var cP=v((d9,aP)=>{"use strict";var oP=Go(),DM=oa(),LM=Yh(),aa=Ut(),{isHandledError:FM}=wr();aP.exports=VM;function VM(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Qh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(VM,"resolveExternal");function Qh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(oP.isExternal$Ref(e))i.push(sP(e,t,r,n));else for(let s of Object.keys(e)){let a=DM.join(t,s),c=e[s];oP.isExternal$Ref(c)?i.push(sP(c,a,r,n)):i=i.concat(Qh(c,a,r,n))}return i}o(Qh,"crawl");async function sP(e,t,r,n){let i=aa.resolve(t,e.$ref),s=aa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await LM(i,r,n),c=Qh(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!FM(a))throw a;return r._$refs[s]&&(a.source=aa.stripHash(t),a.path=aa.safePointerToPath(aa.getHash(t))),[]}}o(sP,"resolve$Ref")});var fP=v((m9,lP)=>{"use strict";var gu=Go(),ca=oa(),Jh=Ut();lP.exports=BM;function BM(e,t){let r=[];Xh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),HM(r)}o(BM,"bundle");function Xh(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(gu.isAllowed$Ref(u))uP(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=ca.join(r,p),d=ca.join(n,p),h=u[p];gu.isAllowed$Ref(h)?uP(u,p,r,d,i,s,a,c):Xh(u,p,f,d,i,s,a,c)}}}o(Xh,"crawl");function uP(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Jh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=ca.parse(n).length,d=Jh.stripHash(p.path),h=Jh.getHash(p.path),y=d!==a._root$Ref.path,b=gu.isExtended$Ref(u);i+=p.indirections;let g=UM(s,e,t);if(g)if(f<g.depth||i<g.indirections)zM(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||Xh(p.value,null,p.path,n,i+1,s,a,c)}o(uP,"inventory$Ref");function HM(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=ca.join(n,ca.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=gu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(HM,"remap");function UM(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(UM,"findInInventory");function zM(e,t){let r=e.indexOf(t);e.splice(r,1)}o(zM,"removeFromInventory")});var rm=v((y9,mP)=>{"use strict";var em=Go(),pP=oa(),{ono:GM}=_r(),ZM=Ut();mP.exports=WM;function WM(e,t){let r=tm(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(WM,"dereference");function tm(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),em.isAllowed$Ref(e,s))a=dP(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=pP.join(t,u),p=pP.join(r,u),f=e[u],d=!1;em.isAllowed$Ref(f,s)?(a=dP(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=tm(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=hP(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(tm,"crawl");function dP(e,t,r,n,i,s){let a=ZM.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&&hP(t,i,s);let p=em.dereference(e,c.value);if(!l){let f=tm(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(dP,"dereference$Ref");function hP(e,t,r){if(t.circular=!0,!r.dereference.circular)throw GM.reference(`Circular $ref pointer found at ${e}`);return!0}o(hP,"foundCircularReference")});var vP=v((v9,Zr)=>{"use strict";var bP=JO(),KM=Yh(),yu=Uh(),YM=cP(),QM=fP(),JM=rm(),Zo=Ut(),{JSONParserError:XM,InvalidPointerError:eq,MissingPointerError:tq,ResolverError:rq,ParserError:nq,UnmatchedParserError:iq,UnmatchedResolverError:oq,isHandledError:sq,JSONParserErrorGroup:gP}=wr(),Ar=Gh(),{ono:yP}=_r();Zr.exports=Gr;Zr.exports.default=Gr;Zr.exports.JSONParserError=XM;Zr.exports.InvalidPointerError=eq;Zr.exports.MissingPointerError=tq;Zr.exports.ResolverError=rq;Zr.exports.ParserError=nq;Zr.exports.UnmatchedParserError=iq;Zr.exports.UnmatchedResolverError=oq;function Gr(){this.schema=null,this.$refs=new bP}o(Gr,"$RefParser");Gr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Gr.prototype.parse=o(async function(t,r,n,i){let s=yu(arguments),a;if(!s.path&&!s.schema){let l=yP(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Ar(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new bP;let c="http";if(Zo.isFileSystemPath(s.path)&&(s.path=Zo.fromFileSystemPath(s.path),c="file"),s.path=Zo.resolve(Zo.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,Ar(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Ar(s.callback,Promise.resolve(u.schema));throw yP.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!sq(l)?Ar(s.callback,Promise.reject(l)):(this.$refs._$refs[Zo.stripHash(s.path)]&&this.$refs._$refs[Zo.stripHash(s.path)].addError(l),Ar(s.callback,Promise.resolve(null)))}},"parse");Gr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Gr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=yu(arguments);try{return await this.parse(a.path,a.schema,a.options),await YM(s,a.options),nm(s),Ar(a.callback,Promise.resolve(s.$refs))}catch(c){return Ar(a.callback,Promise.reject(c))}},"resolve");Gr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Gr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=yu(arguments);try{return await this.resolve(a.path,a.schema,a.options),QM(s,a.options),nm(s),Ar(a.callback,Promise.resolve(s.schema))}catch(c){return Ar(a.callback,Promise.reject(c))}},"bundle");Gr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Gr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=yu(arguments);try{return await this.resolve(a.path,a.schema,a.options),JM(s,a.options),nm(s),Ar(a.callback,Promise.resolve(s.schema))}catch(c){return Ar(a.callback,Promise.reject(c))}},"dereference");function nm(e){if(gP.getParserErrors(e).length>0)throw new gP(e)}o(nm,"finalize")});var im=v((S9,PP)=>{"use strict";var aq=Ph(),cq=wh(),_P=Uh(),SP=mc(),OP=DO(),bu=Gh(),{ono:Ir}=_r(),ki=vP(),uq=rm();PP.exports=Wr;function Wr(){ki.apply(this,arguments)}o(Wr,"SwaggerParser");SP.inherits(Wr,ki);Wr.parse=ki.parse;Wr.resolve=ki.resolve;Wr.bundle=ki.bundle;Wr.dereference=ki.dereference;Object.defineProperty(Wr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Wr.prototype.parse=async function(e,t,r,n){let i=_P(arguments);i.options=new OP(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 Ir.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Ir.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Ir.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Ir.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 Ir.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 Ir.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Ir.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Ir.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Ir.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Ir.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}SP.fixOasRelativeServers(s,i.path)}return bu(i.callback,Promise.resolve(s))}catch(s){return bu(i.callback,Promise.reject(s))}};Wr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Wr.prototype.validate=async function(e,t,r,n){let i=this,s=_P(arguments);s.options=new OP(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&&(aq(i.api),i.$refs.circular)){if(a===!0)uq(i,s.options);else if(a===!1)throw Ir.reference("The API contains circular references")}return s.options.validate.spec&&cq(i.api),bu(s.callback,Promise.resolve(i.schema))}catch(c){return bu(s.callback,Promise.reject(c))}}});var Ct=v(Kt=>{"use strict";Kt.__esModule=!0;Kt.extend=o1;Kt.indexOf=Qq;Kt.escapeExpression=Jq;Kt.isEmpty=Xq;Kt.createFrame=e4;Kt.blockParams=t4;Kt.appendContextPath=r4;var Zq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Wq=/[&<>"'`=]/g,Kq=/[&<>"'`=]/;function Yq(e){return Zq[e]}o(Yq,"escapeChar");function o1(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(o1,"extend");var Mm=Object.prototype.toString;Kt.toString=Mm;var km=o(function(t){return typeof t=="function"},"isFunction");km(/x/)&&(Kt.isFunction=km=o(function(e){return typeof e=="function"&&Mm.call(e)==="[object Function]"},"isFunction"));Kt.isFunction=km;var s1=Array.isArray||function(e){return e&&typeof e=="object"?Mm.call(e)==="[object Array]":!1};Kt.isArray=s1;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 Jq(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(Wq,Yq):e}o(Jq,"escapeExpression");function Xq(e){return!e&&e!==0?!0:!!(s1(e)&&e.length===0)}o(Xq,"isEmpty");function e4(e){var t=o1({},e);return t._parent=e,t}o(e4,"createFrame");function t4(e,t){return e.path=t,e}o(t4,"blockParams");function r4(e,t){return(e?e+".":"")+t}o(r4,"appendContextPath")});var pr=v((Hu,a1)=>{"use strict";Hu.__esModule=!0;var qm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Dm(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<qm.length;u++)this[qm[u]]=c[qm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Dm);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(Dm,"Exception");Dm.prototype=new Error;Hu.default=Dm;a1.exports=Hu.default});var u1=v((Uu,c1)=>{"use strict";Uu.__esModule=!0;var Lm=Ct();Uu.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(Lm.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=Lm.createFrame(r.data);s.contextPath=Lm.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};c1.exports=Uu.default});var f1=v((zu,l1)=>{"use strict";zu.__esModule=!0;function n4(e){return e&&e.__esModule?e:{default:e}}o(n4,"_interopRequireDefault");var $a=Ct(),i4=pr(),o4=n4(i4);zu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new o4.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=$a.appendContextPath(r.data.contextPath,r.ids[0])+"."),$a.isFunction(t)&&(t=t.call(this)),r.data&&(c=$a.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:$a.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if($a.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})};l1.exports=zu.default});var d1=v((Gu,p1)=>{"use strict";Gu.__esModule=!0;function s4(e){return e&&e.__esModule?e:{default:e}}o(s4,"_interopRequireDefault");var a4=pr(),c4=s4(a4);Gu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new c4.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};p1.exports=Gu.default});var y1=v((Zu,g1)=>{"use strict";Zu.__esModule=!0;function u4(e){return e&&e.__esModule?e:{default:e}}o(u4,"_interopRequireDefault");var h1=Ct(),l4=pr(),m1=u4(l4);Zu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new m1.default("#if requires exactly one argument");return h1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||h1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new m1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};g1.exports=Zu.default});var v1=v((Wu,b1)=>{"use strict";Wu.__esModule=!0;Wu.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)})};b1.exports=Wu.default});var S1=v((Ku,_1)=>{"use strict";Ku.__esModule=!0;Ku.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};_1.exports=Ku.default});var P1=v((Yu,O1)=>{"use strict";Yu.__esModule=!0;function f4(e){return e&&e.__esModule?e:{default:e}}o(f4,"_interopRequireDefault");var wa=Ct(),p4=pr(),d4=f4(p4);Yu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new d4.default("#with requires exactly one argument");wa.isFunction(t)&&(t=t.call(this));var n=r.fn;if(wa.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=wa.createFrame(r.data),i.contextPath=wa.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:wa.blockParams([t],[i&&i.contextPath])})})};O1.exports=Yu.default});var Fm=v(Qu=>{"use strict";Qu.__esModule=!0;Qu.registerDefaultHelpers=A4;Qu.moveHelperToHooks=I4;function zi(e){return e&&e.__esModule?e:{default:e}}o(zi,"_interopRequireDefault");var h4=u1(),m4=zi(h4),g4=f1(),y4=zi(g4),b4=d1(),v4=zi(b4),_4=y1(),S4=zi(_4),O4=v1(),P4=zi(O4),E4=S1(),$4=zi(E4),w4=P1(),x4=zi(w4);function A4(e){m4.default(e),y4.default(e),v4.default(e),S4.default(e),P4.default(e),$4.default(e),x4.default(e)}o(A4,"registerDefaultHelpers");function I4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(I4,"moveHelperToHooks")});var $1=v((Ju,E1)=>{"use strict";Ju.__esModule=!0;var C4=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=C4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};E1.exports=Ju.default});var w1=v(Vm=>{"use strict";Vm.__esModule=!0;Vm.registerDefaultDecorators=N4;function T4(e){return e&&e.__esModule?e:{default:e}}o(T4,"_interopRequireDefault");var R4=$1(),j4=T4(R4);function N4(e){j4.default(e)}o(N4,"registerDefaultDecorators")});var Bm=v((Xu,x1)=>{"use strict";Xu.__esModule=!0;var k4=Ct(),Xo={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=k4.indexOf(Xo.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Xo.lookupLevel(t),typeof console<"u"&&Xo.lookupLevel(Xo.level)<=t){var r=Xo.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")};Xu.default=Xo;x1.exports=Xu.default});var A1=v(Hm=>{"use strict";Hm.__esModule=!0;Hm.createNewLookupObject=q4;var M4=Ct();function q4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return M4.extend.apply(void 0,[Object.create(null)].concat(t))}o(q4,"createNewLookupObject")});var Um=v(xa=>{"use strict";xa.__esModule=!0;xa.createProtoAccessControl=V4;xa.resultIsAllowed=B4;xa.resetLoggedProperties=U4;function D4(e){return e&&e.__esModule?e:{default:e}}o(D4,"_interopRequireDefault");var I1=A1(),L4=Bm(),F4=D4(L4),el=Object.create(null);function V4(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:I1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:I1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(V4,"createProtoAccessControl");function B4(e,t,r){return C1(typeof e=="function"?t.methods:t.properties,r)}o(B4,"resultIsAllowed");function C1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(H4(t),!1)}o(C1,"checkWhiteList");function H4(e){el[e]!==!0&&(el[e]=!0,F4.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(F4,"logUnexpecedPropertyAccessOnce");function V4(){Object.keys(Yu).forEach(function(e){delete Yu[e]})}o(V4,"resetLoggedProperties")});var Ju=v(tn=>{"use strict";tn.__esModule=!0;tn.HandlebarsEnvironment=Um;function A1(e){return e&&e.__esModule?e:{default:e}}o(A1,"_interopRequireDefault");var zi=Ct(),B4=pr(),Bm=A1(B4),H4=qm(),U4=O1(),z4=Lm(),Qu=A1(z4),G4=Vm(),Z4="4.7.8";tn.VERSION=Z4;var W4=8;tn.COMPILER_REVISION=W4;var K4=7;tn.LAST_COMPATIBLE_COMPILER_REVISION=K4;var Y4={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"};tn.REVISION_CHANGES=Y4;var Hm="[object Object]";function Um(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},H4.registerDefaultHelpers(this),U4.registerDefaultDecorators(this)}o(Um,"HandlebarsEnvironment");Um.prototype={constructor:Um,logger:Qu.default,log:Qu.default.log,registerHelper:o(function(t,r){if(zi.toString.call(t)===Hm){if(r)throw new Bm.default("Arg not supported with multiple helpers");zi.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(zi.toString.call(t)===Hm)zi.extend(this.partials,t);else{if(typeof r>"u")throw new Bm.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(zi.toString.call(t)===Hm){if(r)throw new Bm.default("Arg not supported with multiple decorators");zi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){G4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Q4=Qu.default.log;tn.log=Q4;tn.createFrame=zi.createFrame;tn.logger=Qu.default});var C1=v((Xu,I1)=>{"use strict";Xu.__esModule=!0;function zm(e){this.string=e}o(zm,"SafeString");zm.prototype.toString=zm.prototype.toHTML=function(){return""+this.string};Xu.default=zm;I1.exports=Xu.default});var T1=v(Gm=>{"use strict";Gm.__esModule=!0;Gm.wrapHelper=J4;function J4(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(J4,"wrapHelper")});var M1=v(Jn=>{"use strict";Jn.__esModule=!0;Jn.checkRevision=iD;Jn.template=oD;Jn.wrapProgram=el;Jn.resolvePartial=sD;Jn.invokePartial=aD;Jn.noop=N1;function X4(e){return e&&e.__esModule?e:{default:e}}o(X4,"_interopRequireDefault");function eD(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(eD,"_interopRequireWildcard");var tD=Ct(),pn=eD(tD),rD=pr(),dn=X4(rD),hn=Ju(),j1=qm(),nD=T1(),R1=Vm();function iD(e){var t=e&&e[0]||1,r=hn.COMPILER_REVISION;if(!(t>=hn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=hn.COMPILER_REVISION))if(t<hn.LAST_COMPATIBLE_COMPILER_REVISION){var n=hn.REVISION_CHANGES[r],i=hn.REVISION_CHANGES[t];throw new dn.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 dn.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(iD,"checkRevision");function oD(e,t){if(!t)throw new dn.default("No environment passed to template");if(!e||!e.main)throw new dn.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=pn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=pn.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(`
53
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(H4,"logUnexpecedPropertyAccessOnce");function U4(){Object.keys(el).forEach(function(e){delete el[e]})}o(U4,"resetLoggedProperties")});var rl=v(tn=>{"use strict";tn.__esModule=!0;tn.HandlebarsEnvironment=Zm;function T1(e){return e&&e.__esModule?e:{default:e}}o(T1,"_interopRequireDefault");var Gi=Ct(),z4=pr(),zm=T1(z4),G4=Fm(),Z4=w1(),W4=Bm(),tl=T1(W4),K4=Um(),Y4="4.7.8";tn.VERSION=Y4;var Q4=8;tn.COMPILER_REVISION=Q4;var J4=7;tn.LAST_COMPATIBLE_COMPILER_REVISION=J4;var X4={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"};tn.REVISION_CHANGES=X4;var Gm="[object Object]";function Zm(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},G4.registerDefaultHelpers(this),Z4.registerDefaultDecorators(this)}o(Zm,"HandlebarsEnvironment");Zm.prototype={constructor:Zm,logger:tl.default,log:tl.default.log,registerHelper:o(function(t,r){if(Gi.toString.call(t)===Gm){if(r)throw new zm.default("Arg not supported with multiple helpers");Gi.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(Gi.toString.call(t)===Gm)Gi.extend(this.partials,t);else{if(typeof r>"u")throw new zm.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(Gi.toString.call(t)===Gm){if(r)throw new zm.default("Arg not supported with multiple decorators");Gi.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 eD=tl.default.log;tn.log=eD;tn.createFrame=Gi.createFrame;tn.logger=tl.default});var j1=v((nl,R1)=>{"use strict";nl.__esModule=!0;function Wm(e){this.string=e}o(Wm,"SafeString");Wm.prototype.toString=Wm.prototype.toHTML=function(){return""+this.string};nl.default=Wm;R1.exports=nl.default});var N1=v(Km=>{"use strict";Km.__esModule=!0;Km.wrapHelper=tD;function tD(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(tD,"wrapHelper")});var L1=v(Jn=>{"use strict";Jn.__esModule=!0;Jn.checkRevision=aD;Jn.template=cD;Jn.wrapProgram=il;Jn.resolvePartial=uD;Jn.invokePartial=lD;Jn.noop=q1;function rD(e){return e&&e.__esModule?e:{default:e}}o(rD,"_interopRequireDefault");function nD(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(nD,"_interopRequireWildcard");var iD=Ct(),pn=nD(iD),oD=pr(),dn=rD(oD),hn=rl(),k1=Fm(),sD=N1(),M1=Um();function aD(e){var t=e&&e[0]||1,r=hn.COMPILER_REVISION;if(!(t>=hn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=hn.COMPILER_REVISION))if(t<hn.LAST_COMPATIBLE_COMPILER_REVISION){var n=hn.REVISION_CHANGES[r],i=hn.REVISION_CHANGES[t];throw new dn.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 dn.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(aD,"checkRevision");function cD(e,t){if(!t)throw new dn.default("No environment passed to template");if(!e||!e.main)throw new dn.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=pn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=pn.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 dn.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 dn.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)||R1.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:pn.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=el(this,c,h,u,l,p,f):d||(d=this.programs[c]=el(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=pn.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=cD(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=k1(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=pn.extend({},t.helpers,a.helpers);uD(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=pn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=R1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;j1.moveHelperToHooks(i,"helperMissing",u),j1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new dn.default("must pass block params");if(e.useDepths&&!l)throw new dn.default("must pass parent depths");return el(i,a,e[a],c,0,u,l)},s}o(oD,"template");function el(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=k1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(el,"wrapProgram");function sD(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(sD,"resolvePartial");function aD(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!==N1&&function(){r.data=hn.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=hn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=pn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new dn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(aD,"invokePartial");function N1(){return""}o(N1,"noop");function cD(e,t){return(!t||!("root"in t))&&(t=t?hn.createFrame(t):{},t.root=e),t}o(cD,"initData");function k1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),pn.extend(t,a)}return t}o(k1,"executeDecorators");function uD(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=lD(n,t)})}o(uD,"wrapHelpersToPassLookupProperty");function lD(e,t){var r=t.lookupProperty;return nD.wrapHelper(e,function(n){return pn.extend({lookupProperty:r},n)})}o(lD,"passLookupPropertyOption")});var Zm=v((tl,q1)=>{"use strict";tl.__esModule=!0;tl.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}};q1.exports=tl.default});var B1=v((rl,V1)=>{"use strict";rl.__esModule=!0;function Km(e){return e&&e.__esModule?e:{default:e}}o(Km,"_interopRequireDefault");function Ym(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(Ym,"_interopRequireWildcard");var fD=Ju(),D1=Ym(fD),pD=C1(),dD=Km(pD),hD=pr(),mD=Km(hD),gD=Ct(),Wm=Ym(gD),yD=M1(),L1=Ym(yD),bD=Zm(),vD=Km(bD);function F1(){var e=new D1.HandlebarsEnvironment;return Wm.extend(e,D1),e.SafeString=dD.default,e.Exception=mD.default,e.Utils=Wm,e.escapeExpression=Wm.escapeExpression,e.VM=L1,e.template=function(t){return L1.template(t,e)},e}o(F1,"create");var $a=F1();$a.create=F1;vD.default($a);$a.default=$a;rl.default=$a;V1.exports=rl.default});var Qm=v((nl,U1)=>{"use strict";nl.__esModule=!0;var H1={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&&!H1.helpers.scopedId(t)&&!t.depth},"simpleId")}};nl.default=H1;U1.exports=nl.default});var G1=v((il,z1)=>{"use strict";il.__esModule=!0;var _D=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 E=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,ae,J,Ve,$e,X={},k,j,D,Y;;){if(ae=a[a.length-1],this.defaultActions[ae]?J=this.defaultActions[ae]:((I===null||typeof I>"u")&&(I=T()),J=l[ae]&&l[ae][I]),typeof J>"u"||!J.length||!J[0]){var ue="";if(!h){Y=[];for(k in l[ae])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 dn.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 dn.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)||M1.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:pn.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=il(this,c,h,u,l,p,f):d||(d=this.programs[c]=il(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=pn.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=fD(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=D1(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=pn.extend({},t.helpers,a.helpers);pD(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=pn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=M1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;k1.moveHelperToHooks(i,"helperMissing",u),k1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new dn.default("must pass block params");if(e.useDepths&&!l)throw new dn.default("must pass parent depths");return il(i,a,e[a],c,0,u,l)},s}o(cD,"template");function il(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=D1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(il,"wrapProgram");function uD(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(uD,"resolvePartial");function lD(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!==q1&&function(){r.data=hn.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=hn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=pn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new dn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(lD,"invokePartial");function q1(){return""}o(q1,"noop");function fD(e,t){return(!t||!("root"in t))&&(t=t?hn.createFrame(t):{},t.root=e),t}o(fD,"initData");function D1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),pn.extend(t,a)}return t}o(D1,"executeDecorators");function pD(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=dD(n,t)})}o(pD,"wrapHelpersToPassLookupProperty");function dD(e,t){var r=t.lookupProperty;return sD.wrapHelper(e,function(n){return pn.extend({lookupProperty:r},n)})}o(dD,"passLookupPropertyOption")});var Ym=v((ol,F1)=>{"use strict";ol.__esModule=!0;ol.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}};F1.exports=ol.default});var z1=v((sl,U1)=>{"use strict";sl.__esModule=!0;function Jm(e){return e&&e.__esModule?e:{default:e}}o(Jm,"_interopRequireDefault");function Xm(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(Xm,"_interopRequireWildcard");var hD=rl(),V1=Xm(hD),mD=j1(),gD=Jm(mD),yD=pr(),bD=Jm(yD),vD=Ct(),Qm=Xm(vD),_D=L1(),B1=Xm(_D),SD=Ym(),OD=Jm(SD);function H1(){var e=new V1.HandlebarsEnvironment;return Qm.extend(e,V1),e.SafeString=gD.default,e.Exception=bD.default,e.Utils=Qm,e.escapeExpression=Qm.escapeExpression,e.VM=B1,e.template=function(t){return B1.template(t,e)},e}o(H1,"create");var Aa=H1();Aa.create=H1;OD.default(Aa);Aa.default=Aa;sl.default=Aa;U1.exports=sl.default});var eg=v((al,Z1)=>{"use strict";al.__esModule=!0;var G1={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&&!G1.helpers.scopedId(t)&&!t.depth},"simpleId")}};al.default=G1;Z1.exports=al.default});var K1=v((cl,W1)=>{"use strict";cl.__esModule=!0;var PD=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 E=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,ae,J,Ve,$e,X={},k,R,D,Y;;){if(ae=a[a.length-1],this.defaultActions[ae]?J=this.defaultActions[ae]:((I===null||typeof I>"u")&&(I=T()),J=l[ae]&&l[ae][I]),typeof J>"u"||!J.length||!J[0]){var ue="";if(!h){Y=[];for(k in l[ae])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_[I]||I)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:g,expected:Y})}}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+I);switch(J[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(J[1]),I=null,C?(I=C,C=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(j=this.productions_[J[1]][1],X.$=c[c.length-j],X._$={first_line:u[u.length-(j||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(j||1)].first_column,last_column:u[u.length-1].last_column},E&&(X._$.range=[u[u.length-(j||1)].range[0],u[u.length-1].range[1]]),$e=this.performAction.call(X,p,d,f,this.yy,J[1],c,u),typeof $e<"u")return $e;j&&(a=a.slice(0,-1*j*2),c=c.slice(0,-1*j),u=u.slice(0,-1*j)),a.push(this.productions_[J[1]][0]),c.push(X.$),u.push(X._$),D=l[a[a.length-2]][a[a.length-1]],a.push(D);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
+ Expecting `+Y.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:g,expected:Y})}}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+I);switch(J[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(J[1]),I=null,C?(I=C,C=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[J[1]][1],X.$=c[c.length-R],X._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},E&&(X._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),$e=this.performAction.call(X,p,d,f,this.yy,J[1],c,u),typeof $e<"u")return $e;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[J[1]][0]),c.push(X.$),u.push(X._$),D=l[a[a.length-2]][a[a.length-1]],a.push(D);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}();il.default=_D;z1.exports=il.default});var cl=v((al,K1)=>{"use strict";al.__esModule=!0;function SD(e){return e&&e.__esModule?e:{default:e}}o(SD,"_interopRequireDefault");var PD=pr(),Jm=SD(PD);function ol(){this.parents=[]}o(ol,"Visitor");ol.prototype={constructor:ol,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ol.prototype[n.type])throw new Jm.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 Jm.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 Jm.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:sl,Decorator:sl,BlockStatement:Z1,DecoratorBlock:Z1,PartialStatement:W1,PartialBlockStatement:o(function(t){W1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:sl,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 sl(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(sl,"visitSubExpression");function Z1(e){sl.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(Z1,"visitBlock");function W1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(W1,"visitPartial");al.default=ol;K1.exports=al.default});var Q1=v((ul,Y1)=>{"use strict";ul.__esModule=!0;function OD(e){return e&&e.__esModule?e:{default:e}}o(OD,"_interopRequireDefault");var ED=cl(),$D=OD(ED);function rn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(rn,"WhitespaceControl");rn.prototype=new $D.default;rn.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=Xm(n,i,r),l=eg(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Gi(n,i,!0),c.open&&Xn(n,i,!0),t&&d&&(Gi(n,i),Xn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gi((a.program||a.inverse).body),Xn(n,i)),t&&f&&(Gi(n,i),Xn((a.inverse||a.program).body))}}return e};rn.prototype.BlockStatement=rn.prototype.DecoratorBlock=rn.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:eg(t.body),closeStandalone:Xm((n||t).body)};if(e.openStrip.close&&Gi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Xn(t.body,null,!0),a.close&&Gi(n.body,null,!0),e.closeStrip.open&&Xn(i.body,null,!0),!this.options.ignoreStandalone&&Xm(t.body)&&eg(n.body)&&(Xn(t.body),Gi(n.body))}else e.closeStrip.open&&Xn(t.body,null,!0);return s};rn.prototype.Decorator=rn.prototype.MustacheStatement=function(e){return e.strip};rn.prototype.PartialStatement=rn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Xm(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(Xm,"isPrevWhitespace");function eg(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(eg,"isNextWhitespace");function Gi(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(Gi,"omitRight");function Xn(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(Xn,"omitLeft");ul.default=rn;Y1.exports=ul.default});var J1=v(dr=>{"use strict";dr.__esModule=!0;dr.SourceLocation=AD;dr.id=ID;dr.stripFlags=CD;dr.stripComment=TD;dr.preparePath=jD;dr.prepareMustache=RD;dr.prepareRawBlock=ND;dr.prepareBlock=kD;dr.prepareProgram=MD;dr.preparePartialBlock=qD;function wD(e){return e&&e.__esModule?e:{default:e}}o(wD,"_interopRequireDefault");var xD=pr(),tg=wD(xD);function rg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new tg.default(e.path.original+" doesn't match "+t,r)}}o(rg,"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 ID(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(ID,"id");function CD(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(CD,"stripFlags");function TD(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(TD,"stripComment");function jD(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 tg.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(jD,"preparePath");function RD(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(RD,"prepareMustache");function ND(e,t,r,n){rg(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(ND,"prepareRawBlock");function kD(e,t,r,n,i,s){n&&n.path&&rg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new tg.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(kD,"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 qD(e,t,r,n){return rg(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(qD,"preparePartialBlock")});var t2=v(wa=>{"use strict";wa.__esModule=!0;wa.parseWithoutProcessing=e2;wa.parse=zD;function DD(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(DD,"_interopRequireWildcard");function X1(e){return e&&e.__esModule?e:{default:e}}o(X1,"_interopRequireDefault");var LD=G1(),ng=X1(LD),FD=Q1(),VD=X1(FD),BD=J1(),HD=DD(BD),UD=Ct();wa.parser=ng.default;var ll={};UD.extend(ll,HD);function e2(e,t){if(e.type==="Program")return e;ng.default.yy=ll,ll.locInfo=function(n){return new ll.SourceLocation(t&&t.srcName,n)};var r=ng.default.parse(e);return r}o(e2,"parseWithoutProcessing");function zD(e,t){var r=e2(e,t),n=new VD.default(t);return n.accept(r)}o(zD,"parse")});var o2=v(Ca=>{"use strict";Ca.__esModule=!0;Ca.Compiler=ig;Ca.precompile=KD;Ca.compile=YD;function n2(e){return e&&e.__esModule?e:{default:e}}o(n2,"_interopRequireDefault");var GD=pr(),Aa=n2(GD),Ia=Ct(),ZD=Qm(),xa=n2(ZD),WD=[].slice;function ig(){}o(ig,"Compiler");ig.prototype={compiler:ig,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||!i2(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=Ia.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 Aa.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){r2(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 Aa.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){r2(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 Aa.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,xa.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=xa.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:WD.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=xa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&xa.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&&!xa.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&&Ia.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function KD(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Aa.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(KD,"precompile");function YD(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Aa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Ia.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(YD,"compile");function i2(e,t){if(e===t)return!0;if(Ia.isArray(e)&&Ia.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!i2(e[r],t[r]))return!1;return!0}}o(i2,"argEquals");function r2(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(r2,"transformLiteralToPath")});var a2=v(og=>{var s2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");og.encode=function(e){if(0<=e&&e<s2.length)return s2[e];throw new TypeError("Must be between 0 and 63: "+e)};og.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 cg=v(ag=>{var c2=a2(),sg=5,u2=1<<sg,l2=u2-1,f2=u2;function QD(e){return e<0?(-e<<1)+1:(e<<1)+0}o(QD,"toVLQSigned");function JD(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(JD,"fromVLQSigned");ag.encode=o(function(t){var r="",n,i=QD(t);do n=i&l2,i>>>=sg,i>0&&(n|=f2),r+=c2.encode(n);while(i>0);return r},"base64VLQ_encode");ag.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=c2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&f2),u&=l2,s=s+(u<<a),a+=sg}while(c);n.value=JD(s),n.rest=r},"base64VLQ_decode")});var es=v(Et=>{function XD(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(XD,"getArg");Et.getArg=XD;var p2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,eL=/^data:.+\,.+$/;function Ta(e){var t=e.match(p2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Ta,"urlParse");Et.urlParse=Ta;function Jo(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(Jo,"urlGenerate");Et.urlGenerate=Jo;function ug(e){var t=e,r=Ta(e);if(r){if(!r.path)return e;t=r.path}for(var n=Et.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,Jo(r)):t}o(ug,"normalize");Et.normalize=ug;function d2(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ta(t),n=Ta(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Jo(r);if(r||t.match(eL))return t;if(n&&!n.host&&!n.path)return n.host=t,Jo(n);var i=t.charAt(0)==="/"?t:ug(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Jo(n)):i}o(d2,"join");Et.join=d2;Et.isAbsolute=function(e){return e.charAt(0)==="/"||p2.test(e)};function tL(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(tL,"relative");Et.relative=tL;var h2=function(){var e=Object.create(null);return!("__proto__"in e)}();function m2(e){return e}o(m2,"identity");function rL(e){return g2(e)?"$"+e:e}o(rL,"toSetString");Et.toSetString=h2?m2:rL;function nL(e){return g2(e)?e.slice(1):e}o(nL,"fromSetString");Et.fromSetString=h2?m2:nL;function g2(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(g2,"isProtoString");function iL(e,t,r){var n=Xo(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:Xo(e.name,t.name)}o(iL,"compareByOriginalPositions");Et.compareByOriginalPositions=iL;function oL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Xo(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Xo(e.name,t.name)}o(oL,"compareByGeneratedPositionsDeflated");Et.compareByGeneratedPositionsDeflated=oL;function Xo(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Xo,"strcmp");function sL(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Xo(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Xo(e.name,t.name)}o(sL,"compareByGeneratedPositionsInflated");Et.compareByGeneratedPositionsInflated=sL;function aL(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(aL,"parseSourceMapInput");Et.parseSourceMapInput=aL;function cL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Ta(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=d2(Jo(n),t)}return ug(t)}o(cL,"computeSourceURL");Et.computeSourceURL=cL});var pg=v(y2=>{var lg=es(),fg=Object.prototype.hasOwnProperty,Zi=typeof Map<"u";function mn(){this._array=[],this._set=Zi?new Map:Object.create(null)}o(mn,"ArraySet");mn.fromArray=o(function(t,r){for(var n=new mn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");mn.prototype.size=o(function(){return Zi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");mn.prototype.add=o(function(t,r){var n=Zi?t:lg.toSetString(t),i=Zi?this.has(t):fg.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");mn.prototype.has=o(function(t){if(Zi)return this._set.has(t);var r=lg.toSetString(t);return fg.call(this._set,r)},"ArraySet_has");mn.prototype.indexOf=o(function(t){if(Zi){var r=this._set.get(t);if(r>=0)return r}else{var n=lg.toSetString(t);if(fg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");mn.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");mn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");y2.ArraySet=mn});var _2=v(v2=>{var b2=es();function uL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||b2.compareByGeneratedPositionsInflated(e,t)<=0}o(uL,"generatedPositionAfter");function fl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(fl,"MappingList");fl.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");fl.prototype.add=o(function(t){uL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");fl.prototype.toArray=o(function(){return this._sorted||(this._array.sort(b2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");v2.MappingList=fl});var dg=v(S2=>{var ja=cg(),nt=es(),pl=pg().ArraySet,lL=_2().MappingList;function hr(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 pl,this._names=new pl,this._mappings=new lL,this._sourcesContents=null}o(hr,"SourceMapGenerator");hr.prototype._version=3;hr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new hr({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");hr.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");hr.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");hr.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 pl,c=new pl;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");hr.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");hr.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+=ja.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ja.encode(f-a),a=f,u+=ja.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ja.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ja.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");hr.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");hr.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");hr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");S2.SourceMapGenerator=hr});var P2=v(Wi=>{Wi.GREATEST_LOWER_BOUND=1;Wi.LEAST_UPPER_BOUND=2;function hg(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?hg(a,t,r,n,i,s):s==Wi.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?hg(e,a,r,n,i,s):s==Wi.LEAST_UPPER_BOUND?a:e<0?-1:e}o(hg,"recursiveSearch");Wi.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=hg(-1,r.length,t,r,n,i||Wi.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 E2=v(O2=>{function mg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(mg,"swap");function fL(e,t){return Math.round(e+Math.random()*(t-e))}o(fL,"randomIntInRange");function gg(e,t,r,n){if(r<n){var i=fL(r,n),s=r-1;mg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,mg(e,s,c));mg(e,s+1,c);var u=s+1;gg(e,t,r,u-1),gg(e,t,u+1,n)}}o(gg,"doQuickSort");O2.quickSort=function(e,t){gg(e,t,0,e.length-1)}});var w2=v(dl=>{var U=es(),yg=P2(),ts=pg().ArraySet,pL=cg(),Ra=E2().quickSort;function Me(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Tr(r,t):new gt(r,t)}o(Me,"SourceMapConsumer");Me.fromSourceMap=function(e,t){return gt.fromSourceMap(e,t)};Me.prototype._version=3;Me.prototype.__generatedMappings=null;Object.defineProperty(Me.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Me.prototype.__originalMappings=null;Object.defineProperty(Me.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Me.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Me.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Me.GENERATED_ORDER=1;Me.ORIGINAL_ORDER=2;Me.GREATEST_LOWER_BOUND=1;Me.LEAST_UPPER_BOUND=2;Me.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Me.GENERATED_ORDER,a;switch(s){case Me.GENERATED_ORDER:a=this._generatedMappings;break;case Me.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");Me.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,yg.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");dl.SourceMapConsumer=Me;function gt(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=ts.fromArray(s.map(String),!0),this._sources=ts.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(gt,"BasicSourceMapConsumer");gt.prototype=Object.create(Me.prototype);gt.prototype.consumer=Me;gt.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};gt.fromSourceMap=o(function(t,r){var n=Object.create(gt.prototype),i=n._names=ts.fromArray(t._names.toArray(),!0),s=n._sources=ts.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 $2;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 Ra(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");gt.prototype._version=3;Object.defineProperty(gt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function $2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o($2,"Mapping");gt.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,E,w,T;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new $2,b.generatedLine=n,w=p;w<l&&!this._charIsMappingSeparator(t,w);w++);if(g=t.slice(p,w),E=f[g],E)p+=g.length;else{for(E=[];p<w;)pL.decode(t,p,d),T=d.value,p=d.rest,E.push(T);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");f[g]=E}b.generatedColumn=i+E[0],i=b.generatedColumn,E.length>1&&(b.source=c+E[1],c+=E[1],b.originalLine=s+E[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+E[3],a=b.originalColumn,E.length>4&&(b.name=u+E[4],u+=E[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}Ra(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Ra(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");gt.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 yg.search(t,r,s,a)},"SourceMapConsumer_findMapping");gt.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");gt.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",Me.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");gt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");gt.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");gt.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",Me.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");dl.BasicSourceMapConsumer=gt;function Tr(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 ts,this._names=new ts;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 Me(U.getArg(a,"map"),t)}})}o(Tr,"IndexedSourceMapConsumer");Tr.prototype=Object.create(Me.prototype);Tr.prototype.constructor=Me;Tr.prototype._version=3;Object.defineProperty(Tr.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")});Tr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=yg.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");Tr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Tr.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");Tr.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");Tr.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)}Ra(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),Ra(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");dl.IndexedSourceMapConsumer=Tr});var A2=v(x2=>{var dL=dg().SourceMapGenerator,hl=es(),hL=/(\r?\n)/,mL=10,rs="$$$isSourceNode$$$";function Yt(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[rs]=!0,n!=null&&this.add(n)}o(Yt,"SourceNode");Yt.fromStringWithSourceMap=o(function(t,r,n){var i=new Yt,s=t.split(hL),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=hl.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?hl.join(n,d.source):d.source;i.add(new Yt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Yt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[rs]||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");Yt.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[rs]||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");Yt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[rs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Yt.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");Yt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[rs]?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");Yt.prototype.setSourceContent=o(function(t,r){this.sourceContents[hl.toSetString(t)]=r},"SourceNode_setSourceContent");Yt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][rs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(hl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Yt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Yt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new dL(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)===mL?(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");x2.SourceNode=Yt});var I2=v(ml=>{ml.SourceMapGenerator=dg().SourceMapGenerator;ml.SourceMapConsumer=w2().SourceMapConsumer;ml.SourceNode=A2().SourceNode});var R2=v((gl,j2)=>{"use strict";gl.__esModule=!0;var vg=Ct(),Ki=void 0;try{(typeof define!="function"||!define.amd)&&(C2=I2(),Ki=C2.SourceNode)}catch{}var C2;Ki||(Ki=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ki.prototype={add:o(function(t){vg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){vg.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 bg(e,t,r){if(vg.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(bg,"castChunk");function T2(e){this.srcFile=e,this.source=[]}o(T2,"CodeGen");T2.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 Ki(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 Ki?t:(t=bg(t,this,r),new Ki(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=bg(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(bg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};gl.default=T2;j2.exports=gl.default});var D2=v((yl,q2)=>{"use strict";yl.__esModule=!0;function M2(e){return e&&e.__esModule?e:{default:e}}o(M2,"_interopRequireDefault");var N2=Ju(),gL=pr(),_g=M2(gL),yL=Ct(),bL=R2(),k2=M2(bL);function ns(e){this.value=e}o(ns,"Literal");function is(){}o(is,"JavaScriptCompiler");is.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=N2.COMPILER_REVISION,r=N2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return yL.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 _g.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(),`;
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}();cl.default=PD;W1.exports=cl.default});var pl=v((fl,J1)=>{"use strict";fl.__esModule=!0;function ED(e){return e&&e.__esModule?e:{default:e}}o(ED,"_interopRequireDefault");var $D=pr(),tg=ED($D);function ul(){this.parents=[]}o(ul,"Visitor");ul.prototype={constructor:ul,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ul.prototype[n.type])throw new tg.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 tg.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 tg.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:ll,Decorator:ll,BlockStatement:Y1,DecoratorBlock:Y1,PartialStatement:Q1,PartialBlockStatement:o(function(t){Q1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ll,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 ll(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ll,"visitSubExpression");function Y1(e){ll.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(Y1,"visitBlock");function Q1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Q1,"visitPartial");fl.default=ul;J1.exports=fl.default});var e2=v((dl,X1)=>{"use strict";dl.__esModule=!0;function wD(e){return e&&e.__esModule?e:{default:e}}o(wD,"_interopRequireDefault");var xD=pl(),AD=wD(xD);function rn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(rn,"WhitespaceControl");rn.prototype=new AD.default;rn.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=rg(n,i,r),l=ng(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Zi(n,i,!0),c.open&&Xn(n,i,!0),t&&d&&(Zi(n,i),Xn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Zi((a.program||a.inverse).body),Xn(n,i)),t&&f&&(Zi(n,i),Xn((a.inverse||a.program).body))}}return e};rn.prototype.BlockStatement=rn.prototype.DecoratorBlock=rn.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:ng(t.body),closeStandalone:rg((n||t).body)};if(e.openStrip.close&&Zi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Xn(t.body,null,!0),a.close&&Zi(n.body,null,!0),e.closeStrip.open&&Xn(i.body,null,!0),!this.options.ignoreStandalone&&rg(t.body)&&ng(n.body)&&(Xn(t.body),Zi(n.body))}else e.closeStrip.open&&Xn(t.body,null,!0);return s};rn.prototype.Decorator=rn.prototype.MustacheStatement=function(e){return e.strip};rn.prototype.PartialStatement=rn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function rg(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(rg,"isPrevWhitespace");function ng(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(ng,"isNextWhitespace");function Zi(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(Zi,"omitRight");function Xn(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(Xn,"omitLeft");dl.default=rn;X1.exports=dl.default});var t2=v(dr=>{"use strict";dr.__esModule=!0;dr.SourceLocation=TD;dr.id=RD;dr.stripFlags=jD;dr.stripComment=ND;dr.preparePath=kD;dr.prepareMustache=MD;dr.prepareRawBlock=qD;dr.prepareBlock=DD;dr.prepareProgram=LD;dr.preparePartialBlock=FD;function ID(e){return e&&e.__esModule?e:{default:e}}o(ID,"_interopRequireDefault");var CD=pr(),ig=ID(CD);function og(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new ig.default(e.path.original+" doesn't match "+t,r)}}o(og,"validateClose");function TD(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(TD,"SourceLocation");function RD(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(RD,"id");function jD(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(jD,"stripFlags");function ND(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(ND,"stripComment");function kD(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 ig.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(kD,"preparePath");function MD(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(MD,"prepareMustache");function qD(e,t,r,n){og(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(qD,"prepareRawBlock");function DD(e,t,r,n,i,s){n&&n.path&&og(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new ig.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(DD,"prepareBlock");function LD(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(LD,"prepareProgram");function FD(e,t,r,n){return og(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(FD,"preparePartialBlock")});var i2=v(Ia=>{"use strict";Ia.__esModule=!0;Ia.parseWithoutProcessing=n2;Ia.parse=WD;function VD(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(VD,"_interopRequireWildcard");function r2(e){return e&&e.__esModule?e:{default:e}}o(r2,"_interopRequireDefault");var BD=K1(),sg=r2(BD),HD=e2(),UD=r2(HD),zD=t2(),GD=VD(zD),ZD=Ct();Ia.parser=sg.default;var hl={};ZD.extend(hl,GD);function n2(e,t){if(e.type==="Program")return e;sg.default.yy=hl,hl.locInfo=function(n){return new hl.SourceLocation(t&&t.srcName,n)};var r=sg.default.parse(e);return r}o(n2,"parseWithoutProcessing");function WD(e,t){var r=n2(e,t),n=new UD.default(t);return n.accept(r)}o(WD,"parse")});var c2=v(ja=>{"use strict";ja.__esModule=!0;ja.Compiler=ag;ja.precompile=JD;ja.compile=XD;function s2(e){return e&&e.__esModule?e:{default:e}}o(s2,"_interopRequireDefault");var KD=pr(),Ta=s2(KD),Ra=Ct(),YD=eg(),Ca=s2(YD),QD=[].slice;function ag(){}o(ag,"Compiler");ag.prototype={compiler:ag,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||!a2(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=Ra.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 Ta.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){o2(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 Ta.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){o2(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 Ta.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,Ca.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Ca.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=Ca.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Ca.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&&!Ca.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&&Ra.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function JD(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ta.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(JD,"precompile");function XD(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ta.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Ra.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(XD,"compile");function a2(e,t){if(e===t)return!0;if(Ra.isArray(e)&&Ra.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!a2(e[r],t[r]))return!1;return!0}}o(a2,"argEquals");function o2(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(o2,"transformLiteralToPath")});var l2=v(cg=>{var u2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");cg.encode=function(e){if(0<=e&&e<u2.length)return u2[e];throw new TypeError("Must be between 0 and 63: "+e)};cg.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 fg=v(lg=>{var f2=l2(),ug=5,p2=1<<ug,d2=p2-1,h2=p2;function eL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(eL,"toVLQSigned");function tL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(tL,"fromVLQSigned");lg.encode=o(function(t){var r="",n,i=eL(t);do n=i&d2,i>>>=ug,i>0&&(n|=h2),r+=f2.encode(n);while(i>0);return r},"base64VLQ_encode");lg.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=f2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&h2),u&=d2,s=s+(u<<a),a+=ug}while(c);n.value=tL(s),n.rest=r},"base64VLQ_decode")});var rs=v(Et=>{function rL(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(rL,"getArg");Et.getArg=rL;var m2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nL=/^data:.+\,.+$/;function Na(e){var t=e.match(m2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Na,"urlParse");Et.urlParse=Na;function es(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(es,"urlGenerate");Et.urlGenerate=es;function pg(e){var t=e,r=Na(e);if(r){if(!r.path)return e;t=r.path}for(var n=Et.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,es(r)):t}o(pg,"normalize");Et.normalize=pg;function g2(e,t){e===""&&(e="."),t===""&&(t=".");var r=Na(t),n=Na(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),es(r);if(r||t.match(nL))return t;if(n&&!n.host&&!n.path)return n.host=t,es(n);var i=t.charAt(0)==="/"?t:pg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,es(n)):i}o(g2,"join");Et.join=g2;Et.isAbsolute=function(e){return e.charAt(0)==="/"||m2.test(e)};function iL(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(iL,"relative");Et.relative=iL;var y2=function(){var e=Object.create(null);return!("__proto__"in e)}();function b2(e){return e}o(b2,"identity");function oL(e){return v2(e)?"$"+e:e}o(oL,"toSetString");Et.toSetString=y2?b2:oL;function sL(e){return v2(e)?e.slice(1):e}o(sL,"fromSetString");Et.fromSetString=y2?b2:sL;function v2(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(v2,"isProtoString");function aL(e,t,r){var n=ts(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:ts(e.name,t.name)}o(aL,"compareByOriginalPositions");Et.compareByOriginalPositions=aL;function cL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ts(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ts(e.name,t.name)}o(cL,"compareByGeneratedPositionsDeflated");Et.compareByGeneratedPositionsDeflated=cL;function ts(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ts,"strcmp");function uL(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ts(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ts(e.name,t.name)}o(uL,"compareByGeneratedPositionsInflated");Et.compareByGeneratedPositionsInflated=uL;function lL(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(lL,"parseSourceMapInput");Et.parseSourceMapInput=lL;function fL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Na(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=g2(es(n),t)}return pg(t)}o(fL,"computeSourceURL");Et.computeSourceURL=fL});var mg=v(_2=>{var dg=rs(),hg=Object.prototype.hasOwnProperty,Wi=typeof Map<"u";function mn(){this._array=[],this._set=Wi?new Map:Object.create(null)}o(mn,"ArraySet");mn.fromArray=o(function(t,r){for(var n=new mn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");mn.prototype.size=o(function(){return Wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");mn.prototype.add=o(function(t,r){var n=Wi?t:dg.toSetString(t),i=Wi?this.has(t):hg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Wi?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");mn.prototype.has=o(function(t){if(Wi)return this._set.has(t);var r=dg.toSetString(t);return hg.call(this._set,r)},"ArraySet_has");mn.prototype.indexOf=o(function(t){if(Wi){var r=this._set.get(t);if(r>=0)return r}else{var n=dg.toSetString(t);if(hg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");mn.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");mn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");_2.ArraySet=mn});var P2=v(O2=>{var S2=rs();function pL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||S2.compareByGeneratedPositionsInflated(e,t)<=0}o(pL,"generatedPositionAfter");function ml(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(ml,"MappingList");ml.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");ml.prototype.add=o(function(t){pL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");ml.prototype.toArray=o(function(){return this._sorted||(this._array.sort(S2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");O2.MappingList=ml});var gg=v(E2=>{var ka=fg(),nt=rs(),gl=mg().ArraySet,dL=P2().MappingList;function hr(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 gl,this._names=new gl,this._mappings=new dL,this._sourcesContents=null}o(hr,"SourceMapGenerator");hr.prototype._version=3;hr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new hr({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");hr.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");hr.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");hr.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 gl,c=new gl;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");hr.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");hr.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+=ka.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ka.encode(f-a),a=f,u+=ka.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ka.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ka.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");hr.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");hr.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");hr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");E2.SourceMapGenerator=hr});var $2=v(Ki=>{Ki.GREATEST_LOWER_BOUND=1;Ki.LEAST_UPPER_BOUND=2;function yg(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?yg(a,t,r,n,i,s):s==Ki.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?yg(e,a,r,n,i,s):s==Ki.LEAST_UPPER_BOUND?a:e<0?-1:e}o(yg,"recursiveSearch");Ki.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=yg(-1,r.length,t,r,n,i||Ki.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 x2=v(w2=>{function bg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(bg,"swap");function hL(e,t){return Math.round(e+Math.random()*(t-e))}o(hL,"randomIntInRange");function vg(e,t,r,n){if(r<n){var i=hL(r,n),s=r-1;bg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,bg(e,s,c));bg(e,s+1,c);var u=s+1;vg(e,t,r,u-1),vg(e,t,u+1,n)}}o(vg,"doQuickSort");w2.quickSort=function(e,t){vg(e,t,0,e.length-1)}});var I2=v(yl=>{var U=rs(),_g=$2(),ns=mg().ArraySet,mL=fg(),Ma=x2().quickSort;function Me(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Tr(r,t):new gt(r,t)}o(Me,"SourceMapConsumer");Me.fromSourceMap=function(e,t){return gt.fromSourceMap(e,t)};Me.prototype._version=3;Me.prototype.__generatedMappings=null;Object.defineProperty(Me.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Me.prototype.__originalMappings=null;Object.defineProperty(Me.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Me.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Me.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Me.GENERATED_ORDER=1;Me.ORIGINAL_ORDER=2;Me.GREATEST_LOWER_BOUND=1;Me.LEAST_UPPER_BOUND=2;Me.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Me.GENERATED_ORDER,a;switch(s){case Me.GENERATED_ORDER:a=this._generatedMappings;break;case Me.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");Me.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,_g.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");yl.SourceMapConsumer=Me;function gt(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=ns.fromArray(s.map(String),!0),this._sources=ns.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(gt,"BasicSourceMapConsumer");gt.prototype=Object.create(Me.prototype);gt.prototype.consumer=Me;gt.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};gt.fromSourceMap=o(function(t,r){var n=Object.create(gt.prototype),i=n._names=ns.fromArray(t._names.toArray(),!0),s=n._sources=ns.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 A2;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 Ma(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");gt.prototype._version=3;Object.defineProperty(gt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function A2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(A2,"Mapping");gt.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,E,w,T;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new A2,b.generatedLine=n,w=p;w<l&&!this._charIsMappingSeparator(t,w);w++);if(g=t.slice(p,w),E=f[g],E)p+=g.length;else{for(E=[];p<w;)mL.decode(t,p,d),T=d.value,p=d.rest,E.push(T);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");f[g]=E}b.generatedColumn=i+E[0],i=b.generatedColumn,E.length>1&&(b.source=c+E[1],c+=E[1],b.originalLine=s+E[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+E[3],a=b.originalColumn,E.length>4&&(b.name=u+E[4],u+=E[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}Ma(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Ma(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");gt.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 _g.search(t,r,s,a)},"SourceMapConsumer_findMapping");gt.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");gt.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",Me.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");gt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");gt.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");gt.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",Me.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");yl.BasicSourceMapConsumer=gt;function Tr(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 ns,this._names=new ns;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 Me(U.getArg(a,"map"),t)}})}o(Tr,"IndexedSourceMapConsumer");Tr.prototype=Object.create(Me.prototype);Tr.prototype.constructor=Me;Tr.prototype._version=3;Object.defineProperty(Tr.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")});Tr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=_g.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");Tr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Tr.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");Tr.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");Tr.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)}Ma(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),Ma(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");yl.IndexedSourceMapConsumer=Tr});var T2=v(C2=>{var gL=gg().SourceMapGenerator,bl=rs(),yL=/(\r?\n)/,bL=10,is="$$$isSourceNode$$$";function Yt(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[is]=!0,n!=null&&this.add(n)}o(Yt,"SourceNode");Yt.fromStringWithSourceMap=o(function(t,r,n){var i=new Yt,s=t.split(yL),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=bl.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?bl.join(n,d.source):d.source;i.add(new Yt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Yt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[is]||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");Yt.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[is]||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");Yt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[is]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Yt.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");Yt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[is]?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");Yt.prototype.setSourceContent=o(function(t,r){this.sourceContents[bl.toSetString(t)]=r},"SourceNode_setSourceContent");Yt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][is]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(bl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Yt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Yt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new gL(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)===bL?(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");C2.SourceNode=Yt});var R2=v(vl=>{vl.SourceMapGenerator=gg().SourceMapGenerator;vl.SourceMapConsumer=I2().SourceMapConsumer;vl.SourceNode=T2().SourceNode});var M2=v((_l,k2)=>{"use strict";_l.__esModule=!0;var Og=Ct(),Yi=void 0;try{(typeof define!="function"||!define.amd)&&(j2=R2(),Yi=j2.SourceNode)}catch{}var j2;Yi||(Yi=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Yi.prototype={add:o(function(t){Og.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Og.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 Sg(e,t,r){if(Og.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(Sg,"castChunk");function N2(e){this.srcFile=e,this.source=[]}o(N2,"CodeGen");N2.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 Yi(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 Yi?t:(t=Sg(t,this,r),new Yi(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=Sg(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(Sg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};_l.default=N2;k2.exports=_l.default});var V2=v((Sl,F2)=>{"use strict";Sl.__esModule=!0;function L2(e){return e&&e.__esModule?e:{default:e}}o(L2,"_interopRequireDefault");var q2=rl(),vL=pr(),Pg=L2(vL),_L=Ct(),SL=M2(),D2=L2(SL);function os(e){this.value=e}o(os,"Literal");function ss(){}o(ss,"JavaScriptCompiler");ss.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=q2.COMPILER_REVISION,r=q2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return _L.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 Pg.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 k2.default(this.options.srcName),this.decorators=new k2.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(","),`) {
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 D2.default(this.options.srcName),this.decorators=new D2.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(vL(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:is,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 ns||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new ns(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 _g.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof ns)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 ns)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 ns)return n.value;if(!r){if(!this.stackSlot)throw new _g.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 ns?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=is.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();is.isValidJavaScriptVariableName=function(e){return!is.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function vL(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(vL,"strictLookup");yl.default=is;q2.exports=yl.default});var V2=v((bl,F2)=>{"use strict";bl.__esModule=!0;function Na(e){return e&&e.__esModule?e:{default:e}}o(Na,"_interopRequireDefault");var _L=B1(),SL=Na(_L),PL=Qm(),OL=Na(PL),Sg=t2(),Pg=o2(),EL=D2(),$L=Na(EL),wL=cl(),xL=Na(wL),AL=Zm(),IL=Na(AL),CL=SL.default.create;function L2(){var e=CL();return e.compile=function(t,r){return Pg.compile(t,r,e)},e.precompile=function(t,r){return Pg.precompile(t,r,e)},e.AST=OL.default,e.Compiler=Pg.Compiler,e.JavaScriptCompiler=$L.default,e.Parser=Sg.parser,e.parse=Sg.parse,e.parseWithoutProcessing=Sg.parseWithoutProcessing,e}o(L2,"create");var os=L2();os.create=L2;IL.default(os);os.Visitor=xL.default;os.default=os;bl.default=os;F2.exports=bl.default});var B2=v(vl=>{"use strict";vl.__esModule=!0;vl.print=NL;vl.PrintVisitor=Ke;function TL(e){return e&&e.__esModule?e:{default:e}}o(TL,"_interopRequireDefault");var jL=cl(),RL=TL(jL);function NL(e){return new Ke().accept(e)}o(NL,"print");function Ke(){this.padding=0}o(Ke,"PrintVisitor");Ke.prototype=new RL.default;Ke.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
- `,t};Ke.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};Ke.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ke.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ke.prototype.BlockStatement=Ke.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};Ke.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+" }}")};Ke.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+" }}")};Ke.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ke.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ke.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};Ke.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ke.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ke.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ke.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ke.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ke.prototype.NullLiteral=function(){return"NULL"};Ke.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(", ")+"}"};Ke.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var ei=v((AK,z2)=>{var _l=V2().default,U2=B2();_l.PrintVisitor=U2.PrintVisitor;_l.print=U2.print;z2.exports=_l;function H2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=_l.compile(n)}o(H2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=H2,require.extensions[".hbs"]=H2)});var Ga=require("assert");var E$={right:I$,center:C$},$$=0,Da=1,w$=2,La=3,Ol=class Ol{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(`
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(OL(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:ss,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 os||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new os(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 Pg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof os)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 os)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 os)return n.value;if(!r){if(!this.stackSlot)throw new Pg.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 os?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=ss.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();ss.isValidJavaScriptVariableName=function(e){return!ss.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function OL(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(OL,"strictLookup");Sl.default=ss;F2.exports=Sl.default});var U2=v((Ol,H2)=>{"use strict";Ol.__esModule=!0;function qa(e){return e&&e.__esModule?e:{default:e}}o(qa,"_interopRequireDefault");var PL=z1(),EL=qa(PL),$L=eg(),wL=qa($L),Eg=i2(),$g=c2(),xL=V2(),AL=qa(xL),IL=pl(),CL=qa(IL),TL=Ym(),RL=qa(TL),jL=EL.default.create;function B2(){var e=jL();return e.compile=function(t,r){return $g.compile(t,r,e)},e.precompile=function(t,r){return $g.precompile(t,r,e)},e.AST=wL.default,e.Compiler=$g.Compiler,e.JavaScriptCompiler=AL.default,e.Parser=Eg.parser,e.parse=Eg.parse,e.parseWithoutProcessing=Eg.parseWithoutProcessing,e}o(B2,"create");var as=B2();as.create=B2;RL.default(as);as.Visitor=CL.default;as.default=as;Ol.default=as;H2.exports=Ol.default});var z2=v(Pl=>{"use strict";Pl.__esModule=!0;Pl.print=qL;Pl.PrintVisitor=Ke;function NL(e){return e&&e.__esModule?e:{default:e}}o(NL,"_interopRequireDefault");var kL=pl(),ML=NL(kL);function qL(e){return new Ke().accept(e)}o(qL,"print");function Ke(){this.padding=0}o(Ke,"PrintVisitor");Ke.prototype=new ML.default;Ke.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
+ `,t};Ke.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};Ke.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ke.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ke.prototype.BlockStatement=Ke.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};Ke.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+" }}")};Ke.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+" }}")};Ke.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ke.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ke.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};Ke.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ke.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ke.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ke.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ke.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ke.prototype.NullLiteral=function(){return"NULL"};Ke.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(", ")+"}"};Ke.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var ei=v((TK,W2)=>{var El=U2().default,Z2=z2();El.PrintVisitor=Z2.PrintVisitor;El.print=Z2.print;W2.exports=El;function G2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=El.compile(n)}o(G2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=G2,require.extensions[".hbs"]=G2)});var Ka=require("assert");var x$={right:R$,center:j$},A$=0,Va=1,I$=2,Ba=3,xl=class xl{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&&Lt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Lt.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=Lt.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>Lt.stringWidth(a)&&(p+=" ".repeat(l-Lt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=E$[t[c].align];p=d(p,l),Lt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Lt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[La]&&(s+=" ".repeat(f[La])),s+=xg(t[c],p,"| "),s+=p,s+=xg(t[c],p," |"),f[Da]&&(s+=" ".repeat(f[Da])),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=Lt.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=Lt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
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>Lt.stringWidth(a)&&(p+=" ".repeat(l-Lt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=x$[t[c].align];p=d(p,l),Lt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Lt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[Ba]&&(s+=" ".repeat(f[Ba])),s+=Cg(t[c],p,"| "),s+=p,s+=Cg(t[c],p," |"),f[Va]&&(s+=" ".repeat(f[Va])),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=Lt.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=Lt.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[$$]||0).fill("")),i.push(...new Array(s.padding[w$]||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[La]||0)+(t.padding[Da]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Lt.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,x$(t[c])):a)}};o(Ol,"UI");var Pl=Ol;function xg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(xg,"addBorder");function x$(e){let t=e.padding||[],r=1+(t[La]||0)+(t[Da]||0);return e.border?r+4:r}o(x$,"_minWidth");function A$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(A$,"getWindowWidth");function I$(e,t){e=e.trim();let r=Lt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(I$,"alignRight");function C$(e,t){e=e.trim();let r=Lt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(C$,"alignCenter");var Lt;function Ag(e,t){return Lt=t,new Pl({width:(e==null?void 0:e.width)||A$(),wrap:e==null?void 0:e.wrap})}o(Ag,"cliui");var Ig=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function El(e){return e.replace(Ig,"")}o(El,"stripAnsi");function Cg(e,t){let[r,n]=e.match(Ig)||["",""];e=El(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(Cg,"wrap");function $l(e){return Ag(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:El,wrap:Cg})}o($l,"ui");var Ji=require("path"),Fa=require("fs");function wl(e,t){let r=(0,Ji.resolve)(".",e),n;for((0,Fa.statSync)(r).isDirectory()||(r=(0,Ji.dirname)(r));;){if(n=t(r,(0,Fa.readdirSync)(r)),n)return(0,Ji.resolve)(r,n);if(r=(0,Ji.dirname)(n=r),n===r)break}}o(wl,"default");var Gg=require("util"),Zg=require("fs"),Wg=require("url");var kg=require("util"),Ua=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 Va(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(Va,"decamelize");function Ba(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(Ba,"looksLikeNumber");function Tg(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(Tg,"tokenizeArgString");var Jt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Jt||(Jt={}));var nn,Al=class Al{constructor(t){nn=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=Tg(t),s=typeof t=="string",a=T$(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.__||nn.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:[]},E=/^-([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 T=null;Qi();let I=[],C=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let O=i[_],R=O.replace(/^-{3,}/,"---"),x,P,V,M,G,tt;if(O!=="--"&&/^-/.test(O)&&Ce(O))J(O);else if(R.match(/^---+(=|$)/)){J(O);continue}else if(O.match(/^--.+=/)||!c["short-option-groups"]&&O.match(/^-.+=/))M=O.match(/^--?([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&(re(M[1],g.arrays)?_=$e(_,M[1],i,M[2]):re(M[1],g.nargs)!==!1?_=Ve(_,M[1],i,M[2]):X(M[1],M[2],!0));else if(O.match(w)&&c["boolean-negation"])M=O.match(w),M!==null&&Array.isArray(M)&&M.length>=2&&(P=M[1],X(P,re(P,g.arrays)?[!1]:!1));else if(O.match(/^--.+/)||!c["short-option-groups"]&&O.match(/^-[^-]+/))M=O.match(/^--?(.+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(P=M[1],re(P,g.arrays)?_=$e(_,P,i):re(P,g.nargs)!==!1?_=Ve(_,P,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match(E))&&!re(P,g.bools)&&!re(P,g.counts)||/^(true|false)$/.test(G)?(X(P,G),_++):X(P,_e(P))));else if(O.match(/^-.\..+=/))M=O.match(/^-([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&X(M[1],M[2]);else if(O.match(/^-.\..+/)&&!O.match(E))G=i[_+1],M=O.match(/^-(.\..+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(P=M[1],G!==void 0&&!G.match(/^-/)&&!re(P,g.bools)&&!re(P,g.counts)?(X(P,G),_++):X(P,_e(P)));else if(O.match(/^-[^-]+/)&&!O.match(E)){V=O.slice(1,-1).split(""),x=!1;for(let dt=0;dt<V.length;dt++){if(G=O.slice(dt+2),V[dt+1]&&V[dt+1]==="="){tt=O.slice(dt+3),P=V[dt],re(P,g.arrays)?_=$e(_,P,i,tt):re(P,g.nargs)!==!1?_=Ve(_,P,i,tt):X(P,tt),x=!0;break}if(G==="-"){X(V[dt],G);continue}if(/[A-Za-z]/.test(V[dt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&re(G,g.bools)===!1){X(V[dt],G),x=!0;break}if(V[dt+1]&&V[dt+1].match(/\W/)){X(V[dt],G),x=!0;break}else X(V[dt],_e(V[dt]))}P=O.slice(-1)[0],!x&&P!=="-"&&(re(P,g.arrays)?_=$e(_,P,i):re(P,g.nargs)!==!1?_=Ve(_,P,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match(E))&&!re(P,g.bools)&&!re(P,g.counts)||/^(true|false)$/.test(G)?(X(P,G),_++):X(P,_e(P))))}else if(O.match(/^-[0-9]$/)&&O.match(E)&&re(O.slice(1),g.bools))P=O.slice(1),X(P,_e(P));else if(O==="--"){I=i.slice(_+1);break}else if(c["halt-at-non-option"]){I=i.slice(_);break}else J(O)}ge(C,!0),ge(C,!1),Y(C),ve(),xe(C,g.aliases,u,!0),He(C),c["set-placeholder-key"]&&kr(C),Object.keys(g.counts).forEach(function(_){Qt(C,_.split("."))||X(_,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(O=>ri(O)).join(".")],delete C[_]});function J(_){let O=D("_",_);(typeof O=="string"||typeof O=="number")&&C._.push(O)}o(J,"pushPositional");function Ve(_,O,R,x){let P,V=re(O,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return jt(x)||(T=Error(b("Argument unexpected for: %s",O))),X(O,_e(O)),_;let M=jt(x)?0:1;if(c["nargs-eats-options"])R.length-(_+1)+M<V&&(T=Error(b("Not enough arguments following: %s",O))),M=V;else{for(P=_+1;P<R.length&&(!R[P].match(/^-[^0-9]/)||R[P].match(E)||Ce(R[P]));P++)M++;M<V&&(T=Error(b("Not enough arguments following: %s",O)))}let G=Math.min(M,V);for(!jt(x)&&G>0&&(X(O,x),G--),P=_+1;P<G+_+1;P++)X(O,R[P]);return _+G}o(Ve,"eatNargs");function $e(_,O,R,x){let P=[],V=x||R[_+1],M=re(O,g.nargs);if(re(O,g.bools)&&!/^(true|false)$/.test(V))P.push(!0);else if(jt(V)||jt(x)&&/^-/.test(V)&&!E.test(V)&&!Ce(V)){if(u[O]!==void 0){let G=u[O];P=Array.isArray(G)?G:[G]}}else{jt(x)||P.push(j(O,x,!0));for(let G=_+1;G<R.length&&!(!c["greedy-arrays"]&&P.length>0||M&&typeof M=="number"&&P.length>=M||(V=R[G],/^-/.test(V)&&!E.test(V)&&!Ce(V)));G++)_=G,P.push(j(O,V,s))}return typeof M=="number"&&(M&&P.length<M||isNaN(M)&&P.length===0)&&(T=Error(b("Not enough arguments following: %s",O))),X(O,P),_}o($e,"eatArray");function X(_,O,R=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(M){return ri(M)}).join(".");k(_,V)}let x=j(_,O,R),P=_.split(".");K(C,P,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let M=V.split(".");K(C,M,x)}),P.length>1&&c["dot-notation"]&&(g.aliases[P[0]]||[]).forEach(function(V){let M=V.split("."),G=[].concat(P);G.shift(),M=M.concat(G),(g.aliases[_]||[]).includes(M.join("."))||K(C,M,x)}),re(_,g.normalize)&&!re(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(M){Object.defineProperty(ae,M,{enumerable:!0,get(){return O},set(G){O=typeof G=="string"?nn.normalize(G):G}})})}o(X,"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 j(_,O,R){R&&(O=j$(O)),(re(_,g.bools)||re(_,g.counts))&&typeof O=="string"&&(O=O==="true");let x=Array.isArray(O)?O.map(function(P){return D(_,P)}):D(_,O);return re(_,g.counts)&&(jt(x)||typeof x=="boolean")&&(x=xl()),re(_,g.normalize)&&re(_,g.arrays)&&(Array.isArray(O)?x=O.map(P=>nn.normalize(P)):x=nn.normalize(O)),x}o(j,"processValue");function D(_,O){return!c["parse-positional-numbers"]&&_==="_"||!re(_,g.strings)&&!re(_,g.bools)&&!Array.isArray(O)&&(Ba(O)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${O}`)))||!jt(O)&&re(_,g.numbers))&&(O=Number(O)),O}o(D,"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=nn.resolve(nn.cwd(),x),M=g.configs[R];if(typeof M=="function"){try{P=M(V)}catch(G){P=G}if(P instanceof Error){T=P;return}}else P=nn.require(V);ue(P)}catch(P){P.name==="PermissionDenied"?T=P:_[R]&&(T=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):(!Qt(C,P.split("."))||re(P,g.arrays)&&c["combine-arrays"])&&X(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=nn.env();Object.keys(x).forEach(function(P){if(R===""||P.lastIndexOf(R,0)===0){let V=P.split("__").map(function(M,G){return G===0&&(M=M.substring(R.length)),ri(M)});(O&&g.configs[V.join(".")]||!O)&&!Qt(_,V)&&X(V.join("."),x[P])}})}o(ge,"applyEnvVars");function He(_){let O,R=new Set;Object.keys(_).forEach(function(x){if(!R.has(x)&&(O=re(x,g.coercions),typeof O=="function"))try{let P=D(x,O(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{R.add(V),_[V]=P})}catch(P){T=P}})}o(He,"applyCoercions");function kr(_){return g.keys.forEach(O=>{~O.indexOf(".")||typeof _[O]>"u"&&(_[O]=void 0)}),_}o(kr,"setPlaceholderKeys");function xe(_,O,R,x=!1){Object.keys(R).forEach(function(P){Qt(_,P.split("."))||(K(_,P.split("."),R[P]),x&&(y[P]=!0),(O[P]||[]).forEach(function(V){Qt(_,V.split("."))||K(_,V.split("."),R[P])}))})}o(xe,"applyDefaultsAndAliases");function Qt(_,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(Qt,"hasKey");function K(_,O,R){let x=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(tt){tt=jg(tt),typeof x=="object"&&x[tt]===void 0&&(x[tt]={}),typeof x[tt]!="object"||Array.isArray(x[tt])?(Array.isArray(x[tt])?x[tt].push({}):x[tt]=[x[tt],{}],x=x[tt][x[tt].length-1]):x=x[tt]});let P=jg(O[O.length-1]),V=re(O.join("."),g.arrays),M=Array.isArray(R),G=c["duplicate-arguments-array"];!G&&re(P,g.nargs)&&(G=!0,(!jt(x[P])&&g.nargs[P]===1||Array.isArray(x[P])&&x[P].length===g.nargs[P])&&(x[P]=void 0)),R===xl()?x[P]=xl(x[P]):Array.isArray(x[P])?G&&V&&M?x[P]=c["flatten-duplicate-arrays"]?x[P].concat(R):(Array.isArray(x[P][0])?x[P]:[x[P]]).concat([R]):!G&&!!V==!!M?x[P]=R:x[P]=x[P].concat([R]):x[P]===void 0&&V?x[P]=M?R:[R]:G&&!(x[P]===void 0||re(P,g.counts)||re(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=ri(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=Va(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 re(_,O){let R=[].concat(g.aliases[_]||[],_),x=Object.keys(O),P=R.find(V=>x.includes(V));return P?O[P]:!1}o(re,"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 ee(_,...O){return[].concat(...O).some(function(x){let P=_.match(x);return P&&Ie(P[1])})}o(ee,"hasFlagsMatching");function Ae(_){if(_.match(E)||!_.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 Ce(_){return c["unknown-options-as-args"]&&pe(_)}o(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(E)||Ae(_)?!1:!ee(_,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!re(_,g.bools)&&!re(_,g.counts)&&`${_}`in u?u[_]:qe(at(_))}o(_e,"defaultValue");function qe(_){return{[Jt.BOOLEAN]:!0,[Jt.STRING]:"",[Jt.NUMBER]:void 0,[Jt.ARRAY]:[]}[_]}o(qe,"defaultForType");function at(_){let O=Jt.BOOLEAN;return re(_,g.strings)?O=Jt.STRING:re(_,g.numbers)?O=Jt.NUMBER:re(_,g.bools)?O=Jt.BOOLEAN:re(_,g.arrays)&&(O=Jt.ARRAY),O}o(at,"guessType");function jt(_){return _===void 0}o(jt,"isUndefined");function Qi(){Object.keys(g.counts).find(_=>re(_,g.arrays)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):re(_,g.nargs)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(Qi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,C),configuration:c,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},h)}}};o(Al,"YargsParser");var Ha=Al;function T$(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(T$,"combineAliases");function xl(e){return e!==void 0?e+1:1}o(xl,"increment");function jg(e){return e==="__proto__"?"___proto___":e}o(jg,"sanitizeKey");function j$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(j$,"stripQuotes");var Mg=require("fs");var Il,Cl,Tl,Rg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Ng=(Cl=(Il=process==null?void 0:process.versions)===null||Il===void 0?void 0:Il.node)!==null&&Cl!==void 0?Cl:(Tl=process==null?void 0:process.version)===null||Tl===void 0?void 0:Tl.slice(1);if(Ng&&Number(Ng.match(/^([^.]+)/)[1])<Rg)throw Error(`yargs parser supports a minimum Node.js version of ${Rg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var R$=process?process.env:{},qg=new Ha({cwd:process.cwd,env:o(()=>R$,"env"),format:kg.format,normalize:Ua.normalize,resolve:Ua.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Mg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),as=o(function(t,r){return qg.parse(t.slice(),r).argv},"Parser");as.detailed=function(e,t){return qg.parse(e.slice(),t)};as.camelCase=ri;as.decamelize=Va;as.looksLikeNumber=Ba;var jl=as;var yr=require("path");function Dg(){return N$()?0:1}o(Dg,"getProcessArgvBinIndex");function N$(){return k$()&&!process.defaultApp}o(N$,"isBundledElectronApp");function k$(){return!!process.versions.electron}o(k$,"isElectronApp");function Rl(e){return e.slice(Dg()+1)}o(Rl,"hideBin");function Lg(){return process.argv[Dg()]}o(Lg,"getProcessArgvBin");var za=class za extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,za)}};o(za,"YError");var je=za;var Xi=require("fs"),Fg=require("util"),Vg=require("path");var Bg={fs:{readFileSync:Xi.readFileSync,writeFile:Xi.writeFile},format:Fg.format,resolve:Vg.resolve,exists:o(e=>{try{return(0,Xi.statSync)(e).isFile()}catch{return!1}},"exists")};var gr,kl=class kl{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(),gr.format.apply(gr.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),gr.format.apply(gr.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);gr.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{gr.fs.readFileSync&&(t=JSON.parse(gr.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=gr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=gr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return gr.exists(t)}};o(kl,"Y18N");var Nl=kl;function Hg(e,t){gr=t;let r=new Nl(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(Hg,"y18n");var M$=o(e=>Hg(e,Bg),"y18n"),Ug=M$;var L$={};var q$="require is not supported by ESM",zg="loading a directory of commands is not supported yet for ESM",cs;try{cs=(0,Wg.fileURLToPath)(L$.url)}catch{cs=process.cwd()}var D$=cs.substring(0,cs.lastIndexOf("node_modules")),Ml={assert:{notStrictEqual:Ga.notStrictEqual,strictEqual:Ga.strictEqual},cliui:$l,findUp:wl,getEnv:o(e=>process.env[e],"getEnv"),inspect:Gg.inspect,getCallerFile:o(()=>{throw new je(zg)},"getCallerFile"),getProcessArgvBin:Lg,mainFilename:D$||process.cwd(),Parser:jl,path:{basename:yr.basename,dirname:yr.dirname,extname:yr.extname,relative:yr.relative,resolve:yr.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:Zg.readFileSync,require:o(()=>{throw new je(q$)},"require"),requireDirectory:o(()=>{throw new je(zg)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Ug({directory:(0,yr.resolve)(cs,"../../../locales"),updateFiles:!1})};function $t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o($t,"assertNotStrictEqual");function ql(e,t){t.assert.strictEqual(typeof e,"string")}o(ql,"assertSingleKey");function eo(e){return Object.keys(e)}o(eo,"objectKeys");function Re(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Re,"isPromise");function yn(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(yn,"parseCommand");var F$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[yn(`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 je(`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 je(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Kg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Yg(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Kg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Yg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Kg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Kg,"guessType");function Yg(e,t,r){throw new je(`Invalid ${F$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(Yg,"argumentTypeError");var Dl=class Dl{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(Dl,"GlobalMiddleware");var Za=Dl;function Qg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Qg,"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(Re(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Re(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=V$(e)?e():e;return Re(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(ii,"maybeAsyncResult");function V$(e){return typeof e=="function"}o(V$,"isFunction");function Ll(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(Ll,"whichModule");var to=/(^\*)|(^\$0)/,Vl=class Vl{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=Qg(s);if(i=i||(()=>{}),Array.isArray(t))if(B$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(U$(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(Jg(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=yn(t);c=c.map(d=>yn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>to.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(to,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 Re(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(Wa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Re(f))return f.then(d=>(p=ey(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else H$(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 Re(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=to.test(r.original)?r.original.replace(to,"").trim():r.original,i=t.filter(s=>!to.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 Re(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Re(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 Re(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=yn(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=to.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(Wa(r))return r(t,!0);Jg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Ll(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(Vl,"CommandInstance");var Fl=Vl;function Xg(e,t,r,n){return new Fl(e,t,r,n)}o(Xg,"command");function Jg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Jg,"isCommandBuilderDefinition");function B$(e){return e.every(t=>typeof t=="string")}o(B$,"isCommandAndAliases");function Wa(e){return typeof e=="function"}o(Wa,"isCommandBuilderCallback");function H$(e){return typeof e=="object"}o(H$,"isCommandBuilderOptionDefinitions");function U$(e){return typeof e=="object"&&!Array.isArray(e)}o(U$,"isCommandHandlerDefinition");function bn(e={},t=()=>!0){let r={};return eo(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(bn,"objFilter");function vn(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(vn,"setBlocking");function z$(e){return typeof e=="boolean"}o(z$,"isBoolean");function ry(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,D){let[Y,ue]=typeof j=="string"?[!0,j]:[j,D];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(j,D){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(z$(ve)){if(D)throw D;if(j)throw Error(j)}else ve(j,D,n)}else{if(e.getExitProcess()&&vn(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(j||D)&&Y.error(j||D);let ue=s||a;ue&&((j||D)&&Y.error(""),Y.error(ue))}if(D=D||new je(j),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,D);throw D}},"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,D,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([j,D||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(j,D){Array.isArray(j)?j.forEach(Y=>{n.describe(Y,D)}):typeof j=="object"?Object.keys(j).forEach(Y=>{n.describe(Y,j[Y])}):h[j]=D},"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=Ve(),b=!0),g);let E="__yargsString__:";n.deferY18nLookup=k=>E+k,n.help=o(function(){if(I)return I;T();let j=e.customScriptName?e.$0:t.path.basename(e.$0),D=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(D)),He=He.concat(Object.keys(Y)),He=He.concat(Object.keys(ge.default)),He=He.filter(ae),He=Object.keys(He.reduce((ee,Ae)=>(Ae!=="_"&&(ee[Ae]=!0),ee),{}));let kr=n.getWrap(),xe=t.cliui({width:kr,wrap:!!kr});if(!p){if(l.length)l.forEach(ee=>{xe.div({text:`${ee[0].replace(/\$0/g,j)}`}),ee[1]&&xe.div({text:`${ee[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let ee=null;Y._?ee=`${j} <${r("command")}>
79
- `:ee=`${j} [${r("command")}]
80
- `,xe.div(`${ee}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let ee=e.getInternalMethods().getContext(),Ae=ee.commands.length?`${ee.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=j?`${j} `:"";d.forEach(pe=>{let _e=`${Ce}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:w(d,kr,`${j}${Ae}`)+4},{text:pe[1]});let qe=[];pe[2]&&qe.push(`[${r("default")}]`),pe[3]&&pe[3].length&&qe.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?qe.push(`[${r("deprecated: %s",pe[4])}]`):qe.push(`[${r("deprecated")}]`)),qe.length?xe.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Qt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);He=He.filter(ee=>!e.parsed.newAliases[ee]&&Qt.every(Ae=>(ge.alias[Ae]||[]).indexOf(ee)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),C(He,ge.alias,ve,K);let Tt=o(ee=>/^--/.test(Ka(ee)),"isLongSwitch"),re=Object.keys(ve).filter(ee=>ve[ee].length>0).map(ee=>{let Ae=ve[ee].filter(ae).map(Ce=>{if(Qt.includes(Ce))return Ce;for(let pe=0,_e;(_e=Qt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:ee,normalizedKeys:Ae}}).filter(({normalizedKeys:ee})=>ee.length>0).map(({groupName:ee,normalizedKeys:Ae})=>{let Ce=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>ee===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,at)=>Tt(qe)===Tt(at)?0:Tt(qe)?1:-1).join(", "),pe),{});return{groupName:ee,normalizedKeys:Ae,switches:Ce}});if(re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).some(({normalizedKeys:ee,switches:Ae})=>!ee.every(Ce=>Tt(Ae[Ce])))&&re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).forEach(({normalizedKeys:ee,switches:Ae})=>{ee.forEach(Ce=>{Tt(Ae[Ce])&&(Ae[Ce]=G$(Ae[Ce],4))})}),re.forEach(({groupName:ee,normalizedKeys:Ae,switches:Ce})=>{xe.div(ee),Ae.forEach(pe=>{let _e=Ce[pe],qe=h[pe]||"",at=null;qe.includes(E)&&(qe=r(qe.substring(E.length))),ge.boolean.includes(pe)&&(at=`[${r("boolean")}]`),ge.count.includes(pe)&&(at=`[${r("count")}]`),ge.string.includes(pe)&&(at=`[${r("string")}]`),ge.normalize.includes(pe)&&(at=`[${r("string")}]`),ge.array.includes(pe)&&(at=`[${r("array")}]`),ge.number.includes(pe)&&(at=`[${r("number")}]`);let jt=o(O=>typeof O=="string"?`[${r("deprecated: %s",O)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Qi=[pe in ue?jt(ue[pe]):null,at,pe in D?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,J(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:Ka(_e),padding:[0,2,0,2+ty(_e)],width:w(Ce,kr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Qi&&!_?xe.div({text:Qi,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(ee=>{ee[0]=ee[0].replace(/\$0/g,j)}),f.forEach(ee=>{ee[1]===""?xe.div({text:ee[0],padding:[0,2,0,2]}):xe.div({text:ee[0],padding:[0,2,0,2],width:w(f,kr)+4},{text:ee[1]})}),xe.div()),y.length>0){let ee=y.map(Ae=>Ae.replace(/\$0/g,j)).join(`
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[A$]||0).fill("")),i.push(...new Array(s.padding[I$]||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[Ba]||0)+(t.padding[Va]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Lt.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,C$(t[c])):a)}};o(xl,"UI");var wl=xl;function Cg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(Cg,"addBorder");function C$(e){let t=e.padding||[],r=1+(t[Ba]||0)+(t[Va]||0);return e.border?r+4:r}o(C$,"_minWidth");function T$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(T$,"getWindowWidth");function R$(e,t){e=e.trim();let r=Lt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(R$,"alignRight");function j$(e,t){e=e.trim();let r=Lt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(j$,"alignCenter");var Lt;function Tg(e,t){return Lt=t,new wl({width:(e==null?void 0:e.width)||T$(),wrap:e==null?void 0:e.wrap})}o(Tg,"cliui");var Rg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Al(e){return e.replace(Rg,"")}o(Al,"stripAnsi");function jg(e,t){let[r,n]=e.match(Rg)||["",""];e=Al(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(jg,"wrap");function Il(e){return Tg(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:Al,wrap:jg})}o(Il,"ui");var Xi=require("path"),Ha=require("fs");function Cl(e,t){let r=(0,Xi.resolve)(".",e),n;for((0,Ha.statSync)(r).isDirectory()||(r=(0,Xi.dirname)(r));;){if(n=t(r,(0,Ha.readdirSync)(r)),n)return(0,Xi.resolve)(r,n);if(r=(0,Xi.dirname)(n=r),n===r)break}}o(Cl,"default");var Kg=require("util"),Yg=require("fs"),Qg=require("url");var Dg=require("util"),Za=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 Ua(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(Ua,"decamelize");function za(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(za,"looksLikeNumber");function Ng(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(Ng,"tokenizeArgString");var Jt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Jt||(Jt={}));var nn,Rl=class Rl{constructor(t){nn=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=Ng(t),s=typeof t=="string",a=N$(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.__||nn.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:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();j&&(g[j][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;Ji();let I=[],C=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let P=i[_],j=P.replace(/^-{3,}/,"---"),x,O,V,M,G,tt;if(P!=="--"&&/^-/.test(P)&&Ce(P))J(P);else if(j.match(/^---+(=|$)/)){J(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))M=P.match(/^--?([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&(re(M[1],g.arrays)?_=$e(_,M[1],i,M[2]):re(M[1],g.nargs)!==!1?_=Ve(_,M[1],i,M[2]):X(M[1],M[2],!0));else if(P.match(w)&&c["boolean-negation"])M=P.match(w),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],X(O,re(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))M=P.match(/^--?(.+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],re(O,g.arrays)?_=$e(_,O,i):re(O,g.nargs)!==!1?_=Ve(_,O,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match(E))&&!re(O,g.bools)&&!re(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))));else if(P.match(/^-.\..+=/))M=P.match(/^-([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&X(M[1],M[2]);else if(P.match(/^-.\..+/)&&!P.match(E))G=i[_+1],M=P.match(/^-(.\..+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],G!==void 0&&!G.match(/^-/)&&!re(O,g.bools)&&!re(O,g.counts)?(X(O,G),_++):X(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match(E)){V=P.slice(1,-1).split(""),x=!1;for(let dt=0;dt<V.length;dt++){if(G=P.slice(dt+2),V[dt+1]&&V[dt+1]==="="){tt=P.slice(dt+3),O=V[dt],re(O,g.arrays)?_=$e(_,O,i,tt):re(O,g.nargs)!==!1?_=Ve(_,O,i,tt):X(O,tt),x=!0;break}if(G==="-"){X(V[dt],G);continue}if(/[A-Za-z]/.test(V[dt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&re(G,g.bools)===!1){X(V[dt],G),x=!0;break}if(V[dt+1]&&V[dt+1].match(/\W/)){X(V[dt],G),x=!0;break}else X(V[dt],_e(V[dt]))}O=P.slice(-1)[0],!x&&O!=="-"&&(re(O,g.arrays)?_=$e(_,O,i):re(O,g.nargs)!==!1?_=Ve(_,O,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match(E))&&!re(O,g.bools)&&!re(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match(E)&&re(P.slice(1),g.bools))O=P.slice(1),X(O,_e(O));else if(P==="--"){I=i.slice(_+1);break}else if(c["halt-at-non-option"]){I=i.slice(_);break}else J(P)}ge(C,!0),ge(C,!1),Y(C),ve(),xe(C,g.aliases,u,!0),ze(C),c["set-placeholder-key"]&&kr(C),Object.keys(g.counts).forEach(function(_){Qt(C,_.split("."))||X(_,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 J(_){let P=D("_",_);(typeof P=="string"||typeof P=="number")&&C._.push(P)}o(J,"pushPositional");function Ve(_,P,j,x){let O,V=re(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Rt(x)||(T=Error(b("Argument unexpected for: %s",P))),X(P,_e(P)),_;let M=Rt(x)?0:1;if(c["nargs-eats-options"])j.length-(_+1)+M<V&&(T=Error(b("Not enough arguments following: %s",P))),M=V;else{for(O=_+1;O<j.length&&(!j[O].match(/^-[^0-9]/)||j[O].match(E)||Ce(j[O]));O++)M++;M<V&&(T=Error(b("Not enough arguments following: %s",P)))}let G=Math.min(M,V);for(!Rt(x)&&G>0&&(X(P,x),G--),O=_+1;O<G+_+1;O++)X(P,j[O]);return _+G}o(Ve,"eatNargs");function $e(_,P,j,x){let O=[],V=x||j[_+1],M=re(P,g.nargs);if(re(P,g.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(Rt(V)||Rt(x)&&/^-/.test(V)&&!E.test(V)&&!Ce(V)){if(u[P]!==void 0){let G=u[P];O=Array.isArray(G)?G:[G]}}else{Rt(x)||O.push(R(P,x,!0));for(let G=_+1;G<j.length&&!(!c["greedy-arrays"]&&O.length>0||M&&typeof M=="number"&&O.length>=M||(V=j[G],/^-/.test(V)&&!E.test(V)&&!Ce(V)));G++)_=G,O.push(R(P,V,s))}return typeof M=="number"&&(M&&O.length<M||isNaN(M)&&O.length===0)&&(T=Error(b("Not enough arguments following: %s",P))),X(P,O),_}o($e,"eatArray");function X(_,P,j=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(M){return ri(M)}).join(".");k(_,V)}let x=R(_,P,j),O=_.split(".");K(C,O,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let M=V.split(".");K(C,M,x)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(V){let M=V.split("."),G=[].concat(O);G.shift(),M=M.concat(G),(g.aliases[_]||[]).includes(M.join("."))||K(C,M,x)}),re(_,g.normalize)&&!re(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(M){Object.defineProperty(ae,M,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?nn.normalize(G):G}})})}o(X,"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 R(_,P,j){j&&(P=k$(P)),(re(_,g.bools)||re(_,g.counts))&&typeof P=="string"&&(P=P==="true");let x=Array.isArray(P)?P.map(function(O){return D(_,O)}):D(_,P);return re(_,g.counts)&&(Rt(x)||typeof x=="boolean")&&(x=Tl()),re(_,g.normalize)&&re(_,g.arrays)&&(Array.isArray(P)?x=P.map(O=>nn.normalize(O)):x=nn.normalize(P)),x}o(R,"processValue");function D(_,P){return!c["parse-positional-numbers"]&&_==="_"||!re(_,g.strings)&&!re(_,g.bools)&&!Array.isArray(P)&&(za(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Rt(P)&&re(_,g.numbers))&&(P=Number(P)),P}o(D,"maybeCoerceNumber");function Y(_){let P=Object.create(null);xe(P,g.aliases,u),Object.keys(g.configs).forEach(function(j){let x=_[j]||P[j];if(x)try{let O=null,V=nn.resolve(nn.cwd(),x),M=g.configs[j];if(typeof M=="function"){try{O=M(V)}catch(G){O=G}if(O instanceof Error){T=O;return}}else O=nn.require(V);ue(O)}catch(O){O.name==="PermissionDenied"?T=O:_[j]&&(T=Error(b("Invalid JSON config file: %s",x)))}})}o(Y,"setConfig");function ue(_,P){Object.keys(_).forEach(function(j){let x=_[j],O=P?P+"."+j:j;typeof x=="object"&&x!==null&&!Array.isArray(x)&&c["dot-notation"]?ue(x,O):(!Qt(C,O.split("."))||re(O,g.arrays)&&c["combine-arrays"])&&X(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 j=typeof p=="string"?p:"",x=nn.env();Object.keys(x).forEach(function(O){if(j===""||O.lastIndexOf(j,0)===0){let V=O.split("__").map(function(M,G){return G===0&&(M=M.substring(j.length)),ri(M)});(P&&g.configs[V.join(".")]||!P)&&!Qt(_,V)&&X(V.join("."),x[O])}})}o(ge,"applyEnvVars");function ze(_){let P,j=new Set;Object.keys(_).forEach(function(x){if(!j.has(x)&&(P=re(x,g.coercions),typeof P=="function"))try{let O=D(x,P(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{j.add(V),_[V]=O})}catch(O){T=O}})}o(ze,"applyCoercions");function kr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}o(kr,"setPlaceholderKeys");function xe(_,P,j,x=!1){Object.keys(j).forEach(function(O){Qt(_,O.split("."))||(K(_,O.split("."),j[O]),x&&(y[O]=!0),(P[O]||[]).forEach(function(V){Qt(_,V.split("."))||K(_,V.split("."),j[O])}))})}o(xe,"applyDefaultsAndAliases");function Qt(_,P){let j=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){j=j[O]||{}});let x=P[P.length-1];return typeof j!="object"?!1:x in j}o(Qt,"hasKey");function K(_,P,j){let x=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(tt){tt=kg(tt),typeof x=="object"&&x[tt]===void 0&&(x[tt]={}),typeof x[tt]!="object"||Array.isArray(x[tt])?(Array.isArray(x[tt])?x[tt].push({}):x[tt]=[x[tt],{}],x=x[tt][x[tt].length-1]):x=x[tt]});let O=kg(P[P.length-1]),V=re(P.join("."),g.arrays),M=Array.isArray(j),G=c["duplicate-arguments-array"];!G&&re(O,g.nargs)&&(G=!0,(!Rt(x[O])&&g.nargs[O]===1||Array.isArray(x[O])&&x[O].length===g.nargs[O])&&(x[O]=void 0)),j===Tl()?x[O]=Tl(x[O]):Array.isArray(x[O])?G&&V&&M?x[O]=c["flatten-duplicate-arrays"]?x[O].concat(j):(Array.isArray(x[O][0])?x[O]:[x[O]]).concat([j]):!G&&!!V==!!M?x[O]=j:x[O]=x[O].concat([j]):x[O]===void 0&&V?x[O]=M?j:[j]:G&&!(x[O]===void 0||re(O,g.counts)||re(O,g.bools))?x[O]=[x[O],j]:x[O]=j}o(K,"setKey");function Tt(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(x){if(/-/.test(x)&&c["camel-case-expansion"]){let O=ri(x);O!==j&&g.aliases[j].indexOf(O)===-1&&(g.aliases[j].push(O),h[O]=!0)}}),g.aliases[j].concat(j).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&c["camel-case-expansion"]){let O=Ua(x,"-");O!==j&&g.aliases[j].indexOf(O)===-1&&(g.aliases[j].push(O),h[O]=!0)}}),g.aliases[j].forEach(function(x){g.aliases[x]=[j].concat(g.aliases[j].filter(function(O){return x!==O}))}))})})}o(Tt,"extendAliases");function re(_,P){let j=[].concat(g.aliases[_]||[],_),x=Object.keys(P),O=j.find(V=>x.includes(V));return O?P[O]:!1}o(re,"checkAllAliases");function Ie(_){let P=Object.keys(g);return[].concat(P.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}o(Ie,"hasAnyFlag");function ee(_,...P){return[].concat(...P).some(function(x){let O=_.match(x);return O&&Ie(O[1])})}o(ee,"hasFlagsMatching");function Ae(_){if(_.match(E)||!_.match(/^-[^-]+/))return!1;let P=!0,j,x=_.slice(1).split("");for(let O=0;O<x.length;O++){if(j=_.slice(O+2),!Ie(x[O])){P=!1;break}if(x[O+1]&&x[O+1]==="="||j==="-"||/[A-Za-z]/.test(x[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||x[O+1]&&x[O+1].match(/\W/))break}return P}o(Ae,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&pe(_)}o(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(E)||Ae(_)?!1:!ee(_,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!re(_,g.bools)&&!re(_,g.counts)&&`${_}`in u?u[_]:qe(ct(_))}o(_e,"defaultValue");function qe(_){return{[Jt.BOOLEAN]:!0,[Jt.STRING]:"",[Jt.NUMBER]:void 0,[Jt.ARRAY]:[]}[_]}o(qe,"defaultForType");function ct(_){let P=Jt.BOOLEAN;return re(_,g.strings)?P=Jt.STRING:re(_,g.numbers)?P=Jt.NUMBER:re(_,g.bools)?P=Jt.BOOLEAN:re(_,g.arrays)&&(P=Jt.ARRAY),P}o(ct,"guessType");function Rt(_){return _===void 0}o(Rt,"isUndefined");function Ji(){Object.keys(g.counts).find(_=>re(_,g.arrays)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):re(_,g.nargs)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(Ji,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,C),configuration:c,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},h)}}};o(Rl,"YargsParser");var Ga=Rl;function N$(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(N$,"combineAliases");function Tl(e){return e!==void 0?e+1:1}o(Tl,"increment");function kg(e){return e==="__proto__"?"___proto___":e}o(kg,"sanitizeKey");function k$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(k$,"stripQuotes");var Lg=require("fs");var jl,Nl,kl,Mg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,qg=(Nl=(jl=process==null?void 0:process.versions)===null||jl===void 0?void 0:jl.node)!==null&&Nl!==void 0?Nl:(kl=process==null?void 0:process.version)===null||kl===void 0?void 0:kl.slice(1);if(qg&&Number(qg.match(/^([^.]+)/)[1])<Mg)throw Error(`yargs parser supports a minimum Node.js version of ${Mg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var M$=process?process.env:{},Fg=new Ga({cwd:process.cwd,env:o(()=>M$,"env"),format:Dg.format,normalize:Za.normalize,resolve:Za.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Lg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),us=o(function(t,r){return Fg.parse(t.slice(),r).argv},"Parser");us.detailed=function(e,t){return Fg.parse(e.slice(),t)};us.camelCase=ri;us.decamelize=Ua;us.looksLikeNumber=za;var Ml=us;var yr=require("path");function Vg(){return q$()?0:1}o(Vg,"getProcessArgvBinIndex");function q$(){return D$()&&!process.defaultApp}o(q$,"isBundledElectronApp");function D$(){return!!process.versions.electron}o(D$,"isElectronApp");function ql(e){return e.slice(Vg()+1)}o(ql,"hideBin");function Bg(){return process.argv[Vg()]}o(Bg,"getProcessArgvBin");var Wa=class Wa extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Wa)}};o(Wa,"YError");var Re=Wa;var eo=require("fs"),Hg=require("util"),Ug=require("path");var zg={fs:{readFileSync:eo.readFileSync,writeFile:eo.writeFile},format:Hg.format,resolve:Ug.resolve,exists:o(e=>{try{return(0,eo.statSync)(e).isFile()}catch{return!1}},"exists")};var gr,Ll=class Ll{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(),gr.format.apply(gr.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),gr.format.apply(gr.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);gr.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{gr.fs.readFileSync&&(t=JSON.parse(gr.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=gr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=gr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return gr.exists(t)}};o(Ll,"Y18N");var Dl=Ll;function Gg(e,t){gr=t;let r=new Dl(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(Gg,"y18n");var L$=o(e=>Gg(e,zg),"y18n"),Zg=L$;var B$={};var F$="require is not supported by ESM",Wg="loading a directory of commands is not supported yet for ESM",ls;try{ls=(0,Qg.fileURLToPath)(B$.url)}catch{ls=process.cwd()}var V$=ls.substring(0,ls.lastIndexOf("node_modules")),Fl={assert:{notStrictEqual:Ka.notStrictEqual,strictEqual:Ka.strictEqual},cliui:Il,findUp:Cl,getEnv:o(e=>process.env[e],"getEnv"),inspect:Kg.inspect,getCallerFile:o(()=>{throw new Re(Wg)},"getCallerFile"),getProcessArgvBin:Bg,mainFilename:V$||process.cwd(),Parser:Ml,path:{basename:yr.basename,dirname:yr.dirname,extname:yr.extname,relative:yr.relative,resolve:yr.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:Yg.readFileSync,require:o(()=>{throw new Re(F$)},"require"),requireDirectory:o(()=>{throw new Re(Wg)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Zg({directory:(0,yr.resolve)(ls,"../../../locales"),updateFiles:!1})};function $t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o($t,"assertNotStrictEqual");function Vl(e,t){t.assert.strictEqual(typeof e,"string")}o(Vl,"assertSingleKey");function to(e){return Object.keys(e)}o(to,"objectKeys");function je(e){return!!e&&!!e.then&&typeof e.then=="function"}o(je,"isPromise");function yn(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(yn,"parseCommand");var H$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[yn(`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=Jg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Xg(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Jg(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Xg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Jg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Jg,"guessType");function Xg(e,t,r){throw new Re(`Invalid ${H$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(Xg,"argumentTypeError");var Bl=class Bl{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(Bl,"GlobalMiddleware");var Ya=Bl;function ey(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(ey,"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(je(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return je(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=U$(e)?e():e;return je(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(ii,"maybeAsyncResult");function U$(e){return typeof e=="function"}o(U$,"isFunction");function Hl(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(Hl,"whichModule");var ro=/(^\*)|(^\$0)/,zl=class zl{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=ey(s);if(i=i||(()=>{}),Array.isArray(t))if(z$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(Z$(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(ty(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=yn(t);c=c.map(d=>yn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>ro.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(ro,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 je(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(Qa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(je(f))return f.then(d=>(p=ny(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else G$(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 je(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=ro.test(r.original)?r.original.replace(ro,"").trim():r.original,i=t.filter(s=>!ro.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 je(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),je(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 je(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=yn(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=ro.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(Qa(r))return r(t,!0);ty(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Hl(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(zl,"CommandInstance");var Ul=zl;function ry(e,t,r,n){return new Ul(e,t,r,n)}o(ry,"command");function ty(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(ty,"isCommandBuilderDefinition");function z$(e){return e.every(t=>typeof t=="string")}o(z$,"isCommandAndAliases");function Qa(e){return typeof e=="function"}o(Qa,"isCommandBuilderCallback");function G$(e){return typeof e=="object"}o(G$,"isCommandBuilderOptionDefinitions");function Z$(e){return typeof e=="object"&&!Array.isArray(e)}o(Z$,"isCommandHandlerDefinition");function bn(e={},t=()=>!0){let r={};return to(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(bn,"objFilter");function vn(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(vn,"setBlocking");function W$(e){return typeof e=="boolean"}o(W$,"isBoolean");function oy(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,D){let[Y,ue]=typeof R=="string"?[!0,R]:[R,D];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,D){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(W$(ve)){if(D)throw D;if(R)throw Error(R)}else ve(R,D,n)}else{if(e.getExitProcess()&&vn(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(R||D)&&Y.error(R||D);let ue=s||a;ue&&((R||D)&&Y.error(""),Y.error(ue))}if(D=D||new Re(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,D);throw D}},"fail");let l=[],p=!1;n.usage=(k,R)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,R)=>{f.push([k,R||""])};let d=[];n.command=o(function(R,D,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,D||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,D){Array.isArray(R)?R.forEach(Y=>{n.describe(Y,D)}):typeof R=="object"?Object.keys(R).forEach(Y=>{n.describe(Y,R[Y])}):h[R]=D},"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=Ve(),b=!0),g);let E="__yargsString__:";n.deferY18nLookup=k=>E+k,n.help=o(function(){if(I)return I;T();let R=e.customScriptName?e.$0:t.path.basename(e.$0),D=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),ze=[];ze=ze.concat(Object.keys(h)),ze=ze.concat(Object.keys(D)),ze=ze.concat(Object.keys(Y)),ze=ze.concat(Object.keys(ge.default)),ze=ze.filter(ae),ze=Object.keys(ze.reduce((ee,Ae)=>(Ae!=="_"&&(ee[Ae]=!0),ee),{}));let kr=n.getWrap(),xe=t.cliui({width:kr,wrap:!!kr});if(!p){if(l.length)l.forEach(ee=>{xe.div({text:`${ee[0].replace(/\$0/g,R)}`}),ee[1]&&xe.div({text:`${ee[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let ee=null;Y._?ee=`${R} <${r("command")}>
79
+ `:ee=`${R} [${r("command")}]
80
+ `,xe.div(`${ee}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let ee=e.getInternalMethods().getContext(),Ae=ee.commands.length?`${ee.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ce}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:w(d,kr,`${R}${Ae}`)+4},{text:pe[1]});let qe=[];pe[2]&&qe.push(`[${r("default")}]`),pe[3]&&pe[3].length&&qe.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?qe.push(`[${r("deprecated: %s",pe[4])}]`):qe.push(`[${r("deprecated")}]`)),qe.length?xe.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Qt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);ze=ze.filter(ee=>!e.parsed.newAliases[ee]&&Qt.every(Ae=>(ge.alias[Ae]||[]).indexOf(ee)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),C(ze,ge.alias,ve,K);let Tt=o(ee=>/^--/.test(Ja(ee)),"isLongSwitch"),re=Object.keys(ve).filter(ee=>ve[ee].length>0).map(ee=>{let Ae=ve[ee].filter(ae).map(Ce=>{if(Qt.includes(Ce))return Ce;for(let pe=0,_e;(_e=Qt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:ee,normalizedKeys:Ae}}).filter(({normalizedKeys:ee})=>ee.length>0).map(({groupName:ee,normalizedKeys:Ae})=>{let Ce=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>ee===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,ct)=>Tt(qe)===Tt(ct)?0:Tt(qe)?1:-1).join(", "),pe),{});return{groupName:ee,normalizedKeys:Ae,switches:Ce}});if(re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).some(({normalizedKeys:ee,switches:Ae})=>!ee.every(Ce=>Tt(Ae[Ce])))&&re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).forEach(({normalizedKeys:ee,switches:Ae})=>{ee.forEach(Ce=>{Tt(Ae[Ce])&&(Ae[Ce]=K$(Ae[Ce],4))})}),re.forEach(({groupName:ee,normalizedKeys:Ae,switches:Ce})=>{xe.div(ee),Ae.forEach(pe=>{let _e=Ce[pe],qe=h[pe]||"",ct=null;qe.includes(E)&&(qe=r(qe.substring(E.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(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Ji=[pe in ue?Rt(ue[pe]):null,ct,pe in D?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,J(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:Ja(_e),padding:[0,2,0,2+iy(_e)],width:w(Ce,kr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ji&&!_?xe.div({text:Ji,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(ee=>{ee[0]=ee[0].replace(/\$0/g,R)}),f.forEach(ee=>{ee[1]===""?xe.div({text:ee[0],padding:[0,2,0,2]}):xe.div({text:ee[0],padding:[0,2,0,2],width:w(f,kr)+4},{text:ee[1]})}),xe.div()),y.length>0){let ee=y.map(Ae=>Ae.replace(/\$0/g,R)).join(`
81
81
  `);xe.div(`${ee}
82
- `)}return xe.toString().replace(/\s*$/,"")},"help");function w(k,j,D){let Y=0;return Array.isArray(k)||(k=Object.values(k).map(ue=>[ue])),k.forEach(ue=>{Y=Math.max(t.stringWidth(D?`${D} ${Ka(ue[0])}`:Ka(ue[0]))+ty(ue[0]),Y)}),j&&(Y=Math.min(Y,parseInt((j*.5).toString(),10))),Y}o(w,"maxWidth");function T(){let k=e.getDemandedOptions(),j=e.getOptions();(Object.keys(j.alias)||[]).forEach(D=>{j.alias[D].forEach(Y=>{h[Y]&&n.describe(D,h[Y]),Y in k&&e.demandOption(D,k[Y]),j.boolean.includes(Y)&&e.boolean(D),j.count.includes(Y)&&e.count(D),j.string.includes(Y)&&e.string(D),j.normalize.includes(Y)&&e.normalize(D),j.array.includes(Y)&&e.array(D),j.number.includes(Y)&&e.number(D)})})}o(T,"normalizeAliases");let I;n.cacheHelpMessage=function(){I=this.help()},n.clearCachedHelpMessage=function(){I=void 0},n.hasCachedHelpMessage=function(){return!!I};function C(k,j,D,Y){let ue=[],ve=null;return Object.keys(D).forEach(ge=>{ue=ue.concat(D[ge])}),k.forEach(ge=>{ve=[ge].concat(j[ge]),ve.some(He=>ue.indexOf(He)!==-1)||D[Y].push(ge)}),ue}o(C,"addUngroupedKeys");function ae(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ae,"filterHiddenOptions"),n.showHelp=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(j,D){let Y="",ue=D||", ",ve=[].concat(j);return!j||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function J(k,j){let D=`[${r("default:")} `;if(k===void 0&&!j)return null;if(j)D+=j;else switch(typeof k){case"string":D+=`"${k}"`;break;case"object":D+=JSON.stringify(k);break;default:D+=k}return`${D}]`}o(J,"defaultString");function Ve(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Ve,"windowWidth");let $e=null;n.version=k=>{$e=k},n.showVersion=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])($e)},n.reset=o(function(j){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=bn(h,D=>!j[D]),n},"reset");let X=[];return n.freeze=o(function(){X.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(j=!1){let D=X.pop();D&&(j?(h={...D.descriptions,...h},d=[...D.commands,...d],l=[...D.usages,...l],f=[...D.examples,...f],y=[...D.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=D)},"unfreeze"),n}o(ry,"usage");function Bl(e){return typeof e=="object"}o(Bl,"isIndentedText");function G$(e,t){return Bl(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(G$,"addIndentation");function ty(e){return Bl(e)?e.indentation:0}o(ty,"getIndentation");function Ka(e){return Bl(e)?e.text:e}o(Ka,"getText");var ny=`###-begin-{{app_name}}-completions-###
82
+ `)}return xe.toString().replace(/\s*$/,"")},"help");function w(k,R,D){let Y=0;return Array.isArray(k)||(k=Object.values(k).map(ue=>[ue])),k.forEach(ue=>{Y=Math.max(t.stringWidth(D?`${D} ${Ja(ue[0])}`:Ja(ue[0]))+iy(ue[0]),Y)}),R&&(Y=Math.min(Y,parseInt((R*.5).toString(),10))),Y}o(w,"maxWidth");function T(){let k=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(D=>{R.alias[D].forEach(Y=>{h[Y]&&n.describe(D,h[Y]),Y in k&&e.demandOption(D,k[Y]),R.boolean.includes(Y)&&e.boolean(D),R.count.includes(Y)&&e.count(D),R.string.includes(Y)&&e.string(D),R.normalize.includes(Y)&&e.normalize(D),R.array.includes(Y)&&e.array(D),R.number.includes(Y)&&e.number(D)})})}o(T,"normalizeAliases");let I;n.cacheHelpMessage=function(){I=this.help()},n.clearCachedHelpMessage=function(){I=void 0},n.hasCachedHelpMessage=function(){return!!I};function C(k,R,D,Y){let ue=[],ve=null;return Object.keys(D).forEach(ge=>{ue=ue.concat(D[ge])}),k.forEach(ge=>{ve=[ge].concat(R[ge]),ve.some(ze=>ue.indexOf(ze)!==-1)||D[Y].push(ge)}),ue}o(C,"addUngroupedKeys");function ae(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ae,"filterHiddenOptions"),n.showHelp=k=>{let R=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:R[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(R,D){let Y="",ue=D||", ",ve=[].concat(R);return!R||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function J(k,R){let D=`[${r("default:")} `;if(k===void 0&&!R)return null;if(R)D+=R;else switch(typeof k){case"string":D+=`"${k}"`;break;case"object":D+=JSON.stringify(k);break;default:D+=k}return`${D}]`}o(J,"defaultString");function Ve(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Ve,"windowWidth");let $e=null;n.version=k=>{$e=k},n.showVersion=k=>{let R=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:R[k])($e)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=bn(h,D=>!R[D]),n},"reset");let X=[];return n.freeze=o(function(){X.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let D=X.pop();D&&(R?(h={...D.descriptions,...h},d=[...D.commands,...d],l=[...D.usages,...l],f=[...D.examples,...f],y=[...D.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=D)},"unfreeze"),n}o(oy,"usage");function Gl(e){return typeof e=="object"}o(Gl,"isIndentedText");function K$(e,t){return Gl(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(K$,"addIndentation");function iy(e){return Gl(e)?e.indentation:0}o(iy,"getIndentation");function Ja(e){return Gl(e)?e.text:e}o(Ja,"getText");var sy=`###-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
- `,iy=`#compdef {{app_name}}
110
+ `,ay=`#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 Ul=class Ul{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(Wa(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=yn(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(E=>{let w=h[E];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),W$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Re(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 K$(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 Re(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?iy:ny,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(Ul,"Completion");var Hl=Ul;function oy(e,t,r,n){return new Hl(e,t,r,n)}o(oy,"completion");function W$(e){return e.length<3}o(W$,"isSyncCompletionFunction");function K$(e){return e.length>3}o(K$,"isFallbackCompletionFunction");function sy(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(sy,"levenshtein");var ay=["$0","--","_"];function cy(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 E=h[g];E&&y.indexOf(E)<0&&y.push(E)}let b=y.length?`
129
+ `;var Wl=class Wl{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(Qa(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=yn(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(E=>{let w=h[E];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 je(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 J$(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 je(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?ay:sy,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(Wl,"Completion");var Zl=Wl;function cy(e,t,r,n){return new Zl(e,t,r,n)}o(cy,"completion");function Q$(e){return e.length<3}o(Q$,"isSyncCompletionFunction");function J$(e){return e.length>3}o(J$,"isFallbackCompletionFunction");function uy(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(uy,"levenshtein");var ly=["$0","--","_"];function fy(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 E=h[g];E&&y.indexOf(E)<0&&y.push(E)}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=e.getInternalMethods().getCommandInstance().getCommands(),w=[],T=e.getInternalMethods().getContext();if(Object.keys(f).forEach(I=>{!ay.includes(I)&&!Object.prototype.hasOwnProperty.call(h,I)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),I)&&!s.isValidAndSomeAliasIsNotNew(I,d)&&w.push(I)}),b&&(T.commands.length>0||E.length>0||y)&&f._.slice(T.commands.length).forEach(I=>{E.includes(""+I)||w.push(""+I)}),b){let C=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=T.commands.length+C;ae<f._.length&&f._.slice(ae).forEach(J=>{J=String(J),!T.commands.includes(J)&&!w.includes(J)&&w.push(J)})}w.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",w.length,w.map(I=>I.trim()?I:`"${I}"`).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=>{ay.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(E=>{d.choices[g].indexOf(E)===-1&&E!==void 0&&(h[g]=(h[g]||[]).concat(E))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
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=e.getInternalMethods().getCommandInstance().getCommands(),w=[],T=e.getInternalMethods().getContext();if(Object.keys(f).forEach(I=>{!ly.includes(I)&&!Object.prototype.hasOwnProperty.call(h,I)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),I)&&!s.isValidAndSomeAliasIsNotNew(I,d)&&w.push(I)}),b&&(T.commands.length>0||E.length>0||y)&&f._.slice(T.commands.length).forEach(I=>{E.includes(""+I)||w.push(""+I)}),b){let C=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=T.commands.length+C;ae<f._.length&&f._.slice(ae).forEach(J=>{J=String(J),!T.commands.includes(J)&&!w.includes(J)&&w.push(J)})}w.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",w.length,w.map(I=>I.trim()?I:`"${I}"`).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=>{ly.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(E=>{d.choices[g].indexOf(E)===-1&&E!==void 0&&(h[g]=(h[g]||[]).concat(E))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
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,E=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${E}`)})}),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,E)=>E.length-g.length);let y=null,b=1/0;for(let g=0,E;(E=d[g])!==void 0;g++){let w=sy(f,E);w<=3&&w<b&&(b=w,y=E)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=bn(a,d=>!f[d]),u=bn(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(cy,"validation");var zl=[],us;function ls(e,t,r,n){us=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=Q$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}Y$(a),zl.push(a),i=s?JSON.parse(us.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=ls(i,us.path.dirname(a),r,us)}return zl=[],r?uy(i,e):Object.assign({},i,e)}o(ls,"applyExtends");function Y$(e){if(zl.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}o(Y$,"checkForCircularExtends");function Q$(e,t){return us.path.resolve(e,t)}o(Q$,"getPathToDefaultConfig");function uy(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]=uy(e[i],t[i]):r[i]=t[i];return r}o(uy,"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)},Je,oi,fs,Xt,Ft,Ya,_n,si,Qa,er,Ja,tr,Mr,Vt,rr,Xa,ro,ct,Z,ec,tc,Bt,ai,no,ci,Sn,rc,ne,ui,li,fi,oe,nc,qr,ze;function Iy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new rf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Iy,"YargsFactory");var ly=Symbol("copyDoubleDash"),fy=Symbol("copyDoubleDash"),Gl=Symbol("deleteFromParserHintObject"),py=Symbol("emitWarning"),dy=Symbol("freeze"),hy=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),my=Symbol("getUsageConfiguration"),Zl=Symbol("guessLocale"),gy=Symbol("guessVersion"),yy=Symbol("parsePositionalNumbers"),Wl=Symbol("pkgUp"),Pn=Symbol("populateParserHintArray"),io=Symbol("populateParserHintSingleValueDictionary"),Kl=Symbol("populateParserHintArrayDictionary"),Yl=Symbol("populateParserHintDictionary"),Ql=Symbol("sanitizeKey"),Jl=Symbol("setKey"),Xl=Symbol("unfreeze"),by=Symbol("validateAsync"),vy=Symbol("getCommandInstance"),_y=Symbol("getContext"),Sy=Symbol("getHasOutput"),Py=Symbol("getLoggerInstance"),Oy=Symbol("getParseContext"),Ey=Symbol("getUsageInstance"),$y=Symbol("getValidationInstance"),ic=Symbol("hasParseCallback"),wy=Symbol("isGlobalContext"),di=Symbol("postProcess"),xy=Symbol("rebase"),ef=Symbol("reset"),ps=Symbol("runYargsParserAndExecuteCommands"),tf=Symbol("runValidation"),Ay=Symbol("setHasOutput"),hi=Symbol("kTrackManuallySetKeys"),nf=class nf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Je.set(this,void 0),oi.set(this,void 0),fs.set(this,{commands:[],fullCommands:[]}),Xt.set(this,null),Ft.set(this,null),Ya.set(this,"show-hidden"),_n.set(this,null),si.set(this,!0),Qa.set(this,{}),er.set(this,!0),Ja.set(this,[]),tr.set(this,void 0),Mr.set(this,{}),Vt.set(this,!1),rr.set(this,null),Xa.set(this,!0),ro.set(this,void 0),ct.set(this,""),Z.set(this,void 0),ec.set(this,void 0),tc.set(this,{}),Bt.set(this,null),ai.set(this,null),no.set(this,{}),ci.set(this,{}),Sn.set(this,void 0),rc.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),nc.set(this,{}),qr.set(this,null),ze.set(this,void 0),B(this,ne,i,"f"),B(this,Sn,t,"f"),B(this,oi,r,"f"),B(this,ec,n,"f"),B(this,tr,new Za(this),"f"),this.$0=this[hy](),this[ef](),B(this,Je,m(this,Je,"f"),"f"),B(this,oe,m(this,oe,"f"),"f"),B(this,ze,m(this,ze,"f"),"f"),B(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,Ya,"f"),B(this,ro,this[fy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,rr,"f")&&(this[Gl](m(this,rr,"f")),B(this,rr,null,"f")),t===!1&&r===void 0?this:(B(this,rr,typeof t=="string"?t:n,"f"),this.boolean(m(this,rr,"f")),this.describe(m(this,rr,"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,Ya,"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[Kl](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[Pn]("array",t),this[hi](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[Pn]("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[Kl](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 je("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 je("coerce callback must be provided");return m(this,Z,"f").key[t]=!0,m(this,tr,"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 je(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,ze,"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=ls(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),B(this,Ft,t||m(this,Ft,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Ft,"f"),r),n&&m(this,Xt,"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,Je,"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,ec,"f")||m(this,ne,"f").require;return m(this,Je,"f").addDirectory(t,n,m(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[Pn]("count",t),this[hi](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(ql(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(ql(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[io](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=>{$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[io](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[Jl](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(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){B(this,Vt,!0,"f"),B(this,_n,r,"f"),m(this,er,"f")&&m(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,er,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("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,Xt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Xt,"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,er,"f")}getGroups(){return Object.assign({},m(this,Mr,"f"),m(this,ci,"f"))}getHelp(){if(B(this,Vt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ps](m(this,Sn,"f"),void 0,void 0,0,!0);if(Re(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Je,"f").runDefaultBuilderOn(this);if(Re(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,Mr,"f")[r];m(this,ci,"f")[r]&&delete m(this,ci,"f")[r];let i={};return m(this,Mr,"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,ze,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Zl](),m(this,ne,"f").y18n.getLocale()):(B(this,si,!1,"f"),m(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,tr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[io](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[Pn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[Pn]("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,qr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[py](['"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,Z,"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,Z,"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[dy](),typeof t>"u"&&(t=m(this,Sn,"f")),typeof r=="object"&&(B(this,ai,r,"f"),r=n),typeof r=="function"&&(B(this,Bt,r,"f"),r=!1),r||B(this,Sn,t,"f"),m(this,Bt,"f")&&B(this,er,!1,"f");let i=this[ps](t,!!r),s=this.parsed;return m(this,Xt,"f").setParsed(this.parsed),Re(i)?i.then(a=>(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,_n,"f"),a,m(this,ct,"f")),a)).catch(a=>{throw m(this,Bt,"f")&&m(this,Bt,"f")(a,this.parsed.argv,m(this,ct,"f")),a}).finally(()=>{this[Xl](),this.parsed=s}):(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,_n,"f"),i,m(this,ct,"f")),this[Xl](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Re(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Re(i))throw new je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,tc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Wl](r||m(this,oi,"f"));return i[t]&&typeof i[t]=="object"&&(n=ls(i[t],r||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(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=bn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,fs,"f").fullCommands[m(this,fs,"f").fullCommands.length-1],s=i?m(this,Je,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return eo(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,rc,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,Z,"f").narg[t]?this:(this[io](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,ro,"f").log(m(this,Xt,"f").generateCompletionScript(t,r||m(this,Ft,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Vt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ps](m(this,Sn,"f"),void 0,void 0,0,!0);if(Re(n))return n.then(()=>{m(this,oe,"f").showHelp(t)}),this}let r=m(this,Je,"f").runDefaultBuilderOn(this);if(Re(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[Pn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,ui,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,li,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,fi,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[Pn]("string",t),this[hi](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,si,!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 je(".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,nc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,qr,"f")&&(this[Gl](m(this,qr,"f")),m(this,oe,"f").version(void 0),B(this,qr,null,"f")),arguments.length===0)n=this[gy](),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,qr,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,qr,"f")),this.describe(m(this,qr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,oe,"f").wrap(t),this}[(Je=new WeakMap,oi=new WeakMap,fs=new WeakMap,Xt=new WeakMap,Ft=new WeakMap,Ya=new WeakMap,_n=new WeakMap,si=new WeakMap,Qa=new WeakMap,er=new WeakMap,Ja=new WeakMap,tr=new WeakMap,Mr=new WeakMap,Vt=new WeakMap,rr=new WeakMap,Xa=new WeakMap,ro=new WeakMap,ct=new WeakMap,Z=new WeakMap,ec=new WeakMap,tc=new WeakMap,Bt=new WeakMap,ai=new WeakMap,no=new WeakMap,ci=new WeakMap,Sn=new WeakMap,rc=new WeakMap,ne=new WeakMap,ui=new WeakMap,li=new WeakMap,fi=new WeakMap,oe=new WeakMap,nc=new WeakMap,qr=new WeakMap,ze=new WeakMap,ly)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[fy](){return{log:o((...t)=>{this[ic]()||console.log(...t),B(this,Vt,!0,"f"),m(this,ct,"f").length&&B(this,ct,m(this,ct,"f")+`
135
- `,"f"),B(this,ct,m(this,ct,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[ic]()||console.error(...t),B(this,Vt,!0,"f"),m(this,ct,"f").length&&B(this,ct,m(this,ct,"f")+`
136
- `,"f"),B(this,ct,m(this,ct,"f")+t.join(" "),"f")},"error")}}[Gl](t){eo(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]}[py](t,r,n){m(this,Qa,"f")[n]||(m(this,ne,"f").process.emitWarning(t,r),m(this,Qa,"f")[n]=!0)}[dy](){m(this,Ja,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,er,"f"),groups:m(this,Mr,"f"),strict:m(this,ui,"f"),strictCommands:m(this,li,"f"),strictOptions:m(this,fi,"f"),completionCommand:m(this,Ft,"f"),output:m(this,ct,"f"),exitError:m(this,_n,"f"),hasOutput:m(this,Vt,"f"),parsed:this.parsed,parseFn:m(this,Bt,"f"),parseContext:m(this,ai,"f")}),m(this,oe,"f").freeze(),m(this,ze,"f").freeze(),m(this,Je,"f").freeze(),m(this,tr,"f").freeze()}[hy](){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[xy](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,tc,"f")}[my](){return m(this,nc,"f")}[Zl](){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(/[.:].*/,""))}[gy](){return this[Wl]().version||"unknown"}[yy](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}[Wl](t){let r=t||"*";if(m(this,no,"f")[r])return m(this,no,"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,no,"f")[r]=n||{},m(this,no,"f")[r]}[Pn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Ql](n),m(this,Z,"f")[t].push(n)})}[io](t,r,n,i){this[Yl](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[Kl](t,r,n,i){this[Yl](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[Yl](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 eo(n))t(a,n[a]);else s(r,this[Ql](n),i)}[Ql](t){return t==="__proto__"?"___proto___":t}[Jl](t,r){return this[io](this[Jl].bind(this),"key",t,r),this}[Xl](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,Ja,"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,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,er,b,"f")}}.value,groups:{set value(b){B(n,Mr,b,"f")}}.value,output:{set value(b){B(i,ct,b,"f")}}.value,exitError:{set value(b){B(s,_n,b,"f")}}.value,hasOutput:{set value(b){B(a,Vt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,ui,b,"f")}}.value,strictCommands:{set value(b){B(u,li,b,"f")}}.value,strictOptions:{set value(b){B(l,fi,b,"f")}}.value,completionCommand:{set value(b){B(p,Ft,b,"f")}}.value,parseFn:{set value(b){B(f,Bt,b,"f")}}.value,parseContext:{set value(b){B(d,ai,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,ze,"f").unfreeze(),m(this,Je,"f").unfreeze(),m(this,tr,"f").unfreeze()}[by](t,r){return ii(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[vy].bind(this),getContext:this[_y].bind(this),getHasOutput:this[Sy].bind(this),getLoggerInstance:this[Py].bind(this),getParseContext:this[Oy].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[my].bind(this),getUsageInstance:this[Ey].bind(this),getValidationInstance:this[$y].bind(this),hasParseCallback:this[ic].bind(this),isGlobalContext:this[wy].bind(this),postProcess:this[di].bind(this),reset:this[ef].bind(this),runValidation:this[tf].bind(this),runYargsParserAndExecuteCommands:this[ps].bind(this),setHasOutput:this[Ay].bind(this)}}[vy](){return m(this,Je,"f")}[_y](){return m(this,fs,"f")}[Sy](){return m(this,Vt,"f")}[Py](){return m(this,ro,"f")}[Oy](){return m(this,ai,"f")||{}}[Ey](){return m(this,oe,"f")}[$y](){return m(this,ze,"f")}[ic](){return!!m(this,Bt,"f")}[wy](){return m(this,Xa,"f")}[di](t,r,n,i){return n||Re(t)||(r||(t=this[ly](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[yy](t)),i&&(t=ni(t,this,m(this,tr,"f").getMiddleware(),!1))),t}[ef](t={}){B(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,Mr,"f")).reduce((a,c)=>{let u=m(this,Mr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Mr,{},"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]=bn(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,B(this,Z,r,"f"),B(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):ry(this,m(this,ne,"f")),"f"),B(this,ze,m(this,ze,"f")?m(this,ze,"f").reset(n):cy(this,m(this,oe,"f"),m(this,ne,"f")),"f"),B(this,Je,m(this,Je,"f")?m(this,Je,"f").reset():Xg(m(this,oe,"f"),m(this,ze,"f"),m(this,tr,"f"),m(this,ne,"f")),"f"),m(this,Xt,"f")||B(this,Xt,oy(this,m(this,oe,"f"),m(this,Je,"f"),m(this,ne,"f")),"f"),m(this,tr,"f").reset(),B(this,Ft,null,"f"),B(this,ct,"","f"),B(this,_n,null,"f"),B(this,Vt,!1,"f"),this.parsed=!1,this}[xy](t,r){return m(this,ne,"f").path.relative(t,r)}[ps](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,Sn,"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,rr,"f")&&p[b]?h=!0:b===m(this,qr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[Zl](),r)return this[di](p,c,!!n,!1);m(this,rr,"f")&&[m(this,rr,"f")].concat(d[m(this,rr,"f")]||[]).filter(T=>T.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Xa,!1,"f");let b=m(this,Je,"f").getCommands(),g=m(this,Xt,"f").completionKey in p,E=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,Ft,"f")){let C=m(this,Je,"f").runCommand(I,this,l,T+1,s,h||y||s);return this[di](C,c,!!n,!1)}else if(!w&&I!==m(this,Ft,"f")){w=I;break}!m(this,Je,"f").hasDefaultCommand()&&m(this,rc,"f")&&w&&!E&&m(this,ze,"f").recommendCommands(w,b)}m(this,Ft,"f")&&p._.includes(m(this,Ft,"f"))&&!g&&(m(this,er,"f")&&vn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Je,"f").hasDefaultCommand()&&!E){let w=m(this,Je,"f").runCommand(null,this,l,0,s,h||y||s);return this[di](w,c,!!n,!1)}if(g){m(this,er,"f")&&vn(!0),t=[].concat(t);let w=t.slice(t.indexOf(`--${m(this,Xt,"f").completionKey}`)+1);return m(this,Xt,"f").getCompletion(w,(T,I)=>{if(T)throw new je(T.message);(I||[]).forEach(C=>{m(this,ro,"f").log(C)}),this.exit(0)}),this[di](p,!c,!!n,!1)}if(m(this,Vt,"f")||(h?(m(this,er,"f")&&vn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,er,"f")&&vn(!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 je(l.error.message);if(!g){let w=this[tf](d,{},l.error);n||(f=ni(p,this,m(this,tr,"f").getMiddleware(),!0)),f=this[by](w,f??p),Re(f)&&!n&&(f=f.then(()=>ni(p,this,m(this,tr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof je)m(this,oe,"f").fail(b.message,b);else throw b}return this[di](f??p,c,!!n,!0)}[tf](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,ze,"f").nonOptionCount(a),m(this,ze,"f").requiredArguments(a,s);let c=!1;m(this,li,"f")&&(c=m(this,ze,"f").unknownCommands(a)),m(this,ui,"f")&&!c?m(this,ze,"f").unknownArguments(a,t,r,!!i):m(this,fi,"f")&&m(this,ze,"f").unknownArguments(a,t,{},!1,!1),m(this,ze,"f").limitedChoices(a),m(this,ze,"f").implications(a),m(this,ze,"f").conflicting(a)}}[Ay](){B(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(nf,"YargsInstance");var rf=nf;function ey(e){return!!e&&typeof e.getInternalMethods=="function"}o(ey,"isYargsInstance");var J$=Iy(Ml),Cy=J$;var Ty=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),jy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Ry=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={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]}},DF=Object.keys(De.modifier),X$=Object.keys(De.color),ew=Object.keys(De.bgColor),LF=[...X$,...ew];function tw(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=Ty(),De.color.ansi256=jy(),De.color.ansi16m=Ry(),De.bgColor.ansi=Ty(10),De.bgColor.ansi256=jy(10),De.bgColor.ansi16m=Ry(10),Object.defineProperties(De,{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=>De.rgbToAnsi256(...De.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)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}o(tw,"assembleStyles");var rw=tw(),br=rw;var sc=yt(require("process"),1),ky=yt(require("os"),1),of=yt(require("tty"),1);function nr(e,t=globalThis.Deno?globalThis.Deno.args:sc.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(nr,"hasFlag");var{env:Be}=sc.default,oc;nr("no-color")||nr("no-colors")||nr("color=false")||nr("color=never")?oc=0:(nr("color")||nr("colors")||nr("color=true")||nr("color=always"))&&(oc=1);function nw(){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(nw,"envForceColor");function iw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(iw,"translateLevel");function ow(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=nw();n!==void 0&&(oc=n);let i=r?oc:n;if(i===0)return 0;if(r){if(nr("color=16m")||nr("color=full")||nr("color=truecolor"))return 3;if(nr("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(sc.default.platform==="win32"){let a=ky.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(ow,"_supportsColor");function Ny(e,t={}){let r=ow(e,{streamIsTTY:e&&e.isTTY,...t});return iw(r)}o(Ny,"createSupportsColor");var sw={stdout:Ny({isTTY:of.default.isatty(1)}),stderr:Ny({isTTY:of.default.isatty(2)})},My=sw;function qy(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(qy,"stringReplaceAll");function Dy(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
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,E)=>E.length-g.length);let y=null,b=1/0;for(let g=0,E;(E=d[g])!==void 0;g++){let w=uy(f,E);w<=3&&w<b&&(b=w,y=E)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=bn(a,d=>!f[d]),u=bn(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(fy,"validation");var Kl=[],fs;function ps(e,t,r,n){fs=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=ew(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}X$(a),Kl.push(a),i=s?JSON.parse(fs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=ps(i,fs.path.dirname(a),r,fs)}return Kl=[],r?py(i,e):Object.assign({},i,e)}o(ps,"applyExtends");function X$(e){if(Kl.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}o(X$,"checkForCircularExtends");function ew(e,t){return fs.path.resolve(e,t)}o(ew,"getPathToDefaultConfig");function py(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]=py(e[i],t[i]):r[i]=t[i];return r}o(py,"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)},Je,oi,ds,Xt,Ft,Xa,_n,si,ec,er,tc,tr,Mr,Vt,rr,rc,no,ut,Z,nc,ic,Bt,ai,io,ci,Sn,oc,ne,ui,li,fi,oe,sc,qr,Ge;function Ry(e){return(t=[],r=e.process.cwd(),n)=>{let i=new af(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Ry,"YargsFactory");var dy=Symbol("copyDoubleDash"),hy=Symbol("copyDoubleDash"),Yl=Symbol("deleteFromParserHintObject"),my=Symbol("emitWarning"),gy=Symbol("freeze"),yy=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),by=Symbol("getUsageConfiguration"),Ql=Symbol("guessLocale"),vy=Symbol("guessVersion"),_y=Symbol("parsePositionalNumbers"),Jl=Symbol("pkgUp"),On=Symbol("populateParserHintArray"),oo=Symbol("populateParserHintSingleValueDictionary"),Xl=Symbol("populateParserHintArrayDictionary"),ef=Symbol("populateParserHintDictionary"),tf=Symbol("sanitizeKey"),rf=Symbol("setKey"),nf=Symbol("unfreeze"),Sy=Symbol("validateAsync"),Oy=Symbol("getCommandInstance"),Py=Symbol("getContext"),Ey=Symbol("getHasOutput"),$y=Symbol("getLoggerInstance"),wy=Symbol("getParseContext"),xy=Symbol("getUsageInstance"),Ay=Symbol("getValidationInstance"),ac=Symbol("hasParseCallback"),Iy=Symbol("isGlobalContext"),di=Symbol("postProcess"),Cy=Symbol("rebase"),of=Symbol("reset"),hs=Symbol("runYargsParserAndExecuteCommands"),sf=Symbol("runValidation"),Ty=Symbol("setHasOutput"),hi=Symbol("kTrackManuallySetKeys"),cf=class cf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Je.set(this,void 0),oi.set(this,void 0),ds.set(this,{commands:[],fullCommands:[]}),Xt.set(this,null),Ft.set(this,null),Xa.set(this,"show-hidden"),_n.set(this,null),si.set(this,!0),ec.set(this,{}),er.set(this,!0),tc.set(this,[]),tr.set(this,void 0),Mr.set(this,{}),Vt.set(this,!1),rr.set(this,null),rc.set(this,!0),no.set(this,void 0),ut.set(this,""),Z.set(this,void 0),nc.set(this,void 0),ic.set(this,{}),Bt.set(this,null),ai.set(this,null),io.set(this,{}),ci.set(this,{}),Sn.set(this,void 0),oc.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),sc.set(this,{}),qr.set(this,null),Ge.set(this,void 0),B(this,ne,i,"f"),B(this,Sn,t,"f"),B(this,oi,r,"f"),B(this,nc,n,"f"),B(this,tr,new Ya(this),"f"),this.$0=this[yy](),this[of](),B(this,Je,m(this,Je,"f"),"f"),B(this,oe,m(this,oe,"f"),"f"),B(this,Ge,m(this,Ge,"f"),"f"),B(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,Xa,"f"),B(this,no,this[hy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,rr,"f")&&(this[Yl](m(this,rr,"f")),B(this,rr,null,"f")),t===!1&&r===void 0?this:(B(this,rr,typeof t=="string"?t:n,"f"),this.boolean(m(this,rr,"f")),this.describe(m(this,rr,"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,Xa,"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[Xl](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[On]("array",t),this[hi](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[On]("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[Xl](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,tr,"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,Ge,"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=ps(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),B(this,Ft,t||m(this,Ft,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Ft,"f"),r),n&&m(this,Xt,"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,Je,"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,nc,"f")||m(this,ne,"f").require;return m(this,Je,"f").addDirectory(t,n,m(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[On]("count",t),this[hi](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Vl(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(Vl(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[oo](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=>{$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[oo](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[rf](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(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){B(this,Vt,!0,"f"),B(this,_n,r,"f"),m(this,er,"f")&&m(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,er,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,Xt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Xt,"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,er,"f")}getGroups(){return Object.assign({},m(this,Mr,"f"),m(this,ci,"f"))}getHelp(){if(B(this,Vt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[hs](m(this,Sn,"f"),void 0,void 0,0,!0);if(je(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Je,"f").runDefaultBuilderOn(this);if(je(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,Mr,"f")[r];m(this,ci,"f")[r]&&delete m(this,ci,"f")[r];let i={};return m(this,Mr,"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,Ge,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Ql](),m(this,ne,"f").y18n.getLocale()):(B(this,si,!1,"f"),m(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,tr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[oo](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[On]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[On]("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,qr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[my](['"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,Z,"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,Z,"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[gy](),typeof t>"u"&&(t=m(this,Sn,"f")),typeof r=="object"&&(B(this,ai,r,"f"),r=n),typeof r=="function"&&(B(this,Bt,r,"f"),r=!1),r||B(this,Sn,t,"f"),m(this,Bt,"f")&&B(this,er,!1,"f");let i=this[hs](t,!!r),s=this.parsed;return m(this,Xt,"f").setParsed(this.parsed),je(i)?i.then(a=>(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,_n,"f"),a,m(this,ut,"f")),a)).catch(a=>{throw m(this,Bt,"f")&&m(this,Bt,"f")(a,this.parsed.argv,m(this,ut,"f")),a}).finally(()=>{this[nf](),this.parsed=s}):(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,_n,"f"),i,m(this,ut,"f")),this[nf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return je(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(je(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,ic,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Jl](r||m(this,oi,"f"));return i[t]&&typeof i[t]=="object"&&(n=ps(i[t],r||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(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=bn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,ds,"f").fullCommands[m(this,ds,"f").fullCommands.length-1],s=i?m(this,Je,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return to(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,oc,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,Z,"f").narg[t]?this:(this[oo](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,no,"f").log(m(this,Xt,"f").generateCompletionScript(t,r||m(this,Ft,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Vt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[hs](m(this,Sn,"f"),void 0,void 0,0,!0);if(je(n))return n.then(()=>{m(this,oe,"f").showHelp(t)}),this}let r=m(this,Je,"f").runDefaultBuilderOn(this);if(je(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[On]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,ui,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,li,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,fi,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[On]("string",t),this[hi](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,si,!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,sc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,qr,"f")&&(this[Yl](m(this,qr,"f")),m(this,oe,"f").version(void 0),B(this,qr,null,"f")),arguments.length===0)n=this[vy](),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,qr,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,qr,"f")),this.describe(m(this,qr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,oe,"f").wrap(t),this}[(Je=new WeakMap,oi=new WeakMap,ds=new WeakMap,Xt=new WeakMap,Ft=new WeakMap,Xa=new WeakMap,_n=new WeakMap,si=new WeakMap,ec=new WeakMap,er=new WeakMap,tc=new WeakMap,tr=new WeakMap,Mr=new WeakMap,Vt=new WeakMap,rr=new WeakMap,rc=new WeakMap,no=new WeakMap,ut=new WeakMap,Z=new WeakMap,nc=new WeakMap,ic=new WeakMap,Bt=new WeakMap,ai=new WeakMap,io=new WeakMap,ci=new WeakMap,Sn=new WeakMap,oc=new WeakMap,ne=new WeakMap,ui=new WeakMap,li=new WeakMap,fi=new WeakMap,oe=new WeakMap,sc=new WeakMap,qr=new WeakMap,Ge=new WeakMap,dy)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[hy](){return{log:o((...t)=>{this[ac]()||console.log(...t),B(this,Vt,!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[ac]()||console.error(...t),B(this,Vt,!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")}}[Yl](t){to(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]}[my](t,r,n){m(this,ec,"f")[n]||(m(this,ne,"f").process.emitWarning(t,r),m(this,ec,"f")[n]=!0)}[gy](){m(this,tc,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,er,"f"),groups:m(this,Mr,"f"),strict:m(this,ui,"f"),strictCommands:m(this,li,"f"),strictOptions:m(this,fi,"f"),completionCommand:m(this,Ft,"f"),output:m(this,ut,"f"),exitError:m(this,_n,"f"),hasOutput:m(this,Vt,"f"),parsed:this.parsed,parseFn:m(this,Bt,"f"),parseContext:m(this,ai,"f")}),m(this,oe,"f").freeze(),m(this,Ge,"f").freeze(),m(this,Je,"f").freeze(),m(this,tr,"f").freeze()}[yy](){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[Cy](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,ic,"f")}[by](){return m(this,sc,"f")}[Ql](){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(/[.:].*/,""))}[vy](){return this[Jl]().version||"unknown"}[_y](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}[Jl](t){let r=t||"*";if(m(this,io,"f")[r])return m(this,io,"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,io,"f")[r]=n||{},m(this,io,"f")[r]}[On](t,r){r=[].concat(r),r.forEach(n=>{n=this[tf](n),m(this,Z,"f")[t].push(n)})}[oo](t,r,n,i){this[ef](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[Xl](t,r,n,i){this[ef](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[ef](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 to(n))t(a,n[a]);else s(r,this[tf](n),i)}[tf](t){return t==="__proto__"?"___proto___":t}[rf](t,r){return this[oo](this[rf].bind(this),"key",t,r),this}[nf](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,tc,"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,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,er,b,"f")}}.value,groups:{set value(b){B(n,Mr,b,"f")}}.value,output:{set value(b){B(i,ut,b,"f")}}.value,exitError:{set value(b){B(s,_n,b,"f")}}.value,hasOutput:{set value(b){B(a,Vt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,ui,b,"f")}}.value,strictCommands:{set value(b){B(u,li,b,"f")}}.value,strictOptions:{set value(b){B(l,fi,b,"f")}}.value,completionCommand:{set value(b){B(p,Ft,b,"f")}}.value,parseFn:{set value(b){B(f,Bt,b,"f")}}.value,parseContext:{set value(b){B(d,ai,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,Ge,"f").unfreeze(),m(this,Je,"f").unfreeze(),m(this,tr,"f").unfreeze()}[Sy](t,r){return ii(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Oy].bind(this),getContext:this[Py].bind(this),getHasOutput:this[Ey].bind(this),getLoggerInstance:this[$y].bind(this),getParseContext:this[wy].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[by].bind(this),getUsageInstance:this[xy].bind(this),getValidationInstance:this[Ay].bind(this),hasParseCallback:this[ac].bind(this),isGlobalContext:this[Iy].bind(this),postProcess:this[di].bind(this),reset:this[of].bind(this),runValidation:this[sf].bind(this),runYargsParserAndExecuteCommands:this[hs].bind(this),setHasOutput:this[Ty].bind(this)}}[Oy](){return m(this,Je,"f")}[Py](){return m(this,ds,"f")}[Ey](){return m(this,Vt,"f")}[$y](){return m(this,no,"f")}[wy](){return m(this,ai,"f")||{}}[xy](){return m(this,oe,"f")}[Ay](){return m(this,Ge,"f")}[ac](){return!!m(this,Bt,"f")}[Iy](){return m(this,rc,"f")}[di](t,r,n,i){return n||je(t)||(r||(t=this[dy](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[_y](t)),i&&(t=ni(t,this,m(this,tr,"f").getMiddleware(),!1))),t}[of](t={}){B(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,Mr,"f")).reduce((a,c)=>{let u=m(this,Mr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Mr,{},"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]=bn(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,B(this,Z,r,"f"),B(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):oy(this,m(this,ne,"f")),"f"),B(this,Ge,m(this,Ge,"f")?m(this,Ge,"f").reset(n):fy(this,m(this,oe,"f"),m(this,ne,"f")),"f"),B(this,Je,m(this,Je,"f")?m(this,Je,"f").reset():ry(m(this,oe,"f"),m(this,Ge,"f"),m(this,tr,"f"),m(this,ne,"f")),"f"),m(this,Xt,"f")||B(this,Xt,cy(this,m(this,oe,"f"),m(this,Je,"f"),m(this,ne,"f")),"f"),m(this,tr,"f").reset(),B(this,Ft,null,"f"),B(this,ut,"","f"),B(this,_n,null,"f"),B(this,Vt,!1,"f"),this.parsed=!1,this}[Cy](t,r){return m(this,ne,"f").path.relative(t,r)}[hs](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,Sn,"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,rr,"f")&&p[b]?h=!0:b===m(this,qr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[Ql](),r)return this[di](p,c,!!n,!1);m(this,rr,"f")&&[m(this,rr,"f")].concat(d[m(this,rr,"f")]||[]).filter(T=>T.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,rc,!1,"f");let b=m(this,Je,"f").getCommands(),g=m(this,Xt,"f").completionKey in p,E=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,Ft,"f")){let C=m(this,Je,"f").runCommand(I,this,l,T+1,s,h||y||s);return this[di](C,c,!!n,!1)}else if(!w&&I!==m(this,Ft,"f")){w=I;break}!m(this,Je,"f").hasDefaultCommand()&&m(this,oc,"f")&&w&&!E&&m(this,Ge,"f").recommendCommands(w,b)}m(this,Ft,"f")&&p._.includes(m(this,Ft,"f"))&&!g&&(m(this,er,"f")&&vn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Je,"f").hasDefaultCommand()&&!E){let w=m(this,Je,"f").runCommand(null,this,l,0,s,h||y||s);return this[di](w,c,!!n,!1)}if(g){m(this,er,"f")&&vn(!0),t=[].concat(t);let w=t.slice(t.indexOf(`--${m(this,Xt,"f").completionKey}`)+1);return m(this,Xt,"f").getCompletion(w,(T,I)=>{if(T)throw new Re(T.message);(I||[]).forEach(C=>{m(this,no,"f").log(C)}),this.exit(0)}),this[di](p,!c,!!n,!1)}if(m(this,Vt,"f")||(h?(m(this,er,"f")&&vn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,er,"f")&&vn(!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[sf](d,{},l.error);n||(f=ni(p,this,m(this,tr,"f").getMiddleware(),!0)),f=this[Sy](w,f??p),je(f)&&!n&&(f=f.then(()=>ni(p,this,m(this,tr,"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)}[sf](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Ge,"f").nonOptionCount(a),m(this,Ge,"f").requiredArguments(a,s);let c=!1;m(this,li,"f")&&(c=m(this,Ge,"f").unknownCommands(a)),m(this,ui,"f")&&!c?m(this,Ge,"f").unknownArguments(a,t,r,!!i):m(this,fi,"f")&&m(this,Ge,"f").unknownArguments(a,t,{},!1,!1),m(this,Ge,"f").limitedChoices(a),m(this,Ge,"f").implications(a),m(this,Ge,"f").conflicting(a)}}[Ty](){B(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(cf,"YargsInstance");var af=cf;function ny(e){return!!e&&typeof e.getInternalMethods=="function"}o(ny,"isYargsInstance");var tw=Ry(Fl),jy=tw;var Ny=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),ky=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),My=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={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]}},VF=Object.keys(De.modifier),rw=Object.keys(De.color),nw=Object.keys(De.bgColor),BF=[...rw,...nw];function iw(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=Ny(),De.color.ansi256=ky(),De.color.ansi16m=My(),De.bgColor.ansi=Ny(10),De.bgColor.ansi256=ky(10),De.bgColor.ansi16m=My(10),Object.defineProperties(De,{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=>De.rgbToAnsi256(...De.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)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}o(iw,"assembleStyles");var ow=iw(),br=ow;var uc=yt(require("process"),1),Dy=yt(require("os"),1),uf=yt(require("tty"),1);function nr(e,t=globalThis.Deno?globalThis.Deno.args:uc.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(nr,"hasFlag");var{env:He}=uc.default,cc;nr("no-color")||nr("no-colors")||nr("color=false")||nr("color=never")?cc=0:(nr("color")||nr("colors")||nr("color=true")||nr("color=always"))&&(cc=1);function sw(){if("FORCE_COLOR"in He)return He.FORCE_COLOR==="true"?1:He.FORCE_COLOR==="false"?0:He.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(He.FORCE_COLOR,10),3)}o(sw,"envForceColor");function aw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(aw,"translateLevel");function cw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=sw();n!==void 0&&(cc=n);let i=r?cc:n;if(i===0)return 0;if(r){if(nr("color=16m")||nr("color=full")||nr("color=truecolor"))return 3;if(nr("color=256"))return 2}if("TF_BUILD"in He&&"AGENT_NAME"in He)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(He.TERM==="dumb")return s;if(uc.default.platform==="win32"){let a=Dy.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in He)return"GITHUB_ACTIONS"in He||"GITEA_ACTIONS"in He?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in He)||He.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in He)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(He.TEAMCITY_VERSION)?1:0;if(He.COLORTERM==="truecolor"||He.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in He){let a=Number.parseInt((He.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(He.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(He.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(He.TERM)||"COLORTERM"in He?1:s}o(cw,"_supportsColor");function qy(e,t={}){let r=cw(e,{streamIsTTY:e&&e.isTTY,...t});return aw(r)}o(qy,"createSupportsColor");var uw={stdout:qy({isTTY:uf.default.isatty(1)}),stderr:qy({isTTY:uf.default.isatty(2)})},Ly=uw;function Fy(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(Fy,"stringReplaceAll");function Vy(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(Dy,"stringEncaseCRLFWithFirstIndex");var{stdout:Ly,stderr:Fy}=My,sf=Symbol("GENERATOR"),oo=Symbol("STYLER"),ds=Symbol("IS_EMPTY"),Vy=["ansi","ansi","ansi256","ansi16m"],so=Object.create(null),aw=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=Ly?Ly.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),uf=class uf{constructor(t){return By(t)}};o(uf,"Chalk");var ac=uf,By=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return aw(t,e),Object.setPrototypeOf(t,hs.prototype),t},"chalkFactory");function hs(e){return By(e)}o(hs,"createChalk");Object.setPrototypeOf(hs.prototype,Function.prototype);for(let[e,t]of Object.entries(br))so[e]={get(){let r=cc(this,cf(t.open,t.close,this[oo]),this[ds]);return Object.defineProperty(this,e,{value:r}),r}};so.visible={get(){let e=cc(this,this[oo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var af=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?br[r].ansi16m(...n):t==="ansi256"?br[r].ansi256(br.rgbToAnsi256(...n)):br[r].ansi(br.rgbToAnsi(...n)):e==="hex"?af("rgb",t,r,...br.hexToRgb(...n)):br[r][e](...n),"getModelAnsi"),cw=["rgb","hex","ansi256"];for(let e of cw){so[e]={get(){let{level:r}=this;return function(...n){let i=cf(af(e,Vy[r],"color",...n),br.color.close,this[oo]);return cc(this,i,this[ds])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);so[t]={get(){let{level:r}=this;return function(...n){let i=cf(af(e,Vy[r],"bgColor",...n),br.bgColor.close,this[oo]);return cc(this,i,this[ds])}}}}var uw=Object.defineProperties(()=>{},{...so,level:{enumerable:!0,get(){return this[sf].level},set(e){this[sf].level=e}}}),cf=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"),cc=o((e,t,r)=>{let n=o((...i)=>lw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,uw),n[sf]=e,n[oo]=t,n[ds]=r,n},"createBuilder"),lw=o((e,t)=>{if(e.level<=0||!t)return e[ds]?"":t;let r=e[oo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=qy(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
- `);return s!==-1&&(t=Dy(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(hs.prototype,so);var KF=hs(),YF=hs({level:Fy?Fy.level:0});var Dr=new ac;function ms(e,t,r){console.log(r!==void 0&&r!==t?`${Dr.yellow(`${e}:`.padEnd(20))}${Dr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(ms,"logVariable");function ir(e){console.log(`[INFO] ${e}`)}o(ir,"logInfo");function On(e){console.log(Dr.green(`[SUCCESS] ${e}`))}o(On,"logSuccess");function gs(e,t){e instanceof Error?(console.log(Dr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Dr.red(`[ERROR] ${e}`))}o(gs,"logError");function uc(e){console.log(Dr.bgYellow(`==== ${e} ====`))}o(uc,"logBanner");var Hy=yt(require("fs"));function ao(){return"0.6.5"}o(ao,"getVersion");var u6=yt(zy());var lf=Symbol("options_key");function Ge(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(lf,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(lf,s,t)}}}o(Ge,"YargOption");function Gy(e){let t=Reflect.getMetadata(lf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Gy,"getYargsOption");function lc(e){return async t=>t.options(fw(e)).middleware(async r=>await pw(e,r),!0)}o(lc,"getBuilder");function fw(e){return Object.entries(Gy(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(fw,"getYargsOptions");async function pw(e,t){let r=new e;for(let[n,i]of Object.entries(Gy(e)))r[n]=t[n]??i.default;return r}o(pw,"loadYargsConfig");var GE=yt(em());var SO="Schema",PO="Enum",OO="Body",EO="Param",$O="Response",wO="ErrorResponse",aa="z.void()",gu="z.enum",yu={bindings:["z"],from:"zod"};var bu={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],tsNamespaces:!0,importPath:"ts",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:SO,enumSuffix:PO,withDefaultValues:!0,extractEnums:!0,removeOperationPrefixEndingWith:"Controller_",infiniteQueries:!0};var xO={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},AO={"invalid-schema":"Invalid OpenAPI 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 HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes"};var tm={"Content-Type":"application/json",Accept:"application/json"},IO="data";var CO=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Fn=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 ln=Symbol.for("@ts-pattern/matcher"),aq=Symbol.for("@ts-pattern/isVariadic"),_u="@ts-pattern/anonymous-select-key",rm=o(e=>!!(e&&typeof e=="object"),"r"),vu=o(e=>e&&!!e[ln],"i"),Qr=o((e,t,r)=>{if(vu(e)){let n=e[ln](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(rm(e)){if(!rm(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];vu(c)&&c[aq]?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)=>Qr(l,a[p],r))&&i.every((l,p)=>Qr(l,c[p],r))&&(s.length===0||Qr(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Qr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||vu(s=i)&&s[ln]().matcherType==="optional")&&Qr(i,t[n],r);var s})}return Object.is(t,e)},"s"),zn=o(e=>{var t,r,n;return rm(e)?vu(e)?(t=(r=(n=e[ln]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?ua(e,zn):ua(Object.values(e),zn):[]},"o"),ua=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function fr(e){return Object.assign(e,{optional:o(()=>cq(e),"optional"),and:o(t=>Le(e,t),"and"),or:o(t=>uq(e,t),"or"),select:o(t=>t===void 0?TO(e):TO(t,e),"select")})}o(fr,"u");function cq(e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(zn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Qr(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>zn(e),"getSelectionKeys"),matcherType:"optional"})})}o(cq,"h");function Le(...e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Qr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ua(e,zn),"getSelectionKeys"),matcherType:"and"})})}o(Le,"m");function uq(...e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return ua(e,zn).forEach(i=>n(i,void 0)),{matched:e.some(i=>Qr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ua(e,zn),"getSelectionKeys"),matcherType:"or"})})}o(uq,"d");function Pe(e){return{[ln]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Pe,"p");function TO(...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 fr({[ln]:()=>({match:o(n=>{let i={[t??_u]:n};return{matched:r===void 0||Qr(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??_u].concat(r===void 0?[]:zn(r)),"getSelectionKeys")})})}o(TO,"y");function Kr(e){return typeof e=="number"}o(Kr,"v");function Vn(e){return typeof e=="string"}o(Vn,"b");function Bn(e){return typeof e=="bigint"}o(Bn,"w");var I9=fr(Pe(function(e){return!0}));var Hn=o(e=>Object.assign(fr(e),{startsWith:o(t=>{return Hn(Le(e,(r=t,Pe(n=>Vn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Hn(Le(e,(r=t,Pe(n=>Vn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Hn(Le(e,(r=>Pe(n=>Vn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Hn(Le(e,(r=>Pe(n=>Vn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Hn(Le(e,(r=>Pe(n=>Vn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Hn(Le(e,(r=t,Pe(n=>Vn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Hn(Le(e,(r=t,Pe(n=>Vn(n)&&!!n.match(r)))));var r},"regex")}),"j"),C9=Hn(Pe(Vn)),Yr=o(e=>Object.assign(fr(e),{between:o((t,r)=>Yr(Le(e,((n,i)=>Pe(s=>Kr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Yr(Le(e,(r=>Pe(n=>Kr(n)&&n<r))(t))),"lt"),gt:o(t=>Yr(Le(e,(r=>Pe(n=>Kr(n)&&n>r))(t))),"gt"),lte:o(t=>Yr(Le(e,(r=>Pe(n=>Kr(n)&&n<=r))(t))),"lte"),gte:o(t=>Yr(Le(e,(r=>Pe(n=>Kr(n)&&n>=r))(t))),"gte"),int:o(()=>Yr(Le(e,Pe(t=>Kr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Yr(Le(e,Pe(t=>Kr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Yr(Le(e,Pe(t=>Kr(t)&&t>0))),"positive"),negative:o(()=>Yr(Le(e,Pe(t=>Kr(t)&&t<0))),"negative")}),"x"),T9=Yr(Pe(Kr)),Un=o(e=>Object.assign(fr(e),{between:o((t,r)=>Un(Le(e,((n,i)=>Pe(s=>Bn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Un(Le(e,(r=>Pe(n=>Bn(n)&&n<r))(t))),"lt"),gt:o(t=>Un(Le(e,(r=>Pe(n=>Bn(n)&&n>r))(t))),"gt"),lte:o(t=>Un(Le(e,(r=>Pe(n=>Bn(n)&&n<=r))(t))),"lte"),gte:o(t=>Un(Le(e,(r=>Pe(n=>Bn(n)&&n>=r))(t))),"gte"),positive:o(()=>Un(Le(e,Pe(t=>Bn(t)&&t>0))),"positive"),negative:o(()=>Un(Le(e,Pe(t=>Bn(t)&&t<0))),"negative")}),"A"),j9=Un(Pe(Bn)),R9=fr(Pe(function(e){return typeof e=="boolean"})),N9=fr(Pe(function(e){return typeof e=="symbol"})),k9=fr(Pe(function(e){return e==null})),M9=fr(Pe(function(e){return e!=null}));var sm=class sm 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(sm,"W");var nm=sm,im={matched:!1,value:void 0};function Ot(e){return new om(e,im)}o(Ot,"z");var ca=class ca{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=>Qr(l,this.input,c))||i&&!i(this.input)?im:{matched:!0,value:r(s?_u in a?a[_u]:a:this.input,this.input)};return new ca(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ca(this.input,n?{matched:!0,value:r(this.input,this.input)}:im)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new nm(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(ca,"I");var om=ca;var am=["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 cm=2,jO=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],RO=["query","header","path"],Gn=["get","put","post","delete","options","head","patch","trace"],NO=["string","number","integer","boolean"],la=["allOf","anyOf","oneOf"];function Zn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Zn,"pick");var Fe=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Wn=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),kO=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),lt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),MO=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),um=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),qO=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),lq=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"),lm=o(e=>{let t=e.map(Fe).map(DO).map(r=>fq(r)).flat();return lq(t)},"getMostCommonAdjacentCombinationSplit"),DO=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),LO=o(e=>DO(e).join(" "),"camelToSpaceSeparated"),fq=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"),FO=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${Wn(r)}|${Fe(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");function Kn(e){return MO(e)}o(Kn,"formatTag");function Mi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Kn(r??t.defaultTag)}o(Mi,"getOperationTag");function VO(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Zn(i,Gn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!t.withDeprecatedEndpoints)continue;let u=t.splitByTags?Mi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(VO,"getOperationsByTag");var HO=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),qi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Zo=o(e=>qi(e).split("/").at(-1),"getSchemaNameByRef");function Oe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Oe,"isReferenceObject");function dm(e){let t=pq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return lt(t)}o(dm,"normalizeString");function UO(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(UO,"wrapWithQuotesIfNeeded");function zO(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(zO,"unwrapQuotesIfNeeded");function pq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(pq,"prefixStringStartingWithNumberIfNeeded");function hm(e){let t=e.replaceAll("_","#");return lt(t.replaceAll("-","_")).replaceAll("#","_")}o(hm,"pathParamToVariableName");var Di=o(e=>NO.includes(e),"isPrimitiveType");function GO(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(GO,"escapeControlCharacters");function Jr(e){return e.includes("application/")&&e.includes("json")||jO.includes(e)||e.includes("text/")}o(Jr,"isParamMediaTypeAllowed");function Su(e){return e>=200&&e<300}o(Su,"isMainResponseStatus");function Pu(e){return!(e>=200&&e<300)}o(Pu,"isErrorStatus");function Ou(e){return e==="application/json"}o(Ou,"isMediaTypeAllowed");function fm({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${hq(e)}`,u=r.operationId?Fn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Fe(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=FO(u,i);am.includes(l)||(u=l)}return am.includes(u)?c:u}o(fm,"getOperationName");function fa({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?Mi(r,n):n.defaultTag,s=o(a=>{let c=fm({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>fm({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??fm({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(fa,"getUniqueOperationName");function ZO(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Zn(s,Gn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!r.withDeprecatedEndpoints)continue;let l=fa({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(ZO,"getUniqueOperationNamesWithoutSplitByTags");var BO=/({\w+})/g,dq=/[^\w\-]+/g;function hq(e){e=Fe(kO(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(BO)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(BO,"")}By${Fe(r.slice(1,-1))}`}return e.replace(dq,"_")}o(hq,"pathToVariableName");var pm=/{(\b\w+(?:-\w+)*\b)}/g;function WO(e){let t=e.match(pm);return t===null?e.replaceAll(pm,":$1"):(t.forEach(r=>{let n=hm(r.replaceAll(pm,":$1"));e=e.replaceAll(r,n)}),e)}o(WO,"replaceHyphenatedPath");function zt(e){return!Oe(e)}o(zt,"isSchemaObject");function Eu(e){return e.type==="array"}o(Eu,"isArraySchemaObject");function KO(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(mq(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(Oe(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(KO,"inferRequiredSchema");var mq=o(e=>!Oe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var pa="AppRestClient",$u={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},mm="src/data",gm="@/data",YO="@/util/rest/clients/app-rest-client",QO="@/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"};var Gt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Xr=o((e,t)=>um(Fe(dm(e)),t),"getZodSchemaName"),ym=o((e,t,r)=>um(Fe(dm(e)),`${t}${r}`),"getEnumZodSchemaName"),Dt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),JO=o(e=>e.startsWith(gu),"isEnumZodSchema"),Li=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Au=o(e=>lt(`${e}_${OO}`),"getBodyZodSchemaName"),XO=o((e,t)=>lt(`${e}_${t}${EO}`),"getParamZodSchemaName"),gq=o(e=>lt(`${e}${$O}`),"getMainResponseZodSchemaName"),yq=o((e,t)=>lt(`${e}_${t}_${wO}`),"getErrorResponseZodSchemaName");function Iu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Li(t,r,n);return!Su(i)&&e!=="default"&&Pu(i)?yq(s,e):gq(s)}o(Iu,"getResponseZodSchemaName");function da(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Fe(LO(i))}: \`${e[i]}\``],[])}o(da,"getSchemaDescriptions");function It(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Oe(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(la.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&It(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&It(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;It(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;It(s,t)}}o(It,"iterateSchema");var ha=o((e,t)=>qO(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),eE=o((e,t)=>Dt(t)?`${e.options.tsNamespaces?`${et({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Fi=o((e,t,r)=>{if(!Dt(t))return t===aa?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${et({type:"models",tag:n,options:e.options})}.`:""}${ha(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function tE(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(tE,"getZodSchemaType");function rE(e){if(e.schemaObj)return[e.schemaObj.description,...da(e.schemaObj).join(". ")].filter(Boolean)}o(rE,"getZodSchemaDescription");function nE(e,t,r){var n;if(Oe(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Fi(e,i,r):void 0}if(Eu(t)){if(!Oe(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Fi(e,i,r)}[]`:void 0}if(la.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return nE(e,i[0],r)}return t.type}o(nE,"getType");function iE(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...da(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:nE(e,c.schema,r)??"unknown",description:f.join(". ")})}return It(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(Oe(c)){let u=e.resolveObject(c);It(u,{data:{pathSegments:[]},onSchema:a})}}),It(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(iE,"getZodSchemaPropertyDescriptions");function Yn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=bm({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=bm({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>ha(u,e.options),"getEntityName"),options:e.options});return bq(e.options,a,c)}o(Yn,"getModelsImports");function oE({tag:e,endpoints:t,options:r}){return bm({type:"endpoints",tag:e,entities:t,getTag:o(n=>ya(n,r),"getTag"),getEntityName:ga,options:r})}o(oE,"getEndpointsImports");function sE({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.tsNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.tsNamespaces?et({type:"acl",tag:s,options:n}):a],from:`${ma(n)}${Cu({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(sE,"getAclImports");function ma(e){let t=gm;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${mm}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${mm}`,"g"),gm)),`${t}/`.replace(/\/\//g,"/")}o(ma,"getImportPath");function bm({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?et({type:e,tag:u,options:s}):i(c)],from:`${l?"./":ma(s)}${Cu({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(bm,"getImports");function bq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Gt(n.bindings)}))}o(bq,"mergeImports");function Tu({fileName:e,extension:t}){return`${e}.${t}`}o(Tu,"getFileNameWithExtension");function aE({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Wn(t)}/`:""}${Wn(t)}.${i}`:i}o(aE,"getTagFileNameWithoutExtension");function Cu(...e){return aE(...e)}o(Cu,"getTagImportPath");function ju(...e){return`${aE(...e)}.ts`}o(ju,"getTagFileName");var et=o(({type:e,tag:t,options:r})=>`${Fe(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function cE(e){return e.standalone?`${ma(e)}${xu.fileName}`:YO}o(cE,"getAppRestClientImportPath");function uE(e){return e.standalone?`${ma(e)}${wu.reactQueryTypes.fileName}`:QO}o(uE,"getQueryTypesImportPath");function lE(e){return Ot(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(lE,"primitiveTypeToTsType");var Zt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation",queryClient:"useQueryClient"},fE={bindings:[Zt.query,Zt.infiniteQuery,Zt.mutation,Zt.queryClient],from:"@tanstack/react-query"},Vi={pageParamName:"page"},Ru={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"};var ga=o(e=>Wn(lt(e.operationName)),"getEndpointName");function pE(e,t){return`${t.tsNamespaces?`${et({type:"endpoints",tag:ya(e,t),options:t})}.`:""}${ga(e)}`}o(pE,"getImportedEndpointName");var dE=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ya(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Kn(r??t.defaultTag)}o(ya,"getEndpointTag");function vm(e,t,r){return t.parameters.map(n=>{var s,a,c,u;let i="string";if(Dt(n.zodSchema))i=Fi(e,n.zodSchema);else if((s=n.parameterObject)!=null&&s.schema&&zt(n.parameterObject.schema)){let l=(c=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:c.type;l&&Di(l)&&(i=lE(l))}return{name:Fn(n.name),type:i,paramType:n.type,required:((u=n.parameterObject)==null?void 0:u.required)??!0,parameterObject:n.parameterObject,bodyObject:n.bodyObject}}).sort((n,i)=>{if(n.required===i.required){let s=["Path","Body","Query","Header"];return s.indexOf(n.paramType)-s.indexOf(i.paramType)}return n.required?-1:1}).filter(n=>r!=="removePageParam"||n.name!==Vi.pageParamName).map(n=>({...n,name:r==="replacePageParam"&&n.name===Vi.pageParamName?"pageParam":n.name}))}o(vm,"mapEndpointParamsToFunctionParams");function hE(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=CO(i.name)?i.name:`"${i.name}"`,a=Fn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==tm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==tm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Fn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(hE,"getEndpointConfig");function ba(e){return{type:"invalid-schema",message:e}}o(ba,"getInvalidSchemaError");function mE(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(mE,"getInvalidOperationIdError");function gE(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(gE,"getMissingPathParameterError");function yE(e){return{type:"not-allowed-inline-enum",message:e}}o(yE,"getNotAllowedInlineEnumError");function bE(e){return{type:"not-allowed-circular-schema",message:e}}o(bE,"getNotAllowedCircularSchemaError");function vE(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${Pm(t,r)}`}}o(vE,"getMissingAclConditionPropertyError");function Sm(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${_m(e)} in operation ${Pm(t,r)}`}}o(Sm,"getMissingStatusCodeError");function _E(e,t,r){return{type:"invalid-status-code",message:`Operation ${Pm(t,r)} expected HTTP status code ${_m(e.expected)} but received ${_m(e.received)}`}}o(_E,"getInvalidStatusCodeError");function Pm(e,t){return e.operationId??`${t.method} ${t.path}`}o(Pm,"getOperationDescriptor");function _m(e){return`${e} (${xO[e]})`}o(_m,"getStatusCodeDescription");function SE(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(SE,"groupByType");function en({schema:e,meta:t,options:r}){let n=[];Ot(e.type).with("string",()=>n.push(Sq(e))).with("number","integer",()=>n.push(Oq(e))).with("array",()=>n.push(Eq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
139
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(Vy,"stringEncaseCRLFWithFirstIndex");var{stdout:By,stderr:Hy}=Ly,lf=Symbol("GENERATOR"),so=Symbol("STYLER"),ms=Symbol("IS_EMPTY"),Uy=["ansi","ansi","ansi256","ansi16m"],ao=Object.create(null),lw=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=By?By.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),df=class df{constructor(t){return zy(t)}};o(df,"Chalk");var lc=df,zy=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return lw(t,e),Object.setPrototypeOf(t,gs.prototype),t},"chalkFactory");function gs(e){return zy(e)}o(gs,"createChalk");Object.setPrototypeOf(gs.prototype,Function.prototype);for(let[e,t]of Object.entries(br))ao[e]={get(){let r=fc(this,pf(t.open,t.close,this[so]),this[ms]);return Object.defineProperty(this,e,{value:r}),r}};ao.visible={get(){let e=fc(this,this[so],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ff=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?br[r].ansi16m(...n):t==="ansi256"?br[r].ansi256(br.rgbToAnsi256(...n)):br[r].ansi(br.rgbToAnsi(...n)):e==="hex"?ff("rgb",t,r,...br.hexToRgb(...n)):br[r][e](...n),"getModelAnsi"),fw=["rgb","hex","ansi256"];for(let e of fw){ao[e]={get(){let{level:r}=this;return function(...n){let i=pf(ff(e,Uy[r],"color",...n),br.color.close,this[so]);return fc(this,i,this[ms])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ao[t]={get(){let{level:r}=this;return function(...n){let i=pf(ff(e,Uy[r],"bgColor",...n),br.bgColor.close,this[so]);return fc(this,i,this[ms])}}}}var pw=Object.defineProperties(()=>{},{...ao,level:{enumerable:!0,get(){return this[lf].level},set(e){this[lf].level=e}}}),pf=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"),fc=o((e,t,r)=>{let n=o((...i)=>dw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,pw),n[lf]=e,n[so]=t,n[ms]=r,n},"createBuilder"),dw=o((e,t)=>{if(e.level<=0||!t)return e[ms]?"":t;let r=e[so];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Fy(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
+ `);return s!==-1&&(t=Vy(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(gs.prototype,ao);var JF=gs(),XF=gs({level:Hy?Hy.level:0});var Dr=new lc;function ys(e,t,r){console.log(r!==void 0&&r!==t?`${Dr.yellow(`${e}:`.padEnd(20))}${Dr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(ys,"logVariable");function ir(e){console.log(`[INFO] ${e}`)}o(ir,"logInfo");function Pn(e){console.log(Dr.green(`[SUCCESS] ${e}`))}o(Pn,"logSuccess");function bs(e,t){e instanceof Error?(console.log(Dr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Dr.red(`[ERROR] ${e}`))}o(bs,"logError");function pc(e){console.log(Dr.bgYellow(`==== ${e} ====`))}o(pc,"logBanner");var Gy=yt(require("fs"));function co(){return"0.6.6"}o(co,"getVersion");var p6=yt(Wy());var hf=Symbol("options_key");function Ue(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(hf,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(hf,s,t)}}}o(Ue,"YargOption");function Ky(e){let t=Reflect.getMetadata(hf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Ky,"getYargsOption");function dc(e){return async t=>t.options(hw(e)).middleware(async r=>await mw(e,r),!0)}o(dc,"getBuilder");function hw(e){return Object.entries(Ky(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(hw,"getYargsOptions");async function mw(e,t){let r=new e;for(let[n,i]of Object.entries(Ky(e)))r[n]=t[n]??i.default;return r}o(mw,"loadYargsConfig");var KE=yt(im());var EP="Schema",$P="Enum",wP="Body",xP="Param",AP="Response",IP="ErrorResponse",ua="z.void()",vu="z.enum",_u={bindings:["z"],from:"zod"};var Su={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],tsNamespaces:!0,importPath:"ts",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:EP,enumSuffix:$P,withDefaultValues:!0,extractEnums:!0,removeOperationPrefixEndingWith:"Controller_",infiniteQueries:!0};var CP={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},TP={"invalid-schema":"Invalid OpenAPI 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 HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes"};var om={"Content-Type":"application/json",Accept:"application/json"},RP="data",Mi="config",Wo="AxiosRequestConfig",Ou={bindings:[Wo],from:"axios"};var jP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Fn=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 ln=Symbol.for("@ts-pattern/matcher"),lq=Symbol.for("@ts-pattern/isVariadic"),Eu="@ts-pattern/anonymous-select-key",sm=o(e=>!!(e&&typeof e=="object"),"r"),Pu=o(e=>e&&!!e[ln],"i"),Qr=o((e,t,r)=>{if(Pu(e)){let n=e[ln](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(sm(e)){if(!sm(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];Pu(c)&&c[lq]?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)=>Qr(l,a[p],r))&&i.every((l,p)=>Qr(l,c[p],r))&&(s.length===0||Qr(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Qr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Pu(s=i)&&s[ln]().matcherType==="optional")&&Qr(i,t[n],r);var s})}return Object.is(t,e)},"s"),zn=o(e=>{var t,r,n;return sm(e)?Pu(e)?(t=(r=(n=e[ln]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?fa(e,zn):fa(Object.values(e),zn):[]},"o"),fa=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function fr(e){return Object.assign(e,{optional:o(()=>fq(e),"optional"),and:o(t=>Le(e,t),"and"),or:o(t=>pq(e,t),"or"),select:o(t=>t===void 0?NP(e):NP(t,e),"select")})}o(fr,"u");function fq(e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(zn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Qr(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>zn(e),"getSelectionKeys"),matcherType:"optional"})})}o(fq,"h");function Le(...e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Qr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>fa(e,zn),"getSelectionKeys"),matcherType:"and"})})}o(Le,"m");function pq(...e){return fr({[ln]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return fa(e,zn).forEach(i=>n(i,void 0)),{matched:e.some(i=>Qr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>fa(e,zn),"getSelectionKeys"),matcherType:"or"})})}o(pq,"d");function Oe(e){return{[ln]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Oe,"p");function NP(...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 fr({[ln]:()=>({match:o(n=>{let i={[t??Eu]:n};return{matched:r===void 0||Qr(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Eu].concat(r===void 0?[]:zn(r)),"getSelectionKeys")})})}o(NP,"y");function Kr(e){return typeof e=="number"}o(Kr,"v");function Vn(e){return typeof e=="string"}o(Vn,"b");function Bn(e){return typeof e=="bigint"}o(Bn,"w");var R9=fr(Oe(function(e){return!0}));var Hn=o(e=>Object.assign(fr(e),{startsWith:o(t=>{return Hn(Le(e,(r=t,Oe(n=>Vn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Hn(Le(e,(r=t,Oe(n=>Vn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Hn(Le(e,(r=>Oe(n=>Vn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Hn(Le(e,(r=>Oe(n=>Vn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Hn(Le(e,(r=>Oe(n=>Vn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Hn(Le(e,(r=t,Oe(n=>Vn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Hn(Le(e,(r=t,Oe(n=>Vn(n)&&!!n.match(r)))));var r},"regex")}),"j"),j9=Hn(Oe(Vn)),Yr=o(e=>Object.assign(fr(e),{between:o((t,r)=>Yr(Le(e,((n,i)=>Oe(s=>Kr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Yr(Le(e,(r=>Oe(n=>Kr(n)&&n<r))(t))),"lt"),gt:o(t=>Yr(Le(e,(r=>Oe(n=>Kr(n)&&n>r))(t))),"gt"),lte:o(t=>Yr(Le(e,(r=>Oe(n=>Kr(n)&&n<=r))(t))),"lte"),gte:o(t=>Yr(Le(e,(r=>Oe(n=>Kr(n)&&n>=r))(t))),"gte"),int:o(()=>Yr(Le(e,Oe(t=>Kr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Yr(Le(e,Oe(t=>Kr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Yr(Le(e,Oe(t=>Kr(t)&&t>0))),"positive"),negative:o(()=>Yr(Le(e,Oe(t=>Kr(t)&&t<0))),"negative")}),"x"),N9=Yr(Oe(Kr)),Un=o(e=>Object.assign(fr(e),{between:o((t,r)=>Un(Le(e,((n,i)=>Oe(s=>Bn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Un(Le(e,(r=>Oe(n=>Bn(n)&&n<r))(t))),"lt"),gt:o(t=>Un(Le(e,(r=>Oe(n=>Bn(n)&&n>r))(t))),"gt"),lte:o(t=>Un(Le(e,(r=>Oe(n=>Bn(n)&&n<=r))(t))),"lte"),gte:o(t=>Un(Le(e,(r=>Oe(n=>Bn(n)&&n>=r))(t))),"gte"),positive:o(()=>Un(Le(e,Oe(t=>Bn(t)&&t>0))),"positive"),negative:o(()=>Un(Le(e,Oe(t=>Bn(t)&&t<0))),"negative")}),"A"),k9=Un(Oe(Bn)),M9=fr(Oe(function(e){return typeof e=="boolean"})),q9=fr(Oe(function(e){return typeof e=="symbol"})),D9=fr(Oe(function(e){return e==null})),L9=fr(Oe(function(e){return e!=null}));var lm=class lm 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(lm,"W");var am=lm,cm={matched:!1,value:void 0};function Pt(e){return new um(e,cm)}o(Pt,"z");var la=class la{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=>Qr(l,this.input,c))||i&&!i(this.input)?cm:{matched:!0,value:r(s?Eu in a?a[Eu]:a:this.input,this.input)};return new la(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new la(this.input,n?{matched:!0,value:r(this.input,this.input)}:cm)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new am(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(la,"I");var um=la;var fm=["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 pm=2,kP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],MP=["query","header","path"],Gn=["get","put","post","delete","options","head","patch","trace"],qP=["string","number","integer","boolean"],pa=["allOf","anyOf","oneOf"];function Zn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Zn,"pick");var Fe=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Wn=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),DP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ft=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),LP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),dm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),FP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),dq=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"),hm=o(e=>{let t=e.map(Fe).map(VP).map(r=>hq(r)).flat();return dq(t)},"getMostCommonAdjacentCombinationSplit"),VP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),BP=o(e=>VP(e).join(" "),"camelToSpaceSeparated"),hq=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"),HP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${Wn(r)}|${Fe(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");function Kn(e){return LP(e)}o(Kn,"formatTag");function qi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Kn(r??t.defaultTag)}o(qi,"getOperationTag");function UP(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Zn(i,Gn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!t.withDeprecatedEndpoints)continue;let u=t.splitByTags?qi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(UP,"getOperationsByTag");var GP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Di=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Ko=o(e=>Di(e).split("/").at(-1),"getSchemaNameByRef");function Pe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Pe,"isReferenceObject");function ym(e){let t=mq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ft(t)}o(ym,"normalizeString");function ZP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(ZP,"wrapWithQuotesIfNeeded");function WP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(WP,"unwrapQuotesIfNeeded");function mq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(mq,"prefixStringStartingWithNumberIfNeeded");function bm(e){let t=e.replaceAll("_","#");return ft(t.replaceAll("-","_")).replaceAll("#","_")}o(bm,"pathParamToVariableName");var Li=o(e=>qP.includes(e),"isPrimitiveType");function KP(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(KP,"escapeControlCharacters");function Jr(e){return e.includes("application/")&&e.includes("json")||kP.includes(e)||e.includes("text/")}o(Jr,"isParamMediaTypeAllowed");function $u(e){return e>=200&&e<300}o($u,"isMainResponseStatus");function wu(e){return!(e>=200&&e<300)}o(wu,"isErrorStatus");function xu(e){return e==="application/json"}o(xu,"isMediaTypeAllowed");function mm({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${yq(e)}`,u=r.operationId?Fn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Fe(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=HP(u,i);fm.includes(l)||(u=l)}return fm.includes(u)?c:u}o(mm,"getOperationName");function da({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?qi(r,n):n.defaultTag,s=o(a=>{let c=mm({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>mm({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??mm({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(da,"getUniqueOperationName");function YP(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Zn(s,Gn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!r.withDeprecatedEndpoints)continue;let l=da({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(YP,"getUniqueOperationNamesWithoutSplitByTags");var zP=/({\w+})/g,gq=/[^\w\-]+/g;function yq(e){e=Fe(DP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(zP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(zP,"")}By${Fe(r.slice(1,-1))}`}return e.replace(gq,"_")}o(yq,"pathToVariableName");var gm=/{(\b\w+(?:-\w+)*\b)}/g;function QP(e){let t=e.match(gm);return t===null?e.replaceAll(gm,":$1"):(t.forEach(r=>{let n=bm(r.replaceAll(gm,":$1"));e=e.replaceAll(r,n)}),e)}o(QP,"replaceHyphenatedPath");function zt(e){return!Pe(e)}o(zt,"isSchemaObject");function Au(e){return e.type==="array"}o(Au,"isArraySchemaObject");function JP(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(bq(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(Pe(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(JP,"inferRequiredSchema");var bq=o(e=>!Pe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var ha="AppRestClient",Iu={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},vm="src/data",_m="@/data",XP="@/util/rest/clients/app-rest-client",eE="@/types/react-query";var Cu={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Tu={fileName:"app-rest-client",extension:"ts"};var Gt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Xr=o((e,t)=>dm(Fe(ym(e)),t),"getZodSchemaName"),Sm=o((e,t,r)=>dm(Fe(ym(e)),`${t}${r}`),"getEnumZodSchemaName"),Dt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),tE=o(e=>e.startsWith(vu),"isEnumZodSchema"),Fi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Ru=o(e=>ft(`${e}_${wP}`),"getBodyZodSchemaName"),rE=o((e,t)=>ft(`${e}_${t}${xP}`),"getParamZodSchemaName"),vq=o(e=>ft(`${e}${AP}`),"getMainResponseZodSchemaName"),_q=o((e,t)=>ft(`${e}_${t}_${IP}`),"getErrorResponseZodSchemaName");function ju({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Fi(t,r,n);return!$u(i)&&e!=="default"&&wu(i)?_q(s,e):vq(s)}o(ju,"getResponseZodSchemaName");function ma(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Fe(BP(i))}: \`${e[i]}\``],[])}o(ma,"getSchemaDescriptions");function It(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Pe(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(pa.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&It(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&It(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;It(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;It(s,t)}}o(It,"iterateSchema");var ga=o((e,t)=>FP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),nE=o((e,t)=>Dt(t)?`${e.options.tsNamespaces?`${et({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Vi=o((e,t,r)=>{if(!Dt(t))return t===ua?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${et({type:"models",tag:n,options:e.options})}.`:""}${ga(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function iE(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(iE,"getZodSchemaType");function oE(e){if(e.schemaObj)return[e.schemaObj.description,...ma(e.schemaObj).join(". ")].filter(Boolean)}o(oE,"getZodSchemaDescription");function sE(e,t,r){var n;if(Pe(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Vi(e,i,r):void 0}if(Au(t)){if(!Pe(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Vi(e,i,r)}[]`:void 0}if(pa.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return sE(e,i[0],r)}return t.type}o(sE,"getType");function aE(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...ma(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:sE(e,c.schema,r)??"unknown",description:f.join(". ")})}return It(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(Pe(c)){let u=e.resolveObject(c);It(u,{data:{pathSegments:[]},onSchema:a})}}),It(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(aE,"getZodSchemaPropertyDescriptions");function Yn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Om({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Om({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>ga(u,e.options),"getEntityName"),options:e.options});return Sq(e.options,a,c)}o(Yn,"getModelsImports");function cE({tag:e,endpoints:t,options:r}){return Om({type:"endpoints",tag:e,entities:t,getTag:o(n=>va(n,r),"getTag"),getEntityName:ba,options:r})}o(cE,"getEndpointsImports");function uE({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.tsNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.tsNamespaces?et({type:"acl",tag:s,options:n}):a],from:`${ya(n)}${Nu({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(uE,"getAclImports");function ya(e){let t=_m;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${vm}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${vm}`,"g"),_m)),`${t}/`.replace(/\/\//g,"/")}o(ya,"getImportPath");function Om({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?et({type:e,tag:u,options:s}):i(c)],from:`${l?"./":ya(s)}${Nu({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Om,"getImports");function Sq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Gt(n.bindings)}))}o(Sq,"mergeImports");function ku({fileName:e,extension:t}){return`${e}.${t}`}o(ku,"getFileNameWithExtension");function lE({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Wn(t)}/`:""}${Wn(t)}.${i}`:i}o(lE,"getTagFileNameWithoutExtension");function Nu(...e){return lE(...e)}o(Nu,"getTagImportPath");function Mu(...e){return`${lE(...e)}.ts`}o(Mu,"getTagFileName");var et=o(({type:e,tag:t,options:r})=>`${Fe(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function fE(e){return e.standalone?`${ya(e)}${Tu.fileName}`:XP}o(fE,"getAppRestClientImportPath");function pE(e){return e.standalone?`${ya(e)}${Cu.reactQueryTypes.fileName}`:eE}o(pE,"getQueryTypesImportPath");function dE(e){return Pt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(dE,"primitiveTypeToTsType");var Zt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation",queryClient:"useQueryClient"},hE={bindings:[Zt.query,Zt.infiniteQuery,Zt.mutation,Zt.queryClient],from:"@tanstack/react-query"},Bi={pageParamName:"page"},qu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"};var ba=o(e=>Wn(ft(e.operationName)),"getEndpointName");function mE(e,t){return`${t.tsNamespaces?`${et({type:"endpoints",tag:va(e,t),options:t})}.`:""}${ba(e)}`}o(mE,"getImportedEndpointName");var gE=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function va(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Kn(r??t.defaultTag)}o(va,"getEndpointTag");function _a(e,t,r){return t.parameters.map(n=>{var s,a,c,u;let i="string";if(Dt(n.zodSchema))i=Vi(e,n.zodSchema);else if((s=n.parameterObject)!=null&&s.schema&&zt(n.parameterObject.schema)){let l=(c=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:c.type;l&&Li(l)&&(i=dE(l))}return{name:Fn(n.name),type:i,paramType:n.type,required:((u=n.parameterObject)==null?void 0:u.required)??!0,parameterObject:n.parameterObject,bodyObject:n.bodyObject}}).sort((n,i)=>{if(n.required===i.required){let s=["Path","Body","Query","Header"];return s.indexOf(n.paramType)-s.indexOf(i.paramType)}return n.required?-1:1}).filter(n=>r!=="removePageParam"||n.name!==Bi.pageParamName).map(n=>({...n,name:r==="replacePageParam"&&n.name===Bi.pageParamName?"pageParam":n.name}))}o(_a,"mapEndpointParamsToFunctionParams");function yE(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=jP(i.name)?i.name:`"${i.name}"`,a=Fn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==om["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==om.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Fn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(yE,"getEndpointConfig");function Sa(e){return{type:"invalid-schema",message:e}}o(Sa,"getInvalidSchemaError");function bE(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(bE,"getInvalidOperationIdError");function vE(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(vE,"getMissingPathParameterError");function _E(e){return{type:"not-allowed-inline-enum",message:e}}o(_E,"getNotAllowedInlineEnumError");function SE(e){return{type:"not-allowed-circular-schema",message:e}}o(SE,"getNotAllowedCircularSchemaError");function OE(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${$m(t,r)}`}}o(OE,"getMissingAclConditionPropertyError");function Em(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Pm(e)} in operation ${$m(t,r)}`}}o(Em,"getMissingStatusCodeError");function PE(e,t,r){return{type:"invalid-status-code",message:`Operation ${$m(t,r)} expected HTTP status code ${Pm(e.expected)} but received ${Pm(e.received)}`}}o(PE,"getInvalidStatusCodeError");function $m(e,t){return e.operationId??`${t.method} ${t.path}`}o($m,"getOperationDescriptor");function Pm(e){return`${e} (${CP[e]})`}o(Pm,"getStatusCodeDescription");function EE(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(EE,"groupByType");function en({schema:e,meta:t,options:r}){let n=[];Pt(e.type).with("string",()=>n.push(Eq(e))).with("number","integer",()=>n.push(wq(e))).with("array",()=>n.push(xq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&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(vq({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?_q(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(en,"getZodChain");function vq({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(vq,"getZodChainablePresence");function _q(e){return e.default!==void 0?`default(${Ot(e.type).with("number","integer",()=>zO(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(_q,"getZodChainableDefault");function Sq(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(${Pq(e.pattern)})`),e.format){let r=Ot(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(Sq,"getZodChainableStringValidations");function Pq(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=GO(e),`/${e}/`}o(Pq,"formatPatternIfNeeded");function Oq(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(Oq,"getZodChainableNumberValidations");function Eq(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(Eq,"getZodChainableArrayValidations");var Bi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ft(e,t){if(!t)return e;if(Oe(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Wt("oneOf")+ft(e,{...t,type:t.type[0]}):e+Wt("oneOf")+Bi(t.type.map(r=>ft(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Wt("oneOf")+ft(e,t.oneOf[0]):e+Wt("oneOf")+Bi(t.oneOf.map(r=>ft(0,r)));if(t.anyOf)return t.anyOf.length===1?Wt("anyOf")+ft(e,t.anyOf[0]):e+Wt("anyOf")+Bi(t.anyOf.map(r=>ft(0,r)));if(t.allOf)return t.allOf.length===1?Wt("allOf")+ft(e,t.allOf[0]):e+Wt("allOf")+Bi(t.allOf.map(r=>ft(0,r)));if(!t.type)return e;if(Di(t.type))return t.enum?e+PE(t)+Wt("enum")+Bi(t.enum.map(r=>ft(0,r))):e+PE(t);if(t.type==="array")return t.items?Wt("array")+ft(e,t.items):Wt("array")+ft(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Wt("object")+Bi(r.map(n=>ft(0,n)))}else e+=Wt("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=ft(0,t.additionalProperties):e+=ft(1))}return e}o(ft,"getOpenAPISchemaComplexity");function PE(e){return Ot(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(PE,"complexityByType");function Wt(e){return Ot(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Wt,"complexityByComposite");var Om=class Om{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Oe(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${et({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ft(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Om,"ZodSchema");var va=Om;function We({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new va(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(Oe(e))return $q({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=xq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=wq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=Aq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=Iq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=Cq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Eu(e))return e.items?i.assign(`z.array(${We({...a,schema:e.items}).getCodeString(n,t.options)}${en({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=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ae,J])=>{var k;let Ve={...s,isRequired:g?!0:b?(k=e.required)==null?void 0:k.includes(ae):t.options.withImplicitRequiredProps,name:ae,isParentPartial:g},$e=J;if(Oe(J)&&t&&($e=t.getSchemaByRef(J.$ref),!$e))throw new Error(`Schema ${J.$ref} not found`);let X=We({...a,schema:J,meta:Ve}).getCodeString(n,t.options)+en({schema:$e,meta:Ve,options:t.options});return[ae,X]}).map(([ae,J])=>`${UO(ae)}: ${J}`).join(", ")+" }");let w="";e.additionalProperties&&(w=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?We({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+en({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let T=g?".partial()":"",I=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${T}${I}${w}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(We,"getZodSchema");function $q({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Oe(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=We({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o($q,"getReferenceZodSchema");function wq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!zt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=We({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=>zt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
142
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Oq({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?Pq(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(en,"getZodChain");function Oq({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(Oq,"getZodChainablePresence");function Pq(e){return e.default!==void 0?`default(${Pt(e.type).with("number","integer",()=>WP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(Pq,"getZodChainableDefault");function Eq(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(${$q(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(Eq,"getZodChainableStringValidations");function $q(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=KP(e),`/${e}/`}o($q,"formatPatternIfNeeded");function wq(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(wq,"getZodChainableNumberValidations");function xq(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(xq,"getZodChainableArrayValidations");var Hi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function pt(e,t){if(!t)return e;if(Pe(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Wt("oneOf")+pt(e,{...t,type:t.type[0]}):e+Wt("oneOf")+Hi(t.type.map(r=>pt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Wt("oneOf")+pt(e,t.oneOf[0]):e+Wt("oneOf")+Hi(t.oneOf.map(r=>pt(0,r)));if(t.anyOf)return t.anyOf.length===1?Wt("anyOf")+pt(e,t.anyOf[0]):e+Wt("anyOf")+Hi(t.anyOf.map(r=>pt(0,r)));if(t.allOf)return t.allOf.length===1?Wt("allOf")+pt(e,t.allOf[0]):e+Wt("allOf")+Hi(t.allOf.map(r=>pt(0,r)));if(!t.type)return e;if(Li(t.type))return t.enum?e+$E(t)+Wt("enum")+Hi(t.enum.map(r=>pt(0,r))):e+$E(t);if(t.type==="array")return t.items?Wt("array")+pt(e,t.items):Wt("array")+pt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Wt("object")+Hi(r.map(n=>pt(0,n)))}else e+=Wt("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=pt(0,t.additionalProperties):e+=pt(1))}return e}o(pt,"getOpenAPISchemaComplexity");function $E(e){return Pt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o($E,"complexityByType");function Wt(e){return Pt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Wt,"complexityByComposite");var wm=class wm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Pe(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${et({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return pt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(wm,"ZodSchema");var Oa=wm;function We({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new Oa(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(Pe(e))return Aq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=Cq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=Iq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=Tq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=Rq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=jq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Au(e))return e.items?i.assign(`z.array(${We({...a,schema:e.items}).getCodeString(n,t.options)}${en({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=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ae,J])=>{var k;let Ve={...s,isRequired:g?!0:b?(k=e.required)==null?void 0:k.includes(ae):t.options.withImplicitRequiredProps,name:ae,isParentPartial:g},$e=J;if(Pe(J)&&t&&($e=t.getSchemaByRef(J.$ref),!$e))throw new Error(`Schema ${J.$ref} not found`);let X=We({...a,schema:J,meta:Ve}).getCodeString(n,t.options)+en({schema:$e,meta:Ve,options:t.options});return[ae,X]}).map(([ae,J])=>`${ZP(ae)}: ${J}`).join(", ")+" }");let w="";e.additionalProperties&&(w=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?We({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+en({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let T=g?".partial()":"",I=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${T}${I}${w}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(We,"getZodSchema");function Aq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Pe(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=We({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(Aq,"getReferenceZodSchema");function Iq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!zt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=We({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=>zt(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=>We({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(c=>We({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(wq,"getOneOfZodSchema");function xq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!zt(e)||!Array.isArray(e.type)))return e.type.length===1?We({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>We({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(xq,"getArrayZodSchema");function Aq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=We({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>We({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(Aq,"getAnyOfZodSchema");function Iq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e)||!e.allOf)return;if(e.allOf.length===1){let f=We({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}=KO(e),u=a.map(f=>{let d=We({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(We({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(Iq,"getAllOfZodSchema");function Cq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Di(s)){if(e.enum){if(s==="string")return Tq({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 Tq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!zt(t))return;let s=Wo(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new va({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${et({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(Tq,"getEnumZodSchema");function Wo(e){var t;return`${gu}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Wo,"getEnumZodSchemaCode");function Ko({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<cm)return s;let u=Xr(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 ft(0,n.getSchemaByRef(t.ref))<cm?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Ko,"resolveZodSchemaName");var fn=o(e=>e.method==="get","isQuery"),OE=o(e=>e.method!=="get","isMutation"),Nu=o((e,t)=>fn(e)&&t.every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");function EE({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=jq({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(vE(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(EE,"getEndpointAcl");function jq({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,E,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} ${Wn(p.type)} parameter`,l++;else{let C=t.parameters.find(({bodyObject:Ve})=>!!Ve),J=Object.keys(((b=C==null?void 0:C.bodyObject)==null?void 0:b.content)??{}).find(Jr);J&&(a=(w=(E=(g=C==null?void 0:C.bodyObject)==null?void 0:g.content)==null?void 0:E[J])==null?void 0:w.schema,u=`${fn(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let C=e.resolveObject(a);a=(T=Object.entries(C.properties??{}).find(([J])=>J===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:Oe(a)?void 0:a.type,zodSchemaName:Oe(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(jq,"getEndpointAclConditionPropertyType");function $E({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(Jr);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=We({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=Ko({schema:p,zodSchema:l,fallbackName:Au(Li(r,n,i)),resolver:e,tag:i}),d=en({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:IO,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o($E,"getEndpointBody");function wE({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!RO.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(Jr);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=We({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=en({schema:u,meta:c.meta,options:e.options}),p=Ko({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:XO(Li(r,n,i),s.name),resolver:e,tag:i});return{name:Ot(s.in).with("path",()=>hm(s.name)).otherwise(()=>s.name),type:Ot(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(wE,"getEndpointParameter");function AE(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Zn(u,Gn),p=xE(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!==Fn(d.operationId);d.operationId&&h&&e.validationErrors.push(mE(d.operationId));let y=Object.entries({...p,...xE(d.parameters??[])}).map(([,I])=>I),b=fa({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(I=>I===b).length<=1,E=Mi(d,e.options),w={method:f,path:WO(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Kn),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let I=$E({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:E});I&&(w.parameters.push(I.endpointParameter),w.requestFormat=I.requestFormat)}for(let I of y){let C=wE({resolver:e,param:I,operationName:b,isUniqueOperationName:g,tag:E});C&&w.parameters.push(C)}let T=Rq(w);T.forEach(I=>{w.parameters.push(I)}),T.length>0&&e.validationErrors.push(gE(T,c));for(let I in d.responses){w.responseStatusCodes.push(I);let C=e.resolveObject(d.responses[I]),J=Object.keys(C.content??{}).find(Ou),Ve,$e;if(J?(w.responseFormat=J,Ve=(i=(n=C.content)==null?void 0:n[J])==null?void 0:i.schema):($e=aa,I==="200"&&e.validationErrors.push(_E({received:"200",expected:"204"},d,w))),Ve){let X=We({schema:Ve,resolver:e,meta:{isRequired:!0},tag:E}),k=e.resolveObject(Ve);$e=Ko({schema:k,zodSchema:X,fallbackName:X.ref?void 0:Iu({statusCode:I,operationName:b,isUniqueOperationName:g,tag:E}),resolver:e,tag:E})+en({schema:k,meta:X.meta,options:e.options})}if($e){let X=Number(I);Su(X)?(w.response=$e,w.responseObject=C,w.responseDescription=C.description):I!=="default"&&Pu(X)&&w.errors.push({zodSchema:$e,status:X,description:C.description})}}w.response||(w.response=aa),w.acl=EE({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(AE,"getEndpointsFromOpenAPIDoc");function xE(e){return Object.fromEntries((e??[]).map(t=>[Oe(t)?t.$ref:t.name,t]))}o(xE,"getParameters");function Rq(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=>Nq(r))}o(Rq,"getMissingPathParameters");function Nq(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(Nq,"getPathParameterFromName");function IE(e,t){let r=kq(e,t),n=Mq(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(IE,"getOpenAPISchemaDependencyGraph");function kq(e,t){let r={},n={};return e.forEach(i=>qq({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(kq,"getRefsDependencyGraph");function Mq(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(Mq,"getDeepRefsDependencyGraph");function qq({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,It(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return It(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(qq,"getSchemaRefsDependencyGraph");function ku(e,t,r){let n=[];return It(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):Oe(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(ba(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(ba(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(ba(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(ba(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(ku,"getSchemaRefObjs");function CE(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(CE,"getDeepSchemaRefObjs");function _a({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&TE({schema:e,nameSegments:t,...n}),It(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),TE({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(_a,"updateExtractedEnumZodSchemaData");function TE({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Oe(t)||!t.enum)return;let a=Wo(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(yE(r?`Schema ${Zo(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(TE,"handleExtractedEnumZodSchemaDataUpdate");function jE(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=lm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=ym(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Em(e);)Dq(e,t+2),t++;if(Em(e)||e.extractedEnumZodSchemaData.filter(n=>!NE(e,n)).forEach(n=>{n.zodSchemaName=ym(n.meta.zodSchemaNameSegments[0].map(i=>$m(Fe(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Em(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(jE,"resolveExtractedEnumZodSchemaNames");function Em(e){return e.extractedEnumZodSchemaData.every(t=>NE(e,t))}o(Em,"allExtractedEnumZodSchemaNamesAreUnique");function Dq(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Lq(n,t)})}o(Dq,"additionalResolveExtractedEnumZodSchemaName");function Lq(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=[$m(Fe(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=lm(n),s=[i?$m(Fe(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Lq,"suffixWithPreviousSegmentName");function RE(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Gt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(RE,"resolveExtractedEnumZodSchemaTags");function NE(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(NE,"isUnique");function $m(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o($m,"sanitizeName");function kE(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=Xr(i,e.options.schemaSuffix);if(!t[a]){let c=e.getTagByZodSchemaName(a),u=e.resolveObject(s);u.enum?r[a]=Wo(u):t[a]=We({schema:s,resolver:e,tag:c}).getCodeString(c)}}),{zodSchemas:t,enumZodSchemas:r}}o(kE,"getZodSchemasFromOpenAPIDoc");function ME(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Xr(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:Wo(a)})}),t}o(ME,"getEnumZodSchemasFromOpenAPIDoc");var wm=class wm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=IE(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=ME(this),this.operationsByTag=VO(t,r),this.operationNames=ZO(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];operationsByTag={};operationNames=[];extractedEnumZodSchemaData=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(HO)}getSchemaByRef(t){return this.docSchemas[Zo(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.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return Kn(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=Gt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Kn(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Oe(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,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=qi(a),u=Zo(c),l=Xr(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[]})});for(let a in this.openApiDoc.paths){let c=this.openApiDoc.paths[a],u=Zn(c,Gn);for(let l in u){let p=u[l];if(!p||p.deprecated&&!this.options.withDeprecatedEndpoints)continue;let f=Mi(p,this.options),d=fa({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(E=>E===d).length<=1,y=lt(Li(d,h,f)),b=[];if((t=p.parameters)==null||t.map(E=>{let w=E,T=w.schema,I=`Operation ${p.operationId??a} parameter ${w.name}`;b.push(...ku(this,T,I)),this.options.extractEnums&&_a({resolver:this,schema:T,schemaInfo:I,tags:[f],nameSegments:[y,w.name],includeSelf:!0})}),p.requestBody){let E=this.resolveObject(p.requestBody),T=Object.keys(E.content??{}).find(Jr);if(T){let I=(n=(r=E.content)==null?void 0:r[T])==null?void 0:n.schema,C=`Operation ${p.operationId} request body`;b.push(...ku(this,I,C)),this.options.extractEnums&&_a({resolver:this,schema:I,schemaInfo:C,tags:[f],nameSegments:[Au(y)]})}}for(let E in p.responses){let w=this.resolveObject(p.responses[E]),I=Object.keys(w.content??{}).find(Ou);if(I){let C=(s=(i=w.content)==null?void 0:i[I])==null?void 0:s.schema,ae=`Operation ${p.operationId} response body`;b.push(...ku(this,C,ae)),this.options.extractEnums&&_a({resolver:this,schema:C,schemaInfo:ae,tags:[f],nameSegments:[Iu({statusCode:E,operationName:d,isUniqueOperationName:h,tag:f})]})}}CE(this,b).forEach(E=>{let w=this.getSchemaDataByRef(E);w&&w.tags.push(f)})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=qi(a);_a({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[Zo(c)]})}),RE(this),this.handleDuplicateEnumZodSchemas(),jE(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a;let i=(a=r.find(({zodSchemaName:c})=>c===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:c})=>c===i);s&&(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(c=>{this.dependencyGraph.refsDependencyGraph[c]||(this.dependencyGraph.refsDependencyGraph[c]=new Set),this.dependencyGraph.refsDependencyGraph[c].add(n.ref),this.dependencyGraph.deepDependencyGraph[c]||(this.dependencyGraph.deepDependencyGraph[c]=new Set),this.dependencyGraph.deepDependencyGraph[c].add(n.ref)}))}),this.extractedEnumZodSchemaData=this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n))}};o(wm,"SchemaResolver");var Mu=wm;function qE(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(qE,"topologicalSort");function DE(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(DE,"sortObjKeysFromArray");function LE(e,t){let r=qE(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return DE(t,r)}o(LE,"sortZodSchemasByTopology");function FE(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(bE(e.getCircularSchemaChain(s).join(" -> "))),r[Xr(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Xr(n,e.options.schemaSuffix)]=i}),r}o(FE,"wrapCircularZodSchemas");function qu(e,t){let r=new Mu(e,t),n=AE(r),i=kE(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=FE(r,s),s=LE(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:Fq({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(qu,"getDataFromOpenAPIDoc");function Fq({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ya(s,n);VE(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(VE(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(Fq,"splitDataByTags");function VE(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(VE,"getTagElement");var Yo=yt(require("fs")),xm=yt(require("path"));function BE(e){return Yo.default.readFileSync(xm.default.join(__dirname,`../${e}`),"utf-8")}o(BE,"readFileSync");function Am(e){let t=`src/generators/templates/${e}.hbs`;return BE(t)}o(Am,"readHbsTemplateSync");function HE(e){let t=`src/assets/${e}`;return BE(t)}o(HE,"readAssetSync");function Hi({output:e,fileName:t}){return`${e}/${t}`}o(Hi,"getOutputFileName");function Vq(e,t){let r=xm.default.dirname(e);Yo.default.existsSync(r)||Yo.default.mkdirSync(r,{recursive:!0}),Yo.default.writeFileSync(e,t,"utf-8")}o(Vq,"writeFileWithDirSync");function Bq({fileName:e,content:t}){Vq(e,t)}o(Bq,"writeFileSync");function UE(e){e.forEach(Bq)}o(UE,"writeGenerateFileData");function zE(e,t){let r={...bu,...t},{resolver:n,data:i}=qu(e,r);if(n.validationErrors.length>0){let s=SE(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Dr.red(`${AO[a]}:`)}
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>We({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(Iq,"getOneOfZodSchema");function Cq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!zt(e)||!Array.isArray(e.type)))return e.type.length===1?We({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>We({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(Cq,"getArrayZodSchema");function Tq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=We({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>We({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(Tq,"getAnyOfZodSchema");function Rq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e)||!e.allOf)return;if(e.allOf.length===1){let f=We({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}=JP(e),u=a.map(f=>{let d=We({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(We({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(Rq,"getAllOfZodSchema");function jq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!zt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Li(s)){if(e.enum){if(s==="string")return Nq({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(jq,"getPrimitiveZodSchema");function Nq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!zt(t))return;let s=Yo(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Oa({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${et({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(Nq,"getEnumZodSchema");function Yo(e){var t;return`${vu}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Yo,"getEnumZodSchemaCode");function Qo({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<pm)return s;let u=Xr(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 pt(0,n.getSchemaByRef(t.ref))<pm?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Qo,"resolveZodSchemaName");var fn=o(e=>e.method==="get","isQuery"),wE=o(e=>e.method!=="get","isMutation"),Du=o((e,t)=>fn(e)&&t.every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");function xE({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=kq({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(OE(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(xE,"getEndpointAcl");function kq({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,E,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} ${Wn(p.type)} parameter`,l++;else{let C=t.parameters.find(({bodyObject:Ve})=>!!Ve),J=Object.keys(((b=C==null?void 0:C.bodyObject)==null?void 0:b.content)??{}).find(Jr);J&&(a=(w=(E=(g=C==null?void 0:C.bodyObject)==null?void 0:g.content)==null?void 0:E[J])==null?void 0:w.schema,u=`${fn(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let C=e.resolveObject(a);a=(T=Object.entries(C.properties??{}).find(([J])=>J===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:Pe(a)?void 0:a.type,zodSchemaName:Pe(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(kq,"getEndpointAclConditionPropertyType");function AE({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(Jr);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=We({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=Qo({schema:p,zodSchema:l,fallbackName:Ru(Fi(r,n,i)),resolver:e,tag:i}),d=en({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:RP,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(AE,"getEndpointBody");function IE({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!MP.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(Jr);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=We({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=en({schema:u,meta:c.meta,options:e.options}),p=Qo({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:rE(Fi(r,n,i),s.name),resolver:e,tag:i});return{name:Pt(s.in).with("path",()=>bm(s.name)).otherwise(()=>s.name),type:Pt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(IE,"getEndpointParameter");function TE(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Zn(u,Gn),p=CE(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!==Fn(d.operationId);d.operationId&&h&&e.validationErrors.push(bE(d.operationId));let y=Object.entries({...p,...CE(d.parameters??[])}).map(([,I])=>I),b=da({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(I=>I===b).length<=1,E=qi(d,e.options),w={method:f,path:QP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Kn),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let I=AE({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:E});I&&(w.parameters.push(I.endpointParameter),w.requestFormat=I.requestFormat)}for(let I of y){let C=IE({resolver:e,param:I,operationName:b,isUniqueOperationName:g,tag:E});C&&w.parameters.push(C)}let T=Mq(w);T.forEach(I=>{w.parameters.push(I)}),T.length>0&&e.validationErrors.push(vE(T,c));for(let I in d.responses){w.responseStatusCodes.push(I);let C=e.resolveObject(d.responses[I]),J=Object.keys(C.content??{}).find(xu),Ve,$e;if(J?(w.responseFormat=J,Ve=(i=(n=C.content)==null?void 0:n[J])==null?void 0:i.schema):($e=ua,I==="200"&&e.validationErrors.push(PE({received:"200",expected:"204"},d,w))),Ve){let X=We({schema:Ve,resolver:e,meta:{isRequired:!0},tag:E}),k=e.resolveObject(Ve);$e=Qo({schema:k,zodSchema:X,fallbackName:X.ref?void 0:ju({statusCode:I,operationName:b,isUniqueOperationName:g,tag:E}),resolver:e,tag:E})+en({schema:k,meta:X.meta,options:e.options})}if($e){let X=Number(I);$u(X)?(w.response=$e,w.responseObject=C,w.responseDescription=C.description):I!=="default"&&wu(X)&&w.errors.push({zodSchema:$e,status:X,description:C.description})}}w.response||(w.response=ua),w.acl=xE({resolver:e,endpoint:w,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!w.responseStatusCodes.includes("401")&&e.validationErrors.push(Em("401",d,w)),(a=w.acl)!=null&&a[0]&&!w.responseStatusCodes.includes("403")&&e.validationErrors.push(Em("403",d,w)),t.push(w)}}return t}o(TE,"getEndpointsFromOpenAPIDoc");function CE(e){return Object.fromEntries((e??[]).map(t=>[Pe(t)?t.$ref:t.name,t]))}o(CE,"getParameters");function Mq(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=>qq(r))}o(Mq,"getMissingPathParameters");function qq(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(qq,"getPathParameterFromName");function RE(e,t){let r=Dq(e,t),n=Lq(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(RE,"getOpenAPISchemaDependencyGraph");function Dq(e,t){let r={},n={};return e.forEach(i=>Fq({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(Dq,"getRefsDependencyGraph");function Lq(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(Lq,"getDeepRefsDependencyGraph");function Fq({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,It(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return It(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(Fq,"getSchemaRefsDependencyGraph");function Lu(e,t,r){let n=[];return It(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):Pe(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Sa(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Sa(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Sa(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Sa(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Lu,"getSchemaRefObjs");function jE(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(jE,"getDeepSchemaRefObjs");function Pa({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&NE({schema:e,nameSegments:t,...n}),It(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),NE({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Pa,"updateExtractedEnumZodSchemaData");function NE({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Pe(t)||!t.enum)return;let a=Yo(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(_E(r?`Schema ${Ko(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(NE,"handleExtractedEnumZodSchemaDataUpdate");function kE(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=hm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Sm(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!xm(e);)Vq(e,t+2),t++;if(xm(e)||e.extractedEnumZodSchemaData.filter(n=>!qE(e,n)).forEach(n=>{n.zodSchemaName=Sm(n.meta.zodSchemaNameSegments[0].map(i=>Am(Fe(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!xm(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(kE,"resolveExtractedEnumZodSchemaNames");function xm(e){return e.extractedEnumZodSchemaData.every(t=>qE(e,t))}o(xm,"allExtractedEnumZodSchemaNamesAreUnique");function Vq(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Bq(n,t)})}o(Vq,"additionalResolveExtractedEnumZodSchemaName");function Bq(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=[Am(Fe(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=hm(n),s=[i?Am(Fe(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Bq,"suffixWithPreviousSegmentName");function ME(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Gt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(ME,"resolveExtractedEnumZodSchemaTags");function qE(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(qE,"isUnique");function Am(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Am,"sanitizeName");function DE(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=Xr(i,e.options.schemaSuffix);if(!t[a]){let c=e.getTagByZodSchemaName(a),u=e.resolveObject(s);u.enum?r[a]=Yo(u):t[a]=We({schema:s,resolver:e,tag:c}).getCodeString(c)}}),{zodSchemas:t,enumZodSchemas:r}}o(DE,"getZodSchemasFromOpenAPIDoc");function LE(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Xr(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:Yo(a)})}),t}o(LE,"getEnumZodSchemasFromOpenAPIDoc");var Im=class Im{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=RE(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=LE(this),this.operationsByTag=UP(t,r),this.operationNames=YP(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];operationsByTag={};operationNames=[];extractedEnumZodSchemaData=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(GP)}getSchemaByRef(t){return this.docSchemas[Ko(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.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return Kn(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=Gt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Kn(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Pe(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,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Di(a),u=Ko(c),l=Xr(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[]})});for(let a in this.openApiDoc.paths){let c=this.openApiDoc.paths[a],u=Zn(c,Gn);for(let l in u){let p=u[l];if(!p||p.deprecated&&!this.options.withDeprecatedEndpoints)continue;let f=qi(p,this.options),d=da({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(E=>E===d).length<=1,y=ft(Fi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(E=>{let w=E,T=w.schema,I=`Operation ${p.operationId??a} parameter ${w.name}`;b.push(...Lu(this,T,I)),this.options.extractEnums&&Pa({resolver:this,schema:T,schemaInfo:I,tags:[f],nameSegments:[y,w.name],includeSelf:!0})}),p.requestBody){let E=this.resolveObject(p.requestBody),T=Object.keys(E.content??{}).find(Jr);if(T){let I=(n=(r=E.content)==null?void 0:r[T])==null?void 0:n.schema,C=`Operation ${p.operationId} request body`;b.push(...Lu(this,I,C)),this.options.extractEnums&&Pa({resolver:this,schema:I,schemaInfo:C,tags:[f],nameSegments:[Ru(y)]})}}for(let E in p.responses){let w=this.resolveObject(p.responses[E]),I=Object.keys(w.content??{}).find(xu);if(I){let C=(s=(i=w.content)==null?void 0:i[I])==null?void 0:s.schema,ae=`Operation ${p.operationId} response body`;b.push(...Lu(this,C,ae)),this.options.extractEnums&&Pa({resolver:this,schema:C,schemaInfo:ae,tags:[f],nameSegments:[ju({statusCode:E,operationName:d,isUniqueOperationName:h,tag:f})]})}}jE(this,b).forEach(E=>{let w=this.getSchemaDataByRef(E);w&&w.tags.push(f)})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Di(a);Pa({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[Ko(c)]})}),ME(this),this.handleDuplicateEnumZodSchemas(),kE(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a;let i=(a=r.find(({zodSchemaName:c})=>c===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:c})=>c===i);s&&(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(c=>{this.dependencyGraph.refsDependencyGraph[c]||(this.dependencyGraph.refsDependencyGraph[c]=new Set),this.dependencyGraph.refsDependencyGraph[c].add(n.ref),this.dependencyGraph.deepDependencyGraph[c]||(this.dependencyGraph.deepDependencyGraph[c]=new Set),this.dependencyGraph.deepDependencyGraph[c].add(n.ref)}))}),this.extractedEnumZodSchemaData=this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n))}};o(Im,"SchemaResolver");var Fu=Im;function FE(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(FE,"topologicalSort");function VE(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(VE,"sortObjKeysFromArray");function BE(e,t){let r=FE(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return VE(t,r)}o(BE,"sortZodSchemasByTopology");function HE(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(SE(e.getCircularSchemaChain(s).join(" -> "))),r[Xr(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Xr(n,e.options.schemaSuffix)]=i}),r}o(HE,"wrapCircularZodSchemas");function Vu(e,t){let r=new Fu(e,t),n=TE(r),i=DE(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=HE(r,s),s=BE(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:Hq({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Vu,"getDataFromOpenAPIDoc");function Hq({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=va(s,n);UE(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(UE(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(Hq,"splitDataByTags");function UE(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(UE,"getTagElement");var Jo=yt(require("fs")),Cm=yt(require("path"));function zE(e){return Jo.default.readFileSync(Cm.default.join(__dirname,`../${e}`),"utf-8")}o(zE,"readFileSync");function Tm(e){let t=`src/generators/templates/${e}.hbs`;return zE(t)}o(Tm,"readHbsTemplateSync");function GE(e){let t=`src/assets/${e}`;return zE(t)}o(GE,"readAssetSync");function Ui({output:e,fileName:t}){return`${e}/${t}`}o(Ui,"getOutputFileName");function Uq(e,t){let r=Cm.default.dirname(e);Jo.default.existsSync(r)||Jo.default.mkdirSync(r,{recursive:!0}),Jo.default.writeFileSync(e,t,"utf-8")}o(Uq,"writeFileWithDirSync");function zq({fileName:e,content:t}){Uq(e,t)}o(zq,"writeFileSync");function ZE(e){e.forEach(zq)}o(ZE,"writeGenerateFileData");function WE(e,t){let r={...Su,...t},{resolver:n,data:i}=Vu(e,r);if(n.validationErrors.length>0){let s=EE(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Dr.red(`${TP[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,...Hq(c,r)],[]);console.log(`${Dr.green("Outputs:")}
147
+ `)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...Gq(c,r)],[]);console.log(`${Dr.green("Outputs:")}
148
148
  ${s.map(a=>`- ${a}`).join(`
149
149
  `)}
150
- `)}return n.validationErrors}o(zE,"checkOpenAPIDoc");function Hq(e,t){return["models","endpoints","queries"].map(r=>Hi({output:t.output,fileName:ju({tag:e,type:r,options:t})}))}o(Hq,"getOutputFileNames");async function ZE({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&ir("Parsing OpenAPI spec...");let s=await GE.default.bundle(e);r&&On("Parsing finished."),r&&ir("Running check...");let a=zE(s,{input:e,excludeTags:t.split(","),...n});if(r&&ir(`TIME: ${Date.now()-i}ms`),a.length===0)On("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(ZE,"check");var Qn=class Qn{input;splitByTags;defaultTag;excludeTags;verbose};o(Qn,"CheckOptions"),Ue([Ge({envAlias:"input",demandOption:!0})],Qn.prototype,"input",2),Ue([Ge({envAlias:"splitByTags",default:!0,type:"boolean"})],Qn.prototype,"splitByTags",2),Ue([Ge({envAlias:"defaultTag",default:"Common"})],Qn.prototype,"defaultTag",2),Ue([Ge({envAlias:"excludeTags",default:""})],Qn.prototype,"excludeTags",2),Ue([Ge({envAlias:"verbose",default:!1,type:"boolean"})],Qn.prototype,"verbose",2);var Im=Qn,WE={command:"check",describe:"Check OpenAPI spec",builder:lc(Im),handler:o(async e=>{let t=await e;return t.verbose&&(uc(`OpenAPI CodeGen ${ao()}`),ms("input",t.input)),ZE(t)},"handler")};var u$=yt(em()),l$=require("child_process");var KE={fileName:"acl/app.ability",extension:"ts"},Sa="AllAbilities",Cr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Cm={bindings:[Cr.abilityTuple,Cr.pureAbility,Cr.forcedSubject,Cr.subject],from:"@casl/ability"};var YE=o(e=>`Use${Fe(lt(e.operationName))}Ability`,"getAbilityTypeName"),QE=o(e=>`canUse${Fe(lt(e.operationName))}`,"getAbilityFunctionName"),JE=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),XE=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),e1=o(e=>{var t;return!!((t=Tm(e))!=null&&t.length)},"hasAbilityConditions"),Tm=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),t1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Du=o(e=>`${Fe(e)}${Sa}`,"getTagAllAbilitiesName");var Og=yt(ei());var gn=yt(ei());function G2(){kL(),ML(),qL(),DL(),LL(),FL(),VL(),BL()}o(G2,"registerAclHbsHelpers");function kL(){gn.default.registerHelper("abilityTypeName",YE)}o(kL,"registerAbilityTypeNameHelper");function ML(){gn.default.registerHelper("abilityFunctionName",QE)}o(ML,"registerAbilityFunctionNameHelper");function qL(){gn.default.registerHelper("ablityAction",JE)}o(qL,"registerAbilityActionHelper");function DL(){gn.default.registerHelper("ablitySubject",XE)}o(DL,"registerAbilitySubjectHelper");function LL(){gn.default.registerHelper("hasAbilityConditions",e1)}o(LL,"registerHasAbilityConditionsHelper");function FL(){gn.default.registerHelper("abilityConditionsTypes",Tm)}o(FL,"registerAbilityConditionsTypesHelper");function VL(){gn.default.registerHelper("abilityDescription",t1)}o(VL,"registerAbilityDescriptionHelper");function BL(){gn.default.registerHelper("tagAllAbilitiesName",Du)}o(BL,"registerTagAllAbilitiesNameHelper");var ka=yt(ei());function Z2(){HL(),UL(),zL(),GL()}o(Z2,"registerCommonHbsHelpers");function HL(){ka.default.registerHelper("isEqual",(e,t)=>e===t)}o(HL,"registerIsEqualHelper");function UL(){ka.default.registerHelper("commaSeparated",e=>e.join(", "))}o(UL,"registerCommaSeparatedListHelper");function zL(){ka.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
- *`))}o(zL,"registerAddAsteriskAfterNewLineHelper");function GL(){ka.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(GL,"registerJsonStringifyHelper");var ti=yt(ei());function W2(e){ZL(),WL(e.options),QL(e),KL(),YL(),JL(e),XL()}o(W2,"registerEndpointsHbsHelpers");function ZL(){ti.default.registerHelper("endpointName",ga)}o(ZL,"registerEndpointNameHelper");function WL(e){ti.default.registerHelper("importedEndpointName",t=>pE(t,e))}o(WL,"registerImportedEndpointNameHelper");function KL(){ti.default.registerHelper("endpointPath",dE)}o(KL,"registerEndpointPathHelper");function YL(){ti.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(YL,"registerEndpointBodyHelper");function QL(e){ti.default.registerHelper("endpointParams",(t,r)=>vm(e,t,r))}o(QL,"registerEndpointParamsHelper");function JL(e){ti.default.registerHelper("endpointArgs",(t,r)=>vm(e,t,r).map(n=>n.name).join(", "))}o(JL,"registerEndpointArgsHelper");function XL(){ti.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&&zt(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(Jr);f&&(i=e.bodyObject.content[f],i.schema&&zt(i.schema)&&(n=i.schema))}if(n){let p=da(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(XL,"registerEndpointParamDescriptionHelper");var jr=yt(ei());function K2(e){e8(),t8(),r8(),n8(),i8(e),o8(),s8(),a8(),c8(),u8()}o(K2,"registerPartialsHbsHelpers");function e8(){jr.default.registerHelper("genModelJsDocs",(e,t,r)=>Rr("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(e8,"registerGenerateModelJsDocsHelper");function t8(){jr.default.registerHelper("genImport",e=>Rr("import")({import:e}))}o(t8,"registerImportHelper");function r8(){jr.default.registerHelper("genEndpointParams",(e,t)=>Rr("endpoint-params")({endpoint:e,extra:t}))}o(r8,"registerGenerateEndpointParamsHelper");function n8(){jr.default.registerHelper("genEndpointConfig",e=>{let t=hE(e);return Object.keys(t).length===0?"":Rr("endpoint-config")({endpointConfig:t})})}o(n8,"registerGenerateEndpointConfigHelper");function i8(e){jr.default.registerHelper("genQueryKeys",(t,r)=>t.length===0?"":Rr("query-keys")({queryEndpoints:t,namespace:r,generateInfiniteQueries:e.options.infiniteQueries}))}o(i8,"registerGenerateQueryKeysHelper");function o8(){jr.default.registerHelper("genQuery",(e,t)=>{let r,n;return fn(e)?(r="query-use-query",n=Zt.query):(r="query-use-mutation",n=Zt.mutation),Rr(r)({endpoint:e,queryEndpoints:t,queryHook:n})})}o(o8,"registerGenerateQueryHelper");function s8(){jr.default.registerHelper("genInfiniteQuery",e=>Rr("query-use-infinite-query")({endpoint:e,infiniteQueryHook:Zt.infiniteQuery,pageParamName:Ru.pageParamName,totalItemsName:Ru.totalItemsName,limitParamName:Ru.limitParamName}))}o(s8,"registerGenerateInfiniteQueryHelper");function a8(){jr.default.registerHelper("genQueryJsDocs",(e,t)=>Rr("query-js-docs")({endpoint:e,infiniteQuery:t==="infiniteQuery"}))}o(a8,"registerGenerateQueryJsDocsHelper");function c8(){jr.default.registerHelper("genCaslAbilityType",e=>Rr("casl-ability-type")({endpoint:e,abilityTupleType:Cr.abilityTuple}))}o(c8,"registerGenerateCaslAbilityTypeHelper");function u8(){jr.default.registerHelper("genCaslAbilityFunction",e=>Rr("casl-ability-function")({endpoint:e}))}o(u8,"registerGenerateCaslAbilityFunctionHelper");var Ma=yt(ei());var Y2=o(e=>`use${Fe(lt(e.operationName))}`,"getQueryName"),Q2=o(e=>`use${Fe(lt(e.operationName))}Infinite`,"getInfiniteQueryName");function J2(){l8(),p8(),f8(),d8()}o(J2,"registerQueryHbsHelpers");function l8(){Ma.default.registerHelper("queryName",Y2)}o(l8,"registerQueryNameHelper");function f8(){Ma.default.registerHelper("infiniteQueryName",Q2)}o(f8,"registerInfiniteQueryNameHelper");function p8(){Ma.default.registerHelper("isQuery",fn)}o(p8,"registerIsQueryHelper");function d8(){Ma.default.registerHelper("isInfiniteQuery",e=>Nu(e,Object.values(Vi)))}o(d8,"registerIsInfiniteQueryHelper");var Yi=yt(ei());function X2(e){h8(e.options),m8(e),g8(e),y8(),b8(),v8(e)}o(X2,"registerZodHbsHelpers");function h8(e){Yi.default.registerHelper("zodInferedType",t=>ha(t,e))}o(h8,"registerInferedTypeHelper");function m8(e){Yi.default.registerHelper("importedZodSchemaName",t=>eE(e,t))}o(m8,"registerImportedZodSchemaNameHelper");function g8(e){Yi.default.registerHelper("importedZodSchemaInferedType",t=>Fi(e,t))}o(g8,"registerImportedZodSchemaInferedTypeHelper");function y8(){Yi.default.registerHelper("zodSchemaType",e=>tE(e))}o(y8,"registerZodSchemaTypeHelper");function b8(){Yi.default.registerHelper("zodSchemaDescription",e=>rE(e))}o(b8,"registerZodSchemaDescriptionHelper");function v8(e){Yi.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>iE(e,t,r))}o(v8,"registerZodSchemaPropertyDescriptionsHelper");function Nr(e,t){let r=Am(t);return Z2(),X2(e),W2(e),J2(),G2(),K2(e),Og.default.compile(r)}o(Nr,"getHbsTemplateDelegate");function Rr(e){let t=Am(`partials/${e}`);return Og.default.compile(t)}o(Rr,"getHbsPartialTemplateDelegate");function e$({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={...Cm,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=Yn({resolver:e,tag:r,zodSchemasAsTypes:Gt(a)});return Nr(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:et({type:"acl",tag:r,options:e.options}),endpoints:n})}o(e$,"generateAcl");function t$(e,t){if(!t||t.length===0)return;let r={...Cm,bindings:[Cr.pureAbility]},n=sE({tags:t,entityName:Sa,getAliasEntityName:Du,options:e.options}),i=t.map(a=>et({type:"acl",tag:a,options:e.options}));return Nr(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Sa,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(t$,"generateAppAcl");function r$({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:[pa],from:cE(e.options)},s=n.map(f=>f.response),a=s.some(f=>!Dt(f)),c=n.reduce((f,d)=>[...f,...d.parameters],[]),u=Yn({resolver:e,tag:r,zodSchemas:Gt(s.filter(Dt)),zodSchemasAsTypes:Gt(c.map(f=>f.zodSchema).filter(Dt))});return Nr(e,"endpoints")({appRestClientImport:i,hasZodImport:a,zodImport:yu,modelsImports:u,includeNamespace:e.options.tsNamespaces,namespace:et({type:"endpoints",tag:r,options:e.options}),restClientName:pa,endpoints:n})}o(r$,"generateEndpoints");function n$(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(i$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(n$,"getZodSchemaRefs");function i$(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&i$(n).forEach(s=>r.add(s)),r},new Set)}o(i$,"getSchemaRefs");function o$({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,...n$(e,p)],[]).filter(l=>!n[l]),s=Yn({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:JO(f),schemaObj:e.getZodSchemaObj(p)}}},{});return Nr(e,"models")({zodImport:yu,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:et({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(o$,"generateModels");function s$({resolver:e,data:t,tag:r=""}){var h;let n=(h=t.get(r))==null?void 0:h.endpoints;if(!n||n.length===0)return;let i=n.filter(fn),s=i.filter(y=>Nu(y,Object.values(Vi))),a=n.filter(OE),c={...fE,bindings:[...i.length>0?[Zt.query]:[],...e.options.infiniteQueries&&s.length>0?[Zt.infiniteQuery]:[],...a.length>0?[Zt.mutation]:[],...i.length>0&&a.length>0?[Zt.queryClient]:[]]},u={bindings:[...i.length>0?[$u.query]:[],...e.options.infiniteQueries&&s.length>0?[$u.infiniteQuery]:[],...a.length>0?[$u.mutation]:[]],from:uE(e.options)},l=n.reduce((y,b)=>[...y,...b.parameters],[]),p=Yn({resolver:e,tag:r,zodSchemasAsTypes:Gt(l.map(y=>y.zodSchema).filter(Dt))}),f=oE({tag:r,endpoints:n,options:e.options});return Nr(e,"queries")({queryImport:c,queryTypesImport:u,modelsImports:p,endpointsImports:f,includeNamespace:e.options.tsNamespaces,namespace:et({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i,generateInfiniteQueries:e.options.infiniteQueries})}o(s$,"generateQueries");function a$(e){return Nr(e,"app-rest-client")({appRestClientName:pa,baseUrl:e.getBaseUrl()})}o(a$,"generateAppRestClient");function c$(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...bu,...t,importPath:r},{resolver:i,data:s}=qu(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:o$,endpoints:r$,queries:s$,acl:e$};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=Hi({output:n.output,fileName:ju({tag:d,type:y,options:n})});a.push({fileName:g,content:b}),y==="acl"&&c.push(d)}})});let p=t$(i,c);if(p){let f=Hi({output:n.output,fileName:Tu(KE)});a.push({fileName:f,content:p})}return n.standalone&&a.push(..._8(i)),a}o(c$,"generateCodeFromOpenAPIDoc");function _8(e){let t=[];return Object.values(wu).forEach(r=>{let n=Tu(r);t.push({fileName:Hi({output:e.options.output,fileName:n}),content:HE(n)})}),t.push({fileName:Hi({output:e.options.output,fileName:Tu(xu)}),content:a$(e)}),t}o(_8,"getStandaloneFiles");async function f$({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&ir("Parsing OpenAPI spec...");let a=await u$.default.bundle(e);n&&On("Parsing finished."),n&&ir("Generating code...");let c=c$(a,{input:e,excludeTags:t.split(","),...i});n&&On("Generation finished."),n&&ir("Writing files..."),UE(c),n&&On("Writing finished."),r&&S8({output:i.output,verbose:n}),n&&ir(`TIME: ${Date.now()-s}ms`)}o(f$,"generate");function S8({output:e,verbose:t}){t&&ir("Running Prettier..."),(0,l$.exec)(`prettier --write ${e} `,n=>{t&&(n?gs(n,"Prettier error"):On("Prettier finished."))})}o(S8,"execPrettier");var pt=class pt{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;prettier;verbose;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries};o(pt,"GenerateOptions"),Ue([Ge({envAlias:"input",demandOption:!0})],pt.prototype,"input",2),Ue([Ge({envAlias:"output",default:"output"})],pt.prototype,"output",2),Ue([Ge({envAlias:"tsNamespaces",default:!0,type:"boolean"})],pt.prototype,"tsNamespaces",2),Ue([Ge({envAlias:"splitByTags",default:!0,type:"boolean"})],pt.prototype,"splitByTags",2),Ue([Ge({envAlias:"defaultTag",default:"Common"})],pt.prototype,"defaultTag",2),Ue([Ge({envAlias:"excludeTags",default:""})],pt.prototype,"excludeTags",2),Ue([Ge({envAlias:"importPath",default:"ts",type:"string"})],pt.prototype,"importPath",2),Ue([Ge({envAlias:"extractEnums",default:!0,type:"boolean"})],pt.prototype,"extractEnums",2),Ue([Ge({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],pt.prototype,"removeOperationPrefixEndingWith",2),Ue([Ge({envAlias:"prettier",default:!0,type:"boolean"})],pt.prototype,"prettier",2),Ue([Ge({envAlias:"verbose",default:!1,type:"boolean"})],pt.prototype,"verbose",2),Ue([Ge({envAlias:"standalone",default:!1,type:"boolean"})],pt.prototype,"standalone",2),Ue([Ge({envAlias:"baseUrl",default:""})],pt.prototype,"baseUrl",2),Ue([Ge({envAlias:"replaceOptionalWithNullish",default:!1,type:"boolean"})],pt.prototype,"replaceOptionalWithNullish",2),Ue([Ge({envAlias:"infiniteQueries",default:!1,type:"boolean"})],pt.prototype,"infiniteQueries",2);var Eg=pt,p$={command:"generate",describe:"Generate code from OpenAPI spec",builder:lc(Eg),handler:o(async e=>{let t=await e;return t.verbose&&(uc(`OpenAPI CodeGen ${ao()}`),ms("input",t.input),ms("output",t.output)),f$(t)},"handler")};Cy(Rl(process.argv)).version(ao()||"unknown").scriptName("openapi-codegen").command(p$).command(WE).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&gs(e),t&&gs(t),ir("Use '--help' for more info"),process.exit(1)}).parse();
150
+ `)}return n.validationErrors}o(WE,"checkOpenAPIDoc");function Gq(e,t){return["models","endpoints","queries"].map(r=>Ui({output:t.output,fileName:Mu({tag:e,type:r,options:t})}))}o(Gq,"getOutputFileNames");async function YE({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&ir("Parsing OpenAPI spec...");let s=await KE.default.bundle(e);r&&Pn("Parsing finished."),r&&ir("Running check...");let a=WE(s,{input:e,excludeTags:t.split(","),...n});if(r&&ir(`TIME: ${Date.now()-i}ms`),a.length===0)Pn("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(YE,"check");var Qn=class Qn{input;splitByTags;defaultTag;excludeTags;verbose};o(Qn,"CheckOptions"),Be([Ue({envAlias:"input",demandOption:!0})],Qn.prototype,"input",2),Be([Ue({envAlias:"splitByTags",default:!0,type:"boolean"})],Qn.prototype,"splitByTags",2),Be([Ue({envAlias:"defaultTag",default:"Common"})],Qn.prototype,"defaultTag",2),Be([Ue({envAlias:"excludeTags",default:""})],Qn.prototype,"excludeTags",2),Be([Ue({envAlias:"verbose",default:!1,type:"boolean"})],Qn.prototype,"verbose",2);var Rm=Qn,QE={command:"check",describe:"Check OpenAPI spec",builder:dc(Rm),handler:o(async e=>{let t=await e;return t.verbose&&(pc(`OpenAPI CodeGen ${co()}`),ys("input",t.input)),YE(t)},"handler")};var p$=yt(im()),d$=require("child_process");var JE={fileName:"acl/app.ability",extension:"ts"},Ea="AllAbilities",Cr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},jm={bindings:[Cr.abilityTuple,Cr.pureAbility,Cr.forcedSubject,Cr.subject],from:"@casl/ability"};var XE=o(e=>`Use${Fe(ft(e.operationName))}Ability`,"getAbilityTypeName"),e1=o(e=>`canUse${Fe(ft(e.operationName))}`,"getAbilityFunctionName"),t1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),r1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),n1=o(e=>{var t;return!!((t=Nm(e))!=null&&t.length)},"hasAbilityConditions"),Nm=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),i1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Bu=o(e=>`${Fe(e)}${Ea}`,"getTagAllAbilitiesName");var wg=yt(ei());var gn=yt(ei());function K2(){DL(),LL(),FL(),VL(),BL(),HL(),UL(),zL()}o(K2,"registerAclHbsHelpers");function DL(){gn.default.registerHelper("abilityTypeName",XE)}o(DL,"registerAbilityTypeNameHelper");function LL(){gn.default.registerHelper("abilityFunctionName",e1)}o(LL,"registerAbilityFunctionNameHelper");function FL(){gn.default.registerHelper("ablityAction",t1)}o(FL,"registerAbilityActionHelper");function VL(){gn.default.registerHelper("ablitySubject",r1)}o(VL,"registerAbilitySubjectHelper");function BL(){gn.default.registerHelper("hasAbilityConditions",n1)}o(BL,"registerHasAbilityConditionsHelper");function HL(){gn.default.registerHelper("abilityConditionsTypes",Nm)}o(HL,"registerAbilityConditionsTypesHelper");function UL(){gn.default.registerHelper("abilityDescription",i1)}o(UL,"registerAbilityDescriptionHelper");function zL(){gn.default.registerHelper("tagAllAbilitiesName",Bu)}o(zL,"registerTagAllAbilitiesNameHelper");var Da=yt(ei());function Y2(){GL(),ZL(),WL(),KL()}o(Y2,"registerCommonHbsHelpers");function GL(){Da.default.registerHelper("isEqual",(e,t)=>e===t)}o(GL,"registerIsEqualHelper");function ZL(){Da.default.registerHelper("commaSeparated",e=>e.join(", "))}o(ZL,"registerCommaSeparatedListHelper");function WL(){Da.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
+ *`))}o(WL,"registerAddAsteriskAfterNewLineHelper");function KL(){Da.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(KL,"registerJsonStringifyHelper");var ti=yt(ei());function Q2(e){YL(),QL(e.options),e8(e),JL(),XL(),t8(e),r8()}o(Q2,"registerEndpointsHbsHelpers");function YL(){ti.default.registerHelper("endpointName",ba)}o(YL,"registerEndpointNameHelper");function QL(e){ti.default.registerHelper("importedEndpointName",t=>mE(t,e))}o(QL,"registerImportedEndpointNameHelper");function JL(){ti.default.registerHelper("endpointPath",gE)}o(JL,"registerEndpointPathHelper");function XL(){ti.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(XL,"registerEndpointBodyHelper");function e8(e){ti.default.registerHelper("endpointParams",(t,r)=>_a(e,t,r))}o(e8,"registerEndpointParamsHelper");function t8(e){ti.default.registerHelper("endpointArgs",(t,r)=>_a(e,t,r).map(n=>n.name).join(", "))}o(t8,"registerEndpointArgsHelper");function r8(){ti.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&&zt(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(Jr);f&&(i=e.bodyObject.content[f],i.schema&&zt(i.schema)&&(n=i.schema))}if(n){let p=ma(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(r8,"registerEndpointParamDescriptionHelper");var Rr=yt(ei());function J2(e){n8(),i8(),o8(),s8(e),a8(e),c8(e),u8(e),l8(),f8(),p8()}o(J2,"registerPartialsHbsHelpers");function n8(){Rr.default.registerHelper("genModelJsDocs",(e,t,r)=>jr("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(n8,"registerGenerateModelJsDocsHelper");function i8(){Rr.default.registerHelper("genImport",e=>jr("import")({import:e}))}o(i8,"registerImportHelper");function o8(){Rr.default.registerHelper("genEndpointParams",(e,t)=>jr("endpoint-params")({endpoint:e,extra:t}))}o(o8,"registerGenerateEndpointParamsHelper");function s8(e){Rr.default.registerHelper("genEndpointConfig",t=>{let r=yE(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Mi:"":jr("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,axiosRequestConfigName:Mi})})}o(s8,"registerGenerateEndpointConfigHelper");function a8(e){Rr.default.registerHelper("genQueryKeys",(t,r)=>t.length===0?"":jr("query-keys")({queryEndpoints:t,namespace:r,generateInfiniteQueries:e.options.infiniteQueries}))}o(a8,"registerGenerateQueryKeysHelper");function c8(e){Rr.default.registerHelper("genQuery",(t,r)=>{let n,i;fn(t)?(n="query-use-query",i=Zt.query):(n="query-use-mutation",i=Zt.mutation);let s=e.options.axiosRequestConfig;return jr(n)({endpoint:t,queryEndpoints:r,queryHook:i,hasEndpointArgs:_a(e,t).length>0||s,hasAxiosRequestConfig:s,axiosRequestConfigName:Mi,axiosRequestConfigType:Wo})})}o(c8,"registerGenerateQueryHelper");function u8(e){Rr.default.registerHelper("genInfiniteQuery",t=>jr("query-use-infinite-query")({endpoint:t,infiniteQueryHook:Zt.infiniteQuery,pageParamName:qu.pageParamName,totalItemsName:qu.totalItemsName,limitParamName:qu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Mi,axiosRequestConfigType:Wo}))}o(u8,"registerGenerateInfiniteQueryHelper");function l8(){Rr.default.registerHelper("genQueryJsDocs",(e,t)=>jr("query-js-docs")({endpoint:e,infiniteQuery:t==="infiniteQuery"}))}o(l8,"registerGenerateQueryJsDocsHelper");function f8(){Rr.default.registerHelper("genCaslAbilityType",e=>jr("casl-ability-type")({endpoint:e,abilityTupleType:Cr.abilityTuple}))}o(f8,"registerGenerateCaslAbilityTypeHelper");function p8(){Rr.default.registerHelper("genCaslAbilityFunction",e=>jr("casl-ability-function")({endpoint:e}))}o(p8,"registerGenerateCaslAbilityFunctionHelper");var La=yt(ei());var X2=o(e=>`use${Fe(ft(e.operationName))}`,"getQueryName"),e$=o(e=>`use${Fe(ft(e.operationName))}Infinite`,"getInfiniteQueryName");function t$(){d8(),m8(),h8(),g8()}o(t$,"registerQueryHbsHelpers");function d8(){La.default.registerHelper("queryName",X2)}o(d8,"registerQueryNameHelper");function h8(){La.default.registerHelper("infiniteQueryName",e$)}o(h8,"registerInfiniteQueryNameHelper");function m8(){La.default.registerHelper("isQuery",fn)}o(m8,"registerIsQueryHelper");function g8(){La.default.registerHelper("isInfiniteQuery",e=>Du(e,Object.values(Bi)))}o(g8,"registerIsInfiniteQueryHelper");var Qi=yt(ei());function r$(e){y8(e.options),b8(e),v8(e),_8(),S8(),O8(e)}o(r$,"registerZodHbsHelpers");function y8(e){Qi.default.registerHelper("zodInferedType",t=>ga(t,e))}o(y8,"registerInferedTypeHelper");function b8(e){Qi.default.registerHelper("importedZodSchemaName",t=>nE(e,t))}o(b8,"registerImportedZodSchemaNameHelper");function v8(e){Qi.default.registerHelper("importedZodSchemaInferedType",t=>Vi(e,t))}o(v8,"registerImportedZodSchemaInferedTypeHelper");function _8(){Qi.default.registerHelper("zodSchemaType",e=>iE(e))}o(_8,"registerZodSchemaTypeHelper");function S8(){Qi.default.registerHelper("zodSchemaDescription",e=>oE(e))}o(S8,"registerZodSchemaDescriptionHelper");function O8(e){Qi.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>aE(e,t,r))}o(O8,"registerZodSchemaPropertyDescriptionsHelper");function Nr(e,t){let r=Tm(t);return Y2(),r$(e),Q2(e),t$(),K2(),J2(e),wg.default.compile(r)}o(Nr,"getHbsTemplateDelegate");function jr(e){let t=Tm(`partials/${e}`);return wg.default.compile(t)}o(jr,"getHbsPartialTemplateDelegate");function n$({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={...jm,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=Yn({resolver:e,tag:r,zodSchemasAsTypes:Gt(a)});return Nr(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:et({type:"acl",tag:r,options:e.options}),endpoints:n})}o(n$,"generateAcl");function i$(e,t){if(!t||t.length===0)return;let r={...jm,bindings:[Cr.pureAbility]},n=uE({tags:t,entityName:Ea,getAliasEntityName:Bu,options:e.options}),i=t.map(a=>et({type:"acl",tag:a,options:e.options}));return Nr(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Ea,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(i$,"generateAppAcl");function o$({resolver:e,data:t,tag:r=""}){var f;let n=(f=t.get(r))==null?void 0:f.endpoints;if(!n||n.length===0)return;let i={bindings:[ha],from:fE(e.options)},s=e.options.axiosRequestConfig,a=n.map(d=>d.response),c=a.some(d=>!Dt(d)),u=n.reduce((d,h)=>[...d,...h.parameters],[]),l=Yn({resolver:e,tag:r,zodSchemas:Gt(a.filter(Dt)),zodSchemasAsTypes:Gt(u.map(d=>d.zodSchema).filter(Dt))});return Nr(e,"endpoints")({appRestClientImport:i,hasAxiosImport:s,axiosImport:Ou,hasZodImport:c,zodImport:_u,modelsImports:l,includeNamespace:e.options.tsNamespaces,namespace:et({type:"endpoints",tag:r,options:e.options}),restClientName:ha,hasAxiosRequestConfig:s,axiosRequestConfigName:Mi,axiosRequestConfigType:Wo,endpoints:n})}o(o$,"generateEndpoints");function s$(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(a$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(s$,"getZodSchemaRefs");function a$(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&a$(n).forEach(s=>r.add(s)),r},new Set)}o(a$,"getSchemaRefs");function c$({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,...s$(e,p)],[]).filter(l=>!n[l]),s=Yn({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:tE(f),schemaObj:e.getZodSchemaObj(p)}}},{});return Nr(e,"models")({zodImport:_u,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:et({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(c$,"generateModels");function u$({resolver:e,data:t,tag:r=""}){var y;let n=(y=t.get(r))==null?void 0:y.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.filter(fn),a=s.filter(b=>Du(b,Object.values(Bi))),c=n.filter(wE),u={...hE,bindings:[...s.length>0?[Zt.query]:[],...e.options.infiniteQueries&&a.length>0?[Zt.infiniteQuery]:[],...c.length>0?[Zt.mutation]:[],...s.length>0&&c.length>0?[Zt.queryClient]:[]]},l={bindings:[...s.length>0?[Iu.query]:[],...e.options.infiniteQueries&&a.length>0?[Iu.infiniteQuery]:[],...c.length>0?[Iu.mutation]:[]],from:pE(e.options)},p=n.reduce((b,g)=>[...b,...g.parameters],[]),f=Yn({resolver:e,tag:r,zodSchemasAsTypes:Gt(p.map(b=>b.zodSchema).filter(Dt))}),d=cE({tag:r,endpoints:n,options:e.options});return Nr(e,"queries")({hasAxiosImport:i,axiosImport:Ou,queryImport:u,queryTypesImport:l,modelsImports:f,endpointsImports:d,includeNamespace:e.options.tsNamespaces,namespace:et({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:s,generateInfiniteQueries:e.options.infiniteQueries})}o(u$,"generateQueries");function l$(e){return Nr(e,"app-rest-client")({appRestClientName:ha,baseUrl:e.getBaseUrl()})}o(l$,"generateAppRestClient");function f$(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...Su,...t,importPath:r},{resolver:i,data:s}=Vu(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:c$,endpoints:o$,queries:u$,acl:n$};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=Ui({output:n.output,fileName:Mu({tag:d,type:y,options:n})});a.push({fileName:g,content:b}),y==="acl"&&c.push(d)}})});let p=i$(i,c);if(p){let f=Ui({output:n.output,fileName:ku(JE)});a.push({fileName:f,content:p})}return n.standalone&&a.push(...P8(i)),a}o(f$,"generateCodeFromOpenAPIDoc");function P8(e){let t=[];return Object.values(Cu).forEach(r=>{let n=ku(r);t.push({fileName:Ui({output:e.options.output,fileName:n}),content:GE(n)})}),t.push({fileName:Ui({output:e.options.output,fileName:ku(Tu)}),content:l$(e)}),t}o(P8,"getStandaloneFiles");async function h$({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&ir("Parsing OpenAPI spec...");let a=await p$.default.bundle(e);n&&Pn("Parsing finished."),n&&ir("Generating code...");let c=f$(a,{input:e,excludeTags:t.split(","),...i});n&&Pn("Generation finished."),n&&ir("Writing files..."),ZE(c),n&&Pn("Writing finished."),r&&E8({output:i.output,verbose:n}),n&&ir(`TIME: ${Date.now()-s}ms`)}o(h$,"generate");function E8({output:e,verbose:t}){t&&ir("Running Prettier..."),(0,d$.exec)(`prettier --write ${e} `,n=>{t&&(n?bs(n,"Prettier error"):Pn("Prettier finished."))})}o(E8,"execPrettier");var at=class at{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;prettier;verbose;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries;axiosRequestConfig};o(at,"GenerateOptions"),Be([Ue({envAlias:"input",demandOption:!0})],at.prototype,"input",2),Be([Ue({envAlias:"output",default:"output"})],at.prototype,"output",2),Be([Ue({envAlias:"tsNamespaces",default:!0,type:"boolean"})],at.prototype,"tsNamespaces",2),Be([Ue({envAlias:"splitByTags",default:!0,type:"boolean"})],at.prototype,"splitByTags",2),Be([Ue({envAlias:"defaultTag",default:"Common"})],at.prototype,"defaultTag",2),Be([Ue({envAlias:"excludeTags",default:""})],at.prototype,"excludeTags",2),Be([Ue({envAlias:"importPath",default:"ts",type:"string"})],at.prototype,"importPath",2),Be([Ue({envAlias:"extractEnums",default:!0,type:"boolean"})],at.prototype,"extractEnums",2),Be([Ue({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],at.prototype,"removeOperationPrefixEndingWith",2),Be([Ue({envAlias:"prettier",default:!0,type:"boolean"})],at.prototype,"prettier",2),Be([Ue({envAlias:"verbose",default:!1,type:"boolean"})],at.prototype,"verbose",2),Be([Ue({envAlias:"standalone",default:!1,type:"boolean"})],at.prototype,"standalone",2),Be([Ue({envAlias:"baseUrl",default:""})],at.prototype,"baseUrl",2),Be([Ue({envAlias:"replaceOptionalWithNullish",default:!1,type:"boolean"})],at.prototype,"replaceOptionalWithNullish",2),Be([Ue({envAlias:"infiniteQueries",default:!1,type:"boolean"})],at.prototype,"infiniteQueries",2),Be([Ue({envAlias:"axiosRequestConfig",default:!1,type:"boolean"})],at.prototype,"axiosRequestConfig",2);var xg=at,m$={command:"generate",describe:"Generate code from OpenAPI spec",builder:dc(xg),handler:o(async e=>{let t=await e;return t.verbose&&(pc(`OpenAPI CodeGen ${co()}`),ys("input",t.input),ys("output",t.output)),h$(t)},"handler")};jy(ql(process.argv)).version(co()||"unknown").scriptName("openapi-codegen").command(m$).command(QE).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&bs(e),t&&bs(t),ir("Use '--help' for more info"),process.exit(1)}).parse();
152
152
  /*! Bundled license information:
153
153
 
154
154
  reflect-metadata/Reflect.js: