forked from bombastictranz/public-docs
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
423-315765f3c9cb50b6.js.download
27 lines (27 loc) · 401 KB
/
423-315765f3c9cb50b6.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[423],{34168:function(e,t,r){"use strict";var n=r(60891);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(82498)),i=n(r(81767)),a=n(r(2265));t.default=function(e){var t=e.color,r=e.size,n=void 0===r?24:r,s=(0,i.default)(e,["color","size"]);return a.default.createElement("svg",(0,o.default)({fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",shapeRendering:"geometricPrecision",viewBox:"0 0 24 24"},s,{height:n,width:n,style:{color:void 0===t?"currentColor":t}}),a.default.createElement("path",{d:"M8 3v3a2 2 0 01-2 2H3m18 0h-3a2 2 0 01-2-2V3m0 18v-3a2 2 0 012-2h3M3 16h3a2 2 0 012 2v3"}))}},66033:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),c=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)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},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 l(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},23663:function(e,t,r){"use strict";/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var n=r(66033),o=r(61531),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 c(e)}return l(e,t,r)}function l(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(N(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(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(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 u(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 c(e){return u(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)||N(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,l=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,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else -1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var f=!0,p=0;p<l;p++)if(u(e,i+p)!==u(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,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),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 A(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 l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(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 c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(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(N(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(N(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,l=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),f=0;f<l;++f)if(u[f]!==c[f]){i=u[f],a=c[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,l,u,c,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 l=t,u=r,R(k(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=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-c),this,c,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 A(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return A(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),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%l]}return this};var _=/[^+/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(_,"")).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 N(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}()},84922:function(e,t,r){"use strict";var n=r(42334);e.exports=function(e,t){if(!e)return t;t.then(function(t){n(function(){e(null,t)})},function(t){n(function(){e(t)})})}},42334:function(e,t,r){"use strict";var n=r(49079);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},57353:function(e){e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",r="[Circular]",n=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=i()),function e(n,o,i,a,l,u,c){if(u+=1,"object"==typeof n&&null!==n){for(f=0;f<a.length;f++)if(a[f]===n){s(r,n,o,l);return}if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&i+1>c.edgesLimit){s(t,n,o,l);return}if(a.push(n),Array.isArray(n))for(f=0;f<n.length;f++)e(n[f],f,f,a,n,u,c);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,u,c)}}a.pop()}}(e,"",0,[],void 0,0,u);try{f=0===o.length?JSON.stringify(e,a,l):JSON.stringify(e,c(a),l)}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 l(e,t){return e<t?-1:e>t?1:0}function u(e,a,u,f){void 0===f&&(f=i());var p,h=function e(o,i,a,u,c,f,p){if(f+=1,"object"==typeof o&&null!==o){for(h=0;h<u.length;h++)if(u[h]===o){s(r,o,i,c);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,c);return}if(u.push(o),Array.isArray(o))for(h=0;h<o.length;h++)e(o[h],h,h,u,o,f,p);else{var h,d={},y=Object.keys(o).sort(l);for(h=0;h<y.length;h++){var m=y[h];e(o[m],m,h,u,o,f,p),d[m]=o[m]}if(void 0===c)return d;n.push([c,i,o]),c[i]=d}u.pop()}}(e,"",0,[],void 0,0,f)||e;try{p=0===o.length?JSON.stringify(h,a,u):JSON.stringify(h,c(a),u)}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 c(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)}}},61531:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?o-1:0,p=r?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=u}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>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=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-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,u+=o;u>0;e[r+h]=255&a,h+=d,a/=256,u-=8);e[r+h-d]|=128*y}},47907:function(e,t,r){"use strict";var n=r(15313);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}})},94370: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){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&"function"==typeof e.on&&y(e,"error",o,{once:!0})})},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 l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(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=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var o,i,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){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=c.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 l(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 l=i[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=d(l,u),r=0;r<u;++r)n(c[r],this,t);return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(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}()},4252:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(60979)}},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,l,u,c,f,p=(o=(n=e).auth,i=n.hostname,a=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",c=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",n.host?c=o+n.host:i&&(c=o+(~i.indexOf(":")?"["+i+"]":i),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),f=n.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:l});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(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 c=e.match(l);c&&!o.protocol&&(e=e.substr((i=c[1]+(c[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,"")),u.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=c,f.prototype.resolveObject=c;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),l=y.test(e),u="";a&&(p.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,p.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,g=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=g&&g[1],b=new f,w="",S="";try{c=new URL(e)}catch(t){w=t,u||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!S,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.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(c.search.substr(1)):b.search.substr(1),b.pathname=S+(a?c.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}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!p.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.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=c,i.resolveObject=function(e,t){return g(c(e,t))},i.Url=f}(),e.exports=i}()},34057: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 l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",o=0):o=(n=n.slice(0,l)).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 l=r.length-s,u=a<l?a:l,c=-1,f=0;f<=u;++f){if(f===u){if(l>u){if(47===r.charCodeAt(s+f))return r.slice(s+f+1);if(0===f)return r.slice(s+f)}else a>u&&(47===e.charCodeAt(o+f)?c=f:0===f&&(c=0));break}var p=e.charCodeAt(o+f);if(p!==r.charCodeAt(s+f))break;47===p&&(c=f)}var h="";for(f=o+c+1;f<=i;++f)(f===i||47===e.charCodeAt(f))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+c):(s+=c,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,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){o=n+1;break}}else -1===l&&(a=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=l))}return o===i?i=l:-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 l=e.charCodeAt(s);if(47===l){if(!i){n=s+1;break}continue}-1===o&&(i=!1,o=s+1),46===l?-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,l=-1,u=!0,c=e.length-1,f=0;c>=r;--c){if(47===(o=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===o?-1===a?a=c:1!==f&&(f=1):-1!==a&&(f=-1)}return -1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(0===s&&i?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),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}()},60979: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 l=e.length;s>0&&l>s&&(l=s);for(var u=0;u<l;++u){var c,f,p,h,d=e[u].replace(a,"%20"),y=d.indexOf(n);(y>=0?(c=d.substr(0,y),f=d.substr(y+1)):(c=d,f=""),p=decodeURIComponent(c),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}()},37906:function(e,t,r){var n=r(49079);!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,l;let u,c;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(u="must not be",t=t.replace(/^not /,"")):u="must be",a=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-a.length,s)===a)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof l&&(l=0),l+1>e.length||-1===e.indexOf(".",l))?"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=c;var i=r(709),a=r(337);r(782)(c,i);for(var s=o(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(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(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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=_,o(361).EventEmitter;var i,a,s,l,u,c=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,A=["error","close","destroy","pause","resume"];function _(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 _(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,l,u,c,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,P(e)))}}(e,f);else{if(o||(i=f,s=t,p.isBuffer(s)||s instanceof h||"string"==typeof s||void 0===s||i.objectMode||(l=new b("chunk",["string","Buffer","Uint8Array"],s)),c=l),c)O(e,c);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(u=t,t=p.from(u)),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):j(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,j(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)),j(e,t)}function N(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(P,e))}function P(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 j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(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 L(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 M(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 D(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 U(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 $(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?U(this):T(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&U(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=N(n,r))),null===(t=e>0?D(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&&U(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",l),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),u=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,B(r))};e.on("drain",l);var u=!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!==$(o.pipes,e))&&!u&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(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=$(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(L,this),r},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(L,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(M,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<A.length;i++)e.on(A[i],this.emit.bind(this,A[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===l&&(l=o(871)),l(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=D,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===u&&(u=o(727)),u(x,e,t)})},170:function(e,t,r){"use strict";e.exports=c;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,l=r(403);function u(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 c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.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)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new o("_transform()"))},c.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)}},c.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))},c.prototype._destroy=function(e,t){l.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=_;var a,s,l={deprecate:o(769)},u=o(678),c=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 A(){}function _(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(j,e,r),e._writableState.errorEmitted=!0,O(e,t)):(i(t),e._writableState.errorEmitted=!0,O(e,t),j(e,r));else{var a=T(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||N(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 _(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)),u.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(),j(e,t)}function N(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 l=r.chunk,u=r.encoding,c=r.callback,f=t.objectMode?1:l.length;if(k(e,t,!1,f,l,u,c),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 P(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)})}function j(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(P,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,u),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:l.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 _}})):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,l,u,p,h=this._writableState,d=!1,m=!h.objectMode&&(o=e,c.isBuffer(o)||o instanceof f);return m&&!c.isBuffer(e)&&(i=e,e=c.from(i)),("function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=A),h.ending)?(a=r,O(this,s=new S),n.nextTick(a,s)):(m||(l=e,u=r,null===l?p=new w:"string"==typeof l||h.objectMode||(p=new y("chunk",["string","Buffer"],l)),!p||(O(this,p),n.nextTick(u,p),0)))&&(h.pendingcb++,d=function(e,t,r,n,o,i){if(!r){var a,s,l=(a=n,s=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,s)),a);n!==l&&(r=!0,o="buffer",n=l)}var u=t.objectMode?1:n.length;t.length+=u;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,u,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||N(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,j(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"),l=Symbol("lastReject"),u=Symbol("error"),c=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[l]=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[u];if(null!==o)return Promise.reject(o);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[u]?t(r[u]):e(d(void 0,!0))})});var i=this[f];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[c]){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,l,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{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[l]=null,e(d(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[f]=null,r[s]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[l]=null,n(d(void 0,!0))),r[c]=!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}function o(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)}}var i=r(300).Buffer,a=r(837).inspect,s=a&&a.custom||"inspect";e.exports=function(){var e,t;function r(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),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 i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.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=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return a(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}))}}],o(r.prototype,e),t&&o(r,t),r}()},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,l=this._writableState&&this._writableState.destroyed;return s||l?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,l=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){u=!1,f=!0,l||i.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){l=!1,h=!0,u||i.call(t)},y=function(e){i.call(t,e)},m=function(){var e;return l&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):u&&!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)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),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",c),t.removeListener("close",c),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),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).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)),l=!1;function u(){return c.apply(this,arguments)}function c(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?u():l=!1}catch(e){s.destroy(e)}},(c=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,l,"next",e)}function l(e){n(a,o,i,s,l,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){l||(l=!0,u())},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 l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,c=Array(o),f=0;f<o;f++)c[f]=arguments[f];var p=(e=c).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new i("streams");var h=c.map(function(e,o){var i,s,u,f,d,y=o<c.length-1;return s=i=function(e){t||(t=e),e&&h.forEach(l),y||(h.forEach(l),p(t))},u=!1,i=function(){u||(u=!0,s.apply(void 0,arguments))},f=!1,e.on("close",function(){f=!0}),void 0===n&&(n=r(698)),n(e,{readable:y,writable:o>0},function(e){if(e)return i(e);f=!0,i()}),d=!1,function(t){if(!f&&!d){if(d=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();i(t||new a("pipe"))}}});return c.reduce(u)}},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",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),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=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,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 l(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 u(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 c(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(23663)},361:function(e){"use strict";e.exports=r(94370)},781:function(e){"use strict";e.exports=r(94370).EventEmitter},837:function(e){"use strict";e.exports=r(24028)}},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}()},33558:function(e,t,r){var n=r(49079),o=r(23663).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,l;let u,c;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(u="must not be",t=t.replace(/^not /,"")):u="must be",a=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-a.length,s)===a)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof l&&(l=0),l+1>e.length||-1===e.indexOf(".",l))?"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=c;var i=r(709),a=r(337);r(782)(c,i);for(var s=o(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(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(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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=_,o(361).EventEmitter;var i,a,s,l,u,c=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,A=["error","close","destroy","pause","resume"];function _(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 _(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,l,u,c,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,P(e)))}}(e,f);else{if(o||(i=f,s=t,p.isBuffer(s)||s instanceof h||"string"==typeof s||void 0===s||i.objectMode||(l=new b("chunk",["string","Buffer","Uint8Array"],s)),c=l),c)O(e,c);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(u=t,t=p.from(u)),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):j(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,j(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)),j(e,t)}function N(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(P,e))}function P(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 j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(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 L(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 M(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 D(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 U(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 $(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?U(this):T(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&U(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=N(n,r))),null===(t=e>0?D(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&&U(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",l),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),u=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,B(r))};e.on("drain",l);var u=!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!==$(o.pipes,e))&&!u&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(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=$(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(L,this),r},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(L,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(M,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<A.length;i++)e.on(A[i],this.emit.bind(this,A[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===l&&(l=o(871)),l(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=D,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===u&&(u=o(727)),u(x,e,t)})},170:function(e,t,r){"use strict";e.exports=c;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,l=r(403);function u(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 c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.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)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new o("_transform()"))},c.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)}},c.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))},c.prototype._destroy=function(e,t){l.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=_;var a,s,l={deprecate:o(769)},u=o(678),c=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 A(){}function _(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(j,e,r),e._writableState.errorEmitted=!0,O(e,t)):(i(t),e._writableState.errorEmitted=!0,O(e,t),j(e,r));else{var a=T(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||N(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 _(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)),u.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(),j(e,t)}function N(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 l=r.chunk,u=r.encoding,c=r.callback,f=t.objectMode?1:l.length;if(k(e,t,!1,f,l,u,c),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 P(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)})}function j(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(P,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,u),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:l.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 _}})):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,l,u,p,h=this._writableState,d=!1,m=!h.objectMode&&(o=e,c.isBuffer(o)||o instanceof f);return m&&!c.isBuffer(e)&&(i=e,e=c.from(i)),("function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=A),h.ending)?(a=r,O(this,s=new S),n.nextTick(a,s)):(m||(l=e,u=r,null===l?p=new w:"string"==typeof l||h.objectMode||(p=new y("chunk",["string","Buffer"],l)),!p||(O(this,p),n.nextTick(u,p),0)))&&(h.pendingcb++,d=function(e,t,r,n,o,i){if(!r){var a,s,l=(a=n,s=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,s)),a);n!==l&&(r=!0,o="buffer",n=l)}var u=t.objectMode?1:n.length;t.length+=u;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,u,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||N(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,j(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"),l=Symbol("lastReject"),u=Symbol("error"),c=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[l]=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[u];if(null!==o)return Promise.reject(o);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[u]?t(r[u]):e(d(void 0,!0))})});var i=this[f];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[c]){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,l,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{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[l]=null,e(d(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[f]=null,r[s]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[l]=null,n(d(void 0,!0))),r[c]=!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}function o(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)}}var i=r(300).Buffer,a=r(837).inspect,s=a&&a.custom||"inspect";e.exports=function(){var e,t;function r(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),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 i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.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=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return a(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}))}}],o(r.prototype,e),t&&o(r,t),r}()},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,l=this._writableState&&this._writableState.destroyed;return s||l?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,l=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){u=!1,f=!0,l||i.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){l=!1,h=!0,u||i.call(t)},y=function(e){i.call(t,e)},m=function(){var e;return l&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):u&&!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)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),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",c),t.removeListener("close",c),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),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).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)),l=!1;function u(){return c.apply(this,arguments)}function c(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?u():l=!1}catch(e){s.destroy(e)}},(c=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,l,"next",e)}function l(e){n(a,o,i,s,l,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){l||(l=!0,u())},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 l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,c=Array(o),f=0;f<o;f++)c[f]=arguments[f];var p=(e=c).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new i("streams");var h=c.map(function(e,o){var i,s,u,f,d,y=o<c.length-1;return s=i=function(e){t||(t=e),e&&h.forEach(l),y||(h.forEach(l),p(t))},u=!1,i=function(){u||(u=!0,s.apply(void 0,arguments))},f=!1,e.on("close",function(){f=!0}),void 0===n&&(n=r(698)),n(e,{readable:y,writable:o>0},function(e){if(e)return i(e);f=!0,i()}),d=!1,function(t){if(!f&&!d){if(d=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();i(t||new a("pipe"))}}});return c.reduce(u)}},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),l=n(310);t.request=function(e,t){e="string"==typeof e?l.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||n,s=e.hostname||e.host,u=e.port,c=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?i+"//"+s:"")+(u?":"+u:"")+c,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),l=i(254),u=i(726),c=l.IncomingMessage,f=l.readyStates,p=e.exports=function(e){var t,r,n,i=this;u.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,u.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 l=null;if(a.abortController){var u=new AbortController;l=u.signal,e._fetchAbortController=u,"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:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var c=e._xhr=new r.g.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){n.nextTick(function(){e.emit("error",t)});return}"responseType"in c&&(c.responseType=e._mode),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(c.timeout=t.requestTimeout,c.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){c.setRequestHeader(e[0],e[1])}),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{c.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 c(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),u.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),l=i(726),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,i,s){var u=this;if(l.Readable.call(u),u._mode=i,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){n.nextTick(function(){u.emit("close")})}),"fetch"===i){if(u._fetchResponse=t,u.url=t.url,u.statusCode=t.status,u.statusMessage=t.statusText,t.headers.forEach(function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)}),a.writableStream){var c=new WritableStream({write:function(e){return new Promise(function(t,r){u._destroyed?r():u.push(o.from(e))?t():u._resumeFetch=t})},close:function(){r.g.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{t.body.pipeTo(c).catch(function(e){r.g.clearTimeout(s),u._destroyed||u.emit("error",e)});return}catch(e){}}var f=t.body.getReader();!function e(){f.read().then(function(t){if(!u._destroyed){if(t.done){r.g.clearTimeout(s),u.push(null);return}u.push(o.from(t.value)),e()}}).catch(function(e){r.g.clearTimeout(s),u._destroyed||u.emit("error",e)})}()}else if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.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===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!a.overrideMimeType){var p=u.rawHeaders["mime-type"];if(p){var h=p.match(/;\s*charset=([^;])(;|$)/);h&&(u._charset=h[1].toLowerCase())}u._charset||(u._charset="utf-8")}};s(c,l.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.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!==u.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!==u.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==u.LOADING)break;var l=new r.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===u.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=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,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 l(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 u(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 c(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(23663)},361:function(e){"use strict";e.exports=r(94370)},781:function(e){"use strict";e.exports=r(37906)},310:function(e){"use strict";e.exports=r(4252)},837:function(e){"use strict";e.exports=r(24028)}},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}()},24028:function(e,t,r){var n=r(23663).Buffer,o=r(49079);!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),l=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};u?u(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=[],l=0;l<a;l++)s.push("$"+l);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 u=function(){};u.prototype=o.prototype,n.prototype=new u,u.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){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,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%":c,"%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),A=v.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\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,_,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===A(/^%?[^%]*%?$/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,u=i.value,c=!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||(c=!0),n+="."+d,b(y,s="%"+n+"%"))u=y[s];else if(null!=u){if(!(d in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&p+1>=r.length){var v=l(u,d);u=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[d]}else h=b(u,d),u=u[d];h&&!c&&(y[s]=u)}}return u}},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){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,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%":c,"%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),A=w.call(Function.call,String.prototype.replace),_=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,N=function(e){var t=_(e,0,1),r=_(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 A(e,k,function(e,t,r,o){n[n.length]=r?A(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=N(e),n=r.length>0?r[0]:"",i=T("%"+n+"%",t),s=i.name,u=i.value,c=!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=_(d,0,1),g=_(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||(c=!0),n+="."+d,S(m,s="%"+n+"%"))u=m[s];else if(null!=u){if(!(d in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&p+1>=r.length){var v=l(u,d);u=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[d]}else h=S(u,d),u=u[d];h&&!c&&(m[s]=u)}}return u}},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"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=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;l&&h&&d&&o(u,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&&(l?!!h&&y(e):c(u,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 l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var d=s(BigInt.prototype.valueOf);if(u)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]"===c(e)}function v(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function S(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===c(e)}function A(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)||A(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=A;var _="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===c(e)}function k(e){return void 0!==_&&(void 0===x.working&&(x.working=x(new _)),x.working?x(e):e instanceof _)}function R(e){return m(e,f)}function N(e){return m(e,p)}function T(e){return m(e,h)}function P(e){return l&&m(e,d)}function j(e){return u&&m(e,y)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=R,t.isStringObject=N,t.isBooleanObject=T,t.isBigIntObject=P,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return R(e)||N(e)||T(e)||P(e)||j(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(u(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+=" "+u(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 l=o.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(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=c),p(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i,a,s,l,u=r.inspect(n,e);return b(u)||(u=p(e,u,n)),u}var c=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(c)return c;var f=Object.keys(r),E=(s={},f.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(f=Object.getOwnPropertyNames(r)),A(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return h(r);if(0===f.length){if(_(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(A(r))return h(r)}var k="",R=!1,T=["{","}"];return(y(r)&&(R=!0,T=["[","]"]),_(r)&&(k=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(k=" "+RegExp.prototype.toString.call(r)),O(r)&&(k=" "+Date.prototype.toUTCString.call(r)),A(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),l=R?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)N(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,l.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 ")+" "+l.join(",\n ")+" "+i[1]:i[0]+o+" "+l.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,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),N(n,o)||(a="["+o+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=g(r)?p(e,l.value,null):p(e,l.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 A(e){return E(e)&&("[object Error]"===x(e)||e instanceof Error)}function _(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=u,u.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]},u.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=A,t.types.isNativeError=A,t.isFunction=_,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 N(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 P(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(P.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"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=a("String.prototype.slice"),f={},p=n(24),h=Object.getPrototypeOf;l&&p&&h&&o(u,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)&&(l?d(e):c(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}()},13062: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},96738:function(e,t,r){"use strict";var n=r(49079);let o=r(57353),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("_"))}}},99950:function(e,t,r){"use strict";let n=r(76677),o=r(34057),i=r(4252),a=r(13062),s=r(44408),l=r(73631).jptr,u=r(73056).recurse,c=r(38491).clone,f=r(30062).dereference,p=r(33714).isRef,h=r(96738);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,u(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=c(l(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 u(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]=c(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);u(t.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),u(t.openapi.components,{identityDetection:!0,path:"#/components"},n),u(t.openapi,{identityDetection:!0},n),e(o)}).then(function(r){for(let a in r)if(!r[a].resolved){let u=t.resolver.depth;u>0&&u++,t.resolver.actions[u].push(function(){return function(e,t,r,a){let u;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(u="file:"===S?o.resolve(v?v+"/":"",t):i.resolve(v?v+"/":"",t),r.cache[u]){r.verbose&&console.warn("CACHED",u,b);let e=c(r.cache[u]),n=r.externalRef=e;if(b&&!1===(n=l(n,b))&&(n={},r.fatal)){let e=Error("Cached $ref resolution failed "+u+b);if(r.promise)r.promise.reject(e);else throw e}return a(c(n=y(n=d(n,e,t,b,u,r),r)),u,r),Promise.resolve(n)}if(r.verbose&&console.warn("GET",u,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[u]=e,a(e,u,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(u,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}: ${u}`)}return e.text()}).then(function(e){try{let n=s.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[u]=c(e),b&&(e=l(e,b),!1===e&&(e={},r.fatal))){let e=Error("Remote $ref resolution failed "+u+b);if(r.promise)r.promise.reject(e);else throw e}e=d(e,n,t,b,u,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,u,r),e}).catch(function(e){if(r.verbose&&console.warn(e),r.cache[u]={},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(u,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[u]=c(e),b&&(e=l(e,b),!1===e&&(e={},r.fatal))){let e=Error("File $ref resolution failed "+u+b);if(r.promise)r.promise.reject(e);else throw e}e=d(e,n,t,b,u,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,u,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){var i;if(!r[a].resolved){let e={};e.context=r[a],e.$ref=a,e.original=c(t),e.updated=t,e.source=n,o.externals.push(e),r[a].resolved=!0}let s=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 u=(i=r[a].paths,[...new Set(i)]);for(let e of u=u.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),l(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=c(t);l(o.openapi,e,n)}0===o.resolver.actions[s.resolver.depth].length&&o.resolver.actions[s.resolver.depth].push(function(){return e(s)})})})}}).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)),u(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)})}}},62581: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}}},38491: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)})))}}},30062:function(e,t,r){"use strict";let n=r(73056).recurse,o=r(38491).shallowClone,i=r(73631).jptr,a=r(33714).isRef;e.exports={dereference:function e(t,r,s){var l;s||(s={}),s.cache||(s.cache={}),s.state||(s.state={}),s.state.identityDetection=!0,s.depth=s.depth?s.depth+1:1;let u=s.depth>1?t:o(t),c={data:u},f=s.depth>1?r:o(r);s.master||(s.master=u);let p=(l=s)&&l.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(c,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 c.data}}},33714:function(e){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},73631: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}},73056:function(e,t,r){"use strict";let n=r(73631).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}}}},24716:function(e,t,r){"use strict";let n;let o=r(9305),i=r(4252);r(34057);let a=r(84922),s=r(13062),l=r(44408),u=r(73631),c=u.jptr,f=r(33714).isRef,p=r(38491).clone,h=r(38491).circularClone,d=r(73056).recurse,y=r(99950),m=r(62581),g=r(96738),v=r(32583).statusCodes,b=r(895).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 A(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 _(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=u.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(u.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")&&A(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(;u.jptr(o.openapi,"#/components/"+a+"/"+n+s);)s=""===s?2:++s;let l="#/components/"+a+"/"+n+s,c="";"examples"===a&&(r={value:r},c="/value"),u.jptr(o.openapi,l,r),o.refmap[e[t]]=l+c,e[t]=l+c}}}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 N(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,l={},u=!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){N(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=c(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=c(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=c(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&&A(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){u=!1,l.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),l.content[t]={},e.schema)l.content[t].schema=e.schema,e.schema.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{l.content[t].schema={},l.content[t].schema.type="object",l.content[t].schema.properties={},l.content[t].schema.properties[e.name]={};let r=l.content[t].schema,n=l.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),l.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"),P(e,n)}}else e&&"file"===e.type&&(e.required&&(l.required=e.required),l.content={},l.content["application/octet-stream"]={},l.content["application/octet-stream"].schema={},l.content["application/octet-stream"].schema.type="string",l.content["application/octet-stream"].schema.format="binary",P(e,l));if(e&&"body"===e.in){for(let r of(l.content={},e.name&&(l["x-s2o-name"]=(t&&t.operationId?g.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(l.description=e.description),e.required&&(l.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),f.length||f.push("application/json"),f))l.content[r]={},l.content[r].schema=p(e.schema||{}),A(l.content[r].schema,a);P(e,l)}if(Object.keys(l).length>0&&(e["x-s2o-delete"]=!0,!t||(t.requestBody&&u?(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&&l.content["multipart/form-data"]&&l.content["multipart/form-data"].schema&&l.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,l.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(l.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&&l.content["application/x-www-form-urlencoded"]&&l.content["application/x-www-form-urlencoded"].schema&&l.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,l.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(l.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,l),!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 P(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function j(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(A(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 I(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 l=s[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(s.parameters)for(let t of s.parameters)"string"==typeof t.$ref&&(N(t,r),t=c(o,t.$ref)),!l.parameters.find(function(e,r,n){return e.name===t.name&&e.in===t.in})&&("formData"===t.in||"body"===t.in||"file"===t.type)&&(l=T(t,l,s,e,a,o,r),r.rbname&&""===l[r.rbname]&&delete l[r.rbname]);for(let t of l.parameters)l=T(t,l,s,e,e+":"+a,o,r);r.rbname&&""===l[r.rbname]&&delete l[r.rbname],!r.debug&&l.parameters&&(l.parameters=l.parameters.filter(k))}if(l&&l.security&&x(l.security),"object"==typeof l){if(!l.responses){let e={};e.description="Default response",l.responses={default:e}}for(let e in l.responses)j(l.responses[e],e,l,o,r)}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length){for(let e of l.schemes)if((!o.schemes||0>o.schemes.indexOf(e))&&(l.servers||(l.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(),l.servers.push(r)}}if(r.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["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(l.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=u.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 l.responses[n].headers)t===e&&(l.responses[n].headers[t].example=r)}if(t.responses[n].body&&(o.components.examples[r]={value:p(t.responses[n].body)},l.responses[n]&&l.responses[n].content))for(let t in l.responses[n].content){let o=l.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let r=l.operationId?g.sanitiseAll(l.operationId):g.sanitiseAll(e+a).toCamelCase(),o=g.sanitise(l.requestBody["x-s2o-name"]||r||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),s=g.hash(i);if(!n[s]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],n[s]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(a))+"/"+e+"/requestBody";n[s].refs.push(c)}}}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 L(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 M(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=l.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),M(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,L(r),i.servers||(i.servers=[]),i.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,L(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(c(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),M(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,A(e.components.schemas[o+i],t)}for(let r in t.refmap={},d(e,{payload:{options:t}},_),function(e,t){for(let r in t.refmap)u.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(j(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(I(e.paths,"paths",t,r,e),e["x-ms-paths"]&&I(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,u.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 D(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=l.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){D(e,t).then(e=>r(e)).catch(e=>n(e))}).catch(function(e){n(e)})}))},convertStr:D,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,D(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(){D(o,t).then(e=>r(e)).catch(e=>n(e))})}))}}},32583:function(e,t,r){"use strict";let n=r(33558);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)}},16480:function(e,t){var r;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!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)}()},44408:function(e,t,r){e.exports=r(50308).YAML},56260:function(e,t,r){"use strict";let n;r.d(t,{io:function(){return ny},ZK:function(){return nm},PF:function(){return nv}});var o,i,a,s={};r.r(s),r.d(s,{hasBrowserEnv:function(){return rO},hasStandardBrowserEnv:function(){return rA},hasStandardBrowserWebWorkerEnv:function(){return r_}});let l=Symbol.for("yaml.alias"),u=Symbol.for("yaml.document"),c=Symbol.for("yaml.map"),f=Symbol.for("yaml.pair"),p=Symbol.for("yaml.scalar"),h=Symbol.for("yaml.seq"),d=Symbol.for("yaml.node.type"),y=e=>!!e&&"object"==typeof e&&e[d]===l,m=e=>!!e&&"object"==typeof e&&e[d]===u,g=e=>!!e&&"object"==typeof e&&e[d]===c,v=e=>!!e&&"object"==typeof e&&e[d]===f,b=e=>!!e&&"object"==typeof e&&e[d]===p,w=e=>!!e&&"object"==typeof e&&e[d]===h;function S(e){if(e&&"object"==typeof e)switch(e[d]){case c:case h:return!0}return!1}function E(e){if(e&&"object"==typeof e)switch(e[d]){case l:case c:case p:case h:return!0}return!1}let O=e=>(b(e)||S(e))&&!!e.anchor,A=Symbol("break visit"),_=Symbol("skip children"),x=Symbol("remove node");function k(e,t){let r=P(t);m(e)?R(null,e.contents,r,Object.freeze([e]))===x&&(e.contents=null):R(null,e,r,Object.freeze([]))}function R(e,t,r,n){let o=j(e,t,r,n);if(E(o)||v(o))return I(e,n,o),R(e,o,r,n);if("symbol"!=typeof o){if(S(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let o=R(e,t.items[e],r,n);if("number"==typeof o)e=o-1;else{if(o===A)return A;o===x&&(t.items.splice(e,1),e-=1)}}}else if(v(t)){n=Object.freeze(n.concat(t));let e=R("key",t.key,r,n);if(e===A)return A;e===x&&(t.key=null);let o=R("value",t.value,r,n);if(o===A)return A;o===x&&(t.value=null)}}return o}async function N(e,t){let r=P(t);m(e)?await T(null,e.contents,r,Object.freeze([e]))===x&&(e.contents=null):await T(null,e,r,Object.freeze([]))}async function T(e,t,r,n){let o=await j(e,t,r,n);if(E(o)||v(o))return I(e,n,o),T(e,o,r,n);if("symbol"!=typeof o){if(S(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let o=await T(e,t.items[e],r,n);if("number"==typeof o)e=o-1;else{if(o===A)return A;o===x&&(t.items.splice(e,1),e-=1)}}}else if(v(t)){n=Object.freeze(n.concat(t));let e=await T("key",t.key,r,n);if(e===A)return A;e===x&&(t.key=null);let o=await T("value",t.value,r,n);if(o===A)return A;o===x&&(t.value=null)}}return o}function P(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function j(e,t,r,n){return"function"==typeof r?r(e,t,n):g(t)?r.Map?.(e,t,n):w(t)?r.Seq?.(e,t,n):v(t)?r.Pair?.(e,t,n):b(t)?r.Scalar?.(e,t,n):y(t)?r.Alias?.(e,t,n):void 0}function I(e,t,r){let n=t[t.length-1];if(S(n))n.items[e]=r;else if(v(n))"key"===e?n.key=r:n.value=r;else if(m(n))n.contents=r;else{let e=y(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}k.BREAK=A,k.SKIP=_,k.REMOVE=x,N.BREAK=A,N.SKIP=_,N.REMOVE=x;let L={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>L[e]);class M{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},M.defaultYaml,e),this.tags=Object.assign({},M.defaultTags,t)}clone(){let e=new M(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new M(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:M.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},M.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:M.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},M.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let r=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,r),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}let[,r,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let o=this.tags[r];if(o)try{return o+decodeURIComponent(n)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+C(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&E(e.contents)){let r={};k(e.contents,(e,t)=>{E(t)&&t.tag&&(r[t.tag]=!0)}),t=Object.keys(r)}else t=[];for(let[o,i]of n)("!!"!==o||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&r.push(`%TAG ${o} ${i}`);return r.join("\n")}}function B(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function D(e){let t=new Set;return k(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function U(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function F(e,t,r,n){if(n&&"object"==typeof n){if(Array.isArray(n))for(let t=0,r=n.length;t<r;++t){let r=n[t],o=F(e,n,String(t),r);void 0===o?delete n[t]:o!==r&&(n[t]=o)}else if(n instanceof Map)for(let t of Array.from(n.keys())){let r=n.get(t),o=F(e,n,t,r);void 0===o?n.delete(t):o!==r&&n.set(t,o)}else if(n instanceof Set)for(let t of Array.from(n)){let r=F(e,n,t,t);void 0===r?n.delete(t):r!==t&&(n.delete(t),n.add(r))}else for(let[t,r]of Object.entries(n)){let o=F(e,n,t,r);void 0===o?delete n[t]:o!==r&&(n[t]=o)}}return e.call(t,r,n)}function $(e,t,r){if(Array.isArray(e))return e.map((e,t)=>$(e,String(t),r));if(e&&"function"==typeof e.toJSON){if(!r||!O(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=e=>{n.res=e,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return"bigint"!=typeof e||r?.keep?e:Number(e)}M.defaultYaml={explicit:!1,version:"1.2"},M.defaultTags={"!!":"tag:yaml.org,2002:"};class q{constructor(e){Object.defineProperty(this,d,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:o}={}){if(!m(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=$(this,"",i);if("function"==typeof n)for(let{count:e,res:t}of i.anchors.values())n(t,e);return"function"==typeof o?F(o,{"":a},"",a):a}}class W extends q{constructor(e){super(l),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return k(e,{Node:(e,r)=>{if(r===this)return k.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:r,doc:n,maxAliasCount:o}=t,i=this.resolve(n);if(!i)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let a=r.get(i);if(a||($(i,null,t),a=r.get(i)),!a||void 0===a.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=function e(t,r,n){if(y(r)){let e=r.resolve(t),o=n&&e&&n.get(e);return o?o.count*o.aliasCount:0}if(S(r)){let o=0;for(let i of r.items){let r=e(t,i,n);r>o&&(o=r)}return o}return v(r)?Math.max(e(t,r.key,n),e(t,r.value,n)):1}(n,i,r)),a.count*a.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(e,t,r){let n=`*${this.source}`;if(e){if(B(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let K=e=>!e||"function"!=typeof e&&"object"!=typeof e;class V extends q{constructor(e){super(p),this.value=e}toJSON(e,t){return t?.keep?this.value:$(this.value,e,t)}toString(){return String(this.value)}}function G(e,t,r){let n;if(m(e)&&(e=e.contents),E(e))return e;if(v(e)){let t=r.schema[c].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:o,onAnchor:i,onTagObj:a,schema:s,sourceObjects:l}=r;if(o&&e&&"object"==typeof e){if(n=l.get(e))return n.anchor||(n.anchor=i(e)),new W(n.anchor);n={anchor:null,node:null},l.set(e,n)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,r){if(t){let e=r.filter(e=>e.tag===t),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${t} not found`);return n}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,s.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new V(e);return n&&(n.node=t),t}u=e instanceof Map?s[c]:Symbol.iterator in Object(e)?s[h]:s[c]}a&&(a(u),delete r.onTagObj);let f=u?.createNode?u.createNode(r.schema,e,r):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(r.schema,e,r):new V(e);return t?f.tag=t:u.default||(f.tag=u.tag),n&&(n.node=f),f}function H(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){let r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){let e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return G(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}V.BLOCK_FOLDED="BLOCK_FOLDED",V.BLOCK_LITERAL="BLOCK_LITERAL",V.PLAIN="PLAIN",V.QUOTE_DOUBLE="QUOTE_DOUBLE",V.QUOTE_SINGLE="QUOTE_SINGLE";let J=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class z extends q{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>E(t)||v(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(J(e))this.add(t);else{let[r,...n]=e,o=this.get(r,!0);if(S(o))o.addIn(n,t);else if(void 0===o&&this.schema)this.set(r,H(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){let[t,...r]=e;if(0===r.length)return this.delete(t);let n=this.get(t,!0);if(S(n))return n.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...n]=e,o=this.get(r,!0);return 0===n.length?!t&&b(o)?o.value:o:S(o)?o.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!v(t))return!1;let r=t.value;return null==r||e&&b(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(0===r.length)return this.has(t);let n=this.get(t,!0);return!!S(n)&&n.hasIn(r)}setIn(e,t){let[r,...n]=e;if(0===n.length)this.set(r,t);else{let e=this.get(r,!0);if(S(e))e.setIn(n,t);else if(void 0===e&&this.schema)this.set(r,H(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}z.maxFlowStringSingleLineLength=60;let Y=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Q(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let X=(e,t,r)=>e.endsWith("\n")?Q(r,t):r.includes("\n")?"\n"+Q(r,t):(e.endsWith(" ")?"":" ")+r,Z="flow",ee="block",et="quoted";function er(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){let l,u,c;if(!o||o<0)return e;let f=Math.max(1+i,1+o-t.length);if(e.length<=f)return e;let p=[],h={},d=o-t.length;"number"==typeof n&&(n>o-Math.max(2,i)?p.push(0):d=o-n);let y=!1,m=-1,g=-1,v=-1;for(r===ee&&-1!==(m=en(e,m,t.length))&&(d=m+f);c=e[m+=1];){if(r===et&&"\\"===c){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===c)r===ee&&(m=en(e,m,t.length)),d=m+t.length+f,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[m+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=m)}if(m>=d){if(l)p.push(l),d=l+f,l=void 0;else if(r===et){for(;" "===u||" "===u;)u=c,c=e[m+=1],y=!0;let t=m>v+1?m-2:g-1;if(h[t])return e;p.push(t),h[t]=!0,d=t+f,l=void 0}else y=!0}}u=c}if(y&&s&&s(),0===p.length)return e;a&&a();let b=e.slice(0,p[0]);for(let n=0;n<p.length;++n){let o=p[n],i=p[n+1]||e.length;0===o?b=`
${t}${e.slice(0,i)}`:(r===et&&h[o]&&(b+=`${e[o]}\\`),b+=`
${t}${e.slice(o+1,i)}`)}return b}function en(e,t,r){let n=t,o=t+1,i=e[o];for(;" "===i||" "===i;)if(t<o+r)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);n=t,i=e[o=t+1]}return n}let eo=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ei=e=>/^(%|---|\.\.\.)/m.test(e);function ea(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(ei(e)?" ":""),a="",s=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(a+=r.slice(s,e)+"\\ ",e+=1,s=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{a+=r.slice(s,e);let t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=r.substr(e,6)}e+=5,s=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<o)e+=1;else{for(a+=r.slice(s,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)a+="\n",e+=2;a+=i," "===r[e+2]&&(a+="\\"),e+=1,s=e+1}break;default:e+=1}return a=s?a+r.slice(s):r,n?a:er(a,i,et,eo(t,!1))}function es(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return ea(e,t);let r=t.indent||(ei(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${r}`)+"'";return t.implicitKey?n:er(n,r,Z,eo(t,!1))}function el(e,t){let r;let{singleQuote:n}=t.options;if(!1===n)r=ea;else{let t=e.includes('"'),o=e.includes("'");r=t&&!o?es:o&&!t?ea:n?es:ea}return r(e,t)}try{n=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{n=/\n+(?!\n|$)/g}function eu({comment:e,type:t,value:r},o,i,a){let s,l,u;let{blockQuote:c,commentString:f,lineWidth:p}=o.options;if(!c||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return el(r,o);let h=o.indent||(o.forceBlockIndent||ei(r)?" ":""),d="literal"===c||"folded"!==c&&t!==V.BLOCK_FOLDED&&(t===V.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let t=0,r=0;t<o;++t)if("\n"===e[t]){if(t-r>n)return!0;if(o-(r=t+1)<=n)return!1}return!0}(r,p,h.length));if(!r)return d?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=r.substring(l),m=y.indexOf("\n");-1===m?s="-":r===y||m!==y.length-1?(s="+",a&&a()):s="",y&&(r=r.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(n,`$&${h}`));let g=!1,v=-1;for(u=0;u<r.length;++u){let e=r[u];if(" "===e)g=!0;else if("\n"===e)v=u;else break}let b=r.substring(0,v<u?v+1:u);b&&(r=r.substring(b.length),b=b.replace(/\n+/g,`$&${h}`));let w=h?"2":"1",S=(d?"|":">")+(g?w:"")+s;if(e&&(S+=" "+f(e.replace(/ ?[\r\n]+/g," ")),i&&i()),d)return r=r.replace(/\n+/g,`$&${h}`),`${S}
${h}${b}${r}${y}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let E=er(`${b}${r}${y}`,h,ee,eo(o,!0));return`${S}
${h}${E}`}function ec(e,t,r,n){let{implicitKey:o,inFlow:i}=t,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=V.QUOTE_DOUBLE);let l=e=>{switch(e){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return o||i?el(a.value,t):eu(a,t,r,n);case V.QUOTE_DOUBLE:return ea(a.value,t);case V.QUOTE_SINGLE:return es(a.value,t);case V.PLAIN:return function(e,t,r,n){let{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:l,indentStep:u,inFlow:c}=t;if(s&&i.includes("\n")||c&&/[[\]{},]/.test(i))return el(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||c||!i.includes("\n")?el(i,t):eu(e,t,r,n);if(!s&&!c&&o!==V.PLAIN&&i.includes("\n"))return eu(e,t,r,n);if(ei(i)){if(""===l)return t.forceBlockIndent=!0,eu(e,t,r,n);if(s&&l===u)return el(i,t)}let f=i.replace(/\n+/g,`$&
${l}`);if(a){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:r,tags:n}=t.doc.schema;if(n.some(e)||r?.some(e))return el(i,t)}return s?f:er(f,l,Z,eo(t,!1))}(a,t,r,n);default:return null}},u=l(s);if(null===u){let{defaultKeyType:e,defaultStringType:r}=t.options,n=o&&e||r;if(null===(u=l(n)))throw Error(`Unsupported default string type ${n}`)}return u}function ef(e,t){let r;let n=Object.assign({blockQuote:!0,commentString:Y,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function ep(e,t,r,n){let o;if(v(e))return e.toString(t,r,n);if(y(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i=E(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o||(o=function(e,t){let r,n;if(t.tag){let r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}if(b(t)){r=t.value;let o=e.filter(e=>e.identify?.(r));n=o.find(e=>e.format===t.format)??o.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??typeof r;throw Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,i));let a=function(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],i=(b(e)||S(e))&&e.anchor;i&&B(i)&&(r.add(i),o.push(`&${i}`));let a=e.tag?e.tag:t.default?null:t.tag;return a&&o.push(n.directives.tagString(a)),o.join(" ")}(i,o,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s="function"==typeof o.stringify?o.stringify(i,t,r,n):b(i)?ec(i,t,r,n):i.toString(t,r,n);return a?b(i)||"{"===s[0]||"["===s[0]?`${a} ${s}`:`${a}
${t.indent}${s}`:s}var eh=r(49079);function ed(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&ey(r)){if(w(n=y(n)?n.resolve(e.doc):n))for(let r of n.items)em(e,t,r);else if(Array.isArray(n))for(let r of n)em(e,t,r);else em(e,t,n)}else{let o=$(r,"",e);if(t instanceof Map)t.set(o,$(n,o,e));else if(t instanceof Set)t.add(o);else{let i=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(E(e)&&r?.doc){let t=ef(r.doc,{});for(let e of(t.anchors=new Set,r.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let i=e.toString(t);if(!r.mapKeyWarned){var n,o;let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),n=r.doc.options.logLevel,o=`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`,("debug"===n||"warn"===n)&&(void 0!==eh&&eh.emitWarning?eh.emitWarning(o):console.warn(o)),r.mapKeyWarned=!0}return i}return JSON.stringify(t)}(r,o,e),a=$(n,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}let ey=e=>"<<"===e||b(e)&&"<<"===e.value&&(!e.type||e.type===V.PLAIN);function em(e,t,r){let n=e&&y(r)?r.resolve(e.doc):r;if(!g(n))throw Error("Merge sources must be maps or map aliases");for(let[r,o]of n.toJSON(null,e,Map))t instanceof Map?t.has(r)||t.set(r,o):t instanceof Set?t.add(r):Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function eg(e,t,r){return new ev(G(e,void 0,r),G(t,void 0,r))}class ev{constructor(e,t=null){Object.defineProperty(this,d,{value:f}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return E(t)&&(t=t.clone(e)),E(r)&&(r=r.clone(e)),new ev(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return ed(t,r,this)}toString(e,t,r){return e?.doc?function({key:e,value:t},r,n,o){let i,a,s;let{allNullValues:l,doc:u,indent:c,indentStep:f,options:{commentString:p,indentSeq:h,simpleKeys:d}}=r,y=E(e)&&e.comment||null;if(d){if(y)throw Error("With simple keys, key nodes cannot have comments");if(S(e))throw Error("With simple keys, collection cannot be used as a key value")}let m=!d&&(!e||y&&null==t&&!r.inFlow||S(e)||(b(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!m&&(d||!l),indent:c+f});let g=!1,v=!1,O=ep(e,r,()=>g=!0,()=>v=!0);if(!m&&!r.inFlow&&O.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.inFlow){if(l||null==t)return g&&n&&n(),""===O?"?":m?`? ${O}`:O}else if(l&&!d||null==t&&m)return O=`? ${O}`,y&&!g?O+=X(O,r.indent,p(y)):v&&o&&o(),O;g&&(y=null),m?(y&&(O+=X(O,r.indent,p(y))),O=`? ${O}
${c}:`):(O=`${O}:`,y&&(O+=X(O,r.indent,p(y)))),E(t)?(i=!!t.spaceBefore,a=t.commentBefore,s=t.comment):(i=!1,a=null,s=null,t&&"object"==typeof t&&(t=u.createNode(t))),r.implicitKey=!1,!m&&!y&&b(t)&&(r.indentAtStart=O.length+1),v=!1,!(!h&&f.length>=2&&!r.inFlow&&!m&&w(t))||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let A=!1,_=ep(t,r,()=>A=!0,()=>v=!0),x=" ";if(y||i||a){if(x=i?"\n":"",a){let e=p(a);x+=`
${Q(e,r.indent)}`}""!==_||r.inFlow?x+=`
${r.indent}`:"\n"===x&&(x="\n\n")}else if(!m&&S(t)){let e=_[0],n=_.indexOf("\n"),o=-1!==n,i=r.inFlow??t.flow??0===t.items.length;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let r=_.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===_[r+1]&&(r=_.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}t||(x=`
${r.indent}`)}}else(""===_||"\n"===_[0])&&(x="");return O+=x+_,r.inFlow?A&&n&&n():s&&!A?O+=X(O,r.indent,p(s)):v&&o&&o(),O}(this,e,t,r):JSON.stringify(this)}}function eb(e,t,r){return(t.inFlow??e.flow?function({items:e},t,{flowChars:r,itemIndent:n}){let{indent:o,indentStep:i,flowCollectionPadding:a,options:{commentString:s}}=t,l=Object.assign({},t,{indent:n+=i,inFlow:!0,type:null}),u=!1,c=0,f=[];for(let r=0;r<e.length;++r){let o=e[r],i=null;if(E(o))o.spaceBefore&&f.push(""),ew(t,f,o.commentBefore,!1),o.comment&&(i=o.comment);else if(v(o)){let e=E(o.key)?o.key:null;e&&(e.spaceBefore&&f.push(""),ew(t,f,e.commentBefore,!1),e.comment&&(u=!0));let r=E(o.value)?o.value:null;r?(r.comment&&(i=r.comment),r.commentBefore&&(u=!0)):null==o.value&&e?.comment&&(i=e.comment)}i&&(u=!0);let a=ep(o,l,()=>i=null);r<e.length-1&&(a+=","),i&&(a+=X(a,n,s(i))),!u&&(f.length>c||a.includes("\n"))&&(u=!0),f.push(a),c=f.length}let{start:p,end:h}=r;if(0===f.length)return p+h;if(!u){let e=f.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${p}${a}${f.join(" ")}${a}${h}`;{let e=p;for(let t of f)e+=t?`
${i}${o}${t}`:"\n";return`${e}
${o}${h}`}}:function({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){let l;let{indent:u,options:{commentString:c}}=r,f=Object.assign({},r,{indent:i,type:null}),p=!1,h=[];for(let e=0;e<t.length;++e){let o=t[e],a=null;if(E(o))!p&&o.spaceBefore&&h.push(""),ew(r,h,o.commentBefore,p),o.comment&&(a=o.comment);else if(v(o)){let e=E(o.key)?o.key:null;e&&(!p&&e.spaceBefore&&h.push(""),ew(r,h,e.commentBefore,p))}p=!1;let s=ep(o,f,()=>a=null,()=>p=!0);a&&(s+=X(s,i,c(a))),p&&a&&(p=!1),h.push(n+s)}if(0===h.length)l=o.start+o.end;else{l=h[0];for(let e=1;e<h.length;++e){let t=h[e];l+=t?`
${u}${t}`:"\n"}}return e?(l+="\n"+Q(c(e),u),s&&s()):p&&a&&a(),l})(e,t,r)}function ew({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let o=Q(t(n),e);r.push(o.trimStart())}}function eS(e,t){let r=b(t)?t.value:t;for(let n of e)if(v(n)&&(n.key===t||n.key===r||b(n.key)&&n.key.value===r))return n}class eE extends z{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(c,e),this.items=[]}static from(e,t,r){let{keepUndefined:n,replacer:o}=r,i=new this(e),a=(e,a)=>{if("function"==typeof o)a=o.call(t,e,a);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==a||n)&&i.items.push(eg(e,a,r))};if(t instanceof Map)for(let[e,r]of t)a(e,r);else if(t&&"object"==typeof t)for(let e of Object.keys(t))a(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let r;r=v(e)?e:e&&"object"==typeof e&&"key"in e?new ev(e.key,e.value):new ev(e,e?.value);let n=eS(this.items,r.key),o=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${r.key} already set`);b(n.value)&&K(r.value)?n.value.value=r.value:n.value=r.value}else if(o){let e=this.items.findIndex(e=>0>o(r,e));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){let t=eS(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let r=eS(this.items,e),n=r?.value;return(!t&&b(n)?n.value:n)??void 0}has(e){return!!eS(this.items,e)}set(e,t){this.add(new ev(e,t),!0)}toJSON(e,t,r){let n=r?new r:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(n),this.items))ed(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!v(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),eb(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}let eO={collection:"map",default:!0,nodeClass:eE,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(g(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>eE.from(e,t,r)};class eA extends z{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(h,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=e_(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let r=e_(e);if("number"!=typeof r)return;let n=this.items[r];return!t&&b(n)?n.value:n}has(e){let t=e_(e);return"number"==typeof t&&t<this.items.length}set(e,t){let r=e_(e);if("number"!=typeof r)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[r];b(n)&&K(t)?n.value=t:this.items[r]=t}toJSON(e,t){let r=[];t?.onCreate&&t.onCreate(r);let n=0;for(let e of this.items)r.push($(e,String(n++),t));return r}toString(e,t,r){return e?eb(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){let{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof n){let r=t instanceof Set?i:String(e++);i=n.call(t,r,i)}o.items.push(G(i,void 0,r))}}return o}}function e_(e){let t=b(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let ex={collection:"seq",default:!0,nodeClass:eA,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(w(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>eA.from(e,t,r)},ek={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>ec(e,t=Object.assign({actualString:!0},t),r,n)},eR={identify:e=>null==e,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new V(null),stringify:({source:e},t)=>"string"==typeof e&&eR.test.test(e)?e:t.options.nullStr},eN={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new V("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&eN.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};function eT({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);let o="number"==typeof n?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let r=t-(i.length-e-1);for(;r-- >0;)i+="0"}return i}let eP={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eT},ej={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eT(e)}},eI={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new V(parseFloat(e)),r=e.indexOf(".");return -1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:eT},eL=e=>"bigint"==typeof e||Number.isInteger(e),eC=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function eM(e,t,r){let{value:n}=e;return eL(n)&&n>=0?r+n.toString(t):eT(e)}let eB={identify:e=>eL(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>eC(e,2,8,r),stringify:e=>eM(e,8,"0o")},eD={identify:eL,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>eC(e,0,10,r),stringify:eT},eU={identify:e=>eL(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>eC(e,2,16,r),stringify:e=>eM(e,16,"0x")},eF=[eO,ex,ek,eR,eN,eB,eD,eU,eP,ej,eI];function e$(e){return"bigint"==typeof e||Number.isInteger(e)}let eq=({value:e})=>JSON.stringify(e),eW=[eO,ex].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eq},{identify:e=>null==e,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eq},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:eq},{identify:e$,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>e$(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eq}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var eK=r(23663).Buffer;let eV={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof eK)return eK.from(e,"base64");if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}},stringify({comment:e,type:t,value:r},n,o,i){let a;if("function"==typeof eK)a=r instanceof eK?r.toString("base64"):eK.from(r.buffer).toString("base64");else if("function"==typeof btoa){let e="";for(let t=0;t<r.length;++t)e+=String.fromCharCode(r[t]);a=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=V.BLOCK_LITERAL),t!==V.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),r=Math.ceil(a.length/e),o=Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=a.substr(n,e);a=o.join(t===V.BLOCK_LITERAL?"\n":" ")}return ec({comment:e,type:t,value:a},n,o,i)}};function eG(e,t){if(w(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!v(n)){if(g(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let e=n.items[0]||new ev(new V(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
${e.key.commentBefore}`:n.commentBefore),n.comment){let t=e.value??e.key;t.comment=t.comment?`${n.comment}
${t.comment}`:n.comment}n=e}e.items[r]=v(n)?n:new ev(n)}}else t("Expected a sequence for this tag");return e}function eH(e,t,r){let{replacer:n}=r,o=new eA(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let a,s;if("function"==typeof n&&(e=n.call(t,String(i++),e)),Array.isArray(e)){if(2===e.length)a=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)s=e[a=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else a=e;o.items.push(eg(a,s,r))}return o}let eJ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eG,createNode:eH};class ez extends eA{constructor(){super(),this.add=eE.prototype.add.bind(this),this.delete=eE.prototype.delete.bind(this),this.get=eE.prototype.get.bind(this),this.has=eE.prototype.has.bind(this),this.set=eE.prototype.set.bind(this),this.tag=ez.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;for(let e of(t?.onCreate&&t.onCreate(r),this.items)){let n,o;if(v(e)?(n=$(e.key,"",t),o=$(e.value,n,t)):n=$(e,"",t),r.has(n))throw Error("Ordered maps must not include duplicate keys");r.set(n,o)}return r}static from(e,t,r){let n=eH(e,t,r),o=new this;return o.items=n.items,o}}ez.tag="tag:yaml.org,2002:omap";let eY={collection:"seq",identify:e=>e instanceof Map,nodeClass:ez,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=eG(e,t),n=[];for(let{key:e}of r.items)b(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new ez,r)},createNode:(e,t,r)=>ez.from(e,t,r)};function eQ({value:e,source:t},r){return t&&(e?eX:eZ).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}let eX={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new V(!0),stringify:eQ},eZ={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new V(!1),stringify:eQ},e0=e=>"bigint"==typeof e||Number.isInteger(e);function e1(e,t,r,{intAsBigInt:n}){let o=e[0];if(("-"===o||"+"===o)&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===o?BigInt(-1)*t:t}let i=parseInt(e,r);return"-"===o?-1*i:i}function e2(e,t,r){let{value:n}=e;if(e0(n)){let e=n.toString(t);return n<0?"-"+r+e.substr(1):r+e}return eT(e)}class e4 extends eE{constructor(e){super(e),this.tag=e4.tag}add(e){let t;t=v(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ev(e.key,null):new ev(e,null),eS(this.items,t.key)||this.items.push(t)}get(e,t){let r=eS(this.items,e);return!t&&v(r)?b(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=eS(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new ev(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw Error("Set items must all have null values")}static from(e,t,r){let{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),o.items.push(eg(e,null,r));return o}}e4.tag="tag:yaml.org,2002:set";let e3={collection:"map",identify:e=>e instanceof Set,nodeClass:e4,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>e4.from(e,t,r),resolve(e,t){if(g(e)){if(e.hasAllNullValues(!0))return Object.assign(new e4,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function e6(e,t){let r=e[0],n="-"===r||"+"===r?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=n.replace(/_/g,"").split(":").reduce((e,t)=>e*o(60)+o(t),o(0));return"-"===r?o(-1)*i:i}function e8(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eT(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e5={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>e6(e,r),stringify:e8},e9={identify:e=>"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:e=>e6(e,!1),stringify:e8},e7={identify:e=>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(e){let t=e.match(e7.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,i,a,s]=t.map(Number),l=Date.UTC(r,n-1,o,i||0,a||0,s||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e6(u,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},te=[eO,ex,ek,eR,eX,eZ,{identify:e0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>e1(e,2,2,r),stringify:e=>e2(e,2,"0b")},{identify:e0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>e1(e,1,8,r),stringify:e=>e2(e,8,"0")},{identify:e0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>e1(e,0,10,r),stringify:eT},{identify:e0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>e1(e,2,16,r),stringify:e=>e2(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eT},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eT(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new V(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){let n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:eT},eV,eY,eJ,e3,e5,e9,e7],tt=new Map([["core",eF],["failsafe",[eO,ex,ek]],["json",eW],["yaml11",te],["yaml-1.1",te]]),tr={binary:eV,bool:eN,float:eI,floatExp:ej,floatNaN:eP,floatTime:e9,int:eD,intHex:eU,intOct:eB,intTime:e5,map:eO,null:eR,omap:eY,pairs:eJ,seq:ex,set:e3,timestamp:e7},tn={"tag:yaml.org,2002:binary":eV,"tag:yaml.org,2002:omap":eY,"tag:yaml.org,2002:pairs":eJ,"tag:yaml.org,2002:set":e3,"tag:yaml.org,2002:timestamp":e7};function to(e,t){let r=tt.get(t);if(!r){if(Array.isArray(e))r=[];else{let e=Array.from(tt.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return r.map(e=>{if("string"!=typeof e)return e;let t=tr[e];if(t)return t;let r=Object.keys(tr).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag "${e}"; use one of ${r}`)})}let ti=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class ta{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:o,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?to(e,"compat"):e?to(null,e):null,this.merge=!!r,this.name="string"==typeof o&&o||"core",this.knownTags=n?tn:{},this.tags=to(t,this.name),this.toStringOptions=a??null,Object.defineProperty(this,c,{value:eO}),Object.defineProperty(this,p,{value:ek}),Object.defineProperty(this,h,{value:ex}),this.sortMapEntries="function"==typeof i?i:!0===i?ti:null}clone(){let e=Object.create(ta.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class ts{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,d,{value:u});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:i}=o;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new M({version:i}),this.setSchema(i,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){let e=Object.create(ts.prototype,{[d]:{value:u}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=E(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){tl(this.contents)&&this.contents.add(e)}addIn(e,t){tl(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=D(this);e.anchor=!t||r.has(t)?U(t||"a",r):t}return new W(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),n=t}else void 0===r&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:o,anchorPrefix:i,flow:a,keepUndefined:s,onTagObj:l,tag:u}=r??{},{onAnchor:c,setAnchors:f,sourceObjects:p}=function(e,t){let r=[],n=new Map,o=null;return{onAnchor:n=>{r.push(n),o||(o=D(e));let i=U(t,o);return o.add(i),i},setAnchors:()=>{for(let e of r){let t=n.get(e);if("object"==typeof t&&t.anchor&&(b(t.node)||S(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:n}}(this,i||"a"),h={aliasDuplicateObjects:o??!0,keepUndefined:s??!1,onAnchor:c,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:p},d=G(e,u,h);return a&&S(d)&&(d.flow=!0),f(),d}createPair(e,t,r={}){return new ev(this.createNode(e,null,r),this.createNode(t,null,r))}delete(e){return!!tl(this.contents)&&this.contents.delete(e)}deleteIn(e){return J(e)?null!=this.contents&&(this.contents=null,!0):!!tl(this.contents)&&this.contents.deleteIn(e)}get(e,t){return S(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return J(e)?!t&&b(this.contents)?this.contents.value:this.contents:S(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!S(this.contents)&&this.contents.has(e)}hasIn(e){return J(e)?void 0!==this.contents:!!S(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=H(this.schema,[e],t):tl(this.contents)&&this.contents.set(e,t)}setIn(e,t){J(e)?this.contents=t:null==this.contents?this.contents=H(this.schema,Array.from(e),t):tl(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new M({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new M({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new ta(Object.assign(r,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=$(this.contents,t??"",a);if("function"==typeof o)for(let{count:e,res:t}of a.anchors.values())o(t,e);return"function"==typeof i?F(i,{"":s},"",s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let r=[],n=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(r.push(t),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=ef(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==r.length&&r.unshift("");let t=i(e.commentBefore);r.unshift(Q(t,""))}let a=!1,s=null;if(e.contents){if(E(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);r.push(Q(t,""))}o.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>a=!0,l=ep(e.contents,o,()=>s=null,t);s&&(l+=X(l,"",i(s))),("|"===l[0]||">"===l[0])&&"---"===r[r.length-1]?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(ep(e.contents,o));if(e.directives?.docEnd){if(e.comment){let t=i(e.comment);t.includes("\n")?(r.push("..."),r.push(Q(t,""))):r.push(`... ${t}`)}else r.push("...")}else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&((!a||s)&&""!==r[r.length-1]&&r.push(""),r.push(Q(i(t),"")))}return r.join("\n")+"\n"}(this,e)}}function tl(e){if(S(e))return!0;throw Error("Expected a YAML collection as document contents")}class tu extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}function tc(e,{flow:t,indicator:r,next:n,offset:o,onError:i,startOnNewline:a}){let s=!1,l=a,u=a,c="",f="",p=!1,h=!1,d=!1,y=null,m=null,g=null,v=null,b=null;for(let n of e)switch(d&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),n.type){case"space":!t&&l&&"doc-start"!==r&&" "===n.source[0]&&i(n,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||i(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=n.source.substring(1)||" ";c?c+=f+e:c=e,f="",l=!1;break}case"newline":l?c?c+=n.source:s=!0:f+=n.source,l=!0,p=!0,(y||m)&&(h=!0),u=!0;break;case"anchor":y&&i(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&i(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=n,null===b&&(b=n.offset),l=!1,u=!1,d=!0;break;case"tag":m&&i(n,"MULTIPLE_TAGS","A node can have at most one tag"),m=n,null===b&&(b=n.offset),l=!1,u=!1,d=!0;break;case r:(y||m)&&i(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),v&&i(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),v=n,l=!1,u=!1;break;case"comma":if(t){g&&i(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=n,l=!1,u=!1;break}default:i(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),l=!1,u=!1}let w=e[e.length-1],S=w?w.offset+w.source.length:o;return d&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:v,spaceBefore:s,comment:c,hasNewline:p,hasNewlineAfterProp:h,anchor:y,tag:m,end:S,start:b??S}}function tf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(tf(t.key)||tf(t.value))return!0}return!1;default:return!0}}function tp(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&tf(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function th(e,t,r){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let o="function"==typeof n?n:(t,r)=>t===r||b(t)&&b(r)&&t.value===r.value&&!("<<"===t.value&&e.schema.merge);return t.some(e=>o(e.key,r))}let td="All mapping items must start at the same column";function ty(e,t,r,n){let o="";if(e){let i=!1,a="";for(let s of e){let{source:e,type:l}=s;switch(l){case"space":i=!0;break;case"comment":{r&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";o?o+=a+t:o=t,a="";break}case"newline":o&&(a+=e),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:o,offset:t}}let tm="Block collections are not allowed within flow collections",tg=e=>e&&("block-map"===e.type||"block-seq"===e.type);function tv(e,t,r,n,o,i){let a="block-map"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=new(i?.nodeClass??eE)(r.schema);r.atRoot&&(r.atRoot=!1);let s=n.offset,l=null;for(let i of n.items){let{start:u,key:c,sep:f,value:p}=i,h=tc(u,{indicator:"explicit-key-ind",next:c??f?.[0],offset:s,onError:o,startOnNewline:!0}),d=!h.found;if(d){if(c&&("block-seq"===c.type?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==n.indent&&o(s,"BAD_INDENT",td)),!h.anchor&&!h.tag&&!f){l=h.end,h.comment&&(a.comment?a.comment+="\n"+h.comment:a.comment=h.comment);continue}(h.hasNewlineAfterProp||tf(c))&&o(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&o(s,"BAD_INDENT",td);let y=h.end,m=c?e(r,c,h,o):t(r,y,u,null,h,o);r.schema.compat&&tp(n.indent,c,o),th(r,a.items,m)&&o(y,"DUPLICATE_KEY","Map keys must be unique");let g=tc(f??[],{indicator:"map-value-ind",next:p,offset:m.range[2],onError:o,startOnNewline:!c||"block-scalar"===c.type});if(s=g.end,g.found){d&&(p?.type!=="block-map"||g.hasNewline||o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<g.found.offset-1024&&o(m.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=p?e(r,p,g,o):t(r,s,f,null,g,o);r.schema.compat&&tp(n.indent,p,o),s=l.range[2];let u=new ev(m,l);r.options.keepSourceTokens&&(u.srcToken=i),a.items.push(u)}else{d&&o(m.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(m.comment?m.comment+="\n"+g.comment:m.comment=g.comment);let e=new ev(m);r.options.keepSourceTokens&&(e.srcToken=i),a.items.push(e)}}return l&&l<s&&o(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,s,l??s],a}(e,t,r,n,i):"block-seq"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=new(i?.nodeClass??eA)(r.schema);r.atRoot&&(r.atRoot=!1);let s=n.offset,l=null;for(let{start:i,value:u}of n.items){let c=tc(i,{indicator:"seq-item-ind",next:u,offset:s,onError:o,startOnNewline:!0});if(!c.found){if(c.anchor||c.tag||u)u&&"block-seq"===u.type?o(c.end,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{l=c.end,c.comment&&(a.comment=c.comment);continue}}let f=u?e(r,u,c,o):t(r,c.end,i,null,c,o);r.schema.compat&&tp(n.indent,u,o),s=f.range[2],a.items.push(f)}return a.range=[n.offset,s,l??s],a}(e,t,r,n,i):function({composeNode:e,composeEmptyNode:t},r,n,o,i){let a="{"===n.start.source,s=a?"flow map":"flow sequence",l=new(i?.nodeClass??(a?eE:eA))(r.schema);l.flow=!0;let u=r.atRoot;u&&(r.atRoot=!1);let c=n.offset+n.start.source.length;for(let i=0;i<n.items.length;++i){let u=n.items[i],{start:f,key:p,sep:h,value:d}=u,y=tc(f,{flow:s,indicator:"explicit-key-ind",next:p??h?.[0],offset:c,onError:o,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!h&&!d){0===i&&y.comma?o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):i<n.items.length-1&&o(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),y.comment&&(l.comment?l.comment+="\n"+y.comment:l.comment=y.comment),c=y.end;continue}!a&&r.options.strict&&tf(p)&&o(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)y.comma&&o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(y.comma||o(y.start,"MISSING_CHAR",`Missing , between ${s} items`),y.comment){let e="";e:for(let t of f)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];v(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,y.comment=y.comment.substring(e.length+1)}}if(a||h||y.found){let n=y.end,i=p?e(r,p,y,o):t(r,n,f,null,y,o);tg(p)&&o(i.range,"BLOCK_IN_FLOW",tm);let m=tc(h??[],{flow:s,indicator:"map-value-ind",next:d,offset:i.range[2],onError:o,startOnNewline:!1});if(m.found){if(!a&&!y.found&&r.options.strict){if(h)for(let e of h){if(e===m.found)break;if("newline"===e.type){o(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<m.found.offset-1024&&o(m.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else d&&("source"in d&&d.source&&":"===d.source[0]?o(d,"MISSING_CHAR",`Missing space after : in ${s}`):o(m.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let g=d?e(r,d,m,o):m.found?t(r,m.end,h,null,m,o):null;g?tg(d)&&o(g.range,"BLOCK_IN_FLOW",tm):m.comment&&(i.comment?i.comment+="\n"+m.comment:i.comment=m.comment);let v=new ev(i,g);if(r.options.keepSourceTokens&&(v.srcToken=u),a)th(r,l.items,i)&&o(n,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(v);else{let e=new eE(r.schema);e.flow=!0,e.items.push(v),l.items.push(e)}c=g?g.range[2]:m.end}else{let n=d?e(r,d,y,o):t(r,y.end,h,null,y,o);l.items.push(n),c=n.range[2],tg(d)&&o(n.range,"BLOCK_IN_FLOW",tm)}}let f=a?"}":"]",[p,...h]=n.end,d=c;if(p&&p.source===f)d=p.offset+p.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=u?`${e} must end with a ${f}`:`${e} in block collection must be sufficiently indented and end with a ${f}`;o(c,u?"MISSING_CHAR":"BAD_INDENT",t),p&&1!==p.source.length&&h.unshift(p)}if(h.length>0){let e=ty(h,d,r.options.strict,o);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[n.offset,d,e.offset]}else l.range=[n.offset,d,d];return l}(e,t,r,n,i),s=a.constructor;return"!"===o||o===s.tagName?a.tag=s.tagName:o&&(a.tag=o),a}function tb(e){let t,r;try{t=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),r=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let o=n[1],i=" ",a=t.lastIndex;for(r.lastIndex=a;n=r.exec(e);)""===n[1]?"\n"===i?o+=i:i="\n":(o+=i+n[1],i=" "),a=r.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=a,n=s.exec(e),o+i+(n?.[1]??"")}let tw={0:"\x00",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function tS(e,t,r,n){let o;let{value:i,type:a,comment:s,range:l}="block-scalar"===t.type?function(e,t,r){let n=e.offset,o=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:o}=t[0],i=o[0],a=0,s="",l=-1;for(let t=1;t<o.length;++t){let r=o[t];if(s||"-"!==r&&"+"!==r){let n=Number(r);!a&&n?a=n:-1===l&&(l=e+t)}else s=r}-1!==l&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,c="",f=o.length;for(let e=1;e<t.length;++e){let o=t[e];switch(o.type){case"space":u=!0;case"newline":f+=o.source.length;break;case"comment":r&&!u&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=o.source.length,c=o.source.substring(1);break;case"error":n(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{let e=`Unexpected token in block scalar header: ${o.type}`;n(o,"UNEXPECTED_TOKEN",e);let t=o.source;t&&"string"==typeof t&&(f+=t.length)}}}return{mode:i,indent:a,chomp:s,comment:c,length:f}}(e,t,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let i=">"===o.mode?V.BLOCK_FOLDED:V.BLOCK_LITERAL,a=e.source?function(e){let t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),o=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(e.source):[],s=a.length;for(let e=a.length-1;e>=0;--e){let t=a[e][1];if(""===t||"\r"===t)s=e;else break}if(0===s){let t="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"",r=n+o.length;return e.source&&(r+=e.source.length),{value:t,type:i,comment:o.comment,range:[n,r,r]}}let l=e.indent+o.indent,u=e.offset+o.length,c=0;for(let e=0;e<s;++e){let[t,n]=a[e];if(""===n||"\r"===n)0===o.indent&&t.length>l&&(l=t.length);else{t.length<l&&r(u+t.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===o.indent&&(l=t.length),c=e;break}u+=t.length+n.length+1}for(let e=a.length-1;e>=s;--e)a[e][0].length>l&&(s=e+1);let f="",p="",h=!1;for(let e=0;e<c;++e)f+=a[e][0].slice(l)+"\n";for(let e=c;e<s;++e){let[t,n]=a[e];u+=t.length+n.length+1;let s="\r"===n[n.length-1];if(s&&(n=n.slice(0,-1)),n&&t.length<l){let e=o.indent?"explicit indentation indicator":"first line",i=`Block scalar lines must not be less indented than their ${e}`;r(u-n.length-(s?2:1),"BAD_INDENT",i),t=""}i===V.BLOCK_LITERAL?(f+=p+t.slice(l)+n,p="\n"):t.length>l||" "===n[0]?(" "===p?p="\n":h||"\n"!==p||(p="\n\n"),f+=p+t.slice(l)+n,p="\n",h=!0):""===n?"\n"===p?f+="\n":p="\n":(f+=p+n,p=" ",h=!1)}switch(o.chomp){case"-":break;case"+":for(let e=s;e<a.length;++e)f+="\n"+a[e][0].slice(l);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}let d=n+o.length+e.source.length;return{value:f,type:i,comment:o.comment,range:[n,d,d]}}(t,e.options.strict,n):function(e,t,r){let n,o;let{offset:i,type:a,source:s,end:l}=e,u=(e,t,n)=>r(i+e,t,n);switch(a){case"scalar":n=V.PLAIN,o=function(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),tb(e)}(s,u);break;case"single-quoted-scalar":n=V.QUOTE_SINGLE,("'"!==s[s.length-1]||1===s.length)&&u(s.length,"MISSING_CHAR","Missing closing 'quote"),o=tb(s.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=V.QUOTE_DOUBLE,o=function(e,t){let r="";for(let n=1;n<e.length-1;++n){let o=e[n];if("\r"!==o||"\n"!==e[n+1]){if("\n"===o){let{fold:t,offset:o}=function(e,t){let r="",n=e[t+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[t+2]);)"\n"===n&&(r+="\n"),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}(e,n);r+=t,n=o}else if("\\"===o){let o=e[++n],i=tw[o];if(i)r+=i;else if("\n"===o)for(o=e[n+1];" "===o||" "===o;)o=e[++n+1];else if("\r"===o&&"\n"===e[n+1])for(o=e[++n+1];" "===o||" "===o;)o=e[++n+1];else if("x"===o||"u"===o||"U"===o){let i={x:2,u:4,U:8}[o];r+=function(e,t,r,n){let o=e.substr(t,r),i=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){let o=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(i)}(e,n+1,i,t),n+=i}else{let o=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),r+=o}}else if(" "===o||" "===o){let t=n,i=e[n+1];for(;" "===i||" "===i;)i=e[++n+1];"\n"===i||"\r"===i&&"\n"===e[n+2]||(r+=n>t?e.slice(t,n+1):o)}else r+=o}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(s,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[i,i+s.length,i+s.length]}}let c=i+s.length,f=ty(l,c,t,r);return{value:o,type:n,comment:f.comment,range:[i,c,f.offset]}}(t,e.options.strict,n),u=r?e.directives.tagName(r.source,e=>n(r,"TAG_RESOLVE_FAILED",e)):null,c=r&&u?function(e,t,r,n,o){if("!"===r)return e[p];let i=[];for(let t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(let e of i)if(e.test?.test(t))return e;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[p])}(e.schema,i,u,r,n):"scalar"===t.type?function({directives:e,schema:t},r,n,o){let i=t.tags.find(e=>e.default&&e.test?.test(r))||t[p];if(t.compat){let a=t.compat.find(e=>e.default&&e.test?.test(r))??t[p];if(i.tag!==a.tag){let t=e.tagString(i.tag),r=e.tagString(a.tag);o(n,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t} or ${r}`,!0)}}return i}(e,i,t,n):e.schema[p];try{let a=c.resolve(i,e=>n(r??t,"TAG_RESOLVE_FAILED",e),e.options);o=b(a)?a:new V(a)}catch(e){n(r??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),o=new V(i)}return o.range=l,o.source=i,a&&(o.type=a),u&&(o.tag=u),c.format&&(o.format=c.format),s&&(o.comment=s),o}let tE={composeNode:function(e,t,r,n){let o;let{spaceBefore:i,comment:a,anchor:s,tag:l}=r,u=!0;switch(t.type){case"alias":o=function({options:e},{offset:t,source:r,end:n},o){let i=new W(r.substring(1));""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,s=ty(n,a,e.strict,o);return i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment),i}(e,t,n),(s||l)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":o=tS(e,t,l,n),s&&(o.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":o=function(e,t,r,n,o){let i=n?t.directives.tagName(n.source,e=>o(n,"TAG_RESOLVE_FAILED",e)):null,a="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!n||!i||"!"===i||i===eE.tagName&&"map"===a||i===eA.tagName&&"seq"===a||!a)return tv(e,t,r,o,i);let s=t.schema.tags.find(e=>e.tag===i&&e.collection===a);if(!s){let l=t.schema.knownTags[i];if(!l||l.collection!==a)return l?.collection?o(n,"BAD_COLLECTION_TYPE",`${l.tag} used for ${a} collection, but expects ${l.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),tv(e,t,r,o,i);t.schema.tags.push(Object.assign({},l,{default:!1})),s=l}let l=tv(e,t,r,o,i,s),u=s.resolve?.(l,e=>o(n,"TAG_RESOLVE_FAILED",e),t.options)??l,c=E(u)?u:new V(u);return c.range=l.range,c.tag=i,s?.format&&(c.format=s.format),c}(tE,e,t,l,n),s&&(o.anchor=s.source.substring(1));break;default:{let i="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",i),o=tO(e,t.offset,void 0,null,r,n),u=!1}}return s&&""===o.anchor&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(o.spaceBefore=!0),a&&("scalar"===t.type&&""===t.source?o.comment=a:o.commentBefore=a),e.options.keepSourceTokens&&u&&(o.srcToken=t),o},composeEmptyNode:tO};function tO(e,t,r,n,{spaceBefore:o,comment:i,anchor:a,tag:s,end:l},u){let c=tS(e,{type:"scalar",offset:function(e,t,r){if(t){null===r&&(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];r?.type==="space";)e+=r.source.length,r=t[++n];break}}return e}(t,r,n),indent:-1,source:""},s,u);return a&&(c.anchor=a.source.substring(1),""===c.anchor&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(c.spaceBefore=!0),i&&(c.comment=i,c.range[2]=l),c}let tA=Symbol("break visit"),t_=Symbol("skip children"),tx=Symbol("remove item");function tk(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,r,n){let o=n(r,t);if("symbol"==typeof o)return o;for(let i of["key","value"]){let a=r[i];if(a&&"items"in a){for(let r=0;r<a.items.length;++r){let o=e(Object.freeze(t.concat([[i,r]])),a.items[r],n);if("number"==typeof o)r=o-1;else{if(o===tA)return tA;o===tx&&(a.items.splice(r,1),r-=1)}}"function"==typeof o&&"key"===i&&(o=o(r,t))}}return"function"==typeof o?o(r,t):o}(Object.freeze([]),e,t)}function tR(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}tk.BREAK=tA,tk.SKIP=t_,tk.REMOVE=tx,tk.itemAtPath=(e,t)=>{let r=e;for(let[e,n]of t){let t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},tk.parentCollection=(e,t)=>{let r=tk.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw Error("Parent collection not found")};let tN="0123456789ABCDEFabcdef".split(""),tT="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),tP=",[]{}".split(""),tj=" ,[]{}\n\r ".split(""),tI=e=>!e||tj.includes(e);function tL(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function tC(e,t){return function(){return e.apply(t,arguments)}}let{toString:tM}=Object.prototype,{getPrototypeOf:tB}=Object,tD=(o=Object.create(null),e=>{let t=tM.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())}),tU=e=>(e=e.toLowerCase(),t=>tD(t)===e),tF=e=>t=>typeof t===e,{isArray:t$}=Array,tq=tF("undefined"),tW=tU("ArrayBuffer"),tK=tF("string"),tV=tF("function"),tG=tF("number"),tH=e=>null!==e&&"object"==typeof e,tJ=e=>{if("object"!==tD(e))return!1;let t=tB(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tz=tU("Date"),tY=tU("File"),tQ=tU("Blob"),tX=tU("FileList"),tZ=tU("URLSearchParams");function t0(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if("object"!=typeof e&&(e=[e]),t$(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}}function t1(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let t2="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,t4=e=>!tq(e)&&e!==t2,t3=(i="undefined"!=typeof Uint8Array&&tB(Uint8Array),e=>i&&e instanceof i),t6=tU("HTMLFormElement"),t8=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),t5=tU("RegExp"),t9=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};t0(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},t7="abcdefghijklmnopqrstuvwxyz",re="0123456789",rt={DIGIT:re,ALPHA:t7,ALPHA_DIGIT:t7+t7.toUpperCase()+re},rr=tU("AsyncFunction");var rn={isArray:t$,isArrayBuffer:tW,isBuffer:function(e){return null!==e&&!tq(e)&&null!==e.constructor&&!tq(e.constructor)&&tV(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||tV(e.append)&&("formdata"===(t=tD(e))||"object"===t&&tV(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&tW(e.buffer)},isString:tK,isNumber:tG,isBoolean:e=>!0===e||!1===e,isObject:tH,isPlainObject:tJ,isUndefined:tq,isDate:tz,isFile:tY,isBlob:tQ,isRegExp:t5,isFunction:tV,isStream:e=>tH(e)&&tV(e.pipe),isURLSearchParams:tZ,isTypedArray:t3,isFileList:tX,forEach:t0,merge:function e(){let{caseless:t}=t4(this)&&this||{},r={},n=(n,o)=>{let i=t&&t1(r,o)||o;tJ(r[i])&&tJ(n)?r[i]=e(r[i],n):tJ(n)?r[i]=e({},n):t$(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&t0(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(t0(t,(t,n)=>{r&&tV(t)?e[n]=tC(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&tB(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:tD,kindOfTest:tU,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(t$(e))return e;let t=e.length;if(!tG(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:t6,hasOwnProperty:t8,hasOwnProp:t8,reduceDescriptors:t9,freezeMethods:e=>{t9(e,(t,r)=>{if(tV(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(tV(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(t$(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:t1,global:t2,isContextDefined:t4,ALPHABET:rt,generateString:(e=16,t=rt.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&tV(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(tH(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let o=t$(e)?[]:{};return t0(e,(e,t)=>{let i=r(e,n+1);tq(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:rr,isThenable:e=>e&&(tH(e)||tV(e))&&tV(e.then)&&tV(e.catch)};function ro(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}rn.inherits(ro,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let ri=ro.prototype,ra={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ra[e]={value:e}}),Object.defineProperties(ro,ra),Object.defineProperty(ri,"isAxiosError",{value:!0}),ro.from=(e,t,r,n,o,i)=>{let a=Object.create(ri);return rn.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ro.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var rs=r(23663).Buffer;function rl(e){return rn.isPlainObject(e)||rn.isArray(e)}function ru(e){return rn.endsWith(e,"[]")?e.slice(0,-2):e}function rc(e,t,r){return e?e.concat(t).map(function(e,t){return e=ru(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let rf=rn.toFlatObject(rn,{},null,function(e){return/^is[A-Z]/.test(e)});var rp=function(e,t,r){if(!rn.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=rn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rn.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&rn.isSpecCompliantForm(t);if(!rn.isFunction(o))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(rn.isDate(e))return e.toISOString();if(!s&&rn.isBlob(e))throw new ro("Blob is not supported. Use a Buffer instead.");return rn.isArrayBuffer(e)||rn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):rs.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e){if(rn.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(rn.isArray(e)&&(u=e,rn.isArray(u)&&!u.some(rl))||(rn.isFileList(e)||rn.endsWith(r,"[]"))&&(s=rn.toArray(e)))return r=ru(r),s.forEach(function(e,n){rn.isUndefined(e)||null===e||t.append(!0===a?rc([r],n,i):null===a?r:r+"[]",l(e))}),!1}}return!!rl(e)||(t.append(rc(o,r,i),l(e)),!1)}let c=[],f=Object.assign(rf,{defaultVisitor:u,convertValue:l,isVisitable:rl});if(!rn.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!rn.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),rn.forEach(r,function(r,i){!0===(!(rn.isUndefined(r)||null===r)&&o.call(t,r,rn.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t};function rh(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function rd(e,t){this._pairs=[],e&&rp(e,this,t)}let ry=rd.prototype;function rm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rg(e,t,r){let n;if(!t)return e;let o=r&&r.encode||rm,i=r&&r.serialize;if(n=i?i(t,r):rn.isURLSearchParams(t)?t.toString():new rd(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ry.append=function(e,t){this._pairs.push([e,t])},ry.toString=function(e){let t=e?function(t){return e.call(this,t,rh)}:rh;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class rv{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rn.forEach(this.handlers,function(t){null!==t&&e(t)})}}var rb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rw="undefined"!=typeof URLSearchParams?URLSearchParams:rd,rS="undefined"!=typeof FormData?FormData:null,rE="undefined"!=typeof Blob?Blob:null;let rO="undefined"!=typeof window&&"undefined"!=typeof document,rA=(a="undefined"!=typeof navigator&&navigator.product,rO&&0>["ReactNative","NativeScript","NS"].indexOf(a)),r_="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var rx={...s,isBrowser:!0,classes:{URLSearchParams:rw,FormData:rS,Blob:rE},protocols:["http","https","file","blob","url","data"]},rk=function(e){if(rn.isFormData(e)&&rn.isFunction(e.entries)){let t={};return rn.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++],a=Number.isFinite(+i),s=o>=t.length;return(i=!i&&rn.isArray(n)?n.length:i,s)?rn.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r:(n[i]&&rn.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&rn.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!a}(rn.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let rR={transitional:rb,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=rn.isObject(e);if(i&&rn.isHTMLForm(e)&&(e=new FormData(e)),rn.isFormData(e))return o&&o?JSON.stringify(rk(e)):e;if(rn.isArrayBuffer(e)||rn.isBuffer(e)||rn.isStream(e)||rn.isFile(e)||rn.isBlob(e))return e;if(rn.isArrayBufferView(e))return e.buffer;if(rn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,rp(a,new rx.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return rx.isNode&&rn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=rn.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return rp(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(rn.isString(e))try{return(0,JSON.parse)(e),rn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||rR.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&rn.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw ro.from(e,ro.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rx.classes.FormData,Blob:rx.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rn.forEach(["delete","get","head","post","put","patch"],e=>{rR.headers[e]={}});let rN=rn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var rT=e=>{let t,r,n;let o={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&rN[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)}),o};let rP=Symbol("internals");function rj(e){return e&&String(e).trim().toLowerCase()}function rI(e){return!1===e||null==e?e:rn.isArray(e)?e.map(rI):String(e)}let rL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rC(e,t,r,n,o){if(rn.isFunction(n))return n.call(this,t,r);if(o&&(t=r),rn.isString(t)){if(rn.isString(n))return -1!==t.indexOf(n);if(rn.isRegExp(n))return n.test(t)}}class rM{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=rj(t);if(!o)throw Error("header name must be a non-empty string");let i=rn.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=rI(e))}let i=(e,t)=>rn.forEach(e,(e,r)=>o(e,r,t));return rn.isPlainObject(e)||e instanceof this.constructor?i(e,t):rn.isString(e)&&(e=e.trim())&&!rL(e)?i(rT(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=rj(e)){let r=rn.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(rn.isFunction(t))return t.call(this,e,r);if(rn.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rj(e)){let r=rn.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||rC(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=rj(e)){let o=rn.findKey(r,e);o&&(!t||rC(r,r[o],o,t))&&(delete r[o],n=!0)}}return rn.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||rC(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return rn.forEach(this,(n,o)=>{let i=rn.findKey(r,o);if(i){t[i]=rI(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=rI(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rn.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&rn.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[rP]=this[rP]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=rj(e);t[n]||(!function(e,t){let r=rn.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return rn.isArray(e)?e.forEach(n):n(e),this}}function rB(e,t){let r=this||rR,n=t||r,o=rM.from(n.headers),i=n.data;return rn.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function rD(e){return!!(e&&e.__CANCEL__)}function rU(e,t,r){ro.call(this,null==e?"canceled":e,ro.ERR_CANCELED,t,r),this.name="CanceledError"}rM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rn.reduceDescriptors(rM.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),rn.freezeMethods(rM),rn.inherits(rU,ro,{__CANCEL__:!0});var rF=rx.hasStandardBrowserEnv?{write(e,t,r,n,o,i){let a=[e+"="+encodeURIComponent(t)];rn.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),rn.isString(n)&&a.push("path="+n),rn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function r$(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var rq=rx.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=rn.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},rW=function(e,t){let r;let n=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=o[a];r||(r=l),n[i]=s,o[i]=l;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let p=u&&l-u;return p?Math.round(1e3*f/p):void 0}};function rK(e,t){let r=0,n=rW(50,250);return o=>{let i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s);r=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}let rV={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,o,i=e.data,a=rM.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if(rn.isFormData(i)){if(rx.hasStandardBrowserEnv||rx.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(o=a.getContentType())){let[e,...t]=o?o.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+r))}let f=r$(e.baseURL,e.url);function p(){if(!c)return;let n=rM.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ro("Request failed with status code "+r.status,[ro.ERR_BAD_REQUEST,ro.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),u()},function(e){r(e),u()},{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),rg(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(new ro("Request aborted",ro.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new ro("Network Error",ro.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||rb;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new ro(t,n.clarifyTimeoutError?ro.ETIMEDOUT:ro.ECONNABORTED,e,c)),c=null},rx.hasStandardBrowserEnv&&(l&&rn.isFunction(l)&&(l=l(e)),l||!1!==l&&rq(f))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&rF.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===i&&a.setContentType(null),"setRequestHeader"in c&&rn.forEach(a.toJSON(),function(e,t){c.setRequestHeader(t,e)}),rn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",rK(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",rK(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{c&&(r(!t||t.type?new rU(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let h=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);if(h&&-1===rx.protocols.indexOf(h)){r(new ro("Unsupported protocol "+h+":",ro.ERR_BAD_REQUEST,e));return}c.send(i||null)})}};rn.forEach(rV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let rG=e=>`- ${e}`,rH=e=>rn.isFunction(e)||null===e||!1===e;var rJ={getAdapter:e=>{let t,r;let{length:n}=e=rn.isArray(e)?e:[e],o={};for(let i=0;i<n;i++){let n;if(r=t=e[i],!rH(t)&&void 0===(r=rV[(n=String(t)).toLowerCase()]))throw new ro(`Unknown adapter '${n}'`);if(r)break;o[n||"#"+i]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ro("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(rG).join("\n"):" "+rG(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:rV};function rz(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rU(null,e)}function rY(e){return rz(e),e.headers=rM.from(e.headers),e.data=rB.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rJ.getAdapter(e.adapter||rR.adapter)(e).then(function(t){return rz(e),t.data=rB.call(e,e.transformResponse,t),t.headers=rM.from(t.headers),t},function(t){return!rD(t)&&(rz(e),t&&t.response&&(t.response.data=rB.call(e,e.transformResponse,t.response),t.response.headers=rM.from(t.response.headers))),Promise.reject(t)})}let rQ=e=>e instanceof rM?e.toJSON():e;function rX(e,t){t=t||{};let r={};function n(e,t,r){return rn.isPlainObject(e)&&rn.isPlainObject(t)?rn.merge.call({caseless:r},e,t):rn.isPlainObject(t)?rn.merge({},t):rn.isArray(t)?t.slice():t}function o(e,t,r){return rn.isUndefined(t)?rn.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!rn.isUndefined(t))return n(void 0,t)}function a(e,t){return rn.isUndefined(t)?rn.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(rQ(e),rQ(t),!0)};return rn.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=l[n]||o,a=i(e[n],t[n],n);rn.isUndefined(a)&&i!==s||(r[n]=a)}),r}let rZ="1.6.2",r0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{r0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let r1={};r0.transitional=function(e,t,r){function n(e,t){return"[Axios v"+rZ+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new ro(n(o," has been removed"+(t?" in "+t:"")),ro.ERR_DEPRECATED);return t&&!r1[o]&&(r1[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var r2={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ro("options must be an object",ro.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new ro("option "+i+" must be "+r,ro.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ro("Unknown option "+i,ro.ERR_BAD_OPTION)}},validators:r0};let r4=r2.validators;class r3{constructor(e){this.defaults=e,this.interceptors={request:new rv,response:new rv}}request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=rX(this.defaults,t);void 0!==o&&r2.assertOptions(o,{silentJSONParsing:r4.transitional(r4.boolean),forcedJSONParsing:r4.transitional(r4.boolean),clarifyTimeoutError:r4.transitional(r4.boolean)},!1),null!=i&&(rn.isFunction(i)?t.paramsSerializer={serialize:i}:r2.assertOptions(i,{encode:r4.function,serialize:r4.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&rn.merge(a.common,a[t.method]);a&&rn.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=rM.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f=0;if(!u){let e=[rY.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=l.length;let p=t;for(f=0;f<n;){let e=l[f++],t=l[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{r=rY.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,n=c.length;f<n;)r=r.then(c[f++],c[f++]);return r}getUri(e){return rg(r$((e=rX(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}rn.forEach(["delete","get","head","options"],function(e){r3.prototype[e]=function(t,r){return this.request(rX(r||{},{method:e,url:t,data:(r||{}).data}))}}),rn.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(rX(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}r3.prototype[e]=t(),r3.prototype[e+"Form"]=t(!0)});class r6{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new rU(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new r6(function(t){e=t}),cancel:e}}}let r8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(r8).forEach(([e,t])=>{r8[t]=e});let r5=function e(t){let r=new r3(t),n=tC(r3.prototype.request,r);return rn.extend(n,r3.prototype,r,{allOwnKeys:!0}),rn.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(rX(t,r))},n}(rR);r5.Axios=r3,r5.CanceledError=rU,r5.CancelToken=r6,r5.isCancel=rD,r5.VERSION=rZ,r5.toFormData=rp,r5.AxiosError=ro,r5.Cancel=r5.CanceledError,r5.all=function(e){return Promise.all(e)},r5.spread=function(e){return function(t){return e.apply(null,t)}},r5.isAxiosError=function(e){return rn.isObject(e)&&!0===e.isAxiosError},r5.mergeConfig=rX,r5.AxiosHeaders=rM,r5.formToJSON=e=>rk(rn.isHTMLForm(e)?new FormData(e):e),r5.getAdapter=rJ.getAdapter,r5.HttpStatusCode=r8,r5.default=r5;let{Axios:r9,AxiosError:r7,CanceledError:ne,isCancel:nt,CancelToken:nr,VERSION:nn,all:no,Cancel:ni,isAxiosError:na,spread:ns,toFormData:nl,AxiosHeaders:nu,HttpStatusCode:nc,formToJSON:nf,getAdapter:np,mergeConfig:nh}=r5,nd=(e,t,r=0)=>{if(r>5)return null;if(t?.mode==="write"&&e.readOnly||t?.mode==="read"&&e.writeOnly)return;if(Array.isArray(e.examples)&&e.examples.length>0)return e.examples[0];if(void 0!==e.example)return e.example;if(void 0!==e.default)return e.default;if(void 0!==e.enum)return e.enum[0];if("object"===e.type||void 0!==e.properties){let n={};if(void 0!==e.properties&&Object.keys(e.properties).forEach(o=>{let i=e.properties[o];n[(t?.xml?i.xml?.name:void 0)??o]=nd(i,t,r+1)}),void 0!==e.anyOf?Object.assign(n,nd(e.anyOf[0]),t,r+1):void 0!==e.oneOf?Object.assign(n,nd(e.oneOf[0]),t,r+1):void 0!==e.allOf&&Object.assign(n,...e.allOf.map(e=>nd(e,t,r+1))),void 0!==e.additionalProperties&&!1!==e.additionalProperties){let o=nd(e.additionalProperties,t,r+1);return o&&"object"==typeof o&&!Array.isArray(o)?{...n,...nd(e.additionalProperties,t,r+1)}:null===o?null:{...n,someKey:nd(e.additionalProperties,t,r+1)}}return n}if("array"===e.type||void 0!==e.items){let n=e?.items?.xml?.name,o=!!(t?.xml&&e.xml?.wrapped&&n);if(void 0!==e.example)return o?{[n]:e.example}:e.example;if(e.items)for(let i of["anyOf","oneOf","allOf"]){if(!e.items[i])continue;let a=(["anyOf","oneOf"].includes(i)?e.items[i].slice(0,1):e.items[i]).map(e=>nd(e,t,r+1));return o?[{[n]:a}]:a}if(e.items?.type){let i=nd(e.items,t,r+1);return o?[{[n]:i}]:[i]}return[]}let n={string:t?.emptyString??"",boolean:!0,integer:e.min??1,number:e.min??1,array:[]};if(void 0!==e.type&&void 0!==n[e.type])return n[e.type];if(Array.isArray(e.oneOf)&&e.oneOf.length>0)return nd(e.oneOf[0],t,r+1);if(Array.isArray(e.allOf)){let n=null;return e.allOf.forEach(e=>{let o=nd(e,t,r+1);n="object"==typeof o&&"object"==typeof n?{...n??{},...o}:Array.isArray(o)&&Array.isArray(n)?[...n??{},...o]:o}),n}return console.warn(`[getExampleFromSchema] Unknown property type "${e.type}".`),null},ny=(...e)=>{let t={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};e.forEach(e=>{t={...t,...e,headers:[...t.headers,...e.headers??[]],queryString:[...t.queryString,...e.queryString??[]],cookies:[...t.cookies,...e.cookies??[]]}});let r=t.headers.reduce((e,{name:t,value:r})=>(e[t]=r,e),{}),n=nu.from(r).normalize(!0);t.headers=Object.entries(n).map(([e,t])=>({name:e,value:t}));let{path:o,...i}=t;return o?{...i,url:`${t.url}${o}`}:i};function nm(e,t,r=!0){return[...e.pathParameters||[],...e.information?.parameters||[]].filter(e=>e.in===t).filter(e=>r&&e.required||!r).map(e=>({name:e.name,description:e.description??null,value:e.example?e.example:e.schema?nd(e.schema,{mode:"write"}):"",required:e.required??!1,enabled:e.required??!1})).sort((e,t)=>e.required&&!t.required?-1:!e.required&&t.required?1:0)}let ng=e=>{try{if("string"==typeof e)return JSON.stringify(JSON.parse(e),null,2);return JSON.stringify(e,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",e),e}},nv=(e,t,r)=>{let n=e.path;if(t?.replaceVariables===!0){let e=n.match(/{(.*?)}/g);e&&e.forEach(e=>{let t=e.replace(/{|}/g,"");n=n.replace(e,`__${t.toUpperCase()}__`)})}let o=function(e,t){let r=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find(t=>!!e.information?.requestBody?.content?.[t]),n=e.information?.requestBody?.content?.["application/json"]?.examples,o=(n??{})?.[t??Object.keys(n??{})[0]];if(o)return{postData:{mimeType:"application/json",text:ng(o?.value)}};let i=nm(e,"body",!1);if(i.length>0)return{postData:{mimeType:"application/json",text:ng(i[0].value)}};let a=nm(e,"formData",!1);if(a.length>0)return{postData:{mimeType:"application/x-www-form-urlencoded",params:a.map(e=>({name:e.name,value:e.value}))}};if(!r)return{postData:void 0};let s=e.information?.requestBody?.content?.[r],l=[{name:"Content-Type",value:r}],u=s?.example?s?.example:void 0;if("application/json"===r){let e=s?.schema?nd(s?.schema,{mode:"write"}):null,t=u??e;return{headers:l,postData:{mimeType:r,text:"string"==typeof t?t:JSON.stringify(t,null,2)}}}if("application/xml"===r){let e=s?.schema?nd(s?.schema,{xml:!0,mode:"write"}):null;return{headers:l,postData:{mimeType:r,text:u??function(e,t){let r=function(e,t,n){let o="";if(e instanceof Array)for(let i=0,a=e.length;i<a;i++)o+=n+r(e[i],t,n+" ")+"\n";else if("object"==typeof e){let i=!1;for(let r in o+=n+"<"+t,e)"@"==r.charAt(0)?o+=" "+r.substr(1)+'="'+e[r].toString()+'"':i=!0;if(o+=i?">":"/>",i){for(let t in e)"#text"==t?o+=e[t]:"#cdata"==t?o+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(o+=r(e[t],t,n+" "));o+=("\n"==o.charAt(o.length-1)?n:"")+"</"+t+">"}}else o+=n+"<"+t+">"+e.toString()+"</"+t+">";return o},n="";for(let t in e)n+=r(e[t],t,"");return t?n.replace(/\t/g,t):n.replace(/\t|\n/g,"")}(e," ")}}}if("application/octet-stream"===r)return{headers:l,postData:{mimeType:r,text:"BINARY"}};if("text/plain"===r){let e=s?.schema?nd(s?.schema,{xml:!0,mode:"write"}):null;return{headers:l,postData:{mimeType:r,text:u??e??""}}}if("application/x-www-form-urlencoded"===r||"multipart/form-data"===r)return{headers:l,postData:{mimeType:r}}}(e,r);return{method:e.httpVerb.toUpperCase(),path:n,headers:[...nm(e,"header",t?.requiredOnly),...o?.headers??[]],postData:o?.postData,queryString:nm(e,"query",t?.requiredOnly),cookies:nm(e,"cookie",t?.requiredOnly)}}},18044:function(e,t,r){"use strict";r.d(t,{im:function(){return d}});/*! (c) 2020 Andrea Giammarchi */let{parse:n,stringify:o}=JSON,{keys:i}=Object,a=String,s={},l="object",u=(e,t)=>t,c=e=>e instanceof a?a(e):e,f=(e,t)=>"string"==typeof t?new a(t):t,p=(e,t,r,n)=>{let o=[];for(let u=i(r),{length:c}=u,f=0;f<c;f++){let i=u[f],c=r[i];if(c instanceof a){let a=e[c];typeof a!==l||t.has(a)?r[i]=n.call(r,i,a):(t.add(a),r[i]=s,o.push({k:i,a:[e,t,a,n]}))}else r[i]!==s&&(r[i]=n.call(r,i,c))}for(let{length:e}=o,t=0;t<e;t++){let{k:e,a:i}=o[t];r[e]=n.call(r,e,p.apply(null,i))}return r},h=(e,t)=>{let r=n(e,f).map(c),o=r[0],i=t||u,a=typeof o===l&&o?p(r,new Set,o,i):o;return i.call({"":a},"",a)},d=e=>h(o(e))},50308: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 l(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&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=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&&c(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,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(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=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return 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=u(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 A(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 tM}});var _={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 N(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=N(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=N(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function P(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 j=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}(),I=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,_.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,_.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]===_.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]!==_.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=P(this.range.start,this.context.root);if(e)return{start:e,end:P(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,_.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]===_.COMMENT){var n=e.endOfLine(r,t+1),o=new j(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!==_.DIRECTIVES_END&&n!==_.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}(),L=function(e){l(r,e);var t=m(r);function r(e,n,i){var a;if(o(this,r),!i||!(n instanceof I))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 j(this.offset,this.offset+1);var t=e&&P(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 l=1,u="";n&&(n.line===r.line&&a+(n.col-r.col)<=o+1?l=n.col-r.col:(l=Math.min(i.length+1,o)-a,u="…"));var c=a>1?" ".repeat(a-1):"",f="^".repeat(l);return"".concat(i,"\n").concat(c).concat(f).concat(u)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),r}(h(Error)),C=function(e){l(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLReferenceError",e,n)}return r}(L),M=function(e){l(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSemanticError",e,n)}return r}(L),B=function(e){l(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSyntaxError",e,n)}return r}(L),D=function(e){l(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLWarning",e,n)}return r}(L),U=function(e){l(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 l=I.foldNewline(n,a,-1),u=l.fold,c=l.offset;i+=u,a=c}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 M(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new M(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,l=i[a];"\n"===l&&!I.atDocumentBoundary(i,a+1);l=i[a]){var u=I.endOfBlockIndent(i,n,a+1);if(null===u||"#"===i[u])break;a="\n"===i[u]?u:s=r.endOfLine(i,u,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 j(t,i),i=I.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}(I),F=function(e){l(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 j(t,t+1),t+1}}]),r}(I),$=function(e){l(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 M(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=I.endOfWhiteSpace(n,t+1),l=n[s],u="#"===l,c=[],f=null;"\n"===l||"#"===l;){if("#"===l){var p=I.endOfLine(n,s+1);c.push(new j(s,p)),s=p}else{o=!0,i=s+1;var h=I.endOfWhiteSpace(n,i);"\n"===n[h]&&0===c.length&&(i=(f=new F).parse({src:n},i)),s=I.endOfIndent(n,i)}l=n[s]}if(I.nextNodeIsIndented(l,s-(i+a),this.type!==x.SEQ_ITEM)?this.node=r({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s):l&&i>t+1&&(s=i-1),this.node){if(f){var d=e.parent.items||e.parent.contents;d&&d.push(f)}c.length&&Array.prototype.push.apply(this.props,c),s=this.node.range.end}else if(u){var y=c[0];this.props.push(y),s=y.end}else s=I.endOfLine(n,t+1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new j(t,m),s}},{key:"setOrigRanges",value:function(e,t){return t=g(u(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 I.addStringTerminator(e,r.end,o)}}]),r}(I),q=function(e){l(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 j(t,r),r}}]),r}(I);function W(e){for(var t=e;t instanceof $;)t=t.node;if(!(t instanceof K))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,l=a.lineStart;if(s>0&&i.range.start>=l+s)break;n=o}else if(i.type===x.BLANK_LINE)n=o;else break}if(-1===n)return null;for(var u=t.items.splice(n,r-n),c=u[0].range.start;t.range.end=c,t.valueRange&&t.valueRange.end>c&&(t.valueRange.end=c),t!==e;)t=t.context.parent;return u}var K=function(e){l(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=W(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=I.startOfLine(o,t),a=this.items[0];a.context.parent=this,this.valueRange=j.copy(a.valueRange);var s=a.range.start-a.context.lineStart,l=t;l=I.normalizeOffset(o,l);for(var u=o[l],c=I.endOfWhiteSpace(o,i)===l,f=!1;u;){for(;"\n"===u||"#"===u;){if(c&&"\n"===u&&!f){var p=new F;if(l=p.parse({src:o},l),this.valueRange.end=l,l>=o.length){u=null;break}this.items.push(p),l-=1}else if("#"===u){if(l<i+s&&!r.nextContentHasIndent(o,l,s))return l;var h=new q;if(l=h.parse({indent:s,lineStart:i,src:o},l),this.items.push(h),this.valueRange.end=l,l>=o.length){u=null;break}}if(i=l+1,l=I.endOfIndent(o,i),I.atBlank(o,l)){var d=I.endOfWhiteSpace(o,l),y=o[d];y&&"\n"!==y&&"#"!==y||(l=d)}u=o[l],c=!0}if(!u)break;if(l!==i+s&&(c||":"!==u)){if(l<i+s){i>t&&(l=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("-"!==u){i>t&&(l=i);break}}else if("-"===u&&!this.error){var m=o[l+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:c,inCollection:!0,indent:s,lineStart:i,parent:this},l);if(!g)break;if(this.items.push(g),this.valueRange.end=g.valueRange.end,l=I.normalizeOffset(o,g.range.end),u=o[l],c=!1,f=g.includesTrailingLines,u){for(var v=l-1,b=o[v];" "===b||" "===b;)b=o[--v];"\n"===b&&(i=v+1,c=!0)}var w=W(g);w&&Array.prototype.push.apply(this.items,w)}return l}},{key:"setOrigRanges",value:function(e,t){return t=g(u(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,l=s.atLineStart,u=s.indent;if(l)for(var c=0;c<u;++c)o+=" ";o+=String(a)}return I.addStringTerminator(e,r.end,o)}}],[{key:"nextContentHasIndent",value:function(e,t,n){var o=I.endOfLine(e,t)+1;t=I.endOfWhiteSpace(e,o);var i=e[t];return!!i&&(t>=o+n||("#"===i||"\n"===i)&&r.nextContentHasIndent(e,t,n))}}]),r}(I),V=function(e){l(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 j(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 j(t,r),r}}]),r}(I),G=function(e){l(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;!I.atDocumentBoundary(t,i,_.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 q;i=s.parse({src:t},i),this.directives.push(s),n=!1;break;case"%":var l=new V;i=l.parse({parent:this,src:t},i),this.directives.push(l),o=!0,n=!1;break;default:return o?this.error=new M(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return t[i]?(this.directivesEndMarker=new j(i,i+3),i+3):(o?this.error=new M(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=I.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new j(a);!I.atDocumentBoundary(o,a,_.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var l=new F;(a=l.parse({src:o},a))<o.length&&this.contents.push(l)}else a+=1,s=!0;i=a;break;case"#":var u=new q;a=u.parse({src:o},a),this.contents.push(u),s=!1;break;default:var c=I.endOfIndent(o,a),f=n({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:i,parent:this},c);if(!f)return this.valueRange.end=c;this.contents.push(f),a=f.range.end,s=!1;var p=W(f);p&&Array.prototype.push.apply(this.contents,p)}a=r.startCommentOrEndBlankLine(o,a)}if(this.valueRange.end=a,o[a]&&(this.documentEndMarker=new j(a,a+3),o[a+=3])){if(a=I.endOfWhiteSpace(o,a),"#"===o[a]){var h=new q;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(u(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=I.endOfWhiteSpace(e,t),n=e[r];return"#"===n||"\n"===n?r:t}}]),r}(I),H=function(e){l(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=I.endOfIdentifier(r,t+1);return this.valueRange=new j(t+1,n),n=I.endOfWhiteSpace(r,n),n=this.parseComment(n)}}]),r}(I),J={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},z=function(e){l(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 l=r+1;a&&(this.chomping===J.KEEP?(l=a,r=this.valueRange.end):r=a);for(var u=o+this.blockIndent,c=this.type===x.BLOCK_FOLDED,f=!0,p="",h="",d=!1,y=t;y<r;++y){for(var m=0;m<u&&" "===i[y];++m)y+=1;var g=i[y];if("\n"===g)"\n"===h?p+="\n":h="\n";else{var v=I.endOfLine(i,y),b=i.slice(y,v);y=v,c&&(" "===g||" "===g)&&y<l?(" "===h?h="\n":d||f||"\n"!==h||(h="\n\n"),p+=h+b,h=v<r&&i[v]||"",d=!0):(p+=h+b,h=c&&y<l?" ":"\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 j(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,l=n[i];"\n"===l&&(i+=1,!I.atDocumentBoundary(n,i));l=n[i]){var u=I.endOfBlockIndent(n,r,i);if(null===u)break;var c=n[u],f=u-(i+r);if(this.blockIndent){if(c&&"\n"!==c&&f<this.blockIndent){if("#"===n[u])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 M(this,h)}}}else"\n"!==n[u]?(f<s&&(this.error=new M(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[u]?u:a=I.endOfLine(n,u)}return this.chomping!==J.KEEP&&(i=n[a]?a+1:a),this.valueRange=new j(e+1,i),i}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,n=this.parseBlockHeader(t);return n=I.endOfWhiteSpace(r,n),n=this.parseComment(n),n=this.parseBlockValue(n)}},{key:"setOrigRanges",value:function(e,t){return t=g(u(r.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),r}(I),Y=function(e){l(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=I.endOfWhiteSpace(n,t+1);for(a=n[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":i=s+1;var l=I.endOfWhiteSpace(n,i);if("\n"===n[l]){var u=new F;i=u.parse({src:n},i),this.items.push(u)}(s=I.endOfIndent(n,i))<=i+o&&(a=n[s],(s<i+o||"]"!==a&&"}"!==a)&&(this.error=new M(this,"Insufficient indentation in flow collection")));break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var c=new q;s=c.parse({src:n},s),this.items.push(c);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 j(t,s),s;this.items.push(p),s=I.normalizeOffset(n,p.range.end)}s=I.endOfWhiteSpace(n,s),a=n[s]}return this.valueRange=new j(t,s+1),a&&(this.items.push({char:a,offset:s}),s=I.endOfWhiteSpace(n,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,t){return t=g(u(r.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach(function(r){if(r instanceof I)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 I}),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),I.addStringTerminator(e,r.end,i)}}]),r}(I),Q=function(e){l(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="",l=r+1;l<n-1;++l){var u=a[l];if("\n"===u){I.atDocumentBoundary(a,l+1)&&e.push(new M(this,"Document boundary indicators are not allowed within string values"));var c=I.foldNewline(a,l,i),f=c.fold,p=c.offset,h=c.error;s+=f,l=p,h&&e.push(new M(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===u)switch(a[l+=1]){case"0":s+="\x00";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(l+1,2,e),l+=2;break;case"u":s+=this.parseCharCode(l+1,4,e),l+=4;break;case"U":s+=this.parseCharCode(l+1,8,e),l+=8;break;case"\n":for(;" "===a[l+1]||" "===a[l+1];)l+=1;break;default:e.push(new B(this,"Invalid escape sequence ".concat(a.substr(l-1,2)))),s+="\\"+a[l]}else if(" "===u||" "===u){for(var d=l,y=a[l+1];" "===y||" "===y;)l+=1,y=a[l+1];"\n"!==y&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}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 j(t,o),o=I.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}(I),X=function(e){l(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="",l=r+1;l<n-1;++l){var u=a[l];if("\n"===u){I.atDocumentBoundary(a,l+1)&&e.push(new M(this,"Document boundary indicators are not allowed within string values"));var c=I.foldNewline(a,l,i),f=c.fold,p=c.offset,h=c.error;s+=f,l=p,h&&e.push(new M(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===u)s+=u,"'"!==a[l+=1]&&e.push(new B(this,"Unescaped single quote? This should not happen."));else if(" "===u||" "===u){for(var d=l,y=a[l+1];" "===y||" "===y;)l+=1,y=a[l+1];"\n"!==y&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}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 j(t,o),o=I.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}(I),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,l=n.inFlow,u=n.indent,c=n.lineStart,f=n.parent;o(this,e),s(this,"parseNode",function(r,n){if(I.atDocumentBoundary(t.src,n))return null;var o=new e(t,r),i=o.parseProps(n),a=i.props,s=i.type,l=i.valueStart,u=function(e,t){switch(e){case x.ALIAS:return new H(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 $(e,t);case x.COMMENT:case x.PLAIN:return new U(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),c=u.parse(o,l);if(u.range=new j(n,c),c<=n&&(u.error=Error("Node#parse consumed no characters"),u.error.parseEnd=c,u.error.source=u,u.range.end=n+1),o.nodeStartsCollection(u)){u.error||o.atLineStart||o.parent.type!==x.DOCUMENT||(u.error=new B(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var f=new K(u);return c=f.parse(new e(o),c),f.range=new j(n,c),f}return u}),this.atLineStart=null!=i?i:r.atLineStart||!1,this.inCollection=null!=a?a:r.inCollection||!1,this.inFlow=null!=l?l:r.inFlow||!1,this.indent=null!=u?u:r.indent,this.lineStart=null!=c?c: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 $)return!0;var o=e.range.end;return"\n"!==n[o]&&"\n"!==n[o-1]&&(o=I.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?I.endOfIndent(o,t):I.endOfWhiteSpace(o,t);for(var s=o[t];s===_.ANCHOR||s===_.COMMENT||s===_.TAG||"\n"===s;){if("\n"===s){var l=t,u=void 0;do u=l+1,l=I.endOfIndent(o,u);while("\n"===o[l]);var c=l-(u+this.indent),f=n.type===x.SEQ_ITEM&&n.context.atLineStart;if("#"!==o[l]&&!I.nextNodeIsIndented(o[l],c,!f))break;this.atLineStart=!0,this.lineStart=u,a=!1,t=l}else if(s===_.COMMENT){var p=I.endOfLine(o,t+1);i.push(new j(t,p)),t=p}else{var h=I.endOfIdentifier(o,t+1);s===_.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=I.endOfIdentifier(o,h+5)),i.push(new j(t,h)),a=!0,t=I.endOfWhiteSpace(o,h)}s=o[t]}return a&&":"===s&&I.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&&I.atBlank(e,t+1,!0)?x.MAP_KEY:x.PLAIN;case":":return!r&&I.atBlank(e,t+1,!0)?x.MAP_VALUE:x.PLAIN;case"-":return!r&&I.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 G,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){l(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){l(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,l=t.isMap,u=t.itemIndent,c=e,f=c.indent,p=c.indentStep,h=c.stringify,d=this.type===x.FLOW_MAP||this.type===x.FLOW_SEQ||e.inFlow;d&&(u+=p);var y=l&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:y,indent:u,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,u,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(_.s();!(O=_.n()).done;){var k=O.value;E+=k?"\n".concat(p).concat(f).concat(k):"\n"}}catch(e){_.e(e)}finally{_.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 N,T=A(R);try{for(T.s();!(N=T.n()).done;){var P=N.value;E+=P?"\n".concat(f).concat(P):"\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 el(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 eu=function(e){l(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=el(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var r=el(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=el(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var r=el(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=A(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(u(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),ec=function(e){l(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,l=this.key,u=this.value,c=l instanceof er&&l.comment;if(s){if(c)throw Error("With simple keys, key nodes cannot have comments");if(l instanceof es)throw Error("With simple keys, collection cannot be used as a key value")}var f=!s&&(!l||c||(l instanceof er?l instanceof es||l.type===x.BLOCK_FOLDED||l.type===x.BLOCK_LITERAL:"object"===n(l))),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(l,e,function(){return c=null},function(){return g=!0});if(v=et(v,e.indent,c),!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&&!c&&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(u instanceof er){if(u.spaceBefore&&(b="\n"),u.commentBefore){var S=u.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));b+="\n".concat(S)}w=u.comment}else u&&"object"===n(u)&&(u=h.schema.createNode(u,!0));e.implicitKey=!1,!f&&!this.comment&&u instanceof eo&&(e.indentAtStart=v.length+1),g=!1,a||!(i>=2)||e.inFlow||f||!(u instanceof eu)||u.type===x.FLOW_SEQ||u.tag||h.anchors.getName(u)||(e.indent=e.indent.substr(2));var E=m(u,e,function(){return w=null},function(){return g=!0}),O=" ";return b||this.comment?O="".concat(b,"\n").concat(e.indent):!f&&u 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(ec,"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=A(t.items);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=e(s,r);l>i&&(i=l)}}catch(e){a.e(e)}finally{a.f()}return i}return t instanceof ec?Math.max(e(t.key,r),e(t.value,r)):1},ep=function(e){l(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,l=Object.keys(o).find(function(e){return o[e]===n});if(!l&&s&&(l=i.anchors.getName(n)||i.anchors.newName()),l)return"*".concat(l).concat(a?" ":"");var u=i.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw Error("".concat(u," [").concat(r,"]"))}}]),r}(er);function eh(e,t){var r,n=t instanceof eo?t.value:t,o=A(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i instanceof ec&&(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){l(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 ec||(e=new ec(e.key||e,e.value)):e=new ec(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 ec(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=A(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=A(this.items);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(!(a instanceof ec))throw Error("Map items must all be pairs; found ".concat(JSON.stringify(a)," instead"))}}catch(e){i.e(e)}finally{i.f()}return g(u(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){l(r,e);var t=m(r);function r(e){var n;if(o(this,r),e instanceof ec){var i=e.value;i instanceof eu||((i=new eu).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 eu);return n.type=ec.Type.MERGE_PAIR,y(n)}return a(r,[{key:"addToJSMap",value:function(e,t){var r,n=A(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(a);try{for(s.s();!(i=s.n()).done;){var l=v(i.value,2),u=l[0],c=l[1];t instanceof Map?t.has(u)||t.set(u,c):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||Object.defineProperty(t,u,{value:c,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(u(r.prototype),"toString",this).call(this,e,t);this.value=n.items[0];var o=g(u(r.prototype),"toString",this).call(this,e,t);return this.value=n,o}}]),r}(ec),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=A(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.format,s=i.test,l=i.resolve;if(s){var u=e.match(s);if(u){var c=l.apply(null,u);return c instanceof eo||(c=new eo(c)),a&&(c.format=a),c}}}}catch(e){o.e(e)}finally{o.f()}return r&&(e=r(e)),new eo(e)}var eE="flow",eO="block",eA="quoted",e_=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,l=n.minContentWidth,u=void 0===l?20:l,c=n.onFold,f=n.onOverflow;if(!s||s<0)return e;var p=Math.max(1+u,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,u)?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=e_(e,b))&&(y=b+p);o=e[b+=1];){if(r===eA&&"\\"===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=e_(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===eA){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;c&&c();for(var A=e.slice(0,h[0]),_=0;_<h.length;++_){var x=h[_],k=h[_+1]||e.length;0===x?A="\n".concat(t).concat(e.slice(0,k)):(r===eA&&d[x]&&(A+="".concat(e[x],"\\")),A+="\n".concat(t).concat(e.slice(x+1,k)))}return A}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 eN(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)?" ":""),l="",u=0,c=0,f=a[c];f;f=a[++c])if(" "===f&&"\\"===a[c+1]&&"n"===a[c+2]&&(l+=a.slice(u,c)+"\\ ",c+=1,u=c,f="\\"),"\\"===f)switch(a[c+1]){case"u":l+=a.slice(u,c);var p=a.substr(c+2,4);switch(p){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===p.substr(0,2)?l+="\\x"+p.substr(2):l+=a.substr(c,6)}c+=5,u=c+1;break;case"n":if(r||'"'===a[c+2]||a.length<i)c+=1;else{for(l+=a.slice(u,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)l+="\n",c+=2;l+=s," "===a[c+2]&&(l+="\\"),c+=1,u=c+1}break;default:c+=1}return l=u?l+a.slice(u):a,r?l:ex(l,s,eA,ek(t))}function eT(e,t){if(t.implicitKey){if(/\n/.test(e))return eN(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return eN(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 eP(e,t,r,n){var o=e.comment,i=e.type,a=e.value;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return eN(a,t);var s=t.indent||(t.forceBlockIndent||eR(a)?" ":""),l=s?"2":"1",u=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)),c=u?"|":">";if(!a)return c+"\n";var f="",p="";if(a=a.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return -1===t?c+="-":(a===e||t!==e.length-1)&&(c+="+",n&&n()),p=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(c+=l);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&&(c+=" #"+o.replace(/ ?[\r\n]+/g," "),r&&r()),!a)return"".concat(c).concat(l,"\n").concat(s).concat(p);if(u)return a=a.replace(/\n+/g,"$&".concat(s)),"".concat(c,"\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(c,"\n").concat(s).concat(h)}function ej(e,t,r,n){var o=ew.defaultType,i=t.implicitKey,a=t.inFlow,s=e,l=s.type,u=s.value;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));var c=function(o){switch(o){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return eP(e,t,r,n);case x.QUOTE_DOUBLE:return eN(u,t);case x.QUOTE_SINGLE:return eT(u,t);case x.PLAIN:return function(e,t,r,n){var o=e.comment,i=e.type,a=e.value,s=t.actualString,l=t.implicitKey,u=t.indent,c=t.inFlow;if(l&&/[\n[\]{},]/.test(a)||c&&/[[\]{},]/.test(a))return eN(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||c||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?eT(a,t):eN(a,t):eP(e,t,r,n);if(!l&&!c&&i!==x.PLAIN&&-1!==a.indexOf("\n"))return eP(e,t,r,n);if(""===u&&eR(a))return t.forceBlockIndent=!0,eP(e,t,r,n);var f=a.replace(/\n+/g,"$&\n".concat(u));if(s){var p=t.doc.schema.tags;if("string"!=typeof eS(f,p,p.scalarFallback).value)return eN(a,t)}var h=l?f:ex(f,u,eE,ek(t));return o&&!c&&(-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,u,o)):h}(e,t,r,n);default:return null}};l!==x.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?l=x.QUOTE_DOUBLE:(i||a)&&(l===x.BLOCK_FOLDED||l===x.BLOCK_LITERAL)&&(l=x.QUOTE_DOUBLE);var f=c(l);if(null===f&&null===(f=c(o)))throw Error("Unsupported default string type ".concat(o));return f}function eI(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 eL(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 M(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,l="Expected ".concat(i," to end with ").concat(o);"number"==typeof a.offset?(s=new M(t,l)).offset=a.offset+1:(s=new M(a,l),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 M(t,"Comments must be separated from other tokens by white space characters"))}function eM(e,t){var r=String(t),n=r.substr(0,8)+"..."+r.substr(-8);return new M(e,'The "'.concat(n,'" key is too long'))}function eB(e,t){var r,n=A(t);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=o.afterKey,a=o.before,s=o.comment,l=e.items[a];l?(i&&l.value&&(l=l.value),void 0===s?(i||!l.commentBefore)&&(l.spaceBefore=!0):l.commentBefore?l.commentBefore+="\n"+s:l.commentBefore=s):void 0!==s&&(e.comment?e.comment+="\n"+s:e.comment=s)}}catch(e){n.e(e)}finally{n.f()}}function eD(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 eU(e,t,r){var n,o=e.schema.tags,i=[],a=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 l=s.resolve(e,t);return l instanceof es?l:new eo(l)}}}}catch(e){a.e(e)}finally{a.f()}var u=eD(e,t);return"string"==typeof u&&i.length>0?eS(u,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 e$(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=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,l=s.start,u=s.end;switch(t.context.src[l]){case _.COMMENT:t.commentHasRequiredWhitespace(l)||e.push(new M(t,"Comments must be separated from other tokens by white space characters"));var c=t.header,f=t.valueRange;(f&&(l>f.start||c&&l>c.start)?n.after:n.before).push(t.context.src.slice(l+1,u));break;case _.ANCHOR:o&&e.push(new M(t,"A node can have at most one anchor")),o=!0;break;case _.TAG:i&&e.push(new M(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,l=a.getNode(s);l&&(a.map[a.newName(s)]=l),a.map[s]=t}t.type===x.ALIAS&&(o||i)&&e.errors.push(new M(t,"An alias node must not specify any properties"));var u=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 l=new ep(a);return r._cstAliases.push(l),l}var u=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 M(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 M(t,"The ".concat(n," tag handle is non-default and was not declared."))}if(!o)throw new M(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 D(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(u)return function(e,t,r){try{var n=eU(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 D(t,i));var a=eU(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,u);if(t.type!==x.PLAIN){var c="Failed to resolve ".concat(t.type," node here");return n.push(new B(t,c)),null}try{var f=eD(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(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);var c=n.before.join("\n");c&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(c):c);var f=n.after.join("\n");f&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(f):f)}return t.resolved=u}function eq(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 l=t.items[s];if("string"==typeof l.char){var u=l.char,c=l.offset;if("?"===u&&void 0===o&&!i){i=!0,a=":";continue}if(":"===u){if(void 0===o&&(o=null),":"===a){a=",";continue}}else if(i&&(void 0===o&&","!==u&&(o=null),i=!1),void 0!==o&&(n.push(new ec(o)),o=void 0,","===u)){a=":";continue}if("}"===u){if(s===t.items.length-1)continue}else if(u===a){a=":";continue}var f=new B(t,"Flow map contains an unexpected ".concat(u));f.offset=c,e.errors.push(f)}else l.type===x.BLANK_LINE?r.push({afterKey:!!o,before:n.length}):l.type===x.COMMENT?(eC(e.errors,l),r.push({afterKey:!!o,before:n.length,comment:l.comment})):void 0===o?(","===a&&e.errors.push(new M(l,"Separator , missing in flow map")),o=e$(e,l)):(","!==a&&e.errors.push(new M(l,"Indicator : missing in flow map entry")),n.push(new ec(o,e$(e,l))),o=void 0,i=!1)}return eL(e.errors,t),void 0!==o&&n.push(new ec(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 ec(o)),s.error&&e.errors.push(s.error),o=e$(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 M(s.node,"Nested mappings are not allowed in compact mappings"));var l=s.node;if(!l&&s.props.length>0){(l=new U(x.PLAIN,[])).context={parent:s,src:s.context.src};var u=s.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},"number"==typeof s.range.origStart){var c=s.range.origStart+1;l.range.origStart=l.range.origEnd=c,l.valueRange.origStart=l.valueRange.origEnd=c}}var f=new ec(o,e$(e,l));!function(e,t){if(eW(e)){var r=e.getPropValue(0,_.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(eM(t,o)),o=void 0,i=null;break;default:void 0!==o&&n.push(new ec(o)),o=e$(e,s),i=s.range.start,s.error&&e.errors.push(s.error);t: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 t;default:e.errors.push(new M(s,"Implicit map keys need to be followed by map values"));break t}}s.valueRangeContainsNewline&&e.errors.push(new M(s,"Implicit map keys need to be on a single line"))}}return void 0!==o&&n.push(new ec(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,l=0;l<i.length;++l){var u=i[l].key;if(u instanceof es&&(s=!0),e.schema.merge&&u&&"<<"===u.value){i[l]=new ey(i[l]);var c=i[l].value.items,f=null;c.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 M(t,f))}else for(var p=l+1;p<i.length;++p){var h=i[p].key;if(u===h||u&&h&&Object.prototype.hasOwnProperty.call(u,"value")&&u.value===h.value){var d='Map keys must be unique; "'.concat(u,'" is repeated');e.errors.push(new M(t,d));break}}}return s&&!e.options.mapAsMap&&e.warnings.push(new D(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 eW=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]!==_.COMMENT)return!1;for(var s=r;s<a;++s)if("\n"===o[s])return!1;return!0};function eK(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="[",l=null,u=0;u<t.items.length;++u){var c=t.items[u];if("string"==typeof c.char){var f=c.char,p=c.offset;if(":"!==f&&(o||void 0!==i)&&(o&&void 0===i&&(i=s?n.pop():null),n.push(new ec(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 ec){var h=new M(t,"Chaining flow sequence pairs is invalid");h.offset=p,e.errors.push(h)}if(!o&&"number"==typeof a){var d=c.range?c.range.start:c.offset;d>a+1024&&e.errors.push(eM(t,i));for(var y=l.context.src,m=a;m<d;++m)if("\n"===y[m]){e.errors.push(new M(l,"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||u<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(c.type===x.BLANK_LINE)r.push({before:n.length});else if(c.type===x.COMMENT)eC(e.errors,c),r.push({comment:c.comment,before:n.length});else{if(s){var v="Expected a ".concat(s," in flow sequence");e.errors.push(new M(c,v))}var b=e$(e,c);void 0===i?(n.push(b),l=c):(n.push(new ec(i,b)),i=void 0),a=c.range.start,s=","}}return eL(e.errors,t),void 0!==i&&n.push(new ec(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(e$(e,i.node)),i.hasProps&&e.errors.push(new M(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 eu;return a.items=i,eB(a,o),!e.options.mapAsMap&&i.some(function(e){return e instanceof ec&&e.key instanceof es})&&e.warnings.push(new D(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 eV=r(23663).Buffer,eG=r(49079),eH={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var r=eD(e,t);if("function"==typeof eV)return eV.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 eV)o=s instanceof eV?s.toString("base64"):eV.from(s.buffer).toString("base64");else if("function"==typeof btoa){for(var l="",u=0;u<s.length;++u)l+=String.fromCharCode(s[u]);o=btoa(l)}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 c=em.lineWidth,f=Math.ceil(o.length/c),p=Array(f),h=0,d=0;h<f;++h,d+=c)p[h]=o.substr(d,c);s=p.join(a===x.BLOCK_LITERAL?"\n":" ")}return ej({comment:i,type:a,value:s},t,r,n)}};function eJ(e,t){for(var r=eK(e,t),n=0;n<r.items.length;++n){var o=r.items[n];if(!(o instanceof ec)){if(o instanceof ed){if(o.items.length>1)throw new M(t,"Each pair must have its own sequence indicator");var i=o.items[0]||new ec;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 ec?o:new ec(o)}}return r}function ez(e,t,r){var n=new eu(e);n.tag="tag:yaml.org,2002:pairs";var o,i=A(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=void 0,l=void 0;if(Array.isArray(a)){if(2===a.length)s=a[0],l=a[1];else throw TypeError("Expected [key, value] tuple: ".concat(a))}else if(a&&a instanceof Object){var u=Object.keys(a);if(1===u.length)l=a[s=u[0]];else throw TypeError("Expected { key: value } tuple: ".concat(a))}else s=a;var c=e.createPair(s,l,r);n.items.push(c)}}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){l(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=A(this.items);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=void 0,s=void 0;if(i instanceof ec?(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}(eu);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=A(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 M(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){l(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 ec?e:new ec(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 ec?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 ec(e))}},{key:"toJSON",value:function(e,t){return g(u(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(u(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=eq(e,t);if(!r.hasAllNullValues())throw new M(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=A(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 eI(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},e3={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},e6={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,l){s&&(s=(s+"00").substr(1,3));var u=Date.UTC(t,r-1,n,o||0,i||0,a||0,s||0);if(l&&"Z"!==l){var c=e1(l[0],l.slice(1));30>Math.abs(c)&&(c*=60),u-=6e4*c}return new Date(u)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function e8(e){var t=void 0!==eG&&eG.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 e5(e,t){if(e8(!1)){var r=void 0!==eG&&eG.emitWarning;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var e9={},e7={createNode:function(e,t,r){var o=new ed(e);if(t instanceof Map){var i,a=A(t);try{for(a.s();!(i=a.n()).done;){var s=v(i.value,2),l=s[0],u=s[1];o.items.push(e.createPair(l,u,r))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===n(t))for(var c=0,f=Object.keys(t);c<f.length;c++){var p=f[c];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:eq},te={createNode:function(e,t,r){var n=new eu(e);if(t&&t[Symbol.iterator]){var o,i=A(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:eu,tag:"tag:yaml.org,2002:seq",resolve:eK},tt=[e7,te,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:eD,stringify:function(e,t,r,n){return ej(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):eI(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")}},tl={identify:tr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return tn(e,e,10)},options:ev,stringify:eI},tu={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")}},tc={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:eI},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:eI},th=tt.concat([ti,ta,ts,tl,tu,tc,tf,tp]),td=function(e){return"bigint"==typeof e||Number.isInteger(e)},ty=function(e){return JSON.stringify(e.value)},tm=[e7,te,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:eD,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 eI(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:eI},{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:eI},{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:eI}],eH,eX,eY,e0,e4,e3,e6),tE={core:th,failsafe:tt,json:tm,yaml11:tS},tO={binary:eH,bool:ta,float:tp,floatExp:tf,floatNaN:tc,floatTime:e3,int:tl,intHex:tu,intOct:ts,intTime:e4,map:e7,null:ti,omap:eX,pairs:eY,seq:te,set:e0,timestamp:e6},tA=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},t_=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?tA:a||null,!r&&s&&function(e,t){if(!e9[e]&&e8(!0)){e9[e]=!0;var r="The option '".concat(e,"' will be removed in a future release");e5(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=A(r);try{for(s.s();!(a=s.n()).done;){var l=a.value;o=o.concat(l)}}catch(e){s.e(e)}finally{s.f()}}else"function"==typeof r&&(o=r(o.slice()));for(var u=0;u<o.length;++u){var c=o[u];if("string"==typeof c){var f=t[c];if(!f){var p=Object.keys(t).map(function(e){return JSON.stringify(e)}).join(", ");throw Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(p))}o[u]=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,l=r.wrapScalars;t&&t.startsWith("!!")&&(t=o+t.slice(2));var u=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(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==n(e))return l?new eo(e):e;u=e instanceof Map?e7:e[Symbol.iterator]?te:e7}i&&(i(u),delete r.onTagObj);var c={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}c.value=e,a.set(e,c)}return c.node=u.createNode?u.createNode(r.schema,e,r):l?new eo(e):e,t&&c.node instanceof er&&(c.node.tag=t),c.node}(t,o,i?Object.assign(i,a):a)}},{key:"createPair",value:function(e,t,r){return r||(r={wrapScalars:!0}),new ec(this.createNode(e,r.wrapScalars,null,r),this.createNode(t,r.wrapScalars,null,r))}}]),e}();s(t_,"defaultPrefix",k),s(t_,"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 tN(e,t,r,o){var i,a,s,l,u,c,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=A(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 ec)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,l=t.doc,u=[],(c=l.anchors.getName(i))&&(s[c]=i,u.push("&".concat(c))),i.tag?u.push(tR(l,i.tag)):a.default||u.push(tR(l,a.tag)),u.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?ej(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 eu||e instanceof ed}}]),e}(),tP=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 ec?(e(t.key,r),e(t.value,r)):t instanceof eo&&o&&(r[o]=!0)}return r};function tj(e){if(e instanceof es)return!0;throw Error("Expected a YAML collection as document contents")}var tI=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 tj(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){tj(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return tj(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return ea(e)?null!=this.contents&&(this.contents=null,!0):(tj(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){tj(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){ea(e)?this.contents=t:(tj(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 t_(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=A(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.comment,u=s.name;switch(u){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 M(t,"Insufficient parameters given for %TAG directive");if(r.some(function(e){return e.handle===o}))throw new M(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 M(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 M(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 D(t,o))}return r}(e,s)}catch(t){e.errors.push(t)}i=!0;break;default:if(u){var c="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new D(s,c))}}l&&o.push(l)}}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=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 l=e$(e,s);i&&(l.spaceBefore=!0,i=!1),o=l}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 u=n.before.join("\n");if(u){var c=o instanceof es&&o.items[0]?o.items[0]:o;c.commentBefore=c.commentBefore?"".concat(u,"\n").concat(c.commentBefore):u}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,l=A(this.errors);try{for(l.s();!(s=l.n()).done;){var u=s.value;u instanceof L&&u.makePretty()}}catch(e){l.e(e)}finally{l.f()}var c,f=A(this.warnings);try{for(f.s();!(c=f.n()).done;){var p=c.value;p instanceof L&&p.makePretty()}}catch(e){f.e(e)}finally{f.f()}}return this}},{key:"listNonDefaultTags",value:function(){return Object.keys(tP(this.contents,{})).filter(function(e){return 0!==e.indexOf(t_.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)),l={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!i,maxAliasCount:a,stringify:tN},u=Object.keys(this.anchors.map);u.length>0&&(l.anchors=new Map(u.map(function(e){return[r.anchors.map[e],{alias:[],aliasCount:0,count:1}]})));var c=en(this.contents,e,l);if("function"==typeof t&&l.anchors){var f,p=A(l.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 c}},{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:tN},s=!1,l=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,l=this.contents.comment);var u=l?null:function(){return s=!0},c=tN(this.contents,a,function(){return l=null},u);r.push(et(c,"",l))}else void 0!==this.contents&&r.push(tN(this.contents,a));return this.comment&&((!s||l)&&""!==r[r.length-1]&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join("\n")+"\n"}}]),e}();s(tI,"defaults",tk);var tL=function(e){l(r,e);var t=m(r);function r(e){return o(this,r),t.call(this,Object.assign({},tx,e))}return r}(tI);function tC(e,t){var r=ee(e),n=new tL(t).parse(r[0]);return r.length>1&&n.errors.unshift(new M(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()")),n}var tM={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 t_(Object.assign({},tI.defaults[tx.version],tx)).createNode(e,t,r)},defaultOptions:tx,Document:tL,parse:function(e,t){var r=tC(e,t);if(r.warnings.forEach(function(e){return e5(e)}),r.errors.length>0)throw r.errors[0];return r.toJSON()},parseAllDocuments:function(e,t){var r,n,o=[],i=A(ee(e));try{for(i.s();!(n=i.n()).done;){var a=n.value,s=new tL(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 tL(t);return r.contents=e,String(r)}}},895:function(e){"use strict";e.exports={i8:"7.0.8"}}}]);
//# sourceMappingURL=423-315765f3c9cb50b6.js.map