@redocly/openapi-docs 3.16.0 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/redocly-openapi-docs.min.js +1 -1
- package/package.json +10 -10
|
@@ -10257,7 +10257,7 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ga.PHP});h.len
|
|
|
10257
10257
|
# See https://redocly.com/docs/cli/ for more information.
|
|
10258
10258
|
`;function Trt(e){if(e)return wre(e)?sa.join(sa.dirname(e),wE):sa.join(e,wE)}let Brt=class rTe{constructor(t,a={}){this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.resolvedConfig=t,this.configPath=a.configPath,this.document=a.document,this.resolvedRefMap=a.resolvedRefMap,this.resolve=Prt(this.resolvedConfig.resolve),this._alias=a.alias,this.plugins=a.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const r=n=>Art({rules:n},this.plugins);this.rules={oas2:r({...t.rules,...t.oas2Rules}),oas3_0:r({...t.rules,...t.oas3_0Rules}),oas3_1:r({...t.rules,...t.oas3_1Rules}),oas3_2:r({...t.rules,...t.oas3_2Rules}),async2:r({...t.rules,...t.async2Rules}),async3:r({...t.rules,...t.async3Rules}),arazzo1:r({...t.rules,...t.arazzo1Rules}),overlay1:r({...t.rules,...t.overlay1Rules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators}},this.resolveIgnore(Trt(a.configPath))}forAlias(t){if(t===void 0||!ag(this.resolvedConfig?.apis?.[t]))return this;const{apis:a,...r}=this.resolvedConfig,{root:n,output:i,...o}=a[t];return new rTe({...r,...o},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins})}resolveIgnore(t){!t||wre(t)}saveIgnore(){const t=this.configPath?sa.dirname(this.configPath):process.cwd(),a=sa.join(t,wE),r={};for(const n of Object.keys(this.ignore)){const i=Tv(n)?n:jrt(sa.relative(t,n)),o=r[i]=this.ignore[n];for(const s of Object.keys(o))o[s]=Array.from(o[s])}(void 0)(a,Mrt+jtt(r))}addIgnore(t){const a=this.ignore,r=t.location[0];if(r.pointer===void 0)return;const n=a[r.source.absoluteRef]=a[r.source.absoluteRef]||{};(n[t.ruleId]=n[t.ruleId]||new Set).add(r.pointer)}addProblemToIgnore(t){const a=t.location[0];if(a.pointer===void 0)return t;const r=(this.ignore[a.source.absoluteRef]||{})[t.ruleId],n=r&&r.has(a.pointer);return n?{...t,ignored:n}:t}extendTypes(t,a){let r=t;for(const n of this.plugins)if(n.typeExtension!==void 0)switch(a){case"oas3_0":case"oas3_1":case"oas3_2":if(!n.typeExtension.oas3)continue;r=n.typeExtension.oas3(r,a);break;case"oas2":if(!n.typeExtension.oas2)continue;r=n.typeExtension.oas2(r,a);break;case"async2":if(!n.typeExtension.async2)continue;r=n.typeExtension.async2(r,a);break;case"async3":if(!n.typeExtension.async3)continue;r=n.typeExtension.async3(r,a);break;case"arazzo1":if(!n.typeExtension.arazzo1)continue;r=n.typeExtension.arazzo1(r,a);break;case"overlay1":if(!n.typeExtension.overlay1)continue;r=n.typeExtension.overlay1(r,a);break;default:throw new Error("Not implemented")}return r}getRuleSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const r=this.rules[a][t]||"off";return typeof r=="string"?{severity:r}:{severity:"error",...r}}getPreprocessorSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const r=this.preprocessors[a][t]||"off";return typeof r=="string"?{severity:r==="on"?"error":r}:{severity:"error",...r}}getDecoratorSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const r=this.decorators[a][t]||"off";return typeof r=="string"?{severity:r==="on"?"error":r}:{severity:"error",...r}}getUnusedRules(){const t=[],a=[],r=[];for(const n of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[n]).filter(i=>!this._usedRules.has(i))),a.push(...Object.keys(this.decorators[n]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.preprocessors[n]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:r,decorators:a}}getRulesForSpecVersion(t){switch(t){case"oas3":const a=[];return this.plugins.forEach(l=>l.preprocessors?.oas3&&a.push(l.preprocessors.oas3)),this.plugins.forEach(l=>l.rules?.oas3&&a.push(l.rules.oas3)),this.plugins.forEach(l=>l.decorators?.oas3&&a.push(l.decorators.oas3)),a;case"oas2":const r=[];return this.plugins.forEach(l=>l.preprocessors?.oas2&&r.push(l.preprocessors.oas2)),this.plugins.forEach(l=>l.rules?.oas2&&r.push(l.rules.oas2)),this.plugins.forEach(l=>l.decorators?.oas2&&r.push(l.decorators.oas2)),r;case"async2":const n=[];return this.plugins.forEach(l=>l.preprocessors?.async2&&n.push(l.preprocessors.async2)),this.plugins.forEach(l=>l.rules?.async2&&n.push(l.rules.async2)),this.plugins.forEach(l=>l.decorators?.async2&&n.push(l.decorators.async2)),n;case"async3":const i=[];return this.plugins.forEach(l=>l.preprocessors?.async3&&i.push(l.preprocessors.async3)),this.plugins.forEach(l=>l.rules?.async3&&i.push(l.rules.async3)),this.plugins.forEach(l=>l.decorators?.async3&&i.push(l.decorators.async3)),i;case"arazzo1":const o=[];return this.plugins.forEach(l=>l.preprocessors?.arazzo1&&o.push(l.preprocessors.arazzo1)),this.plugins.forEach(l=>l.rules?.arazzo1&&o.push(l.rules.arazzo1)),this.plugins.forEach(l=>l.decorators?.arazzo1&&o.push(l.decorators.arazzo1)),o;case"overlay1":const s=[];return this.plugins.forEach(l=>l.preprocessors?.overlay1&&s.push(l.preprocessors.overlay1)),this.plugins.forEach(l=>l.rules?.overlay1&&s.push(l.rules.overlay1)),this.plugins.forEach(l=>l.decorators?.overlay1&&s.push(l.decorators.overlay1)),s}}skipRules(t){for(const a of t||[])for(const r of bE)if(this.rules[r][a])this.rules[r][a]="off";else if(Array.isArray(this.rules[r].assertions))for(const n of this.rules[r].assertions)n.assertionId===a&&(n.severity="off")}skipPreprocessors(t){for(const a of t||[])for(const r of bE)this.preprocessors[r][a]&&(this.preprocessors[r][a]="off")}skipDecorators(t){for(const a of t||[])for(const r of bE)this.decorators[r][a]&&(this.decorators[r][a]="off")}};async function Ert(e){const{ref:t,doc:a,externalRefResolver:r=new Ttt(e.config.resolve),base:n=null}=e;if(!(t||a))throw new Error(`Document or reference is required.
|
|
10259
10259
|
`);const i=a===void 0?await r.resolveDocument(n,t,!0):a;if(i instanceof Error)throw i;const o=mre(i.parsed);let s;switch(o){case"oas2":s=fat;break;case"oas3_0":s=w2;break;case"oas3_1":s=zn;break;case"oas3_2":s=Crt;break;default:throw new Error(`Unsupported OpenAPI version: ${o}`)}return Vtt({document:i,...e,externalRefResolver:r,types:s})}function Sre(e={}){return new Brt({rules:{},preprocessors:{},decorators:{},plugins:[]},{configPath:e.configPath})}const Rrt={isatty:()=>{},createRequire:()=>{}},zre=Object.freeze(Object.defineProperty({__proto__:null,default:Rrt},Symbol.toStringTag,{value:"Module"})),$v=iQ(zre);var ng={},O2={exports:{}},Lrt=O2.exports,Cre;function _rt(){return Cre||(Cre=1,(function(e,t){(function(a){var r=t&&!t.nodeType&&t,n=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(a=i);var o,s=2147483647,l=36,c=1,u=26,d=38,h=700,m=72,b=128,f="-",y=/^xn--/,v=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=l-c,w=Math.floor,z=String.fromCharCode,j;function P(U){throw RangeError(O[U])}function B(U,V){for(var Z=U.length,G=[];Z--;)G[Z]=V(U[Z]);return G}function _(U,V){var Z=U.split("@"),G="";Z.length>1&&(G=Z[0]+"@",U=Z[1]),U=U.replace(x,".");var R=U.split("."),D=B(R,V).join(".");return G+D}function I(U){for(var V=[],Z=0,G=U.length,R,D;Z<G;)R=U.charCodeAt(Z++),R>=55296&&R<=56319&&Z<G?(D=U.charCodeAt(Z++),(D&64512)==56320?V.push(((R&1023)<<10)+(D&1023)+65536):(V.push(R),Z--)):V.push(R);return V}function L(U){return B(U,function(V){var Z="";return V>65535&&(V-=65536,Z+=z(V>>>10&1023|55296),V=56320|V&1023),Z+=z(V),Z}).join("")}function Q(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:l}function N(U,V){return U+22+75*(U<26)-((V!=0)<<5)}function Y(U,V,Z){var G=0;for(U=Z?w(U/h):U>>1,U+=w(U/V);U>C*u>>1;G+=l)U=w(U/C);return w(G+(C+1)*U/(U+d))}function X(U){var V=[],Z=U.length,G,R=0,D=b,q=m,te,se,ve,xe,T,$,ne,F,ue;for(te=U.lastIndexOf(f),te<0&&(te=0),se=0;se<te;++se)U.charCodeAt(se)>=128&&P("not-basic"),V.push(U.charCodeAt(se));for(ve=te>0?te+1:0;ve<Z;){for(xe=R,T=1,$=l;ve>=Z&&P("invalid-input"),ne=Q(U.charCodeAt(ve++)),(ne>=l||ne>w((s-R)/T))&&P("overflow"),R+=ne*T,F=$<=q?c:$>=q+u?u:$-q,!(ne<F);$+=l)ue=l-F,T>w(s/ue)&&P("overflow"),T*=ue;G=V.length+1,q=Y(R-xe,G,xe==0),w(R/G)>s-D&&P("overflow"),D+=w(R/G),R%=G,V.splice(R++,0,D)}return L(V)}function oe(U){var V,Z,G,R,D,q,te,se,ve,xe,T,$=[],ne,F,ue,de;for(U=I(U),ne=U.length,V=b,Z=0,D=m,q=0;q<ne;++q)T=U[q],T<128&&$.push(z(T));for(G=R=$.length,R&&$.push(f);G<ne;){for(te=s,q=0;q<ne;++q)T=U[q],T>=V&&T<te&&(te=T);for(F=G+1,te-V>w((s-Z)/F)&&P("overflow"),Z+=(te-V)*F,V=te,q=0;q<ne;++q)if(T=U[q],T<V&&++Z>s&&P("overflow"),T==V){for(se=Z,ve=l;xe=ve<=D?c:ve>=D+u?u:ve-D,!(se<xe);ve+=l)de=se-xe,ue=l-xe,$.push(z(N(xe+de%ue,0))),se=w(de/ue);$.push(z(N(se,0))),D=Y(Z,F,G==R),Z=0,++G}++Z,++V}return $.join("")}function re(U){return _(U,function(V){return y.test(V)?X(V.slice(4).toLowerCase()):V})}function he(U){return _(U,function(V){return v.test(V)?"xn--"+oe(V):V})}if(o={version:"1.3.2",ucs2:{decode:I,encode:L},decode:X,encode:oe,toASCII:he,toUnicode:re},r&&n)if(e.exports==r)n.exports=o;else for(j in o)o.hasOwnProperty(j)&&(r[j]=o[j]);else a.punycode=o})(Lrt)})(O2,O2.exports)),O2.exports}var jre,Pre;function Nrt(){return Pre||(Pre=1,jre={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}),jre}var Z1={},OE,Are;function Drt(){if(Are)return OE;Are=1;function e(t,a){return Object.prototype.hasOwnProperty.call(t,a)}return OE=function(t,a,r,n){a=a||"&",r=r||"=";var i={};if(typeof t!="string"||t.length===0)return i;var o=/\+/g;t=t.split(a);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(o,"%20"),d=u.indexOf(r),h,m,b,f;d>=0?(h=u.substr(0,d),m=u.substr(d+1)):(h=u,m=""),b=decodeURIComponent(h),f=decodeURIComponent(m),e(i,b)?Array.isArray(i[b])?i[b].push(f):i[b]=[i[b],f]:i[b]=f}return i},OE}var SE,Mre;function $rt(){if(Mre)return SE;Mre=1;var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};return SE=function(t,a,r,n){return a=a||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map(function(s){return o+encodeURIComponent(e(s))}).join(a):o+encodeURIComponent(e(t[i]))}).join(a):n?encodeURIComponent(e(n))+r+encodeURIComponent(e(t)):""},SE}var Tre;function Irt(){return Tre||(Tre=1,Z1.decode=Z1.parse=Drt(),Z1.encode=Z1.stringify=$rt()),Z1}var Bre;function zE(){if(Bre)return ng;Bre=1;var e=_rt(),t=Nrt();ng.parse=x,ng.resolve=C,ng.resolveObject=w,ng.format=O,ng.Url=a;function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
|
|
10260
|
-
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=Irt();function x(z,j,P){if(z&&t.isObject(z)&&z instanceof a)return z;var B=new a;return B.parse(z,j,P),B}a.prototype.parse=function(z,j,P){if(!t.isString(z))throw new TypeError("Parameter 'url' must be a string, not "+typeof z);var B=z.indexOf("?"),_=B!==-1&&B<z.indexOf("#")?"?":"#",I=z.split(_),L=/\\/g;I[0]=I[0].replace(L,"/"),z=I.join(_);var Q=z;if(Q=Q.trim(),!P&&z.split("#").length===1){var N=i.exec(Q);if(N)return this.path=Q,this.href=Q,this.pathname=N[1],N[2]?(this.search=N[2],j?this.query=v.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var Y=r.exec(Q);if(Y){Y=Y[0];var X=Y.toLowerCase();this.protocol=X,Q=Q.substr(Y.length)}if(P||Y||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var oe=Q.substr(0,2)==="//";oe&&!(Y&&f[Y])&&(Q=Q.substr(2),this.slashes=!0)}if(!f[Y]&&(oe||Y&&!y[Y])){for(var re=-1,he=0;he<u.length;he++){var U=Q.indexOf(u[he]);U!==-1&&(re===-1||U<re)&&(re=U)}var V,Z;re===-1?Z=Q.lastIndexOf("@"):Z=Q.lastIndexOf("@",re),Z!==-1&&(V=Q.slice(0,Z),Q=Q.slice(Z+1),this.auth=decodeURIComponent(V)),re=-1;for(var he=0;he<c.length;he++){var U=Q.indexOf(c[he]);U!==-1&&(re===-1||U<re)&&(re=U)}re===-1&&(re=Q.length),this.host=Q.slice(0,re),Q=Q.slice(re),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var R=this.hostname.split(/\./),he=0,D=R.length;he<D;he++){var q=R[he];if(q&&!q.match(h)){for(var te="",se=0,ve=q.length;se<ve;se++)q.charCodeAt(se)>127?te+="x":te+=q[se];if(!te.match(h)){var xe=R.slice(0,he),T=R.slice(he+1),$=q.match(m);$&&(xe.push($[1]),T.unshift($[2])),T.length&&(Q="/"+T.join(".")+Q),this.hostname=xe.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=e.toASCII(this.hostname));var ne=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+ne,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Q[0]!=="/"&&(Q="/"+Q))}if(!b[X])for(var he=0,D=l.length;he<D;he++){var ue=l[he];if(Q.indexOf(ue)!==-1){var de=encodeURIComponent(ue);de===ue&&(de=escape(ue)),Q=Q.split(ue).join(de)}}var J=Q.indexOf("#");J!==-1&&(this.hash=Q.substr(J),Q=Q.slice(0,J));var ae=Q.indexOf("?");if(ae!==-1?(this.search=Q.substr(ae),this.query=Q.substr(ae+1),j&&(this.query=v.parse(this.query)),Q=Q.slice(0,ae)):j&&(this.search="",this.query={}),Q&&(this.pathname=Q),y[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ne=this.pathname||"",ce=this.search||"";this.path=ne+ce}return this.href=this.format(),this};function O(z){return t.isString(z)&&(z=x(z)),z instanceof a?z.format():a.prototype.format.call(z)}a.prototype.format=function(){var z=this.auth||"";z&&(z=encodeURIComponent(z),z=z.replace(/%3A/i,":"),z+="@");var j=this.protocol||"",P=this.pathname||"",B=this.hash||"",_=!1,I="";this.host?_=z+this.host:this.hostname&&(_=z+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(I=v.stringify(this.query));var L=this.search||I&&"?"+I||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||y[j])&&_!==!1?(_="//"+(_||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):_||(_=""),B&&B.charAt(0)!=="#"&&(B="#"+B),L&&L.charAt(0)!=="?"&&(L="?"+L),P=P.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}),L=L.replace("#","%23"),j+_+P+L+B};function C(z,j){return x(z,!1,!0).resolve(j)}a.prototype.resolve=function(z){return this.resolveObject(x(z,!1,!0)).format()};function w(z,j){return z?x(z,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(z){if(t.isString(z)){var j=new a;j.parse(z,!1,!0),z=j}for(var P=new a,B=Object.keys(this),_=0;_<B.length;_++){var I=B[_];P[I]=this[I]}if(P.hash=z.hash,z.href==="")return P.href=P.format(),P;if(z.slashes&&!z.protocol){for(var L=Object.keys(z),Q=0;Q<L.length;Q++){var N=L[Q];N!=="protocol"&&(P[N]=z[N])}return y[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(z.protocol&&z.protocol!==P.protocol){if(!y[z.protocol]){for(var Y=Object.keys(z),X=0;X<Y.length;X++){var oe=Y[X];P[oe]=z[oe]}return P.href=P.format(),P}if(P.protocol=z.protocol,!z.host&&!f[z.protocol]){for(var D=(z.pathname||"").split("/");D.length&&!(z.host=D.shift()););z.host||(z.host=""),z.hostname||(z.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),P.pathname=D.join("/")}else P.pathname=z.pathname;if(P.search=z.search,P.query=z.query,P.host=z.host||"",P.auth=z.auth,P.hostname=z.hostname||z.host,P.port=z.port,P.pathname||P.search){var re=P.pathname||"",he=P.search||"";P.path=re+he}return P.slashes=P.slashes||z.slashes,P.href=P.format(),P}var U=P.pathname&&P.pathname.charAt(0)==="/",V=z.host||z.pathname&&z.pathname.charAt(0)==="/",Z=V||U||P.host&&z.pathname,G=Z,R=P.pathname&&P.pathname.split("/")||[],D=z.pathname&&z.pathname.split("/")||[],q=P.protocol&&!y[P.protocol];if(q&&(P.hostname="",P.port=null,P.host&&(R[0]===""?R[0]=P.host:R.unshift(P.host)),P.host="",z.protocol&&(z.hostname=null,z.port=null,z.host&&(D[0]===""?D[0]=z.host:D.unshift(z.host)),z.host=null),Z=Z&&(D[0]===""||R[0]==="")),V)P.host=z.host||z.host===""?z.host:P.host,P.hostname=z.hostname||z.hostname===""?z.hostname:P.hostname,P.search=z.search,P.query=z.query,R=D;else if(D.length)R||(R=[]),R.pop(),R=R.concat(D),P.search=z.search,P.query=z.query;else if(!t.isNullOrUndefined(z.search)){if(q){P.hostname=P.host=R.shift();var te=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;te&&(P.auth=te.shift(),P.host=P.hostname=te.shift())}return P.search=z.search,P.query=z.query,(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!R.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var se=R.slice(-1)[0],ve=(P.host||z.host||R.length>1)&&(se==="."||se==="..")||se==="",xe=0,T=R.length;T>=0;T--)se=R[T],se==="."?R.splice(T,1):se===".."?(R.splice(T,1),xe++):xe&&(R.splice(T,1),xe--);if(!Z&&!G)for(;xe--;xe)R.unshift("..");Z&&R[0]!==""&&(!R[0]||R[0].charAt(0)!=="/")&&R.unshift(""),ve&&R.join("/").substr(-1)!=="/"&&R.push("");var $=R[0]===""||R[0]&&R[0].charAt(0)==="/";if(q){P.hostname=P.host=$?"":R.length?R.shift():"";var te=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;te&&(P.auth=te.shift(),P.host=P.hostname=te.shift())}return Z=Z||P.host&&R.length,Z&&!$&&R.unshift(""),R.length?P.pathname=R.join("/"):(P.pathname=null,P.path=null),(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=z.auth||P.auth,P.slashes=P.slashes||z.slashes,P.href=P.format(),P},a.prototype.parseHost=function(){var z=this.host,j=n.exec(z);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),z=z.substr(0,z.length-j.length)),z&&(this.hostname=z)},ng}var CE,Ere;function Krt(){if(Ere)return CE;Ere=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return CE=e(),CE}var jE,Rre;function Vrt(){if(Rre)return jE;Rre=1;var e=Krt();return jE=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},jE}var PE,Lre;function S2(){if(Lre)return PE;Lre=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return PE={jptr:a,jpescape:e,jpunescape:t},PE}var AE,_re;function ME(){if(_re)return AE;_re=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return AE={isRef:e},AE}var TE,Nre;function z2(){if(Nre)return TE;Nre=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return TE={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},TE}var BE,Dre;function EE(){if(Dre)return BE;Dre=1;const e=S2().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return BE={recurse:a},BE}var RE,$re;function Hrt(){if($re)return RE;$re=1;const e=EE().recurse,t=z2().shallowClone,a=S2().jptr,r=ME().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=n(l),m=1;for(;m>0;)m=0,e(u,l.state,function(b,f,y){if(r(b,f)){let v=b[f];if(m++,l.cache[v]){let x=l.cache[v];if(x.resolved)h.warn("Patching %s for %s",v,x.path),y.parent[y.pkey]=x.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=v);else{if(v===x.path)throw new Error(`Tight circle at ${x.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=a(x.source,x.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=a(x.source,x.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=v)}}else{let x={};x.path=y.path.split("/$ref")[0],x.key=v,h.warn("Dereffing %s at %s",v,x.path),x.source=d,x.data=a(x.source,x.key),x.data===!1&&(x.data=a(l.master,x.key),x.source=l.master),x.data===!1&&h.warn("Missing $ref target",x.key),l.cache[v]=x,x.data=y.parent[y.pkey]=i(a(x.source,x.key),x.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=v),x.resolved=!0}}});return u.data}return RE={dereference:i},RE}var LE,Ire;function Grt(){if(Ire)return LE;Ire=1,LE=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,m,b,f){typeof f>"u"&&(f=n()),s(h,"",0,[],void 0,0,f);var y;try{r.length===0?y=JSON.stringify(h,m,b):y=JSON.stringify(h,d(m),b)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var v=a.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return y}function o(h,m,b,f){var y=Object.getOwnPropertyDescriptor(f,b);y.get!==void 0?y.configurable?(Object.defineProperty(f,b,{value:h}),a.push([f,b,m,y])):r.push([m,b,h]):(f[b]=h,a.push([f,b,m]))}function s(h,m,b,f,y,v,x){v+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<f.length;O++)if(f[O]===h){o(t,h,m,y);return}if(typeof x.depthLimit<"u"&&v>x.depthLimit){o(e,h,m,y);return}if(typeof x.edgesLimit<"u"&&b+1>x.edgesLimit){o(e,h,m,y);return}if(f.push(h),Array.isArray(h))for(O=0;O<h.length;O++)s(h[O],O,O,f,h,v,x);else{var C=Object.keys(h);for(O=0;O<C.length;O++){var w=C[O];s(h[w],w,O,f,h,v,x)}}f.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,b,f){typeof f>"u"&&(f=n());var y=u(h,"",0,[],void 0,0,f)||h,v;try{r.length===0?v=JSON.stringify(y,m,b):v=JSON.stringify(y,d(m),b)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var x=a.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return v}function u(h,m,b,f,y,v,x){v+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<f.length;O++)if(f[O]===h){o(t,h,m,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&v>x.depthLimit){o(e,h,m,y);return}if(typeof x.edgesLimit<"u"&&b+1>x.edgesLimit){o(e,h,m,y);return}if(f.push(h),Array.isArray(h))for(O=0;O<h.length;O++)u(h[O],O,O,f,h,v,x);else{var C={},w=Object.keys(h).sort(l);for(O=0;O<w.length;O++){var z=w[O];u(h[z],z,O,f,h,v,x),C[z]=h[z]}if(typeof y<"u")a.push([y,m,h]),y[m]=C;else return C}f.pop()}}function d(h){return h=typeof h<"u"?h:function(m,b){return b},function(m,b){if(r.length>0)for(var f=0;f<r.length;f++){var y=r[f];if(y[1]===m&&y[0]===b){b=y[2],r.splice(f,1);break}}return h.call(this,m,b)}}return LE}var _E,Kre;function Vre(){if(Kre)return _E;Kre=1;var e={};const t=Grt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(y,v,x){return x.indexOf(y)===v}function n(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function o(y,v){function x(O,C){return t.stringify(O)===t.stringify(Object.assign({},O,C))}return x(y,v)&&x(v,y)}function s(y){let v=[];for(let x of y)v.find(function(O,C,w){return o(O,x)})||v.push(x);return v}function l(y){return y.length===s(y).length}function c(y){return y.find(function(v,x,O){return y.indexOf(v)<x})}function u(y){let v=0,x;if(y.length===0)return v;for(let O=0;O<y.length;O++)x=y.charCodeAt(O),v=(v<<5)-v+x,v|=0;return v}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,v){return v.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],m=["get","post","put","delete","patch","head","options","trace"];function b(y){y=y.replace("[]","Array");let v=y.split("/");return v[0]=v[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),v.join("/")}function f(y){return b(y.split("/").join("_"))}return _E={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:b,sanitiseAll:f},_E}var NE,Hre;function Frt(){if(Hre)return NE;Hre=1;const e=$v,t=uU(),a=zE(),r=$v,n=$v,i=S2().jptr,o=EE().recurse,s=z2().clone,l=Hrt().dereference,c=ME().isRef,u=Vre();function d(P){return[...new Set(P)]}function h(P,B,_,I,L){return new Promise(function(Q,N){e.readFile(P,B,function(Y,X){Y?_.ignoreIOErrors&&L?(_.verbose&&console.warn("FAILED",I),_.externalRefs[I].failed=!0,Q(L)):N(Y):Q(X)})})}function m(P,B,_,I,L,Q){let N=Q.externalRefs[_+I].paths[0],Y=a.parse(L),X={},oe=1;for(;oe;)oe=0,o(P,{identityDetection:!0},function(re,he,U){if(c(re,he)){if(re[he].startsWith("#")){if(!X[re[he]]&&!re.$fixed){let V=s(i(B,re[he]));if(Q.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",re[he],u.colour.normal),V===!1){if(U.parent[U.pkey]={},Q.fatal){let Z=new Error("Fragment $ref resolution failed "+re[he]);if(Q.promise)Q.promise.reject(Z);else throw Z}}else oe++,U.parent[U.pkey]=V,X[re[he]]=U.path.replace("/%24ref","")}else if(!re.$fixed){let V=(N+"/"+X[re[he]]).split("/#/").join("/");U.parent[U.pkey]={$ref:V,"x-miro":re[he],$fixed:!0},Q.verbose>1&&console.warn("Replacing with",V),oe++}}else if(Y.protocol){let V=a.resolve(L,re[he]).toString();Q.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",re[he],"as",V,u.colour.normal),re["x-miro"]=re[he],Q.externalRefs[re[he]]&&(Q.externalRefs[V]||(Q.externalRefs[V]=Q.externalRefs[re[he]]),Q.externalRefs[V].failed=Q.externalRefs[re[he]].failed),re[he]=V}else if(!re["x-miro"]){let V=a.resolve(L,re[he]).toString(),Z=!1;Q.externalRefs[re[he]]&&(Z=Q.externalRefs[re[he]].failed),Z||(Q.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",re[he],"as",V,u.colour.normal),re["x-miro"]=re[he],re[he]=V)}}});return o(P,{},function(re,he,U){c(re,he)&&typeof re.$fixed<"u"&&delete re.$fixed}),Q.verbose>1&&console.warn("Finished fragment resolution"),P}function b(P,B){if(!B.filters||!B.filters.length)return P;for(let _ of B.filters)P=_(P,B);return P}function f(P,B){return P&&P.length>2?P:B&&B.length>2?B:"file:"}function y(P,B,_,I){var L=a.parse(_.source),Q=_.source.split("\\").join("/").split("/");Q.pop()||Q.pop();let N="",Y=B.split("#");Y.length>1&&(N="#"+Y[1],B=Y[0]),Q=Q.join("/");let X=a.parse(B),oe=f(X.protocol,L.protocol),re;if(oe==="file:"?re=t.resolve(Q?Q+"/":"",B):re=a.resolve(Q?Q+"/":"",B),_.cache[re]){_.verbose&&console.warn("CACHED",re,N);let he=s(_.cache[re]),U=_.externalRef=he;if(N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let V=new Error("Cached $ref resolution failed "+re+N);if(_.promise)_.promise.reject(V);else throw V}return U=m(U,he,B,N,re,_),U=b(U,_),I(s(U),re,_),Promise.resolve(U)}if(_.verbose&&console.warn("GET",re,N),_.handlers&&_.handlers[oe])return _.handlers[oe](Q,B,N,_).then(function(he){return _.externalRef=he,he=b(he,_),_.cache[re]=he,I(he,re,_),he}).catch(function(he){throw _.verbose&&console.warn(he),he});if(oe&&oe.startsWith("http")){const he=Object.assign({},_.fetchOptions,{agent:_.agent});return _.fetch(re,he).then(function(U){if(U.status!==200){if(_.ignoreIOErrors)return _.verbose&&console.warn("FAILED",B),_.externalRefs[B].failed=!0,'{"$ref":"'+B+'"}';throw new Error(`Received status code ${U.status}: ${re}`)}return U.text()}).then(function(U){try{let V=n.parse(U,{schema:"core",prettyErrors:!0});if(U=_.externalRef=V,_.cache[re]=s(U),N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let Z=new Error("Remote $ref resolution failed "+re+N);if(_.promise)_.promise.reject(Z);else throw Z}U=m(U,V,B,N,re,_),U=b(U,_)}catch(V){if(_.verbose&&console.warn(V),_.promise&&_.fatal)_.promise.reject(V);else throw V}return I(U,re,_),U}).catch(function(U){if(_.verbose&&console.warn(U),_.cache[re]={},_.promise&&_.fatal)_.promise.reject(U);else throw U})}else{const he='{"$ref":"'+B+'"}';return h(re,_.encoding||"utf8",_,B,he).then(function(U){try{let V=n.parse(U,{schema:"core",prettyErrors:!0});if(U=_.externalRef=V,_.cache[re]=s(U),N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let Z=new Error("File $ref resolution failed "+re+N);if(_.promise)_.promise.reject(Z);else throw Z}U=m(U,V,B,N,re,_),U=b(U,_)}catch(V){if(_.verbose&&console.warn(V),_.promise&&_.fatal)_.promise.reject(V);else throw V}return I(U,re,_),U}).catch(function(U){if(_.verbose&&console.warn(U),_.promise&&_.fatal)_.promise.reject(U);else throw U})}}function v(P){return new Promise(function(B,_){function I(Q,N,Y){if(Q[N]&&c(Q[N],"$ref")){let X=Q[N].$ref;if(!X.startsWith("#")){let oe="";if(!L[X]){let re=Object.keys(L).find(function(he,U,V){return X.startsWith(he+"/")});re&&(P.verbose&&console.warn("Found potential subschema at",re),oe="/"+(X.split("#")[1]||"").replace(re.split("#")[1]||""),oe=oe.split("/undefined").join(""),X=re)}if(L[X]||(L[X]={resolved:!1,paths:[],extras:{},description:Q[N].description}),L[X].resolved){if(!L[X].failed)if(P.rewriteRefs){let re=L[X].resolvedAt;P.verbose>1&&console.warn("Rewriting ref",X,re),Q[N]["x-miro"]=X,Q[N].$ref=re+oe}else Q[N]=s(L[X].data)}else L[X].paths.push(Y.path),L[X].extras[Y.path]=oe}}}let L=P.externalRefs;if(P.resolver.depth>0&&P.source===P.resolver.base)return B(L);o(P.openapi.definitions,{identityDetection:!0,path:"#/definitions"},I),o(P.openapi.components,{identityDetection:!0,path:"#/components"},I),o(P.openapi,{identityDetection:!0},I),B(L)})}function x(P){return new Promise(function(B,_){v(P).then(function(L){for(let Q in L)if(!L[Q].resolved){let N=P.resolver.depth;N>0&&N++,P.resolver.actions[N].push(function(){return y(P.openapi,Q,P,function(Y,X,oe){if(!L[Q].resolved){let U={};U.context=L[Q],U.$ref=Q,U.original=s(Y),U.updated=Y,U.source=X,oe.externals.push(U),L[Q].resolved=!0}let re=Object.assign({},oe,{source:"",resolver:{actions:oe.resolver.actions,depth:oe.resolver.actions.length-1,base:oe.resolver.base}});oe.patch&&L[Q].description&&!Y.description&&typeof Y=="object"&&(Y.description=L[Q].description),L[Q].data=Y;let he=d(L[Q].paths);he=he.sort(function(U,V){const Z=U.startsWith("#/components/")||U.startsWith("#/definitions/"),G=V.startsWith("#/components/")||V.startsWith("#/definitions/");return Z&&!G?-1:G&&!Z?1:0});for(let U of he)if(L[Q].resolvedAt&&U!==L[Q].resolvedAt&&U.indexOf("x-ms-examples/")<0)oe.verbose>1&&console.warn("Creating pointer to data at",U),i(oe.openapi,U,{$ref:L[Q].resolvedAt+L[Q].extras[U],"x-miro":Q+L[Q].extras[U]});else{L[Q].resolvedAt?oe.verbose>1&&console.warn("Avoiding circular reference"):(L[Q].resolvedAt=U,oe.verbose>1&&console.warn("Creating initial clone of data at",U));let V=s(Y);i(oe.openapi,U,V)}oe.resolver.actions[re.resolver.depth].length===0&&oe.resolver.actions[re.resolver.depth].push(function(){return x(re)})})})}}).catch(function(L){P.verbose&&console.warn(L),_(L)});let I={options:P};I.actions=P.resolver.actions[P.resolver.depth],B(I)})}const O=P=>P.reduce((B,_)=>B.then(I=>_().then(Array.prototype.concat.bind(I))),Promise.resolve([]));function C(P,B,_){P.resolver.actions.push([]),x(P).then(function(I){O(I.actions).then(function(){if(P.resolver.depth>=P.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),B(!0);P.resolver.depth++,P.resolver.actions[P.resolver.depth].length?setTimeout(function(){C(I.options,B,_)},0):(P.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),P.resolveInternal&&(P.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),P.openapi=l(P.openapi,P.original,{verbose:P.verbose-1}),P.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(P.openapi,{},function(L,Q,N){c(L,Q)&&(P.preserveMiro||delete L["x-miro"])}),B(P))}).catch(function(L){P.verbose&&console.warn(L),_(L)})}).catch(function(I){P.verbose&&console.warn(I),_(I)})}function w(P){if(P.cache||(P.cache={}),P.fetch||(P.fetch=r),P.source){let B=a.parse(P.source);(!B.protocol||B.protocol.length<=2)&&(P.source=t.resolve(P.source))}P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.resolver={},P.resolver.depth=0,P.resolver.base=P.source,P.resolver.actions=[[]]}function z(P){return w(P),new Promise(function(B,_){P.resolve?C(P,B,_):B(P)})}function j(P,B,_){return _||(_={}),_.openapi=P,_.source=B,_.resolve=!0,w(_),new Promise(function(I,L){C(_,I,L)})}return NE={optionalResolve:z,resolve:j},NE}var DE,Gre;function Qrt(){if(Gre)return DE;Gre=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return DE={getDefaultState:e,walkSchema:t},DE}var Fre={},$E={exports:{}},Qre={},qre;function Wre(){return qre||(qre=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(Qre)),Qre}var C2={},IE={exports:{}},j2={exports:{}},Ure;function qrt(){if(Ure)return j2.exports;Ure=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,w,z){return Function.prototype.apply.call(C,w,z)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:a=function(C){return Object.getOwnPropertyNames(C)};function r(C){console&&console.warn&&console.warn(C)}var n=Number.isNaN||function(C){return C!==C};function i(){i.init.call(this)}j2.exports=i,j2.exports.once=v,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(C){if(typeof C!="number"||C<0||n(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");o=C}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||n(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function l(C){return C._maxListeners===void 0?i.defaultMaxListeners:C._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(C){for(var w=[],z=1;z<arguments.length;z++)w.push(arguments[z]);var j=C==="error",P=this._events;if(P!==void 0)j=j&&P.error===void 0;else if(!j)return!1;if(j){var B;if(w.length>0&&(B=w[0]),B instanceof Error)throw B;var _=new Error("Unhandled error."+(B?" ("+B.message+")":""));throw _.context=B,_}var I=P[C];if(I===void 0)return!1;if(typeof I=="function")t(I,this,w);else for(var L=I.length,Q=b(I,L),z=0;z<L;++z)t(Q[z],this,w);return!0};function c(C,w,z,j){var P,B,_;if(s(z),B=C._events,B===void 0?(B=C._events=Object.create(null),C._eventsCount=0):(B.newListener!==void 0&&(C.emit("newListener",w,z.listener?z.listener:z),B=C._events),_=B[w]),_===void 0)_=B[w]=z,++C._eventsCount;else if(typeof _=="function"?_=B[w]=j?[z,_]:[_,z]:j?_.unshift(z):_.push(z),P=l(C),P>0&&_.length>P&&!_.warned){_.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=C,I.type=w,I.count=_.length,r(I)}return C}i.prototype.addListener=function(C,w){return c(this,C,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(C,w){return c(this,C,w,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(C,w,z){var j={fired:!1,wrapFn:void 0,target:C,type:w,listener:z},P=u.bind(j);return P.listener=z,j.wrapFn=P,P}i.prototype.once=function(C,w){return s(w),this.on(C,d(this,C,w)),this},i.prototype.prependOnceListener=function(C,w){return s(w),this.prependListener(C,d(this,C,w)),this},i.prototype.removeListener=function(C,w){var z,j,P,B,_;if(s(w),j=this._events,j===void 0)return this;if(z=j[C],z===void 0)return this;if(z===w||z.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete j[C],j.removeListener&&this.emit("removeListener",C,z.listener||w));else if(typeof z!="function"){for(P=-1,B=z.length-1;B>=0;B--)if(z[B]===w||z[B].listener===w){_=z[B].listener,P=B;break}if(P<0)return this;P===0?z.shift():f(z,P),z.length===1&&(j[C]=z[0]),j.removeListener!==void 0&&this.emit("removeListener",C,_||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(C){var w,z,j;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[C]),this;if(arguments.length===0){var P=Object.keys(z),B;for(j=0;j<P.length;++j)B=P[j],B!=="removeListener"&&this.removeAllListeners(B);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=z[C],typeof w=="function")this.removeListener(C,w);else if(w!==void 0)for(j=w.length-1;j>=0;j--)this.removeListener(C,w[j]);return this};function h(C,w,z){var j=C._events;if(j===void 0)return[];var P=j[w];return P===void 0?[]:typeof P=="function"?z?[P.listener||P]:[P]:z?y(P):b(P,P.length)}i.prototype.listeners=function(C){return h(this,C,!0)},i.prototype.rawListeners=function(C){return h(this,C,!1)},i.listenerCount=function(C,w){return typeof C.listenerCount=="function"?C.listenerCount(w):m.call(C,w)},i.prototype.listenerCount=m;function m(C){var w=this._events;if(w!==void 0){var z=w[C];if(typeof z=="function")return 1;if(z!==void 0)return z.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function b(C,w){for(var z=new Array(w),j=0;j<w;++j)z[j]=C[j];return z}function f(C,w){for(;w+1<C.length;w++)C[w]=C[w+1];C.pop()}function y(C){for(var w=new Array(C.length),z=0;z<w.length;++z)w[z]=C[z].listener||C[z];return w}function v(C,w){return new Promise(function(z,j){function P(_){C.removeListener(w,B),j(_)}function B(){typeof C.removeListener=="function"&&C.removeListener("error",P),z([].slice.call(arguments))}O(C,w,B,{once:!0}),w!=="error"&&x(C,P,{once:!0})})}function x(C,w,z){typeof C.on=="function"&&O(C,"error",w,z)}function O(C,w,z,j){if(typeof C.on=="function")j.once?C.once(w,z):C.on(w,z);else if(typeof C.addEventListener=="function")C.addEventListener(w,function P(B){j.once&&C.removeEventListener(w,P),z(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return j2.exports}var Jre,Zre;function Yre(){return Zre||(Zre=1,Jre=qrt().EventEmitter),Jre}var Xre={},Y1={},ene;function Wrt(){if(ene)return Y1;ene=1,Y1.byteLength=s,Y1.toByteArray=c,Y1.fromByteArray=h;for(var e=[],t=[],a=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=r.length;n<i;++n)e[n]=r[n],t[r.charCodeAt(n)]=n;t[45]=62,t[95]=63;function o(m){var b=m.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=m.indexOf("=");f===-1&&(f=b);var y=f===b?0:4-f%4;return[f,y]}function s(m){var b=o(m),f=b[0],y=b[1];return(f+y)*3/4-y}function l(m,b,f){return(b+f)*3/4-f}function c(m){var b,f=o(m),y=f[0],v=f[1],x=new a(l(m,y,v)),O=0,C=v>0?y-4:y,w;for(w=0;w<C;w+=4)b=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],x[O++]=b>>16&255,x[O++]=b>>8&255,x[O++]=b&255;return v===2&&(b=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,x[O++]=b&255),v===1&&(b=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,x[O++]=b>>8&255,x[O++]=b&255),x}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,b,f){for(var y,v=[],x=b;x<f;x+=3)y=(m[x]<<16&16711680)+(m[x+1]<<8&65280)+(m[x+2]&255),v.push(u(y));return v.join("")}function h(m){for(var b,f=m.length,y=f%3,v=[],x=16383,O=0,C=f-y;O<C;O+=x)v.push(d(m,O,O+x>C?C:O+x));return y===1?(b=m[f-1],v.push(e[b>>2]+e[b<<4&63]+"==")):y===2&&(b=(m[f-2]<<8)+m[f-1],v.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),v.join("")}return Y1}var KE={},tne;function Urt(){return tne||(tne=1,KE.read=function(e,t,a,r,n){var i,o,s=n*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=a?n-1:0,h=a?-1:1,m=e[t+d];for(d+=h,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-c}return(m?-1:1)*o*Math.pow(2,i-r)},KE.write=function(e,t,a,r,n,i){var o,s,l,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,b=r?1:-1,f=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[a+m]=s&255,m+=b,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=b,o/=256,c-=8);e[a+m-b]|=f*128}),KE}var ane;function X1(){return ane||(ane=1,(function(e){const t=Wrt(),a=Urt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const M=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(M,ee),M.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(M){if(M>n)throw new RangeError('The value "'+M+'" is invalid for option "size"');const ee=new Uint8Array(M);return Object.setPrototypeOf(ee,s.prototype),ee}function s(M,ee,le){if(typeof M=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(M)}return l(M,ee,le)}s.poolSize=8192;function l(M,ee,le){if(typeof M=="string")return h(M,ee);if(ArrayBuffer.isView(M))return b(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(fe(M,ArrayBuffer)||M&&fe(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(M,SharedArrayBuffer)||M&&fe(M.buffer,SharedArrayBuffer)))return f(M,ee,le);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ce=M.valueOf&&M.valueOf();if(Ce!=null&&Ce!==M)return s.from(Ce,ee,le);const Me=y(M);if(Me)return Me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return s.from(M[Symbol.toPrimitive]("string"),ee,le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}s.from=function(M,ee,le){return l(M,ee,le)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function u(M,ee,le){return c(M),M<=0?o(M):ee!==void 0?typeof le=="string"?o(M).fill(ee,le):o(M).fill(ee):o(M)}s.alloc=function(M,ee,le){return u(M,ee,le)};function d(M){return c(M),o(M<0?0:v(M)|0)}s.allocUnsafe=function(M){return d(M)},s.allocUnsafeSlow=function(M){return d(M)};function h(M,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const le=O(M,ee)|0;let Ce=o(le);const Me=Ce.write(M,ee);return Me!==le&&(Ce=Ce.slice(0,Me)),Ce}function m(M){const ee=M.length<0?0:v(M.length)|0,le=o(ee);for(let Ce=0;Ce<ee;Ce+=1)le[Ce]=M[Ce]&255;return le}function b(M){if(fe(M,Uint8Array)){const ee=new Uint8Array(M);return f(ee.buffer,ee.byteOffset,ee.byteLength)}return m(M)}function f(M,ee,le){if(ee<0||M.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<ee+(le||0))throw new RangeError('"length" is outside of buffer bounds');let Ce;return ee===void 0&&le===void 0?Ce=new Uint8Array(M):le===void 0?Ce=new Uint8Array(M,ee):Ce=new Uint8Array(M,ee,le),Object.setPrototypeOf(Ce,s.prototype),Ce}function y(M){if(s.isBuffer(M)){const ee=v(M.length)|0,le=o(ee);return le.length===0||M.copy(le,0,0,ee),le}if(M.length!==void 0)return typeof M.length!="number"||ye(M.length)?o(0):m(M);if(M.type==="Buffer"&&Array.isArray(M.data))return m(M.data)}function v(M){if(M>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return M|0}function x(M){return+M!=M&&(M=0),s.alloc(+M)}s.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==s.prototype},s.compare=function(M,ee){if(fe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),fe(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),!s.isBuffer(M)||!s.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===ee)return 0;let le=M.length,Ce=ee.length;for(let Me=0,Be=Math.min(le,Ce);Me<Be;++Me)if(M[Me]!==ee[Me]){le=M[Me],Ce=ee[Me];break}return le<Ce?-1:Ce<le?1:0},s.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(M,ee){if(!Array.isArray(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return s.alloc(0);let le;if(ee===void 0)for(ee=0,le=0;le<M.length;++le)ee+=M[le].length;const Ce=s.allocUnsafe(ee);let Me=0;for(le=0;le<M.length;++le){let Be=M[le];if(fe(Be,Uint8Array))Me+Be.length>Ce.length?(s.isBuffer(Be)||(Be=s.from(Be)),Be.copy(Ce,Me)):Uint8Array.prototype.set.call(Ce,Be,Me);else if(s.isBuffer(Be))Be.copy(Ce,Me);else throw new TypeError('"list" argument must be an Array of Buffers');Me+=Be.length}return Ce};function O(M,ee){if(s.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||fe(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);const le=M.length,Ce=arguments.length>2&&arguments[2]===!0;if(!Ce&&le===0)return 0;let Me=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return le;case"utf8":case"utf-8":return J(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le*2;case"hex":return le>>>1;case"base64":return be(M).length;default:if(Me)return Ce?-1:J(M).length;ee=(""+ee).toLowerCase(),Me=!0}}s.byteLength=O;function C(M,ee,le){let Ce=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((le===void 0||le>this.length)&&(le=this.length),le<=0)||(le>>>=0,ee>>>=0,le<=ee))return"";for(M||(M="utf8");;)switch(M){case"hex":return he(this,ee,le);case"utf8":case"utf-8":return N(this,ee,le);case"ascii":return oe(this,ee,le);case"latin1":case"binary":return re(this,ee,le);case"base64":return Q(this,ee,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,ee,le);default:if(Ce)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),Ce=!0}}s.prototype._isBuffer=!0;function w(M,ee,le){const Ce=M[ee];M[ee]=M[le],M[le]=Ce}s.prototype.swap16=function(){const M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<M;ee+=2)w(this,ee,ee+1);return this},s.prototype.swap32=function(){const M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<M;ee+=4)w(this,ee,ee+3),w(this,ee+1,ee+2);return this},s.prototype.swap64=function(){const M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<M;ee+=8)w(this,ee,ee+7),w(this,ee+1,ee+6),w(this,ee+2,ee+5),w(this,ee+3,ee+4);return this},s.prototype.toString=function(){const M=this.length;return M===0?"":arguments.length===0?N(this,0,M):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(M){if(!s.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:s.compare(this,M)===0},s.prototype.inspect=function(){let M="";const ee=e.INSPECT_MAX_BYTES;return M=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(M+=" ... "),"<Buffer "+M+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(M,ee,le,Ce,Me){if(fe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),!s.isBuffer(M))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(ee===void 0&&(ee=0),le===void 0&&(le=M?M.length:0),Ce===void 0&&(Ce=0),Me===void 0&&(Me=this.length),ee<0||le>M.length||Ce<0||Me>this.length)throw new RangeError("out of range index");if(Ce>=Me&&ee>=le)return 0;if(Ce>=Me)return-1;if(ee>=le)return 1;if(ee>>>=0,le>>>=0,Ce>>>=0,Me>>>=0,this===M)return 0;let Be=Me-Ce,Ne=le-ee;const at=Math.min(Be,Ne),dt=this.slice(Ce,Me),mt=M.slice(ee,le);for(let ct=0;ct<at;++ct)if(dt[ct]!==mt[ct]){Be=dt[ct],Ne=mt[ct];break}return Be<Ne?-1:Ne<Be?1:0};function z(M,ee,le,Ce,Me){if(M.length===0)return-1;if(typeof le=="string"?(Ce=le,le=0):le>2147483647?le=2147483647:le<-2147483648&&(le=-2147483648),le=+le,ye(le)&&(le=Me?0:M.length-1),le<0&&(le=M.length+le),le>=M.length){if(Me)return-1;le=M.length-1}else if(le<0)if(Me)le=0;else return-1;if(typeof ee=="string"&&(ee=s.from(ee,Ce)),s.isBuffer(ee))return ee.length===0?-1:j(M,ee,le,Ce,Me);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Me?Uint8Array.prototype.indexOf.call(M,ee,le):Uint8Array.prototype.lastIndexOf.call(M,ee,le):j(M,[ee],le,Ce,Me);throw new TypeError("val must be string, number or Buffer")}function j(M,ee,le,Ce,Me){let Be=1,Ne=M.length,at=ee.length;if(Ce!==void 0&&(Ce=String(Ce).toLowerCase(),Ce==="ucs2"||Ce==="ucs-2"||Ce==="utf16le"||Ce==="utf-16le")){if(M.length<2||ee.length<2)return-1;Be=2,Ne/=2,at/=2,le/=2}function dt(ct,xt){return Be===1?ct[xt]:ct.readUInt16BE(xt*Be)}let mt;if(Me){let ct=-1;for(mt=le;mt<Ne;mt++)if(dt(M,mt)===dt(ee,ct===-1?0:mt-ct)){if(ct===-1&&(ct=mt),mt-ct+1===at)return ct*Be}else ct!==-1&&(mt-=mt-ct),ct=-1}else for(le+at>Ne&&(le=Ne-at),mt=le;mt>=0;mt--){let ct=!0;for(let xt=0;xt<at;xt++)if(dt(M,mt+xt)!==dt(ee,xt)){ct=!1;break}if(ct)return mt}return-1}s.prototype.includes=function(M,ee,le){return this.indexOf(M,ee,le)!==-1},s.prototype.indexOf=function(M,ee,le){return z(this,M,ee,le,!0)},s.prototype.lastIndexOf=function(M,ee,le){return z(this,M,ee,le,!1)};function P(M,ee,le,Ce){le=Number(le)||0;const Me=M.length-le;Ce?(Ce=Number(Ce),Ce>Me&&(Ce=Me)):Ce=Me;const Be=ee.length;Ce>Be/2&&(Ce=Be/2);let Ne;for(Ne=0;Ne<Ce;++Ne){const at=parseInt(ee.substr(Ne*2,2),16);if(ye(at))return Ne;M[le+Ne]=at}return Ne}function B(M,ee,le,Ce){return ge(J(ee,M.length-le),M,le,Ce)}function _(M,ee,le,Ce){return ge(ae(ee),M,le,Ce)}function I(M,ee,le,Ce){return ge(be(ee),M,le,Ce)}function L(M,ee,le,Ce){return ge(ce(ee,M.length-le),M,le,Ce)}s.prototype.write=function(M,ee,le,Ce){if(ee===void 0)Ce="utf8",le=this.length,ee=0;else if(le===void 0&&typeof ee=="string")Ce=ee,le=this.length,ee=0;else if(isFinite(ee))ee=ee>>>0,isFinite(le)?(le=le>>>0,Ce===void 0&&(Ce="utf8")):(Ce=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Me=this.length-ee;if((le===void 0||le>Me)&&(le=Me),M.length>0&&(le<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ce||(Ce="utf8");let Be=!1;for(;;)switch(Ce){case"hex":return P(this,M,ee,le);case"utf8":case"utf-8":return B(this,M,ee,le);case"ascii":case"latin1":case"binary":return _(this,M,ee,le);case"base64":return I(this,M,ee,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,M,ee,le);default:if(Be)throw new TypeError("Unknown encoding: "+Ce);Ce=(""+Ce).toLowerCase(),Be=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(M,ee,le){return ee===0&&le===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(ee,le))}function N(M,ee,le){le=Math.min(M.length,le);const Ce=[];let Me=ee;for(;Me<le;){const Be=M[Me];let Ne=null,at=Be>239?4:Be>223?3:Be>191?2:1;if(Me+at<=le){let dt,mt,ct,xt;switch(at){case 1:Be<128&&(Ne=Be);break;case 2:dt=M[Me+1],(dt&192)===128&&(xt=(Be&31)<<6|dt&63,xt>127&&(Ne=xt));break;case 3:dt=M[Me+1],mt=M[Me+2],(dt&192)===128&&(mt&192)===128&&(xt=(Be&15)<<12|(dt&63)<<6|mt&63,xt>2047&&(xt<55296||xt>57343)&&(Ne=xt));break;case 4:dt=M[Me+1],mt=M[Me+2],ct=M[Me+3],(dt&192)===128&&(mt&192)===128&&(ct&192)===128&&(xt=(Be&15)<<18|(dt&63)<<12|(mt&63)<<6|ct&63,xt>65535&&xt<1114112&&(Ne=xt))}}Ne===null?(Ne=65533,at=1):Ne>65535&&(Ne-=65536,Ce.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),Ce.push(Ne),Me+=at}return X(Ce)}const Y=4096;function X(M){const ee=M.length;if(ee<=Y)return String.fromCharCode.apply(String,M);let le="",Ce=0;for(;Ce<ee;)le+=String.fromCharCode.apply(String,M.slice(Ce,Ce+=Y));return le}function oe(M,ee,le){let Ce="";le=Math.min(M.length,le);for(let Me=ee;Me<le;++Me)Ce+=String.fromCharCode(M[Me]&127);return Ce}function re(M,ee,le){let Ce="";le=Math.min(M.length,le);for(let Me=ee;Me<le;++Me)Ce+=String.fromCharCode(M[Me]);return Ce}function he(M,ee,le){const Ce=M.length;(!ee||ee<0)&&(ee=0),(!le||le<0||le>Ce)&&(le=Ce);let Me="";for(let Be=ee;Be<le;++Be)Me+=ze[M[Be]];return Me}function U(M,ee,le){const Ce=M.slice(ee,le);let Me="";for(let Be=0;Be<Ce.length-1;Be+=2)Me+=String.fromCharCode(Ce[Be]+Ce[Be+1]*256);return Me}s.prototype.slice=function(M,ee){const le=this.length;M=~~M,ee=ee===void 0?le:~~ee,M<0?(M+=le,M<0&&(M=0)):M>le&&(M=le),ee<0?(ee+=le,ee<0&&(ee=0)):ee>le&&(ee=le),ee<M&&(ee=M);const Ce=this.subarray(M,ee);return Object.setPrototypeOf(Ce,s.prototype),Ce};function V(M,ee,le){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+ee>le)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M],Me=1,Be=0;for(;++Be<ee&&(Me*=256);)Ce+=this[M+Be]*Me;return Ce},s.prototype.readUintBE=s.prototype.readUIntBE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M+--ee],Me=1;for(;ee>0&&(Me*=256);)Ce+=this[M+--ee]*Me;return Ce},s.prototype.readUint8=s.prototype.readUInt8=function(M,ee){return M=M>>>0,ee||V(M,1,this.length),this[M]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(M,ee){return M=M>>>0,ee||V(M,2,this.length),this[M]|this[M+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(M,ee){return M=M>>>0,ee||V(M,2,this.length),this[M]<<8|this[M+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},s.prototype.readBigUInt64LE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=ee+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24,Me=this[++M]+this[++M]*2**8+this[++M]*2**16+le*2**24;return BigInt(Ce)+(BigInt(Me)<<BigInt(32))}),s.prototype.readBigUInt64BE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=ee*2**24+this[++M]*2**16+this[++M]*2**8+this[++M],Me=this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+le;return(BigInt(Ce)<<BigInt(32))+BigInt(Me)}),s.prototype.readIntLE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M],Me=1,Be=0;for(;++Be<ee&&(Me*=256);)Ce+=this[M+Be]*Me;return Me*=128,Ce>=Me&&(Ce-=Math.pow(2,8*ee)),Ce},s.prototype.readIntBE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=ee,Me=1,Be=this[M+--Ce];for(;Ce>0&&(Me*=256);)Be+=this[M+--Ce]*Me;return Me*=128,Be>=Me&&(Be-=Math.pow(2,8*ee)),Be},s.prototype.readInt8=function(M,ee){return M=M>>>0,ee||V(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},s.prototype.readInt16LE=function(M,ee){M=M>>>0,ee||V(M,2,this.length);const le=this[M]|this[M+1]<<8;return le&32768?le|4294901760:le},s.prototype.readInt16BE=function(M,ee){M=M>>>0,ee||V(M,2,this.length);const le=this[M+1]|this[M]<<8;return le&32768?le|4294901760:le},s.prototype.readInt32LE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},s.prototype.readInt32BE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},s.prototype.readBigInt64LE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=this[M+4]+this[M+5]*2**8+this[M+6]*2**16+(le<<24);return(BigInt(Ce)<<BigInt(32))+BigInt(ee+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24)}),s.prototype.readBigInt64BE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=(ee<<24)+this[++M]*2**16+this[++M]*2**8+this[++M];return(BigInt(Ce)<<BigInt(32))+BigInt(this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+le)}),s.prototype.readFloatLE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),a.read(this,M,!0,23,4)},s.prototype.readFloatBE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),a.read(this,M,!1,23,4)},s.prototype.readDoubleLE=function(M,ee){return M=M>>>0,ee||V(M,8,this.length),a.read(this,M,!0,52,8)},s.prototype.readDoubleBE=function(M,ee){return M=M>>>0,ee||V(M,8,this.length),a.read(this,M,!1,52,8)};function Z(M,ee,le,Ce,Me,Be){if(!s.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Me||ee<Be)throw new RangeError('"value" argument is out of bounds');if(le+Ce>M.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,le=le>>>0,!Ce){const Ne=Math.pow(2,8*le)-1;Z(this,M,ee,le,Ne,0)}let Me=1,Be=0;for(this[ee]=M&255;++Be<le&&(Me*=256);)this[ee+Be]=M/Me&255;return ee+le},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,le=le>>>0,!Ce){const Ne=Math.pow(2,8*le)-1;Z(this,M,ee,le,Ne,0)}let Me=le-1,Be=1;for(this[ee+Me]=M&255;--Me>=0&&(Be*=256);)this[ee+Me]=M/Be&255;return ee+le},s.prototype.writeUint8=s.prototype.writeUInt8=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,1,255,0),this[ee]=M&255,ee+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,65535,0),this[ee]=M&255,this[ee+1]=M>>>8,ee+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,65535,0),this[ee]=M>>>8,this[ee+1]=M&255,ee+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,4294967295,0),this[ee+3]=M>>>24,this[ee+2]=M>>>16,this[ee+1]=M>>>8,this[ee]=M&255,ee+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,4294967295,0),this[ee]=M>>>24,this[ee+1]=M>>>16,this[ee+2]=M>>>8,this[ee+3]=M&255,ee+4};function G(M,ee,le,Ce,Me){$(ee,Ce,Me,M,le,7);let Be=Number(ee&BigInt(4294967295));M[le++]=Be,Be=Be>>8,M[le++]=Be,Be=Be>>8,M[le++]=Be,Be=Be>>8,M[le++]=Be;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,le}function R(M,ee,le,Ce,Me){$(ee,Ce,Me,M,le,7);let Be=Number(ee&BigInt(4294967295));M[le+7]=Be,Be=Be>>8,M[le+6]=Be,Be=Be>>8,M[le+5]=Be,Be=Be>>8,M[le+4]=Be;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return M[le+3]=Ne,Ne=Ne>>8,M[le+2]=Ne,Ne=Ne>>8,M[le+1]=Ne,Ne=Ne>>8,M[le]=Ne,le+8}s.prototype.writeBigUInt64LE=Te(function(M,ee=0){return G(this,M,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Te(function(M,ee=0){return R(this,M,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,!Ce){const at=Math.pow(2,8*le-1);Z(this,M,ee,le,at-1,-at)}let Me=0,Be=1,Ne=0;for(this[ee]=M&255;++Me<le&&(Be*=256);)M<0&&Ne===0&&this[ee+Me-1]!==0&&(Ne=1),this[ee+Me]=(M/Be>>0)-Ne&255;return ee+le},s.prototype.writeIntBE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,!Ce){const at=Math.pow(2,8*le-1);Z(this,M,ee,le,at-1,-at)}let Me=le-1,Be=1,Ne=0;for(this[ee+Me]=M&255;--Me>=0&&(Be*=256);)M<0&&Ne===0&&this[ee+Me+1]!==0&&(Ne=1),this[ee+Me]=(M/Be>>0)-Ne&255;return ee+le},s.prototype.writeInt8=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,1,127,-128),M<0&&(M=255+M+1),this[ee]=M&255,ee+1},s.prototype.writeInt16LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,32767,-32768),this[ee]=M&255,this[ee+1]=M>>>8,ee+2},s.prototype.writeInt16BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,32767,-32768),this[ee]=M>>>8,this[ee+1]=M&255,ee+2},s.prototype.writeInt32LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,2147483647,-2147483648),this[ee]=M&255,this[ee+1]=M>>>8,this[ee+2]=M>>>16,this[ee+3]=M>>>24,ee+4},s.prototype.writeInt32BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[ee]=M>>>24,this[ee+1]=M>>>16,this[ee+2]=M>>>8,this[ee+3]=M&255,ee+4},s.prototype.writeBigInt64LE=Te(function(M,ee=0){return G(this,M,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Te(function(M,ee=0){return R(this,M,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(M,ee,le,Ce,Me,Be){if(le+Ce>M.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("Index out of range")}function q(M,ee,le,Ce,Me){return ee=+ee,le=le>>>0,Me||D(M,ee,le,4),a.write(M,ee,le,Ce,23,4),le+4}s.prototype.writeFloatLE=function(M,ee,le){return q(this,M,ee,!0,le)},s.prototype.writeFloatBE=function(M,ee,le){return q(this,M,ee,!1,le)};function te(M,ee,le,Ce,Me){return ee=+ee,le=le>>>0,Me||D(M,ee,le,8),a.write(M,ee,le,Ce,52,8),le+8}s.prototype.writeDoubleLE=function(M,ee,le){return te(this,M,ee,!0,le)},s.prototype.writeDoubleBE=function(M,ee,le){return te(this,M,ee,!1,le)},s.prototype.copy=function(M,ee,le,Ce){if(!s.isBuffer(M))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Ce&&Ce!==0&&(Ce=this.length),ee>=M.length&&(ee=M.length),ee||(ee=0),Ce>0&&Ce<le&&(Ce=le),Ce===le||M.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("sourceEnd out of bounds");Ce>this.length&&(Ce=this.length),M.length-ee<Ce-le&&(Ce=M.length-ee+le);const Me=Ce-le;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,le,Ce):Uint8Array.prototype.set.call(M,this.subarray(le,Ce),ee),Me},s.prototype.fill=function(M,ee,le,Ce){if(typeof M=="string"){if(typeof ee=="string"?(Ce=ee,ee=0,le=this.length):typeof le=="string"&&(Ce=le,le=this.length),Ce!==void 0&&typeof Ce!="string")throw new TypeError("encoding must be a string");if(typeof Ce=="string"&&!s.isEncoding(Ce))throw new TypeError("Unknown encoding: "+Ce);if(M.length===1){const Be=M.charCodeAt(0);(Ce==="utf8"&&Be<128||Ce==="latin1")&&(M=Be)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(ee<0||this.length<ee||this.length<le)throw new RangeError("Out of range index");if(le<=ee)return this;ee=ee>>>0,le=le===void 0?this.length:le>>>0,M||(M=0);let Me;if(typeof M=="number")for(Me=ee;Me<le;++Me)this[Me]=M;else{const Be=s.isBuffer(M)?M:s.from(M,Ce),Ne=Be.length;if(Ne===0)throw new TypeError('The value "'+M+'" is invalid for argument "value"');for(Me=0;Me<le-ee;++Me)this[Me+ee]=Be[Me%Ne]}return this};const se={};function ve(M,ee,le){se[M]=class extends le{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,delete this.name}get code(){return M}set code(Ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ce,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(M,ee){return`The "${M}" argument must be of type number. Received type ${typeof ee}`},TypeError),ve("ERR_OUT_OF_RANGE",function(M,ee,le){let Ce=`The value of "${M}" is out of range.`,Me=le;return Number.isInteger(le)&&Math.abs(le)>2**32?Me=xe(String(le)):typeof le=="bigint"&&(Me=String(le),(le>BigInt(2)**BigInt(32)||le<-(BigInt(2)**BigInt(32)))&&(Me=xe(Me)),Me+="n"),Ce+=` It must be ${ee}. Received ${Me}`,Ce},RangeError);function xe(M){let ee="",le=M.length;const Ce=M[0]==="-"?1:0;for(;le>=Ce+4;le-=3)ee=`_${M.slice(le-3,le)}${ee}`;return`${M.slice(0,le)}${ee}`}function T(M,ee,le){ne(ee,"offset"),(M[ee]===void 0||M[ee+le]===void 0)&&F(ee,M.length-(le+1))}function $(M,ee,le,Ce,Me,Be){if(M>le||M<ee){const Ne=typeof ee=="bigint"?"n":"";let at;throw ee===0||ee===BigInt(0)?at=`>= 0${Ne} and < 2${Ne} ** ${(Be+1)*8}${Ne}`:at=`>= -(2${Ne} ** ${(Be+1)*8-1}${Ne}) and < 2 ** ${(Be+1)*8-1}${Ne}`,new se.ERR_OUT_OF_RANGE("value",at,M)}T(Ce,Me,Be)}function ne(M,ee){if(typeof M!="number")throw new se.ERR_INVALID_ARG_TYPE(ee,"number",M)}function F(M,ee,le){throw Math.floor(M)!==M?(ne(M,le),new se.ERR_OUT_OF_RANGE("offset","an integer",M)):ee<0?new se.ERR_BUFFER_OUT_OF_BOUNDS:new se.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ee}`,M)}const ue=/[^+/0-9A-Za-z-_]/g;function de(M){if(M=M.split("=")[0],M=M.trim().replace(ue,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function J(M,ee){ee=ee||1/0;let le;const Ce=M.length;let Me=null;const Be=[];for(let Ne=0;Ne<Ce;++Ne){if(le=M.charCodeAt(Ne),le>55295&&le<57344){if(!Me){if(le>56319){(ee-=3)>-1&&Be.push(239,191,189);continue}else if(Ne+1===Ce){(ee-=3)>-1&&Be.push(239,191,189);continue}Me=le;continue}if(le<56320){(ee-=3)>-1&&Be.push(239,191,189),Me=le;continue}le=(Me-55296<<10|le-56320)+65536}else Me&&(ee-=3)>-1&&Be.push(239,191,189);if(Me=null,le<128){if((ee-=1)<0)break;Be.push(le)}else if(le<2048){if((ee-=2)<0)break;Be.push(le>>6|192,le&63|128)}else if(le<65536){if((ee-=3)<0)break;Be.push(le>>12|224,le>>6&63|128,le&63|128)}else if(le<1114112){if((ee-=4)<0)break;Be.push(le>>18|240,le>>12&63|128,le>>6&63|128,le&63|128)}else throw new Error("Invalid code point")}return Be}function ae(M){const ee=[];for(let le=0;le<M.length;++le)ee.push(M.charCodeAt(le)&255);return ee}function ce(M,ee){let le,Ce,Me;const Be=[];for(let Ne=0;Ne<M.length&&!((ee-=2)<0);++Ne)le=M.charCodeAt(Ne),Ce=le>>8,Me=le%256,Be.push(Me),Be.push(Ce);return Be}function be(M){return t.toByteArray(de(M))}function ge(M,ee,le,Ce){let Me;for(Me=0;Me<Ce&&!(Me+le>=ee.length||Me>=M.length);++Me)ee[Me+le]=M[Me];return Me}function fe(M,ee){return M instanceof ee||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===ee.name}function ye(M){return M!==M}const ze=(function(){const M="0123456789abcdef",ee=new Array(256);for(let le=0;le<16;++le){const Ce=le*16;for(let Me=0;Me<16;++Me)ee[Ce+Me]=M[le]+M[Me]}return ee})();function Te(M){return typeof BigInt>"u"?tt:M}function tt(){throw new Error("BigInt not supported")}})(Xre)),Xre}const rne=iQ(Ute);var VE,nne;function Jrt(){if(nne)return VE;nne=1;function e(b,f){var y=Object.keys(b);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(b);f&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(b,x).enumerable})),y.push.apply(y,v)}return y}function t(b){for(var f=1;f<arguments.length;f++){var y=arguments[f]!=null?arguments[f]:{};f%2?e(Object(y),!0).forEach(function(v){a(b,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(v){Object.defineProperty(b,v,Object.getOwnPropertyDescriptor(y,v))})}return b}function a(b,f,y){return f=o(f),f in b?Object.defineProperty(b,f,{value:y,enumerable:!0,configurable:!0,writable:!0}):b[f]=y,b}function r(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}function n(b,f){for(var y=0;y<f.length;y++){var v=f[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,o(v.key),v)}}function i(b,f,y){return f&&n(b.prototype,f),Object.defineProperty(b,"prototype",{writable:!1}),b}function o(b){var f=s(b,"string");return typeof f=="symbol"?f:String(f)}function s(b,f){if(typeof b!="object"||b===null)return b;var y=b[Symbol.toPrimitive];if(y!==void 0){var v=y.call(b,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(b)}var l=X1(),c=l.Buffer,u=rne,d=u.inspect,h=d&&d.custom||"inspect";function m(b,f,y){c.prototype.copy.call(b,f,y)}return VE=(function(){function b(){r(this,b),this.head=null,this.tail=null,this.length=0}return i(b,[{key:"push",value:function(f){var y={data:f,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(f){var y={data:f,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=f+y.data;return v}},{key:"concat",value:function(f){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(f>>>0),v=this.head,x=0;v;)m(v.data,y,x),x+=v.data.length,v=v.next;return y}},{key:"consume",value:function(f,y){var v;return f<this.head.data.length?(v=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):f===this.head.data.length?v=this.shift():v=y?this._getString(f):this._getBuffer(f),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var y=this.head,v=1,x=y.data;for(f-=x.length;y=y.next;){var O=y.data,C=f>O.length?O.length:f;if(C===O.length?x+=O:x+=O.slice(0,f),f-=C,f===0){C===O.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=O.slice(C));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(f){var y=c.allocUnsafe(f),v=this.head,x=1;for(v.data.copy(y),f-=v.data.length;v=v.next;){var O=v.data,C=f>O.length?O.length:f;if(O.copy(y,y.length-f,0,C),f-=C,f===0){C===O.length?(++x,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=O.slice(C));break}++x}return this.length-=x,y}},{key:h,value:function(f,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),b})(),VE}var HE,ine;function one(){if(ine)return HE;ine=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return HE={destroy:e,undestroy:r,errorOrDestroy:i},HE}var GE={},sne;function Iv(){if(sne)return GE;sne=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(h,m,b){return typeof l=="string"?l:l(h,m,b)}var d=(function(h){e(m,h);function m(b,f,y){return h.call(this,u(b,f,y))||this}return m})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),GE.codes=t,GE}var FE,lne;function cne(){if(lne)return FE;lne=1;var e=Iv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return FE={getHighWaterMark:a},FE}var QE,une;function Zrt(){if(une)return QE;une=1,QE=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return QE}var qE,dne;function pne(){if(dne)return qE;dne=1,qE=P;function e(q){var te=this;this.next=null,this.entry=null,this.finish=function(){D(te,q)}}var t;P.WritableState=z;var a={deprecate:Zrt()},r=Yre(),n=X1().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(q){return n.from(q)}function s(q){return n.isBuffer(q)||q instanceof i}var l=one(),c=cne(),u=c.getHighWaterMark,d=Iv().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,f=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,O=d.ERR_UNKNOWN_ENCODING,C=l.errorOrDestroy;function w(){}function z(q,te,se){t=t||Kv(),q=q||{},typeof se!="boolean"&&(se=te instanceof t),this.objectMode=!!q.objectMode,se&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=q.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(xe){X(te,xe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}z.prototype.getBuffer=function(){for(var q=this.bufferedRequest,te=[];q;)te.push(q),q=q.next;return te},(function(){try{Object.defineProperty(z.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(q){return j.call(this,q)?!0:this!==P?!1:q&&q._writableState instanceof z}})):j=function(q){return q instanceof this};function P(q){t=t||Kv();var te=this instanceof t;if(!te&&!j.call(P,this))return new P(q);this._writableState=new z(q,this,te),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}P.prototype.pipe=function(){C(this,new f)};function B(q,te){var se=new x;C(q,se),process.nextTick(te,se)}function _(q,te,se,ve){var xe;return se===null?xe=new v:typeof se!="string"&&!te.objectMode&&(xe=new h("chunk",["string","Buffer"],se)),xe?(C(q,xe),process.nextTick(ve,xe),!1):!0}P.prototype.write=function(q,te,se){var ve=this._writableState,xe=!1,T=!ve.objectMode&&s(q);return T&&!n.isBuffer(q)&&(q=o(q)),typeof te=="function"&&(se=te,te=null),T?te="buffer":te||(te=ve.defaultEncoding),typeof se!="function"&&(se=w),ve.ending?B(this,se):(T||_(this,ve,q,se))&&(ve.pendingcb++,xe=L(this,ve,T,q,te,se)),xe},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&he(this,q))},P.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new O(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(q,te,se){return!q.objectMode&&q.decodeStrings!==!1&&typeof te=="string"&&(te=n.from(te,se)),te}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(q,te,se,ve,xe,T){if(!se){var $=I(te,ve,xe);ve!==$&&(se=!0,xe="buffer",ve=$)}var ne=te.objectMode?1:ve.length;te.length+=ne;var F=te.length<te.highWaterMark;if(F||(te.needDrain=!0),te.writing||te.corked){var ue=te.lastBufferedRequest;te.lastBufferedRequest={chunk:ve,encoding:xe,isBuf:se,callback:T,next:null},ue?ue.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else Q(q,te,!1,ne,ve,xe,T);return F}function Q(q,te,se,ve,xe,T,$){te.writelen=ve,te.writecb=$,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new y("write")):se?q._writev(xe,te.onwrite):q._write(xe,T,te.onwrite),te.sync=!1}function N(q,te,se,ve,xe){--te.pendingcb,se?(process.nextTick(xe,ve),process.nextTick(G,q,te),q._writableState.errorEmitted=!0,C(q,ve)):(xe(ve),q._writableState.errorEmitted=!0,C(q,ve),G(q,te))}function Y(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function X(q,te){var se=q._writableState,ve=se.sync,xe=se.writecb;if(typeof xe!="function")throw new b;if(Y(se),te)N(q,se,ve,te,xe);else{var T=U(se)||q.destroyed;!T&&!se.corked&&!se.bufferProcessing&&se.bufferedRequest&&he(q,se),ve?process.nextTick(oe,q,se,T,xe):oe(q,se,T,xe)}}function oe(q,te,se,ve){se||re(q,te),te.pendingcb--,ve(),G(q,te)}function re(q,te){te.length===0&&te.needDrain&&(te.needDrain=!1,q.emit("drain"))}function he(q,te){te.bufferProcessing=!0;var se=te.bufferedRequest;if(q._writev&&se&&se.next){var ve=te.bufferedRequestCount,xe=new Array(ve),T=te.corkedRequestsFree;T.entry=se;for(var $=0,ne=!0;se;)xe[$]=se,se.isBuf||(ne=!1),se=se.next,$+=1;xe.allBuffers=ne,Q(q,te,!0,te.length,xe,"",T.finish),te.pendingcb++,te.lastBufferedRequest=null,T.next?(te.corkedRequestsFree=T.next,T.next=null):te.corkedRequestsFree=new e(te),te.bufferedRequestCount=0}else{for(;se;){var F=se.chunk,ue=se.encoding,de=se.callback,J=te.objectMode?1:F.length;if(Q(q,te,!1,J,F,ue,de),se=se.next,te.bufferedRequestCount--,te.writing)break}se===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=se,te.bufferProcessing=!1}P.prototype._write=function(q,te,se){se(new m("_write()"))},P.prototype._writev=null,P.prototype.end=function(q,te,se){var ve=this._writableState;return typeof q=="function"?(se=q,q=null,te=null):typeof te=="function"&&(se=te,te=null),q!=null&&this.write(q,te),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||R(this,ve,se),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function V(q,te){q._final(function(se){te.pendingcb--,se&&C(q,se),te.prefinished=!0,q.emit("prefinish"),G(q,te)})}function Z(q,te){!te.prefinished&&!te.finalCalled&&(typeof q._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,process.nextTick(V,q,te)):(te.prefinished=!0,q.emit("prefinish")))}function G(q,te){var se=U(te);if(se&&(Z(q,te),te.pendingcb===0&&(te.finished=!0,q.emit("finish"),te.autoDestroy))){var ve=q._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&q.destroy()}return se}function R(q,te,se){te.ending=!0,G(q,te),se&&(te.finished?process.nextTick(se):q.once("finish",se)),te.ended=!0,q.writable=!1}function D(q,te,se){var ve=q.entry;for(q.entry=null;ve;){var xe=ve.callback;te.pendingcb--,xe(se),ve=ve.next}te.corkedRequestsFree.next=q}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(q){this._writableState&&(this._writableState.destroyed=q)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(q,te){te(q)},qE}var WE,hne;function Kv(){if(hne)return WE;hne=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};WE=o;for(var t=wne(),a=pne(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),WE}var UE={},JE={exports:{}},mne;function Yrt(){return mne||(mne=1,(function(e,t){var a=X1(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(JE,JE.exports)),JE.exports}var gne;function fne(){if(gne)return UE;gne=1;var e=Yrt().Buffer,t=e.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(v){if(!v)return"utf8";for(var x;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(x)return;v=(""+v).toLowerCase(),x=!0}}function r(v){var x=a(v);if(typeof x!="string"&&(e.isEncoding===t||!t(v)))throw new Error("Unknown encoding: "+v);return x||v}UE.StringDecoder=n;function n(v){this.encoding=r(v);var x;switch(this.encoding){case"utf16le":this.text=d,this.end=h,x=4;break;case"utf8":this.fillLast=l,x=4;break;case"base64":this.text=m,this.end=b,x=3;break;default:this.write=f,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}n.prototype.write=function(v){if(v.length===0)return"";var x,O;if(this.lastNeed){if(x=this.fillLast(v),x===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<v.length?x?x+this.text(v,O):this.text(v,O):x||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function i(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}function o(v,x,O){var C=x.length-1;if(C<O)return 0;var w=i(x[C]);return w>=0?(w>0&&(v.lastNeed=w-1),w):--C<O||w===-2?0:(w=i(x[C]),w>=0?(w>0&&(v.lastNeed=w-2),w):--C<O||w===-2?0:(w=i(x[C]),w>=0?(w>0&&(w===2?w=0:v.lastNeed=w-3),w):0))}function s(v,x,O){if((x[0]&192)!==128)return v.lastNeed=0,"\uFFFD";if(v.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return v.lastNeed=1,"\uFFFD";if(v.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return v.lastNeed=2,"\uFFFD"}}function l(v){var x=this.lastTotal-this.lastNeed,O=s(this,v);if(O!==void 0)return O;if(this.lastNeed<=v.length)return v.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,x,0,v.length),this.lastNeed-=v.length}function c(v,x){var O=o(this,v,x);if(!this.lastNeed)return v.toString("utf8",x);this.lastTotal=O;var C=v.length-(O-this.lastNeed);return v.copy(this.lastChar,0,C),v.toString("utf8",x,C)}function u(v){var x=v&&v.length?this.write(v):"";return this.lastNeed?x+"\uFFFD":x}function d(v,x){if((v.length-x)%2===0){var O=v.toString("utf16le",x);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",x,v.length-1)}function h(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,O)}return x}function m(v,x){var O=(v.length-x)%3;return O===0?v.toString("base64",x):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",x,v.length-O))}function b(v){var x=v&&v.length?this.write(v):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function f(v){return v.toString(this.encoding)}function y(v){return v&&v.length?this.write(v):""}return UE}var ZE,vne;function YE(){if(vne)return ZE;vne=1;var e=Iv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},m=i._readableState&&i._readableState.endEmitted,b=function(){l=!1,m=!0,c||s.call(i)},f=function(x){s.call(i,x)},y=function(){var x;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(x=new e),s.call(i,x);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(x=new e),s.call(i,x)},v=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",y),i.req?v():i.on("request",v)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",b),i.on("finish",h),o.error!==!1&&i.on("error",f),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",v),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",b),i.removeListener("error",f),i.removeListener("close",y)}}return ZE=n,ZE}var XE,bne;function Xrt(){if(bne)return XE;bne=1;var e;function t(O,C,w){return C=a(C),C in O?Object.defineProperty(O,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):O[C]=w,O}function a(O){var C=r(O,"string");return typeof C=="symbol"?C:String(C)}function r(O,C){if(typeof O!="object"||O===null)return O;var w=O[Symbol.toPrimitive];if(w!==void 0){var z=w.call(O,C);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}var n=YE(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(O,C){return{value:O,done:C}}function m(O){var C=O[i];if(C!==null){var w=O[d].read();w!==null&&(O[c]=null,O[i]=null,O[o]=null,C(h(w,!1)))}}function b(O){process.nextTick(m,O)}function f(O,C){return function(w,z){O.then(function(){if(C[l]){w(h(void 0,!0));return}C[u](w,z)},z)}}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var O=this,C=this[s];if(C!==null)return Promise.reject(C);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(P,B){process.nextTick(function(){O[s]?B(O[s]):P(h(void 0,!0))})});var w=this[c],z;if(w)z=new Promise(f(w,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));z=new Promise(this[u])}return this[c]=z,z}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var O=this;return new Promise(function(C,w){O[d].destroy(null,function(z){if(z){w(z);return}C(h(void 0,!0))})})}),e),y),x=function(O){var C,w=Object.create(v,(C={},t(C,d,{value:O,writable:!0}),t(C,i,{value:null,writable:!0}),t(C,o,{value:null,writable:!0}),t(C,s,{value:null,writable:!0}),t(C,l,{value:O._readableState.endEmitted,writable:!0}),t(C,u,{value:function(z,j){var P=w[d].read();P?(w[c]=null,w[i]=null,w[o]=null,z(h(P,!1))):(w[i]=z,w[o]=j)},writable:!0}),C));return w[c]=null,n(O,function(z){if(z&&z.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=w[o];j!==null&&(w[c]=null,w[i]=null,w[o]=null,j(z)),w[s]=z;return}var P=w[i];P!==null&&(w[c]=null,w[i]=null,w[o]=null,P(h(void 0,!0))),w[l]=!0}),O.on("readable",b.bind(null,w)),w};return XE=x,XE}var yne,kne;function ent(){return kne||(kne=1,yne=function(){throw new Error("Readable.from is not available in the browser")}),yne}var e7,xne;function wne(){if(xne)return e7;xne=1,e7=B;var e;B.ReadableState=P;var t=function(T,$){return T.listeners($).length},a=Yre(),r=X1().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return r.from(T)}function o(T){return r.isBuffer(T)||T instanceof n}var s=rne,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Jrt(),u=one(),d=cne(),h=d.getHighWaterMark,m=Iv().codes,b=m.ERR_INVALID_ARG_TYPE,f=m.ERR_STREAM_PUSH_AFTER_EOF,y=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,O,C,w=u.errorOrDestroy,z=["error","close","destroy","pause","resume"];function j(T,$,ne){if(typeof T.prependListener=="function")return T.prependListener($,ne);!T._events||!T._events[$]?T.on($,ne):Array.isArray(T._events[$])?T._events[$].unshift(ne):T._events[$]=[ne,T._events[$]]}function P(T,$,ne){e=e||Kv(),T=T||{},typeof ne!="boolean"&&(ne=$ instanceof e),this.objectMode=!!T.objectMode,ne&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",ne),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(x||(x=fne().StringDecoder),this.decoder=new x(T.encoding),this.encoding=T.encoding)}function B(T){if(e=e||Kv(),!(this instanceof B))return new B(T);var $=this instanceof e;this._readableState=new P(T,this,$),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),a.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),B.prototype.destroy=u.destroy,B.prototype._undestroy=u.undestroy,B.prototype._destroy=function(T,$){$(T)},B.prototype.push=function(T,$){var ne=this._readableState,F;return ne.objectMode?F=!0:typeof T=="string"&&($=$||ne.defaultEncoding,$!==ne.encoding&&(T=r.from(T,$),$=""),F=!0),_(this,T,$,!1,F)},B.prototype.unshift=function(T){return _(this,T,null,!0,!1)};function _(T,$,ne,F,ue){l("readableAddChunk",$);var de=T._readableState;if($===null)de.reading=!1,X(T,de);else{var J;if(ue||(J=L(de,$)),J)w(T,J);else if(de.objectMode||$&&$.length>0)if(typeof $!="string"&&!de.objectMode&&Object.getPrototypeOf($)!==r.prototype&&($=i($)),F)de.endEmitted?w(T,new v):I(T,de,$,!0);else if(de.ended)w(T,new f);else{if(de.destroyed)return!1;de.reading=!1,de.decoder&&!ne?($=de.decoder.write($),de.objectMode||$.length!==0?I(T,de,$,!1):he(T,de)):I(T,de,$,!1)}else F||(de.reading=!1,he(T,de))}return!de.ended&&(de.length<de.highWaterMark||de.length===0)}function I(T,$,ne,F){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,T.emit("data",ne)):($.length+=$.objectMode?1:ne.length,F?$.buffer.unshift(ne):$.buffer.push(ne),$.needReadable&&oe(T)),he(T,$)}function L(T,$){var ne;return!o($)&&typeof $!="string"&&$!==void 0&&!T.objectMode&&(ne=new b("chunk",["string","Buffer","Uint8Array"],$)),ne}B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(T){x||(x=fne().StringDecoder);var $=new x(T);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var ne=this._readableState.buffer.head,F="";ne!==null;)F+=$.write(ne.data),ne=ne.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var Q=1073741824;function N(T){return T>=Q?T=Q:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function Y(T,$){return T<=0||$.length===0&&$.ended?0:$.objectMode?1:T!==T?$.flowing&&$.length?$.buffer.head.data.length:$.length:(T>$.highWaterMark&&($.highWaterMark=N(T)),T<=$.length?T:$.ended?$.length:($.needReadable=!0,0))}B.prototype.read=function(T){l("read",T),T=parseInt(T,10);var $=this._readableState,ne=T;if(T!==0&&($.emittedReadable=!1),T===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return l("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?se(this):oe(this),null;if(T=Y(T,$),T===0&&$.ended)return $.length===0&&se(this),null;var F=$.needReadable;l("need readable",F),($.length===0||$.length-T<$.highWaterMark)&&(F=!0,l("length less than watermark",F)),$.ended||$.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(T=Y(ne,$)));var ue;return T>0?ue=te(T,$):ue=null,ue===null?($.needReadable=$.length<=$.highWaterMark,T=0):($.length-=T,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),ne!==T&&$.ended&&se(this)),ue!==null&&this.emit("data",ue),ue};function X(T,$){if(l("onEofChunk"),!$.ended){if($.decoder){var ne=$.decoder.end();ne&&ne.length&&($.buffer.push(ne),$.length+=$.objectMode?1:ne.length)}$.ended=!0,$.sync?oe(T):($.needReadable=!1,$.emittedReadable||($.emittedReadable=!0,re(T)))}}function oe(T){var $=T._readableState;l("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(l("emitReadable",$.flowing),$.emittedReadable=!0,process.nextTick(re,T))}function re(T){var $=T._readableState;l("emitReadable_",$.destroyed,$.length,$.ended),!$.destroyed&&($.length||$.ended)&&(T.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,q(T)}function he(T,$){$.readingMore||($.readingMore=!0,process.nextTick(U,T,$))}function U(T,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var ne=$.length;if(l("maybeReadMore read 0"),T.read(0),ne===$.length)break}$.readingMore=!1}B.prototype._read=function(T){w(this,new y("_read()"))},B.prototype.pipe=function(T,$){var ne=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=T;break;case 1:F.pipes=[F.pipes,T];break;default:F.pipes.push(T);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,$);var ue=(!$||$.end!==!1)&&T!==null&&T!==process.stderr,de=ue?ae:tt;F.endEmitted?process.nextTick(de):ne.once("end",de),T.on("unpipe",J);function J(M,ee){l("onunpipe"),M===ne&&ee&&ee.hasUnpiped===!1&&(ee.hasUnpiped=!0,ge())}function ae(){l("onend"),T.end()}var ce=V(ne);T.on("drain",ce);var be=!1;function ge(){l("cleanup"),T.removeListener("close",ze),T.removeListener("finish",Te),T.removeListener("drain",ce),T.removeListener("error",ye),T.removeListener("unpipe",J),ne.removeListener("end",ae),ne.removeListener("end",tt),ne.removeListener("data",fe),be=!0,F.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&ce()}ne.on("data",fe);function fe(M){l("ondata");var ee=T.write(M);l("dest.write",ee),ee===!1&&((F.pipesCount===1&&F.pipes===T||F.pipesCount>1&&xe(F.pipes,T)!==-1)&&!be&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),ne.pause())}function ye(M){l("onerror",M),tt(),T.removeListener("error",ye),t(T,"error")===0&&w(T,M)}j(T,"error",ye);function ze(){T.removeListener("finish",Te),tt()}T.once("close",ze);function Te(){l("onfinish"),T.removeListener("close",ze),tt()}T.once("finish",Te);function tt(){l("unpipe"),ne.unpipe(T)}return T.emit("pipe",ne),F.flowing||(l("pipe resume"),ne.resume()),T};function V(T){return function(){var $=T._readableState;l("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(T,"data")&&($.flowing=!0,q(T))}}B.prototype.unpipe=function(T){var $=this._readableState,ne={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return T&&T!==$.pipes?this:(T||(T=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,T&&T.emit("unpipe",this,ne),this);if(!T){var F=$.pipes,ue=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var de=0;de<ue;de++)F[de].emit("unpipe",this,{hasUnpiped:!1});return this}var J=xe($.pipes,T);return J===-1?this:($.pipes.splice(J,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),T.emit("unpipe",this,ne),this)},B.prototype.on=function(T,$){var ne=a.prototype.on.call(this,T,$),F=this._readableState;return T==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):T==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?oe(this):F.reading||process.nextTick(G,this)),ne},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(T,$){var ne=a.prototype.removeListener.call(this,T,$);return T==="readable"&&process.nextTick(Z,this),ne},B.prototype.removeAllListeners=function(T){var $=a.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(Z,this),$};function Z(T){var $=T._readableState;$.readableListening=T.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:T.listenerCount("data")>0&&T.resume()}function G(T){l("readable nexttick read 0"),T.read(0)}B.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,R(this,T)),T.paused=!1,this};function R(T,$){$.resumeScheduled||($.resumeScheduled=!0,process.nextTick(D,T,$))}function D(T,$){l("resume",$.reading),$.reading||T.read(0),$.resumeScheduled=!1,T.emit("resume"),q(T),$.flowing&&!$.reading&&T.read(0)}B.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(T){var $=T._readableState;for(l("flow",$.flowing);$.flowing&&T.read()!==null;);}B.prototype.wrap=function(T){var $=this,ne=this._readableState,F=!1;T.on("end",function(){if(l("wrapped end"),ne.decoder&&!ne.ended){var J=ne.decoder.end();J&&J.length&&$.push(J)}$.push(null)}),T.on("data",function(J){if(l("wrapped data"),ne.decoder&&(J=ne.decoder.write(J)),!(ne.objectMode&&J==null)&&!(!ne.objectMode&&(!J||!J.length))){var ae=$.push(J);ae||(F=!0,T.pause())}});for(var ue in T)this[ue]===void 0&&typeof T[ue]=="function"&&(this[ue]=(function(J){return function(){return T[J].apply(T,arguments)}})(ue));for(var de=0;de<z.length;de++)T.on(z[de],this.emit.bind(this,z[de]));return this._read=function(J){l("wrapped _read",J),F&&(F=!1,T.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=Xrt()),O(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),B._fromList=te,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(T,$){if($.length===0)return null;var ne;return $.objectMode?ne=$.buffer.shift():!T||T>=$.length?($.decoder?ne=$.buffer.join(""):$.buffer.length===1?ne=$.buffer.first():ne=$.buffer.concat($.length),$.buffer.clear()):ne=$.buffer.consume(T,$.decoder),ne}function se(T){var $=T._readableState;l("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,process.nextTick(ve,$,T))}function ve(T,$){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,$.readable=!1,$.emit("end"),T.autoDestroy)){var ne=$._writableState;(!ne||ne.autoDestroy&&ne.finished)&&$.destroy()}}typeof Symbol=="function"&&(B.from=function(T,$){return C===void 0&&(C=ent()),C(B,T,$)});function xe(T,$){for(var ne=0,F=T.length;ne<F;ne++)if(T[ne]===$)return ne;return-1}return e7}var t7,One;function Sne(){if(One)return t7;One=1,t7=s;var e=Iv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Kv();function o(u,d){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new a);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),m(u);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=d,!m.transforming){var b=this._readableState;(m.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return t7}var a7,zne;function tnt(){if(zne)return a7;zne=1,a7=t;var e=Sne();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},a7}var r7,Cne;function ant(){if(Cne)return r7;Cne=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=Iv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,b,f){f=t(f);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=YE()),e(h,{readable:m,writable:b},function(x){if(x)return f(x);y=!0,f()});var v=!1;return function(x){if(!y&&!v){if(v=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();f(x||new n("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,m=new Array(h),b=0;b<h;b++)m[b]=arguments[b];var f=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var y,v=m.map(function(x,O){var C=O<m.length-1,w=O>0;return s(x,C,w,function(z){y||(y=z),z&&v.forEach(l),!C&&(v.forEach(l),f(y))})});return m.reduce(c)}return r7=d,r7}var jne;function Pne(){return jne||(jne=1,(function(e,t){t=e.exports=wne(),t.Stream=t,t.Readable=t,t.Writable=pne(),t.Duplex=Kv(),t.Transform=Sne(),t.PassThrough=tnt(),t.finished=YE(),t.pipeline=ant()})(IE,IE.exports)),IE.exports}var Ane;function Mne(){if(Ane)return C2;Ane=1;var e=Wre(),t=_8(),a=Pne(),r=C2.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=C2.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let f=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),f()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(y,v){c.headers[v.toLowerCase()]=y,c.rawHeaders.push(v,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(v,x){c._destroyed?x():c.push(Buffer.from(y))?v():c._resumeFetch=v})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{o.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=o.body.getReader();f()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(f){var y=f.match(/^([^:]+):\s*(.*)/);if(y){var v=y[1].toLowerCase();v==="set-cookie"?(c.headers[v]===void 0&&(c.headers[v]=[]),c.headers[v].push(y[2])):c.headers[v]!==void 0?c.headers[v]+=", "+y[2]:c.headers[v]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(c._charset=b[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){i(!0),o.push(null)},h.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},C2}var Tne;function rnt(){if(Tne)return $E.exports;Tne=1;var e=Wre(),t=_8(),a=Mne(),r=Pne(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=$E.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(b){d.setHeader(b,u.headers[b])});var h,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)m=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(h,m),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var h=this,m=u.toLowerCase();c.indexOf(m)===-1&&(h._headers[m]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,m=null;d.method!=="GET"&&d.method!=="HEAD"&&(m=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var b=[];if(Object.keys(h).forEach(function(x){var O=h[x].name,C=h[x].value;Array.isArray(C)?C.forEach(function(w){b.push([O,w])}):b.push([O,C])}),u._mode==="fetch"){var f=null;if(e.abortController){var y=new AbortController;f=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:b,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:f}).then(function(x){u._fetchResponse=x,u._resetTimers(!1),u._connect()},function(x){u._resetTimers(!0),u._destroyed||u.emit("error",x)})}else{var v=u._xhr=new globalThis.XMLHttpRequest;try{v.open(u._opts.method,u._opts.url,!0)}catch(x){process.nextTick(function(){u.emit("error",x)});return}"responseType"in v&&(v.responseType=u._mode),"withCredentials"in v&&(v.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in v&&v.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(v.timeout=d.requestTimeout,v.ontimeout=function(){u.emit("requestTimeout")}),b.forEach(function(x){v.setRequestHeader(x[0],x[1])}),u._response=null,v.onreadystatechange=function(){switch(v.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(v.onprogress=function(){u._onXHRProgress()}),v.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{v.send(m)}catch(x){process.nextTick(function(){u.emit("error",x)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var m=this;m._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var m=this;typeof u=="function"&&(h=u,u=void 0),r.Writable.prototype.end.call(m,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return $E.exports}var n7,Bne;function nnt(){if(Bne)return n7;Bne=1,n7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return n7}var Ene,Rne;function int(){return Rne||(Rne=1,Ene={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",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:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),Ene}var Lne;function ont(){return Lne||(Lne=1,(function(e){var t=rnt(),a=Mne(),r=nnt(),n=int(),i=zE(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,m=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+m,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var b=new t(s);return l&&b.on("response",l),b},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(Fre)),Fre}var _ne,Nne;function snt(){return Nne||(Nne=1,_ne={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},ont().STATUS_CODES)}),_ne}const lnt="7.0.8",cnt={version:lnt};var i7,Dne;function unt(){if(Dne)return i7;Dne=1;const e=$v,t=zE(),a=Vrt(),r=$v,n=$v,i=S2(),o=i.jptr,s=ME().isRef,l=z2().clone,c=z2().circularClone,u=EE().recurse,d=Frt(),h=Qrt(),m=Vre(),b=snt().statusCodes,f=cnt.version,y="3.0.0";let v;class x extends Error{constructor($){super($),this.name="S2OError"}}function O(T,$){let ne=new x(T);if(ne.options=$,$.promise)$.promise.reject(ne);else throw ne}function C(T,$,ne){ne.warnOnly?$[ne.warnProperty||"x-s2o-warning"]=T:O(T,ne)}function w(T,$,ne){if(T.nullable&&ne.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(ne.patch){if(ne.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let F of T.type){let ue={};if(F==="null")T.nullable=!0;else{ue.type=F;for(let de of m.arrayProperties)typeof T.prop<"u"&&(ue[de]=T[de],delete T[de])}ue.type&&T.oneOf.push(ue)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&C("Lost properties from oneOf",T,ne),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else O("(Patchable) schema type must not be an array",ne);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof $.required>"u"&&($.required=[]),Array.isArray($.required)&&$.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(ne.patches++,delete T.allowEmptyValue)}function z(T,$){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let ne in T.discriminator.mapping){let F=T.discriminator.mapping[ne];F.startsWith("#/definitions/")&&(T.discriminator.mapping[ne]=F.replace("#/definitions/","#/components/schemas/"))}}}function j(T,$){h.walkSchema(T,{},{},function(ne,F,ue){z(ne),w(ne,F,$)})}function P(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(T))}function B(T,$,ne){let F=ne.payload.options;if(s(T,$)){if(!T[$].startsWith("#/components/")){if(T[$]==="#/consumes")delete T[$],ne.parent[ne.pkey]=l(F.openapi.consumes);else if(T[$]==="#/produces")delete T[$],ne.parent[ne.pkey]=l(F.openapi.produces);else if(T[$].startsWith("#/definitions/")){let ue=T[$].replace("#/definitions/","").split("/");const de=i.jpunescape(ue[0]);let J=v.schemas[decodeURIComponent(de)];J?ue[0]=J:C("Could not resolve reference "+T[$],T,F),T[$]="#/components/schemas/"+ue.join("/")}else if(T[$].startsWith("#/parameters/"))T[$]="#/components/parameters/"+m.sanitise(T[$].replace("#/parameters/",""));else if(T[$].startsWith("#/responses/"))T[$]="#/components/responses/"+m.sanitise(T[$].replace("#/responses/",""));else if(T[$].startsWith("#")){let ue=l(i.jptr(F.openapi,T[$]));if(ue===!1)C("direct $ref not found "+T[$],T,F);else if(F.refmap[T[$]])T[$]=F.refmap[T[$]];else{let de=T[$];de=de.replace("/properties/headers/",""),de=de.replace("/properties/responses/",""),de=de.replace("/properties/parameters/",""),de=de.replace("/properties/schemas/","");let J="schemas",ae=de.lastIndexOf("/schema");if(J=de.indexOf("/headers/")>ae?"headers":de.indexOf("/responses/")>ae?"responses":de.indexOf("/example")>ae?"examples":de.indexOf("/x-")>ae?"extensions":de.indexOf("/parameters/")>ae?"parameters":"schemas",J==="schemas"&&j(ue,F),J!=="responses"&&J!=="extensions"){let ce=J.substr(0,J.length-1);ce==="parameter"&&ue.name&&ue.name===m.sanitise(ue.name)&&(ce=encodeURIComponent(ue.name));let be=1;for(T["x-miro"]&&(ce=P(T["x-miro"]),be="");i.jptr(F.openapi,"#/components/"+J+"/"+ce+be);)be=be===""?2:++be;let ge="#/components/"+J+"/"+ce+be,fe="";J==="examples"&&(ue={value:ue},fe="/value"),i.jptr(F.openapi,ge,ue),F.refmap[T[$]]=ge+fe,T[$]=ge+fe}}}}if(delete T["x-miro"],Object.keys(T).length>1){const ue=T[$],de=ne.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(de&&F.refSiblings==="allOf"?(delete T.$ref,ne.parent[ne.pkey]={allOf:[{$ref:ue},T]}):ne.parent[ne.pkey]={$ref:ue})}}if($==="x-ms-odata"&&typeof T[$]=="string"&&T[$].startsWith("#/")){let ue=T[$].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),de=v.schemas[decodeURIComponent(ue[0])];de?ue[0]=de:C("Could not resolve reference "+T[$],T,F),T[$]="#/components/schemas/"+ue.join("/")}}function _(T,$){for(let ne in $.refmap)i.jptr(T,ne,{$ref:$.refmap[ne]})}function I(T){for(let $ in T)for(let ne in T[$]){let F=m.sanitise(ne);ne!==F&&(T[$][F]=T[$][ne],delete T[$][ne])}}function L(T,$){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let ne={},F=T.flow;T.flow==="application"&&(F="clientCredentials"),T.flow==="accessCode"&&(F="authorizationCode"),typeof T.authorizationUrl<"u"&&(ne.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(ne.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),ne.scopes=T.scopes||{},T.flows={},T.flows[F]=ne,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&($.patch?($.patches++,delete T.name):O("(Patchable) oauth2 securitySchemes should not have name property",$))}}function Q(T){return T&&!T["x-s2o-delete"]}function N(T,$){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&C("Nested collectionFormats are not supported",T,$),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?C("collectionFormat:ssv is no longer supported for headers",T,$):T.collectionFormat==="pipes"?C("collectionFormat:pipes is no longer supported for headers",T,$):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(C("collectionFormat:tsv is no longer supported",T,$),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&($.patch?($.patches++,delete T.collectionFormat):O("(Patchable) collectionFormat is only applicable to header.type array",$)),delete T.type;for(let ne of m.parameterTypeProperties)typeof T[ne]<"u"&&(T.schema[ne]=T[ne],delete T[ne]);for(let ne of m.arrayProperties)typeof T[ne]<"u"&&(T.schema[ne]=T[ne],delete T[ne])}}function Y(T,$){if(T.$ref.indexOf("#/parameters/")>=0){let ne=T.$ref.split("#/parameters/");T.$ref=ne[0]+"#/components/parameters/"+m.sanitise(ne[1])}T.$ref.indexOf("#/definitions/")>=0&&C("Definition used as parameter",T,$)}function X(T,$){let ne={};for(let F of Object.keys(T))ne[F]=T[F],F==="parameters"&&(ne.requestBody={},$.rbname&&(ne[$.rbname]=""));return ne.requestBody={},ne}function oe(T,$,ne,F,ue,de,J){let ae={},ce=!0,be;if($&&$.consumes&&typeof $.consumes=="string")if(J.patch)J.patches++,$.consumes=[$.consumes];else return O("(Patchable) operation.consumes must be an array",J);Array.isArray(de.consumes)||delete de.consumes;let ge=(($?$.consumes:null)||de.consumes||[]).filter(m.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){Y(T,J);let fe=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),ye=!1,ze=de.components.parameters[fe];if((!ze||ze["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,ye=!0),ye){let Te=T.$ref,tt=o(de,T.$ref);!tt&&Te.startsWith("#/")?C("Could not resolve reference "+Te,T,J):tt&&(T=tt)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(J.patch?(J.patches++,T.type="string"):O("(Patchable) parameter.type is mandatory for non-body parameters",J)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=o(de,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,be=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=o(de,T.description.$ref)),T.description===null&&delete T.description;let fe=T.collectionFormat;if(T.type==="array"&&!fe&&(fe="csv"),fe&&(T.type!=="array"&&(J.patch?(J.patches++,delete T.collectionFormat):O("(Patchable) collectionFormat is only applicable to param.type array",J)),fe==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),fe==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),fe==="ssv"&&(T.in==="query"?T.style="spaceDelimited":C("collectionFormat:ssv is no longer supported except for in:query parameters",T,J)),fe==="pipes"&&(T.in==="query"?T.style="pipeDelimited":C("collectionFormat:pipes is no longer supported except for in:query parameters",T,J)),fe==="multi"&&(T.explode=!0),fe==="tsv"&&(C("collectionFormat:tsv is no longer supported",T,J),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)C("parameter has array,items and schema",T,J);else{T.schema&&J.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(ye,ze,Te){ze==="collectionFormat"&&typeof ye[ze]=="string"&&(fe&&ye[ze]!==fe&&C("Nested collectionFormats are not supported",T,J),delete ye[ze])}));for(let ye of m.parameterTypeProperties)typeof T[ye]<"u"&&(T.schema[ye]=T[ye]),delete T[ye]}T.schema&&j(T.schema,J),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){ce=!1,ae.content={};let fe="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(fe="multipart/form-data"),ae.content[fe]={},T.schema)ae.content[fe].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[fe].schema={},ae.content[fe].schema.type="object",ae.content[fe].schema.properties={},ae.content[fe].schema.properties[T.name]={};let ye=ae.content[fe].schema,ze=ae.content[fe].schema.properties[T.name];T.description&&(ze.description=T.description),T.example&&(ze.example=T.example),T.type&&(ze.type=T.type);for(let Te of m.parameterTypeProperties)typeof T[Te]<"u"&&(ze[Te]=T[Te]);T.required===!0&&(ye.required||(ye.required=[]),ye.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ze.default=T.default),ze.properties&&(ze.properties=T.properties),T.allOf&&(ze.allOf=T.allOf),T.type==="array"&&T.items&&(ze.items=T.items,ze.items.collectionFormat&&delete ze.items.collectionFormat),(be==="file"||T["x-s2o-originalType"]==="file")&&(ze.type="string",ze.format="binary"),re(T,ze)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",re(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=($&&$.operationId?m.sanitiseAll($.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),$&&J.rbname&&T.name&&($[J.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let fe of ge)ae.content[fe]={},ae.content[fe].schema=l(T.schema||{}),j(ae.content[fe].schema,J);re(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,$))if($.requestBody&&ce){$.requestBody["x-s2o-overloaded"]=!0;let fe=$.operationId||ue;C("Operation "+fe+" has multiple requestBodies",$,J)}else $.requestBody||($=ne[F]=X($,J)),$.requestBody.content&&$.requestBody.content["multipart/form-data"]&&$.requestBody.content["multipart/form-data"].schema&&$.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?($.requestBody.content["multipart/form-data"].schema.properties=Object.assign($.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),$.requestBody.content["multipart/form-data"].schema.required=($.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),$.requestBody.content["multipart/form-data"].schema.required.length||delete $.requestBody.content["multipart/form-data"].schema.required):$.requestBody.content&&$.requestBody.content["application/x-www-form-urlencoded"]&&$.requestBody.content["application/x-www-form-urlencoded"].schema&&$.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?($.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign($.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),$.requestBody.content["application/x-www-form-urlencoded"].schema.required=($.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),$.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete $.requestBody.content["application/x-www-form-urlencoded"].schema.required):($.requestBody=Object.assign($.requestBody,ae),$.requestBody["x-s2o-name"]||($.requestBody.schema&&$.requestBody.schema.$ref?$.requestBody["x-s2o-name"]=decodeURIComponent($.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):$.operationId&&($.requestBody["x-s2o-name"]=m.sanitiseAll($.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let fe of m.parameterTypeProperties)delete T[fe];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(J.patch?(J.patches++,T.required=!0):O("(Patchable) path parameters must be required:true ["+T.name+" in "+ue+"]",J))}return $}function re(T,$){for(let ne in T)ne.startsWith("x-")&&!ne.startsWith("x-s2o")&&($[ne]=T[ne])}function he(T,$,ne,F,ue){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?C("definition used as response: "+T.$ref,T,ue):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&ue.patch)&&(ue.patch?typeof T=="object"&&!Array.isArray(T)&&(ue.patches++,T.description=b[T]||""):O("(Patchable) response.description is mandatory",ue)),typeof T.schema<"u"){if(j(T.schema,ue),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),ne&&ne.produces&&typeof ne.produces=="string")if(ue.patch)ue.patches++,ne.produces=[ne.produces];else return O("(Patchable) operation.produces must be an array",ue);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let de=((ne?ne.produces:null)||F.produces||[]).filter(m.uniqueOnly);de.length||de.push("*/*"),T.content={};for(let J of de){if(T.content[J]={},T.content[J].schema=l(T.schema),T.examples&&T.examples[J]){let ae={};ae.value=T.examples[J],T.content[J].examples={},T.content[J].examples.response=ae,delete T.examples[J]}T.content[J].schema.type==="file"&&(T.content[J].schema={type:"string",format:"binary"})}delete T.schema}for(let de in T.examples)T.content||(T.content={}),T.content[de]||(T.content[de]={}),T.content[de].examples={},T.content[de].examples.response={},T.content[de].examples.response.value=T.examples[de];if(delete T.examples,T.headers)for(let de in T.headers)de.toLowerCase()==="status code"?ue.patch?(ue.patches++,delete T.headers[de]):O('(Patchable) "Status Code" is not a valid header',ue):N(T.headers[de],ue)}}function U(T,$,ne,F,ue){for(let de in T){let J=T[de];J&&J["x-trace"]&&typeof J["x-trace"]=="object"&&(J.trace=J["x-trace"],delete J["x-trace"]),J&&J["x-summary"]&&typeof J["x-summary"]=="string"&&(J.summary=J["x-summary"],delete J["x-summary"]),J&&J["x-description"]&&typeof J["x-description"]=="string"&&(J.description=J["x-description"],delete J["x-description"]),J&&J["x-servers"]&&Array.isArray(J["x-servers"])&&(J.servers=J["x-servers"],delete J["x-servers"]);for(let ae in J)if(m.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let ce=J[ae];if(ce&&ce.parameters&&Array.isArray(ce.parameters)){if(J.parameters)for(let be of J.parameters)typeof be.$ref=="string"&&(Y(be,ne),be=o(ue,be.$ref)),!ce.parameters.find(function(ge,fe,ye){return ge.name===be.name&&ge.in===be.in})&&(be.in==="formData"||be.in==="body"||be.type==="file")&&(ce=oe(be,ce,J,ae,de,ue,ne),ne.rbname&&ce[ne.rbname]===""&&delete ce[ne.rbname]);for(let be of ce.parameters)ce=oe(be,ce,J,ae,ae+":"+de,ue,ne);ne.rbname&&ce[ne.rbname]===""&&delete ce[ne.rbname],ne.debug||ce.parameters&&(ce.parameters=ce.parameters.filter(Q))}if(ce&&ce.security&&I(ce.security),typeof ce=="object"){if(!ce.responses){let be={};be.description="Default response",ce.responses={default:be}}for(let be in ce.responses){let ge=ce.responses[be];he(ge,be,ce,ue,ne)}}if(ce&&ce["x-servers"]&&Array.isArray(ce["x-servers"]))ce.servers=ce["x-servers"],delete ce["x-servers"];else if(ce&&ce.schemes&&ce.schemes.length){for(let be of ce.schemes)if((!ue.schemes||ue.schemes.indexOf(be)<0)&&(ce.servers||(ce.servers=[]),Array.isArray(ue.servers)))for(let ge of ue.servers){let fe=l(ge),ye=t.parse(fe.url);ye.protocol=be,fe.url=ye.format(),ce.servers.push(fe)}}if(ne.debug&&(ce["x-s2o-consumes"]=ce.consumes||[],ce["x-s2o-produces"]=ce.produces||[]),ce){if(delete ce.consumes,delete ce.produces,delete ce.schemes,ce["x-ms-examples"]){for(let be in ce["x-ms-examples"]){let ge=ce["x-ms-examples"][be],fe=m.sanitiseAll(be);if(ge.parameters)for(let ye in ge.parameters){let ze=ge.parameters[ye];for(let Te of(ce.parameters||[]).concat(J.parameters||[]))Te.$ref&&(Te=i.jptr(ue,Te.$ref)),Te.name===ye&&!Te.example&&(Te.examples||(Te.examples={}),Te.examples[be]={value:ze})}if(ge.responses)for(let ye in ge.responses){if(ge.responses[ye].headers)for(let ze in ge.responses[ye].headers){let Te=ge.responses[ye].headers[ze];for(let tt in ce.responses[ye].headers)if(tt===ze){let M=ce.responses[ye].headers[tt];M.example=Te}}if(ge.responses[ye].body&&(ue.components.examples[fe]={value:l(ge.responses[ye].body)},ce.responses[ye]&&ce.responses[ye].content))for(let ze in ce.responses[ye].content){let Te=ce.responses[ye].content[ze];Te.examples||(Te.examples={}),Te.examples[be]={$ref:"#/components/examples/"+fe}}}}delete ce["x-ms-examples"]}if(ce.parameters&&ce.parameters.length===0&&delete ce.parameters,ce.requestBody){let be=ce.operationId?m.sanitiseAll(ce.operationId):m.sanitiseAll(ae+de).toCamelCase(),ge=m.sanitise(ce.requestBody["x-s2o-name"]||be||"");delete ce.requestBody["x-s2o-name"];let fe=JSON.stringify(ce.requestBody),ye=m.hash(fe);if(!F[ye]){let Te={};Te.name=ge,Te.body=ce.requestBody,Te.refs=[],F[ye]=Te}let ze="#/"+$+"/"+encodeURIComponent(i.jpescape(de))+"/"+ae+"/requestBody";F[ye].refs.push(ze)}}}if(J&&J.parameters){for(let ae in J.parameters){let ce=J.parameters[ae];oe(ce,null,J,null,de,ue,ne)}!ne.debug&&Array.isArray(J.parameters)&&(J.parameters=J.parameters.filter(Q))}}}function V(T,$){let ne={};v={schemas:{}},T.security&&I(T.security);for(let ue in T.components.securitySchemes){let de=m.sanitise(ue);ue!==de&&(T.components.securitySchemes[de]&&O("Duplicate sanitised securityScheme name "+de,$),T.components.securitySchemes[de]=T.components.securitySchemes[ue],delete T.components.securitySchemes[ue]),L(T.components.securitySchemes[de],$)}for(let ue in T.components.schemas){let de=m.sanitiseAll(ue),J="";if(ue!==de){for(;T.components.schemas[de+J];)J=J?++J:2;T.components.schemas[de+J]=T.components.schemas[ue],delete T.components.schemas[ue]}v.schemas[ue]=de+J,j(T.components.schemas[de+J],$)}$.refmap={},u(T,{payload:{options:$}},B),_(T,$);for(let ue in T.components.parameters){let de=m.sanitise(ue);ue!==de&&(T.components.parameters[de]&&O("Duplicate sanitised parameter name "+de,$),T.components.parameters[de]=T.components.parameters[ue],delete T.components.parameters[ue]);let J=T.components.parameters[de];oe(J,null,null,null,de,T,$)}for(let ue in T.components.responses){let de=m.sanitise(ue);ue!==de&&(T.components.responses[de]&&O("Duplicate sanitised response name "+de,$),T.components.responses[de]=T.components.responses[ue],delete T.components.responses[ue]);let J=T.components.responses[de];if(he(J,de,null,T,$),J.headers)for(let ae in J.headers)ae.toLowerCase()==="status code"?$.patch?($.patches++,delete J.headers[ae]):O('(Patchable) "Status Code" is not a valid header',$):N(J.headers[ae],$)}for(let ue in T.components.requestBodies){let de=T.components.requestBodies[ue],J=JSON.stringify(de),ae=m.hash(J),ce={};ce.name=ue,ce.body=de,ce.refs=[],ne[ae]=ce}if(U(T.paths,"paths",$,ne,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",$,ne,T),!$.debug)for(let ue in T.components.parameters)T.components.parameters[ue]["x-s2o-delete"]&&delete T.components.parameters[ue];$.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let F=[];if(T.components.requestBodies={},!$.resolveInternal){let ue=1;for(let de in ne){let J=ne[de];if(J.refs.length>1){let ae="";for(J.name||(J.name="requestBody",ae=ue++);F.indexOf(J.name+ae)>=0;)ae=ae?++ae:2;J.name=J.name+ae,F.push(J.name),T.components.requestBodies[J.name]=l(J.body);for(let ce in J.refs){let be={};be.$ref="#/components/requestBodies/"+J.name,i.jptr(T,J.refs[ce],be)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function Z(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function($,ne){T.variables||(T.variables={}),T.variables[ne]={default:"unknown"}})),T}function G(T,$,ne){if(typeof T.info>"u"||T.info===null)if($.patch)$.patches++,T.info={version:"",title:""};else return ne(new x("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return ne(new x("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if($.patch)$.patches++,T.info.title="";else return ne(new x("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if($.patch)$.patches++,T.info.version="";else return ne(new x("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if($.patch)$.patches++,T.info.version=T.info.version.toString();else return ne(new x("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if($.patch)$.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return ne(new x("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if($.patch)$.patches++,T.info.termsOfService="";else return ne(new x("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if($.patch)$.patches++,delete T.info.termsOfService;else return ne(new x("(Patchable) info.termsOfService must be a URL"))}}}function R(T,$,ne){if(typeof T.paths>"u")if($.patch)$.patches++,T.paths={};else return ne(new x("(Patchable) paths object is mandatory"))}function D(T,$){const ne=new WeakSet;u(T,{identityDetection:!0},function(F,ue,de){typeof F[ue]=="object"&&F[ue]!==null&&(ne.has(F[ue])?$.anchors?F[ue]=l(F[ue]):O("YAML anchor or merge key at "+de.path,$):ne.add(F[ue]))})}function q(T,$,ne){return a(ne,new Promise(function(F,ue){if(T||(T={}),$.original=T,$.text||($.text=n.stringify(T)),$.externals=[],$.externalRefs={},$.rewriteRefs=!0,$.preserveMiro=!0,$.promise={},$.promise.resolve=F,$.promise.reject=ue,$.patches=0,$.cache||($.cache={}),$.source&&($.cache[$.source]=$.original),D(T,$),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){$.openapi=c(T),G($.openapi,$,ue),R($.openapi,$,ue),d.optionalResolve($).then(function(){return $.direct?F($.openapi):F($)}).catch(function(J){console.warn(J),ue(J)});return}if(!T.swagger||T.swagger!="2.0")return ue(new x("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let de=$.openapi={};if(de.openapi=typeof $.targetVersion=="string"&&$.targetVersion.startsWith("3.")?$.targetVersion:y,$.origin){de["x-origin"]||(de["x-origin"]=[]);let J={};J.url=$.source||$.origin,J.format="swagger",J.version=T.swagger,J.converter={},J.converter.url="https://github.com/mermade/oas-kit",J.converter.version=f,de["x-origin"].push(J)}if(de=Object.assign(de,c(T)),delete de.swagger,u(de,{},function(J,ae,ce){J[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&ce.path.indexOf("/example")<0&&delete J[ae]}),T.host)for(let J of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},ce=(T.basePath||"").replace(/\/$/,"");ae.url=(J?J+":":"")+"//"+T.host+ce,Z(ae),de.servers||(de.servers=[]),de.servers.push(ae)}else if(T.basePath){let J={};J.url=T.basePath,Z(J),de.servers||(de.servers=[]),de.servers.push(J)}if(delete de.host,delete de.basePath,de["x-servers"]&&Array.isArray(de["x-servers"])&&(de.servers=de["x-servers"],delete de["x-servers"]),T["x-ms-parameterized-host"]){let J=T["x-ms-parameterized-host"],ae={};ae.url=J.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const ce=ae.url.match(/\{\w+\}/g);for(let be in J.parameters){let ge=J.parameters[be];ge.$ref&&(ge=l(o(de,ge.$ref))),be.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=ce[be].replace("{","").replace("}","")),ae.variables[ge.name]=ge,delete ge.name)}de.servers||(de.servers=[]),J.useSchemePrefix===!1?de.servers.push(ae):T.schemes.forEach(be=>{de.servers.push(Object.assign({},ae,{url:be+"://"+ae.url}))}),delete de["x-ms-parameterized-host"]}G(de,$,ue),R(de,$,ue),typeof de.consumes=="string"&&(de.consumes=[de.consumes]),typeof de.produces=="string"&&(de.produces=[de.produces]),de.components={},de["x-callbacks"]&&(de.components.callbacks=de["x-callbacks"],delete de["x-callbacks"]),de.components.examples={},de.components.headers={},de["x-links"]&&(de.components.links=de["x-links"],delete de["x-links"]),de.components.parameters=de.parameters||{},de.components.responses=de.responses||{},de.components.requestBodies={},de.components.securitySchemes=de.securityDefinitions||{},de.components.schemas=de.definitions||{},delete de.definitions,delete de.responses,delete de.parameters,delete de.securityDefinitions,d.optionalResolve($).then(function(){V($.openapi,$),$.direct?F($.openapi):F($)}).catch(function(J){console.warn(J),ue(J)})}))}function te(T,$,ne){return a(ne,new Promise(function(F,ue){let de=null,J=null;try{de=JSON.parse(T),$.text=JSON.stringify(de,null,2)}catch(ae){J=ae;try{de=n.parse(T,{schema:"core",prettyErrors:!0}),$.sourceYaml=!0,$.text=T}catch(ce){J=ce}}de?q(de,$).then(ae=>F(ae)).catch(ae=>ue(ae)):ue(new x(J?J.message:"Could not parse string"))}))}function se(T,$,ne){return a(ne,new Promise(function(F,ue){$.origin=!0,$.source||($.source=T),$.verbose&&console.warn("GET "+T),$.fetch||($.fetch=r);const de=Object.assign({},$.fetchOptions,{agent:$.agent});$.fetch(T,de).then(function(J){if(J.status!==200)throw new x(`Received status code ${J.status}: ${T}`);return J.text()}).then(function(J){te(J,$).then(ae=>F(ae)).catch(ae=>ue(ae))}).catch(function(J){ue(J)})}))}function ve(T,$,ne){return a(ne,new Promise(function(F,ue){e.readFile(T,$.encoding||"utf8",function(de,J){de?ue(de):($.sourceFile=T,te(J,$).then(ae=>F(ae)).catch(ae=>ue(ae)))})}))}function xe(T,$,ne){return a(ne,new Promise(function(F,ue){let de="";T.on("data",function(J){de+=J}).on("end",function(){te(de,$).then(J=>F(J)).catch(J=>ue(J))})}))}return i7={S2OError:x,targetVersion:y,convert:q,convertObj:q,convertUrl:se,convertStr:te,convertFile:ve,convertStream:xe},i7}var dnt=unt();const pnt=Jr(dnt);function hnt(e){return e.paths||(e.paths={}),new Promise((t,a)=>pnt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function mnt(){try{return(await Sre())?.resolvedConfig.openapi||{}}catch{return{}}}async function gnt(e){const t=await Sre(),a={config:t,base:fu?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};fu&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=fnt(e):a.ref=e;const{bundle:{parsed:r}}=await Ert(a);return r.swagger!==void 0?hnt(r):r}function fnt(e){return{source:{absoluteRef:""},parsed:e}}async function vnt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await gnt(e||t);try{GQe(r)}catch{}return r}const bnt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=E.useState(),[s,l]=E.useState(!0),[c,u]=E.useState(null),[d,h]=E.useState(e||{});E.useEffect(()=>{async function b(){l(!0);try{const f=await mnt();h({...e,...f}),u(await vnt(a,t,e))}catch(f){o(f.message)}}b()},[a,t,e]);const m=E.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},FQe([c,t,d]));return E.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?vl(e?.hideLoading,!1)?null:p.jsx(qYe,{color:"--loading-spinner-color"}):E.isValidElement(n)?E.cloneElement(n,{store:m}):null};function ynt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(bnt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(qte,{withCommonStyles:!0,router:o||"hash"})})}function knt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function xnt(e){const t=knt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function wnt(e,t=document.querySelector("redoc")){xQ.hydrateRoot(t,p.jsx(qte,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function $ne(e,t={},a=s6("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}={...t,...xnt(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),xQ.createRoot(a).render(E.createElement(ynt,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const Ont="3.16.0",Snt="8dc0ef4d2d";function znt(){const e=s6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&$ne(t,{},e)}znt();function e0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ine={exports:{}},Kne;function Cnt(){return Kne||(Kne=1,(function(e,t){(function(a){e.exports=a()})(function(){return(function a(r,n,i){function o(c,u){if(!n[c]){if(!r[c]){var d=typeof e0=="function"&&e0;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var m=n[c]={exports:{}};r[c][0].call(m.exports,function(b){var f=r[c][1][b];return o(f||b)},m,m.exports,a,r,n,i)}return n[c].exports}for(var s=typeof e0=="function"&&e0,l=0;l<i.length;l++)o(i[l]);return o})({1:[function(a,r,n){var i=a("./utils"),o=a("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(l){for(var c,u,d,h,m,b,f,y=[],v=0,x=l.length,O=x,C=i.getTypeOf(l)!=="string";v<l.length;)O=x-v,d=C?(c=l[v++],u=v<x?l[v++]:0,v<x?l[v++]:0):(c=l.charCodeAt(v++),u=v<x?l.charCodeAt(v++):0,v<x?l.charCodeAt(v++):0),h=c>>2,m=(3&c)<<4|u>>4,b=1<O?(15&u)<<2|d>>6:64,f=2<O?63&d:64,y.push(s.charAt(h)+s.charAt(m)+s.charAt(b)+s.charAt(f));return y.join("")},n.decode=function(l){var c,u,d,h,m,b,f=0,y=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var x,O=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&O--,l.charAt(l.length-2)===s.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=o.uint8array?new Uint8Array(0|O):new Array(0|O);f<l.length;)c=s.indexOf(l.charAt(f++))<<2|(h=s.indexOf(l.charAt(f++)))>>4,u=(15&h)<<4|(m=s.indexOf(l.charAt(f++)))>>2,d=(3&m)<<6|(b=s.indexOf(l.charAt(f++))),x[y++]=c,m!==64&&(x[y++]=u),b!==64&&(x[y++]=d);return x}},{"./support":30,"./utils":32}],2:[function(a,r,n){var i=a("./external"),o=a("./stream/DataWorker"),s=a("./stream/Crc32Probe"),l=a("./stream/DataLengthProbe");function c(u,d,h,m,b){this.compressedSize=u,this.uncompressedSize=d,this.crc32=h,this.compression=m,this.compressedContent=b}c.prototype={getContentWorker:function(){var u=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,d,h){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(d.compressWorker(h)).pipe(new l("compressedSize")).withStreamInfo("compression",d)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,r,n){var i=a("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,r,n){var i=a("./utils"),o=(function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l})();r.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?(function(c,u,d,h){var m=o,b=h+d;c^=-1;for(var f=h;f<b;f++)c=c>>>8^m[255&(c^u[f])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,h){var m=o,b=h+d;c^=-1;for(var f=h;f<b;f++)c=c>>>8^m[255&(c^u.charCodeAt(f))];return-1^c})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(a,r,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(a,r,n){var i=null;i=typeof Promise<"u"?Promise:a("lie"),r.exports={Promise:i}},{lie:37}],7:[function(a,r,n){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=a("pako"),s=a("./utils"),l=a("./stream/GenericWorker"),c=i?"uint8array":"array";function u(d,h){l.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=h,this.meta={}}n.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(h){d.push({data:h,meta:d.meta})}},n.compressWorker=function(d){return new u("Deflate",d)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,r,n){function i(m,b){var f,y="";for(f=0;f<b;f++)y+=String.fromCharCode(255&m),m>>>=8;return y}function o(m,b,f,y,v,x){var O,C,w=m.file,z=m.compression,j=x!==c.utf8encode,P=s.transformTo("string",x(w.name)),B=s.transformTo("string",c.utf8encode(w.name)),_=w.comment,I=s.transformTo("string",x(_)),L=s.transformTo("string",c.utf8encode(_)),Q=B.length!==w.name.length,N=L.length!==_.length,Y="",X="",oe="",re=w.dir,he=w.date,U={crc32:0,compressedSize:0,uncompressedSize:0};b&&!f||(U.crc32=m.crc32,U.compressedSize=m.compressedSize,U.uncompressedSize=m.uncompressedSize);var V=0;b&&(V|=8),j||!Q&&!N||(V|=2048);var Z=0,G=0;re&&(Z|=16),v==="UNIX"?(G=798,Z|=(function(D,q){var te=D;return D||(te=q?16893:33204),(65535&te)<<16})(w.unixPermissions,re)):(G=20,Z|=(function(D){return 63&(D||0)})(w.dosPermissions)),O=he.getUTCHours(),O<<=6,O|=he.getUTCMinutes(),O<<=5,O|=he.getUTCSeconds()/2,C=he.getUTCFullYear()-1980,C<<=4,C|=he.getUTCMonth()+1,C<<=5,C|=he.getUTCDate(),Q&&(X=i(1,1)+i(u(P),4)+B,Y+="up"+i(X.length,2)+X),N&&(oe=i(1,1)+i(u(I),4)+L,Y+="uc"+i(oe.length,2)+oe);var R="";return R+=`
|
|
10260
|
+
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=Irt();function x(z,j,P){if(z&&t.isObject(z)&&z instanceof a)return z;var B=new a;return B.parse(z,j,P),B}a.prototype.parse=function(z,j,P){if(!t.isString(z))throw new TypeError("Parameter 'url' must be a string, not "+typeof z);var B=z.indexOf("?"),_=B!==-1&&B<z.indexOf("#")?"?":"#",I=z.split(_),L=/\\/g;I[0]=I[0].replace(L,"/"),z=I.join(_);var Q=z;if(Q=Q.trim(),!P&&z.split("#").length===1){var N=i.exec(Q);if(N)return this.path=Q,this.href=Q,this.pathname=N[1],N[2]?(this.search=N[2],j?this.query=v.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var Y=r.exec(Q);if(Y){Y=Y[0];var X=Y.toLowerCase();this.protocol=X,Q=Q.substr(Y.length)}if(P||Y||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var oe=Q.substr(0,2)==="//";oe&&!(Y&&f[Y])&&(Q=Q.substr(2),this.slashes=!0)}if(!f[Y]&&(oe||Y&&!y[Y])){for(var re=-1,he=0;he<u.length;he++){var U=Q.indexOf(u[he]);U!==-1&&(re===-1||U<re)&&(re=U)}var V,Z;re===-1?Z=Q.lastIndexOf("@"):Z=Q.lastIndexOf("@",re),Z!==-1&&(V=Q.slice(0,Z),Q=Q.slice(Z+1),this.auth=decodeURIComponent(V)),re=-1;for(var he=0;he<c.length;he++){var U=Q.indexOf(c[he]);U!==-1&&(re===-1||U<re)&&(re=U)}re===-1&&(re=Q.length),this.host=Q.slice(0,re),Q=Q.slice(re),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var R=this.hostname.split(/\./),he=0,D=R.length;he<D;he++){var q=R[he];if(q&&!q.match(h)){for(var te="",se=0,ve=q.length;se<ve;se++)q.charCodeAt(se)>127?te+="x":te+=q[se];if(!te.match(h)){var xe=R.slice(0,he),T=R.slice(he+1),$=q.match(m);$&&(xe.push($[1]),T.unshift($[2])),T.length&&(Q="/"+T.join(".")+Q),this.hostname=xe.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=e.toASCII(this.hostname));var ne=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+ne,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Q[0]!=="/"&&(Q="/"+Q))}if(!b[X])for(var he=0,D=l.length;he<D;he++){var ue=l[he];if(Q.indexOf(ue)!==-1){var de=encodeURIComponent(ue);de===ue&&(de=escape(ue)),Q=Q.split(ue).join(de)}}var J=Q.indexOf("#");J!==-1&&(this.hash=Q.substr(J),Q=Q.slice(0,J));var ae=Q.indexOf("?");if(ae!==-1?(this.search=Q.substr(ae),this.query=Q.substr(ae+1),j&&(this.query=v.parse(this.query)),Q=Q.slice(0,ae)):j&&(this.search="",this.query={}),Q&&(this.pathname=Q),y[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ne=this.pathname||"",ce=this.search||"";this.path=ne+ce}return this.href=this.format(),this};function O(z){return t.isString(z)&&(z=x(z)),z instanceof a?z.format():a.prototype.format.call(z)}a.prototype.format=function(){var z=this.auth||"";z&&(z=encodeURIComponent(z),z=z.replace(/%3A/i,":"),z+="@");var j=this.protocol||"",P=this.pathname||"",B=this.hash||"",_=!1,I="";this.host?_=z+this.host:this.hostname&&(_=z+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(I=v.stringify(this.query));var L=this.search||I&&"?"+I||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||y[j])&&_!==!1?(_="//"+(_||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):_||(_=""),B&&B.charAt(0)!=="#"&&(B="#"+B),L&&L.charAt(0)!=="?"&&(L="?"+L),P=P.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}),L=L.replace("#","%23"),j+_+P+L+B};function C(z,j){return x(z,!1,!0).resolve(j)}a.prototype.resolve=function(z){return this.resolveObject(x(z,!1,!0)).format()};function w(z,j){return z?x(z,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(z){if(t.isString(z)){var j=new a;j.parse(z,!1,!0),z=j}for(var P=new a,B=Object.keys(this),_=0;_<B.length;_++){var I=B[_];P[I]=this[I]}if(P.hash=z.hash,z.href==="")return P.href=P.format(),P;if(z.slashes&&!z.protocol){for(var L=Object.keys(z),Q=0;Q<L.length;Q++){var N=L[Q];N!=="protocol"&&(P[N]=z[N])}return y[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(z.protocol&&z.protocol!==P.protocol){if(!y[z.protocol]){for(var Y=Object.keys(z),X=0;X<Y.length;X++){var oe=Y[X];P[oe]=z[oe]}return P.href=P.format(),P}if(P.protocol=z.protocol,!z.host&&!f[z.protocol]){for(var D=(z.pathname||"").split("/");D.length&&!(z.host=D.shift()););z.host||(z.host=""),z.hostname||(z.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),P.pathname=D.join("/")}else P.pathname=z.pathname;if(P.search=z.search,P.query=z.query,P.host=z.host||"",P.auth=z.auth,P.hostname=z.hostname||z.host,P.port=z.port,P.pathname||P.search){var re=P.pathname||"",he=P.search||"";P.path=re+he}return P.slashes=P.slashes||z.slashes,P.href=P.format(),P}var U=P.pathname&&P.pathname.charAt(0)==="/",V=z.host||z.pathname&&z.pathname.charAt(0)==="/",Z=V||U||P.host&&z.pathname,G=Z,R=P.pathname&&P.pathname.split("/")||[],D=z.pathname&&z.pathname.split("/")||[],q=P.protocol&&!y[P.protocol];if(q&&(P.hostname="",P.port=null,P.host&&(R[0]===""?R[0]=P.host:R.unshift(P.host)),P.host="",z.protocol&&(z.hostname=null,z.port=null,z.host&&(D[0]===""?D[0]=z.host:D.unshift(z.host)),z.host=null),Z=Z&&(D[0]===""||R[0]==="")),V)P.host=z.host||z.host===""?z.host:P.host,P.hostname=z.hostname||z.hostname===""?z.hostname:P.hostname,P.search=z.search,P.query=z.query,R=D;else if(D.length)R||(R=[]),R.pop(),R=R.concat(D),P.search=z.search,P.query=z.query;else if(!t.isNullOrUndefined(z.search)){if(q){P.hostname=P.host=R.shift();var te=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;te&&(P.auth=te.shift(),P.host=P.hostname=te.shift())}return P.search=z.search,P.query=z.query,(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!R.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var se=R.slice(-1)[0],ve=(P.host||z.host||R.length>1)&&(se==="."||se==="..")||se==="",xe=0,T=R.length;T>=0;T--)se=R[T],se==="."?R.splice(T,1):se===".."?(R.splice(T,1),xe++):xe&&(R.splice(T,1),xe--);if(!Z&&!G)for(;xe--;xe)R.unshift("..");Z&&R[0]!==""&&(!R[0]||R[0].charAt(0)!=="/")&&R.unshift(""),ve&&R.join("/").substr(-1)!=="/"&&R.push("");var $=R[0]===""||R[0]&&R[0].charAt(0)==="/";if(q){P.hostname=P.host=$?"":R.length?R.shift():"";var te=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;te&&(P.auth=te.shift(),P.host=P.hostname=te.shift())}return Z=Z||P.host&&R.length,Z&&!$&&R.unshift(""),R.length?P.pathname=R.join("/"):(P.pathname=null,P.path=null),(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=z.auth||P.auth,P.slashes=P.slashes||z.slashes,P.href=P.format(),P},a.prototype.parseHost=function(){var z=this.host,j=n.exec(z);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),z=z.substr(0,z.length-j.length)),z&&(this.hostname=z)},ng}var CE,Ere;function Krt(){if(Ere)return CE;Ere=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return CE=e(),CE}var jE,Rre;function Vrt(){if(Rre)return jE;Rre=1;var e=Krt();return jE=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},jE}var PE,Lre;function S2(){if(Lre)return PE;Lre=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return PE={jptr:a,jpescape:e,jpunescape:t},PE}var AE,_re;function ME(){if(_re)return AE;_re=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return AE={isRef:e},AE}var TE,Nre;function z2(){if(Nre)return TE;Nre=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return TE={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},TE}var BE,Dre;function EE(){if(Dre)return BE;Dre=1;const e=S2().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return BE={recurse:a},BE}var RE,$re;function Hrt(){if($re)return RE;$re=1;const e=EE().recurse,t=z2().shallowClone,a=S2().jptr,r=ME().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=n(l),m=1;for(;m>0;)m=0,e(u,l.state,function(b,f,y){if(r(b,f)){let v=b[f];if(m++,l.cache[v]){let x=l.cache[v];if(x.resolved)h.warn("Patching %s for %s",v,x.path),y.parent[y.pkey]=x.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=v);else{if(v===x.path)throw new Error(`Tight circle at ${x.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=a(x.source,x.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=a(x.source,x.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=v)}}else{let x={};x.path=y.path.split("/$ref")[0],x.key=v,h.warn("Dereffing %s at %s",v,x.path),x.source=d,x.data=a(x.source,x.key),x.data===!1&&(x.data=a(l.master,x.key),x.source=l.master),x.data===!1&&h.warn("Missing $ref target",x.key),l.cache[v]=x,x.data=y.parent[y.pkey]=i(a(x.source,x.key),x.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=v),x.resolved=!0}}});return u.data}return RE={dereference:i},RE}var LE,Ire;function Grt(){if(Ire)return LE;Ire=1,LE=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,m,b,f){typeof f>"u"&&(f=n()),s(h,"",0,[],void 0,0,f);var y;try{r.length===0?y=JSON.stringify(h,m,b):y=JSON.stringify(h,d(m),b)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var v=a.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return y}function o(h,m,b,f){var y=Object.getOwnPropertyDescriptor(f,b);y.get!==void 0?y.configurable?(Object.defineProperty(f,b,{value:h}),a.push([f,b,m,y])):r.push([m,b,h]):(f[b]=h,a.push([f,b,m]))}function s(h,m,b,f,y,v,x){v+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<f.length;O++)if(f[O]===h){o(t,h,m,y);return}if(typeof x.depthLimit<"u"&&v>x.depthLimit){o(e,h,m,y);return}if(typeof x.edgesLimit<"u"&&b+1>x.edgesLimit){o(e,h,m,y);return}if(f.push(h),Array.isArray(h))for(O=0;O<h.length;O++)s(h[O],O,O,f,h,v,x);else{var C=Object.keys(h);for(O=0;O<C.length;O++){var w=C[O];s(h[w],w,O,f,h,v,x)}}f.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,b,f){typeof f>"u"&&(f=n());var y=u(h,"",0,[],void 0,0,f)||h,v;try{r.length===0?v=JSON.stringify(y,m,b):v=JSON.stringify(y,d(m),b)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var x=a.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return v}function u(h,m,b,f,y,v,x){v+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<f.length;O++)if(f[O]===h){o(t,h,m,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&v>x.depthLimit){o(e,h,m,y);return}if(typeof x.edgesLimit<"u"&&b+1>x.edgesLimit){o(e,h,m,y);return}if(f.push(h),Array.isArray(h))for(O=0;O<h.length;O++)u(h[O],O,O,f,h,v,x);else{var C={},w=Object.keys(h).sort(l);for(O=0;O<w.length;O++){var z=w[O];u(h[z],z,O,f,h,v,x),C[z]=h[z]}if(typeof y<"u")a.push([y,m,h]),y[m]=C;else return C}f.pop()}}function d(h){return h=typeof h<"u"?h:function(m,b){return b},function(m,b){if(r.length>0)for(var f=0;f<r.length;f++){var y=r[f];if(y[1]===m&&y[0]===b){b=y[2],r.splice(f,1);break}}return h.call(this,m,b)}}return LE}var _E,Kre;function Vre(){if(Kre)return _E;Kre=1;var e={};const t=Grt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(y,v,x){return x.indexOf(y)===v}function n(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function o(y,v){function x(O,C){return t.stringify(O)===t.stringify(Object.assign({},O,C))}return x(y,v)&&x(v,y)}function s(y){let v=[];for(let x of y)v.find(function(O,C,w){return o(O,x)})||v.push(x);return v}function l(y){return y.length===s(y).length}function c(y){return y.find(function(v,x,O){return y.indexOf(v)<x})}function u(y){let v=0,x;if(y.length===0)return v;for(let O=0;O<y.length;O++)x=y.charCodeAt(O),v=(v<<5)-v+x,v|=0;return v}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,v){return v.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],m=["get","post","put","delete","patch","head","options","trace"];function b(y){y=y.replace("[]","Array");let v=y.split("/");return v[0]=v[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),v.join("/")}function f(y){return b(y.split("/").join("_"))}return _E={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:b,sanitiseAll:f},_E}var NE,Hre;function Frt(){if(Hre)return NE;Hre=1;const e=$v,t=uU(),a=zE(),r=$v,n=$v,i=S2().jptr,o=EE().recurse,s=z2().clone,l=Hrt().dereference,c=ME().isRef,u=Vre();function d(P){return[...new Set(P)]}function h(P,B,_,I,L){return new Promise(function(Q,N){e.readFile(P,B,function(Y,X){Y?_.ignoreIOErrors&&L?(_.verbose&&console.warn("FAILED",I),_.externalRefs[I].failed=!0,Q(L)):N(Y):Q(X)})})}function m(P,B,_,I,L,Q){let N=Q.externalRefs[_+I].paths[0],Y=a.parse(L),X={},oe=1;for(;oe;)oe=0,o(P,{identityDetection:!0},function(re,he,U){if(c(re,he)){if(re[he].startsWith("#")){if(!X[re[he]]&&!re.$fixed){let V=s(i(B,re[he]));if(Q.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",re[he],u.colour.normal),V===!1){if(U.parent[U.pkey]={},Q.fatal){let Z=new Error("Fragment $ref resolution failed "+re[he]);if(Q.promise)Q.promise.reject(Z);else throw Z}}else oe++,U.parent[U.pkey]=V,X[re[he]]=U.path.replace("/%24ref","")}else if(!re.$fixed){let V=(N+"/"+X[re[he]]).split("/#/").join("/");U.parent[U.pkey]={$ref:V,"x-miro":re[he],$fixed:!0},Q.verbose>1&&console.warn("Replacing with",V),oe++}}else if(Y.protocol){let V=a.resolve(L,re[he]).toString();Q.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",re[he],"as",V,u.colour.normal),re["x-miro"]=re[he],Q.externalRefs[re[he]]&&(Q.externalRefs[V]||(Q.externalRefs[V]=Q.externalRefs[re[he]]),Q.externalRefs[V].failed=Q.externalRefs[re[he]].failed),re[he]=V}else if(!re["x-miro"]){let V=a.resolve(L,re[he]).toString(),Z=!1;Q.externalRefs[re[he]]&&(Z=Q.externalRefs[re[he]].failed),Z||(Q.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",re[he],"as",V,u.colour.normal),re["x-miro"]=re[he],re[he]=V)}}});return o(P,{},function(re,he,U){c(re,he)&&typeof re.$fixed<"u"&&delete re.$fixed}),Q.verbose>1&&console.warn("Finished fragment resolution"),P}function b(P,B){if(!B.filters||!B.filters.length)return P;for(let _ of B.filters)P=_(P,B);return P}function f(P,B){return P&&P.length>2?P:B&&B.length>2?B:"file:"}function y(P,B,_,I){var L=a.parse(_.source),Q=_.source.split("\\").join("/").split("/");Q.pop()||Q.pop();let N="",Y=B.split("#");Y.length>1&&(N="#"+Y[1],B=Y[0]),Q=Q.join("/");let X=a.parse(B),oe=f(X.protocol,L.protocol),re;if(oe==="file:"?re=t.resolve(Q?Q+"/":"",B):re=a.resolve(Q?Q+"/":"",B),_.cache[re]){_.verbose&&console.warn("CACHED",re,N);let he=s(_.cache[re]),U=_.externalRef=he;if(N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let V=new Error("Cached $ref resolution failed "+re+N);if(_.promise)_.promise.reject(V);else throw V}return U=m(U,he,B,N,re,_),U=b(U,_),I(s(U),re,_),Promise.resolve(U)}if(_.verbose&&console.warn("GET",re,N),_.handlers&&_.handlers[oe])return _.handlers[oe](Q,B,N,_).then(function(he){return _.externalRef=he,he=b(he,_),_.cache[re]=he,I(he,re,_),he}).catch(function(he){throw _.verbose&&console.warn(he),he});if(oe&&oe.startsWith("http")){const he=Object.assign({},_.fetchOptions,{agent:_.agent});return _.fetch(re,he).then(function(U){if(U.status!==200){if(_.ignoreIOErrors)return _.verbose&&console.warn("FAILED",B),_.externalRefs[B].failed=!0,'{"$ref":"'+B+'"}';throw new Error(`Received status code ${U.status}: ${re}`)}return U.text()}).then(function(U){try{let V=n.parse(U,{schema:"core",prettyErrors:!0});if(U=_.externalRef=V,_.cache[re]=s(U),N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let Z=new Error("Remote $ref resolution failed "+re+N);if(_.promise)_.promise.reject(Z);else throw Z}U=m(U,V,B,N,re,_),U=b(U,_)}catch(V){if(_.verbose&&console.warn(V),_.promise&&_.fatal)_.promise.reject(V);else throw V}return I(U,re,_),U}).catch(function(U){if(_.verbose&&console.warn(U),_.cache[re]={},_.promise&&_.fatal)_.promise.reject(U);else throw U})}else{const he='{"$ref":"'+B+'"}';return h(re,_.encoding||"utf8",_,B,he).then(function(U){try{let V=n.parse(U,{schema:"core",prettyErrors:!0});if(U=_.externalRef=V,_.cache[re]=s(U),N&&(U=i(U,N),U===!1&&(U={},_.fatal))){let Z=new Error("File $ref resolution failed "+re+N);if(_.promise)_.promise.reject(Z);else throw Z}U=m(U,V,B,N,re,_),U=b(U,_)}catch(V){if(_.verbose&&console.warn(V),_.promise&&_.fatal)_.promise.reject(V);else throw V}return I(U,re,_),U}).catch(function(U){if(_.verbose&&console.warn(U),_.promise&&_.fatal)_.promise.reject(U);else throw U})}}function v(P){return new Promise(function(B,_){function I(Q,N,Y){if(Q[N]&&c(Q[N],"$ref")){let X=Q[N].$ref;if(!X.startsWith("#")){let oe="";if(!L[X]){let re=Object.keys(L).find(function(he,U,V){return X.startsWith(he+"/")});re&&(P.verbose&&console.warn("Found potential subschema at",re),oe="/"+(X.split("#")[1]||"").replace(re.split("#")[1]||""),oe=oe.split("/undefined").join(""),X=re)}if(L[X]||(L[X]={resolved:!1,paths:[],extras:{},description:Q[N].description}),L[X].resolved){if(!L[X].failed)if(P.rewriteRefs){let re=L[X].resolvedAt;P.verbose>1&&console.warn("Rewriting ref",X,re),Q[N]["x-miro"]=X,Q[N].$ref=re+oe}else Q[N]=s(L[X].data)}else L[X].paths.push(Y.path),L[X].extras[Y.path]=oe}}}let L=P.externalRefs;if(P.resolver.depth>0&&P.source===P.resolver.base)return B(L);o(P.openapi.definitions,{identityDetection:!0,path:"#/definitions"},I),o(P.openapi.components,{identityDetection:!0,path:"#/components"},I),o(P.openapi,{identityDetection:!0},I),B(L)})}function x(P){return new Promise(function(B,_){v(P).then(function(L){for(let Q in L)if(!L[Q].resolved){let N=P.resolver.depth;N>0&&N++,P.resolver.actions[N].push(function(){return y(P.openapi,Q,P,function(Y,X,oe){if(!L[Q].resolved){let U={};U.context=L[Q],U.$ref=Q,U.original=s(Y),U.updated=Y,U.source=X,oe.externals.push(U),L[Q].resolved=!0}let re=Object.assign({},oe,{source:"",resolver:{actions:oe.resolver.actions,depth:oe.resolver.actions.length-1,base:oe.resolver.base}});oe.patch&&L[Q].description&&!Y.description&&typeof Y=="object"&&(Y.description=L[Q].description),L[Q].data=Y;let he=d(L[Q].paths);he=he.sort(function(U,V){const Z=U.startsWith("#/components/")||U.startsWith("#/definitions/"),G=V.startsWith("#/components/")||V.startsWith("#/definitions/");return Z&&!G?-1:G&&!Z?1:0});for(let U of he)if(L[Q].resolvedAt&&U!==L[Q].resolvedAt&&U.indexOf("x-ms-examples/")<0)oe.verbose>1&&console.warn("Creating pointer to data at",U),i(oe.openapi,U,{$ref:L[Q].resolvedAt+L[Q].extras[U],"x-miro":Q+L[Q].extras[U]});else{L[Q].resolvedAt?oe.verbose>1&&console.warn("Avoiding circular reference"):(L[Q].resolvedAt=U,oe.verbose>1&&console.warn("Creating initial clone of data at",U));let V=s(Y);i(oe.openapi,U,V)}oe.resolver.actions[re.resolver.depth].length===0&&oe.resolver.actions[re.resolver.depth].push(function(){return x(re)})})})}}).catch(function(L){P.verbose&&console.warn(L),_(L)});let I={options:P};I.actions=P.resolver.actions[P.resolver.depth],B(I)})}const O=P=>P.reduce((B,_)=>B.then(I=>_().then(Array.prototype.concat.bind(I))),Promise.resolve([]));function C(P,B,_){P.resolver.actions.push([]),x(P).then(function(I){O(I.actions).then(function(){if(P.resolver.depth>=P.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),B(!0);P.resolver.depth++,P.resolver.actions[P.resolver.depth].length?setTimeout(function(){C(I.options,B,_)},0):(P.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),P.resolveInternal&&(P.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),P.openapi=l(P.openapi,P.original,{verbose:P.verbose-1}),P.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(P.openapi,{},function(L,Q,N){c(L,Q)&&(P.preserveMiro||delete L["x-miro"])}),B(P))}).catch(function(L){P.verbose&&console.warn(L),_(L)})}).catch(function(I){P.verbose&&console.warn(I),_(I)})}function w(P){if(P.cache||(P.cache={}),P.fetch||(P.fetch=r),P.source){let B=a.parse(P.source);(!B.protocol||B.protocol.length<=2)&&(P.source=t.resolve(P.source))}P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.resolver={},P.resolver.depth=0,P.resolver.base=P.source,P.resolver.actions=[[]]}function z(P){return w(P),new Promise(function(B,_){P.resolve?C(P,B,_):B(P)})}function j(P,B,_){return _||(_={}),_.openapi=P,_.source=B,_.resolve=!0,w(_),new Promise(function(I,L){C(_,I,L)})}return NE={optionalResolve:z,resolve:j},NE}var DE,Gre;function Qrt(){if(Gre)return DE;Gre=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return DE={getDefaultState:e,walkSchema:t},DE}var Fre={},$E={exports:{}},Qre={},qre;function Wre(){return qre||(qre=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(Qre)),Qre}var C2={},IE={exports:{}},j2={exports:{}},Ure;function qrt(){if(Ure)return j2.exports;Ure=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,w,z){return Function.prototype.apply.call(C,w,z)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:a=function(C){return Object.getOwnPropertyNames(C)};function r(C){console&&console.warn&&console.warn(C)}var n=Number.isNaN||function(C){return C!==C};function i(){i.init.call(this)}j2.exports=i,j2.exports.once=v,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(C){if(typeof C!="number"||C<0||n(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");o=C}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||n(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function l(C){return C._maxListeners===void 0?i.defaultMaxListeners:C._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(C){for(var w=[],z=1;z<arguments.length;z++)w.push(arguments[z]);var j=C==="error",P=this._events;if(P!==void 0)j=j&&P.error===void 0;else if(!j)return!1;if(j){var B;if(w.length>0&&(B=w[0]),B instanceof Error)throw B;var _=new Error("Unhandled error."+(B?" ("+B.message+")":""));throw _.context=B,_}var I=P[C];if(I===void 0)return!1;if(typeof I=="function")t(I,this,w);else for(var L=I.length,Q=b(I,L),z=0;z<L;++z)t(Q[z],this,w);return!0};function c(C,w,z,j){var P,B,_;if(s(z),B=C._events,B===void 0?(B=C._events=Object.create(null),C._eventsCount=0):(B.newListener!==void 0&&(C.emit("newListener",w,z.listener?z.listener:z),B=C._events),_=B[w]),_===void 0)_=B[w]=z,++C._eventsCount;else if(typeof _=="function"?_=B[w]=j?[z,_]:[_,z]:j?_.unshift(z):_.push(z),P=l(C),P>0&&_.length>P&&!_.warned){_.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=C,I.type=w,I.count=_.length,r(I)}return C}i.prototype.addListener=function(C,w){return c(this,C,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(C,w){return c(this,C,w,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(C,w,z){var j={fired:!1,wrapFn:void 0,target:C,type:w,listener:z},P=u.bind(j);return P.listener=z,j.wrapFn=P,P}i.prototype.once=function(C,w){return s(w),this.on(C,d(this,C,w)),this},i.prototype.prependOnceListener=function(C,w){return s(w),this.prependListener(C,d(this,C,w)),this},i.prototype.removeListener=function(C,w){var z,j,P,B,_;if(s(w),j=this._events,j===void 0)return this;if(z=j[C],z===void 0)return this;if(z===w||z.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete j[C],j.removeListener&&this.emit("removeListener",C,z.listener||w));else if(typeof z!="function"){for(P=-1,B=z.length-1;B>=0;B--)if(z[B]===w||z[B].listener===w){_=z[B].listener,P=B;break}if(P<0)return this;P===0?z.shift():f(z,P),z.length===1&&(j[C]=z[0]),j.removeListener!==void 0&&this.emit("removeListener",C,_||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(C){var w,z,j;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[C]),this;if(arguments.length===0){var P=Object.keys(z),B;for(j=0;j<P.length;++j)B=P[j],B!=="removeListener"&&this.removeAllListeners(B);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=z[C],typeof w=="function")this.removeListener(C,w);else if(w!==void 0)for(j=w.length-1;j>=0;j--)this.removeListener(C,w[j]);return this};function h(C,w,z){var j=C._events;if(j===void 0)return[];var P=j[w];return P===void 0?[]:typeof P=="function"?z?[P.listener||P]:[P]:z?y(P):b(P,P.length)}i.prototype.listeners=function(C){return h(this,C,!0)},i.prototype.rawListeners=function(C){return h(this,C,!1)},i.listenerCount=function(C,w){return typeof C.listenerCount=="function"?C.listenerCount(w):m.call(C,w)},i.prototype.listenerCount=m;function m(C){var w=this._events;if(w!==void 0){var z=w[C];if(typeof z=="function")return 1;if(z!==void 0)return z.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function b(C,w){for(var z=new Array(w),j=0;j<w;++j)z[j]=C[j];return z}function f(C,w){for(;w+1<C.length;w++)C[w]=C[w+1];C.pop()}function y(C){for(var w=new Array(C.length),z=0;z<w.length;++z)w[z]=C[z].listener||C[z];return w}function v(C,w){return new Promise(function(z,j){function P(_){C.removeListener(w,B),j(_)}function B(){typeof C.removeListener=="function"&&C.removeListener("error",P),z([].slice.call(arguments))}O(C,w,B,{once:!0}),w!=="error"&&x(C,P,{once:!0})})}function x(C,w,z){typeof C.on=="function"&&O(C,"error",w,z)}function O(C,w,z,j){if(typeof C.on=="function")j.once?C.once(w,z):C.on(w,z);else if(typeof C.addEventListener=="function")C.addEventListener(w,function P(B){j.once&&C.removeEventListener(w,P),z(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return j2.exports}var Jre,Zre;function Yre(){return Zre||(Zre=1,Jre=qrt().EventEmitter),Jre}var Xre={},Y1={},ene;function Wrt(){if(ene)return Y1;ene=1,Y1.byteLength=s,Y1.toByteArray=c,Y1.fromByteArray=h;for(var e=[],t=[],a=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=r.length;n<i;++n)e[n]=r[n],t[r.charCodeAt(n)]=n;t[45]=62,t[95]=63;function o(m){var b=m.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=m.indexOf("=");f===-1&&(f=b);var y=f===b?0:4-f%4;return[f,y]}function s(m){var b=o(m),f=b[0],y=b[1];return(f+y)*3/4-y}function l(m,b,f){return(b+f)*3/4-f}function c(m){var b,f=o(m),y=f[0],v=f[1],x=new a(l(m,y,v)),O=0,C=v>0?y-4:y,w;for(w=0;w<C;w+=4)b=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],x[O++]=b>>16&255,x[O++]=b>>8&255,x[O++]=b&255;return v===2&&(b=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,x[O++]=b&255),v===1&&(b=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,x[O++]=b>>8&255,x[O++]=b&255),x}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,b,f){for(var y,v=[],x=b;x<f;x+=3)y=(m[x]<<16&16711680)+(m[x+1]<<8&65280)+(m[x+2]&255),v.push(u(y));return v.join("")}function h(m){for(var b,f=m.length,y=f%3,v=[],x=16383,O=0,C=f-y;O<C;O+=x)v.push(d(m,O,O+x>C?C:O+x));return y===1?(b=m[f-1],v.push(e[b>>2]+e[b<<4&63]+"==")):y===2&&(b=(m[f-2]<<8)+m[f-1],v.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),v.join("")}return Y1}var KE={},tne;function Urt(){return tne||(tne=1,KE.read=function(e,t,a,r,n){var i,o,s=n*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=a?n-1:0,h=a?-1:1,m=e[t+d];for(d+=h,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-c}return(m?-1:1)*o*Math.pow(2,i-r)},KE.write=function(e,t,a,r,n,i){var o,s,l,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,b=r?1:-1,f=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[a+m]=s&255,m+=b,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=b,o/=256,c-=8);e[a+m-b]|=f*128}),KE}var ane;function X1(){return ane||(ane=1,(function(e){const t=Wrt(),a=Urt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const M=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(M,ee),M.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(M){if(M>n)throw new RangeError('The value "'+M+'" is invalid for option "size"');const ee=new Uint8Array(M);return Object.setPrototypeOf(ee,s.prototype),ee}function s(M,ee,le){if(typeof M=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(M)}return l(M,ee,le)}s.poolSize=8192;function l(M,ee,le){if(typeof M=="string")return h(M,ee);if(ArrayBuffer.isView(M))return b(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(fe(M,ArrayBuffer)||M&&fe(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(M,SharedArrayBuffer)||M&&fe(M.buffer,SharedArrayBuffer)))return f(M,ee,le);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ce=M.valueOf&&M.valueOf();if(Ce!=null&&Ce!==M)return s.from(Ce,ee,le);const Me=y(M);if(Me)return Me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return s.from(M[Symbol.toPrimitive]("string"),ee,le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}s.from=function(M,ee,le){return l(M,ee,le)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function u(M,ee,le){return c(M),M<=0?o(M):ee!==void 0?typeof le=="string"?o(M).fill(ee,le):o(M).fill(ee):o(M)}s.alloc=function(M,ee,le){return u(M,ee,le)};function d(M){return c(M),o(M<0?0:v(M)|0)}s.allocUnsafe=function(M){return d(M)},s.allocUnsafeSlow=function(M){return d(M)};function h(M,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const le=O(M,ee)|0;let Ce=o(le);const Me=Ce.write(M,ee);return Me!==le&&(Ce=Ce.slice(0,Me)),Ce}function m(M){const ee=M.length<0?0:v(M.length)|0,le=o(ee);for(let Ce=0;Ce<ee;Ce+=1)le[Ce]=M[Ce]&255;return le}function b(M){if(fe(M,Uint8Array)){const ee=new Uint8Array(M);return f(ee.buffer,ee.byteOffset,ee.byteLength)}return m(M)}function f(M,ee,le){if(ee<0||M.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<ee+(le||0))throw new RangeError('"length" is outside of buffer bounds');let Ce;return ee===void 0&&le===void 0?Ce=new Uint8Array(M):le===void 0?Ce=new Uint8Array(M,ee):Ce=new Uint8Array(M,ee,le),Object.setPrototypeOf(Ce,s.prototype),Ce}function y(M){if(s.isBuffer(M)){const ee=v(M.length)|0,le=o(ee);return le.length===0||M.copy(le,0,0,ee),le}if(M.length!==void 0)return typeof M.length!="number"||ye(M.length)?o(0):m(M);if(M.type==="Buffer"&&Array.isArray(M.data))return m(M.data)}function v(M){if(M>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return M|0}function x(M){return+M!=M&&(M=0),s.alloc(+M)}s.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==s.prototype},s.compare=function(M,ee){if(fe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),fe(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),!s.isBuffer(M)||!s.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===ee)return 0;let le=M.length,Ce=ee.length;for(let Me=0,Be=Math.min(le,Ce);Me<Be;++Me)if(M[Me]!==ee[Me]){le=M[Me],Ce=ee[Me];break}return le<Ce?-1:Ce<le?1:0},s.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(M,ee){if(!Array.isArray(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return s.alloc(0);let le;if(ee===void 0)for(ee=0,le=0;le<M.length;++le)ee+=M[le].length;const Ce=s.allocUnsafe(ee);let Me=0;for(le=0;le<M.length;++le){let Be=M[le];if(fe(Be,Uint8Array))Me+Be.length>Ce.length?(s.isBuffer(Be)||(Be=s.from(Be)),Be.copy(Ce,Me)):Uint8Array.prototype.set.call(Ce,Be,Me);else if(s.isBuffer(Be))Be.copy(Ce,Me);else throw new TypeError('"list" argument must be an Array of Buffers');Me+=Be.length}return Ce};function O(M,ee){if(s.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||fe(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);const le=M.length,Ce=arguments.length>2&&arguments[2]===!0;if(!Ce&&le===0)return 0;let Me=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return le;case"utf8":case"utf-8":return J(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le*2;case"hex":return le>>>1;case"base64":return be(M).length;default:if(Me)return Ce?-1:J(M).length;ee=(""+ee).toLowerCase(),Me=!0}}s.byteLength=O;function C(M,ee,le){let Ce=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((le===void 0||le>this.length)&&(le=this.length),le<=0)||(le>>>=0,ee>>>=0,le<=ee))return"";for(M||(M="utf8");;)switch(M){case"hex":return he(this,ee,le);case"utf8":case"utf-8":return N(this,ee,le);case"ascii":return oe(this,ee,le);case"latin1":case"binary":return re(this,ee,le);case"base64":return Q(this,ee,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,ee,le);default:if(Ce)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),Ce=!0}}s.prototype._isBuffer=!0;function w(M,ee,le){const Ce=M[ee];M[ee]=M[le],M[le]=Ce}s.prototype.swap16=function(){const M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<M;ee+=2)w(this,ee,ee+1);return this},s.prototype.swap32=function(){const M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<M;ee+=4)w(this,ee,ee+3),w(this,ee+1,ee+2);return this},s.prototype.swap64=function(){const M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<M;ee+=8)w(this,ee,ee+7),w(this,ee+1,ee+6),w(this,ee+2,ee+5),w(this,ee+3,ee+4);return this},s.prototype.toString=function(){const M=this.length;return M===0?"":arguments.length===0?N(this,0,M):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(M){if(!s.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:s.compare(this,M)===0},s.prototype.inspect=function(){let M="";const ee=e.INSPECT_MAX_BYTES;return M=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(M+=" ... "),"<Buffer "+M+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(M,ee,le,Ce,Me){if(fe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),!s.isBuffer(M))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(ee===void 0&&(ee=0),le===void 0&&(le=M?M.length:0),Ce===void 0&&(Ce=0),Me===void 0&&(Me=this.length),ee<0||le>M.length||Ce<0||Me>this.length)throw new RangeError("out of range index");if(Ce>=Me&&ee>=le)return 0;if(Ce>=Me)return-1;if(ee>=le)return 1;if(ee>>>=0,le>>>=0,Ce>>>=0,Me>>>=0,this===M)return 0;let Be=Me-Ce,Ne=le-ee;const at=Math.min(Be,Ne),dt=this.slice(Ce,Me),mt=M.slice(ee,le);for(let ct=0;ct<at;++ct)if(dt[ct]!==mt[ct]){Be=dt[ct],Ne=mt[ct];break}return Be<Ne?-1:Ne<Be?1:0};function z(M,ee,le,Ce,Me){if(M.length===0)return-1;if(typeof le=="string"?(Ce=le,le=0):le>2147483647?le=2147483647:le<-2147483648&&(le=-2147483648),le=+le,ye(le)&&(le=Me?0:M.length-1),le<0&&(le=M.length+le),le>=M.length){if(Me)return-1;le=M.length-1}else if(le<0)if(Me)le=0;else return-1;if(typeof ee=="string"&&(ee=s.from(ee,Ce)),s.isBuffer(ee))return ee.length===0?-1:j(M,ee,le,Ce,Me);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Me?Uint8Array.prototype.indexOf.call(M,ee,le):Uint8Array.prototype.lastIndexOf.call(M,ee,le):j(M,[ee],le,Ce,Me);throw new TypeError("val must be string, number or Buffer")}function j(M,ee,le,Ce,Me){let Be=1,Ne=M.length,at=ee.length;if(Ce!==void 0&&(Ce=String(Ce).toLowerCase(),Ce==="ucs2"||Ce==="ucs-2"||Ce==="utf16le"||Ce==="utf-16le")){if(M.length<2||ee.length<2)return-1;Be=2,Ne/=2,at/=2,le/=2}function dt(ct,xt){return Be===1?ct[xt]:ct.readUInt16BE(xt*Be)}let mt;if(Me){let ct=-1;for(mt=le;mt<Ne;mt++)if(dt(M,mt)===dt(ee,ct===-1?0:mt-ct)){if(ct===-1&&(ct=mt),mt-ct+1===at)return ct*Be}else ct!==-1&&(mt-=mt-ct),ct=-1}else for(le+at>Ne&&(le=Ne-at),mt=le;mt>=0;mt--){let ct=!0;for(let xt=0;xt<at;xt++)if(dt(M,mt+xt)!==dt(ee,xt)){ct=!1;break}if(ct)return mt}return-1}s.prototype.includes=function(M,ee,le){return this.indexOf(M,ee,le)!==-1},s.prototype.indexOf=function(M,ee,le){return z(this,M,ee,le,!0)},s.prototype.lastIndexOf=function(M,ee,le){return z(this,M,ee,le,!1)};function P(M,ee,le,Ce){le=Number(le)||0;const Me=M.length-le;Ce?(Ce=Number(Ce),Ce>Me&&(Ce=Me)):Ce=Me;const Be=ee.length;Ce>Be/2&&(Ce=Be/2);let Ne;for(Ne=0;Ne<Ce;++Ne){const at=parseInt(ee.substr(Ne*2,2),16);if(ye(at))return Ne;M[le+Ne]=at}return Ne}function B(M,ee,le,Ce){return ge(J(ee,M.length-le),M,le,Ce)}function _(M,ee,le,Ce){return ge(ae(ee),M,le,Ce)}function I(M,ee,le,Ce){return ge(be(ee),M,le,Ce)}function L(M,ee,le,Ce){return ge(ce(ee,M.length-le),M,le,Ce)}s.prototype.write=function(M,ee,le,Ce){if(ee===void 0)Ce="utf8",le=this.length,ee=0;else if(le===void 0&&typeof ee=="string")Ce=ee,le=this.length,ee=0;else if(isFinite(ee))ee=ee>>>0,isFinite(le)?(le=le>>>0,Ce===void 0&&(Ce="utf8")):(Ce=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Me=this.length-ee;if((le===void 0||le>Me)&&(le=Me),M.length>0&&(le<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ce||(Ce="utf8");let Be=!1;for(;;)switch(Ce){case"hex":return P(this,M,ee,le);case"utf8":case"utf-8":return B(this,M,ee,le);case"ascii":case"latin1":case"binary":return _(this,M,ee,le);case"base64":return I(this,M,ee,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,M,ee,le);default:if(Be)throw new TypeError("Unknown encoding: "+Ce);Ce=(""+Ce).toLowerCase(),Be=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(M,ee,le){return ee===0&&le===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(ee,le))}function N(M,ee,le){le=Math.min(M.length,le);const Ce=[];let Me=ee;for(;Me<le;){const Be=M[Me];let Ne=null,at=Be>239?4:Be>223?3:Be>191?2:1;if(Me+at<=le){let dt,mt,ct,xt;switch(at){case 1:Be<128&&(Ne=Be);break;case 2:dt=M[Me+1],(dt&192)===128&&(xt=(Be&31)<<6|dt&63,xt>127&&(Ne=xt));break;case 3:dt=M[Me+1],mt=M[Me+2],(dt&192)===128&&(mt&192)===128&&(xt=(Be&15)<<12|(dt&63)<<6|mt&63,xt>2047&&(xt<55296||xt>57343)&&(Ne=xt));break;case 4:dt=M[Me+1],mt=M[Me+2],ct=M[Me+3],(dt&192)===128&&(mt&192)===128&&(ct&192)===128&&(xt=(Be&15)<<18|(dt&63)<<12|(mt&63)<<6|ct&63,xt>65535&&xt<1114112&&(Ne=xt))}}Ne===null?(Ne=65533,at=1):Ne>65535&&(Ne-=65536,Ce.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),Ce.push(Ne),Me+=at}return X(Ce)}const Y=4096;function X(M){const ee=M.length;if(ee<=Y)return String.fromCharCode.apply(String,M);let le="",Ce=0;for(;Ce<ee;)le+=String.fromCharCode.apply(String,M.slice(Ce,Ce+=Y));return le}function oe(M,ee,le){let Ce="";le=Math.min(M.length,le);for(let Me=ee;Me<le;++Me)Ce+=String.fromCharCode(M[Me]&127);return Ce}function re(M,ee,le){let Ce="";le=Math.min(M.length,le);for(let Me=ee;Me<le;++Me)Ce+=String.fromCharCode(M[Me]);return Ce}function he(M,ee,le){const Ce=M.length;(!ee||ee<0)&&(ee=0),(!le||le<0||le>Ce)&&(le=Ce);let Me="";for(let Be=ee;Be<le;++Be)Me+=ze[M[Be]];return Me}function U(M,ee,le){const Ce=M.slice(ee,le);let Me="";for(let Be=0;Be<Ce.length-1;Be+=2)Me+=String.fromCharCode(Ce[Be]+Ce[Be+1]*256);return Me}s.prototype.slice=function(M,ee){const le=this.length;M=~~M,ee=ee===void 0?le:~~ee,M<0?(M+=le,M<0&&(M=0)):M>le&&(M=le),ee<0?(ee+=le,ee<0&&(ee=0)):ee>le&&(ee=le),ee<M&&(ee=M);const Ce=this.subarray(M,ee);return Object.setPrototypeOf(Ce,s.prototype),Ce};function V(M,ee,le){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+ee>le)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M],Me=1,Be=0;for(;++Be<ee&&(Me*=256);)Ce+=this[M+Be]*Me;return Ce},s.prototype.readUintBE=s.prototype.readUIntBE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M+--ee],Me=1;for(;ee>0&&(Me*=256);)Ce+=this[M+--ee]*Me;return Ce},s.prototype.readUint8=s.prototype.readUInt8=function(M,ee){return M=M>>>0,ee||V(M,1,this.length),this[M]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(M,ee){return M=M>>>0,ee||V(M,2,this.length),this[M]|this[M+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(M,ee){return M=M>>>0,ee||V(M,2,this.length),this[M]<<8|this[M+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},s.prototype.readBigUInt64LE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=ee+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24,Me=this[++M]+this[++M]*2**8+this[++M]*2**16+le*2**24;return BigInt(Ce)+(BigInt(Me)<<BigInt(32))}),s.prototype.readBigUInt64BE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=ee*2**24+this[++M]*2**16+this[++M]*2**8+this[++M],Me=this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+le;return(BigInt(Ce)<<BigInt(32))+BigInt(Me)}),s.prototype.readIntLE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=this[M],Me=1,Be=0;for(;++Be<ee&&(Me*=256);)Ce+=this[M+Be]*Me;return Me*=128,Ce>=Me&&(Ce-=Math.pow(2,8*ee)),Ce},s.prototype.readIntBE=function(M,ee,le){M=M>>>0,ee=ee>>>0,le||V(M,ee,this.length);let Ce=ee,Me=1,Be=this[M+--Ce];for(;Ce>0&&(Me*=256);)Be+=this[M+--Ce]*Me;return Me*=128,Be>=Me&&(Be-=Math.pow(2,8*ee)),Be},s.prototype.readInt8=function(M,ee){return M=M>>>0,ee||V(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},s.prototype.readInt16LE=function(M,ee){M=M>>>0,ee||V(M,2,this.length);const le=this[M]|this[M+1]<<8;return le&32768?le|4294901760:le},s.prototype.readInt16BE=function(M,ee){M=M>>>0,ee||V(M,2,this.length);const le=this[M+1]|this[M]<<8;return le&32768?le|4294901760:le},s.prototype.readInt32LE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},s.prototype.readInt32BE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},s.prototype.readBigInt64LE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=this[M+4]+this[M+5]*2**8+this[M+6]*2**16+(le<<24);return(BigInt(Ce)<<BigInt(32))+BigInt(ee+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24)}),s.prototype.readBigInt64BE=Te(function(M){M=M>>>0,ne(M,"offset");const ee=this[M],le=this[M+7];(ee===void 0||le===void 0)&&F(M,this.length-8);const Ce=(ee<<24)+this[++M]*2**16+this[++M]*2**8+this[++M];return(BigInt(Ce)<<BigInt(32))+BigInt(this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+le)}),s.prototype.readFloatLE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),a.read(this,M,!0,23,4)},s.prototype.readFloatBE=function(M,ee){return M=M>>>0,ee||V(M,4,this.length),a.read(this,M,!1,23,4)},s.prototype.readDoubleLE=function(M,ee){return M=M>>>0,ee||V(M,8,this.length),a.read(this,M,!0,52,8)},s.prototype.readDoubleBE=function(M,ee){return M=M>>>0,ee||V(M,8,this.length),a.read(this,M,!1,52,8)};function Z(M,ee,le,Ce,Me,Be){if(!s.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Me||ee<Be)throw new RangeError('"value" argument is out of bounds');if(le+Ce>M.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,le=le>>>0,!Ce){const Ne=Math.pow(2,8*le)-1;Z(this,M,ee,le,Ne,0)}let Me=1,Be=0;for(this[ee]=M&255;++Be<le&&(Me*=256);)this[ee+Be]=M/Me&255;return ee+le},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,le=le>>>0,!Ce){const Ne=Math.pow(2,8*le)-1;Z(this,M,ee,le,Ne,0)}let Me=le-1,Be=1;for(this[ee+Me]=M&255;--Me>=0&&(Be*=256);)this[ee+Me]=M/Be&255;return ee+le},s.prototype.writeUint8=s.prototype.writeUInt8=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,1,255,0),this[ee]=M&255,ee+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,65535,0),this[ee]=M&255,this[ee+1]=M>>>8,ee+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,65535,0),this[ee]=M>>>8,this[ee+1]=M&255,ee+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,4294967295,0),this[ee+3]=M>>>24,this[ee+2]=M>>>16,this[ee+1]=M>>>8,this[ee]=M&255,ee+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,4294967295,0),this[ee]=M>>>24,this[ee+1]=M>>>16,this[ee+2]=M>>>8,this[ee+3]=M&255,ee+4};function G(M,ee,le,Ce,Me){$(ee,Ce,Me,M,le,7);let Be=Number(ee&BigInt(4294967295));M[le++]=Be,Be=Be>>8,M[le++]=Be,Be=Be>>8,M[le++]=Be,Be=Be>>8,M[le++]=Be;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,Ne=Ne>>8,M[le++]=Ne,le}function R(M,ee,le,Ce,Me){$(ee,Ce,Me,M,le,7);let Be=Number(ee&BigInt(4294967295));M[le+7]=Be,Be=Be>>8,M[le+6]=Be,Be=Be>>8,M[le+5]=Be,Be=Be>>8,M[le+4]=Be;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return M[le+3]=Ne,Ne=Ne>>8,M[le+2]=Ne,Ne=Ne>>8,M[le+1]=Ne,Ne=Ne>>8,M[le]=Ne,le+8}s.prototype.writeBigUInt64LE=Te(function(M,ee=0){return G(this,M,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Te(function(M,ee=0){return R(this,M,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,!Ce){const at=Math.pow(2,8*le-1);Z(this,M,ee,le,at-1,-at)}let Me=0,Be=1,Ne=0;for(this[ee]=M&255;++Me<le&&(Be*=256);)M<0&&Ne===0&&this[ee+Me-1]!==0&&(Ne=1),this[ee+Me]=(M/Be>>0)-Ne&255;return ee+le},s.prototype.writeIntBE=function(M,ee,le,Ce){if(M=+M,ee=ee>>>0,!Ce){const at=Math.pow(2,8*le-1);Z(this,M,ee,le,at-1,-at)}let Me=le-1,Be=1,Ne=0;for(this[ee+Me]=M&255;--Me>=0&&(Be*=256);)M<0&&Ne===0&&this[ee+Me+1]!==0&&(Ne=1),this[ee+Me]=(M/Be>>0)-Ne&255;return ee+le},s.prototype.writeInt8=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,1,127,-128),M<0&&(M=255+M+1),this[ee]=M&255,ee+1},s.prototype.writeInt16LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,32767,-32768),this[ee]=M&255,this[ee+1]=M>>>8,ee+2},s.prototype.writeInt16BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,2,32767,-32768),this[ee]=M>>>8,this[ee+1]=M&255,ee+2},s.prototype.writeInt32LE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,2147483647,-2147483648),this[ee]=M&255,this[ee+1]=M>>>8,this[ee+2]=M>>>16,this[ee+3]=M>>>24,ee+4},s.prototype.writeInt32BE=function(M,ee,le){return M=+M,ee=ee>>>0,le||Z(this,M,ee,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[ee]=M>>>24,this[ee+1]=M>>>16,this[ee+2]=M>>>8,this[ee+3]=M&255,ee+4},s.prototype.writeBigInt64LE=Te(function(M,ee=0){return G(this,M,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Te(function(M,ee=0){return R(this,M,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(M,ee,le,Ce,Me,Be){if(le+Ce>M.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("Index out of range")}function q(M,ee,le,Ce,Me){return ee=+ee,le=le>>>0,Me||D(M,ee,le,4),a.write(M,ee,le,Ce,23,4),le+4}s.prototype.writeFloatLE=function(M,ee,le){return q(this,M,ee,!0,le)},s.prototype.writeFloatBE=function(M,ee,le){return q(this,M,ee,!1,le)};function te(M,ee,le,Ce,Me){return ee=+ee,le=le>>>0,Me||D(M,ee,le,8),a.write(M,ee,le,Ce,52,8),le+8}s.prototype.writeDoubleLE=function(M,ee,le){return te(this,M,ee,!0,le)},s.prototype.writeDoubleBE=function(M,ee,le){return te(this,M,ee,!1,le)},s.prototype.copy=function(M,ee,le,Ce){if(!s.isBuffer(M))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Ce&&Ce!==0&&(Ce=this.length),ee>=M.length&&(ee=M.length),ee||(ee=0),Ce>0&&Ce<le&&(Ce=le),Ce===le||M.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("sourceEnd out of bounds");Ce>this.length&&(Ce=this.length),M.length-ee<Ce-le&&(Ce=M.length-ee+le);const Me=Ce-le;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,le,Ce):Uint8Array.prototype.set.call(M,this.subarray(le,Ce),ee),Me},s.prototype.fill=function(M,ee,le,Ce){if(typeof M=="string"){if(typeof ee=="string"?(Ce=ee,ee=0,le=this.length):typeof le=="string"&&(Ce=le,le=this.length),Ce!==void 0&&typeof Ce!="string")throw new TypeError("encoding must be a string");if(typeof Ce=="string"&&!s.isEncoding(Ce))throw new TypeError("Unknown encoding: "+Ce);if(M.length===1){const Be=M.charCodeAt(0);(Ce==="utf8"&&Be<128||Ce==="latin1")&&(M=Be)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(ee<0||this.length<ee||this.length<le)throw new RangeError("Out of range index");if(le<=ee)return this;ee=ee>>>0,le=le===void 0?this.length:le>>>0,M||(M=0);let Me;if(typeof M=="number")for(Me=ee;Me<le;++Me)this[Me]=M;else{const Be=s.isBuffer(M)?M:s.from(M,Ce),Ne=Be.length;if(Ne===0)throw new TypeError('The value "'+M+'" is invalid for argument "value"');for(Me=0;Me<le-ee;++Me)this[Me+ee]=Be[Me%Ne]}return this};const se={};function ve(M,ee,le){se[M]=class extends le{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,delete this.name}get code(){return M}set code(Ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ce,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(M,ee){return`The "${M}" argument must be of type number. Received type ${typeof ee}`},TypeError),ve("ERR_OUT_OF_RANGE",function(M,ee,le){let Ce=`The value of "${M}" is out of range.`,Me=le;return Number.isInteger(le)&&Math.abs(le)>2**32?Me=xe(String(le)):typeof le=="bigint"&&(Me=String(le),(le>BigInt(2)**BigInt(32)||le<-(BigInt(2)**BigInt(32)))&&(Me=xe(Me)),Me+="n"),Ce+=` It must be ${ee}. Received ${Me}`,Ce},RangeError);function xe(M){let ee="",le=M.length;const Ce=M[0]==="-"?1:0;for(;le>=Ce+4;le-=3)ee=`_${M.slice(le-3,le)}${ee}`;return`${M.slice(0,le)}${ee}`}function T(M,ee,le){ne(ee,"offset"),(M[ee]===void 0||M[ee+le]===void 0)&&F(ee,M.length-(le+1))}function $(M,ee,le,Ce,Me,Be){if(M>le||M<ee){const Ne=typeof ee=="bigint"?"n":"";let at;throw ee===0||ee===BigInt(0)?at=`>= 0${Ne} and < 2${Ne} ** ${(Be+1)*8}${Ne}`:at=`>= -(2${Ne} ** ${(Be+1)*8-1}${Ne}) and < 2 ** ${(Be+1)*8-1}${Ne}`,new se.ERR_OUT_OF_RANGE("value",at,M)}T(Ce,Me,Be)}function ne(M,ee){if(typeof M!="number")throw new se.ERR_INVALID_ARG_TYPE(ee,"number",M)}function F(M,ee,le){throw Math.floor(M)!==M?(ne(M,le),new se.ERR_OUT_OF_RANGE("offset","an integer",M)):ee<0?new se.ERR_BUFFER_OUT_OF_BOUNDS:new se.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ee}`,M)}const ue=/[^+/0-9A-Za-z-_]/g;function de(M){if(M=M.split("=")[0],M=M.trim().replace(ue,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function J(M,ee){ee=ee||1/0;let le;const Ce=M.length;let Me=null;const Be=[];for(let Ne=0;Ne<Ce;++Ne){if(le=M.charCodeAt(Ne),le>55295&&le<57344){if(!Me){if(le>56319){(ee-=3)>-1&&Be.push(239,191,189);continue}else if(Ne+1===Ce){(ee-=3)>-1&&Be.push(239,191,189);continue}Me=le;continue}if(le<56320){(ee-=3)>-1&&Be.push(239,191,189),Me=le;continue}le=(Me-55296<<10|le-56320)+65536}else Me&&(ee-=3)>-1&&Be.push(239,191,189);if(Me=null,le<128){if((ee-=1)<0)break;Be.push(le)}else if(le<2048){if((ee-=2)<0)break;Be.push(le>>6|192,le&63|128)}else if(le<65536){if((ee-=3)<0)break;Be.push(le>>12|224,le>>6&63|128,le&63|128)}else if(le<1114112){if((ee-=4)<0)break;Be.push(le>>18|240,le>>12&63|128,le>>6&63|128,le&63|128)}else throw new Error("Invalid code point")}return Be}function ae(M){const ee=[];for(let le=0;le<M.length;++le)ee.push(M.charCodeAt(le)&255);return ee}function ce(M,ee){let le,Ce,Me;const Be=[];for(let Ne=0;Ne<M.length&&!((ee-=2)<0);++Ne)le=M.charCodeAt(Ne),Ce=le>>8,Me=le%256,Be.push(Me),Be.push(Ce);return Be}function be(M){return t.toByteArray(de(M))}function ge(M,ee,le,Ce){let Me;for(Me=0;Me<Ce&&!(Me+le>=ee.length||Me>=M.length);++Me)ee[Me+le]=M[Me];return Me}function fe(M,ee){return M instanceof ee||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===ee.name}function ye(M){return M!==M}const ze=(function(){const M="0123456789abcdef",ee=new Array(256);for(let le=0;le<16;++le){const Ce=le*16;for(let Me=0;Me<16;++Me)ee[Ce+Me]=M[le]+M[Me]}return ee})();function Te(M){return typeof BigInt>"u"?tt:M}function tt(){throw new Error("BigInt not supported")}})(Xre)),Xre}const rne=iQ(Ute);var VE,nne;function Jrt(){if(nne)return VE;nne=1;function e(b,f){var y=Object.keys(b);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(b);f&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(b,x).enumerable})),y.push.apply(y,v)}return y}function t(b){for(var f=1;f<arguments.length;f++){var y=arguments[f]!=null?arguments[f]:{};f%2?e(Object(y),!0).forEach(function(v){a(b,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(v){Object.defineProperty(b,v,Object.getOwnPropertyDescriptor(y,v))})}return b}function a(b,f,y){return f=o(f),f in b?Object.defineProperty(b,f,{value:y,enumerable:!0,configurable:!0,writable:!0}):b[f]=y,b}function r(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}function n(b,f){for(var y=0;y<f.length;y++){var v=f[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,o(v.key),v)}}function i(b,f,y){return f&&n(b.prototype,f),Object.defineProperty(b,"prototype",{writable:!1}),b}function o(b){var f=s(b,"string");return typeof f=="symbol"?f:String(f)}function s(b,f){if(typeof b!="object"||b===null)return b;var y=b[Symbol.toPrimitive];if(y!==void 0){var v=y.call(b,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(b)}var l=X1(),c=l.Buffer,u=rne,d=u.inspect,h=d&&d.custom||"inspect";function m(b,f,y){c.prototype.copy.call(b,f,y)}return VE=(function(){function b(){r(this,b),this.head=null,this.tail=null,this.length=0}return i(b,[{key:"push",value:function(f){var y={data:f,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(f){var y={data:f,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=f+y.data;return v}},{key:"concat",value:function(f){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(f>>>0),v=this.head,x=0;v;)m(v.data,y,x),x+=v.data.length,v=v.next;return y}},{key:"consume",value:function(f,y){var v;return f<this.head.data.length?(v=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):f===this.head.data.length?v=this.shift():v=y?this._getString(f):this._getBuffer(f),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var y=this.head,v=1,x=y.data;for(f-=x.length;y=y.next;){var O=y.data,C=f>O.length?O.length:f;if(C===O.length?x+=O:x+=O.slice(0,f),f-=C,f===0){C===O.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=O.slice(C));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(f){var y=c.allocUnsafe(f),v=this.head,x=1;for(v.data.copy(y),f-=v.data.length;v=v.next;){var O=v.data,C=f>O.length?O.length:f;if(O.copy(y,y.length-f,0,C),f-=C,f===0){C===O.length?(++x,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=O.slice(C));break}++x}return this.length-=x,y}},{key:h,value:function(f,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),b})(),VE}var HE,ine;function one(){if(ine)return HE;ine=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return HE={destroy:e,undestroy:r,errorOrDestroy:i},HE}var GE={},sne;function Iv(){if(sne)return GE;sne=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(h,m,b){return typeof l=="string"?l:l(h,m,b)}var d=(function(h){e(m,h);function m(b,f,y){return h.call(this,u(b,f,y))||this}return m})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),GE.codes=t,GE}var FE,lne;function cne(){if(lne)return FE;lne=1;var e=Iv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return FE={getHighWaterMark:a},FE}var QE,une;function Zrt(){if(une)return QE;une=1,QE=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return QE}var qE,dne;function pne(){if(dne)return qE;dne=1,qE=P;function e(q){var te=this;this.next=null,this.entry=null,this.finish=function(){D(te,q)}}var t;P.WritableState=z;var a={deprecate:Zrt()},r=Yre(),n=X1().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(q){return n.from(q)}function s(q){return n.isBuffer(q)||q instanceof i}var l=one(),c=cne(),u=c.getHighWaterMark,d=Iv().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,f=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,O=d.ERR_UNKNOWN_ENCODING,C=l.errorOrDestroy;function w(){}function z(q,te,se){t=t||Kv(),q=q||{},typeof se!="boolean"&&(se=te instanceof t),this.objectMode=!!q.objectMode,se&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=q.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(xe){X(te,xe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}z.prototype.getBuffer=function(){for(var q=this.bufferedRequest,te=[];q;)te.push(q),q=q.next;return te},(function(){try{Object.defineProperty(z.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(q){return j.call(this,q)?!0:this!==P?!1:q&&q._writableState instanceof z}})):j=function(q){return q instanceof this};function P(q){t=t||Kv();var te=this instanceof t;if(!te&&!j.call(P,this))return new P(q);this._writableState=new z(q,this,te),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}P.prototype.pipe=function(){C(this,new f)};function B(q,te){var se=new x;C(q,se),process.nextTick(te,se)}function _(q,te,se,ve){var xe;return se===null?xe=new v:typeof se!="string"&&!te.objectMode&&(xe=new h("chunk",["string","Buffer"],se)),xe?(C(q,xe),process.nextTick(ve,xe),!1):!0}P.prototype.write=function(q,te,se){var ve=this._writableState,xe=!1,T=!ve.objectMode&&s(q);return T&&!n.isBuffer(q)&&(q=o(q)),typeof te=="function"&&(se=te,te=null),T?te="buffer":te||(te=ve.defaultEncoding),typeof se!="function"&&(se=w),ve.ending?B(this,se):(T||_(this,ve,q,se))&&(ve.pendingcb++,xe=L(this,ve,T,q,te,se)),xe},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&he(this,q))},P.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new O(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(q,te,se){return!q.objectMode&&q.decodeStrings!==!1&&typeof te=="string"&&(te=n.from(te,se)),te}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(q,te,se,ve,xe,T){if(!se){var $=I(te,ve,xe);ve!==$&&(se=!0,xe="buffer",ve=$)}var ne=te.objectMode?1:ve.length;te.length+=ne;var F=te.length<te.highWaterMark;if(F||(te.needDrain=!0),te.writing||te.corked){var ue=te.lastBufferedRequest;te.lastBufferedRequest={chunk:ve,encoding:xe,isBuf:se,callback:T,next:null},ue?ue.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else Q(q,te,!1,ne,ve,xe,T);return F}function Q(q,te,se,ve,xe,T,$){te.writelen=ve,te.writecb=$,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new y("write")):se?q._writev(xe,te.onwrite):q._write(xe,T,te.onwrite),te.sync=!1}function N(q,te,se,ve,xe){--te.pendingcb,se?(process.nextTick(xe,ve),process.nextTick(G,q,te),q._writableState.errorEmitted=!0,C(q,ve)):(xe(ve),q._writableState.errorEmitted=!0,C(q,ve),G(q,te))}function Y(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function X(q,te){var se=q._writableState,ve=se.sync,xe=se.writecb;if(typeof xe!="function")throw new b;if(Y(se),te)N(q,se,ve,te,xe);else{var T=U(se)||q.destroyed;!T&&!se.corked&&!se.bufferProcessing&&se.bufferedRequest&&he(q,se),ve?process.nextTick(oe,q,se,T,xe):oe(q,se,T,xe)}}function oe(q,te,se,ve){se||re(q,te),te.pendingcb--,ve(),G(q,te)}function re(q,te){te.length===0&&te.needDrain&&(te.needDrain=!1,q.emit("drain"))}function he(q,te){te.bufferProcessing=!0;var se=te.bufferedRequest;if(q._writev&&se&&se.next){var ve=te.bufferedRequestCount,xe=new Array(ve),T=te.corkedRequestsFree;T.entry=se;for(var $=0,ne=!0;se;)xe[$]=se,se.isBuf||(ne=!1),se=se.next,$+=1;xe.allBuffers=ne,Q(q,te,!0,te.length,xe,"",T.finish),te.pendingcb++,te.lastBufferedRequest=null,T.next?(te.corkedRequestsFree=T.next,T.next=null):te.corkedRequestsFree=new e(te),te.bufferedRequestCount=0}else{for(;se;){var F=se.chunk,ue=se.encoding,de=se.callback,J=te.objectMode?1:F.length;if(Q(q,te,!1,J,F,ue,de),se=se.next,te.bufferedRequestCount--,te.writing)break}se===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=se,te.bufferProcessing=!1}P.prototype._write=function(q,te,se){se(new m("_write()"))},P.prototype._writev=null,P.prototype.end=function(q,te,se){var ve=this._writableState;return typeof q=="function"?(se=q,q=null,te=null):typeof te=="function"&&(se=te,te=null),q!=null&&this.write(q,te),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||R(this,ve,se),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function V(q,te){q._final(function(se){te.pendingcb--,se&&C(q,se),te.prefinished=!0,q.emit("prefinish"),G(q,te)})}function Z(q,te){!te.prefinished&&!te.finalCalled&&(typeof q._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,process.nextTick(V,q,te)):(te.prefinished=!0,q.emit("prefinish")))}function G(q,te){var se=U(te);if(se&&(Z(q,te),te.pendingcb===0&&(te.finished=!0,q.emit("finish"),te.autoDestroy))){var ve=q._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&q.destroy()}return se}function R(q,te,se){te.ending=!0,G(q,te),se&&(te.finished?process.nextTick(se):q.once("finish",se)),te.ended=!0,q.writable=!1}function D(q,te,se){var ve=q.entry;for(q.entry=null;ve;){var xe=ve.callback;te.pendingcb--,xe(se),ve=ve.next}te.corkedRequestsFree.next=q}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(q){this._writableState&&(this._writableState.destroyed=q)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(q,te){te(q)},qE}var WE,hne;function Kv(){if(hne)return WE;hne=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};WE=o;for(var t=wne(),a=pne(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),WE}var UE={},JE={exports:{}},mne;function Yrt(){return mne||(mne=1,(function(e,t){var a=X1(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(JE,JE.exports)),JE.exports}var gne;function fne(){if(gne)return UE;gne=1;var e=Yrt().Buffer,t=e.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(v){if(!v)return"utf8";for(var x;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(x)return;v=(""+v).toLowerCase(),x=!0}}function r(v){var x=a(v);if(typeof x!="string"&&(e.isEncoding===t||!t(v)))throw new Error("Unknown encoding: "+v);return x||v}UE.StringDecoder=n;function n(v){this.encoding=r(v);var x;switch(this.encoding){case"utf16le":this.text=d,this.end=h,x=4;break;case"utf8":this.fillLast=l,x=4;break;case"base64":this.text=m,this.end=b,x=3;break;default:this.write=f,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}n.prototype.write=function(v){if(v.length===0)return"";var x,O;if(this.lastNeed){if(x=this.fillLast(v),x===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<v.length?x?x+this.text(v,O):this.text(v,O):x||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function i(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}function o(v,x,O){var C=x.length-1;if(C<O)return 0;var w=i(x[C]);return w>=0?(w>0&&(v.lastNeed=w-1),w):--C<O||w===-2?0:(w=i(x[C]),w>=0?(w>0&&(v.lastNeed=w-2),w):--C<O||w===-2?0:(w=i(x[C]),w>=0?(w>0&&(w===2?w=0:v.lastNeed=w-3),w):0))}function s(v,x,O){if((x[0]&192)!==128)return v.lastNeed=0,"\uFFFD";if(v.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return v.lastNeed=1,"\uFFFD";if(v.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return v.lastNeed=2,"\uFFFD"}}function l(v){var x=this.lastTotal-this.lastNeed,O=s(this,v);if(O!==void 0)return O;if(this.lastNeed<=v.length)return v.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,x,0,v.length),this.lastNeed-=v.length}function c(v,x){var O=o(this,v,x);if(!this.lastNeed)return v.toString("utf8",x);this.lastTotal=O;var C=v.length-(O-this.lastNeed);return v.copy(this.lastChar,0,C),v.toString("utf8",x,C)}function u(v){var x=v&&v.length?this.write(v):"";return this.lastNeed?x+"\uFFFD":x}function d(v,x){if((v.length-x)%2===0){var O=v.toString("utf16le",x);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",x,v.length-1)}function h(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,O)}return x}function m(v,x){var O=(v.length-x)%3;return O===0?v.toString("base64",x):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",x,v.length-O))}function b(v){var x=v&&v.length?this.write(v):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function f(v){return v.toString(this.encoding)}function y(v){return v&&v.length?this.write(v):""}return UE}var ZE,vne;function YE(){if(vne)return ZE;vne=1;var e=Iv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},m=i._readableState&&i._readableState.endEmitted,b=function(){l=!1,m=!0,c||s.call(i)},f=function(x){s.call(i,x)},y=function(){var x;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(x=new e),s.call(i,x);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(x=new e),s.call(i,x)},v=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",y),i.req?v():i.on("request",v)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",b),i.on("finish",h),o.error!==!1&&i.on("error",f),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",v),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",b),i.removeListener("error",f),i.removeListener("close",y)}}return ZE=n,ZE}var XE,bne;function Xrt(){if(bne)return XE;bne=1;var e;function t(O,C,w){return C=a(C),C in O?Object.defineProperty(O,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):O[C]=w,O}function a(O){var C=r(O,"string");return typeof C=="symbol"?C:String(C)}function r(O,C){if(typeof O!="object"||O===null)return O;var w=O[Symbol.toPrimitive];if(w!==void 0){var z=w.call(O,C);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}var n=YE(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(O,C){return{value:O,done:C}}function m(O){var C=O[i];if(C!==null){var w=O[d].read();w!==null&&(O[c]=null,O[i]=null,O[o]=null,C(h(w,!1)))}}function b(O){process.nextTick(m,O)}function f(O,C){return function(w,z){O.then(function(){if(C[l]){w(h(void 0,!0));return}C[u](w,z)},z)}}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var O=this,C=this[s];if(C!==null)return Promise.reject(C);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(P,B){process.nextTick(function(){O[s]?B(O[s]):P(h(void 0,!0))})});var w=this[c],z;if(w)z=new Promise(f(w,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));z=new Promise(this[u])}return this[c]=z,z}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var O=this;return new Promise(function(C,w){O[d].destroy(null,function(z){if(z){w(z);return}C(h(void 0,!0))})})}),e),y),x=function(O){var C,w=Object.create(v,(C={},t(C,d,{value:O,writable:!0}),t(C,i,{value:null,writable:!0}),t(C,o,{value:null,writable:!0}),t(C,s,{value:null,writable:!0}),t(C,l,{value:O._readableState.endEmitted,writable:!0}),t(C,u,{value:function(z,j){var P=w[d].read();P?(w[c]=null,w[i]=null,w[o]=null,z(h(P,!1))):(w[i]=z,w[o]=j)},writable:!0}),C));return w[c]=null,n(O,function(z){if(z&&z.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=w[o];j!==null&&(w[c]=null,w[i]=null,w[o]=null,j(z)),w[s]=z;return}var P=w[i];P!==null&&(w[c]=null,w[i]=null,w[o]=null,P(h(void 0,!0))),w[l]=!0}),O.on("readable",b.bind(null,w)),w};return XE=x,XE}var yne,kne;function ent(){return kne||(kne=1,yne=function(){throw new Error("Readable.from is not available in the browser")}),yne}var e7,xne;function wne(){if(xne)return e7;xne=1,e7=B;var e;B.ReadableState=P;var t=function(T,$){return T.listeners($).length},a=Yre(),r=X1().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return r.from(T)}function o(T){return r.isBuffer(T)||T instanceof n}var s=rne,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Jrt(),u=one(),d=cne(),h=d.getHighWaterMark,m=Iv().codes,b=m.ERR_INVALID_ARG_TYPE,f=m.ERR_STREAM_PUSH_AFTER_EOF,y=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,O,C,w=u.errorOrDestroy,z=["error","close","destroy","pause","resume"];function j(T,$,ne){if(typeof T.prependListener=="function")return T.prependListener($,ne);!T._events||!T._events[$]?T.on($,ne):Array.isArray(T._events[$])?T._events[$].unshift(ne):T._events[$]=[ne,T._events[$]]}function P(T,$,ne){e=e||Kv(),T=T||{},typeof ne!="boolean"&&(ne=$ instanceof e),this.objectMode=!!T.objectMode,ne&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",ne),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(x||(x=fne().StringDecoder),this.decoder=new x(T.encoding),this.encoding=T.encoding)}function B(T){if(e=e||Kv(),!(this instanceof B))return new B(T);var $=this instanceof e;this._readableState=new P(T,this,$),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),a.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),B.prototype.destroy=u.destroy,B.prototype._undestroy=u.undestroy,B.prototype._destroy=function(T,$){$(T)},B.prototype.push=function(T,$){var ne=this._readableState,F;return ne.objectMode?F=!0:typeof T=="string"&&($=$||ne.defaultEncoding,$!==ne.encoding&&(T=r.from(T,$),$=""),F=!0),_(this,T,$,!1,F)},B.prototype.unshift=function(T){return _(this,T,null,!0,!1)};function _(T,$,ne,F,ue){l("readableAddChunk",$);var de=T._readableState;if($===null)de.reading=!1,X(T,de);else{var J;if(ue||(J=L(de,$)),J)w(T,J);else if(de.objectMode||$&&$.length>0)if(typeof $!="string"&&!de.objectMode&&Object.getPrototypeOf($)!==r.prototype&&($=i($)),F)de.endEmitted?w(T,new v):I(T,de,$,!0);else if(de.ended)w(T,new f);else{if(de.destroyed)return!1;de.reading=!1,de.decoder&&!ne?($=de.decoder.write($),de.objectMode||$.length!==0?I(T,de,$,!1):he(T,de)):I(T,de,$,!1)}else F||(de.reading=!1,he(T,de))}return!de.ended&&(de.length<de.highWaterMark||de.length===0)}function I(T,$,ne,F){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,T.emit("data",ne)):($.length+=$.objectMode?1:ne.length,F?$.buffer.unshift(ne):$.buffer.push(ne),$.needReadable&&oe(T)),he(T,$)}function L(T,$){var ne;return!o($)&&typeof $!="string"&&$!==void 0&&!T.objectMode&&(ne=new b("chunk",["string","Buffer","Uint8Array"],$)),ne}B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(T){x||(x=fne().StringDecoder);var $=new x(T);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var ne=this._readableState.buffer.head,F="";ne!==null;)F+=$.write(ne.data),ne=ne.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var Q=1073741824;function N(T){return T>=Q?T=Q:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function Y(T,$){return T<=0||$.length===0&&$.ended?0:$.objectMode?1:T!==T?$.flowing&&$.length?$.buffer.head.data.length:$.length:(T>$.highWaterMark&&($.highWaterMark=N(T)),T<=$.length?T:$.ended?$.length:($.needReadable=!0,0))}B.prototype.read=function(T){l("read",T),T=parseInt(T,10);var $=this._readableState,ne=T;if(T!==0&&($.emittedReadable=!1),T===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return l("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?se(this):oe(this),null;if(T=Y(T,$),T===0&&$.ended)return $.length===0&&se(this),null;var F=$.needReadable;l("need readable",F),($.length===0||$.length-T<$.highWaterMark)&&(F=!0,l("length less than watermark",F)),$.ended||$.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(T=Y(ne,$)));var ue;return T>0?ue=te(T,$):ue=null,ue===null?($.needReadable=$.length<=$.highWaterMark,T=0):($.length-=T,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),ne!==T&&$.ended&&se(this)),ue!==null&&this.emit("data",ue),ue};function X(T,$){if(l("onEofChunk"),!$.ended){if($.decoder){var ne=$.decoder.end();ne&&ne.length&&($.buffer.push(ne),$.length+=$.objectMode?1:ne.length)}$.ended=!0,$.sync?oe(T):($.needReadable=!1,$.emittedReadable||($.emittedReadable=!0,re(T)))}}function oe(T){var $=T._readableState;l("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(l("emitReadable",$.flowing),$.emittedReadable=!0,process.nextTick(re,T))}function re(T){var $=T._readableState;l("emitReadable_",$.destroyed,$.length,$.ended),!$.destroyed&&($.length||$.ended)&&(T.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,q(T)}function he(T,$){$.readingMore||($.readingMore=!0,process.nextTick(U,T,$))}function U(T,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var ne=$.length;if(l("maybeReadMore read 0"),T.read(0),ne===$.length)break}$.readingMore=!1}B.prototype._read=function(T){w(this,new y("_read()"))},B.prototype.pipe=function(T,$){var ne=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=T;break;case 1:F.pipes=[F.pipes,T];break;default:F.pipes.push(T);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,$);var ue=(!$||$.end!==!1)&&T!==null&&T!==process.stderr,de=ue?ae:tt;F.endEmitted?process.nextTick(de):ne.once("end",de),T.on("unpipe",J);function J(M,ee){l("onunpipe"),M===ne&&ee&&ee.hasUnpiped===!1&&(ee.hasUnpiped=!0,ge())}function ae(){l("onend"),T.end()}var ce=V(ne);T.on("drain",ce);var be=!1;function ge(){l("cleanup"),T.removeListener("close",ze),T.removeListener("finish",Te),T.removeListener("drain",ce),T.removeListener("error",ye),T.removeListener("unpipe",J),ne.removeListener("end",ae),ne.removeListener("end",tt),ne.removeListener("data",fe),be=!0,F.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&ce()}ne.on("data",fe);function fe(M){l("ondata");var ee=T.write(M);l("dest.write",ee),ee===!1&&((F.pipesCount===1&&F.pipes===T||F.pipesCount>1&&xe(F.pipes,T)!==-1)&&!be&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),ne.pause())}function ye(M){l("onerror",M),tt(),T.removeListener("error",ye),t(T,"error")===0&&w(T,M)}j(T,"error",ye);function ze(){T.removeListener("finish",Te),tt()}T.once("close",ze);function Te(){l("onfinish"),T.removeListener("close",ze),tt()}T.once("finish",Te);function tt(){l("unpipe"),ne.unpipe(T)}return T.emit("pipe",ne),F.flowing||(l("pipe resume"),ne.resume()),T};function V(T){return function(){var $=T._readableState;l("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(T,"data")&&($.flowing=!0,q(T))}}B.prototype.unpipe=function(T){var $=this._readableState,ne={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return T&&T!==$.pipes?this:(T||(T=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,T&&T.emit("unpipe",this,ne),this);if(!T){var F=$.pipes,ue=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var de=0;de<ue;de++)F[de].emit("unpipe",this,{hasUnpiped:!1});return this}var J=xe($.pipes,T);return J===-1?this:($.pipes.splice(J,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),T.emit("unpipe",this,ne),this)},B.prototype.on=function(T,$){var ne=a.prototype.on.call(this,T,$),F=this._readableState;return T==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):T==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?oe(this):F.reading||process.nextTick(G,this)),ne},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(T,$){var ne=a.prototype.removeListener.call(this,T,$);return T==="readable"&&process.nextTick(Z,this),ne},B.prototype.removeAllListeners=function(T){var $=a.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(Z,this),$};function Z(T){var $=T._readableState;$.readableListening=T.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:T.listenerCount("data")>0&&T.resume()}function G(T){l("readable nexttick read 0"),T.read(0)}B.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,R(this,T)),T.paused=!1,this};function R(T,$){$.resumeScheduled||($.resumeScheduled=!0,process.nextTick(D,T,$))}function D(T,$){l("resume",$.reading),$.reading||T.read(0),$.resumeScheduled=!1,T.emit("resume"),q(T),$.flowing&&!$.reading&&T.read(0)}B.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(T){var $=T._readableState;for(l("flow",$.flowing);$.flowing&&T.read()!==null;);}B.prototype.wrap=function(T){var $=this,ne=this._readableState,F=!1;T.on("end",function(){if(l("wrapped end"),ne.decoder&&!ne.ended){var J=ne.decoder.end();J&&J.length&&$.push(J)}$.push(null)}),T.on("data",function(J){if(l("wrapped data"),ne.decoder&&(J=ne.decoder.write(J)),!(ne.objectMode&&J==null)&&!(!ne.objectMode&&(!J||!J.length))){var ae=$.push(J);ae||(F=!0,T.pause())}});for(var ue in T)this[ue]===void 0&&typeof T[ue]=="function"&&(this[ue]=(function(J){return function(){return T[J].apply(T,arguments)}})(ue));for(var de=0;de<z.length;de++)T.on(z[de],this.emit.bind(this,z[de]));return this._read=function(J){l("wrapped _read",J),F&&(F=!1,T.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=Xrt()),O(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),B._fromList=te,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(T,$){if($.length===0)return null;var ne;return $.objectMode?ne=$.buffer.shift():!T||T>=$.length?($.decoder?ne=$.buffer.join(""):$.buffer.length===1?ne=$.buffer.first():ne=$.buffer.concat($.length),$.buffer.clear()):ne=$.buffer.consume(T,$.decoder),ne}function se(T){var $=T._readableState;l("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,process.nextTick(ve,$,T))}function ve(T,$){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,$.readable=!1,$.emit("end"),T.autoDestroy)){var ne=$._writableState;(!ne||ne.autoDestroy&&ne.finished)&&$.destroy()}}typeof Symbol=="function"&&(B.from=function(T,$){return C===void 0&&(C=ent()),C(B,T,$)});function xe(T,$){for(var ne=0,F=T.length;ne<F;ne++)if(T[ne]===$)return ne;return-1}return e7}var t7,One;function Sne(){if(One)return t7;One=1,t7=s;var e=Iv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Kv();function o(u,d){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new a);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),m(u);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=d,!m.transforming){var b=this._readableState;(m.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return t7}var a7,zne;function tnt(){if(zne)return a7;zne=1,a7=t;var e=Sne();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},a7}var r7,Cne;function ant(){if(Cne)return r7;Cne=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=Iv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,b,f){f=t(f);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=YE()),e(h,{readable:m,writable:b},function(x){if(x)return f(x);y=!0,f()});var v=!1;return function(x){if(!y&&!v){if(v=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();f(x||new n("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,m=new Array(h),b=0;b<h;b++)m[b]=arguments[b];var f=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var y,v=m.map(function(x,O){var C=O<m.length-1,w=O>0;return s(x,C,w,function(z){y||(y=z),z&&v.forEach(l),!C&&(v.forEach(l),f(y))})});return m.reduce(c)}return r7=d,r7}var jne;function Pne(){return jne||(jne=1,(function(e,t){t=e.exports=wne(),t.Stream=t,t.Readable=t,t.Writable=pne(),t.Duplex=Kv(),t.Transform=Sne(),t.PassThrough=tnt(),t.finished=YE(),t.pipeline=ant()})(IE,IE.exports)),IE.exports}var Ane;function Mne(){if(Ane)return C2;Ane=1;var e=Wre(),t=_8(),a=Pne(),r=C2.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=C2.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let f=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),f()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(y,v){c.headers[v.toLowerCase()]=y,c.rawHeaders.push(v,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(v,x){c._destroyed?x():c.push(Buffer.from(y))?v():c._resumeFetch=v})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{o.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=o.body.getReader();f()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(f){var y=f.match(/^([^:]+):\s*(.*)/);if(y){var v=y[1].toLowerCase();v==="set-cookie"?(c.headers[v]===void 0&&(c.headers[v]=[]),c.headers[v].push(y[2])):c.headers[v]!==void 0?c.headers[v]+=", "+y[2]:c.headers[v]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(c._charset=b[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){i(!0),o.push(null)},h.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},C2}var Tne;function rnt(){if(Tne)return $E.exports;Tne=1;var e=Wre(),t=_8(),a=Mne(),r=Pne(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=$E.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(b){d.setHeader(b,u.headers[b])});var h,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)m=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(h,m),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var h=this,m=u.toLowerCase();c.indexOf(m)===-1&&(h._headers[m]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,m=null;d.method!=="GET"&&d.method!=="HEAD"&&(m=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var b=[];if(Object.keys(h).forEach(function(x){var O=h[x].name,C=h[x].value;Array.isArray(C)?C.forEach(function(w){b.push([O,w])}):b.push([O,C])}),u._mode==="fetch"){var f=null;if(e.abortController){var y=new AbortController;f=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:b,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:f}).then(function(x){u._fetchResponse=x,u._resetTimers(!1),u._connect()},function(x){u._resetTimers(!0),u._destroyed||u.emit("error",x)})}else{var v=u._xhr=new globalThis.XMLHttpRequest;try{v.open(u._opts.method,u._opts.url,!0)}catch(x){process.nextTick(function(){u.emit("error",x)});return}"responseType"in v&&(v.responseType=u._mode),"withCredentials"in v&&(v.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in v&&v.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(v.timeout=d.requestTimeout,v.ontimeout=function(){u.emit("requestTimeout")}),b.forEach(function(x){v.setRequestHeader(x[0],x[1])}),u._response=null,v.onreadystatechange=function(){switch(v.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(v.onprogress=function(){u._onXHRProgress()}),v.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{v.send(m)}catch(x){process.nextTick(function(){u.emit("error",x)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var m=this;m._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var m=this;typeof u=="function"&&(h=u,u=void 0),r.Writable.prototype.end.call(m,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return $E.exports}var n7,Bne;function nnt(){if(Bne)return n7;Bne=1,n7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return n7}var Ene,Rne;function int(){return Rne||(Rne=1,Ene={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",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:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),Ene}var Lne;function ont(){return Lne||(Lne=1,(function(e){var t=rnt(),a=Mne(),r=nnt(),n=int(),i=zE(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,m=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+m,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var b=new t(s);return l&&b.on("response",l),b},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(Fre)),Fre}var _ne,Nne;function snt(){return Nne||(Nne=1,_ne={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},ont().STATUS_CODES)}),_ne}const lnt="7.0.8",cnt={version:lnt};var i7,Dne;function unt(){if(Dne)return i7;Dne=1;const e=$v,t=zE(),a=Vrt(),r=$v,n=$v,i=S2(),o=i.jptr,s=ME().isRef,l=z2().clone,c=z2().circularClone,u=EE().recurse,d=Frt(),h=Qrt(),m=Vre(),b=snt().statusCodes,f=cnt.version,y="3.0.0";let v;class x extends Error{constructor($){super($),this.name="S2OError"}}function O(T,$){let ne=new x(T);if(ne.options=$,$.promise)$.promise.reject(ne);else throw ne}function C(T,$,ne){ne.warnOnly?$[ne.warnProperty||"x-s2o-warning"]=T:O(T,ne)}function w(T,$,ne){if(T.nullable&&ne.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(ne.patch){if(ne.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let F of T.type){let ue={};if(F==="null")T.nullable=!0;else{ue.type=F;for(let de of m.arrayProperties)typeof T.prop<"u"&&(ue[de]=T[de],delete T[de])}ue.type&&T.oneOf.push(ue)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&C("Lost properties from oneOf",T,ne),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else O("(Patchable) schema type must not be an array",ne);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof $.required>"u"&&($.required=[]),Array.isArray($.required)&&$.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(ne.patches++,delete T.allowEmptyValue)}function z(T,$){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let ne in T.discriminator.mapping){let F=T.discriminator.mapping[ne];F.startsWith("#/definitions/")&&(T.discriminator.mapping[ne]=F.replace("#/definitions/","#/components/schemas/"))}}}function j(T,$){h.walkSchema(T,{},{},function(ne,F,ue){z(ne),w(ne,F,$)})}function P(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(T))}function B(T,$,ne){let F=ne.payload.options;if(s(T,$)){if(!T[$].startsWith("#/components/")){if(T[$]==="#/consumes")delete T[$],ne.parent[ne.pkey]=l(F.openapi.consumes);else if(T[$]==="#/produces")delete T[$],ne.parent[ne.pkey]=l(F.openapi.produces);else if(T[$].startsWith("#/definitions/")){let ue=T[$].replace("#/definitions/","").split("/");const de=i.jpunescape(ue[0]);let J=v.schemas[decodeURIComponent(de)];J?ue[0]=J:C("Could not resolve reference "+T[$],T,F),T[$]="#/components/schemas/"+ue.join("/")}else if(T[$].startsWith("#/parameters/"))T[$]="#/components/parameters/"+m.sanitise(T[$].replace("#/parameters/",""));else if(T[$].startsWith("#/responses/"))T[$]="#/components/responses/"+m.sanitise(T[$].replace("#/responses/",""));else if(T[$].startsWith("#")){let ue=l(i.jptr(F.openapi,T[$]));if(ue===!1)C("direct $ref not found "+T[$],T,F);else if(F.refmap[T[$]])T[$]=F.refmap[T[$]];else{let de=T[$];de=de.replace("/properties/headers/",""),de=de.replace("/properties/responses/",""),de=de.replace("/properties/parameters/",""),de=de.replace("/properties/schemas/","");let J="schemas",ae=de.lastIndexOf("/schema");if(J=de.indexOf("/headers/")>ae?"headers":de.indexOf("/responses/")>ae?"responses":de.indexOf("/example")>ae?"examples":de.indexOf("/x-")>ae?"extensions":de.indexOf("/parameters/")>ae?"parameters":"schemas",J==="schemas"&&j(ue,F),J!=="responses"&&J!=="extensions"){let ce=J.substr(0,J.length-1);ce==="parameter"&&ue.name&&ue.name===m.sanitise(ue.name)&&(ce=encodeURIComponent(ue.name));let be=1;for(T["x-miro"]&&(ce=P(T["x-miro"]),be="");i.jptr(F.openapi,"#/components/"+J+"/"+ce+be);)be=be===""?2:++be;let ge="#/components/"+J+"/"+ce+be,fe="";J==="examples"&&(ue={value:ue},fe="/value"),i.jptr(F.openapi,ge,ue),F.refmap[T[$]]=ge+fe,T[$]=ge+fe}}}}if(delete T["x-miro"],Object.keys(T).length>1){const ue=T[$],de=ne.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(de&&F.refSiblings==="allOf"?(delete T.$ref,ne.parent[ne.pkey]={allOf:[{$ref:ue},T]}):ne.parent[ne.pkey]={$ref:ue})}}if($==="x-ms-odata"&&typeof T[$]=="string"&&T[$].startsWith("#/")){let ue=T[$].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),de=v.schemas[decodeURIComponent(ue[0])];de?ue[0]=de:C("Could not resolve reference "+T[$],T,F),T[$]="#/components/schemas/"+ue.join("/")}}function _(T,$){for(let ne in $.refmap)i.jptr(T,ne,{$ref:$.refmap[ne]})}function I(T){for(let $ in T)for(let ne in T[$]){let F=m.sanitise(ne);ne!==F&&(T[$][F]=T[$][ne],delete T[$][ne])}}function L(T,$){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let ne={},F=T.flow;T.flow==="application"&&(F="clientCredentials"),T.flow==="accessCode"&&(F="authorizationCode"),typeof T.authorizationUrl<"u"&&(ne.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(ne.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),ne.scopes=T.scopes||{},T.flows={},T.flows[F]=ne,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&($.patch?($.patches++,delete T.name):O("(Patchable) oauth2 securitySchemes should not have name property",$))}}function Q(T){return T&&!T["x-s2o-delete"]}function N(T,$){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&C("Nested collectionFormats are not supported",T,$),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?C("collectionFormat:ssv is no longer supported for headers",T,$):T.collectionFormat==="pipes"?C("collectionFormat:pipes is no longer supported for headers",T,$):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(C("collectionFormat:tsv is no longer supported",T,$),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&($.patch?($.patches++,delete T.collectionFormat):O("(Patchable) collectionFormat is only applicable to header.type array",$)),delete T.type;for(let ne of m.parameterTypeProperties)typeof T[ne]<"u"&&(T.schema[ne]=T[ne],delete T[ne]);for(let ne of m.arrayProperties)typeof T[ne]<"u"&&(T.schema[ne]=T[ne],delete T[ne])}}function Y(T,$){if(T.$ref.indexOf("#/parameters/")>=0){let ne=T.$ref.split("#/parameters/");T.$ref=ne[0]+"#/components/parameters/"+m.sanitise(ne[1])}T.$ref.indexOf("#/definitions/")>=0&&C("Definition used as parameter",T,$)}function X(T,$){let ne={};for(let F of Object.keys(T))ne[F]=T[F],F==="parameters"&&(ne.requestBody={},$.rbname&&(ne[$.rbname]=""));return ne.requestBody={},ne}function oe(T,$,ne,F,ue,de,J){let ae={},ce=!0,be;if($&&$.consumes&&typeof $.consumes=="string")if(J.patch)J.patches++,$.consumes=[$.consumes];else return O("(Patchable) operation.consumes must be an array",J);Array.isArray(de.consumes)||delete de.consumes;let ge=(($?$.consumes:null)||de.consumes||[]).filter(m.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){Y(T,J);let fe=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),ye=!1,ze=de.components.parameters[fe];if((!ze||ze["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,ye=!0),ye){let Te=T.$ref,tt=o(de,T.$ref);!tt&&Te.startsWith("#/")?C("Could not resolve reference "+Te,T,J):tt&&(T=tt)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(J.patch?(J.patches++,T.type="string"):O("(Patchable) parameter.type is mandatory for non-body parameters",J)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=o(de,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,be=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=o(de,T.description.$ref)),T.description===null&&delete T.description;let fe=T.collectionFormat;if(T.type==="array"&&!fe&&(fe="csv"),fe&&(T.type!=="array"&&(J.patch?(J.patches++,delete T.collectionFormat):O("(Patchable) collectionFormat is only applicable to param.type array",J)),fe==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),fe==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),fe==="ssv"&&(T.in==="query"?T.style="spaceDelimited":C("collectionFormat:ssv is no longer supported except for in:query parameters",T,J)),fe==="pipes"&&(T.in==="query"?T.style="pipeDelimited":C("collectionFormat:pipes is no longer supported except for in:query parameters",T,J)),fe==="multi"&&(T.explode=!0),fe==="tsv"&&(C("collectionFormat:tsv is no longer supported",T,J),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)C("parameter has array,items and schema",T,J);else{T.schema&&J.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(ye,ze,Te){ze==="collectionFormat"&&typeof ye[ze]=="string"&&(fe&&ye[ze]!==fe&&C("Nested collectionFormats are not supported",T,J),delete ye[ze])}));for(let ye of m.parameterTypeProperties)typeof T[ye]<"u"&&(T.schema[ye]=T[ye]),delete T[ye]}T.schema&&j(T.schema,J),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){ce=!1,ae.content={};let fe="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(fe="multipart/form-data"),ae.content[fe]={},T.schema)ae.content[fe].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[fe].schema={},ae.content[fe].schema.type="object",ae.content[fe].schema.properties={},ae.content[fe].schema.properties[T.name]={};let ye=ae.content[fe].schema,ze=ae.content[fe].schema.properties[T.name];T.description&&(ze.description=T.description),T.example&&(ze.example=T.example),T.type&&(ze.type=T.type);for(let Te of m.parameterTypeProperties)typeof T[Te]<"u"&&(ze[Te]=T[Te]);T.required===!0&&(ye.required||(ye.required=[]),ye.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ze.default=T.default),ze.properties&&(ze.properties=T.properties),T.allOf&&(ze.allOf=T.allOf),T.type==="array"&&T.items&&(ze.items=T.items,ze.items.collectionFormat&&delete ze.items.collectionFormat),(be==="file"||T["x-s2o-originalType"]==="file")&&(ze.type="string",ze.format="binary"),re(T,ze)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",re(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=($&&$.operationId?m.sanitiseAll($.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),$&&J.rbname&&T.name&&($[J.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let fe of ge)ae.content[fe]={},ae.content[fe].schema=l(T.schema||{}),j(ae.content[fe].schema,J);re(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,$))if($.requestBody&&ce){$.requestBody["x-s2o-overloaded"]=!0;let fe=$.operationId||ue;C("Operation "+fe+" has multiple requestBodies",$,J)}else $.requestBody||($=ne[F]=X($,J)),$.requestBody.content&&$.requestBody.content["multipart/form-data"]&&$.requestBody.content["multipart/form-data"].schema&&$.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?($.requestBody.content["multipart/form-data"].schema.properties=Object.assign($.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),$.requestBody.content["multipart/form-data"].schema.required=($.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),$.requestBody.content["multipart/form-data"].schema.required.length||delete $.requestBody.content["multipart/form-data"].schema.required):$.requestBody.content&&$.requestBody.content["application/x-www-form-urlencoded"]&&$.requestBody.content["application/x-www-form-urlencoded"].schema&&$.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?($.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign($.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),$.requestBody.content["application/x-www-form-urlencoded"].schema.required=($.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),$.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete $.requestBody.content["application/x-www-form-urlencoded"].schema.required):($.requestBody=Object.assign($.requestBody,ae),$.requestBody["x-s2o-name"]||($.requestBody.schema&&$.requestBody.schema.$ref?$.requestBody["x-s2o-name"]=decodeURIComponent($.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):$.operationId&&($.requestBody["x-s2o-name"]=m.sanitiseAll($.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let fe of m.parameterTypeProperties)delete T[fe];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(J.patch?(J.patches++,T.required=!0):O("(Patchable) path parameters must be required:true ["+T.name+" in "+ue+"]",J))}return $}function re(T,$){for(let ne in T)ne.startsWith("x-")&&!ne.startsWith("x-s2o")&&($[ne]=T[ne])}function he(T,$,ne,F,ue){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?C("definition used as response: "+T.$ref,T,ue):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&ue.patch)&&(ue.patch?typeof T=="object"&&!Array.isArray(T)&&(ue.patches++,T.description=b[T]||""):O("(Patchable) response.description is mandatory",ue)),typeof T.schema<"u"){if(j(T.schema,ue),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),ne&&ne.produces&&typeof ne.produces=="string")if(ue.patch)ue.patches++,ne.produces=[ne.produces];else return O("(Patchable) operation.produces must be an array",ue);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let de=((ne?ne.produces:null)||F.produces||[]).filter(m.uniqueOnly);de.length||de.push("*/*"),T.content={};for(let J of de){if(T.content[J]={},T.content[J].schema=l(T.schema),T.examples&&T.examples[J]){let ae={};ae.value=T.examples[J],T.content[J].examples={},T.content[J].examples.response=ae,delete T.examples[J]}T.content[J].schema.type==="file"&&(T.content[J].schema={type:"string",format:"binary"})}delete T.schema}for(let de in T.examples)T.content||(T.content={}),T.content[de]||(T.content[de]={}),T.content[de].examples={},T.content[de].examples.response={},T.content[de].examples.response.value=T.examples[de];if(delete T.examples,T.headers)for(let de in T.headers)de.toLowerCase()==="status code"?ue.patch?(ue.patches++,delete T.headers[de]):O('(Patchable) "Status Code" is not a valid header',ue):N(T.headers[de],ue)}}function U(T,$,ne,F,ue){for(let de in T){let J=T[de];J&&J["x-trace"]&&typeof J["x-trace"]=="object"&&(J.trace=J["x-trace"],delete J["x-trace"]),J&&J["x-summary"]&&typeof J["x-summary"]=="string"&&(J.summary=J["x-summary"],delete J["x-summary"]),J&&J["x-description"]&&typeof J["x-description"]=="string"&&(J.description=J["x-description"],delete J["x-description"]),J&&J["x-servers"]&&Array.isArray(J["x-servers"])&&(J.servers=J["x-servers"],delete J["x-servers"]);for(let ae in J)if(m.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let ce=J[ae];if(ce&&ce.parameters&&Array.isArray(ce.parameters)){if(J.parameters)for(let be of J.parameters)typeof be.$ref=="string"&&(Y(be,ne),be=o(ue,be.$ref)),!ce.parameters.find(function(ge,fe,ye){return ge.name===be.name&&ge.in===be.in})&&(be.in==="formData"||be.in==="body"||be.type==="file")&&(ce=oe(be,ce,J,ae,de,ue,ne),ne.rbname&&ce[ne.rbname]===""&&delete ce[ne.rbname]);for(let be of ce.parameters)ce=oe(be,ce,J,ae,ae+":"+de,ue,ne);ne.rbname&&ce[ne.rbname]===""&&delete ce[ne.rbname],ne.debug||ce.parameters&&(ce.parameters=ce.parameters.filter(Q))}if(ce&&ce.security&&I(ce.security),typeof ce=="object"){if(!ce.responses){let be={};be.description="Default response",ce.responses={default:be}}for(let be in ce.responses){let ge=ce.responses[be];he(ge,be,ce,ue,ne)}}if(ce&&ce["x-servers"]&&Array.isArray(ce["x-servers"]))ce.servers=ce["x-servers"],delete ce["x-servers"];else if(ce&&ce.schemes&&ce.schemes.length){for(let be of ce.schemes)if((!ue.schemes||ue.schemes.indexOf(be)<0)&&(ce.servers||(ce.servers=[]),Array.isArray(ue.servers)))for(let ge of ue.servers){let fe=l(ge),ye=t.parse(fe.url);ye.protocol=be,fe.url=ye.format(),ce.servers.push(fe)}}if(ne.debug&&(ce["x-s2o-consumes"]=ce.consumes||[],ce["x-s2o-produces"]=ce.produces||[]),ce){if(delete ce.consumes,delete ce.produces,delete ce.schemes,ce["x-ms-examples"]){for(let be in ce["x-ms-examples"]){let ge=ce["x-ms-examples"][be],fe=m.sanitiseAll(be);if(ge.parameters)for(let ye in ge.parameters){let ze=ge.parameters[ye];for(let Te of(ce.parameters||[]).concat(J.parameters||[]))Te.$ref&&(Te=i.jptr(ue,Te.$ref)),Te.name===ye&&!Te.example&&(Te.examples||(Te.examples={}),Te.examples[be]={value:ze})}if(ge.responses)for(let ye in ge.responses){if(ge.responses[ye].headers)for(let ze in ge.responses[ye].headers){let Te=ge.responses[ye].headers[ze];for(let tt in ce.responses[ye].headers)if(tt===ze){let M=ce.responses[ye].headers[tt];M.example=Te}}if(ge.responses[ye].body&&(ue.components.examples[fe]={value:l(ge.responses[ye].body)},ce.responses[ye]&&ce.responses[ye].content))for(let ze in ce.responses[ye].content){let Te=ce.responses[ye].content[ze];Te.examples||(Te.examples={}),Te.examples[be]={$ref:"#/components/examples/"+fe}}}}delete ce["x-ms-examples"]}if(ce.parameters&&ce.parameters.length===0&&delete ce.parameters,ce.requestBody){let be=ce.operationId?m.sanitiseAll(ce.operationId):m.sanitiseAll(ae+de).toCamelCase(),ge=m.sanitise(ce.requestBody["x-s2o-name"]||be||"");delete ce.requestBody["x-s2o-name"];let fe=JSON.stringify(ce.requestBody),ye=m.hash(fe);if(!F[ye]){let Te={};Te.name=ge,Te.body=ce.requestBody,Te.refs=[],F[ye]=Te}let ze="#/"+$+"/"+encodeURIComponent(i.jpescape(de))+"/"+ae+"/requestBody";F[ye].refs.push(ze)}}}if(J&&J.parameters){for(let ae in J.parameters){let ce=J.parameters[ae];oe(ce,null,J,null,de,ue,ne)}!ne.debug&&Array.isArray(J.parameters)&&(J.parameters=J.parameters.filter(Q))}}}function V(T,$){let ne={};v={schemas:{}},T.security&&I(T.security);for(let ue in T.components.securitySchemes){let de=m.sanitise(ue);ue!==de&&(T.components.securitySchemes[de]&&O("Duplicate sanitised securityScheme name "+de,$),T.components.securitySchemes[de]=T.components.securitySchemes[ue],delete T.components.securitySchemes[ue]),L(T.components.securitySchemes[de],$)}for(let ue in T.components.schemas){let de=m.sanitiseAll(ue),J="";if(ue!==de){for(;T.components.schemas[de+J];)J=J?++J:2;T.components.schemas[de+J]=T.components.schemas[ue],delete T.components.schemas[ue]}v.schemas[ue]=de+J,j(T.components.schemas[de+J],$)}$.refmap={},u(T,{payload:{options:$}},B),_(T,$);for(let ue in T.components.parameters){let de=m.sanitise(ue);ue!==de&&(T.components.parameters[de]&&O("Duplicate sanitised parameter name "+de,$),T.components.parameters[de]=T.components.parameters[ue],delete T.components.parameters[ue]);let J=T.components.parameters[de];oe(J,null,null,null,de,T,$)}for(let ue in T.components.responses){let de=m.sanitise(ue);ue!==de&&(T.components.responses[de]&&O("Duplicate sanitised response name "+de,$),T.components.responses[de]=T.components.responses[ue],delete T.components.responses[ue]);let J=T.components.responses[de];if(he(J,de,null,T,$),J.headers)for(let ae in J.headers)ae.toLowerCase()==="status code"?$.patch?($.patches++,delete J.headers[ae]):O('(Patchable) "Status Code" is not a valid header',$):N(J.headers[ae],$)}for(let ue in T.components.requestBodies){let de=T.components.requestBodies[ue],J=JSON.stringify(de),ae=m.hash(J),ce={};ce.name=ue,ce.body=de,ce.refs=[],ne[ae]=ce}if(U(T.paths,"paths",$,ne,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",$,ne,T),!$.debug)for(let ue in T.components.parameters)T.components.parameters[ue]["x-s2o-delete"]&&delete T.components.parameters[ue];$.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let F=[];if(T.components.requestBodies={},!$.resolveInternal){let ue=1;for(let de in ne){let J=ne[de];if(J.refs.length>1){let ae="";for(J.name||(J.name="requestBody",ae=ue++);F.indexOf(J.name+ae)>=0;)ae=ae?++ae:2;J.name=J.name+ae,F.push(J.name),T.components.requestBodies[J.name]=l(J.body);for(let ce in J.refs){let be={};be.$ref="#/components/requestBodies/"+J.name,i.jptr(T,J.refs[ce],be)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function Z(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function($,ne){T.variables||(T.variables={}),T.variables[ne]={default:"unknown"}})),T}function G(T,$,ne){if(typeof T.info>"u"||T.info===null)if($.patch)$.patches++,T.info={version:"",title:""};else return ne(new x("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return ne(new x("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if($.patch)$.patches++,T.info.title="";else return ne(new x("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if($.patch)$.patches++,T.info.version="";else return ne(new x("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if($.patch)$.patches++,T.info.version=T.info.version.toString();else return ne(new x("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if($.patch)$.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return ne(new x("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if($.patch)$.patches++,T.info.termsOfService="";else return ne(new x("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if($.patch)$.patches++,delete T.info.termsOfService;else return ne(new x("(Patchable) info.termsOfService must be a URL"))}}}function R(T,$,ne){if(typeof T.paths>"u")if($.patch)$.patches++,T.paths={};else return ne(new x("(Patchable) paths object is mandatory"))}function D(T,$){const ne=new WeakSet;u(T,{identityDetection:!0},function(F,ue,de){typeof F[ue]=="object"&&F[ue]!==null&&(ne.has(F[ue])?$.anchors?F[ue]=l(F[ue]):O("YAML anchor or merge key at "+de.path,$):ne.add(F[ue]))})}function q(T,$,ne){return a(ne,new Promise(function(F,ue){if(T||(T={}),$.original=T,$.text||($.text=n.stringify(T)),$.externals=[],$.externalRefs={},$.rewriteRefs=!0,$.preserveMiro=!0,$.promise={},$.promise.resolve=F,$.promise.reject=ue,$.patches=0,$.cache||($.cache={}),$.source&&($.cache[$.source]=$.original),D(T,$),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){$.openapi=c(T),G($.openapi,$,ue),R($.openapi,$,ue),d.optionalResolve($).then(function(){return $.direct?F($.openapi):F($)}).catch(function(J){console.warn(J),ue(J)});return}if(!T.swagger||T.swagger!="2.0")return ue(new x("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let de=$.openapi={};if(de.openapi=typeof $.targetVersion=="string"&&$.targetVersion.startsWith("3.")?$.targetVersion:y,$.origin){de["x-origin"]||(de["x-origin"]=[]);let J={};J.url=$.source||$.origin,J.format="swagger",J.version=T.swagger,J.converter={},J.converter.url="https://github.com/mermade/oas-kit",J.converter.version=f,de["x-origin"].push(J)}if(de=Object.assign(de,c(T)),delete de.swagger,u(de,{},function(J,ae,ce){J[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&ce.path.indexOf("/example")<0&&delete J[ae]}),T.host)for(let J of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},ce=(T.basePath||"").replace(/\/$/,"");ae.url=(J?J+":":"")+"//"+T.host+ce,Z(ae),de.servers||(de.servers=[]),de.servers.push(ae)}else if(T.basePath){let J={};J.url=T.basePath,Z(J),de.servers||(de.servers=[]),de.servers.push(J)}if(delete de.host,delete de.basePath,de["x-servers"]&&Array.isArray(de["x-servers"])&&(de.servers=de["x-servers"],delete de["x-servers"]),T["x-ms-parameterized-host"]){let J=T["x-ms-parameterized-host"],ae={};ae.url=J.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const ce=ae.url.match(/\{\w+\}/g);for(let be in J.parameters){let ge=J.parameters[be];ge.$ref&&(ge=l(o(de,ge.$ref))),be.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=ce[be].replace("{","").replace("}","")),ae.variables[ge.name]=ge,delete ge.name)}de.servers||(de.servers=[]),J.useSchemePrefix===!1?de.servers.push(ae):T.schemes.forEach(be=>{de.servers.push(Object.assign({},ae,{url:be+"://"+ae.url}))}),delete de["x-ms-parameterized-host"]}G(de,$,ue),R(de,$,ue),typeof de.consumes=="string"&&(de.consumes=[de.consumes]),typeof de.produces=="string"&&(de.produces=[de.produces]),de.components={},de["x-callbacks"]&&(de.components.callbacks=de["x-callbacks"],delete de["x-callbacks"]),de.components.examples={},de.components.headers={},de["x-links"]&&(de.components.links=de["x-links"],delete de["x-links"]),de.components.parameters=de.parameters||{},de.components.responses=de.responses||{},de.components.requestBodies={},de.components.securitySchemes=de.securityDefinitions||{},de.components.schemas=de.definitions||{},delete de.definitions,delete de.responses,delete de.parameters,delete de.securityDefinitions,d.optionalResolve($).then(function(){V($.openapi,$),$.direct?F($.openapi):F($)}).catch(function(J){console.warn(J),ue(J)})}))}function te(T,$,ne){return a(ne,new Promise(function(F,ue){let de=null,J=null;try{de=JSON.parse(T),$.text=JSON.stringify(de,null,2)}catch(ae){J=ae;try{de=n.parse(T,{schema:"core",prettyErrors:!0}),$.sourceYaml=!0,$.text=T}catch(ce){J=ce}}de?q(de,$).then(ae=>F(ae)).catch(ae=>ue(ae)):ue(new x(J?J.message:"Could not parse string"))}))}function se(T,$,ne){return a(ne,new Promise(function(F,ue){$.origin=!0,$.source||($.source=T),$.verbose&&console.warn("GET "+T),$.fetch||($.fetch=r);const de=Object.assign({},$.fetchOptions,{agent:$.agent});$.fetch(T,de).then(function(J){if(J.status!==200)throw new x(`Received status code ${J.status}: ${T}`);return J.text()}).then(function(J){te(J,$).then(ae=>F(ae)).catch(ae=>ue(ae))}).catch(function(J){ue(J)})}))}function ve(T,$,ne){return a(ne,new Promise(function(F,ue){e.readFile(T,$.encoding||"utf8",function(de,J){de?ue(de):($.sourceFile=T,te(J,$).then(ae=>F(ae)).catch(ae=>ue(ae)))})}))}function xe(T,$,ne){return a(ne,new Promise(function(F,ue){let de="";T.on("data",function(J){de+=J}).on("end",function(){te(de,$).then(J=>F(J)).catch(J=>ue(J))})}))}return i7={S2OError:x,targetVersion:y,convert:q,convertObj:q,convertUrl:se,convertStr:te,convertFile:ve,convertStream:xe},i7}var dnt=unt();const pnt=Jr(dnt);function hnt(e){return e.paths||(e.paths={}),new Promise((t,a)=>pnt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function mnt(){try{return(await Sre())?.resolvedConfig.openapi||{}}catch{return{}}}async function gnt(e){const t=await Sre(),a={config:t,base:fu?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};fu&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=fnt(e):a.ref=e;const{bundle:{parsed:r}}=await Ert(a);return r.swagger!==void 0?hnt(r):r}function fnt(e){return{source:{absoluteRef:""},parsed:e}}async function vnt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await gnt(e||t);try{GQe(r)}catch{}return r}const bnt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=E.useState(),[s,l]=E.useState(!0),[c,u]=E.useState(null),[d,h]=E.useState(e||{});E.useEffect(()=>{async function b(){l(!0);try{const f=await mnt();h({...e,...f}),u(await vnt(a,t,e))}catch(f){o(f.message)}}b()},[a,t,e]);const m=E.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},FQe([c,t,d]));return E.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?vl(e?.hideLoading,!1)?null:p.jsx(qYe,{color:"--loading-spinner-color"}):E.isValidElement(n)?E.cloneElement(n,{store:m}):null};function ynt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(bnt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(qte,{withCommonStyles:!0,router:o||"hash"})})}function knt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function xnt(e){const t=knt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function wnt(e,t=document.querySelector("redoc")){xQ.hydrateRoot(t,p.jsx(qte,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function $ne(e,t={},a=s6("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}={...t,...xnt(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),xQ.createRoot(a).render(E.createElement(ynt,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const Ont="3.16.0",Snt="fe3253dabb";function znt(){const e=s6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&$ne(t,{},e)}znt();function e0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ine={exports:{}},Kne;function Cnt(){return Kne||(Kne=1,(function(e,t){(function(a){e.exports=a()})(function(){return(function a(r,n,i){function o(c,u){if(!n[c]){if(!r[c]){var d=typeof e0=="function"&&e0;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var m=n[c]={exports:{}};r[c][0].call(m.exports,function(b){var f=r[c][1][b];return o(f||b)},m,m.exports,a,r,n,i)}return n[c].exports}for(var s=typeof e0=="function"&&e0,l=0;l<i.length;l++)o(i[l]);return o})({1:[function(a,r,n){var i=a("./utils"),o=a("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(l){for(var c,u,d,h,m,b,f,y=[],v=0,x=l.length,O=x,C=i.getTypeOf(l)!=="string";v<l.length;)O=x-v,d=C?(c=l[v++],u=v<x?l[v++]:0,v<x?l[v++]:0):(c=l.charCodeAt(v++),u=v<x?l.charCodeAt(v++):0,v<x?l.charCodeAt(v++):0),h=c>>2,m=(3&c)<<4|u>>4,b=1<O?(15&u)<<2|d>>6:64,f=2<O?63&d:64,y.push(s.charAt(h)+s.charAt(m)+s.charAt(b)+s.charAt(f));return y.join("")},n.decode=function(l){var c,u,d,h,m,b,f=0,y=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var x,O=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&O--,l.charAt(l.length-2)===s.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=o.uint8array?new Uint8Array(0|O):new Array(0|O);f<l.length;)c=s.indexOf(l.charAt(f++))<<2|(h=s.indexOf(l.charAt(f++)))>>4,u=(15&h)<<4|(m=s.indexOf(l.charAt(f++)))>>2,d=(3&m)<<6|(b=s.indexOf(l.charAt(f++))),x[y++]=c,m!==64&&(x[y++]=u),b!==64&&(x[y++]=d);return x}},{"./support":30,"./utils":32}],2:[function(a,r,n){var i=a("./external"),o=a("./stream/DataWorker"),s=a("./stream/Crc32Probe"),l=a("./stream/DataLengthProbe");function c(u,d,h,m,b){this.compressedSize=u,this.uncompressedSize=d,this.crc32=h,this.compression=m,this.compressedContent=b}c.prototype={getContentWorker:function(){var u=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,d,h){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(d.compressWorker(h)).pipe(new l("compressedSize")).withStreamInfo("compression",d)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,r,n){var i=a("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,r,n){var i=a("./utils"),o=(function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l})();r.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?(function(c,u,d,h){var m=o,b=h+d;c^=-1;for(var f=h;f<b;f++)c=c>>>8^m[255&(c^u[f])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,h){var m=o,b=h+d;c^=-1;for(var f=h;f<b;f++)c=c>>>8^m[255&(c^u.charCodeAt(f))];return-1^c})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(a,r,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(a,r,n){var i=null;i=typeof Promise<"u"?Promise:a("lie"),r.exports={Promise:i}},{lie:37}],7:[function(a,r,n){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=a("pako"),s=a("./utils"),l=a("./stream/GenericWorker"),c=i?"uint8array":"array";function u(d,h){l.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=h,this.meta={}}n.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(h){d.push({data:h,meta:d.meta})}},n.compressWorker=function(d){return new u("Deflate",d)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,r,n){function i(m,b){var f,y="";for(f=0;f<b;f++)y+=String.fromCharCode(255&m),m>>>=8;return y}function o(m,b,f,y,v,x){var O,C,w=m.file,z=m.compression,j=x!==c.utf8encode,P=s.transformTo("string",x(w.name)),B=s.transformTo("string",c.utf8encode(w.name)),_=w.comment,I=s.transformTo("string",x(_)),L=s.transformTo("string",c.utf8encode(_)),Q=B.length!==w.name.length,N=L.length!==_.length,Y="",X="",oe="",re=w.dir,he=w.date,U={crc32:0,compressedSize:0,uncompressedSize:0};b&&!f||(U.crc32=m.crc32,U.compressedSize=m.compressedSize,U.uncompressedSize=m.uncompressedSize);var V=0;b&&(V|=8),j||!Q&&!N||(V|=2048);var Z=0,G=0;re&&(Z|=16),v==="UNIX"?(G=798,Z|=(function(D,q){var te=D;return D||(te=q?16893:33204),(65535&te)<<16})(w.unixPermissions,re)):(G=20,Z|=(function(D){return 63&(D||0)})(w.dosPermissions)),O=he.getUTCHours(),O<<=6,O|=he.getUTCMinutes(),O<<=5,O|=he.getUTCSeconds()/2,C=he.getUTCFullYear()-1980,C<<=4,C|=he.getUTCMonth()+1,C<<=5,C|=he.getUTCDate(),Q&&(X=i(1,1)+i(u(P),4)+B,Y+="up"+i(X.length,2)+X),N&&(oe=i(1,1)+i(u(I),4)+L,Y+="uc"+i(oe.length,2)+oe);var R="";return R+=`
|
|
10261
10261
|
\0`,R+=i(V,2),R+=z.magic,R+=i(O,2),R+=i(C,2),R+=i(U.crc32,4),R+=i(U.compressedSize,4),R+=i(U.uncompressedSize,4),R+=i(P.length,2),R+=i(Y.length,2),{fileRecord:d.LOCAL_FILE_HEADER+R+P+Y,dirRecord:d.CENTRAL_FILE_HEADER+i(G,2)+R+i(I.length,2)+"\0\0\0\0"+i(Z,4)+i(y,4)+P+Y+I}}var s=a("../utils"),l=a("../stream/GenericWorker"),c=a("../utf8"),u=a("../crc32"),d=a("../signature");function h(m,b,f,y){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=f,this.encodeFileName=y,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,l),h.prototype.push=function(m){var b=m.meta.percent||0,f=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,l.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:f?(b+100*(f-y-1))/f:100}}))},h.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var b=this.streamFiles&&!m.file.dir;if(b){var f=o(m,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(m){this.accumulate=!1;var b=this.streamFiles&&!m.file.dir,f=o(m,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),b)this.push({data:(function(y){return d.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)})(m),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var m=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var f=this.bytesWritten-m,y=(function(v,x,O,C,w){var z=s.transformTo("string",w(C));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(v,2)+i(v,2)+i(x,4)+i(O,4)+i(z.length,2)+z})(this.dirRecords.length,f,m,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(m){this._sources.push(m);var b=this;return m.on("data",function(f){b.processChunk(f)}),m.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),m.on("error",function(f){b.error(f)}),this},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(m){var b=this._sources;if(!l.prototype.error.call(this,m))return!1;for(var f=0;f<b.length;f++)try{b[f].error(m)}catch{}return!0},h.prototype.lock=function(){l.prototype.lock.call(this);for(var m=this._sources,b=0;b<m.length;b++)m[b].lock()},r.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,r,n){var i=a("../compressions"),o=a("./ZipFileWorker");n.generateWorker=function(s,l,c){var u=new o(l.streamFiles,c,l.platform,l.encodeFileName),d=0;try{s.forEach(function(h,m){d++;var b=(function(x,O){var C=x||O,w=i[C];if(!w)throw new Error(C+" is not a valid compression method !");return w})(m.options.compression,l.compression),f=m.options.compressionOptions||l.compressionOptions||{},y=m.dir,v=m.date;m._compressWorker(b,f).withStreamInfo("file",{name:h,dir:y,date:v,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(h){u.error(h)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,r,n){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(i.prototype=a("./object")).loadAsync=a("./load"),i.support=a("./support"),i.defaults=a("./defaults"),i.version="3.10.1",i.loadAsync=function(o,s){return new i().loadAsync(o,s)},i.external=a("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,r,n){var i=a("./utils"),o=a("./external"),s=a("./utf8"),l=a("./zipEntries"),c=a("./stream/Crc32Probe"),u=a("./nodejsUtils");function d(h){return new o.Promise(function(m,b){var f=h.decompressed.getContentWorker().pipe(new c);f.on("error",function(y){b(y)}).on("end",function(){f.streamInfo.crc32!==h.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}r.exports=function(h,m){var b=this;return m=i.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(h)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",h,!0,m.optimizedBinaryString,m.base64).then(function(f){var y=new l(m);return y.load(f),y}).then(function(f){var y=[o.Promise.resolve(f)],v=f.files;if(m.checkCRC32)for(var x=0;x<v.length;x++)y.push(d(v[x]));return o.Promise.all(y)}).then(function(f){for(var y=f.shift(),v=y.files,x=0;x<v.length;x++){var O=v[x],C=O.fileNameStr,w=i.resolve(O.fileNameStr);b.file(w,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:m.createFolders}),O.dir||(b.file(w).unsafeOriginalName=C)}return y.zipComment.length&&(b.comment=y.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,r,n){var i=a("../utils"),o=a("../stream/GenericWorker");function s(l,c){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}i.inherits(s,o),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,r,n){var i=a("readable-stream").Readable;function o(s,l,c){i.call(this,l),this._helper=s;var u=this;s.on("data",function(d,h){u.push(d)||u._helper.pause(),c&&c(h)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}a("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(a,r,n){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,o);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,o)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var o=new Buffer(i);return o.fill(0),o},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(a,r,n){function i(w,z,j){var P,B=s.getTypeOf(z),_=s.extend(j||{},u);_.date=_.date||new Date,_.compression!==null&&(_.compression=_.compression.toUpperCase()),typeof _.unixPermissions=="string"&&(_.unixPermissions=parseInt(_.unixPermissions,8)),_.unixPermissions&&16384&_.unixPermissions&&(_.dir=!0),_.dosPermissions&&16&_.dosPermissions&&(_.dir=!0),_.dir&&(w=v(w)),_.createFolders&&(P=y(w))&&x.call(this,P,!0);var I=B==="string"&&_.binary===!1&&_.base64===!1;j&&j.binary!==void 0||(_.binary=!I),(z instanceof d&&z.uncompressedSize===0||_.dir||!z||z.length===0)&&(_.base64=!1,_.binary=!0,z="",_.compression="STORE",B="string");var L=null;L=z instanceof d||z instanceof l?z:b.isNode&&b.isStream(z)?new f(w,z):s.prepareContent(w,z,_.binary,_.optimizedBinaryString,_.base64);var Q=new h(w,L,_);this.files[w]=Q}var o=a("./utf8"),s=a("./utils"),l=a("./stream/GenericWorker"),c=a("./stream/StreamHelper"),u=a("./defaults"),d=a("./compressedObject"),h=a("./zipObject"),m=a("./generate"),b=a("./nodejsUtils"),f=a("./nodejs/NodejsStreamInputAdapter"),y=function(w){w.slice(-1)==="/"&&(w=w.substring(0,w.length-1));var z=w.lastIndexOf("/");return 0<z?w.substring(0,z):""},v=function(w){return w.slice(-1)!=="/"&&(w+="/"),w},x=function(w,z){return z=z!==void 0?z:u.createFolders,w=v(w),this.files[w]||i.call(this,w,null,{dir:!0,createFolders:z}),this.files[w]};function O(w){return Object.prototype.toString.call(w)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(w){var z,j,P;for(z in this.files)P=this.files[z],(j=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&w(j,P)},filter:function(w){var z=[];return this.forEach(function(j,P){w(j,P)&&z.push(P)}),z},file:function(w,z,j){if(arguments.length!==1)return w=this.root+w,i.call(this,w,z,j),this;if(O(w)){var P=w;return this.filter(function(_,I){return!I.dir&&P.test(_)})}var B=this.files[this.root+w];return B&&!B.dir?B:null},folder:function(w){if(!w)return this;if(O(w))return this.filter(function(B,_){return _.dir&&w.test(B)});var z=this.root+w,j=x.call(this,z),P=this.clone();return P.root=j.name,P},remove:function(w){w=this.root+w;var z=this.files[w];if(z||(w.slice(-1)!=="/"&&(w+="/"),z=this.files[w]),z&&!z.dir)delete this.files[w];else for(var j=this.filter(function(B,_){return _.name.slice(0,w.length)===w}),P=0;P<j.length;P++)delete this.files[j[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(w){var z,j={};try{if((j=s.extend(w||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");s.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var P=j.comment||this.comment||"";z=m.generateWorker(this,j,P)}catch(B){(z=new l("error")).error(B)}return new c(z,j.type||"string",j.mimeType)},generateAsync:function(w,z){return this.generateInternalStream(w).accumulate(z)},generateNodeStream:function(w,z){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(z)}};r.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,r,n){r.exports=a("stream")},{stream:void 0}],17:[function(a,r,n){var i=a("./DataReader");function o(s){i.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}a("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===l&&this.data[h+1]===c&&this.data[h+2]===u&&this.data[h+3]===d)return h-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),h=this.readData(4);return l===h[0]&&c===h[1]&&u===h[2]&&d===h[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(a,r,n){var i=a("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=o},{"../utils":32}],19:[function(a,r,n){var i=a("./Uint8ArrayReader");function o(s){i.call(this,s)}a("../utils").inherits(o,i),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,r,n){var i=a("./DataReader");function o(s){i.call(this,s)}a("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(a,r,n){var i=a("./ArrayReader");function o(s){i.call(this,s)}a("../utils").inherits(o,i),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(a,r,n){var i=a("../utils"),o=a("../support"),s=a("./ArrayReader"),l=a("./StringReader"),c=a("./NodeBufferReader"),u=a("./Uint8ArrayReader");r.exports=function(d){var h=i.getTypeOf(d);return i.checkSupport(h),h!=="string"||o.uint8array?h==="nodebuffer"?new c(d):o.uint8array?new u(i.transformTo("uint8array",d)):new s(i.transformTo("array",d)):new l(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,r,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,r,n){var i=a("./GenericWorker"),o=a("../utils");function s(l){i.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,i),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(a,r,n){var i=a("./GenericWorker"),o=a("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(s,i),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,r,n){var i=a("../utils"),o=a("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(s,o),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}o.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(a,r,n){var i=a("../utils"),o=a("./GenericWorker");function s(l){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=i.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}i.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(a,r,n){function i(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=i},{}],29:[function(a,r,n){var i=a("../utils"),o=a("./ConvertWorker"),s=a("./GenericWorker"),l=a("../base64"),c=a("../support"),u=a("../external"),d=null;if(c.nodestream)try{d=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(b,f){return new u.Promise(function(y,v){var x=[],O=b._internalType,C=b._outputType,w=b._mimeType;b.on("data",function(z,j){x.push(z),f&&f(j)}).on("error",function(z){x=[],v(z)}).on("end",function(){try{var z=(function(j,P,B){switch(j){case"blob":return i.newBlob(i.transformTo("arraybuffer",P),B);case"base64":return l.encode(P);default:return i.transformTo(j,P)}})(C,(function(j,P){var B,_=0,I=null,L=0;for(B=0;B<P.length;B++)L+=P[B].length;switch(j){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(I=new Uint8Array(L),B=0;B<P.length;B++)I.set(P[B],_),_+=P[B].length;return I;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+j+"'")}})(O,x),w);y(z)}catch(j){v(j)}x=[]}).resume()})}function m(b,f,y){var v=f;switch(f){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=f,this._mimeType=y,i.checkSupport(v),this._worker=b.pipe(new o(v)),b.lock()}catch(x){this._worker=new s("error"),this._worker.error(x)}}m.prototype={accumulate:function(b){return h(this,b)},on:function(b,f){var y=this;return b==="data"?this._worker.on(b,function(v){f.call(y,v.data,v.meta)}):this._worker.on(b,function(){i.delay(f,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},b)}},r.exports=m},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,r,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),n.blob=o.getBlob("application/zip").size===0}catch{n.blob=!1}}}try{n.nodestream=!!a("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(a,r,n){for(var i=a("./utils"),o=a("./support"),s=a("./nodejsUtils"),l=a("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function d(){l.call(this,"utf-8 decode"),this.leftOver=null}function h(){l.call(this,"utf-8 encode")}n.utf8encode=function(m){return o.nodebuffer?s.newBufferFrom(m,"utf-8"):(function(b){var f,y,v,x,O,C=b.length,w=0;for(x=0;x<C;x++)(64512&(y=b.charCodeAt(x)))==55296&&x+1<C&&(64512&(v=b.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),x++),w+=y<128?1:y<2048?2:y<65536?3:4;for(f=o.uint8array?new Uint8Array(w):new Array(w),x=O=0;O<w;x++)(64512&(y=b.charCodeAt(x)))==55296&&x+1<C&&(64512&(v=b.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),x++),y<128?f[O++]=y:(y<2048?f[O++]=192|y>>>6:(y<65536?f[O++]=224|y>>>12:(f[O++]=240|y>>>18,f[O++]=128|y>>>12&63),f[O++]=128|y>>>6&63),f[O++]=128|63&y);return f})(m)},n.utf8decode=function(m){return o.nodebuffer?i.transformTo("nodebuffer",m).toString("utf-8"):(function(b){var f,y,v,x,O=b.length,C=new Array(2*O);for(f=y=0;f<O;)if((v=b[f++])<128)C[y++]=v;else if(4<(x=c[v]))C[y++]=65533,f+=x-1;else{for(v&=x===2?31:x===3?15:7;1<x&&f<O;)v=v<<6|63&b[f++],x--;1<x?C[y++]=65533:v<65536?C[y++]=v:(v-=65536,C[y++]=55296|v>>10&1023,C[y++]=56320|1023&v)}return C.length!==y&&(C.subarray?C=C.subarray(0,y):C.length=y),i.applyFromCharCode(C)})(m=i.transformTo(o.uint8array?"uint8array":"array",m))},i.inherits(d,l),d.prototype.processChunk=function(m){var b=i.transformTo(o.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var f=b;(b=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),b.set(f,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var y=(function(x,O){var C;for((O=O||x.length)>x.length&&(O=x.length),C=O-1;0<=C&&(192&x[C])==128;)C--;return C<0||C===0?O:C+c[x[C]]>O?C:O})(b),v=b;y!==b.length&&(o.uint8array?(v=b.subarray(0,y),this.leftOver=b.subarray(y,b.length)):(v=b.slice(0,y),this.leftOver=b.slice(y,b.length))),this.push({data:n.utf8decode(v),meta:m.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=d,i.inherits(h,l),h.prototype.processChunk=function(m){this.push({data:n.utf8encode(m.data),meta:m.meta})},n.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,r,n){var i=a("./support"),o=a("./base64"),s=a("./nodejsUtils"),l=a("./external");function c(f){return f}function u(f,y){for(var v=0;v<f.length;++v)y[v]=255&f.charCodeAt(v);return y}a("setimmediate"),n.newBlob=function(f,y){n.checkSupport("blob");try{return new Blob([f],{type:y})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(f),v.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(f,y,v){var x=[],O=0,C=f.length;if(C<=v)return String.fromCharCode.apply(null,f);for(;O<C;)y==="array"||y==="nodebuffer"?x.push(String.fromCharCode.apply(null,f.slice(O,Math.min(O+v,C)))):x.push(String.fromCharCode.apply(null,f.subarray(O,Math.min(O+v,C)))),O+=v;return x.join("")},stringifyByChar:function(f){for(var y="",v=0;v<f.length;v++)y+=String.fromCharCode(f[v]);return y},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function h(f){var y=65536,v=n.getTypeOf(f),x=!0;if(v==="uint8array"?x=d.applyCanBeUsed.uint8array:v==="nodebuffer"&&(x=d.applyCanBeUsed.nodebuffer),x)for(;1<y;)try{return d.stringifyByChunk(f,v,y)}catch{y=Math.floor(y/2)}return d.stringifyByChar(f)}function m(f,y){for(var v=0;v<f.length;v++)y[v]=f[v];return y}n.applyFromCharCode=h;var b={};b.string={string:c,array:function(f){return u(f,new Array(f.length))},arraybuffer:function(f){return b.string.uint8array(f).buffer},uint8array:function(f){return u(f,new Uint8Array(f.length))},nodebuffer:function(f){return u(f,s.allocBuffer(f.length))}},b.array={string:h,array:c,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return s.newBufferFrom(f)}},b.arraybuffer={string:function(f){return h(new Uint8Array(f))},array:function(f){return m(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:c,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return s.newBufferFrom(new Uint8Array(f))}},b.uint8array={string:h,array:function(f){return m(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:c,nodebuffer:function(f){return s.newBufferFrom(f)}},b.nodebuffer={string:h,array:function(f){return m(f,new Array(f.length))},arraybuffer:function(f){return b.nodebuffer.uint8array(f).buffer},uint8array:function(f){return m(f,new Uint8Array(f.length))},nodebuffer:c},n.transformTo=function(f,y){if(y=y||"",!f)return y;n.checkSupport(f);var v=n.getTypeOf(y);return b[v][f](y)},n.resolve=function(f){for(var y=f.split("/"),v=[],x=0;x<y.length;x++){var O=y[x];O==="."||O===""&&x!==0&&x!==y.length-1||(O===".."?v.pop():v.push(O))}return v.join("/")},n.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(f)?"nodebuffer":i.uint8array&&f instanceof Uint8Array?"uint8array":i.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(f){if(!i[f.toLowerCase()])throw new Error(f+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(f){var y,v,x="";for(v=0;v<(f||"").length;v++)x+="\\x"+((y=f.charCodeAt(v))<16?"0":"")+y.toString(16).toUpperCase();return x},n.delay=function(f,y,v){setImmediate(function(){f.apply(v||null,y||[])})},n.inherits=function(f,y){function v(){}v.prototype=y.prototype,f.prototype=new v},n.extend=function(){var f,y,v={};for(f=0;f<arguments.length;f++)for(y in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],y)&&v[y]===void 0&&(v[y]=arguments[f][y]);return v},n.prepareContent=function(f,y,v,x,O){return l.Promise.resolve(y).then(function(C){return i.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new l.Promise(function(w,z){var j=new FileReader;j.onload=function(P){w(P.target.result)},j.onerror=function(P){z(P.target.error)},j.readAsArrayBuffer(C)}):C}).then(function(C){var w=n.getTypeOf(C);return w?(w==="arraybuffer"?C=n.transformTo("uint8array",C):w==="string"&&(O?C=o.decode(C):v&&x!==!0&&(C=(function(z){return u(z,i.uint8array?new Uint8Array(z.length):new Array(z.length))})(C))),C):l.Promise.reject(new Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,r,n){var i=a("./reader/readerFor"),o=a("./utils"),s=a("./signature"),l=a("./zipEntry"),c=a("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(h)+", expected "+o.pretty(d)+")")}},isSignature:function(d,h){var m=this.reader.index;this.reader.setIndex(d);var b=this.reader.readString(4)===h;return this.reader.setIndex(m),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),h=c.uint8array?"uint8array":"array",m=o.transformTo(h,d);this.zipComment=this.loadOptions.decodeFileName(m)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,h,m,b=this.zip64EndOfCentralSize-44;0<b;)d=this.reader.readInt(2),h=this.reader.readInt(4),m=this.reader.readData(h),this.zip64ExtensibleData[d]={id:d,length:h,value:m}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,h;for(d=0;d<this.files.length;d++)h=this.files[d],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(d=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var h=d;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var b=h-m;if(0<b)this.isSignature(h,s.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(d){this.reader=i(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,r,n){var i=a("./reader/readerFor"),o=a("./utils"),s=a("./compressedObject"),l=a("./crc32"),c=a("./utf8"),u=a("./compressions"),d=a("./support");function h(m,b){this.options=m,this.loadOptions=b}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var b,f;if(m.skip(22),this.fileNameLength=m.readInt(2),f=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(y){for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)&&u[v].magic===y)return u[v];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,b,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var b=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");m.skip(b),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var b,f,y,v=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<v;)b=m.readInt(2),f=m.readInt(2),y=m.readData(f),this.extraFields[b]={id:b,length:f,value:y};m.setIndex(v)},handleUTF8:function(){var m=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var f=o.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var v=o.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var b=i(m.value);return b.readInt(1)!==1||l(this.fileName)!==b.readInt(4)?null:c.utf8decode(b.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var b=i(m.value);return b.readInt(1)!==1||l(this.fileComment)!==b.readInt(4)?null:c.utf8decode(b.readData(m.length-5))}return null}},r.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,r,n){function i(b,f,y){this.name=b,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=f,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var o=a("./stream/StreamHelper"),s=a("./stream/DataWorker"),l=a("./utf8"),c=a("./compressedObject"),u=a("./stream/GenericWorker");i.prototype={internalStream:function(b){var f=null,y="string";try{if(!b)throw new Error("No output type specified.");var v=(y=b.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),f=this._decompressWorker();var x=!this._dataBinary;x&&!v&&(f=f.pipe(new l.Utf8EncodeWorker)),!x&&v&&(f=f.pipe(new l.Utf8DecodeWorker))}catch(O){(f=new u("error")).error(O)}return new o(f,y,"")},async:function(b,f){return this.internalStream(b).accumulate(f)},nodeStream:function(b,f){return this.internalStream(b||"nodebuffer").toNodejsStream(f)},_compressWorker:function(b,f){if(this._data instanceof c&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(y,b,f)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},m=0;m<d.length;m++)i.prototype[d[m]]=h;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,r,n){(function(i){var o,s,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var c=0,u=new l(b),d=i.document.createTextNode("");u.observe(d,{characterData:!0}),o=function(){d.data=c=++c%2}}else if(i.setImmediate||i.MessageChannel===void 0)o="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var f=i.document.createElement("script");f.onreadystatechange=function(){b(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},i.document.documentElement.appendChild(f)}:function(){setTimeout(b,0)};else{var h=new i.MessageChannel;h.port1.onmessage=b,o=function(){h.port2.postMessage(0)}}var m=[];function b(){var f,y;s=!0;for(var v=m.length;v;){for(y=m,m=[],f=-1;++f<v;)y[f]();v=m.length}s=!1}r.exports=function(f){m.push(f)!==1||s||o()}}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,r,n){var i=a("immediate");function o(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function d(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,v!==o&&f(this,v)}function h(v,x,O){this.promise=v,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function m(v,x,O){i(function(){var C;try{C=x(O)}catch(w){return s.reject(v,w)}C===v?s.reject(v,new TypeError("Cannot resolve promise with itself")):s.resolve(v,C)})}function b(v){var x=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof x=="function")return function(){x.apply(v,arguments)}}function f(v,x){var O=!1;function C(j){O||(O=!0,s.reject(v,j))}function w(j){O||(O=!0,s.resolve(v,j))}var z=y(function(){x(w,C)});z.status==="error"&&C(z.value)}function y(v,x){var O={};try{O.value=v(x),O.status="success"}catch(C){O.status="error",O.value=C}return O}(r.exports=d).prototype.finally=function(v){if(typeof v!="function")return this;var x=this.constructor;return this.then(function(O){return x.resolve(v()).then(function(){return O})},function(O){return x.resolve(v()).then(function(){throw O})})},d.prototype.catch=function(v){return this.then(null,v)},d.prototype.then=function(v,x){if(typeof v!="function"&&this.state===c||typeof x!="function"&&this.state===l)return this;var O=new this.constructor(o);return this.state!==u?m(O,this.state===c?v:x,this.outcome):this.queue.push(new h(O,v,x)),O},h.prototype.callFulfilled=function(v){s.resolve(this.promise,v)},h.prototype.otherCallFulfilled=function(v){m(this.promise,this.onFulfilled,v)},h.prototype.callRejected=function(v){s.reject(this.promise,v)},h.prototype.otherCallRejected=function(v){m(this.promise,this.onRejected,v)},s.resolve=function(v,x){var O=y(b,x);if(O.status==="error")return s.reject(v,O.value);var C=O.value;if(C)f(v,C);else{v.state=c,v.outcome=x;for(var w=-1,z=v.queue.length;++w<z;)v.queue[w].callFulfilled(x)}return v},s.reject=function(v,x){v.state=l,v.outcome=x;for(var O=-1,C=v.queue.length;++O<C;)v.queue[O].callRejected(x);return v},d.resolve=function(v){return v instanceof this?v:s.resolve(new this(o),v)},d.reject=function(v){var x=new this(o);return s.reject(x,v)},d.all=function(v){var x=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=v.length,C=!1;if(!O)return this.resolve([]);for(var w=new Array(O),z=0,j=-1,P=new this(o);++j<O;)B(v[j],j);return P;function B(_,I){x.resolve(_).then(function(L){w[I]=L,++z!==O||C||(C=!0,s.resolve(P,w))},function(L){C||(C=!0,s.reject(P,L))})}},d.race=function(v){var x=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=v.length,C=!1;if(!O)return this.resolve([]);for(var w=-1,z=new this(o);++w<O;)j=v[w],x.resolve(j).then(function(P){C||(C=!0,s.resolve(z,P))},function(P){C||(C=!0,s.reject(z,P))});var j;return z}},{immediate:36}],38:[function(a,r,n){var i={};(0,a("./lib/utils/common").assign)(i,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,r,n){var i=a("./zlib/deflate"),o=a("./utils/common"),s=a("./utils/strings"),l=a("./zlib/messages"),c=a("./zlib/zstream"),u=Object.prototype.toString,d=0,h=-1,m=0,b=8;function f(v){if(!(this instanceof f))return new f(v);this.options=o.assign({level:h,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},v||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var O=i.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(O!==d)throw new Error(l[O]);if(x.header&&i.deflateSetHeader(this.strm,x.header),x.dictionary){var C;if(C=typeof x.dictionary=="string"?s.string2buf(x.dictionary):u.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(O=i.deflateSetDictionary(this.strm,C))!==d)throw new Error(l[O]);this._dict_set=!0}}function y(v,x){var O=new f(x);if(O.push(v,!0),O.err)throw O.msg||l[O.err];return O.result}f.prototype.push=function(v,x){var O,C,w=this.strm,z=this.options.chunkSize;if(this.ended)return!1;C=x===~~x?x:x===!0?4:0,typeof v=="string"?w.input=s.string2buf(v):u.call(v)==="[object ArrayBuffer]"?w.input=new Uint8Array(v):w.input=v,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new o.Buf8(z),w.next_out=0,w.avail_out=z),(O=i.deflate(w,C))!==1&&O!==d)return this.onEnd(O),!(this.ended=!0);w.avail_out!==0&&(w.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(w.output,w.next_out))):this.onData(o.shrinkBuf(w.output,w.next_out)))}while((0<w.avail_in||w.avail_out===0)&&O!==1);return C===4?(O=i.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===d):C!==2||(this.onEnd(d),!(w.avail_out=0))},f.prototype.onData=function(v){this.chunks.push(v)},f.prototype.onEnd=function(v){v===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},n.Deflate=f,n.deflate=y,n.deflateRaw=function(v,x){return(x=x||{}).raw=!0,y(v,x)},n.gzip=function(v,x){return(x=x||{}).gzip=!0,y(v,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,r,n){var i=a("./zlib/inflate"),o=a("./utils/common"),s=a("./utils/strings"),l=a("./zlib/constants"),c=a("./zlib/messages"),u=a("./zlib/zstream"),d=a("./zlib/gzheader"),h=Object.prototype.toString;function m(f){if(!(this instanceof m))return new m(f);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},f||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||f&&f.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=i.inflateInit2(this.strm,y.windowBits);if(v!==l.Z_OK)throw new Error(c[v]);this.header=new d,i.inflateGetHeader(this.strm,this.header)}function b(f,y){var v=new m(y);if(v.push(f,!0),v.err)throw v.msg||c[v.err];return v.result}m.prototype.push=function(f,y){var v,x,O,C,w,z,j=this.strm,P=this.options.chunkSize,B=this.options.dictionary,_=!1;if(this.ended)return!1;x=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof f=="string"?j.input=s.binstring2buf(f):h.call(f)==="[object ArrayBuffer]"?j.input=new Uint8Array(f):j.input=f,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new o.Buf8(P),j.next_out=0,j.avail_out=P),(v=i.inflate(j,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&B&&(z=typeof B=="string"?s.string2buf(B):h.call(B)==="[object ArrayBuffer]"?new Uint8Array(B):B,v=i.inflateSetDictionary(this.strm,z)),v===l.Z_BUF_ERROR&&_===!0&&(v=l.Z_OK,_=!1),v!==l.Z_STREAM_END&&v!==l.Z_OK)return this.onEnd(v),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&v!==l.Z_STREAM_END&&(j.avail_in!==0||x!==l.Z_FINISH&&x!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=s.utf8border(j.output,j.next_out),C=j.next_out-O,w=s.buf2string(j.output,O),j.next_out=C,j.avail_out=P-C,C&&o.arraySet(j.output,j.output,O,C,0),this.onData(w)):this.onData(o.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(_=!0)}while((0<j.avail_in||j.avail_out===0)&&v!==l.Z_STREAM_END);return v===l.Z_STREAM_END&&(x=l.Z_FINISH),x===l.Z_FINISH?(v=i.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l.Z_OK):x!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(j.avail_out=0))},m.prototype.onData=function(f){this.chunks.push(f)},m.prototype.onEnd=function(f){f===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},n.Inflate=m,n.inflate=b,n.inflateRaw=function(f,y){return(y=y||{}).raw=!0,b(f,y)},n.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,r,n){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(l[d]=u[d])}}return l},n.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var o={arraySet:function(l,c,u,d,h){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+d),h);else for(var m=0;m<d;m++)l[h+m]=c[u+m]},flattenChunks:function(l){var c,u,d,h,m,b;for(c=d=0,u=l.length;c<u;c++)d+=l[c].length;for(b=new Uint8Array(d),c=h=0,u=l.length;c<u;c++)m=l[c],b.set(m,h),h+=m.length;return b}},s={arraySet:function(l,c,u,d,h){for(var m=0;m<d;m++)l[h+m]=c[u+m]},flattenChunks:function(l){return[].concat.apply([],l)}};n.setTyped=function(l){l?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(a,r,n){var i=a("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(d,h){if(h<65537&&(d.subarray&&s||!d.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(d,h));for(var m="",b=0;b<h;b++)m+=String.fromCharCode(d[b]);return m}l[254]=l[254]=1,n.string2buf=function(d){var h,m,b,f,y,v=d.length,x=0;for(f=0;f<v;f++)(64512&(m=d.charCodeAt(f)))==55296&&f+1<v&&(64512&(b=d.charCodeAt(f+1)))==56320&&(m=65536+(m-55296<<10)+(b-56320),f++),x+=m<128?1:m<2048?2:m<65536?3:4;for(h=new i.Buf8(x),f=y=0;y<x;f++)(64512&(m=d.charCodeAt(f)))==55296&&f+1<v&&(64512&(b=d.charCodeAt(f+1)))==56320&&(m=65536+(m-55296<<10)+(b-56320),f++),m<128?h[y++]=m:(m<2048?h[y++]=192|m>>>6:(m<65536?h[y++]=224|m>>>12:(h[y++]=240|m>>>18,h[y++]=128|m>>>12&63),h[y++]=128|m>>>6&63),h[y++]=128|63&m);return h},n.buf2binstring=function(d){return u(d,d.length)},n.binstring2buf=function(d){for(var h=new i.Buf8(d.length),m=0,b=h.length;m<b;m++)h[m]=d.charCodeAt(m);return h},n.buf2string=function(d,h){var m,b,f,y,v=h||d.length,x=new Array(2*v);for(m=b=0;m<v;)if((f=d[m++])<128)x[b++]=f;else if(4<(y=l[f]))x[b++]=65533,m+=y-1;else{for(f&=y===2?31:y===3?15:7;1<y&&m<v;)f=f<<6|63&d[m++],y--;1<y?x[b++]=65533:f<65536?x[b++]=f:(f-=65536,x[b++]=55296|f>>10&1023,x[b++]=56320|1023&f)}return u(x,b)},n.utf8border=function(d,h){var m;for((h=h||d.length)>d.length&&(h=d.length),m=h-1;0<=m&&(192&d[m])==128;)m--;return m<0||m===0?h:m+l[d[m]]>h?m:h}},{"./common":41}],43:[function(a,r,n){r.exports=function(i,o,s,l){for(var c=65535&i|0,u=i>>>16&65535|0,d=0;s!==0;){for(s-=d=2e3<s?2e3:s;u=u+(c=c+o[l++]|0)|0,--d;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(a,r,n){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,r,n){var i=(function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[l]=o}return s})();r.exports=function(o,s,l,c){var u=i,d=c+l;o^=-1;for(var h=c;h<d;h++)o=o>>>8^u[255&(o^s[h])];return-1^o}},{}],46:[function(a,r,n){var i,o=a("../utils/common"),s=a("./trees"),l=a("./adler32"),c=a("./crc32"),u=a("./messages"),d=0,h=4,m=0,b=-2,f=-1,y=4,v=2,x=8,O=9,C=286,w=30,z=19,j=2*C+1,P=15,B=3,_=258,I=_+B+1,L=42,Q=113,N=1,Y=2,X=3,oe=4;function re(F,ue){return F.msg=u[ue],ue}function he(F){return(F<<1)-(4<F?9:0)}function U(F){for(var ue=F.length;0<=--ue;)F[ue]=0}function V(F){var ue=F.state,de=ue.pending;de>F.avail_out&&(de=F.avail_out),de!==0&&(o.arraySet(F.output,ue.pending_buf,ue.pending_out,de,F.next_out),F.next_out+=de,ue.pending_out+=de,F.total_out+=de,F.avail_out-=de,ue.pending-=de,ue.pending===0&&(ue.pending_out=0))}function Z(F,ue){s._tr_flush_block(F,0<=F.block_start?F.block_start:-1,F.strstart-F.block_start,ue),F.block_start=F.strstart,V(F.strm)}function G(F,ue){F.pending_buf[F.pending++]=ue}function R(F,ue){F.pending_buf[F.pending++]=ue>>>8&255,F.pending_buf[F.pending++]=255&ue}function D(F,ue){var de,J,ae=F.max_chain_length,ce=F.strstart,be=F.prev_length,ge=F.nice_match,fe=F.strstart>F.w_size-I?F.strstart-(F.w_size-I):0,ye=F.window,ze=F.w_mask,Te=F.prev,tt=F.strstart+_,M=ye[ce+be-1],ee=ye[ce+be];F.prev_length>=F.good_match&&(ae>>=2),ge>F.lookahead&&(ge=F.lookahead);do if(ye[(de=ue)+be]===ee&&ye[de+be-1]===M&&ye[de]===ye[ce]&&ye[++de]===ye[ce+1]){ce+=2,de++;do;while(ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ye[++ce]===ye[++de]&&ce<tt);if(J=_-(tt-ce),ce=tt-_,be<J){if(F.match_start=ue,ge<=(be=J))break;M=ye[ce+be-1],ee=ye[ce+be]}}while((ue=Te[ue&ze])>fe&&--ae!=0);return be<=F.lookahead?be:F.lookahead}function q(F){var ue,de,J,ae,ce,be,ge,fe,ye,ze,Te=F.w_size;do{if(ae=F.window_size-F.lookahead-F.strstart,F.strstart>=Te+(Te-I)){for(o.arraySet(F.window,F.window,Te,Te,0),F.match_start-=Te,F.strstart-=Te,F.block_start-=Te,ue=de=F.hash_size;J=F.head[--ue],F.head[ue]=Te<=J?J-Te:0,--de;);for(ue=de=Te;J=F.prev[--ue],F.prev[ue]=Te<=J?J-Te:0,--de;);ae+=Te}if(F.strm.avail_in===0)break;if(be=F.strm,ge=F.window,fe=F.strstart+F.lookahead,ye=ae,ze=void 0,ze=be.avail_in,ye<ze&&(ze=ye),de=ze===0?0:(be.avail_in-=ze,o.arraySet(ge,be.input,be.next_in,ze,fe),be.state.wrap===1?be.adler=l(be.adler,ge,ze,fe):be.state.wrap===2&&(be.adler=c(be.adler,ge,ze,fe)),be.next_in+=ze,be.total_in+=ze,ze),F.lookahead+=de,F.lookahead+F.insert>=B)for(ce=F.strstart-F.insert,F.ins_h=F.window[ce],F.ins_h=(F.ins_h<<F.hash_shift^F.window[ce+1])&F.hash_mask;F.insert&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[ce+B-1])&F.hash_mask,F.prev[ce&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=ce,ce++,F.insert--,!(F.lookahead+F.insert<B)););}while(F.lookahead<I&&F.strm.avail_in!==0)}function te(F,ue){for(var de,J;;){if(F.lookahead<I){if(q(F),F.lookahead<I&&ue===d)return N;if(F.lookahead===0)break}if(de=0,F.lookahead>=B&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+B-1])&F.hash_mask,de=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),de!==0&&F.strstart-de<=F.w_size-I&&(F.match_length=D(F,de)),F.match_length>=B)if(J=s._tr_tally(F,F.strstart-F.match_start,F.match_length-B),F.lookahead-=F.match_length,F.match_length<=F.max_lazy_match&&F.lookahead>=B){for(F.match_length--;F.strstart++,F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+B-1])&F.hash_mask,de=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart,--F.match_length!=0;);F.strstart++}else F.strstart+=F.match_length,F.match_length=0,F.ins_h=F.window[F.strstart],F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+1])&F.hash_mask;else J=s._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++;if(J&&(Z(F,!1),F.strm.avail_out===0))return N}return F.insert=F.strstart<B-1?F.strstart:B-1,ue===h?(Z(F,!0),F.strm.avail_out===0?X:oe):F.last_lit&&(Z(F,!1),F.strm.avail_out===0)?N:Y}function se(F,ue){for(var de,J,ae;;){if(F.lookahead<I){if(q(F),F.lookahead<I&&ue===d)return N;if(F.lookahead===0)break}if(de=0,F.lookahead>=B&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+B-1])&F.hash_mask,de=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),F.prev_length=F.match_length,F.prev_match=F.match_start,F.match_length=B-1,de!==0&&F.prev_length<F.max_lazy_match&&F.strstart-de<=F.w_size-I&&(F.match_length=D(F,de),F.match_length<=5&&(F.strategy===1||F.match_length===B&&4096<F.strstart-F.match_start)&&(F.match_length=B-1)),F.prev_length>=B&&F.match_length<=F.prev_length){for(ae=F.strstart+F.lookahead-B,J=s._tr_tally(F,F.strstart-1-F.prev_match,F.prev_length-B),F.lookahead-=F.prev_length-1,F.prev_length-=2;++F.strstart<=ae&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+B-1])&F.hash_mask,de=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),--F.prev_length!=0;);if(F.match_available=0,F.match_length=B-1,F.strstart++,J&&(Z(F,!1),F.strm.avail_out===0))return N}else if(F.match_available){if((J=s._tr_tally(F,0,F.window[F.strstart-1]))&&Z(F,!1),F.strstart++,F.lookahead--,F.strm.avail_out===0)return N}else F.match_available=1,F.strstart++,F.lookahead--}return F.match_available&&(J=s._tr_tally(F,0,F.window[F.strstart-1]),F.match_available=0),F.insert=F.strstart<B-1?F.strstart:B-1,ue===h?(Z(F,!0),F.strm.avail_out===0?X:oe):F.last_lit&&(Z(F,!1),F.strm.avail_out===0)?N:Y}function ve(F,ue,de,J,ae){this.good_length=F,this.max_lazy=ue,this.nice_length=de,this.max_chain=J,this.func=ae}function xe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*j),this.dyn_dtree=new o.Buf16(2*(2*w+1)),this.bl_tree=new o.Buf16(2*(2*z+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(P+1),this.heap=new o.Buf16(2*C+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*C+1),U(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(F){var ue;return F&&F.state?(F.total_in=F.total_out=0,F.data_type=v,(ue=F.state).pending=0,ue.pending_out=0,ue.wrap<0&&(ue.wrap=-ue.wrap),ue.status=ue.wrap?L:Q,F.adler=ue.wrap===2?0:1,ue.last_flush=d,s._tr_init(ue),m):re(F,b)}function $(F){var ue=T(F);return ue===m&&(function(de){de.window_size=2*de.w_size,U(de.head),de.max_lazy_match=i[de.level].max_lazy,de.good_match=i[de.level].good_length,de.nice_match=i[de.level].nice_length,de.max_chain_length=i[de.level].max_chain,de.strstart=0,de.block_start=0,de.lookahead=0,de.insert=0,de.match_length=de.prev_length=B-1,de.match_available=0,de.ins_h=0})(F.state),ue}function ne(F,ue,de,J,ae,ce){if(!F)return b;var be=1;if(ue===f&&(ue=6),J<0?(be=0,J=-J):15<J&&(be=2,J-=16),ae<1||O<ae||de!==x||J<8||15<J||ue<0||9<ue||ce<0||y<ce)return re(F,b);J===8&&(J=9);var ge=new xe;return(F.state=ge).strm=F,ge.wrap=be,ge.gzhead=null,ge.w_bits=J,ge.w_size=1<<ge.w_bits,ge.w_mask=ge.w_size-1,ge.hash_bits=ae+7,ge.hash_size=1<<ge.hash_bits,ge.hash_mask=ge.hash_size-1,ge.hash_shift=~~((ge.hash_bits+B-1)/B),ge.window=new o.Buf8(2*ge.w_size),ge.head=new o.Buf16(ge.hash_size),ge.prev=new o.Buf16(ge.w_size),ge.lit_bufsize=1<<ae+6,ge.pending_buf_size=4*ge.lit_bufsize,ge.pending_buf=new o.Buf8(ge.pending_buf_size),ge.d_buf=1*ge.lit_bufsize,ge.l_buf=3*ge.lit_bufsize,ge.level=ue,ge.strategy=ce,ge.method=de,$(F)}i=[new ve(0,0,0,0,function(F,ue){var de=65535;for(de>F.pending_buf_size-5&&(de=F.pending_buf_size-5);;){if(F.lookahead<=1){if(q(F),F.lookahead===0&&ue===d)return N;if(F.lookahead===0)break}F.strstart+=F.lookahead,F.lookahead=0;var J=F.block_start+de;if((F.strstart===0||F.strstart>=J)&&(F.lookahead=F.strstart-J,F.strstart=J,Z(F,!1),F.strm.avail_out===0)||F.strstart-F.block_start>=F.w_size-I&&(Z(F,!1),F.strm.avail_out===0))return N}return F.insert=0,ue===h?(Z(F,!0),F.strm.avail_out===0?X:oe):(F.strstart>F.block_start&&(Z(F,!1),F.strm.avail_out),N)}),new ve(4,4,8,4,te),new ve(4,5,16,8,te),new ve(4,6,32,32,te),new ve(4,4,16,16,se),new ve(8,16,32,32,se),new ve(8,16,128,128,se),new ve(8,32,128,256,se),new ve(32,128,258,1024,se),new ve(32,258,258,4096,se)],n.deflateInit=function(F,ue){return ne(F,ue,x,15,8,0)},n.deflateInit2=ne,n.deflateReset=$,n.deflateResetKeep=T,n.deflateSetHeader=function(F,ue){return F&&F.state?F.state.wrap!==2?b:(F.state.gzhead=ue,m):b},n.deflate=function(F,ue){var de,J,ae,ce;if(!F||!F.state||5<ue||ue<0)return F?re(F,b):b;if(J=F.state,!F.output||!F.input&&F.avail_in!==0||J.status===666&&ue!==h)return re(F,F.avail_out===0?-5:b);if(J.strm=F,de=J.last_flush,J.last_flush=ue,J.status===L)if(J.wrap===2)F.adler=0,G(J,31),G(J,139),G(J,8),J.gzhead?(G(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),G(J,255&J.gzhead.time),G(J,J.gzhead.time>>8&255),G(J,J.gzhead.time>>16&255),G(J,J.gzhead.time>>24&255),G(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),G(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(G(J,255&J.gzhead.extra.length),G(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(F.adler=c(F.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(G(J,0),G(J,0),G(J,0),G(J,0),G(J,0),G(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),G(J,3),J.status=Q);else{var be=x+(J.w_bits-8<<4)<<8;be|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(be|=32),be+=31-be%31,J.status=Q,R(J,be),J.strstart!==0&&(R(J,F.adler>>>16),R(J,65535&F.adler)),F.adler=1}if(J.status===69)if(J.gzhead.extra){for(ae=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),V(F),ae=J.pending,J.pending!==J.pending_buf_size));)G(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){ae=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),V(F),ae=J.pending,J.pending===J.pending_buf_size)){ce=1;break}ce=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,G(J,ce)}while(ce!==0);J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),ce===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){ae=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),V(F),ae=J.pending,J.pending===J.pending_buf_size)){ce=1;break}ce=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,G(J,ce)}while(ce!==0);J.gzhead.hcrc&&J.pending>ae&&(F.adler=c(F.adler,J.pending_buf,J.pending-ae,ae)),ce===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&V(F),J.pending+2<=J.pending_buf_size&&(G(J,255&F.adler),G(J,F.adler>>8&255),F.adler=0,J.status=Q)):J.status=Q),J.pending!==0){if(V(F),F.avail_out===0)return J.last_flush=-1,m}else if(F.avail_in===0&&he(ue)<=he(de)&&ue!==h)return re(F,-5);if(J.status===666&&F.avail_in!==0)return re(F,-5);if(F.avail_in!==0||J.lookahead!==0||ue!==d&&J.status!==666){var ge=J.strategy===2?(function(fe,ye){for(var ze;;){if(fe.lookahead===0&&(q(fe),fe.lookahead===0)){if(ye===d)return N;break}if(fe.match_length=0,ze=s._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++,ze&&(Z(fe,!1),fe.strm.avail_out===0))return N}return fe.insert=0,ye===h?(Z(fe,!0),fe.strm.avail_out===0?X:oe):fe.last_lit&&(Z(fe,!1),fe.strm.avail_out===0)?N:Y})(J,ue):J.strategy===3?(function(fe,ye){for(var ze,Te,tt,M,ee=fe.window;;){if(fe.lookahead<=_){if(q(fe),fe.lookahead<=_&&ye===d)return N;if(fe.lookahead===0)break}if(fe.match_length=0,fe.lookahead>=B&&0<fe.strstart&&(Te=ee[tt=fe.strstart-1])===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]){M=fe.strstart+_;do;while(Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&Te===ee[++tt]&&tt<M);fe.match_length=_-(M-tt),fe.match_length>fe.lookahead&&(fe.match_length=fe.lookahead)}if(fe.match_length>=B?(ze=s._tr_tally(fe,1,fe.match_length-B),fe.lookahead-=fe.match_length,fe.strstart+=fe.match_length,fe.match_length=0):(ze=s._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++),ze&&(Z(fe,!1),fe.strm.avail_out===0))return N}return fe.insert=0,ye===h?(Z(fe,!0),fe.strm.avail_out===0?X:oe):fe.last_lit&&(Z(fe,!1),fe.strm.avail_out===0)?N:Y})(J,ue):i[J.level].func(J,ue);if(ge!==X&&ge!==oe||(J.status=666),ge===N||ge===X)return F.avail_out===0&&(J.last_flush=-1),m;if(ge===Y&&(ue===1?s._tr_align(J):ue!==5&&(s._tr_stored_block(J,0,0,!1),ue===3&&(U(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),V(F),F.avail_out===0))return J.last_flush=-1,m}return ue!==h?m:J.wrap<=0?1:(J.wrap===2?(G(J,255&F.adler),G(J,F.adler>>8&255),G(J,F.adler>>16&255),G(J,F.adler>>24&255),G(J,255&F.total_in),G(J,F.total_in>>8&255),G(J,F.total_in>>16&255),G(J,F.total_in>>24&255)):(R(J,F.adler>>>16),R(J,65535&F.adler)),V(F),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?m:1)},n.deflateEnd=function(F){var ue;return F&&F.state?(ue=F.state.status)!==L&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==Q&&ue!==666?re(F,b):(F.state=null,ue===Q?re(F,-3):m):b},n.deflateSetDictionary=function(F,ue){var de,J,ae,ce,be,ge,fe,ye,ze=ue.length;if(!F||!F.state||(ce=(de=F.state).wrap)===2||ce===1&&de.status!==L||de.lookahead)return b;for(ce===1&&(F.adler=l(F.adler,ue,ze,0)),de.wrap=0,ze>=de.w_size&&(ce===0&&(U(de.head),de.strstart=0,de.block_start=0,de.insert=0),ye=new o.Buf8(de.w_size),o.arraySet(ye,ue,ze-de.w_size,de.w_size,0),ue=ye,ze=de.w_size),be=F.avail_in,ge=F.next_in,fe=F.input,F.avail_in=ze,F.next_in=0,F.input=ue,q(de);de.lookahead>=B;){for(J=de.strstart,ae=de.lookahead-(B-1);de.ins_h=(de.ins_h<<de.hash_shift^de.window[J+B-1])&de.hash_mask,de.prev[J&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=J,J++,--ae;);de.strstart=J,de.lookahead=B-1,q(de)}return de.strstart+=de.lookahead,de.block_start=de.strstart,de.insert=de.lookahead,de.lookahead=0,de.match_length=de.prev_length=B-1,de.match_available=0,F.next_in=ge,F.input=fe,F.avail_in=be,de.wrap=ce,m},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,r,n){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,r,n){r.exports=function(i,o){var s,l,c,u,d,h,m,b,f,y,v,x,O,C,w,z,j,P,B,_,I,L,Q,N,Y;s=i.state,l=i.next_in,N=i.input,c=l+(i.avail_in-5),u=i.next_out,Y=i.output,d=u-(o-i.avail_out),h=u+(i.avail_out-257),m=s.dmax,b=s.wsize,f=s.whave,y=s.wnext,v=s.window,x=s.hold,O=s.bits,C=s.lencode,w=s.distcode,z=(1<<s.lenbits)-1,j=(1<<s.distbits)-1;e:do{O<15&&(x+=N[l++]<<O,O+=8,x+=N[l++]<<O,O+=8),P=C[x&z];t:for(;;){if(x>>>=B=P>>>24,O-=B,(B=P>>>16&255)===0)Y[u++]=65535&P;else{if(!(16&B)){if((64&B)==0){P=C[(65535&P)+(x&(1<<B)-1)];continue t}if(32&B){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}_=65535&P,(B&=15)&&(O<B&&(x+=N[l++]<<O,O+=8),_+=x&(1<<B)-1,x>>>=B,O-=B),O<15&&(x+=N[l++]<<O,O+=8,x+=N[l++]<<O,O+=8),P=w[x&j];a:for(;;){if(x>>>=B=P>>>24,O-=B,!(16&(B=P>>>16&255))){if((64&B)==0){P=w[(65535&P)+(x&(1<<B)-1)];continue a}i.msg="invalid distance code",s.mode=30;break e}if(I=65535&P,O<(B&=15)&&(x+=N[l++]<<O,(O+=8)<B&&(x+=N[l++]<<O,O+=8)),m<(I+=x&(1<<B)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(x>>>=B,O-=B,(B=u-d)<I){if(f<(B=I-B)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(Q=v,(L=0)===y){if(L+=b-B,B<_){for(_-=B;Y[u++]=v[L++],--B;);L=u-I,Q=Y}}else if(y<B){if(L+=b+y-B,(B-=y)<_){for(_-=B;Y[u++]=v[L++],--B;);if(L=0,y<_){for(_-=B=y;Y[u++]=v[L++],--B;);L=u-I,Q=Y}}}else if(L+=y-B,B<_){for(_-=B;Y[u++]=v[L++],--B;);L=u-I,Q=Y}for(;2<_;)Y[u++]=Q[L++],Y[u++]=Q[L++],Y[u++]=Q[L++],_-=3;_&&(Y[u++]=Q[L++],1<_&&(Y[u++]=Q[L++]))}else{for(L=u-I;Y[u++]=Y[L++],Y[u++]=Y[L++],Y[u++]=Y[L++],2<(_-=3););_&&(Y[u++]=Y[L++],1<_&&(Y[u++]=Y[L++]))}break}}break}}while(l<c&&u<h);l-=_=O>>3,x&=(1<<(O-=_<<3))-1,i.next_in=l,i.next_out=u,i.avail_in=l<c?c-l+5:5-(l-c),i.avail_out=u<h?h-u+257:257-(u-h),s.hold=x,s.bits=O}},{}],49:[function(a,r,n){var i=a("../utils/common"),o=a("./adler32"),s=a("./crc32"),l=a("./inffast"),c=a("./inftrees"),u=1,d=2,h=0,m=-2,b=1,f=852,y=592;function v(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(L){var Q;return L&&L.state?(Q=L.state,L.total_in=L.total_out=Q.total=0,L.msg="",Q.wrap&&(L.adler=1&Q.wrap),Q.mode=b,Q.last=0,Q.havedict=0,Q.dmax=32768,Q.head=null,Q.hold=0,Q.bits=0,Q.lencode=Q.lendyn=new i.Buf32(f),Q.distcode=Q.distdyn=new i.Buf32(y),Q.sane=1,Q.back=-1,h):m}function C(L){var Q;return L&&L.state?((Q=L.state).wsize=0,Q.whave=0,Q.wnext=0,O(L)):m}function w(L,Q){var N,Y;return L&&L.state?(Y=L.state,Q<0?(N=0,Q=-Q):(N=1+(Q>>4),Q<48&&(Q&=15)),Q&&(Q<8||15<Q)?m:(Y.window!==null&&Y.wbits!==Q&&(Y.window=null),Y.wrap=N,Y.wbits=Q,C(L))):m}function z(L,Q){var N,Y;return L?(Y=new x,(L.state=Y).window=null,(N=w(L,Q))!==h&&(L.state=null),N):m}var j,P,B=!0;function _(L){if(B){var Q;for(j=new i.Buf32(512),P=new i.Buf32(32),Q=0;Q<144;)L.lens[Q++]=8;for(;Q<256;)L.lens[Q++]=9;for(;Q<280;)L.lens[Q++]=7;for(;Q<288;)L.lens[Q++]=8;for(c(u,L.lens,0,288,j,0,L.work,{bits:9}),Q=0;Q<32;)L.lens[Q++]=5;c(d,L.lens,0,32,P,0,L.work,{bits:5}),B=!1}L.lencode=j,L.lenbits=9,L.distcode=P,L.distbits=5}function I(L,Q,N,Y){var X,oe=L.state;return oe.window===null&&(oe.wsize=1<<oe.wbits,oe.wnext=0,oe.whave=0,oe.window=new i.Buf8(oe.wsize)),Y>=oe.wsize?(i.arraySet(oe.window,Q,N-oe.wsize,oe.wsize,0),oe.wnext=0,oe.whave=oe.wsize):(Y<(X=oe.wsize-oe.wnext)&&(X=Y),i.arraySet(oe.window,Q,N-Y,X,oe.wnext),(Y-=X)?(i.arraySet(oe.window,Q,N-Y,Y,0),oe.wnext=Y,oe.whave=oe.wsize):(oe.wnext+=X,oe.wnext===oe.wsize&&(oe.wnext=0),oe.whave<oe.wsize&&(oe.whave+=X))),0}n.inflateReset=C,n.inflateReset2=w,n.inflateResetKeep=O,n.inflateInit=function(L){return z(L,15)},n.inflateInit2=z,n.inflate=function(L,Q){var N,Y,X,oe,re,he,U,V,Z,G,R,D,q,te,se,ve,xe,T,$,ne,F,ue,de,J,ae=0,ce=new i.Buf8(4),be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return m;(N=L.state).mode===12&&(N.mode=13),re=L.next_out,X=L.output,U=L.avail_out,oe=L.next_in,Y=L.input,he=L.avail_in,V=N.hold,Z=N.bits,G=he,R=U,ue=h;e:for(;;)switch(N.mode){case b:if(N.wrap===0){N.mode=13;break}for(;Z<16;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(2&N.wrap&&V===35615){ce[N.check=0]=255&V,ce[1]=V>>>8&255,N.check=s(N.check,ce,2,0),Z=V=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&V)<<8)+(V>>8))%31){L.msg="incorrect header check",N.mode=30;break}if((15&V)!=8){L.msg="unknown compression method",N.mode=30;break}if(Z-=4,F=8+(15&(V>>>=4)),N.wbits===0)N.wbits=F;else if(F>N.wbits){L.msg="invalid window size",N.mode=30;break}N.dmax=1<<F,L.adler=N.check=1,N.mode=512&V?10:12,Z=V=0;break;case 2:for(;Z<16;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(N.flags=V,(255&N.flags)!=8){L.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){L.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=V>>8&1),512&N.flags&&(ce[0]=255&V,ce[1]=V>>>8&255,N.check=s(N.check,ce,2,0)),Z=V=0,N.mode=3;case 3:for(;Z<32;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.head&&(N.head.time=V),512&N.flags&&(ce[0]=255&V,ce[1]=V>>>8&255,ce[2]=V>>>16&255,ce[3]=V>>>24&255,N.check=s(N.check,ce,4,0)),Z=V=0,N.mode=4;case 4:for(;Z<16;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.head&&(N.head.xflags=255&V,N.head.os=V>>8),512&N.flags&&(ce[0]=255&V,ce[1]=V>>>8&255,N.check=s(N.check,ce,2,0)),Z=V=0,N.mode=5;case 5:if(1024&N.flags){for(;Z<16;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.length=V,N.head&&(N.head.extra_len=V),512&N.flags&&(ce[0]=255&V,ce[1]=V>>>8&255,N.check=s(N.check,ce,2,0)),Z=V=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(he<(D=N.length)&&(D=he),D&&(N.head&&(F=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,Y,oe,D,F)),512&N.flags&&(N.check=s(N.check,Y,D,oe)),he-=D,oe+=D,N.length-=D),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(he===0)break e;for(D=0;F=Y[oe+D++],N.head&&F&&N.length<65536&&(N.head.name+=String.fromCharCode(F)),F&&D<he;);if(512&N.flags&&(N.check=s(N.check,Y,D,oe)),he-=D,oe+=D,F)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(he===0)break e;for(D=0;F=Y[oe+D++],N.head&&F&&N.length<65536&&(N.head.comment+=String.fromCharCode(F)),F&&D<he;);if(512&N.flags&&(N.check=s(N.check,Y,D,oe)),he-=D,oe+=D,F)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;Z<16;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(V!==(65535&N.check)){L.msg="header crc mismatch",N.mode=30;break}Z=V=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),L.adler=N.check=0,N.mode=12;break;case 10:for(;Z<32;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}L.adler=N.check=v(V),Z=V=0,N.mode=11;case 11:if(N.havedict===0)return L.next_out=re,L.avail_out=U,L.next_in=oe,L.avail_in=he,N.hold=V,N.bits=Z,2;L.adler=N.check=1,N.mode=12;case 12:if(Q===5||Q===6)break e;case 13:if(N.last){V>>>=7&Z,Z-=7&Z,N.mode=27;break}for(;Z<3;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}switch(N.last=1&V,Z-=1,3&(V>>>=1)){case 0:N.mode=14;break;case 1:if(_(N),N.mode=20,Q!==6)break;V>>>=2,Z-=2;break e;case 2:N.mode=17;break;case 3:L.msg="invalid block type",N.mode=30}V>>>=2,Z-=2;break;case 14:for(V>>>=7&Z,Z-=7&Z;Z<32;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if((65535&V)!=(V>>>16^65535)){L.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&V,Z=V=0,N.mode=15,Q===6)break e;case 15:N.mode=16;case 16:if(D=N.length){if(he<D&&(D=he),U<D&&(D=U),D===0)break e;i.arraySet(X,Y,oe,D,re),he-=D,oe+=D,U-=D,re+=D,N.length-=D;break}N.mode=12;break;case 17:for(;Z<14;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(N.nlen=257+(31&V),V>>>=5,Z-=5,N.ndist=1+(31&V),V>>>=5,Z-=5,N.ncode=4+(15&V),V>>>=4,Z-=4,286<N.nlen||30<N.ndist){L.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;Z<3;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.lens[be[N.have++]]=7&V,V>>>=3,Z-=3}for(;N.have<19;)N.lens[be[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,de={bits:N.lenbits},ue=c(0,N.lens,0,19,N.lencode,0,N.work,de),N.lenbits=de.bits,ue){L.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;ve=(ae=N.lencode[V&(1<<N.lenbits)-1])>>>16&255,xe=65535&ae,!((se=ae>>>24)<=Z);){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(xe<16)V>>>=se,Z-=se,N.lens[N.have++]=xe;else{if(xe===16){for(J=se+2;Z<J;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(V>>>=se,Z-=se,N.have===0){L.msg="invalid bit length repeat",N.mode=30;break}F=N.lens[N.have-1],D=3+(3&V),V>>>=2,Z-=2}else if(xe===17){for(J=se+3;Z<J;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}Z-=se,F=0,D=3+(7&(V>>>=se)),V>>>=3,Z-=3}else{for(J=se+7;Z<J;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}Z-=se,F=0,D=11+(127&(V>>>=se)),V>>>=7,Z-=7}if(N.have+D>N.nlen+N.ndist){L.msg="invalid bit length repeat",N.mode=30;break}for(;D--;)N.lens[N.have++]=F}}if(N.mode===30)break;if(N.lens[256]===0){L.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,de={bits:N.lenbits},ue=c(u,N.lens,0,N.nlen,N.lencode,0,N.work,de),N.lenbits=de.bits,ue){L.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,de={bits:N.distbits},ue=c(d,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,de),N.distbits=de.bits,ue){L.msg="invalid distances set",N.mode=30;break}if(N.mode=20,Q===6)break e;case 20:N.mode=21;case 21:if(6<=he&&258<=U){L.next_out=re,L.avail_out=U,L.next_in=oe,L.avail_in=he,N.hold=V,N.bits=Z,l(L,R),re=L.next_out,X=L.output,U=L.avail_out,oe=L.next_in,Y=L.input,he=L.avail_in,V=N.hold,Z=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;ve=(ae=N.lencode[V&(1<<N.lenbits)-1])>>>16&255,xe=65535&ae,!((se=ae>>>24)<=Z);){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(ve&&(240&ve)==0){for(T=se,$=ve,ne=xe;ve=(ae=N.lencode[ne+((V&(1<<T+$)-1)>>T)])>>>16&255,xe=65535&ae,!(T+(se=ae>>>24)<=Z);){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}V>>>=T,Z-=T,N.back+=T}if(V>>>=se,Z-=se,N.back+=se,N.length=xe,ve===0){N.mode=26;break}if(32&ve){N.back=-1,N.mode=12;break}if(64&ve){L.msg="invalid literal/length code",N.mode=30;break}N.extra=15&ve,N.mode=22;case 22:if(N.extra){for(J=N.extra;Z<J;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.length+=V&(1<<N.extra)-1,V>>>=N.extra,Z-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;ve=(ae=N.distcode[V&(1<<N.distbits)-1])>>>16&255,xe=65535&ae,!((se=ae>>>24)<=Z);){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if((240&ve)==0){for(T=se,$=ve,ne=xe;ve=(ae=N.distcode[ne+((V&(1<<T+$)-1)>>T)])>>>16&255,xe=65535&ae,!(T+(se=ae>>>24)<=Z);){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}V>>>=T,Z-=T,N.back+=T}if(V>>>=se,Z-=se,N.back+=se,64&ve){L.msg="invalid distance code",N.mode=30;break}N.offset=xe,N.extra=15&ve,N.mode=24;case 24:if(N.extra){for(J=N.extra;Z<J;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}N.offset+=V&(1<<N.extra)-1,V>>>=N.extra,Z-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){L.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(U===0)break e;if(D=R-U,N.offset>D){if((D=N.offset-D)>N.whave&&N.sane){L.msg="invalid distance too far back",N.mode=30;break}q=D>N.wnext?(D-=N.wnext,N.wsize-D):N.wnext-D,D>N.length&&(D=N.length),te=N.window}else te=X,q=re-N.offset,D=N.length;for(U<D&&(D=U),U-=D,N.length-=D;X[re++]=te[q++],--D;);N.length===0&&(N.mode=21);break;case 26:if(U===0)break e;X[re++]=N.length,U--,N.mode=21;break;case 27:if(N.wrap){for(;Z<32;){if(he===0)break e;he--,V|=Y[oe++]<<Z,Z+=8}if(R-=U,L.total_out+=R,N.total+=R,R&&(L.adler=N.check=N.flags?s(N.check,X,R,re-R):o(N.check,X,R,re-R)),R=U,(N.flags?V:v(V))!==N.check){L.msg="incorrect data check",N.mode=30;break}Z=V=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;Z<32;){if(he===0)break e;he--,V+=Y[oe++]<<Z,Z+=8}if(V!==(4294967295&N.total)){L.msg="incorrect length check",N.mode=30;break}Z=V=0}N.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;case 32:default:return m}return L.next_out=re,L.avail_out=U,L.next_in=oe,L.avail_in=he,N.hold=V,N.bits=Z,(N.wsize||R!==L.avail_out&&N.mode<30&&(N.mode<27||Q!==4))&&I(L,L.output,L.next_out,R-L.avail_out)?(N.mode=31,-4):(G-=L.avail_in,R-=L.avail_out,L.total_in+=G,L.total_out+=R,N.total+=R,N.wrap&&R&&(L.adler=N.check=N.flags?s(N.check,X,R,L.next_out-R):o(N.check,X,R,L.next_out-R)),L.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(G==0&&R===0||Q===4)&&ue===h&&(ue=-5),ue)},n.inflateEnd=function(L){if(!L||!L.state)return m;var Q=L.state;return Q.window&&(Q.window=null),L.state=null,h},n.inflateGetHeader=function(L,Q){var N;return L&&L.state?(2&(N=L.state).wrap)==0?m:((N.head=Q).done=!1,h):m},n.inflateSetDictionary=function(L,Q){var N,Y=Q.length;return L&&L.state?(N=L.state).wrap!==0&&N.mode!==11?m:N.mode===11&&o(1,Q,Y,0)!==N.check?-3:I(L,Q,Y,Y)?(N.mode=31,-4):(N.havedict=1,h):m},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,r,n){var i=a("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,d,h,m,b,f,y,v){var x,O,C,w,z,j,P,B,_,I=v.bits,L=0,Q=0,N=0,Y=0,X=0,oe=0,re=0,he=0,U=0,V=0,Z=null,G=0,R=new i.Buf16(16),D=new i.Buf16(16),q=null,te=0;for(L=0;L<=15;L++)R[L]=0;for(Q=0;Q<m;Q++)R[d[h+Q]]++;for(X=I,Y=15;1<=Y&&R[Y]===0;Y--);if(Y<X&&(X=Y),Y===0)return b[f++]=20971520,b[f++]=20971520,v.bits=1,0;for(N=1;N<Y&&R[N]===0;N++);for(X<N&&(X=N),L=he=1;L<=15;L++)if(he<<=1,(he-=R[L])<0)return-1;if(0<he&&(u===0||Y!==1))return-1;for(D[1]=0,L=1;L<15;L++)D[L+1]=D[L]+R[L];for(Q=0;Q<m;Q++)d[h+Q]!==0&&(y[D[d[h+Q]]++]=Q);if(j=u===0?(Z=q=y,19):u===1?(Z=o,G-=257,q=s,te-=257,256):(Z=l,q=c,-1),L=N,z=f,re=Q=V=0,C=-1,w=(U=1<<(oe=X))-1,u===1&&852<U||u===2&&592<U)return 1;for(;;){for(P=L-re,_=y[Q]<j?(B=0,y[Q]):y[Q]>j?(B=q[te+y[Q]],Z[G+y[Q]]):(B=96,0),x=1<<L-re,N=O=1<<oe;b[z+(V>>re)+(O-=x)]=P<<24|B<<16|_|0,O!==0;);for(x=1<<L-1;V&x;)x>>=1;if(x!==0?(V&=x-1,V+=x):V=0,Q++,--R[L]==0){if(L===Y)break;L=d[h+y[Q]]}if(X<L&&(V&w)!==C){for(re===0&&(re=X),z+=N,he=1<<(oe=L-re);oe+re<Y&&!((he-=R[oe+re])<=0);)oe++,he<<=1;if(U+=1<<oe,u===1&&852<U||u===2&&592<U)return 1;b[C=V&w]=X<<24|oe<<16|z-f|0}}return V!==0&&(b[z+V]=L-re<<24|64<<16|0),v.bits=X,0}},{"../utils/common":41}],51:[function(a,r,n){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,r,n){var i=a("../utils/common"),o=0,s=1;function l(ae){for(var ce=ae.length;0<=--ce;)ae[ce]=0}var c=0,u=29,d=256,h=d+1+u,m=30,b=19,f=2*h+1,y=15,v=16,x=7,O=256,C=16,w=17,z=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(h+2));l(I);var L=new Array(2*m);l(L);var Q=new Array(512);l(Q);var N=new Array(256);l(N);var Y=new Array(u);l(Y);var X,oe,re,he=new Array(m);function U(ae,ce,be,ge,fe){this.static_tree=ae,this.extra_bits=ce,this.extra_base=be,this.elems=ge,this.max_length=fe,this.has_stree=ae&&ae.length}function V(ae,ce){this.dyn_tree=ae,this.max_code=0,this.stat_desc=ce}function Z(ae){return ae<256?Q[ae]:Q[256+(ae>>>7)]}function G(ae,ce){ae.pending_buf[ae.pending++]=255&ce,ae.pending_buf[ae.pending++]=ce>>>8&255}function R(ae,ce,be){ae.bi_valid>v-be?(ae.bi_buf|=ce<<ae.bi_valid&65535,G(ae,ae.bi_buf),ae.bi_buf=ce>>v-ae.bi_valid,ae.bi_valid+=be-v):(ae.bi_buf|=ce<<ae.bi_valid&65535,ae.bi_valid+=be)}function D(ae,ce,be){R(ae,be[2*ce],be[2*ce+1])}function q(ae,ce){for(var be=0;be|=1&ae,ae>>>=1,be<<=1,0<--ce;);return be>>>1}function te(ae,ce,be){var ge,fe,ye=new Array(y+1),ze=0;for(ge=1;ge<=y;ge++)ye[ge]=ze=ze+be[ge-1]<<1;for(fe=0;fe<=ce;fe++){var Te=ae[2*fe+1];Te!==0&&(ae[2*fe]=q(ye[Te]++,Te))}}function se(ae){var ce;for(ce=0;ce<h;ce++)ae.dyn_ltree[2*ce]=0;for(ce=0;ce<m;ce++)ae.dyn_dtree[2*ce]=0;for(ce=0;ce<b;ce++)ae.bl_tree[2*ce]=0;ae.dyn_ltree[2*O]=1,ae.opt_len=ae.static_len=0,ae.last_lit=ae.matches=0}function ve(ae){8<ae.bi_valid?G(ae,ae.bi_buf):0<ae.bi_valid&&(ae.pending_buf[ae.pending++]=ae.bi_buf),ae.bi_buf=0,ae.bi_valid=0}function xe(ae,ce,be,ge){var fe=2*ce,ye=2*be;return ae[fe]<ae[ye]||ae[fe]===ae[ye]&&ge[ce]<=ge[be]}function T(ae,ce,be){for(var ge=ae.heap[be],fe=be<<1;fe<=ae.heap_len&&(fe<ae.heap_len&&xe(ce,ae.heap[fe+1],ae.heap[fe],ae.depth)&&fe++,!xe(ce,ge,ae.heap[fe],ae.depth));)ae.heap[be]=ae.heap[fe],be=fe,fe<<=1;ae.heap[be]=ge}function $(ae,ce,be){var ge,fe,ye,ze,Te=0;if(ae.last_lit!==0)for(;ge=ae.pending_buf[ae.d_buf+2*Te]<<8|ae.pending_buf[ae.d_buf+2*Te+1],fe=ae.pending_buf[ae.l_buf+Te],Te++,ge===0?D(ae,fe,ce):(D(ae,(ye=N[fe])+d+1,ce),(ze=j[ye])!==0&&R(ae,fe-=Y[ye],ze),D(ae,ye=Z(--ge),be),(ze=P[ye])!==0&&R(ae,ge-=he[ye],ze)),Te<ae.last_lit;);D(ae,O,ce)}function ne(ae,ce){var be,ge,fe,ye=ce.dyn_tree,ze=ce.stat_desc.static_tree,Te=ce.stat_desc.has_stree,tt=ce.stat_desc.elems,M=-1;for(ae.heap_len=0,ae.heap_max=f,be=0;be<tt;be++)ye[2*be]!==0?(ae.heap[++ae.heap_len]=M=be,ae.depth[be]=0):ye[2*be+1]=0;for(;ae.heap_len<2;)ye[2*(fe=ae.heap[++ae.heap_len]=M<2?++M:0)]=1,ae.depth[fe]=0,ae.opt_len--,Te&&(ae.static_len-=ze[2*fe+1]);for(ce.max_code=M,be=ae.heap_len>>1;1<=be;be--)T(ae,ye,be);for(fe=tt;be=ae.heap[1],ae.heap[1]=ae.heap[ae.heap_len--],T(ae,ye,1),ge=ae.heap[1],ae.heap[--ae.heap_max]=be,ae.heap[--ae.heap_max]=ge,ye[2*fe]=ye[2*be]+ye[2*ge],ae.depth[fe]=(ae.depth[be]>=ae.depth[ge]?ae.depth[be]:ae.depth[ge])+1,ye[2*be+1]=ye[2*ge+1]=fe,ae.heap[1]=fe++,T(ae,ye,1),2<=ae.heap_len;);ae.heap[--ae.heap_max]=ae.heap[1],(function(ee,le){var Ce,Me,Be,Ne,at,dt,mt=le.dyn_tree,ct=le.max_code,xt=le.stat_desc.static_tree,Xt=le.stat_desc.has_stree,gt=le.stat_desc.extra_bits,Mt=le.stat_desc.extra_base,Vt=le.stat_desc.max_length,da=0;for(Ne=0;Ne<=y;Ne++)ee.bl_count[Ne]=0;for(mt[2*ee.heap[ee.heap_max]+1]=0,Ce=ee.heap_max+1;Ce<f;Ce++)Vt<(Ne=mt[2*mt[2*(Me=ee.heap[Ce])+1]+1]+1)&&(Ne=Vt,da++),mt[2*Me+1]=Ne,ct<Me||(ee.bl_count[Ne]++,at=0,Mt<=Me&&(at=gt[Me-Mt]),dt=mt[2*Me],ee.opt_len+=dt*(Ne+at),Xt&&(ee.static_len+=dt*(xt[2*Me+1]+at)));if(da!==0){do{for(Ne=Vt-1;ee.bl_count[Ne]===0;)Ne--;ee.bl_count[Ne]--,ee.bl_count[Ne+1]+=2,ee.bl_count[Vt]--,da-=2}while(0<da);for(Ne=Vt;Ne!==0;Ne--)for(Me=ee.bl_count[Ne];Me!==0;)ct<(Be=ee.heap[--Ce])||(mt[2*Be+1]!==Ne&&(ee.opt_len+=(Ne-mt[2*Be+1])*mt[2*Be],mt[2*Be+1]=Ne),Me--)}})(ae,ce),te(ye,M,ae.bl_count)}function F(ae,ce,be){var ge,fe,ye=-1,ze=ce[1],Te=0,tt=7,M=4;for(ze===0&&(tt=138,M=3),ce[2*(be+1)+1]=65535,ge=0;ge<=be;ge++)fe=ze,ze=ce[2*(ge+1)+1],++Te<tt&&fe===ze||(Te<M?ae.bl_tree[2*fe]+=Te:fe!==0?(fe!==ye&&ae.bl_tree[2*fe]++,ae.bl_tree[2*C]++):Te<=10?ae.bl_tree[2*w]++:ae.bl_tree[2*z]++,ye=fe,M=(Te=0)===ze?(tt=138,3):fe===ze?(tt=6,3):(tt=7,4))}function ue(ae,ce,be){var ge,fe,ye=-1,ze=ce[1],Te=0,tt=7,M=4;for(ze===0&&(tt=138,M=3),ge=0;ge<=be;ge++)if(fe=ze,ze=ce[2*(ge+1)+1],!(++Te<tt&&fe===ze)){if(Te<M)for(;D(ae,fe,ae.bl_tree),--Te!=0;);else fe!==0?(fe!==ye&&(D(ae,fe,ae.bl_tree),Te--),D(ae,C,ae.bl_tree),R(ae,Te-3,2)):Te<=10?(D(ae,w,ae.bl_tree),R(ae,Te-3,3)):(D(ae,z,ae.bl_tree),R(ae,Te-11,7));ye=fe,M=(Te=0)===ze?(tt=138,3):fe===ze?(tt=6,3):(tt=7,4)}}l(he);var de=!1;function J(ae,ce,be,ge){R(ae,(c<<1)+(ge?1:0),3),(function(fe,ye,ze,Te){ve(fe),G(fe,ze),G(fe,~ze),i.arraySet(fe.pending_buf,fe.window,ye,ze,fe.pending),fe.pending+=ze})(ae,ce,be)}n._tr_init=function(ae){de||((function(){var ce,be,ge,fe,ye,ze=new Array(y+1);for(fe=ge=0;fe<u-1;fe++)for(Y[fe]=ge,ce=0;ce<1<<j[fe];ce++)N[ge++]=fe;for(N[ge-1]=fe,fe=ye=0;fe<16;fe++)for(he[fe]=ye,ce=0;ce<1<<P[fe];ce++)Q[ye++]=fe;for(ye>>=7;fe<m;fe++)for(he[fe]=ye<<7,ce=0;ce<1<<P[fe]-7;ce++)Q[256+ye++]=fe;for(be=0;be<=y;be++)ze[be]=0;for(ce=0;ce<=143;)I[2*ce+1]=8,ce++,ze[8]++;for(;ce<=255;)I[2*ce+1]=9,ce++,ze[9]++;for(;ce<=279;)I[2*ce+1]=7,ce++,ze[7]++;for(;ce<=287;)I[2*ce+1]=8,ce++,ze[8]++;for(te(I,h+1,ze),ce=0;ce<m;ce++)L[2*ce+1]=5,L[2*ce]=q(ce,5);X=new U(I,j,d+1,h,y),oe=new U(L,P,0,m,y),re=new U(new Array(0),B,0,b,x)})(),de=!0),ae.l_desc=new V(ae.dyn_ltree,X),ae.d_desc=new V(ae.dyn_dtree,oe),ae.bl_desc=new V(ae.bl_tree,re),ae.bi_buf=0,ae.bi_valid=0,se(ae)},n._tr_stored_block=J,n._tr_flush_block=function(ae,ce,be,ge){var fe,ye,ze=0;0<ae.level?(ae.strm.data_type===2&&(ae.strm.data_type=(function(Te){var tt,M=4093624447;for(tt=0;tt<=31;tt++,M>>>=1)if(1&M&&Te.dyn_ltree[2*tt]!==0)return o;if(Te.dyn_ltree[18]!==0||Te.dyn_ltree[20]!==0||Te.dyn_ltree[26]!==0)return s;for(tt=32;tt<d;tt++)if(Te.dyn_ltree[2*tt]!==0)return s;return o})(ae)),ne(ae,ae.l_desc),ne(ae,ae.d_desc),ze=(function(Te){var tt;for(F(Te,Te.dyn_ltree,Te.l_desc.max_code),F(Te,Te.dyn_dtree,Te.d_desc.max_code),ne(Te,Te.bl_desc),tt=b-1;3<=tt&&Te.bl_tree[2*_[tt]+1]===0;tt--);return Te.opt_len+=3*(tt+1)+5+5+4,tt})(ae),fe=ae.opt_len+3+7>>>3,(ye=ae.static_len+3+7>>>3)<=fe&&(fe=ye)):fe=ye=be+5,be+4<=fe&&ce!==-1?J(ae,ce,be,ge):ae.strategy===4||ye===fe?(R(ae,2+(ge?1:0),3),$(ae,I,L)):(R(ae,4+(ge?1:0),3),(function(Te,tt,M,ee){var le;for(R(Te,tt-257,5),R(Te,M-1,5),R(Te,ee-4,4),le=0;le<ee;le++)R(Te,Te.bl_tree[2*_[le]+1],3);ue(Te,Te.dyn_ltree,tt-1),ue(Te,Te.dyn_dtree,M-1)})(ae,ae.l_desc.max_code+1,ae.d_desc.max_code+1,ze+1),$(ae,ae.dyn_ltree,ae.dyn_dtree)),se(ae),ge&&ve(ae)},n._tr_tally=function(ae,ce,be){return ae.pending_buf[ae.d_buf+2*ae.last_lit]=ce>>>8&255,ae.pending_buf[ae.d_buf+2*ae.last_lit+1]=255&ce,ae.pending_buf[ae.l_buf+ae.last_lit]=255&be,ae.last_lit++,ce===0?ae.dyn_ltree[2*be]++:(ae.matches++,ce--,ae.dyn_ltree[2*(N[be]+d+1)]++,ae.dyn_dtree[2*Z(ce)]++),ae.last_lit===ae.lit_bufsize-1},n._tr_align=function(ae){R(ae,2,3),D(ae,O,I),(function(ce){ce.bi_valid===16?(G(ce,ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0):8<=ce.bi_valid&&(ce.pending_buf[ce.pending++]=255&ce.bi_buf,ce.bi_buf>>=8,ce.bi_valid-=8)})(ae)}},{"../utils/common":41}],53:[function(a,r,n){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,r,n){(function(i){(function(o,s){if(!o.setImmediate){var l,c,u,d,h=1,m={},b=!1,f=o.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(o);y=y&&y.setTimeout?y:o,l={}.toString.call(o.process)==="[object process]"?function(C){process.nextTick(function(){x(C)})}:(function(){if(o.postMessage&&!o.importScripts){var C=!0,w=o.onmessage;return o.onmessage=function(){C=!1},o.postMessage("","*"),o.onmessage=w,C}})()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",O,!1):o.attachEvent("onmessage",O),function(C){o.postMessage(d+C,"*")}):o.MessageChannel?((u=new MessageChannel).port1.onmessage=function(C){x(C.data)},function(C){u.port2.postMessage(C)}):f&&"onreadystatechange"in f.createElement("script")?(c=f.documentElement,function(C){var w=f.createElement("script");w.onreadystatechange=function(){x(C),w.onreadystatechange=null,c.removeChild(w),w=null},c.appendChild(w)}):function(C){setTimeout(x,0,C)},y.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var w=new Array(arguments.length-1),z=0;z<w.length;z++)w[z]=arguments[z+1];var j={callback:C,args:w};return m[h]=j,l(h),h++},y.clearImmediate=v}function v(C){delete m[C]}function x(C){if(b)setTimeout(x,0,C);else{var w=m[C];if(w){b=!0;try{(function(z){var j=z.callback,P=z.args;switch(P.length){case 0:j();break;case 1:j(P[0]);break;case 2:j(P[0],P[1]);break;case 3:j(P[0],P[1],P[2]);break;default:j.apply(s,P)}})(w)}finally{v(C),b=!1}}}}function O(C){C.source===o&&typeof C.data=="string"&&C.data.indexOf(d)===0&&x(+C.data.slice(d.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ine)),Ine.exports}var jnt=Cnt();const Pnt=Jr(jnt),Ant=Object.freeze(Object.defineProperty({__proto__:null,default:Pnt},Symbol.toStringTag,{value:"Module"}));function Vne({value:e=!1,disabled:t=!1,onChange:a,onFocus:r,stopPropagation:n=!1,className:i}){const o=l=>{t||(n&&l.stopPropagation(),a(!e))},s=l=>{n&&l.stopPropagation(),r?.()};return p.jsx(Mnt,{tabIndex:t?-1:0,onFocus:s,onClick:o,role:"switch","aria-checked":e,"aria-disabled":t,selected:e,disabled:t,className:i,children:p.jsx(Tnt,{selected:e,disabled:t})})}const Mnt=H.div`
|
|
10262
10262
|
width: var(--switch-width);
|
|
10263
10263
|
height: var(--switch-height);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"url-template": "^2.0.8",
|
|
37
37
|
"util": "~0.12.5",
|
|
38
38
|
"web-vitals": "3.3.1",
|
|
39
|
-
"@redocly/replay": "0.19.
|
|
39
|
+
"@redocly/replay": "0.19.1",
|
|
40
40
|
"@redocly/config": "0.41.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"typescript": "5.9.3",
|
|
77
77
|
"url": "~0.11.0",
|
|
78
78
|
"vite": "7.2.6",
|
|
79
|
-
"@redocly/theme": "0.60.
|
|
79
|
+
"@redocly/theme": "0.60.1"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"start": "npm run copy-highlight-hook && vite",
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"prepare:community-source-only": "npm run prepare:community-source --ignore /src/* private-readme.md",
|
|
88
88
|
"prepare:community-dependencies": "npx tsx scripts/prepare-community-dependencies.ts",
|
|
89
89
|
"apply:community-source": "npx tsx scripts/apply-changes-from-community-source.ts",
|
|
90
|
-
"test": "npm run prepare:community-source && npm run test:redoc &&
|
|
91
|
-
"test:redoc": "cd redoc && pnpm install &&
|
|
92
|
-
"unit": "
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
90
|
+
"test": "npm run prepare:community-source && npm run redoc:use-workspace && npm run test:redoc && npm run redoc:revert-workspace && vitest run",
|
|
91
|
+
"test:redoc": "cd redoc && pnpm install &&npm run lint && npm run unit",
|
|
92
|
+
"unit": "vitest run",
|
|
93
|
+
"unit:update": "vitest run -u",
|
|
94
|
+
"unit:watch": "vitest",
|
|
95
|
+
"unit:coverage": "vitest run --coverage",
|
|
96
|
+
"unit:coverage:html": "vitest run --coverage --coverage.reporter=html",
|
|
97
97
|
"ts:check": "tsc --noEmit --skipLibCheck",
|
|
98
98
|
"clean": "rimraf bin dist lib redocly-static",
|
|
99
99
|
"clear:cache": "scripts/clear-cache.sh",
|