(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9505],{54177:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o((a+s)*3/4-s),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},87376:function(e,t,r){"use strict";var n=r(54177),o=r(94045),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(P(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var o=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),a(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(o)return n?-1:x(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=T[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=t,i=r,0===o&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(c(e,i+p)!==c(t,p)){f=!1;break}if(f)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,i){return t=+t,r>>>=0,i||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function _(e,t,r,n,i){return t=+t,r>>>=0,i||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),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}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(P(i,Uint8Array))o+i.length>n.length?s.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(s.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,u=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,u,c,l,f,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,R(x(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=r,R(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return u=t,c=r,R(k(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,f=r,R(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-l),this,l,f);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;S(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;S(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);S(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);S(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function x(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function k(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},46174:function(e,t,r){"use strict";var n=r(2947);e.exports=function(e,t){if(!e)return t;t.then(function(t){n(function(){e(null,t)})},function(t){n(function(){e(t)})})}},2947:function(e,t,r){"use strict";var n=r(74859);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},31389:function(e){e.exports=a,a.default=a,a.stable=c,a.stableStringify=c;var t="[...]",r="[Circular]",n=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,u,c){void 0===c&&(c=i()),function e(n,o,i,a,u,c,l){if(c+=1,"object"==typeof n&&null!==n){for(f=0;f<a.length;f++)if(a[f]===n){s(r,n,o,u);return}if(void 0!==l.depthLimit&&c>l.depthLimit||void 0!==l.edgesLimit&&i+1>l.edgesLimit){s(t,n,o,u);return}if(a.push(n),Array.isArray(n))for(f=0;f<n.length;f++)e(n[f],f,f,a,n,c,l);else{var f,p=Object.keys(n);for(f=0;f<p.length;f++){var h=p[f];e(n[h],h,f,a,n,c,l)}}a.pop()}}(e,"",0,[],void 0,0,c);try{f=0===o.length?JSON.stringify(e,a,u):JSON.stringify(e,l(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var f,p=n.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function s(e,t,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:e}),n.push([i,r,t,a])):o.push([t,r,e]):(i[r]=e,n.push([i,r,t]))}function u(e,t){return e<t?-1:e>t?1:0}function c(e,a,c,f){void 0===f&&(f=i());var p,h=function e(o,i,a,c,l,f,p){if(f+=1,"object"==typeof o&&null!==o){for(h=0;h<c.length;h++)if(c[h]===o){s(r,o,i,l);return}try{if("function"==typeof o.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&f>p.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){s(t,o,i,l);return}if(c.push(o),Array.isArray(o))for(h=0;h<o.length;h++)e(o[h],h,h,c,o,f,p);else{var h,d={},y=Object.keys(o).sort(u);for(h=0;h<y.length;h++){var m=y[h];e(o[m],m,h,c,o,f,p),d[m]=o[m]}if(void 0===l)return d;n.push([l,i,o]),l[i]=d}c.pop()}}(e,"",0,[],void 0,0,f)||e;try{p=0===o.length?JSON.stringify(h,a,c):JSON.stringify(h,l(a),c)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var d=n.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return p}function l(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===t&&i[0]===r){r=i[2],o.splice(n,1);break}}return e.call(this,t,r)}}},94045:function(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,p=r?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?5960464477539062e-23:0,h=n?0:i-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=p/u:t+=p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=d,a/=256,c-=8);e[r+h-d]|=128*y}},81695:function(e,t,r){"use strict";var n=r(21219);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useSelectedLayoutSegment")&&r.d(t,{useSelectedLayoutSegment:function(){return n.useSelectedLayoutSegment}})},74859:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(19566)},46443:function(e){!function(){"use strict";var t={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){var o;function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,a,{once:!0}),"error"!==t&&(o={once:!0},"function"==typeof e.on&&y(e,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var o,i,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):d(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=d(u,c),r=0;r<c;++r)n(l[r],this,t);return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(864);e.exports=o}()},9173:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(45184)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=g(e));var n,o,i,a,s,u,c,l,f,p=(o=(n=e).auth,i=n.hostname,a=n.protocol||"",s=n.pathname||"",u=n.hash||"",c=n.query||"",l=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",n.host?l=o+n.host:i&&(l=o+(~i.indexOf(":")?"["+i+"]":i),n.port&&(l+=":"+n.port)),c&&"object"==typeof c&&(c=t.encode(c)),f=n.search||c&&"?"+c||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:l,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function l(e,t){var r="string"==typeof e?g(e):e;e="object"==typeof e?n(e):e;var o=g(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,t=t.replace(o.protocol,"")));var l=e.match(u);l&&!o.protocol&&(e=e.substr((i=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var f=new URL(e,s+"/"),p=new URL(t,f).toString().replace(s,""),h=o.protocol||r.protocol;return h+=r.slashes||o.slashes?"//":"",!i&&h?p=p.replace(a,h):i&&(p=p.replace(a,"")),c.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),i&&(p=i+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=g,f.prototype.format=n,f.prototype.resolve=l,f.prototype.resolveObject=l;var p=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,d=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(e,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof f)return e;var i=(e=e.trim()).match(h);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(d),u=y.test(e),c="";a&&(p.test(a[1])||(c=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,p.test(a[1])?(c=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(c=a[1],e="/"+a[3]));var l,g=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=g&&g[1],b=new f,w="",S="";try{l=new URL(e)}catch(t){w=t,c||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{l=new URL(e,s)}catch(e){return b.protocol=c,b.href=c,b}}b.slashes=u&&!S,b.host="w.w"===l.host?"":l.host,b.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=w?c||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var E=e.split("#");!b.search&&~E[0].indexOf("?")&&(b.search="?"),b.hash||""!==E[1]||(b.hash="#"),b.query=r?t.decode(l.search.substr(1)):b.search.substr(1),b.pathname=S+(a?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!p.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=S?""+b.pathname+b.search+b.hash:n(b);var O=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~O.indexOf(e)||(b[e]=b[e]||null)}),b}i.parse=g,i.format=n,i.resolve=l,i.resolveObject=function(e,t){return g(l(e,t))},i.Url=f}(),e.exports=i}()},79939:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else if(47===r)break;else r=47;if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(o=n+"/"+o,i=47===n.charCodeAt(0));return(o=r(o,!i),i)?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===r.charCodeAt(s+f))return r.slice(s+f+1);if(0===f)return r.slice(s+f)}else a>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(o+f);if(p!==r.charCodeAt(s+f))break;47===p&&(l=f)}var h="";for(f=o+l+1;f<=i;++f)(f===i||47===e.charCodeAt(f))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+l):(s+=l,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else -1===u&&(a=!1,u=n+1),s>=0&&(c===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else -1===i&&(a=!1,i=n+1);return -1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47===u){if(!i){n=s+1;break}continue}-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=r;--l){if(47===(o=e.charCodeAt(l))){if(!c){s=l+1;break}continue}-1===u&&(c=!1,u=l+1),46===o?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1)}return -1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(0===s&&i?n.base=n.name=e.slice(1,u):n.base=n.name=e.slice(s,u)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,u)):(n.name=e.slice(s,a),n.base=e.slice(s,u)),n.ext=e.slice(a,u)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(114);e.exports=o}()},19566:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},45184:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,p,h,d=e[c].replace(a,"%20"),y=d.indexOf(n);(y>=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(i,p))?t(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(o(e),function(o){var s=encodeURIComponent(t(o))+a;return r(e[o])?n(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o={};o.decode=o.parse=n(815),o.encode=o.stringify=n(577),e.exports=o}()},92503:function(e,t,r){var n=r(74859);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class o extends n{constructor(e,t,n){super("string"==typeof r?r:r(e,t,n))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,i,a,s;let u,c;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(u="must not be",t=t.replace(/^not /,"")):u="must be",i=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-i.length,a)===i)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";c=`The "${e}" ${r} ${u} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(709),a=r(337);r(782)(l,i);for(var s=o(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=o;var n=r(170);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(782)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,o){"use strict";e.exports=x,x.ReadableState=A,o(361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=o(678),p=o(300).Buffer,h=r.g.Uint8Array||function(){},d=o(837);a=d&&d.debuglog?d.debuglog("stream"):function(){};var y=o(379),m=o(25),g=o(776).getHighWaterMark,v=o(646).q,b=v.ERR_INVALID_ARG_TYPE,w=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;o(782)(x,f);var O=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function A(e,t,r){i=i||o(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new y,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=o(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||o(403),!(this instanceof x))return new x(e);var t=this instanceof i;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function k(e,t,r,n,o){a("readableAddChunk",t);var i,s,u,c,l,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,f);else{if(o||(i=f,s=t,p.isBuffer(s)||s instanceof h||"string"==typeof s||void 0===s||i.objectMode||(u=new b("chunk",["string","Buffer","Uint8Array"],s)),l=u),l)O(e,l);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(c=t,t=p.from(c)),n)f.endEmitted?O(e,new E):R(e,f,t,!0);else if(f.ended)O(e,new w);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):L(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,L(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),L(e,t)}function P(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function L(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){a("readable nexttick read 0"),e.read(0)}function I(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function D(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=m.destroy,x.prototype._undestroy=m.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},x.prototype.unshift=function(e){return k(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){s||(s=o(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},x.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?D(this):T(this),null;if(0===(e=P(e,r))&&r.ended)return 0===r.length&&D(this),null;var o=r.needReadable;return a("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",o=!0),r.ended||r.reading?a("reading or ended",o=!1):o&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=P(n,r))),null===(t=e>0?U(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&D(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){O(this,new S("_read()"))},x.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,a("pipe count=%d opts=%j",o.pipesCount,t);var i=t&&!1===t.end||e===n.stdout||e===n.stderr?y:s;function s(){a("onend"),e.end()}o.endEmitted?n.nextTick(i):r.once("end",i),e.on("unpipe",function t(n,i){a("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,a("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,B(r))};e.on("drain",u);var c=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!c&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&O(e,t)}function h(){e.removeListener("finish",d),y()}function d(){a("onfinish"),e.removeListener("close",h),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",d),e.emit("pipe",r),o.flowing||(a("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"!==e||o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,a("on readable",o.length,o.reading),o.length?T(this):o.reading||n.nextTick(C,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(I,this,e))),e.paused=!1,this},x.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=o(871)),u(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=U,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===c&&(c=o(727)),c(x,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,o){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=x,x.WritableState=A;var a,s,u={deprecate:o(769)},c=o(678),l=o(300).Buffer,f=r.g.Uint8Array||function(){},p=o(25),h=o(776).getHighWaterMark,d=o(646).q,y=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,S=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,O=p.errorOrDestroy;function _(){}function A(e,t,r){a=a||o(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,o?(n.nextTick(i,t),n.nextTick(L,e,r),e._writableState.errorEmitted=!0,O(e,t)):(i(t),e._writableState.errorEmitted=!0,O(e,t),L(e,r));else{var a=T(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||P(e,r),o?n.nextTick(R,e,r,a,i):R(e,r,a,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(e){var t=this instanceof(a=a||o(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function k(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function R(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),L(e,t)}function P(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,k(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(k(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),L(e,t)})}function L(e,t){var r=T(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}o(782)(x,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){O(this,new v)},x.prototype.write=function(e,t,r){var o,i,a,s,u,c,p,h=this._writableState,d=!1,m=!h.objectMode&&(o=e,l.isBuffer(o)||o instanceof f);return m&&!l.isBuffer(e)&&(i=e,e=l.from(i)),("function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=_),h.ending)?(a=r,O(this,s=new S),n.nextTick(a,s)):(m||(u=e,c=r,null===u?p=new w:"string"==typeof u||h.objectMode||(p=new y("chunk",["string","Buffer"],u)),!p||(O(this,p),n.nextTick(c,p),0)))&&(h.pendingcb++,d=function(e,t,r,n,o,i){if(!r){var a,s,u=(a=n,s=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==u&&(r=!0,o="buffer",n=u)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,c,n,o,i);return f}(this,h,m,e,t,r)),d},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new m("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var o,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(o=r,i.ending=!0,L(this,i),o&&(i.finished?n.nextTick(o):this.once("finish",o)),i.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=p.destroy,x.prototype._undestroy=p.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function m(e){n.nextTick(y,e)}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((o(i={get stream(){return this[h]},next:function(){var e,t,r=this,o=this[c];if(null!==o)return Promise.reject(o);if(this[l])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[c]?t(r[c]):e(d(void 0,!0))})});var i=this[f];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[l]){t(d(void 0,!0));return}e[p](t,r)},r)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));t=new Promise(this[p])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),i),g);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o=r(300).Buffer,i=r(837).inspect,a=i&&i.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=a,o.prototype.copy.call(t,n,r),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return i(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){o(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!i&&e?a._writableState?a._writableState.errorEmitted?n.nextTick(r,a):(a._writableState.errorEmitted=!0,n.nextTick(t,a,e)):n.nextTick(t,a,e):i?(n.nextTick(r,a),i(e)):n.nextTick(r,a)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),a=i||o,s=!1,i=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){c=!1,f=!0,u||i.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){u=!1,h=!0,c||i.call(t)},y=function(e){i.call(t,e)},m=function(){var e;return u&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",p)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",p),t.on("abort",m),t.req?g():t.on("request",g)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",d),t.on("finish",p),!1!==r.error&&t.on("error",y),t.on("close",m),function(){t.removeListener("complete",p),t.removeListener("abort",m),t.removeListener("request",g),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("end",d),t.removeListener("error",y),t.removeListener("close",m)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var i=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new i("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function c(){return l.apply(this,arguments)}function l(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?c():u=!1}catch(e){s.destroy(e)}},(l=function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,c())},s}},442:function(e,t,r){"use strict";var n,o=r(646).q,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,l=Array(o),f=0;f<o;f++)l[f]=arguments[f];var p=(e=l).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new i("streams");var h=l.map(function(e,o){var i,s,c,f,d,y,m=o<l.length-1;return i=o>0,c=s=function(e){t||(t=e),e&&h.forEach(u),m||(h.forEach(u),p(t))},f=!1,s=function(){f||(f=!0,c.apply(void 0,arguments))},d=!1,e.on("close",function(){d=!0}),void 0===n&&(n=r(698)),n(e,{readable:m,writable:i},function(e){if(e)return s(e);d=!0,s()}),y=!1,function(t){if(!d&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return l.reduce(c)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=i){if(!(isFinite(i)&&Math.floor(i)===i)||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=o;var n=r(361).EventEmitter;function o(){n.call(this)}r(782)(o,n),o.Readable=r(709),o.Writable=r(337),o.Duplex=r(403),o.Transform=r(170),o.PassThrough=r(889),o.finished=r(698),o.pipeline=r(442),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.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 i(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:this.write=p,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=i,i.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=a(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){e.exports=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}};function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},300:function(e){"use strict";e.exports=r(87376)},361:function(e){"use strict";e.exports=r(46443)},781:function(e){"use strict";e.exports=r(46443).EventEmitter},837:function(e){"use strict";e.exports=r(66873)}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},a=!0;try{t[e](n,n.exports,i),a=!1}finally{a&&delete o[e]}return n.exports}i.ab="//";var a=i(173);e.exports=a}()},70930:function(e,t,r){var n=r(74859),o=r(87376).Buffer;!function(){var t={523:function(e){e.exports={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"}},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class o extends n{constructor(e,t,n){super("string"==typeof r?r:r(e,t,n))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,i,a,s;let u,c;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(u="must not be",t=t.replace(/^not /,"")):u="must be",i=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-i.length,a)===i)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";c=`The "${e}" ${r} ${u} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(709),a=r(337);r(782)(l,i);for(var s=o(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=o;var n=r(170);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(782)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,o){"use strict";e.exports=x,x.ReadableState=A,o(361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=o(678),p=o(300).Buffer,h=r.g.Uint8Array||function(){},d=o(837);a=d&&d.debuglog?d.debuglog("stream"):function(){};var y=o(379),m=o(25),g=o(776).getHighWaterMark,v=o(646).q,b=v.ERR_INVALID_ARG_TYPE,w=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;o(782)(x,f);var O=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function A(e,t,r){i=i||o(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new y,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=o(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||o(403),!(this instanceof x))return new x(e);var t=this instanceof i;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function k(e,t,r,n,o){a("readableAddChunk",t);var i,s,u,c,l,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,f);else{if(o||(i=f,s=t,p.isBuffer(s)||s instanceof h||"string"==typeof s||void 0===s||i.objectMode||(u=new b("chunk",["string","Buffer","Uint8Array"],s)),l=u),l)O(e,l);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(c=t,t=p.from(c)),n)f.endEmitted?O(e,new E):R(e,f,t,!0);else if(f.ended)O(e,new w);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):L(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,L(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),L(e,t)}function P(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function L(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){a("readable nexttick read 0"),e.read(0)}function I(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function D(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=m.destroy,x.prototype._undestroy=m.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},x.prototype.unshift=function(e){return k(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){s||(s=o(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},x.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?D(this):T(this),null;if(0===(e=P(e,r))&&r.ended)return 0===r.length&&D(this),null;var o=r.needReadable;return a("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",o=!0),r.ended||r.reading?a("reading or ended",o=!1):o&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=P(n,r))),null===(t=e>0?U(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&D(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){O(this,new S("_read()"))},x.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,a("pipe count=%d opts=%j",o.pipesCount,t);var i=t&&!1===t.end||e===n.stdout||e===n.stderr?y:s;function s(){a("onend"),e.end()}o.endEmitted?n.nextTick(i):r.once("end",i),e.on("unpipe",function t(n,i){a("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,a("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,B(r))};e.on("drain",u);var c=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!c&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&O(e,t)}function h(){e.removeListener("finish",d),y()}function d(){a("onfinish"),e.removeListener("close",h),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",d),e.emit("pipe",r),o.flowing||(a("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"!==e||o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,a("on readable",o.length,o.reading),o.length?T(this):o.reading||n.nextTick(C,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(I,this,e))),e.paused=!1,this},x.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=o(871)),u(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=U,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===c&&(c=o(727)),c(x,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,o){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=x,x.WritableState=A;var a,s,u={deprecate:o(769)},c=o(678),l=o(300).Buffer,f=r.g.Uint8Array||function(){},p=o(25),h=o(776).getHighWaterMark,d=o(646).q,y=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,S=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,O=p.errorOrDestroy;function _(){}function A(e,t,r){a=a||o(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,o?(n.nextTick(i,t),n.nextTick(L,e,r),e._writableState.errorEmitted=!0,O(e,t)):(i(t),e._writableState.errorEmitted=!0,O(e,t),L(e,r));else{var a=T(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||P(e,r),o?n.nextTick(R,e,r,a,i):R(e,r,a,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(e){var t=this instanceof(a=a||o(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function k(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function R(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),L(e,t)}function P(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,k(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(k(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),L(e,t)})}function L(e,t){var r=T(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}o(782)(x,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){O(this,new v)},x.prototype.write=function(e,t,r){var o,i,a,s,u,c,p,h=this._writableState,d=!1,m=!h.objectMode&&(o=e,l.isBuffer(o)||o instanceof f);return m&&!l.isBuffer(e)&&(i=e,e=l.from(i)),("function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=_),h.ending)?(a=r,O(this,s=new S),n.nextTick(a,s)):(m||(u=e,c=r,null===u?p=new w:"string"==typeof u||h.objectMode||(p=new y("chunk",["string","Buffer"],u)),!p||(O(this,p),n.nextTick(c,p),0)))&&(h.pendingcb++,d=function(e,t,r,n,o,i){if(!r){var a,s,u=(a=n,s=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==u&&(r=!0,o="buffer",n=u)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,c,n,o,i);return f}(this,h,m,e,t,r)),d},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new m("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var o,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(o=r,i.ending=!0,L(this,i),o&&(i.finished?n.nextTick(o):this.once("finish",o)),i.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=p.destroy,x.prototype._undestroy=p.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function m(e){n.nextTick(y,e)}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((o(i={get stream(){return this[h]},next:function(){var e,t,r=this,o=this[c];if(null!==o)return Promise.reject(o);if(this[l])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[c]?t(r[c]):e(d(void 0,!0))})});var i=this[f];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[l]){t(d(void 0,!0));return}e[p](t,r)},r)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));t=new Promise(this[p])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),i),g);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o=r(300).Buffer,i=r(837).inspect,a=i&&i.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=a,o.prototype.copy.call(t,n,r),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return i(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){o(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!i&&e?a._writableState?a._writableState.errorEmitted?n.nextTick(r,a):(a._writableState.errorEmitted=!0,n.nextTick(t,a,e)):n.nextTick(t,a,e):i?(n.nextTick(r,a),i(e)):n.nextTick(r,a)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),a=i||o,s=!1,i=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){c=!1,f=!0,u||i.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){u=!1,h=!0,c||i.call(t)},y=function(e){i.call(t,e)},m=function(){var e;return u&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",p)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",p),t.on("abort",m),t.req?g():t.on("request",g)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",d),t.on("finish",p),!1!==r.error&&t.on("error",y),t.on("close",m),function(){t.removeListener("complete",p),t.removeListener("abort",m),t.removeListener("request",g),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("end",d),t.removeListener("error",y),t.removeListener("close",m)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var i=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new i("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function c(){return l.apply(this,arguments)}function l(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?c():u=!1}catch(e){s.destroy(e)}},(l=function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,c())},s}},442:function(e,t,r){"use strict";var n,o=r(646).q,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,l=Array(o),f=0;f<o;f++)l[f]=arguments[f];var p=(e=l).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new i("streams");var h=l.map(function(e,o){var i,s,c,f,d,y,m=o<l.length-1;return i=o>0,c=s=function(e){t||(t=e),e&&h.forEach(u),m||(h.forEach(u),p(t))},f=!1,s=function(){f||(f=!0,c.apply(void 0,arguments))},d=!1,e.on("close",function(){d=!0}),void 0===n&&(n=r(698)),n(e,{readable:m,writable:i},function(e){if(e)return s(e);d=!0,s()}),y=!1,function(t){if(!d&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return l.reduce(c)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=i){if(!(isFinite(i)&&Math.floor(i)===i)||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var o=r(781);"disable"===n.env.READABLE_STREAM&&o?(e.exports=o.Readable,Object.assign(e.exports,o),e.exports.Stream=o):((t=e.exports=r(709)).Stream=o||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var o=n(450),i=n(254),a=n(911),s=n(523),u=n(310);t.request=function(e,t){e="string"==typeof e?u.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||n,s=e.hostname||e.host,c=e.port,l=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?i+"//"+s:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new o(e);return t&&f.on("response",t),f},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=o,t.IncomingMessage=i.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=s,t.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"]},301:function(e,t){var n;function o(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||i("arraybuffer"),t.msstream=!t.fetch&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!o()&&a(o().overrideMimeType),n=null},450:function(e,t,i){var a=i(301),s=i(782),u=i(254),c=i(726),l=u.IncomingMessage,f=u.readyStates,p=e.exports=function(e){var t,r,n,i=this;c.Writable.call(i),i._opts=e,i._body=[],i._headers={},e.auth&&i.setHeader("Authorization","Basic "+o.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){i.setHeader(t,e.headers[t])});var s=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)s=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else n=!0;i._mode=(t=n,r=s,a.fetch&&r?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":"text"),i._fetchTimer=null,i.on("finish",function(){i._onFinish()})};s(p,c.Writable),p.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===h.indexOf(r)&&(this._headers[r]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,o=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(o["content-type"]||{}).value||""}));var s=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var u=null;if(a.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){n.nextTick(function(){e.emit("error",t)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{l.send(i)}catch(t){n.nextTick(function(){e.emit("error",t)});return}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.g.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(this,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["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"]},254:function(e,t,i){var a=i(301),s=i(782),u=i(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(e,t,i,s){var c=this;if(u.Readable.call(c),c._mode=i,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){n.nextTick(function(){c.emit("close")})}),"fetch"===i){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEach(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var l=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(o.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(l).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var f=t.body.getReader();!function e(){f.read().then(function(t){if(!c._destroyed){if(t.done){r.g.clearTimeout(s),c.push(null);return}c.push(o.from(t.value)),e()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var h=p.match(/;\s*charset=([^;])(;|$)/);h&&(c._charset=h[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(l,u.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=o.alloc(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(o.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.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 i(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:this.write=p,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=i,i.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=a(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){e.exports=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}};function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},911:function(e){e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)t.call(n,o)&&(e[o]=n[o])}return e};var t=Object.prototype.hasOwnProperty},300:function(e){"use strict";e.exports=r(87376)},361:function(e){"use strict";e.exports=r(46443)},781:function(e){"use strict";e.exports=r(92503)},310:function(e){"use strict";e.exports=r(9173)},837:function(e){"use strict";e.exports=r(66873)}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},o=!0;try{t[e](n,n.exports,a),o=!1}finally{o&&delete i[e]}return n.exports}a.ab="//";var s=a(813);e.exports=s}()},66873:function(e,t,r){var n=r(87376).Buffer,o=r(74859);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var o=[],i=0;i<e.length;i++)if(t.call(e,i)){var a=e[i];r.call(n,a,i,e)&&o.push(a)}return o};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(925),o=r(139),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},139:function(e,t,r){"use strict";var n=r(174),o=r(925),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(o,e[s],s,e)}},426:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,o=this;if("function"!=typeof o||"[object Function]"!==r.call(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var i=t.call(arguments,1),a=Math.max(0,o.length-i.length),s=[],u=0;u<a;u++)s.push("$"+u);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return o.apply(e,i.concat(t.call(arguments)));var r=o.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}),o.prototype){var c=function(){};c.prototype=o.prototype,n.prototype=new c,c.prototype=null}return n}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=Object.getPrototypeOf||function(e){return e.__proto__},h={},d="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(174),b=r(101),w=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),E=v.call(Function.call,String.prototype.replace),O=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,k=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return E(e,A,function(e,t,r,o){n[n.length]=r?E(o,x,"$1"):t||e}),n},R=function(e,t){var r,n=e;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(y,n)){var i=y[n];if(i===h&&(i=m(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(e),n=r.length>0?r[0]:"",i=R("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],S(r,w([0,1],f)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],m=O(d,0,1),g=O(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(l=!0),n+="."+d,b(y,s="%"+n+"%"))c=y[s];else if(null!=c){if(!(d in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var v=u(c,d);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else h=b(c,d),c=c[d];h&&!l&&(y[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=r(504)(),h=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),d={},y="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&h?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));m["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return m[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(174),S=r(101),E=w.call(Function.call,Array.prototype.concat),O=w.call(Function.apply,Array.prototype.splice),_=w.call(Function.call,String.prototype.replace),A=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,P=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,k,function(e,t,r,o){n[n.length]=r?_(o,R,"$1"):t||e}),n},T=function(e,t){var r,n=e;if(S(b,n)&&(n="%"+(r=b[n])[0]+"%"),S(m,n)){var i=m[n];if(i===d&&(i=v(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),n=r.length>0?r[0]:"",i=T("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],O(r,E([0,1],f)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],y=A(d,0,1),g=A(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(l=!0),n+="."+d,S(m,s="%"+n+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var v=u(c,d);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else h=S(c,d),c=c[d];h&&!l&&(m[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},o=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},i=function(){return n(arguments)}();n.isLegacyArguments=o,e.exports=i?n:o},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?i(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(o?i(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),p={},h=n(24),d=Object.getPrototypeOf;u&&h&&d&&o(c,function(e){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=d(t),o=h(n,Symbol.toStringTag);o||(o=h(d(n),Symbol.toStringTag)),p[e]=o.get});var y=function(e){var t=!1;return o(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&y(e):l(c,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof n}},584:function(e,t,r){"use strict";var n=r(157),o=r(391),i=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function S(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===l(e)}function _(e){return"undefined"!=typeof DataView&&(O.working?O(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||_(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=E,O.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=_;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===l(e)}function k(e){return void 0!==A&&(void 0===x.working&&(x.working=x(new A)),x.working?x(e):e instanceof A)}function R(e){return m(e,f)}function P(e){return m(e,p)}function T(e){return m(e,h)}function j(e){return u&&m(e,d)}function L(e){return c&&m(e,y)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=R,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=j,t.isSymbolObject=L,t.isBoxedPrimitive=function(e){return R(e)||P(e)||T(e)||j(e)||L(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])g(s)||!E(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var u=o.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i,a,s,u,c=r.inspect(n,e);return b(c)||(c=p(e,c,n)),c}var l=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,r);if(l)return l;var f=Object.keys(r),E=(s={},f.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(f=Object.getOwnPropertyNames(r)),_(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return h(r);if(0===f.length){if(A(r)){var x=r.name?": "+r.name:"";return e.stylize("[Function"+x+"]","special")}if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return h(r)}var k="",R=!1,T=["{","}"];return(y(r)&&(R=!0,T=["[","]"]),A(r)&&(k=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(k=" "+RegExp.prototype.toString.call(r)),O(r)&&(k=" "+Date.prototype.toUTCString.call(r)),_(r)&&(k=" "+h(r)),0!==f.length||R&&0!=r.length)?n<0?S(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=R?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)P(t,String(a))?i.push(d(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,r,n,o,!0))}),i}(e,r,n,E,f):f.map(function(t){return d(e,r,n,E,t,R)}),e.seen.pop(),o=k,i=T,a=0,u.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===o?"":o+"\n ")+" "+u.join(",\n  ")+" "+i[1]:i[0]+o+" "+u.join(", ")+" "+i[1]):T[0]+k+T[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),P(n,o)||(a="["+o+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=g(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===x(e)}function E(e){return"object"==typeof e&&null!==e}function O(e){return E(e)&&"[object Date]"===x(e)}function _(e){return E(e)&&("[object Error]"===x(e)||e instanceof Error)}function A(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=y,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=S,t.types.isRegExp=S,t.isObject=E,t.isDate=O,t.types.isDate=O,t.isError=_,t.types.isNativeError=_,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t=e[T];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("String.prototype.slice"),f={},p=n(24),h=Object.getPrototypeOf;u&&p&&h&&o(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),o=p(n,Symbol.toStringTag);o||(o=p(h(n),Symbol.toStringTag)),f[e]=o.get}});var d=function(e){var t=!1;return o(f,function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}}),t},y=n(994);e.exports=function(e){return!!y(e)&&(u?d(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var o=n(992);e.exports=function(){return o(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},o=!0;try{t[e](n,n.exports,a),o=!1}finally{o&&delete i[e]}return n.exports}a.ab="//";var s=a(177);e.exports=s}()},39726:function(e,t){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw Error("unable to locate global object")}();e.exports=t=r.fetch,t.default=r.fetch.bind(r),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},52572:function(e,t,r){"use strict";var n=r(74859);let o=r(31389),i=n.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1b[31m",yellow:"\x1b[33;1m",green:"\x1b[32m",normal:"\x1b[0m"};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(e,t){return t.toUpperCase()})},e.exports={colour:i,uniqueOnly:function(e,t,r){return r.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e)t.find(function(e,t,n){return function(e,t){function r(e,t){return o.stringify(e)===o.stringify(Object.assign({},e,t))}return r(e,t)&&r(t,e)}(e,r)})||t.push(r);return t}(e).length},firstDupe:function(e){return e.find(function(t,r,n){return e.indexOf(t)<r})},hash:function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:a,sanitiseAll:function(e){return a(e.split("/").join("_"))}}},53178:function(e,t,r){"use strict";let n=r(18014),o=r(79939),i=r(9173),a=r(39726),s=r(2494),u=r(17927).jptr,c=r(71214).recurse,l=r(18120).clone,f=r(3722).dereference,p=r(64303).isRef,h=r(52572);function d(e,t,r,n,o,a){let s=a.externalRefs[r+n].paths[0],f=i.parse(o),d={},y=1;for(;y;)y=0,c(e,{identityDetection:!0},function(e,r,n){if(p(e,r)){if(e[r].startsWith("#")){if(d[e[r]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+d[e[r]]).split("/#/").join("/");n.parent[n.pkey]={$ref:t,"x-miro":e[r],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),y++}}else{let o=l(u(t,e[r]));if(a.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[r],h.colour.normal),!1===o){if(n.parent[n.pkey]={},a.fatal){let t=Error("Fragment $ref resolution failed "+e[r]);if(a.promise)a.promise.reject(t);else throw t}}else y++,n.parent[n.pkey]=o,d[e[r]]=n.path.replace("/%24ref","")}}else if(f.protocol){let t=i.resolve(o,e[r]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],a.externalRefs[e[r]]&&(a.externalRefs[t]||(a.externalRefs[t]=a.externalRefs[e[r]]),a.externalRefs[t].failed=a.externalRefs[e[r]].failed),e[r]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[r]).toString(),n=!1;a.externalRefs[e[r]]&&(n=a.externalRefs[e[r]].failed),n||(a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],e[r]=t)}}});return c(e,{},function(e,t,r){p(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function y(e,t){if(!t.filters||!t.filters.length)return e;for(let r of t.filters)e=r(e,t);return e}let m=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function g(e,t,r){e.resolver.actions.push([]),(function e(t){return new Promise(function(r,a){new Promise(function(e,r){function n(e,r,n){if(e[r]&&p(e[r],"$ref")){let i=e[r].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let e=Object.keys(o).find(function(e,t,r){return i.startsWith(e+"/")});e&&(t.verbose&&console.warn("Found potential subschema at",e),a=(a="/"+(i.split("#")[1]||"").replace(e.split("#")[1]||"")).split("/undefined").join(""),i=e)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:e[r].description}),o[i].resolved){if(o[i].failed);else if(t.rewriteRefs){let n=o[i].resolvedAt;t.verbose>1&&console.warn("Rewriting ref",i,n),e[r]["x-miro"]=i,e[r].$ref=n+a}else e[r]=l(o[i].data)}else o[i].paths.push(n.path),o[i].extras[n.path]=a}}}let o=t.externalRefs;if(t.resolver.depth>0&&t.source===t.resolver.base)return e(o);c(t.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),c(t.openapi.components,{identityDetection:!0,path:"#/components"},n),c(t.openapi,{identityDetection:!0},n),e(o)}).then(function(r){for(let a in r)if(!r[a].resolved){let c=t.resolver.depth;c>0&&c++,t.resolver.actions[c].push(function(){return function(e,t,r,a){let c;var f,p,h,m,g=i.parse(r.source),v=r.source.split("\\").join("/").split("/");v.pop()||v.pop();let b="",w=t.split("#");w.length>1&&(b="#"+w[1],t=w[0]),v=v.join("/");let S=(f=i.parse(t).protocol,p=g.protocol,f&&f.length>2?f:p&&p.length>2?p:"file:");if(c="file:"===S?o.resolve(v?v+"/":"",t):i.resolve(v?v+"/":"",t),r.cache[c]){r.verbose&&console.warn("CACHED",c,b);let e=l(r.cache[c]),n=r.externalRef=e;if(b&&!1===(n=u(n,b))&&(n={},r.fatal)){let e=Error("Cached $ref resolution failed "+c+b);if(r.promise)r.promise.reject(e);else throw e}return a(l(n=y(n=d(n,e,t,b,c,r),r)),c,r),Promise.resolve(n)}if(r.verbose&&console.warn("GET",c,b),r.handlers&&r.handlers[S])return r.handlers[S](v,t,b,r).then(function(e){return r.externalRef=e,e=y(e,r),r.cache[c]=e,a(e,c,r),e}).catch(function(e){throw r.verbose&&console.warn(e),e});if(S&&S.startsWith("http")){let e=Object.assign({},r.fetchOptions,{agent:r.agent});return r.fetch(c,e).then(function(e){if(200!==e.status){if(r.ignoreIOErrors)return r.verbose&&console.warn("FAILED",t),r.externalRefs[t].failed=!0,'{"$ref":"'+t+'"}';throw Error(`Received status code ${e.status}: ${c}`)}return e.text()}).then(function(e){try{let n=s.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[c]=l(e),b&&(e=u(e,b),!1===e&&(e={},r.fatal))){let e=Error("Remote $ref resolution failed "+c+b);if(r.promise)r.promise.reject(e);else throw e}e=d(e,n,t,b,c,r),e=y(e,r)}catch(e){if(r.verbose&&console.warn(e),r.promise&&r.fatal)r.promise.reject(e);else throw e}return a(e,c,r),e}).catch(function(e){if(r.verbose&&console.warn(e),r.cache[c]={},r.promise&&r.fatal)r.promise.reject(e);else throw e})}{let e='{"$ref":"'+t+'"}';return(h=r.encoding||"utf8",m=t,new Promise(function(t,o){n.readFile(c,h,function(n,i){n?r.ignoreIOErrors&&e?(r.verbose&&console.warn("FAILED",m),r.externalRefs[m].failed=!0,t(e)):o(n):t(i)})})).then(function(e){try{let n=s.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[c]=l(e),b&&(e=u(e,b),!1===e&&(e={},r.fatal))){let e=Error("File $ref resolution failed "+c+b);if(r.promise)r.promise.reject(e);else throw e}e=d(e,n,t,b,c,r),e=y(e,r)}catch(e){if(r.verbose&&console.warn(e),r.promise&&r.fatal)r.promise.reject(e);else throw e}return a(e,c,r),e}).catch(function(e){if(r.verbose&&console.warn(e),r.promise&&r.fatal)r.promise.reject(e);else throw e})}}(t.openapi,a,t,function(t,n,o){if(!r[a].resolved){let e={};e.context=r[a],e.$ref=a,e.original=l(t),e.updated=t,e.source=n,o.externals.push(e),r[a].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&r[a].description&&!t.description&&"object"==typeof t&&(t.description=r[a].description),r[a].data=t;let s=[...new Set(r[a].paths)];for(let e of s=s.sort(function(e,t){let r=e.startsWith("#/components/")||e.startsWith("#/definitions/"),n=t.startsWith("#/components/")||t.startsWith("#/definitions/");return r&&!n?-1:n&&!r?1:0}))if(r[a].resolvedAt&&e!==r[a].resolvedAt&&0>e.indexOf("x-ms-examples/"))o.verbose>1&&console.warn("Creating pointer to data at",e),u(o.openapi,e,{$ref:r[a].resolvedAt+r[a].extras[e],"x-miro":a+r[a].extras[e]});else{r[a].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(r[a].resolvedAt=e,o.verbose>1&&console.warn("Creating initial clone of data at",e));let n=l(t);u(o.openapi,e,n)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return e(i)})})})}}).catch(function(e){t.verbose&&console.warn(e),a(e)});let f={options:t};f.actions=t.resolver.actions[t.resolver.depth],r(f)})})(e).then(function(n){m(n.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){g(n.options,t,r)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=f(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,r,n){p(t,r)&&!e.preserveMiro&&delete t["x-miro"]}),t(e))}).catch(function(t){e.verbose&&console.warn(t),r(t)})}).catch(function(t){e.verbose&&console.warn(t),r(t)})}function v(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=a),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return v(e),new Promise(function(t,r){e.resolve?g(e,t,r):t(e)})},resolve:function(e,t,r){return r||(r={}),r.openapi=e,r.source=t,r.resolve=!0,v(r),new Promise(function(e,t){g(r,e,t)})}}},94153:function(e){"use strict";function t(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:t,walkSchema:function e(r,n,o,i){if(void 0===o.depth&&(o=t()),null==r)return r;if(void 0!==r.$ref){let e={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(e.description=r.description),i(e,n,o),e}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&1===r.allOf.length&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&1===r.anyOf.length&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&1===r.oneOf.length&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if("object"==typeof r&&null!==r&&o.seen.set(r,!0),o.top=!1,o.depth++,void 0!==r.items&&(o.property="items",e(r.items,r,o,i)),r.additionalItems&&"object"==typeof r.additionalItems&&(o.property="additionalItems",e(r.additionalItems,r,o,i)),r.additionalProperties&&"object"==typeof r.additionalProperties&&(o.property="additionalProperties",e(r.additionalProperties,r,o,i)),r.properties)for(let t in r.properties){let n=r.properties[t];o.property="properties/"+t,e(n,r,o,i)}if(r.patternProperties)for(let t in r.patternProperties){let n=r.patternProperties[t];o.property="patternProperties/"+t,e(n,r,o,i)}if(r.allOf)for(let t in r.allOf){let n=r.allOf[t];o.property="allOf/"+t,e(n,r,o,i)}if(r.anyOf)for(let t in r.anyOf){let n=r.anyOf[t];o.property="anyOf/"+t,e(n,r,o,i)}if(r.oneOf)for(let t in r.oneOf){let n=r.oneOf[t];o.property="oneOf/"+t,e(n,r,o,i)}return r.not&&(o.property="not",e(r.not,r,o,i)),o.depth--,r}}},18120:function(e){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},deepClone:function e(t){let r=Array.isArray(t)?[]:{};for(let n in t)(t.hasOwnProperty(n)||Array.isArray(t))&&(r[n]="object"==typeof t[n]?e(t[n]):t[n]);return r},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,r){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);try{var n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map(n=>({[n]:e(t[n],r)})))}}},3722:function(e,t,r){"use strict";let n=r(71214).recurse,o=r(18120).shallowClone,i=r(17927).jptr,a=r(64303).isRef;e.exports={dereference:function e(t,r,s){var u;s||(s={}),s.cache||(s.cache={}),s.state||(s.state={}),s.state.identityDetection=!0,s.depth=s.depth?s.depth+1:1;let c=s.depth>1?t:o(t),l={data:c},f=s.depth>1?r:o(r);s.master||(s.master=c);let p=(u=s)&&u.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}},h=1;for(;h>0;)h=0,n(l,s.state,function(t,r,n){if(a(t,r)){let o=t[r];if(h++,s.cache[o]){let e=s.cache[o];if(e.resolved)p.warn("Patching %s for %s",o,e.path),n.parent[n.pkey]=e.data,s.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][s.$ref]=o);else if(o===e.path)throw Error(`Tight circle at ${e.path}`);else p.warn("Unresolved ref"),n.parent[n.pkey]=i(e.source,e.path),!1===n.parent[n.pkey]&&(n.parent[n.pkey]=i(e.source,e.key)),s.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[s.$ref]=o)}else{let t={};t.path=n.path.split("/$ref")[0],t.key=o,p.warn("Dereffing %s at %s",o,t.path),t.source=f,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(s.master,t.key),t.source=s.master),!1===t.data&&p.warn("Missing $ref target",t.key),s.cache[o]=t,t.data=n.parent[n.pkey]=e(i(t.source,t.key),t.source,s),s.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][s.$ref]=o),t.resolved=!0}}});return l.data}}},64303:function(e){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},17927:function(e){"use strict";function t(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}e.exports={jptr:function(e,r,n){if(void 0===e)return!1;if(!r||"string"!=typeof r||"#"===r)return void 0!==n?n:e;if(r.indexOf("#")>=0){let e=r.split("#");if(e[0])return!1;r=decodeURIComponent((r=e[1]).slice(1).split("+").join(" "))}r.startsWith("/")&&(r=r.slice(1));let o=r.split("/");for(let r=0;r<o.length;r++){o[r]=t(o[r]);let i=void 0!==n&&r==o.length-1,a=parseInt(o[r],10);if(!Array.isArray(e)||isNaN(a)||a.toString()!==o[r]?a=Array.isArray(e)&&"-"===o[r]?-2:-1:o[r]=r>0?o[r-1]:"",-1!=a||e&&e.hasOwnProperty(o[r])){if(a>=0)i&&(e[a]=n),e=e[a];else if(-2===a){if(i)return Array.isArray(e)&&e.push(n),n;return}else i&&(e[o[r]]=n),e=e[o[r]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[r]]=i?n:"0"===o[r+1]||"-"===o[r+1]?[]:{},e=e[o[r]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:t}},71214:function(e,t,r){"use strict";let n=r(17927).jpescape;e.exports={recurse:function e(t,r,o){if(r||(r={depth:0}),r.depth||(r=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},r)),"object"!=typeof t)return;let i=r.path;for(let a in t){if(r.key=a,r.path=r.path+"/"+encodeURIComponent(n(a)),r.identityPath=r.seen.get(t[a]),r.identity=void 0!==r.identityPath,t.hasOwnProperty(a)&&o(t,a,r),"object"==typeof t[a]&&!r.identity){r.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&r.seen.set(t[a],r.path);let n={};n.parent=t,n.path=r.path,n.depth=r.depth?r.depth+1:1,n.pkey=a,n.payload=r.payload,n.seen=r.seen,n.identity=!1,n.identityDetection=r.identityDetection,e(t[a],n,o)}r.path=i}}}},6515:function(e,t,r){"use strict";let n;let o=r(42084),i=r(9173);r(79939);let a=r(46174),s=r(39726),u=r(2494),c=r(17927),l=c.jptr,f=r(64303).isRef,p=r(18120).clone,h=r(18120).circularClone,d=r(71214).recurse,y=r(53178),m=r(94153),g=r(52572),v=r(85559).statusCodes,b=r(61506).i8,w="3.0.0";class S extends Error{constructor(e){super(e),this.name="S2OError"}}function E(e,t){let r=new S(e);if(r.options=t,t.promise)t.promise.reject(r);else throw r}function O(e,t,r){r.warnOnly?t[r.warnProperty||"x-s2o-warning"]=e:E(e,r)}function _(e,t){m.walkSchema(e,{},{},function(e,r,n){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName)for(let t in e.discriminator=e["x-discriminator"],delete e["x-discriminator"],e.discriminator.mapping){let r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}(e,0),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(r.patch){if(r.patches++,0===e.type.length)delete e.type;else{for(let t of(e.oneOf||(e.oneOf=[]),e.type)){let r={};if("null"===t)e.nullable=!0;else for(let n of(r.type=t,g.arrayProperties))void 0!==e.prop&&(r[n]=e[n],delete e[n]);r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&O("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else E("(Patchable) schema type must not be an array",r)}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&!e.xml.namespace&&delete e.xml.namespace,void 0!==e.allowEmptyValue&&(r.patches++,delete e.allowEmptyValue)}(e,r,t)})}function A(e,t,r){let o=r.payload.options;if(f(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],r.parent[r.pkey]=p(o.openapi.consumes);else if("#/produces"===e[t])delete e[t],r.parent[r.pkey]=p(o.openapi.produces);else if(e[t].startsWith("#/definitions/")){let r=e[t].replace("#/definitions/","").split("/"),i=c.jpunescape(r[0]),a=n.schemas[decodeURIComponent(i)];a?r[0]=a:O("Could not resolve reference "+e[t],e,o),e[t]="#/components/schemas/"+r.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+g.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+g.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let r=p(c.jptr(o.openapi,e[t]));if(!1===r)O("direct $ref not found "+e[t],e,o);else if(o.refmap[e[t]])e[t]=o.refmap[e[t]];else{let n=e[t];n=(n=(n=(n=n.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","");let a="schemas",s=n.lastIndexOf("/schema");if("schemas"==(a=n.indexOf("/headers/")>s?"headers":n.indexOf("/responses/")>s?"responses":n.indexOf("/example")>s?"examples":n.indexOf("/x-")>s?"extensions":n.indexOf("/parameters/")>s?"parameters":"schemas")&&_(r,o),"responses"!==a&&"extensions"!==a){let n=a.substr(0,a.length-1);"parameter"===n&&r.name&&r.name===g.sanitise(r.name)&&(n=encodeURIComponent(r.name));let s=1;if(e["x-miro"]){var i;i=(i=e["x-miro"]).indexOf("#")>=0?i.split("#")[1].split("/").pop():i.split("/").pop().split(".")[0],n=encodeURIComponent(g.sanitise(i)),s=""}for(;c.jptr(o.openapi,"#/components/"+a+"/"+n+s);)s=""===s?2:++s;let u="#/components/"+a+"/"+n+s,l="";"examples"===a&&(r={value:r},l="/value"),c.jptr(o.openapi,u,r),o.refmap[e[t]]=u+l,e[t]=u+l}}}if(delete e["x-miro"],Object.keys(e).length>1){let n=e[t],i=r.path.indexOf("/schema")>=0;"preserve"===o.refSiblings||(i&&"allOf"===o.refSiblings?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:n},e]}):r.parent[r.pkey]={$ref:n})}}if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let r=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),i=n.schemas[decodeURIComponent(r[0])];i?r[0]=i:O("Could not resolve reference "+e[t],e,o),e[t]="#/components/schemas/"+r.join("/")}}function x(e){for(let t in e)for(let r in e[t]){let n=g.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function k(e){return e&&!e["x-s2o-delete"]}function R(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{for(let r of(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&O("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?O("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?O("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(O("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):E("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type,g.parameterTypeProperties))void 0!==e[r]&&(e.schema[r]=e[r],delete e[r]);for(let t of g.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function P(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+g.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&O("Definition used as parameter",e,t)}function T(e,t,r,n,o,i,a){let s,u={},c=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return E("(Patchable) operation.consumes must be an array",a);a.patches++,t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let f=((t?t.consumes:null)||i.consumes||[]).filter(g.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){P(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),r=!1,n=i.components.parameters[t];if((!n||n["x-s2o-delete"])&&e.$ref.startsWith("#/")&&(e["x-s2o-delete"]=!0,r=!0),r){let t=e.$ref,r=l(i,e.$ref);!r&&t.startsWith("#/")?O("Could not resolve reference "+t,e,a):r&&(e=r)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(a.patch?(a.patches++,e.type="string"):E("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=l(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=l(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(a.patch?(a.patches++,delete e.collectionFormat):E("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"===t&&("query"===e.in||"cookie"===e.in)&&(e.style="form",e.explode=!1),"csv"===t&&("path"===e.in||"header"===e.in)&&(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":O("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":O("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(O("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in){if(e.items&&e.schema)O("parameter has array,items and schema",e,a);else for(let r of(e.schema&&a.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,d(e.schema.items,null,function(r,n,o){"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&O("Nested collectionFormats are not supported",e,a),delete r[n])})),g.parameterTypeProperties))void 0!==e[r]&&(e.schema[r]=e[r]),delete e[r]}e.schema&&_(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){c=!1,u.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),u.content[t]={},e.schema)u.content[t].schema=e.schema,e.schema.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{u.content[t].schema={},u.content[t].schema.type="object",u.content[t].schema.properties={},u.content[t].schema.properties[e.name]={};let r=u.content[t].schema,n=u.content[t].schema.properties[e.name];for(let t of(e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type),g.parameterTypeProperties))void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),u.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),("file"===s||"file"===e["x-s2o-originalType"])&&(n.type="string",n.format="binary"),j(e,n)}}else e&&"file"===e.type&&(e.required&&(u.required=e.required),u.content={},u.content["application/octet-stream"]={},u.content["application/octet-stream"].schema={},u.content["application/octet-stream"].schema.type="string",u.content["application/octet-stream"].schema.format="binary",j(e,u));if(e&&"body"===e.in){for(let r of(u.content={},e.name&&(u["x-s2o-name"]=(t&&t.operationId?g.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(u.description=e.description),e.required&&(u.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),f.length||f.push("application/json"),f))u.content[r]={},u.content[r].schema=p(e.schema||{}),_(u.content[r].schema,a);j(e,u)}if(Object.keys(u).length>0&&(e["x-s2o-delete"]=!0,!t||(t.requestBody&&c?(t.requestBody["x-s2o-overloaded"]=!0,O("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)):(t.requestBody||(t=r[n]=function(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&u.content["multipart/form-data"]&&u.content["multipart/form-data"].schema&&u.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,u.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(u.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&u.content["application/x-www-form-urlencoded"]&&u.content["application/x-www-form-urlencoded"].schema&&u.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,u.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(u.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,u),!t.requestBody["x-s2o-name"]&&(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=g.sanitiseAll(t.operationId))))))),e&&!e["x-s2o-delete"]){for(let t of(delete e.type,g.parameterTypeProperties))delete e[t];"path"===e.in&&(void 0===e.required||!0!==e.required)&&(a.patch?(a.patches++,e.required=!0):E("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function j(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function L(e,t,r,n,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?O("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(o.patches++,e.description=v[e]||""):E("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(_(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&"string"==typeof r.produces){if(!o.patch)return E("(Patchable) operation.produces must be an array",o);o.patches++,r.produces=[r.produces]}n.produces&&!Array.isArray(n.produces)&&delete n.produces;let t=((r?r.produces:null)||n.produces||[]).filter(g.uniqueOnly);for(let r of(t.length||t.push("*/*"),e.content={},t)){if(e.content[r]={},e.content[r].schema=p(e.schema),e.examples&&e.examples[r]){let t={};t.value=e.examples[r],e.content[r].examples={},e.content[r].examples.response=t,delete e.examples[r]}"file"===e.content[r].schema.type&&(e.content[r].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?(o.patches++,delete e.headers[t]):E('(Patchable) "Status Code" is not a valid header',o):R(e.headers[t],o)}}function M(e,t,r,n,o){for(let a in e){let s=e[a];for(let e in s&&s["x-trace"]&&"object"==typeof s["x-trace"]&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&"string"==typeof s["x-summary"]&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&"string"==typeof s["x-description"]&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]),s)if(g.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let u=s[e];if(u&&u.parameters&&Array.isArray(u.parameters)){if(s.parameters)for(let t of s.parameters)"string"==typeof t.$ref&&(P(t,r),t=l(o,t.$ref)),!u.parameters.find(function(e,r,n){return e.name===t.name&&e.in===t.in})&&("formData"===t.in||"body"===t.in||"file"===t.type)&&(u=T(t,u,s,e,a,o,r),r.rbname&&""===u[r.rbname]&&delete u[r.rbname]);for(let t of u.parameters)u=T(t,u,s,e,e+":"+a,o,r);r.rbname&&""===u[r.rbname]&&delete u[r.rbname],!r.debug&&u.parameters&&(u.parameters=u.parameters.filter(k))}if(u&&u.security&&x(u.security),"object"==typeof u){if(!u.responses){let e={};e.description="Default response",u.responses={default:e}}for(let e in u.responses)L(u.responses[e],e,u,o,r)}if(u&&u["x-servers"]&&Array.isArray(u["x-servers"]))u.servers=u["x-servers"],delete u["x-servers"];else if(u&&u.schemes&&u.schemes.length){for(let e of u.schemes)if((!o.schemes||0>o.schemes.indexOf(e))&&(u.servers||(u.servers=[]),Array.isArray(o.servers)))for(let t of o.servers){let r=p(t),n=i.parse(r.url);n.protocol=e,r.url=n.format(),u.servers.push(r)}}if(r.debug&&(u["x-s2o-consumes"]=u.consumes||[],u["x-s2o-produces"]=u.produces||[]),u){if(delete u.consumes,delete u.produces,delete u.schemes,u["x-ms-examples"]){for(let e in u["x-ms-examples"]){let t=u["x-ms-examples"][e],r=g.sanitiseAll(e);if(t.parameters)for(let r in t.parameters){let n=t.parameters[r];for(let t of(u.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=c.jptr(o,t.$ref)),t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(let n in t.responses){if(t.responses[n].headers)for(let e in t.responses[n].headers){let r=t.responses[n].headers[e];for(let t in u.responses[n].headers)t===e&&(u.responses[n].headers[t].example=r)}if(t.responses[n].body&&(o.components.examples[r]={value:p(t.responses[n].body)},u.responses[n]&&u.responses[n].content))for(let t in u.responses[n].content){let o=u.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete u["x-ms-examples"]}if(u.parameters&&0===u.parameters.length&&delete u.parameters,u.requestBody){let r=u.operationId?g.sanitiseAll(u.operationId):g.sanitiseAll(e+a).toCamelCase(),o=g.sanitise(u.requestBody["x-s2o-name"]||r||"");delete u.requestBody["x-s2o-name"];let i=JSON.stringify(u.requestBody),s=g.hash(i);if(!n[s]){let e={};e.name=o,e.body=u.requestBody,e.refs=[],n[s]=e}let l="#/"+t+"/"+encodeURIComponent(c.jpescape(a))+"/"+e+"/requestBody";n[s].refs.push(l)}}}if(s&&s.parameters){for(let e in s.parameters)T(s.parameters[e],null,s,null,a,o,r);!r.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(k))}}}function N(e){return e&&e.url&&"string"==typeof e.url&&(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e}function C(e,t,r){if(void 0===e.info||null===e.info){if(!t.patch)return r(new S("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return r(new S("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return r(new S("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return r(new S("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return r(new S("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return r(new S("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return r(new S("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(n){if(!t.patch)return r(new S("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function I(e,t,r){if(void 0===e.paths){if(!t.patch)return r(new S("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function B(e,t,r){return a(r,new Promise(function(r,o){if(e||(e={}),t.original=e,t.text||(t.text=u.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=r,t.promise.reject=o,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),!function(e,t){let r=new WeakSet;d(e,{identityDetection:!0},function(e,n,o){"object"==typeof e[n]&&null!==e[n]&&(r.has(e[n])?t.anchors?e[n]=p(e[n]):E("YAML anchor or merge key at "+o.path,t):r.add(e[n]))})}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3.")){t.openapi=h(e),C(t.openapi,t,o),I(t.openapi,t,o),y.optionalResolve(t).then(function(){return t.direct?r(t.openapi):r(t)}).catch(function(e){console.warn(e),o(e)});return}if(!e.swagger||"2.0"!=e.swagger)return o(new S("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let i=t.openapi={};if(i.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:w,t.origin){i["x-origin"]||(i["x-origin"]=[]);let r={};r.url=t.source||t.origin,r.format="swagger",r.version=e.swagger,r.converter={},r.converter.url="https://github.com/mermade/oas-kit",r.converter.version=b,i["x-origin"].push(r)}if(i=Object.assign(i,h(e)),delete i.swagger,d(i,{},function(e,t,r){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&0>r.path.indexOf("/example")&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let r={},n=(e.basePath||"").replace(/\/$/,"");r.url=(t?t+":":"")+"//"+e.host+n,N(r),i.servers||(i.servers=[]),i.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,N(t),i.servers||(i.servers=[]),i.servers.push(t)}if(delete i.host,delete i.basePath,i["x-servers"]&&Array.isArray(i["x-servers"])&&(i.servers=i["x-servers"],delete i["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],r={};r.url=t.hostTemplate+(e.basePath?e.basePath:""),r.variables={};let n=r.url.match(/\{\w+\}/g);for(let e in t.parameters){let o=t.parameters[e];o.$ref&&(o=p(l(i,o.$ref))),e.startsWith("x-")||(delete o.required,delete o.type,delete o.in,void 0===o.default&&(o.enum?o.default=o.enum[0]:o.default="none"),o.name||(o.name=n[e].replace("{","").replace("}","")),r.variables[o.name]=o,delete o.name)}i.servers||(i.servers=[]),!1===t.useSchemePrefix?i.servers.push(r):e.schemes.forEach(e=>{i.servers.push(Object.assign({},r,{url:e+"://"+r.url}))}),delete i["x-ms-parameterized-host"]}C(i,t,o),I(i,t,o),"string"==typeof i.consumes&&(i.consumes=[i.consumes]),"string"==typeof i.produces&&(i.produces=[i.produces]),i.components={},i["x-callbacks"]&&(i.components.callbacks=i["x-callbacks"],delete i["x-callbacks"]),i.components.examples={},i.components.headers={},i["x-links"]&&(i.components.links=i["x-links"],delete i["x-links"]),i.components.parameters=i.parameters||{},i.components.responses=i.responses||{},i.components.requestBodies={},i.components.securitySchemes=i.securityDefinitions||{},i.components.schemas=i.definitions||{},delete i.definitions,delete i.responses,delete i.parameters,delete i.securityDefinitions,y.optionalResolve(t).then(function(){(function(e,t){let r={};for(let r in n={schemas:{}},e.security&&x(e.security),e.components.securitySchemes){let n=g.sanitise(r);r!==n&&(e.components.securitySchemes[n]&&E("Duplicate sanitised securityScheme name "+n,t),e.components.securitySchemes[n]=e.components.securitySchemes[r],delete e.components.securitySchemes[r]),function(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let r={},n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),void 0!==e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):E("(Patchable) oauth2 securitySchemes should not have name property",t))}}(e.components.securitySchemes[n],t)}for(let r in e.components.schemas){let o=g.sanitiseAll(r),i="";if(r!==o){for(;e.components.schemas[o+i];)i=i?++i:2;e.components.schemas[o+i]=e.components.schemas[r],delete e.components.schemas[r]}n.schemas[r]=o+i,_(e.components.schemas[o+i],t)}for(let r in t.refmap={},d(e,{payload:{options:t}},A),function(e,t){for(let r in t.refmap)c.jptr(e,r,{$ref:t.refmap[r]})}(e,t),e.components.parameters){let n=g.sanitise(r);r!==n&&(e.components.parameters[n]&&E("Duplicate sanitised parameter name "+n,t),e.components.parameters[n]=e.components.parameters[r],delete e.components.parameters[r]),T(e.components.parameters[n],null,null,null,n,e,t)}for(let r in e.components.responses){let n=g.sanitise(r);r!==n&&(e.components.responses[n]&&E("Duplicate sanitised response name "+n,t),e.components.responses[n]=e.components.responses[r],delete e.components.responses[r]);let o=e.components.responses[n];if(L(o,n,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete o.headers[e]):E('(Patchable) "Status Code" is not a valid header',t):R(o.headers[e],t)}for(let t in e.components.requestBodies){let n=e.components.requestBodies[t],o=JSON.stringify(n),i=g.hash(o),a={};a.name=t,a.body=n,a.refs=[],r[i]=a}if(M(e.paths,"paths",t,r,e),e["x-ms-paths"]&&M(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let t in e.components.parameters)e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t];t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let o=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let n in r){let i=r[n];if(i.refs.length>1){let r="";for(i.name||(i.name="requestBody",r=t++);o.indexOf(i.name+r)>=0;)r=r?++r:2;for(let t in i.name=i.name+r,o.push(i.name),e.components.requestBodies[i.name]=p(i.body),i.refs){let r={};r.$ref="#/components/requestBodies/"+i.name,c.jptr(e,i.refs[t],r)}}}}e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components})(t.openapi,t),t.direct?r(t.openapi):r(t)}).catch(function(e){console.warn(e),o(e)})}))}function U(e,t,r){return a(r,new Promise(function(r,n){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(r){i=r;try{o=u.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?B(o,t).then(e=>r(e)).catch(e=>n(e)):n(new S(i?i.message:"Could not parse string"))}))}e.exports={S2OError:S,targetVersion:w,convert:B,convertObj:B,convertUrl:function(e,t,r){return a(r,new Promise(function(r,n){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=s);let o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then(function(t){if(200!==t.status)throw new S(`Received status code ${t.status}: ${e}`);return t.text()}).then(function(e){U(e,t).then(e=>r(e)).catch(e=>n(e))}).catch(function(e){n(e)})}))},convertStr:U,convertFile:function(e,t,r){return a(r,new Promise(function(r,n){o.readFile(e,t.encoding||"utf8",function(o,i){o?n(o):(t.sourceFile=e,U(i,t).then(e=>r(e)).catch(e=>n(e)))})}))},convertStream:function(e,t,r){return a(r,new Promise(function(r,n){let o="";e.on("data",function(e){o+=e}).on("end",function(){U(o,t).then(e=>r(e)).catch(e=>n(e))})}))}}},85559:function(e,t,r){"use strict";let n=r(70930);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},n.STATUS_CODES)}},45254:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}(r)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0!==(r=(function(){return o}).apply(t,[]))&&(e.exports=r)}()},2494:function(e,t,r){e.exports=r(79476).YAML},57501:function(e,t,r){"use strict";r.d(t,{ApiClientModalProvider:function(){return p},useApiClientModal:function(){return h}});var n=r(27573),o=r(7653);globalThis.__VUE_OPTIONS_API__=!0,globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0,globalThis.__VUE_PROD_DEVTOOLS__=!1;let i={createClient:null,clientDict:{}},a=new Set,s=()=>a.forEach(e=>e()),u={getSnapshot:()=>i,subscribe:e=>(a.add(e),()=>a.delete(e)),setCreateClient:e=>{i={...i,createClient:e},s()},addClient:(e,t)=>{i={...i,clientDict:{...i.clientDict,[e]:t}},s()},removeClient:e=>{let{[e]:t,...r}=i.clientDict;i={...i,clientDict:r},s()}},c=(0,o.createContext)(null),l=!1,f={},p=e=>{var t;let{children:i,initialRequest:a,configuration:s={}}=e,p=(null==(t=s.spec)?void 0:t.url)||"default",h=(0,o.useRef)(null),d=(0,o.useSyncExternalStore)(u.subscribe,u.getSnapshot,u.getSnapshot);return(0,o.useEffect)(()=>{l||(async()=>{l=!0;let{createApiClientModalSync:e}=await Promise.all([r.e(3288),r.e(7269),r.e(5614),r.e(6150),r.e(7631)]).then(r.bind(r,36624));u.setCreateClient(e)})()},[]),(0,o.useEffect)(()=>{if(!h.current||!d.createClient||f[p])return()=>null;let e=d.createClient(h.current,s),t=async()=>{await e.updateSpec(s.spec),a&&e.route(a)};return u.addClient(p,e),f[p]=e,s.spec?t():a&&e.route(a),()=>{e.app.unmount(),u.removeClient(p),delete f[p]}},[h.current,d.createClient]),(0,n.jsxs)(c.Provider,{value:d.clientDict[p],children:[(0,n.jsx)("div",{className:"scalar-app",ref:h}),i]})},h=()=>(0,o.useContext)(c)},66880:function(e,t,r){"use strict";r.d(t,{_:function(){return n.useApiClientModal}});var n=r(57501)},18279:function(e,t,r){"use strict";r.d(t,{Pz:function(){return m},Qc:function(){return y},im:function(){return g}});let{parse:n,stringify:o}=JSON,{keys:i}=Object,a=String,s="string",u={},c="object",l=(e,t)=>t,f=e=>e instanceof a?a(e):e,p=(e,t)=>typeof t===s?new a(t):t,h=(e,t,r,n)=>{let o=[];for(let s=i(r),{length:l}=s,f=0;f<l;f++){let i=s[f],l=r[i];if(l instanceof a){let a=e[l];typeof a!==c||t.has(a)?r[i]=n.call(r,i,a):(t.add(a),r[i]=u,o.push({k:i,a:[e,t,a,n]}))}else r[i]!==u&&(r[i]=n.call(r,i,l))}for(let{length:e}=o,t=0;t<e;t++){let{k:e,a:i}=o[t];r[e]=n.call(r,e,h.apply(null,i))}return r},d=(e,t,r)=>{let n=a(t.push(r)-1);return e.set(r,n),n},y=(e,t)=>{let r=n(e,p).map(f),o=r[0],i=t||l,a=typeof o===c&&o?h(r,new Set,o,i):o;return i.call({"":a},"",a)},m=(e,t,r)=>{let n=t&&typeof t===c?(e,r)=>""===e||-1<t.indexOf(e)?r:void 0:t||l,i=new Map,a=[],u=[],f=+d(i,a,n.call({"":e},"",e)),p=!f;for(;f<a.length;)p=!0,u[f]=o(a[f++],h,r);return"["+u.join(",")+"]";function h(e,t){if(p)return p=!p,t;let r=n.call(this,e,t);switch(typeof r){case c:if(null===r)break;case s:return i.get(r)||d(i,a,r)}return r}},g=e=>y(o(e))},79476:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e,t,r){return(p=f()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&l(o,r.prototype),o}).apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return t&&("object"==typeof t||"function"==typeof t)?t:d(e)}function m(e){var t=f();return function(){var r,n=c(e);return r=t?Reflect.construct(n,arguments,c(this).constructor):n.apply(this,arguments),y(this,r)}}function g(e,t,r){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function v(e,t){return w(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,t)||S(e,t)||O()}function b(e){return w(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||O()}function w(e){if(Array.isArray(e))return e}function S(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=S(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,s=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw i}}}}r.d(t,{YAML:function(){return tI}});var A={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},x={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},k="tag:yaml.org,2002:",R={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function P(e){for(var t=[0],r=e.indexOf("\n");-1!==r;)t.push(r+=1),r=e.indexOf("\n",r);return t}function T(e){var t,r;return"string"==typeof e?(t=P(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=P(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function j(e,t){if("number"!=typeof e||e<0)return null;var r=T(t),n=r.lineStarts,o=r.src;if(!n||!o||e>o.length)return null;for(var i=0;i<n.length;++i){var a=n[i];if(e<a)return{line:i,col:e-n[i-1]+1};if(e===a)return{line:i+1,col:1}}var s=n.length;return{line:s,col:e-n[s-1]+1}}var L=function(){function e(t,r){o(this,e),this.start=t,this.end=r||t}return a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var r=this.start,n=this.end;if(0===e.length||n<=e[0])return this.origStart=r,this.origEnd=n,t;for(var o=t;o<e.length&&!(e[o]>r);)++o;this.origStart=r+o;for(var i=o;o<e.length&&!(e[o]>=n);)++o;return this.origEnd=n+o,i}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),M=function(){function e(t,r,n){o(this,e),Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=r||[],this.type=t,this.value=null}return a(e,[{key:"getPropValue",value:function(e,t,r){if(!this.context)return null;var n=this.context.src,o=this.props[e];return o&&n[o.start]===t?n.slice(o.start+(r?1:0),o.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,A.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var r=this.getPropValue(t,A.COMMENT,!0);null!=r&&e.push(r)}return e.length>0?e.join("\n"):null}},{key:"commentHasRequiredWhitespace",value:function(t){var r=this.context.src;if(this.header&&t===this.header.end||!this.valueRange)return!1;var n=this.valueRange.end;return t!==n||e.atBlank(r,n-1)}},{key:"hasComment",get:function(){if(this.context){for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===A.COMMENT)return!0}return!1}},{key:"hasProps",get:function(){if(this.context){for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==A.COMMENT)return!0}return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return -1!==[x.FLOW_MAP,x.FLOW_SEQ,x.QUOTE_DOUBLE,x.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=j(this.range.start,this.context.root);if(e)return{start:e,end:j(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,r=e.end;return this.context.src.slice(t,r)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,A.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var r=v(t.match(/^(.*!)([^!]*)$/),3);return r[0],{handle:r[1],suffix:r[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,r=e.end,n=this.context.src,o=t;o<r;++o)if("\n"===n[o])return!0;return!1}},{key:"parseComment",value:function(t){var r=this.context.src;if(r[t]===A.COMMENT){var n=e.endOfLine(r,t+1),o=new L(t,n);return this.props.push(o),n}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(function(r){return r.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,r=this.range,n=this.value;if(null!=n)return n;var o=t.slice(r.start,r.end);return e.addStringTerminator(t,r.end,o)}}],[{key:"addStringTerminator",value:function(t,r,n){if("\n"===n[n.length-1])return n;var o=e.endOfWhiteSpace(t,r);return o>=t.length||"\n"===t[o]?n+"\n":n}},{key:"atDocumentBoundary",value:function(e,t,r){var n=e[t];if(!n)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(r){if(n!==r)return!1}else if(n!==A.DIRECTIVES_END&&n!==A.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==n||a!==n)return!1;var s=e[t+3];return!s||"\n"===s||"	"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var r=e[t],n="<"===r,o=n?["\n","	"," ",">"]:["\n","	"," ","[","]","{","}",","];r&&-1===o.indexOf(r);)r=e[t+=1];return n&&">"===r&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var r=e[t];" "===r;)r=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var r=e[t];r&&"\n"!==r;)r=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var r=e[t];"	"===r||" "===r;)r=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var r=e[t-1];if("\n"===r)return t;for(;r&&"\n"!==r;)r=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,r,n){var o=e.endOfIndent(t,n);if(o>n+r)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,r){var n=e[t];return"\n"===n||"	"===n||" "===n||r&&!n}},{key:"nextNodeIsIndented",value:function(e,t,r){return!!e&&!(t<0)&&(t>0||r&&"-"===e)}},{key:"normalizeOffset",value:function(t,r){var n=t[r];return n?"\n"!==n&&"\n"===t[r-1]?r-1:e.endOfWhiteSpace(t,r):r}},{key:"foldNewline",value:function(t,r,n){for(var o=0,i=!1,a="",s=t[r+1];" "===s||"	"===s||"\n"===s;){switch(s){case"\n":o=0,r+=1,a+="\n";break;case"	":o<=n&&(i=!0),r=e.endOfWhiteSpace(t,r+2)-1;break;case" ":o+=1,r+=1}s=t[r+1]}return a||(a=" "),s&&o<=n&&(i=!0),{fold:a,offset:r,error:i}}}]),e}(),N=function(e){u(r,e);var t=m(r);function r(e,n,i){var a;if(o(this,r),!i||!(n instanceof M))throw Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=i,a.source=n,a}return a(r,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new L(this.offset,this.offset+1);var t=e&&j(this.offset,e);if(t){var r={line:t.line,col:t.col+1};this.linePos={start:t,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var n=this.linePos.start,o=n.line,i=n.col;this.message+=" at line ".concat(o,", column ").concat(i);var a=e&&function(e,t){var r=e.start,n=e.end,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,i=function(e,t){var r=T(t),n=r.lineStarts,o=r.src;if(!n||!(e>=1)||e>n.length)return null;for(var i=n[e-1],a=n[e];a&&a>i&&"\n"===o[a-1];)--a;return o.slice(i,a)}(r.line,t);if(!i)return null;var a=r.col;if(i.length>o){if(a<=o-10)i=i.substr(0,o-1)+"…";else{var s=Math.round(o/2);i.length>a+s&&(i=i.substr(0,a+s-1)+"…"),a-=i.length-o,i="…"+i.substr(1-o)}}var u=1,c="";n&&(n.line===r.line&&a+(n.col-r.col)<=o+1?u=n.col-r.col:(u=Math.min(i.length+1,o)-a,c="…"));var l=a>1?" ".repeat(a-1):"",f="^".repeat(u);return"".concat(i,"\n").concat(l).concat(f).concat(c)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),r}(h(Error)),C=function(e){u(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLReferenceError",e,n)}return r}(N),I=function(e){u(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSemanticError",e,n)}return r}(N),B=function(e){u(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSyntaxError",e,n)}return r}(N),U=function(e){u(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLWarning",e,n)}return r}(N),D=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,n=this.context.src,o=n[r-1];t<r&&("\n"===o||"	"===o||" "===o);)o=n[--r-1];for(var i="",a=t;a<r;++a){var s=n[a];if("\n"===s){var u=M.foldNewline(n,a,-1),c=u.fold,l=u.offset;i+=c,a=l}else if(" "===s||"	"===s){for(var f=a,p=n[a+1];a<r&&(" "===p||"	"===p);)a+=1,p=n[a+1];"\n"!==p&&(i+=a>f?n.slice(f,a+1):s)}else i+=s}var h=n[t];switch(h){case"	":return{errors:[new I(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new I(this,"Plain value cannot start with reserved character ".concat(h))],str:i};default:return i}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,o=t.inFlow,i=t.src,a=e,s=e,u=i[a];"\n"===u&&!M.atDocumentBoundary(i,a+1);u=i[a]){var c=M.endOfBlockIndent(i,n,a+1);if(null===c||"#"===i[c])break;a="\n"===i[c]?c:s=r.endOfLine(i,c,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var n=e.inFlow,o=e.src,i=t,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=r.endOfLine(o,t,n)),this.valueRange=new L(t,i),i=M.endOfWhiteSpace(o,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}}],[{key:"endOfLine",value:function(e,t,r){for(var n=e[t],o=t;n&&"\n"!==n&&(!r||"["!==n&&"]"!==n&&"{"!==n&&"}"!==n&&","!==n);){var i=e[o+1];if(":"===n&&(!i||"\n"===i||"	"===i||" "===i||r&&","===i)||(" "===n||"	"===n)&&"#"===i)break;o+=1,n=i}return o}}]),r}(M),F=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.call(this,x.BLANK_LINE)}return a(r,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(e,t){return this.context=e,this.range=new L(t,t+1),t+1}}]),r}(M),q=function(e){u(r,e);var t=m(r);function r(e,n){var i;return o(this,r),(i=t.call(this,e,n)).node=null,i}return a(r,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(e,t){this.context=e;var r=e.parseNode,n=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==x.SEQ_ITEM||(this.error=new I(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=M.endOfWhiteSpace(n,t+1),u=n[s],c="#"===u,l=[],f=null;"\n"===u||"#"===u;){if("#"===u){var p=M.endOfLine(n,s+1);l.push(new L(s,p)),s=p}else{o=!0,i=s+1;var h=M.endOfWhiteSpace(n,i);"\n"===n[h]&&0===l.length&&(i=(f=new F).parse({src:n},i)),s=M.endOfIndent(n,i)}u=n[s]}if(M.nextNodeIsIndented(u,s-(i+a),this.type!==x.SEQ_ITEM)?this.node=r({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s):u&&i>t+1&&(s=i-1),this.node){if(f){var d=e.parent.items||e.parent.contents;d&&d.push(f)}l.length&&Array.prototype.push.apply(this.props,l),s=this.node.range.end}else if(c){var y=l[0];this.props.push(y),s=y.end}else s=M.endOfLine(n,t+1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new L(t,m),s}},{key:"setOrigRanges",value:function(e,t){return t=g(c(r.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,r=this.range,n=this.value;if(null!=n)return n;var o=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return M.addStringTerminator(e,r.end,o)}}]),r}(M),W=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.call(this,x.COMMENT)}return a(r,[{key:"parse",value:function(e,t){this.context=e;var r=this.parseComment(t);return this.range=new L(t,r),r}}]),r}(M);function $(e){for(var t=e;t instanceof q;)t=t.node;if(!(t instanceof G))return null;for(var r=t.items.length,n=-1,o=r-1;o>=0;--o){var i=t.items[o];if(i.type===x.COMMENT){var a=i.context,s=a.indent,u=a.lineStart;if(s>0&&i.range.start>=u+s)break;n=o}else if(i.type===x.BLANK_LINE)n=o;else break}if(-1===n)return null;for(var c=t.items.splice(n,r-n),l=c[0].range.start;t.range.end=l,t.valueRange&&t.valueRange.end>l&&(t.valueRange.end=l),t!==e;)t=t.context.parent;return c}var G=function(e){u(r,e);var t=m(r);function r(e){o(this,r),n=t.call(this,e.type===x.SEQ_ITEM?x.SEQ:x.MAP);for(var n,i=e.props.length-1;i>=0;--i)if(e.props[i].start<e.context.lineStart){n.props=e.props.slice(0,i+1),e.props=e.props.slice(i+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}n.items=[e];var s=$(e);return s&&Array.prototype.push.apply(n.items,s),n}return a(r,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,i=M.startOfLine(o,t),a=this.items[0];a.context.parent=this,this.valueRange=L.copy(a.valueRange);var s=a.range.start-a.context.lineStart,u=t;u=M.normalizeOffset(o,u);for(var c=o[u],l=M.endOfWhiteSpace(o,i)===u,f=!1;c;){for(;"\n"===c||"#"===c;){if(l&&"\n"===c&&!f){var p=new F;if(u=p.parse({src:o},u),this.valueRange.end=u,u>=o.length){c=null;break}this.items.push(p),u-=1}else if("#"===c){if(u<i+s&&!r.nextContentHasIndent(o,u,s))return u;var h=new W;if(u=h.parse({indent:s,lineStart:i,src:o},u),this.items.push(h),this.valueRange.end=u,u>=o.length){c=null;break}}if(i=u+1,u=M.endOfIndent(o,i),M.atBlank(o,u)){var d=M.endOfWhiteSpace(o,u),y=o[d];y&&"\n"!==y&&"#"!==y||(u=d)}c=o[u],l=!0}if(!c)break;if(u!==i+s&&(l||":"!==c)){if(u<i+s){i>t&&(u=i);break}this.error||(this.error=new B(this,"All collection items must start at the same column"))}if(a.type===x.SEQ_ITEM){if("-"!==c){i>t&&(u=i);break}}else if("-"===c&&!this.error){var m=o[u+1];m&&"\n"!==m&&"	"!==m&&" "!==m||(this.error=new B(this,"A collection cannot be both a mapping and a sequence"))}var g=n({atLineStart:l,inCollection:!0,indent:s,lineStart:i,parent:this},u);if(!g)break;if(this.items.push(g),this.valueRange.end=g.valueRange.end,u=M.normalizeOffset(o,g.range.end),c=o[u],l=!1,f=g.includesTrailingLines,c){for(var v=u-1,b=o[v];" "===b||"	"===b;)b=o[--v];"\n"===b&&(i=v+1,l=!0)}var w=$(g);w&&Array.prototype.push.apply(this.items,w)}return u}},{key:"setOrigRanges",value:function(e,t){return t=g(c(r.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach(function(r){t=r.setOrigRanges(e,t)}),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,r=this.range,n=this.value;if(null!=n)return n;for(var o=e.slice(r.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var a=t[i],s=a.context,u=s.atLineStart,c=s.indent;if(u)for(var l=0;l<c;++l)o+=" ";o+=String(a)}return M.addStringTerminator(e,r.end,o)}}],[{key:"nextContentHasIndent",value:function(e,t,n){var o=M.endOfLine(e,t)+1;t=M.endOfWhiteSpace(e,o);var i=e[t];return!!i&&(t>=o+n||("#"===i||"\n"===i)&&r.nextContentHasIndent(e,t,n))}}]),r}(M),H=function(e){u(r,e);var t=m(r);function r(){var e;return o(this,r),(e=t.call(this,x.DIRECTIVE)).name=null,e}return a(r,[{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(e){for(var t=this.context.src,r=e,n=t[r];n&&"\n"!==n&&"	"!==n&&" "!==n;)n=t[r+=1];return this.name=t.slice(e,r),r}},{key:"parseParameters",value:function(e){for(var t=this.context.src,r=e,n=t[r];n&&"\n"!==n&&"#"!==n;)n=t[r+=1];return this.valueRange=new L(e,r),r}},{key:"parse",value:function(e,t){this.context=e;var r=this.parseName(t+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new L(t,r),r}}]),r}(M),V=function(e){u(r,e);var t=m(r);function r(){var e;return o(this,r),(e=t.call(this,x.DOCUMENT)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return a(r,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var n=!0,o=!1,i=e;!M.atDocumentBoundary(t,i,A.DIRECTIVES_END);)switch(i=r.startCommentOrEndBlankLine(t,i),t[i]){case"\n":if(n){var a=new F;(i=a.parse({src:t},i))<t.length&&this.directives.push(a)}else i+=1,n=!0;break;case"#":var s=new W;i=s.parse({src:t},i),this.directives.push(s),n=!1;break;case"%":var u=new H;i=u.parse({parent:this,src:t},i),this.directives.push(u),o=!0,n=!1;break;default:return o?this.error=new I(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return t[i]?(this.directivesEndMarker=new L(i,i+3),i+3):(o?this.error=new I(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var t=this.context,n=t.parseNode,o=t.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=M.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new L(a);!M.atDocumentBoundary(o,a,A.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var u=new F;(a=u.parse({src:o},a))<o.length&&this.contents.push(u)}else a+=1,s=!0;i=a;break;case"#":var c=new W;a=c.parse({src:o},a),this.contents.push(c),s=!1;break;default:var l=M.endOfIndent(o,a),f=n({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:i,parent:this},l);if(!f)return this.valueRange.end=l;this.contents.push(f),a=f.range.end,s=!1;var p=$(f);p&&Array.prototype.push.apply(this.contents,p)}a=r.startCommentOrEndBlankLine(o,a)}if(this.valueRange.end=a,o[a]&&(this.documentEndMarker=new L(a,a+3),o[a+=3])){if(a=M.endOfWhiteSpace(o,a),"#"===o[a]){var h=new W;a=h.parse({src:o},a),this.contents.push(h)}switch(o[a]){case"\n":a+=1;break;case void 0:break;default:this.error=new B(this,"Document end marker line cannot have a non-comment suffix")}}return a}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var r=65279===e.src.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r)}},{key:"setOrigRanges",value:function(e,t){return t=g(c(r.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach(function(r){t=r.setOrigRanges(e,t)}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(function(r){t=r.setOrigRanges(e,t)}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,r=this.value;if(null!=r)return r;var n=t.join("");return e.length>0&&((t.length>0||e[0].type===x.COMMENT)&&(n+="---\n"),n+=e.join("")),"\n"!==n[n.length-1]&&(n+="\n"),n}}],[{key:"startCommentOrEndBlankLine",value:function(e,t){var r=M.endOfWhiteSpace(e,t),n=e[r];return"#"===n||"\n"===n?r:t}}]),r}(M),K=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"parse",value:function(e,t){this.context=e;var r=e.src,n=M.endOfIdentifier(r,t+1);return this.valueRange=new L(t+1,n),n=M.endOfWhiteSpace(r,n),n=this.parseComment(n)}}]),r}(M),J={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},z=function(e){u(r,e);var t=m(r);function r(e,n){var i;return o(this,r),(i=t.call(this,e,n)).blockIndent=null,i.chomping=J.CLIP,i.header=null,i}return a(r,[{key:"includesTrailingLines",get:function(){return this.chomping===J.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,r=e.end,n=this.context,o=n.indent,i=n.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[r-1];"\n"===s||"	"===s||" "===s;){if((r-=1)<=t){if(this.chomping!==J.KEEP)return"";break}"\n"===s&&(a=r),s=i[r-1]}var u=r+1;a&&(this.chomping===J.KEEP?(u=a,r=this.valueRange.end):r=a);for(var c=o+this.blockIndent,l=this.type===x.BLOCK_FOLDED,f=!0,p="",h="",d=!1,y=t;y<r;++y){for(var m=0;m<c&&" "===i[y];++m)y+=1;var g=i[y];if("\n"===g)"\n"===h?p+="\n":h="\n";else{var v=M.endOfLine(i,y),b=i.slice(y,v);y=v,l&&(" "===g||"	"===g)&&y<u?(" "===h?h="\n":d||f||"\n"!==h||(h="\n\n"),p+=h+b,h=v<r&&i[v]||"",d=!0):(p+=h+b,h=l&&y<u?" ":"\n",d=!1),f&&""!==b&&(f=!1)}}return this.chomping===J.STRIP?p:p+"\n"}},{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,r=e+1,n="";;){var o=t[r];switch(o){case"-":this.chomping=J.STRIP;break;case"+":this.chomping=J.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n+=o;break;default:return this.blockIndent=Number(n)||null,this.header=new L(e,r),r}r+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,n=t.src,o=!!this.blockIndent,i=e,a=e,s=1,u=n[i];"\n"===u&&(i+=1,!M.atDocumentBoundary(n,i));u=n[i]){var c=M.endOfBlockIndent(n,r,i);if(null===c)break;var l=n[c],f=c-(i+r);if(this.blockIndent){if(l&&"\n"!==l&&f<this.blockIndent){if("#"===n[c])break;if(!this.error){var p=o?"explicit indentation indicator":"first line",h="Block scalars must not be less indented than their ".concat(p);this.error=new I(this,h)}}}else"\n"!==n[c]?(f<s&&(this.error=new I(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")),this.blockIndent=f):f>s&&(s=f);i="\n"===n[c]?c:a=M.endOfLine(n,c)}return this.chomping!==J.KEEP&&(i=n[a]?a+1:a),this.valueRange=new L(e+1,i),i}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,n=this.parseBlockHeader(t);return n=M.endOfWhiteSpace(r,n),n=this.parseComment(n),n=this.parseBlockValue(n)}},{key:"setOrigRanges",value:function(e,t){return t=g(c(r.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),r}(M),Y=function(e){u(r,e);var t=m(r);function r(e,n){var i;return o(this,r),(i=t.call(this,e,n)).items=null,i}return a(r,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===x.COMMENT&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var r=e.parseNode,n=e.src,o=e.indent,i=e.lineStart,a=n[t];this.items=[{char:a,offset:t}];var s=M.endOfWhiteSpace(n,t+1);for(a=n[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":i=s+1;var u=M.endOfWhiteSpace(n,i);if("\n"===n[u]){var c=new F;i=c.parse({src:n},i),this.items.push(c)}(s=M.endOfIndent(n,i))<=i+o&&(a=n[s],(s<i+o||"]"!==a&&"}"!==a)&&(this.error=new I(this,"Insufficient indentation in flow collection")));break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var l=new W;s=l.parse({src:n},s),this.items.push(l);break;case"?":case":":var f=n[s+1];if("\n"===f||"	"===f||" "===f||","===f||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}default:var p=r({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:i,parent:this},s);if(!p)return this.valueRange=new L(t,s),s;this.items.push(p),s=M.normalizeOffset(n,p.range.end)}s=M.endOfWhiteSpace(n,s),a=n[s]}return this.valueRange=new L(t,s+1),a&&(this.items.push({char:a,offset:s}),s=M.endOfWhiteSpace(n,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,t){return t=g(c(r.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach(function(r){if(r instanceof M)t=r.setOrigRanges(e,t);else if(0===e.length)r.origOffset=r.offset;else{for(var n=t;n<e.length&&!(e[n]>r.offset);)++n;r.origOffset=r.offset+n,t=n}}),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,r=this.range,n=this.value;if(null!=n)return n;var o=t.filter(function(e){return e instanceof M}),i="",a=r.start;return o.forEach(function(t){var r=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=r+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,r.end),M.addStringTerminator(e,r.end,i)}}]),r}(M),Q=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,n=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[n-1]&&e.push(new B(this,'Missing closing "quote'));for(var s="",u=r+1;u<n-1;++u){var c=a[u];if("\n"===c){M.atDocumentBoundary(a,u+1)&&e.push(new I(this,"Document boundary indicators are not allowed within string values"));var l=M.foldNewline(a,u,i),f=l.fold,p=l.offset,h=l.error;s+=f,u=p,h&&e.push(new I(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===c)switch(a[u+=1]){case"0":s+="\0";break;case"a":s+="\x07";break;case"b":s+="\b";break;case"e":s+="\x1b";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"	":s+="	";break;case"v":s+="\v";break;case"N":s+="\x85";break;case"_":s+="\xa0";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(u+1,2,e),u+=2;break;case"u":s+=this.parseCharCode(u+1,4,e),u+=4;break;case"U":s+=this.parseCharCode(u+1,8,e),u+=8;break;case"\n":for(;" "===a[u+1]||"	"===a[u+1];)u+=1;break;default:e.push(new B(this,"Invalid escape sequence ".concat(a.substr(u-1,2)))),s+="\\"+a[u]}else if(" "===c||"	"===c){for(var d=u,y=a[u+1];" "===y||"	"===y;)u+=1,y=a[u+1];"\n"!==y&&(s+=u>d?a.slice(d,u+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}},{key:"parseCharCode",value:function(e,t,r){var n=this.context.src,o=n.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(r.push(new B(this,"Invalid escape sequence ".concat(n.substr(e-2,t+2)))),n.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,o=r.endOfQuote(n,t+1);return this.valueRange=new L(t,o),o=M.endOfWhiteSpace(n,o),o=this.parseComment(o)}}],[{key:"endOfQuote",value:function(e,t){for(var r=e[t];r&&'"'!==r;)t+="\\"===r?2:1,r=e[t];return t+1}}]),r}(M),X=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,n=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[n-1]&&e.push(new B(this,"Missing closing 'quote"));for(var s="",u=r+1;u<n-1;++u){var c=a[u];if("\n"===c){M.atDocumentBoundary(a,u+1)&&e.push(new I(this,"Document boundary indicators are not allowed within string values"));var l=M.foldNewline(a,u,i),f=l.fold,p=l.offset,h=l.error;s+=f,u=p,h&&e.push(new I(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===c)s+=c,"'"!==a[u+=1]&&e.push(new B(this,"Unescaped single quote? This should not happen."));else if(" "===c||"	"===c){for(var d=u,y=a[u+1];" "===y||"	"===y;)u+=1,y=a[u+1];"\n"!==y&&(s+=u>d?a.slice(d,u+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,o=r.endOfQuote(n,t+1);return this.valueRange=new L(t,o),o=M.endOfWhiteSpace(n,o),o=this.parseComment(o)}}],[{key:"endOfQuote",value:function(e,t){for(var r=e[t];r;)if("'"===r){if("'"!==e[t+1])break;r=e[t+=2]}else r=e[t+=1];return t+1}}]),r}(M),Z=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.atLineStart,a=n.inCollection,u=n.inFlow,c=n.indent,l=n.lineStart,f=n.parent;o(this,e),s(this,"parseNode",function(r,n){if(M.atDocumentBoundary(t.src,n))return null;var o=new e(t,r),i=o.parseProps(n),a=i.props,s=i.type,u=i.valueStart,c=function(e,t){switch(e){case x.ALIAS:return new K(e,t);case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return new z(e,t);case x.FLOW_MAP:case x.FLOW_SEQ:return new Y(e,t);case x.MAP_KEY:case x.MAP_VALUE:case x.SEQ_ITEM:return new q(e,t);case x.COMMENT:case x.PLAIN:return new D(e,t);case x.QUOTE_DOUBLE:return new Q(e,t);case x.QUOTE_SINGLE:return new X(e,t);default:return null}}(s,a),l=c.parse(o,u);if(c.range=new L(n,l),l<=n&&(c.error=Error("Node#parse consumed no characters"),c.error.parseEnd=l,c.error.source=c,c.range.end=n+1),o.nodeStartsCollection(c)){c.error||o.atLineStart||o.parent.type!==x.DOCUMENT||(c.error=new B(c,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var f=new G(c);return l=f.parse(new e(o),l),f.range=new L(n,l),f}return c}),this.atLineStart=null!=i?i:r.atLineStart||!1,this.inCollection=null!=a?a:r.inCollection||!1,this.inFlow=null!=u?u:r.inFlow||!1,this.indent=null!=c?c:r.indent,this.lineStart=null!=l?l:r.lineStart,this.parent=null!=f?f:r.parent||{},this.root=r.root,this.src=r.src}return a(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,r=this.inFlow,n=this.src;if(t||r)return!1;if(e instanceof q)return!0;var o=e.range.end;return"\n"!==n[o]&&"\n"!==n[o-1]&&(o=M.endOfWhiteSpace(n,o),":"===n[o])}},{key:"parseProps",value:function(t){var r=this.inFlow,n=this.parent,o=this.src,i=[],a=!1;t=this.atLineStart?M.endOfIndent(o,t):M.endOfWhiteSpace(o,t);for(var s=o[t];s===A.ANCHOR||s===A.COMMENT||s===A.TAG||"\n"===s;){if("\n"===s){var u=t,c=void 0;do c=u+1,u=M.endOfIndent(o,c);while("\n"===o[u]);var l=u-(c+this.indent),f=n.type===x.SEQ_ITEM&&n.context.atLineStart;if("#"!==o[u]&&!M.nextNodeIsIndented(o[u],l,!f))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=u}else if(s===A.COMMENT){var p=M.endOfLine(o,t+1);i.push(new L(t,p)),t=p}else{var h=M.endOfIdentifier(o,t+1);s===A.TAG&&","===o[h]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,h+13))&&(h=M.endOfIdentifier(o,h+5)),i.push(new L(t,h)),a=!0,t=M.endOfWhiteSpace(o,h)}s=o[t]}return a&&":"===s&&M.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,r),valueStart:t}}}],[{key:"parseType",value:function(e,t,r){switch(e[t]){case"*":return x.ALIAS;case">":return x.BLOCK_FOLDED;case"|":return x.BLOCK_LITERAL;case"{":return x.FLOW_MAP;case"[":return x.FLOW_SEQ;case"?":return!r&&M.atBlank(e,t+1,!0)?x.MAP_KEY:x.PLAIN;case":":return!r&&M.atBlank(e,t+1,!0)?x.MAP_VALUE:x.PLAIN;case"-":return!r&&M.atBlank(e,t+1,!0)?x.SEQ_ITEM:x.PLAIN;case'"':return x.QUOTE_DOUBLE;case"'":return x.QUOTE_SINGLE;default:return x.PLAIN}}}]),e}();function ee(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,r){return e.length>1&&t.push(r),"\n"}));var r=[],n=0;do{var o=new V,i=new Z({src:e});n=o.parse(i,n),r.push(o)}while(n<e.length);return r.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var n=0,o=0;o<r.length;++o)n=r[o].setOrigRanges(t,n);return t.splice(0,t.length),!0},r.toString=function(){return r.join("...\n")},r}function et(e,t,r){return r?-1===r.indexOf("\n")?"".concat(e," #").concat(r):"".concat(e,"\n")+r.replace(/^/gm,"".concat(t||"","#")):e}var er=function e(){o(this,e)};function en(e,t,r){if(Array.isArray(e))return e.map(function(e,t){return en(e,String(t),r)});if(e&&"function"==typeof e.toJSON){var n=r&&r.anchors&&r.anchors.get(e);n&&(r.onCreate=function(e){n.res=e,delete r.onCreate});var o=e.toJSON(t,r);return n&&r.onCreate&&r.onCreate(o),o}return r&&r.keep||"bigint"!=typeof e?e:Number(e)}var eo=function(e){u(r,e);var t=m(r);function r(e){var n;return o(this,r),(n=t.call(this)).value=e,n}return a(r,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:en(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),r}(er);function ei(e,t,r){for(var n=r,o=t.length-1;o>=0;--o){var i=t[o];if(Number.isInteger(i)&&i>=0){var a=[];a[i]=n,n=a}else{var s={};Object.defineProperty(s,i,{value:n,writable:!0,enumerable:!0,configurable:!0}),n=s}}return e.createNode(n,!1)}var ea=function(e){return null==e||"object"===n(e)&&e[Symbol.iterator]().next().done},es=function(e){u(r,e);var t=m(r);function r(e){var n;return o(this,r),s(d(n=t.call(this)),"items",[]),n.schema=e,n}return a(r,[{key:"addIn",value:function(e,t){if(ea(e))this.add(t);else{var n=b(e),o=n[0],i=n.slice(1),a=this.get(o,!0);if(a instanceof r)a.addIn(i,t);else if(void 0===a&&this.schema)this.set(o,ei(this.schema,i,t));else throw Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i))}}},{key:"deleteIn",value:function(e){var t=b(e),n=t[0],o=t.slice(1);if(0===o.length)return this.delete(n);var i=this.get(n,!0);if(i instanceof r)return i.deleteIn(o);throw Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(o))}},{key:"getIn",value:function(e,t){var n=b(e),o=n[0],i=n.slice(1),a=this.get(o,!0);return 0===i.length?!t&&a instanceof eo?a.value:a:a instanceof r?a.getIn(i,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof eo&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}},{key:"hasIn",value:function(e){var t=b(e),n=t[0],o=t.slice(1);if(0===o.length)return this.has(n);var i=this.get(n,!0);return i instanceof r&&i.hasIn(o)}},{key:"setIn",value:function(e,t){var n=b(e),o=n[0],i=n.slice(1);if(0===i.length)this.set(o,t);else{var a=this.get(o,!0);if(a instanceof r)a.setIn(i,t);else if(void 0===a&&this.schema)this.set(o,ei(this.schema,i,t));else throw Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,n,o){var i=this,a=t.blockItem,s=t.flowChars,u=t.isMap,c=t.itemIndent,l=e,f=l.indent,p=l.indentStep,h=l.stringify,d=this.type===x.FLOW_MAP||this.type===x.FLOW_SEQ||e.inFlow;d&&(c+=p);var y=u&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:y,indent:c,inFlow:d,type:null});var m=!1,g=!1,v=this.items.reduce(function(t,r,n){r&&(!m&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach(function(e){t.push({type:"comment",str:"#".concat(e)})}),r.comment&&(o=r.comment),d&&(!m&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(g=!0)),m=!1;var o,a=h(r,e,function(){return o=null},function(){return m=!0});return d&&!g&&a.includes("\n")&&(g=!0),d&&n<i.items.length-1&&(a+=","),a=et(a,c,o),m&&(o||d)&&(m=!1),t.push({type:"item",str:a}),t},[]);if(0===v.length)E=s.start+s.end;else if(d){var b=s.start,w=s.end,S=v.map(function(e){return e.str});if(g||S.reduce(function(e,t){return e+t.length+2},2)>r.maxFlowStringSingleLineLength){E=b;var E,O,A=_(S);try{for(A.s();!(O=A.n()).done;){var k=O.value;E+=k?"\n".concat(p).concat(f).concat(k):"\n"}}catch(e){A.e(e)}finally{A.f()}E+="\n".concat(f).concat(w)}else E="".concat(b," ").concat(S.join(" ")," ").concat(w)}else{var R=v.map(a);E=R.shift();var P,T=_(R);try{for(T.s();!(P=T.n()).done;){var j=P.value;E+=j?"\n".concat(f).concat(j):"\n"}}catch(e){T.e(e)}finally{T.f()}}return this.comment?(E+="\n"+this.comment.replace(/^/gm,"".concat(f,"#")),n&&n()):m&&o&&o(),E}}]),r}(er);function eu(e){var t=e instanceof eo?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}s(es,"maxFlowStringSingleLineLength",60);var ec=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=eu(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var r=eu(e);if("number"==typeof r){var n=this.items[r];return!t&&n instanceof eo?n.value:n}}},{key:"has",value:function(e){var t=eu(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var r=eu(e);if("number"!=typeof r)throw Error("Expected a valid index, not ".concat(e,"."));this.items[r]=t}},{key:"toJSON",value:function(e,t){var r=[];t&&t.onCreate&&t.onCreate(r);var n,o=0,i=_(this.items);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(en(a,String(o++),t))}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toString",value:function(e,t,n){return e?g(c(r.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+"  "},t,n):JSON.stringify(this)}}]),r}(es),el=function(e){u(r,e);var t=m(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(this,r),(n=t.call(this)).key=e,n.value=i,n.type=r.Type.PAIR,n}return a(r,[{key:"commentBefore",get:function(){return this.key instanceof er?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new eo(null)),this.key instanceof er)this.key.commentBefore=e;else throw Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}},{key:"addToJSMap",value:function(e,t){var r=en(this.key,"",e);if(t instanceof Map){var o=en(this.value,r,e);t.set(r,o)}else if(t instanceof Set)t.add(r);else{var i,a=(i=this.key,null===r?"":"object"!==n(r)?String(r):i instanceof er&&e&&e.doc?i.toString({anchors:Object.create(null),doc:e.doc,indent:"",indentStep:e.indentStep,inFlow:!0,inStringifyKey:!0,stringify:e.stringify}):JSON.stringify(r)),s=en(this.value,a,e);a in t?Object.defineProperty(t,a,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[a]=s}return t}},{key:"toJSON",value:function(e,t){var r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}},{key:"toString",value:function(e,t,r){if(!e||!e.doc)return JSON.stringify(this);var o=e.doc.options,i=o.indent,a=o.indentSeq,s=o.simpleKeys,u=this.key,c=this.value,l=u instanceof er&&u.comment;if(s){if(l)throw Error("With simple keys, key nodes cannot have comments");if(u instanceof es)throw Error("With simple keys, collection cannot be used as a key value")}var f=!s&&(!u||l||(u instanceof er?u instanceof es||u.type===x.BLOCK_FOLDED||u.type===x.BLOCK_LITERAL:"object"===n(u))),p=e,h=p.doc,d=p.indent,y=p.indentStep,m=p.stringify;e=Object.assign({},e,{implicitKey:!f,indent:d+y});var g=!1,v=m(u,e,function(){return l=null},function(){return g=!0});if(v=et(v,e.indent,l),!f&&v.length>1024){if(s)throw Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!s)return this.comment?(v=et(v,e.indent,this.comment),t&&t()):g&&!l&&r&&r(),e.inFlow&&!f?v:"? ".concat(v);v=f?"? ".concat(v,"\n").concat(d,":"):"".concat(v,":"),this.comment&&(v=et(v,e.indent,this.comment),t&&t());var b="",w=null;if(c instanceof er){if(c.spaceBefore&&(b="\n"),c.commentBefore){var S=c.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));b+="\n".concat(S)}w=c.comment}else c&&"object"===n(c)&&(c=h.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof eo&&(e.indentAtStart=v.length+1),g=!1,a||!(i>=2)||e.inFlow||f||!(c instanceof ec)||c.type===x.FLOW_SEQ||c.tag||h.anchors.getName(c)||(e.indent=e.indent.substr(2));var E=m(c,e,function(){return w=null},function(){return g=!0}),O=" ";return b||this.comment?O="".concat(b,"\n").concat(e.indent):!f&&c instanceof es?(!("["===E[0]||"{"===E[0])||E.includes("\n"))&&(O="\n".concat(e.indent)):"\n"===E[0]&&(O=""),g&&!w&&r&&r(),et(v+O+E,e.indent,w)}}]),r}(er);s(el,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var ef=function e(t,r){if(t instanceof ep){var n=r.get(t.source);return n.count*n.aliasCount}if(t instanceof es){var o,i=0,a=_(t.items);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=e(s,r);u>i&&(i=u)}}catch(e){a.e(e)}finally{a.f()}return i}return t instanceof el?Math.max(e(t.key,r),e(t.value,r)):1},ep=function(e){u(r,e);var t=m(r);function r(e){var n;return o(this,r),(n=t.call(this)).source=e,n.type=x.ALIAS,n}return a(r,[{key:"tag",set:function(e){throw Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(e,t){if(!t)return en(this.source,e,t);var r=t.anchors,n=t.maxAliasCount,o=r.get(this.source);if(!o||void 0===o.res){var i="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new C(this.cstNode,i);throw ReferenceError(i)}if(n>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=ef(this.source,r)),o.count*o.aliasCount>n)){var a="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new C(this.cstNode,a);throw ReferenceError(a)}return o.res}},{key:"toString",value:function(e){return r.stringify(this,e)}}],[{key:"stringify",value:function(e,t){var r=e.range,n=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(o).find(function(e){return o[e]===n});if(!u&&s&&(u=i.anchors.getName(n)||i.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var c=i.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw Error("".concat(c," [").concat(r,"]"))}}]),r}(er);function eh(e,t){var r,n=t instanceof eo?t.value:t,o=_(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i instanceof el&&(i.key===t||i.key===n||i.key&&i.key.value===n))return i}}catch(e){o.e(e)}finally{o.f()}}s(ep,"default",!0);var ed=function(e){u(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"add",value:function(e,t){e?e instanceof el||(e=new el(e.key||e,e.value)):e=new el(e);var r=eh(this.items,e.key),n=this.schema&&this.schema.sortMapEntries;if(r){if(t)r.value=e.value;else throw Error("Key ".concat(e.key," already set"))}else if(n){var o=this.items.findIndex(function(t){return 0>n(e,t)});-1===o?this.items.push(e):this.items.splice(o,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=eh(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var r=eh(this.items,e),n=r&&r.value;return!t&&n instanceof eo?n.value:n}},{key:"has",value:function(e){return!!eh(this.items,e)}},{key:"set",value:function(e,t){this.add(new el(e,t),!0)}},{key:"toJSON",value:function(e,t,r){var n=r?new r:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(n);var o,i=_(this.items);try{for(i.s();!(o=i.n()).done;)o.value.addToJSMap(t,n)}catch(e){i.e(e)}finally{i.f()}return n}},{key:"toString",value:function(e,t,n){if(!e)return JSON.stringify(this);var o,i=_(this.items);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(!(a instanceof el))throw Error("Map items must all be pairs; found ".concat(JSON.stringify(a)," instead"))}}catch(e){i.e(e)}finally{i.f()}return g(c(r.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}]),r}(es),ey=function(e){u(r,e);var t=m(r);function r(e){var n;if(o(this,r),e instanceof el){var i=e.value;i instanceof ec||((i=new ec).items.push(e.value),i.range=e.value.range),(n=t.call(this,e.key,i)).range=e.range}else n=t.call(this,new eo("<<"),new ec);return n.type=el.Type.MERGE_PAIR,y(n)}return a(r,[{key:"addToJSMap",value:function(e,t){var r,n=_(this.value.items);try{for(n.s();!(r=n.n()).done;){var o=r.value.source;if(!(o instanceof ed))throw Error("Merge sources must be maps");var i,a=o.toJSON(null,e,Map),s=_(a);try{for(s.s();!(i=s.n()).done;){var u=v(i.value,2),c=u[0],l=u[1];t instanceof Map?t.has(c)||t.set(c,l):t instanceof Set?t.add(c):Object.prototype.hasOwnProperty.call(t,c)||Object.defineProperty(t,c,{value:l,writable:!0,enumerable:!0,configurable:!0})}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"toString",value:function(e,t){var n=this.value;if(n.items.length>1)return g(c(r.prototype),"toString",this).call(this,e,t);this.value=n.items[0];var o=g(c(r.prototype),"toString",this).call(this,e,t);return this.value=n,o}}]),r}(el),em={defaultType:x.BLOCK_LITERAL,lineWidth:76},eg={trueStr:"true",falseStr:"false"},ev={asBigInt:!1},eb={nullStr:"null"},ew={defaultType:x.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function eS(e,t,r){var n,o=_(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.format,s=i.test,u=i.resolve;if(s){var c=e.match(s);if(c){var l=u.apply(null,c);return l instanceof eo||(l=new eo(l)),a&&(l.format=a),l}}}}catch(e){o.e(e)}finally{o.f()}return r&&(e=r(e)),new eo(e)}var eE="flow",eO="block",e_="quoted",eA=function(e,t){for(var r=e[t+1];" "===r||"	"===r;){do r=e[t+=1];while(r&&"\n"!==r);r=e[t+1]}return t};function ex(e,t,r,n){var o,i=n.indentAtStart,a=n.lineWidth,s=void 0===a?80:a,u=n.minContentWidth,c=void 0===u?20:u,l=n.onFold,f=n.onOverflow;if(!s||s<0)return e;var p=Math.max(1+c,1+s-t.length);if(e.length<=p)return e;var h=[],d={},y=s-t.length;"number"==typeof i&&(i>s-Math.max(2,c)?h.push(0):y=s-i);var m=void 0,g=void 0,v=!1,b=-1,w=-1,S=-1;for(r===eO&&-1!==(b=eA(e,b))&&(y=b+p);o=e[b+=1];){if(r===e_&&"\\"===o){switch(w=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}S=b}if("\n"===o)r===eO&&(b=eA(e,b)),y=b+p,m=void 0;else{if(" "===o&&g&&" "!==g&&"\n"!==g&&"	"!==g){var E=e[b+1];E&&" "!==E&&"\n"!==E&&"	"!==E&&(m=b)}if(b>=y){if(m)h.push(m),y=m+p,m=void 0;else if(r===e_){for(;" "===g||"	"===g;)g=o,o=e[b+=1],v=!0;var O=b>S+1?b-2:w-1;if(d[O])return e;h.push(O),d[O]=!0,y=O+p,m=void 0}else v=!0}}g=o}if(v&&f&&f(),0===h.length)return e;l&&l();for(var _=e.slice(0,h[0]),A=0;A<h.length;++A){var x=h[A],k=h[A+1]||e.length;0===x?_="\n".concat(t).concat(e.slice(0,k)):(r===e_&&d[x]&&(_+="".concat(e[x],"\\")),_+="\n".concat(t).concat(e.slice(x+1,k)))}return _}var ek=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},ew.fold):ew.fold},eR=function(e){return/^(%|---|\.\.\.)/m.test(e)};function eP(e,t){var r=t.implicitKey,n=ew.doubleQuoted,o=n.jsonEncoding,i=n.minMultiLineLength,a=JSON.stringify(e);if(o)return a;for(var s=t.indent||(eR(e)?"  ":""),u="",c=0,l=0,f=a[l];f;f=a[++l])if(" "===f&&"\\"===a[l+1]&&"n"===a[l+2]&&(u+=a.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),"\\"===f)switch(a[l+1]){case"u":u+=a.slice(c,l);var p=a.substr(l+2,4);switch(p){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===p.substr(0,2)?u+="\\x"+p.substr(2):u+=a.substr(l,6)}l+=5,c=l+1;break;case"n":if(r||'"'===a[l+2]||a.length<i)l+=1;else{for(u+=a.slice(c,l)+"\n\n";"\\"===a[l+2]&&"n"===a[l+3]&&'"'!==a[l+4];)u+="\n",l+=2;u+=s," "===a[l+2]&&(u+="\\"),l+=1,c=l+1}break;default:l+=1}return u=c?u+a.slice(c):a,r?u:ex(u,s,e_,ek(t))}function eT(e,t){if(t.implicitKey){if(/\n/.test(e))return eP(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return eP(e,t);var r=t.indent||(eR(e)?"  ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(r))+"'";return t.implicitKey?n:ex(n,r,eE,ek(t))}function ej(e,t,r,n){var o=e.comment,i=e.type,a=e.value;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return eP(a,t);var s=t.indent||(t.forceBlockIndent||eR(a)?"  ":""),u=s?"2":"1",c=i!==x.BLOCK_FOLDED&&(i===x.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;var n=t-r,o=e.length;if(o<=n)return!1;for(var i=0,a=0;i<o;++i)if("\n"===e[i]){if(i-a>n)return!0;if(o-(a=i+1)<=n)return!1}return!0}(a,ew.fold.lineWidth,s.length)),l=c?"|":">";if(!a)return l+"\n";var f="",p="";if(a=a.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return -1===t?l+="-":(a===e||t!==e.length-1)&&(l+="+",n&&n()),p=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(l+=u);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(s))),f&&(f=f.replace(/\n+/g,"$&".concat(s))),o&&(l+=" #"+o.replace(/ ?[\r\n]+/g," "),r&&r()),!a)return"".concat(l).concat(u,"\n").concat(s).concat(p);if(c)return a=a.replace(/\n+/g,"$&".concat(s)),"".concat(l,"\n").concat(s).concat(f).concat(a).concat(p);a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(s));var h=ex("".concat(f).concat(a).concat(p),s,eO,ew.fold);return"".concat(l,"\n").concat(s).concat(h)}function eL(e,t,r,n){var o=ew.defaultType,i=t.implicitKey,a=t.inFlow,s=e,u=s.type,c=s.value;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));var l=function(o){switch(o){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return ej(e,t,r,n);case x.QUOTE_DOUBLE:return eP(c,t);case x.QUOTE_SINGLE:return eT(c,t);case x.PLAIN:return function(e,t,r,n){var o=e.comment,i=e.type,a=e.value,s=t.actualString,u=t.implicitKey,c=t.indent,l=t.inFlow;if(u&&/[\n[\]{},]/.test(a)||l&&/[[\]{},]/.test(a))return eP(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return u||l||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?eT(a,t):eP(a,t):ej(e,t,r,n);if(!u&&!l&&i!==x.PLAIN&&-1!==a.indexOf("\n"))return ej(e,t,r,n);if(""===c&&eR(a))return t.forceBlockIndent=!0,ej(e,t,r,n);var f=a.replace(/\n+/g,"$&\n".concat(c));if(s){var p=t.doc.schema.tags;if("string"!=typeof eS(f,p,p.scalarFallback).value)return eP(a,t)}var h=u?f:ex(f,c,eE,ek(t));return o&&!l&&(-1!==h.indexOf("\n")||-1!==o.indexOf("\n"))?(r&&r(),function(e,t,r){if(!r)return e;var n=r.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(n,"\n").concat(t).concat(e)}(h,c,o)):h}(e,t,r,n);default:return null}};u!==x.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)?u=x.QUOTE_DOUBLE:(i||a)&&(u===x.BLOCK_FOLDED||u===x.BLOCK_LITERAL)&&(u=x.QUOTE_DOUBLE);var f=l(u);if(null===f&&null===(f=l(o)))throw Error("Unsupported default string type ".concat(o));return f}function eM(e){var t=e.format,r=e.minFractionDigits,n=e.tag,o=e.value;if("bigint"==typeof o)return String(o);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";var i=JSON.stringify(o);if(!t&&r&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){var a=i.indexOf(".");a<0&&(a=i.length,i+=".");for(var s=r-(i.length-a-1);s-- >0;)i+="0"}return i}function eN(e,t){switch(t.type){case x.FLOW_MAP:o="}",i="flow map";break;case x.FLOW_SEQ:o="]",i="flow sequence";break;default:e.push(new I(t,"Not a flow collection!?"));return}for(var r=t.items.length-1;r>=0;--r){var n=t.items[r];if(!n||n.type!==x.COMMENT){a=n;break}}if(a&&a.char!==o){var o,i,a,s,u="Expected ".concat(i," to end with ").concat(o);"number"==typeof a.offset?(s=new I(t,u)).offset=a.offset+1:(s=new I(a,u),a.range&&a.range.end&&(s.offset=a.range.end-a.range.start)),e.push(s)}}function eC(e,t){var r=t.context.src[t.range.start-1];"\n"!==r&&"	"!==r&&" "!==r&&e.push(new I(t,"Comments must be separated from other tokens by white space characters"))}function eI(e,t){var r=String(t),n=r.substr(0,8)+"..."+r.substr(-8);return new I(e,'The "'.concat(n,'" key is too long'))}function eB(e,t){var r,n=_(t);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=o.afterKey,a=o.before,s=o.comment,u=e.items[a];u?(i&&u.value&&(u=u.value),void 0===s?(i||!u.commentBefore)&&(u.spaceBefore=!0):u.commentBefore?u.commentBefore+="\n"+s:u.commentBefore=s):void 0!==s&&(e.comment?e.comment+="\n"+s:e.comment=s)}}catch(e){n.e(e)}finally{n.f()}}function eU(e,t){var r=t.strValue;return r?"string"==typeof r?r:(r.errors.forEach(function(r){r.source||(r.source=t),e.errors.push(r)}),r.str):""}function eD(e,t,r){var n,o=e.schema.tags,i=[],a=_(o);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.tag===r){if(s.test)i.push(s);else{var u=s.resolve(e,t);return u instanceof es?u:new eo(u)}}}}catch(e){a.e(e)}finally{a.f()}var c=eU(e,t);return"string"==typeof c&&i.length>0?eS(c,i,o.scalarFallback):null}var eF=function(e){if(!e)return!1;var t=e.type;return t===x.MAP_KEY||t===x.MAP_VALUE||t===x.SEQ_ITEM};function eq(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var r=function(e,t){var r,n={before:[],after:[]},o=!1,i=!1,a=_(eF(t.context.parent)?t.context.parent.props.concat(t.props):t.props);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=s.start,c=s.end;switch(t.context.src[u]){case A.COMMENT:t.commentHasRequiredWhitespace(u)||e.push(new I(t,"Comments must be separated from other tokens by white space characters"));var l=t.header,f=t.valueRange;(f&&(u>f.start||l&&u>l.start)?n.after:n.before).push(t.context.src.slice(u+1,c));break;case A.ANCHOR:o&&e.push(new I(t,"A node can have at most one anchor")),o=!0;break;case A.TAG:i&&e.push(new I(t,"A node can have at most one tag")),i=!0}}}catch(e){a.e(e)}finally{a.f()}return{comments:n,hasAnchor:o,hasTag:i}}(e.errors,t),n=r.comments,o=r.hasAnchor,i=r.hasTag;if(o){var a=e.anchors,s=t.anchor,u=a.getNode(s);u&&(a.map[a.newName(s)]=u),a.map[s]=t}t.type===x.ALIAS&&(o||i)&&e.errors.push(new I(t,"An alias node must not specify any properties"));var c=function(e,t){var r=e.anchors,n=e.errors,o=e.schema;if(t.type===x.ALIAS){var i=t.rawValue,a=r.getNode(i);if(!a){var s="Aliased anchor not found: ".concat(i);return n.push(new C(t,s)),null}var u=new ep(a);return r._cstAliases.push(u),u}var c=function(e,t){var r=t.tag,n=t.type,o=!1;if(r){var i=r.handle,a=r.suffix,s=r.verbatim;if(s){if("!"!==s&&"!!"!==s)return s;e.errors.push(new I(t,"Verbatim tags aren't resolved, so ".concat(s," is invalid.")))}else if("!"!==i||a)try{return function(e,t){var r=t.tag,n=r.handle,o=r.suffix,i=e.tagPrefixes.find(function(e){return e.handle===n});if(!i){var a=e.getDefaults().tagPrefixes;if(a&&(i=a.find(function(e){return e.handle===n})),!i)throw new I(t,"The ".concat(n," tag handle is non-default and was not declared."))}if(!o)throw new I(t,"The ".concat(n," tag has no suffix."));if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===o[0])return e.warnings.push(new U(t,"YAML 1.0 ^ tag expansion is not supported")),o;if(/[:/]/.test(o)){var s=o.match(/^([a-z0-9-]+)\/(.*)/i);return s?"tag:".concat(s[1],".yaml.org,2002:").concat(s[2]):"tag:".concat(o)}}return i.prefix+decodeURIComponent(o)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(n){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:case x.QUOTE_DOUBLE:case x.QUOTE_SINGLE:return R.STR;case x.FLOW_MAP:case x.MAP:return R.MAP;case x.FLOW_SEQ:case x.SEQ:return R.SEQ;case x.PLAIN:return o?R.STR:null;default:return null}}(e,t);if(c)return function(e,t,r){try{var n=eD(e,t,r);if(n)return r&&t.tag&&(n.tag=r),n}catch(r){return r.source||(r.source=t),e.errors.push(r),null}try{var o=function(e){switch(e.type){case x.FLOW_MAP:case x.MAP:return R.MAP;case x.FLOW_SEQ:case x.SEQ:return R.SEQ;default:return R.STR}}(t);if(!o)throw Error("The tag ".concat(r," is unavailable"));var i="The tag ".concat(r," is unavailable, falling back to ").concat(o);e.warnings.push(new U(t,i));var a=eD(e,t,o);return a.tag=r,a}catch(r){var s=new C(t,r.message);return s.stack=r.stack,e.errors.push(s),null}}(e,t,c);if(t.type!==x.PLAIN){var l="Failed to resolve ".concat(t.type," node here");return n.push(new B(t,l)),null}try{var f=eU(e,t);return eS(f,o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),n.push(e),null}}(e,t);if(c){c.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(c.cstNode=t),e.options.keepNodeTypes&&(c.type=t.type);var l=n.before.join("\n");l&&(c.commentBefore=c.commentBefore?"".concat(c.commentBefore,"\n").concat(l):l);var f=n.after.join("\n");f&&(c.comment=c.comment?"".concat(c.comment,"\n").concat(f):f)}return t.resolved=c}function eW(e,t){if(t.type!==x.MAP&&t.type!==x.FLOW_MAP){var r="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new B(t,r)),null}var n=t.type===x.FLOW_MAP?function(e,t){for(var r=[],n=[],o=void 0,i=!1,a="{",s=0;s<t.items.length;++s){var u=t.items[s];if("string"==typeof u.char){var c=u.char,l=u.offset;if("?"===c&&void 0===o&&!i){i=!0,a=":";continue}if(":"===c){if(void 0===o&&(o=null),":"===a){a=",";continue}}else if(i&&(void 0===o&&","!==c&&(o=null),i=!1),void 0!==o&&(n.push(new el(o)),o=void 0,","===c)){a=":";continue}if("}"===c){if(s===t.items.length-1)continue}else if(c===a){a=":";continue}var f=new B(t,"Flow map contains an unexpected ".concat(c));f.offset=l,e.errors.push(f)}else u.type===x.BLANK_LINE?r.push({afterKey:!!o,before:n.length}):u.type===x.COMMENT?(eC(e.errors,u),r.push({afterKey:!!o,before:n.length,comment:u.comment})):void 0===o?(","===a&&e.errors.push(new I(u,"Separator , missing in flow map")),o=eq(e,u)):(","!==a&&e.errors.push(new I(u,"Indicator : missing in flow map entry")),n.push(new el(o,eq(e,u))),o=void 0,i=!1)}return eN(e.errors,t),void 0!==o&&n.push(new el(o)),{comments:r,items:n}}(e,t):function(e,t){for(var r=[],n=[],o=void 0,i=null,a=0;a<t.items.length;++a){var s=t.items[a];switch(s.type){case x.BLANK_LINE:r.push({afterKey:!!o,before:n.length});break;case x.COMMENT:r.push({afterKey:!!o,before:n.length,comment:s.comment});break;case x.MAP_KEY:void 0!==o&&n.push(new el(o)),s.error&&e.errors.push(s.error),o=eq(e,s.node),i=null;break;case x.MAP_VALUE:void 0===o&&(o=null),s.error&&e.errors.push(s.error),s.context.atLineStart||!s.node||s.node.type!==x.MAP||s.node.context.atLineStart||e.errors.push(new I(s.node,"Nested mappings are not allowed in compact mappings"));var u=s.node;if(!u&&s.props.length>0){(u=new D(x.PLAIN,[])).context={parent:s,src:s.context.src};var c=s.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},"number"==typeof s.range.origStart){var l=s.range.origStart+1;u.range.origStart=u.range.origEnd=l,u.valueRange.origStart=u.valueRange.origEnd=l}}var f=new el(o,eq(e,u));!function(e,t){if(e$(e)){var r=e.getPropValue(0,A.COMMENT,!0),n=!1,o=t.value.commentBefore;if(o&&o.startsWith(r))t.value.commentBefore=o.substr(r.length+1),n=!0;else{var i=t.value.comment;!e.node&&i&&i.startsWith(r)&&(t.value.comment=i.substr(r.length+1),n=!0)}n&&(t.comment=r)}}(s,f),n.push(f),o&&"number"==typeof i&&s.range.start>i+1024&&e.errors.push(eI(t,o)),o=void 0,i=null;break;default:void 0!==o&&n.push(new el(o)),o=eq(e,s),i=s.range.start,s.error&&e.errors.push(s.error);e:for(var p=a+1;;++p){var h=t.items[p];switch(h&&h.type){case x.BLANK_LINE:case x.COMMENT:continue;case x.MAP_VALUE:break e;default:e.errors.push(new I(s,"Implicit map keys need to be followed by map values"));break e}}s.valueRangeContainsNewline&&e.errors.push(new I(s,"Implicit map keys need to be on a single line"))}}return void 0!==o&&n.push(new el(o)),{comments:r,items:n}}(e,t),o=n.comments,i=n.items,a=new ed;a.items=i,eB(a,o);for(var s=!1,u=0;u<i.length;++u){var c=i[u].key;if(c instanceof es&&(s=!0),e.schema.merge&&c&&"<<"===c.value){i[u]=new ey(i[u]);var l=i[u].value.items,f=null;l.some(function(e){if(e instanceof ep){var t=e.source.type;return t!==x.MAP&&t!==x.FLOW_MAP&&(f="Merge nodes aliases can only point to maps")}return f="Merge nodes can only have Alias nodes as values"}),f&&e.errors.push(new I(t,f))}else for(var p=u+1;p<i.length;++p){var h=i[p].key;if(c===h||c&&h&&Object.prototype.hasOwnProperty.call(c,"value")&&c.value===h.value){var d='Map keys must be unique; "'.concat(c,'" is repeated');e.errors.push(new I(t,d));break}}}return s&&!e.options.mapAsMap&&e.warnings.push(new U(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}var e$=function(e){var t=e.context,r=t.lineStart,n=t.node,o=t.src,i=e.props;if(0===i.length)return!1;var a=i[0].start;if(n&&a>n.valueRange.start||o[a]!==A.COMMENT)return!1;for(var s=r;s<a;++s)if("\n"===o[s])return!1;return!0};function eG(e,t){if(t.type!==x.SEQ&&t.type!==x.FLOW_SEQ){var r="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new B(t,r)),null}var n=t.type===x.FLOW_SEQ?function(e,t){for(var r=[],n=[],o=!1,i=void 0,a=null,s="[",u=null,c=0;c<t.items.length;++c){var l=t.items[c];if("string"==typeof l.char){var f=l.char,p=l.offset;if(":"!==f&&(o||void 0!==i)&&(o&&void 0===i&&(i=s?n.pop():null),n.push(new el(i)),o=!1,i=void 0,a=null),f===s)s=null;else if(s||"?"!==f){if("["!==s&&":"===f&&void 0===i){if(","===s){if((i=n.pop())instanceof el){var h=new I(t,"Chaining flow sequence pairs is invalid");h.offset=p,e.errors.push(h)}if(!o&&"number"==typeof a){var d=l.range?l.range.start:l.offset;d>a+1024&&e.errors.push(eI(t,i));for(var y=u.context.src,m=a;m<d;++m)if("\n"===y[m]){e.errors.push(new I(u,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else i=null;a=null,o=!1,s=null}else if("["===s||"]"!==f||c<t.items.length-1){var g=new B(t,"Flow sequence contains an unexpected ".concat(f));g.offset=p,e.errors.push(g)}}else o=!0}else if(l.type===x.BLANK_LINE)r.push({before:n.length});else if(l.type===x.COMMENT)eC(e.errors,l),r.push({comment:l.comment,before:n.length});else{if(s){var v="Expected a ".concat(s," in flow sequence");e.errors.push(new I(l,v))}var b=eq(e,l);void 0===i?(n.push(b),u=l):(n.push(new el(i,b)),i=void 0),a=l.range.start,s=","}}return eN(e.errors,t),void 0!==i&&n.push(new el(i)),{comments:r,items:n}}(e,t):function(e,t){for(var r=[],n=[],o=0;o<t.items.length;++o){var i=t.items[o];switch(i.type){case x.BLANK_LINE:r.push({before:n.length});break;case x.COMMENT:r.push({comment:i.comment,before:n.length});break;case x.SEQ_ITEM:i.error&&e.errors.push(i.error),n.push(eq(e,i.node)),i.hasProps&&e.errors.push(new I(i,"Sequence items cannot have tags or anchors before the - indicator"));break;default:i.error&&e.errors.push(i.error),e.errors.push(new B(i,"Unexpected ".concat(i.type," node in sequence")))}}return{comments:r,items:n}}(e,t),o=n.comments,i=n.items,a=new ec;return a.items=i,eB(a,o),!e.options.mapAsMap&&i.some(function(e){return e instanceof el&&e.key instanceof es})&&e.warnings.push(new U(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}var eH=r(87376).Buffer,eV=r(74859),eK={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var r=eU(e,t);if("function"==typeof eH)return eH.from(r,"base64");if("function"!=typeof atob)return e.errors.push(new C(t,"This environment does not support reading binary tags; either Buffer or atob is required")),null;for(var n=atob(r.replace(/[\n\r]/g,"")),o=new Uint8Array(n.length),i=0;i<n.length;++i)o[i]=n.charCodeAt(i);return o},options:em,stringify:function(e,t,r,n){var o,i=e.comment,a=e.type,s=e.value;if("function"==typeof eH)o=s instanceof eH?s.toString("base64"):eH.from(s.buffer).toString("base64");else if("function"==typeof btoa){for(var u="",c=0;c<s.length;++c)u+=String.fromCharCode(s[c]);o=btoa(u)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(a||(a=em.defaultType),a===x.QUOTE_DOUBLE)s=o;else{for(var l=em.lineWidth,f=Math.ceil(o.length/l),p=Array(f),h=0,d=0;h<f;++h,d+=l)p[h]=o.substr(d,l);s=p.join(a===x.BLOCK_LITERAL?"\n":" ")}return eL({comment:i,type:a,value:s},t,r,n)}};function eJ(e,t){for(var r=eG(e,t),n=0;n<r.items.length;++n){var o=r.items[n];if(!(o instanceof el)){if(o instanceof ed){if(o.items.length>1)throw new I(t,"Each pair must have its own sequence indicator");var i=o.items[0]||new el;o.commentBefore&&(i.commentBefore=i.commentBefore?"".concat(o.commentBefore,"\n").concat(i.commentBefore):o.commentBefore),o.comment&&(i.comment=i.comment?"".concat(o.comment,"\n").concat(i.comment):o.comment),o=i}r.items[n]=o instanceof el?o:new el(o)}}return r}function ez(e,t,r){var n=new ec(e);n.tag="tag:yaml.org,2002:pairs";var o,i=_(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=void 0,u=void 0;if(Array.isArray(a)){if(2===a.length)s=a[0],u=a[1];else throw TypeError("Expected [key, value] tuple: ".concat(a))}else if(a&&a instanceof Object){var c=Object.keys(a);if(1===c.length)u=a[s=c[0]];else throw TypeError("Expected { key: value } tuple: ".concat(a))}else s=a;var l=e.createPair(s,u,r);n.items.push(l)}}catch(e){i.e(e)}finally{i.f()}return n}var eY={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eJ,createNode:ez},eQ=function(e){u(r,e);var t=m(r);function r(){var e;return o(this,r),s(d(e=t.call(this)),"add",ed.prototype.add.bind(d(e))),s(d(e),"delete",ed.prototype.delete.bind(d(e))),s(d(e),"get",ed.prototype.get.bind(d(e))),s(d(e),"has",ed.prototype.has.bind(d(e))),s(d(e),"set",ed.prototype.set.bind(d(e))),e.tag=r.tag,e}return a(r,[{key:"toJSON",value:function(e,t){var r=new Map;t&&t.onCreate&&t.onCreate(r);var n,o=_(this.items);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=void 0,s=void 0;if(i instanceof el?(a=en(i.key,"",t),s=en(i.value,a,t)):a=en(i,"",t),r.has(a))throw Error("Ordered maps must not include duplicate keys");r.set(a,s)}}catch(e){o.e(e)}finally{o.f()}return r}}]),r}(ec);s(eQ,"tag","tag:yaml.org,2002:omap");var eX={identify:function(e){return e instanceof Map},nodeClass:eQ,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var r,n=eJ(e,t),o=[],i=_(n.items);try{for(i.s();!(r=i.n()).done;){var a=r.value.key;if(a instanceof eo){if(o.includes(a.value))throw new I(t,"Ordered maps must not include duplicate keys");o.push(a.value)}}}catch(e){i.e(e)}finally{i.f()}return Object.assign(new eQ,n)},createNode:function(e,t,r){var n=ez(e,t,r),o=new eQ;return o.items=n.items,o}},eZ=function(e){u(r,e);var t=m(r);function r(){var e;return o(this,r),(e=t.call(this)).tag=r.tag,e}return a(r,[{key:"add",value:function(e){var t=e instanceof el?e:new el(e);eh(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var r=eh(this.items,e);return!t&&r instanceof el?r.key instanceof eo?r.key.value:r.key:r}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(n(t)));var r=eh(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new el(e))}},{key:"toJSON",value:function(e,t){return g(c(r.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return g(c(r.prototype),"toString",this).call(this,e,t,n);throw Error("Set items must all have null values")}}]),r}(ed);s(eZ,"tag","tag:yaml.org,2002:set");var e0={identify:function(e){return e instanceof Set},nodeClass:eZ,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var r=eW(e,t);if(!r.hasAllNullValues())throw new I(t,"Set items must all have null values");return Object.assign(new eZ,r)},createNode:function(e,t,r){var n,o=new eZ,i=_(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.items.push(e.createPair(a,null,r))}}catch(e){i.e(e)}finally{i.f()}return o}},e1=function(e,t){var r=t.split(":").reduce(function(e,t){return 60*e+Number(t)},0);return"-"===e?-r:r},e2=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return eM(t);var r="";t<0&&(r="-",t=Math.abs(t));var n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),r+n.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},e4={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return e1(t,r.replace(/_/g,""))},stringify:e2},e6={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,r){return e1(t,r.replace(/_/g,""))},stringify:e2},e3={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,r,n,o,i,a,s,u){s&&(s=(s+"00").substr(1,3));var c=Date.UTC(t,r-1,n,o||0,i||0,a||0,s||0);if(u&&"Z"!==u){var l=e1(u[0],u.slice(1));30>Math.abs(l)&&(l*=60),c-=6e4*l}return new Date(c)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function e8(e){var t=void 0!==eV&&eV.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function e7(e,t){if(e8(!1)){var r=void 0!==eV&&eV.emitWarning;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var e5={},e9={createNode:function(e,t,r){var o=new ed(e);if(t instanceof Map){var i,a=_(t);try{for(a.s();!(i=a.n()).done;){var s=v(i.value,2),u=s[0],c=s[1];o.items.push(e.createPair(u,c,r))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===n(t))for(var l=0,f=Object.keys(t);l<f.length;l++){var p=f[l];o.items.push(e.createPair(p,t[p],r))}return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:ed,tag:"tag:yaml.org,2002:map",resolve:eW},te={createNode:function(e,t,r){var n=new ec(e);if(t&&t[Symbol.iterator]){var o,i=_(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=e.createNode(a,r.wrapScalars,null,r);n.items.push(s)}}catch(e){i.e(e)}finally{i.f()}}return n},default:!0,nodeClass:ec,tag:"tag:yaml.org,2002:seq",resolve:eG},tt=[e9,te,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:eU,stringify:function(e,t,r,n){return eL(e,t=Object.assign({actualString:!0},t),r,n)},options:ew}],tr=function(e){return"bigint"==typeof e||Number.isInteger(e)},tn=function(e,t,r){return ev.asBigInt?BigInt(e):parseInt(t,r)};function to(e,t,r){var n=e.value;return tr(n)&&n>=0?r+n.toString(t):eM(e)}var ti={identify:function(e){return null==e},createNode:function(e,t,r){return r.wrapScalars?new eo(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:eb,stringify:function(){return eb.nullStr}},ta={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:eg,stringify:function(e){return e.value?eg.trueStr:eg.falseStr}},ts={identify:function(e){return tr(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return tn(e,t,8)},options:ev,stringify:function(e){return to(e,8,"0o")}},tu={identify:tr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return tn(e,e,10)},options:ev,stringify:eM},tc={identify:function(e){return tr(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return tn(e,t,16)},options:ev,stringify:function(e){return to(e,16,"0x")}},tl={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:eM},tf={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){return Number(e.value).toExponential()}},tp={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,r){var n=t||r,o=new eo(parseFloat(e));return n&&"0"===n[n.length-1]&&(o.minFractionDigits=n.length),o},stringify:eM},th=tt.concat([ti,ta,ts,tu,tc,tl,tf,tp]),td=function(e){return"bigint"==typeof e||Number.isInteger(e)},ty=function(e){return JSON.stringify(e.value)},tm=[e9,te,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:eU,stringify:ty},{identify:function(e){return null==e},createNode:function(e,t,r){return r.wrapScalars?new eo(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:ty},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:ty},{identify:td,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return ev.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return td(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:ty}];tm.scalarFallback=function(e){throw SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var tg=function(e){return e.value?eg.trueStr:eg.falseStr},tv=function(e){return"bigint"==typeof e||Number.isInteger(e)};function tb(e,t,r){var n=t.replace(/_/g,"");if(ev.asBigInt){switch(r){case 2:n="0b".concat(n);break;case 8:n="0o".concat(n);break;case 16:n="0x".concat(n)}var o=BigInt(n);return"-"===e?BigInt(-1)*o:o}var i=parseInt(n,r);return"-"===e?-1*i:i}function tw(e,t,r){var n=e.value;if(tv(n)){var o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return eM(e)}var tS=tt.concat([{identify:function(e){return null==e},createNode:function(e,t,r){return r.wrapScalars?new eo(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:eb,stringify:function(){return eb.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:eg,stringify:tg},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:eg,stringify:tg},{identify:tv,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,r){return tb(t,r,2)},stringify:function(e){return tw(e,2,"0b")}},{identify:tv,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,r){return tb(t,r,8)},stringify:function(e){return tw(e,8,"0")}},{identify:tv,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,r){return tb(t,r,10)},stringify:eM},{identify:tv,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,r){return tb(t,r,16)},stringify:function(e){return tw(e,16,"0x")}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:eM},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){return Number(e.value).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var r=new eo(parseFloat(e.replace(/_/g,"")));if(t){var n=t.replace(/_/g,"");"0"===n[n.length-1]&&(r.minFractionDigits=n.length)}return r},stringify:eM}],eK,eX,eY,e0,e4,e6,e3),tE={core:th,failsafe:tt,json:tm,yaml11:tS},tO={binary:eK,bool:ta,float:tp,floatExp:tf,floatNaN:tl,floatTime:e6,int:tu,intHex:tc,intOct:ts,intTime:e4,map:e9,null:ti,omap:eX,pairs:eY,seq:te,set:e0,timestamp:e3},t_=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},tA=function(){function e(t){var r=t.customTags,n=t.merge,i=t.schema,a=t.sortMapEntries,s=t.tags;o(this,e),this.merge=!!n,this.name=i,this.sortMapEntries=!0===a?t_:a||null,!r&&s&&function(e,t){if(!e5[e]&&e8(!0)){e5[e]=!0;var r="The option '".concat(e,"' will be removed in a future release");e7(r+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}("tags","customTags"),this.tags=function(e,t,r,n){var o=e[n.replace(/\W/g,"")];if(!o){var i=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(", ");throw Error('Unknown schema "'.concat(n,'"; use one of ').concat(i))}if(Array.isArray(r)){var a,s=_(r);try{for(s.s();!(a=s.n()).done;){var u=a.value;o=o.concat(u)}}catch(e){s.e(e)}finally{s.f()}}else"function"==typeof r&&(o=r(o.slice()));for(var c=0;c<o.length;++c){var l=o[c];if("string"==typeof l){var f=t[l];if(!f){var p=Object.keys(t).map(function(e){return JSON.stringify(e)}).join(", ");throw Error('Unknown custom tag "'.concat(l,'"; use one of ').concat(p))}o[c]=f}}return o}(tE,tO,r||s,i)}return a(e,[{key:"createNode",value:function(t,r,o,i){var a={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r};return function(e,t,r){if(e instanceof er)return e;var o=r.defaultPrefix,i=r.onTagObj,a=r.prevObjects,s=r.schema,u=r.wrapScalars;t&&t.startsWith("!!")&&(t=o+t.slice(2));var c=function(e,t,r){if(t){var n=r.filter(function(e){return e.tag===t}),o=n.find(function(e){return!e.format})||n[0];if(!o)throw Error("Tag ".concat(t," not found"));return o}return r.find(function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format})}(e,t,s.tags);if(!c){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==n(e))return u?new eo(e):e;c=e instanceof Map?e9:e[Symbol.iterator]?te:e9}i&&(i(c),delete r.onTagObj);var l={value:void 0,node:void 0};if(e&&"object"===n(e)&&a){var f=a.get(e);if(f){var p=new ep(f);return r.aliasNodes.push(p),p}l.value=e,a.set(e,l)}return l.node=c.createNode?c.createNode(r.schema,e,r):u?new eo(e):e,t&&l.node instanceof er&&(l.node.tag=t),l.node}(t,o,i?Object.assign(i,a):a)}},{key:"createPair",value:function(e,t,r){return r||(r={wrapScalars:!0}),new el(this.createNode(e,r.wrapScalars,null,r),this.createNode(t,r.wrapScalars,null,r))}}]),e}();s(tA,"defaultPrefix",k),s(tA,"defaultTags",R);var tx={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},tk={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:k},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:k}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:k}]}};function tR(e,t){if("1.0"===(e.version||e.options.version)){var r=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(r)return"!"+r[1];var n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(t.replace(/^tag:/,""))}var o=e.tagPrefixes.find(function(e){return 0===t.indexOf(e.prefix)});if(!o){var i=e.getDefaults().tagPrefixes;o=i&&i.find(function(e){return 0===t.indexOf(e.prefix)})}if(!o)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(o.prefix.length).replace(/[!,[\]{}]/g,function(e){return({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]});return o.handle+a}function tP(e,t,r,o){var i,a,s,u,c,l,f=t.doc,p=f.anchors,h=f.schema;if(!(e instanceof er)){var d={aliasNodes:[],onTagObj:function(e){return y=e},prevObjects:new Map};e=h.createNode(e,!0,null,d);var y,m,g=_(d.aliasNodes);try{for(g.s();!(m=g.n()).done;){var v=m.value;v.source=v.source.node;var b=p.getName(v.source);b||(b=p.newName(),p.map[b]=v.source)}}catch(e){g.e(e)}finally{g.f()}}if(e instanceof el)return e.toString(t,r,o);y||(y=function(e,t){if(t instanceof ep)return ep;if(t.tag){var r,o,i=e.filter(function(e){return e.tag===t.tag});if(i.length>0)return i.find(function(e){return e.format===t.format})||i[0]}if(t instanceof eo){o=t.value;var a=e.filter(function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class});r=a.find(function(e){return e.format===t.format})||a.find(function(e){return!e.format})}else o=t,r=e.find(function(e){return e.nodeClass&&o instanceof e.nodeClass});if(!r){var s=o&&o.constructor?o.constructor.name:n(o);throw Error("Tag not resolved for ".concat(s," value"))}return r}(h.tags,e));var w=(i=e,a=y,s=t.anchors,u=t.doc,c=[],(l=u.anchors.getName(i))&&(s[l]=i,c.push("&".concat(l))),i.tag?c.push(tR(u,i.tag)):a.default||c.push(tR(u,a.tag)),c.join(" "));w.length>0&&(t.indentAtStart=(t.indentAtStart||0)+w.length+1);var S="function"==typeof y.stringify?y.stringify(e,t,r,o):e instanceof eo?eL(e,t,r,o):e.toString(t,r,o);return w?e instanceof eo||"{"===S[0]||"["===S[0]?"".concat(w," ").concat(S):"".concat(w,"\n").concat(t.indent).concat(S):S}var tT=function(){function e(t){o(this,e),s(this,"map",Object.create(null)),this.prefix=t}return a(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new ep(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new ey,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.value.items=n.map(function(t){if(t instanceof ep){if(t.source instanceof ed)return t}else if(t instanceof ed)return e.createAlias(t);throw Error("Merge sources must be Map nodes or their Aliases")}),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find(function(r){return t[r]===e})}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),r=1;;++r){var n="".concat(e).concat(r);if(!t.includes(n))return n}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach(function(t){e[t]=e[t].resolved}),t.forEach(function(e){e.source=e.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,r){if(null!=t&&!e.validAnchorNode(t))throw Error("Anchors may only be set for Scalar, Seq and Map nodes");if(r&&/[\x00-\x19\s,[\]{}]/.test(r))throw Error("Anchor names must not contain whitespace or control characters");var n=this.map,o=t&&Object.keys(n).find(function(e){return n[e]===t});if(o){if(!r)return o;o!==r&&(delete n[o],n[r]=t)}else{if(!r){if(!t)return null;r=this.newName()}n[r]=t}return r}}],[{key:"validAnchorNode",value:function(e){return e instanceof eo||e instanceof ec||e instanceof ed}}]),e}(),tj=function e(t,r){if(t&&"object"===n(t)){var o=t.tag;t instanceof es?(o&&(r[o]=!0),t.items.forEach(function(t){return e(t,r)})):t instanceof el?(e(t.key,r),e(t.value,r)):t instanceof eo&&o&&(r[o]=!0)}return r};function tL(e){if(e instanceof es)return!0;throw Error("Expected a YAML collection as document contents")}var tM=function(){function e(t){o(this,e),this.anchors=new tT(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return a(e,[{key:"add",value:function(e){return tL(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){tL(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return tL(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return ea(e)?null!=this.contents&&(this.contents=null,!0):(tL(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof es?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return ea(e)?!t&&this.contents instanceof eo?this.contents.value:this.contents:this.contents instanceof es?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof es&&this.contents.has(e)}},{key:"hasIn",value:function(e){return ea(e)?void 0!==this.contents:this.contents instanceof es&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){tL(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){ea(e)?this.contents=t:(tL(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var r=Object.assign({},this.getDefaults(),this.options);this.schema=new tA(r)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var r=e.directives,n=e.contents,o=e.directivesEndMarker,i=e.error,a=e.valueRange;if(i&&(i.source||(i.source=this),this.errors.push(i)),function(e,t,r){var n,o=[],i=!1,a=_(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=s.comment,c=s.name;switch(c){case"TAG":try{e.tagPrefixes.push(function(e,t){var r=e.tagPrefixes,n=v(t.parameters,2),o=n[0],i=n[1];if(!o||!i)throw new I(t,"Insufficient parameters given for %TAG directive");if(r.some(function(e){return e.handle===o}))throw new I(t,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:o,prefix:i}}(e,s))}catch(t){e.errors.push(t)}i=!0;break;case"YAML":case"YAML:1.0":e.version&&e.errors.push(new I(s,"The %YAML directive must only be given at most once per document."));try{e.version=function(e,t){var r=v(t.parameters,1)[0];if("YAML:1.0"===t.name&&(r="1.0"),!r)throw new I(t,"Insufficient parameters given for %YAML directive");if(!tk[r]){var n=e.version||e.options.version,o="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(r);e.warnings.push(new U(t,o))}return r}(e,s)}catch(t){e.errors.push(t)}i=!0;break;default:if(c){var l="YAML only supports %TAG and %YAML directives, and not %".concat(c);e.warnings.push(new U(s,l))}}u&&o.push(u)}}catch(e){a.e(e)}finally{a.f()}r&&!i&&"1.1"===(e.version||r.version||e.options.version)&&(e.tagPrefixes=r.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),e.version=r.version),e.commentBefore=o.join("\n")||null}(this,void 0===r?[]:r,t),o&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var r,n={before:[],after:[]},o=void 0,i=!1,a=_(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.valueRange){if(void 0!==o){e.errors.push(new B(s,"Document contains trailing content not separated by a ... or --- line"));break}var u=eq(e,s);i&&(u.spaceBefore=!0,i=!1),o=u}else null!==s.comment?(void 0===o?n.before:n.after).push(s.comment):s.type===x.BLANK_LINE&&(i=!0,void 0===o&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]))}}catch(e){a.e(e)}finally{a.f()}if(e.contents=o||null,o){var c=n.before.join("\n");if(c){var l=o instanceof es&&o.items[0]?o.items[0]:o;l.commentBefore=l.commentBefore?"".concat(c,"\n").concat(l.commentBefore):c}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,void 0===n?[]:n),this.anchors.resolveNodes(),this.options.prettyErrors){var s,u=_(this.errors);try{for(u.s();!(s=u.n()).done;){var c=s.value;c instanceof N&&c.makePretty()}}catch(e){u.e(e)}finally{u.f()}var l,f=_(this.warnings);try{for(f.s();!(l=f.n()).done;){var p=l.value;p instanceof N&&p.makePretty()}}catch(e){f.e(e)}finally{f.f()}}return this}},{key:"listNonDefaultTags",value:function(){return Object.keys(tj(this.contents,{})).filter(function(e){return 0!==e.indexOf(tA.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw Error("Handle must start and end with !");if(t){var r=this.tagPrefixes.find(function(t){return t.handle===e});r?r.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"toJSON",value:function(e,t){var r=this,n=this.options,o=n.keepBlobsInJSON,i=n.mapAsMap,a=n.maxAliasCount,s=o&&("string"!=typeof e||!(this.contents instanceof eo)),u={doc:this,indentStep:"  ",keep:s,mapAsMap:s&&!!i,maxAliasCount:a,stringify:tP},c=Object.keys(this.anchors.map);c.length>0&&(u.anchors=new Map(c.map(function(e){return[r.anchors.map[e],{alias:[],aliasCount:0,count:1}]})));var l=en(this.contents,e,u);if("function"==typeof t&&u.anchors){var f,p=_(u.anchors.values());try{for(p.s();!(f=p.n()).done;){var h=f.value,d=h.count,y=h.res;t(y,d)}}catch(e){p.e(e)}finally{p.f()}}return l}},{key:"toString",value:function(){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var r=[],n=!1;if(this.version){var o="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?o="%YAML:1.0":"1.1"===this.version&&(o="%YAML 1.1")),r.push(o),n=!0}var i=this.listNonDefaultTags();this.tagPrefixes.forEach(function(e){var t=e.handle,o=e.prefix;i.some(function(e){return 0===e.indexOf(o)})&&(r.push("%TAG ".concat(t," ").concat(o)),n=!0)}),(n||this.directivesEndMarker)&&r.push("---"),this.commentBefore&&((n||!this.directivesEndMarker)&&r.unshift(""),r.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:tP},s=!1,u=null;if(this.contents){this.contents instanceof er&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&r.push(""),this.contents.commentBefore&&r.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,u=this.contents.comment);var c=u?null:function(){return s=!0},l=tP(this.contents,a,function(){return u=null},c);r.push(et(l,"",u))}else void 0!==this.contents&&r.push(tP(this.contents,a));return this.comment&&((!s||u)&&""!==r[r.length-1]&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join("\n")+"\n"}}]),e}();s(tM,"defaults",tk);var tN=function(e){u(r,e);var t=m(r);function r(e){return o(this,r),t.call(this,Object.assign({},tx,e))}return r}(tM);function tC(e,t){var r=ee(e),n=new tN(t).parse(r[0]);return r.length>1&&n.errors.unshift(new I(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()")),n}var tI={createNode:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2?arguments[2]:void 0;return void 0===r&&"string"==typeof t&&(r=t,t=!0),new tA(Object.assign({},tM.defaults[tx.version],tx)).createNode(e,t,r)},defaultOptions:tx,Document:tN,parse:function(e,t){var r=tC(e,t);if(r.warnings.forEach(function(e){return e7(e)}),r.errors.length>0)throw r.errors[0];return r.toJSON()},parseAllDocuments:function(e,t){var r,n,o=[],i=_(ee(e));try{for(i.s();!(n=i.n()).done;){var a=n.value,s=new tN(t);s.parse(a,r),o.push(s),r=s}}catch(e){i.e(e)}finally{i.f()}return o},parseCST:ee,parseDocument:tC,scalarOptions:{get binary(){return em},set binary(opt){Object.assign(em,opt)},get bool(){return eg},set bool(opt){Object.assign(eg,opt)},get int(){return ev},set int(opt){Object.assign(ev,opt)},get null(){return eb},set null(opt){Object.assign(eb,opt)},get str(){return ew},set str(opt){Object.assign(ew,opt)}},stringify:function(e,t){var r=new tN(t);return r.contents=e,String(r)}}},61506:function(e){"use strict";e.exports={i8:"7.0.8"}}}]);
//# sourceMappingURL=9505-faa0b263d6e479cb.js.map