@redocly/openapi-docs 3.13.0-next.1 → 3.13.0-next.2
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2025 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: 3.13.0-next.
|
|
5
|
+
* Version: 3.13.0-next.2
|
|
6
6
|
**/function ER(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AR(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _R={exports:{}},nm={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -9553,7 +9553,7 @@ globstar while`,t,h,r,g,v),this.matchOne(t.slice(h),r.slice(g),n))return this.de
|
|
|
9553
9553
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
9554
9554
|
* @license MIT
|
|
9555
9555
|
*/var bU;function Jy(){return bU||(bU=1,function(e){const t=DRe(),r=zRe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,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 B=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(B,J),B.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 a(B){if(B>o)throw new RangeError('The value "'+B+'" is invalid for option "size"');const J=new Uint8Array(B);return Object.setPrototypeOf(J,s.prototype),J}function s(B,J,ce){if(typeof B=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(B)}return l(B,J,ce)}s.poolSize=8192;function l(B,J,ce){if(typeof B=="string")return h(B,J);if(ArrayBuffer.isView(B))return v(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(be(B,ArrayBuffer)||B&&be(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(be(B,SharedArrayBuffer)||B&&be(B.buffer,SharedArrayBuffer)))return b(B,J,ce);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const je=B.valueOf&&B.valueOf();if(je!=null&&je!==B)return s.from(je,J,ce);const $e=y(B);if($e)return $e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return s.from(B[Symbol.toPrimitive]("string"),J,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}s.from=function(B,J,ce){return l(B,J,ce)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function u(B,J,ce){return c(B),B<=0?a(B):J!==void 0?typeof ce=="string"?a(B).fill(J,ce):a(B).fill(J):a(B)}s.alloc=function(B,J,ce){return u(B,J,ce)};function d(B){return c(B),a(B<0?0:x(B)|0)}s.allocUnsafe=function(B){return d(B)},s.allocUnsafeSlow=function(B){return d(B)};function h(B,J){if((typeof J!="string"||J==="")&&(J="utf8"),!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);const ce=k(B,J)|0;let je=a(ce);const $e=je.write(B,J);return $e!==ce&&(je=je.slice(0,$e)),je}function g(B){const J=B.length<0?0:x(B.length)|0,ce=a(J);for(let je=0;je<J;je+=1)ce[je]=B[je]&255;return ce}function v(B){if(be(B,Uint8Array)){const J=new Uint8Array(B);return b(J.buffer,J.byteOffset,J.byteLength)}return g(B)}function b(B,J,ce){if(J<0||B.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<J+(ce||0))throw new RangeError('"length" is outside of buffer bounds');let je;return J===void 0&&ce===void 0?je=new Uint8Array(B):ce===void 0?je=new Uint8Array(B,J):je=new Uint8Array(B,J,ce),Object.setPrototypeOf(je,s.prototype),je}function y(B){if(s.isBuffer(B)){const J=x(B.length)|0,ce=a(J);return ce.length===0||B.copy(ce,0,0,J),ce}if(B.length!==void 0)return typeof B.length!="number"||xe(B.length)?a(0):g(B);if(B.type==="Buffer"&&Array.isArray(B.data))return g(B.data)}function x(B){if(B>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return B|0}function w(B){return+B!=B&&(B=0),s.alloc(+B)}s.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==s.prototype},s.compare=function(B,J){if(be(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),be(J,Uint8Array)&&(J=s.from(J,J.offset,J.byteLength)),!s.isBuffer(B)||!s.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===J)return 0;let ce=B.length,je=J.length;for(let $e=0,Be=Math.min(ce,je);$e<Be;++$e)if(B[$e]!==J[$e]){ce=B[$e],je=J[$e];break}return ce<je?-1:je<ce?1:0},s.isEncoding=function(B){switch(String(B).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(B,J){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return s.alloc(0);let ce;if(J===void 0)for(J=0,ce=0;ce<B.length;++ce)J+=B[ce].length;const je=s.allocUnsafe(J);let $e=0;for(ce=0;ce<B.length;++ce){let Be=B[ce];if(be(Be,Uint8Array))$e+Be.length>je.length?(s.isBuffer(Be)||(Be=s.from(Be)),Be.copy(je,$e)):Uint8Array.prototype.set.call(je,Be,$e);else if(s.isBuffer(Be))Be.copy(je,$e);else throw new TypeError('"list" argument must be an Array of Buffers');$e+=Be.length}return je};function k(B,J){if(s.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||be(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const ce=B.length,je=arguments.length>2&&arguments[2]===!0;if(!je&&ce===0)return 0;let $e=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ee(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce*2;case"hex":return ce>>>1;case"base64":return Ae(B).length;default:if($e)return je?-1:ee(B).length;J=(""+J).toLowerCase(),$e=!0}}s.byteLength=k;function j(B,J,ce){let je=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0,J>>>=0,ce<=J))return"";for(B||(B="utf8");;)switch(B){case"hex":return se(this,J,ce);case"utf8":case"utf-8":return L(this,J,ce);case"ascii":return te(this,J,ce);case"latin1":case"binary":return K(this,J,ce);case"base64":return N(this,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,J,ce);default:if(je)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),je=!0}}s.prototype._isBuffer=!0;function S(B,J,ce){const je=B[J];B[J]=B[ce],B[ce]=je}s.prototype.swap16=function(){const B=this.length;if(B%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<B;J+=2)S(this,J,J+1);return this},s.prototype.swap32=function(){const B=this.length;if(B%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<B;J+=4)S(this,J,J+3),S(this,J+1,J+2);return this},s.prototype.swap64=function(){const B=this.length;if(B%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<B;J+=8)S(this,J,J+7),S(this,J+1,J+6),S(this,J+2,J+5),S(this,J+3,J+4);return this},s.prototype.toString=function(){const B=this.length;return B===0?"":arguments.length===0?L(this,0,B):j.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(B){if(!s.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B?!0:s.compare(this,B)===0},s.prototype.inspect=function(){let B="";const J=e.INSPECT_MAX_BYTES;return B=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(B+=" ... "),"<Buffer "+B+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(B,J,ce,je,$e){if(be(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),!s.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(J===void 0&&(J=0),ce===void 0&&(ce=B?B.length:0),je===void 0&&(je=0),$e===void 0&&($e=this.length),J<0||ce>B.length||je<0||$e>this.length)throw new RangeError("out of range index");if(je>=$e&&J>=ce)return 0;if(je>=$e)return-1;if(J>=ce)return 1;if(J>>>=0,ce>>>=0,je>>>=0,$e>>>=0,this===B)return 0;let Be=$e-je,qe=ce-J;const pt=Math.min(Be,qe),Dt=this.slice(je,$e),wt=B.slice(J,ce);for(let vt=0;vt<pt;++vt)if(Dt[vt]!==wt[vt]){Be=Dt[vt],qe=wt[vt];break}return Be<qe?-1:qe<Be?1:0};function E(B,J,ce,je,$e){if(B.length===0)return-1;if(typeof ce=="string"?(je=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,xe(ce)&&(ce=$e?0:B.length-1),ce<0&&(ce=B.length+ce),ce>=B.length){if($e)return-1;ce=B.length-1}else if(ce<0)if($e)ce=0;else return-1;if(typeof J=="string"&&(J=s.from(J,je)),s.isBuffer(J))return J.length===0?-1:A(B,J,ce,je,$e);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?$e?Uint8Array.prototype.indexOf.call(B,J,ce):Uint8Array.prototype.lastIndexOf.call(B,J,ce):A(B,[J],ce,je,$e);throw new TypeError("val must be string, number or Buffer")}function A(B,J,ce,je,$e){let Be=1,qe=B.length,pt=J.length;if(je!==void 0&&(je=String(je).toLowerCase(),je==="ucs2"||je==="ucs-2"||je==="utf16le"||je==="utf-16le")){if(B.length<2||J.length<2)return-1;Be=2,qe/=2,pt/=2,ce/=2}function Dt(vt,Ut){return Be===1?vt[Ut]:vt.readUInt16BE(Ut*Be)}let wt;if($e){let vt=-1;for(wt=ce;wt<qe;wt++)if(Dt(B,wt)===Dt(J,vt===-1?0:wt-vt)){if(vt===-1&&(vt=wt),wt-vt+1===pt)return vt*Be}else vt!==-1&&(wt-=wt-vt),vt=-1}else for(ce+pt>qe&&(ce=qe-pt),wt=ce;wt>=0;wt--){let vt=!0;for(let Ut=0;Ut<pt;Ut++)if(Dt(B,wt+Ut)!==Dt(J,Ut)){vt=!1;break}if(vt)return wt}return-1}s.prototype.includes=function(B,J,ce){return this.indexOf(B,J,ce)!==-1},s.prototype.indexOf=function(B,J,ce){return E(this,B,J,ce,!0)},s.prototype.lastIndexOf=function(B,J,ce){return E(this,B,J,ce,!1)};function _(B,J,ce,je){ce=Number(ce)||0;const $e=B.length-ce;je?(je=Number(je),je>$e&&(je=$e)):je=$e;const Be=J.length;je>Be/2&&(je=Be/2);let qe;for(qe=0;qe<je;++qe){const pt=parseInt(J.substr(qe*2,2),16);if(xe(pt))return qe;B[ce+qe]=pt}return qe}function P(B,J,ce,je){return Oe(ee(J,B.length-ce),B,ce,je)}function I(B,J,ce,je){return Oe(ae(J),B,ce,je)}function D(B,J,ce,je){return Oe(Ae(J),B,ce,je)}function M(B,J,ce,je){return Oe(le(J,B.length-ce),B,ce,je)}s.prototype.write=function(B,J,ce,je){if(J===void 0)je="utf8",ce=this.length,J=0;else if(ce===void 0&&typeof J=="string")je=J,ce=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(ce)?(ce=ce>>>0,je===void 0&&(je="utf8")):(je=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $e=this.length-J;if((ce===void 0||ce>$e)&&(ce=$e),B.length>0&&(ce<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");je||(je="utf8");let Be=!1;for(;;)switch(je){case"hex":return _(this,B,J,ce);case"utf8":case"utf-8":return P(this,B,J,ce);case"ascii":case"latin1":case"binary":return I(this,B,J,ce);case"base64":return D(this,B,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,B,J,ce);default:if(Be)throw new TypeError("Unknown encoding: "+je);je=(""+je).toLowerCase(),Be=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(B,J,ce){return J===0&&ce===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(J,ce))}function L(B,J,ce){ce=Math.min(B.length,ce);const je=[];let $e=J;for(;$e<ce;){const Be=B[$e];let qe=null,pt=Be>239?4:Be>223?3:Be>191?2:1;if($e+pt<=ce){let Dt,wt,vt,Ut;switch(pt){case 1:Be<128&&(qe=Be);break;case 2:Dt=B[$e+1],(Dt&192)===128&&(Ut=(Be&31)<<6|Dt&63,Ut>127&&(qe=Ut));break;case 3:Dt=B[$e+1],wt=B[$e+2],(Dt&192)===128&&(wt&192)===128&&(Ut=(Be&15)<<12|(Dt&63)<<6|wt&63,Ut>2047&&(Ut<55296||Ut>57343)&&(qe=Ut));break;case 4:Dt=B[$e+1],wt=B[$e+2],vt=B[$e+3],(Dt&192)===128&&(wt&192)===128&&(vt&192)===128&&(Ut=(Be&15)<<18|(Dt&63)<<12|(wt&63)<<6|vt&63,Ut>65535&&Ut<1114112&&(qe=Ut))}}qe===null?(qe=65533,pt=1):qe>65535&&(qe-=65536,je.push(qe>>>10&1023|55296),qe=56320|qe&1023),je.push(qe),$e+=pt}return Y(je)}const H=4096;function Y(B){const J=B.length;if(J<=H)return String.fromCharCode.apply(String,B);let ce="",je=0;for(;je<J;)ce+=String.fromCharCode.apply(String,B.slice(je,je+=H));return ce}function te(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]&127);return je}function K(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]);return je}function se(B,J,ce){const je=B.length;(!J||J<0)&&(J=0),(!ce||ce<0||ce>je)&&(ce=je);let $e="";for(let Be=J;Be<ce;++Be)$e+=ye[B[Be]];return $e}function U(B,J,ce){const je=B.slice(J,ce);let $e="";for(let Be=0;Be<je.length-1;Be+=2)$e+=String.fromCharCode(je[Be]+je[Be+1]*256);return $e}s.prototype.slice=function(B,J){const ce=this.length;B=~~B,J=J===void 0?ce:~~J,B<0?(B+=ce,B<0&&(B=0)):B>ce&&(B=ce),J<0?(J+=ce,J<0&&(J=0)):J>ce&&(J=ce),J<B&&(J=B);const je=this.subarray(B,J);return Object.setPrototypeOf(je,s.prototype),je};function V(B,J,ce){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+J>ce)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||V(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return je},s.prototype.readUintBE=s.prototype.readUIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||V(B,J,this.length);let je=this[B+--J],$e=1;for(;J>0&&($e*=256);)je+=this[B+--J]*$e;return je},s.prototype.readUint8=s.prototype.readUInt8=function(B,J){return B=B>>>0,J||V(B,1,this.length),this[B]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(B,J){return B=B>>>0,J||V(B,2,this.length),this[B]|this[B+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(B,J){return B=B>>>0,J||V(B,2,this.length),this[B]<<8|this[B+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(B,J){return B=B>>>0,J||V(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+this[B+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(B,J){return B=B>>>0,J||V(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},s.prototype.readBigUInt64LE=Se(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&Q(B,this.length-8);const je=J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24,$e=this[++B]+this[++B]*2**8+this[++B]*2**16+ce*2**24;return BigInt(je)+(BigInt($e)<<BigInt(32))}),s.prototype.readBigUInt64BE=Se(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&Q(B,this.length-8);const je=J*2**24+this[++B]*2**16+this[++B]*2**8+this[++B],$e=this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce;return(BigInt(je)<<BigInt(32))+BigInt($e)}),s.prototype.readIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||V(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return $e*=128,je>=$e&&(je-=Math.pow(2,8*J)),je},s.prototype.readIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||V(B,J,this.length);let je=J,$e=1,Be=this[B+--je];for(;je>0&&($e*=256);)Be+=this[B+--je]*$e;return $e*=128,Be>=$e&&(Be-=Math.pow(2,8*J)),Be},s.prototype.readInt8=function(B,J){return B=B>>>0,J||V(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},s.prototype.readInt16LE=function(B,J){B=B>>>0,J||V(B,2,this.length);const ce=this[B]|this[B+1]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt16BE=function(B,J){B=B>>>0,J||V(B,2,this.length);const ce=this[B+1]|this[B]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt32LE=function(B,J){return B=B>>>0,J||V(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},s.prototype.readInt32BE=function(B,J){return B=B>>>0,J||V(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},s.prototype.readBigInt64LE=Se(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&Q(B,this.length-8);const je=this[B+4]+this[B+5]*2**8+this[B+6]*2**16+(ce<<24);return(BigInt(je)<<BigInt(32))+BigInt(J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24)}),s.prototype.readBigInt64BE=Se(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&Q(B,this.length-8);const je=(J<<24)+this[++B]*2**16+this[++B]*2**8+this[++B];return(BigInt(je)<<BigInt(32))+BigInt(this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce)}),s.prototype.readFloatLE=function(B,J){return B=B>>>0,J||V(B,4,this.length),r.read(this,B,!0,23,4)},s.prototype.readFloatBE=function(B,J){return B=B>>>0,J||V(B,4,this.length),r.read(this,B,!1,23,4)},s.prototype.readDoubleLE=function(B,J){return B=B>>>0,J||V(B,8,this.length),r.read(this,B,!0,52,8)},s.prototype.readDoubleBE=function(B,J){return B=B>>>0,J||V(B,8,this.length),r.read(this,B,!1,52,8)};function X(B,J,ce,je,$e,Be){if(!s.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>$e||J<Be)throw new RangeError('"value" argument is out of bounds');if(ce+je>B.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;X(this,B,J,ce,qe,0)}let $e=1,Be=0;for(this[J]=B&255;++Be<ce&&($e*=256);)this[J+Be]=B/$e&255;return J+ce},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;X(this,B,J,ce,qe,0)}let $e=ce-1,Be=1;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)this[J+$e]=B/Be&255;return J+ce},s.prototype.writeUint8=s.prototype.writeUInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,1,255,0),this[J]=B&255,J+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,65535,0),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,65535,0),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,4294967295,0),this[J+3]=B>>>24,this[J+2]=B>>>16,this[J+1]=B>>>8,this[J]=B&255,J+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,4294967295,0),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4};function q(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,ce}function W(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce+7]=Be,Be=Be>>8,B[ce+6]=Be,Be=Be>>8,B[ce+5]=Be,Be=Be>>8,B[ce+4]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce+3]=qe,qe=qe>>8,B[ce+2]=qe,qe=qe>>8,B[ce+1]=qe,qe=qe>>8,B[ce]=qe,ce+8}s.prototype.writeBigUInt64LE=Se(function(B,J=0){return q(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Se(function(B,J=0){return W(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);X(this,B,J,ce,pt-1,-pt)}let $e=0,Be=1,qe=0;for(this[J]=B&255;++$e<ce&&(Be*=256);)B<0&&qe===0&&this[J+$e-1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);X(this,B,J,ce,pt-1,-pt)}let $e=ce-1,Be=1,qe=0;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)B<0&&qe===0&&this[J+$e+1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,1,127,-128),B<0&&(B=255+B+1),this[J]=B&255,J+1},s.prototype.writeInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,32767,-32768),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,2,32767,-32768),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,2147483647,-2147483648),this[J]=B&255,this[J+1]=B>>>8,this[J+2]=B>>>16,this[J+3]=B>>>24,J+4},s.prototype.writeInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||X(this,B,J,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4},s.prototype.writeBigInt64LE=Se(function(B,J=0){return q(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Se(function(B,J=0){return W(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function re(B,J,ce,je,$e,Be){if(ce+je>B.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function G(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,4),r.write(B,J,ce,je,23,4),ce+4}s.prototype.writeFloatLE=function(B,J,ce){return G(this,B,J,!0,ce)},s.prototype.writeFloatBE=function(B,J,ce){return G(this,B,J,!1,ce)};function oe(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,8),r.write(B,J,ce,je,52,8),ce+8}s.prototype.writeDoubleLE=function(B,J,ce){return oe(this,B,J,!0,ce)},s.prototype.writeDoubleBE=function(B,J,ce){return oe(this,B,J,!1,ce)},s.prototype.copy=function(B,J,ce,je){if(!s.isBuffer(B))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!je&&je!==0&&(je=this.length),J>=B.length&&(J=B.length),J||(J=0),je>0&&je<ce&&(je=ce),je===ce||B.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if(je<0)throw new RangeError("sourceEnd out of bounds");je>this.length&&(je=this.length),B.length-J<je-ce&&(je=B.length-J+ce);const $e=je-ce;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,ce,je):Uint8Array.prototype.set.call(B,this.subarray(ce,je),J),$e},s.prototype.fill=function(B,J,ce,je){if(typeof B=="string"){if(typeof J=="string"?(je=J,J=0,ce=this.length):typeof ce=="string"&&(je=ce,ce=this.length),je!==void 0&&typeof je!="string")throw new TypeError("encoding must be a string");if(typeof je=="string"&&!s.isEncoding(je))throw new TypeError("Unknown encoding: "+je);if(B.length===1){const Be=B.charCodeAt(0);(je==="utf8"&&Be<128||je==="latin1")&&(B=Be)}}else typeof B=="number"?B=B&255:typeof B=="boolean"&&(B=Number(B));if(J<0||this.length<J||this.length<ce)throw new RangeError("Out of range index");if(ce<=J)return this;J=J>>>0,ce=ce===void 0?this.length:ce>>>0,B||(B=0);let $e;if(typeof B=="number")for($e=J;$e<ce;++$e)this[$e]=B;else{const Be=s.isBuffer(B)?B:s.from(B,je),qe=Be.length;if(qe===0)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for($e=0;$e<ce-J;++$e)this[$e+J]=Be[$e%qe]}return this};const ne={};function ve(B,J,ce){ne[B]=class extends ce{constructor(){super(),Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,delete this.name}get code(){return B}set code(je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:je,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(B,J){return`The "${B}" argument must be of type number. Received type ${typeof J}`},TypeError),ve("ERR_OUT_OF_RANGE",function(B,J,ce){let je=`The value of "${B}" is out of range.`,$e=ce;return Number.isInteger(ce)&&Math.abs(ce)>2**32?$e=me(String(ce)):typeof ce=="bigint"&&($e=String(ce),(ce>BigInt(2)**BigInt(32)||ce<-(BigInt(2)**BigInt(32)))&&($e=me($e)),$e+="n"),je+=` It must be ${J}. Received ${$e}`,je},RangeError);function me(B){let J="",ce=B.length;const je=B[0]==="-"?1:0;for(;ce>=je+4;ce-=3)J=`_${B.slice(ce-3,ce)}${J}`;return`${B.slice(0,ce)}${J}`}function T(B,J,ce){fe(J,"offset"),(B[J]===void 0||B[J+ce]===void 0)&&Q(J,B.length-(ce+1))}function Z(B,J,ce,je,$e,Be){if(B>ce||B<J){const qe=typeof J=="bigint"?"n":"";let pt;throw J===0||J===BigInt(0)?pt=`>= 0${qe} and < 2${qe} ** ${(Be+1)*8}${qe}`:pt=`>= -(2${qe} ** ${(Be+1)*8-1}${qe}) and < 2 ** ${(Be+1)*8-1}${qe}`,new ne.ERR_OUT_OF_RANGE("value",pt,B)}T(je,$e,Be)}function fe(B,J){if(typeof B!="number")throw new ne.ERR_INVALID_ARG_TYPE(J,"number",B)}function Q(B,J,ce){throw Math.floor(B)!==B?(fe(B,ce),new ne.ERR_OUT_OF_RANGE("offset","an integer",B)):J<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${J}`,B)}const he=/[^+/0-9A-Za-z-_]/g;function ue(B){if(B=B.split("=")[0],B=B.trim().replace(he,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function ee(B,J){J=J||1/0;let ce;const je=B.length;let $e=null;const Be=[];for(let qe=0;qe<je;++qe){if(ce=B.charCodeAt(qe),ce>55295&&ce<57344){if(!$e){if(ce>56319){(J-=3)>-1&&Be.push(239,191,189);continue}else if(qe+1===je){(J-=3)>-1&&Be.push(239,191,189);continue}$e=ce;continue}if(ce<56320){(J-=3)>-1&&Be.push(239,191,189),$e=ce;continue}ce=($e-55296<<10|ce-56320)+65536}else $e&&(J-=3)>-1&&Be.push(239,191,189);if($e=null,ce<128){if((J-=1)<0)break;Be.push(ce)}else if(ce<2048){if((J-=2)<0)break;Be.push(ce>>6|192,ce&63|128)}else if(ce<65536){if((J-=3)<0)break;Be.push(ce>>12|224,ce>>6&63|128,ce&63|128)}else if(ce<1114112){if((J-=4)<0)break;Be.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,ce&63|128)}else throw new Error("Invalid code point")}return Be}function ae(B){const J=[];for(let ce=0;ce<B.length;++ce)J.push(B.charCodeAt(ce)&255);return J}function le(B,J){let ce,je,$e;const Be=[];for(let qe=0;qe<B.length&&!((J-=2)<0);++qe)ce=B.charCodeAt(qe),je=ce>>8,$e=ce%256,Be.push($e),Be.push(je);return Be}function Ae(B){return t.toByteArray(ue(B))}function Oe(B,J,ce,je){let $e;for($e=0;$e<je&&!($e+ce>=J.length||$e>=B.length);++$e)J[$e+ce]=B[$e];return $e}function be(B,J){return B instanceof J||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===J.name}function xe(B){return B!==B}const ye=function(){const B="0123456789abcdef",J=new Array(256);for(let ce=0;ce<16;++ce){const je=ce*16;for(let $e=0;$e<16;++$e)J[je+$e]=B[ce]+B[$e]}return J}();function Se(B){return typeof BigInt>"u"?He:B}function He(){throw new Error("BigInt not supported")}}(gU)),gU}const NRe={isatty:()=>{},createRequire:()=>{}},BRe=Object.freeze(Object.defineProperty({__proto__:null,default:NRe},Symbol.toStringTag,{value:"Module"})),Lh=AR(BRe);var Nd={},Ky={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */var FRe=Ky.exports,yU;function QRe(){return yU||(yU=1,function(e,t){(function(r){var n=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(r=i);var a,s=2147483647,l=36,c=1,u=26,d=38,h=700,g=72,v=128,b="-",y=/^xn--/,x=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=l-c,S=Math.floor,E=String.fromCharCode,A;function _(U){throw RangeError(k[U])}function P(U,V){for(var X=U.length,q=[];X--;)q[X]=V(U[X]);return q}function I(U,V){var X=U.split("@"),q="";X.length>1&&(q=X[0]+"@",U=X[1]),U=U.replace(w,".");var W=U.split("."),re=P(W,V).join(".");return q+re}function D(U){for(var V=[],X=0,q=U.length,W,re;X<q;)W=U.charCodeAt(X++),W>=55296&&W<=56319&&X<q?(re=U.charCodeAt(X++),(re&64512)==56320?V.push(((W&1023)<<10)+(re&1023)+65536):(V.push(W),X--)):V.push(W);return V}function M(U){return P(U,function(V){var X="";return V>65535&&(V-=65536,X+=E(V>>>10&1023|55296),V=56320|V&1023),X+=E(V),X}).join("")}function N(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:l}function L(U,V){return U+22+75*(U<26)-((V!=0)<<5)}function H(U,V,X){var q=0;for(U=X?S(U/h):U>>1,U+=S(U/V);U>j*u>>1;q+=l)U=S(U/j);return S(q+(j+1)*U/(U+d))}function Y(U){var V=[],X=U.length,q,W=0,re=v,G=g,oe,ne,ve,me,T,Z,fe,Q,he;for(oe=U.lastIndexOf(b),oe<0&&(oe=0),ne=0;ne<oe;++ne)U.charCodeAt(ne)>=128&&_("not-basic"),V.push(U.charCodeAt(ne));for(ve=oe>0?oe+1:0;ve<X;){for(me=W,T=1,Z=l;ve>=X&&_("invalid-input"),fe=N(U.charCodeAt(ve++)),(fe>=l||fe>S((s-W)/T))&&_("overflow"),W+=fe*T,Q=Z<=G?c:Z>=G+u?u:Z-G,!(fe<Q);Z+=l)he=l-Q,T>S(s/he)&&_("overflow"),T*=he;q=V.length+1,G=H(W-me,q,me==0),S(W/q)>s-re&&_("overflow"),re+=S(W/q),W%=q,V.splice(W++,0,re)}return M(V)}function te(U){var V,X,q,W,re,G,oe,ne,ve,me,T,Z=[],fe,Q,he,ue;for(U=D(U),fe=U.length,V=v,X=0,re=g,G=0;G<fe;++G)T=U[G],T<128&&Z.push(E(T));for(q=W=Z.length,W&&Z.push(b);q<fe;){for(oe=s,G=0;G<fe;++G)T=U[G],T>=V&&T<oe&&(oe=T);for(Q=q+1,oe-V>S((s-X)/Q)&&_("overflow"),X+=(oe-V)*Q,V=oe,G=0;G<fe;++G)if(T=U[G],T<V&&++X>s&&_("overflow"),T==V){for(ne=X,ve=l;me=ve<=re?c:ve>=re+u?u:ve-re,!(ne<me);ve+=l)ue=ne-me,he=l-me,Z.push(E(L(me+ue%he,0))),ne=S(ue/he);Z.push(E(L(ne,0))),re=H(X,Q,q==W),X=0,++q}++X,++V}return Z.join("")}function K(U){return I(U,function(V){return y.test(V)?Y(V.slice(4).toLowerCase()):V})}function se(U){return I(U,function(V){return x.test(V)?"xn--"+te(V):V})}if(a={version:"1.3.2",ucs2:{decode:D,encode:M},decode:Y,encode:te,toASCII:se,toUnicode:K},n&&o)if(e.exports==n)o.exports=a;else for(A in a)a.hasOwnProperty(A)&&(n[A]=a[A]);else r.punycode=a})(FRe)}(Ky,Ky.exports)),Ky.exports}var xU,OU;function VRe(){return OU||(OU=1,xU={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}}),xU}var d1={},t7,wU;function qRe(){if(wU)return t7;wU=1;function e(t,r){return Object.prototype.hasOwnProperty.call(t,r)}return t7=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if(typeof t!="string"||t.length===0)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&typeof o.maxKeys=="number"&&(s=o.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(a,"%20"),d=u.indexOf(n),h,g,v,b;d>=0?(h=u.substr(0,d),g=u.substr(d+1)):(h=u,g=""),v=decodeURIComponent(h),b=decodeURIComponent(g),e(i,v)?Array.isArray(i[v])?i[v].push(b):i[v]=[i[v],b]:i[v]=b}return i},t7}var r7,kU;function ZRe(){if(kU)return r7;kU=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 r7=function(t,r,n,o){return r=r||"&",n=n||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var a=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map(function(s){return a+encodeURIComponent(e(s))}).join(r):a+encodeURIComponent(e(t[i]))}).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""},r7}var SU;function URe(){return SU||(SU=1,d1.decode=d1.parse=qRe(),d1.encode=d1.stringify=ZRe()),d1}var CU;function n7(){if(CU)return Nd;CU=1;var e=QRe(),t=VRe();Nd.parse=w,Nd.resolve=j,Nd.resolveObject=S,Nd.format=k,Nd.Url=r;function r(){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 n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",`
|
|
9556
|
-
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=URe();function w(E,A,_){if(E&&t.isObject(E)&&E instanceof r)return E;var P=new r;return P.parse(E,A,_),P}r.prototype.parse=function(E,A,_){if(!t.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var P=E.indexOf("?"),I=P!==-1&&P<E.indexOf("#")?"?":"#",D=E.split(I),M=/\\/g;D[0]=D[0].replace(M,"/"),E=D.join(I);var N=E;if(N=N.trim(),!_&&E.split("#").length===1){var L=i.exec(N);if(L)return this.path=N,this.href=N,this.pathname=L[1],L[2]?(this.search=L[2],A?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):A&&(this.search="",this.query={}),this}var H=n.exec(N);if(H){H=H[0];var Y=H.toLowerCase();this.protocol=Y,N=N.substr(H.length)}if(_||H||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(H&&b[H])&&(N=N.substr(2),this.slashes=!0)}if(!b[H]&&(te||H&&!y[H])){for(var K=-1,se=0;se<u.length;se++){var U=N.indexOf(u[se]);U!==-1&&(K===-1||U<K)&&(K=U)}var V,X;K===-1?X=N.lastIndexOf("@"):X=N.lastIndexOf("@",K),X!==-1&&(V=N.slice(0,X),N=N.slice(X+1),this.auth=decodeURIComponent(V)),K=-1;for(var se=0;se<c.length;se++){var U=N.indexOf(c[se]);U!==-1&&(K===-1||U<K)&&(K=U)}K===-1&&(K=N.length),this.host=N.slice(0,K),N=N.slice(K),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var W=this.hostname.split(/\./),se=0,re=W.length;se<re;se++){var G=W[se];if(G&&!G.match(h)){for(var oe="",ne=0,ve=G.length;ne<ve;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var me=W.slice(0,se),T=W.slice(se+1),Z=G.match(g);Z&&(me.push(Z[1]),T.unshift(Z[2])),T.length&&(N="/"+T.join(".")+N),this.hostname=me.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[Y])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var ee=N.indexOf("#");ee!==-1&&(this.hash=N.substr(ee),N=N.slice(0,ee));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),A&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):A&&(this.search="",this.query={}),N&&(this.pathname=N),y[Y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(E){return t.isString(E)&&(E=w(E)),E instanceof r?E.format():r.prototype.format.call(E)}r.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var A=this.protocol||"",_=this.pathname||"",P=this.hash||"",I=!1,D="";this.host?I=E+this.host:this.hostname&&(I=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(D=x.stringify(this.query));var M=this.search||D&&"?"+D||"";return A&&A.substr(-1)!==":"&&(A+=":"),this.slashes||(!A||y[A])&&I!==!1?(I="//"+(I||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):I||(I=""),P&&P.charAt(0)!=="#"&&(P="#"+P),M&&M.charAt(0)!=="?"&&(M="?"+M),_=_.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),M=M.replace("#","%23"),A+I+_+M+P};function j(E,A){return w(E,!1,!0).resolve(A)}r.prototype.resolve=function(E){return this.resolveObject(w(E,!1,!0)).format()};function S(E,A){return E?w(E,!1,!0).resolveObject(A):A}return r.prototype.resolveObject=function(E){if(t.isString(E)){var A=new r;A.parse(E,!1,!0),E=A}for(var _=new r,P=Object.keys(this),I=0;I<P.length;I++){var D=P[I];_[D]=this[D]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var M=Object.keys(E),N=0;N<M.length;N++){var L=M[N];L!=="protocol"&&(_[L]=E[L])}return y[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!y[E.protocol]){for(var H=Object.keys(E),Y=0;Y<H.length;Y++){var te=H[Y];_[te]=E[te]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!b[E.protocol]){for(var re=(E.pathname||"").split("/");re.length&&!(E.host=re.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),_.pathname=re.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var K=_.pathname||"",se=_.search||"";_.path=K+se}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var U=_.pathname&&_.pathname.charAt(0)==="/",V=E.host||E.pathname&&E.pathname.charAt(0)==="/",X=V||U||_.host&&E.pathname,q=X,W=_.pathname&&_.pathname.split("/")||[],re=E.pathname&&E.pathname.split("/")||[],G=_.protocol&&!y[_.protocol];if(G&&(_.hostname="",_.port=null,_.host&&(W[0]===""?W[0]=_.host:W.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(re[0]===""?re[0]=E.host:re.unshift(E.host)),E.host=null),X=X&&(re[0]===""||W[0]==="")),V)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,W=re;else if(re.length)W||(W=[]),W.pop(),W=W.concat(re),_.search=E.search,_.query=E.query;else if(!t.isNullOrUndefined(E.search)){if(G){_.hostname=_.host=W.shift();var oe=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;oe&&(_.auth=oe.shift(),_.host=_.hostname=oe.shift())}return _.search=E.search,_.query=E.query,(!t.isNull(_.pathname)||!t.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!W.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var ne=W.slice(-1)[0],ve=(_.host||E.host||W.length>1)&&(ne==="."||ne==="..")||ne==="",me=0,T=W.length;T>=0;T--)ne=W[T],ne==="."?W.splice(T,1):ne===".."?(W.splice(T,1),me++):me&&(W.splice(T,1),me--);if(!X&&!q)for(;me--;me)W.unshift("..");X&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),ve&&W.join("/").substr(-1)!=="/"&&W.push("");var Z=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(G){_.hostname=_.host=Z?"":W.length?W.shift():"";var oe=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;oe&&(_.auth=oe.shift(),_.host=_.hostname=oe.shift())}return X=X||_.host&&W.length,X&&!Z&&W.unshift(""),W.length?_.pathname=W.join("/"):(_.pathname=null,_.path=null),(!t.isNull(_.pathname)||!t.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},r.prototype.parseHost=function(){var E=this.host,A=o.exec(E);A&&(A=A[0],A!==":"&&(this.port=A.substr(1)),E=E.substr(0,E.length-A.length)),E&&(this.hostname=E)},Nd}var o7,jU;function HRe(){if(jU)return o7;jU=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return o7=e(),o7}var i7,EU;function WRe(){if(EU)return i7;EU=1;var e=HRe();return i7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},i7}var a7,AU;function ex(){if(AU)return a7;AU=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return a7={jptr:r,jpescape:e,jpunescape:t},a7}var s7,_U;function l7(){if(_U)return s7;_U=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return s7={isRef:e},s7}var c7,PU;function tx(){if(PU)return c7;PU=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return c7={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},c7}var u7,TU;function d7(){if(TU)return u7;TU=1;const e=ex().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return u7={recurse:r},u7}var p7,$U;function XRe(){if($U)return p7;$U=1;const e=d7().recurse,t=tx().shallowClone,r=ex().jptr,n=l7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,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?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let w=l.cache[x];if(w.resolved)h.warn("Patching %s for %s",x,w.path),y.parent[y.pkey]=w.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===w.path)throw new Error(`Tight circle at ${w.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(w.source,w.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(w.source,w.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let w={};w.path=y.path.split("/$ref")[0],w.key=x,h.warn("Dereffing %s at %s",x,w.path),w.source=d,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(l.master,w.key),w.source=l.master),w.data===!1&&h.warn("Missing $ref target",w.key),l.cache[x]=w,w.data=y.parent[y.pkey]=i(r(w.source,w.key),w.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),w.resolved=!0}}});return u.data}return p7={dereference:i},p7}var h7,RU;function YRe(){if(RU)return h7;RU=1,h7=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,w);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var S=j[k];s(h[S],S,k,b,h,x,w)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return x}function u(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,w);else{var j={},S=Object.keys(h).sort(l);for(k=0;k<S.length;k++){var E=S[k];u(h[E],E,k,b,h,x,w),j[E]=h[E]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return h7}var f7,IU;function MU(){if(IU)return f7;IU=1;var e={};const t=YRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,w){return w.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function w(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return w(y,x)&&w(x,y)}function s(y){let x=[];for(let w of y)x.find(function(k,j,S){return a(k,w)})||x.push(w);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,w,k){return y.indexOf(x)<w})}function u(y){let x=0,w;if(y.length===0)return x;for(let k=0;k<y.length;k++)w=y.charCodeAt(k),x=(x<<5)-x+w,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.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"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return f7={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},f7}var g7,LU;function GRe(){if(LU)return g7;LU=1;const e=Lh,t=kL(),r=n7(),n=Lh,o=Lh,i=ex().jptr,a=d7().recurse,s=tx().clone,l=XRe().dereference,c=l7().isRef,u=MU();function d(_){return[...new Set(_)]}function h(_,P,I,D,M){return new Promise(function(N,L){e.readFile(_,P,function(H,Y){H?I.ignoreIOErrors&&M?(I.verbose&&console.warn("FAILED",D),I.externalRefs[D].failed=!0,N(M)):L(H):N(Y)})})}function g(_,P,I,D,M,N){let L=N.externalRefs[I+D].paths[0],H=r.parse(M),Y={},te=1;for(;te;)te=0,a(_,{identityDetection:!0},function(K,se,U){if(c(K,se)){if(K[se].startsWith("#")){if(!Y[K[se]]&&!K.$fixed){let V=s(i(P,K[se]));if(N.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",K[se],u.colour.normal),V===!1){if(U.parent[U.pkey]={},N.fatal){let X=new Error("Fragment $ref resolution failed "+K[se]);if(N.promise)N.promise.reject(X);else throw X}}else te++,U.parent[U.pkey]=V,Y[K[se]]=U.path.replace("/%24ref","")}else if(!K.$fixed){let V=(L+"/"+Y[K[se]]).split("/#/").join("/");U.parent[U.pkey]={$ref:V,"x-miro":K[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",V),te++}}else if(H.protocol){let V=r.resolve(M,K[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",K[se],"as",V,u.colour.normal),K["x-miro"]=K[se],N.externalRefs[K[se]]&&(N.externalRefs[V]||(N.externalRefs[V]=N.externalRefs[K[se]]),N.externalRefs[V].failed=N.externalRefs[K[se]].failed),K[se]=V}else if(!K["x-miro"]){let V=r.resolve(M,K[se]).toString(),X=!1;N.externalRefs[K[se]]&&(X=N.externalRefs[K[se]].failed),X||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",K[se],"as",V,u.colour.normal),K["x-miro"]=K[se],K[se]=V)}}});return a(_,{},function(K,se,U){c(K,se)&&typeof K.$fixed<"u"&&delete K.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,P){if(!P.filters||!P.filters.length)return _;for(let I of P.filters)_=I(_,P);return _}function b(_,P){return _&&_.length>2?_:P&&P.length>2?P:"file:"}function y(_,P,I,D){var M=r.parse(I.source),N=I.source.split("\\").join("/").split("/");N.pop()||N.pop();let L="",H=P.split("#");H.length>1&&(L="#"+H[1],P=H[0]),N=N.join("/");let Y=r.parse(P),te=b(Y.protocol,M.protocol),K;if(te==="file:"?K=t.resolve(N?N+"/":"",P):K=r.resolve(N?N+"/":"",P),I.cache[K]){I.verbose&&console.warn("CACHED",K,L);let se=s(I.cache[K]),U=I.externalRef=se;if(L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let V=new Error("Cached $ref resolution failed "+K+L);if(I.promise)I.promise.reject(V);else throw V}return U=g(U,se,P,L,K,I),U=v(U,I),D(s(U),K,I),Promise.resolve(U)}if(I.verbose&&console.warn("GET",K,L),I.handlers&&I.handlers[te])return I.handlers[te](N,P,L,I).then(function(se){return I.externalRef=se,se=v(se,I),I.cache[K]=se,D(se,K,I),se}).catch(function(se){throw I.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(K,se).then(function(U){if(U.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",P),I.externalRefs[P].failed=!0,'{"$ref":"'+P+'"}';throw new Error(`Received status code ${U.status}: ${K}`)}return U.text()}).then(function(U){try{let V=o.parse(U,{schema:"core",prettyErrors:!0});if(U=I.externalRef=V,I.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let X=new Error("Remote $ref resolution failed "+K+L);if(I.promise)I.promise.reject(X);else throw X}U=g(U,V,P,L,K,I),U=v(U,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return D(U,K,I),U}).catch(function(U){if(I.verbose&&console.warn(U),I.cache[K]={},I.promise&&I.fatal)I.promise.reject(U);else throw U})}else{const se='{"$ref":"'+P+'"}';return h(K,I.encoding||"utf8",I,P,se).then(function(U){try{let V=o.parse(U,{schema:"core",prettyErrors:!0});if(U=I.externalRef=V,I.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let X=new Error("File $ref resolution failed "+K+L);if(I.promise)I.promise.reject(X);else throw X}U=g(U,V,P,L,K,I),U=v(U,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return D(U,K,I),U}).catch(function(U){if(I.verbose&&console.warn(U),I.promise&&I.fatal)I.promise.reject(U);else throw U})}}function x(_){return new Promise(function(P,I){function D(N,L,H){if(N[L]&&c(N[L],"$ref")){let Y=N[L].$ref;if(!Y.startsWith("#")){let te="";if(!M[Y]){let K=Object.keys(M).find(function(se,U,V){return Y.startsWith(se+"/")});K&&(_.verbose&&console.warn("Found potential subschema at",K),te="/"+(Y.split("#")[1]||"").replace(K.split("#")[1]||""),te=te.split("/undefined").join(""),Y=K)}if(M[Y]||(M[Y]={resolved:!1,paths:[],extras:{},description:N[L].description}),M[Y].resolved){if(!M[Y].failed)if(_.rewriteRefs){let K=M[Y].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",Y,K),N[L]["x-miro"]=Y,N[L].$ref=K+te}else N[L]=s(M[Y].data)}else M[Y].paths.push(H.path),M[Y].extras[H.path]=te}}}let M=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return P(M);a(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},D),a(_.openapi.components,{identityDetection:!0,path:"#/components"},D),a(_.openapi,{identityDetection:!0},D),P(M)})}function w(_){return new Promise(function(P,I){x(_).then(function(M){for(let N in M)if(!M[N].resolved){let L=_.resolver.depth;L>0&&L++,_.resolver.actions[L].push(function(){return y(_.openapi,N,_,function(H,Y,te){if(!M[N].resolved){let U={};U.context=M[N],U.$ref=N,U.original=s(H),U.updated=H,U.source=Y,te.externals.push(U),M[N].resolved=!0}let K=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&M[N].description&&!H.description&&typeof H=="object"&&(H.description=M[N].description),M[N].data=H;let se=d(M[N].paths);se=se.sort(function(U,V){const X=U.startsWith("#/components/")||U.startsWith("#/definitions/"),q=V.startsWith("#/components/")||V.startsWith("#/definitions/");return X&&!q?-1:q&&!X?1:0});for(let U of se)if(M[N].resolvedAt&&U!==M[N].resolvedAt&&U.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",U),i(te.openapi,U,{$ref:M[N].resolvedAt+M[N].extras[U],"x-miro":N+M[N].extras[U]});else{M[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(M[N].resolvedAt=U,te.verbose>1&&console.warn("Creating initial clone of data at",U));let V=s(H);i(te.openapi,U,V)}te.resolver.actions[K.resolver.depth].length===0&&te.resolver.actions[K.resolver.depth].push(function(){return w(K)})})})}}).catch(function(M){_.verbose&&console.warn(M),I(M)});let D={options:_};D.actions=_.resolver.actions[_.resolver.depth],P(D)})}const k=_=>_.reduce((P,I)=>P.then(D=>I().then(Array.prototype.concat.bind(D))),Promise.resolve([]));function j(_,P,I){_.resolver.actions.push([]),w(_).then(function(D){k(D.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),P(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){j(D.options,P,I)},0):(_.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),_.openapi=l(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(_.openapi,{},function(M,N,L){c(M,N)&&(_.preserveMiro||delete M["x-miro"])}),P(_))}).catch(function(M){_.verbose&&console.warn(M),I(M)})}).catch(function(D){_.verbose&&console.warn(D),I(D)})}function S(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let P=r.parse(_.source);(!P.protocol||P.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function E(_){return S(_),new Promise(function(P,I){_.resolve?j(_,P,I):P(_)})}function A(_,P,I){return I||(I={}),I.openapi=_,I.source=P,I.resolve=!0,S(I),new Promise(function(D,M){j(I,D,M)})}return g7={optionalResolve:E,resolve:A},g7}var m7,DU;function JRe(){if(DU)return m7;DU=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return m7={getDefaultState:e,walkSchema:t},m7}var zU={},v7={exports:{}},NU={},BU;function FU(){return BU||(BU=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){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 n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(NU)),NU}var rx={},b7={exports:{}},nx={exports:{}},QU;function KRe(){if(QU)return nx.exports;QU=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,S,E){return Function.prototype.apply.call(j,S,E)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}nx.exports=i,nx.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=j}}),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(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var S=[],E=1;E<arguments.length;E++)S.push(arguments[E]);var A=j==="error",_=this._events;if(_!==void 0)A=A&&_.error===void 0;else if(!A)return!1;if(A){var P;if(S.length>0&&(P=S[0]),P instanceof Error)throw P;var I=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw I.context=P,I}var D=_[j];if(D===void 0)return!1;if(typeof D=="function")t(D,this,S);else for(var M=D.length,N=v(D,M),E=0;E<M;++E)t(N[E],this,S);return!0};function c(j,S,E,A){var _,P,I;if(s(E),P=j._events,P===void 0?(P=j._events=Object.create(null),j._eventsCount=0):(P.newListener!==void 0&&(j.emit("newListener",S,E.listener?E.listener:E),P=j._events),I=P[S]),I===void 0)I=P[S]=E,++j._eventsCount;else if(typeof I=="function"?I=P[S]=A?[E,I]:[I,E]:A?I.unshift(E):I.push(E),_=l(j),_>0&&I.length>_&&!I.warned){I.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=j,D.type=S,D.count=I.length,n(D)}return j}i.prototype.addListener=function(j,S){return c(this,j,S,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,S){return c(this,j,S,!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(j,S,E){var A={fired:!1,wrapFn:void 0,target:j,type:S,listener:E},_=u.bind(A);return _.listener=E,A.wrapFn=_,_}i.prototype.once=function(j,S){return s(S),this.on(j,d(this,j,S)),this},i.prototype.prependOnceListener=function(j,S){return s(S),this.prependListener(j,d(this,j,S)),this},i.prototype.removeListener=function(j,S){var E,A,_,P,I;if(s(S),A=this._events,A===void 0)return this;if(E=A[j],E===void 0)return this;if(E===S||E.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete A[j],A.removeListener&&this.emit("removeListener",j,E.listener||S));else if(typeof E!="function"){for(_=-1,P=E.length-1;P>=0;P--)if(E[P]===S||E[P].listener===S){I=E[P].listener,_=P;break}if(_<0)return this;_===0?E.shift():b(E,_),E.length===1&&(A[j]=E[0]),A.removeListener!==void 0&&this.emit("removeListener",j,I||S)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var S,E,A;if(E=this._events,E===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete E[j]),this;if(arguments.length===0){var _=Object.keys(E),P;for(A=0;A<_.length;++A)P=_[A],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=E[j],typeof S=="function")this.removeListener(j,S);else if(S!==void 0)for(A=S.length-1;A>=0;A--)this.removeListener(j,S[A]);return this};function h(j,S,E){var A=j._events;if(A===void 0)return[];var _=A[S];return _===void 0?[]:typeof _=="function"?E?[_.listener||_]:[_]:E?y(_):v(_,_.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,S){return typeof j.listenerCount=="function"?j.listenerCount(S):g.call(j,S)},i.prototype.listenerCount=g;function g(j){var S=this._events;if(S!==void 0){var E=S[j];if(typeof E=="function")return 1;if(E!==void 0)return E.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,S){for(var E=new Array(S),A=0;A<S;++A)E[A]=j[A];return E}function b(j,S){for(;S+1<j.length;S++)j[S]=j[S+1];j.pop()}function y(j){for(var S=new Array(j.length),E=0;E<S.length;++E)S[E]=j[E].listener||j[E];return S}function x(j,S){return new Promise(function(E,A){function _(I){j.removeListener(S,P),A(I)}function P(){typeof j.removeListener=="function"&&j.removeListener("error",_),E([].slice.call(arguments))}k(j,S,P,{once:!0}),S!=="error"&&w(j,_,{once:!0})})}function w(j,S,E){typeof j.on=="function"&&k(j,"error",S,E)}function k(j,S,E,A){if(typeof j.on=="function")A.once?j.once(S,E):j.on(S,E);else if(typeof j.addEventListener=="function")j.addEventListener(S,function _(P){A.once&&j.removeEventListener(S,_),E(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return nx.exports}var VU,qU;function ZU(){return qU||(qU=1,VU=KRe().EventEmitter),VU}const y7=AR(oV);var x7,UU;function eIe(){if(UU)return x7;UU=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=Jy(),c=l.Buffer,u=y7,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return x7=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,w=0;x;)g(x.data,y,w),w+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,w=y.data;for(b-=w.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?w+=k:w+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,w}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,w=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++w,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++w}return this.length-=w,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),x7}var O7,HU;function WU(){if(HU)return O7;HU=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){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 o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return O7={destroy:e,undestroy:n,errorOrDestroy:i},O7}var w7={},XU;function Dh(){if(XU)return w7;XU=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(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 o(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 a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(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(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w7.codes=t,w7}var k7,YU;function GU(){if(YU)return k7;YU=1;var e=Dh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return k7={getHighWaterMark:r},k7}var S7,JU;function tIe(){if(JU)return S7;JU=1,S7=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return S7}var C7,KU;function eH(){if(KU)return C7;KU=1,C7=_;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;_.WritableState=E;var r={deprecate:tIe()},n=ZU(),o=Jy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=WU(),c=GU(),u=c.getHighWaterMark,d=Dh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function S(){}function E(G,oe,ne){t=t||zh(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=G.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){Y(oe,me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(E.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var A;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(G){return A.call(this,G)?!0:this!==_?!1:G&&G._writableState instanceof E}})):A=function(G){return G instanceof this};function _(G){t=t||zh();var oe=this instanceof t;if(!oe&&!A.call(_,this))return new _(G);this._writableState=new E(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}_.prototype.pipe=function(){j(this,new b)};function P(G,oe){var ne=new w;j(G,ne),process.nextTick(oe,ne)}function I(G,oe,ne,ve){var me;return ne===null?me=new x:typeof ne!="string"&&!oe.objectMode&&(me=new h("chunk",["string","Buffer"],ne)),me?(j(G,me),process.nextTick(ve,me),!1):!0}_.prototype.write=function(G,oe,ne){var ve=this._writableState,me=!1,T=!ve.objectMode&&s(G);return T&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),T?oe="buffer":oe||(oe=ve.defaultEncoding),typeof ne!="function"&&(ne=S),ve.ending?P(this,ne):(T||I(this,ve,G,ne))&&(ve.pendingcb++,me=M(this,ve,T,G,oe,ne)),me},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},_.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(G,oe,ne,ve,me,T){if(!ne){var Z=D(oe,ve,me);ve!==Z&&(ne=!0,me="buffer",ve=Z)}var fe=oe.objectMode?1:ve.length;oe.length+=fe;var Q=oe.length<oe.highWaterMark;if(Q||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:me,isBuf:ne,callback:T,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,ve,me,T);return Q}function N(G,oe,ne,ve,me,T,Z){oe.writelen=ve,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(me,oe.onwrite):G._write(me,T,oe.onwrite),oe.sync=!1}function L(G,oe,ne,ve,me){--oe.pendingcb,ne?(process.nextTick(me,ve),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,ve)):(me(ve),G._writableState.errorEmitted=!0,j(G,ve),q(G,oe))}function H(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function Y(G,oe){var ne=G._writableState,ve=ne.sync,me=ne.writecb;if(typeof me!="function")throw new v;if(H(ne),oe)L(G,ne,ve,oe,me);else{var T=U(ne)||G.destroyed;!T&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),ve?process.nextTick(te,G,ne,T,me):te(G,ne,T,me)}}function te(G,oe,ne,ve){ne||K(G,oe),oe.pendingcb--,ve(),q(G,oe)}function K(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var ve=oe.bufferedRequestCount,me=new Array(ve),T=oe.corkedRequestsFree;T.entry=ne;for(var Z=0,fe=!0;ne;)me[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;me.allBuffers=fe,N(G,oe,!0,oe.length,me,"",T.finish),oe.pendingcb++,oe.lastBufferedRequest=null,T.next?(oe.corkedRequestsFree=T.next,T.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var Q=ne.chunk,he=ne.encoding,ue=ne.callback,ee=oe.objectMode?1:Q.length;if(N(G,oe,!1,ee,Q,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}_.prototype._write=function(G,oe,ne){ne(new g("_write()"))},_.prototype._writev=null,_.prototype.end=function(G,oe,ne){var ve=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||W(this,ve,ne),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function V(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function X(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(V,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=U(oe);if(ne&&(X(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var ve=G._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&G.destroy()}return ne}function W(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var ve=G.entry;for(G.entry=null;ve;){var me=ve.callback;oe.pendingcb--,me(ne),ve=ve.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),_.prototype.destroy=l.destroy,_.prototype._undestroy=l.undestroy,_.prototype._destroy=function(G,oe){oe(G)},C7}var j7,tH;function zh(){if(tH)return j7;tH=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};j7=a;for(var t=uH(),r=eH(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.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(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.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(a.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)}}),j7}var E7={},A7={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var rH;function rIe(){return rH||(rH=1,function(e,t){var r=Jy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(A7,A7.exports)),A7.exports}var nH;function oH(){if(nH)return E7;nH=1;var e=rIe().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var w;;)switch(x){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 x;default:if(w)return;x=(""+x).toLowerCase(),w=!0}}function n(x){var w=r(x);if(typeof w!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return w||x}E7.StringDecoder=o;function o(x){this.encoding=n(x);var w;switch(this.encoding){case"utf16le":this.text=d,this.end=h,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=g,this.end=v,w=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(x){if(x.length===0)return"";var w,k;if(this.lastNeed){if(w=this.fillLast(x),w===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?w?w+this.text(x,k):this.text(x,k):w||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,w,k){var j=w.length-1;if(j<k)return 0;var S=i(w[j]);return S>=0?(S>0&&(x.lastNeed=S-1),S):--j<k||S===-2?0:(S=i(w[j]),S>=0?(S>0&&(x.lastNeed=S-2),S):--j<k||S===-2?0:(S=i(w[j]),S>=0?(S>0&&(S===2?S=0:x.lastNeed=S-3),S):0))}function s(x,w,k){if((w[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var w=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,w,0,x.length),this.lastNeed-=x.length}function c(x,w){var k=a(this,x,w);if(!this.lastNeed)return x.toString("utf8",w);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",w,j)}function u(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+"\uFFFD":w}function d(x,w){if((x.length-w)%2===0){var k=x.toString("utf16le",w);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",w,x.length-1)}function h(x){var w=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,k)}return w}function g(x,w){var k=(x.length-w)%3;return k===0?x.toString("base64",w):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",w,x.length-k))}function v(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return E7}var _7,iH;function P7(){if(iH)return _7;iH=1;var e=Dh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.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)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(w){s.call(i,w)},y=function(){var w;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(w=new e),s.call(i,w);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(w=new e),s.call(i,w)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),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",b),i.removeListener("close",y)}}return _7=o,_7}var T7,aH;function nIe(){if(aH)return T7;aH=1;var e;function t(k,j,S){return j=r(j),j in k?Object.defineProperty(k,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[j]=S,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var S=k[Symbol.toPrimitive];if(S!==void 0){var E=S.call(k,j);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=P7(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var S=k[d].read();S!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(S,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(S,E){k.then(function(){if(j[l]){S(h(void 0,!0));return}j[u](S,E)},E)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(_,P){process.nextTick(function(){k[s]?P(k[s]):_(h(void 0,!0))})});var S=this[c],E;if(S)E=new Promise(b(S,this));else{var A=this[d].read();if(A!==null)return Promise.resolve(h(A,!1));E=new Promise(this[u])}return this[c]=E,E}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,S){k[d].destroy(null,function(E){if(E){S(E);return}j(h(void 0,!0))})})}),e),y),w=function(k){var j,S=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(E,A){var _=S[d].read();_?(S[c]=null,S[i]=null,S[a]=null,E(h(_,!1))):(S[i]=E,S[a]=A)},writable:!0}),j));return S[c]=null,o(k,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var A=S[a];A!==null&&(S[c]=null,S[i]=null,S[a]=null,A(E)),S[s]=E;return}var _=S[i];_!==null&&(S[c]=null,S[i]=null,S[a]=null,_(h(void 0,!0))),S[l]=!0}),k.on("readable",v.bind(null,S)),S};return T7=w,T7}var sH,lH;function oIe(){return lH||(lH=1,sH=function(){throw new Error("Readable.from is not available in the browser")}),sH}var $7,cH;function uH(){if(cH)return $7;cH=1,$7=P;var e;P.ReadableState=_;var t=function(T,Z){return T.listeners(Z).length},r=ZU(),n=Jy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return n.from(T)}function a(T){return n.isBuffer(T)||T instanceof o}var s=y7,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=eIe(),u=WU(),d=GU(),h=d.getHighWaterMark,g=Dh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,k,j,S=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(T,Z,fe){if(typeof T.prependListener=="function")return T.prependListener(Z,fe);!T._events||!T._events[Z]?T.on(Z,fe):Array.isArray(T._events[Z])?T._events[Z].unshift(fe):T._events[Z]=[fe,T._events[Z]]}function _(T,Z,fe){e=e||zh(),T=T||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!T.objectMode,fe&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",fe),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(w||(w=oH().StringDecoder),this.decoder=new w(T.encoding),this.encoding=T.encoding)}function P(T){if(e=e||zh(),!(this instanceof P))return new P(T);var Z=this instanceof e;this._readableState=new _(T,this,Z),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),P.prototype.destroy=u.destroy,P.prototype._undestroy=u.undestroy,P.prototype._destroy=function(T,Z){Z(T)},P.prototype.push=function(T,Z){var fe=this._readableState,Q;return fe.objectMode?Q=!0:typeof T=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(T=n.from(T,Z),Z=""),Q=!0),I(this,T,Z,!1,Q)},P.prototype.unshift=function(T){return I(this,T,null,!0,!1)};function I(T,Z,fe,Q,he){l("readableAddChunk",Z);var ue=T._readableState;if(Z===null)ue.reading=!1,Y(T,ue);else{var ee;if(he||(ee=M(ue,Z)),ee)S(T,ee);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),Q)ue.endEmitted?S(T,new x):D(T,ue,Z,!0);else if(ue.ended)S(T,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?D(T,ue,Z,!1):se(T,ue)):D(T,ue,Z,!1)}else Q||(ue.reading=!1,se(T,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function D(T,Z,fe,Q){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,T.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,Q?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(T)),se(T,Z)}function M(T,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!T.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(T){w||(w=oH().StringDecoder);var Z=new w(T);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,Q="";fe!==null;)Q+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var N=1073741824;function L(T){return T>=N?T=N:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function H(T,Z){return T<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:T!==T?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(T>Z.highWaterMark&&(Z.highWaterMark=L(T)),T<=Z.length?T:Z.ended?Z.length:(Z.needReadable=!0,0))}P.prototype.read=function(T){l("read",T),T=parseInt(T,10);var Z=this._readableState,fe=T;if(T!==0&&(Z.emittedReadable=!1),T===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(T=H(T,Z),T===0&&Z.ended)return Z.length===0&&ne(this),null;var Q=Z.needReadable;l("need readable",Q),(Z.length===0||Z.length-T<Z.highWaterMark)&&(Q=!0,l("length less than watermark",Q)),Z.ended||Z.reading?(Q=!1,l("reading or ended",Q)):Q&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(T=H(fe,Z)));var he;return T>0?he=oe(T,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,T=0):(Z.length-=T,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==T&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function Y(T,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(T):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,K(T)))}}function te(T){var Z=T._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(K,T))}function K(T){var Z=T._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(T.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(T)}function se(T,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(U,T,Z))}function U(T,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),T.read(0),fe===Z.length)break}Z.readingMore=!1}P.prototype._read=function(T){S(this,new y("_read()"))},P.prototype.pipe=function(T,Z){var fe=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=T;break;case 1:Q.pipes=[Q.pipes,T];break;default:Q.pipes.push(T);break}Q.pipesCount+=1,l("pipe count=%d opts=%j",Q.pipesCount,Z);var he=(!Z||Z.end!==!1)&&T!==null&&T!==process.stderr,ue=he?ae:He;Q.endEmitted?process.nextTick(ue):fe.once("end",ue),T.on("unpipe",ee);function ee(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Oe())}function ae(){l("onend"),T.end()}var le=V(fe);T.on("drain",le);var Ae=!1;function Oe(){l("cleanup"),T.removeListener("close",ye),T.removeListener("finish",Se),T.removeListener("drain",le),T.removeListener("error",xe),T.removeListener("unpipe",ee),fe.removeListener("end",ae),fe.removeListener("end",He),fe.removeListener("data",be),Ae=!0,Q.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&le()}fe.on("data",be);function be(B){l("ondata");var J=T.write(B);l("dest.write",J),J===!1&&((Q.pipesCount===1&&Q.pipes===T||Q.pipesCount>1&&me(Q.pipes,T)!==-1)&&!Ae&&(l("false write response, pause",Q.awaitDrain),Q.awaitDrain++),fe.pause())}function xe(B){l("onerror",B),He(),T.removeListener("error",xe),t(T,"error")===0&&S(T,B)}A(T,"error",xe);function ye(){T.removeListener("finish",Se),He()}T.once("close",ye);function Se(){l("onfinish"),T.removeListener("close",ye),He()}T.once("finish",Se);function He(){l("unpipe"),fe.unpipe(T)}return T.emit("pipe",fe),Q.flowing||(l("pipe resume"),fe.resume()),T};function V(T){return function(){var Z=T._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(T,"data")&&(Z.flowing=!0,G(T))}}P.prototype.unpipe=function(T){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return T&&T!==Z.pipes?this:(T||(T=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,T&&T.emit("unpipe",this,fe),this);if(!T){var Q=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)Q[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var ee=me(Z.pipes,T);return ee===-1?this:(Z.pipes.splice(ee,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),T.emit("unpipe",this,fe),this)},P.prototype.on=function(T,Z){var fe=r.prototype.on.call(this,T,Z),Q=this._readableState;return T==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):T==="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?te(this):Q.reading||process.nextTick(q,this)),fe},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(T,Z){var fe=r.prototype.removeListener.call(this,T,Z);return T==="readable"&&process.nextTick(X,this),fe},P.prototype.removeAllListeners=function(T){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(X,this),Z};function X(T){var Z=T._readableState;Z.readableListening=T.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:T.listenerCount("data")>0&&T.resume()}function q(T){l("readable nexttick read 0"),T.read(0)}P.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,W(this,T)),T.paused=!1,this};function W(T,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,T,Z))}function re(T,Z){l("resume",Z.reading),Z.reading||T.read(0),Z.resumeScheduled=!1,T.emit("resume"),G(T),Z.flowing&&!Z.reading&&T.read(0)}P.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 G(T){var Z=T._readableState;for(l("flow",Z.flowing);Z.flowing&&T.read()!==null;);}P.prototype.wrap=function(T){var Z=this,fe=this._readableState,Q=!1;T.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var ee=fe.decoder.end();ee&&ee.length&&Z.push(ee)}Z.push(null)}),T.on("data",function(ee){if(l("wrapped data"),fe.decoder&&(ee=fe.decoder.write(ee)),!(fe.objectMode&&ee==null)&&!(!fe.objectMode&&(!ee||!ee.length))){var ae=Z.push(ee);ae||(Q=!0,T.pause())}});for(var he in T)this[he]===void 0&&typeof T[he]=="function"&&(this[he]=function(ee){return function(){return T[ee].apply(T,arguments)}}(he));for(var ue=0;ue<E.length;ue++)T.on(E[ue],this.emit.bind(this,E[ue]));return this._read=function(ee){l("wrapped _read",ee),Q&&(Q=!1,T.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=nIe()),k(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),P._fromList=oe,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(T,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!T||T>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(T,Z.decoder),fe}function ne(T){var Z=T._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(ve,Z,T))}function ve(T,Z){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,Z.readable=!1,Z.emit("end"),T.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(P.from=function(T,Z){return j===void 0&&(j=oIe()),j(P,T,Z)});function me(T,Z){for(var fe=0,Q=T.length;fe<Q;fe++)if(T[fe]===Z)return fe;return-1}return $7}var R7,dH;function pH(){if(dH)return R7;dH=1,R7=s;var e=Dh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=zh();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(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:a.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 g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.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 o;if(u._transformState.transforming)throw new n;return u.push(null)}return R7}var I7,hH;function iIe(){if(hH)return I7;hH=1,I7=t;var e=pH();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},I7}var M7,fH;function aIe(){if(fH)return M7;fH=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=Dh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=P7()),e(h,{readable:g,writable:v},function(w){if(w)return b(w);y=!0,b()});var x=!1;return function(w){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(w||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(w,k){var j=k<g.length-1,S=k>0;return s(w,j,S,function(E){y||(y=E),E&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return M7=d,M7}var gH;function mH(){return gH||(gH=1,function(e,t){t=e.exports=uH(),t.Stream=t,t.Readable=t,t.Writable=eH(),t.Duplex=zh(),t.Transform=pH(),t.PassThrough=iIe(),t.finished=P7(),t.pipeline=aIe()}(b7,b7.exports)),b7.exports}var vH;function bH(){if(vH)return rx;vH=1;var e=FU(),t=g9(),r=mH(),n=rx.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=rx.IncomingMessage=function(i,a,s,l){var c=this;if(r.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 b=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,w){c._destroyed?w():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}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(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},rx}var yH;function sIe(){if(yH)return v7.exports;yH=1;var e=FU(),t=g9(),r=bH(),n=mH(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=v7.exports=function(u){var d=this;n.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,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!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=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={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,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(w){var k=h[w].name,j=h[w].value;Array.isArray(j)?j.forEach(function(S){v.push([k,S])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(w){u._fetchResponse=w,u._resetTimers(!1),u._connect()},function(w){u._resetTimers(!0),u._destroyed||u.emit("error",w)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(w){process.nextTick(function(){u.emit("error",w)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(w){x.setRequestHeader(w[0],w[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(w){process.nextTick(function(){u.emit("error",w)});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 o(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 g=this;g._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 g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,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 v7.exports}var L7,xH;function lIe(){if(xH)return L7;xH=1,L7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return L7}var OH,wH;function cIe(){return wH||(wH=1,OH={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"}),OH}var kH;function uIe(){return kH||(kH=1,function(e){var t=sIe(),r=bH(),n=lIe(),o=cIe(),i=n7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.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"]}(zU)),zU}var SH,CH;function dIe(){return CH||(CH=1,SH={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},uIe().STATUS_CODES)}),SH}const pIe="7.0.8",hIe={version:pIe};var D7,jH;function fIe(){if(jH)return D7;jH=1;const e=Lh,t=n7(),r=WRe(),n=Lh,o=Lh,i=ex(),a=i.jptr,s=l7().isRef,l=tx().clone,c=tx().circularClone,u=d7().recurse,d=GRe(),h=JRe(),g=MU(),v=dIe().statusCodes,b=hIe.version,y="3.0.0";let x;class w extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(T,Z){let fe=new w(T);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(T,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=T:k(T,fe)}function S(T,Z,fe){if(T.nullable&&fe.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(fe.patch){if(fe.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let Q of T.type){let he={};if(Q==="null")T.nullable=!0;else{he.type=Q;for(let ue of g.arrayProperties)typeof T.prop<"u"&&(he[ue]=T[ue],delete T[ue])}he.type&&T.oneOf.push(he)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&j("Lost properties from oneOf",T,fe),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else k("(Patchable) schema type must not be an array",fe);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(fe.patches++,delete T.allowEmptyValue)}function E(T,Z){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let fe in T.discriminator.mapping){let Q=T.discriminator.mapping[fe];Q.startsWith("#/definitions/")&&(T.discriminator.mapping[fe]=Q.replace("#/definitions/","#/components/schemas/"))}}}function A(T,Z){h.walkSchema(T,{},{},function(fe,Q,he){E(fe),S(fe,Q,Z)})}function _(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(T))}function P(T,Z,fe){let Q=fe.payload.options;if(s(T,Z)){if(!T[Z].startsWith("#/components/")){if(T[Z]==="#/consumes")delete T[Z],fe.parent[fe.pkey]=l(Q.openapi.consumes);else if(T[Z]==="#/produces")delete T[Z],fe.parent[fe.pkey]=l(Q.openapi.produces);else if(T[Z].startsWith("#/definitions/")){let he=T[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let ee=x.schemas[decodeURIComponent(ue)];ee?he[0]=ee:j("Could not resolve reference "+T[Z],T,Q),T[Z]="#/components/schemas/"+he.join("/")}else if(T[Z].startsWith("#/parameters/"))T[Z]="#/components/parameters/"+g.sanitise(T[Z].replace("#/parameters/",""));else if(T[Z].startsWith("#/responses/"))T[Z]="#/components/responses/"+g.sanitise(T[Z].replace("#/responses/",""));else if(T[Z].startsWith("#")){let he=l(i.jptr(Q.openapi,T[Z]));if(he===!1)j("direct $ref not found "+T[Z],T,Q);else if(Q.refmap[T[Z]])T[Z]=Q.refmap[T[Z]];else{let ue=T[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let ee="schemas",ae=ue.lastIndexOf("/schema");if(ee=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",ee==="schemas"&&A(he,Q),ee!=="responses"&&ee!=="extensions"){let le=ee.substr(0,ee.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let Ae=1;for(T["x-miro"]&&(le=_(T["x-miro"]),Ae="");i.jptr(Q.openapi,"#/components/"+ee+"/"+le+Ae);)Ae=Ae===""?2:++Ae;let Oe="#/components/"+ee+"/"+le+Ae,be="";ee==="examples"&&(he={value:he},be="/value"),i.jptr(Q.openapi,Oe,he),Q.refmap[T[Z]]=Oe+be,T[Z]=Oe+be}}}}if(delete T["x-miro"],Object.keys(T).length>1){const he=T[Z],ue=fe.path.indexOf("/schema")>=0;Q.refSiblings==="preserve"||(ue&&Q.refSiblings==="allOf"?(delete T.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},T]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof T[Z]=="string"&&T[Z].startsWith("#/")){let he=T[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+T[Z],T,Q),T[Z]="#/components/schemas/"+he.join("/")}}function I(T,Z){for(let fe in Z.refmap)i.jptr(T,fe,{$ref:Z.refmap[fe]})}function D(T){for(let Z in T)for(let fe in T[Z]){let Q=g.sanitise(fe);fe!==Q&&(T[Z][Q]=T[Z][fe],delete T[Z][fe])}}function M(T,Z){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let fe={},Q=T.flow;T.flow==="application"&&(Q="clientCredentials"),T.flow==="accessCode"&&(Q="authorizationCode"),typeof T.authorizationUrl<"u"&&(fe.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(fe.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=T.scopes||{},T.flows={},T.flows[Q]=fe,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&(Z.patch?(Z.patches++,delete T.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(T){return T&&!T["x-s2o-delete"]}function L(T,Z){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&j("Nested collectionFormats are not supported",T,Z),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",T,Z):T.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",T,Z):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",T,Z),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&(Z.patch?(Z.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete T.type;for(let fe of g.parameterTypeProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe]);for(let fe of g.arrayProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe])}}function H(T,Z){if(T.$ref.indexOf("#/parameters/")>=0){let fe=T.$ref.split("#/parameters/");T.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}T.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",T,Z)}function Y(T,Z){let fe={};for(let Q of Object.keys(T))fe[Q]=T[Q],Q==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(T,Z,fe,Q,he,ue,ee){let ae={},le=!0,Ae;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(ee.patch)ee.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",ee);Array.isArray(ue.consumes)||delete ue.consumes;let Oe=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){H(T,ee);let be=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),xe=!1,ye=ue.components.parameters[be];if((!ye||ye["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,xe=!0),xe){let Se=T.$ref,He=a(ue,T.$ref);!He&&Se.startsWith("#/")?j("Could not resolve reference "+Se,T,ee):He&&(T=He)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(ee.patch?(ee.patches++,T.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",ee)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=a(ue,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,Ae=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=a(ue,T.description.$ref)),T.description===null&&delete T.description;let be=T.collectionFormat;if(T.type==="array"&&!be&&(be="csv"),be&&(T.type!=="array"&&(ee.patch?(ee.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",ee)),be==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),be==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),be==="ssv"&&(T.in==="query"?T.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",T,ee)),be==="pipes"&&(T.in==="query"?T.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",T,ee)),be==="multi"&&(T.explode=!0),be==="tsv"&&(j("collectionFormat:tsv is no longer supported",T,ee),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)j("parameter has array,items and schema",T,ee);else{T.schema&&ee.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(xe,ye,Se){ye==="collectionFormat"&&typeof xe[ye]=="string"&&(be&&xe[ye]!==be&&j("Nested collectionFormats are not supported",T,ee),delete xe[ye])}));for(let xe of g.parameterTypeProperties)typeof T[xe]<"u"&&(T.schema[xe]=T[xe]),delete T[xe]}T.schema&&A(T.schema,ee),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){le=!1,ae.content={};let be="application/x-www-form-urlencoded";if(Oe.length&&Oe.indexOf("multipart/form-data")>=0&&(be="multipart/form-data"),ae.content[be]={},T.schema)ae.content[be].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[be].schema={},ae.content[be].schema.type="object",ae.content[be].schema.properties={},ae.content[be].schema.properties[T.name]={};let xe=ae.content[be].schema,ye=ae.content[be].schema.properties[T.name];T.description&&(ye.description=T.description),T.example&&(ye.example=T.example),T.type&&(ye.type=T.type);for(let Se of g.parameterTypeProperties)typeof T[Se]<"u"&&(ye[Se]=T[Se]);T.required===!0&&(xe.required||(xe.required=[]),xe.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ye.default=T.default),ye.properties&&(ye.properties=T.properties),T.allOf&&(ye.allOf=T.allOf),T.type==="array"&&T.items&&(ye.items=T.items,ye.items.collectionFormat&&delete ye.items.collectionFormat),(Ae==="file"||T["x-s2o-originalType"]==="file")&&(ye.type="string",ye.format="binary"),K(T,ye)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",K(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),Z&&ee.rbname&&T.name&&(Z[ee.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Oe.length||Oe.push("application/json");for(let be of Oe)ae.content[be]={},ae.content[be].schema=l(T.schema||{}),A(ae.content[be].schema,ee);K(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let be=Z.operationId||he;j("Operation "+be+" has multiple requestBodies",Z,ee)}else Z.requestBody||(Z=fe[Q]=Y(Z,ee)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.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?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.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?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let be of g.parameterTypeProperties)delete T[be];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(ee.patch?(ee.patches++,T.required=!0):k("(Patchable) path parameters must be required:true ["+T.name+" in "+he+"]",ee))}return Z}function K(T,Z){for(let fe in T)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=T[fe])}function se(T,Z,fe,Q,he){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+T.$ref,T,he):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&he.patch)&&(he.patch?typeof T=="object"&&!Array.isArray(T)&&(he.patches++,T.description=v[T]||""):k("(Patchable) response.description is mandatory",he)),typeof T.schema<"u"){if(A(T.schema,he),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);Q.produces&&!Array.isArray(Q.produces)&&delete Q.produces;let ue=((fe?fe.produces:null)||Q.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),T.content={};for(let ee of ue){if(T.content[ee]={},T.content[ee].schema=l(T.schema),T.examples&&T.examples[ee]){let ae={};ae.value=T.examples[ee],T.content[ee].examples={},T.content[ee].examples.response=ae,delete T.examples[ee]}T.content[ee].schema.type==="file"&&(T.content[ee].schema={type:"string",format:"binary"})}delete T.schema}for(let ue in T.examples)T.content||(T.content={}),T.content[ue]||(T.content[ue]={}),T.content[ue].examples={},T.content[ue].examples.response={},T.content[ue].examples.response.value=T.examples[ue];if(delete T.examples,T.headers)for(let ue in T.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete T.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):L(T.headers[ue],he)}}function U(T,Z,fe,Q,he){for(let ue in T){let ee=T[ue];ee&&ee["x-trace"]&&typeof ee["x-trace"]=="object"&&(ee.trace=ee["x-trace"],delete ee["x-trace"]),ee&&ee["x-summary"]&&typeof ee["x-summary"]=="string"&&(ee.summary=ee["x-summary"],delete ee["x-summary"]),ee&&ee["x-description"]&&typeof ee["x-description"]=="string"&&(ee.description=ee["x-description"],delete ee["x-description"]),ee&&ee["x-servers"]&&Array.isArray(ee["x-servers"])&&(ee.servers=ee["x-servers"],delete ee["x-servers"]);for(let ae in ee)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=ee[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(ee.parameters)for(let Ae of ee.parameters)typeof Ae.$ref=="string"&&(H(Ae,fe),Ae=a(he,Ae.$ref)),!le.parameters.find(function(Oe,be,xe){return Oe.name===Ae.name&&Oe.in===Ae.in})&&(Ae.in==="formData"||Ae.in==="body"||Ae.type==="file")&&(le=te(Ae,le,ee,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let Ae of le.parameters)le=te(Ae,le,ee,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&D(le.security),typeof le=="object"){if(!le.responses){let Ae={};Ae.description="Default response",le.responses={default:Ae}}for(let Ae in le.responses){let Oe=le.responses[Ae];se(Oe,Ae,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let Ae of le.schemes)if((!he.schemes||he.schemes.indexOf(Ae)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Oe of he.servers){let be=l(Oe),xe=t.parse(be.url);xe.protocol=Ae,be.url=xe.format(),le.servers.push(be)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let Ae in le["x-ms-examples"]){let Oe=le["x-ms-examples"][Ae],be=g.sanitiseAll(Ae);if(Oe.parameters)for(let xe in Oe.parameters){let ye=Oe.parameters[xe];for(let Se of(le.parameters||[]).concat(ee.parameters||[]))Se.$ref&&(Se=i.jptr(he,Se.$ref)),Se.name===xe&&!Se.example&&(Se.examples||(Se.examples={}),Se.examples[Ae]={value:ye})}if(Oe.responses)for(let xe in Oe.responses){if(Oe.responses[xe].headers)for(let ye in Oe.responses[xe].headers){let Se=Oe.responses[xe].headers[ye];for(let He in le.responses[xe].headers)if(He===ye){let B=le.responses[xe].headers[He];B.example=Se}}if(Oe.responses[xe].body&&(he.components.examples[be]={value:l(Oe.responses[xe].body)},le.responses[xe]&&le.responses[xe].content))for(let ye in le.responses[xe].content){let Se=le.responses[xe].content[ye];Se.examples||(Se.examples={}),Se.examples[Ae]={$ref:"#/components/examples/"+be}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let Ae=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Oe=g.sanitise(le.requestBody["x-s2o-name"]||Ae||"");delete le.requestBody["x-s2o-name"];let be=JSON.stringify(le.requestBody),xe=g.hash(be);if(!Q[xe]){let Se={};Se.name=Oe,Se.body=le.requestBody,Se.refs=[],Q[xe]=Se}let ye="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";Q[xe].refs.push(ye)}}}if(ee&&ee.parameters){for(let ae in ee.parameters){let le=ee.parameters[ae];te(le,null,ee,null,ue,he,fe)}!fe.debug&&Array.isArray(ee.parameters)&&(ee.parameters=ee.parameters.filter(N))}}}function V(T,Z){let fe={};x={schemas:{}},T.security&&D(T.security);for(let he in T.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(T.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),T.components.securitySchemes[ue]=T.components.securitySchemes[he],delete T.components.securitySchemes[he]),M(T.components.securitySchemes[ue],Z)}for(let he in T.components.schemas){let ue=g.sanitiseAll(he),ee="";if(he!==ue){for(;T.components.schemas[ue+ee];)ee=ee?++ee:2;T.components.schemas[ue+ee]=T.components.schemas[he],delete T.components.schemas[he]}x.schemas[he]=ue+ee,A(T.components.schemas[ue+ee],Z)}Z.refmap={},u(T,{payload:{options:Z}},P),I(T,Z);for(let he in T.components.parameters){let ue=g.sanitise(he);he!==ue&&(T.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),T.components.parameters[ue]=T.components.parameters[he],delete T.components.parameters[he]);let ee=T.components.parameters[ue];te(ee,null,null,null,ue,T,Z)}for(let he in T.components.responses){let ue=g.sanitise(he);he!==ue&&(T.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),T.components.responses[ue]=T.components.responses[he],delete T.components.responses[he]);let ee=T.components.responses[ue];if(se(ee,ue,null,T,Z),ee.headers)for(let ae in ee.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete ee.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):L(ee.headers[ae],Z)}for(let he in T.components.requestBodies){let ue=T.components.requestBodies[he],ee=JSON.stringify(ue),ae=g.hash(ee),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(U(T.paths,"paths",Z,fe,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",Z,fe,T),!Z.debug)for(let he in T.components.parameters)T.components.parameters[he]["x-s2o-delete"]&&delete T.components.parameters[he];Z.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let Q=[];if(T.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let ee=fe[ue];if(ee.refs.length>1){let ae="";for(ee.name||(ee.name="requestBody",ae=he++);Q.indexOf(ee.name+ae)>=0;)ae=ae?++ae:2;ee.name=ee.name+ae,Q.push(ee.name),T.components.requestBodies[ee.name]=l(ee.body);for(let le in ee.refs){let Ae={};Ae.$ref="#/components/requestBodies/"+ee.name,i.jptr(T,ee.refs[le],Ae)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function X(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function(Z,fe){T.variables||(T.variables={}),T.variables[fe]={default:"unknown"}})),T}function q(T,Z,fe){if(typeof T.info>"u"||T.info===null)if(Z.patch)Z.patches++,T.info={version:"",title:""};else return fe(new w("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return fe(new w("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if(Z.patch)Z.patches++,T.info.title="";else return fe(new w("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if(Z.patch)Z.patches++,T.info.version="";else return fe(new w("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if(Z.patch)Z.patches++,T.info.version=T.info.version.toString();else return fe(new w("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if(Z.patch)Z.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return fe(new w("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if(Z.patch)Z.patches++,T.info.termsOfService="";else return fe(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete T.info.termsOfService;else return fe(new w("(Patchable) info.termsOfService must be a URL"))}}}function W(T,Z,fe){if(typeof T.paths>"u")if(Z.patch)Z.patches++,T.paths={};else return fe(new w("(Patchable) paths object is mandatory"))}function re(T,Z){const fe=new WeakSet;u(T,{identityDetection:!0},function(Q,he,ue){typeof Q[he]=="object"&&Q[he]!==null&&(fe.has(Q[he])?Z.anchors?Q[he]=l(Q[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(Q[he]))})}function G(T,Z,fe){return r(fe,new Promise(function(Q,he){if(T||(T={}),Z.original=T,Z.text||(Z.text=o.stringify(T)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=Q,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(T,Z),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){Z.openapi=c(T),q(Z.openapi,Z,he),W(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?Q(Z.openapi):Q(Z)}).catch(function(ee){console.warn(ee),he(ee)});return}if(!T.swagger||T.swagger!="2.0")return he(new w("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let ee={};ee.url=Z.source||Z.origin,ee.format="swagger",ee.version=T.swagger,ee.converter={},ee.converter.url="https://github.com/mermade/oas-kit",ee.converter.version=b,ue["x-origin"].push(ee)}if(ue=Object.assign(ue,c(T)),delete ue.swagger,u(ue,{},function(ee,ae,le){ee[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete ee[ae]}),T.host)for(let ee of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},le=(T.basePath||"").replace(/\/$/,"");ae.url=(ee?ee+":":"")+"//"+T.host+le,X(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(T.basePath){let ee={};ee.url=T.basePath,X(ee),ue.servers||(ue.servers=[]),ue.servers.push(ee)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),T["x-ms-parameterized-host"]){let ee=T["x-ms-parameterized-host"],ae={};ae.url=ee.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let Ae in ee.parameters){let Oe=ee.parameters[Ae];Oe.$ref&&(Oe=l(a(ue,Oe.$ref))),Ae.startsWith("x-")||(delete Oe.required,delete Oe.type,delete Oe.in,typeof Oe.default>"u"&&(Oe.enum?Oe.default=Oe.enum[0]:Oe.default="none"),Oe.name||(Oe.name=le[Ae].replace("{","").replace("}","")),ae.variables[Oe.name]=Oe,delete Oe.name)}ue.servers||(ue.servers=[]),ee.useSchemePrefix===!1?ue.servers.push(ae):T.schemes.forEach(Ae=>{ue.servers.push(Object.assign({},ae,{url:Ae+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),W(ue,Z,he),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(Z).then(function(){V(Z.openapi,Z),Z.direct?Q(Z.openapi):Q(Z)}).catch(function(ee){console.warn(ee),he(ee)})}))}function oe(T,Z,fe){return r(fe,new Promise(function(Q,he){let ue=null,ee=null;try{ue=JSON.parse(T),Z.text=JSON.stringify(ue,null,2)}catch(ae){ee=ae;try{ue=o.parse(T,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=T}catch(le){ee=le}}ue?G(ue,Z).then(ae=>Q(ae)).catch(ae=>he(ae)):he(new w(ee?ee.message:"Could not parse string"))}))}function ne(T,Z,fe){return r(fe,new Promise(function(Q,he){Z.origin=!0,Z.source||(Z.source=T),Z.verbose&&console.warn("GET "+T),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(T,ue).then(function(ee){if(ee.status!==200)throw new w(`Received status code ${ee.status}: ${T}`);return ee.text()}).then(function(ee){oe(ee,Z).then(ae=>Q(ae)).catch(ae=>he(ae))}).catch(function(ee){he(ee)})}))}function ve(T,Z,fe){return r(fe,new Promise(function(Q,he){e.readFile(T,Z.encoding||"utf8",function(ue,ee){ue?he(ue):(Z.sourceFile=T,oe(ee,Z).then(ae=>Q(ae)).catch(ae=>he(ae)))})}))}function me(T,Z,fe){return r(fe,new Promise(function(Q,he){let ue="";T.on("data",function(ee){ue+=ee}).on("end",function(){oe(ue,Z).then(ee=>Q(ee)).catch(ee=>he(ee))})}))}return D7={S2OError:w,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:ve,convertStream:me},D7}var gIe=fIe();const mIe=Zn(gIe);function vIe(e){return e.paths||(e.paths={}),new Promise((t,r)=>mIe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function bIe(e){const t=new X_({}),r={config:t,base:ma?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};ma&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=yIe(e):r.ref=e;const{bundle:{parsed:n}}=await TRe(r);return n.swagger!==void 0?vIe(n):n}function yIe(e){return{source:{absoluteRef:""},parsed:e}}async function xIe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await bIe(e||t);try{Dwe(n)}catch{}return n}const OIe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await xIe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},zwe([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?va(e?.hideLoading,!1)?null:f.jsx(mEe,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function wIe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(OIe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(nV,{withCommonStyles:!0})})}function kIe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function SIe(e){const t=kIe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function CIe(e,t=document.querySelector("redoc")){qR.hydrateRoot(t,f.jsx(nV,{store:e}))}function EH(e,t={},r=U3("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),qR.createRoot(r).render($.createElement(wIe,{definition:o,definitionUrl:n,options:{...t,...SIe(r)}},["Loading..."]))}const jIe="3.13.0-next.1",EIe="f9f31a3e";function AIe(){const e=U3("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&EH(t,{},e)}AIe();var AH={exports:{}};/*!
|
|
9556
|
+
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=URe();function w(E,A,_){if(E&&t.isObject(E)&&E instanceof r)return E;var P=new r;return P.parse(E,A,_),P}r.prototype.parse=function(E,A,_){if(!t.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var P=E.indexOf("?"),I=P!==-1&&P<E.indexOf("#")?"?":"#",D=E.split(I),M=/\\/g;D[0]=D[0].replace(M,"/"),E=D.join(I);var N=E;if(N=N.trim(),!_&&E.split("#").length===1){var L=i.exec(N);if(L)return this.path=N,this.href=N,this.pathname=L[1],L[2]?(this.search=L[2],A?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):A&&(this.search="",this.query={}),this}var H=n.exec(N);if(H){H=H[0];var Y=H.toLowerCase();this.protocol=Y,N=N.substr(H.length)}if(_||H||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(H&&b[H])&&(N=N.substr(2),this.slashes=!0)}if(!b[H]&&(te||H&&!y[H])){for(var K=-1,se=0;se<u.length;se++){var U=N.indexOf(u[se]);U!==-1&&(K===-1||U<K)&&(K=U)}var V,X;K===-1?X=N.lastIndexOf("@"):X=N.lastIndexOf("@",K),X!==-1&&(V=N.slice(0,X),N=N.slice(X+1),this.auth=decodeURIComponent(V)),K=-1;for(var se=0;se<c.length;se++){var U=N.indexOf(c[se]);U!==-1&&(K===-1||U<K)&&(K=U)}K===-1&&(K=N.length),this.host=N.slice(0,K),N=N.slice(K),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var W=this.hostname.split(/\./),se=0,re=W.length;se<re;se++){var G=W[se];if(G&&!G.match(h)){for(var oe="",ne=0,ve=G.length;ne<ve;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var me=W.slice(0,se),T=W.slice(se+1),Z=G.match(g);Z&&(me.push(Z[1]),T.unshift(Z[2])),T.length&&(N="/"+T.join(".")+N),this.hostname=me.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[Y])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var ee=N.indexOf("#");ee!==-1&&(this.hash=N.substr(ee),N=N.slice(0,ee));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),A&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):A&&(this.search="",this.query={}),N&&(this.pathname=N),y[Y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(E){return t.isString(E)&&(E=w(E)),E instanceof r?E.format():r.prototype.format.call(E)}r.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var A=this.protocol||"",_=this.pathname||"",P=this.hash||"",I=!1,D="";this.host?I=E+this.host:this.hostname&&(I=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(D=x.stringify(this.query));var M=this.search||D&&"?"+D||"";return A&&A.substr(-1)!==":"&&(A+=":"),this.slashes||(!A||y[A])&&I!==!1?(I="//"+(I||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):I||(I=""),P&&P.charAt(0)!=="#"&&(P="#"+P),M&&M.charAt(0)!=="?"&&(M="?"+M),_=_.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),M=M.replace("#","%23"),A+I+_+M+P};function j(E,A){return w(E,!1,!0).resolve(A)}r.prototype.resolve=function(E){return this.resolveObject(w(E,!1,!0)).format()};function S(E,A){return E?w(E,!1,!0).resolveObject(A):A}return r.prototype.resolveObject=function(E){if(t.isString(E)){var A=new r;A.parse(E,!1,!0),E=A}for(var _=new r,P=Object.keys(this),I=0;I<P.length;I++){var D=P[I];_[D]=this[D]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var M=Object.keys(E),N=0;N<M.length;N++){var L=M[N];L!=="protocol"&&(_[L]=E[L])}return y[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!y[E.protocol]){for(var H=Object.keys(E),Y=0;Y<H.length;Y++){var te=H[Y];_[te]=E[te]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!b[E.protocol]){for(var re=(E.pathname||"").split("/");re.length&&!(E.host=re.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),_.pathname=re.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var K=_.pathname||"",se=_.search||"";_.path=K+se}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var U=_.pathname&&_.pathname.charAt(0)==="/",V=E.host||E.pathname&&E.pathname.charAt(0)==="/",X=V||U||_.host&&E.pathname,q=X,W=_.pathname&&_.pathname.split("/")||[],re=E.pathname&&E.pathname.split("/")||[],G=_.protocol&&!y[_.protocol];if(G&&(_.hostname="",_.port=null,_.host&&(W[0]===""?W[0]=_.host:W.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(re[0]===""?re[0]=E.host:re.unshift(E.host)),E.host=null),X=X&&(re[0]===""||W[0]==="")),V)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,W=re;else if(re.length)W||(W=[]),W.pop(),W=W.concat(re),_.search=E.search,_.query=E.query;else if(!t.isNullOrUndefined(E.search)){if(G){_.hostname=_.host=W.shift();var oe=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;oe&&(_.auth=oe.shift(),_.host=_.hostname=oe.shift())}return _.search=E.search,_.query=E.query,(!t.isNull(_.pathname)||!t.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!W.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var ne=W.slice(-1)[0],ve=(_.host||E.host||W.length>1)&&(ne==="."||ne==="..")||ne==="",me=0,T=W.length;T>=0;T--)ne=W[T],ne==="."?W.splice(T,1):ne===".."?(W.splice(T,1),me++):me&&(W.splice(T,1),me--);if(!X&&!q)for(;me--;me)W.unshift("..");X&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),ve&&W.join("/").substr(-1)!=="/"&&W.push("");var Z=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(G){_.hostname=_.host=Z?"":W.length?W.shift():"";var oe=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;oe&&(_.auth=oe.shift(),_.host=_.hostname=oe.shift())}return X=X||_.host&&W.length,X&&!Z&&W.unshift(""),W.length?_.pathname=W.join("/"):(_.pathname=null,_.path=null),(!t.isNull(_.pathname)||!t.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},r.prototype.parseHost=function(){var E=this.host,A=o.exec(E);A&&(A=A[0],A!==":"&&(this.port=A.substr(1)),E=E.substr(0,E.length-A.length)),E&&(this.hostname=E)},Nd}var o7,jU;function HRe(){if(jU)return o7;jU=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return o7=e(),o7}var i7,EU;function WRe(){if(EU)return i7;EU=1;var e=HRe();return i7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},i7}var a7,AU;function ex(){if(AU)return a7;AU=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return a7={jptr:r,jpescape:e,jpunescape:t},a7}var s7,_U;function l7(){if(_U)return s7;_U=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return s7={isRef:e},s7}var c7,PU;function tx(){if(PU)return c7;PU=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return c7={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},c7}var u7,TU;function d7(){if(TU)return u7;TU=1;const e=ex().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return u7={recurse:r},u7}var p7,$U;function XRe(){if($U)return p7;$U=1;const e=d7().recurse,t=tx().shallowClone,r=ex().jptr,n=l7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,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?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let w=l.cache[x];if(w.resolved)h.warn("Patching %s for %s",x,w.path),y.parent[y.pkey]=w.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===w.path)throw new Error(`Tight circle at ${w.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(w.source,w.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(w.source,w.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let w={};w.path=y.path.split("/$ref")[0],w.key=x,h.warn("Dereffing %s at %s",x,w.path),w.source=d,w.data=r(w.source,w.key),w.data===!1&&(w.data=r(l.master,w.key),w.source=l.master),w.data===!1&&h.warn("Missing $ref target",w.key),l.cache[x]=w,w.data=y.parent[y.pkey]=i(r(w.source,w.key),w.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),w.resolved=!0}}});return u.data}return p7={dereference:i},p7}var h7,RU;function YRe(){if(RU)return h7;RU=1,h7=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,w);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var S=j[k];s(h[S],S,k,b,h,x,w)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return x}function u(h,g,v,b,y,x,w){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof w.depthLimit<"u"&&x>w.depthLimit){a(e,h,g,y);return}if(typeof w.edgesLimit<"u"&&v+1>w.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,w);else{var j={},S=Object.keys(h).sort(l);for(k=0;k<S.length;k++){var E=S[k];u(h[E],E,k,b,h,x,w),j[E]=h[E]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return h7}var f7,IU;function MU(){if(IU)return f7;IU=1;var e={};const t=YRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,w){return w.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function w(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return w(y,x)&&w(x,y)}function s(y){let x=[];for(let w of y)x.find(function(k,j,S){return a(k,w)})||x.push(w);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,w,k){return y.indexOf(x)<w})}function u(y){let x=0,w;if(y.length===0)return x;for(let k=0;k<y.length;k++)w=y.charCodeAt(k),x=(x<<5)-x+w,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.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"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return f7={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},f7}var g7,LU;function GRe(){if(LU)return g7;LU=1;const e=Lh,t=kL(),r=n7(),n=Lh,o=Lh,i=ex().jptr,a=d7().recurse,s=tx().clone,l=XRe().dereference,c=l7().isRef,u=MU();function d(_){return[...new Set(_)]}function h(_,P,I,D,M){return new Promise(function(N,L){e.readFile(_,P,function(H,Y){H?I.ignoreIOErrors&&M?(I.verbose&&console.warn("FAILED",D),I.externalRefs[D].failed=!0,N(M)):L(H):N(Y)})})}function g(_,P,I,D,M,N){let L=N.externalRefs[I+D].paths[0],H=r.parse(M),Y={},te=1;for(;te;)te=0,a(_,{identityDetection:!0},function(K,se,U){if(c(K,se)){if(K[se].startsWith("#")){if(!Y[K[se]]&&!K.$fixed){let V=s(i(P,K[se]));if(N.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",K[se],u.colour.normal),V===!1){if(U.parent[U.pkey]={},N.fatal){let X=new Error("Fragment $ref resolution failed "+K[se]);if(N.promise)N.promise.reject(X);else throw X}}else te++,U.parent[U.pkey]=V,Y[K[se]]=U.path.replace("/%24ref","")}else if(!K.$fixed){let V=(L+"/"+Y[K[se]]).split("/#/").join("/");U.parent[U.pkey]={$ref:V,"x-miro":K[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",V),te++}}else if(H.protocol){let V=r.resolve(M,K[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",K[se],"as",V,u.colour.normal),K["x-miro"]=K[se],N.externalRefs[K[se]]&&(N.externalRefs[V]||(N.externalRefs[V]=N.externalRefs[K[se]]),N.externalRefs[V].failed=N.externalRefs[K[se]].failed),K[se]=V}else if(!K["x-miro"]){let V=r.resolve(M,K[se]).toString(),X=!1;N.externalRefs[K[se]]&&(X=N.externalRefs[K[se]].failed),X||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",K[se],"as",V,u.colour.normal),K["x-miro"]=K[se],K[se]=V)}}});return a(_,{},function(K,se,U){c(K,se)&&typeof K.$fixed<"u"&&delete K.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,P){if(!P.filters||!P.filters.length)return _;for(let I of P.filters)_=I(_,P);return _}function b(_,P){return _&&_.length>2?_:P&&P.length>2?P:"file:"}function y(_,P,I,D){var M=r.parse(I.source),N=I.source.split("\\").join("/").split("/");N.pop()||N.pop();let L="",H=P.split("#");H.length>1&&(L="#"+H[1],P=H[0]),N=N.join("/");let Y=r.parse(P),te=b(Y.protocol,M.protocol),K;if(te==="file:"?K=t.resolve(N?N+"/":"",P):K=r.resolve(N?N+"/":"",P),I.cache[K]){I.verbose&&console.warn("CACHED",K,L);let se=s(I.cache[K]),U=I.externalRef=se;if(L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let V=new Error("Cached $ref resolution failed "+K+L);if(I.promise)I.promise.reject(V);else throw V}return U=g(U,se,P,L,K,I),U=v(U,I),D(s(U),K,I),Promise.resolve(U)}if(I.verbose&&console.warn("GET",K,L),I.handlers&&I.handlers[te])return I.handlers[te](N,P,L,I).then(function(se){return I.externalRef=se,se=v(se,I),I.cache[K]=se,D(se,K,I),se}).catch(function(se){throw I.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(K,se).then(function(U){if(U.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",P),I.externalRefs[P].failed=!0,'{"$ref":"'+P+'"}';throw new Error(`Received status code ${U.status}: ${K}`)}return U.text()}).then(function(U){try{let V=o.parse(U,{schema:"core",prettyErrors:!0});if(U=I.externalRef=V,I.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let X=new Error("Remote $ref resolution failed "+K+L);if(I.promise)I.promise.reject(X);else throw X}U=g(U,V,P,L,K,I),U=v(U,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return D(U,K,I),U}).catch(function(U){if(I.verbose&&console.warn(U),I.cache[K]={},I.promise&&I.fatal)I.promise.reject(U);else throw U})}else{const se='{"$ref":"'+P+'"}';return h(K,I.encoding||"utf8",I,P,se).then(function(U){try{let V=o.parse(U,{schema:"core",prettyErrors:!0});if(U=I.externalRef=V,I.cache[K]=s(U),L&&(U=i(U,L),U===!1&&(U={},I.fatal))){let X=new Error("File $ref resolution failed "+K+L);if(I.promise)I.promise.reject(X);else throw X}U=g(U,V,P,L,K,I),U=v(U,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return D(U,K,I),U}).catch(function(U){if(I.verbose&&console.warn(U),I.promise&&I.fatal)I.promise.reject(U);else throw U})}}function x(_){return new Promise(function(P,I){function D(N,L,H){if(N[L]&&c(N[L],"$ref")){let Y=N[L].$ref;if(!Y.startsWith("#")){let te="";if(!M[Y]){let K=Object.keys(M).find(function(se,U,V){return Y.startsWith(se+"/")});K&&(_.verbose&&console.warn("Found potential subschema at",K),te="/"+(Y.split("#")[1]||"").replace(K.split("#")[1]||""),te=te.split("/undefined").join(""),Y=K)}if(M[Y]||(M[Y]={resolved:!1,paths:[],extras:{},description:N[L].description}),M[Y].resolved){if(!M[Y].failed)if(_.rewriteRefs){let K=M[Y].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",Y,K),N[L]["x-miro"]=Y,N[L].$ref=K+te}else N[L]=s(M[Y].data)}else M[Y].paths.push(H.path),M[Y].extras[H.path]=te}}}let M=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return P(M);a(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},D),a(_.openapi.components,{identityDetection:!0,path:"#/components"},D),a(_.openapi,{identityDetection:!0},D),P(M)})}function w(_){return new Promise(function(P,I){x(_).then(function(M){for(let N in M)if(!M[N].resolved){let L=_.resolver.depth;L>0&&L++,_.resolver.actions[L].push(function(){return y(_.openapi,N,_,function(H,Y,te){if(!M[N].resolved){let U={};U.context=M[N],U.$ref=N,U.original=s(H),U.updated=H,U.source=Y,te.externals.push(U),M[N].resolved=!0}let K=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&M[N].description&&!H.description&&typeof H=="object"&&(H.description=M[N].description),M[N].data=H;let se=d(M[N].paths);se=se.sort(function(U,V){const X=U.startsWith("#/components/")||U.startsWith("#/definitions/"),q=V.startsWith("#/components/")||V.startsWith("#/definitions/");return X&&!q?-1:q&&!X?1:0});for(let U of se)if(M[N].resolvedAt&&U!==M[N].resolvedAt&&U.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",U),i(te.openapi,U,{$ref:M[N].resolvedAt+M[N].extras[U],"x-miro":N+M[N].extras[U]});else{M[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(M[N].resolvedAt=U,te.verbose>1&&console.warn("Creating initial clone of data at",U));let V=s(H);i(te.openapi,U,V)}te.resolver.actions[K.resolver.depth].length===0&&te.resolver.actions[K.resolver.depth].push(function(){return w(K)})})})}}).catch(function(M){_.verbose&&console.warn(M),I(M)});let D={options:_};D.actions=_.resolver.actions[_.resolver.depth],P(D)})}const k=_=>_.reduce((P,I)=>P.then(D=>I().then(Array.prototype.concat.bind(D))),Promise.resolve([]));function j(_,P,I){_.resolver.actions.push([]),w(_).then(function(D){k(D.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),P(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){j(D.options,P,I)},0):(_.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),_.openapi=l(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(_.openapi,{},function(M,N,L){c(M,N)&&(_.preserveMiro||delete M["x-miro"])}),P(_))}).catch(function(M){_.verbose&&console.warn(M),I(M)})}).catch(function(D){_.verbose&&console.warn(D),I(D)})}function S(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let P=r.parse(_.source);(!P.protocol||P.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function E(_){return S(_),new Promise(function(P,I){_.resolve?j(_,P,I):P(_)})}function A(_,P,I){return I||(I={}),I.openapi=_,I.source=P,I.resolve=!0,S(I),new Promise(function(D,M){j(I,D,M)})}return g7={optionalResolve:E,resolve:A},g7}var m7,DU;function JRe(){if(DU)return m7;DU=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return m7={getDefaultState:e,walkSchema:t},m7}var zU={},v7={exports:{}},NU={},BU;function FU(){return BU||(BU=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){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 n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(NU)),NU}var rx={},b7={exports:{}},nx={exports:{}},QU;function KRe(){if(QU)return nx.exports;QU=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,S,E){return Function.prototype.apply.call(j,S,E)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}nx.exports=i,nx.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=j}}),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(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var S=[],E=1;E<arguments.length;E++)S.push(arguments[E]);var A=j==="error",_=this._events;if(_!==void 0)A=A&&_.error===void 0;else if(!A)return!1;if(A){var P;if(S.length>0&&(P=S[0]),P instanceof Error)throw P;var I=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw I.context=P,I}var D=_[j];if(D===void 0)return!1;if(typeof D=="function")t(D,this,S);else for(var M=D.length,N=v(D,M),E=0;E<M;++E)t(N[E],this,S);return!0};function c(j,S,E,A){var _,P,I;if(s(E),P=j._events,P===void 0?(P=j._events=Object.create(null),j._eventsCount=0):(P.newListener!==void 0&&(j.emit("newListener",S,E.listener?E.listener:E),P=j._events),I=P[S]),I===void 0)I=P[S]=E,++j._eventsCount;else if(typeof I=="function"?I=P[S]=A?[E,I]:[I,E]:A?I.unshift(E):I.push(E),_=l(j),_>0&&I.length>_&&!I.warned){I.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=j,D.type=S,D.count=I.length,n(D)}return j}i.prototype.addListener=function(j,S){return c(this,j,S,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,S){return c(this,j,S,!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(j,S,E){var A={fired:!1,wrapFn:void 0,target:j,type:S,listener:E},_=u.bind(A);return _.listener=E,A.wrapFn=_,_}i.prototype.once=function(j,S){return s(S),this.on(j,d(this,j,S)),this},i.prototype.prependOnceListener=function(j,S){return s(S),this.prependListener(j,d(this,j,S)),this},i.prototype.removeListener=function(j,S){var E,A,_,P,I;if(s(S),A=this._events,A===void 0)return this;if(E=A[j],E===void 0)return this;if(E===S||E.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete A[j],A.removeListener&&this.emit("removeListener",j,E.listener||S));else if(typeof E!="function"){for(_=-1,P=E.length-1;P>=0;P--)if(E[P]===S||E[P].listener===S){I=E[P].listener,_=P;break}if(_<0)return this;_===0?E.shift():b(E,_),E.length===1&&(A[j]=E[0]),A.removeListener!==void 0&&this.emit("removeListener",j,I||S)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var S,E,A;if(E=this._events,E===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete E[j]),this;if(arguments.length===0){var _=Object.keys(E),P;for(A=0;A<_.length;++A)P=_[A],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=E[j],typeof S=="function")this.removeListener(j,S);else if(S!==void 0)for(A=S.length-1;A>=0;A--)this.removeListener(j,S[A]);return this};function h(j,S,E){var A=j._events;if(A===void 0)return[];var _=A[S];return _===void 0?[]:typeof _=="function"?E?[_.listener||_]:[_]:E?y(_):v(_,_.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,S){return typeof j.listenerCount=="function"?j.listenerCount(S):g.call(j,S)},i.prototype.listenerCount=g;function g(j){var S=this._events;if(S!==void 0){var E=S[j];if(typeof E=="function")return 1;if(E!==void 0)return E.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,S){for(var E=new Array(S),A=0;A<S;++A)E[A]=j[A];return E}function b(j,S){for(;S+1<j.length;S++)j[S]=j[S+1];j.pop()}function y(j){for(var S=new Array(j.length),E=0;E<S.length;++E)S[E]=j[E].listener||j[E];return S}function x(j,S){return new Promise(function(E,A){function _(I){j.removeListener(S,P),A(I)}function P(){typeof j.removeListener=="function"&&j.removeListener("error",_),E([].slice.call(arguments))}k(j,S,P,{once:!0}),S!=="error"&&w(j,_,{once:!0})})}function w(j,S,E){typeof j.on=="function"&&k(j,"error",S,E)}function k(j,S,E,A){if(typeof j.on=="function")A.once?j.once(S,E):j.on(S,E);else if(typeof j.addEventListener=="function")j.addEventListener(S,function _(P){A.once&&j.removeEventListener(S,_),E(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return nx.exports}var VU,qU;function ZU(){return qU||(qU=1,VU=KRe().EventEmitter),VU}const y7=AR(oV);var x7,UU;function eIe(){if(UU)return x7;UU=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=Jy(),c=l.Buffer,u=y7,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return x7=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,w=0;x;)g(x.data,y,w),w+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,w=y.data;for(b-=w.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?w+=k:w+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,w}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,w=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++w,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++w}return this.length-=w,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),x7}var O7,HU;function WU(){if(HU)return O7;HU=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){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 o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return O7={destroy:e,undestroy:n,errorOrDestroy:i},O7}var w7={},XU;function Dh(){if(XU)return w7;XU=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(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 o(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 a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(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(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w7.codes=t,w7}var k7,YU;function GU(){if(YU)return k7;YU=1;var e=Dh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return k7={getHighWaterMark:r},k7}var S7,JU;function tIe(){if(JU)return S7;JU=1,S7=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return S7}var C7,KU;function eH(){if(KU)return C7;KU=1,C7=_;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;_.WritableState=E;var r={deprecate:tIe()},n=ZU(),o=Jy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=WU(),c=GU(),u=c.getHighWaterMark,d=Dh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function S(){}function E(G,oe,ne){t=t||zh(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=G.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){Y(oe,me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(E.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var A;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(G){return A.call(this,G)?!0:this!==_?!1:G&&G._writableState instanceof E}})):A=function(G){return G instanceof this};function _(G){t=t||zh();var oe=this instanceof t;if(!oe&&!A.call(_,this))return new _(G);this._writableState=new E(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}_.prototype.pipe=function(){j(this,new b)};function P(G,oe){var ne=new w;j(G,ne),process.nextTick(oe,ne)}function I(G,oe,ne,ve){var me;return ne===null?me=new x:typeof ne!="string"&&!oe.objectMode&&(me=new h("chunk",["string","Buffer"],ne)),me?(j(G,me),process.nextTick(ve,me),!1):!0}_.prototype.write=function(G,oe,ne){var ve=this._writableState,me=!1,T=!ve.objectMode&&s(G);return T&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),T?oe="buffer":oe||(oe=ve.defaultEncoding),typeof ne!="function"&&(ne=S),ve.ending?P(this,ne):(T||I(this,ve,G,ne))&&(ve.pendingcb++,me=M(this,ve,T,G,oe,ne)),me},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},_.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(G,oe,ne,ve,me,T){if(!ne){var Z=D(oe,ve,me);ve!==Z&&(ne=!0,me="buffer",ve=Z)}var fe=oe.objectMode?1:ve.length;oe.length+=fe;var Q=oe.length<oe.highWaterMark;if(Q||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ve,encoding:me,isBuf:ne,callback:T,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,ve,me,T);return Q}function N(G,oe,ne,ve,me,T,Z){oe.writelen=ve,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(me,oe.onwrite):G._write(me,T,oe.onwrite),oe.sync=!1}function L(G,oe,ne,ve,me){--oe.pendingcb,ne?(process.nextTick(me,ve),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,ve)):(me(ve),G._writableState.errorEmitted=!0,j(G,ve),q(G,oe))}function H(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function Y(G,oe){var ne=G._writableState,ve=ne.sync,me=ne.writecb;if(typeof me!="function")throw new v;if(H(ne),oe)L(G,ne,ve,oe,me);else{var T=U(ne)||G.destroyed;!T&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),ve?process.nextTick(te,G,ne,T,me):te(G,ne,T,me)}}function te(G,oe,ne,ve){ne||K(G,oe),oe.pendingcb--,ve(),q(G,oe)}function K(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var ve=oe.bufferedRequestCount,me=new Array(ve),T=oe.corkedRequestsFree;T.entry=ne;for(var Z=0,fe=!0;ne;)me[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;me.allBuffers=fe,N(G,oe,!0,oe.length,me,"",T.finish),oe.pendingcb++,oe.lastBufferedRequest=null,T.next?(oe.corkedRequestsFree=T.next,T.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var Q=ne.chunk,he=ne.encoding,ue=ne.callback,ee=oe.objectMode?1:Q.length;if(N(G,oe,!1,ee,Q,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}_.prototype._write=function(G,oe,ne){ne(new g("_write()"))},_.prototype._writev=null,_.prototype.end=function(G,oe,ne){var ve=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||W(this,ve,ne),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function V(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function X(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(V,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=U(oe);if(ne&&(X(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var ve=G._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&G.destroy()}return ne}function W(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var ve=G.entry;for(G.entry=null;ve;){var me=ve.callback;oe.pendingcb--,me(ne),ve=ve.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),_.prototype.destroy=l.destroy,_.prototype._undestroy=l.undestroy,_.prototype._destroy=function(G,oe){oe(G)},C7}var j7,tH;function zh(){if(tH)return j7;tH=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};j7=a;for(var t=uH(),r=eH(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.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(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.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(a.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)}}),j7}var E7={},A7={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var rH;function rIe(){return rH||(rH=1,function(e,t){var r=Jy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(A7,A7.exports)),A7.exports}var nH;function oH(){if(nH)return E7;nH=1;var e=rIe().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var w;;)switch(x){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 x;default:if(w)return;x=(""+x).toLowerCase(),w=!0}}function n(x){var w=r(x);if(typeof w!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return w||x}E7.StringDecoder=o;function o(x){this.encoding=n(x);var w;switch(this.encoding){case"utf16le":this.text=d,this.end=h,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=g,this.end=v,w=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}o.prototype.write=function(x){if(x.length===0)return"";var w,k;if(this.lastNeed){if(w=this.fillLast(x),w===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?w?w+this.text(x,k):this.text(x,k):w||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,w,k){var j=w.length-1;if(j<k)return 0;var S=i(w[j]);return S>=0?(S>0&&(x.lastNeed=S-1),S):--j<k||S===-2?0:(S=i(w[j]),S>=0?(S>0&&(x.lastNeed=S-2),S):--j<k||S===-2?0:(S=i(w[j]),S>=0?(S>0&&(S===2?S=0:x.lastNeed=S-3),S):0))}function s(x,w,k){if((w[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var w=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,w,0,x.length),this.lastNeed-=x.length}function c(x,w){var k=a(this,x,w);if(!this.lastNeed)return x.toString("utf8",w);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",w,j)}function u(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+"\uFFFD":w}function d(x,w){if((x.length-w)%2===0){var k=x.toString("utf16le",w);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",w,x.length-1)}function h(x){var w=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,k)}return w}function g(x,w){var k=(x.length-w)%3;return k===0?x.toString("base64",w):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",w,x.length-k))}function v(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return E7}var _7,iH;function P7(){if(iH)return _7;iH=1;var e=Dh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.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)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(w){s.call(i,w)},y=function(){var w;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(w=new e),s.call(i,w);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(w=new e),s.call(i,w)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),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",b),i.removeListener("close",y)}}return _7=o,_7}var T7,aH;function nIe(){if(aH)return T7;aH=1;var e;function t(k,j,S){return j=r(j),j in k?Object.defineProperty(k,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[j]=S,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var S=k[Symbol.toPrimitive];if(S!==void 0){var E=S.call(k,j);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=P7(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var S=k[d].read();S!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(S,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(S,E){k.then(function(){if(j[l]){S(h(void 0,!0));return}j[u](S,E)},E)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(_,P){process.nextTick(function(){k[s]?P(k[s]):_(h(void 0,!0))})});var S=this[c],E;if(S)E=new Promise(b(S,this));else{var A=this[d].read();if(A!==null)return Promise.resolve(h(A,!1));E=new Promise(this[u])}return this[c]=E,E}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,S){k[d].destroy(null,function(E){if(E){S(E);return}j(h(void 0,!0))})})}),e),y),w=function(k){var j,S=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(E,A){var _=S[d].read();_?(S[c]=null,S[i]=null,S[a]=null,E(h(_,!1))):(S[i]=E,S[a]=A)},writable:!0}),j));return S[c]=null,o(k,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var A=S[a];A!==null&&(S[c]=null,S[i]=null,S[a]=null,A(E)),S[s]=E;return}var _=S[i];_!==null&&(S[c]=null,S[i]=null,S[a]=null,_(h(void 0,!0))),S[l]=!0}),k.on("readable",v.bind(null,S)),S};return T7=w,T7}var sH,lH;function oIe(){return lH||(lH=1,sH=function(){throw new Error("Readable.from is not available in the browser")}),sH}var $7,cH;function uH(){if(cH)return $7;cH=1,$7=P;var e;P.ReadableState=_;var t=function(T,Z){return T.listeners(Z).length},r=ZU(),n=Jy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(T){return n.from(T)}function a(T){return n.isBuffer(T)||T instanceof o}var s=y7,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=eIe(),u=WU(),d=GU(),h=d.getHighWaterMark,g=Dh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,k,j,S=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(T,Z,fe){if(typeof T.prependListener=="function")return T.prependListener(Z,fe);!T._events||!T._events[Z]?T.on(Z,fe):Array.isArray(T._events[Z])?T._events[Z].unshift(fe):T._events[Z]=[fe,T._events[Z]]}function _(T,Z,fe){e=e||zh(),T=T||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!T.objectMode,fe&&(this.objectMode=this.objectMode||!!T.readableObjectMode),this.highWaterMark=h(this,T,"readableHighWaterMark",fe),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.destroyed=!1,this.defaultEncoding=T.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,T.encoding&&(w||(w=oH().StringDecoder),this.decoder=new w(T.encoding),this.encoding=T.encoding)}function P(T){if(e=e||zh(),!(this instanceof P))return new P(T);var Z=this instanceof e;this._readableState=new _(T,this,Z),this.readable=!0,T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),P.prototype.destroy=u.destroy,P.prototype._undestroy=u.undestroy,P.prototype._destroy=function(T,Z){Z(T)},P.prototype.push=function(T,Z){var fe=this._readableState,Q;return fe.objectMode?Q=!0:typeof T=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(T=n.from(T,Z),Z=""),Q=!0),I(this,T,Z,!1,Q)},P.prototype.unshift=function(T){return I(this,T,null,!0,!1)};function I(T,Z,fe,Q,he){l("readableAddChunk",Z);var ue=T._readableState;if(Z===null)ue.reading=!1,Y(T,ue);else{var ee;if(he||(ee=M(ue,Z)),ee)S(T,ee);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),Q)ue.endEmitted?S(T,new x):D(T,ue,Z,!0);else if(ue.ended)S(T,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?D(T,ue,Z,!1):se(T,ue)):D(T,ue,Z,!1)}else Q||(ue.reading=!1,se(T,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function D(T,Z,fe,Q){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,T.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,Q?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(T)),se(T,Z)}function M(T,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!T.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(T){w||(w=oH().StringDecoder);var Z=new w(T);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,Q="";fe!==null;)Q+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var N=1073741824;function L(T){return T>=N?T=N:(T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++),T}function H(T,Z){return T<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:T!==T?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(T>Z.highWaterMark&&(Z.highWaterMark=L(T)),T<=Z.length?T:Z.ended?Z.length:(Z.needReadable=!0,0))}P.prototype.read=function(T){l("read",T),T=parseInt(T,10);var Z=this._readableState,fe=T;if(T!==0&&(Z.emittedReadable=!1),T===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(T=H(T,Z),T===0&&Z.ended)return Z.length===0&&ne(this),null;var Q=Z.needReadable;l("need readable",Q),(Z.length===0||Z.length-T<Z.highWaterMark)&&(Q=!0,l("length less than watermark",Q)),Z.ended||Z.reading?(Q=!1,l("reading or ended",Q)):Q&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(T=H(fe,Z)));var he;return T>0?he=oe(T,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,T=0):(Z.length-=T,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==T&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function Y(T,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(T):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,K(T)))}}function te(T){var Z=T._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(K,T))}function K(T){var Z=T._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(T.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(T)}function se(T,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(U,T,Z))}function U(T,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),T.read(0),fe===Z.length)break}Z.readingMore=!1}P.prototype._read=function(T){S(this,new y("_read()"))},P.prototype.pipe=function(T,Z){var fe=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=T;break;case 1:Q.pipes=[Q.pipes,T];break;default:Q.pipes.push(T);break}Q.pipesCount+=1,l("pipe count=%d opts=%j",Q.pipesCount,Z);var he=(!Z||Z.end!==!1)&&T!==null&&T!==process.stderr,ue=he?ae:He;Q.endEmitted?process.nextTick(ue):fe.once("end",ue),T.on("unpipe",ee);function ee(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Oe())}function ae(){l("onend"),T.end()}var le=V(fe);T.on("drain",le);var Ae=!1;function Oe(){l("cleanup"),T.removeListener("close",ye),T.removeListener("finish",Se),T.removeListener("drain",le),T.removeListener("error",xe),T.removeListener("unpipe",ee),fe.removeListener("end",ae),fe.removeListener("end",He),fe.removeListener("data",be),Ae=!0,Q.awaitDrain&&(!T._writableState||T._writableState.needDrain)&&le()}fe.on("data",be);function be(B){l("ondata");var J=T.write(B);l("dest.write",J),J===!1&&((Q.pipesCount===1&&Q.pipes===T||Q.pipesCount>1&&me(Q.pipes,T)!==-1)&&!Ae&&(l("false write response, pause",Q.awaitDrain),Q.awaitDrain++),fe.pause())}function xe(B){l("onerror",B),He(),T.removeListener("error",xe),t(T,"error")===0&&S(T,B)}A(T,"error",xe);function ye(){T.removeListener("finish",Se),He()}T.once("close",ye);function Se(){l("onfinish"),T.removeListener("close",ye),He()}T.once("finish",Se);function He(){l("unpipe"),fe.unpipe(T)}return T.emit("pipe",fe),Q.flowing||(l("pipe resume"),fe.resume()),T};function V(T){return function(){var Z=T._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(T,"data")&&(Z.flowing=!0,G(T))}}P.prototype.unpipe=function(T){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return T&&T!==Z.pipes?this:(T||(T=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,T&&T.emit("unpipe",this,fe),this);if(!T){var Q=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)Q[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var ee=me(Z.pipes,T);return ee===-1?this:(Z.pipes.splice(ee,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),T.emit("unpipe",this,fe),this)},P.prototype.on=function(T,Z){var fe=r.prototype.on.call(this,T,Z),Q=this._readableState;return T==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):T==="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?te(this):Q.reading||process.nextTick(q,this)),fe},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(T,Z){var fe=r.prototype.removeListener.call(this,T,Z);return T==="readable"&&process.nextTick(X,this),fe},P.prototype.removeAllListeners=function(T){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&process.nextTick(X,this),Z};function X(T){var Z=T._readableState;Z.readableListening=T.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:T.listenerCount("data")>0&&T.resume()}function q(T){l("readable nexttick read 0"),T.read(0)}P.prototype.resume=function(){var T=this._readableState;return T.flowing||(l("resume"),T.flowing=!T.readableListening,W(this,T)),T.paused=!1,this};function W(T,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,T,Z))}function re(T,Z){l("resume",Z.reading),Z.reading||T.read(0),Z.resumeScheduled=!1,T.emit("resume"),G(T),Z.flowing&&!Z.reading&&T.read(0)}P.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 G(T){var Z=T._readableState;for(l("flow",Z.flowing);Z.flowing&&T.read()!==null;);}P.prototype.wrap=function(T){var Z=this,fe=this._readableState,Q=!1;T.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var ee=fe.decoder.end();ee&&ee.length&&Z.push(ee)}Z.push(null)}),T.on("data",function(ee){if(l("wrapped data"),fe.decoder&&(ee=fe.decoder.write(ee)),!(fe.objectMode&&ee==null)&&!(!fe.objectMode&&(!ee||!ee.length))){var ae=Z.push(ee);ae||(Q=!0,T.pause())}});for(var he in T)this[he]===void 0&&typeof T[he]=="function"&&(this[he]=function(ee){return function(){return T[ee].apply(T,arguments)}}(he));for(var ue=0;ue<E.length;ue++)T.on(E[ue],this.emit.bind(this,E[ue]));return this._read=function(ee){l("wrapped _read",ee),Q&&(Q=!1,T.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=nIe()),k(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),P._fromList=oe,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(T,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!T||T>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(T,Z.decoder),fe}function ne(T){var Z=T._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(ve,Z,T))}function ve(T,Z){if(l("endReadableNT",T.endEmitted,T.length),!T.endEmitted&&T.length===0&&(T.endEmitted=!0,Z.readable=!1,Z.emit("end"),T.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(P.from=function(T,Z){return j===void 0&&(j=oIe()),j(P,T,Z)});function me(T,Z){for(var fe=0,Q=T.length;fe<Q;fe++)if(T[fe]===Z)return fe;return-1}return $7}var R7,dH;function pH(){if(dH)return R7;dH=1,R7=s;var e=Dh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=zh();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(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:a.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 g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.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 o;if(u._transformState.transforming)throw new n;return u.push(null)}return R7}var I7,hH;function iIe(){if(hH)return I7;hH=1,I7=t;var e=pH();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},I7}var M7,fH;function aIe(){if(fH)return M7;fH=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=Dh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=P7()),e(h,{readable:g,writable:v},function(w){if(w)return b(w);y=!0,b()});var x=!1;return function(w){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(w||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(w,k){var j=k<g.length-1,S=k>0;return s(w,j,S,function(E){y||(y=E),E&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return M7=d,M7}var gH;function mH(){return gH||(gH=1,function(e,t){t=e.exports=uH(),t.Stream=t,t.Readable=t,t.Writable=eH(),t.Duplex=zh(),t.Transform=pH(),t.PassThrough=iIe(),t.finished=P7(),t.pipeline=aIe()}(b7,b7.exports)),b7.exports}var vH;function bH(){if(vH)return rx;vH=1;var e=FU(),t=g9(),r=mH(),n=rx.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=rx.IncomingMessage=function(i,a,s,l){var c=this;if(r.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 b=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,w){c._destroyed?w():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}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(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},rx}var yH;function sIe(){if(yH)return v7.exports;yH=1;var e=FU(),t=g9(),r=bH(),n=mH(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=v7.exports=function(u){var d=this;n.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,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!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=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={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,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(w){var k=h[w].name,j=h[w].value;Array.isArray(j)?j.forEach(function(S){v.push([k,S])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(w){u._fetchResponse=w,u._resetTimers(!1),u._connect()},function(w){u._resetTimers(!0),u._destroyed||u.emit("error",w)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(w){process.nextTick(function(){u.emit("error",w)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(w){x.setRequestHeader(w[0],w[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(w){process.nextTick(function(){u.emit("error",w)});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 o(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 g=this;g._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 g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,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 v7.exports}var L7,xH;function lIe(){if(xH)return L7;xH=1,L7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return L7}var OH,wH;function cIe(){return wH||(wH=1,OH={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"}),OH}var kH;function uIe(){return kH||(kH=1,function(e){var t=sIe(),r=bH(),n=lIe(),o=cIe(),i=n7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.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"]}(zU)),zU}var SH,CH;function dIe(){return CH||(CH=1,SH={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},uIe().STATUS_CODES)}),SH}const pIe="7.0.8",hIe={version:pIe};var D7,jH;function fIe(){if(jH)return D7;jH=1;const e=Lh,t=n7(),r=WRe(),n=Lh,o=Lh,i=ex(),a=i.jptr,s=l7().isRef,l=tx().clone,c=tx().circularClone,u=d7().recurse,d=GRe(),h=JRe(),g=MU(),v=dIe().statusCodes,b=hIe.version,y="3.0.0";let x;class w extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(T,Z){let fe=new w(T);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(T,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=T:k(T,fe)}function S(T,Z,fe){if(T.nullable&&fe.patches++,T.discriminator&&typeof T.discriminator=="string"&&(T.discriminator={propertyName:T.discriminator}),T.items&&Array.isArray(T.items)&&(T.items.length===0?T.items={}:T.items.length===1?T.items=T.items[0]:T.items={anyOf:T.items}),T.type&&Array.isArray(T.type))if(fe.patch){if(fe.patches++,T.type.length===0)delete T.type;else{T.oneOf||(T.oneOf=[]);for(let Q of T.type){let he={};if(Q==="null")T.nullable=!0;else{he.type=Q;for(let ue of g.arrayProperties)typeof T.prop<"u"&&(he[ue]=T[ue],delete T[ue])}he.type&&T.oneOf.push(he)}delete T.type,T.oneOf.length===0?delete T.oneOf:T.oneOf.length<2&&(T.type=T.oneOf[0].type,Object.keys(T.oneOf[0]).length>1&&j("Lost properties from oneOf",T,fe),delete T.oneOf)}T.type&&Array.isArray(T.type)&&T.type.length===1&&(T.type=T.type[0])}else k("(Patchable) schema type must not be an array",fe);T.type&&T.type==="null"&&(delete T.type,T.nullable=!0),T.type==="array"&&!T.items&&(T.items={}),T.type==="file"&&(T.type="string",T.format="binary"),typeof T.required=="boolean"&&(T.required&&T.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(T.name)),delete T.required),T.xml&&typeof T.xml.namespace=="string"&&(T.xml.namespace||delete T.xml.namespace),typeof T.allowEmptyValue<"u"&&(fe.patches++,delete T.allowEmptyValue)}function E(T,Z){if(T["x-required"]&&Array.isArray(T["x-required"])&&(T.required||(T.required=[]),T.required=T.required.concat(T["x-required"]),delete T["x-required"]),T["x-anyOf"]&&(T.anyOf=T["x-anyOf"],delete T["x-anyOf"]),T["x-oneOf"]&&(T.oneOf=T["x-oneOf"],delete T["x-oneOf"]),T["x-not"]&&(T.not=T["x-not"],delete T["x-not"]),typeof T["x-nullable"]=="boolean"&&(T.nullable=T["x-nullable"],delete T["x-nullable"]),typeof T["x-discriminator"]=="object"&&typeof T["x-discriminator"].propertyName=="string"){T.discriminator=T["x-discriminator"],delete T["x-discriminator"];for(let fe in T.discriminator.mapping){let Q=T.discriminator.mapping[fe];Q.startsWith("#/definitions/")&&(T.discriminator.mapping[fe]=Q.replace("#/definitions/","#/components/schemas/"))}}}function A(T,Z){h.walkSchema(T,{},{},function(fe,Q,he){E(fe),S(fe,Q,Z)})}function _(T){return T.indexOf("#")>=0?T=T.split("#")[1].split("/").pop():T=T.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(T))}function P(T,Z,fe){let Q=fe.payload.options;if(s(T,Z)){if(!T[Z].startsWith("#/components/")){if(T[Z]==="#/consumes")delete T[Z],fe.parent[fe.pkey]=l(Q.openapi.consumes);else if(T[Z]==="#/produces")delete T[Z],fe.parent[fe.pkey]=l(Q.openapi.produces);else if(T[Z].startsWith("#/definitions/")){let he=T[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let ee=x.schemas[decodeURIComponent(ue)];ee?he[0]=ee:j("Could not resolve reference "+T[Z],T,Q),T[Z]="#/components/schemas/"+he.join("/")}else if(T[Z].startsWith("#/parameters/"))T[Z]="#/components/parameters/"+g.sanitise(T[Z].replace("#/parameters/",""));else if(T[Z].startsWith("#/responses/"))T[Z]="#/components/responses/"+g.sanitise(T[Z].replace("#/responses/",""));else if(T[Z].startsWith("#")){let he=l(i.jptr(Q.openapi,T[Z]));if(he===!1)j("direct $ref not found "+T[Z],T,Q);else if(Q.refmap[T[Z]])T[Z]=Q.refmap[T[Z]];else{let ue=T[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let ee="schemas",ae=ue.lastIndexOf("/schema");if(ee=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",ee==="schemas"&&A(he,Q),ee!=="responses"&&ee!=="extensions"){let le=ee.substr(0,ee.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let Ae=1;for(T["x-miro"]&&(le=_(T["x-miro"]),Ae="");i.jptr(Q.openapi,"#/components/"+ee+"/"+le+Ae);)Ae=Ae===""?2:++Ae;let Oe="#/components/"+ee+"/"+le+Ae,be="";ee==="examples"&&(he={value:he},be="/value"),i.jptr(Q.openapi,Oe,he),Q.refmap[T[Z]]=Oe+be,T[Z]=Oe+be}}}}if(delete T["x-miro"],Object.keys(T).length>1){const he=T[Z],ue=fe.path.indexOf("/schema")>=0;Q.refSiblings==="preserve"||(ue&&Q.refSiblings==="allOf"?(delete T.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},T]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof T[Z]=="string"&&T[Z].startsWith("#/")){let he=T[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+T[Z],T,Q),T[Z]="#/components/schemas/"+he.join("/")}}function I(T,Z){for(let fe in Z.refmap)i.jptr(T,fe,{$ref:Z.refmap[fe]})}function D(T){for(let Z in T)for(let fe in T[Z]){let Q=g.sanitise(fe);fe!==Q&&(T[Z][Q]=T[Z][fe],delete T[Z][fe])}}function M(T,Z){if(T.type==="basic"&&(T.type="http",T.scheme="basic"),T.type==="oauth2"){let fe={},Q=T.flow;T.flow==="application"&&(Q="clientCredentials"),T.flow==="accessCode"&&(Q="authorizationCode"),typeof T.authorizationUrl<"u"&&(fe.authorizationUrl=T.authorizationUrl.split("?")[0].trim()||"/"),typeof T.tokenUrl=="string"&&(fe.tokenUrl=T.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=T.scopes||{},T.flows={},T.flows[Q]=fe,delete T.flow,delete T.authorizationUrl,delete T.tokenUrl,delete T.scopes,typeof T.name<"u"&&(Z.patch?(Z.patches++,delete T.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(T){return T&&!T["x-s2o-delete"]}function L(T,Z){if(T.$ref)T.$ref=T.$ref.replace("#/responses/","#/components/responses/");else{T.type&&!T.schema&&(T.schema={}),T.type&&(T.schema.type=T.type),T.items&&T.items.type!=="array"&&(T.items.collectionFormat!==T.collectionFormat&&j("Nested collectionFormats are not supported",T,Z),delete T.items.collectionFormat),T.type==="array"?(T.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",T,Z):T.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",T,Z):T.collectionFormat==="multi"?T.explode=!0:T.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",T,Z),T["x-collectionFormat"]="tsv"):T.style="simple",delete T.collectionFormat):T.collectionFormat&&(Z.patch?(Z.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete T.type;for(let fe of g.parameterTypeProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe]);for(let fe of g.arrayProperties)typeof T[fe]<"u"&&(T.schema[fe]=T[fe],delete T[fe])}}function H(T,Z){if(T.$ref.indexOf("#/parameters/")>=0){let fe=T.$ref.split("#/parameters/");T.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}T.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",T,Z)}function Y(T,Z){let fe={};for(let Q of Object.keys(T))fe[Q]=T[Q],Q==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(T,Z,fe,Q,he,ue,ee){let ae={},le=!0,Ae;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(ee.patch)ee.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",ee);Array.isArray(ue.consumes)||delete ue.consumes;let Oe=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(T&&T.$ref&&typeof T.$ref=="string"){H(T,ee);let be=decodeURIComponent(T.$ref.replace("#/components/parameters/","")),xe=!1,ye=ue.components.parameters[be];if((!ye||ye["x-s2o-delete"])&&T.$ref.startsWith("#/")&&(T["x-s2o-delete"]=!0,xe=!0),xe){let Se=T.$ref,He=a(ue,T.$ref);!He&&Se.startsWith("#/")?j("Could not resolve reference "+Se,T,ee):He&&(T=He)}}if(T&&(T.name||T.in)){typeof T["x-deprecated"]=="boolean"&&(T.deprecated=T["x-deprecated"],delete T["x-deprecated"]),typeof T["x-example"]<"u"&&(T.example=T["x-example"],delete T["x-example"]),T.in!=="body"&&!T.type&&(ee.patch?(ee.patches++,T.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",ee)),T.type&&typeof T.type=="object"&&T.type.$ref&&(T.type=a(ue,T.type.$ref)),T.type==="file"&&(T["x-s2o-originalType"]=T.type,Ae=T.type),T.description&&typeof T.description=="object"&&T.description.$ref&&(T.description=a(ue,T.description.$ref)),T.description===null&&delete T.description;let be=T.collectionFormat;if(T.type==="array"&&!be&&(be="csv"),be&&(T.type!=="array"&&(ee.patch?(ee.patches++,delete T.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",ee)),be==="csv"&&(T.in==="query"||T.in==="cookie")&&(T.style="form",T.explode=!1),be==="csv"&&(T.in==="path"||T.in==="header")&&(T.style="simple"),be==="ssv"&&(T.in==="query"?T.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",T,ee)),be==="pipes"&&(T.in==="query"?T.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",T,ee)),be==="multi"&&(T.explode=!0),be==="tsv"&&(j("collectionFormat:tsv is no longer supported",T,ee),T["x-collectionFormat"]="tsv"),delete T.collectionFormat),T.type&&T.type!=="body"&&T.in!=="formData")if(T.items&&T.schema)j("parameter has array,items and schema",T,ee);else{T.schema&&ee.patches++,(!T.schema||typeof T.schema!="object")&&(T.schema={}),T.schema.type=T.type,T.items&&(T.schema.items=T.items,delete T.items,u(T.schema.items,null,function(xe,ye,Se){ye==="collectionFormat"&&typeof xe[ye]=="string"&&(be&&xe[ye]!==be&&j("Nested collectionFormats are not supported",T,ee),delete xe[ye])}));for(let xe of g.parameterTypeProperties)typeof T[xe]<"u"&&(T.schema[xe]=T[xe]),delete T[xe]}T.schema&&A(T.schema,ee),T["x-ms-skip-url-encoding"]&&T.in==="query"&&(T.allowReserved=!0,delete T["x-ms-skip-url-encoding"])}if(T&&T.in==="formData"){le=!1,ae.content={};let be="application/x-www-form-urlencoded";if(Oe.length&&Oe.indexOf("multipart/form-data")>=0&&(be="multipart/form-data"),ae.content[be]={},T.schema)ae.content[be].schema=T.schema,T.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")));else{ae.content[be].schema={},ae.content[be].schema.type="object",ae.content[be].schema.properties={},ae.content[be].schema.properties[T.name]={};let xe=ae.content[be].schema,ye=ae.content[be].schema.properties[T.name];T.description&&(ye.description=T.description),T.example&&(ye.example=T.example),T.type&&(ye.type=T.type);for(let Se of g.parameterTypeProperties)typeof T[Se]<"u"&&(ye[Se]=T[Se]);T.required===!0&&(xe.required||(xe.required=[]),xe.required.push(T.name),ae.required=!0),typeof T.default<"u"&&(ye.default=T.default),ye.properties&&(ye.properties=T.properties),T.allOf&&(ye.allOf=T.allOf),T.type==="array"&&T.items&&(ye.items=T.items,ye.items.collectionFormat&&delete ye.items.collectionFormat),(Ae==="file"||T["x-s2o-originalType"]==="file")&&(ye.type="string",ye.format="binary"),K(T,ye)}}else T&&T.type==="file"&&(T.required&&(ae.required=T.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",K(T,ae));if(T&&T.in==="body"){ae.content={},T.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+T.name).toCamelCase()),T.description&&(ae.description=T.description),T.required&&(ae.required=T.required),Z&&ee.rbname&&T.name&&(Z[ee.rbname]=T.name),T.schema&&T.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(T.schema.$ref.replace("#/components/schemas/","")):T.schema&&T.schema.type==="array"&&T.schema.items&&T.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(T.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Oe.length||Oe.push("application/json");for(let be of Oe)ae.content[be]={},ae.content[be].schema=l(T.schema||{}),A(ae.content[be].schema,ee);K(T,ae)}if(Object.keys(ae).length>0&&(T["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let be=Z.operationId||he;j("Operation "+be+" has multiple requestBodies",Z,ee)}else Z.requestBody||(Z=fe[Q]=Y(Z,ee)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.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?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.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?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(T&&!T["x-s2o-delete"]){delete T.type;for(let be of g.parameterTypeProperties)delete T[be];T.in==="path"&&(typeof T.required>"u"||T.required!==!0)&&(ee.patch?(ee.patches++,T.required=!0):k("(Patchable) path parameters must be required:true ["+T.name+" in "+he+"]",ee))}return Z}function K(T,Z){for(let fe in T)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=T[fe])}function se(T,Z,fe,Q,he){if(!T)return!1;if(T.$ref&&typeof T.$ref=="string")T.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+T.$ref,T,he):T.$ref.startsWith("#/responses/")&&(T.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.$ref.replace("#/responses/",""))));else{if((typeof T.description>"u"||T.description===null||T.description===""&&he.patch)&&(he.patch?typeof T=="object"&&!Array.isArray(T)&&(he.patches++,T.description=v[T]||""):k("(Patchable) response.description is mandatory",he)),typeof T.schema<"u"){if(A(T.schema,he),T.schema.$ref&&typeof T.schema.$ref=="string"&&T.schema.$ref.startsWith("#/responses/")&&(T.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(T.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);Q.produces&&!Array.isArray(Q.produces)&&delete Q.produces;let ue=((fe?fe.produces:null)||Q.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),T.content={};for(let ee of ue){if(T.content[ee]={},T.content[ee].schema=l(T.schema),T.examples&&T.examples[ee]){let ae={};ae.value=T.examples[ee],T.content[ee].examples={},T.content[ee].examples.response=ae,delete T.examples[ee]}T.content[ee].schema.type==="file"&&(T.content[ee].schema={type:"string",format:"binary"})}delete T.schema}for(let ue in T.examples)T.content||(T.content={}),T.content[ue]||(T.content[ue]={}),T.content[ue].examples={},T.content[ue].examples.response={},T.content[ue].examples.response.value=T.examples[ue];if(delete T.examples,T.headers)for(let ue in T.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete T.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):L(T.headers[ue],he)}}function U(T,Z,fe,Q,he){for(let ue in T){let ee=T[ue];ee&&ee["x-trace"]&&typeof ee["x-trace"]=="object"&&(ee.trace=ee["x-trace"],delete ee["x-trace"]),ee&&ee["x-summary"]&&typeof ee["x-summary"]=="string"&&(ee.summary=ee["x-summary"],delete ee["x-summary"]),ee&&ee["x-description"]&&typeof ee["x-description"]=="string"&&(ee.description=ee["x-description"],delete ee["x-description"]),ee&&ee["x-servers"]&&Array.isArray(ee["x-servers"])&&(ee.servers=ee["x-servers"],delete ee["x-servers"]);for(let ae in ee)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=ee[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(ee.parameters)for(let Ae of ee.parameters)typeof Ae.$ref=="string"&&(H(Ae,fe),Ae=a(he,Ae.$ref)),!le.parameters.find(function(Oe,be,xe){return Oe.name===Ae.name&&Oe.in===Ae.in})&&(Ae.in==="formData"||Ae.in==="body"||Ae.type==="file")&&(le=te(Ae,le,ee,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let Ae of le.parameters)le=te(Ae,le,ee,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&D(le.security),typeof le=="object"){if(!le.responses){let Ae={};Ae.description="Default response",le.responses={default:Ae}}for(let Ae in le.responses){let Oe=le.responses[Ae];se(Oe,Ae,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let Ae of le.schemes)if((!he.schemes||he.schemes.indexOf(Ae)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Oe of he.servers){let be=l(Oe),xe=t.parse(be.url);xe.protocol=Ae,be.url=xe.format(),le.servers.push(be)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let Ae in le["x-ms-examples"]){let Oe=le["x-ms-examples"][Ae],be=g.sanitiseAll(Ae);if(Oe.parameters)for(let xe in Oe.parameters){let ye=Oe.parameters[xe];for(let Se of(le.parameters||[]).concat(ee.parameters||[]))Se.$ref&&(Se=i.jptr(he,Se.$ref)),Se.name===xe&&!Se.example&&(Se.examples||(Se.examples={}),Se.examples[Ae]={value:ye})}if(Oe.responses)for(let xe in Oe.responses){if(Oe.responses[xe].headers)for(let ye in Oe.responses[xe].headers){let Se=Oe.responses[xe].headers[ye];for(let He in le.responses[xe].headers)if(He===ye){let B=le.responses[xe].headers[He];B.example=Se}}if(Oe.responses[xe].body&&(he.components.examples[be]={value:l(Oe.responses[xe].body)},le.responses[xe]&&le.responses[xe].content))for(let ye in le.responses[xe].content){let Se=le.responses[xe].content[ye];Se.examples||(Se.examples={}),Se.examples[Ae]={$ref:"#/components/examples/"+be}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let Ae=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Oe=g.sanitise(le.requestBody["x-s2o-name"]||Ae||"");delete le.requestBody["x-s2o-name"];let be=JSON.stringify(le.requestBody),xe=g.hash(be);if(!Q[xe]){let Se={};Se.name=Oe,Se.body=le.requestBody,Se.refs=[],Q[xe]=Se}let ye="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";Q[xe].refs.push(ye)}}}if(ee&&ee.parameters){for(let ae in ee.parameters){let le=ee.parameters[ae];te(le,null,ee,null,ue,he,fe)}!fe.debug&&Array.isArray(ee.parameters)&&(ee.parameters=ee.parameters.filter(N))}}}function V(T,Z){let fe={};x={schemas:{}},T.security&&D(T.security);for(let he in T.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(T.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),T.components.securitySchemes[ue]=T.components.securitySchemes[he],delete T.components.securitySchemes[he]),M(T.components.securitySchemes[ue],Z)}for(let he in T.components.schemas){let ue=g.sanitiseAll(he),ee="";if(he!==ue){for(;T.components.schemas[ue+ee];)ee=ee?++ee:2;T.components.schemas[ue+ee]=T.components.schemas[he],delete T.components.schemas[he]}x.schemas[he]=ue+ee,A(T.components.schemas[ue+ee],Z)}Z.refmap={},u(T,{payload:{options:Z}},P),I(T,Z);for(let he in T.components.parameters){let ue=g.sanitise(he);he!==ue&&(T.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),T.components.parameters[ue]=T.components.parameters[he],delete T.components.parameters[he]);let ee=T.components.parameters[ue];te(ee,null,null,null,ue,T,Z)}for(let he in T.components.responses){let ue=g.sanitise(he);he!==ue&&(T.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),T.components.responses[ue]=T.components.responses[he],delete T.components.responses[he]);let ee=T.components.responses[ue];if(se(ee,ue,null,T,Z),ee.headers)for(let ae in ee.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete ee.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):L(ee.headers[ae],Z)}for(let he in T.components.requestBodies){let ue=T.components.requestBodies[he],ee=JSON.stringify(ue),ae=g.hash(ee),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(U(T.paths,"paths",Z,fe,T),T["x-ms-paths"]&&U(T["x-ms-paths"],"x-ms-paths",Z,fe,T),!Z.debug)for(let he in T.components.parameters)T.components.parameters[he]["x-s2o-delete"]&&delete T.components.parameters[he];Z.debug&&(T["x-s2o-consumes"]=T.consumes||[],T["x-s2o-produces"]=T.produces||[]),delete T.consumes,delete T.produces,delete T.schemes;let Q=[];if(T.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let ee=fe[ue];if(ee.refs.length>1){let ae="";for(ee.name||(ee.name="requestBody",ae=he++);Q.indexOf(ee.name+ae)>=0;)ae=ae?++ae:2;ee.name=ee.name+ae,Q.push(ee.name),T.components.requestBodies[ee.name]=l(ee.body);for(let le in ee.refs){let Ae={};Ae.$ref="#/components/requestBodies/"+ee.name,i.jptr(T,ee.refs[le],Ae)}}}}return T.components.responses&&Object.keys(T.components.responses).length===0&&delete T.components.responses,T.components.parameters&&Object.keys(T.components.parameters).length===0&&delete T.components.parameters,T.components.examples&&Object.keys(T.components.examples).length===0&&delete T.components.examples,T.components.requestBodies&&Object.keys(T.components.requestBodies).length===0&&delete T.components.requestBodies,T.components.securitySchemes&&Object.keys(T.components.securitySchemes).length===0&&delete T.components.securitySchemes,T.components.headers&&Object.keys(T.components.headers).length===0&&delete T.components.headers,T.components.schemas&&Object.keys(T.components.schemas).length===0&&delete T.components.schemas,T.components&&Object.keys(T.components).length===0&&delete T.components,T}function X(T){return!T||!T.url||typeof T.url!="string"||(T.url=T.url.split("{{").join("{"),T.url=T.url.split("}}").join("}"),T.url.replace(/\{(.+?)\}/g,function(Z,fe){T.variables||(T.variables={}),T.variables[fe]={default:"unknown"}})),T}function q(T,Z,fe){if(typeof T.info>"u"||T.info===null)if(Z.patch)Z.patches++,T.info={version:"",title:""};else return fe(new w("(Patchable) info object is mandatory"));if(typeof T.info!="object"||Array.isArray(T.info))return fe(new w("info must be an object"));if(typeof T.info.title>"u"||T.info.title===null)if(Z.patch)Z.patches++,T.info.title="";else return fe(new w("(Patchable) info.title cannot be null"));if(typeof T.info.version>"u"||T.info.version===null)if(Z.patch)Z.patches++,T.info.version="";else return fe(new w("(Patchable) info.version cannot be null"));if(typeof T.info.version!="string")if(Z.patch)Z.patches++,T.info.version=T.info.version.toString();else return fe(new w("(Patchable) info.version must be a string"));if(typeof T.info.logo<"u")if(Z.patch)Z.patches++,T.info["x-logo"]=T.info.logo,delete T.info.logo;else return fe(new w("(Patchable) info should not have logo property"));if(typeof T.info.termsOfService<"u"){if(T.info.termsOfService===null)if(Z.patch)Z.patches++,T.info.termsOfService="";else return fe(new w("(Patchable) info.termsOfService cannot be null"));try{new URL(T.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete T.info.termsOfService;else return fe(new w("(Patchable) info.termsOfService must be a URL"))}}}function W(T,Z,fe){if(typeof T.paths>"u")if(Z.patch)Z.patches++,T.paths={};else return fe(new w("(Patchable) paths object is mandatory"))}function re(T,Z){const fe=new WeakSet;u(T,{identityDetection:!0},function(Q,he,ue){typeof Q[he]=="object"&&Q[he]!==null&&(fe.has(Q[he])?Z.anchors?Q[he]=l(Q[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(Q[he]))})}function G(T,Z,fe){return r(fe,new Promise(function(Q,he){if(T||(T={}),Z.original=T,Z.text||(Z.text=o.stringify(T)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=Q,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(T,Z),T.openapi&&typeof T.openapi=="string"&&T.openapi.startsWith("3.")){Z.openapi=c(T),q(Z.openapi,Z,he),W(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?Q(Z.openapi):Q(Z)}).catch(function(ee){console.warn(ee),he(ee)});return}if(!T.swagger||T.swagger!="2.0")return he(new w("Unsupported swagger/OpenAPI version: "+(T.openapi?T.openapi:T.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let ee={};ee.url=Z.source||Z.origin,ee.format="swagger",ee.version=T.swagger,ee.converter={},ee.converter.url="https://github.com/mermade/oas-kit",ee.converter.version=b,ue["x-origin"].push(ee)}if(ue=Object.assign(ue,c(T)),delete ue.swagger,u(ue,{},function(ee,ae,le){ee[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete ee[ae]}),T.host)for(let ee of Array.isArray(T.schemes)?T.schemes:[""]){let ae={},le=(T.basePath||"").replace(/\/$/,"");ae.url=(ee?ee+":":"")+"//"+T.host+le,X(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(T.basePath){let ee={};ee.url=T.basePath,X(ee),ue.servers||(ue.servers=[]),ue.servers.push(ee)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),T["x-ms-parameterized-host"]){let ee=T["x-ms-parameterized-host"],ae={};ae.url=ee.hostTemplate+(T.basePath?T.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let Ae in ee.parameters){let Oe=ee.parameters[Ae];Oe.$ref&&(Oe=l(a(ue,Oe.$ref))),Ae.startsWith("x-")||(delete Oe.required,delete Oe.type,delete Oe.in,typeof Oe.default>"u"&&(Oe.enum?Oe.default=Oe.enum[0]:Oe.default="none"),Oe.name||(Oe.name=le[Ae].replace("{","").replace("}","")),ae.variables[Oe.name]=Oe,delete Oe.name)}ue.servers||(ue.servers=[]),ee.useSchemePrefix===!1?ue.servers.push(ae):T.schemes.forEach(Ae=>{ue.servers.push(Object.assign({},ae,{url:Ae+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),W(ue,Z,he),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(Z).then(function(){V(Z.openapi,Z),Z.direct?Q(Z.openapi):Q(Z)}).catch(function(ee){console.warn(ee),he(ee)})}))}function oe(T,Z,fe){return r(fe,new Promise(function(Q,he){let ue=null,ee=null;try{ue=JSON.parse(T),Z.text=JSON.stringify(ue,null,2)}catch(ae){ee=ae;try{ue=o.parse(T,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=T}catch(le){ee=le}}ue?G(ue,Z).then(ae=>Q(ae)).catch(ae=>he(ae)):he(new w(ee?ee.message:"Could not parse string"))}))}function ne(T,Z,fe){return r(fe,new Promise(function(Q,he){Z.origin=!0,Z.source||(Z.source=T),Z.verbose&&console.warn("GET "+T),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(T,ue).then(function(ee){if(ee.status!==200)throw new w(`Received status code ${ee.status}: ${T}`);return ee.text()}).then(function(ee){oe(ee,Z).then(ae=>Q(ae)).catch(ae=>he(ae))}).catch(function(ee){he(ee)})}))}function ve(T,Z,fe){return r(fe,new Promise(function(Q,he){e.readFile(T,Z.encoding||"utf8",function(ue,ee){ue?he(ue):(Z.sourceFile=T,oe(ee,Z).then(ae=>Q(ae)).catch(ae=>he(ae)))})}))}function me(T,Z,fe){return r(fe,new Promise(function(Q,he){let ue="";T.on("data",function(ee){ue+=ee}).on("end",function(){oe(ue,Z).then(ee=>Q(ee)).catch(ee=>he(ee))})}))}return D7={S2OError:w,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:ve,convertStream:me},D7}var gIe=fIe();const mIe=Zn(gIe);function vIe(e){return e.paths||(e.paths={}),new Promise((t,r)=>mIe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function bIe(e){const t=new X_({}),r={config:t,base:ma?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};ma&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=yIe(e):r.ref=e;const{bundle:{parsed:n}}=await TRe(r);return n.swagger!==void 0?vIe(n):n}function yIe(e){return{source:{absoluteRef:""},parsed:e}}async function xIe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await bIe(e||t);try{Dwe(n)}catch{}return n}const OIe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await xIe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},zwe([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?va(e?.hideLoading,!1)?null:f.jsx(mEe,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function wIe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(OIe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(nV,{withCommonStyles:!0})})}function kIe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function SIe(e){const t=kIe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function CIe(e,t=document.querySelector("redoc")){qR.hydrateRoot(t,f.jsx(nV,{store:e}))}function EH(e,t={},r=U3("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),qR.createRoot(r).render($.createElement(wIe,{definition:o,definitionUrl:n,options:{...t,...SIe(r)}},["Loading..."]))}const jIe="3.13.0-next.2",EIe="4d7b3681";function AIe(){const e=U3("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&EH(t,{},e)}AIe();var AH={exports:{}};/*!
|
|
9557
9557
|
|
|
9558
9558
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
9559
9559
|
<http://stuartk.com/jszip>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.13.0-next.
|
|
3
|
+
"version": "3.13.0-next.2",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@markdoc/markdoc": "0.5.2",
|
|
24
|
-
"@redocly/openapi-core": "2.0.
|
|
24
|
+
"@redocly/openapi-core": "2.0.3",
|
|
25
25
|
"deepmerge": "^4.2.2",
|
|
26
26
|
"dompurify": "3.2.6",
|
|
27
27
|
"fast-deep-equal": "^3.1.3",
|