@redocly/openapi-docs 3.18.0 → 3.18.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.
@@ -10587,7 +10587,7 @@ ${a}`).join(`\r
10587
10587
  # See https://redocly.com/docs/cli/ for more information.
10588
10588
  `,loe="configBundler",Rlt="pluginsCollector";class UO{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=ooe(this.resolvedConfig.resolve),this._alias=a.alias,this.plugins=a.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const r=n=>Tlt({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}),openrpc1:r({...t.rules,...t.openrpc1Rules})},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},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors}},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},openrpc1:{...t.decorators,...t.openrpc1Decorators}},this.ignore=a.ignore??{}}forAlias(t){if(t===void 0||!Rt(this.resolvedConfig?.apis?.[t]))return this;const{apis:a,...r}=this.resolvedConfig,{root:n,output:i,...o}=a[t];return new UO({...r,...o},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}saveIgnore(){const t=this.configPath?lr.dirname(this.configPath):process.cwd(),a=lr.join(t,Elt),r={};for(const n of Object.keys(this.ignore)){const i=no(n)?n:zlt(lr.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,Blt+Bot(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;case"openrpc1":if(!n.typeExtension.openrpc1)continue;r=n.typeExtension.openrpc1(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(c=>c.preprocessors?.oas3&&a.push(c.preprocessors.oas3)),this.plugins.forEach(c=>c.rules?.oas3&&a.push(c.rules.oas3)),this.plugins.forEach(c=>c.decorators?.oas3&&a.push(c.decorators.oas3)),a;case"oas2":const r=[];return this.plugins.forEach(c=>c.preprocessors?.oas2&&r.push(c.preprocessors.oas2)),this.plugins.forEach(c=>c.rules?.oas2&&r.push(c.rules.oas2)),this.plugins.forEach(c=>c.decorators?.oas2&&r.push(c.decorators.oas2)),r;case"async2":const n=[];return this.plugins.forEach(c=>c.preprocessors?.async2&&n.push(c.preprocessors.async2)),this.plugins.forEach(c=>c.rules?.async2&&n.push(c.rules.async2)),this.plugins.forEach(c=>c.decorators?.async2&&n.push(c.decorators.async2)),n;case"async3":const i=[];return this.plugins.forEach(c=>c.preprocessors?.async3&&i.push(c.preprocessors.async3)),this.plugins.forEach(c=>c.rules?.async3&&i.push(c.rules.async3)),this.plugins.forEach(c=>c.decorators?.async3&&i.push(c.decorators.async3)),i;case"arazzo1":const o=[];return this.plugins.forEach(c=>c.preprocessors?.arazzo1&&o.push(c.preprocessors.arazzo1)),this.plugins.forEach(c=>c.rules?.arazzo1&&o.push(c.rules.arazzo1)),this.plugins.forEach(c=>c.decorators?.arazzo1&&o.push(c.decorators.arazzo1)),o;case"overlay1":const s=[];return this.plugins.forEach(c=>c.preprocessors?.overlay1&&s.push(c.preprocessors.overlay1)),this.plugins.forEach(c=>c.rules?.overlay1&&s.push(c.rules.overlay1)),this.plugins.forEach(c=>c.decorators?.overlay1&&s.push(c.decorators.overlay1)),s;case"openrpc1":const l=[];return this.plugins.forEach(c=>c.preprocessors?.openrpc1&&l.push(c.preprocessors.openrpc1)),this.plugins.forEach(c=>c.rules?.openrpc1&&l.push(c.rules.openrpc1)),this.plugins.forEach(c=>c.decorators?.openrpc1&&l.push(c.decorators.openrpc1)),l}}skipRules(t){for(const a of t||[])for(const r of XR)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 XR)this.preprocessors[r][a]&&(this.preprocessors[r][a]="off")}skipDecorators(t){for(const a of t||[])for(const r of XR)this.decorators[r][a]&&(this.decorators[r][a]="off")}}async function _lt(e){const{ref:t,doc:a,externalRefResolver:r=new _0(e.config.resolve),base:n=null}=e;if(!(t||a))throw new Error(`Document or reference is required.
10589
10589
  `);const i=a===void 0?await r.resolveDocument(n,t,!0):a;if(i instanceof Error)throw i;const o=N0(i.parsed);let s;switch(o){case"oas2":s=noe;break;case"oas3_0":s=tu;break;case"oas3_1":s=Cn;break;case"oas3_2":s=Co;break;default:throw new Error(`Unsupported OpenAPI version: ${o}`)}return roe({document:i,...e,externalRefResolver:r,types:s})}function coe(e={}){return new UO({rules:{},preprocessors:{},decorators:{},plugins:[]},{configPath:e.configPath})}const Llt={isatty:()=>{},createRequire:()=>{}},uoe=Object.freeze(Object.defineProperty({__proto__:null,default:Llt},Symbol.toStringTag,{value:"Module"})),vb=AU(uoe);var Bf={},OC={exports:{}},Dlt=OC.exports,doe;function Nlt(){return doe||(doe=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,v=128,g="-",b=/^xn--/,y=/[^\x20-\x7E]/,k=/[\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,S=String.fromCharCode,j;function A(Z){throw RangeError(O[Z])}function R(Z,I){for(var W=Z.length,q=[];W--;)q[W]=I(Z[W]);return q}function L(Z,I){var W=Z.split("@"),q="";W.length>1&&(q=W[0]+"@",Z=W[1]),Z=Z.replace(k,".");var B=Z.split("."),D=R(B,I).join(".");return q+D}function H(Z){for(var I=[],W=0,q=Z.length,B,D;W<q;)B=Z.charCodeAt(W++),B>=55296&&B<=56319&&W<q?(D=Z.charCodeAt(W++),(D&64512)==56320?I.push(((B&1023)<<10)+(D&1023)+65536):(I.push(B),W--)):I.push(B);return I}function _(Z){return R(Z,function(I){var W="";return I>65535&&(I-=65536,W+=S(I>>>10&1023|55296),I=56320|I&1023),W+=S(I),W}).join("")}function G(Z){return Z-48<10?Z-22:Z-65<26?Z-65:Z-97<26?Z-97:l}function N(Z,I){return Z+22+75*(Z<26)-((I!=0)<<5)}function Y(Z,I,W){var q=0;for(Z=W?w(Z/h):Z>>1,Z+=w(Z/I);Z>C*u>>1;q+=l)Z=w(Z/C);return w(q+(C+1)*Z/(Z+d))}function te(Z){var I=[],W=Z.length,q,B=0,D=v,F=m,re,le,be,ke,M,$,oe,Q,de;for(re=Z.lastIndexOf(g),re<0&&(re=0),le=0;le<re;++le)Z.charCodeAt(le)>=128&&A("not-basic"),I.push(Z.charCodeAt(le));for(be=re>0?re+1:0;be<W;){for(ke=B,M=1,$=l;be>=W&&A("invalid-input"),oe=G(Z.charCodeAt(be++)),(oe>=l||oe>w((s-B)/M))&&A("overflow"),B+=oe*M,Q=$<=F?c:$>=F+u?u:$-F,!(oe<Q);$+=l)de=l-Q,M>w(s/de)&&A("overflow"),M*=de;q=I.length+1,F=Y(B-ke,q,ke==0),w(B/q)>s-D&&A("overflow"),D+=w(B/q),B%=q,I.splice(B++,0,D)}return _(I)}function se(Z){var I,W,q,B,D,F,re,le,be,ke,M,$=[],oe,Q,de,pe;for(Z=H(Z),oe=Z.length,I=v,W=0,D=m,F=0;F<oe;++F)M=Z[F],M<128&&$.push(S(M));for(q=B=$.length,B&&$.push(g);q<oe;){for(re=s,F=0;F<oe;++F)M=Z[F],M>=I&&M<re&&(re=M);for(Q=q+1,re-I>w((s-W)/Q)&&A("overflow"),W+=(re-I)*Q,I=re,F=0;F<oe;++F)if(M=Z[F],M<I&&++W>s&&A("overflow"),M==I){for(le=W,be=l;ke=be<=D?c:be>=D+u?u:be-D,!(le<ke);be+=l)pe=le-ke,de=l-ke,$.push(S(N(ke+pe%de,0))),le=w(pe/de);$.push(S(N(le,0))),D=Y(W,Q,q==B),W=0,++q}++W,++I}return $.join("")}function X(Z){return L(Z,function(I){return b.test(I)?te(I.slice(4).toLowerCase()):I})}function ue(Z){return L(Z,function(I){return y.test(I)?"xn--"+se(I):I})}if(o={version:"1.3.2",ucs2:{decode:H,encode:_},decode:te,encode:se,toASCII:ue,toUnicode:X},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})(Dlt)})(OC,OC.exports)),OC.exports}var poe,hoe;function $lt(){return hoe||(hoe=1,poe={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}}),poe}var K0={},e7,moe;function Ilt(){if(moe)return e7;moe=1;function e(t,a){return Object.prototype.hasOwnProperty.call(t,a)}return e7=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,v,g;d>=0?(h=u.substr(0,d),m=u.substr(d+1)):(h=u,m=""),v=decodeURIComponent(h),g=decodeURIComponent(m),e(i,v)?Array.isArray(i[v])?i[v].push(g):i[v]=[i[v],g]:i[v]=g}return i},e7}var t7,foe;function Vlt(){if(foe)return t7;foe=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 t7=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)):""},t7}var goe;function Hlt(){return goe||(goe=1,K0.decode=K0.parse=Ilt(),K0.encode=K0.stringify=Vlt()),K0}var voe;function a7(){if(voe)return Bf;voe=1;var e=Nlt(),t=$lt();Bf.parse=k,Bf.resolve=C,Bf.resolveObject=w,Bf.format=O,Bf.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",`
10590
- `," "],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})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=Hlt();function k(S,j,A){if(S&&t.isObject(S)&&S instanceof a)return S;var R=new a;return R.parse(S,j,A),R}a.prototype.parse=function(S,j,A){if(!t.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var R=S.indexOf("?"),L=R!==-1&&R<S.indexOf("#")?"?":"#",H=S.split(L),_=/\\/g;H[0]=H[0].replace(_,"/"),S=H.join(L);var G=S;if(G=G.trim(),!A&&S.split("#").length===1){var N=i.exec(G);if(N)return this.path=G,this.href=G,this.pathname=N[1],N[2]?(this.search=N[2],j?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var Y=r.exec(G);if(Y){Y=Y[0];var te=Y.toLowerCase();this.protocol=te,G=G.substr(Y.length)}if(A||Y||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var se=G.substr(0,2)==="//";se&&!(Y&&g[Y])&&(G=G.substr(2),this.slashes=!0)}if(!g[Y]&&(se||Y&&!b[Y])){for(var X=-1,ue=0;ue<u.length;ue++){var Z=G.indexOf(u[ue]);Z!==-1&&(X===-1||Z<X)&&(X=Z)}var I,W;X===-1?W=G.lastIndexOf("@"):W=G.lastIndexOf("@",X),W!==-1&&(I=G.slice(0,W),G=G.slice(W+1),this.auth=decodeURIComponent(I)),X=-1;for(var ue=0;ue<c.length;ue++){var Z=G.indexOf(c[ue]);Z!==-1&&(X===-1||Z<X)&&(X=Z)}X===-1&&(X=G.length),this.host=G.slice(0,X),G=G.slice(X),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var B=this.hostname.split(/\./),ue=0,D=B.length;ue<D;ue++){var F=B[ue];if(F&&!F.match(h)){for(var re="",le=0,be=F.length;le<be;le++)F.charCodeAt(le)>127?re+="x":re+=F[le];if(!re.match(h)){var ke=B.slice(0,ue),M=B.slice(ue+1),$=F.match(m);$&&(ke.push($[1]),M.unshift($[2])),M.length&&(G="/"+M.join(".")+G),this.hostname=ke.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var oe=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+oe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!v[te])for(var ue=0,D=l.length;ue<D;ue++){var de=l[ue];if(G.indexOf(de)!==-1){var pe=encodeURIComponent(de);pe===de&&(pe=escape(de)),G=G.split(de).join(pe)}}var J=G.indexOf("#");J!==-1&&(this.hash=G.substr(J),G=G.slice(0,J));var ae=G.indexOf("?");if(ae!==-1?(this.search=G.substr(ae),this.query=G.substr(ae+1),j&&(this.query=y.parse(this.query)),G=G.slice(0,ae)):j&&(this.search="",this.query={}),G&&(this.pathname=G),b[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var oe=this.pathname||"",ne=this.search||"";this.path=oe+ne}return this.href=this.format(),this};function O(S){return t.isString(S)&&(S=k(S)),S instanceof a?S.format():a.prototype.format.call(S)}a.prototype.format=function(){var S=this.auth||"";S&&(S=encodeURIComponent(S),S=S.replace(/%3A/i,":"),S+="@");var j=this.protocol||"",A=this.pathname||"",R=this.hash||"",L=!1,H="";this.host?L=S+this.host:this.hostname&&(L=S+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(H=y.stringify(this.query));var _=this.search||H&&"?"+H||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||b[j])&&L!==!1?(L="//"+(L||""),A&&A.charAt(0)!=="/"&&(A="/"+A)):L||(L=""),R&&R.charAt(0)!=="#"&&(R="#"+R),_&&_.charAt(0)!=="?"&&(_="?"+_),A=A.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),_=_.replace("#","%23"),j+L+A+_+R};function C(S,j){return k(S,!1,!0).resolve(j)}a.prototype.resolve=function(S){return this.resolveObject(k(S,!1,!0)).format()};function w(S,j){return S?k(S,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(S){if(t.isString(S)){var j=new a;j.parse(S,!1,!0),S=j}for(var A=new a,R=Object.keys(this),L=0;L<R.length;L++){var H=R[L];A[H]=this[H]}if(A.hash=S.hash,S.href==="")return A.href=A.format(),A;if(S.slashes&&!S.protocol){for(var _=Object.keys(S),G=0;G<_.length;G++){var N=_[G];N!=="protocol"&&(A[N]=S[N])}return b[A.protocol]&&A.hostname&&!A.pathname&&(A.path=A.pathname="/"),A.href=A.format(),A}if(S.protocol&&S.protocol!==A.protocol){if(!b[S.protocol]){for(var Y=Object.keys(S),te=0;te<Y.length;te++){var se=Y[te];A[se]=S[se]}return A.href=A.format(),A}if(A.protocol=S.protocol,!S.host&&!g[S.protocol]){for(var D=(S.pathname||"").split("/");D.length&&!(S.host=D.shift()););S.host||(S.host=""),S.hostname||(S.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),A.pathname=D.join("/")}else A.pathname=S.pathname;if(A.search=S.search,A.query=S.query,A.host=S.host||"",A.auth=S.auth,A.hostname=S.hostname||S.host,A.port=S.port,A.pathname||A.search){var X=A.pathname||"",ue=A.search||"";A.path=X+ue}return A.slashes=A.slashes||S.slashes,A.href=A.format(),A}var Z=A.pathname&&A.pathname.charAt(0)==="/",I=S.host||S.pathname&&S.pathname.charAt(0)==="/",W=I||Z||A.host&&S.pathname,q=W,B=A.pathname&&A.pathname.split("/")||[],D=S.pathname&&S.pathname.split("/")||[],F=A.protocol&&!b[A.protocol];if(F&&(A.hostname="",A.port=null,A.host&&(B[0]===""?B[0]=A.host:B.unshift(A.host)),A.host="",S.protocol&&(S.hostname=null,S.port=null,S.host&&(D[0]===""?D[0]=S.host:D.unshift(S.host)),S.host=null),W=W&&(D[0]===""||B[0]==="")),I)A.host=S.host||S.host===""?S.host:A.host,A.hostname=S.hostname||S.hostname===""?S.hostname:A.hostname,A.search=S.search,A.query=S.query,B=D;else if(D.length)B||(B=[]),B.pop(),B=B.concat(D),A.search=S.search,A.query=S.query;else if(!t.isNullOrUndefined(S.search)){if(F){A.hostname=A.host=B.shift();var re=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;re&&(A.auth=re.shift(),A.host=A.hostname=re.shift())}return A.search=S.search,A.query=S.query,(!t.isNull(A.pathname)||!t.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.href=A.format(),A}if(!B.length)return A.pathname=null,A.search?A.path="/"+A.search:A.path=null,A.href=A.format(),A;for(var le=B.slice(-1)[0],be=(A.host||S.host||B.length>1)&&(le==="."||le==="..")||le==="",ke=0,M=B.length;M>=0;M--)le=B[M],le==="."?B.splice(M,1):le===".."?(B.splice(M,1),ke++):ke&&(B.splice(M,1),ke--);if(!W&&!q)for(;ke--;ke)B.unshift("..");W&&B[0]!==""&&(!B[0]||B[0].charAt(0)!=="/")&&B.unshift(""),be&&B.join("/").substr(-1)!=="/"&&B.push("");var $=B[0]===""||B[0]&&B[0].charAt(0)==="/";if(F){A.hostname=A.host=$?"":B.length?B.shift():"";var re=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;re&&(A.auth=re.shift(),A.host=A.hostname=re.shift())}return W=W||A.host&&B.length,W&&!$&&B.unshift(""),B.length?A.pathname=B.join("/"):(A.pathname=null,A.path=null),(!t.isNull(A.pathname)||!t.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.auth=S.auth||A.auth,A.slashes=A.slashes||S.slashes,A.href=A.format(),A},a.prototype.parseHost=function(){var S=this.host,j=n.exec(S);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),S=S.substr(0,S.length-j.length)),S&&(this.hostname=S)},Bf}var r7,boe;function Klt(){if(boe)return r7;boe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return r7=e(),r7}var n7,yoe;function Flt(){if(yoe)return n7;yoe=1;var e=Klt();return n7=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},n7}var i7,koe;function SC(){if(koe)return i7;koe=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 i7={jptr:a,jpescape:e,jpunescape:t},i7}var o7,xoe;function s7(){if(xoe)return o7;xoe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return o7={isRef:e},o7}var l7,woe;function zC(){if(woe)return l7;woe=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 l7={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},l7}var c7,Ooe;function u7(){if(Ooe)return c7;Ooe=1;const e=SC().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 c7={recurse:a},c7}var d7,Soe;function Glt(){if(Soe)return d7;Soe=1;const e=u7().recurse,t=zC().shallowClone,a=SC().jptr,r=s7().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(v,g,b){if(r(v,g)){let y=v[g];if(m++,l.cache[y]){let k=l.cache[y];if(k.resolved)h.warn("Patching %s for %s",y,k.path),b.parent[b.pkey]=k.data,l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=y);else{if(y===k.path)throw new Error(`Tight circle at ${k.path}`);h.warn("Unresolved ref"),b.parent[b.pkey]=a(k.source,k.path),b.parent[b.pkey]===!1&&(b.parent[b.pkey]=a(k.source,k.key)),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[l.$ref]=y)}}else{let k={};k.path=b.path.split("/$ref")[0],k.key=y,h.warn("Dereffing %s at %s",y,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&h.warn("Missing $ref target",k.key),l.cache[y]=k,k.data=b.parent[b.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=y),k.resolved=!0}}});return u.data}return d7={dereference:i},d7}var p7,zoe;function qlt(){if(zoe)return p7;zoe=1,p7=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,v,g){typeof g>"u"&&(g=n()),s(h,"",0,[],void 0,0,g);var b;try{r.length===0?b=JSON.stringify(h,m,v):b=JSON.stringify(h,d(m),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var y=a.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return b}function o(h,m,v,g){var b=Object.getOwnPropertyDescriptor(g,v);b.get!==void 0?b.configurable?(Object.defineProperty(g,v,{value:h}),a.push([g,v,m,b])):r.push([m,v,h]):(g[v]=h,a.push([g,v,m]))}function s(h,m,v,g,b,y,k){y+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<g.length;O++)if(g[O]===h){o(t,h,m,b);return}if(typeof k.depthLimit<"u"&&y>k.depthLimit){o(e,h,m,b);return}if(typeof k.edgesLimit<"u"&&v+1>k.edgesLimit){o(e,h,m,b);return}if(g.push(h),Array.isArray(h))for(O=0;O<h.length;O++)s(h[O],O,O,g,h,y,k);else{var C=Object.keys(h);for(O=0;O<C.length;O++){var w=C[O];s(h[w],w,O,g,h,y,k)}}g.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,v,g){typeof g>"u"&&(g=n());var b=u(h,"",0,[],void 0,0,g)||h,y;try{r.length===0?y=JSON.stringify(b,m,v):y=JSON.stringify(b,d(m),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return y}function u(h,m,v,g,b,y,k){y+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<g.length;O++)if(g[O]===h){o(t,h,m,b);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&y>k.depthLimit){o(e,h,m,b);return}if(typeof k.edgesLimit<"u"&&v+1>k.edgesLimit){o(e,h,m,b);return}if(g.push(h),Array.isArray(h))for(O=0;O<h.length;O++)u(h[O],O,O,g,h,y,k);else{var C={},w=Object.keys(h).sort(l);for(O=0;O<w.length;O++){var S=w[O];u(h[S],S,O,g,h,y,k),C[S]=h[S]}if(typeof b<"u")a.push([b,m,h]),b[m]=C;else return C}g.pop()}}function d(h){return h=typeof h<"u"?h:function(m,v){return v},function(m,v){if(r.length>0)for(var g=0;g<r.length;g++){var b=r[g];if(b[1]===m&&b[0]===v){v=b[2],r.splice(g,1);break}}return h.call(this,m,v)}}return p7}var h7,Coe;function joe(){if(Coe)return h7;Coe=1;var e={};const t=qlt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(b,y,k){return k.indexOf(b)===y}function n(b){return new Set(b).size!==b.length}function i(b){return new Set(b).size<=1}function o(b,y){function k(O,C){return t.stringify(O)===t.stringify(Object.assign({},O,C))}return k(b,y)&&k(y,b)}function s(b){let y=[];for(let k of b)y.find(function(O,C,w){return o(O,k)})||y.push(k);return y}function l(b){return b.length===s(b).length}function c(b){return b.find(function(y,k,O){return b.indexOf(y)<k})}function u(b){let y=0,k;if(b.length===0)return y;for(let O=0;O<b.length;O++)k=b.charCodeAt(O),y=(y<<5)-y+k,y|=0;return y}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(b,y){return y.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 v(b){b=b.replace("[]","Array");let y=b.split("/");return y[0]=y[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),y.join("/")}function g(b){return v(b.split("/").join("_"))}return h7={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:v,sanitiseAll:g},h7}var m7,Poe;function Qlt(){if(Poe)return m7;Poe=1;const e=vb,t=_J(),a=a7(),r=vb,n=vb,i=SC().jptr,o=u7().recurse,s=zC().clone,l=Glt().dereference,c=s7().isRef,u=joe();function d(A){return[...new Set(A)]}function h(A,R,L,H,_){return new Promise(function(G,N){e.readFile(A,R,function(Y,te){Y?L.ignoreIOErrors&&_?(L.verbose&&console.warn("FAILED",H),L.externalRefs[H].failed=!0,G(_)):N(Y):G(te)})})}function m(A,R,L,H,_,G){let N=G.externalRefs[L+H].paths[0],Y=a.parse(_),te={},se=1;for(;se;)se=0,o(A,{identityDetection:!0},function(X,ue,Z){if(c(X,ue)){if(X[ue].startsWith("#")){if(!te[X[ue]]&&!X.$fixed){let I=s(i(R,X[ue]));if(G.verbose>1&&console.warn((I===!1?u.colour.red:u.colour.green)+"Fragment resolution",X[ue],u.colour.normal),I===!1){if(Z.parent[Z.pkey]={},G.fatal){let W=new Error("Fragment $ref resolution failed "+X[ue]);if(G.promise)G.promise.reject(W);else throw W}}else se++,Z.parent[Z.pkey]=I,te[X[ue]]=Z.path.replace("/%24ref","")}else if(!X.$fixed){let I=(N+"/"+te[X[ue]]).split("/#/").join("/");Z.parent[Z.pkey]={$ref:I,"x-miro":X[ue],$fixed:!0},G.verbose>1&&console.warn("Replacing with",I),se++}}else if(Y.protocol){let I=a.resolve(_,X[ue]).toString();G.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",X[ue],"as",I,u.colour.normal),X["x-miro"]=X[ue],G.externalRefs[X[ue]]&&(G.externalRefs[I]||(G.externalRefs[I]=G.externalRefs[X[ue]]),G.externalRefs[I].failed=G.externalRefs[X[ue]].failed),X[ue]=I}else if(!X["x-miro"]){let I=a.resolve(_,X[ue]).toString(),W=!1;G.externalRefs[X[ue]]&&(W=G.externalRefs[X[ue]].failed),W||(G.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",X[ue],"as",I,u.colour.normal),X["x-miro"]=X[ue],X[ue]=I)}}});return o(A,{},function(X,ue,Z){c(X,ue)&&typeof X.$fixed<"u"&&delete X.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),A}function v(A,R){if(!R.filters||!R.filters.length)return A;for(let L of R.filters)A=L(A,R);return A}function g(A,R){return A&&A.length>2?A:R&&R.length>2?R:"file:"}function b(A,R,L,H){var _=a.parse(L.source),G=L.source.split("\\").join("/").split("/");G.pop()||G.pop();let N="",Y=R.split("#");Y.length>1&&(N="#"+Y[1],R=Y[0]),G=G.join("/");let te=a.parse(R),se=g(te.protocol,_.protocol),X;if(se==="file:"?X=t.resolve(G?G+"/":"",R):X=a.resolve(G?G+"/":"",R),L.cache[X]){L.verbose&&console.warn("CACHED",X,N);let ue=s(L.cache[X]),Z=L.externalRef=ue;if(N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let I=new Error("Cached $ref resolution failed "+X+N);if(L.promise)L.promise.reject(I);else throw I}return Z=m(Z,ue,R,N,X,L),Z=v(Z,L),H(s(Z),X,L),Promise.resolve(Z)}if(L.verbose&&console.warn("GET",X,N),L.handlers&&L.handlers[se])return L.handlers[se](G,R,N,L).then(function(ue){return L.externalRef=ue,ue=v(ue,L),L.cache[X]=ue,H(ue,X,L),ue}).catch(function(ue){throw L.verbose&&console.warn(ue),ue});if(se&&se.startsWith("http")){const ue=Object.assign({},L.fetchOptions,{agent:L.agent});return L.fetch(X,ue).then(function(Z){if(Z.status!==200){if(L.ignoreIOErrors)return L.verbose&&console.warn("FAILED",R),L.externalRefs[R].failed=!0,'{"$ref":"'+R+'"}';throw new Error(`Received status code ${Z.status}: ${X}`)}return Z.text()}).then(function(Z){try{let I=n.parse(Z,{schema:"core",prettyErrors:!0});if(Z=L.externalRef=I,L.cache[X]=s(Z),N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let W=new Error("Remote $ref resolution failed "+X+N);if(L.promise)L.promise.reject(W);else throw W}Z=m(Z,I,R,N,X,L),Z=v(Z,L)}catch(I){if(L.verbose&&console.warn(I),L.promise&&L.fatal)L.promise.reject(I);else throw I}return H(Z,X,L),Z}).catch(function(Z){if(L.verbose&&console.warn(Z),L.cache[X]={},L.promise&&L.fatal)L.promise.reject(Z);else throw Z})}else{const ue='{"$ref":"'+R+'"}';return h(X,L.encoding||"utf8",L,R,ue).then(function(Z){try{let I=n.parse(Z,{schema:"core",prettyErrors:!0});if(Z=L.externalRef=I,L.cache[X]=s(Z),N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let W=new Error("File $ref resolution failed "+X+N);if(L.promise)L.promise.reject(W);else throw W}Z=m(Z,I,R,N,X,L),Z=v(Z,L)}catch(I){if(L.verbose&&console.warn(I),L.promise&&L.fatal)L.promise.reject(I);else throw I}return H(Z,X,L),Z}).catch(function(Z){if(L.verbose&&console.warn(Z),L.promise&&L.fatal)L.promise.reject(Z);else throw Z})}}function y(A){return new Promise(function(R,L){function H(G,N,Y){if(G[N]&&c(G[N],"$ref")){let te=G[N].$ref;if(!te.startsWith("#")){let se="";if(!_[te]){let X=Object.keys(_).find(function(ue,Z,I){return te.startsWith(ue+"/")});X&&(A.verbose&&console.warn("Found potential subschema at",X),se="/"+(te.split("#")[1]||"").replace(X.split("#")[1]||""),se=se.split("/undefined").join(""),te=X)}if(_[te]||(_[te]={resolved:!1,paths:[],extras:{},description:G[N].description}),_[te].resolved){if(!_[te].failed)if(A.rewriteRefs){let X=_[te].resolvedAt;A.verbose>1&&console.warn("Rewriting ref",te,X),G[N]["x-miro"]=te,G[N].$ref=X+se}else G[N]=s(_[te].data)}else _[te].paths.push(Y.path),_[te].extras[Y.path]=se}}}let _=A.externalRefs;if(A.resolver.depth>0&&A.source===A.resolver.base)return R(_);o(A.openapi.definitions,{identityDetection:!0,path:"#/definitions"},H),o(A.openapi.components,{identityDetection:!0,path:"#/components"},H),o(A.openapi,{identityDetection:!0},H),R(_)})}function k(A){return new Promise(function(R,L){y(A).then(function(_){for(let G in _)if(!_[G].resolved){let N=A.resolver.depth;N>0&&N++,A.resolver.actions[N].push(function(){return b(A.openapi,G,A,function(Y,te,se){if(!_[G].resolved){let Z={};Z.context=_[G],Z.$ref=G,Z.original=s(Y),Z.updated=Y,Z.source=te,se.externals.push(Z),_[G].resolved=!0}let X=Object.assign({},se,{source:"",resolver:{actions:se.resolver.actions,depth:se.resolver.actions.length-1,base:se.resolver.base}});se.patch&&_[G].description&&!Y.description&&typeof Y=="object"&&(Y.description=_[G].description),_[G].data=Y;let ue=d(_[G].paths);ue=ue.sort(function(Z,I){const W=Z.startsWith("#/components/")||Z.startsWith("#/definitions/"),q=I.startsWith("#/components/")||I.startsWith("#/definitions/");return W&&!q?-1:q&&!W?1:0});for(let Z of ue)if(_[G].resolvedAt&&Z!==_[G].resolvedAt&&Z.indexOf("x-ms-examples/")<0)se.verbose>1&&console.warn("Creating pointer to data at",Z),i(se.openapi,Z,{$ref:_[G].resolvedAt+_[G].extras[Z],"x-miro":G+_[G].extras[Z]});else{_[G].resolvedAt?se.verbose>1&&console.warn("Avoiding circular reference"):(_[G].resolvedAt=Z,se.verbose>1&&console.warn("Creating initial clone of data at",Z));let I=s(Y);i(se.openapi,Z,I)}se.resolver.actions[X.resolver.depth].length===0&&se.resolver.actions[X.resolver.depth].push(function(){return k(X)})})})}}).catch(function(_){A.verbose&&console.warn(_),L(_)});let H={options:A};H.actions=A.resolver.actions[A.resolver.depth],R(H)})}const O=A=>A.reduce((R,L)=>R.then(H=>L().then(Array.prototype.concat.bind(H))),Promise.resolve([]));function C(A,R,L){A.resolver.actions.push([]),k(A).then(function(H){O(H.actions).then(function(){if(A.resolver.depth>=A.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),R(!0);A.resolver.depth++,A.resolver.actions[A.resolver.depth].length?setTimeout(function(){C(H.options,R,L)},0):(A.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),A.resolveInternal&&(A.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),A.openapi=l(A.openapi,A.original,{verbose:A.verbose-1}),A.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(A.openapi,{},function(_,G,N){c(_,G)&&(A.preserveMiro||delete _["x-miro"])}),R(A))}).catch(function(_){A.verbose&&console.warn(_),L(_)})}).catch(function(H){A.verbose&&console.warn(H),L(H)})}function w(A){if(A.cache||(A.cache={}),A.fetch||(A.fetch=r),A.source){let R=a.parse(A.source);(!R.protocol||R.protocol.length<=2)&&(A.source=t.resolve(A.source))}A.externals=[],A.externalRefs={},A.rewriteRefs=!0,A.resolver={},A.resolver.depth=0,A.resolver.base=A.source,A.resolver.actions=[[]]}function S(A){return w(A),new Promise(function(R,L){A.resolve?C(A,R,L):R(A)})}function j(A,R,L){return L||(L={}),L.openapi=A,L.source=R,L.resolve=!0,w(L),new Promise(function(H,_){C(L,H,_)})}return m7={optionalResolve:S,resolve:j},m7}var f7,Aoe;function Ult(){if(Aoe)return f7;Aoe=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 f7={getDefaultState:e,walkSchema:t},f7}var Toe={},g7={exports:{}},Moe={},Eoe;function Boe(){return Eoe||(Eoe=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})(Moe)),Moe}var CC={},v7={exports:{}},jC={exports:{}},Roe;function Wlt(){if(Roe)return jC.exports;Roe=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,w,S){return Function.prototype.apply.call(C,w,S)},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)}jC.exports=i,jC.exports.once=y,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=[],S=1;S<arguments.length;S++)w.push(arguments[S]);var j=C==="error",A=this._events;if(A!==void 0)j=j&&A.error===void 0;else if(!j)return!1;if(j){var R;if(w.length>0&&(R=w[0]),R instanceof Error)throw R;var L=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw L.context=R,L}var H=A[C];if(H===void 0)return!1;if(typeof H=="function")t(H,this,w);else for(var _=H.length,G=v(H,_),S=0;S<_;++S)t(G[S],this,w);return!0};function c(C,w,S,j){var A,R,L;if(s(S),R=C._events,R===void 0?(R=C._events=Object.create(null),C._eventsCount=0):(R.newListener!==void 0&&(C.emit("newListener",w,S.listener?S.listener:S),R=C._events),L=R[w]),L===void 0)L=R[w]=S,++C._eventsCount;else if(typeof L=="function"?L=R[w]=j?[S,L]:[L,S]:j?L.unshift(S):L.push(S),A=l(C),A>0&&L.length>A&&!L.warned){L.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=C,H.type=w,H.count=L.length,r(H)}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,S){var j={fired:!1,wrapFn:void 0,target:C,type:w,listener:S},A=u.bind(j);return A.listener=S,j.wrapFn=A,A}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 S,j,A,R,L;if(s(w),j=this._events,j===void 0)return this;if(S=j[C],S===void 0)return this;if(S===w||S.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete j[C],j.removeListener&&this.emit("removeListener",C,S.listener||w));else if(typeof S!="function"){for(A=-1,R=S.length-1;R>=0;R--)if(S[R]===w||S[R].listener===w){L=S[R].listener,A=R;break}if(A<0)return this;A===0?S.shift():g(S,A),S.length===1&&(j[C]=S[0]),j.removeListener!==void 0&&this.emit("removeListener",C,L||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(C){var w,S,j;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[C]),this;if(arguments.length===0){var A=Object.keys(S),R;for(j=0;j<A.length;++j)R=A[j],R!=="removeListener"&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=S[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,S){var j=C._events;if(j===void 0)return[];var A=j[w];return A===void 0?[]:typeof A=="function"?S?[A.listener||A]:[A]:S?b(A):v(A,A.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 S=w[C];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function v(C,w){for(var S=new Array(w),j=0;j<w;++j)S[j]=C[j];return S}function g(C,w){for(;w+1<C.length;w++)C[w]=C[w+1];C.pop()}function b(C){for(var w=new Array(C.length),S=0;S<w.length;++S)w[S]=C[S].listener||C[S];return w}function y(C,w){return new Promise(function(S,j){function A(L){C.removeListener(w,R),j(L)}function R(){typeof C.removeListener=="function"&&C.removeListener("error",A),S([].slice.call(arguments))}O(C,w,R,{once:!0}),w!=="error"&&k(C,A,{once:!0})})}function k(C,w,S){typeof C.on=="function"&&O(C,"error",w,S)}function O(C,w,S,j){if(typeof C.on=="function")j.once?C.once(w,S):C.on(w,S);else if(typeof C.addEventListener=="function")C.addEventListener(w,function A(R){j.once&&C.removeEventListener(w,A),S(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return jC.exports}var _oe,Loe;function Doe(){return Loe||(Loe=1,_oe=Wlt().EventEmitter),_oe}var Noe={},F0={},$oe;function Zlt(){if($oe)return F0;$oe=1,F0.byteLength=s,F0.toByteArray=c,F0.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 v=m.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=m.indexOf("=");g===-1&&(g=v);var b=g===v?0:4-g%4;return[g,b]}function s(m){var v=o(m),g=v[0],b=v[1];return(g+b)*3/4-b}function l(m,v,g){return(v+g)*3/4-g}function c(m){var v,g=o(m),b=g[0],y=g[1],k=new a(l(m,b,y)),O=0,C=y>0?b-4:b,w;for(w=0;w<C;w+=4)v=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],k[O++]=v>>16&255,k[O++]=v>>8&255,k[O++]=v&255;return y===2&&(v=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,k[O++]=v&255),y===1&&(v=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,k[O++]=v>>8&255,k[O++]=v&255),k}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,v,g){for(var b,y=[],k=v;k<g;k+=3)b=(m[k]<<16&16711680)+(m[k+1]<<8&65280)+(m[k+2]&255),y.push(u(b));return y.join("")}function h(m){for(var v,g=m.length,b=g%3,y=[],k=16383,O=0,C=g-b;O<C;O+=k)y.push(d(m,O,O+k>C?C:O+k));return b===1?(v=m[g-1],y.push(e[v>>2]+e[v<<4&63]+"==")):b===2&&(v=(m[g-2]<<8)+m[g-1],y.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),y.join("")}return F0}var b7={},Ioe;function Jlt(){return Ioe||(Ioe=1,b7.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)},b7.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,v=r?1:-1,g=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+=v,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=v,o/=256,c-=8);e[a+m-v]|=g*128}),b7}var Voe;function G0(){return Voe||(Voe=1,(function(e){const t=Zlt(),a=Jlt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=k,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 E=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(E,ee),E.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(E){if(E>n)throw new RangeError('The value "'+E+'" is invalid for option "size"');const ee=new Uint8Array(E);return Object.setPrototypeOf(ee,s.prototype),ee}function s(E,ee,ce){if(typeof E=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(E)}return l(E,ee,ce)}s.poolSize=8192;function l(E,ee,ce){if(typeof E=="string")return h(E,ee);if(ArrayBuffer.isView(E))return v(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ge(E,ArrayBuffer)||E&&ge(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ge(E,SharedArrayBuffer)||E&&ge(E.buffer,SharedArrayBuffer)))return g(E,ee,ce);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Se=E.valueOf&&E.valueOf();if(Se!=null&&Se!==E)return s.from(Se,ee,ce);const Te=b(E);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return s.from(E[Symbol.toPrimitive]("string"),ee,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}s.from=function(E,ee,ce){return l(E,ee,ce)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function u(E,ee,ce){return c(E),E<=0?o(E):ee!==void 0?typeof ce=="string"?o(E).fill(ee,ce):o(E).fill(ee):o(E)}s.alloc=function(E,ee,ce){return u(E,ee,ce)};function d(E){return c(E),o(E<0?0:y(E)|0)}s.allocUnsafe=function(E){return d(E)},s.allocUnsafeSlow=function(E){return d(E)};function h(E,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const ce=O(E,ee)|0;let Se=o(ce);const Te=Se.write(E,ee);return Te!==ce&&(Se=Se.slice(0,Te)),Se}function m(E){const ee=E.length<0?0:y(E.length)|0,ce=o(ee);for(let Se=0;Se<ee;Se+=1)ce[Se]=E[Se]&255;return ce}function v(E){if(ge(E,Uint8Array)){const ee=new Uint8Array(E);return g(ee.buffer,ee.byteOffset,ee.byteLength)}return m(E)}function g(E,ee,ce){if(ee<0||E.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<ee+(ce||0))throw new RangeError('"length" is outside of buffer bounds');let Se;return ee===void 0&&ce===void 0?Se=new Uint8Array(E):ce===void 0?Se=new Uint8Array(E,ee):Se=new Uint8Array(E,ee,ce),Object.setPrototypeOf(Se,s.prototype),Se}function b(E){if(s.isBuffer(E)){const ee=y(E.length)|0,ce=o(ee);return ce.length===0||E.copy(ce,0,0,ee),ce}if(E.length!==void 0)return typeof E.length!="number"||je(E.length)?o(0):m(E);if(E.type==="Buffer"&&Array.isArray(E.data))return m(E.data)}function y(E){if(E>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return E|0}function k(E){return+E!=E&&(E=0),s.alloc(+E)}s.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==s.prototype},s.compare=function(E,ee){if(ge(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),ge(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),!s.isBuffer(E)||!s.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===ee)return 0;let ce=E.length,Se=ee.length;for(let Te=0,Ee=Math.min(ce,Se);Te<Ee;++Te)if(E[Te]!==ee[Te]){ce=E[Te],Se=ee[Te];break}return ce<Se?-1:Se<ce?1:0},s.isEncoding=function(E){switch(String(E).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(E,ee){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return s.alloc(0);let ce;if(ee===void 0)for(ee=0,ce=0;ce<E.length;++ce)ee+=E[ce].length;const Se=s.allocUnsafe(ee);let Te=0;for(ce=0;ce<E.length;++ce){let Ee=E[ce];if(ge(Ee,Uint8Array))Te+Ee.length>Se.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(Se,Te)):Uint8Array.prototype.set.call(Se,Ee,Te);else if(s.isBuffer(Ee))Ee.copy(Se,Te);else throw new TypeError('"list" argument must be an Array of Buffers');Te+=Ee.length}return Se};function O(E,ee){if(s.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||ge(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const ce=E.length,Se=arguments.length>2&&arguments[2]===!0;if(!Se&&ce===0)return 0;let Te=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return J(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce*2;case"hex":return ce>>>1;case"base64":return ve(E).length;default:if(Te)return Se?-1:J(E).length;ee=(""+ee).toLowerCase(),Te=!0}}s.byteLength=O;function C(E,ee,ce){let Se=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0,ee>>>=0,ce<=ee))return"";for(E||(E="utf8");;)switch(E){case"hex":return ue(this,ee,ce);case"utf8":case"utf-8":return N(this,ee,ce);case"ascii":return se(this,ee,ce);case"latin1":case"binary":return X(this,ee,ce);case"base64":return G(this,ee,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,ee,ce);default:if(Se)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),Se=!0}}s.prototype._isBuffer=!0;function w(E,ee,ce){const Se=E[ee];E[ee]=E[ce],E[ce]=Se}s.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<E;ee+=2)w(this,ee,ee+1);return this},s.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<E;ee+=4)w(this,ee,ee+3),w(this,ee+1,ee+2);return this},s.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<E;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 E=this.length;return E===0?"":arguments.length===0?N(this,0,E):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(E){if(!s.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:s.compare(this,E)===0},s.prototype.inspect=function(){let E="";const ee=e.INSPECT_MAX_BYTES;return E=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(E+=" ... "),"<Buffer "+E+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(E,ee,ce,Se,Te){if(ge(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(ee===void 0&&(ee=0),ce===void 0&&(ce=E?E.length:0),Se===void 0&&(Se=0),Te===void 0&&(Te=this.length),ee<0||ce>E.length||Se<0||Te>this.length)throw new RangeError("out of range index");if(Se>=Te&&ee>=ce)return 0;if(Se>=Te)return-1;if(ee>=ce)return 1;if(ee>>>=0,ce>>>=0,Se>>>=0,Te>>>=0,this===E)return 0;let Ee=Te-Se,Ne=ce-ee;const nt=Math.min(Ee,Ne),rt=this.slice(Se,Te),pt=E.slice(ee,ce);for(let lt=0;lt<nt;++lt)if(rt[lt]!==pt[lt]){Ee=rt[lt],Ne=pt[lt];break}return Ee<Ne?-1:Ne<Ee?1:0};function S(E,ee,ce,Se,Te){if(E.length===0)return-1;if(typeof ce=="string"?(Se=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,je(ce)&&(ce=Te?0:E.length-1),ce<0&&(ce=E.length+ce),ce>=E.length){if(Te)return-1;ce=E.length-1}else if(ce<0)if(Te)ce=0;else return-1;if(typeof ee=="string"&&(ee=s.from(ee,Se)),s.isBuffer(ee))return ee.length===0?-1:j(E,ee,ce,Se,Te);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(E,ee,ce):Uint8Array.prototype.lastIndexOf.call(E,ee,ce):j(E,[ee],ce,Se,Te);throw new TypeError("val must be string, number or Buffer")}function j(E,ee,ce,Se,Te){let Ee=1,Ne=E.length,nt=ee.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(E.length<2||ee.length<2)return-1;Ee=2,Ne/=2,nt/=2,ce/=2}function rt(lt,Ct){return Ee===1?lt[Ct]:lt.readUInt16BE(Ct*Ee)}let pt;if(Te){let lt=-1;for(pt=ce;pt<Ne;pt++)if(rt(E,pt)===rt(ee,lt===-1?0:pt-lt)){if(lt===-1&&(lt=pt),pt-lt+1===nt)return lt*Ee}else lt!==-1&&(pt-=pt-lt),lt=-1}else for(ce+nt>Ne&&(ce=Ne-nt),pt=ce;pt>=0;pt--){let lt=!0;for(let Ct=0;Ct<nt;Ct++)if(rt(E,pt+Ct)!==rt(ee,Ct)){lt=!1;break}if(lt)return pt}return-1}s.prototype.includes=function(E,ee,ce){return this.indexOf(E,ee,ce)!==-1},s.prototype.indexOf=function(E,ee,ce){return S(this,E,ee,ce,!0)},s.prototype.lastIndexOf=function(E,ee,ce){return S(this,E,ee,ce,!1)};function A(E,ee,ce,Se){ce=Number(ce)||0;const Te=E.length-ce;Se?(Se=Number(Se),Se>Te&&(Se=Te)):Se=Te;const Ee=ee.length;Se>Ee/2&&(Se=Ee/2);let Ne;for(Ne=0;Ne<Se;++Ne){const nt=parseInt(ee.substr(Ne*2,2),16);if(je(nt))return Ne;E[ce+Ne]=nt}return Ne}function R(E,ee,ce,Se){return me(J(ee,E.length-ce),E,ce,Se)}function L(E,ee,ce,Se){return me(ae(ee),E,ce,Se)}function H(E,ee,ce,Se){return me(ve(ee),E,ce,Se)}function _(E,ee,ce,Se){return me(ne(ee,E.length-ce),E,ce,Se)}s.prototype.write=function(E,ee,ce,Se){if(ee===void 0)Se="utf8",ce=this.length,ee=0;else if(ce===void 0&&typeof ee=="string")Se=ee,ce=this.length,ee=0;else if(isFinite(ee))ee=ee>>>0,isFinite(ce)?(ce=ce>>>0,Se===void 0&&(Se="utf8")):(Se=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Te=this.length-ee;if((ce===void 0||ce>Te)&&(ce=Te),E.length>0&&(ce<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");Se||(Se="utf8");let Ee=!1;for(;;)switch(Se){case"hex":return A(this,E,ee,ce);case"utf8":case"utf-8":return R(this,E,ee,ce);case"ascii":case"latin1":case"binary":return L(this,E,ee,ce);case"base64":return H(this,E,ee,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,E,ee,ce);default:if(Ee)throw new TypeError("Unknown encoding: "+Se);Se=(""+Se).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(E,ee,ce){return ee===0&&ce===E.length?t.fromByteArray(E):t.fromByteArray(E.slice(ee,ce))}function N(E,ee,ce){ce=Math.min(E.length,ce);const Se=[];let Te=ee;for(;Te<ce;){const Ee=E[Te];let Ne=null,nt=Ee>239?4:Ee>223?3:Ee>191?2:1;if(Te+nt<=ce){let rt,pt,lt,Ct;switch(nt){case 1:Ee<128&&(Ne=Ee);break;case 2:rt=E[Te+1],(rt&192)===128&&(Ct=(Ee&31)<<6|rt&63,Ct>127&&(Ne=Ct));break;case 3:rt=E[Te+1],pt=E[Te+2],(rt&192)===128&&(pt&192)===128&&(Ct=(Ee&15)<<12|(rt&63)<<6|pt&63,Ct>2047&&(Ct<55296||Ct>57343)&&(Ne=Ct));break;case 4:rt=E[Te+1],pt=E[Te+2],lt=E[Te+3],(rt&192)===128&&(pt&192)===128&&(lt&192)===128&&(Ct=(Ee&15)<<18|(rt&63)<<12|(pt&63)<<6|lt&63,Ct>65535&&Ct<1114112&&(Ne=Ct))}}Ne===null?(Ne=65533,nt=1):Ne>65535&&(Ne-=65536,Se.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),Se.push(Ne),Te+=nt}return te(Se)}const Y=4096;function te(E){const ee=E.length;if(ee<=Y)return String.fromCharCode.apply(String,E);let ce="",Se=0;for(;Se<ee;)ce+=String.fromCharCode.apply(String,E.slice(Se,Se+=Y));return ce}function se(E,ee,ce){let Se="";ce=Math.min(E.length,ce);for(let Te=ee;Te<ce;++Te)Se+=String.fromCharCode(E[Te]&127);return Se}function X(E,ee,ce){let Se="";ce=Math.min(E.length,ce);for(let Te=ee;Te<ce;++Te)Se+=String.fromCharCode(E[Te]);return Se}function ue(E,ee,ce){const Se=E.length;(!ee||ee<0)&&(ee=0),(!ce||ce<0||ce>Se)&&(ce=Se);let Te="";for(let Ee=ee;Ee<ce;++Ee)Te+=Ce[E[Ee]];return Te}function Z(E,ee,ce){const Se=E.slice(ee,ce);let Te="";for(let Ee=0;Ee<Se.length-1;Ee+=2)Te+=String.fromCharCode(Se[Ee]+Se[Ee+1]*256);return Te}s.prototype.slice=function(E,ee){const ce=this.length;E=~~E,ee=ee===void 0?ce:~~ee,E<0?(E+=ce,E<0&&(E=0)):E>ce&&(E=ce),ee<0?(ee+=ce,ee<0&&(ee=0)):ee>ce&&(ee=ce),ee<E&&(ee=E);const Se=this.subarray(E,ee);return Object.setPrototypeOf(Se,s.prototype),Se};function I(E,ee,ce){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+ee>ce)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E],Te=1,Ee=0;for(;++Ee<ee&&(Te*=256);)Se+=this[E+Ee]*Te;return Se},s.prototype.readUintBE=s.prototype.readUIntBE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E+--ee],Te=1;for(;ee>0&&(Te*=256);)Se+=this[E+--ee]*Te;return Se},s.prototype.readUint8=s.prototype.readUInt8=function(E,ee){return E=E>>>0,ee||I(E,1,this.length),this[E]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(E,ee){return E=E>>>0,ee||I(E,2,this.length),this[E]|this[E+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(E,ee){return E=E>>>0,ee||I(E,2,this.length),this[E]<<8|this[E+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},s.prototype.readBigUInt64LE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=ee+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,Te=this[++E]+this[++E]*2**8+this[++E]*2**16+ce*2**24;return BigInt(Se)+(BigInt(Te)<<BigInt(32))}),s.prototype.readBigUInt64BE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=ee*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],Te=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+ce;return(BigInt(Se)<<BigInt(32))+BigInt(Te)}),s.prototype.readIntLE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E],Te=1,Ee=0;for(;++Ee<ee&&(Te*=256);)Se+=this[E+Ee]*Te;return Te*=128,Se>=Te&&(Se-=Math.pow(2,8*ee)),Se},s.prototype.readIntBE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=ee,Te=1,Ee=this[E+--Se];for(;Se>0&&(Te*=256);)Ee+=this[E+--Se]*Te;return Te*=128,Ee>=Te&&(Ee-=Math.pow(2,8*ee)),Ee},s.prototype.readInt8=function(E,ee){return E=E>>>0,ee||I(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},s.prototype.readInt16LE=function(E,ee){E=E>>>0,ee||I(E,2,this.length);const ce=this[E]|this[E+1]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt16BE=function(E,ee){E=E>>>0,ee||I(E,2,this.length);const ce=this[E+1]|this[E]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt32LE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},s.prototype.readInt32BE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},s.prototype.readBigInt64LE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(ce<<24);return(BigInt(Se)<<BigInt(32))+BigInt(ee+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),s.prototype.readBigInt64BE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=(ee<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(Se)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+ce)}),s.prototype.readFloatLE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),a.read(this,E,!0,23,4)},s.prototype.readFloatBE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),a.read(this,E,!1,23,4)},s.prototype.readDoubleLE=function(E,ee){return E=E>>>0,ee||I(E,8,this.length),a.read(this,E,!0,52,8)},s.prototype.readDoubleBE=function(E,ee){return E=E>>>0,ee||I(E,8,this.length),a.read(this,E,!1,52,8)};function W(E,ee,ce,Se,Te,Ee){if(!s.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Te||ee<Ee)throw new RangeError('"value" argument is out of bounds');if(ce+Se>E.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,ce=ce>>>0,!Se){const Ne=Math.pow(2,8*ce)-1;W(this,E,ee,ce,Ne,0)}let Te=1,Ee=0;for(this[ee]=E&255;++Ee<ce&&(Te*=256);)this[ee+Ee]=E/Te&255;return ee+ce},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,ce=ce>>>0,!Se){const Ne=Math.pow(2,8*ce)-1;W(this,E,ee,ce,Ne,0)}let Te=ce-1,Ee=1;for(this[ee+Te]=E&255;--Te>=0&&(Ee*=256);)this[ee+Te]=E/Ee&255;return ee+ce},s.prototype.writeUint8=s.prototype.writeUInt8=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,1,255,0),this[ee]=E&255,ee+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,65535,0),this[ee]=E&255,this[ee+1]=E>>>8,ee+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,65535,0),this[ee]=E>>>8,this[ee+1]=E&255,ee+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,4294967295,0),this[ee+3]=E>>>24,this[ee+2]=E>>>16,this[ee+1]=E>>>8,this[ee]=E&255,ee+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,4294967295,0),this[ee]=E>>>24,this[ee+1]=E>>>16,this[ee+2]=E>>>8,this[ee+3]=E&255,ee+4};function q(E,ee,ce,Se,Te){$(ee,Se,Te,E,ce,7);let Ee=Number(ee&BigInt(4294967295));E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,ce}function B(E,ee,ce,Se,Te){$(ee,Se,Te,E,ce,7);let Ee=Number(ee&BigInt(4294967295));E[ce+7]=Ee,Ee=Ee>>8,E[ce+6]=Ee,Ee=Ee>>8,E[ce+5]=Ee,Ee=Ee>>8,E[ce+4]=Ee;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return E[ce+3]=Ne,Ne=Ne>>8,E[ce+2]=Ne,Ne=Ne>>8,E[ce+1]=Ne,Ne=Ne>>8,E[ce]=Ne,ce+8}s.prototype.writeBigUInt64LE=Re(function(E,ee=0){return q(this,E,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Re(function(E,ee=0){return B(this,E,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,!Se){const nt=Math.pow(2,8*ce-1);W(this,E,ee,ce,nt-1,-nt)}let Te=0,Ee=1,Ne=0;for(this[ee]=E&255;++Te<ce&&(Ee*=256);)E<0&&Ne===0&&this[ee+Te-1]!==0&&(Ne=1),this[ee+Te]=(E/Ee>>0)-Ne&255;return ee+ce},s.prototype.writeIntBE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,!Se){const nt=Math.pow(2,8*ce-1);W(this,E,ee,ce,nt-1,-nt)}let Te=ce-1,Ee=1,Ne=0;for(this[ee+Te]=E&255;--Te>=0&&(Ee*=256);)E<0&&Ne===0&&this[ee+Te+1]!==0&&(Ne=1),this[ee+Te]=(E/Ee>>0)-Ne&255;return ee+ce},s.prototype.writeInt8=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,1,127,-128),E<0&&(E=255+E+1),this[ee]=E&255,ee+1},s.prototype.writeInt16LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,32767,-32768),this[ee]=E&255,this[ee+1]=E>>>8,ee+2},s.prototype.writeInt16BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,32767,-32768),this[ee]=E>>>8,this[ee+1]=E&255,ee+2},s.prototype.writeInt32LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,2147483647,-2147483648),this[ee]=E&255,this[ee+1]=E>>>8,this[ee+2]=E>>>16,this[ee+3]=E>>>24,ee+4},s.prototype.writeInt32BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[ee]=E>>>24,this[ee+1]=E>>>16,this[ee+2]=E>>>8,this[ee+3]=E&255,ee+4},s.prototype.writeBigInt64LE=Re(function(E,ee=0){return q(this,E,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Re(function(E,ee=0){return B(this,E,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(E,ee,ce,Se,Te,Ee){if(ce+Se>E.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function F(E,ee,ce,Se,Te){return ee=+ee,ce=ce>>>0,Te||D(E,ee,ce,4),a.write(E,ee,ce,Se,23,4),ce+4}s.prototype.writeFloatLE=function(E,ee,ce){return F(this,E,ee,!0,ce)},s.prototype.writeFloatBE=function(E,ee,ce){return F(this,E,ee,!1,ce)};function re(E,ee,ce,Se,Te){return ee=+ee,ce=ce>>>0,Te||D(E,ee,ce,8),a.write(E,ee,ce,Se,52,8),ce+8}s.prototype.writeDoubleLE=function(E,ee,ce){return re(this,E,ee,!0,ce)},s.prototype.writeDoubleBE=function(E,ee,ce){return re(this,E,ee,!1,ce)},s.prototype.copy=function(E,ee,ce,Se){if(!s.isBuffer(E))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!Se&&Se!==0&&(Se=this.length),ee>=E.length&&(ee=E.length),ee||(ee=0),Se>0&&Se<ce&&(Se=ce),Se===ce||E.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("sourceEnd out of bounds");Se>this.length&&(Se=this.length),E.length-ee<Se-ce&&(Se=E.length-ee+ce);const Te=Se-ce;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,ce,Se):Uint8Array.prototype.set.call(E,this.subarray(ce,Se),ee),Te},s.prototype.fill=function(E,ee,ce,Se){if(typeof E=="string"){if(typeof ee=="string"?(Se=ee,ee=0,ce=this.length):typeof ce=="string"&&(Se=ce,ce=this.length),Se!==void 0&&typeof Se!="string")throw new TypeError("encoding must be a string");if(typeof Se=="string"&&!s.isEncoding(Se))throw new TypeError("Unknown encoding: "+Se);if(E.length===1){const Ee=E.charCodeAt(0);(Se==="utf8"&&Ee<128||Se==="latin1")&&(E=Ee)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(ee<0||this.length<ee||this.length<ce)throw new RangeError("Out of range index");if(ce<=ee)return this;ee=ee>>>0,ce=ce===void 0?this.length:ce>>>0,E||(E=0);let Te;if(typeof E=="number")for(Te=ee;Te<ce;++Te)this[Te]=E;else{const Ee=s.isBuffer(E)?E:s.from(E,Se),Ne=Ee.length;if(Ne===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(Te=0;Te<ce-ee;++Te)this[Te+ee]=Ee[Te%Ne]}return this};const le={};function be(E,ee,ce){le[E]=class extends ce{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,delete this.name}get code(){return E}set code(Se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Se,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}be("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),be("ERR_INVALID_ARG_TYPE",function(E,ee){return`The "${E}" argument must be of type number. Received type ${typeof ee}`},TypeError),be("ERR_OUT_OF_RANGE",function(E,ee,ce){let Se=`The value of "${E}" is out of range.`,Te=ce;return Number.isInteger(ce)&&Math.abs(ce)>2**32?Te=ke(String(ce)):typeof ce=="bigint"&&(Te=String(ce),(ce>BigInt(2)**BigInt(32)||ce<-(BigInt(2)**BigInt(32)))&&(Te=ke(Te)),Te+="n"),Se+=` It must be ${ee}. Received ${Te}`,Se},RangeError);function ke(E){let ee="",ce=E.length;const Se=E[0]==="-"?1:0;for(;ce>=Se+4;ce-=3)ee=`_${E.slice(ce-3,ce)}${ee}`;return`${E.slice(0,ce)}${ee}`}function M(E,ee,ce){oe(ee,"offset"),(E[ee]===void 0||E[ee+ce]===void 0)&&Q(ee,E.length-(ce+1))}function $(E,ee,ce,Se,Te,Ee){if(E>ce||E<ee){const Ne=typeof ee=="bigint"?"n":"";let nt;throw ee===0||ee===BigInt(0)?nt=`>= 0${Ne} and < 2${Ne} ** ${(Ee+1)*8}${Ne}`:nt=`>= -(2${Ne} ** ${(Ee+1)*8-1}${Ne}) and < 2 ** ${(Ee+1)*8-1}${Ne}`,new le.ERR_OUT_OF_RANGE("value",nt,E)}M(Se,Te,Ee)}function oe(E,ee){if(typeof E!="number")throw new le.ERR_INVALID_ARG_TYPE(ee,"number",E)}function Q(E,ee,ce){throw Math.floor(E)!==E?(oe(E,ce),new le.ERR_OUT_OF_RANGE("offset","an integer",E)):ee<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ee}`,E)}const de=/[^+/0-9A-Za-z-_]/g;function pe(E){if(E=E.split("=")[0],E=E.trim().replace(de,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function J(E,ee){ee=ee||1/0;let ce;const Se=E.length;let Te=null;const Ee=[];for(let Ne=0;Ne<Se;++Ne){if(ce=E.charCodeAt(Ne),ce>55295&&ce<57344){if(!Te){if(ce>56319){(ee-=3)>-1&&Ee.push(239,191,189);continue}else if(Ne+1===Se){(ee-=3)>-1&&Ee.push(239,191,189);continue}Te=ce;continue}if(ce<56320){(ee-=3)>-1&&Ee.push(239,191,189),Te=ce;continue}ce=(Te-55296<<10|ce-56320)+65536}else Te&&(ee-=3)>-1&&Ee.push(239,191,189);if(Te=null,ce<128){if((ee-=1)<0)break;Ee.push(ce)}else if(ce<2048){if((ee-=2)<0)break;Ee.push(ce>>6|192,ce&63|128)}else if(ce<65536){if((ee-=3)<0)break;Ee.push(ce>>12|224,ce>>6&63|128,ce&63|128)}else if(ce<1114112){if((ee-=4)<0)break;Ee.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,ce&63|128)}else throw new Error("Invalid code point")}return Ee}function ae(E){const ee=[];for(let ce=0;ce<E.length;++ce)ee.push(E.charCodeAt(ce)&255);return ee}function ne(E,ee){let ce,Se,Te;const Ee=[];for(let Ne=0;Ne<E.length&&!((ee-=2)<0);++Ne)ce=E.charCodeAt(Ne),Se=ce>>8,Te=ce%256,Ee.push(Te),Ee.push(Se);return Ee}function ve(E){return t.toByteArray(pe(E))}function me(E,ee,ce,Se){let Te;for(Te=0;Te<Se&&!(Te+ce>=ee.length||Te>=E.length);++Te)ee[Te+ce]=E[Te];return Te}function ge(E,ee){return E instanceof ee||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===ee.name}function je(E){return E!==E}const Ce=(function(){const E="0123456789abcdef",ee=new Array(256);for(let ce=0;ce<16;++ce){const Se=ce*16;for(let Te=0;Te<16;++Te)ee[Se+Te]=E[ce]+E[Te]}return ee})();function Re(E){return typeof BigInt>"u"?tt:E}function tt(){throw new Error("BigInt not supported")}})(Noe)),Noe}const Hoe=AU(Mne);var y7,Koe;function Xlt(){if(Koe)return y7;Koe=1;function e(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(v);g&&(y=y.filter(function(k){return Object.getOwnPropertyDescriptor(v,k).enumerable})),b.push.apply(b,y)}return b}function t(v){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{};g%2?e(Object(b),!0).forEach(function(y){a(v,y,b[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(b)):e(Object(b)).forEach(function(y){Object.defineProperty(v,y,Object.getOwnPropertyDescriptor(b,y))})}return v}function a(v,g,b){return g=o(g),g in v?Object.defineProperty(v,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[g]=b,v}function r(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function n(v,g){for(var b=0;b<g.length;b++){var y=g[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,o(y.key),y)}}function i(v,g,b){return g&&n(v.prototype,g),Object.defineProperty(v,"prototype",{writable:!1}),v}function o(v){var g=s(v,"string");return typeof g=="symbol"?g:String(g)}function s(v,g){if(typeof v!="object"||v===null)return v;var b=v[Symbol.toPrimitive];if(b!==void 0){var y=b.call(v,g);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=G0(),c=l.Buffer,u=Hoe,d=u.inspect,h=d&&d.custom||"inspect";function m(v,g,b){c.prototype.copy.call(v,g,b)}return y7=(function(){function v(){r(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(g){var b={data:g,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(g){var b={data:g,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var b=this.head,y=""+b.data;b=b.next;)y+=g+b.data;return y}},{key:"concat",value:function(g){if(this.length===0)return c.alloc(0);for(var b=c.allocUnsafe(g>>>0),y=this.head,k=0;y;)m(y.data,b,k),k+=y.data.length,y=y.next;return b}},{key:"consume",value:function(g,b){var y;return g<this.head.data.length?(y=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?y=this.shift():y=b?this._getString(g):this._getBuffer(g),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var b=this.head,y=1,k=b.data;for(g-=k.length;b=b.next;){var O=b.data,C=g>O.length?O.length:g;if(C===O.length?k+=O:k+=O.slice(0,g),g-=C,g===0){C===O.length?(++y,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=O.slice(C));break}++y}return this.length-=y,k}},{key:"_getBuffer",value:function(g){var b=c.allocUnsafe(g),y=this.head,k=1;for(y.data.copy(b),g-=y.data.length;y=y.next;){var O=y.data,C=g>O.length?O.length:g;if(O.copy(b,b.length-g,0,C),g-=C,g===0){C===O.length?(++k,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=O.slice(C));break}++k}return this.length-=k,b}},{key:h,value:function(g,b){return d(this,t(t({},b),{},{depth:0,customInspect:!1}))}}]),v})(),y7}var k7,Foe;function Goe(){if(Foe)return k7;Foe=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 k7={destroy:e,undestroy:r,errorOrDestroy:i},k7}var x7={},qoe;function bb(){if(qoe)return x7;qoe=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,v){return typeof l=="string"?l:l(h,m,v)}var d=(function(h){e(m,h);function m(v,g,b){return h.call(this,u(v,g,b))||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"),x7.codes=t,x7}var w7,Qoe;function Uoe(){if(Qoe)return w7;Qoe=1;var e=bb().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 w7={getHighWaterMark:a},w7}var O7,Woe;function Ylt(){if(Woe)return O7;Woe=1,O7=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 O7}var S7,Zoe;function Joe(){if(Zoe)return S7;Zoe=1,S7=A;function e(F){var re=this;this.next=null,this.entry=null,this.finish=function(){D(re,F)}}var t;A.WritableState=S;var a={deprecate:Ylt()},r=Doe(),n=G0().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(F){return n.from(F)}function s(F){return n.isBuffer(F)||F instanceof i}var l=Goe(),c=Uoe(),u=c.getHighWaterMark,d=bb().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,O=d.ERR_UNKNOWN_ENCODING,C=l.errorOrDestroy;function w(){}function S(F,re,le){t=t||yb(),F=F||{},typeof le!="boolean"&&(le=re instanceof t),this.objectMode=!!F.objectMode,le&&(this.objectMode=this.objectMode||!!F.writableObjectMode),this.highWaterMark=u(this,F,"writableHighWaterMark",le),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=F.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=F.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){te(re,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}S.prototype.getBuffer=function(){for(var F=this.bufferedRequest,re=[];F;)re.push(F),F=F.next;return re},(function(){try{Object.defineProperty(S.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(A,Symbol.hasInstance,{value:function(F){return j.call(this,F)?!0:this!==A?!1:F&&F._writableState instanceof S}})):j=function(F){return F instanceof this};function A(F){t=t||yb();var re=this instanceof t;if(!re&&!j.call(A,this))return new A(F);this._writableState=new S(F,this,re),this.writable=!0,F&&(typeof F.write=="function"&&(this._write=F.write),typeof F.writev=="function"&&(this._writev=F.writev),typeof F.destroy=="function"&&(this._destroy=F.destroy),typeof F.final=="function"&&(this._final=F.final)),r.call(this)}A.prototype.pipe=function(){C(this,new g)};function R(F,re){var le=new k;C(F,le),process.nextTick(re,le)}function L(F,re,le,be){var ke;return le===null?ke=new y:typeof le!="string"&&!re.objectMode&&(ke=new h("chunk",["string","Buffer"],le)),ke?(C(F,ke),process.nextTick(be,ke),!1):!0}A.prototype.write=function(F,re,le){var be=this._writableState,ke=!1,M=!be.objectMode&&s(F);return M&&!n.isBuffer(F)&&(F=o(F)),typeof re=="function"&&(le=re,re=null),M?re="buffer":re||(re=be.defaultEncoding),typeof le!="function"&&(le=w),be.ending?R(this,le):(M||L(this,be,F,le))&&(be.pendingcb++,ke=_(this,be,M,F,re,le)),ke},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var F=this._writableState;F.corked&&(F.corked--,!F.writing&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&ue(this,F))},A.prototype.setDefaultEncoding=function(F){if(typeof F=="string"&&(F=F.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((F+"").toLowerCase())>-1))throw new O(F);return this._writableState.defaultEncoding=F,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function H(F,re,le){return!F.objectMode&&F.decodeStrings!==!1&&typeof re=="string"&&(re=n.from(re,le)),re}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _(F,re,le,be,ke,M){if(!le){var $=H(re,be,ke);be!==$&&(le=!0,ke="buffer",be=$)}var oe=re.objectMode?1:be.length;re.length+=oe;var Q=re.length<re.highWaterMark;if(Q||(re.needDrain=!0),re.writing||re.corked){var de=re.lastBufferedRequest;re.lastBufferedRequest={chunk:be,encoding:ke,isBuf:le,callback:M,next:null},de?de.next=re.lastBufferedRequest:re.bufferedRequest=re.lastBufferedRequest,re.bufferedRequestCount+=1}else G(F,re,!1,oe,be,ke,M);return Q}function G(F,re,le,be,ke,M,$){re.writelen=be,re.writecb=$,re.writing=!0,re.sync=!0,re.destroyed?re.onwrite(new b("write")):le?F._writev(ke,re.onwrite):F._write(ke,M,re.onwrite),re.sync=!1}function N(F,re,le,be,ke){--re.pendingcb,le?(process.nextTick(ke,be),process.nextTick(q,F,re),F._writableState.errorEmitted=!0,C(F,be)):(ke(be),F._writableState.errorEmitted=!0,C(F,be),q(F,re))}function Y(F){F.writing=!1,F.writecb=null,F.length-=F.writelen,F.writelen=0}function te(F,re){var le=F._writableState,be=le.sync,ke=le.writecb;if(typeof ke!="function")throw new v;if(Y(le),re)N(F,le,be,re,ke);else{var M=Z(le)||F.destroyed;!M&&!le.corked&&!le.bufferProcessing&&le.bufferedRequest&&ue(F,le),be?process.nextTick(se,F,le,M,ke):se(F,le,M,ke)}}function se(F,re,le,be){le||X(F,re),re.pendingcb--,be(),q(F,re)}function X(F,re){re.length===0&&re.needDrain&&(re.needDrain=!1,F.emit("drain"))}function ue(F,re){re.bufferProcessing=!0;var le=re.bufferedRequest;if(F._writev&&le&&le.next){var be=re.bufferedRequestCount,ke=new Array(be),M=re.corkedRequestsFree;M.entry=le;for(var $=0,oe=!0;le;)ke[$]=le,le.isBuf||(oe=!1),le=le.next,$+=1;ke.allBuffers=oe,G(F,re,!0,re.length,ke,"",M.finish),re.pendingcb++,re.lastBufferedRequest=null,M.next?(re.corkedRequestsFree=M.next,M.next=null):re.corkedRequestsFree=new e(re),re.bufferedRequestCount=0}else{for(;le;){var Q=le.chunk,de=le.encoding,pe=le.callback,J=re.objectMode?1:Q.length;if(G(F,re,!1,J,Q,de,pe),le=le.next,re.bufferedRequestCount--,re.writing)break}le===null&&(re.lastBufferedRequest=null)}re.bufferedRequest=le,re.bufferProcessing=!1}A.prototype._write=function(F,re,le){le(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(F,re,le){var be=this._writableState;return typeof F=="function"?(le=F,F=null,re=null):typeof re=="function"&&(le=re,re=null),F!=null&&this.write(F,re),be.corked&&(be.corked=1,this.uncork()),be.ending||B(this,be,le),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Z(F){return F.ending&&F.length===0&&F.bufferedRequest===null&&!F.finished&&!F.writing}function I(F,re){F._final(function(le){re.pendingcb--,le&&C(F,le),re.prefinished=!0,F.emit("prefinish"),q(F,re)})}function W(F,re){!re.prefinished&&!re.finalCalled&&(typeof F._final=="function"&&!re.destroyed?(re.pendingcb++,re.finalCalled=!0,process.nextTick(I,F,re)):(re.prefinished=!0,F.emit("prefinish")))}function q(F,re){var le=Z(re);if(le&&(W(F,re),re.pendingcb===0&&(re.finished=!0,F.emit("finish"),re.autoDestroy))){var be=F._readableState;(!be||be.autoDestroy&&be.endEmitted)&&F.destroy()}return le}function B(F,re,le){re.ending=!0,q(F,re),le&&(re.finished?process.nextTick(le):F.once("finish",le)),re.ended=!0,F.writable=!1}function D(F,re,le){var be=F.entry;for(F.entry=null;be;){var ke=be.callback;re.pendingcb--,ke(le),be=be.next}re.corkedRequestsFree.next=F}return Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(F){this._writableState&&(this._writableState.destroyed=F)}}),A.prototype.destroy=l.destroy,A.prototype._undestroy=l.undestroy,A.prototype._destroy=function(F,re){re(F)},S7}var z7,Xoe;function yb(){if(Xoe)return z7;Xoe=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};z7=o;for(var t=sse(),a=Joe(),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)}}),z7}var C7={},j7={exports:{}},Yoe;function ect(){return Yoe||(Yoe=1,(function(e,t){var a=G0(),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)}})(j7,j7.exports)),j7.exports}var ese;function tse(){if(ese)return C7;ese=1;var e=ect().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.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(y){if(!y)return"utf8";for(var k;;)switch(y){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 y;default:if(k)return;y=(""+y).toLowerCase(),k=!0}}function r(y){var k=a(y);if(typeof k!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return k||y}C7.StringDecoder=n;function n(y){this.encoding=r(y);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=h,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=m,this.end=v,k=3;break;default:this.write=g,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(y){if(y.length===0)return"";var k,O;if(this.lastNeed){if(k=this.fillLast(y),k===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<y.length?k?k+this.text(y,O):this.text(y,O):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function o(y,k,O){var C=k.length-1;if(C<O)return 0;var w=i(k[C]);return w>=0?(w>0&&(y.lastNeed=w-1),w):--C<O||w===-2?0:(w=i(k[C]),w>=0?(w>0&&(y.lastNeed=w-2),w):--C<O||w===-2?0:(w=i(k[C]),w>=0?(w>0&&(w===2?w=0:y.lastNeed=w-3),w):0))}function s(y,k,O){if((k[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}function l(y){var k=this.lastTotal-this.lastNeed,O=s(this,y);if(O!==void 0)return O;if(this.lastNeed<=y.length)return y.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,k,0,y.length),this.lastNeed-=y.length}function c(y,k){var O=o(this,y,k);if(!this.lastNeed)return y.toString("utf8",k);this.lastTotal=O;var C=y.length-(O-this.lastNeed);return y.copy(this.lastChar,0,C),y.toString("utf8",k,C)}function u(y){var k=y&&y.length?this.write(y):"";return this.lastNeed?k+"\uFFFD":k}function d(y,k){if((y.length-k)%2===0){var O=y.toString("utf16le",k);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",k,y.length-1)}function h(y){var k=y&&y.length?this.write(y):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,O)}return k}function m(y,k){var O=(y.length-k)%3;return O===0?y.toString("base64",k):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",k,y.length-O))}function v(y){var k=y&&y.length?this.write(y):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function g(y){return y.toString(this.encoding)}function b(y){return y&&y.length?this.write(y):""}return C7}var P7,ase;function A7(){if(ase)return P7;ase=1;var e=bb().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,v=function(){l=!1,m=!0,c||s.call(i)},g=function(k){s.call(i,k)},b=function(){var k;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},y=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",b),i.req?y():i.on("request",y)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),o.error!==!1&&i.on("error",g),i.on("close",b),function(){i.removeListener("complete",h),i.removeListener("abort",b),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",g),i.removeListener("close",b)}}return P7=n,P7}var T7,rse;function tct(){if(rse)return T7;rse=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 S=w.call(O,C);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}var n=A7(),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 v(O){process.nextTick(m,O)}function g(O,C){return function(w,S){O.then(function(){if(C[l]){w(h(void 0,!0));return}C[u](w,S)},S)}}var b=Object.getPrototypeOf(function(){}),y=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(A,R){process.nextTick(function(){O[s]?R(O[s]):A(h(void 0,!0))})});var w=this[c],S;if(w)S=new Promise(g(w,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));S=new Promise(this[u])}return this[c]=S,S}},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(S){if(S){w(S);return}C(h(void 0,!0))})})}),e),b),k=function(O){var C,w=Object.create(y,(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(S,j){var A=w[d].read();A?(w[c]=null,w[i]=null,w[o]=null,S(h(A,!1))):(w[i]=S,w[o]=j)},writable:!0}),C));return w[c]=null,n(O,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=w[o];j!==null&&(w[c]=null,w[i]=null,w[o]=null,j(S)),w[s]=S;return}var A=w[i];A!==null&&(w[c]=null,w[i]=null,w[o]=null,A(h(void 0,!0))),w[l]=!0}),O.on("readable",v.bind(null,w)),w};return T7=k,T7}var nse,ise;function act(){return ise||(ise=1,nse=function(){throw new Error("Readable.from is not available in the browser")}),nse}var M7,ose;function sse(){if(ose)return M7;ose=1,M7=R;var e;R.ReadableState=A;var t=function(M,$){return M.listeners($).length},a=Doe(),r=G0().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(M){return r.from(M)}function o(M){return r.isBuffer(M)||M instanceof n}var s=Hoe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Xlt(),u=Goe(),d=Uoe(),h=d.getHighWaterMark,m=bb().codes,v=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,O,C,w=u.errorOrDestroy,S=["error","close","destroy","pause","resume"];function j(M,$,oe){if(typeof M.prependListener=="function")return M.prependListener($,oe);!M._events||!M._events[$]?M.on($,oe):Array.isArray(M._events[$])?M._events[$].unshift(oe):M._events[$]=[oe,M._events[$]]}function A(M,$,oe){e=e||yb(),M=M||{},typeof oe!="boolean"&&(oe=$ instanceof e),this.objectMode=!!M.objectMode,oe&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=h(this,M,"readableHighWaterMark",oe),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=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(k||(k=tse().StringDecoder),this.decoder=new k(M.encoding),this.encoding=M.encoding)}function R(M){if(e=e||yb(),!(this instanceof R))return new R(M);var $=this instanceof e;this._readableState=new A(M,this,$),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),a.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),R.prototype.destroy=u.destroy,R.prototype._undestroy=u.undestroy,R.prototype._destroy=function(M,$){$(M)},R.prototype.push=function(M,$){var oe=this._readableState,Q;return oe.objectMode?Q=!0:typeof M=="string"&&($=$||oe.defaultEncoding,$!==oe.encoding&&(M=r.from(M,$),$=""),Q=!0),L(this,M,$,!1,Q)},R.prototype.unshift=function(M){return L(this,M,null,!0,!1)};function L(M,$,oe,Q,de){l("readableAddChunk",$);var pe=M._readableState;if($===null)pe.reading=!1,te(M,pe);else{var J;if(de||(J=_(pe,$)),J)w(M,J);else if(pe.objectMode||$&&$.length>0)if(typeof $!="string"&&!pe.objectMode&&Object.getPrototypeOf($)!==r.prototype&&($=i($)),Q)pe.endEmitted?w(M,new y):H(M,pe,$,!0);else if(pe.ended)w(M,new g);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!oe?($=pe.decoder.write($),pe.objectMode||$.length!==0?H(M,pe,$,!1):ue(M,pe)):H(M,pe,$,!1)}else Q||(pe.reading=!1,ue(M,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function H(M,$,oe,Q){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,M.emit("data",oe)):($.length+=$.objectMode?1:oe.length,Q?$.buffer.unshift(oe):$.buffer.push(oe),$.needReadable&&se(M)),ue(M,$)}function _(M,$){var oe;return!o($)&&typeof $!="string"&&$!==void 0&&!M.objectMode&&(oe=new v("chunk",["string","Buffer","Uint8Array"],$)),oe}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(M){k||(k=tse().StringDecoder);var $=new k(M);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,Q="";oe!==null;)Q+=$.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var G=1073741824;function N(M){return M>=G?M=G:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function Y(M,$){return M<=0||$.length===0&&$.ended?0:$.objectMode?1:M!==M?$.flowing&&$.length?$.buffer.head.data.length:$.length:(M>$.highWaterMark&&($.highWaterMark=N(M)),M<=$.length?M:$.ended?$.length:($.needReadable=!0,0))}R.prototype.read=function(M){l("read",M),M=parseInt(M,10);var $=this._readableState,oe=M;if(M!==0&&($.emittedReadable=!1),M===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return l("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?le(this):se(this),null;if(M=Y(M,$),M===0&&$.ended)return $.length===0&&le(this),null;var Q=$.needReadable;l("need readable",Q),($.length===0||$.length-M<$.highWaterMark)&&(Q=!0,l("length less than watermark",Q)),$.ended||$.reading?(Q=!1,l("reading or ended",Q)):Q&&(l("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(M=Y(oe,$)));var de;return M>0?de=re(M,$):de=null,de===null?($.needReadable=$.length<=$.highWaterMark,M=0):($.length-=M,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),oe!==M&&$.ended&&le(this)),de!==null&&this.emit("data",de),de};function te(M,$){if(l("onEofChunk"),!$.ended){if($.decoder){var oe=$.decoder.end();oe&&oe.length&&($.buffer.push(oe),$.length+=$.objectMode?1:oe.length)}$.ended=!0,$.sync?se(M):($.needReadable=!1,$.emittedReadable||($.emittedReadable=!0,X(M)))}}function se(M){var $=M._readableState;l("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(l("emitReadable",$.flowing),$.emittedReadable=!0,process.nextTick(X,M))}function X(M){var $=M._readableState;l("emitReadable_",$.destroyed,$.length,$.ended),!$.destroyed&&($.length||$.ended)&&(M.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,F(M)}function ue(M,$){$.readingMore||($.readingMore=!0,process.nextTick(Z,M,$))}function Z(M,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var oe=$.length;if(l("maybeReadMore read 0"),M.read(0),oe===$.length)break}$.readingMore=!1}R.prototype._read=function(M){w(this,new b("_read()"))},R.prototype.pipe=function(M,$){var oe=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=M;break;case 1:Q.pipes=[Q.pipes,M];break;default:Q.pipes.push(M);break}Q.pipesCount+=1,l("pipe count=%d opts=%j",Q.pipesCount,$);var de=(!$||$.end!==!1)&&M!==null&&M!==process.stderr,pe=de?ae:tt;Q.endEmitted?process.nextTick(pe):oe.once("end",pe),M.on("unpipe",J);function J(E,ee){l("onunpipe"),E===oe&&ee&&ee.hasUnpiped===!1&&(ee.hasUnpiped=!0,me())}function ae(){l("onend"),M.end()}var ne=I(oe);M.on("drain",ne);var ve=!1;function me(){l("cleanup"),M.removeListener("close",Ce),M.removeListener("finish",Re),M.removeListener("drain",ne),M.removeListener("error",je),M.removeListener("unpipe",J),oe.removeListener("end",ae),oe.removeListener("end",tt),oe.removeListener("data",ge),ve=!0,Q.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&ne()}oe.on("data",ge);function ge(E){l("ondata");var ee=M.write(E);l("dest.write",ee),ee===!1&&((Q.pipesCount===1&&Q.pipes===M||Q.pipesCount>1&&ke(Q.pipes,M)!==-1)&&!ve&&(l("false write response, pause",Q.awaitDrain),Q.awaitDrain++),oe.pause())}function je(E){l("onerror",E),tt(),M.removeListener("error",je),t(M,"error")===0&&w(M,E)}j(M,"error",je);function Ce(){M.removeListener("finish",Re),tt()}M.once("close",Ce);function Re(){l("onfinish"),M.removeListener("close",Ce),tt()}M.once("finish",Re);function tt(){l("unpipe"),oe.unpipe(M)}return M.emit("pipe",oe),Q.flowing||(l("pipe resume"),oe.resume()),M};function I(M){return function(){var $=M._readableState;l("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(M,"data")&&($.flowing=!0,F(M))}}R.prototype.unpipe=function(M){var $=this._readableState,oe={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return M&&M!==$.pipes?this:(M||(M=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,M&&M.emit("unpipe",this,oe),this);if(!M){var Q=$.pipes,de=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var pe=0;pe<de;pe++)Q[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var J=ke($.pipes,M);return J===-1?this:($.pipes.splice(J,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),M.emit("unpipe",this,oe),this)},R.prototype.on=function(M,$){var oe=a.prototype.on.call(this,M,$),Q=this._readableState;return M==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):M==="readable"&&!Q.endEmitted&&!Q.readableListening&&(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,l("on readable",Q.length,Q.reading),Q.length?se(this):Q.reading||process.nextTick(q,this)),oe},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(M,$){var oe=a.prototype.removeListener.call(this,M,$);return M==="readable"&&process.nextTick(W,this),oe},R.prototype.removeAllListeners=function(M){var $=a.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(W,this),$};function W(M){var $=M._readableState;$.readableListening=M.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:M.listenerCount("data")>0&&M.resume()}function q(M){l("readable nexttick read 0"),M.read(0)}R.prototype.resume=function(){var M=this._readableState;return M.flowing||(l("resume"),M.flowing=!M.readableListening,B(this,M)),M.paused=!1,this};function B(M,$){$.resumeScheduled||($.resumeScheduled=!0,process.nextTick(D,M,$))}function D(M,$){l("resume",$.reading),$.reading||M.read(0),$.resumeScheduled=!1,M.emit("resume"),F(M),$.flowing&&!$.reading&&M.read(0)}R.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 F(M){var $=M._readableState;for(l("flow",$.flowing);$.flowing&&M.read()!==null;);}R.prototype.wrap=function(M){var $=this,oe=this._readableState,Q=!1;M.on("end",function(){if(l("wrapped end"),oe.decoder&&!oe.ended){var J=oe.decoder.end();J&&J.length&&$.push(J)}$.push(null)}),M.on("data",function(J){if(l("wrapped data"),oe.decoder&&(J=oe.decoder.write(J)),!(oe.objectMode&&J==null)&&!(!oe.objectMode&&(!J||!J.length))){var ae=$.push(J);ae||(Q=!0,M.pause())}});for(var de in M)this[de]===void 0&&typeof M[de]=="function"&&(this[de]=(function(J){return function(){return M[J].apply(M,arguments)}})(de));for(var pe=0;pe<S.length;pe++)M.on(S[pe],this.emit.bind(this,S[pe]));return this._read=function(J){l("wrapped _read",J),Q&&(Q=!1,M.resume())},this},typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=tct()),O(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(M){this._readableState&&(this._readableState.flowing=M)}}),R._fromList=re,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function re(M,$){if($.length===0)return null;var oe;return $.objectMode?oe=$.buffer.shift():!M||M>=$.length?($.decoder?oe=$.buffer.join(""):$.buffer.length===1?oe=$.buffer.first():oe=$.buffer.concat($.length),$.buffer.clear()):oe=$.buffer.consume(M,$.decoder),oe}function le(M){var $=M._readableState;l("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,process.nextTick(be,$,M))}function be(M,$){if(l("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,$.readable=!1,$.emit("end"),M.autoDestroy)){var oe=$._writableState;(!oe||oe.autoDestroy&&oe.finished)&&$.destroy()}}typeof Symbol=="function"&&(R.from=function(M,$){return C===void 0&&(C=act()),C(R,M,$)});function ke(M,$){for(var oe=0,Q=M.length;oe<Q;oe++)if(M[oe]===$)return oe;return-1}return M7}var E7,lse;function cse(){if(lse)return E7;lse=1,E7=s;var e=bb().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=yb();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 v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.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 v=this._readableState;(m.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.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 E7}var B7,use;function rct(){if(use)return B7;use=1,B7=t;var e=cse();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)},B7}var R7,dse;function nct(){if(dse)return R7;dse=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=bb().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,v,g){g=t(g);var b=!1;h.on("close",function(){b=!0}),e===void 0&&(e=A7()),e(h,{readable:m,writable:v},function(k){if(k)return g(k);b=!0,g()});var y=!1;return function(k){if(!b&&!y){if(y=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();g(k||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),v=0;v<h;v++)m[v]=arguments[v];var g=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var b,y=m.map(function(k,O){var C=O<m.length-1,w=O>0;return s(k,C,w,function(S){b||(b=S),S&&y.forEach(l),!C&&(y.forEach(l),g(b))})});return m.reduce(c)}return R7=d,R7}var pse;function hse(){return pse||(pse=1,(function(e,t){t=e.exports=sse(),t.Stream=t,t.Readable=t,t.Writable=Joe(),t.Duplex=yb(),t.Transform=cse(),t.PassThrough=rct(),t.finished=A7(),t.pipeline=nct()})(v7,v7.exports)),v7.exports}var mse;function fse(){if(mse)return CC;mse=1;var e=Boe(),t=mB(),a=hse(),r=CC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=CC.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 g=function(){d.read().then(function(b){if(!c._destroyed){if(l(b.done),b.done){c.push(null);return}c.push(Buffer.from(b.value)),g()}}).catch(function(b){l(!0),c._destroyed||c.emit("error",b)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(b,y){c.headers[y.toLowerCase()]=b,c.rawHeaders.push(y,b)}),e.writableStream){var u=new WritableStream({write:function(b){return l(!1),new Promise(function(y,k){c._destroyed?k():c.push(Buffer.from(b))?y():c._resumeFetch=y})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(b){l(!0),c._destroyed||c.emit("error",b)}});try{o.body.pipeTo(u).catch(function(b){l(!0),c._destroyed||c.emit("error",b)});return}catch{}}var d=o.body.getReader();g()}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(g){var b=g.match(/^([^:]+):\s*(.*)/);if(b){var y=b[1].toLowerCase();y==="set-cookie"?(c.headers[y]===void 0&&(c.headers[y]=[]),c.headers[y].push(b[2])):c.headers[y]!==void 0?c.headers[y]+=", "+b[2]:c.headers[y]=b[2],c.rawHeaders.push(b[1],b[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var v=m.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[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))},CC}var gse;function ict(){if(gse)return g7.exports;gse=1;var e=Boe(),t=mB(),a=fse(),r=hse(),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=g7.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(v){d.setHeader(v,u.headers[v])});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 v=[];if(Object.keys(h).forEach(function(k){var O=h[k].name,C=h[k].value;Array.isArray(C)?C.forEach(function(w){v.push([O,w])}):v.push([O,C])}),u._mode==="fetch"){var g=null;if(e.abortController){var b=new AbortController;g=b.signal,u._fetchAbortController=b,"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:v,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:g}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var y=u._xhr=new globalThis.XMLHttpRequest;try{y.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in y&&(y.responseType=u._mode),"withCredentials"in y&&(y.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(y.timeout=d.requestTimeout,y.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(k){y.setRequestHeader(k[0],k[1])}),u._response=null,y.onreadystatechange=function(){switch(y.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(y.onprogress=function(){u._onXHRProgress()}),y.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{y.send(m)}catch(k){process.nextTick(function(){u.emit("error",k)});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 g7.exports}var _7,vse;function oct(){if(vse)return _7;vse=1,_7=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 _7}var bse,yse;function sct(){return yse||(yse=1,bse={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"}),bse}var kse;function lct(){return kse||(kse=1,(function(e){var t=ict(),a=fse(),r=oct(),n=sct(),i=a7(),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 v=new t(s);return l&&v.on("response",l),v},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"]})(Toe)),Toe}var xse,wse;function cct(){return wse||(wse=1,xse={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},lct().STATUS_CODES)}),xse}const uct="7.0.8",dct={version:uct};var L7,Ose;function pct(){if(Ose)return L7;Ose=1;const e=vb,t=a7(),a=Flt(),r=vb,n=vb,i=SC(),o=i.jptr,s=s7().isRef,l=zC().clone,c=zC().circularClone,u=u7().recurse,d=Qlt(),h=Ult(),m=joe(),v=cct().statusCodes,g=dct.version,b="3.0.0";let y;class k extends Error{constructor($){super($),this.name="S2OError"}}function O(M,$){let oe=new k(M);if(oe.options=$,$.promise)$.promise.reject(oe);else throw oe}function C(M,$,oe){oe.warnOnly?$[oe.warnProperty||"x-s2o-warning"]=M:O(M,oe)}function w(M,$,oe){if(M.nullable&&oe.patches++,M.discriminator&&typeof M.discriminator=="string"&&(M.discriminator={propertyName:M.discriminator}),M.items&&Array.isArray(M.items)&&(M.items.length===0?M.items={}:M.items.length===1?M.items=M.items[0]:M.items={anyOf:M.items}),M.type&&Array.isArray(M.type))if(oe.patch){if(oe.patches++,M.type.length===0)delete M.type;else{M.oneOf||(M.oneOf=[]);for(let Q of M.type){let de={};if(Q==="null")M.nullable=!0;else{de.type=Q;for(let pe of m.arrayProperties)typeof M.prop<"u"&&(de[pe]=M[pe],delete M[pe])}de.type&&M.oneOf.push(de)}delete M.type,M.oneOf.length===0?delete M.oneOf:M.oneOf.length<2&&(M.type=M.oneOf[0].type,Object.keys(M.oneOf[0]).length>1&&C("Lost properties from oneOf",M,oe),delete M.oneOf)}M.type&&Array.isArray(M.type)&&M.type.length===1&&(M.type=M.type[0])}else O("(Patchable) schema type must not be an array",oe);M.type&&M.type==="null"&&(delete M.type,M.nullable=!0),M.type==="array"&&!M.items&&(M.items={}),M.type==="file"&&(M.type="string",M.format="binary"),typeof M.required=="boolean"&&(M.required&&M.name&&(typeof $.required>"u"&&($.required=[]),Array.isArray($.required)&&$.required.push(M.name)),delete M.required),M.xml&&typeof M.xml.namespace=="string"&&(M.xml.namespace||delete M.xml.namespace),typeof M.allowEmptyValue<"u"&&(oe.patches++,delete M.allowEmptyValue)}function S(M,$){if(M["x-required"]&&Array.isArray(M["x-required"])&&(M.required||(M.required=[]),M.required=M.required.concat(M["x-required"]),delete M["x-required"]),M["x-anyOf"]&&(M.anyOf=M["x-anyOf"],delete M["x-anyOf"]),M["x-oneOf"]&&(M.oneOf=M["x-oneOf"],delete M["x-oneOf"]),M["x-not"]&&(M.not=M["x-not"],delete M["x-not"]),typeof M["x-nullable"]=="boolean"&&(M.nullable=M["x-nullable"],delete M["x-nullable"]),typeof M["x-discriminator"]=="object"&&typeof M["x-discriminator"].propertyName=="string"){M.discriminator=M["x-discriminator"],delete M["x-discriminator"];for(let oe in M.discriminator.mapping){let Q=M.discriminator.mapping[oe];Q.startsWith("#/definitions/")&&(M.discriminator.mapping[oe]=Q.replace("#/definitions/","#/components/schemas/"))}}}function j(M,$){h.walkSchema(M,{},{},function(oe,Q,de){S(oe),w(oe,Q,$)})}function A(M){return M.indexOf("#")>=0?M=M.split("#")[1].split("/").pop():M=M.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(M))}function R(M,$,oe){let Q=oe.payload.options;if(s(M,$)){if(!M[$].startsWith("#/components/")){if(M[$]==="#/consumes")delete M[$],oe.parent[oe.pkey]=l(Q.openapi.consumes);else if(M[$]==="#/produces")delete M[$],oe.parent[oe.pkey]=l(Q.openapi.produces);else if(M[$].startsWith("#/definitions/")){let de=M[$].replace("#/definitions/","").split("/");const pe=i.jpunescape(de[0]);let J=y.schemas[decodeURIComponent(pe)];J?de[0]=J:C("Could not resolve reference "+M[$],M,Q),M[$]="#/components/schemas/"+de.join("/")}else if(M[$].startsWith("#/parameters/"))M[$]="#/components/parameters/"+m.sanitise(M[$].replace("#/parameters/",""));else if(M[$].startsWith("#/responses/"))M[$]="#/components/responses/"+m.sanitise(M[$].replace("#/responses/",""));else if(M[$].startsWith("#")){let de=l(i.jptr(Q.openapi,M[$]));if(de===!1)C("direct $ref not found "+M[$],M,Q);else if(Q.refmap[M[$]])M[$]=Q.refmap[M[$]];else{let pe=M[$];pe=pe.replace("/properties/headers/",""),pe=pe.replace("/properties/responses/",""),pe=pe.replace("/properties/parameters/",""),pe=pe.replace("/properties/schemas/","");let J="schemas",ae=pe.lastIndexOf("/schema");if(J=pe.indexOf("/headers/")>ae?"headers":pe.indexOf("/responses/")>ae?"responses":pe.indexOf("/example")>ae?"examples":pe.indexOf("/x-")>ae?"extensions":pe.indexOf("/parameters/")>ae?"parameters":"schemas",J==="schemas"&&j(de,Q),J!=="responses"&&J!=="extensions"){let ne=J.substr(0,J.length-1);ne==="parameter"&&de.name&&de.name===m.sanitise(de.name)&&(ne=encodeURIComponent(de.name));let ve=1;for(M["x-miro"]&&(ne=A(M["x-miro"]),ve="");i.jptr(Q.openapi,"#/components/"+J+"/"+ne+ve);)ve=ve===""?2:++ve;let me="#/components/"+J+"/"+ne+ve,ge="";J==="examples"&&(de={value:de},ge="/value"),i.jptr(Q.openapi,me,de),Q.refmap[M[$]]=me+ge,M[$]=me+ge}}}}if(delete M["x-miro"],Object.keys(M).length>1){const de=M[$],pe=oe.path.indexOf("/schema")>=0;Q.refSiblings==="preserve"||(pe&&Q.refSiblings==="allOf"?(delete M.$ref,oe.parent[oe.pkey]={allOf:[{$ref:de},M]}):oe.parent[oe.pkey]={$ref:de})}}if($==="x-ms-odata"&&typeof M[$]=="string"&&M[$].startsWith("#/")){let de=M[$].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),pe=y.schemas[decodeURIComponent(de[0])];pe?de[0]=pe:C("Could not resolve reference "+M[$],M,Q),M[$]="#/components/schemas/"+de.join("/")}}function L(M,$){for(let oe in $.refmap)i.jptr(M,oe,{$ref:$.refmap[oe]})}function H(M){for(let $ in M)for(let oe in M[$]){let Q=m.sanitise(oe);oe!==Q&&(M[$][Q]=M[$][oe],delete M[$][oe])}}function _(M,$){if(M.type==="basic"&&(M.type="http",M.scheme="basic"),M.type==="oauth2"){let oe={},Q=M.flow;M.flow==="application"&&(Q="clientCredentials"),M.flow==="accessCode"&&(Q="authorizationCode"),typeof M.authorizationUrl<"u"&&(oe.authorizationUrl=M.authorizationUrl.split("?")[0].trim()||"/"),typeof M.tokenUrl=="string"&&(oe.tokenUrl=M.tokenUrl.split("?")[0].trim()||"/"),oe.scopes=M.scopes||{},M.flows={},M.flows[Q]=oe,delete M.flow,delete M.authorizationUrl,delete M.tokenUrl,delete M.scopes,typeof M.name<"u"&&($.patch?($.patches++,delete M.name):O("(Patchable) oauth2 securitySchemes should not have name property",$))}}function G(M){return M&&!M["x-s2o-delete"]}function N(M,$){if(M.$ref)M.$ref=M.$ref.replace("#/responses/","#/components/responses/");else{M.type&&!M.schema&&(M.schema={}),M.type&&(M.schema.type=M.type),M.items&&M.items.type!=="array"&&(M.items.collectionFormat!==M.collectionFormat&&C("Nested collectionFormats are not supported",M,$),delete M.items.collectionFormat),M.type==="array"?(M.collectionFormat==="ssv"?C("collectionFormat:ssv is no longer supported for headers",M,$):M.collectionFormat==="pipes"?C("collectionFormat:pipes is no longer supported for headers",M,$):M.collectionFormat==="multi"?M.explode=!0:M.collectionFormat==="tsv"?(C("collectionFormat:tsv is no longer supported",M,$),M["x-collectionFormat"]="tsv"):M.style="simple",delete M.collectionFormat):M.collectionFormat&&($.patch?($.patches++,delete M.collectionFormat):O("(Patchable) collectionFormat is only applicable to header.type array",$)),delete M.type;for(let oe of m.parameterTypeProperties)typeof M[oe]<"u"&&(M.schema[oe]=M[oe],delete M[oe]);for(let oe of m.arrayProperties)typeof M[oe]<"u"&&(M.schema[oe]=M[oe],delete M[oe])}}function Y(M,$){if(M.$ref.indexOf("#/parameters/")>=0){let oe=M.$ref.split("#/parameters/");M.$ref=oe[0]+"#/components/parameters/"+m.sanitise(oe[1])}M.$ref.indexOf("#/definitions/")>=0&&C("Definition used as parameter",M,$)}function te(M,$){let oe={};for(let Q of Object.keys(M))oe[Q]=M[Q],Q==="parameters"&&(oe.requestBody={},$.rbname&&(oe[$.rbname]=""));return oe.requestBody={},oe}function se(M,$,oe,Q,de,pe,J){let ae={},ne=!0,ve;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(pe.consumes)||delete pe.consumes;let me=(($?$.consumes:null)||pe.consumes||[]).filter(m.uniqueOnly);if(M&&M.$ref&&typeof M.$ref=="string"){Y(M,J);let ge=decodeURIComponent(M.$ref.replace("#/components/parameters/","")),je=!1,Ce=pe.components.parameters[ge];if((!Ce||Ce["x-s2o-delete"])&&M.$ref.startsWith("#/")&&(M["x-s2o-delete"]=!0,je=!0),je){let Re=M.$ref,tt=o(pe,M.$ref);!tt&&Re.startsWith("#/")?C("Could not resolve reference "+Re,M,J):tt&&(M=tt)}}if(M&&(M.name||M.in)){typeof M["x-deprecated"]=="boolean"&&(M.deprecated=M["x-deprecated"],delete M["x-deprecated"]),typeof M["x-example"]<"u"&&(M.example=M["x-example"],delete M["x-example"]),M.in!=="body"&&!M.type&&(J.patch?(J.patches++,M.type="string"):O("(Patchable) parameter.type is mandatory for non-body parameters",J)),M.type&&typeof M.type=="object"&&M.type.$ref&&(M.type=o(pe,M.type.$ref)),M.type==="file"&&(M["x-s2o-originalType"]=M.type,ve=M.type),M.description&&typeof M.description=="object"&&M.description.$ref&&(M.description=o(pe,M.description.$ref)),M.description===null&&delete M.description;let ge=M.collectionFormat;if(M.type==="array"&&!ge&&(ge="csv"),ge&&(M.type!=="array"&&(J.patch?(J.patches++,delete M.collectionFormat):O("(Patchable) collectionFormat is only applicable to param.type array",J)),ge==="csv"&&(M.in==="query"||M.in==="cookie")&&(M.style="form",M.explode=!1),ge==="csv"&&(M.in==="path"||M.in==="header")&&(M.style="simple"),ge==="ssv"&&(M.in==="query"?M.style="spaceDelimited":C("collectionFormat:ssv is no longer supported except for in:query parameters",M,J)),ge==="pipes"&&(M.in==="query"?M.style="pipeDelimited":C("collectionFormat:pipes is no longer supported except for in:query parameters",M,J)),ge==="multi"&&(M.explode=!0),ge==="tsv"&&(C("collectionFormat:tsv is no longer supported",M,J),M["x-collectionFormat"]="tsv"),delete M.collectionFormat),M.type&&M.type!=="body"&&M.in!=="formData")if(M.items&&M.schema)C("parameter has array,items and schema",M,J);else{M.schema&&J.patches++,(!M.schema||typeof M.schema!="object")&&(M.schema={}),M.schema.type=M.type,M.items&&(M.schema.items=M.items,delete M.items,u(M.schema.items,null,function(je,Ce,Re){Ce==="collectionFormat"&&typeof je[Ce]=="string"&&(ge&&je[Ce]!==ge&&C("Nested collectionFormats are not supported",M,J),delete je[Ce])}));for(let je of m.parameterTypeProperties)typeof M[je]<"u"&&(M.schema[je]=M[je]),delete M[je]}M.schema&&j(M.schema,J),M["x-ms-skip-url-encoding"]&&M.in==="query"&&(M.allowReserved=!0,delete M["x-ms-skip-url-encoding"])}if(M&&M.in==="formData"){ne=!1,ae.content={};let ge="application/x-www-form-urlencoded";if(me.length&&me.indexOf("multipart/form-data")>=0&&(ge="multipart/form-data"),ae.content[ge]={},M.schema)ae.content[ge].schema=M.schema,M.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")));else{ae.content[ge].schema={},ae.content[ge].schema.type="object",ae.content[ge].schema.properties={},ae.content[ge].schema.properties[M.name]={};let je=ae.content[ge].schema,Ce=ae.content[ge].schema.properties[M.name];M.description&&(Ce.description=M.description),M.example&&(Ce.example=M.example),M.type&&(Ce.type=M.type);for(let Re of m.parameterTypeProperties)typeof M[Re]<"u"&&(Ce[Re]=M[Re]);M.required===!0&&(je.required||(je.required=[]),je.required.push(M.name),ae.required=!0),typeof M.default<"u"&&(Ce.default=M.default),Ce.properties&&(Ce.properties=M.properties),M.allOf&&(Ce.allOf=M.allOf),M.type==="array"&&M.items&&(Ce.items=M.items,Ce.items.collectionFormat&&delete Ce.items.collectionFormat),(ve==="file"||M["x-s2o-originalType"]==="file")&&(Ce.type="string",Ce.format="binary"),X(M,Ce)}}else M&&M.type==="file"&&(M.required&&(ae.required=M.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",X(M,ae));if(M&&M.in==="body"){ae.content={},M.name&&(ae["x-s2o-name"]=($&&$.operationId?m.sanitiseAll($.operationId):"")+("_"+M.name).toCamelCase()),M.description&&(ae.description=M.description),M.required&&(ae.required=M.required),$&&J.rbname&&M.name&&($[J.rbname]=M.name),M.schema&&M.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")):M.schema&&M.schema.type==="array"&&M.schema.items&&M.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(M.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),me.length||me.push("application/json");for(let ge of me)ae.content[ge]={},ae.content[ge].schema=l(M.schema||{}),j(ae.content[ge].schema,J);X(M,ae)}if(Object.keys(ae).length>0&&(M["x-s2o-delete"]=!0,$))if($.requestBody&&ne){$.requestBody["x-s2o-overloaded"]=!0;let ge=$.operationId||de;C("Operation "+ge+" has multiple requestBodies",$,J)}else $.requestBody||($=oe[Q]=te($,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(M&&!M["x-s2o-delete"]){delete M.type;for(let ge of m.parameterTypeProperties)delete M[ge];M.in==="path"&&(typeof M.required>"u"||M.required!==!0)&&(J.patch?(J.patches++,M.required=!0):O("(Patchable) path parameters must be required:true ["+M.name+" in "+de+"]",J))}return $}function X(M,$){for(let oe in M)oe.startsWith("x-")&&!oe.startsWith("x-s2o")&&($[oe]=M[oe])}function ue(M,$,oe,Q,de){if(!M)return!1;if(M.$ref&&typeof M.$ref=="string")M.$ref.indexOf("#/definitions/")>=0?C("definition used as response: "+M.$ref,M,de):M.$ref.startsWith("#/responses/")&&(M.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.$ref.replace("#/responses/",""))));else{if((typeof M.description>"u"||M.description===null||M.description===""&&de.patch)&&(de.patch?typeof M=="object"&&!Array.isArray(M)&&(de.patches++,M.description=v[M]||""):O("(Patchable) response.description is mandatory",de)),typeof M.schema<"u"){if(j(M.schema,de),M.schema.$ref&&typeof M.schema.$ref=="string"&&M.schema.$ref.startsWith("#/responses/")&&(M.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.schema.$ref.replace("#/responses/","")))),oe&&oe.produces&&typeof oe.produces=="string")if(de.patch)de.patches++,oe.produces=[oe.produces];else return O("(Patchable) operation.produces must be an array",de);Q.produces&&!Array.isArray(Q.produces)&&delete Q.produces;let pe=((oe?oe.produces:null)||Q.produces||[]).filter(m.uniqueOnly);pe.length||pe.push("*/*"),M.content={};for(let J of pe){if(M.content[J]={},M.content[J].schema=l(M.schema),M.examples&&M.examples[J]){let ae={};ae.value=M.examples[J],M.content[J].examples={},M.content[J].examples.response=ae,delete M.examples[J]}M.content[J].schema.type==="file"&&(M.content[J].schema={type:"string",format:"binary"})}delete M.schema}for(let pe in M.examples)M.content||(M.content={}),M.content[pe]||(M.content[pe]={}),M.content[pe].examples={},M.content[pe].examples.response={},M.content[pe].examples.response.value=M.examples[pe];if(delete M.examples,M.headers)for(let pe in M.headers)pe.toLowerCase()==="status code"?de.patch?(de.patches++,delete M.headers[pe]):O('(Patchable) "Status Code" is not a valid header',de):N(M.headers[pe],de)}}function Z(M,$,oe,Q,de){for(let pe in M){let J=M[pe];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 ne=J[ae];if(ne&&ne.parameters&&Array.isArray(ne.parameters)){if(J.parameters)for(let ve of J.parameters)typeof ve.$ref=="string"&&(Y(ve,oe),ve=o(de,ve.$ref)),!ne.parameters.find(function(me,ge,je){return me.name===ve.name&&me.in===ve.in})&&(ve.in==="formData"||ve.in==="body"||ve.type==="file")&&(ne=se(ve,ne,J,ae,pe,de,oe),oe.rbname&&ne[oe.rbname]===""&&delete ne[oe.rbname]);for(let ve of ne.parameters)ne=se(ve,ne,J,ae,ae+":"+pe,de,oe);oe.rbname&&ne[oe.rbname]===""&&delete ne[oe.rbname],oe.debug||ne.parameters&&(ne.parameters=ne.parameters.filter(G))}if(ne&&ne.security&&H(ne.security),typeof ne=="object"){if(!ne.responses){let ve={};ve.description="Default response",ne.responses={default:ve}}for(let ve in ne.responses){let me=ne.responses[ve];ue(me,ve,ne,de,oe)}}if(ne&&ne["x-servers"]&&Array.isArray(ne["x-servers"]))ne.servers=ne["x-servers"],delete ne["x-servers"];else if(ne&&ne.schemes&&ne.schemes.length){for(let ve of ne.schemes)if((!de.schemes||de.schemes.indexOf(ve)<0)&&(ne.servers||(ne.servers=[]),Array.isArray(de.servers)))for(let me of de.servers){let ge=l(me),je=t.parse(ge.url);je.protocol=ve,ge.url=je.format(),ne.servers.push(ge)}}if(oe.debug&&(ne["x-s2o-consumes"]=ne.consumes||[],ne["x-s2o-produces"]=ne.produces||[]),ne){if(delete ne.consumes,delete ne.produces,delete ne.schemes,ne["x-ms-examples"]){for(let ve in ne["x-ms-examples"]){let me=ne["x-ms-examples"][ve],ge=m.sanitiseAll(ve);if(me.parameters)for(let je in me.parameters){let Ce=me.parameters[je];for(let Re of(ne.parameters||[]).concat(J.parameters||[]))Re.$ref&&(Re=i.jptr(de,Re.$ref)),Re.name===je&&!Re.example&&(Re.examples||(Re.examples={}),Re.examples[ve]={value:Ce})}if(me.responses)for(let je in me.responses){if(me.responses[je].headers)for(let Ce in me.responses[je].headers){let Re=me.responses[je].headers[Ce];for(let tt in ne.responses[je].headers)if(tt===Ce){let E=ne.responses[je].headers[tt];E.example=Re}}if(me.responses[je].body&&(de.components.examples[ge]={value:l(me.responses[je].body)},ne.responses[je]&&ne.responses[je].content))for(let Ce in ne.responses[je].content){let Re=ne.responses[je].content[Ce];Re.examples||(Re.examples={}),Re.examples[ve]={$ref:"#/components/examples/"+ge}}}}delete ne["x-ms-examples"]}if(ne.parameters&&ne.parameters.length===0&&delete ne.parameters,ne.requestBody){let ve=ne.operationId?m.sanitiseAll(ne.operationId):m.sanitiseAll(ae+pe).toCamelCase(),me=m.sanitise(ne.requestBody["x-s2o-name"]||ve||"");delete ne.requestBody["x-s2o-name"];let ge=JSON.stringify(ne.requestBody),je=m.hash(ge);if(!Q[je]){let Re={};Re.name=me,Re.body=ne.requestBody,Re.refs=[],Q[je]=Re}let Ce="#/"+$+"/"+encodeURIComponent(i.jpescape(pe))+"/"+ae+"/requestBody";Q[je].refs.push(Ce)}}}if(J&&J.parameters){for(let ae in J.parameters){let ne=J.parameters[ae];se(ne,null,J,null,pe,de,oe)}!oe.debug&&Array.isArray(J.parameters)&&(J.parameters=J.parameters.filter(G))}}}function I(M,$){let oe={};y={schemas:{}},M.security&&H(M.security);for(let de in M.components.securitySchemes){let pe=m.sanitise(de);de!==pe&&(M.components.securitySchemes[pe]&&O("Duplicate sanitised securityScheme name "+pe,$),M.components.securitySchemes[pe]=M.components.securitySchemes[de],delete M.components.securitySchemes[de]),_(M.components.securitySchemes[pe],$)}for(let de in M.components.schemas){let pe=m.sanitiseAll(de),J="";if(de!==pe){for(;M.components.schemas[pe+J];)J=J?++J:2;M.components.schemas[pe+J]=M.components.schemas[de],delete M.components.schemas[de]}y.schemas[de]=pe+J,j(M.components.schemas[pe+J],$)}$.refmap={},u(M,{payload:{options:$}},R),L(M,$);for(let de in M.components.parameters){let pe=m.sanitise(de);de!==pe&&(M.components.parameters[pe]&&O("Duplicate sanitised parameter name "+pe,$),M.components.parameters[pe]=M.components.parameters[de],delete M.components.parameters[de]);let J=M.components.parameters[pe];se(J,null,null,null,pe,M,$)}for(let de in M.components.responses){let pe=m.sanitise(de);de!==pe&&(M.components.responses[pe]&&O("Duplicate sanitised response name "+pe,$),M.components.responses[pe]=M.components.responses[de],delete M.components.responses[de]);let J=M.components.responses[pe];if(ue(J,pe,null,M,$),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 de in M.components.requestBodies){let pe=M.components.requestBodies[de],J=JSON.stringify(pe),ae=m.hash(J),ne={};ne.name=de,ne.body=pe,ne.refs=[],oe[ae]=ne}if(Z(M.paths,"paths",$,oe,M),M["x-ms-paths"]&&Z(M["x-ms-paths"],"x-ms-paths",$,oe,M),!$.debug)for(let de in M.components.parameters)M.components.parameters[de]["x-s2o-delete"]&&delete M.components.parameters[de];$.debug&&(M["x-s2o-consumes"]=M.consumes||[],M["x-s2o-produces"]=M.produces||[]),delete M.consumes,delete M.produces,delete M.schemes;let Q=[];if(M.components.requestBodies={},!$.resolveInternal){let de=1;for(let pe in oe){let J=oe[pe];if(J.refs.length>1){let ae="";for(J.name||(J.name="requestBody",ae=de++);Q.indexOf(J.name+ae)>=0;)ae=ae?++ae:2;J.name=J.name+ae,Q.push(J.name),M.components.requestBodies[J.name]=l(J.body);for(let ne in J.refs){let ve={};ve.$ref="#/components/requestBodies/"+J.name,i.jptr(M,J.refs[ne],ve)}}}}return M.components.responses&&Object.keys(M.components.responses).length===0&&delete M.components.responses,M.components.parameters&&Object.keys(M.components.parameters).length===0&&delete M.components.parameters,M.components.examples&&Object.keys(M.components.examples).length===0&&delete M.components.examples,M.components.requestBodies&&Object.keys(M.components.requestBodies).length===0&&delete M.components.requestBodies,M.components.securitySchemes&&Object.keys(M.components.securitySchemes).length===0&&delete M.components.securitySchemes,M.components.headers&&Object.keys(M.components.headers).length===0&&delete M.components.headers,M.components.schemas&&Object.keys(M.components.schemas).length===0&&delete M.components.schemas,M.components&&Object.keys(M.components).length===0&&delete M.components,M}function W(M){return!M||!M.url||typeof M.url!="string"||(M.url=M.url.split("{{").join("{"),M.url=M.url.split("}}").join("}"),M.url.replace(/\{(.+?)\}/g,function($,oe){M.variables||(M.variables={}),M.variables[oe]={default:"unknown"}})),M}function q(M,$,oe){if(typeof M.info>"u"||M.info===null)if($.patch)$.patches++,M.info={version:"",title:""};else return oe(new k("(Patchable) info object is mandatory"));if(typeof M.info!="object"||Array.isArray(M.info))return oe(new k("info must be an object"));if(typeof M.info.title>"u"||M.info.title===null)if($.patch)$.patches++,M.info.title="";else return oe(new k("(Patchable) info.title cannot be null"));if(typeof M.info.version>"u"||M.info.version===null)if($.patch)$.patches++,M.info.version="";else return oe(new k("(Patchable) info.version cannot be null"));if(typeof M.info.version!="string")if($.patch)$.patches++,M.info.version=M.info.version.toString();else return oe(new k("(Patchable) info.version must be a string"));if(typeof M.info.logo<"u")if($.patch)$.patches++,M.info["x-logo"]=M.info.logo,delete M.info.logo;else return oe(new k("(Patchable) info should not have logo property"));if(typeof M.info.termsOfService<"u"){if(M.info.termsOfService===null)if($.patch)$.patches++,M.info.termsOfService="";else return oe(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(M.info.termsOfService)}catch{if($.patch)$.patches++,delete M.info.termsOfService;else return oe(new k("(Patchable) info.termsOfService must be a URL"))}}}function B(M,$,oe){if(typeof M.paths>"u")if($.patch)$.patches++,M.paths={};else return oe(new k("(Patchable) paths object is mandatory"))}function D(M,$){const oe=new WeakSet;u(M,{identityDetection:!0},function(Q,de,pe){typeof Q[de]=="object"&&Q[de]!==null&&(oe.has(Q[de])?$.anchors?Q[de]=l(Q[de]):O("YAML anchor or merge key at "+pe.path,$):oe.add(Q[de]))})}function F(M,$,oe){return a(oe,new Promise(function(Q,de){if(M||(M={}),$.original=M,$.text||($.text=n.stringify(M)),$.externals=[],$.externalRefs={},$.rewriteRefs=!0,$.preserveMiro=!0,$.promise={},$.promise.resolve=Q,$.promise.reject=de,$.patches=0,$.cache||($.cache={}),$.source&&($.cache[$.source]=$.original),D(M,$),M.openapi&&typeof M.openapi=="string"&&M.openapi.startsWith("3.")){$.openapi=c(M),q($.openapi,$,de),B($.openapi,$,de),d.optionalResolve($).then(function(){return $.direct?Q($.openapi):Q($)}).catch(function(J){console.warn(J),de(J)});return}if(!M.swagger||M.swagger!="2.0")return de(new k("Unsupported swagger/OpenAPI version: "+(M.openapi?M.openapi:M.swagger)));let pe=$.openapi={};if(pe.openapi=typeof $.targetVersion=="string"&&$.targetVersion.startsWith("3.")?$.targetVersion:b,$.origin){pe["x-origin"]||(pe["x-origin"]=[]);let J={};J.url=$.source||$.origin,J.format="swagger",J.version=M.swagger,J.converter={},J.converter.url="https://github.com/mermade/oas-kit",J.converter.version=g,pe["x-origin"].push(J)}if(pe=Object.assign(pe,c(M)),delete pe.swagger,u(pe,{},function(J,ae,ne){J[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&ne.path.indexOf("/example")<0&&delete J[ae]}),M.host)for(let J of Array.isArray(M.schemes)?M.schemes:[""]){let ae={},ne=(M.basePath||"").replace(/\/$/,"");ae.url=(J?J+":":"")+"//"+M.host+ne,W(ae),pe.servers||(pe.servers=[]),pe.servers.push(ae)}else if(M.basePath){let J={};J.url=M.basePath,W(J),pe.servers||(pe.servers=[]),pe.servers.push(J)}if(delete pe.host,delete pe.basePath,pe["x-servers"]&&Array.isArray(pe["x-servers"])&&(pe.servers=pe["x-servers"],delete pe["x-servers"]),M["x-ms-parameterized-host"]){let J=M["x-ms-parameterized-host"],ae={};ae.url=J.hostTemplate+(M.basePath?M.basePath:""),ae.variables={};const ne=ae.url.match(/\{\w+\}/g);for(let ve in J.parameters){let me=J.parameters[ve];me.$ref&&(me=l(o(pe,me.$ref))),ve.startsWith("x-")||(delete me.required,delete me.type,delete me.in,typeof me.default>"u"&&(me.enum?me.default=me.enum[0]:me.default="none"),me.name||(me.name=ne[ve].replace("{","").replace("}","")),ae.variables[me.name]=me,delete me.name)}pe.servers||(pe.servers=[]),J.useSchemePrefix===!1?pe.servers.push(ae):M.schemes.forEach(ve=>{pe.servers.push(Object.assign({},ae,{url:ve+"://"+ae.url}))}),delete pe["x-ms-parameterized-host"]}q(pe,$,de),B(pe,$,de),typeof pe.consumes=="string"&&(pe.consumes=[pe.consumes]),typeof pe.produces=="string"&&(pe.produces=[pe.produces]),pe.components={},pe["x-callbacks"]&&(pe.components.callbacks=pe["x-callbacks"],delete pe["x-callbacks"]),pe.components.examples={},pe.components.headers={},pe["x-links"]&&(pe.components.links=pe["x-links"],delete pe["x-links"]),pe.components.parameters=pe.parameters||{},pe.components.responses=pe.responses||{},pe.components.requestBodies={},pe.components.securitySchemes=pe.securityDefinitions||{},pe.components.schemas=pe.definitions||{},delete pe.definitions,delete pe.responses,delete pe.parameters,delete pe.securityDefinitions,d.optionalResolve($).then(function(){I($.openapi,$),$.direct?Q($.openapi):Q($)}).catch(function(J){console.warn(J),de(J)})}))}function re(M,$,oe){return a(oe,new Promise(function(Q,de){let pe=null,J=null;try{pe=JSON.parse(M),$.text=JSON.stringify(pe,null,2)}catch(ae){J=ae;try{pe=n.parse(M,{schema:"core",prettyErrors:!0}),$.sourceYaml=!0,$.text=M}catch(ne){J=ne}}pe?F(pe,$).then(ae=>Q(ae)).catch(ae=>de(ae)):de(new k(J?J.message:"Could not parse string"))}))}function le(M,$,oe){return a(oe,new Promise(function(Q,de){$.origin=!0,$.source||($.source=M),$.verbose&&console.warn("GET "+M),$.fetch||($.fetch=r);const pe=Object.assign({},$.fetchOptions,{agent:$.agent});$.fetch(M,pe).then(function(J){if(J.status!==200)throw new k(`Received status code ${J.status}: ${M}`);return J.text()}).then(function(J){re(J,$).then(ae=>Q(ae)).catch(ae=>de(ae))}).catch(function(J){de(J)})}))}function be(M,$,oe){return a(oe,new Promise(function(Q,de){e.readFile(M,$.encoding||"utf8",function(pe,J){pe?de(pe):($.sourceFile=M,re(J,$).then(ae=>Q(ae)).catch(ae=>de(ae)))})}))}function ke(M,$,oe){return a(oe,new Promise(function(Q,de){let pe="";M.on("data",function(J){pe+=J}).on("end",function(){re(pe,$).then(J=>Q(J)).catch(J=>de(J))})}))}return L7={S2OError:k,targetVersion:b,convert:F,convertObj:F,convertUrl:le,convertStr:re,convertFile:be,convertStream:ke},L7}var hct=pct();const mct=Gr(hct);function fct(e){return e.paths||(e.paths={}),new Promise((t,a)=>mct.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function gct(){try{return(await coe())?.resolvedConfig.openapi||{}}catch{return{}}}async function vct(e){const t=await coe(),a={config:t,base:$u?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$u&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=bct(e):a.ref=e;const{bundle:{parsed:r}}=await _lt(a);return r.swagger!==void 0?fct(r):r}function bct(e){return{source:{absoluteRef:""},parsed:e}}async function yct(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 vct(e||t);try{UJe(r)}catch{}return r}const kct=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=P.useState(),[s,l]=P.useState(!0),[c,u]=P.useState(null),[d,h]=P.useState(e||{});P.useEffect(()=>{async function v(){l(!0);try{const g=await gct();h({...e,...g}),u(await yct(a,t,e))}catch(g){o(g.message)}}v()},[a,t,e]);const m=P.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},WJe([c,t,d]));return P.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?El(e?.hideLoading,!1)?null:p.jsx(int,{color:"--loading-spinner-color"}):P.isValidElement(n)?P.cloneElement(n,{store:m}):null};function xct({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(kct,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(Ane,{withCommonStyles:!0,router:o||"hash"})})}function wct(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 Oct(e){const t=wct(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function Sct(e,t=document.querySelector("redoc")){D8.hydrateRoot(t,p.jsx(Ane,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Sse(e,t={},a=N8("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,...Oct(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),D8.createRoot(a).render(P.createElement(xct,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const zct="3.18.0",Cct="9122dd96e6";function jct(){const e=N8("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Sse(t,{},e)}jct();function q0(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 zse={exports:{}},Cse;function Pct(){return Cse||(Cse=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 q0=="function"&&q0;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(v){var g=r[c][1][v];return o(g||v)},m,m.exports,a,r,n,i)}return n[c].exports}for(var s=typeof q0=="function"&&q0,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,v,g,b=[],y=0,k=l.length,O=k,C=i.getTypeOf(l)!=="string";y<l.length;)O=k-y,d=C?(c=l[y++],u=y<k?l[y++]:0,y<k?l[y++]:0):(c=l.charCodeAt(y++),u=y<k?l.charCodeAt(y++):0,y<k?l.charCodeAt(y++):0),h=c>>2,m=(3&c)<<4|u>>4,v=1<O?(15&u)<<2|d>>6:64,g=2<O?63&d:64,b.push(s.charAt(h)+s.charAt(m)+s.charAt(v)+s.charAt(g));return b.join("")},n.decode=function(l){var c,u,d,h,m,v,g=0,b=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var k,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(k=o.uint8array?new Uint8Array(0|O):new Array(0|O);g<l.length;)c=s.indexOf(l.charAt(g++))<<2|(h=s.indexOf(l.charAt(g++)))>>4,u=(15&h)<<4|(m=s.indexOf(l.charAt(g++)))>>2,d=(3&m)<<6|(v=s.indexOf(l.charAt(g++))),k[b++]=c,m!==64&&(k[b++]=u),v!==64&&(k[b++]=d);return k}},{"./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,v){this.compressedSize=u,this.uncompressedSize=d,this.crc32=h,this.compression=m,this.compressedContent=v}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,v=h+d;c^=-1;for(var g=h;g<v;g++)c=c>>>8^m[255&(c^u[g])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,h){var m=o,v=h+d;c^=-1;for(var g=h;g<v;g++)c=c>>>8^m[255&(c^u.charCodeAt(g))];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,v){var g,b="";for(g=0;g<v;g++)b+=String.fromCharCode(255&m),m>>>=8;return b}function o(m,v,g,b,y,k){var O,C,w=m.file,S=m.compression,j=k!==c.utf8encode,A=s.transformTo("string",k(w.name)),R=s.transformTo("string",c.utf8encode(w.name)),L=w.comment,H=s.transformTo("string",k(L)),_=s.transformTo("string",c.utf8encode(L)),G=R.length!==w.name.length,N=_.length!==L.length,Y="",te="",se="",X=w.dir,ue=w.date,Z={crc32:0,compressedSize:0,uncompressedSize:0};v&&!g||(Z.crc32=m.crc32,Z.compressedSize=m.compressedSize,Z.uncompressedSize=m.uncompressedSize);var I=0;v&&(I|=8),j||!G&&!N||(I|=2048);var W=0,q=0;X&&(W|=16),y==="UNIX"?(q=798,W|=(function(D,F){var re=D;return D||(re=F?16893:33204),(65535&re)<<16})(w.unixPermissions,X)):(q=20,W|=(function(D){return 63&(D||0)})(w.dosPermissions)),O=ue.getUTCHours(),O<<=6,O|=ue.getUTCMinutes(),O<<=5,O|=ue.getUTCSeconds()/2,C=ue.getUTCFullYear()-1980,C<<=4,C|=ue.getUTCMonth()+1,C<<=5,C|=ue.getUTCDate(),G&&(te=i(1,1)+i(u(A),4)+R,Y+="up"+i(te.length,2)+te),N&&(se=i(1,1)+i(u(H),4)+_,Y+="uc"+i(se.length,2)+se);var B="";return B+=`
10590
+ `," "],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})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=Hlt();function k(S,j,A){if(S&&t.isObject(S)&&S instanceof a)return S;var R=new a;return R.parse(S,j,A),R}a.prototype.parse=function(S,j,A){if(!t.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var R=S.indexOf("?"),L=R!==-1&&R<S.indexOf("#")?"?":"#",H=S.split(L),_=/\\/g;H[0]=H[0].replace(_,"/"),S=H.join(L);var G=S;if(G=G.trim(),!A&&S.split("#").length===1){var N=i.exec(G);if(N)return this.path=G,this.href=G,this.pathname=N[1],N[2]?(this.search=N[2],j?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var Y=r.exec(G);if(Y){Y=Y[0];var te=Y.toLowerCase();this.protocol=te,G=G.substr(Y.length)}if(A||Y||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var se=G.substr(0,2)==="//";se&&!(Y&&g[Y])&&(G=G.substr(2),this.slashes=!0)}if(!g[Y]&&(se||Y&&!b[Y])){for(var X=-1,ue=0;ue<u.length;ue++){var Z=G.indexOf(u[ue]);Z!==-1&&(X===-1||Z<X)&&(X=Z)}var I,W;X===-1?W=G.lastIndexOf("@"):W=G.lastIndexOf("@",X),W!==-1&&(I=G.slice(0,W),G=G.slice(W+1),this.auth=decodeURIComponent(I)),X=-1;for(var ue=0;ue<c.length;ue++){var Z=G.indexOf(c[ue]);Z!==-1&&(X===-1||Z<X)&&(X=Z)}X===-1&&(X=G.length),this.host=G.slice(0,X),G=G.slice(X),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var B=this.hostname.split(/\./),ue=0,D=B.length;ue<D;ue++){var F=B[ue];if(F&&!F.match(h)){for(var re="",le=0,be=F.length;le<be;le++)F.charCodeAt(le)>127?re+="x":re+=F[le];if(!re.match(h)){var ke=B.slice(0,ue),M=B.slice(ue+1),$=F.match(m);$&&(ke.push($[1]),M.unshift($[2])),M.length&&(G="/"+M.join(".")+G),this.hostname=ke.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var oe=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+oe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!v[te])for(var ue=0,D=l.length;ue<D;ue++){var de=l[ue];if(G.indexOf(de)!==-1){var pe=encodeURIComponent(de);pe===de&&(pe=escape(de)),G=G.split(de).join(pe)}}var J=G.indexOf("#");J!==-1&&(this.hash=G.substr(J),G=G.slice(0,J));var ae=G.indexOf("?");if(ae!==-1?(this.search=G.substr(ae),this.query=G.substr(ae+1),j&&(this.query=y.parse(this.query)),G=G.slice(0,ae)):j&&(this.search="",this.query={}),G&&(this.pathname=G),b[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var oe=this.pathname||"",ne=this.search||"";this.path=oe+ne}return this.href=this.format(),this};function O(S){return t.isString(S)&&(S=k(S)),S instanceof a?S.format():a.prototype.format.call(S)}a.prototype.format=function(){var S=this.auth||"";S&&(S=encodeURIComponent(S),S=S.replace(/%3A/i,":"),S+="@");var j=this.protocol||"",A=this.pathname||"",R=this.hash||"",L=!1,H="";this.host?L=S+this.host:this.hostname&&(L=S+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(H=y.stringify(this.query));var _=this.search||H&&"?"+H||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||b[j])&&L!==!1?(L="//"+(L||""),A&&A.charAt(0)!=="/"&&(A="/"+A)):L||(L=""),R&&R.charAt(0)!=="#"&&(R="#"+R),_&&_.charAt(0)!=="?"&&(_="?"+_),A=A.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),_=_.replace("#","%23"),j+L+A+_+R};function C(S,j){return k(S,!1,!0).resolve(j)}a.prototype.resolve=function(S){return this.resolveObject(k(S,!1,!0)).format()};function w(S,j){return S?k(S,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(S){if(t.isString(S)){var j=new a;j.parse(S,!1,!0),S=j}for(var A=new a,R=Object.keys(this),L=0;L<R.length;L++){var H=R[L];A[H]=this[H]}if(A.hash=S.hash,S.href==="")return A.href=A.format(),A;if(S.slashes&&!S.protocol){for(var _=Object.keys(S),G=0;G<_.length;G++){var N=_[G];N!=="protocol"&&(A[N]=S[N])}return b[A.protocol]&&A.hostname&&!A.pathname&&(A.path=A.pathname="/"),A.href=A.format(),A}if(S.protocol&&S.protocol!==A.protocol){if(!b[S.protocol]){for(var Y=Object.keys(S),te=0;te<Y.length;te++){var se=Y[te];A[se]=S[se]}return A.href=A.format(),A}if(A.protocol=S.protocol,!S.host&&!g[S.protocol]){for(var D=(S.pathname||"").split("/");D.length&&!(S.host=D.shift()););S.host||(S.host=""),S.hostname||(S.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),A.pathname=D.join("/")}else A.pathname=S.pathname;if(A.search=S.search,A.query=S.query,A.host=S.host||"",A.auth=S.auth,A.hostname=S.hostname||S.host,A.port=S.port,A.pathname||A.search){var X=A.pathname||"",ue=A.search||"";A.path=X+ue}return A.slashes=A.slashes||S.slashes,A.href=A.format(),A}var Z=A.pathname&&A.pathname.charAt(0)==="/",I=S.host||S.pathname&&S.pathname.charAt(0)==="/",W=I||Z||A.host&&S.pathname,q=W,B=A.pathname&&A.pathname.split("/")||[],D=S.pathname&&S.pathname.split("/")||[],F=A.protocol&&!b[A.protocol];if(F&&(A.hostname="",A.port=null,A.host&&(B[0]===""?B[0]=A.host:B.unshift(A.host)),A.host="",S.protocol&&(S.hostname=null,S.port=null,S.host&&(D[0]===""?D[0]=S.host:D.unshift(S.host)),S.host=null),W=W&&(D[0]===""||B[0]==="")),I)A.host=S.host||S.host===""?S.host:A.host,A.hostname=S.hostname||S.hostname===""?S.hostname:A.hostname,A.search=S.search,A.query=S.query,B=D;else if(D.length)B||(B=[]),B.pop(),B=B.concat(D),A.search=S.search,A.query=S.query;else if(!t.isNullOrUndefined(S.search)){if(F){A.hostname=A.host=B.shift();var re=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;re&&(A.auth=re.shift(),A.host=A.hostname=re.shift())}return A.search=S.search,A.query=S.query,(!t.isNull(A.pathname)||!t.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.href=A.format(),A}if(!B.length)return A.pathname=null,A.search?A.path="/"+A.search:A.path=null,A.href=A.format(),A;for(var le=B.slice(-1)[0],be=(A.host||S.host||B.length>1)&&(le==="."||le==="..")||le==="",ke=0,M=B.length;M>=0;M--)le=B[M],le==="."?B.splice(M,1):le===".."?(B.splice(M,1),ke++):ke&&(B.splice(M,1),ke--);if(!W&&!q)for(;ke--;ke)B.unshift("..");W&&B[0]!==""&&(!B[0]||B[0].charAt(0)!=="/")&&B.unshift(""),be&&B.join("/").substr(-1)!=="/"&&B.push("");var $=B[0]===""||B[0]&&B[0].charAt(0)==="/";if(F){A.hostname=A.host=$?"":B.length?B.shift():"";var re=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;re&&(A.auth=re.shift(),A.host=A.hostname=re.shift())}return W=W||A.host&&B.length,W&&!$&&B.unshift(""),B.length?A.pathname=B.join("/"):(A.pathname=null,A.path=null),(!t.isNull(A.pathname)||!t.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.auth=S.auth||A.auth,A.slashes=A.slashes||S.slashes,A.href=A.format(),A},a.prototype.parseHost=function(){var S=this.host,j=n.exec(S);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),S=S.substr(0,S.length-j.length)),S&&(this.hostname=S)},Bf}var r7,boe;function Klt(){if(boe)return r7;boe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return r7=e(),r7}var n7,yoe;function Flt(){if(yoe)return n7;yoe=1;var e=Klt();return n7=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},n7}var i7,koe;function SC(){if(koe)return i7;koe=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 i7={jptr:a,jpescape:e,jpunescape:t},i7}var o7,xoe;function s7(){if(xoe)return o7;xoe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return o7={isRef:e},o7}var l7,woe;function zC(){if(woe)return l7;woe=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 l7={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},l7}var c7,Ooe;function u7(){if(Ooe)return c7;Ooe=1;const e=SC().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 c7={recurse:a},c7}var d7,Soe;function Glt(){if(Soe)return d7;Soe=1;const e=u7().recurse,t=zC().shallowClone,a=SC().jptr,r=s7().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(v,g,b){if(r(v,g)){let y=v[g];if(m++,l.cache[y]){let k=l.cache[y];if(k.resolved)h.warn("Patching %s for %s",y,k.path),b.parent[b.pkey]=k.data,l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=y);else{if(y===k.path)throw new Error(`Tight circle at ${k.path}`);h.warn("Unresolved ref"),b.parent[b.pkey]=a(k.source,k.path),b.parent[b.pkey]===!1&&(b.parent[b.pkey]=a(k.source,k.key)),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[l.$ref]=y)}}else{let k={};k.path=b.path.split("/$ref")[0],k.key=y,h.warn("Dereffing %s at %s",y,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&h.warn("Missing $ref target",k.key),l.cache[y]=k,k.data=b.parent[b.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=y),k.resolved=!0}}});return u.data}return d7={dereference:i},d7}var p7,zoe;function qlt(){if(zoe)return p7;zoe=1,p7=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,v,g){typeof g>"u"&&(g=n()),s(h,"",0,[],void 0,0,g);var b;try{r.length===0?b=JSON.stringify(h,m,v):b=JSON.stringify(h,d(m),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var y=a.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return b}function o(h,m,v,g){var b=Object.getOwnPropertyDescriptor(g,v);b.get!==void 0?b.configurable?(Object.defineProperty(g,v,{value:h}),a.push([g,v,m,b])):r.push([m,v,h]):(g[v]=h,a.push([g,v,m]))}function s(h,m,v,g,b,y,k){y+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<g.length;O++)if(g[O]===h){o(t,h,m,b);return}if(typeof k.depthLimit<"u"&&y>k.depthLimit){o(e,h,m,b);return}if(typeof k.edgesLimit<"u"&&v+1>k.edgesLimit){o(e,h,m,b);return}if(g.push(h),Array.isArray(h))for(O=0;O<h.length;O++)s(h[O],O,O,g,h,y,k);else{var C=Object.keys(h);for(O=0;O<C.length;O++){var w=C[O];s(h[w],w,O,g,h,y,k)}}g.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,v,g){typeof g>"u"&&(g=n());var b=u(h,"",0,[],void 0,0,g)||h,y;try{r.length===0?y=JSON.stringify(b,m,v):y=JSON.stringify(b,d(m),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return y}function u(h,m,v,g,b,y,k){y+=1;var O;if(typeof h=="object"&&h!==null){for(O=0;O<g.length;O++)if(g[O]===h){o(t,h,m,b);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&y>k.depthLimit){o(e,h,m,b);return}if(typeof k.edgesLimit<"u"&&v+1>k.edgesLimit){o(e,h,m,b);return}if(g.push(h),Array.isArray(h))for(O=0;O<h.length;O++)u(h[O],O,O,g,h,y,k);else{var C={},w=Object.keys(h).sort(l);for(O=0;O<w.length;O++){var S=w[O];u(h[S],S,O,g,h,y,k),C[S]=h[S]}if(typeof b<"u")a.push([b,m,h]),b[m]=C;else return C}g.pop()}}function d(h){return h=typeof h<"u"?h:function(m,v){return v},function(m,v){if(r.length>0)for(var g=0;g<r.length;g++){var b=r[g];if(b[1]===m&&b[0]===v){v=b[2],r.splice(g,1);break}}return h.call(this,m,v)}}return p7}var h7,Coe;function joe(){if(Coe)return h7;Coe=1;var e={};const t=qlt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(b,y,k){return k.indexOf(b)===y}function n(b){return new Set(b).size!==b.length}function i(b){return new Set(b).size<=1}function o(b,y){function k(O,C){return t.stringify(O)===t.stringify(Object.assign({},O,C))}return k(b,y)&&k(y,b)}function s(b){let y=[];for(let k of b)y.find(function(O,C,w){return o(O,k)})||y.push(k);return y}function l(b){return b.length===s(b).length}function c(b){return b.find(function(y,k,O){return b.indexOf(y)<k})}function u(b){let y=0,k;if(b.length===0)return y;for(let O=0;O<b.length;O++)k=b.charCodeAt(O),y=(y<<5)-y+k,y|=0;return y}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(b,y){return y.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 v(b){b=b.replace("[]","Array");let y=b.split("/");return y[0]=y[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),y.join("/")}function g(b){return v(b.split("/").join("_"))}return h7={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:v,sanitiseAll:g},h7}var m7,Poe;function Qlt(){if(Poe)return m7;Poe=1;const e=vb,t=_J(),a=a7(),r=vb,n=vb,i=SC().jptr,o=u7().recurse,s=zC().clone,l=Glt().dereference,c=s7().isRef,u=joe();function d(A){return[...new Set(A)]}function h(A,R,L,H,_){return new Promise(function(G,N){e.readFile(A,R,function(Y,te){Y?L.ignoreIOErrors&&_?(L.verbose&&console.warn("FAILED",H),L.externalRefs[H].failed=!0,G(_)):N(Y):G(te)})})}function m(A,R,L,H,_,G){let N=G.externalRefs[L+H].paths[0],Y=a.parse(_),te={},se=1;for(;se;)se=0,o(A,{identityDetection:!0},function(X,ue,Z){if(c(X,ue)){if(X[ue].startsWith("#")){if(!te[X[ue]]&&!X.$fixed){let I=s(i(R,X[ue]));if(G.verbose>1&&console.warn((I===!1?u.colour.red:u.colour.green)+"Fragment resolution",X[ue],u.colour.normal),I===!1){if(Z.parent[Z.pkey]={},G.fatal){let W=new Error("Fragment $ref resolution failed "+X[ue]);if(G.promise)G.promise.reject(W);else throw W}}else se++,Z.parent[Z.pkey]=I,te[X[ue]]=Z.path.replace("/%24ref","")}else if(!X.$fixed){let I=(N+"/"+te[X[ue]]).split("/#/").join("/");Z.parent[Z.pkey]={$ref:I,"x-miro":X[ue],$fixed:!0},G.verbose>1&&console.warn("Replacing with",I),se++}}else if(Y.protocol){let I=a.resolve(_,X[ue]).toString();G.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",X[ue],"as",I,u.colour.normal),X["x-miro"]=X[ue],G.externalRefs[X[ue]]&&(G.externalRefs[I]||(G.externalRefs[I]=G.externalRefs[X[ue]]),G.externalRefs[I].failed=G.externalRefs[X[ue]].failed),X[ue]=I}else if(!X["x-miro"]){let I=a.resolve(_,X[ue]).toString(),W=!1;G.externalRefs[X[ue]]&&(W=G.externalRefs[X[ue]].failed),W||(G.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",X[ue],"as",I,u.colour.normal),X["x-miro"]=X[ue],X[ue]=I)}}});return o(A,{},function(X,ue,Z){c(X,ue)&&typeof X.$fixed<"u"&&delete X.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),A}function v(A,R){if(!R.filters||!R.filters.length)return A;for(let L of R.filters)A=L(A,R);return A}function g(A,R){return A&&A.length>2?A:R&&R.length>2?R:"file:"}function b(A,R,L,H){var _=a.parse(L.source),G=L.source.split("\\").join("/").split("/");G.pop()||G.pop();let N="",Y=R.split("#");Y.length>1&&(N="#"+Y[1],R=Y[0]),G=G.join("/");let te=a.parse(R),se=g(te.protocol,_.protocol),X;if(se==="file:"?X=t.resolve(G?G+"/":"",R):X=a.resolve(G?G+"/":"",R),L.cache[X]){L.verbose&&console.warn("CACHED",X,N);let ue=s(L.cache[X]),Z=L.externalRef=ue;if(N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let I=new Error("Cached $ref resolution failed "+X+N);if(L.promise)L.promise.reject(I);else throw I}return Z=m(Z,ue,R,N,X,L),Z=v(Z,L),H(s(Z),X,L),Promise.resolve(Z)}if(L.verbose&&console.warn("GET",X,N),L.handlers&&L.handlers[se])return L.handlers[se](G,R,N,L).then(function(ue){return L.externalRef=ue,ue=v(ue,L),L.cache[X]=ue,H(ue,X,L),ue}).catch(function(ue){throw L.verbose&&console.warn(ue),ue});if(se&&se.startsWith("http")){const ue=Object.assign({},L.fetchOptions,{agent:L.agent});return L.fetch(X,ue).then(function(Z){if(Z.status!==200){if(L.ignoreIOErrors)return L.verbose&&console.warn("FAILED",R),L.externalRefs[R].failed=!0,'{"$ref":"'+R+'"}';throw new Error(`Received status code ${Z.status}: ${X}`)}return Z.text()}).then(function(Z){try{let I=n.parse(Z,{schema:"core",prettyErrors:!0});if(Z=L.externalRef=I,L.cache[X]=s(Z),N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let W=new Error("Remote $ref resolution failed "+X+N);if(L.promise)L.promise.reject(W);else throw W}Z=m(Z,I,R,N,X,L),Z=v(Z,L)}catch(I){if(L.verbose&&console.warn(I),L.promise&&L.fatal)L.promise.reject(I);else throw I}return H(Z,X,L),Z}).catch(function(Z){if(L.verbose&&console.warn(Z),L.cache[X]={},L.promise&&L.fatal)L.promise.reject(Z);else throw Z})}else{const ue='{"$ref":"'+R+'"}';return h(X,L.encoding||"utf8",L,R,ue).then(function(Z){try{let I=n.parse(Z,{schema:"core",prettyErrors:!0});if(Z=L.externalRef=I,L.cache[X]=s(Z),N&&(Z=i(Z,N),Z===!1&&(Z={},L.fatal))){let W=new Error("File $ref resolution failed "+X+N);if(L.promise)L.promise.reject(W);else throw W}Z=m(Z,I,R,N,X,L),Z=v(Z,L)}catch(I){if(L.verbose&&console.warn(I),L.promise&&L.fatal)L.promise.reject(I);else throw I}return H(Z,X,L),Z}).catch(function(Z){if(L.verbose&&console.warn(Z),L.promise&&L.fatal)L.promise.reject(Z);else throw Z})}}function y(A){return new Promise(function(R,L){function H(G,N,Y){if(G[N]&&c(G[N],"$ref")){let te=G[N].$ref;if(!te.startsWith("#")){let se="";if(!_[te]){let X=Object.keys(_).find(function(ue,Z,I){return te.startsWith(ue+"/")});X&&(A.verbose&&console.warn("Found potential subschema at",X),se="/"+(te.split("#")[1]||"").replace(X.split("#")[1]||""),se=se.split("/undefined").join(""),te=X)}if(_[te]||(_[te]={resolved:!1,paths:[],extras:{},description:G[N].description}),_[te].resolved){if(!_[te].failed)if(A.rewriteRefs){let X=_[te].resolvedAt;A.verbose>1&&console.warn("Rewriting ref",te,X),G[N]["x-miro"]=te,G[N].$ref=X+se}else G[N]=s(_[te].data)}else _[te].paths.push(Y.path),_[te].extras[Y.path]=se}}}let _=A.externalRefs;if(A.resolver.depth>0&&A.source===A.resolver.base)return R(_);o(A.openapi.definitions,{identityDetection:!0,path:"#/definitions"},H),o(A.openapi.components,{identityDetection:!0,path:"#/components"},H),o(A.openapi,{identityDetection:!0},H),R(_)})}function k(A){return new Promise(function(R,L){y(A).then(function(_){for(let G in _)if(!_[G].resolved){let N=A.resolver.depth;N>0&&N++,A.resolver.actions[N].push(function(){return b(A.openapi,G,A,function(Y,te,se){if(!_[G].resolved){let Z={};Z.context=_[G],Z.$ref=G,Z.original=s(Y),Z.updated=Y,Z.source=te,se.externals.push(Z),_[G].resolved=!0}let X=Object.assign({},se,{source:"",resolver:{actions:se.resolver.actions,depth:se.resolver.actions.length-1,base:se.resolver.base}});se.patch&&_[G].description&&!Y.description&&typeof Y=="object"&&(Y.description=_[G].description),_[G].data=Y;let ue=d(_[G].paths);ue=ue.sort(function(Z,I){const W=Z.startsWith("#/components/")||Z.startsWith("#/definitions/"),q=I.startsWith("#/components/")||I.startsWith("#/definitions/");return W&&!q?-1:q&&!W?1:0});for(let Z of ue)if(_[G].resolvedAt&&Z!==_[G].resolvedAt&&Z.indexOf("x-ms-examples/")<0)se.verbose>1&&console.warn("Creating pointer to data at",Z),i(se.openapi,Z,{$ref:_[G].resolvedAt+_[G].extras[Z],"x-miro":G+_[G].extras[Z]});else{_[G].resolvedAt?se.verbose>1&&console.warn("Avoiding circular reference"):(_[G].resolvedAt=Z,se.verbose>1&&console.warn("Creating initial clone of data at",Z));let I=s(Y);i(se.openapi,Z,I)}se.resolver.actions[X.resolver.depth].length===0&&se.resolver.actions[X.resolver.depth].push(function(){return k(X)})})})}}).catch(function(_){A.verbose&&console.warn(_),L(_)});let H={options:A};H.actions=A.resolver.actions[A.resolver.depth],R(H)})}const O=A=>A.reduce((R,L)=>R.then(H=>L().then(Array.prototype.concat.bind(H))),Promise.resolve([]));function C(A,R,L){A.resolver.actions.push([]),k(A).then(function(H){O(H.actions).then(function(){if(A.resolver.depth>=A.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),R(!0);A.resolver.depth++,A.resolver.actions[A.resolver.depth].length?setTimeout(function(){C(H.options,R,L)},0):(A.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),A.resolveInternal&&(A.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),A.openapi=l(A.openapi,A.original,{verbose:A.verbose-1}),A.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(A.openapi,{},function(_,G,N){c(_,G)&&(A.preserveMiro||delete _["x-miro"])}),R(A))}).catch(function(_){A.verbose&&console.warn(_),L(_)})}).catch(function(H){A.verbose&&console.warn(H),L(H)})}function w(A){if(A.cache||(A.cache={}),A.fetch||(A.fetch=r),A.source){let R=a.parse(A.source);(!R.protocol||R.protocol.length<=2)&&(A.source=t.resolve(A.source))}A.externals=[],A.externalRefs={},A.rewriteRefs=!0,A.resolver={},A.resolver.depth=0,A.resolver.base=A.source,A.resolver.actions=[[]]}function S(A){return w(A),new Promise(function(R,L){A.resolve?C(A,R,L):R(A)})}function j(A,R,L){return L||(L={}),L.openapi=A,L.source=R,L.resolve=!0,w(L),new Promise(function(H,_){C(L,H,_)})}return m7={optionalResolve:S,resolve:j},m7}var f7,Aoe;function Ult(){if(Aoe)return f7;Aoe=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 f7={getDefaultState:e,walkSchema:t},f7}var Toe={},g7={exports:{}},Moe={},Eoe;function Boe(){return Eoe||(Eoe=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})(Moe)),Moe}var CC={},v7={exports:{}},jC={exports:{}},Roe;function Wlt(){if(Roe)return jC.exports;Roe=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,w,S){return Function.prototype.apply.call(C,w,S)},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)}jC.exports=i,jC.exports.once=y,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=[],S=1;S<arguments.length;S++)w.push(arguments[S]);var j=C==="error",A=this._events;if(A!==void 0)j=j&&A.error===void 0;else if(!j)return!1;if(j){var R;if(w.length>0&&(R=w[0]),R instanceof Error)throw R;var L=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw L.context=R,L}var H=A[C];if(H===void 0)return!1;if(typeof H=="function")t(H,this,w);else for(var _=H.length,G=v(H,_),S=0;S<_;++S)t(G[S],this,w);return!0};function c(C,w,S,j){var A,R,L;if(s(S),R=C._events,R===void 0?(R=C._events=Object.create(null),C._eventsCount=0):(R.newListener!==void 0&&(C.emit("newListener",w,S.listener?S.listener:S),R=C._events),L=R[w]),L===void 0)L=R[w]=S,++C._eventsCount;else if(typeof L=="function"?L=R[w]=j?[S,L]:[L,S]:j?L.unshift(S):L.push(S),A=l(C),A>0&&L.length>A&&!L.warned){L.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=C,H.type=w,H.count=L.length,r(H)}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,S){var j={fired:!1,wrapFn:void 0,target:C,type:w,listener:S},A=u.bind(j);return A.listener=S,j.wrapFn=A,A}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 S,j,A,R,L;if(s(w),j=this._events,j===void 0)return this;if(S=j[C],S===void 0)return this;if(S===w||S.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete j[C],j.removeListener&&this.emit("removeListener",C,S.listener||w));else if(typeof S!="function"){for(A=-1,R=S.length-1;R>=0;R--)if(S[R]===w||S[R].listener===w){L=S[R].listener,A=R;break}if(A<0)return this;A===0?S.shift():g(S,A),S.length===1&&(j[C]=S[0]),j.removeListener!==void 0&&this.emit("removeListener",C,L||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(C){var w,S,j;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[C]),this;if(arguments.length===0){var A=Object.keys(S),R;for(j=0;j<A.length;++j)R=A[j],R!=="removeListener"&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=S[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,S){var j=C._events;if(j===void 0)return[];var A=j[w];return A===void 0?[]:typeof A=="function"?S?[A.listener||A]:[A]:S?b(A):v(A,A.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 S=w[C];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function v(C,w){for(var S=new Array(w),j=0;j<w;++j)S[j]=C[j];return S}function g(C,w){for(;w+1<C.length;w++)C[w]=C[w+1];C.pop()}function b(C){for(var w=new Array(C.length),S=0;S<w.length;++S)w[S]=C[S].listener||C[S];return w}function y(C,w){return new Promise(function(S,j){function A(L){C.removeListener(w,R),j(L)}function R(){typeof C.removeListener=="function"&&C.removeListener("error",A),S([].slice.call(arguments))}O(C,w,R,{once:!0}),w!=="error"&&k(C,A,{once:!0})})}function k(C,w,S){typeof C.on=="function"&&O(C,"error",w,S)}function O(C,w,S,j){if(typeof C.on=="function")j.once?C.once(w,S):C.on(w,S);else if(typeof C.addEventListener=="function")C.addEventListener(w,function A(R){j.once&&C.removeEventListener(w,A),S(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return jC.exports}var _oe,Loe;function Doe(){return Loe||(Loe=1,_oe=Wlt().EventEmitter),_oe}var Noe={},F0={},$oe;function Zlt(){if($oe)return F0;$oe=1,F0.byteLength=s,F0.toByteArray=c,F0.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 v=m.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=m.indexOf("=");g===-1&&(g=v);var b=g===v?0:4-g%4;return[g,b]}function s(m){var v=o(m),g=v[0],b=v[1];return(g+b)*3/4-b}function l(m,v,g){return(v+g)*3/4-g}function c(m){var v,g=o(m),b=g[0],y=g[1],k=new a(l(m,b,y)),O=0,C=y>0?b-4:b,w;for(w=0;w<C;w+=4)v=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],k[O++]=v>>16&255,k[O++]=v>>8&255,k[O++]=v&255;return y===2&&(v=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,k[O++]=v&255),y===1&&(v=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,k[O++]=v>>8&255,k[O++]=v&255),k}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,v,g){for(var b,y=[],k=v;k<g;k+=3)b=(m[k]<<16&16711680)+(m[k+1]<<8&65280)+(m[k+2]&255),y.push(u(b));return y.join("")}function h(m){for(var v,g=m.length,b=g%3,y=[],k=16383,O=0,C=g-b;O<C;O+=k)y.push(d(m,O,O+k>C?C:O+k));return b===1?(v=m[g-1],y.push(e[v>>2]+e[v<<4&63]+"==")):b===2&&(v=(m[g-2]<<8)+m[g-1],y.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),y.join("")}return F0}var b7={},Ioe;function Jlt(){return Ioe||(Ioe=1,b7.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)},b7.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,v=r?1:-1,g=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+=v,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=v,o/=256,c-=8);e[a+m-v]|=g*128}),b7}var Voe;function G0(){return Voe||(Voe=1,(function(e){const t=Zlt(),a=Jlt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=k,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 E=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(E,ee),E.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(E){if(E>n)throw new RangeError('The value "'+E+'" is invalid for option "size"');const ee=new Uint8Array(E);return Object.setPrototypeOf(ee,s.prototype),ee}function s(E,ee,ce){if(typeof E=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(E)}return l(E,ee,ce)}s.poolSize=8192;function l(E,ee,ce){if(typeof E=="string")return h(E,ee);if(ArrayBuffer.isView(E))return v(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ge(E,ArrayBuffer)||E&&ge(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ge(E,SharedArrayBuffer)||E&&ge(E.buffer,SharedArrayBuffer)))return g(E,ee,ce);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Se=E.valueOf&&E.valueOf();if(Se!=null&&Se!==E)return s.from(Se,ee,ce);const Te=b(E);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return s.from(E[Symbol.toPrimitive]("string"),ee,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}s.from=function(E,ee,ce){return l(E,ee,ce)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function u(E,ee,ce){return c(E),E<=0?o(E):ee!==void 0?typeof ce=="string"?o(E).fill(ee,ce):o(E).fill(ee):o(E)}s.alloc=function(E,ee,ce){return u(E,ee,ce)};function d(E){return c(E),o(E<0?0:y(E)|0)}s.allocUnsafe=function(E){return d(E)},s.allocUnsafeSlow=function(E){return d(E)};function h(E,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const ce=O(E,ee)|0;let Se=o(ce);const Te=Se.write(E,ee);return Te!==ce&&(Se=Se.slice(0,Te)),Se}function m(E){const ee=E.length<0?0:y(E.length)|0,ce=o(ee);for(let Se=0;Se<ee;Se+=1)ce[Se]=E[Se]&255;return ce}function v(E){if(ge(E,Uint8Array)){const ee=new Uint8Array(E);return g(ee.buffer,ee.byteOffset,ee.byteLength)}return m(E)}function g(E,ee,ce){if(ee<0||E.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<ee+(ce||0))throw new RangeError('"length" is outside of buffer bounds');let Se;return ee===void 0&&ce===void 0?Se=new Uint8Array(E):ce===void 0?Se=new Uint8Array(E,ee):Se=new Uint8Array(E,ee,ce),Object.setPrototypeOf(Se,s.prototype),Se}function b(E){if(s.isBuffer(E)){const ee=y(E.length)|0,ce=o(ee);return ce.length===0||E.copy(ce,0,0,ee),ce}if(E.length!==void 0)return typeof E.length!="number"||je(E.length)?o(0):m(E);if(E.type==="Buffer"&&Array.isArray(E.data))return m(E.data)}function y(E){if(E>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return E|0}function k(E){return+E!=E&&(E=0),s.alloc(+E)}s.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==s.prototype},s.compare=function(E,ee){if(ge(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),ge(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),!s.isBuffer(E)||!s.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===ee)return 0;let ce=E.length,Se=ee.length;for(let Te=0,Ee=Math.min(ce,Se);Te<Ee;++Te)if(E[Te]!==ee[Te]){ce=E[Te],Se=ee[Te];break}return ce<Se?-1:Se<ce?1:0},s.isEncoding=function(E){switch(String(E).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(E,ee){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return s.alloc(0);let ce;if(ee===void 0)for(ee=0,ce=0;ce<E.length;++ce)ee+=E[ce].length;const Se=s.allocUnsafe(ee);let Te=0;for(ce=0;ce<E.length;++ce){let Ee=E[ce];if(ge(Ee,Uint8Array))Te+Ee.length>Se.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(Se,Te)):Uint8Array.prototype.set.call(Se,Ee,Te);else if(s.isBuffer(Ee))Ee.copy(Se,Te);else throw new TypeError('"list" argument must be an Array of Buffers');Te+=Ee.length}return Se};function O(E,ee){if(s.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||ge(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const ce=E.length,Se=arguments.length>2&&arguments[2]===!0;if(!Se&&ce===0)return 0;let Te=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return J(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce*2;case"hex":return ce>>>1;case"base64":return ve(E).length;default:if(Te)return Se?-1:J(E).length;ee=(""+ee).toLowerCase(),Te=!0}}s.byteLength=O;function C(E,ee,ce){let Se=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0,ee>>>=0,ce<=ee))return"";for(E||(E="utf8");;)switch(E){case"hex":return ue(this,ee,ce);case"utf8":case"utf-8":return N(this,ee,ce);case"ascii":return se(this,ee,ce);case"latin1":case"binary":return X(this,ee,ce);case"base64":return G(this,ee,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,ee,ce);default:if(Se)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),Se=!0}}s.prototype._isBuffer=!0;function w(E,ee,ce){const Se=E[ee];E[ee]=E[ce],E[ce]=Se}s.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<E;ee+=2)w(this,ee,ee+1);return this},s.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<E;ee+=4)w(this,ee,ee+3),w(this,ee+1,ee+2);return this},s.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<E;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 E=this.length;return E===0?"":arguments.length===0?N(this,0,E):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(E){if(!s.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:s.compare(this,E)===0},s.prototype.inspect=function(){let E="";const ee=e.INSPECT_MAX_BYTES;return E=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(E+=" ... "),"<Buffer "+E+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(E,ee,ce,Se,Te){if(ge(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(ee===void 0&&(ee=0),ce===void 0&&(ce=E?E.length:0),Se===void 0&&(Se=0),Te===void 0&&(Te=this.length),ee<0||ce>E.length||Se<0||Te>this.length)throw new RangeError("out of range index");if(Se>=Te&&ee>=ce)return 0;if(Se>=Te)return-1;if(ee>=ce)return 1;if(ee>>>=0,ce>>>=0,Se>>>=0,Te>>>=0,this===E)return 0;let Ee=Te-Se,Ne=ce-ee;const nt=Math.min(Ee,Ne),rt=this.slice(Se,Te),pt=E.slice(ee,ce);for(let lt=0;lt<nt;++lt)if(rt[lt]!==pt[lt]){Ee=rt[lt],Ne=pt[lt];break}return Ee<Ne?-1:Ne<Ee?1:0};function S(E,ee,ce,Se,Te){if(E.length===0)return-1;if(typeof ce=="string"?(Se=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,je(ce)&&(ce=Te?0:E.length-1),ce<0&&(ce=E.length+ce),ce>=E.length){if(Te)return-1;ce=E.length-1}else if(ce<0)if(Te)ce=0;else return-1;if(typeof ee=="string"&&(ee=s.from(ee,Se)),s.isBuffer(ee))return ee.length===0?-1:j(E,ee,ce,Se,Te);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(E,ee,ce):Uint8Array.prototype.lastIndexOf.call(E,ee,ce):j(E,[ee],ce,Se,Te);throw new TypeError("val must be string, number or Buffer")}function j(E,ee,ce,Se,Te){let Ee=1,Ne=E.length,nt=ee.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(E.length<2||ee.length<2)return-1;Ee=2,Ne/=2,nt/=2,ce/=2}function rt(lt,Ct){return Ee===1?lt[Ct]:lt.readUInt16BE(Ct*Ee)}let pt;if(Te){let lt=-1;for(pt=ce;pt<Ne;pt++)if(rt(E,pt)===rt(ee,lt===-1?0:pt-lt)){if(lt===-1&&(lt=pt),pt-lt+1===nt)return lt*Ee}else lt!==-1&&(pt-=pt-lt),lt=-1}else for(ce+nt>Ne&&(ce=Ne-nt),pt=ce;pt>=0;pt--){let lt=!0;for(let Ct=0;Ct<nt;Ct++)if(rt(E,pt+Ct)!==rt(ee,Ct)){lt=!1;break}if(lt)return pt}return-1}s.prototype.includes=function(E,ee,ce){return this.indexOf(E,ee,ce)!==-1},s.prototype.indexOf=function(E,ee,ce){return S(this,E,ee,ce,!0)},s.prototype.lastIndexOf=function(E,ee,ce){return S(this,E,ee,ce,!1)};function A(E,ee,ce,Se){ce=Number(ce)||0;const Te=E.length-ce;Se?(Se=Number(Se),Se>Te&&(Se=Te)):Se=Te;const Ee=ee.length;Se>Ee/2&&(Se=Ee/2);let Ne;for(Ne=0;Ne<Se;++Ne){const nt=parseInt(ee.substr(Ne*2,2),16);if(je(nt))return Ne;E[ce+Ne]=nt}return Ne}function R(E,ee,ce,Se){return me(J(ee,E.length-ce),E,ce,Se)}function L(E,ee,ce,Se){return me(ae(ee),E,ce,Se)}function H(E,ee,ce,Se){return me(ve(ee),E,ce,Se)}function _(E,ee,ce,Se){return me(ne(ee,E.length-ce),E,ce,Se)}s.prototype.write=function(E,ee,ce,Se){if(ee===void 0)Se="utf8",ce=this.length,ee=0;else if(ce===void 0&&typeof ee=="string")Se=ee,ce=this.length,ee=0;else if(isFinite(ee))ee=ee>>>0,isFinite(ce)?(ce=ce>>>0,Se===void 0&&(Se="utf8")):(Se=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Te=this.length-ee;if((ce===void 0||ce>Te)&&(ce=Te),E.length>0&&(ce<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");Se||(Se="utf8");let Ee=!1;for(;;)switch(Se){case"hex":return A(this,E,ee,ce);case"utf8":case"utf-8":return R(this,E,ee,ce);case"ascii":case"latin1":case"binary":return L(this,E,ee,ce);case"base64":return H(this,E,ee,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,E,ee,ce);default:if(Ee)throw new TypeError("Unknown encoding: "+Se);Se=(""+Se).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(E,ee,ce){return ee===0&&ce===E.length?t.fromByteArray(E):t.fromByteArray(E.slice(ee,ce))}function N(E,ee,ce){ce=Math.min(E.length,ce);const Se=[];let Te=ee;for(;Te<ce;){const Ee=E[Te];let Ne=null,nt=Ee>239?4:Ee>223?3:Ee>191?2:1;if(Te+nt<=ce){let rt,pt,lt,Ct;switch(nt){case 1:Ee<128&&(Ne=Ee);break;case 2:rt=E[Te+1],(rt&192)===128&&(Ct=(Ee&31)<<6|rt&63,Ct>127&&(Ne=Ct));break;case 3:rt=E[Te+1],pt=E[Te+2],(rt&192)===128&&(pt&192)===128&&(Ct=(Ee&15)<<12|(rt&63)<<6|pt&63,Ct>2047&&(Ct<55296||Ct>57343)&&(Ne=Ct));break;case 4:rt=E[Te+1],pt=E[Te+2],lt=E[Te+3],(rt&192)===128&&(pt&192)===128&&(lt&192)===128&&(Ct=(Ee&15)<<18|(rt&63)<<12|(pt&63)<<6|lt&63,Ct>65535&&Ct<1114112&&(Ne=Ct))}}Ne===null?(Ne=65533,nt=1):Ne>65535&&(Ne-=65536,Se.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),Se.push(Ne),Te+=nt}return te(Se)}const Y=4096;function te(E){const ee=E.length;if(ee<=Y)return String.fromCharCode.apply(String,E);let ce="",Se=0;for(;Se<ee;)ce+=String.fromCharCode.apply(String,E.slice(Se,Se+=Y));return ce}function se(E,ee,ce){let Se="";ce=Math.min(E.length,ce);for(let Te=ee;Te<ce;++Te)Se+=String.fromCharCode(E[Te]&127);return Se}function X(E,ee,ce){let Se="";ce=Math.min(E.length,ce);for(let Te=ee;Te<ce;++Te)Se+=String.fromCharCode(E[Te]);return Se}function ue(E,ee,ce){const Se=E.length;(!ee||ee<0)&&(ee=0),(!ce||ce<0||ce>Se)&&(ce=Se);let Te="";for(let Ee=ee;Ee<ce;++Ee)Te+=Ce[E[Ee]];return Te}function Z(E,ee,ce){const Se=E.slice(ee,ce);let Te="";for(let Ee=0;Ee<Se.length-1;Ee+=2)Te+=String.fromCharCode(Se[Ee]+Se[Ee+1]*256);return Te}s.prototype.slice=function(E,ee){const ce=this.length;E=~~E,ee=ee===void 0?ce:~~ee,E<0?(E+=ce,E<0&&(E=0)):E>ce&&(E=ce),ee<0?(ee+=ce,ee<0&&(ee=0)):ee>ce&&(ee=ce),ee<E&&(ee=E);const Se=this.subarray(E,ee);return Object.setPrototypeOf(Se,s.prototype),Se};function I(E,ee,ce){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+ee>ce)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E],Te=1,Ee=0;for(;++Ee<ee&&(Te*=256);)Se+=this[E+Ee]*Te;return Se},s.prototype.readUintBE=s.prototype.readUIntBE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E+--ee],Te=1;for(;ee>0&&(Te*=256);)Se+=this[E+--ee]*Te;return Se},s.prototype.readUint8=s.prototype.readUInt8=function(E,ee){return E=E>>>0,ee||I(E,1,this.length),this[E]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(E,ee){return E=E>>>0,ee||I(E,2,this.length),this[E]|this[E+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(E,ee){return E=E>>>0,ee||I(E,2,this.length),this[E]<<8|this[E+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},s.prototype.readBigUInt64LE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=ee+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,Te=this[++E]+this[++E]*2**8+this[++E]*2**16+ce*2**24;return BigInt(Se)+(BigInt(Te)<<BigInt(32))}),s.prototype.readBigUInt64BE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=ee*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],Te=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+ce;return(BigInt(Se)<<BigInt(32))+BigInt(Te)}),s.prototype.readIntLE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=this[E],Te=1,Ee=0;for(;++Ee<ee&&(Te*=256);)Se+=this[E+Ee]*Te;return Te*=128,Se>=Te&&(Se-=Math.pow(2,8*ee)),Se},s.prototype.readIntBE=function(E,ee,ce){E=E>>>0,ee=ee>>>0,ce||I(E,ee,this.length);let Se=ee,Te=1,Ee=this[E+--Se];for(;Se>0&&(Te*=256);)Ee+=this[E+--Se]*Te;return Te*=128,Ee>=Te&&(Ee-=Math.pow(2,8*ee)),Ee},s.prototype.readInt8=function(E,ee){return E=E>>>0,ee||I(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},s.prototype.readInt16LE=function(E,ee){E=E>>>0,ee||I(E,2,this.length);const ce=this[E]|this[E+1]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt16BE=function(E,ee){E=E>>>0,ee||I(E,2,this.length);const ce=this[E+1]|this[E]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt32LE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},s.prototype.readInt32BE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},s.prototype.readBigInt64LE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(ce<<24);return(BigInt(Se)<<BigInt(32))+BigInt(ee+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),s.prototype.readBigInt64BE=Re(function(E){E=E>>>0,oe(E,"offset");const ee=this[E],ce=this[E+7];(ee===void 0||ce===void 0)&&Q(E,this.length-8);const Se=(ee<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(Se)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+ce)}),s.prototype.readFloatLE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),a.read(this,E,!0,23,4)},s.prototype.readFloatBE=function(E,ee){return E=E>>>0,ee||I(E,4,this.length),a.read(this,E,!1,23,4)},s.prototype.readDoubleLE=function(E,ee){return E=E>>>0,ee||I(E,8,this.length),a.read(this,E,!0,52,8)},s.prototype.readDoubleBE=function(E,ee){return E=E>>>0,ee||I(E,8,this.length),a.read(this,E,!1,52,8)};function W(E,ee,ce,Se,Te,Ee){if(!s.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Te||ee<Ee)throw new RangeError('"value" argument is out of bounds');if(ce+Se>E.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,ce=ce>>>0,!Se){const Ne=Math.pow(2,8*ce)-1;W(this,E,ee,ce,Ne,0)}let Te=1,Ee=0;for(this[ee]=E&255;++Ee<ce&&(Te*=256);)this[ee+Ee]=E/Te&255;return ee+ce},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,ce=ce>>>0,!Se){const Ne=Math.pow(2,8*ce)-1;W(this,E,ee,ce,Ne,0)}let Te=ce-1,Ee=1;for(this[ee+Te]=E&255;--Te>=0&&(Ee*=256);)this[ee+Te]=E/Ee&255;return ee+ce},s.prototype.writeUint8=s.prototype.writeUInt8=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,1,255,0),this[ee]=E&255,ee+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,65535,0),this[ee]=E&255,this[ee+1]=E>>>8,ee+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,65535,0),this[ee]=E>>>8,this[ee+1]=E&255,ee+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,4294967295,0),this[ee+3]=E>>>24,this[ee+2]=E>>>16,this[ee+1]=E>>>8,this[ee]=E&255,ee+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,4294967295,0),this[ee]=E>>>24,this[ee+1]=E>>>16,this[ee+2]=E>>>8,this[ee+3]=E&255,ee+4};function q(E,ee,ce,Se,Te){$(ee,Se,Te,E,ce,7);let Ee=Number(ee&BigInt(4294967295));E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee,Ee=Ee>>8,E[ce++]=Ee;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,Ne=Ne>>8,E[ce++]=Ne,ce}function B(E,ee,ce,Se,Te){$(ee,Se,Te,E,ce,7);let Ee=Number(ee&BigInt(4294967295));E[ce+7]=Ee,Ee=Ee>>8,E[ce+6]=Ee,Ee=Ee>>8,E[ce+5]=Ee,Ee=Ee>>8,E[ce+4]=Ee;let Ne=Number(ee>>BigInt(32)&BigInt(4294967295));return E[ce+3]=Ne,Ne=Ne>>8,E[ce+2]=Ne,Ne=Ne>>8,E[ce+1]=Ne,Ne=Ne>>8,E[ce]=Ne,ce+8}s.prototype.writeBigUInt64LE=Re(function(E,ee=0){return q(this,E,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Re(function(E,ee=0){return B(this,E,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,!Se){const nt=Math.pow(2,8*ce-1);W(this,E,ee,ce,nt-1,-nt)}let Te=0,Ee=1,Ne=0;for(this[ee]=E&255;++Te<ce&&(Ee*=256);)E<0&&Ne===0&&this[ee+Te-1]!==0&&(Ne=1),this[ee+Te]=(E/Ee>>0)-Ne&255;return ee+ce},s.prototype.writeIntBE=function(E,ee,ce,Se){if(E=+E,ee=ee>>>0,!Se){const nt=Math.pow(2,8*ce-1);W(this,E,ee,ce,nt-1,-nt)}let Te=ce-1,Ee=1,Ne=0;for(this[ee+Te]=E&255;--Te>=0&&(Ee*=256);)E<0&&Ne===0&&this[ee+Te+1]!==0&&(Ne=1),this[ee+Te]=(E/Ee>>0)-Ne&255;return ee+ce},s.prototype.writeInt8=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,1,127,-128),E<0&&(E=255+E+1),this[ee]=E&255,ee+1},s.prototype.writeInt16LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,32767,-32768),this[ee]=E&255,this[ee+1]=E>>>8,ee+2},s.prototype.writeInt16BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,2,32767,-32768),this[ee]=E>>>8,this[ee+1]=E&255,ee+2},s.prototype.writeInt32LE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,2147483647,-2147483648),this[ee]=E&255,this[ee+1]=E>>>8,this[ee+2]=E>>>16,this[ee+3]=E>>>24,ee+4},s.prototype.writeInt32BE=function(E,ee,ce){return E=+E,ee=ee>>>0,ce||W(this,E,ee,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[ee]=E>>>24,this[ee+1]=E>>>16,this[ee+2]=E>>>8,this[ee+3]=E&255,ee+4},s.prototype.writeBigInt64LE=Re(function(E,ee=0){return q(this,E,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Re(function(E,ee=0){return B(this,E,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(E,ee,ce,Se,Te,Ee){if(ce+Se>E.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function F(E,ee,ce,Se,Te){return ee=+ee,ce=ce>>>0,Te||D(E,ee,ce,4),a.write(E,ee,ce,Se,23,4),ce+4}s.prototype.writeFloatLE=function(E,ee,ce){return F(this,E,ee,!0,ce)},s.prototype.writeFloatBE=function(E,ee,ce){return F(this,E,ee,!1,ce)};function re(E,ee,ce,Se,Te){return ee=+ee,ce=ce>>>0,Te||D(E,ee,ce,8),a.write(E,ee,ce,Se,52,8),ce+8}s.prototype.writeDoubleLE=function(E,ee,ce){return re(this,E,ee,!0,ce)},s.prototype.writeDoubleBE=function(E,ee,ce){return re(this,E,ee,!1,ce)},s.prototype.copy=function(E,ee,ce,Se){if(!s.isBuffer(E))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!Se&&Se!==0&&(Se=this.length),ee>=E.length&&(ee=E.length),ee||(ee=0),Se>0&&Se<ce&&(Se=ce),Se===ce||E.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("sourceEnd out of bounds");Se>this.length&&(Se=this.length),E.length-ee<Se-ce&&(Se=E.length-ee+ce);const Te=Se-ce;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,ce,Se):Uint8Array.prototype.set.call(E,this.subarray(ce,Se),ee),Te},s.prototype.fill=function(E,ee,ce,Se){if(typeof E=="string"){if(typeof ee=="string"?(Se=ee,ee=0,ce=this.length):typeof ce=="string"&&(Se=ce,ce=this.length),Se!==void 0&&typeof Se!="string")throw new TypeError("encoding must be a string");if(typeof Se=="string"&&!s.isEncoding(Se))throw new TypeError("Unknown encoding: "+Se);if(E.length===1){const Ee=E.charCodeAt(0);(Se==="utf8"&&Ee<128||Se==="latin1")&&(E=Ee)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(ee<0||this.length<ee||this.length<ce)throw new RangeError("Out of range index");if(ce<=ee)return this;ee=ee>>>0,ce=ce===void 0?this.length:ce>>>0,E||(E=0);let Te;if(typeof E=="number")for(Te=ee;Te<ce;++Te)this[Te]=E;else{const Ee=s.isBuffer(E)?E:s.from(E,Se),Ne=Ee.length;if(Ne===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(Te=0;Te<ce-ee;++Te)this[Te+ee]=Ee[Te%Ne]}return this};const le={};function be(E,ee,ce){le[E]=class extends ce{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,delete this.name}get code(){return E}set code(Se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Se,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}be("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),be("ERR_INVALID_ARG_TYPE",function(E,ee){return`The "${E}" argument must be of type number. Received type ${typeof ee}`},TypeError),be("ERR_OUT_OF_RANGE",function(E,ee,ce){let Se=`The value of "${E}" is out of range.`,Te=ce;return Number.isInteger(ce)&&Math.abs(ce)>2**32?Te=ke(String(ce)):typeof ce=="bigint"&&(Te=String(ce),(ce>BigInt(2)**BigInt(32)||ce<-(BigInt(2)**BigInt(32)))&&(Te=ke(Te)),Te+="n"),Se+=` It must be ${ee}. Received ${Te}`,Se},RangeError);function ke(E){let ee="",ce=E.length;const Se=E[0]==="-"?1:0;for(;ce>=Se+4;ce-=3)ee=`_${E.slice(ce-3,ce)}${ee}`;return`${E.slice(0,ce)}${ee}`}function M(E,ee,ce){oe(ee,"offset"),(E[ee]===void 0||E[ee+ce]===void 0)&&Q(ee,E.length-(ce+1))}function $(E,ee,ce,Se,Te,Ee){if(E>ce||E<ee){const Ne=typeof ee=="bigint"?"n":"";let nt;throw ee===0||ee===BigInt(0)?nt=`>= 0${Ne} and < 2${Ne} ** ${(Ee+1)*8}${Ne}`:nt=`>= -(2${Ne} ** ${(Ee+1)*8-1}${Ne}) and < 2 ** ${(Ee+1)*8-1}${Ne}`,new le.ERR_OUT_OF_RANGE("value",nt,E)}M(Se,Te,Ee)}function oe(E,ee){if(typeof E!="number")throw new le.ERR_INVALID_ARG_TYPE(ee,"number",E)}function Q(E,ee,ce){throw Math.floor(E)!==E?(oe(E,ce),new le.ERR_OUT_OF_RANGE("offset","an integer",E)):ee<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ee}`,E)}const de=/[^+/0-9A-Za-z-_]/g;function pe(E){if(E=E.split("=")[0],E=E.trim().replace(de,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function J(E,ee){ee=ee||1/0;let ce;const Se=E.length;let Te=null;const Ee=[];for(let Ne=0;Ne<Se;++Ne){if(ce=E.charCodeAt(Ne),ce>55295&&ce<57344){if(!Te){if(ce>56319){(ee-=3)>-1&&Ee.push(239,191,189);continue}else if(Ne+1===Se){(ee-=3)>-1&&Ee.push(239,191,189);continue}Te=ce;continue}if(ce<56320){(ee-=3)>-1&&Ee.push(239,191,189),Te=ce;continue}ce=(Te-55296<<10|ce-56320)+65536}else Te&&(ee-=3)>-1&&Ee.push(239,191,189);if(Te=null,ce<128){if((ee-=1)<0)break;Ee.push(ce)}else if(ce<2048){if((ee-=2)<0)break;Ee.push(ce>>6|192,ce&63|128)}else if(ce<65536){if((ee-=3)<0)break;Ee.push(ce>>12|224,ce>>6&63|128,ce&63|128)}else if(ce<1114112){if((ee-=4)<0)break;Ee.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,ce&63|128)}else throw new Error("Invalid code point")}return Ee}function ae(E){const ee=[];for(let ce=0;ce<E.length;++ce)ee.push(E.charCodeAt(ce)&255);return ee}function ne(E,ee){let ce,Se,Te;const Ee=[];for(let Ne=0;Ne<E.length&&!((ee-=2)<0);++Ne)ce=E.charCodeAt(Ne),Se=ce>>8,Te=ce%256,Ee.push(Te),Ee.push(Se);return Ee}function ve(E){return t.toByteArray(pe(E))}function me(E,ee,ce,Se){let Te;for(Te=0;Te<Se&&!(Te+ce>=ee.length||Te>=E.length);++Te)ee[Te+ce]=E[Te];return Te}function ge(E,ee){return E instanceof ee||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===ee.name}function je(E){return E!==E}const Ce=(function(){const E="0123456789abcdef",ee=new Array(256);for(let ce=0;ce<16;++ce){const Se=ce*16;for(let Te=0;Te<16;++Te)ee[Se+Te]=E[ce]+E[Te]}return ee})();function Re(E){return typeof BigInt>"u"?tt:E}function tt(){throw new Error("BigInt not supported")}})(Noe)),Noe}const Hoe=AU(Mne);var y7,Koe;function Xlt(){if(Koe)return y7;Koe=1;function e(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(v);g&&(y=y.filter(function(k){return Object.getOwnPropertyDescriptor(v,k).enumerable})),b.push.apply(b,y)}return b}function t(v){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{};g%2?e(Object(b),!0).forEach(function(y){a(v,y,b[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(b)):e(Object(b)).forEach(function(y){Object.defineProperty(v,y,Object.getOwnPropertyDescriptor(b,y))})}return v}function a(v,g,b){return g=o(g),g in v?Object.defineProperty(v,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[g]=b,v}function r(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function n(v,g){for(var b=0;b<g.length;b++){var y=g[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,o(y.key),y)}}function i(v,g,b){return g&&n(v.prototype,g),Object.defineProperty(v,"prototype",{writable:!1}),v}function o(v){var g=s(v,"string");return typeof g=="symbol"?g:String(g)}function s(v,g){if(typeof v!="object"||v===null)return v;var b=v[Symbol.toPrimitive];if(b!==void 0){var y=b.call(v,g);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=G0(),c=l.Buffer,u=Hoe,d=u.inspect,h=d&&d.custom||"inspect";function m(v,g,b){c.prototype.copy.call(v,g,b)}return y7=(function(){function v(){r(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(g){var b={data:g,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(g){var b={data:g,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var b=this.head,y=""+b.data;b=b.next;)y+=g+b.data;return y}},{key:"concat",value:function(g){if(this.length===0)return c.alloc(0);for(var b=c.allocUnsafe(g>>>0),y=this.head,k=0;y;)m(y.data,b,k),k+=y.data.length,y=y.next;return b}},{key:"consume",value:function(g,b){var y;return g<this.head.data.length?(y=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?y=this.shift():y=b?this._getString(g):this._getBuffer(g),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var b=this.head,y=1,k=b.data;for(g-=k.length;b=b.next;){var O=b.data,C=g>O.length?O.length:g;if(C===O.length?k+=O:k+=O.slice(0,g),g-=C,g===0){C===O.length?(++y,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=O.slice(C));break}++y}return this.length-=y,k}},{key:"_getBuffer",value:function(g){var b=c.allocUnsafe(g),y=this.head,k=1;for(y.data.copy(b),g-=y.data.length;y=y.next;){var O=y.data,C=g>O.length?O.length:g;if(O.copy(b,b.length-g,0,C),g-=C,g===0){C===O.length?(++k,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=O.slice(C));break}++k}return this.length-=k,b}},{key:h,value:function(g,b){return d(this,t(t({},b),{},{depth:0,customInspect:!1}))}}]),v})(),y7}var k7,Foe;function Goe(){if(Foe)return k7;Foe=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 k7={destroy:e,undestroy:r,errorOrDestroy:i},k7}var x7={},qoe;function bb(){if(qoe)return x7;qoe=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,v){return typeof l=="string"?l:l(h,m,v)}var d=(function(h){e(m,h);function m(v,g,b){return h.call(this,u(v,g,b))||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"),x7.codes=t,x7}var w7,Qoe;function Uoe(){if(Qoe)return w7;Qoe=1;var e=bb().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 w7={getHighWaterMark:a},w7}var O7,Woe;function Ylt(){if(Woe)return O7;Woe=1,O7=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 O7}var S7,Zoe;function Joe(){if(Zoe)return S7;Zoe=1,S7=A;function e(F){var re=this;this.next=null,this.entry=null,this.finish=function(){D(re,F)}}var t;A.WritableState=S;var a={deprecate:Ylt()},r=Doe(),n=G0().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(F){return n.from(F)}function s(F){return n.isBuffer(F)||F instanceof i}var l=Goe(),c=Uoe(),u=c.getHighWaterMark,d=bb().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,O=d.ERR_UNKNOWN_ENCODING,C=l.errorOrDestroy;function w(){}function S(F,re,le){t=t||yb(),F=F||{},typeof le!="boolean"&&(le=re instanceof t),this.objectMode=!!F.objectMode,le&&(this.objectMode=this.objectMode||!!F.writableObjectMode),this.highWaterMark=u(this,F,"writableHighWaterMark",le),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=F.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=F.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){te(re,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}S.prototype.getBuffer=function(){for(var F=this.bufferedRequest,re=[];F;)re.push(F),F=F.next;return re},(function(){try{Object.defineProperty(S.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(A,Symbol.hasInstance,{value:function(F){return j.call(this,F)?!0:this!==A?!1:F&&F._writableState instanceof S}})):j=function(F){return F instanceof this};function A(F){t=t||yb();var re=this instanceof t;if(!re&&!j.call(A,this))return new A(F);this._writableState=new S(F,this,re),this.writable=!0,F&&(typeof F.write=="function"&&(this._write=F.write),typeof F.writev=="function"&&(this._writev=F.writev),typeof F.destroy=="function"&&(this._destroy=F.destroy),typeof F.final=="function"&&(this._final=F.final)),r.call(this)}A.prototype.pipe=function(){C(this,new g)};function R(F,re){var le=new k;C(F,le),process.nextTick(re,le)}function L(F,re,le,be){var ke;return le===null?ke=new y:typeof le!="string"&&!re.objectMode&&(ke=new h("chunk",["string","Buffer"],le)),ke?(C(F,ke),process.nextTick(be,ke),!1):!0}A.prototype.write=function(F,re,le){var be=this._writableState,ke=!1,M=!be.objectMode&&s(F);return M&&!n.isBuffer(F)&&(F=o(F)),typeof re=="function"&&(le=re,re=null),M?re="buffer":re||(re=be.defaultEncoding),typeof le!="function"&&(le=w),be.ending?R(this,le):(M||L(this,be,F,le))&&(be.pendingcb++,ke=_(this,be,M,F,re,le)),ke},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var F=this._writableState;F.corked&&(F.corked--,!F.writing&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&ue(this,F))},A.prototype.setDefaultEncoding=function(F){if(typeof F=="string"&&(F=F.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((F+"").toLowerCase())>-1))throw new O(F);return this._writableState.defaultEncoding=F,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function H(F,re,le){return!F.objectMode&&F.decodeStrings!==!1&&typeof re=="string"&&(re=n.from(re,le)),re}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _(F,re,le,be,ke,M){if(!le){var $=H(re,be,ke);be!==$&&(le=!0,ke="buffer",be=$)}var oe=re.objectMode?1:be.length;re.length+=oe;var Q=re.length<re.highWaterMark;if(Q||(re.needDrain=!0),re.writing||re.corked){var de=re.lastBufferedRequest;re.lastBufferedRequest={chunk:be,encoding:ke,isBuf:le,callback:M,next:null},de?de.next=re.lastBufferedRequest:re.bufferedRequest=re.lastBufferedRequest,re.bufferedRequestCount+=1}else G(F,re,!1,oe,be,ke,M);return Q}function G(F,re,le,be,ke,M,$){re.writelen=be,re.writecb=$,re.writing=!0,re.sync=!0,re.destroyed?re.onwrite(new b("write")):le?F._writev(ke,re.onwrite):F._write(ke,M,re.onwrite),re.sync=!1}function N(F,re,le,be,ke){--re.pendingcb,le?(process.nextTick(ke,be),process.nextTick(q,F,re),F._writableState.errorEmitted=!0,C(F,be)):(ke(be),F._writableState.errorEmitted=!0,C(F,be),q(F,re))}function Y(F){F.writing=!1,F.writecb=null,F.length-=F.writelen,F.writelen=0}function te(F,re){var le=F._writableState,be=le.sync,ke=le.writecb;if(typeof ke!="function")throw new v;if(Y(le),re)N(F,le,be,re,ke);else{var M=Z(le)||F.destroyed;!M&&!le.corked&&!le.bufferProcessing&&le.bufferedRequest&&ue(F,le),be?process.nextTick(se,F,le,M,ke):se(F,le,M,ke)}}function se(F,re,le,be){le||X(F,re),re.pendingcb--,be(),q(F,re)}function X(F,re){re.length===0&&re.needDrain&&(re.needDrain=!1,F.emit("drain"))}function ue(F,re){re.bufferProcessing=!0;var le=re.bufferedRequest;if(F._writev&&le&&le.next){var be=re.bufferedRequestCount,ke=new Array(be),M=re.corkedRequestsFree;M.entry=le;for(var $=0,oe=!0;le;)ke[$]=le,le.isBuf||(oe=!1),le=le.next,$+=1;ke.allBuffers=oe,G(F,re,!0,re.length,ke,"",M.finish),re.pendingcb++,re.lastBufferedRequest=null,M.next?(re.corkedRequestsFree=M.next,M.next=null):re.corkedRequestsFree=new e(re),re.bufferedRequestCount=0}else{for(;le;){var Q=le.chunk,de=le.encoding,pe=le.callback,J=re.objectMode?1:Q.length;if(G(F,re,!1,J,Q,de,pe),le=le.next,re.bufferedRequestCount--,re.writing)break}le===null&&(re.lastBufferedRequest=null)}re.bufferedRequest=le,re.bufferProcessing=!1}A.prototype._write=function(F,re,le){le(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(F,re,le){var be=this._writableState;return typeof F=="function"?(le=F,F=null,re=null):typeof re=="function"&&(le=re,re=null),F!=null&&this.write(F,re),be.corked&&(be.corked=1,this.uncork()),be.ending||B(this,be,le),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Z(F){return F.ending&&F.length===0&&F.bufferedRequest===null&&!F.finished&&!F.writing}function I(F,re){F._final(function(le){re.pendingcb--,le&&C(F,le),re.prefinished=!0,F.emit("prefinish"),q(F,re)})}function W(F,re){!re.prefinished&&!re.finalCalled&&(typeof F._final=="function"&&!re.destroyed?(re.pendingcb++,re.finalCalled=!0,process.nextTick(I,F,re)):(re.prefinished=!0,F.emit("prefinish")))}function q(F,re){var le=Z(re);if(le&&(W(F,re),re.pendingcb===0&&(re.finished=!0,F.emit("finish"),re.autoDestroy))){var be=F._readableState;(!be||be.autoDestroy&&be.endEmitted)&&F.destroy()}return le}function B(F,re,le){re.ending=!0,q(F,re),le&&(re.finished?process.nextTick(le):F.once("finish",le)),re.ended=!0,F.writable=!1}function D(F,re,le){var be=F.entry;for(F.entry=null;be;){var ke=be.callback;re.pendingcb--,ke(le),be=be.next}re.corkedRequestsFree.next=F}return Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(F){this._writableState&&(this._writableState.destroyed=F)}}),A.prototype.destroy=l.destroy,A.prototype._undestroy=l.undestroy,A.prototype._destroy=function(F,re){re(F)},S7}var z7,Xoe;function yb(){if(Xoe)return z7;Xoe=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};z7=o;for(var t=sse(),a=Joe(),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)}}),z7}var C7={},j7={exports:{}},Yoe;function ect(){return Yoe||(Yoe=1,(function(e,t){var a=G0(),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)}})(j7,j7.exports)),j7.exports}var ese;function tse(){if(ese)return C7;ese=1;var e=ect().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.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(y){if(!y)return"utf8";for(var k;;)switch(y){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 y;default:if(k)return;y=(""+y).toLowerCase(),k=!0}}function r(y){var k=a(y);if(typeof k!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return k||y}C7.StringDecoder=n;function n(y){this.encoding=r(y);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=h,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=m,this.end=v,k=3;break;default:this.write=g,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(y){if(y.length===0)return"";var k,O;if(this.lastNeed){if(k=this.fillLast(y),k===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<y.length?k?k+this.text(y,O):this.text(y,O):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function o(y,k,O){var C=k.length-1;if(C<O)return 0;var w=i(k[C]);return w>=0?(w>0&&(y.lastNeed=w-1),w):--C<O||w===-2?0:(w=i(k[C]),w>=0?(w>0&&(y.lastNeed=w-2),w):--C<O||w===-2?0:(w=i(k[C]),w>=0?(w>0&&(w===2?w=0:y.lastNeed=w-3),w):0))}function s(y,k,O){if((k[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}function l(y){var k=this.lastTotal-this.lastNeed,O=s(this,y);if(O!==void 0)return O;if(this.lastNeed<=y.length)return y.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,k,0,y.length),this.lastNeed-=y.length}function c(y,k){var O=o(this,y,k);if(!this.lastNeed)return y.toString("utf8",k);this.lastTotal=O;var C=y.length-(O-this.lastNeed);return y.copy(this.lastChar,0,C),y.toString("utf8",k,C)}function u(y){var k=y&&y.length?this.write(y):"";return this.lastNeed?k+"\uFFFD":k}function d(y,k){if((y.length-k)%2===0){var O=y.toString("utf16le",k);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",k,y.length-1)}function h(y){var k=y&&y.length?this.write(y):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,O)}return k}function m(y,k){var O=(y.length-k)%3;return O===0?y.toString("base64",k):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",k,y.length-O))}function v(y){var k=y&&y.length?this.write(y):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function g(y){return y.toString(this.encoding)}function b(y){return y&&y.length?this.write(y):""}return C7}var P7,ase;function A7(){if(ase)return P7;ase=1;var e=bb().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,v=function(){l=!1,m=!0,c||s.call(i)},g=function(k){s.call(i,k)},b=function(){var k;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},y=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",b),i.req?y():i.on("request",y)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),o.error!==!1&&i.on("error",g),i.on("close",b),function(){i.removeListener("complete",h),i.removeListener("abort",b),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",g),i.removeListener("close",b)}}return P7=n,P7}var T7,rse;function tct(){if(rse)return T7;rse=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 S=w.call(O,C);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}var n=A7(),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 v(O){process.nextTick(m,O)}function g(O,C){return function(w,S){O.then(function(){if(C[l]){w(h(void 0,!0));return}C[u](w,S)},S)}}var b=Object.getPrototypeOf(function(){}),y=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(A,R){process.nextTick(function(){O[s]?R(O[s]):A(h(void 0,!0))})});var w=this[c],S;if(w)S=new Promise(g(w,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));S=new Promise(this[u])}return this[c]=S,S}},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(S){if(S){w(S);return}C(h(void 0,!0))})})}),e),b),k=function(O){var C,w=Object.create(y,(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(S,j){var A=w[d].read();A?(w[c]=null,w[i]=null,w[o]=null,S(h(A,!1))):(w[i]=S,w[o]=j)},writable:!0}),C));return w[c]=null,n(O,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=w[o];j!==null&&(w[c]=null,w[i]=null,w[o]=null,j(S)),w[s]=S;return}var A=w[i];A!==null&&(w[c]=null,w[i]=null,w[o]=null,A(h(void 0,!0))),w[l]=!0}),O.on("readable",v.bind(null,w)),w};return T7=k,T7}var nse,ise;function act(){return ise||(ise=1,nse=function(){throw new Error("Readable.from is not available in the browser")}),nse}var M7,ose;function sse(){if(ose)return M7;ose=1,M7=R;var e;R.ReadableState=A;var t=function(M,$){return M.listeners($).length},a=Doe(),r=G0().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(M){return r.from(M)}function o(M){return r.isBuffer(M)||M instanceof n}var s=Hoe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Xlt(),u=Goe(),d=Uoe(),h=d.getHighWaterMark,m=bb().codes,v=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,O,C,w=u.errorOrDestroy,S=["error","close","destroy","pause","resume"];function j(M,$,oe){if(typeof M.prependListener=="function")return M.prependListener($,oe);!M._events||!M._events[$]?M.on($,oe):Array.isArray(M._events[$])?M._events[$].unshift(oe):M._events[$]=[oe,M._events[$]]}function A(M,$,oe){e=e||yb(),M=M||{},typeof oe!="boolean"&&(oe=$ instanceof e),this.objectMode=!!M.objectMode,oe&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=h(this,M,"readableHighWaterMark",oe),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=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(k||(k=tse().StringDecoder),this.decoder=new k(M.encoding),this.encoding=M.encoding)}function R(M){if(e=e||yb(),!(this instanceof R))return new R(M);var $=this instanceof e;this._readableState=new A(M,this,$),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),a.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),R.prototype.destroy=u.destroy,R.prototype._undestroy=u.undestroy,R.prototype._destroy=function(M,$){$(M)},R.prototype.push=function(M,$){var oe=this._readableState,Q;return oe.objectMode?Q=!0:typeof M=="string"&&($=$||oe.defaultEncoding,$!==oe.encoding&&(M=r.from(M,$),$=""),Q=!0),L(this,M,$,!1,Q)},R.prototype.unshift=function(M){return L(this,M,null,!0,!1)};function L(M,$,oe,Q,de){l("readableAddChunk",$);var pe=M._readableState;if($===null)pe.reading=!1,te(M,pe);else{var J;if(de||(J=_(pe,$)),J)w(M,J);else if(pe.objectMode||$&&$.length>0)if(typeof $!="string"&&!pe.objectMode&&Object.getPrototypeOf($)!==r.prototype&&($=i($)),Q)pe.endEmitted?w(M,new y):H(M,pe,$,!0);else if(pe.ended)w(M,new g);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!oe?($=pe.decoder.write($),pe.objectMode||$.length!==0?H(M,pe,$,!1):ue(M,pe)):H(M,pe,$,!1)}else Q||(pe.reading=!1,ue(M,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function H(M,$,oe,Q){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,M.emit("data",oe)):($.length+=$.objectMode?1:oe.length,Q?$.buffer.unshift(oe):$.buffer.push(oe),$.needReadable&&se(M)),ue(M,$)}function _(M,$){var oe;return!o($)&&typeof $!="string"&&$!==void 0&&!M.objectMode&&(oe=new v("chunk",["string","Buffer","Uint8Array"],$)),oe}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(M){k||(k=tse().StringDecoder);var $=new k(M);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,Q="";oe!==null;)Q+=$.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var G=1073741824;function N(M){return M>=G?M=G:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function Y(M,$){return M<=0||$.length===0&&$.ended?0:$.objectMode?1:M!==M?$.flowing&&$.length?$.buffer.head.data.length:$.length:(M>$.highWaterMark&&($.highWaterMark=N(M)),M<=$.length?M:$.ended?$.length:($.needReadable=!0,0))}R.prototype.read=function(M){l("read",M),M=parseInt(M,10);var $=this._readableState,oe=M;if(M!==0&&($.emittedReadable=!1),M===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return l("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?le(this):se(this),null;if(M=Y(M,$),M===0&&$.ended)return $.length===0&&le(this),null;var Q=$.needReadable;l("need readable",Q),($.length===0||$.length-M<$.highWaterMark)&&(Q=!0,l("length less than watermark",Q)),$.ended||$.reading?(Q=!1,l("reading or ended",Q)):Q&&(l("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(M=Y(oe,$)));var de;return M>0?de=re(M,$):de=null,de===null?($.needReadable=$.length<=$.highWaterMark,M=0):($.length-=M,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),oe!==M&&$.ended&&le(this)),de!==null&&this.emit("data",de),de};function te(M,$){if(l("onEofChunk"),!$.ended){if($.decoder){var oe=$.decoder.end();oe&&oe.length&&($.buffer.push(oe),$.length+=$.objectMode?1:oe.length)}$.ended=!0,$.sync?se(M):($.needReadable=!1,$.emittedReadable||($.emittedReadable=!0,X(M)))}}function se(M){var $=M._readableState;l("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(l("emitReadable",$.flowing),$.emittedReadable=!0,process.nextTick(X,M))}function X(M){var $=M._readableState;l("emitReadable_",$.destroyed,$.length,$.ended),!$.destroyed&&($.length||$.ended)&&(M.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,F(M)}function ue(M,$){$.readingMore||($.readingMore=!0,process.nextTick(Z,M,$))}function Z(M,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var oe=$.length;if(l("maybeReadMore read 0"),M.read(0),oe===$.length)break}$.readingMore=!1}R.prototype._read=function(M){w(this,new b("_read()"))},R.prototype.pipe=function(M,$){var oe=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=M;break;case 1:Q.pipes=[Q.pipes,M];break;default:Q.pipes.push(M);break}Q.pipesCount+=1,l("pipe count=%d opts=%j",Q.pipesCount,$);var de=(!$||$.end!==!1)&&M!==null&&M!==process.stderr,pe=de?ae:tt;Q.endEmitted?process.nextTick(pe):oe.once("end",pe),M.on("unpipe",J);function J(E,ee){l("onunpipe"),E===oe&&ee&&ee.hasUnpiped===!1&&(ee.hasUnpiped=!0,me())}function ae(){l("onend"),M.end()}var ne=I(oe);M.on("drain",ne);var ve=!1;function me(){l("cleanup"),M.removeListener("close",Ce),M.removeListener("finish",Re),M.removeListener("drain",ne),M.removeListener("error",je),M.removeListener("unpipe",J),oe.removeListener("end",ae),oe.removeListener("end",tt),oe.removeListener("data",ge),ve=!0,Q.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&ne()}oe.on("data",ge);function ge(E){l("ondata");var ee=M.write(E);l("dest.write",ee),ee===!1&&((Q.pipesCount===1&&Q.pipes===M||Q.pipesCount>1&&ke(Q.pipes,M)!==-1)&&!ve&&(l("false write response, pause",Q.awaitDrain),Q.awaitDrain++),oe.pause())}function je(E){l("onerror",E),tt(),M.removeListener("error",je),t(M,"error")===0&&w(M,E)}j(M,"error",je);function Ce(){M.removeListener("finish",Re),tt()}M.once("close",Ce);function Re(){l("onfinish"),M.removeListener("close",Ce),tt()}M.once("finish",Re);function tt(){l("unpipe"),oe.unpipe(M)}return M.emit("pipe",oe),Q.flowing||(l("pipe resume"),oe.resume()),M};function I(M){return function(){var $=M._readableState;l("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(M,"data")&&($.flowing=!0,F(M))}}R.prototype.unpipe=function(M){var $=this._readableState,oe={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return M&&M!==$.pipes?this:(M||(M=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,M&&M.emit("unpipe",this,oe),this);if(!M){var Q=$.pipes,de=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var pe=0;pe<de;pe++)Q[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var J=ke($.pipes,M);return J===-1?this:($.pipes.splice(J,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),M.emit("unpipe",this,oe),this)},R.prototype.on=function(M,$){var oe=a.prototype.on.call(this,M,$),Q=this._readableState;return M==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):M==="readable"&&!Q.endEmitted&&!Q.readableListening&&(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,l("on readable",Q.length,Q.reading),Q.length?se(this):Q.reading||process.nextTick(q,this)),oe},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(M,$){var oe=a.prototype.removeListener.call(this,M,$);return M==="readable"&&process.nextTick(W,this),oe},R.prototype.removeAllListeners=function(M){var $=a.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(W,this),$};function W(M){var $=M._readableState;$.readableListening=M.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:M.listenerCount("data")>0&&M.resume()}function q(M){l("readable nexttick read 0"),M.read(0)}R.prototype.resume=function(){var M=this._readableState;return M.flowing||(l("resume"),M.flowing=!M.readableListening,B(this,M)),M.paused=!1,this};function B(M,$){$.resumeScheduled||($.resumeScheduled=!0,process.nextTick(D,M,$))}function D(M,$){l("resume",$.reading),$.reading||M.read(0),$.resumeScheduled=!1,M.emit("resume"),F(M),$.flowing&&!$.reading&&M.read(0)}R.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 F(M){var $=M._readableState;for(l("flow",$.flowing);$.flowing&&M.read()!==null;);}R.prototype.wrap=function(M){var $=this,oe=this._readableState,Q=!1;M.on("end",function(){if(l("wrapped end"),oe.decoder&&!oe.ended){var J=oe.decoder.end();J&&J.length&&$.push(J)}$.push(null)}),M.on("data",function(J){if(l("wrapped data"),oe.decoder&&(J=oe.decoder.write(J)),!(oe.objectMode&&J==null)&&!(!oe.objectMode&&(!J||!J.length))){var ae=$.push(J);ae||(Q=!0,M.pause())}});for(var de in M)this[de]===void 0&&typeof M[de]=="function"&&(this[de]=(function(J){return function(){return M[J].apply(M,arguments)}})(de));for(var pe=0;pe<S.length;pe++)M.on(S[pe],this.emit.bind(this,S[pe]));return this._read=function(J){l("wrapped _read",J),Q&&(Q=!1,M.resume())},this},typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=tct()),O(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(M){this._readableState&&(this._readableState.flowing=M)}}),R._fromList=re,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function re(M,$){if($.length===0)return null;var oe;return $.objectMode?oe=$.buffer.shift():!M||M>=$.length?($.decoder?oe=$.buffer.join(""):$.buffer.length===1?oe=$.buffer.first():oe=$.buffer.concat($.length),$.buffer.clear()):oe=$.buffer.consume(M,$.decoder),oe}function le(M){var $=M._readableState;l("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,process.nextTick(be,$,M))}function be(M,$){if(l("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,$.readable=!1,$.emit("end"),M.autoDestroy)){var oe=$._writableState;(!oe||oe.autoDestroy&&oe.finished)&&$.destroy()}}typeof Symbol=="function"&&(R.from=function(M,$){return C===void 0&&(C=act()),C(R,M,$)});function ke(M,$){for(var oe=0,Q=M.length;oe<Q;oe++)if(M[oe]===$)return oe;return-1}return M7}var E7,lse;function cse(){if(lse)return E7;lse=1,E7=s;var e=bb().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=yb();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 v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.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 v=this._readableState;(m.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.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 E7}var B7,use;function rct(){if(use)return B7;use=1,B7=t;var e=cse();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)},B7}var R7,dse;function nct(){if(dse)return R7;dse=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=bb().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,v,g){g=t(g);var b=!1;h.on("close",function(){b=!0}),e===void 0&&(e=A7()),e(h,{readable:m,writable:v},function(k){if(k)return g(k);b=!0,g()});var y=!1;return function(k){if(!b&&!y){if(y=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();g(k||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),v=0;v<h;v++)m[v]=arguments[v];var g=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var b,y=m.map(function(k,O){var C=O<m.length-1,w=O>0;return s(k,C,w,function(S){b||(b=S),S&&y.forEach(l),!C&&(y.forEach(l),g(b))})});return m.reduce(c)}return R7=d,R7}var pse;function hse(){return pse||(pse=1,(function(e,t){t=e.exports=sse(),t.Stream=t,t.Readable=t,t.Writable=Joe(),t.Duplex=yb(),t.Transform=cse(),t.PassThrough=rct(),t.finished=A7(),t.pipeline=nct()})(v7,v7.exports)),v7.exports}var mse;function fse(){if(mse)return CC;mse=1;var e=Boe(),t=mB(),a=hse(),r=CC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=CC.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 g=function(){d.read().then(function(b){if(!c._destroyed){if(l(b.done),b.done){c.push(null);return}c.push(Buffer.from(b.value)),g()}}).catch(function(b){l(!0),c._destroyed||c.emit("error",b)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(b,y){c.headers[y.toLowerCase()]=b,c.rawHeaders.push(y,b)}),e.writableStream){var u=new WritableStream({write:function(b){return l(!1),new Promise(function(y,k){c._destroyed?k():c.push(Buffer.from(b))?y():c._resumeFetch=y})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(b){l(!0),c._destroyed||c.emit("error",b)}});try{o.body.pipeTo(u).catch(function(b){l(!0),c._destroyed||c.emit("error",b)});return}catch{}}var d=o.body.getReader();g()}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(g){var b=g.match(/^([^:]+):\s*(.*)/);if(b){var y=b[1].toLowerCase();y==="set-cookie"?(c.headers[y]===void 0&&(c.headers[y]=[]),c.headers[y].push(b[2])):c.headers[y]!==void 0?c.headers[y]+=", "+b[2]:c.headers[y]=b[2],c.rawHeaders.push(b[1],b[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var v=m.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[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))},CC}var gse;function ict(){if(gse)return g7.exports;gse=1;var e=Boe(),t=mB(),a=fse(),r=hse(),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=g7.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(v){d.setHeader(v,u.headers[v])});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 v=[];if(Object.keys(h).forEach(function(k){var O=h[k].name,C=h[k].value;Array.isArray(C)?C.forEach(function(w){v.push([O,w])}):v.push([O,C])}),u._mode==="fetch"){var g=null;if(e.abortController){var b=new AbortController;g=b.signal,u._fetchAbortController=b,"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:v,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:g}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var y=u._xhr=new globalThis.XMLHttpRequest;try{y.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in y&&(y.responseType=u._mode),"withCredentials"in y&&(y.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(y.timeout=d.requestTimeout,y.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(k){y.setRequestHeader(k[0],k[1])}),u._response=null,y.onreadystatechange=function(){switch(y.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(y.onprogress=function(){u._onXHRProgress()}),y.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{y.send(m)}catch(k){process.nextTick(function(){u.emit("error",k)});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 g7.exports}var _7,vse;function oct(){if(vse)return _7;vse=1,_7=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 _7}var bse,yse;function sct(){return yse||(yse=1,bse={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"}),bse}var kse;function lct(){return kse||(kse=1,(function(e){var t=ict(),a=fse(),r=oct(),n=sct(),i=a7(),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 v=new t(s);return l&&v.on("response",l),v},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"]})(Toe)),Toe}var xse,wse;function cct(){return wse||(wse=1,xse={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},lct().STATUS_CODES)}),xse}const uct="7.0.8",dct={version:uct};var L7,Ose;function pct(){if(Ose)return L7;Ose=1;const e=vb,t=a7(),a=Flt(),r=vb,n=vb,i=SC(),o=i.jptr,s=s7().isRef,l=zC().clone,c=zC().circularClone,u=u7().recurse,d=Qlt(),h=Ult(),m=joe(),v=cct().statusCodes,g=dct.version,b="3.0.0";let y;class k extends Error{constructor($){super($),this.name="S2OError"}}function O(M,$){let oe=new k(M);if(oe.options=$,$.promise)$.promise.reject(oe);else throw oe}function C(M,$,oe){oe.warnOnly?$[oe.warnProperty||"x-s2o-warning"]=M:O(M,oe)}function w(M,$,oe){if(M.nullable&&oe.patches++,M.discriminator&&typeof M.discriminator=="string"&&(M.discriminator={propertyName:M.discriminator}),M.items&&Array.isArray(M.items)&&(M.items.length===0?M.items={}:M.items.length===1?M.items=M.items[0]:M.items={anyOf:M.items}),M.type&&Array.isArray(M.type))if(oe.patch){if(oe.patches++,M.type.length===0)delete M.type;else{M.oneOf||(M.oneOf=[]);for(let Q of M.type){let de={};if(Q==="null")M.nullable=!0;else{de.type=Q;for(let pe of m.arrayProperties)typeof M.prop<"u"&&(de[pe]=M[pe],delete M[pe])}de.type&&M.oneOf.push(de)}delete M.type,M.oneOf.length===0?delete M.oneOf:M.oneOf.length<2&&(M.type=M.oneOf[0].type,Object.keys(M.oneOf[0]).length>1&&C("Lost properties from oneOf",M,oe),delete M.oneOf)}M.type&&Array.isArray(M.type)&&M.type.length===1&&(M.type=M.type[0])}else O("(Patchable) schema type must not be an array",oe);M.type&&M.type==="null"&&(delete M.type,M.nullable=!0),M.type==="array"&&!M.items&&(M.items={}),M.type==="file"&&(M.type="string",M.format="binary"),typeof M.required=="boolean"&&(M.required&&M.name&&(typeof $.required>"u"&&($.required=[]),Array.isArray($.required)&&$.required.push(M.name)),delete M.required),M.xml&&typeof M.xml.namespace=="string"&&(M.xml.namespace||delete M.xml.namespace),typeof M.allowEmptyValue<"u"&&(oe.patches++,delete M.allowEmptyValue)}function S(M,$){if(M["x-required"]&&Array.isArray(M["x-required"])&&(M.required||(M.required=[]),M.required=M.required.concat(M["x-required"]),delete M["x-required"]),M["x-anyOf"]&&(M.anyOf=M["x-anyOf"],delete M["x-anyOf"]),M["x-oneOf"]&&(M.oneOf=M["x-oneOf"],delete M["x-oneOf"]),M["x-not"]&&(M.not=M["x-not"],delete M["x-not"]),typeof M["x-nullable"]=="boolean"&&(M.nullable=M["x-nullable"],delete M["x-nullable"]),typeof M["x-discriminator"]=="object"&&typeof M["x-discriminator"].propertyName=="string"){M.discriminator=M["x-discriminator"],delete M["x-discriminator"];for(let oe in M.discriminator.mapping){let Q=M.discriminator.mapping[oe];Q.startsWith("#/definitions/")&&(M.discriminator.mapping[oe]=Q.replace("#/definitions/","#/components/schemas/"))}}}function j(M,$){h.walkSchema(M,{},{},function(oe,Q,de){S(oe),w(oe,Q,$)})}function A(M){return M.indexOf("#")>=0?M=M.split("#")[1].split("/").pop():M=M.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(M))}function R(M,$,oe){let Q=oe.payload.options;if(s(M,$)){if(!M[$].startsWith("#/components/")){if(M[$]==="#/consumes")delete M[$],oe.parent[oe.pkey]=l(Q.openapi.consumes);else if(M[$]==="#/produces")delete M[$],oe.parent[oe.pkey]=l(Q.openapi.produces);else if(M[$].startsWith("#/definitions/")){let de=M[$].replace("#/definitions/","").split("/");const pe=i.jpunescape(de[0]);let J=y.schemas[decodeURIComponent(pe)];J?de[0]=J:C("Could not resolve reference "+M[$],M,Q),M[$]="#/components/schemas/"+de.join("/")}else if(M[$].startsWith("#/parameters/"))M[$]="#/components/parameters/"+m.sanitise(M[$].replace("#/parameters/",""));else if(M[$].startsWith("#/responses/"))M[$]="#/components/responses/"+m.sanitise(M[$].replace("#/responses/",""));else if(M[$].startsWith("#")){let de=l(i.jptr(Q.openapi,M[$]));if(de===!1)C("direct $ref not found "+M[$],M,Q);else if(Q.refmap[M[$]])M[$]=Q.refmap[M[$]];else{let pe=M[$];pe=pe.replace("/properties/headers/",""),pe=pe.replace("/properties/responses/",""),pe=pe.replace("/properties/parameters/",""),pe=pe.replace("/properties/schemas/","");let J="schemas",ae=pe.lastIndexOf("/schema");if(J=pe.indexOf("/headers/")>ae?"headers":pe.indexOf("/responses/")>ae?"responses":pe.indexOf("/example")>ae?"examples":pe.indexOf("/x-")>ae?"extensions":pe.indexOf("/parameters/")>ae?"parameters":"schemas",J==="schemas"&&j(de,Q),J!=="responses"&&J!=="extensions"){let ne=J.substr(0,J.length-1);ne==="parameter"&&de.name&&de.name===m.sanitise(de.name)&&(ne=encodeURIComponent(de.name));let ve=1;for(M["x-miro"]&&(ne=A(M["x-miro"]),ve="");i.jptr(Q.openapi,"#/components/"+J+"/"+ne+ve);)ve=ve===""?2:++ve;let me="#/components/"+J+"/"+ne+ve,ge="";J==="examples"&&(de={value:de},ge="/value"),i.jptr(Q.openapi,me,de),Q.refmap[M[$]]=me+ge,M[$]=me+ge}}}}if(delete M["x-miro"],Object.keys(M).length>1){const de=M[$],pe=oe.path.indexOf("/schema")>=0;Q.refSiblings==="preserve"||(pe&&Q.refSiblings==="allOf"?(delete M.$ref,oe.parent[oe.pkey]={allOf:[{$ref:de},M]}):oe.parent[oe.pkey]={$ref:de})}}if($==="x-ms-odata"&&typeof M[$]=="string"&&M[$].startsWith("#/")){let de=M[$].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),pe=y.schemas[decodeURIComponent(de[0])];pe?de[0]=pe:C("Could not resolve reference "+M[$],M,Q),M[$]="#/components/schemas/"+de.join("/")}}function L(M,$){for(let oe in $.refmap)i.jptr(M,oe,{$ref:$.refmap[oe]})}function H(M){for(let $ in M)for(let oe in M[$]){let Q=m.sanitise(oe);oe!==Q&&(M[$][Q]=M[$][oe],delete M[$][oe])}}function _(M,$){if(M.type==="basic"&&(M.type="http",M.scheme="basic"),M.type==="oauth2"){let oe={},Q=M.flow;M.flow==="application"&&(Q="clientCredentials"),M.flow==="accessCode"&&(Q="authorizationCode"),typeof M.authorizationUrl<"u"&&(oe.authorizationUrl=M.authorizationUrl.split("?")[0].trim()||"/"),typeof M.tokenUrl=="string"&&(oe.tokenUrl=M.tokenUrl.split("?")[0].trim()||"/"),oe.scopes=M.scopes||{},M.flows={},M.flows[Q]=oe,delete M.flow,delete M.authorizationUrl,delete M.tokenUrl,delete M.scopes,typeof M.name<"u"&&($.patch?($.patches++,delete M.name):O("(Patchable) oauth2 securitySchemes should not have name property",$))}}function G(M){return M&&!M["x-s2o-delete"]}function N(M,$){if(M.$ref)M.$ref=M.$ref.replace("#/responses/","#/components/responses/");else{M.type&&!M.schema&&(M.schema={}),M.type&&(M.schema.type=M.type),M.items&&M.items.type!=="array"&&(M.items.collectionFormat!==M.collectionFormat&&C("Nested collectionFormats are not supported",M,$),delete M.items.collectionFormat),M.type==="array"?(M.collectionFormat==="ssv"?C("collectionFormat:ssv is no longer supported for headers",M,$):M.collectionFormat==="pipes"?C("collectionFormat:pipes is no longer supported for headers",M,$):M.collectionFormat==="multi"?M.explode=!0:M.collectionFormat==="tsv"?(C("collectionFormat:tsv is no longer supported",M,$),M["x-collectionFormat"]="tsv"):M.style="simple",delete M.collectionFormat):M.collectionFormat&&($.patch?($.patches++,delete M.collectionFormat):O("(Patchable) collectionFormat is only applicable to header.type array",$)),delete M.type;for(let oe of m.parameterTypeProperties)typeof M[oe]<"u"&&(M.schema[oe]=M[oe],delete M[oe]);for(let oe of m.arrayProperties)typeof M[oe]<"u"&&(M.schema[oe]=M[oe],delete M[oe])}}function Y(M,$){if(M.$ref.indexOf("#/parameters/")>=0){let oe=M.$ref.split("#/parameters/");M.$ref=oe[0]+"#/components/parameters/"+m.sanitise(oe[1])}M.$ref.indexOf("#/definitions/")>=0&&C("Definition used as parameter",M,$)}function te(M,$){let oe={};for(let Q of Object.keys(M))oe[Q]=M[Q],Q==="parameters"&&(oe.requestBody={},$.rbname&&(oe[$.rbname]=""));return oe.requestBody={},oe}function se(M,$,oe,Q,de,pe,J){let ae={},ne=!0,ve;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(pe.consumes)||delete pe.consumes;let me=(($?$.consumes:null)||pe.consumes||[]).filter(m.uniqueOnly);if(M&&M.$ref&&typeof M.$ref=="string"){Y(M,J);let ge=decodeURIComponent(M.$ref.replace("#/components/parameters/","")),je=!1,Ce=pe.components.parameters[ge];if((!Ce||Ce["x-s2o-delete"])&&M.$ref.startsWith("#/")&&(M["x-s2o-delete"]=!0,je=!0),je){let Re=M.$ref,tt=o(pe,M.$ref);!tt&&Re.startsWith("#/")?C("Could not resolve reference "+Re,M,J):tt&&(M=tt)}}if(M&&(M.name||M.in)){typeof M["x-deprecated"]=="boolean"&&(M.deprecated=M["x-deprecated"],delete M["x-deprecated"]),typeof M["x-example"]<"u"&&(M.example=M["x-example"],delete M["x-example"]),M.in!=="body"&&!M.type&&(J.patch?(J.patches++,M.type="string"):O("(Patchable) parameter.type is mandatory for non-body parameters",J)),M.type&&typeof M.type=="object"&&M.type.$ref&&(M.type=o(pe,M.type.$ref)),M.type==="file"&&(M["x-s2o-originalType"]=M.type,ve=M.type),M.description&&typeof M.description=="object"&&M.description.$ref&&(M.description=o(pe,M.description.$ref)),M.description===null&&delete M.description;let ge=M.collectionFormat;if(M.type==="array"&&!ge&&(ge="csv"),ge&&(M.type!=="array"&&(J.patch?(J.patches++,delete M.collectionFormat):O("(Patchable) collectionFormat is only applicable to param.type array",J)),ge==="csv"&&(M.in==="query"||M.in==="cookie")&&(M.style="form",M.explode=!1),ge==="csv"&&(M.in==="path"||M.in==="header")&&(M.style="simple"),ge==="ssv"&&(M.in==="query"?M.style="spaceDelimited":C("collectionFormat:ssv is no longer supported except for in:query parameters",M,J)),ge==="pipes"&&(M.in==="query"?M.style="pipeDelimited":C("collectionFormat:pipes is no longer supported except for in:query parameters",M,J)),ge==="multi"&&(M.explode=!0),ge==="tsv"&&(C("collectionFormat:tsv is no longer supported",M,J),M["x-collectionFormat"]="tsv"),delete M.collectionFormat),M.type&&M.type!=="body"&&M.in!=="formData")if(M.items&&M.schema)C("parameter has array,items and schema",M,J);else{M.schema&&J.patches++,(!M.schema||typeof M.schema!="object")&&(M.schema={}),M.schema.type=M.type,M.items&&(M.schema.items=M.items,delete M.items,u(M.schema.items,null,function(je,Ce,Re){Ce==="collectionFormat"&&typeof je[Ce]=="string"&&(ge&&je[Ce]!==ge&&C("Nested collectionFormats are not supported",M,J),delete je[Ce])}));for(let je of m.parameterTypeProperties)typeof M[je]<"u"&&(M.schema[je]=M[je]),delete M[je]}M.schema&&j(M.schema,J),M["x-ms-skip-url-encoding"]&&M.in==="query"&&(M.allowReserved=!0,delete M["x-ms-skip-url-encoding"])}if(M&&M.in==="formData"){ne=!1,ae.content={};let ge="application/x-www-form-urlencoded";if(me.length&&me.indexOf("multipart/form-data")>=0&&(ge="multipart/form-data"),ae.content[ge]={},M.schema)ae.content[ge].schema=M.schema,M.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")));else{ae.content[ge].schema={},ae.content[ge].schema.type="object",ae.content[ge].schema.properties={},ae.content[ge].schema.properties[M.name]={};let je=ae.content[ge].schema,Ce=ae.content[ge].schema.properties[M.name];M.description&&(Ce.description=M.description),M.example&&(Ce.example=M.example),M.type&&(Ce.type=M.type);for(let Re of m.parameterTypeProperties)typeof M[Re]<"u"&&(Ce[Re]=M[Re]);M.required===!0&&(je.required||(je.required=[]),je.required.push(M.name),ae.required=!0),typeof M.default<"u"&&(Ce.default=M.default),Ce.properties&&(Ce.properties=M.properties),M.allOf&&(Ce.allOf=M.allOf),M.type==="array"&&M.items&&(Ce.items=M.items,Ce.items.collectionFormat&&delete Ce.items.collectionFormat),(ve==="file"||M["x-s2o-originalType"]==="file")&&(Ce.type="string",Ce.format="binary"),X(M,Ce)}}else M&&M.type==="file"&&(M.required&&(ae.required=M.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",X(M,ae));if(M&&M.in==="body"){ae.content={},M.name&&(ae["x-s2o-name"]=($&&$.operationId?m.sanitiseAll($.operationId):"")+("_"+M.name).toCamelCase()),M.description&&(ae.description=M.description),M.required&&(ae.required=M.required),$&&J.rbname&&M.name&&($[J.rbname]=M.name),M.schema&&M.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")):M.schema&&M.schema.type==="array"&&M.schema.items&&M.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(M.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),me.length||me.push("application/json");for(let ge of me)ae.content[ge]={},ae.content[ge].schema=l(M.schema||{}),j(ae.content[ge].schema,J);X(M,ae)}if(Object.keys(ae).length>0&&(M["x-s2o-delete"]=!0,$))if($.requestBody&&ne){$.requestBody["x-s2o-overloaded"]=!0;let ge=$.operationId||de;C("Operation "+ge+" has multiple requestBodies",$,J)}else $.requestBody||($=oe[Q]=te($,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(M&&!M["x-s2o-delete"]){delete M.type;for(let ge of m.parameterTypeProperties)delete M[ge];M.in==="path"&&(typeof M.required>"u"||M.required!==!0)&&(J.patch?(J.patches++,M.required=!0):O("(Patchable) path parameters must be required:true ["+M.name+" in "+de+"]",J))}return $}function X(M,$){for(let oe in M)oe.startsWith("x-")&&!oe.startsWith("x-s2o")&&($[oe]=M[oe])}function ue(M,$,oe,Q,de){if(!M)return!1;if(M.$ref&&typeof M.$ref=="string")M.$ref.indexOf("#/definitions/")>=0?C("definition used as response: "+M.$ref,M,de):M.$ref.startsWith("#/responses/")&&(M.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.$ref.replace("#/responses/",""))));else{if((typeof M.description>"u"||M.description===null||M.description===""&&de.patch)&&(de.patch?typeof M=="object"&&!Array.isArray(M)&&(de.patches++,M.description=v[M]||""):O("(Patchable) response.description is mandatory",de)),typeof M.schema<"u"){if(j(M.schema,de),M.schema.$ref&&typeof M.schema.$ref=="string"&&M.schema.$ref.startsWith("#/responses/")&&(M.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.schema.$ref.replace("#/responses/","")))),oe&&oe.produces&&typeof oe.produces=="string")if(de.patch)de.patches++,oe.produces=[oe.produces];else return O("(Patchable) operation.produces must be an array",de);Q.produces&&!Array.isArray(Q.produces)&&delete Q.produces;let pe=((oe?oe.produces:null)||Q.produces||[]).filter(m.uniqueOnly);pe.length||pe.push("*/*"),M.content={};for(let J of pe){if(M.content[J]={},M.content[J].schema=l(M.schema),M.examples&&M.examples[J]){let ae={};ae.value=M.examples[J],M.content[J].examples={},M.content[J].examples.response=ae,delete M.examples[J]}M.content[J].schema.type==="file"&&(M.content[J].schema={type:"string",format:"binary"})}delete M.schema}for(let pe in M.examples)M.content||(M.content={}),M.content[pe]||(M.content[pe]={}),M.content[pe].examples={},M.content[pe].examples.response={},M.content[pe].examples.response.value=M.examples[pe];if(delete M.examples,M.headers)for(let pe in M.headers)pe.toLowerCase()==="status code"?de.patch?(de.patches++,delete M.headers[pe]):O('(Patchable) "Status Code" is not a valid header',de):N(M.headers[pe],de)}}function Z(M,$,oe,Q,de){for(let pe in M){let J=M[pe];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 ne=J[ae];if(ne&&ne.parameters&&Array.isArray(ne.parameters)){if(J.parameters)for(let ve of J.parameters)typeof ve.$ref=="string"&&(Y(ve,oe),ve=o(de,ve.$ref)),!ne.parameters.find(function(me,ge,je){return me.name===ve.name&&me.in===ve.in})&&(ve.in==="formData"||ve.in==="body"||ve.type==="file")&&(ne=se(ve,ne,J,ae,pe,de,oe),oe.rbname&&ne[oe.rbname]===""&&delete ne[oe.rbname]);for(let ve of ne.parameters)ne=se(ve,ne,J,ae,ae+":"+pe,de,oe);oe.rbname&&ne[oe.rbname]===""&&delete ne[oe.rbname],oe.debug||ne.parameters&&(ne.parameters=ne.parameters.filter(G))}if(ne&&ne.security&&H(ne.security),typeof ne=="object"){if(!ne.responses){let ve={};ve.description="Default response",ne.responses={default:ve}}for(let ve in ne.responses){let me=ne.responses[ve];ue(me,ve,ne,de,oe)}}if(ne&&ne["x-servers"]&&Array.isArray(ne["x-servers"]))ne.servers=ne["x-servers"],delete ne["x-servers"];else if(ne&&ne.schemes&&ne.schemes.length){for(let ve of ne.schemes)if((!de.schemes||de.schemes.indexOf(ve)<0)&&(ne.servers||(ne.servers=[]),Array.isArray(de.servers)))for(let me of de.servers){let ge=l(me),je=t.parse(ge.url);je.protocol=ve,ge.url=je.format(),ne.servers.push(ge)}}if(oe.debug&&(ne["x-s2o-consumes"]=ne.consumes||[],ne["x-s2o-produces"]=ne.produces||[]),ne){if(delete ne.consumes,delete ne.produces,delete ne.schemes,ne["x-ms-examples"]){for(let ve in ne["x-ms-examples"]){let me=ne["x-ms-examples"][ve],ge=m.sanitiseAll(ve);if(me.parameters)for(let je in me.parameters){let Ce=me.parameters[je];for(let Re of(ne.parameters||[]).concat(J.parameters||[]))Re.$ref&&(Re=i.jptr(de,Re.$ref)),Re.name===je&&!Re.example&&(Re.examples||(Re.examples={}),Re.examples[ve]={value:Ce})}if(me.responses)for(let je in me.responses){if(me.responses[je].headers)for(let Ce in me.responses[je].headers){let Re=me.responses[je].headers[Ce];for(let tt in ne.responses[je].headers)if(tt===Ce){let E=ne.responses[je].headers[tt];E.example=Re}}if(me.responses[je].body&&(de.components.examples[ge]={value:l(me.responses[je].body)},ne.responses[je]&&ne.responses[je].content))for(let Ce in ne.responses[je].content){let Re=ne.responses[je].content[Ce];Re.examples||(Re.examples={}),Re.examples[ve]={$ref:"#/components/examples/"+ge}}}}delete ne["x-ms-examples"]}if(ne.parameters&&ne.parameters.length===0&&delete ne.parameters,ne.requestBody){let ve=ne.operationId?m.sanitiseAll(ne.operationId):m.sanitiseAll(ae+pe).toCamelCase(),me=m.sanitise(ne.requestBody["x-s2o-name"]||ve||"");delete ne.requestBody["x-s2o-name"];let ge=JSON.stringify(ne.requestBody),je=m.hash(ge);if(!Q[je]){let Re={};Re.name=me,Re.body=ne.requestBody,Re.refs=[],Q[je]=Re}let Ce="#/"+$+"/"+encodeURIComponent(i.jpescape(pe))+"/"+ae+"/requestBody";Q[je].refs.push(Ce)}}}if(J&&J.parameters){for(let ae in J.parameters){let ne=J.parameters[ae];se(ne,null,J,null,pe,de,oe)}!oe.debug&&Array.isArray(J.parameters)&&(J.parameters=J.parameters.filter(G))}}}function I(M,$){let oe={};y={schemas:{}},M.security&&H(M.security);for(let de in M.components.securitySchemes){let pe=m.sanitise(de);de!==pe&&(M.components.securitySchemes[pe]&&O("Duplicate sanitised securityScheme name "+pe,$),M.components.securitySchemes[pe]=M.components.securitySchemes[de],delete M.components.securitySchemes[de]),_(M.components.securitySchemes[pe],$)}for(let de in M.components.schemas){let pe=m.sanitiseAll(de),J="";if(de!==pe){for(;M.components.schemas[pe+J];)J=J?++J:2;M.components.schemas[pe+J]=M.components.schemas[de],delete M.components.schemas[de]}y.schemas[de]=pe+J,j(M.components.schemas[pe+J],$)}$.refmap={},u(M,{payload:{options:$}},R),L(M,$);for(let de in M.components.parameters){let pe=m.sanitise(de);de!==pe&&(M.components.parameters[pe]&&O("Duplicate sanitised parameter name "+pe,$),M.components.parameters[pe]=M.components.parameters[de],delete M.components.parameters[de]);let J=M.components.parameters[pe];se(J,null,null,null,pe,M,$)}for(let de in M.components.responses){let pe=m.sanitise(de);de!==pe&&(M.components.responses[pe]&&O("Duplicate sanitised response name "+pe,$),M.components.responses[pe]=M.components.responses[de],delete M.components.responses[de]);let J=M.components.responses[pe];if(ue(J,pe,null,M,$),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 de in M.components.requestBodies){let pe=M.components.requestBodies[de],J=JSON.stringify(pe),ae=m.hash(J),ne={};ne.name=de,ne.body=pe,ne.refs=[],oe[ae]=ne}if(Z(M.paths,"paths",$,oe,M),M["x-ms-paths"]&&Z(M["x-ms-paths"],"x-ms-paths",$,oe,M),!$.debug)for(let de in M.components.parameters)M.components.parameters[de]["x-s2o-delete"]&&delete M.components.parameters[de];$.debug&&(M["x-s2o-consumes"]=M.consumes||[],M["x-s2o-produces"]=M.produces||[]),delete M.consumes,delete M.produces,delete M.schemes;let Q=[];if(M.components.requestBodies={},!$.resolveInternal){let de=1;for(let pe in oe){let J=oe[pe];if(J.refs.length>1){let ae="";for(J.name||(J.name="requestBody",ae=de++);Q.indexOf(J.name+ae)>=0;)ae=ae?++ae:2;J.name=J.name+ae,Q.push(J.name),M.components.requestBodies[J.name]=l(J.body);for(let ne in J.refs){let ve={};ve.$ref="#/components/requestBodies/"+J.name,i.jptr(M,J.refs[ne],ve)}}}}return M.components.responses&&Object.keys(M.components.responses).length===0&&delete M.components.responses,M.components.parameters&&Object.keys(M.components.parameters).length===0&&delete M.components.parameters,M.components.examples&&Object.keys(M.components.examples).length===0&&delete M.components.examples,M.components.requestBodies&&Object.keys(M.components.requestBodies).length===0&&delete M.components.requestBodies,M.components.securitySchemes&&Object.keys(M.components.securitySchemes).length===0&&delete M.components.securitySchemes,M.components.headers&&Object.keys(M.components.headers).length===0&&delete M.components.headers,M.components.schemas&&Object.keys(M.components.schemas).length===0&&delete M.components.schemas,M.components&&Object.keys(M.components).length===0&&delete M.components,M}function W(M){return!M||!M.url||typeof M.url!="string"||(M.url=M.url.split("{{").join("{"),M.url=M.url.split("}}").join("}"),M.url.replace(/\{(.+?)\}/g,function($,oe){M.variables||(M.variables={}),M.variables[oe]={default:"unknown"}})),M}function q(M,$,oe){if(typeof M.info>"u"||M.info===null)if($.patch)$.patches++,M.info={version:"",title:""};else return oe(new k("(Patchable) info object is mandatory"));if(typeof M.info!="object"||Array.isArray(M.info))return oe(new k("info must be an object"));if(typeof M.info.title>"u"||M.info.title===null)if($.patch)$.patches++,M.info.title="";else return oe(new k("(Patchable) info.title cannot be null"));if(typeof M.info.version>"u"||M.info.version===null)if($.patch)$.patches++,M.info.version="";else return oe(new k("(Patchable) info.version cannot be null"));if(typeof M.info.version!="string")if($.patch)$.patches++,M.info.version=M.info.version.toString();else return oe(new k("(Patchable) info.version must be a string"));if(typeof M.info.logo<"u")if($.patch)$.patches++,M.info["x-logo"]=M.info.logo,delete M.info.logo;else return oe(new k("(Patchable) info should not have logo property"));if(typeof M.info.termsOfService<"u"){if(M.info.termsOfService===null)if($.patch)$.patches++,M.info.termsOfService="";else return oe(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(M.info.termsOfService)}catch{if($.patch)$.patches++,delete M.info.termsOfService;else return oe(new k("(Patchable) info.termsOfService must be a URL"))}}}function B(M,$,oe){if(typeof M.paths>"u")if($.patch)$.patches++,M.paths={};else return oe(new k("(Patchable) paths object is mandatory"))}function D(M,$){const oe=new WeakSet;u(M,{identityDetection:!0},function(Q,de,pe){typeof Q[de]=="object"&&Q[de]!==null&&(oe.has(Q[de])?$.anchors?Q[de]=l(Q[de]):O("YAML anchor or merge key at "+pe.path,$):oe.add(Q[de]))})}function F(M,$,oe){return a(oe,new Promise(function(Q,de){if(M||(M={}),$.original=M,$.text||($.text=n.stringify(M)),$.externals=[],$.externalRefs={},$.rewriteRefs=!0,$.preserveMiro=!0,$.promise={},$.promise.resolve=Q,$.promise.reject=de,$.patches=0,$.cache||($.cache={}),$.source&&($.cache[$.source]=$.original),D(M,$),M.openapi&&typeof M.openapi=="string"&&M.openapi.startsWith("3.")){$.openapi=c(M),q($.openapi,$,de),B($.openapi,$,de),d.optionalResolve($).then(function(){return $.direct?Q($.openapi):Q($)}).catch(function(J){console.warn(J),de(J)});return}if(!M.swagger||M.swagger!="2.0")return de(new k("Unsupported swagger/OpenAPI version: "+(M.openapi?M.openapi:M.swagger)));let pe=$.openapi={};if(pe.openapi=typeof $.targetVersion=="string"&&$.targetVersion.startsWith("3.")?$.targetVersion:b,$.origin){pe["x-origin"]||(pe["x-origin"]=[]);let J={};J.url=$.source||$.origin,J.format="swagger",J.version=M.swagger,J.converter={},J.converter.url="https://github.com/mermade/oas-kit",J.converter.version=g,pe["x-origin"].push(J)}if(pe=Object.assign(pe,c(M)),delete pe.swagger,u(pe,{},function(J,ae,ne){J[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&ne.path.indexOf("/example")<0&&delete J[ae]}),M.host)for(let J of Array.isArray(M.schemes)?M.schemes:[""]){let ae={},ne=(M.basePath||"").replace(/\/$/,"");ae.url=(J?J+":":"")+"//"+M.host+ne,W(ae),pe.servers||(pe.servers=[]),pe.servers.push(ae)}else if(M.basePath){let J={};J.url=M.basePath,W(J),pe.servers||(pe.servers=[]),pe.servers.push(J)}if(delete pe.host,delete pe.basePath,pe["x-servers"]&&Array.isArray(pe["x-servers"])&&(pe.servers=pe["x-servers"],delete pe["x-servers"]),M["x-ms-parameterized-host"]){let J=M["x-ms-parameterized-host"],ae={};ae.url=J.hostTemplate+(M.basePath?M.basePath:""),ae.variables={};const ne=ae.url.match(/\{\w+\}/g);for(let ve in J.parameters){let me=J.parameters[ve];me.$ref&&(me=l(o(pe,me.$ref))),ve.startsWith("x-")||(delete me.required,delete me.type,delete me.in,typeof me.default>"u"&&(me.enum?me.default=me.enum[0]:me.default="none"),me.name||(me.name=ne[ve].replace("{","").replace("}","")),ae.variables[me.name]=me,delete me.name)}pe.servers||(pe.servers=[]),J.useSchemePrefix===!1?pe.servers.push(ae):M.schemes.forEach(ve=>{pe.servers.push(Object.assign({},ae,{url:ve+"://"+ae.url}))}),delete pe["x-ms-parameterized-host"]}q(pe,$,de),B(pe,$,de),typeof pe.consumes=="string"&&(pe.consumes=[pe.consumes]),typeof pe.produces=="string"&&(pe.produces=[pe.produces]),pe.components={},pe["x-callbacks"]&&(pe.components.callbacks=pe["x-callbacks"],delete pe["x-callbacks"]),pe.components.examples={},pe.components.headers={},pe["x-links"]&&(pe.components.links=pe["x-links"],delete pe["x-links"]),pe.components.parameters=pe.parameters||{},pe.components.responses=pe.responses||{},pe.components.requestBodies={},pe.components.securitySchemes=pe.securityDefinitions||{},pe.components.schemas=pe.definitions||{},delete pe.definitions,delete pe.responses,delete pe.parameters,delete pe.securityDefinitions,d.optionalResolve($).then(function(){I($.openapi,$),$.direct?Q($.openapi):Q($)}).catch(function(J){console.warn(J),de(J)})}))}function re(M,$,oe){return a(oe,new Promise(function(Q,de){let pe=null,J=null;try{pe=JSON.parse(M),$.text=JSON.stringify(pe,null,2)}catch(ae){J=ae;try{pe=n.parse(M,{schema:"core",prettyErrors:!0}),$.sourceYaml=!0,$.text=M}catch(ne){J=ne}}pe?F(pe,$).then(ae=>Q(ae)).catch(ae=>de(ae)):de(new k(J?J.message:"Could not parse string"))}))}function le(M,$,oe){return a(oe,new Promise(function(Q,de){$.origin=!0,$.source||($.source=M),$.verbose&&console.warn("GET "+M),$.fetch||($.fetch=r);const pe=Object.assign({},$.fetchOptions,{agent:$.agent});$.fetch(M,pe).then(function(J){if(J.status!==200)throw new k(`Received status code ${J.status}: ${M}`);return J.text()}).then(function(J){re(J,$).then(ae=>Q(ae)).catch(ae=>de(ae))}).catch(function(J){de(J)})}))}function be(M,$,oe){return a(oe,new Promise(function(Q,de){e.readFile(M,$.encoding||"utf8",function(pe,J){pe?de(pe):($.sourceFile=M,re(J,$).then(ae=>Q(ae)).catch(ae=>de(ae)))})}))}function ke(M,$,oe){return a(oe,new Promise(function(Q,de){let pe="";M.on("data",function(J){pe+=J}).on("end",function(){re(pe,$).then(J=>Q(J)).catch(J=>de(J))})}))}return L7={S2OError:k,targetVersion:b,convert:F,convertObj:F,convertUrl:le,convertStr:re,convertFile:be,convertStream:ke},L7}var hct=pct();const mct=Gr(hct);function fct(e){return e.paths||(e.paths={}),new Promise((t,a)=>mct.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function gct(){try{return(await coe())?.resolvedConfig.openapi||{}}catch{return{}}}async function vct(e){const t=await coe(),a={config:t,base:$u?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$u&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=bct(e):a.ref=e;const{bundle:{parsed:r}}=await _lt(a);return r.swagger!==void 0?fct(r):r}function bct(e){return{source:{absoluteRef:""},parsed:e}}async function yct(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 vct(e||t);try{UJe(r)}catch{}return r}const kct=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=P.useState(),[s,l]=P.useState(!0),[c,u]=P.useState(null),[d,h]=P.useState(e||{});P.useEffect(()=>{async function v(){l(!0);try{const g=await gct();h({...e,...g}),u(await yct(a,t,e))}catch(g){o(g.message)}}v()},[a,t,e]);const m=P.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},WJe([c,t,d]));return P.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?El(e?.hideLoading,!1)?null:p.jsx(int,{color:"--loading-spinner-color"}):P.isValidElement(n)?P.cloneElement(n,{store:m}):null};function xct({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(kct,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(Ane,{withCommonStyles:!0,router:o||"hash"})})}function wct(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 Oct(e){const t=wct(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function Sct(e,t=document.querySelector("redoc")){D8.hydrateRoot(t,p.jsx(Ane,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Sse(e,t={},a=N8("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,...Oct(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),D8.createRoot(a).render(P.createElement(xct,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const zct="3.18.0",Cct="e7708a15f1";function jct(){const e=N8("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Sse(t,{},e)}jct();function q0(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 zse={exports:{}},Cse;function Pct(){return Cse||(Cse=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 q0=="function"&&q0;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(v){var g=r[c][1][v];return o(g||v)},m,m.exports,a,r,n,i)}return n[c].exports}for(var s=typeof q0=="function"&&q0,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,v,g,b=[],y=0,k=l.length,O=k,C=i.getTypeOf(l)!=="string";y<l.length;)O=k-y,d=C?(c=l[y++],u=y<k?l[y++]:0,y<k?l[y++]:0):(c=l.charCodeAt(y++),u=y<k?l.charCodeAt(y++):0,y<k?l.charCodeAt(y++):0),h=c>>2,m=(3&c)<<4|u>>4,v=1<O?(15&u)<<2|d>>6:64,g=2<O?63&d:64,b.push(s.charAt(h)+s.charAt(m)+s.charAt(v)+s.charAt(g));return b.join("")},n.decode=function(l){var c,u,d,h,m,v,g=0,b=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var k,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(k=o.uint8array?new Uint8Array(0|O):new Array(0|O);g<l.length;)c=s.indexOf(l.charAt(g++))<<2|(h=s.indexOf(l.charAt(g++)))>>4,u=(15&h)<<4|(m=s.indexOf(l.charAt(g++)))>>2,d=(3&m)<<6|(v=s.indexOf(l.charAt(g++))),k[b++]=c,m!==64&&(k[b++]=u),v!==64&&(k[b++]=d);return k}},{"./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,v){this.compressedSize=u,this.uncompressedSize=d,this.crc32=h,this.compression=m,this.compressedContent=v}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,v=h+d;c^=-1;for(var g=h;g<v;g++)c=c>>>8^m[255&(c^u[g])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,h){var m=o,v=h+d;c^=-1;for(var g=h;g<v;g++)c=c>>>8^m[255&(c^u.charCodeAt(g))];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,v){var g,b="";for(g=0;g<v;g++)b+=String.fromCharCode(255&m),m>>>=8;return b}function o(m,v,g,b,y,k){var O,C,w=m.file,S=m.compression,j=k!==c.utf8encode,A=s.transformTo("string",k(w.name)),R=s.transformTo("string",c.utf8encode(w.name)),L=w.comment,H=s.transformTo("string",k(L)),_=s.transformTo("string",c.utf8encode(L)),G=R.length!==w.name.length,N=_.length!==L.length,Y="",te="",se="",X=w.dir,ue=w.date,Z={crc32:0,compressedSize:0,uncompressedSize:0};v&&!g||(Z.crc32=m.crc32,Z.compressedSize=m.compressedSize,Z.uncompressedSize=m.uncompressedSize);var I=0;v&&(I|=8),j||!G&&!N||(I|=2048);var W=0,q=0;X&&(W|=16),y==="UNIX"?(q=798,W|=(function(D,F){var re=D;return D||(re=F?16893:33204),(65535&re)<<16})(w.unixPermissions,X)):(q=20,W|=(function(D){return 63&(D||0)})(w.dosPermissions)),O=ue.getUTCHours(),O<<=6,O|=ue.getUTCMinutes(),O<<=5,O|=ue.getUTCSeconds()/2,C=ue.getUTCFullYear()-1980,C<<=4,C|=ue.getUTCMonth()+1,C<<=5,C|=ue.getUTCDate(),G&&(te=i(1,1)+i(u(A),4)+R,Y+="up"+i(te.length,2)+te),N&&(se=i(1,1)+i(u(H),4)+_,Y+="uc"+i(se.length,2)+se);var B="";return B+=`
10591
10591
  \0`,B+=i(I,2),B+=S.magic,B+=i(O,2),B+=i(C,2),B+=i(Z.crc32,4),B+=i(Z.compressedSize,4),B+=i(Z.uncompressedSize,4),B+=i(A.length,2),B+=i(Y.length,2),{fileRecord:d.LOCAL_FILE_HEADER+B+A+Y,dirRecord:d.CENTRAL_FILE_HEADER+i(q,2)+B+i(H.length,2)+"\0\0\0\0"+i(W,4)+i(b,4)+A+Y+H}}var s=a("../utils"),l=a("../stream/GenericWorker"),c=a("../utf8"),u=a("../crc32"),d=a("../signature");function h(m,v,g,b){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=g,this.encodeFileName=b,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 v=m.meta.percent||0,g=this.entriesCount,b=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:g?(v+100*(g-b-1))/g:100}}))},h.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var v=this.streamFiles&&!m.file.dir;if(v){var g=o(m,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(m){this.accumulate=!1;var v=this.streamFiles&&!m.file.dir,g=o(m,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),v)this.push({data:(function(b){return d.DATA_DESCRIPTOR+i(b.crc32,4)+i(b.compressedSize,4)+i(b.uncompressedSize,4)})(m),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var m=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var g=this.bytesWritten-m,b=(function(y,k,O,C,w){var S=s.transformTo("string",w(C));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(y,2)+i(y,2)+i(k,4)+i(O,4)+i(S.length,2)+S})(this.dirRecords.length,g,m,this.zipComment,this.encodeFileName);this.push({data:b,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 v=this;return m.on("data",function(g){v.processChunk(g)}),m.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),m.on("error",function(g){v.error(g)}),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 v=this._sources;if(!l.prototype.error.call(this,m))return!1;for(var g=0;g<v.length;g++)try{v[g].error(m)}catch{}return!0},h.prototype.lock=function(){l.prototype.lock.call(this);for(var m=this._sources,v=0;v<m.length;v++)m[v].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 v=(function(k,O){var C=k||O,w=i[C];if(!w)throw new Error(C+" is not a valid compression method !");return w})(m.options.compression,l.compression),g=m.options.compressionOptions||l.compressionOptions||{},b=m.dir,y=m.date;m._compressWorker(v,g).withStreamInfo("file",{name:h,dir:b,date:y,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,v){var g=h.decompressed.getContentWorker().pipe(new c);g.on("error",function(b){v(b)}).on("end",function(){g.streamInfo.crc32!==h.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}r.exports=function(h,m){var v=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(g){var b=new l(m);return b.load(g),b}).then(function(g){var b=[o.Promise.resolve(g)],y=g.files;if(m.checkCRC32)for(var k=0;k<y.length;k++)b.push(d(y[k]));return o.Promise.all(b)}).then(function(g){for(var b=g.shift(),y=b.files,k=0;k<y.length;k++){var O=y[k],C=O.fileNameStr,w=i.resolve(O.fileNameStr);v.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||(v.file(w).unsafeOriginalName=C)}return b.zipComment.length&&(v.comment=b.zipComment),v})}},{"./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,S,j){var A,R=s.getTypeOf(S),L=s.extend(j||{},u);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(w=y(w)),L.createFolders&&(A=b(w))&&k.call(this,A,!0);var H=R==="string"&&L.binary===!1&&L.base64===!1;j&&j.binary!==void 0||(L.binary=!H),(S instanceof d&&S.uncompressedSize===0||L.dir||!S||S.length===0)&&(L.base64=!1,L.binary=!0,S="",L.compression="STORE",R="string");var _=null;_=S instanceof d||S instanceof l?S:v.isNode&&v.isStream(S)?new g(w,S):s.prepareContent(w,S,L.binary,L.optimizedBinaryString,L.base64);var G=new h(w,_,L);this.files[w]=G}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"),v=a("./nodejsUtils"),g=a("./nodejs/NodejsStreamInputAdapter"),b=function(w){w.slice(-1)==="/"&&(w=w.substring(0,w.length-1));var S=w.lastIndexOf("/");return 0<S?w.substring(0,S):""},y=function(w){return w.slice(-1)!=="/"&&(w+="/"),w},k=function(w,S){return S=S!==void 0?S:u.createFolders,w=y(w),this.files[w]||i.call(this,w,null,{dir:!0,createFolders:S}),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 S,j,A;for(S in this.files)A=this.files[S],(j=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&w(j,A)},filter:function(w){var S=[];return this.forEach(function(j,A){w(j,A)&&S.push(A)}),S},file:function(w,S,j){if(arguments.length!==1)return w=this.root+w,i.call(this,w,S,j),this;if(O(w)){var A=w;return this.filter(function(L,H){return!H.dir&&A.test(L)})}var R=this.files[this.root+w];return R&&!R.dir?R:null},folder:function(w){if(!w)return this;if(O(w))return this.filter(function(R,L){return L.dir&&w.test(R)});var S=this.root+w,j=k.call(this,S),A=this.clone();return A.root=j.name,A},remove:function(w){w=this.root+w;var S=this.files[w];if(S||(w.slice(-1)!=="/"&&(w+="/"),S=this.files[w]),S&&!S.dir)delete this.files[w];else for(var j=this.filter(function(R,L){return L.name.slice(0,w.length)===w}),A=0;A<j.length;A++)delete this.files[j[A].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 S,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 A=j.comment||this.comment||"";S=m.generateWorker(this,j,A)}catch(R){(S=new l("error")).error(R)}return new c(S,j.type||"string",j.mimeType)},generateAsync:function(w,S){return this.generateInternalStream(w).accumulate(S)},generateNodeStream:function(w,S){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(S)}};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(v,g){return new u.Promise(function(b,y){var k=[],O=v._internalType,C=v._outputType,w=v._mimeType;v.on("data",function(S,j){k.push(S),g&&g(j)}).on("error",function(S){k=[],y(S)}).on("end",function(){try{var S=(function(j,A,R){switch(j){case"blob":return i.newBlob(i.transformTo("arraybuffer",A),R);case"base64":return l.encode(A);default:return i.transformTo(j,A)}})(C,(function(j,A){var R,L=0,H=null,_=0;for(R=0;R<A.length;R++)_+=A[R].length;switch(j){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(H=new Uint8Array(_),R=0;R<A.length;R++)H.set(A[R],L),L+=A[R].length;return H;case"nodebuffer":return Buffer.concat(A);default:throw new Error("concat : unsupported type '"+j+"'")}})(O,k),w);b(S)}catch(j){y(j)}k=[]}).resume()})}function m(v,g,b){var y=g;switch(g){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=g,this._mimeType=b,i.checkSupport(y),this._worker=v.pipe(new o(y)),v.lock()}catch(k){this._worker=new s("error"),this._worker.error(k)}}m.prototype={accumulate:function(v){return h(this,v)},on:function(v,g){var b=this;return v==="data"?this._worker.on(v,function(y){g.call(b,y.data,y.meta)}):this._worker.on(v,function(){i.delay(g,arguments,b)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){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"},v)}},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(v){var g,b,y,k,O,C=v.length,w=0;for(k=0;k<C;k++)(64512&(b=v.charCodeAt(k)))==55296&&k+1<C&&(64512&(y=v.charCodeAt(k+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),k++),w+=b<128?1:b<2048?2:b<65536?3:4;for(g=o.uint8array?new Uint8Array(w):new Array(w),k=O=0;O<w;k++)(64512&(b=v.charCodeAt(k)))==55296&&k+1<C&&(64512&(y=v.charCodeAt(k+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),k++),b<128?g[O++]=b:(b<2048?g[O++]=192|b>>>6:(b<65536?g[O++]=224|b>>>12:(g[O++]=240|b>>>18,g[O++]=128|b>>>12&63),g[O++]=128|b>>>6&63),g[O++]=128|63&b);return g})(m)},n.utf8decode=function(m){return o.nodebuffer?i.transformTo("nodebuffer",m).toString("utf-8"):(function(v){var g,b,y,k,O=v.length,C=new Array(2*O);for(g=b=0;g<O;)if((y=v[g++])<128)C[b++]=y;else if(4<(k=c[y]))C[b++]=65533,g+=k-1;else{for(y&=k===2?31:k===3?15:7;1<k&&g<O;)y=y<<6|63&v[g++],k--;1<k?C[b++]=65533:y<65536?C[b++]=y:(y-=65536,C[b++]=55296|y>>10&1023,C[b++]=56320|1023&y)}return C.length!==b&&(C.subarray?C=C.subarray(0,b):C.length=b),i.applyFromCharCode(C)})(m=i.transformTo(o.uint8array?"uint8array":"array",m))},i.inherits(d,l),d.prototype.processChunk=function(m){var v=i.transformTo(o.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var g=v;(v=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),v.set(g,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var b=(function(k,O){var C;for((O=O||k.length)>k.length&&(O=k.length),C=O-1;0<=C&&(192&k[C])==128;)C--;return C<0||C===0?O:C+c[k[C]]>O?C:O})(v),y=v;b!==v.length&&(o.uint8array?(y=v.subarray(0,b),this.leftOver=v.subarray(b,v.length)):(y=v.slice(0,b),this.leftOver=v.slice(b,v.length))),this.push({data:n.utf8decode(y),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(g){return g}function u(g,b){for(var y=0;y<g.length;++y)b[y]=255&g.charCodeAt(y);return b}a("setimmediate"),n.newBlob=function(g,b){n.checkSupport("blob");try{return new Blob([g],{type:b})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(g),y.getBlob(b)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(g,b,y){var k=[],O=0,C=g.length;if(C<=y)return String.fromCharCode.apply(null,g);for(;O<C;)b==="array"||b==="nodebuffer"?k.push(String.fromCharCode.apply(null,g.slice(O,Math.min(O+y,C)))):k.push(String.fromCharCode.apply(null,g.subarray(O,Math.min(O+y,C)))),O+=y;return k.join("")},stringifyByChar:function(g){for(var b="",y=0;y<g.length;y++)b+=String.fromCharCode(g[y]);return b},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(g){var b=65536,y=n.getTypeOf(g),k=!0;if(y==="uint8array"?k=d.applyCanBeUsed.uint8array:y==="nodebuffer"&&(k=d.applyCanBeUsed.nodebuffer),k)for(;1<b;)try{return d.stringifyByChunk(g,y,b)}catch{b=Math.floor(b/2)}return d.stringifyByChar(g)}function m(g,b){for(var y=0;y<g.length;y++)b[y]=g[y];return b}n.applyFromCharCode=h;var v={};v.string={string:c,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return v.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,s.allocBuffer(g.length))}},v.array={string:h,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},v.arraybuffer={string:function(g){return h(new Uint8Array(g))},array:function(g){return m(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},v.uint8array={string:h,array:function(g){return m(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return s.newBufferFrom(g)}},v.nodebuffer={string:h,array:function(g){return m(g,new Array(g.length))},arraybuffer:function(g){return v.nodebuffer.uint8array(g).buffer},uint8array:function(g){return m(g,new Uint8Array(g.length))},nodebuffer:c},n.transformTo=function(g,b){if(b=b||"",!g)return b;n.checkSupport(g);var y=n.getTypeOf(b);return v[y][g](b)},n.resolve=function(g){for(var b=g.split("/"),y=[],k=0;k<b.length;k++){var O=b[k];O==="."||O===""&&k!==0&&k!==b.length-1||(O===".."?y.pop():y.push(O))}return y.join("/")},n.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(g)?"nodebuffer":i.uint8array&&g instanceof Uint8Array?"uint8array":i.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(g){if(!i[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(g){var b,y,k="";for(y=0;y<(g||"").length;y++)k+="\\x"+((b=g.charCodeAt(y))<16?"0":"")+b.toString(16).toUpperCase();return k},n.delay=function(g,b,y){setImmediate(function(){g.apply(y||null,b||[])})},n.inherits=function(g,b){function y(){}y.prototype=b.prototype,g.prototype=new y},n.extend=function(){var g,b,y={};for(g=0;g<arguments.length;g++)for(b in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],b)&&y[b]===void 0&&(y[b]=arguments[g][b]);return y},n.prepareContent=function(g,b,y,k,O){return l.Promise.resolve(b).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,S){var j=new FileReader;j.onload=function(A){w(A.target.result)},j.onerror=function(A){S(A.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):y&&k!==!0&&(C=(function(S){return u(S,i.uint8array?new Uint8Array(S.length):new Array(S.length))})(C))),C):l.Promise.reject(new Error("Can't read the data of '"+g+"'. 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 v=this.reader.readString(4)===h;return this.reader.setIndex(m),v},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,v=this.zip64EndOfCentralSize-44;0<v;)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 v=h-m;if(0<v)this.isSignature(h,s.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" 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,v){this.options=m,this.loadOptions=v}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var v,g;if(m.skip(22),this.fileNameLength=m.readInt(2),g=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.skip(g),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((v=(function(b){for(var y in u)if(Object.prototype.hasOwnProperty.call(u,y)&&u[y].magic===b)return u[y];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,v,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 v=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(v),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 v,g,b,y=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<y;)v=m.readInt(2),g=m.readInt(2),b=m.readData(g),this.extraFields[v]={id:v,length:g,value:b};m.setIndex(y)},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 v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var g=o.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var b=this.findExtraFieldUnicodeComment();if(b!==null)this.fileCommentStr=b;else{var y=o.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var v=i(m.value);return v.readInt(1)!==1||l(this.fileName)!==v.readInt(4)?null:c.utf8decode(v.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var v=i(m.value);return v.readInt(1)!==1||l(this.fileComment)!==v.readInt(4)?null:c.utf8decode(v.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(v,g,b){this.name=v,this.dir=b.dir,this.date=b.date,this.comment=b.comment,this.unixPermissions=b.unixPermissions,this.dosPermissions=b.dosPermissions,this._data=g,this._dataBinary=b.binary,this.options={compression:b.compression,compressionOptions:b.compressionOptions}}var o=a("./stream/StreamHelper"),s=a("./stream/DataWorker"),l=a("./utf8"),c=a("./compressedObject"),u=a("./stream/GenericWorker");i.prototype={internalStream:function(v){var g=null,b="string";try{if(!v)throw new Error("No output type specified.");var y=(b=v.toLowerCase())==="string"||b==="text";b!=="binarystring"&&b!=="text"||(b="string"),g=this._decompressWorker();var k=!this._dataBinary;k&&!y&&(g=g.pipe(new l.Utf8EncodeWorker)),!k&&y&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(O){(g=new u("error")).error(O)}return new o(g,b,"")},async:function(v,g){return this.internalStream(v).accumulate(g)},nodeStream:function(v,g){return this.internalStream(v||"nodebuffer").toNodejsStream(g)},_compressWorker:function(v,g){if(this._data instanceof c&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var b=this._decompressWorker();return this._dataBinary||(b=b.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(b,v,g)},_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(v),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 g=i.document.createElement("script");g.onreadystatechange=function(){v(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},i.document.documentElement.appendChild(g)}:function(){setTimeout(v,0)};else{var h=new i.MessageChannel;h.port1.onmessage=v,o=function(){h.port2.postMessage(0)}}var m=[];function v(){var g,b;s=!0;for(var y=m.length;y;){for(b=m,m=[],g=-1;++g<y;)b[g]();y=m.length}s=!1}r.exports=function(g){m.push(g)!==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(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,y!==o&&g(this,y)}function h(y,k,O){this.promise=y,typeof k=="function"&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function m(y,k,O){i(function(){var C;try{C=k(O)}catch(w){return s.reject(y,w)}C===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,C)})}function v(y){var k=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof k=="function")return function(){k.apply(y,arguments)}}function g(y,k){var O=!1;function C(j){O||(O=!0,s.reject(y,j))}function w(j){O||(O=!0,s.resolve(y,j))}var S=b(function(){k(w,C)});S.status==="error"&&C(S.value)}function b(y,k){var O={};try{O.value=y(k),O.status="success"}catch(C){O.status="error",O.value=C}return O}(r.exports=d).prototype.finally=function(y){if(typeof y!="function")return this;var k=this.constructor;return this.then(function(O){return k.resolve(y()).then(function(){return O})},function(O){return k.resolve(y()).then(function(){throw O})})},d.prototype.catch=function(y){return this.then(null,y)},d.prototype.then=function(y,k){if(typeof y!="function"&&this.state===c||typeof k!="function"&&this.state===l)return this;var O=new this.constructor(o);return this.state!==u?m(O,this.state===c?y:k,this.outcome):this.queue.push(new h(O,y,k)),O},h.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},h.prototype.otherCallFulfilled=function(y){m(this.promise,this.onFulfilled,y)},h.prototype.callRejected=function(y){s.reject(this.promise,y)},h.prototype.otherCallRejected=function(y){m(this.promise,this.onRejected,y)},s.resolve=function(y,k){var O=b(v,k);if(O.status==="error")return s.reject(y,O.value);var C=O.value;if(C)g(y,C);else{y.state=c,y.outcome=k;for(var w=-1,S=y.queue.length;++w<S;)y.queue[w].callFulfilled(k)}return y},s.reject=function(y,k){y.state=l,y.outcome=k;for(var O=-1,C=y.queue.length;++O<C;)y.queue[O].callRejected(k);return y},d.resolve=function(y){return y instanceof this?y:s.resolve(new this(o),y)},d.reject=function(y){var k=new this(o);return s.reject(k,y)},d.all=function(y){var k=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=y.length,C=!1;if(!O)return this.resolve([]);for(var w=new Array(O),S=0,j=-1,A=new this(o);++j<O;)R(y[j],j);return A;function R(L,H){k.resolve(L).then(function(_){w[H]=_,++S!==O||C||(C=!0,s.resolve(A,w))},function(_){C||(C=!0,s.reject(A,_))})}},d.race=function(y){var k=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=y.length,C=!1;if(!O)return this.resolve([]);for(var w=-1,S=new this(o);++w<O;)j=y[w],k.resolve(j).then(function(A){C||(C=!0,s.resolve(S,A))},function(A){C||(C=!0,s.reject(S,A))});var j;return S}},{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,v=8;function g(y){if(!(this instanceof g))return new g(y);this.options=o.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},y||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.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,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(O!==d)throw new Error(l[O]);if(k.header&&i.deflateSetHeader(this.strm,k.header),k.dictionary){var C;if(C=typeof k.dictionary=="string"?s.string2buf(k.dictionary):u.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(O=i.deflateSetDictionary(this.strm,C))!==d)throw new Error(l[O]);this._dict_set=!0}}function b(y,k){var O=new g(k);if(O.push(y,!0),O.err)throw O.msg||l[O.err];return O.result}g.prototype.push=function(y,k){var O,C,w=this.strm,S=this.options.chunkSize;if(this.ended)return!1;C=k===~~k?k:k===!0?4:0,typeof y=="string"?w.input=s.string2buf(y):u.call(y)==="[object ArrayBuffer]"?w.input=new Uint8Array(y):w.input=y,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new o.Buf8(S),w.next_out=0,w.avail_out=S),(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))},g.prototype.onData=function(y){this.chunks.push(y)},g.prototype.onEnd=function(y){y===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},n.Deflate=g,n.deflate=b,n.deflateRaw=function(y,k){return(k=k||{}).raw=!0,b(y,k)},n.gzip=function(y,k){return(k=k||{}).gzip=!0,b(y,k)}},{"./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(g){if(!(this instanceof m))return new m(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||g&&g.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var y=i.inflateInit2(this.strm,b.windowBits);if(y!==l.Z_OK)throw new Error(c[y]);this.header=new d,i.inflateGetHeader(this.strm,this.header)}function v(g,b){var y=new m(b);if(y.push(g,!0),y.err)throw y.msg||c[y.err];return y.result}m.prototype.push=function(g,b){var y,k,O,C,w,S,j=this.strm,A=this.options.chunkSize,R=this.options.dictionary,L=!1;if(this.ended)return!1;k=b===~~b?b:b===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?j.input=s.binstring2buf(g):h.call(g)==="[object ArrayBuffer]"?j.input=new Uint8Array(g):j.input=g,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new o.Buf8(A),j.next_out=0,j.avail_out=A),(y=i.inflate(j,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&R&&(S=typeof R=="string"?s.string2buf(R):h.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,y=i.inflateSetDictionary(this.strm,S)),y===l.Z_BUF_ERROR&&L===!0&&(y=l.Z_OK,L=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&y!==l.Z_STREAM_END&&(j.avail_in!==0||k!==l.Z_FINISH&&k!==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=A-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&&(L=!0)}while((0<j.avail_in||j.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(k=l.Z_FINISH),k===l.Z_FINISH?(y=i.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):k!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(j.avail_out=0))},m.prototype.onData=function(g){this.chunks.push(g)},m.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},n.Inflate=m,n.inflate=v,n.inflateRaw=function(g,b){return(b=b||{}).raw=!0,v(g,b)},n.ungzip=v},{"./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,v;for(c=d=0,u=l.length;c<u;c++)d+=l[c].length;for(v=new Uint8Array(d),c=h=0,u=l.length;c<u;c++)m=l[c],v.set(m,h),h+=m.length;return v}},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="",v=0;v<h;v++)m+=String.fromCharCode(d[v]);return m}l[254]=l[254]=1,n.string2buf=function(d){var h,m,v,g,b,y=d.length,k=0;for(g=0;g<y;g++)(64512&(m=d.charCodeAt(g)))==55296&&g+1<y&&(64512&(v=d.charCodeAt(g+1)))==56320&&(m=65536+(m-55296<<10)+(v-56320),g++),k+=m<128?1:m<2048?2:m<65536?3:4;for(h=new i.Buf8(k),g=b=0;b<k;g++)(64512&(m=d.charCodeAt(g)))==55296&&g+1<y&&(64512&(v=d.charCodeAt(g+1)))==56320&&(m=65536+(m-55296<<10)+(v-56320),g++),m<128?h[b++]=m:(m<2048?h[b++]=192|m>>>6:(m<65536?h[b++]=224|m>>>12:(h[b++]=240|m>>>18,h[b++]=128|m>>>12&63),h[b++]=128|m>>>6&63),h[b++]=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,v=h.length;m<v;m++)h[m]=d.charCodeAt(m);return h},n.buf2string=function(d,h){var m,v,g,b,y=h||d.length,k=new Array(2*y);for(m=v=0;m<y;)if((g=d[m++])<128)k[v++]=g;else if(4<(b=l[g]))k[v++]=65533,m+=b-1;else{for(g&=b===2?31:b===3?15:7;1<b&&m<y;)g=g<<6|63&d[m++],b--;1<b?k[v++]=65533:g<65536?k[v++]=g:(g-=65536,k[v++]=55296|g>>10&1023,k[v++]=56320|1023&g)}return u(k,v)},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,v=-2,g=-1,b=4,y=2,k=8,O=9,C=286,w=30,S=19,j=2*C+1,A=15,R=3,L=258,H=L+R+1,_=42,G=113,N=1,Y=2,te=3,se=4;function X(Q,de){return Q.msg=u[de],de}function ue(Q){return(Q<<1)-(4<Q?9:0)}function Z(Q){for(var de=Q.length;0<=--de;)Q[de]=0}function I(Q){var de=Q.state,pe=de.pending;pe>Q.avail_out&&(pe=Q.avail_out),pe!==0&&(o.arraySet(Q.output,de.pending_buf,de.pending_out,pe,Q.next_out),Q.next_out+=pe,de.pending_out+=pe,Q.total_out+=pe,Q.avail_out-=pe,de.pending-=pe,de.pending===0&&(de.pending_out=0))}function W(Q,de){s._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,de),Q.block_start=Q.strstart,I(Q.strm)}function q(Q,de){Q.pending_buf[Q.pending++]=de}function B(Q,de){Q.pending_buf[Q.pending++]=de>>>8&255,Q.pending_buf[Q.pending++]=255&de}function D(Q,de){var pe,J,ae=Q.max_chain_length,ne=Q.strstart,ve=Q.prev_length,me=Q.nice_match,ge=Q.strstart>Q.w_size-H?Q.strstart-(Q.w_size-H):0,je=Q.window,Ce=Q.w_mask,Re=Q.prev,tt=Q.strstart+L,E=je[ne+ve-1],ee=je[ne+ve];Q.prev_length>=Q.good_match&&(ae>>=2),me>Q.lookahead&&(me=Q.lookahead);do if(je[(pe=de)+ve]===ee&&je[pe+ve-1]===E&&je[pe]===je[ne]&&je[++pe]===je[ne+1]){ne+=2,pe++;do;while(je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&je[++ne]===je[++pe]&&ne<tt);if(J=L-(tt-ne),ne=tt-L,ve<J){if(Q.match_start=de,me<=(ve=J))break;E=je[ne+ve-1],ee=je[ne+ve]}}while((de=Re[de&Ce])>ge&&--ae!=0);return ve<=Q.lookahead?ve:Q.lookahead}function F(Q){var de,pe,J,ae,ne,ve,me,ge,je,Ce,Re=Q.w_size;do{if(ae=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=Re+(Re-H)){for(o.arraySet(Q.window,Q.window,Re,Re,0),Q.match_start-=Re,Q.strstart-=Re,Q.block_start-=Re,de=pe=Q.hash_size;J=Q.head[--de],Q.head[de]=Re<=J?J-Re:0,--pe;);for(de=pe=Re;J=Q.prev[--de],Q.prev[de]=Re<=J?J-Re:0,--pe;);ae+=Re}if(Q.strm.avail_in===0)break;if(ve=Q.strm,me=Q.window,ge=Q.strstart+Q.lookahead,je=ae,Ce=void 0,Ce=ve.avail_in,je<Ce&&(Ce=je),pe=Ce===0?0:(ve.avail_in-=Ce,o.arraySet(me,ve.input,ve.next_in,Ce,ge),ve.state.wrap===1?ve.adler=l(ve.adler,me,Ce,ge):ve.state.wrap===2&&(ve.adler=c(ve.adler,me,Ce,ge)),ve.next_in+=Ce,ve.total_in+=Ce,Ce),Q.lookahead+=pe,Q.lookahead+Q.insert>=R)for(ne=Q.strstart-Q.insert,Q.ins_h=Q.window[ne],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ne+1])&Q.hash_mask;Q.insert&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ne+R-1])&Q.hash_mask,Q.prev[ne&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=ne,ne++,Q.insert--,!(Q.lookahead+Q.insert<R)););}while(Q.lookahead<H&&Q.strm.avail_in!==0)}function re(Q,de){for(var pe,J;;){if(Q.lookahead<H){if(F(Q),Q.lookahead<H&&de===d)return N;if(Q.lookahead===0)break}if(pe=0,Q.lookahead>=R&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+R-1])&Q.hash_mask,pe=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),pe!==0&&Q.strstart-pe<=Q.w_size-H&&(Q.match_length=D(Q,pe)),Q.match_length>=R)if(J=s._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-R),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=R){for(Q.match_length--;Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+R-1])&Q.hash_mask,pe=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart,--Q.match_length!=0;);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else J=s._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(J&&(W(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<R-1?Q.strstart:R-1,de===h?(W(Q,!0),Q.strm.avail_out===0?te:se):Q.last_lit&&(W(Q,!1),Q.strm.avail_out===0)?N:Y}function le(Q,de){for(var pe,J,ae;;){if(Q.lookahead<H){if(F(Q),Q.lookahead<H&&de===d)return N;if(Q.lookahead===0)break}if(pe=0,Q.lookahead>=R&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+R-1])&Q.hash_mask,pe=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=R-1,pe!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-pe<=Q.w_size-H&&(Q.match_length=D(Q,pe),Q.match_length<=5&&(Q.strategy===1||Q.match_length===R&&4096<Q.strstart-Q.match_start)&&(Q.match_length=R-1)),Q.prev_length>=R&&Q.match_length<=Q.prev_length){for(ae=Q.strstart+Q.lookahead-R,J=s._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-R),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;++Q.strstart<=ae&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+R-1])&Q.hash_mask,pe=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),--Q.prev_length!=0;);if(Q.match_available=0,Q.match_length=R-1,Q.strstart++,J&&(W(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((J=s._tr_tally(Q,0,Q.window[Q.strstart-1]))&&W(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return N}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(J=s._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<R-1?Q.strstart:R-1,de===h?(W(Q,!0),Q.strm.avail_out===0?te:se):Q.last_lit&&(W(Q,!1),Q.strm.avail_out===0)?N:Y}function be(Q,de,pe,J,ae){this.good_length=Q,this.max_lazy=de,this.nice_length=pe,this.max_chain=J,this.func=ae}function ke(){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=k,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*S+1)),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(A+1),this.heap=new o.Buf16(2*C+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*C+1),Z(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 M(Q){var de;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=y,(de=Q.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?_:G,Q.adler=de.wrap===2?0:1,de.last_flush=d,s._tr_init(de),m):X(Q,v)}function $(Q){var de=M(Q);return de===m&&(function(pe){pe.window_size=2*pe.w_size,Z(pe.head),pe.max_lazy_match=i[pe.level].max_lazy,pe.good_match=i[pe.level].good_length,pe.nice_match=i[pe.level].nice_length,pe.max_chain_length=i[pe.level].max_chain,pe.strstart=0,pe.block_start=0,pe.lookahead=0,pe.insert=0,pe.match_length=pe.prev_length=R-1,pe.match_available=0,pe.ins_h=0})(Q.state),de}function oe(Q,de,pe,J,ae,ne){if(!Q)return v;var ve=1;if(de===g&&(de=6),J<0?(ve=0,J=-J):15<J&&(ve=2,J-=16),ae<1||O<ae||pe!==k||J<8||15<J||de<0||9<de||ne<0||b<ne)return X(Q,v);J===8&&(J=9);var me=new ke;return(Q.state=me).strm=Q,me.wrap=ve,me.gzhead=null,me.w_bits=J,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=ae+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+R-1)/R),me.window=new o.Buf8(2*me.w_size),me.head=new o.Buf16(me.hash_size),me.prev=new o.Buf16(me.w_size),me.lit_bufsize=1<<ae+6,me.pending_buf_size=4*me.lit_bufsize,me.pending_buf=new o.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=de,me.strategy=ne,me.method=pe,$(Q)}i=[new be(0,0,0,0,function(Q,de){var pe=65535;for(pe>Q.pending_buf_size-5&&(pe=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(F(Q),Q.lookahead===0&&de===d)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var J=Q.block_start+pe;if((Q.strstart===0||Q.strstart>=J)&&(Q.lookahead=Q.strstart-J,Q.strstart=J,W(Q,!1),Q.strm.avail_out===0)||Q.strstart-Q.block_start>=Q.w_size-H&&(W(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,de===h?(W(Q,!0),Q.strm.avail_out===0?te:se):(Q.strstart>Q.block_start&&(W(Q,!1),Q.strm.avail_out),N)}),new be(4,4,8,4,re),new be(4,5,16,8,re),new be(4,6,32,32,re),new be(4,4,16,16,le),new be(8,16,32,32,le),new be(8,16,128,128,le),new be(8,32,128,256,le),new be(32,128,258,1024,le),new be(32,258,258,4096,le)],n.deflateInit=function(Q,de){return oe(Q,de,k,15,8,0)},n.deflateInit2=oe,n.deflateReset=$,n.deflateResetKeep=M,n.deflateSetHeader=function(Q,de){return Q&&Q.state?Q.state.wrap!==2?v:(Q.state.gzhead=de,m):v},n.deflate=function(Q,de){var pe,J,ae,ne;if(!Q||!Q.state||5<de||de<0)return Q?X(Q,v):v;if(J=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||J.status===666&&de!==h)return X(Q,Q.avail_out===0?-5:v);if(J.strm=Q,pe=J.last_flush,J.last_flush=de,J.status===_)if(J.wrap===2)Q.adler=0,q(J,31),q(J,139),q(J,8),J.gzhead?(q(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)),q(J,255&J.gzhead.time),q(J,J.gzhead.time>>8&255),q(J,J.gzhead.time>>16&255),q(J,J.gzhead.time>>24&255),q(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),q(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(q(J,255&J.gzhead.extra.length),q(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(Q.adler=c(Q.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(q(J,0),q(J,0),q(J,0),q(J,0),q(J,0),q(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),q(J,3),J.status=G);else{var ve=k+(J.w_bits-8<<4)<<8;ve|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(ve|=32),ve+=31-ve%31,J.status=G,B(J,ve),J.strstart!==0&&(B(J,Q.adler>>>16),B(J,65535&Q.adler)),Q.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&&(Q.adler=c(Q.adler,J.pending_buf,J.pending-ae,ae)),I(Q),ae=J.pending,J.pending!==J.pending_buf_size));)q(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>ae&&(Q.adler=c(Q.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&&(Q.adler=c(Q.adler,J.pending_buf,J.pending-ae,ae)),I(Q),ae=J.pending,J.pending===J.pending_buf_size)){ne=1;break}ne=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,q(J,ne)}while(ne!==0);J.gzhead.hcrc&&J.pending>ae&&(Q.adler=c(Q.adler,J.pending_buf,J.pending-ae,ae)),ne===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&&(Q.adler=c(Q.adler,J.pending_buf,J.pending-ae,ae)),I(Q),ae=J.pending,J.pending===J.pending_buf_size)){ne=1;break}ne=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,q(J,ne)}while(ne!==0);J.gzhead.hcrc&&J.pending>ae&&(Q.adler=c(Q.adler,J.pending_buf,J.pending-ae,ae)),ne===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&I(Q),J.pending+2<=J.pending_buf_size&&(q(J,255&Q.adler),q(J,Q.adler>>8&255),Q.adler=0,J.status=G)):J.status=G),J.pending!==0){if(I(Q),Q.avail_out===0)return J.last_flush=-1,m}else if(Q.avail_in===0&&ue(de)<=ue(pe)&&de!==h)return X(Q,-5);if(J.status===666&&Q.avail_in!==0)return X(Q,-5);if(Q.avail_in!==0||J.lookahead!==0||de!==d&&J.status!==666){var me=J.strategy===2?(function(ge,je){for(var Ce;;){if(ge.lookahead===0&&(F(ge),ge.lookahead===0)){if(je===d)return N;break}if(ge.match_length=0,Ce=s._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++,Ce&&(W(ge,!1),ge.strm.avail_out===0))return N}return ge.insert=0,je===h?(W(ge,!0),ge.strm.avail_out===0?te:se):ge.last_lit&&(W(ge,!1),ge.strm.avail_out===0)?N:Y})(J,de):J.strategy===3?(function(ge,je){for(var Ce,Re,tt,E,ee=ge.window;;){if(ge.lookahead<=L){if(F(ge),ge.lookahead<=L&&je===d)return N;if(ge.lookahead===0)break}if(ge.match_length=0,ge.lookahead>=R&&0<ge.strstart&&(Re=ee[tt=ge.strstart-1])===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]){E=ge.strstart+L;do;while(Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&Re===ee[++tt]&&tt<E);ge.match_length=L-(E-tt),ge.match_length>ge.lookahead&&(ge.match_length=ge.lookahead)}if(ge.match_length>=R?(Ce=s._tr_tally(ge,1,ge.match_length-R),ge.lookahead-=ge.match_length,ge.strstart+=ge.match_length,ge.match_length=0):(Ce=s._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++),Ce&&(W(ge,!1),ge.strm.avail_out===0))return N}return ge.insert=0,je===h?(W(ge,!0),ge.strm.avail_out===0?te:se):ge.last_lit&&(W(ge,!1),ge.strm.avail_out===0)?N:Y})(J,de):i[J.level].func(J,de);if(me!==te&&me!==se||(J.status=666),me===N||me===te)return Q.avail_out===0&&(J.last_flush=-1),m;if(me===Y&&(de===1?s._tr_align(J):de!==5&&(s._tr_stored_block(J,0,0,!1),de===3&&(Z(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),I(Q),Q.avail_out===0))return J.last_flush=-1,m}return de!==h?m:J.wrap<=0?1:(J.wrap===2?(q(J,255&Q.adler),q(J,Q.adler>>8&255),q(J,Q.adler>>16&255),q(J,Q.adler>>24&255),q(J,255&Q.total_in),q(J,Q.total_in>>8&255),q(J,Q.total_in>>16&255),q(J,Q.total_in>>24&255)):(B(J,Q.adler>>>16),B(J,65535&Q.adler)),I(Q),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?m:1)},n.deflateEnd=function(Q){var de;return Q&&Q.state?(de=Q.state.status)!==_&&de!==69&&de!==73&&de!==91&&de!==103&&de!==G&&de!==666?X(Q,v):(Q.state=null,de===G?X(Q,-3):m):v},n.deflateSetDictionary=function(Q,de){var pe,J,ae,ne,ve,me,ge,je,Ce=de.length;if(!Q||!Q.state||(ne=(pe=Q.state).wrap)===2||ne===1&&pe.status!==_||pe.lookahead)return v;for(ne===1&&(Q.adler=l(Q.adler,de,Ce,0)),pe.wrap=0,Ce>=pe.w_size&&(ne===0&&(Z(pe.head),pe.strstart=0,pe.block_start=0,pe.insert=0),je=new o.Buf8(pe.w_size),o.arraySet(je,de,Ce-pe.w_size,pe.w_size,0),de=je,Ce=pe.w_size),ve=Q.avail_in,me=Q.next_in,ge=Q.input,Q.avail_in=Ce,Q.next_in=0,Q.input=de,F(pe);pe.lookahead>=R;){for(J=pe.strstart,ae=pe.lookahead-(R-1);pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[J+R-1])&pe.hash_mask,pe.prev[J&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=J,J++,--ae;);pe.strstart=J,pe.lookahead=R-1,F(pe)}return pe.strstart+=pe.lookahead,pe.block_start=pe.strstart,pe.insert=pe.lookahead,pe.lookahead=0,pe.match_length=pe.prev_length=R-1,pe.match_available=0,Q.next_in=me,Q.input=ge,Q.avail_in=ve,pe.wrap=ne,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,v,g,b,y,k,O,C,w,S,j,A,R,L,H,_,G,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,v=s.wsize,g=s.whave,b=s.wnext,y=s.window,k=s.hold,O=s.bits,C=s.lencode,w=s.distcode,S=(1<<s.lenbits)-1,j=(1<<s.distbits)-1;e:do{O<15&&(k+=N[l++]<<O,O+=8,k+=N[l++]<<O,O+=8),A=C[k&S];t:for(;;){if(k>>>=R=A>>>24,O-=R,(R=A>>>16&255)===0)Y[u++]=65535&A;else{if(!(16&R)){if((64&R)==0){A=C[(65535&A)+(k&(1<<R)-1)];continue t}if(32&R){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}L=65535&A,(R&=15)&&(O<R&&(k+=N[l++]<<O,O+=8),L+=k&(1<<R)-1,k>>>=R,O-=R),O<15&&(k+=N[l++]<<O,O+=8,k+=N[l++]<<O,O+=8),A=w[k&j];a:for(;;){if(k>>>=R=A>>>24,O-=R,!(16&(R=A>>>16&255))){if((64&R)==0){A=w[(65535&A)+(k&(1<<R)-1)];continue a}i.msg="invalid distance code",s.mode=30;break e}if(H=65535&A,O<(R&=15)&&(k+=N[l++]<<O,(O+=8)<R&&(k+=N[l++]<<O,O+=8)),m<(H+=k&(1<<R)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(k>>>=R,O-=R,(R=u-d)<H){if(g<(R=H-R)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(G=y,(_=0)===b){if(_+=v-R,R<L){for(L-=R;Y[u++]=y[_++],--R;);_=u-H,G=Y}}else if(b<R){if(_+=v+b-R,(R-=b)<L){for(L-=R;Y[u++]=y[_++],--R;);if(_=0,b<L){for(L-=R=b;Y[u++]=y[_++],--R;);_=u-H,G=Y}}}else if(_+=b-R,R<L){for(L-=R;Y[u++]=y[_++],--R;);_=u-H,G=Y}for(;2<L;)Y[u++]=G[_++],Y[u++]=G[_++],Y[u++]=G[_++],L-=3;L&&(Y[u++]=G[_++],1<L&&(Y[u++]=G[_++]))}else{for(_=u-H;Y[u++]=Y[_++],Y[u++]=Y[_++],Y[u++]=Y[_++],2<(L-=3););L&&(Y[u++]=Y[_++],1<L&&(Y[u++]=Y[_++]))}break}}break}}while(l<c&&u<h);l-=L=O>>3,k&=(1<<(O-=L<<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=k,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,v=1,g=852,b=592;function y(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function k(){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(_){var G;return _&&_.state?(G=_.state,_.total_in=_.total_out=G.total=0,_.msg="",G.wrap&&(_.adler=1&G.wrap),G.mode=v,G.last=0,G.havedict=0,G.dmax=32768,G.head=null,G.hold=0,G.bits=0,G.lencode=G.lendyn=new i.Buf32(g),G.distcode=G.distdyn=new i.Buf32(b),G.sane=1,G.back=-1,h):m}function C(_){var G;return _&&_.state?((G=_.state).wsize=0,G.whave=0,G.wnext=0,O(_)):m}function w(_,G){var N,Y;return _&&_.state?(Y=_.state,G<0?(N=0,G=-G):(N=1+(G>>4),G<48&&(G&=15)),G&&(G<8||15<G)?m:(Y.window!==null&&Y.wbits!==G&&(Y.window=null),Y.wrap=N,Y.wbits=G,C(_))):m}function S(_,G){var N,Y;return _?(Y=new k,(_.state=Y).window=null,(N=w(_,G))!==h&&(_.state=null),N):m}var j,A,R=!0;function L(_){if(R){var G;for(j=new i.Buf32(512),A=new i.Buf32(32),G=0;G<144;)_.lens[G++]=8;for(;G<256;)_.lens[G++]=9;for(;G<280;)_.lens[G++]=7;for(;G<288;)_.lens[G++]=8;for(c(u,_.lens,0,288,j,0,_.work,{bits:9}),G=0;G<32;)_.lens[G++]=5;c(d,_.lens,0,32,A,0,_.work,{bits:5}),R=!1}_.lencode=j,_.lenbits=9,_.distcode=A,_.distbits=5}function H(_,G,N,Y){var te,se=_.state;return se.window===null&&(se.wsize=1<<se.wbits,se.wnext=0,se.whave=0,se.window=new i.Buf8(se.wsize)),Y>=se.wsize?(i.arraySet(se.window,G,N-se.wsize,se.wsize,0),se.wnext=0,se.whave=se.wsize):(Y<(te=se.wsize-se.wnext)&&(te=Y),i.arraySet(se.window,G,N-Y,te,se.wnext),(Y-=te)?(i.arraySet(se.window,G,N-Y,Y,0),se.wnext=Y,se.whave=se.wsize):(se.wnext+=te,se.wnext===se.wsize&&(se.wnext=0),se.whave<se.wsize&&(se.whave+=te))),0}n.inflateReset=C,n.inflateReset2=w,n.inflateResetKeep=O,n.inflateInit=function(_){return S(_,15)},n.inflateInit2=S,n.inflate=function(_,G){var N,Y,te,se,X,ue,Z,I,W,q,B,D,F,re,le,be,ke,M,$,oe,Q,de,pe,J,ae=0,ne=new i.Buf8(4),ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return m;(N=_.state).mode===12&&(N.mode=13),X=_.next_out,te=_.output,Z=_.avail_out,se=_.next_in,Y=_.input,ue=_.avail_in,I=N.hold,W=N.bits,q=ue,B=Z,de=h;e:for(;;)switch(N.mode){case v:if(N.wrap===0){N.mode=13;break}for(;W<16;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(2&N.wrap&&I===35615){ne[N.check=0]=255&I,ne[1]=I>>>8&255,N.check=s(N.check,ne,2,0),W=I=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&I)<<8)+(I>>8))%31){_.msg="incorrect header check",N.mode=30;break}if((15&I)!=8){_.msg="unknown compression method",N.mode=30;break}if(W-=4,Q=8+(15&(I>>>=4)),N.wbits===0)N.wbits=Q;else if(Q>N.wbits){_.msg="invalid window size",N.mode=30;break}N.dmax=1<<Q,_.adler=N.check=1,N.mode=512&I?10:12,W=I=0;break;case 2:for(;W<16;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(N.flags=I,(255&N.flags)!=8){_.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){_.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=I>>8&1),512&N.flags&&(ne[0]=255&I,ne[1]=I>>>8&255,N.check=s(N.check,ne,2,0)),W=I=0,N.mode=3;case 3:for(;W<32;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.head&&(N.head.time=I),512&N.flags&&(ne[0]=255&I,ne[1]=I>>>8&255,ne[2]=I>>>16&255,ne[3]=I>>>24&255,N.check=s(N.check,ne,4,0)),W=I=0,N.mode=4;case 4:for(;W<16;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.head&&(N.head.xflags=255&I,N.head.os=I>>8),512&N.flags&&(ne[0]=255&I,ne[1]=I>>>8&255,N.check=s(N.check,ne,2,0)),W=I=0,N.mode=5;case 5:if(1024&N.flags){for(;W<16;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.length=I,N.head&&(N.head.extra_len=I),512&N.flags&&(ne[0]=255&I,ne[1]=I>>>8&255,N.check=s(N.check,ne,2,0)),W=I=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(ue<(D=N.length)&&(D=ue),D&&(N.head&&(Q=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,Y,se,D,Q)),512&N.flags&&(N.check=s(N.check,Y,D,se)),ue-=D,se+=D,N.length-=D),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(ue===0)break e;for(D=0;Q=Y[se+D++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&D<ue;);if(512&N.flags&&(N.check=s(N.check,Y,D,se)),ue-=D,se+=D,Q)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(ue===0)break e;for(D=0;Q=Y[se+D++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&D<ue;);if(512&N.flags&&(N.check=s(N.check,Y,D,se)),ue-=D,se+=D,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;W<16;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(I!==(65535&N.check)){_.msg="header crc mismatch",N.mode=30;break}W=I=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),_.adler=N.check=0,N.mode=12;break;case 10:for(;W<32;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}_.adler=N.check=y(I),W=I=0,N.mode=11;case 11:if(N.havedict===0)return _.next_out=X,_.avail_out=Z,_.next_in=se,_.avail_in=ue,N.hold=I,N.bits=W,2;_.adler=N.check=1,N.mode=12;case 12:if(G===5||G===6)break e;case 13:if(N.last){I>>>=7&W,W-=7&W,N.mode=27;break}for(;W<3;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}switch(N.last=1&I,W-=1,3&(I>>>=1)){case 0:N.mode=14;break;case 1:if(L(N),N.mode=20,G!==6)break;I>>>=2,W-=2;break e;case 2:N.mode=17;break;case 3:_.msg="invalid block type",N.mode=30}I>>>=2,W-=2;break;case 14:for(I>>>=7&W,W-=7&W;W<32;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if((65535&I)!=(I>>>16^65535)){_.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&I,W=I=0,N.mode=15,G===6)break e;case 15:N.mode=16;case 16:if(D=N.length){if(ue<D&&(D=ue),Z<D&&(D=Z),D===0)break e;i.arraySet(te,Y,se,D,X),ue-=D,se+=D,Z-=D,X+=D,N.length-=D;break}N.mode=12;break;case 17:for(;W<14;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(N.nlen=257+(31&I),I>>>=5,W-=5,N.ndist=1+(31&I),I>>>=5,W-=5,N.ncode=4+(15&I),I>>>=4,W-=4,286<N.nlen||30<N.ndist){_.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(;W<3;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.lens[ve[N.have++]]=7&I,I>>>=3,W-=3}for(;N.have<19;)N.lens[ve[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,pe={bits:N.lenbits},de=c(0,N.lens,0,19,N.lencode,0,N.work,pe),N.lenbits=pe.bits,de){_.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(;be=(ae=N.lencode[I&(1<<N.lenbits)-1])>>>16&255,ke=65535&ae,!((le=ae>>>24)<=W);){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(ke<16)I>>>=le,W-=le,N.lens[N.have++]=ke;else{if(ke===16){for(J=le+2;W<J;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(I>>>=le,W-=le,N.have===0){_.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],D=3+(3&I),I>>>=2,W-=2}else if(ke===17){for(J=le+3;W<J;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}W-=le,Q=0,D=3+(7&(I>>>=le)),I>>>=3,W-=3}else{for(J=le+7;W<J;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}W-=le,Q=0,D=11+(127&(I>>>=le)),I>>>=7,W-=7}if(N.have+D>N.nlen+N.ndist){_.msg="invalid bit length repeat",N.mode=30;break}for(;D--;)N.lens[N.have++]=Q}}if(N.mode===30)break;if(N.lens[256]===0){_.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,pe={bits:N.lenbits},de=c(u,N.lens,0,N.nlen,N.lencode,0,N.work,pe),N.lenbits=pe.bits,de){_.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,pe={bits:N.distbits},de=c(d,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,pe),N.distbits=pe.bits,de){_.msg="invalid distances set",N.mode=30;break}if(N.mode=20,G===6)break e;case 20:N.mode=21;case 21:if(6<=ue&&258<=Z){_.next_out=X,_.avail_out=Z,_.next_in=se,_.avail_in=ue,N.hold=I,N.bits=W,l(_,B),X=_.next_out,te=_.output,Z=_.avail_out,se=_.next_in,Y=_.input,ue=_.avail_in,I=N.hold,W=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;be=(ae=N.lencode[I&(1<<N.lenbits)-1])>>>16&255,ke=65535&ae,!((le=ae>>>24)<=W);){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(be&&(240&be)==0){for(M=le,$=be,oe=ke;be=(ae=N.lencode[oe+((I&(1<<M+$)-1)>>M)])>>>16&255,ke=65535&ae,!(M+(le=ae>>>24)<=W);){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}I>>>=M,W-=M,N.back+=M}if(I>>>=le,W-=le,N.back+=le,N.length=ke,be===0){N.mode=26;break}if(32&be){N.back=-1,N.mode=12;break}if(64&be){_.msg="invalid literal/length code",N.mode=30;break}N.extra=15&be,N.mode=22;case 22:if(N.extra){for(J=N.extra;W<J;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.length+=I&(1<<N.extra)-1,I>>>=N.extra,W-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;be=(ae=N.distcode[I&(1<<N.distbits)-1])>>>16&255,ke=65535&ae,!((le=ae>>>24)<=W);){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if((240&be)==0){for(M=le,$=be,oe=ke;be=(ae=N.distcode[oe+((I&(1<<M+$)-1)>>M)])>>>16&255,ke=65535&ae,!(M+(le=ae>>>24)<=W);){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}I>>>=M,W-=M,N.back+=M}if(I>>>=le,W-=le,N.back+=le,64&be){_.msg="invalid distance code",N.mode=30;break}N.offset=ke,N.extra=15&be,N.mode=24;case 24:if(N.extra){for(J=N.extra;W<J;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}N.offset+=I&(1<<N.extra)-1,I>>>=N.extra,W-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){_.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(Z===0)break e;if(D=B-Z,N.offset>D){if((D=N.offset-D)>N.whave&&N.sane){_.msg="invalid distance too far back",N.mode=30;break}F=D>N.wnext?(D-=N.wnext,N.wsize-D):N.wnext-D,D>N.length&&(D=N.length),re=N.window}else re=te,F=X-N.offset,D=N.length;for(Z<D&&(D=Z),Z-=D,N.length-=D;te[X++]=re[F++],--D;);N.length===0&&(N.mode=21);break;case 26:if(Z===0)break e;te[X++]=N.length,Z--,N.mode=21;break;case 27:if(N.wrap){for(;W<32;){if(ue===0)break e;ue--,I|=Y[se++]<<W,W+=8}if(B-=Z,_.total_out+=B,N.total+=B,B&&(_.adler=N.check=N.flags?s(N.check,te,B,X-B):o(N.check,te,B,X-B)),B=Z,(N.flags?I:y(I))!==N.check){_.msg="incorrect data check",N.mode=30;break}W=I=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;W<32;){if(ue===0)break e;ue--,I+=Y[se++]<<W,W+=8}if(I!==(4294967295&N.total)){_.msg="incorrect length check",N.mode=30;break}W=I=0}N.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return m}return _.next_out=X,_.avail_out=Z,_.next_in=se,_.avail_in=ue,N.hold=I,N.bits=W,(N.wsize||B!==_.avail_out&&N.mode<30&&(N.mode<27||G!==4))&&H(_,_.output,_.next_out,B-_.avail_out)?(N.mode=31,-4):(q-=_.avail_in,B-=_.avail_out,_.total_in+=q,_.total_out+=B,N.total+=B,N.wrap&&B&&(_.adler=N.check=N.flags?s(N.check,te,B,_.next_out-B):o(N.check,te,B,_.next_out-B)),_.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(q==0&&B===0||G===4)&&de===h&&(de=-5),de)},n.inflateEnd=function(_){if(!_||!_.state)return m;var G=_.state;return G.window&&(G.window=null),_.state=null,h},n.inflateGetHeader=function(_,G){var N;return _&&_.state?(2&(N=_.state).wrap)==0?m:((N.head=G).done=!1,h):m},n.inflateSetDictionary=function(_,G){var N,Y=G.length;return _&&_.state?(N=_.state).wrap!==0&&N.mode!==11?m:N.mode===11&&o(1,G,Y,0)!==N.check?-3:H(_,G,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,v,g,b,y){var k,O,C,w,S,j,A,R,L,H=y.bits,_=0,G=0,N=0,Y=0,te=0,se=0,X=0,ue=0,Z=0,I=0,W=null,q=0,B=new i.Buf16(16),D=new i.Buf16(16),F=null,re=0;for(_=0;_<=15;_++)B[_]=0;for(G=0;G<m;G++)B[d[h+G]]++;for(te=H,Y=15;1<=Y&&B[Y]===0;Y--);if(Y<te&&(te=Y),Y===0)return v[g++]=20971520,v[g++]=20971520,y.bits=1,0;for(N=1;N<Y&&B[N]===0;N++);for(te<N&&(te=N),_=ue=1;_<=15;_++)if(ue<<=1,(ue-=B[_])<0)return-1;if(0<ue&&(u===0||Y!==1))return-1;for(D[1]=0,_=1;_<15;_++)D[_+1]=D[_]+B[_];for(G=0;G<m;G++)d[h+G]!==0&&(b[D[d[h+G]]++]=G);if(j=u===0?(W=F=b,19):u===1?(W=o,q-=257,F=s,re-=257,256):(W=l,F=c,-1),_=N,S=g,X=G=I=0,C=-1,w=(Z=1<<(se=te))-1,u===1&&852<Z||u===2&&592<Z)return 1;for(;;){for(A=_-X,L=b[G]<j?(R=0,b[G]):b[G]>j?(R=F[re+b[G]],W[q+b[G]]):(R=96,0),k=1<<_-X,N=O=1<<se;v[S+(I>>X)+(O-=k)]=A<<24|R<<16|L|0,O!==0;);for(k=1<<_-1;I&k;)k>>=1;if(k!==0?(I&=k-1,I+=k):I=0,G++,--B[_]==0){if(_===Y)break;_=d[h+b[G]]}if(te<_&&(I&w)!==C){for(X===0&&(X=te),S+=N,ue=1<<(se=_-X);se+X<Y&&!((ue-=B[se+X])<=0);)se++,ue<<=1;if(Z+=1<<se,u===1&&852<Z||u===2&&592<Z)return 1;v[C=I&w]=te<<24|se<<16|S-g|0}}return I!==0&&(v[S+I]=_-X<<24|64<<16|0),y.bits=te,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 ne=ae.length;0<=--ne;)ae[ne]=0}var c=0,u=29,d=256,h=d+1+u,m=30,v=19,g=2*h+1,b=15,y=16,k=7,O=256,C=16,w=17,S=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],A=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(2*(h+2));l(H);var _=new Array(2*m);l(_);var G=new Array(512);l(G);var N=new Array(256);l(N);var Y=new Array(u);l(Y);var te,se,X,ue=new Array(m);function Z(ae,ne,ve,me,ge){this.static_tree=ae,this.extra_bits=ne,this.extra_base=ve,this.elems=me,this.max_length=ge,this.has_stree=ae&&ae.length}function I(ae,ne){this.dyn_tree=ae,this.max_code=0,this.stat_desc=ne}function W(ae){return ae<256?G[ae]:G[256+(ae>>>7)]}function q(ae,ne){ae.pending_buf[ae.pending++]=255&ne,ae.pending_buf[ae.pending++]=ne>>>8&255}function B(ae,ne,ve){ae.bi_valid>y-ve?(ae.bi_buf|=ne<<ae.bi_valid&65535,q(ae,ae.bi_buf),ae.bi_buf=ne>>y-ae.bi_valid,ae.bi_valid+=ve-y):(ae.bi_buf|=ne<<ae.bi_valid&65535,ae.bi_valid+=ve)}function D(ae,ne,ve){B(ae,ve[2*ne],ve[2*ne+1])}function F(ae,ne){for(var ve=0;ve|=1&ae,ae>>>=1,ve<<=1,0<--ne;);return ve>>>1}function re(ae,ne,ve){var me,ge,je=new Array(b+1),Ce=0;for(me=1;me<=b;me++)je[me]=Ce=Ce+ve[me-1]<<1;for(ge=0;ge<=ne;ge++){var Re=ae[2*ge+1];Re!==0&&(ae[2*ge]=F(je[Re]++,Re))}}function le(ae){var ne;for(ne=0;ne<h;ne++)ae.dyn_ltree[2*ne]=0;for(ne=0;ne<m;ne++)ae.dyn_dtree[2*ne]=0;for(ne=0;ne<v;ne++)ae.bl_tree[2*ne]=0;ae.dyn_ltree[2*O]=1,ae.opt_len=ae.static_len=0,ae.last_lit=ae.matches=0}function be(ae){8<ae.bi_valid?q(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 ke(ae,ne,ve,me){var ge=2*ne,je=2*ve;return ae[ge]<ae[je]||ae[ge]===ae[je]&&me[ne]<=me[ve]}function M(ae,ne,ve){for(var me=ae.heap[ve],ge=ve<<1;ge<=ae.heap_len&&(ge<ae.heap_len&&ke(ne,ae.heap[ge+1],ae.heap[ge],ae.depth)&&ge++,!ke(ne,me,ae.heap[ge],ae.depth));)ae.heap[ve]=ae.heap[ge],ve=ge,ge<<=1;ae.heap[ve]=me}function $(ae,ne,ve){var me,ge,je,Ce,Re=0;if(ae.last_lit!==0)for(;me=ae.pending_buf[ae.d_buf+2*Re]<<8|ae.pending_buf[ae.d_buf+2*Re+1],ge=ae.pending_buf[ae.l_buf+Re],Re++,me===0?D(ae,ge,ne):(D(ae,(je=N[ge])+d+1,ne),(Ce=j[je])!==0&&B(ae,ge-=Y[je],Ce),D(ae,je=W(--me),ve),(Ce=A[je])!==0&&B(ae,me-=ue[je],Ce)),Re<ae.last_lit;);D(ae,O,ne)}function oe(ae,ne){var ve,me,ge,je=ne.dyn_tree,Ce=ne.stat_desc.static_tree,Re=ne.stat_desc.has_stree,tt=ne.stat_desc.elems,E=-1;for(ae.heap_len=0,ae.heap_max=g,ve=0;ve<tt;ve++)je[2*ve]!==0?(ae.heap[++ae.heap_len]=E=ve,ae.depth[ve]=0):je[2*ve+1]=0;for(;ae.heap_len<2;)je[2*(ge=ae.heap[++ae.heap_len]=E<2?++E:0)]=1,ae.depth[ge]=0,ae.opt_len--,Re&&(ae.static_len-=Ce[2*ge+1]);for(ne.max_code=E,ve=ae.heap_len>>1;1<=ve;ve--)M(ae,je,ve);for(ge=tt;ve=ae.heap[1],ae.heap[1]=ae.heap[ae.heap_len--],M(ae,je,1),me=ae.heap[1],ae.heap[--ae.heap_max]=ve,ae.heap[--ae.heap_max]=me,je[2*ge]=je[2*ve]+je[2*me],ae.depth[ge]=(ae.depth[ve]>=ae.depth[me]?ae.depth[ve]:ae.depth[me])+1,je[2*ve+1]=je[2*me+1]=ge,ae.heap[1]=ge++,M(ae,je,1),2<=ae.heap_len;);ae.heap[--ae.heap_max]=ae.heap[1],(function(ee,ce){var Se,Te,Ee,Ne,nt,rt,pt=ce.dyn_tree,lt=ce.max_code,Ct=ce.stat_desc.static_tree,ua=ce.stat_desc.has_stree,Ot=ce.stat_desc.extra_bits,Lt=ce.stat_desc.extra_base,Ut=ce.stat_desc.max_length,Aa=0;for(Ne=0;Ne<=b;Ne++)ee.bl_count[Ne]=0;for(pt[2*ee.heap[ee.heap_max]+1]=0,Se=ee.heap_max+1;Se<g;Se++)Ut<(Ne=pt[2*pt[2*(Te=ee.heap[Se])+1]+1]+1)&&(Ne=Ut,Aa++),pt[2*Te+1]=Ne,lt<Te||(ee.bl_count[Ne]++,nt=0,Lt<=Te&&(nt=Ot[Te-Lt]),rt=pt[2*Te],ee.opt_len+=rt*(Ne+nt),ua&&(ee.static_len+=rt*(Ct[2*Te+1]+nt)));if(Aa!==0){do{for(Ne=Ut-1;ee.bl_count[Ne]===0;)Ne--;ee.bl_count[Ne]--,ee.bl_count[Ne+1]+=2,ee.bl_count[Ut]--,Aa-=2}while(0<Aa);for(Ne=Ut;Ne!==0;Ne--)for(Te=ee.bl_count[Ne];Te!==0;)lt<(Ee=ee.heap[--Se])||(pt[2*Ee+1]!==Ne&&(ee.opt_len+=(Ne-pt[2*Ee+1])*pt[2*Ee],pt[2*Ee+1]=Ne),Te--)}})(ae,ne),re(je,E,ae.bl_count)}function Q(ae,ne,ve){var me,ge,je=-1,Ce=ne[1],Re=0,tt=7,E=4;for(Ce===0&&(tt=138,E=3),ne[2*(ve+1)+1]=65535,me=0;me<=ve;me++)ge=Ce,Ce=ne[2*(me+1)+1],++Re<tt&&ge===Ce||(Re<E?ae.bl_tree[2*ge]+=Re:ge!==0?(ge!==je&&ae.bl_tree[2*ge]++,ae.bl_tree[2*C]++):Re<=10?ae.bl_tree[2*w]++:ae.bl_tree[2*S]++,je=ge,E=(Re=0)===Ce?(tt=138,3):ge===Ce?(tt=6,3):(tt=7,4))}function de(ae,ne,ve){var me,ge,je=-1,Ce=ne[1],Re=0,tt=7,E=4;for(Ce===0&&(tt=138,E=3),me=0;me<=ve;me++)if(ge=Ce,Ce=ne[2*(me+1)+1],!(++Re<tt&&ge===Ce)){if(Re<E)for(;D(ae,ge,ae.bl_tree),--Re!=0;);else ge!==0?(ge!==je&&(D(ae,ge,ae.bl_tree),Re--),D(ae,C,ae.bl_tree),B(ae,Re-3,2)):Re<=10?(D(ae,w,ae.bl_tree),B(ae,Re-3,3)):(D(ae,S,ae.bl_tree),B(ae,Re-11,7));je=ge,E=(Re=0)===Ce?(tt=138,3):ge===Ce?(tt=6,3):(tt=7,4)}}l(ue);var pe=!1;function J(ae,ne,ve,me){B(ae,(c<<1)+(me?1:0),3),(function(ge,je,Ce,Re){be(ge),q(ge,Ce),q(ge,~Ce),i.arraySet(ge.pending_buf,ge.window,je,Ce,ge.pending),ge.pending+=Ce})(ae,ne,ve)}n._tr_init=function(ae){pe||((function(){var ne,ve,me,ge,je,Ce=new Array(b+1);for(ge=me=0;ge<u-1;ge++)for(Y[ge]=me,ne=0;ne<1<<j[ge];ne++)N[me++]=ge;for(N[me-1]=ge,ge=je=0;ge<16;ge++)for(ue[ge]=je,ne=0;ne<1<<A[ge];ne++)G[je++]=ge;for(je>>=7;ge<m;ge++)for(ue[ge]=je<<7,ne=0;ne<1<<A[ge]-7;ne++)G[256+je++]=ge;for(ve=0;ve<=b;ve++)Ce[ve]=0;for(ne=0;ne<=143;)H[2*ne+1]=8,ne++,Ce[8]++;for(;ne<=255;)H[2*ne+1]=9,ne++,Ce[9]++;for(;ne<=279;)H[2*ne+1]=7,ne++,Ce[7]++;for(;ne<=287;)H[2*ne+1]=8,ne++,Ce[8]++;for(re(H,h+1,Ce),ne=0;ne<m;ne++)_[2*ne+1]=5,_[2*ne]=F(ne,5);te=new Z(H,j,d+1,h,b),se=new Z(_,A,0,m,b),X=new Z(new Array(0),R,0,v,k)})(),pe=!0),ae.l_desc=new I(ae.dyn_ltree,te),ae.d_desc=new I(ae.dyn_dtree,se),ae.bl_desc=new I(ae.bl_tree,X),ae.bi_buf=0,ae.bi_valid=0,le(ae)},n._tr_stored_block=J,n._tr_flush_block=function(ae,ne,ve,me){var ge,je,Ce=0;0<ae.level?(ae.strm.data_type===2&&(ae.strm.data_type=(function(Re){var tt,E=4093624447;for(tt=0;tt<=31;tt++,E>>>=1)if(1&E&&Re.dyn_ltree[2*tt]!==0)return o;if(Re.dyn_ltree[18]!==0||Re.dyn_ltree[20]!==0||Re.dyn_ltree[26]!==0)return s;for(tt=32;tt<d;tt++)if(Re.dyn_ltree[2*tt]!==0)return s;return o})(ae)),oe(ae,ae.l_desc),oe(ae,ae.d_desc),Ce=(function(Re){var tt;for(Q(Re,Re.dyn_ltree,Re.l_desc.max_code),Q(Re,Re.dyn_dtree,Re.d_desc.max_code),oe(Re,Re.bl_desc),tt=v-1;3<=tt&&Re.bl_tree[2*L[tt]+1]===0;tt--);return Re.opt_len+=3*(tt+1)+5+5+4,tt})(ae),ge=ae.opt_len+3+7>>>3,(je=ae.static_len+3+7>>>3)<=ge&&(ge=je)):ge=je=ve+5,ve+4<=ge&&ne!==-1?J(ae,ne,ve,me):ae.strategy===4||je===ge?(B(ae,2+(me?1:0),3),$(ae,H,_)):(B(ae,4+(me?1:0),3),(function(Re,tt,E,ee){var ce;for(B(Re,tt-257,5),B(Re,E-1,5),B(Re,ee-4,4),ce=0;ce<ee;ce++)B(Re,Re.bl_tree[2*L[ce]+1],3);de(Re,Re.dyn_ltree,tt-1),de(Re,Re.dyn_dtree,E-1)})(ae,ae.l_desc.max_code+1,ae.d_desc.max_code+1,Ce+1),$(ae,ae.dyn_ltree,ae.dyn_dtree)),le(ae),me&&be(ae)},n._tr_tally=function(ae,ne,ve){return ae.pending_buf[ae.d_buf+2*ae.last_lit]=ne>>>8&255,ae.pending_buf[ae.d_buf+2*ae.last_lit+1]=255&ne,ae.pending_buf[ae.l_buf+ae.last_lit]=255&ve,ae.last_lit++,ne===0?ae.dyn_ltree[2*ve]++:(ae.matches++,ne--,ae.dyn_ltree[2*(N[ve]+d+1)]++,ae.dyn_dtree[2*W(ne)]++),ae.last_lit===ae.lit_bufsize-1},n._tr_align=function(ae){B(ae,2,3),D(ae,O,H),(function(ne){ne.bi_valid===16?(q(ne,ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0):8<=ne.bi_valid&&(ne.pending_buf[ne.pending++]=255&ne.bi_buf,ne.bi_buf>>=8,ne.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={},v=!1,g=o.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(o);b=b&&b.setTimeout?b:o,l={}.toString.call(o.process)==="[object process]"?function(C){process.nextTick(function(){k(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){k(C.data)},function(C){u.port2.postMessage(C)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(C){var w=g.createElement("script");w.onreadystatechange=function(){k(C),w.onreadystatechange=null,c.removeChild(w),w=null},c.appendChild(w)}):function(C){setTimeout(k,0,C)},b.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var w=new Array(arguments.length-1),S=0;S<w.length;S++)w[S]=arguments[S+1];var j={callback:C,args:w};return m[h]=j,l(h),h++},b.clearImmediate=y}function y(C){delete m[C]}function k(C){if(v)setTimeout(k,0,C);else{var w=m[C];if(w){v=!0;try{(function(S){var j=S.callback,A=S.args;switch(A.length){case 0:j();break;case 1:j(A[0]);break;case 2:j(A[0],A[1]);break;case 3:j(A[0],A[1],A[2]);break;default:j.apply(s,A)}})(w)}finally{y(C),v=!1}}}}function O(C){C.source===o&&typeof C.data=="string"&&C.data.indexOf(d)===0&&k(+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)})})(zse)),zse.exports}var Act=Pct();const Tct=Gr(Act),Mct=Object.freeze(Object.defineProperty({__proto__:null,default:Tct},Symbol.toStringTag,{value:"Module"}));function jse({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(Ect,{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(Bct,{selected:e,disabled:t})})}const Ect=V.div`
10592
10592
  width: var(--switch-width);
10593
10593
  height: var(--switch-height);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.18.0",
3
+ "version": "3.18.1",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -25,7 +25,7 @@
25
25
  "deepmerge": "^4.2.2",
26
26
  "dompurify": "3.2.7",
27
27
  "fast-deep-equal": "^3.1.3",
28
- "fast-xml-parser": "5.3.4",
28
+ "fast-xml-parser": "5.3.6",
29
29
  "jotai": "^2.12.5",
30
30
  "jotai-family": "^1.0.1",
31
31
  "json-pointer": "^0.6.2",
@@ -38,7 +38,7 @@
38
38
  "url-template": "^2.0.8",
39
39
  "util": "~0.12.5",
40
40
  "web-vitals": "3.3.1",
41
- "@redocly/replay": "0.21.0",
41
+ "@redocly/replay": "0.21.1",
42
42
  "@redocly/config": "0.42.0"
43
43
  },
44
44
  "devDependencies": {