isomorphic-git 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/http/web/index.cjs +1 -1
- package/http/web/index.js +1 -1
- package/http/web/index.umd.js +1 -1
- package/index.cjs +469 -340
- package/index.js +359 -230
- package/index.umd.min.js +2 -12
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +173 -80
- package/managers/index.js +152 -59
- package/managers/index.umd.min.js +2 -12
- package/managers/index.umd.min.js.LICENSE.txt +18 -0
- package/managers/index.umd.min.js.map +1 -1
- package/models/index.cjs +99 -4
- package/models/index.js +98 -3
- package/models/index.umd.min.js +2 -8
- package/models/index.umd.min.js.LICENSE.txt +5 -0
- package/models/index.umd.min.js.map +1 -1
- package/package.json +20 -45
- package/browser-tests.json +0 -10
- package/size_report.html +0 -64
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var n=r(142),i=r(143),o=r(144);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|d(e.length);return 0===(t=s(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(f(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|d(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return D(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){l=!1;break}if(l)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function _(t,e,r,n){return L(D(e,t.length-r),t,r,n)}function w(t,e,r,n){return L(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return w(t,e,r,n)}function A(t,e,r,n){return L(F(e),t,r,n)}function E(t,e,r,n){return L(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return l(null,t)},u.allocUnsafeSlow=function(t){return l(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):y.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=t.slice(e,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function j(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=N(t[o]);return i}function B(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function U(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function $(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,o){return o||$(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,o){return o||$(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:D(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function N(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function L(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(71))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(64),i=r(53);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}class a{static flush(){return t.from("0000","utf8")}static delim(){return t.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=t.from(e));const r=e.length+4,n=Object(i.a)(4,r);return t.concat([t.from(n,"utf8"),e])}static streamReader(t){const e=new n.a(t);return(function(){var r,n=(r=function*(){try{let t=yield e.read(4);if(null==t)return!0;if(t=parseInt(t.toString("utf8"),16),0===t)return null;if(1===t)return null;const r=yield e.read(t-4);return null==r||r}catch(e){return t.error=e,!0}},function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))});return function(){return n.apply(this,arguments)}}())}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(106);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}class a{static get({fs:t,gitdir:e}){return o((function*(){const r=yield t.read(`${e}/config`,{encoding:"utf8"});return n.a.from(r)}))()}static save({fs:t,gitdir:e,config:r}){return o((function*(){yield t.write(`${e}/config`,r.toString(),{encoding:"utf8"})}))()}}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,s):n=t.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=e.cwd()),s=t),r(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,s=1;s<e.length&&47===e.charCodeAt(s);++s);for(var u=e.length-s,c=a<u?a:u,f=-1,l=0;l<=c;++l){if(l===c){if(u>c){if(47===e.charCodeAt(s+l))return e.slice(s+l+1);if(0===l)return e.slice(s+l)}else a>c&&(47===t.charCodeAt(n+l)?f=l:0===l&&(f=0));break}var h=t.charCodeAt(n+l);if(h!==e.charCodeAt(s+l))break;47===h&&(f=l)}var d="";for(l=n+f+1;l<=o;++l)l!==o&&47!==t.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(s+f):(s+=f,47===e.charCodeAt(s)&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,u=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===e.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(47!==u)-1===i&&(o=!1,i=s+1),46===u?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=s+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,f=t.length-1,l=0;f>=n;--f)if(47!==(i=t.charCodeAt(f)))-1===u&&(c=!1,u=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){s=f+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(e.base=e.name=0===s&&o?t.slice(1,u):t.slice(s,u)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,u)):(e.name=t.slice(s,a),e.base=t.slice(s,u)),e.ext=t.slice(a,u)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));var n=r(26),i=r.n(n),o=r(83),a=r(104),s=r(54);function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}let f=null;const l=Symbol("IndexCache");function h(){return(h=c((function*(t,e,r){const[n,i]=yield Promise.all([t.lstat(e),t.read(e)]),o=yield a.a.from(i);r.map.set(e,o),r.stats.set(e,n)}))).apply(this,arguments)}function d(){return(d=c((function*(t,e,r){const n=r.stats.get(e);if(void 0===n)return!0;if(null===n)return!1;const i=yield t.lstat(e);return null!==i&&Object(s.a)(n,i)}))).apply(this,arguments)}class p{static acquire({fs:t,gitdir:e,cache:r,allowUnmerged:n=!0},a){return c((function*(){r[l]||(r[l]={map:new Map,stats:new Map});const s=`${e}/index`;let u;null===f&&(f=new i.a({maxPending:1/0}));let p=[];return yield f.acquire(s,c((function*(){const e=r[l];(yield function(t,e,r){return d.apply(this,arguments)}(t,s,e))&&(yield function(t,e,r){return h.apply(this,arguments)}(t,s,e));const i=e.map.get(s);if(p=i.unmergedPaths,p.length&&!n)throw new o.a(p);if(u=yield a(i),i._dirty){const r=yield i.toObject();yield t.write(s,r),e.stats.set(s,yield t.lstat(s)),i._dirty=!1}}))),u}))()}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(2),i=r(43),o=r(51),a=r(133);function s(t){switch(t){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new n.a(`Unexpected GitTree entry mode: ${t}`)}function u(t){return!t.oid&&t.sha&&(t.oid=t.sha),t.mode=function(t){if("number"==typeof t&&(t=t.toString(8)),t.match(/^0?4.*/))return"040000";if(t.match(/^1006.*/))return"100644";if(t.match(/^1007.*/))return"100755";if(t.match(/^120.*/))return"120000";if(t.match(/^160.*/))return"160000";throw new n.a(`Could not understand file mode: ${t}`)}(t.mode),t.type||(t.type=s(t.mode)),t}class c{constructor(e){if(t.isBuffer(e))this._entries=function(t){const e=[];let r=0;for(;r<t.length;){const o=t.indexOf(32,r);if(-1===o)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=t.indexOf(0,r);if(-1===a)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let u=t.slice(r,o).toString("utf8");"40000"===u&&(u="040000");const c=s(u),f=t.slice(o+1,a).toString("utf8");if(f.includes("\\")||f.includes("/"))throw new i.a(f);const l=t.slice(a+1,a+21).toString("hex");r=a+21,e.push({mode:u,path:f,oid:l,type:c})}return e}(e);else{if(!Array.isArray(e))throw new n.a("invalid type passed to GitTree constructor");this._entries=e.map(u)}this._entries.sort(o.a)}static from(t){return new c(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join("\n")}toObject(){const e=[...this._entries];return e.sort(a.a),t.concat(e.map(e=>{const r=t.from(e.mode.replace(/^0/,"")),n=t.from(" "),i=t.from(e.path,"utf8"),o=t.from([0]),a=t.from(e.oid,"hex");return t.concat([r,n,i,o,a])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(84),i=r.n(n);function o(t){let e="";for(const r of new Uint8Array(t))r<16&&(e+="0"),e+=r.toString(16);return e}function a(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,"next",t)}function u(t){a(o,n,i,s,u,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return c}));let u=null;function c(t){return f.apply(this,arguments)}function f(){return(f=s((function*(t){return null===u&&(u=yield p()),u?h(t):l(t)}))).apply(this,arguments)}function l(t){return(new i.a).update(t).digest("hex")}function h(t){return d.apply(this,arguments)}function d(){return(d=s((function*(t){return o(yield crypto.subtle.digest("SHA-1",t))}))).apply(this,arguments)}function p(){return y.apply(this,arguments)}function y(){return(y=s((function*(){try{return"da39a3ee5e6b4b0d3255bfef95601890afd80709"===(yield h(new Uint8Array([])))}catch(t){}return!1}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const e=this.buffer.slice(this._start,this._start+t);return this._start+=t,e}toString(t,e){const r=this.buffer.toString(t,this._start,this._start+e);return this._start+=e,r}write(t,e,r){const n=this.buffer.write(t,this._start,e,r);return this._start+=e,n}copy(t,e,r){const n=t.copy(this.buffer,this._start,e,r);return this._start+=n,n}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const e=this.buffer.writeUInt8(t,this._start);return this._start+=1,e}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const e=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,e}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const e=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,e}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(2),i=r(50),o=r(69),a=r(21),s=r(137),u=r(39);function c(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}class f{constructor(e){if("string"==typeof e)this._commit=e;else if(t.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitCommit constructor");this._commit=f.render(e)}}static fromPayloadSignature({payload:t,signature:e}){const r=f.justHeaders(t),n=f.justMessage(t),i=Object(a.a)(r+"\ngpgsig"+Object(o.a)(e)+"\n"+n);return new f(i)}static from(t){return new f(t)}toObject(){return t.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return f.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Object(a.a)(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){const t=f.justHeaders(this._commit).split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={parent:[]};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.author&&(r.author=Object(u.a)(r.author)),r.committer&&(r.committer=Object(u.a)(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent){if(void 0===t.parent.length)throw new n.a("commit 'parent' property should be an array");for(const r of t.parent)e+=`parent ${r}\n`}const r=t.author;e+=`author ${Object(i.a)(r)}\n`;const a=t.committer||t.author;return e+=`committer ${Object(i.a)(a)}\n`,t.gpgsig&&(e+="gpgsig"+Object(o.a)(t.gpgsig)),e}static render(t){return f.renderHeaders(t)+"\n"+Object(a.a)(t.message)}render(){return this._commit}withoutSignature(){const t=Object(a.a)(this._commit);if(-1===t.indexOf("\ngpgsig"))return t;const e=t.slice(0,t.indexOf("\ngpgsig")),r=t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+"-----END PGP SIGNATURE-----\n".length);return Object(a.a)(e+"\n"+r)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(s.a)(t)}static sign(t,e,r){return(n=function*(){const n=t.withoutSignature(),i=f.justMessage(t._commit);let{signature:s}=yield e({payload:n,secretKey:r});s=Object(a.a)(s);const u=f.justHeaders(t._commit)+"\ngpgsig"+Object(o.a)(s)+"\n"+i;return f.from(u)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(22),i=r(140),o=r(87),a=r(15);function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}function c(t){return f.apply(this,arguments)}function f(){return(f=u((function*({fs:e,gitdir:r,type:s,object:u,format:c="content",oid:f,dryRun:l=!1}){return"deflated"!==c&&("wrapped"!==c&&(u=n.a.wrap({type:s,object:u})),f=yield Object(a.a)(u),u=t.from(yield Object(o.a)(u))),l||(yield Object(i.a)({fs:e,gitdir:r,object:u,format:"deflated",oid:f})),f}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r,n){super(`Object ${t} ${n?`at ${n}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=i.code,this.data={oid:t,actual:e,expected:r,filepath:n}}}i.code="ObjectTypeError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(2),i=r(50),o=r(21),a=r(39);function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}class u{constructor(e){if("string"==typeof e)this._tag=e;else if(t.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitAnnotatedTag constructor");this._tag=u.render(e)}}static from(t){return new u(t)}static render(t){return`object ${t.object}\ntype ${t.type}\ntag ${t.tag}\ntagger ${Object(i.a)(t.tagger)}\n\n${t.message}\n${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const t=this.withoutSignature();return t.slice(t.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.tagger&&(r.tagger=Object(a.a)(r.tagger)),r.committer&&(r.committer=Object(a.a)(r.committer)),r}withoutSignature(){const t=Object(o.a)(this._tag);return-1===t.indexOf("\n-----BEGIN PGP SIGNATURE-----")?t:t.slice(0,t.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1===this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(o.a)(t)}payload(){return this.withoutSignature()+"\n"}toObject(){return t.from(this._tag,"utf8")}static sign(t,e,r){return(n=function*(){const n=t.payload();let{signature:i}=yield e({payload:n,secretKey:r});i=Object(o.a)(i);const a=n+i;return u.from(a)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t=(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i}));var n=r(2);class i{static wrap({type:t,object:e}){const r=`${t} ${e.length}\0`,n=r.length,i=n+e.length,o=new Uint8Array(i);for(let t=0;t<n;t++)o[t]=r.charCodeAt(t);return o.set(e,n),o}static unwrap(e){const r=e.indexOf(32),i=e.indexOf(0),o=e.slice(0,r).toString("utf8"),a=e.slice(r+1,i).toString("utf8"),s=e.length-(i+1);if(parseInt(a)!==s)throw new n.a(`Length mismatch: expected ${a} bytes but got ${s} instead.`);return{type:o,object:t.from(e.slice(i+1))}}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(63);function i(t,e,r,n){if(void 0!==t&&void 0!==e)return[t,e];void 0===r&&(r=n.valueOf());const i=Math.floor(r/1e3);return[i,1e6*(r-1e3*i)]}function o(t){const[e,r]=i(t.ctimeSeconds,t.ctimeNanoseconds,t.ctimeMs,t.ctime),[o,a]=i(t.mtimeSeconds,t.mtimeNanoseconds,t.mtimeMs,t.mtime);return{ctimeSeconds:e%2**32,ctimeNanoseconds:r%2**32,mtimeSeconds:o%2**32,mtimeNanoseconds:a%2**32,dev:t.dev%2**32,ino:t.ino%2**32,mode:Object(n.a)(t.mode%2**32),uid:t.uid%2**32,gid:t.gid%2**32,size:t.size>-1?t.size%2**32:0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`No name was provided for ${t} in the argument or in the .git/config file.`),this.code=this.name=i.code,this.data={role:t}}}i.code="MissingNameError"},function(t,e,r){"use strict";t.exports=r(160)},function(t,e,r){"use strict";var n=r(8),i=r(19),o=r(4),a=r(14),s=r(7),u=r(12),c=r(63),f=r(52);function l(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}class d{constructor({fs:t,gitdir:e,ref:r,cache:i}){var a=this;this.fs=t,this.cache=i,this.gitdir=e,this.mapPromise=h((function*(){const i=new Map;let s;try{s=yield o.a.resolve({fs:t,gitdir:e,ref:r})}catch(t){t instanceof n.a&&(s="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const u=yield Object(f.a)({fs:t,cache:a.cache,gitdir:e,oid:s});return u.type="tree",u.mode="40000",i.set(".",u),i}))();const s=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return h((function*(){return s.type(t)}))()}mode(){var t=this;return h((function*(){return s.mode(t)}))()}stat(){var t=this;return h((function*(){return s.stat(t)}))()}content(){var t=this;return h((function*(){return s.content(t)}))()}oid(){var t=this;return h((function*(){return s.oid(t)}))()}}}readdir(t){var e=this;return h((function*(){const r=t._fullpath,{fs:n,cache:o,gitdir:c}=e,f=yield e.mapPromise,l=f.get(r);if(!l)throw new Error(`No obj for ${r}`);const h=l.oid;if(!h)throw new Error(`No oid for obj ${JSON.stringify(l)}`);if("tree"!==l.type)return null;const{type:d,object:p}=yield Object(s.a)({fs:n,cache:o,gitdir:c,oid:h});if(d!==l.type)throw new i.a(h,d,l.type);const y=a.a.from(p);for(const t of y)f.set(Object(u.join)(r,t.path),t);return y.entries().map(t=>Object(u.join)(r,t.path))}))()}type(t){var e=this;return h((function*(){if(!1===t._type){const r=yield e.mapPromise,{type:n}=r.get(t._fullpath);t._type=n}return t._type}))()}mode(t){var e=this;return h((function*(){if(!1===t._mode){const r=yield e.mapPromise,{mode:n}=r.get(t._fullpath);t._mode=Object(c.a)(parseInt(n,8))}return t._mode}))()}stat(t){return h((function*(){}))()}content(t){var e=this;return h((function*(){if(!1===t._content){const r=yield e.mapPromise,{fs:n,cache:i,gitdir:o}=e,a=r.get(t._fullpath).oid,{type:u,object:c}=yield Object(s.a)({fs:n,cache:i,gitdir:o,oid:a});t._content="blob"!==u?void 0:new Uint8Array(c)}return t._content}))()}oid(t){var e=this;return h((function*(){if(!1===t._oid){const r=(yield e.mapPromise).get(t._fullpath);t._oid=r.oid}return t._oid}))()}}var p=r(30);function y({ref:t="HEAD"}={}){const e=Object.create(null);return Object.defineProperty(e,p.a,{value:function({fs:e,gitdir:r,cache:n}){return new d({fs:e,gitdir:r,ref:t,cache:n})}}),Object.freeze(e),e}r.d(e,"a",(function(){return y}))},function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)},function(t,e,r){"use strict";function n(t,e){return-(t<e)||+(t>e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=Symbol("GitWalkSymbol")},,function(t,e,r){"use strict";function n(t,e){const r=e-t;return Array.from({length:r},(e,r)=>t+r)}var i=r(110),o=r(30);class a{constructor(){this.value=null}consider(t){null!=t&&(null===this.value?this.value=t:t<this.value&&(this.value=t))}reset(){this.value=null}}function*s(t){const e=new a;let r;const n=[],i=t.length;for(let r=0;r<i;r++)n[r]=t[r].next().value,void 0!==n[r]&&e.consider(n[r]);if(null!==e.value)for(;;){const o=[];r=e.value,e.reset();for(let a=0;a<i;a++)void 0!==n[a]&&n[a]===r?(o[a]=n[a],n[a]=t[a].next().value):o[a]=null,void 0!==n[a]&&e.consider(n[a]);if(yield o,null===e.value)return}}function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=c((function*({fs:t,cache:e,dir:r,gitdir:a,trees:u,map:f=function(){var t=c((function*(t,e){return e}));return function(e,r){return t.apply(this,arguments)}}(),reduce:l=function(){var t=c((function*(t,e){const r=Object(i.a)(e);return void 0!==t&&r.unshift(t),r}));return function(e,r){return t.apply(this,arguments)}}(),iterate:h=((t,e)=>Promise.all([...e].map(t)))}){const d=u.map(n=>n[o.a]({fs:t,dir:r,gitdir:a,cache:e})),p=new Array(d.length).fill("."),y=n(0,d.length),g=function(){var t=c((function*(t){y.map(e=>{const r=t[e];t[e]=r&&new d[e].ConstructEntry(r)});const e=(yield Promise.all(y.map(e=>{const r=t[e];return r?d[e].readdir(r):[]}))).map(t=>(null===t?[]:t)[Symbol.iterator]());return{entries:t,children:s(e)}}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=c((function*(t){const{entries:e,children:r}=yield g(t),n=e.find(t=>t&&t._fullpath)._fullpath,i=yield f(n,e);if(null!==i){let t=yield h(m,r);return t=t.filter(t=>void 0!==t),l(i,t)}}));return function(e){return t.apply(this,arguments)}}();return m(p)}))).apply(this,arguments)}r.d(e,"a",(function(){return f}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${e}".)`),this.code=this.name=i.code,this.data={ref:t,suggestion:e}}}i.code="InvalidRefNameError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(42),i=r(88);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function s(t){return u.apply(this,arguments)}function u(){return(u=a((function*({fs:t,gitdir:e,author:r,commit:o}){const a=Math.floor(Date.now()/1e3),s={name:yield Object(n.a)({fs:t,gitdir:e,path:"user.name"}),email:(yield Object(n.a)({fs:t,gitdir:e,path:"user.email"}))||"",timestamp:a,timezoneOffset:new Date(1e3*a).getTimezoneOffset()},u=Object(i.a)({},s,o?o.author:void 0,r);if(void 0!==u.name)return u}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=i.code,this.data={value:t}}}i.code="InvalidOidError"},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return e>-1&&(t=t.slice(e+1)),t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(139),i=r.n(n),o=r(36),a=r(23),s=r(12);function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}class c{static isIgnored({fs:t,dir:e,gitdir:r=Object(s.join)(e,".git"),filepath:n}){return(c=function*(){if(".git"===Object(o.a)(n))return!0;if("."===n)return!1;let u="";const c=Object(s.join)(r,"info","exclude");(yield t.exists(c))&&(u=yield t.read(c,"utf8"));const f=[{gitignore:Object(s.join)(e,".gitignore"),filepath:n}],l=n.split("/").filter(Boolean);for(let t=1;t<l.length;t++){const r=l.slice(0,t).join("/"),n=l.slice(t).join("/");f.push({gitignore:Object(s.join)(e,r,".gitignore"),filepath:n})}let h=!1;for(const e of f){let r;try{r=yield t.read(e.gitignore,"utf8")}catch(t){if("NOENT"===t.code)continue}const n=i()().add(u);n.add(r);const o=Object(a.a)(e.filepath);if("."!==o&&n.ignores(o))return!0;h=h?!n.test(e.filepath).unignored:n.test(e.filepath).ignored}return h},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=c.apply(t,e);function o(t){u(i,r,n,o,a,"next",t)}function a(t){u(i,r,n,o,a,"throw",t)}o(void 0)}))})();var c}}},function(t,e,r){"use strict";var n={};(0,r(28).assign)(n,r(198),r(201),r(131)),t.exports=n},function(t,e,r){"use strict";function n(t){const[,e,r,n,o]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(n),timezoneOffset:i(o)}}function i(t){let[,e,r,n]=t.match(/(\+|-)(\d\d)(\d\d)/);return n=("+"===e?1:-1)*(60*Number(r)+Number(n)),0===(i=n)?i:-i;var i}r.d(e,"a",(function(){return n}))},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Expected "${t}" but received "${e}".`),this.code=this.name=i.code,this.data={expected:t,actual:e}}}i.code="ParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(11);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,path:r}){return(yield n.a.get({fs:t,gitdir:e})).get(r)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=i.code,this.data={filepath:t}}}i.code="UnsafeFilepathError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v}));var n=r(57),i=r(80),o=r(60),a=r(74),s=r(58),u=r(101),c=r(76);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}const y=(t,e)=>t.endsWith("?")?`${t}${e}`:`${t}/${e.replace(/^https?:\/\//,"")}`,g=(t,e)=>{(e.username||e.password)&&(t.Authorization=Object(a.a)(e)),e.headers&&Object.assign(t,e.headers)},m=function(){var e=p((function*(e){try{const r=t.from(yield Object(s.a)(e.body)),n=r.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:r}}catch(t){return{}}}));return function(t){return e.apply(this,arguments)}}();class v{static capabilities(){return p((function*(){return["discover","connect"]}))()}static discover({http:t,onProgress:e,onAuth:r,onAuthSuccess:s,onAuthFailure:f,corsProxy:h,service:d,url:v,headers:b,protocolVersion:_}){return p((function*(){let{url:p,auth:w}=Object(u.a)(v);const x=h?y(h,p):p;let A,E;(w.username||w.password)&&(b.Authorization=Object(a.a)(w)),2===_&&(b["Git-Protocol"]="version=2");let k=!1;do{if(A=yield t.request({onProgress:e,method:"GET",url:`${x}/info/refs?service=${d}`,headers:b}),E=!1,401===A.statusCode||203===A.statusCode){const t=k?f:r;if(t){if(w=yield t(p,l({},w,{headers:l({},b)})),w&&w.cancel)throw new o.a;w&&(g(b,w),k=!0,E=!0)}}else 200===A.statusCode&&k&&s&&(yield s(p,w))}while(E);if(200!==A.statusCode){const{response:t}=yield m(A);throw new n.a(A.statusCode,A.statusMessage,t)}if(A.headers["content-type"]===`application/x-${d}-advertisement`){const t=yield Object(c.a)(A.body,{service:d});return t.auth=w,t}{const{preview:t,response:e,data:r}=yield m(A);try{const t=yield Object(c.a)([r],{service:d});return t.auth=w,t}catch(r){throw new i.a(t,e)}}}))()}static connect({http:t,onProgress:e,corsProxy:r,service:i,url:o,auth:a,body:s,headers:c}){return p((function*(){const f=Object(u.a)(o);f&&(o=f.url),r&&(o=y(r,o)),c["content-type"]=`application/x-${i}-request`,c.accept=`application/x-${i}-result`,g(c,a);const l=yield t.request({onProgress:e,method:"POST",url:`${o}/${i}`,body:s,headers:c});if(200!==l.statusCode){const{response:t}=m(l);throw new n.a(l.statusCode,l.statusMessage,t)}return l}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=Object(n.a)(t);for(;;){const{value:t,done:n}=yield r.next();if(t&&(yield e(t)),n)break}r.return&&r.return()}))).apply(this,arguments)}},function(t,e,r){"use strict";t.exports=TypeError},function(t,e,r){"use strict";var n=r(180);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},function(t,e,r){"use strict";var n=r(183);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(26),i=r.n(n),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,"next",t)}function u(t){a(o,n,i,s,u,"throw",t)}s(void 0)}))}}let u=null;class c{static read({fs:t,gitdir:e}){return s((function*(){null===u&&(u=new i.a);const r=Object(o.join)(e,"shallow"),n=new Set;return yield u.acquire(r,s((function*(){const e=yield t.read(r,{encoding:"utf8"});return null===e?n:""===e.trim()?n:void e.trim().split("\n").map(t=>n.add(t))}))),n}))()}static write({fs:t,gitdir:e,oids:r}){return s((function*(){null===u&&(u=new i.a);const n=Object(o.join)(e,"shallow");if(r.size>0){const e=[...r].join("\n")+"\n";yield u.acquire(n,s((function*(){yield t.write(n,e,{encoding:"utf8"})})))}else yield u.acquire(n,s((function*(){yield t.rm(n)})))}))()}}},function(t,e,r){"use strict";function n({name:t,email:e,timestamp:r,timezoneOffset:n}){return`${t} <${e}> ${r} ${n=function(t){const e=function(t){return Math.sign(t)||(Object.is(t,-0)?-1:1)}((r=t,0===r?r:-r));var r;t=Math.abs(t);const n=Math.floor(t/60);t-=60*n;let i=String(n),o=String(t);i.length<2&&(i="0"+i);o.length<2&&(o="0"+o);return(-1===e?"-":"+")+i+o}(n)}`}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(t.path,e.path)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(19),i=r(20),o=r(17),a=r(14),s=r(7);function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=c((function*({fs:t,cache:e,gitdir:r,oid:u}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===u)return{tree:a.a.from([]),oid:u};const{type:c,object:l}=yield Object(s.a)({fs:t,cache:e,gitdir:r,oid:u});if("tag"===c)return f({fs:t,cache:e,gitdir:r,oid:u=i.a.from(l).parse().object});if("commit"===c)return f({fs:t,cache:e,gitdir:r,oid:u=o.a.from(l).parse().tree});if("tree"!==c)throw new n.a(u,c,"tree");return{tree:a.a.from(l),oid:u}}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t,e){const r=e.toString(16);return"0".repeat(t-r.length)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(24);function i(t,e,r=!0,i=!0){const o=Object(n.a)(t),a=Object(n.a)(e);return r&&o.mode!==a.mode||o.mtimeSeconds!==a.mtimeSeconds||o.ctimeSeconds!==a.ctimeSeconds||o.uid!==a.uid||o.gid!==a.gid||i&&o.ino!==a.ino||o.size!==a.size}},,function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!f){var t=s(h);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||f||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`HTTP Error: ${t} ${e}`),this.code=this.name=i.code,this.data={statusCode:t,statusMessage:e,response:r}}}i.code="HttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(45);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*(t){let e=0;const r=[];yield Object(n.a)(t,t=>{r.push(t),e+=t.byteLength});const i=new Uint8Array(e);let o=0;for(const t of r)i.set(t,o),o+=t.byteLength;return i}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("The operation was canceled."),this.code=this.name=i.code,this.data={}}}i.code="UserCanceledError"},function(t,e,r){"use strict";var n=r(81),i=r(82);var o=r(44);r.d(e,"a",(function(){return a}));class a{static getRemoteHelperFor({url:t}){const e=new Map;e.set("http",o.a),e.set("https",o.a);const r=function({url:t}){if(t.startsWith("git@"))return{transport:"ssh",address:t};const e=t.match(/(\w+)(:\/\/|::)(.*)/);if(null===e)return;if("://"===e[2])return{transport:e[1],address:e[0]};if("::"===e[2])return{transport:e[1],address:e[3]}}({url:t});if(!r)throw new i.a(t);if(e.has(r.transport))return e.get(r.transport);throw new n.a(t,r.transport,"ssh"===r.transport?function(t){return t=(t=t.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(t):void 0)}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(134),i=r.n(n),o=r(2),a=r(22),s=r(16),u=r(136),c=r(135),f=r(65),l=r(15);function h(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}class p{constructor(t){Object.assign(this,t),this.offsetCache={}}static fromIdx({idx:t,getExternalRefDelta:e}){return d((function*(){const r=new s.a(t);if("ff744f63"!==r.slice(4).toString("hex"))return;const n=r.readUInt32BE();if(2!==n)throw new o.a(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2147483648)throw new o.a("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+1020);const i=r.readUInt32BE(),a=[];for(let t=0;t<i;t++){const e=r.slice(20).toString("hex");a[t]=e}r.seek(r.tell()+4*i);const u=new Map;for(let t=0;t<i;t++)u.set(a[t],r.readUInt32BE());const c=r.slice(20).toString("hex");return new p({hashes:a,crcs:{},offsets:u,packfileSha:c,getExternalRefDelta:e})}))()}static fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){return d((function*(){const n={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},o={},s=t.slice(-20).toString("hex"),u=[],f={},h=new Map;let y=null,g=null;yield Object(c.a)([t],function(){var t=d((function*({data:t,type:e,reference:i,offset:a,num:s}){null===y&&(y=s);const u=Math.floor(100*(y-s)/y);u!==g&&r&&(yield r({phase:"Receiving objects",loaded:y-s,total:y})),g=u,["commit","tree","blob","tag"].includes(e=n[e])?o[a]={type:e,offset:a}:"ofs-delta"===e?o[a]={type:e,offset:a}:"ref-delta"===e&&(o[a]={type:e,offset:a})}));return function(e){return t.apply(this,arguments)}}());const m=Object.keys(o).map(Number);for(const[e,r]of m.entries()){const n=e+1===m.length?t.byteLength-20:m[e+1],a=o[r],s=i.a.buf(t.slice(r,n))>>>0;a.end=n,a.crc=s}const v=new p({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:u,offsets:h,getExternalRefDelta:e});g=null;let b=0;const _=[0,0,0,0,0,0,0,0,0,0,0,0];for(let t in o){t=Number(t);const e=Math.floor(100*b/y);e!==g&&r&&(yield r({phase:"Resolving deltas",loaded:b,total:y})),b++,g=e;const n=o[t];if(!n.oid)try{v.readDepth=0,v.externalReadDepth=0;const{type:e,object:r}=yield v.readSlice({start:t});_[v.readDepth]+=1;const i=yield Object(l.a)(a.a.wrap({type:e,object:r}));n.oid=i,u.push(i),h.set(i,t),f[i]=n.crc}catch(t){continue}}return u.sort(),v}))()}toBuffer(){var e=this;return d((function*(){const r=[],n=(e,n)=>{r.push(t.from(e,n))};n("ff744f63","hex"),n("00000002","hex");const i=new s.a(t.alloc(1024));for(let t=0;t<256;t++){let r=0;for(const n of e.hashes)parseInt(n.slice(0,2),16)<=t&&r++;i.writeUInt32BE(r)}r.push(i.buffer);for(const t of e.hashes)n(t,"hex");const o=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)o.writeUInt32BE(e.crcs[t]);r.push(o.buffer);const a=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)a.writeUInt32BE(e.offsets.get(t));r.push(a.buffer),n(e.packfileSha,"hex");const u=t.concat(r),c=yield Object(l.a)(u),f=t.alloc(20);return f.write(c,"hex"),t.concat([u,f])}))()}load({pack:t}){var e=this;return d((function*(){e.pack=t}))()}unload(){var t=this;return d((function*(){t.pack=null}))()}read({oid:t}){var e=this;return d((function*(){if(!e.offsets.get(t)){if(e.getExternalRefDelta)return e.externalReadDepth++,e.getExternalRefDelta(t);throw new o.a(`Could not read object ${t} from packfile`)}const r=e.offsets.get(t);return e.readSlice({start:r})}))()}readSlice({start:e}){var r=this;return d((function*(){if(r.offsetCache[e])return Object.assign({},r.offsetCache[e]);r.readDepth++;if(!r.pack)throw new o.a("Tried to read from a GitPackIndex with no packfile loaded into memory");const n=(yield r.pack).slice(e),i=new s.a(n),a=i.readUInt8(),c=112&a;let l={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[c];if(void 0===l)throw new o.a("Unrecognized type: 0b"+c.toString(2));const h=15&a;let d=h;128&a&&(d=function(t,e){let r=e,n=4,i=null;do{i=t.readUInt8(),r|=(127&i)<<n,n+=7}while(128&i);return r}(i,h));let p=null,y=null;if("ofs_delta"===l){const t=function(t){const e=[];let r=0,n=0;do{r=t.readUInt8();const i=127&r;e.push(i),n=128&r}while(n);return e.reduce((t,e)=>t+1<<7|e,-1)}(i),n=e-t;({object:p,type:l}=yield r.readSlice({start:n}))}if("ref_delta"===l){const t=i.slice(20).toString("hex");({object:p,type:l}=yield r.read({oid:t}))}const g=n.slice(i.tell());if(y=t.from(yield Object(f.a)(g)),y.byteLength!==d)throw new o.a(`Packfile told us object would have length ${d} but it had length ${y.byteLength}`);return p&&(y=t.from(Object(u.a)(y,p))),r.readDepth>3&&(r.offsetCache[e]={type:l,object:y}),{type:l,format:"content",object:y}}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){let e=t>0?t>>12:0;4!==e&&8!==e&&10!==e&&14!==e&&(e=8);let r=511&t;return r=73&r?493:420,8!==e&&(r=0),(e<<12)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}class a{constructor(e){if(void 0===t)throw new Error("Missing Buffer dependency");this.stream=Object(n.a)(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}byte(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(1),t.buffer[t.undoCursor]}))()}chunk(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(t.buffer.length),t.buffer.slice(t.undoCursor,t.cursor)}))()}read(t){var e=this;return o((function*(){if(!e.eof())return e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t),e.buffer.slice(e.undoCursor,e.cursor)}))()}skip(t){var e=this;return o((function*(){e.eof()||(e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t))}))()}undo(){var t=this;return o((function*(){t.cursor=t.undoCursor}))()}_next(){var e=this;return o((function*(){e.started=!0;let{done:r,value:n}=yield e.stream.next();return r&&(e._ended=!0,!n)?t.alloc(0):(n&&(n=t.from(n)),n)}))()}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}_accumulate(e){var r=this;return o((function*(){if(r._ended)return;const n=[r.buffer];for(;r.cursor+e>s(n);){const t=yield r._next();if(r._ended)break;n.push(t)}r.buffer=t.concat(n)}))()}_loadnext(){var t=this;return o((function*(){t._discardedBytes+=t.buffer.length,t.undoCursor=0,t.cursor=0,t.buffer=yield t._next()}))()}_init(){var t=this;return o((function*(){t.buffer=yield t._next()}))()}}function s(t){return t.reduce((t,e)=>t+e.length,0)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}let s=!1;function u(t){return c.apply(this,arguments)}function c(){return(c=a((function*(t){return null===s&&(s=h()),s?f(t):i.a.inflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new DecompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function h(){try{if(new DecompressionStream("deflate"))return!0}catch(t){}return!1}},,function(t,e,r){"use strict";function n(t){return t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]?t[Symbol.iterator]():t.next?t:function(t){let e=[t];return{next:()=>Promise.resolve({done:0===e.length,value:e.pop()}),return:()=>(e=[],{}),[Symbol.asyncIterator](){return this}}}(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(19),i=r(20),o=r(17),a=r(7);function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}function c(t){return f.apply(this,arguments)}function f(){return(f=u((function*({fs:t,cache:e,gitdir:r,oid:s}){const{type:u,object:f}=yield Object(a.a)({fs:t,cache:e,gitdir:r,oid:s});if("tag"===u)return c({fs:t,cache:e,gitdir:r,oid:s=i.a.from(f).parse().object});if("commit"!==u)throw new n.a(s,u,"commit");return{commit:o.a.from(f),oid:s}}))).apply(this,arguments)}function l(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return p.apply(this,arguments)}function p(){return(p=h((function*({fs:t,cache:e,gitdir:r,oid:n}){const{commit:i,oid:o}=yield c({fs:t,cache:e,gitdir:r,oid:n});return{oid:o,commit:i.parse(),payload:i.withoutSignature()}}))).apply(this,arguments)}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";function n(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}r.d(e,"a",(function(){return n}))},,function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(2);class i{constructor({remotePath:t,localPath:e,force:r,matchPrefix:n}){Object.assign(this,{remotePath:t,localPath:e,force:r,matchPrefix:n})}static from(t){const[e,r,o,a,s]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),u="+"===e,c="*"===o;if(c!==("*"===s))throw new n.a("Invalid refspec");return new i({remotePath:r,localPath:a,force:u,matchPrefix:c})}translate(t){if(this.matchPrefix){if(t.startsWith(this.remotePath))return this.localPath+t.replace(this.remotePath,"")}else if(t===this.remotePath)return this.localPath;return null}reverseTranslate(t){if(this.matchPrefix){if(t.startsWith(this.localPath))return this.remotePath+t.replace(this.localPath,"")}else if(t===this.localPath)return this.remotePath;return null}}},function(t,e,r){"use strict";(function(t){function n({username:e="",password:r=""}){return`Basic ${t.from(`${e}:${r}`).toString("base64")}`}r.d(e,"a",(function(){return n}))}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(13),i=r(29),o=r(105),a=r(2);var s=r(24);function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}class f{constructor({fs:t,gitdir:e,cache:r}){this.treePromise=n.a.acquire({fs:t,gitdir:e,cache:r},function(){var t=c((function*(t){return Object(o.a)(t.entries)}));return function(e){return t.apply(this,arguments)}}());const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}type(){var t=this;return c((function*(){return i.type(t)}))()}mode(){var t=this;return c((function*(){return i.mode(t)}))()}stat(){var t=this;return c((function*(){return i.stat(t)}))()}content(){var t=this;return c((function*(){return i.content(t)}))()}oid(){var t=this;return c((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return c((function*(){const r=t._fullpath,n=(yield e.treePromise).get(r);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${r}'`);const o=n.children.map(t=>t.fullpath);return o.sort(i.a),o}))()}type(t){return c((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return c((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return c((function*(){if(!1===t._stat){const r=(yield e.treePromise).get(t._fullpath);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);const n="tree"===r.type?{}:Object(s.a)(r.metadata);t._type="tree"===r.type?"tree":function(t){switch(t){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new a.a(`Unexpected GitTree entry mode: ${t.toString(8)}`)}(n.mode),t._mode=n.mode,"tree"===r.type?t._stat=void 0:t._stat=n}return t._stat}))()}content(t){return c((function*(){}))()}oid(t){var e=this;return c((function*(){if(!1===t._oid){const r=(yield e.treePromise).get(t._fullpath);t._oid=r.metadata.oid}return t._oid}))()}}var l=r(30);function h(){const t=Object.create(null);return Object.defineProperty(t,l.a,{value:function({fs:t,gitdir:e,cache:r}){return new f({fs:t,gitdir:e,cache:r})}}),Object.freeze(t),t}r.d(e,"a",(function(){return h}))},function(t,e,r){"use strict";var n=r(78),i=r(41),o=r(10);function a(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,"next",t)}function u(t){a(o,n,i,s,u,"throw",t)}s(void 0)}))}}function u(t){return c.apply(this,arguments)}function c(){return(c=s((function*(t){const e={};let r;for(;r=yield t(),!0!==r;){if(null===r)continue;r=r.toString("utf8").replace(/\n$/,"");const t=r.indexOf("=");if(t>-1){const n=r.slice(0,t),i=r.slice(t+1);e[n]=i}else e[r]=!0}return{protocolVersion:2,capabilities2:e}}))).apply(this,arguments)}function f(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function h(t,e){return d.apply(this,arguments)}function d(){return(d=l((function*(t,{service:e}){const r=new Set,a=new Map,s=new Map,c=o.a.streamReader(t);let f=yield c();for(;null===f;)f=yield c();if(!0===f)throw new n.a;if(f.includes("version 2"))return u(c);if(f.toString("utf8").replace(/\n$/,"")!==`# service=${e}`)throw new i.a(`# service=${e}\\n`,f.toString("utf8"));let l=yield c();for(;null===l;)l=yield c();if(!0===l)return{capabilities:r,refs:a,symrefs:s};if(l=l.toString("utf8"),l.includes("version 2"))return u(c);const[h,d]=p(l,"\0","\\x00");if(d.split(" ").map(t=>r.add(t)),"0000000000000000000000000000000000000000 capabilities^{}"!==h){const[t,e]=p(h," "," ");for(a.set(e,t);;){const t=yield c();if(!0===t)break;if(null!==t){const[e,r]=p(t.toString("utf8")," "," ");a.set(r,e)}}}for(const t of r)if(t.startsWith("symref=")){const e=t.match(/symref=([^:]+):(.*)/);3===e.length&&s.set(e[1],e[2])}return{protocolVersion:1,capabilities:r,refs:a,symrefs:s}}))).apply(this,arguments)}function p(t,e,r){const n=t.trim().split(e);if(2!==n.length)throw new i.a(`Two strings separated by '${r}'`,t.toString("utf8"));return n}r.d(e,"a",(function(){return h}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(14),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function s(t){return u.apply(this,arguments)}function u(){return(u=a((function*({fs:t,gitdir:e,tree:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"tree",object:o,format:"content"})}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("Empty response from git server."),this.code=this.name=i.code,this.data={}}}i.code="EmptyServerResponseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:\n[remote "${t}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=i.code,this.data={remote:t}}}i.code="NoRefspecError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${t}`),this.code=this.name=i.code,this.data={preview:t,response:e}}}i.code="SmartHttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`Git remote "${t}" uses an unrecognized transport protocol: "${e}"`),this.code=this.name=i.code,this.data={url:t,transport:e,suggestion:r}}}i.code="UnknownTransportError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Cannot parse remote URL: "${t}"`),this.code=this.name=i.code,this.data={url:t}}}i.code="UrlParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Modifying the index is not possible because you have unmerged files: ${t.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="UnmergedPathsError"},function(t,e,r){"use strict";var n=r(161),i=r(162),o=r(117).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=(e=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),y=c(n)+l(p,i,o,s)+u+r[d]+a[p]|0;u=s,s=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`,i=yield t.read(`${e}/${n}`);return i?{object:i,format:"deflated",source:n}:null}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(62);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}const a=Symbol("PackfileCache");function s(){return(s=o((function*({fs:t,filename:e,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){const a=yield t.read(e);return n.a.fromIdx({idx:a,getExternalRefDelta:r})}))).apply(this,arguments)}function u({fs:t,cache:e,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}){e[a]||(e[a]=new Map);let u=e[a].get(r);return u||(u=function(t){return s.apply(this,arguments)}({fs:t,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}),e[a].set(r,u)),u}},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}let s=null;function u(t){return c.apply(this,arguments)}function c(){return(c=a((function*(t){return null===s&&(s=h()),s?f(t):i.a.deflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new CompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function h(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch(t){return!1}}},function(t,e,r){"use strict";function n(t,...e){for(const r of e)if(r)for(const e of Object.keys(r)){const n=r[e];void 0!==n&&(t[e]=n)}return t}r.d(e,"a",(function(){return n}))},,,function(t,e,r){"use strict";r.d(e,"a",(function(){return A})),r.d(e,"c",(function(){return j})),r.d(e,"b",(function(){return R}));var n=r(26),i=r.n(n),o=r(75),a=r(27),s=r(99),u=r(32),c=r(77),f=r(2),l=r(8),h=r(37),d=r(13),p=r(7),y=r(85),g=r(18),m=r(12),v=r(156);function b(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){b(o,n,i,a,s,"next",t)}function s(t){b(o,n,i,a,s,"throw",t)}a(void 0)}))}}const w={stage:o.a,workdir:s.a};let x;function A(t,e){return E.apply(this,arguments)}function E(){return(E=_((function*(t,e){return void 0===x&&(x=new i.a),x.acquire(t,e)}))).apply(this,arguments)}function k(t,e,r,n){return P.apply(this,arguments)}function P(){return(P=_((function*(t,e,r,n,i=null){const o=Object(m.join)(r,n),a=yield t.lstat(o);if(!a)throw new l.a(o);if(a.isDirectory())throw new f.a(`${o}: file expected, but found directory`);const s=i?yield Object(y.a)({fs:t,gitdir:e,oid:i}):void 0;let u=s?i:void 0;return s||(yield A({fs:t,gitdir:e,currentFilepath:o},_((function*(){const r=a.isSymbolicLink()?yield t.readlink(o).then(v.a):yield t.read(o);if(null===r)throw new l.a(o);u=yield Object(g.a)({fs:t,gitdir:e,type:"blob",object:r})})))),u}))).apply(this,arguments)}function S(t){return O.apply(this,arguments)}function O(){return(O=_((function*({fs:t,dir:e,gitdir:r,entries:n}){function i(t){return o.apply(this,arguments)}function o(){return(o=_((function*(n){if("tree"===n.type){if(!n.oid){const e=yield Promise.all(n.children.map(i));n.oid=yield Object(c.a)({fs:t,gitdir:r,tree:e}),n.mode=16384}}else"blob"===n.type&&(n.oid=yield k(t,r,e,n.path,n.oid),n.mode=33188);return n.path=n.path.split("/").pop(),n}))).apply(this,arguments)}return Promise.all(n.map(i))}))).apply(this,arguments)}function j(t){return B.apply(this,arguments)}function B(){return(B=_((function*({fs:t,dir:e,gitdir:r,treePair:n}){const i="stage"===n[1],o=n.map(t=>"string"==typeof t?w[t]():t),a=[],s=function(){var n=_((function*(n,[i,o]){if("."!==n&&!(yield h.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return o?((!i||(yield i.oid())!==(yield o.oid())&&void 0!==(yield o.oid()))&&a.push([i,o]),{mode:yield o.mode(),path:n,oid:yield o.oid(),type:yield o.type()}):void 0}));return function(t,e){return n.apply(this,arguments)}}(),f=function(){var t=_((function*(t,e){return e=e.filter(Boolean),t?(t.children=e,t):e.length>0?e:void 0}));return function(e,r){return t.apply(this,arguments)}}(),l=function(){var r=_((function*(r,n){const o=[];for(const r of n){const[n,s]=r;i?s&&((yield t.exists(`${e}/${s.toString()}`))?o.push(r):a.push([null,s])):n&&(s?o.push(r):a.push([n,null]))}return o.length?Promise.all(o.map(r)):[]}));return function(t,e){return r.apply(this,arguments)}}(),d=yield Object(u.a)({fs:t,cache:{},dir:e,gitdir:r,trees:o,map:s,reduce:f,iterate:l});if(0===a.length||0===d.length)return null;const p=(yield S({fs:t,dir:e,gitdir:r,entries:d})).filter(Boolean).map(t=>({mode:t.mode,path:t.path,oid:t.oid,type:t.type}));return Object(c.a)({fs:t,gitdir:r,tree:p})}))).apply(this,arguments)}function R(t){return I.apply(this,arguments)}function I(){return(I=_((function*({fs:t,dir:e,gitdir:r,stashCommit:n,parentCommit:i,wasStaged:o}){const s=[],c=[],f=yield Object(u.a)({fs:t,cache:{},dir:e,gitdir:r,trees:[Object(a.a)({ref:i}),Object(a.a)({ref:n})],map:(l=_((function*(n,[i,a]){if("."===n||(yield h.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return;const u=a?yield a.type():yield i.type();if("tree"!==u&&"blob"!==u)return;if(!a&&i){const t="tree"===u?"rmdir":"rm";return"tree"===u&&s.push(n),"blob"===u&&o&&c.push({filepath:n,oid:yield i.oid()}),{method:t,filepath:n}}const f=yield a.oid();return i&&(yield i.oid())===f?void 0:"tree"===u?{method:"mkdir",filepath:n}:(o&&c.push({filepath:n,oid:f,stats:yield t.lstat(Object(m.join)(e,n))}),{method:"write",filepath:n,oid:f})})),function(t,e){return l.apply(this,arguments)})});var l;yield A({fs:t,gitdir:r,dirRemoved:s,ops:f},_((function*(){for(const n of f){const i=Object(m.join)(e,n.filepath);switch(n.method){case"rmdir":yield t.rmdir(i);break;case"mkdir":yield t.mkdir(i);break;case"rm":yield t.rm(i);break;case"write":if(!s.some(t=>i.startsWith(t))){const{object:e}=yield Object(p.a)({fs:t,cache:{},gitdir:r,oid:n.oid});(yield t.exists(i))&&(yield t.rm(i)),yield t.write(i,e)}}}}))),yield d.a.acquire({fs:t,gitdir:r,cache:{}},function(){var t=_((function*(t){c.forEach(({filepath:e,stats:r,oid:n})=>{t.insert({filepath:e,stats:r,oid:n})})}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=r(48),i=r(46),o=r(93),a=r(126);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},function(t,e,r){"use strict";t.exports=Function.prototype.call},function(t,e,r){"use strict";t.exports=Function.prototype.apply},function(t,e,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(212),i=r(30);function o(){const t=Object.create(null);return Object.defineProperty(t,i.a,{value:function({fs:t,dir:e,gitdir:r,cache:i}){return new n.a({fs:t,dir:e,gitdir:r,cache:i})}}),Object.freeze(t),t}},,function(t,e,r){"use strict";function n(t){let e=t.match(/^https?:\/\/([^/]+)@/);if(null==e)return{url:t,auth:{}};e=e[1];const[r,n]=e.split(":");return{url:t=t.replace(`${e}@`,""),auth:{username:r,password:n}}}r.d(e,"a",(function(){return n}))},,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n=r(2),i=r(43),o=r(16),a=r(51),s=r(24),u=r(15);function c(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}class l{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(0===t.flags.stage)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let e=this._entries.get(t.path);e||(this._entries.set(t.path,t),e=t),e.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static from(e){return f((function*(){if(t.isBuffer(e))return l.fromBuffer(e);if(null===e)return new l(null);throw new n.a("invalid type passed to GitIndex.from")}))()}static fromBuffer(t){return f((function*(){if(0===t.length)throw new n.a("Index file is empty (.git/index)");const e=new l,r=new o.a(t),a=r.toString("utf8",4);if("DIRC"!==a)throw new n.a(`Invalid dircache magic file number: ${a}`);const s=yield Object(u.a)(t.slice(0,-20)),c=t.slice(-20).toString("hex");if(c!==s)throw new n.a(`Invalid checksum in GitIndex buffer: expected ${c} but saw ${s}`);const f=r.readUInt32BE();if(2!==f)throw new n.a(`Unsupported dircache version: ${f}`);const h=r.readUInt32BE();let d=0;for(;!r.eof()&&d<h;){const o={};o.ctimeSeconds=r.readUInt32BE(),o.ctimeNanoseconds=r.readUInt32BE(),o.mtimeSeconds=r.readUInt32BE(),o.mtimeNanoseconds=r.readUInt32BE(),o.dev=r.readUInt32BE(),o.ino=r.readUInt32BE(),o.mode=r.readUInt32BE(),o.uid=r.readUInt32BE(),o.gid=r.readUInt32BE(),o.size=r.readUInt32BE(),o.oid=r.slice(20).toString("hex");const a=r.readUInt16BE();o.flags=(p=a,{assumeValid:Boolean(32768&p),extended:Boolean(16384&p),stage:(12288&p)>>12,nameLength:4095&p});const s=t.indexOf(0,r.tell()+1)-r.tell();if(s<1)throw new n.a(`Got a path length of: ${s}`);if(o.path=r.toString("utf8",s),o.path.includes("..\\")||o.path.includes("../"))throw new i.a(o.path);let u=8-(r.tell()-12)%8;for(0===u&&(u=8);u--;){const t=r.readUInt8();if(0!==t)throw new n.a(`Expected 1-8 null characters but got '${t}' after ${o.path}`);if(r.eof())throw new n.a("Unexpected end of file")}o.stages=[],e._addEntry(o),d++}var p;return e}))()}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(a.a)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(t=>t):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:e,stats:r,oid:n,stage:i=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Object(s.a)(r);const o=t.from(e),a={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:i,nameLength:o.length<4095?o.length:4095},stages:[]};this._addEntry(a),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const e of this._entries.keys())e.startsWith(t+"/")&&this._entries.delete(e);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join("\n")}static _entryToBuffer(e){return f((function*(){const r=t.from(e.path),n=8*Math.ceil((62+r.length+1)/8),i=t.alloc(n),a=new o.a(i),u=Object(s.a)(e);return a.writeUInt32BE(u.ctimeSeconds),a.writeUInt32BE(u.ctimeNanoseconds),a.writeUInt32BE(u.mtimeSeconds),a.writeUInt32BE(u.mtimeNanoseconds),a.writeUInt32BE(u.dev),a.writeUInt32BE(u.ino),a.writeUInt32BE(u.mode),a.writeUInt32BE(u.uid),a.writeUInt32BE(u.gid),a.writeUInt32BE(u.size),a.write(e.oid,20,"hex"),a.writeUInt16BE(function(e){const r=e.flags;return r.extended=!1,r.nameLength=Math.min(t.from(e.path).length,4095),(r.assumeValid?32768:0)+(r.extended?16384:0)+((3&r.stage)<<12)+(4095&r.nameLength)}(e)),a.write(e.path,r.length,"utf8"),i}))()}toObject(){var e=this;return f((function*(){const r=t.alloc(12),n=new o.a(r);n.write("DIRC",4,"utf8"),n.writeUInt32BE(2),n.writeUInt32BE(e.entriesFlat.length);let i=[];for(const t of e.entries)if(i.push(l._entryToBuffer(t)),t.stages.length>1)for(const e of t.stages)e&&e!==t&&i.push(l._entryToBuffer(e));i=yield Promise.all(i);const a=t.concat(i),s=t.concat([r,a]),c=yield Object(u.a)(s);return t.concat([s,t.from(c,"hex")])}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(36),i=r(23);function o(t){const e=new Map,r=function(t){if(!e.has(t)){const o={type:"tree",fullpath:t,basename:Object(n.a)(t),metadata:{},children:[]};e.set(t,o),o.parent=r(Object(i.a)(t)),o.parent&&o.parent!==o&&o.parent.children.push(o)}return e.get(t)},o=function(t,o){if(!e.has(t)){const a={type:"blob",fullpath:t,basename:Object(n.a)(t),metadata:o,parent:r(Object(i.a)(t)),children:[]};a.parent&&a.parent.children.push(a),e.set(t,a)}return e.get(t)};r(".");for(const e of t)o(e.path,e);return e}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return v}));const o=t=>{if("boolean"==typeof t)return t;if("true"===(t=t.trim().toLowerCase())||"yes"===t||"on"===t)return!0;if("false"===t||"no"===t||"off"===t)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${t}`)},a={core:{filemode:o,bare:o,logallrefupdates:o,symlinks:o,ignorecase:o,bigFileThreshold:t=>{if("number"==typeof t)return t;t=t.toLowerCase();let e=parseInt(t);return t.endsWith("k")&&(e*=1024),t.endsWith("m")&&(e*=1048576),t.endsWith("g")&&(e*=1073741824),e}}},s=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,u=/^[A-Za-z0-9-.]+$/,c=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,f=/^[A-Za-z][A-Za-z-]*$/,l=/^(.*?)( *[#;].*)$/,h=t=>{const e=l.exec(t);if(null==e)return t;const[r,n]=e.slice(1);return d(r)&&d(n)?`${r}${n}`:r},d=t=>(t.match(/(?:^|[^\\])"/g)||[]).length%2!=0,p=t=>t.split("").reduce((t,e,r,n)=>{const i='"'===e&&"\\"!==n[r-1],o="\\"===e&&'"'===n[r+1];return i||o?t:t+e},""),y=t=>null!=t?t.toLowerCase():null,g=(t,e,r)=>[y(t),e,y(r)].filter(t=>null!=t).join("."),m=t=>{const e=t.split("."),r=e.shift(),n=e.pop(),i=e.length?e.join("."):void 0;return{section:r,subsection:i,name:n,path:g(r,i,n),sectionPath:g(r,i,null),isSection:!!r}};class v{constructor(t){let e=null,r=null;this.parsedConfig=t?t.split("\n").map(t=>{let n=null,i=null;const o=t.trim(),a=(t=>{const e=s.exec(t);if(null!=e){const[t,r]=e.slice(1);return[t,r]}return null})(o),u=null!=a;if(u)[e,r]=a;else{const t=(t=>{const e=c.exec(t);if(null!=e){const[t,r="true"]=e.slice(1),n=h(r);return[t,p(n)]}return null})(o);null!=t&&([n,i]=t)}const f=g(e,r,n);return{line:t,isSection:u,section:e,subsection:r,name:n,value:i,path:f}}):[]}static from(t){return new v(t)}get(t,e=!1){var r=this;return i((function*(){const n=m(t).path,i=r.parsedConfig.filter(t=>t.path===n).map(({section:t,name:e,value:r})=>{const n=a[t]&&a[t][e];return n?n(r):r});return e?i:i.pop()}))()}getall(t){var e=this;return i((function*(){return e.get(t,!0)}))()}getSubsections(t){var e=this;return i((function*(){return e.parsedConfig.filter(e=>e.isSection&&e.section===t).map(t=>t.subsection)}))()}deleteSection(t,e){var r=this;return i((function*(){r.parsedConfig=r.parsedConfig.filter(r=>!(r.section===t&&r.subsection===e))}))()}append(t,e){var r=this;return i((function*(){return r.set(t,e,!0)}))()}set(t,e,r=!1){var n=this;return i((function*(){const{section:i,subsection:o,name:a,path:s,sectionPath:c,isSection:l}=m(t),h=(d=n.parsedConfig,p=t=>t.path===s,d.reduce((t,e,r)=>p(e)?r:t,-1));var d,p;if(null==e)-1!==h&&n.parsedConfig.splice(h,1);else if(-1!==h){const t=n.parsedConfig[h],i=Object.assign({},t,{name:a,value:e,modified:!0});r?n.parsedConfig.splice(h+1,0,i):n.parsedConfig[h]=i}else{const t=n.parsedConfig.findIndex(t=>t.path===c),r={section:i,subsection:o,name:a,value:e,modified:!0,path:s};if(u.test(i)&&f.test(a))if(t>=0)n.parsedConfig.splice(t+1,0,r);else{const t={isSection:l,section:i,subsection:o,modified:!0,path:c};n.parsedConfig.push(t,r)}}}))()}toString(){return this.parsedConfig.map(({line:t,section:e,subsection:r,name:n,value:i,modified:o=!1})=>o?null!=n&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${n} = "${i}"`:`\t${n} = ${i}`:null!=r?`[${e} "${r}"]`:`[${e}]`:t).join("\n")}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(73);class i{constructor(t=[]){this.rules=t}static from(t){const e=[];for(const r of t)e.push(n.a.from(r));return new i(e)}add(t){const e=n.a.from(t);this.rules.push(e)}translate(t){const e=[];for(const r of this.rules)for(const n of t){const t=r.translate(n);t&&e.push([n,t])}return e}translateOne(t){let e=null;for(const r of this.rules){const n=r.translate(t);n&&(e=n)}return e}localNamespaces(){return this.rules.filter(t=>t.matchPrefix).map(t=>t.localPath.replace(/\/$/,""))}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(2),i=r(86),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,"next",t)}function u(t){a(o,n,i,s,u,"throw",t)}s(void 0)}))}}function u(t){return c.apply(this,arguments)}function c(){return(c=s((function*({fs:t,cache:e,gitdir:r,oid:a,format:s="content",getExternalRefDelta:u}){let c=yield t.readdir(Object(o.join)(r,"objects/pack"));c=c.filter(t=>t.endsWith(".idx"));for(const o of c){const s=`${r}/objects/pack/${o}`,c=yield Object(i.a)({fs:t,cache:e,filename:s,getExternalRefDelta:u});if(c.error)throw new n.a(c.error);if(c.offsets.has(a)){if(!c.pack){const e=s.replace(/idx$/,"pack");c.pack=t.read(e)}const e=yield c.read({oid:a,getExternalRefDelta:u});return e.format="content",e.source=`objects/pack/${o.replace(/idx$/,"pack")}`,e}}return null}))).apply(this,arguments)}},,function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=void 0===Array.prototype.flat?t=>t.reduce((t,e)=>t.concat(e),[]):t=>t.flat()},,,,,,function(t,e,r){"use strict";var n=r(68),i=r(158),o=r(33),a=r(25);class s{static get timezoneOffsetForRefLogEntry(){const t=(new Date).getTimezoneOffset(),e=Math.abs(Math.floor(t/60)),r=Math.abs(t%60).toString().padStart(2,"0");return`${t>0?"-":"+"}${e.toString().padStart(2,"0")}${r}`}static createStashReflogEntry(t,e,r){const n=t.name.replace(/\s/g,""),i=Math.floor(Date.now()/1e3),o=s.timezoneOffsetForRefLogEntry;return`0000000000000000000000000000000000000000 ${e} ${n} ${t.email} ${i} ${o}\t${r}\n`}static getStashReflogEntry(t,e=!1){return t.split("\n").filter(t=>t).reverse().map((t,r)=>e?`stash@{${r}}: ${t.split("\t")[1]}`:t)}}var u=r(12),c=r(34),f=r(91),l=r(4);function h(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return p}));class p{constructor({fs:t,dir:e,gitdir:r=Object(u.join)(e,".git")}){Object.assign(this,{fs:t,dir:e,gitdir:r,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return Object(u.join)(this.gitdir,p.refStash)}get refLogsStashPath(){return Object(u.join)(this.gitdir,p.refLogsStash)}getAuthor(){var t=this;return d((function*(){if(!t._author&&(t._author=yield Object(c.a)({fs:t.fs,gitdir:t.gitdir,author:{}}),!t._author))throw new a.a("author");return t._author}))()}getStashSHA(t,e){var r=this;return d((function*(){if(!(yield r.fs.exists(r.refStashPath)))return null;return(e||(yield r.readStashReflogs({parsed:!1})))[t].split(" ")[1]}))()}writeStashCommit({message:t,tree:e,parent:r}){var n=this;return d((function*(){return Object(i.a)({fs:n.fs,gitdir:n.gitdir,commit:{message:t,tree:e,parent:r,author:yield n.getAuthor(),committer:yield n.getAuthor()}})}))()}readStashCommit(t){var e=this;return d((function*(){const r=yield e.readStashReflogs({parsed:!1});if(0!==t&&(t<0||t>r.length-1))throw new o.a(`stash@${t}`,"number that is in range of [0, num of stash pushed]");const i=yield e.getStashSHA(t,r);return i?Object(n.a)({fs:e.fs,cache:{},gitdir:e.gitdir,oid:i}):{}}))()}writeStashRef(t){var e=this;return d((function*(){return l.a.writeRef({fs:e.fs,gitdir:e.gitdir,ref:p.refStash,value:t})}))()}writeStashReflogEntry({stashCommit:t,message:e}){var r=this;return d((function*(){const n=yield r.getAuthor(),i=s.createStashReflogEntry(n,t,e),o=r.refLogsStashPath;yield Object(f.a)({filepath:o,entry:i},d((function*(){const t=(yield r.fs.exists(o))?yield r.fs.read(o,"utf8"):"";yield r.fs.write(o,t+i,"utf8")})))}))()}readStashReflogs({parsed:t=!1}){var e=this;return d((function*(){if(!(yield e.fs.exists(e.refLogsStashPath)))return[];const r=yield e.fs.read(e.refLogsStashPath,"utf8");return s.getStashReflogEntry(r,t)}))()}}},function(t,e,r){
|
|
9
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(119),i=r(92),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},function(t,e,r){"use strict";var n=r(120),i=r(167),o=r(168),a=r(169),s=r(170),u=r(121),c=r(46),f=r(171),l=r(172),h=r(173),d=r(174),p=r(175),y=r(176),g=r(177),m=r(178),v=Function,b=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},_=r(47),w=r(59),x=function(){throw new c},A=_?function(){try{return arguments.callee,x}catch(t){try{return _(arguments,"callee").get}catch(t){return x}}}():x,E=r(181)(),k=r(123),P=r(125),S=r(124),O=r(94),j=r(93),B={},R="undefined"!=typeof Uint8Array&&k?k(Uint8Array):void 0,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":E&&k?k([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":B,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&k?k(k([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&k?k((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&k?k((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&k?k(""[Symbol.iterator]()):void 0,"%Symbol%":E?Symbol:void 0,"%SyntaxError%":u,"%ThrowTypeError%":A,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":P,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":m,"%Reflect.getPrototypeOf%":S};if(k)try{null.error}catch(t){var T=k(k(t));I["%Error.prototype%"]=T}var U={__proto__:null,"%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"]},$=r(48),C=r(185),z=$.call(j,Array.prototype.concat),M=$.call(O,Array.prototype.splice),N=$.call(j,String.prototype.replace),D=$.call(j,String.prototype.slice),F=$.call(j,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,Y=function(t){var e=D(t,0,1),r=D(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return N(t,L,(function(t,e,r,i){n[n.length]=r?N(i,G,"$1"):e||t})),n},Z=function(t,e){var r,n=t;if(C(U,n)&&(n="%"+(r=U[n])[0]+"%"),C(I,n)){var i=I[n];if(i===B&&(i=function t(e){var r;if("%AsyncFunction%"===e)r=b("async function () {}");else if("%GeneratorFunction%"===e)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=b("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&k&&(r=k(i.prototype))}return I[e]=r,r}(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Y(t),n=r.length>0?r[0]:"",i=Z("%"+n+"%",e),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],M(r,z([0,1],f)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],p=D(d,0,1),y=D(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),C(I,o="%"+(n+="."+d)+"%"))a=I[o];else if(null!=a){if(!(d in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(_&&l+1>=r.length){var g=_(a,d);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else h=C(a,d),a=a[d];h&&!s&&(I[o]=a)}}return a}},function(t,e,r){"use strict";t.exports=Object},function(t,e,r){"use strict";t.exports=SyntaxError},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n=r(124),i=r(125),o=r(182);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(120);t.exports=n.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(93),a=r(184);t.exports=a||n.call(o,i)},function(t,e,r){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,r){"use strict";var n=r(28),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,c=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)c[n++]=i;else if((o=a[i])>4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(o(t),o(e))}function o(t){return"040000"===t.mode?t.path+"/":t.path}},function(t,e,r){var n;n=function(t){t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=t.length-1,o=0;o<i;)n=(n=n>>>8^e[255&(n^t.charCodeAt(o++))])>>>8^e[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^e[255&(n^t.charCodeAt(o))]),-1^n},t.buf=function(t,r){if(t.length>1e4)return function(t,r){for(var n=-1^r,i=t.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+7;)n=n>>>8^e[255&(n^t[o++])];return-1^n}(t,r);for(var n=-1^r,i=t.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+3;)n=n>>>8^e[255&(n^t[o++])];return-1^n},t.str=function(t,r){for(var n,i,o=-1^r,a=0,s=t.length;a<s;)(n=t.charCodeAt(a++))<128?o=o>>>8^e[255&(o^n)]:n<2048?o=(o=o>>>8^e[255&(o^(192|n>>6&31))])>>>8^e[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(a++),o=(o=(o=(o=o>>>8^e[255&(o^(240|n>>8&7))])>>>8^e[255&(o^(128|n>>2&63))])>>>8^e[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^e[255&(o^(128|63&i))]):o=(o=(o=o>>>8^e[255&(o^(224|n>>12&15))])>>>8^e[255&(o^(128|n>>6&63))])>>>8^e[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(e):n({})},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(38),i=r.n(n),o=r(2),a=r(64);function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}function c(t,e){return f.apply(this,arguments)}function f(){return(f=u((function*(t,e){const r=new a.a(t);let n=yield r.read(4);if(n=n.toString("utf8"),"PACK"!==n)throw new o.a(`Invalid PACK header '${n}'`);let s=yield r.read(4);if(s=s.readUInt32BE(0),2!==s)throw new o.a(`Invalid packfile version: ${s}`);let u=yield r.read(4);if(u=u.readUInt32BE(0),!(u<1))for(;!r.eof()&&u--;){const t=r.tell(),{type:n,length:a,ofs:s,reference:c}=yield l(r),f=new i.a.Inflate;for(;!f.result;){const i=yield r.chunk();if(!i)break;if(f.push(i,!1),f.err)throw new o.a(`Pako error: ${f.msg}`);if(f.result){if(f.result.length!==a)throw new o.a("Inflated object size is different from that stated in packfile.");yield r.undo(),yield r.read(i.length-f.strm.avail_in);const l=r.tell();yield e({data:f.result,type:n,num:u,offset:t,end:l,reference:c,ofs:s})}}}}))).apply(this,arguments)}function l(t){return h.apply(this,arguments)}function h(){return(h=u((function*(e){let r=yield e.byte();const n=r>>4&7;let i,o,a=15&r;if(128&r){let t=4;do{r=yield e.byte(),a|=(127&r)<<t,t+=7}while(128&r)}if(6===n){let n=0;i=0;const a=[];do{r=yield e.byte(),i|=(127&r)<<n,n+=7,a.push(r)}while(128&r);o=t.from(a)}if(7===n){o=yield e.read(20)}return{type:n,length:a,ofs:i,reference:o}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r(2),i=r(16);function o(e,r){const o=new i.a(e),s=a(o);if(s!==r.byteLength)throw new n.a(`applyDelta expected source buffer to be ${s} bytes but the provided buffer was ${r.length} bytes`);const c=a(o);let f;const l=u(o,r);if(l.byteLength===c)f=l;else{f=t.alloc(c);const e=new i.a(f);for(e.copy(l);!o.eof();)e.copy(u(o,r));const a=e.tell();if(c!==a)throw new n.a(`applyDelta expected target buffer to be ${c} bytes but the resulting buffer was ${a} bytes`)}return f}function a(t){let e=0,r=0,n=null;do{n=t.readUInt8(),e|=(127&n)<<r,r+=7}while(128&n);return e}function s(t,e,r){let n=0,i=0;for(;r--;)1&e&&(n|=t.readUInt8()<<i),e>>=1,i+=8;return n}function u(t,e){const r=t.readUInt8();if(128&r){const n=s(t,15&r,4);let i=s(t,(112&r)>>4,3);return 0===i&&(i=65536),e.slice(n,n+i)}return t.slice(r)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t.split("\n").map(t=>t.replace(/^ /,"")).join("\n")}r.d(e,"a",(function(){return n}))},,function(t,e,r){(function(e){function r(t){return Array.isArray(t)?t:[t]}const n=/^\s+$/,i=/^\\!/,o=/^\\#/,a=/\r?\n/g,s=/^\.*\/|^\.+$/,u="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",c=/([0-z])-([0-z])/g,f=()=>!1,l=[[/\\?\s+$/,t=>0===t.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,e)=>`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(n)}${i}`:"]"===i&&n.length%2==0?`[${(t=>t.replace(c,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],h=Object.create(null),d=t=>"string"==typeof t;class p{constructor(t,e,r,n){this.origin=t,this.pattern=e,this.negative=r,this.regex=n}}const y=(t,e)=>{const r=t;let n=!1;0===t.indexOf("!")&&(n=!0,t=t.substr(1));const a=((t,e)=>{let r=h[t];return r||(r=l.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t),h[t]=r),e?new RegExp(r,"i"):new RegExp(r)})(t=t.replace(i,"!").replace(o,"#"),e);return new p(r,t,n,a)},g=(t,e)=>{throw new e(t)},m=(t,e,r)=>{if(!d(t))return r(`path must be a string, but got \`${e}\``,TypeError);if(!t)return r("path must not be empty",TypeError);if(m.isNotRelative(t)){return r(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},v=t=>s.test(t);m.isNotRelative=v,m.convert=t=>t;class b{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){var n,i,o;n=this,i=u,o=!0,Object.defineProperty(n,i,{value:o}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[u])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&d(t)&&!n.test(t)&&0!==t.indexOf("#"))(t)){const e=y(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,r(d(t)?(t=>t.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let r=!1,n=!1;return this._rules.forEach(i=>{const{negative:o}=i;n===o&&r!==n||o&&!r&&!n&&!e||i.regex.test(t)&&(r=!o,n=o)}),{ignored:r,unignored:n}}_test(t,e,r,n){const i=t&&m.convert(t);return m(i,t,this._allowRelativePaths?f:g),this._t(i,e,r,n)}_t(t,e,r,n){if(t in e)return e[t];if(n||(n=t.split("/")),n.pop(),!n.length)return e[t]=this._testOne(t,r);const i=this._t(n.join("/")+"/",e,r,n);return e[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return r(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const _=t=>new b(t);if(_.isPathValid=t=>m(t&&m.convert(t),t,f),_.default=_,t.exports=_,void 0!==e&&(e.env&&e.env.IGNORE_TEST_WIN32||"win32"===e.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");m.convert=t;const e=/^[a-z]:\//i;m.isNotRelative=t=>e.test(t)||v(t)}}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2);function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,object:r,format:i,oid:o}){if("deflated"!==i)throw new n.a("GitObjectStoreLoose expects objects to write to be in deflated format");const a=`${e}/${`objects/${o.slice(0,2)}/${o.slice(2)}`}`;(yield t.exists(a))||(yield t.write(a,r))}))).apply(this,arguments)}},,function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],s=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(f(t,a,a+16383>s?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},,,,,,,,,,,,function(t,e,r){"use strict";function n(t){let e;for(;~(e=t.indexOf(92));)t[e]=47;return t}r.d(e,"a",(function(){return n}))},,function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(17),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function s(t){return u.apply(this,arguments)}function u(){return(u=a((function*({fs:t,gitdir:e,commit:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"commit",object:o,format:"content"})}))).apply(this,arguments)}},,function(t,e,r){"use strict";(function(e){var r=function(t){if(t=t||{},this.Promise=t.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=t.domainReentrant||!1,this.domainReentrant){if(void 0===e||void 0===e.domain)throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=t.timeout||r.DEFAULT_TIMEOUT,this.maxOccupationTime=t.maxOccupationTime||r.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=t.maxExecutionTime||r.DEFAULT_MAX_EXECUTION_TIME,t.maxPending===1/0||Number.isInteger(t.maxPending)&&t.maxPending>=0?this.maxPending=t.maxPending:this.maxPending=r.DEFAULT_MAX_PENDING};r.DEFAULT_TIMEOUT=0,r.DEFAULT_MAX_OCCUPATION_TIME=0,r.DEFAULT_MAX_EXECUTION_TIME=0,r.DEFAULT_MAX_PENDING=1e3,r.prototype.acquire=function(t,r,n,i){if(Array.isArray(t))return this._acquireBatch(t,r,n,i);if("function"!=typeof r)throw new Error("You must pass a function to execute");var o=null,a=null,s=null;"function"!=typeof n&&(i=n,n=null,s=new this.Promise((function(t,e){o=t,a=e}))),i=i||{};var u=!1,c=null,f=null,l=null,h=this,d=function(e,r,i){f&&(clearTimeout(f),f=null),l&&(clearTimeout(l),l=null),e&&(h.queues[t]&&0===h.queues[t].length&&delete h.queues[t],h.domainReentrant&&delete h.domains[t]),u||(s?r?a(r):o(i):"function"==typeof n&&n(r,i),u=!0),e&&h.queues[t]&&h.queues[t].length>0&&h.queues[t].shift()()},p=function(n){if(u)return d(n);c&&(clearTimeout(c),c=null),h.domainReentrant&&n&&(h.domains[t]=e.domain);var o=i.maxExecutionTime||h.maxExecutionTime;if(o&&(l=setTimeout((function(){h.queues[t]&&d(n,new Error("Maximum execution time is exceeded "+t))}),o)),1===r.length){var a=!1;try{r((function(t,e){a||(a=!0,d(n,t,e))}))}catch(t){a||(a=!0,d(n,t))}}else h._promiseTry((function(){return r()})).then((function(t){d(n,void 0,t)}),(function(t){d(n,t)}))};h.domainReentrant&&e.domain&&(p=e.domain.bind(p));var y=i.maxPending||h.maxPending;if(h.queues[t])if(h.domainReentrant&&e.domain&&e.domain===h.domains[t])p(!1);else if(h.queues[t].length>=y)d(!1,new Error("Too many pending tasks in queue "+t));else{var g=function(){p(!0)};i.skipQueue?h.queues[t].unshift(g):h.queues[t].push(g);var m=i.timeout||h.timeout;m&&(c=setTimeout((function(){c=null,d(!1,new Error("async-lock timed out in queue "+t))}),m))}else h.queues[t]=[],p(!0);var v=i.maxOccupationTime||h.maxOccupationTime;return v&&(f=setTimeout((function(){h.queues[t]&&d(!1,new Error("Maximum occupation time is exceeded in queue "+t))}),v)),s||void 0},r.prototype._acquireBatch=function(t,e,r,n){"function"!=typeof r&&(n=r,r=null);var i=this,o=t.reduceRight((function(t,e){return function(t,e){return function(r){i.acquire(t,e,r,n)}}(e,t)}),e);if("function"!=typeof r)return new this.Promise((function(t,e){1===o.length?o((function(r,n){r?e(r):t(n)})):t(o())}));o(r)},r.prototype.isBusy=function(t){return t?!!this.queues[t]:Object.keys(this.queues).length>0},r.prototype._promiseTry=function(t){try{return this.Promise.resolve(t())}catch(t){return this.Promise.reject(t)}},t.exports=r}).call(this,r(56))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";var n=r(117).Buffer,i=r(163);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%n,c=Math.min(o-s,n-u),f=0;f<c;f++)r[u+f]=t[s+f];s+=c,(a+=c)%n==0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,r){"use strict";var n=r(164).Buffer,i=r(165),o=r(166),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c=u&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(u&&a(t)){if(0===t.byteLength)return n.alloc(0);if(c){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=n.from(o);if(f.length===t.byteLength)return f}if(s&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var h=0;h<t.length;h+=1){var d=t[h];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(t,e,r){
|
|
11
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
12
|
-
var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(46),i=r(118)("TypedArray.prototype.buffer",!0),o=r(186);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},function(t,e,r){"use strict";t.exports=Error},function(t,e,r){"use strict";t.exports=EvalError},function(t,e,r){"use strict";t.exports=RangeError},function(t,e,r){"use strict";t.exports=ReferenceError},function(t,e,r){"use strict";t.exports=URIError},function(t,e,r){"use strict";t.exports=Math.abs},function(t,e,r){"use strict";t.exports=Math.floor},function(t,e,r){"use strict";t.exports=Math.max},function(t,e,r){"use strict";t.exports=Math.min},function(t,e,r){"use strict";t.exports=Math.pow},function(t,e,r){"use strict";t.exports=Math.round},function(t,e,r){"use strict";var n=r(179);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,r){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(122);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,r){"use strict";var n,i=r(92),o=r(47);try{n=[].__proto__===Array.prototype}catch(t){if(!(t&&"object"==typeof t&&"code"in t&&"ERR_PROTO_ACCESS"===t.code))throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r},s=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},u=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.apply(e))throw new TypeError(n+e);for(var r,c=s(arguments,1),f=function(){if(this instanceof r){var n=e.apply(this,a(c,arguments));return Object(n)===n?n:this}return e.apply(t,a(c,arguments))},l=o(0,e.length-c.length),h=[],d=0;d<l;d++)h[d]="$"+d;if(r=Function("binder","return function ("+u(h,",")+"){ return binder.apply(this,arguments); }")(f),e.prototype){var p=function(){};p.prototype=e.prototype,r.prototype=new p,p.prototype=null}return r}},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(48);t.exports=o.call(n,i)},function(t,e,r){"use strict";var n=r(187);t.exports=function(t){return!!n(t)}},function(t,e,r){"use strict";(function(e){var n=r(188),i=r(190),o=r(192),a=r(118),s=r(47),u=r(123),c=a("Object.prototype.toString"),f=r(197)(),l="undefined"==typeof globalThis?e:globalThis,h=i(),d=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(h,f&&s&&u?function(t){var e=new l[t];if(Symbol.toStringTag in e&&u){var r=u(e),n=s(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=s(i,Symbol.toStringTag)}y["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(y["$"+t]=o(r))});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=d(c(t),8,-1);return p(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,(function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}})),e}(t)}return s?function(t){var e=!1;return n(y,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}})),e}(t):null}}).call(this,r(71))},function(t,e,r){"use strict";var n=r(189),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};function c(t){return"[object Array]"===i.call(t)}t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),c(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},function(t,e,r){"use strict";var n,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,n)}catch(t){t!==i&&(a=null)}else a=null;var s=/^\s*class\b/,u=function(t){try{var e=o.call(t);return s.test(e)}catch(t){return!1}},c=function(t){try{return!u(t)&&(o.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,h=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var p=document.all;f.call(p)===f.call(document.all)&&(d=function(t){if((h||!t)&&(void 0===t||"object"==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=a?function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,n)}catch(t){if(t!==i)return!1}return!u(t)&&c(t)}:function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return c(t);if(u(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&c(t)}},function(t,e,r){"use strict";(function(e){var n=r(191),i="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}}).call(this,r(71))},function(t,e,r){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(t,e,r){"use strict";var n=r(193),i=r(59),o=r(92),a=r(196);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},function(t,e,r){"use strict";var n=r(119),i=r(194),o=r(195)(),a=r(47),s=r(46),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,r){"use strict";var n=r(59),i=r(121),o=r(46),a=r(47);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===u&&l?l.writable:!u});else{if(!f&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},function(t,e,r){"use strict";var n=r(59),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(126);t.exports=function(){return o(n,i,arguments)}},function(t,e,r){"use strict";var n=r(122);t.exports=function(){return n()&&!!Symbol.toStringTag}},function(t,e,r){"use strict";var n=r(199),i=r(28),o=r(129),a=r(95),s=r(130),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(a[r]);this._dict_set=!0}}function f(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,e){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,r){"use strict";var n,i=r(28),o=r(200),a=r(127),s=r(128),u=r(95);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function g(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=258-(h-o),o=h-258,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function m(t){var e,r,n,o,u,c,f,l,h,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),r=0===d?0:(c.avail_in-=d,i.arraySet(f,c.input,c.next_in,d,l),1===c.state.wrap?c.adler=a(c.adler,f,d,l):2===c.state.wrap&&(c.adler=s(c.adler,f,d,l)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function v(t,e){for(var r,n;;){if(t.lookahead<262){if(m(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function b(t,e){for(var r,n,i;;){if(t.lookahead<262){if(m(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function _(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function A(t){var e,r=x(t);return 0===r&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function E(t,e,r,n,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return c(t,-2);8===n&&(n=9);var u=new w;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,A(t)}n=[new _(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(m(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new _(4,4,8,4,v),new _(4,5,16,8,v),new _(4,6,32,32,v),new _(4,4,16,16,b),new _(8,16,32,32,b),new _(8,16,128,128,b),new _(8,32,128,256,b),new _(32,128,258,1024,b),new _(32,258,258,4096,b)],e.deflateInit=function(t,e){return E(t,e,8,15,8,0)},e.deflateInit2=E,e.deflateReset=A,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,y(i,g),0!==i.strstart&&(y(i,t.adler>>>16),y(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(r)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var v=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(m(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(m(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==v&&4!==v||(i.status=666),1===v||3===v)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===v&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(y(i,t.adler>>>16),y(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,f,h,d=e.length;if(!t||!t.state)return-2;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(l(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,e,d-r.w_size,r.w_size,0),e=h,d=r.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,m(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,m(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,r){"use strict";var n=r(28);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,y,g,m=new Array(30);function v(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function _(t){return t<256?l[t]:l[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function A(t,e,r){x(t,r[2*e],r[2*e+1])}function E(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function k(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=E(o[s]++,s))}}function P(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function O(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function j(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&O(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!O(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function B(t,e,r){var n,i,s,u,c=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===n?A(t,i,e):(A(t,(s=h[i])+256+1,e),0!==(u=o[s])&&x(t,i-=d[s],u),A(t,s=_(--n),r),0!==(u=a[s])&&x(t,n-=m[s],u))}while(c<t.last_lit);A(t,256,e)}function R(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)j(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],j(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,j(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,y=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,y++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,y-=2}while(y>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),k(o,c,t.bl_count)}function I(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function T(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{A(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(A(t,i,t.bl_tree),s--),A(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(A(t,17,t.bl_tree),x(t,s-3,3)):(A(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(m);var U=!1;function $(t,e,r,i){x(t,0+(i?1:0),3),function(t,e,r,i){S(t),i&&(w(t,r),w(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){U||(!function(){var t,e,r,n,i,u=new Array(16);for(r=0,n=0;n<28;n++)for(d[n]=r,t=0;t<1<<o[n];t++)h[r++]=n;for(h[r-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,t=0;t<1<<a[n];t++)l[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,t=0;t<1<<a[n]-7;t++)l[256+i++]=n;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(k(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=E(t,5);p=new v(c,o,257,286,15),y=new v(f,a,0,30,15),g=new v(new Array(0),s,0,19,7)}(),U=!0),t.l_desc=new b(t.dyn_ltree,p),t.d_desc=new b(t.dyn_dtree,y),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,P(t)},e._tr_stored_block=$,e._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),a=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?$(t,e,r,n):4===t.strategy||o===i?(x(t,2+(n?1:0),3),B(t,c,f)):(x(t,4+(n?1:0),3),function(t,e,r,n){var i;for(x(t,e-257,5),x(t,r-1,5),x(t,n-4,4),i=0;i<n;i++)x(t,t.bl_tree[2*u[i]+1],3);T(t,t.dyn_ltree,e-1),T(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),B(t,t.dyn_ltree,t.dyn_dtree)),P(t),n&&S(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*_(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),A(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){"use strict";var n=r(202),i=r(28),o=r(129),a=r(131),s=r(95),u=r(130),c=r(205),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(y=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,r){"use strict";var n=r(28),i=r(127),o=r(128),a=r(203),s=r(204);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,l(t))):-2}function d(t,e){var r,n;return t?(n=new c,t.state=n,n.window=null,0!==(r=h(t,e))&&(t.state=null),r):-2}var p,y,g=!0;function m(t){if(g){var e;for(p=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,y,0,t.work,{bits:5}),g=!1}t.lencode=p,t.lenbits=9,t.distcode=y,t.distbits=5}function v(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return d(t,15)},e.inflateInit2=d,e.inflate=function(t,e){var r,c,f,l,h,d,p,y,g,b,_,w,x,A,E,k,P,S,O,j,B,R,I,T,U=0,$=new n.Buf8(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,y=r.hold,g=r.bits,b=d,_=p,R=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;g<16;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(2&r.wrap&&35615===y){r.check=0,$[0]=255&y,$[1]=y>>>8&255,r.check=o(r.check,$,2,0),y=0,g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(g-=4,B=8+(15&(y>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,t.adler=r.check=1,r.mode=512&y?10:12,y=0,g=0;break;case 2:for(;g<16;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(r.flags=y,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&($[0]=255&y,$[1]=y>>>8&255,r.check=o(r.check,$,2,0)),y=0,g=0,r.mode=3;case 3:for(;g<32;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.head&&(r.head.time=y),512&r.flags&&($[0]=255&y,$[1]=y>>>8&255,$[2]=y>>>16&255,$[3]=y>>>24&255,r.check=o(r.check,$,4,0)),y=0,g=0,r.mode=4;case 4:for(;g<16;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&($[0]=255&y,$[1]=y>>>8&255,r.check=o(r.check,$,2,0)),y=0,g=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&($[0]=255&y,$[1]=y>>>8&255,r.check=o(r.check,$,2,0)),y=0,g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((w=r.length)>d&&(w=d),w&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,c,l,w,B)),512&r.flags&&(r.check=o(r.check,c,w,l)),d-=w,l+=w,r.length-=w),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===d)break t;w=0;do{B=c[l+w++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B))}while(B&&w<d);if(512&r.flags&&(r.check=o(r.check,c,w,l)),d-=w,l+=w,B)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===d)break t;w=0;do{B=c[l+w++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B))}while(B&&w<d);if(512&r.flags&&(r.check=o(r.check,c,w,l)),d-=w,l+=w,B)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;g<16;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(y!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}y=0,g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}t.adler=r.check=u(y),y=0,g=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,r.hold=y,r.bits=g,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){y>>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}switch(r.last=1&y,g-=1,3&(y>>>=1)){case 0:r.mode=14;break;case 1:if(m(r),r.mode=20,6===e){y>>>=2,g-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,g-=2;break;case 14:for(y>>>=7&g,g-=7&g;g<32;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,y=0,g=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(w=r.length){if(w>d&&(w=d),w>p&&(w=p),0===w)break t;n.arraySet(f,c,l,w,h),d-=w,l+=w,p-=w,h+=w,r.length-=w;break}r.mode=12;break;case 17:for(;g<14;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(r.nlen=257+(31&y),y>>>=5,g-=5,r.ndist=1+(31&y),y>>>=5,g-=5,r.ncode=4+(15&y),y>>>=4,g-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;g<3;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.lens[C[r.have++]]=7&y,y>>>=3,g-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,I={bits:r.lenbits},R=s(0,r.lens,0,19,r.lencode,0,r.work,I),r.lenbits=I.bits,R){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;k=(U=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,P=65535&U,!((E=U>>>24)<=g);){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(P<16)y>>>=E,g-=E,r.lens[r.have++]=P;else{if(16===P){for(T=E+2;g<T;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(y>>>=E,g-=E,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],w=3+(3&y),y>>>=2,g-=2}else if(17===P){for(T=E+3;g<T;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}g-=E,B=0,w=3+(7&(y>>>=E)),y>>>=3,g-=3}else{for(T=E+7;g<T;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}g-=E,B=0,w=11+(127&(y>>>=E)),y>>>=7,g-=7}if(r.have+w>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;w--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,I={bits:r.lenbits},R=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,I),r.lenbits=I.bits,R){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,I={bits:r.distbits},R=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,I),r.distbits=I.bits,R){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,r.hold=y,r.bits=g,a(t,_),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,y=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;k=(U=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,P=65535&U,!((E=U>>>24)<=g);){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(k&&0==(240&k)){for(S=E,O=k,j=P;k=(U=r.lencode[j+((y&(1<<S+O)-1)>>S)])>>>16&255,P=65535&U,!(S+(E=U>>>24)<=g);){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}y>>>=S,g-=S,r.back+=S}if(y>>>=E,g-=E,r.back+=E,r.length=P,0===k){r.mode=26;break}if(32&k){r.back=-1,r.mode=12;break}if(64&k){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&k,r.mode=22;case 22:if(r.extra){for(T=r.extra;g<T;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;k=(U=r.distcode[y&(1<<r.distbits)-1])>>>16&255,P=65535&U,!((E=U>>>24)<=g);){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(0==(240&k)){for(S=E,O=k,j=P;k=(U=r.distcode[j+((y&(1<<S+O)-1)>>S)])>>>16&255,P=65535&U,!(S+(E=U>>>24)<=g);){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}y>>>=S,g-=S,r.back+=S}if(y>>>=E,g-=E,r.back+=E,64&k){t.msg="invalid distance code",r.mode=30;break}r.offset=P,r.extra=15&k,r.mode=24;case 24:if(r.extra){for(T=r.extra;g<T;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break t;if(w=_-p,r.offset>w){if((w=r.offset-w)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}w>r.wnext?(w-=r.wnext,x=r.wsize-w):x=r.wnext-w,w>r.length&&(w=r.length),A=r.window}else A=f,x=h-r.offset,w=r.length;w>p&&(w=p),p-=w,r.length-=w;do{f[h++]=A[x++]}while(--w);0===r.length&&(r.mode=21);break;case 26:if(0===p)break t;f[h++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===d)break t;d--,y|=c[l++]<<g,g+=8}if(_-=p,t.total_out+=_,r.total+=_,_&&(t.adler=r.check=r.flags?o(r.check,f,_,h-_):i(r.check,f,_,h-_)),_=p,(r.flags?y:u(y))!==r.check){t.msg="incorrect data check",r.mode=30;break}y=0,g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;g<32;){if(0===d)break t;d--,y+=c[l++]<<g,g+=8}if(y!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}y=0,g=0}r.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,r.hold=y,r.bits=g,(r.wsize||_!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&v(t,t.output,t.next_out,_-t.avail_out)?(r.mode=31,-4):(b-=t.avail_in,_-=t.avail_out,t.total_in+=b,t.total_out+=_,r.total+=_,r.wrap&&_&&(t.adler=r.check=r.flags?o(r.check,f,_,t.next_out-_):i(r.check,f,_,t.next_out-_)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===b&&0===_||4===e)&&0===R&&(R=-5),R)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,e,n,0)!==r.check?-3:v(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,r){"use strict";t.exports=function(t,e){var r,n,i,o,a,s,u,c,f,l,h,d,p,y,g,m,v,b,_,w,x,A,E,k,P;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),o=t.next_out,P=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,d=r.hold,p=r.bits,y=r.lencode,g=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),b=y[d&m];e:for(;;){if(d>>>=_=b>>>24,p-=_,0===(_=b>>>16&255))P[o++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=y[(65535&b)+(d&(1<<_)-1)];continue e}if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&b,(_&=15)&&(p<_&&(d+=k[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),b=g[d&v];r:for(;;){if(d>>>=_=b>>>24,p-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=g[(65535&b)+(d&(1<<_)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&b,p<(_&=15)&&(d+=k[n++]<<p,(p+=8)<_&&(d+=k[n++]<<p,p+=8)),(x+=d&(1<<_)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=_,p-=_,x>(_=o-a)){if((_=x-_)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(A=0,E=h,0===l){if(A+=c-_,_<w){w-=_;do{P[o++]=h[A++]}while(--_);A=o-x,E=P}}else if(l<_){if(A+=c+l-_,(_-=l)<w){w-=_;do{P[o++]=h[A++]}while(--_);if(A=0,l<w){w-=_=l;do{P[o++]=h[A++]}while(--_);A=o-x,E=P}}}else if(A+=l-_,_<w){w-=_;do{P[o++]=h[A++]}while(--_);A=o-x,E=P}for(;w>2;)P[o++]=E[A++],P[o++]=E[A++],P[o++]=E[A++],w-=3;w&&(P[o++]=E[A++],w>1&&(P[o++]=E[A++]))}else{A=o-x;do{P[o++]=P[A++],P[o++]=P[A++],P[o++]=P[A++],w-=3}while(w>2);w&&(P[o++]=P[A++],w>1&&(P[o++]=P[A++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},function(t,e,r){"use strict";var n=r(28),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,u,c,f,l,h){var d,p,y,g,m,v,b,_,w,x=h.bits,A=0,E=0,k=0,P=0,S=0,O=0,j=0,B=0,R=0,I=0,T=null,U=0,$=new n.Buf16(16),C=new n.Buf16(16),z=null,M=0;for(A=0;A<=15;A++)$[A]=0;for(E=0;E<u;E++)$[e[r+E]]++;for(S=x,P=15;P>=1&&0===$[P];P--);if(S>P&&(S=P),0===P)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(k=1;k<P&&0===$[k];k++);for(S<k&&(S=k),B=1,A=1;A<=15;A++)if(B<<=1,(B-=$[A])<0)return-1;if(B>0&&(0===t||1!==P))return-1;for(C[1]=0,A=1;A<15;A++)C[A+1]=C[A]+$[A];for(E=0;E<u;E++)0!==e[r+E]&&(l[C[e[r+E]]++]=E);if(0===t?(T=z=l,v=19):1===t?(T=i,U-=257,z=o,M-=257,v=256):(T=a,z=s,v=-1),I=0,E=0,A=k,m=f,O=S,j=0,y=-1,g=(R=1<<S)-1,1===t&&R>852||2===t&&R>592)return 1;for(;;){b=A-j,l[E]<v?(_=0,w=l[E]):l[E]>v?(_=z[M+l[E]],w=T[U+l[E]]):(_=96,w=0),d=1<<A-j,k=p=1<<O;do{c[m+(I>>j)+(p-=d)]=b<<24|_<<16|w|0}while(0!==p);for(d=1<<A-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,E++,0==--$[A]){if(A===P)break;A=e[r+l[E]]}if(A>S&&(I&g)!==y){for(0===j&&(j=S),m+=k,B=1<<(O=A-j);O+j<P&&!((B-=$[O+j])<=0);)O++,B<<=1;if(R+=1<<O,1===t&&R>852||2===t&&R>592)return 1;c[y=I&g]=S<<24|O<<16|m-f|0}}return 0!==I&&(c[m+I]=A-j<<24|64<<16|0),h.bits=S,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},,,,,,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return h}));var n=r(11),i=r(13),o=r(54),a=r(12),s=r(24),u=r(15),c=r(22);function f(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}class h{constructor({fs:t,dir:e,gitdir:r,cache:n}){this.fs=t,this.cache=n,this.dir=e,this.gitdir=r,this.config=null;const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return l((function*(){return i.type(t)}))()}mode(){var t=this;return l((function*(){return i.mode(t)}))()}stat(){var t=this;return l((function*(){return i.stat(t)}))()}content(){var t=this;return l((function*(){return i.content(t)}))()}oid(){var t=this;return l((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return l((function*(){const r=t._fullpath,{fs:n,dir:i}=e,o=yield n.readdir(Object(a.join)(i,r));return null===o?null:o.map(t=>Object(a.join)(r,t))}))()}type(t){return l((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return l((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return l((function*(){if(!1===t._stat){const{fs:r,dir:n}=e;let i=yield r.lstat(`${n}/${t._fullpath}`);if(!i)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);let o=i.isDirectory()?"tree":"blob";"blob"!==o||i.isFile()||i.isSymbolicLink()||(o="special"),t._type=o,i=Object(s.a)(i),t._mode=i.mode,-1===i.size&&t._actualSize&&(i.size=t._actualSize),t._stat=i}return t._stat}))()}content(t){var e=this;return l((function*(){if(!1===t._content){const{fs:r,dir:n,gitdir:i}=e;if("tree"===(yield t.type()))t._content=void 0;else{const o=yield e._getGitConfig(r,i),a=yield o.get("core.autocrlf"),s=yield r.read(`${n}/${t._fullpath}`,{autocrlf:a});t._actualSize=s.length,t._stat&&-1===t._stat.size&&(t._stat.size=t._actualSize),t._content=new Uint8Array(s)}}return t._content}))()}oid(e){var r=this;return l((function*(){if(!1===e._oid){const n=r,{fs:a,gitdir:s,cache:f}=r;let h;yield i.a.acquire({fs:a,gitdir:s,cache:f},function(){var r=l((function*(r){const i=r.entriesMap.get(e._fullpath),f=yield e.stat(),l=yield n._getGitConfig(a,s),d=yield l.get("core.filemode"),p=void 0===t||!("win32"===t.platform);if(!i||Object(o.a)(f,i,d,p)){const t=yield e.content();void 0===t?h=void 0:(h=yield Object(u.a)(c.a.wrap({type:"blob",object:t})),!i||h!==i.oid||d&&f.mode!==i.mode||!Object(o.a)(f,i,d,p)||r.insert({filepath:e._fullpath,stats:f,oid:h}))}else h=i.oid}));return function(t){return r.apply(this,arguments)}}()),e._oid=h}return e._oid}))()}_getGitConfig(t,e){var r=this;return l((function*(){return r.config?r.config:(r.config=yield n.a.get({fs:t,gitdir:e}),r.config)}))()}}}).call(this,r(56))},,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e);var n=r(11);r.d(e,"GitConfigManager",(function(){return n.a}));var i=r(37);r.d(e,"GitIgnoreManager",(function(){return i.a}));var o=r(13);r.d(e,"GitIndexManager",(function(){return o.a}));var a=r(4);r.d(e,"GitRefManager",(function(){return a.a}));var s=r(44);r.d(e,"GitRemoteHTTP",(function(){return s.a}));var u=r(61);r.d(e,"GitRemoteManager",(function(){return u.a}));var c=r(49);r.d(e,"GitShallowManager",(function(){return c.a}));var f=r(116);r.d(e,"GitStashManager",(function(){return f.a}))}])}));
|
|
1
|
+
/*! For license information please see index.umd.min.js.LICENSE.txt */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,()=>(()=>{var t={41:(t,e,r)=>{"use strict";var n=r(655),i=r(8068),o=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],l=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&l?l.configurable:!u,enumerable:null===a&&l?l.enumerable:!a,value:r,writable:null===f&&l?l.writable:!f});else{if(!c&&(a||f||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{"use strict";t.exports=Function.prototype.call},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,f=(1<<a)-1,u=f>>1,c=-7,l=r?i-1:0,h=r?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+l],l+=h,c-=8);if(0===o)o=1-u;else{if(o===f)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=u}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,f,u=8*o-i-1,c=(1<<u)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),(e+=s+l>=1?h/f:h*Math.pow(2,1-l))*f>=2&&(s++,f/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(e*f-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+d]=255&s,d+=p,s/=256,u-=8);t[r+d-p]|=128*g}},392:(t,e,r)=>{"use strict";var n=r(8188).Buffer,i=r(5377);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var f=s%n,u=Math.min(o-a,n-f),c=0;c<u;c++)r[f+c]=t[a+c];a+=u,(s+=u)%n===0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,i=r(9612),o=r(9383),s=r(1237),a=r(9290),f=r(9538),u=r(8068),c=r(9675),l=r(5345),h=r(1514),d=r(8968),p=r(6188),g=r(8002),y=r(5880),m=r(414),w=r(3093),_=Function,b=function(t){try{return _('"use strict"; return ('+t+").constructor;")()}catch(t){}},v=r(5795),x=r(655),E=function(){throw new c},k=v?function(){try{return E}catch(t){try{return v(arguments,"callee").get}catch(t){return E}}}():E,A=r(4039)(),B=r(3628),S=r(1064),I=r(8648),U=r(1002),O=r(76),P={},R="undefined"!=typeof Uint8Array&&B?B(Uint8Array):n,$={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":A&&B?B([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%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%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&B?B(B([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&B?B((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":f,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&B?B((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&B?B(""[Symbol.iterator]()):n,"%Symbol%":A?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":k,"%TypedArray%":R,"%TypeError%":c,"%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%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":U,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":S,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":w,"%Reflect.getPrototypeOf%":I};if(B)try{null.error}catch(t){var T=B(B(t));$["%Error.prototype%"]=T}var j=function t(e){var r;if("%AsyncFunction%"===e)r=b("async function () {}");else if("%GeneratorFunction%"===e)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=b("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&B&&(r=B(i.prototype))}return $[e]=r,r},z={__proto__:null,"%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"]},C=r(6743),M=r(9957),N=C.call(O,Array.prototype.concat),F=C.call(U,Array.prototype.splice),L=C.call(O,String.prototype.replace),D=C.call(O,String.prototype.slice),G=C.call(O,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,q=function(t,e){var r,n=t;if(M(z,n)&&(n="%"+(r=z[n])[0]+"%"),M($,n)){var i=$[n];if(i===P&&(i=j(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=D(t,0,1),r=D(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return L(t,Z,function(t,e,r,i){n[n.length]=r?L(i,H,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=q("%"+n+"%",e),o=i.name,s=i.value,a=!1,f=i.alias;f&&(n=f[0],F(r,N([0,1],f)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],p=D(d,0,1),g=D(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(a=!0),M($,o="%"+(n+="."+d)+"%"))s=$[o];else if(null!=s){if(!(d in s)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(v&&l+1>=r.length){var y=v(s,d);s=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[d]}else h=M(s,d),s=s[d];h&&!a&&($[o]=s)}}return s}},487:(t,e,r)=>{"use strict";var n=r(6897),i=r(655),o=r(3126),s=r(2205);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},592:(t,e,r)=>{"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},809:t=>{"use strict";var e=function(t){if(t=t||{},this.Promise=t.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=t.domainReentrant||!1,this.domainReentrant){if("undefined"==typeof process||void 0===process.domain)throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=t.timeout||e.DEFAULT_TIMEOUT,this.maxOccupationTime=t.maxOccupationTime||e.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=t.maxExecutionTime||e.DEFAULT_MAX_EXECUTION_TIME,t.maxPending===1/0||Number.isInteger(t.maxPending)&&t.maxPending>=0?this.maxPending=t.maxPending:this.maxPending=e.DEFAULT_MAX_PENDING};e.DEFAULT_TIMEOUT=0,e.DEFAULT_MAX_OCCUPATION_TIME=0,e.DEFAULT_MAX_EXECUTION_TIME=0,e.DEFAULT_MAX_PENDING=1e3,e.prototype.acquire=function(t,e,r,n){if(Array.isArray(t))return this._acquireBatch(t,e,r,n);if("function"!=typeof e)throw new Error("You must pass a function to execute");var i=null,o=null,s=null;"function"!=typeof r&&(n=r,r=null,s=new this.Promise(function(t,e){i=t,o=e})),n=n||{};var a=!1,f=null,u=null,c=null,l=this,h=function(e,n,f){u&&(clearTimeout(u),u=null),c&&(clearTimeout(c),c=null),e&&(l.queues[t]&&0===l.queues[t].length&&delete l.queues[t],l.domainReentrant&&delete l.domains[t]),a||(s?n?o(n):i(f):"function"==typeof r&&r(n,f),a=!0),e&&l.queues[t]&&l.queues[t].length>0&&l.queues[t].shift()()},d=function(r){if(a)return h(r);f&&(clearTimeout(f),f=null),l.domainReentrant&&r&&(l.domains[t]=process.domain);var i=n.maxExecutionTime||l.maxExecutionTime;if(i&&(c=setTimeout(function(){l.queues[t]&&h(r,new Error("Maximum execution time is exceeded "+t))},i)),1===e.length){var o=!1;try{e(function(t,e){o||(o=!0,h(r,t,e))})}catch(t){o||(o=!0,h(r,t))}}else l._promiseTry(function(){return e()}).then(function(t){h(r,void 0,t)},function(t){h(r,t)})};l.domainReentrant&&process.domain&&(d=process.domain.bind(d));var p=n.maxPending||l.maxPending;if(l.queues[t])if(l.domainReentrant&&process.domain&&process.domain===l.domains[t])d(!1);else if(l.queues[t].length>=p)h(!1,new Error("Too many pending tasks in queue "+t));else{var g=function(){d(!0)};n.skipQueue?l.queues[t].unshift(g):l.queues[t].push(g);var y=n.timeout||l.timeout;y&&(f=setTimeout(function(){f=null,h(!1,new Error("async-lock timed out in queue "+t))},y))}else l.queues[t]=[],d(!0);var m=n.maxOccupationTime||l.maxOccupationTime;return m&&(u=setTimeout(function(){l.queues[t]&&h(!1,new Error("Maximum occupation time is exceeded in queue "+t))},m)),s||void 0},e.prototype._acquireBatch=function(t,e,r,n){"function"!=typeof r&&(n=r,r=null);var i=this,o=t.reduceRight(function(t,e){return function(t,e){return function(r){i.acquire(t,e,r,n)}}(e,t)},e);if("function"!=typeof r)return new this.Promise(function(t,e){1===o.length?o(function(r,n){r?e(r):t(n)}):t(o())});o(r)},e.prototype.isBusy=function(t){return t?!!this.queues[t]:Object.keys(this.queues).length>0},e.prototype._promiseTry=function(t){try{return this.Promise.resolve(t())}catch(t){return this.Promise.reject(t)}},t.exports=e},945:(t,e,r)=>{var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1237:t=>{"use strict";t.exports=EvalError},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1447:(t,e,r)=>{"use strict";var n=r(9805),i=r(3269),o=r(4823),s=r(7293),a=r(1998),f=-2,u=12,c=30;function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):f}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):f}function g(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?f:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,p(t))):f}function y(t,e){var r,n;return t?(n=new h,t.state=n,n.window=null,0!==(r=g(t,e))&&(t.state=null),r):f}var m,w,_=!0;function b(t){if(_){var e;for(m=new n.Buf32(512),w=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,w,0,t.work,{bits:5}),_=!1}t.lencode=m,t.lenbits=9,t.distcode=w,t.distbits=5}function v(t,e,r,i){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),n.arraySet(s.window,e,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=p,e.inflateReset2=g,e.inflateResetKeep=d,e.inflateInit=function(t){return y(t,15)},e.inflateInit2=y,e.inflate=function(t,e){var r,h,d,p,g,y,m,w,_,x,E,k,A,B,S,I,U,O,P,R,$,T,j,z,C=0,M=new n.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return f;(r=t.state).mode===u&&(r.mode=13),g=t.next_out,d=t.output,m=t.avail_out,p=t.next_in,h=t.input,y=t.avail_in,w=r.hold,_=r.bits,x=y,E=m,T=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(2&r.wrap&&35615===w){r.check=0,M[0]=255&w,M[1]=w>>>8&255,r.check=o(r.check,M,2,0),w=0,_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){t.msg="incorrect header check",r.mode=c;break}if(8!=(15&w)){t.msg="unknown compression method",r.mode=c;break}if(_-=4,$=8+(15&(w>>>=4)),0===r.wbits)r.wbits=$;else if($>r.wbits){t.msg="invalid window size",r.mode=c;break}r.dmax=1<<$,t.adler=r.check=1,r.mode=512&w?10:u,w=0,_=0;break;case 2:for(;_<16;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=c;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=c;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(M[0]=255&w,M[1]=w>>>8&255,r.check=o(r.check,M,2,0)),w=0,_=0,r.mode=3;case 3:for(;_<32;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(M[0]=255&w,M[1]=w>>>8&255,M[2]=w>>>16&255,M[3]=w>>>24&255,r.check=o(r.check,M,4,0)),w=0,_=0,r.mode=4;case 4:for(;_<16;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(M[0]=255&w,M[1]=w>>>8&255,r.check=o(r.check,M,2,0)),w=0,_=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(M[0]=255&w,M[1]=w>>>8&255,r.check=o(r.check,M,2,0)),w=0,_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((k=r.length)>y&&(k=y),k&&(r.head&&($=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,p,k,$)),512&r.flags&&(r.check=o(r.check,h,k,p)),y-=k,p+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break t;k=0;do{$=h[p+k++],r.head&&$&&r.length<65536&&(r.head.name+=String.fromCharCode($))}while($&&k<y);if(512&r.flags&&(r.check=o(r.check,h,k,p)),y-=k,p+=k,$)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break t;k=0;do{$=h[p+k++],r.head&&$&&r.length<65536&&(r.head.comment+=String.fromCharCode($))}while($&&k<y);if(512&r.flags&&(r.check=o(r.check,h,k,p)),y-=k,p+=k,$)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(w!==(65535&r.check)){t.msg="header crc mismatch",r.mode=c;break}w=0,_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=u;break;case 10:for(;_<32;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}t.adler=r.check=l(w),w=0,_=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=y,r.hold=w,r.bits=_,2;t.adler=r.check=1,r.mode=u;case u:if(5===e||6===e)break t;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6===e){w>>>=2,_-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=c}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){t.msg="invalid stored block lengths",r.mode=c;break}if(r.length=65535&w,w=0,_=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(k=r.length){if(k>y&&(k=y),k>m&&(k=m),0===k)break t;n.arraySet(d,h,p,k,g),y-=k,p+=k,m-=k,g+=k,r.length-=k;break}r.mode=u;break;case 17:for(;_<14;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=c;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.lens[N[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,j={bits:r.lenbits},T=a(0,r.lens,0,19,r.lencode,0,r.work,j),r.lenbits=j.bits,T){t.msg="invalid code lengths set",r.mode=c;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(C=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,U=65535&C,!((S=C>>>24)<=_);){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(U<16)w>>>=S,_-=S,r.lens[r.have++]=U;else{if(16===U){for(z=S+2;_<z;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(w>>>=S,_-=S,0===r.have){t.msg="invalid bit length repeat",r.mode=c;break}$=r.lens[r.have-1],k=3+(3&w),w>>>=2,_-=2}else if(17===U){for(z=S+3;_<z;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}_-=S,$=0,k=3+(7&(w>>>=S)),w>>>=3,_-=3}else{for(z=S+7;_<z;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}_-=S,$=0,k=11+(127&(w>>>=S)),w>>>=7,_-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=c;break}for(;k--;)r.lens[r.have++]=$}}if(r.mode===c)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=c;break}if(r.lenbits=9,j={bits:r.lenbits},T=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,j),r.lenbits=j.bits,T){t.msg="invalid literal/lengths set",r.mode=c;break}if(r.distbits=6,r.distcode=r.distdyn,j={bits:r.distbits},T=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,j),r.distbits=j.bits,T){t.msg="invalid distances set",r.mode=c;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(y>=6&&m>=258){t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=y,r.hold=w,r.bits=_,s(t,E),g=t.next_out,d=t.output,m=t.avail_out,p=t.next_in,h=t.input,y=t.avail_in,w=r.hold,_=r.bits,r.mode===u&&(r.back=-1);break}for(r.back=0;I=(C=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,U=65535&C,!((S=C>>>24)<=_);){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(I&&!(240&I)){for(O=S,P=I,R=U;I=(C=r.lencode[R+((w&(1<<O+P)-1)>>O)])>>>16&255,U=65535&C,!(O+(S=C>>>24)<=_);){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=S,_-=S,r.back+=S,r.length=U,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=u;break}if(64&I){t.msg="invalid literal/length code",r.mode=c;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(z=r.extra;_<z;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(C=r.distcode[w&(1<<r.distbits)-1])>>>16&255,U=65535&C,!((S=C>>>24)<=_);){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(!(240&I)){for(O=S,P=I,R=U;I=(C=r.distcode[R+((w&(1<<O+P)-1)>>O)])>>>16&255,U=65535&C,!(O+(S=C>>>24)<=_);){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=S,_-=S,r.back+=S,64&I){t.msg="invalid distance code",r.mode=c;break}r.offset=U,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(z=r.extra;_<z;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=c;break}r.mode=25;case 25:if(0===m)break t;if(k=E-m,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=c;break}k>r.wnext?(k-=r.wnext,A=r.wsize-k):A=r.wnext-k,k>r.length&&(k=r.length),B=r.window}else B=d,A=g-r.offset,k=r.length;k>m&&(k=m),m-=k,r.length-=k;do{d[g++]=B[A++]}while(--k);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;d[g++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===y)break t;y--,w|=h[p++]<<_,_+=8}if(E-=m,t.total_out+=E,r.total+=E,E&&(t.adler=r.check=r.flags?o(r.check,d,E,g-E):i(r.check,d,E,g-E)),E=m,(r.flags?w:l(w))!==r.check){t.msg="incorrect data check",r.mode=c;break}w=0,_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===y)break t;y--,w+=h[p++]<<_,_+=8}if(w!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=c;break}w=0,_=0}r.mode=29;case 29:T=1;break t;case c:T=-3;break t;case 31:return-4;default:return f}return t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=y,r.hold=w,r.bits=_,(r.wsize||E!==t.avail_out&&r.mode<c&&(r.mode<27||4!==e))&&v(t,t.output,t.next_out,E-t.avail_out)?(r.mode=31,-4):(x-=t.avail_in,E-=t.avail_out,t.total_in+=x,t.total_out+=E,r.total+=E,r.wrap&&E&&(t.adler=r.check=r.flags?o(r.check,d,E,t.next_out-E):i(r.check,d,E,t.next_out-E)),t.data_type=r.bits+(r.last?64:0)+(r.mode===u?128:0)+(20===r.mode||15===r.mode?256:0),(0===x&&0===E||4===e)&&0===T&&(T=-5),T)},e.inflateEnd=function(t){if(!t||!t.state)return f;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,0):f},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?f:11===r.mode&&i(1,e,n,0)!==r.check?-3:v(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):f},e.inflateInfo="pako inflate (from Nodeca project)"},1514:t=>{"use strict";t.exports=Math.abs},1668:(t,e,r)=>{"use strict";var n={};(0,r(9805).assign)(n,r(3303),r(7083),r(9681)),t.exports=n},1996:(t,e,r)=>{"use strict";var n=r(9805),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function f(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",s=0;s<e;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,e.string2buf=function(t){var e,r,i,o,s,a=t.length,f=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),f+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(f),s=0,o=0;s<f;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|63&r):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|63&r):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|63&r);return e},e.buf2binstring=function(t){return f(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,a=e||t.length,u=new Array(2*a);for(n=0,r=0;r<a;)if((i=t[r++])<128)u[n++]=i;else if((o=s[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return f(u,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+s[t[r]]>e?r:e}},1998:(t,e,r)=>{"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,f,u,c,l,h){var d,p,g,y,m,w,_,b,v,x=h.bits,E=0,k=0,A=0,B=0,S=0,I=0,U=0,O=0,P=0,R=0,$=null,T=0,j=new n.Buf16(16),z=new n.Buf16(16),C=null,M=0;for(E=0;E<=15;E++)j[E]=0;for(k=0;k<f;k++)j[e[r+k]]++;for(S=x,B=15;B>=1&&0===j[B];B--);if(S>B&&(S=B),0===B)return u[c++]=20971520,u[c++]=20971520,h.bits=1,0;for(A=1;A<B&&0===j[A];A++);for(S<A&&(S=A),O=1,E=1;E<=15;E++)if(O<<=1,(O-=j[E])<0)return-1;if(O>0&&(0===t||1!==B))return-1;for(z[1]=0,E=1;E<15;E++)z[E+1]=z[E]+j[E];for(k=0;k<f;k++)0!==e[r+k]&&(l[z[e[r+k]]++]=k);if(0===t?($=C=l,w=19):1===t?($=i,T-=257,C=o,M-=257,w=256):($=s,C=a,w=-1),R=0,k=0,E=A,m=c,I=S,U=0,g=-1,y=(P=1<<S)-1,1===t&&P>852||2===t&&P>592)return 1;for(;;){_=E-U,l[k]<w?(b=0,v=l[k]):l[k]>w?(b=C[M+l[k]],v=$[T+l[k]]):(b=96,v=0),d=1<<E-U,A=p=1<<I;do{u[m+(R>>U)+(p-=d)]=_<<24|b<<16|v}while(0!==p);for(d=1<<E-1;R&d;)d>>=1;if(0!==d?(R&=d-1,R+=d):R=0,k++,0===--j[E]){if(E===B)break;E=e[r+l[k]]}if(E>S&&(R&y)!==g){for(0===U&&(U=S),m+=A,O=1<<(I=E-U);I+U<B&&!((O-=j[I+U])<=0);)I++,O<<=1;if(P+=1<<I,1===t&&P>852||2===t&&P>592)return 1;u[g=R&y]=S<<24|I<<16|m-c}}return 0!==R&&(u[m+R]=E-U<<24|64<<16),h.bits=S,0}},2205:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),o=r(3144);t.exports=function(){return o(n,i,arguments)}},2535:t=>{function e(t){return Array.isArray(t)?t:[t]}const r=/^\s+$/,n=/(?:[^\\]|^)\\$/,i=/^\\!/,o=/^\\#/,s=/\r?\n/g,a=/^\.*\/|^\.+$/;let f="node-ignore";"undefined"!=typeof Symbol&&(f=Symbol.for("node-ignore"));const u=f,c=/([0-z])-([0-z])/g,l=()=>!1,h=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{const{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(n)}${i}`:"]"===i&&n.length%2==0?`[${(t=>t.replace(c,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>(e?`${e}[^/]+`:"[^/]*")+"(?=$|\\/$)"]],d=Object.create(null),p=t=>"string"==typeof t;class g{constructor(t,e,r,n){this.origin=t,this.pattern=e,this.negative=r,this.regex=n}}const y=(t,e)=>{throw new e(t)},m=(t,e,r)=>p(t)?t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),w=t=>a.test(t);m.isNotRelative=w,m.convert=t=>t;class _{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){var n;n=u,Object.defineProperty(this,n,{value:true}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[u])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&p(t)&&!r.test(t)&&!n.test(t)&&0!==t.indexOf("#"))(t)){const e=((t,e)=>{const r=t;let n=!1;0===t.indexOf("!")&&(n=!0,t=t.substr(1));const s=((t,e)=>{let r=d[t];return r||(r=h.reduce((e,[r,n])=>e.replace(r,n.bind(t)),t),d[t]=r),e?new RegExp(r,"i"):new RegExp(r)})(t=t.replace(i,"!").replace(o,"#"),e);return new g(r,t,n,s)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e(p(t)?(t=>t.split(s))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let r=!1,n=!1;return this._rules.forEach(i=>{const{negative:o}=i;n===o&&r!==n||o&&!r&&!n&&!e||i.regex.test(t)&&(r=!o,n=o)}),{ignored:r,unignored:n}}_test(t,e,r,n){const i=t&&m.convert(t);return m(i,t,this._allowRelativePaths?l:y),this._t(i,e,r,n)}_t(t,e,r,n){if(t in e)return e[t];if(n||(n=t.split("/")),n.pop(),!n.length)return e[t]=this._testOne(t,r);const i=this._t(n.join("/")+"/",e,r,n);return e[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const b=t=>new _(t);if(b.isPathValid=t=>m(t&&m.convert(t),t,l),b.default=b,t.exports=b,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");m.convert=t;const e=/^[a-z]:\//i;m.isNotRelative=t=>e.test(t)||w(t)}},2566:(t,e)=>{var r;r=function(t){t.version="1.2.2";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),r=function(t){var e=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=t[n];for(n=0;256!=n;++n)for(r=t[n],e=256+n;e<4096;e+=256)r=i[e]=r>>>8^t[255&r];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return o}(e),n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],f=r[5],u=r[6],c=r[7],l=r[8],h=r[9],d=r[10],p=r[11],g=r[12],y=r[13],m=r[14];t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=0,o=t.length;i<o;)n=n>>>8^e[255&(n^t.charCodeAt(i++))];return~n},t.buf=function(t,r){for(var w=-1^r,_=t.length-15,b=0;b<_;)w=m[t[b++]^255&w]^y[t[b++]^w>>8&255]^g[t[b++]^w>>16&255]^p[t[b++]^w>>>24]^d[t[b++]]^h[t[b++]]^l[t[b++]]^c[t[b++]]^u[t[b++]]^f[t[b++]]^a[t[b++]]^s[t[b++]]^o[t[b++]]^i[t[b++]]^n[t[b++]]^e[t[b++]];for(_+=15;b<_;)w=w>>>8^e[255&(w^t[b++])];return~w},t.str=function(t,r){for(var n=-1^r,i=0,o=t.length,s=0,a=0;i<o;)(s=t.charCodeAt(i++))<128?n=n>>>8^e[255&(n^s)]:s<2048?n=(n=n>>>8^e[255&(n^(192|s>>6&31))])>>>8^e[255&(n^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&t.charCodeAt(i++),n=(n=(n=(n=n>>>8^e[255&(n^(240|s>>8&7))])>>>8^e[255&(n^(128|s>>2&63))])>>>8^e[255&(n^(128|a>>6&15|(3&s)<<4))])>>>8^e[255&(n^(128|63&a))]):n=(n=(n=n>>>8^e[255&(n^(224|s>>12&15))])>>>8^e[255&(n^(128|s>>6&63))])>>>8^e[255&(n^(128|63&s))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(e):r({})},2682:(t,e,r)=>{"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var s,a;arguments.length>=3&&(s=r),a=t,"[object Array]"===i.call(a)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,s):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,s):function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,s)}},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3126:(t,e,r)=>{"use strict";var n=r(6743),i=r(9675),o=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},3144:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),o=r(76),s=r(7119);t.exports=s||n.call(o,i)},3269:t=>{"use strict";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16}},3303:(t,e,r)=>{"use strict";var n=r(8411),i=r(9805),o=r(1996),s=r(4674),a=r(4442),f=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(s[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,c)))throw new Error(s[r]);this._dict_set=!0}}function c(t,e){var r=new u(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}u.prototype.push=function(t,e){var r,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===f.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(u),a.next_out=0,a.avail_out=u),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),a.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=c,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},3628:(t,e,r)=>{"use strict";var n=r(8648),i=r(1064),o=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},3665:(t,e,r)=>{"use strict";var n=r(9805);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var c=new Array(60);i(c);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,g,y,m=new Array(30);function w(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function b(t){return t<256?l[t]:l[256+(t>>>7)]}function v(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,v(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function E(t,e,r){x(t,r[2*e],r[2*e+1])}function k(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function A(t,e,r){var n,i,o=new Array(16),s=0;for(n=1;n<=15;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=k(o[a]++,a))}}function B(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){t.bi_valid>8?v(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function I(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function U(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function O(t,e,r){var n,i,a,f,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?E(t,i,e):(E(t,(a=h[i])+256+1,e),0!==(f=o[a])&&x(t,i-=d[a],f),E(t,a=b(--n),r),0!==(f=s[a])&&x(t,n-=m[a],f))}while(u<t.last_lit);E(t,256,e)}function P(t,e){var r,n,i,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,f=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<f;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,a&&(t.static_len-=s[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)U(t,o,r);i=f;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,U(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,s,a,f=e.dyn_tree,u=e.max_code,c=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(f[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=f[2*f[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,g++),f[2*n+1]=o,n>u||(t.bl_count[o]++,s=0,n>=d&&(s=h[n-d]),a=f[2*n],t.opt_len+=a*(o+s),l&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(f[2*i+1]!==o&&(t.opt_len+=(o-f[2*i+1])*f[2*i],f[2*i+1]=o),n--)}}(t,e),A(o,u,t.bl_count)}function R(t,e,r){var n,i,o=-1,s=e[1],a=0,f=7,u=4;for(0===s&&(f=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=e[2*(n+1)+1],++a<f&&i===s||(a<u?t.bl_tree[2*i]+=a:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=i,0===s?(f=138,u=3):i===s?(f=6,u=3):(f=7,u=4))}function $(t,e,r){var n,i,o=-1,s=e[1],a=0,f=7,u=4;for(0===s&&(f=138,u=3),n=0;n<=r;n++)if(i=s,s=e[2*(n+1)+1],!(++a<f&&i===s)){if(a<u)do{E(t,i,t.bl_tree)}while(0!==--a);else 0!==i?(i!==o&&(E(t,i,t.bl_tree),a--),E(t,16,t.bl_tree),x(t,a-3,2)):a<=10?(E(t,17,t.bl_tree),x(t,a-3,3)):(E(t,18,t.bl_tree),x(t,a-11,7));a=0,o=i,0===s?(f=138,u=3):i===s?(f=6,u=3):(f=7,u=4)}}i(m);var T=!1;function j(t,e,r,i){x(t,0+(i?1:0),3),function(t,e,r){S(t),v(t,r),v(t,~r),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}e._tr_init=function(t){T||(function(){var t,e,r,n,i,f=new Array(16);for(r=0,n=0;n<28;n++)for(d[n]=r,t=0;t<1<<o[n];t++)h[r++]=n;for(h[r-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,t=0;t<1<<s[n];t++)l[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,t=0;t<1<<s[n]-7;t++)l[256+i++]=n;for(e=0;e<=15;e++)f[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,f[8]++;for(;t<=255;)u[2*t+1]=9,t++,f[9]++;for(;t<=279;)u[2*t+1]=7,t++,f[7]++;for(;t<=287;)u[2*t+1]=8,t++,f[8]++;for(A(u,287,f),t=0;t<30;t++)c[2*t+1]=5,c[2*t]=k(t,5);p=new w(u,o,257,286,15),g=new w(c,s,0,30,15),y=new w(new Array(0),a,0,19,7)}(),T=!0),t.l_desc=new _(t.dyn_ltree,p),t.d_desc=new _(t.dyn_dtree,g),t.bl_desc=new _(t.bl_tree,y),t.bi_buf=0,t.bi_valid=0,B(t)},e._tr_stored_block=j,e._tr_flush_block=function(t,e,r,n){var i,o,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),P(t,t.l_desc),P(t,t.d_desc),s=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),P(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*f[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?j(t,e,r,n):4===t.strategy||o===i?(x(t,2+(n?1:0),3),O(t,u,c)):(x(t,4+(n?1:0),3),function(t,e,r,n){var i;for(x(t,e-257,5),x(t,r-1,5),x(t,n-4,4),i=0;i<n;i++)x(t,t.bl_tree[2*f[i]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),O(t,t.dyn_ltree,t.dyn_dtree)),B(t),n&&S(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*b(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(v(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},3737:(t,e,r)=>{"use strict";var n=r(6698),i=r(392),o=r(8188).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function f(){this.init(),this._w=a,i.call(this,64,56)}function u(t){return t<<1|t>>>31}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(f,i),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,f=0;f<16;++f)e[f]=t.readInt32BE(4*f);for(;f<80;++f)e[f]=u(e[f-3]^e[f-8]^e[f-14]^e[f-16]);for(var d=0;d<80;++d){var p=~~(d/20),g=c(r)+h(p,n,i,o)+a+e[d]+s[p]|0;a=o,o=i,i=l(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},f.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=f},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4372:(t,e,r)=>{"use strict";var n=r(9675),i=r(6556)("TypedArray.prototype.buffer",!0),o=r(5680);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},4442:t=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4674:t=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4823:t=>{"use strict";var e=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,r,n,i){var o=e,s=i+n;t^=-1;for(var a=i;a<s;a++)t=t>>>8^o[255&(t^r[a])];return-1^t}},5345:t=>{"use strict";t.exports=URIError},5377:(t,e,r)=>{"use strict";var n=r(945).Buffer,i=r(4634),o=r(4372),s=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},a="undefined"!=typeof Uint8Array,f="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=f&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(f&&s(t)){if(0===t.byteLength)return n.alloc(0);if(u){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),c=n.from(o);if(c.length===t.byteLength)return c}if(a&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var h=0;h<t.length;h+=1){var d=t[h];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},5680:(t,e,r)=>{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},5767:(t,e,r)=>{"use strict";var n=r(2682),i=r(9209),o=r(487),s=r(6556),a=r(5795),f=r(3628),u=s("Object.prototype.toString"),c=r(9092)(),l="undefined"==typeof globalThis?r.g:globalThis,h=i(),d=s("String.prototype.slice"),p=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},g={__proto__:null};n(h,c&&a&&f?function(t){var e=new l[t];if(Symbol.toStringTag in e&&f){var r=f(e),n=a(r,Symbol.toStringTag);if(!n&&r){var i=f(r);n=a(i,Symbol.toStringTag)}g["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(g["$"+t]=o(r))}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!c){var e=d(u(t),8,-1);return p(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(g,function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}}),e}(t)}return a?function(t){var e=!1;return n(g,function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}}),e}(t):null}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5880:t=>{"use strict";t.exports=Math.pow},6188:t=>{"use strict";t.exports=Math.max},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{"use strict";var n=r(453),i=r(3126),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},6578:t=>{"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6743:(t,e,r)=>{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6897:(t,e,r)=>{"use strict";var n=r(453),i=r(41),o=r(592)(),s=r(5795),a=r(9675),f=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||f(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var c=s(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},7083:(t,e,r)=>{"use strict";var n=r(1447),i=r(9805),o=r(1996),s=r(9681),a=r(4674),f=r(4442),u=r(7414),c=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[r])}function h(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}l.prototype.push=function(t,e){var r,a,f,u,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==s.Z_STREAM_END&&(0!==h.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(f=o.utf8border(h.output,h.next_out),u=h.next_out-f,l=o.buf2string(h.output,f),h.next_out=u,h.avail_out=d-u,u&&i.arraySet(h.output,h.output,f,u,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(t,e,r)=>{"use strict";var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,f=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof f&&function(t){return f(null==t?t:a(t))}},7293:t=>{"use strict";t.exports=function(t,e){var r,n,i,o,s,a,f,u,c,l,h,d,p,g,y,m,w,_,b,v,x,E,k,A,B;r=t.state,n=t.next_in,A=t.input,i=n+(t.avail_in-5),o=t.next_out,B=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),f=r.dmax,u=r.wsize,c=r.whave,l=r.wnext,h=r.window,d=r.hold,p=r.bits,g=r.lencode,y=r.distcode,m=(1<<r.lenbits)-1,w=(1<<r.distbits)-1;t:do{p<15&&(d+=A[n++]<<p,p+=8,d+=A[n++]<<p,p+=8),_=g[d&m];e:for(;;){if(d>>>=b=_>>>24,p-=b,0==(b=_>>>16&255))B[o++]=65535&_;else{if(!(16&b)){if(64&b){if(32&b){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=g[(65535&_)+(d&(1<<b)-1)];continue e}for(v=65535&_,(b&=15)&&(p<b&&(d+=A[n++]<<p,p+=8),v+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=A[n++]<<p,p+=8,d+=A[n++]<<p,p+=8),_=y[d&w];;){if(d>>>=b=_>>>24,p-=b,16&(b=_>>>16&255)){if(x=65535&_,p<(b&=15)&&(d+=A[n++]<<p,(p+=8)<b&&(d+=A[n++]<<p,p+=8)),(x+=d&(1<<b)-1)>f){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=b,p-=b,x>(b=o-s)){if((b=x-b)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(E=0,k=h,0===l){if(E+=u-b,b<v){v-=b;do{B[o++]=h[E++]}while(--b);E=o-x,k=B}}else if(l<b){if(E+=u+l-b,(b-=l)<v){v-=b;do{B[o++]=h[E++]}while(--b);if(E=0,l<v){v-=b=l;do{B[o++]=h[E++]}while(--b);E=o-x,k=B}}}else if(E+=l-b,b<v){v-=b;do{B[o++]=h[E++]}while(--b);E=o-x,k=B}for(;v>2;)B[o++]=k[E++],B[o++]=k[E++],B[o++]=k[E++],v-=3;v&&(B[o++]=k[E++],v>1&&(B[o++]=k[E++]))}else{E=o-x;do{B[o++]=B[E++],B[o++]=B[E++],B[o++]=B[E++],v-=3}while(v>2);v&&(B[o++]=B[E++],v>1&&(B[o++]=B[E++]))}break}if(64&b){t.msg="invalid distance code",r.mode=30;break t}_=y[(65535&_)+(d&(1<<b)-1)]}}break}}while(n<i&&o<a);n-=v=p>>3,d&=(1<<(p-=v<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},7414:t=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],f=o[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,f)),c=0,l=f>0?s-4:s;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,f=n-i;a<f;a+=s)o.push(u(t,a,a+s>f?f:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(f(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8002:t=>{"use strict";t.exports=Math.min},8068:t=>{"use strict";t.exports=SyntaxError},8188:(t,e,r)=>{var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},8287:(t,e,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let n=a(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return f.from(n,e,r);const i=function(t){if(f.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,f.prototype),n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(i)return n?-1:q(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return U(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){let o,s=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,f/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===f)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+f>a&&(r=a-f),o=r;o>=0;o--){let r=!0;for(let n=0;n<f;n++)if(u(t,o+n)!==u(e,n)){r=!1;break}if(r)return o}return-1}function b(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(K(n))return s;t[r+s]=n}return s}function v(t,e,r,n){return V(q(e,t.length-r),t,r,n)}function x(t,e,r,n){return V(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function E(t,e,r,n){return V(W(e),t,r,n)}function k(t,e,r,n){return V(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function B(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,f;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(f=(31&e)<<6|63&r,f>127&&(o=f));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(f=(15&e)<<12|(63&r)<<6|63&n,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(f=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,f>65535&&f<1114112&&(o=f))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}e.kMaxLength=s,f.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),f.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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},f.allocUnsafe=function(t){return l(t)},f.allocUnsafeSlow=function(t){return l(t)},f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(Y(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},f.isEncoding=function(t){switch(String(t).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}},f.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=f.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))i+e.length>n.length?(f.isBuffer(e)||(e=f.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!f.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},f.byteLength=g,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},f.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},f.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},f.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?B(this,0,t):y.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(Y(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<a;++t)if(u[t]!==c[t]){o=u[t],s=c[t];break}return o<s?-1:s<o?1:0},f.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return w(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return w(this,t,e,r,!1)},f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return v(this,t,e,r);case"ascii":case"latin1":case"binary":return x(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function I(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function U(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function O(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=X[t[n]];return i}function P(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function T(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function j(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function z(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,o){return e=+e,r>>>=0,o||z(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function M(t,e,r,n,o){return e=+e,r>>>=0,o||z(t,0,r,8),i.write(t,e,r,n,52,8),r+8}f.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUintLE=f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUintBE=f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUint8=f.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readBigUInt64LE=J(function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Z(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),f.prototype.readBigUInt64BE=J(function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Z(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readBigInt64LE=J(function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Z(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),f.prototype.readBigInt64BE=J(function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Z(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),f.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||$(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||$(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigUInt64LE=J(function(t,e=0){return T(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=J(function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);$(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);$(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigInt64LE=J(function(t,e=0){return T(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=J(function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return M(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return M(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=f.isBuffer(t)?t:f.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const N={};function F(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function L(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function D(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new N.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||Z(e,t.length-(r+1))}(n,i,o)}function G(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function Z(t,e,r){if(Math.floor(t)!==t)throw G(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),F("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=L(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function W(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8411:(t,e,r)=>{"use strict";var n,i=r(9805),o=r(3665),s=r(3269),a=r(4823),f=r(4674),u=-2,c=258,l=262,h=103,d=113,p=666;function g(t,e){return t.msg=f[e],e}function y(t){return(t<<1)-(t>4?9:0)}function m(t){for(var e=t.length;--e>=0;)t[e]=0}function w(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function _(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,w(t.strm)}function b(t,e){t.pending_buf[t.pending++]=e}function v(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function x(t,e,r,n){var o=t.avail_in;return o>n&&(o=n),0===o?0:(t.avail_in-=o,i.arraySet(e,t.input,t.next_in,o,r),1===t.state.wrap?t.adler=s(t.adler,e,o,r):2===t.state.wrap&&(t.adler=a(t.adler,e,o,r)),t.next_in+=o,t.total_in+=o,o)}function E(t,e){var r,n,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,f=t.strstart>t.w_size-l?t.strstart-(t.w_size-l):0,u=t.window,h=t.w_mask,d=t.prev,p=t.strstart+c,g=u[o+s-1],y=u[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(u[(r=e)+s]===y&&u[r+s-1]===g&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<p);if(n=c-(p-o),o=p-c,n>s){if(t.match_start=e,s=n,n>=a)break;g=u[o+s-1],y=u[o+s]}}}while((e=d[e&h])>f&&0!==--i);return s<=t.lookahead?s:t.lookahead}function k(t){var e,r,n,o,s,a=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-l)){i.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=a?n-a:0}while(--r);e=r=a;do{n=t.prev[--e],t.prev[e]=n>=a?n-a:0}while(--r);o+=a}if(0===t.strm.avail_in)break;if(r=x(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=r,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<l&&0!==t.strm.avail_in)}function A(t,e){for(var r,n;;){if(t.lookahead<l){if(k(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-l&&(t.match_length=E(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function B(t,e){for(var r,n,i;;){if(t.lookahead<l){if(k(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-l&&(t.match_length=E(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(_(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&_(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function S(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:d,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):g(t,u)}function O(t){var e,r=U(t);return 0===r&&((e=t.state).window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function P(t,e,r,n,o,s){if(!t)return u;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||s<0||s>4)return g(t,u);8===n&&(n=9);var f=new I;return t.state=f,f.strm=t,f.wrap=a,f.gzhead=null,f.w_bits=n,f.w_size=1<<f.w_bits,f.w_mask=f.w_size-1,f.hash_bits=o+7,f.hash_size=1<<f.hash_bits,f.hash_mask=f.hash_size-1,f.hash_shift=~~((f.hash_bits+3-1)/3),f.window=new i.Buf8(2*f.w_size),f.head=new i.Buf16(f.hash_size),f.prev=new i.Buf16(f.w_size),f.lit_bufsize=1<<o+6,f.pending_buf_size=4*f.lit_bufsize,f.pending_buf=new i.Buf8(f.pending_buf_size),f.d_buf=1*f.lit_bufsize,f.l_buf=3*f.lit_bufsize,f.level=e,f.strategy=s,f.method=r,O(t)}n=[new S(0,0,0,0,function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(k(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,_(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-l&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(_(t,!1),t.strm.avail_out),1)}),new S(4,4,8,4,A),new S(4,5,16,8,A),new S(4,6,32,32,A),new S(4,4,16,16,B),new S(8,16,32,32,B),new S(8,16,128,128,B),new S(8,32,128,256,B),new S(32,128,258,1024,B),new S(32,258,258,4096,B)],e.deflateInit=function(t,e){return P(t,e,8,15,8,0)},e.deflateInit2=P,e.deflateReset=O,e.deflateResetKeep=U,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,0):u},e.deflate=function(t,e){var r,i,s,f;if(!t||!t.state||e>5||e<0)return t?g(t,u):u;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===p&&4!==e)return g(t,0===t.avail_out?-5:u);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,b(i,31),b(i,139),b(i,8),i.gzhead?(b(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),b(i,255&i.gzhead.time),b(i,i.gzhead.time>>8&255),b(i,i.gzhead.time>>16&255),b(i,i.gzhead.time>>24&255),b(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),b(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(b(i,255&i.gzhead.extra.length),b(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=a(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(b(i,0),b(i,0),b(i,0),b(i,0),b(i,0),b(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),b(i,3),i.status=d);else{var l=8+(i.w_bits-8<<4)<<8;l|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(l|=32),l+=31-l%31,i.status=d,v(i,l),0!==i.strstart&&(v(i,t.adler>>>16),v(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),w(t),s=i.pending,i.pending!==i.pending_buf_size));)b(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),w(t),s=i.pending,i.pending===i.pending_buf_size)){f=1;break}f=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,b(i,f)}while(0!==f);i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===f&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),w(t),s=i.pending,i.pending===i.pending_buf_size)){f=1;break}f=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,b(i,f)}while(0!==f);i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===f&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&w(t),i.pending+2<=i.pending_buf_size&&(b(i,255&t.adler),b(i,t.adler>>8&255),t.adler=0,i.status=d)):i.status=d),0!==i.pending){if(w(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&y(e)<=y(r)&&4!==e)return g(t,-5);if(i.status===p&&0!==t.avail_in)return g(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==p){var x=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(k(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,s,a=t.window;;){if(t.lookahead<=c){if(k(t),t.lookahead<=c&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=t.strstart+c;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);t.match_length=c-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==x&&4!==x||(i.status=p),1===x||3===x)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===x&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),w(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(b(i,255&t.adler),b(i,t.adler>>8&255),b(i,t.adler>>16&255),b(i,t.adler>>24&255),b(i,255&t.total_in),b(i,t.total_in>>8&255),b(i,t.total_in>>16&255),b(i,t.total_in>>24&255)):(v(i,t.adler>>>16),v(i,65535&t.adler)),w(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==h&&e!==d&&e!==p?g(t,u):(t.state=null,e===d?g(t,-3):0):u},e.deflateSetDictionary=function(t,e){var r,n,o,a,f,c,l,h,d=e.length;if(!t||!t.state)return u;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return u;for(1===a&&(t.adler=s(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===a&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,e,d-r.w_size,r.w_size,0),e=h,d=r.w_size),f=t.avail_in,c=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,k(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,k(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=c,t.input=l,t.avail_in=f,r.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},8465:(t,e,r)=>{"use strict";t.exports=r(809)},8648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8968:t=>{"use strict";t.exports=Math.floor},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9209:(t,e,r)=>{"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},9290:t=>{"use strict";t.exports=RangeError},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,s=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),a=r(0,i.length-s.length),f=[],u=0;u<a;u++)f[u]="$"+u;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(f)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(s,arguments));return Object(e)===e?e:this}return i.apply(t,n(s,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},9383:t=>{"use strict";t.exports=Error},9538:t=>{"use strict";t.exports=ReferenceError},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;f.call(h)===f.call(document.all)&&(l=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},9612:t=>{"use strict";t.exports=Object},9675:t=>{"use strict";t.exports=TypeError},9681:t=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9805:(t,e)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,s;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],s.set(o,i),i+=o.length;return s}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);t.exports=o.call(n,i)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{GitConfigManager:()=>g,GitIgnoreManager:()=>_,GitIndexManager:()=>N,GitRefManager:()=>X,GitRemoteHTTP:()=>gt,GitRemoteManager:()=>wt,GitShallowManager:()=>bt,GitStashManager:()=>Kt});const t=t=>{if("boolean"==typeof t)return t;if("true"===(t=t.trim().toLowerCase())||"yes"===t||"on"===t)return!0;if("false"===t||"no"===t||"off"===t)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${t}`)},e={core:{filemode:t,bare:t,logallrefupdates:t,symlinks:t,ignorecase:t,bigFileThreshold:t=>{if("number"==typeof t)return t;t=t.toLowerCase();let e=parseInt(t);return t.endsWith("k")&&(e*=1024),t.endsWith("m")&&(e*=1048576),t.endsWith("g")&&(e*=1073741824),e}}},i=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,o=/^[A-Za-z0-9-.]+$/,s=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,a=/^[A-Za-z][A-Za-z-]*$/,f=/^(.*?)( *[#;].*)$/,u=t=>(t.match(/(?:^|[^\\])"/g)||[]).length%2!=0,c=t=>t.split("").reduce((t,e,r,n)=>{const i='"'===e&&"\\"!==n[r-1],o="\\"===e&&'"'===n[r+1];return i||o?t:t+e},""),l=t=>null!=t?t.toLowerCase():null,h=(t,e,r)=>[l(t),e,l(r)].filter(t=>null!=t).join("."),d=t=>{const e=t.split("."),r=e.shift(),n=e.pop(),i=e.length?e.join("."):void 0;return{section:r,subsection:i,name:n,path:h(r,i,n),sectionPath:h(r,i,null),isSection:!!r}};class p{constructor(t){let e=null,r=null;this.parsedConfig=t?t.split("\n").map(t=>{let n=null,o=null;const a=t.trim(),l=(t=>{const e=i.exec(t);if(null!=e){const[t,r]=e.slice(1);return[t,r]}return null})(a),d=null!=l;if(d)[e,r]=l;else{const t=(t=>{const e=s.exec(t);if(null!=e){const[t,r="true"]=e.slice(1),n=(t=>{const e=f.exec(t);if(null==e)return t;const[r,n]=e.slice(1);return u(r)&&u(n)?`${r}${n}`:r})(r);return[t,c(n)]}return null})(a);null!=t&&([n,o]=t)}const p=h(e,r,n);return{line:t,isSection:d,section:e,subsection:r,name:n,value:o,path:p}}):[]}static from(t){return new p(t)}async get(t,r=!1){const n=d(t).path,i=this.parsedConfig.filter(t=>t.path===n).map(({section:t,name:r,value:n})=>{const i=e[t]&&e[t][r];return i?i(n):n});return r?i:i.pop()}async getall(t){return this.get(t,!0)}async getSubsections(t){return this.parsedConfig.filter(e=>e.isSection&&e.section===t).map(t=>t.subsection)}async deleteSection(t,e){this.parsedConfig=this.parsedConfig.filter(r=>!(r.section===t&&r.subsection===e))}async append(t,e){return this.set(t,e,!0)}async set(t,e,r=!1){const{section:n,subsection:i,name:s,path:f,sectionPath:u,isSection:c}=d(t),l=(h=this.parsedConfig,p=t=>t.path===f,h.reduce((t,e,r)=>p(e)?r:t,-1));var h,p;if(null==e)-1!==l&&this.parsedConfig.splice(l,1);else if(-1!==l){const t=this.parsedConfig[l],n=Object.assign({},t,{name:s,value:e,modified:!0});r?this.parsedConfig.splice(l+1,0,n):this.parsedConfig[l]=n}else{const t=this.parsedConfig.findIndex(t=>t.path===u),r={section:n,subsection:i,name:s,value:e,modified:!0,path:f};if(o.test(n)&&a.test(s))if(t>=0)this.parsedConfig.splice(t+1,0,r);else{const t={isSection:c,section:n,subsection:i,modified:!0,path:u};this.parsedConfig.push(t,r)}}}toString(){return this.parsedConfig.map(({line:t,section:e,subsection:r,name:n,value:i,modified:o=!1})=>o?null!=n&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${n} = "${i}"`:`\t${n} = ${i}`:null!=r?`[${e} "${r}"]`:`[${e}]`:t).join("\n")}}class g{static async get({fs:t,gitdir:e}){const r=await t.read(`${e}/config`,{encoding:"utf8"});return p.from(r)}static async save({fs:t,gitdir:e,config:r}){await t.write(`${e}/config`,r.toString(),{encoding:"utf8"})}}var y=r(2535);function m(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}function w(...t){if(0===t.length)return".";let e;for(let r=0;r<t.length;++r){const n=t[r];n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":function(t){if(!t.length)return".";const e="/"===t[0],r="/"===t.at(-1);return(t=function(t,e){let r="",n=0,i=-1,o=0,s="\0";for(let a=0;a<=t.length;++a){if(a<t.length)s=t[a];else{if("/"===s)break;s="/"}if("/"===s){if(i===a-1||1===o);else if(2===o){if(r.length<2||2!==n||"."!==r.at(-1)||"."!==r.at(-2)){if(r.length>2){const t=r.lastIndexOf("/");-1===t?(r="",n=0):(r=r.slice(0,t),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}if(0!==r.length){r="",n=0,i=a,o=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,a):r=t.slice(i+1,a),n=a-i-1;i=a,o=0}else"."===s&&-1!==o?++o:o=-1}return r}(t,!e)).length?(r&&(t+="/"),e?`/${t}`:t):e?"/":r?"./":"."}(e)}class _{static async isIgnored({fs:t,dir:e,gitdir:r=w(e,".git"),filepath:n}){if(".git"===function(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return e>-1&&(t=t.slice(e+1)),t}(n))return!0;if("."===n)return!1;let i="";const o=w(r,"info","exclude");await t.exists(o)&&(i=await t.read(o,"utf8"));const s=[{gitignore:w(e,".gitignore"),filepath:n}],a=n.split("/").filter(Boolean);for(let t=1;t<a.length;t++){const r=a.slice(0,t).join("/"),n=a.slice(t).join("/");s.push({gitignore:w(e,r,".gitignore"),filepath:n})}let f=!1;for(const e of s){let r;try{r=await t.read(e.gitignore,"utf8")}catch(t){if("NOENT"===t.code)continue}const n=y().add(i);n.add(r);const o=m(e.filepath);if("."!==o&&n.ignores(o))return!0;f=f?!n.test(e.filepath).unignored:n.test(e.filepath).ignored}return f}}var b=r(8465);class v extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const e=new v(t.message);return e.code=t.code,e.data=t.data,e.caller=t.caller,e.stack=t.stack,e}get isIsomorphicGitError(){return!0}}class x extends v{constructor(t){super(`Modifying the index is not possible because you have unmerged files: ${t.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=x.code,this.data={filepaths:t}}}x.code="UnmergedPathsError";class E extends v{constructor(t){super(`An internal error caused this command to fail.\n\nIf you're not a developer, report the bug to the developers of the application you're using. If this is a bug in isomorphic-git then you should create a proper bug yourselves. The bug should include a minimal reproduction and details about the version and environment.\n\nPlease file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=E.code,this.data={message:t}}}E.code="InternalError";class k extends v{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=k.code,this.data={filepath:t}}}k.code="UnsafeFilepathError";class A{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const e=this.buffer.slice(this._start,this._start+t);return this._start+=t,e}toString(t,e){const r=this.buffer.toString(t,this._start,this._start+e);return this._start+=e,r}write(t,e,r){const n=this.buffer.write(t,this._start,e,r);return this._start+=e,n}copy(t,e,r){const n=t.copy(this.buffer,this._start,e,r);return this._start+=n,n}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const e=this.buffer.writeUInt8(t,this._start);return this._start+=1,e}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const e=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,e}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const e=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,e}}function B(t,e){return function(t,e){return-(t<e)||+(t>e)}(t.path,e.path)}function S(t){let e=t>0?t>>12:0;4!==e&&8!==e&&10!==e&&14!==e&&(e=8);let r=511&t;return r=73&r?493:420,8!==e&&(r=0),(e<<12)+r}const I=2**32;function U(t,e,r,n){if(void 0!==t&&void 0!==e)return[t,e];void 0===r&&(r=n.valueOf());const i=Math.floor(r/1e3);return[i,1e6*(r-1e3*i)]}function O(t){const[e,r]=U(t.ctimeSeconds,t.ctimeNanoseconds,t.ctimeMs,t.ctime),[n,i]=U(t.mtimeSeconds,t.mtimeNanoseconds,t.mtimeMs,t.mtime);return{ctimeSeconds:e%I,ctimeNanoseconds:r%I,mtimeSeconds:n%I,mtimeNanoseconds:i%I,dev:t.dev%I,ino:t.ino%I,mode:S(t.mode%I),uid:t.uid%I,gid:t.gid%I,size:t.size>-1?t.size%I:0}}var P=r(3737);let R=null;async function $(t){return null===R&&(R=await async function(){try{return"da39a3ee5e6b4b0d3255bfef95601890afd80709"===await T(new Uint8Array([]))}catch(t){}return!1}()),R?T(t):function(t){return(new P).update(t).digest("hex")}(t)}async function T(t){return function(t){let e="";for(const r of new Uint8Array(t))r<16&&(e+="0"),e+=r.toString(16);return e}(await crypto.subtle.digest("SHA-1",t))}function j(t){return{assumeValid:Boolean(32768&t),extended:Boolean(16384&t),stage:(12288&t)>>12,nameLength:4095&t}}class z{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(0===t.flags.stage)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let e=this._entries.get(t.path);e||(this._entries.set(t.path,t),e=t),e.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return z.fromBuffer(t);if(null===t)return new z(null);throw new E("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(0===t.length)throw new E("Index file is empty (.git/index)");const e=new z,r=new A(t),n=r.toString("utf8",4);if("DIRC"!==n)throw new E(`Invalid dircache magic file number: ${n}`);const i=await $(t.slice(0,-20)),o=t.slice(-20).toString("hex");if(o!==i)throw new E(`Invalid checksum in GitIndex buffer: expected ${o} but saw ${i}`);const s=r.readUInt32BE();if(2!==s)throw new E(`Unsupported dircache version: ${s}`);const a=r.readUInt32BE();let f=0;for(;!r.eof()&&f<a;){const n={};n.ctimeSeconds=r.readUInt32BE(),n.ctimeNanoseconds=r.readUInt32BE(),n.mtimeSeconds=r.readUInt32BE(),n.mtimeNanoseconds=r.readUInt32BE(),n.dev=r.readUInt32BE(),n.ino=r.readUInt32BE(),n.mode=r.readUInt32BE(),n.uid=r.readUInt32BE(),n.gid=r.readUInt32BE(),n.size=r.readUInt32BE(),n.oid=r.slice(20).toString("hex");const i=r.readUInt16BE();n.flags=j(i);const o=t.indexOf(0,r.tell()+1)-r.tell();if(o<1)throw new E(`Got a path length of: ${o}`);if(n.path=r.toString("utf8",o),n.path.includes("..\\")||n.path.includes("../"))throw new k(n.path);let s=8-(r.tell()-12)%8;for(0===s&&(s=8);s--;){const t=r.readUInt8();if(0!==t)throw new E(`Expected 1-8 null characters but got '${t}' after ${n.path}`);if(r.eof())throw new E("Unexpected end of file")}n.stages=[],e._addEntry(n),f++}return e}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(B)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(t=>t):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:e,oid:r,stage:n=0}){e||(e={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),e=O(e);const i=Buffer.from(t),o={ctimeSeconds:e.ctimeSeconds,ctimeNanoseconds:e.ctimeNanoseconds,mtimeSeconds:e.mtimeSeconds,mtimeNanoseconds:e.mtimeNanoseconds,dev:e.dev,ino:e.ino,mode:e.mode||33188,uid:e.uid,gid:e.gid,size:e.size,path:t,oid:r,flags:{assumeValid:!1,extended:!1,stage:n,nameLength:i.length<4095?i.length:4095},stages:[]};this._addEntry(o),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const e of this._entries.keys())e.startsWith(t+"/")&&this._entries.delete(e);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join("\n")}static async _entryToBuffer(t){const e=Buffer.from(t.path),r=8*Math.ceil((62+e.length+1)/8),n=Buffer.alloc(r),i=new A(n),o=O(t);return i.writeUInt32BE(o.ctimeSeconds),i.writeUInt32BE(o.ctimeNanoseconds),i.writeUInt32BE(o.mtimeSeconds),i.writeUInt32BE(o.mtimeNanoseconds),i.writeUInt32BE(o.dev),i.writeUInt32BE(o.ino),i.writeUInt32BE(o.mode),i.writeUInt32BE(o.uid),i.writeUInt32BE(o.gid),i.writeUInt32BE(o.size),i.write(t.oid,20,"hex"),i.writeUInt16BE(function(t){const e=t.flags;return e.extended=!1,e.nameLength=Math.min(Buffer.from(t.path).length,4095),(e.assumeValid?32768:0)+(e.extended?16384:0)+((3&e.stage)<<12)+(4095&e.nameLength)}(t)),i.write(t.path,e.length,"utf8"),n}async toObject(){const t=Buffer.alloc(12),e=new A(t);e.write("DIRC",4,"utf8"),e.writeUInt32BE(2),e.writeUInt32BE(this.entriesFlat.length);let r=[];for(const t of this.entries)if(r.push(z._entryToBuffer(t)),t.stages.length>1)for(const e of t.stages)e&&e!==t&&r.push(z._entryToBuffer(e));r=await Promise.all(r);const n=Buffer.concat(r),i=Buffer.concat([t,n]),o=await $(i);return Buffer.concat([i,Buffer.from(o,"hex")])}}let C=null;const M=Symbol("IndexCache");class N{static async acquire({fs:t,gitdir:e,cache:r,allowUnmerged:n=!0},i){r[M]||(r[M]={map:new Map,stats:new Map});const o=`${e}/index`;let s;null===C&&(C=new b({maxPending:1/0}));let a=[];return await C.acquire(o,async()=>{const e=r[M];await async function(t,e,r){const n=r.stats.get(e);if(void 0===n)return!0;if(null===n)return!1;const i=await t.lstat(e);return null!==i&&function(t,e,r=!0,n=!0){const i=O(t),o=O(e);return r&&i.mode!==o.mode||i.mtimeSeconds!==o.mtimeSeconds||i.ctimeSeconds!==o.ctimeSeconds||i.uid!==o.uid||i.gid!==o.gid||n&&i.ino!==o.ino||i.size!==o.size}(n,i)}(t,o,e)&&await async function(t,e,r){const[n,i]=await Promise.all([t.lstat(e),t.read(e)]),o=await z.from(i);r.map.set(e,o),r.stats.set(e,n)}(t,o,e);const f=e.map.get(o);if(a=f.unmergedPaths,a.length&&!n)throw new x(a);if(s=await i(f),f._dirty){const r=await f.toObject();await t.write(o,r),e.stats.set(o,await t.lstat(o)),f._dirty=!1}}),s}}class F extends v{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=F.code,this.data={value:t}}}F.code="InvalidOidError";class L extends v{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:\n[remote "${t}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=L.code,this.data={remote:t}}}L.code="NoRefspecError";class D extends v{constructor(t){super(`Could not find ${t}.`),this.code=this.name=D.code,this.data={what:t}}}D.code="NotFoundError";class G{constructor(t){if(this.refs=new Map,this.parsedConfig=[],t){let e=null;this.parsedConfig=t.trim().split("\n").map(t=>{if(/^\s*#/.test(t))return{line:t,comment:!0};const r=t.indexOf(" ");if(t.startsWith("^")){const r=t.slice(1);return this.refs.set(e+"^{}",r),{line:t,ref:e,peeled:r}}{const n=t.slice(0,r);return e=t.slice(r+1),this.refs.set(e,n),{line:t,ref:e,oid:n}}})}return this}static from(t){return new G(t)}delete(t){this.parsedConfig=this.parsedConfig.filter(e=>e.ref!==t),this.refs.delete(t)}toString(){return this.parsedConfig.map(({line:t})=>t).join("\n")+"\n"}}class Z{constructor({remotePath:t,localPath:e,force:r,matchPrefix:n}){Object.assign(this,{remotePath:t,localPath:e,force:r,matchPrefix:n})}static from(t){const[e,r,n,i,o]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),s="+"===e,a="*"===n;if(a!==("*"===o))throw new E("Invalid refspec");return new Z({remotePath:r,localPath:i,force:s,matchPrefix:a})}translate(t){if(this.matchPrefix){if(t.startsWith(this.remotePath))return this.localPath+t.replace(this.remotePath,"")}else if(t===this.remotePath)return this.localPath;return null}reverseTranslate(t){if(this.matchPrefix){if(t.startsWith(this.localPath))return this.remotePath+t.replace(this.localPath,"")}else if(t===this.localPath)return this.remotePath;return null}}class H{constructor(t=[]){this.rules=t}static from(t){const e=[];for(const r of t)e.push(Z.from(r));return new H(e)}add(t){const e=Z.from(t);this.rules.push(e)}translate(t){const e=[];for(const r of this.rules)for(const n of t){const t=r.translate(n);t&&e.push([n,t])}return e}translateOne(t){let e=null;for(const r of this.rules){const n=r.translate(t);n&&(e=n)}return e}localNamespaces(){return this.rules.filter(t=>t.matchPrefix).map(t=>t.localPath.replace(/\/$/,""))}}function q(t,e){const r=t.replace(/\^\{\}$/,""),n=e.replace(/\^\{\}$/,""),i=-(r<n)||+(r>n);return 0===i?t.endsWith("^{}")?1:-1:i}const W=t=>[`${t}`,`refs/${t}`,`refs/tags/${t}`,`refs/heads/${t}`,`refs/remotes/${t}`,`refs/remotes/${t}/HEAD`],V=["config","description","index","shallow","commondir"];let Y;async function K(t,e){return void 0===Y&&(Y=new b),Y.acquire(t,e)}class X{static async updateRemoteRefs({fs:t,gitdir:e,remote:r,refs:n,symrefs:i,tags:o,refspecs:s,prune:a=!1,pruneTags:f=!1}){for(const t of n.values())if(!t.match(/[0-9a-f]{40}/))throw new F(t);const u=await g.get({fs:t,gitdir:e});if(!s){if(0===(s=await u.getall(`remote.${r}.fetch`)).length)throw new L(r);s.unshift(`+HEAD:refs/remotes/${r}/HEAD`)}const c=H.from(s),l=new Map;if(f){const r=await X.listRefs({fs:t,gitdir:e,filepath:"refs/tags"});await X.deleteRefs({fs:t,gitdir:e,refs:r.map(t=>`refs/tags/${t}`)})}if(o)for(const r of n.keys())if(r.startsWith("refs/tags")&&!r.endsWith("^{}")&&!await X.exists({fs:t,gitdir:e,ref:r})){const t=n.get(r);l.set(r,t)}const h=c.translate([...n.keys()]);for(const[t,e]of h){const r=n.get(t);l.set(e,r)}const d=c.translate([...i.keys()]);for(const[t,e]of d){const r=i.get(t),n=c.translateOne(r);n&&l.set(e,`ref: ${n}`)}const p=[];if(a){for(const r of c.localNamespaces()){const n=(await X.listRefs({fs:t,gitdir:e,filepath:r})).map(t=>`${r}/${t}`);for(const t of n)l.has(t)||p.push(t)}p.length>0&&await X.deleteRefs({fs:t,gitdir:e,refs:p})}for(const[r,n]of l)await K(r,async()=>t.write(w(e,r),`${n.trim()}\n`,"utf8"));return{pruned:p}}static async writeRef({fs:t,gitdir:e,ref:r,value:n}){if(!n.match(/[0-9a-f]{40}/))throw new F(n);await K(r,async()=>t.write(w(e,r),`${n.trim()}\n`,"utf8"))}static async writeSymbolicRef({fs:t,gitdir:e,ref:r,value:n}){await K(r,async()=>t.write(w(e,r),`ref: ${n.trim()}\n`,"utf8"))}static async deleteRef({fs:t,gitdir:e,ref:r}){return X.deleteRefs({fs:t,gitdir:e,refs:[r]})}static async deleteRefs({fs:t,gitdir:e,refs:r}){await Promise.all(r.map(r=>t.rm(w(e,r))));let n=await K("packed-refs",async()=>t.read(`${e}/packed-refs`,{encoding:"utf8"}));const i=G.from(n),o=i.refs.size;for(const t of r)i.refs.has(t)&&i.delete(t);i.refs.size<o&&(n=i.toString(),await K("packed-refs",async()=>t.write(`${e}/packed-refs`,n,{encoding:"utf8"})))}static async resolve({fs:t,gitdir:e,ref:r,depth:n}){if(void 0!==n&&-1===--n)return r;if(r.startsWith("ref: "))return r=r.slice(5),X.resolve({fs:t,gitdir:e,ref:r,depth:n});if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const i=await X.packedRefs({fs:t,gitdir:e}),o=W(r).filter(t=>!V.includes(t));for(const r of o){const o=await K(r,async()=>await t.read(`${e}/${r}`,{encoding:"utf8"})||i.get(r));if(o)return X.resolve({fs:t,gitdir:e,ref:o.trim(),depth:n})}throw new D(r)}static async exists({fs:t,gitdir:e,ref:r}){try{return await X.expand({fs:t,gitdir:e,ref:r}),!0}catch(t){return!1}}static async expand({fs:t,gitdir:e,ref:r}){if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const n=await X.packedRefs({fs:t,gitdir:e}),i=W(r);for(const r of i){if(await K(r,async()=>t.exists(`${e}/${r}`)))return r;if(n.has(r))return r}throw new D(r)}static async expandAgainstMap({ref:t,map:e}){const r=W(t);for(const t of r)if(await e.has(t))return t;throw new D(t)}static resolveAgainstMap({ref:t,fullref:e=t,depth:r,map:n}){if(void 0!==r&&-1===--r)return{fullref:e,oid:t};if(t.startsWith("ref: "))return t=t.slice(5),X.resolveAgainstMap({ref:t,fullref:e,depth:r,map:n});if(40===t.length&&/[0-9a-f]{40}/.test(t))return{fullref:e,oid:t};const i=W(t);for(const t of i){const e=n.get(t);if(e)return X.resolveAgainstMap({ref:e.trim(),fullref:t,depth:r,map:n})}throw new D(t)}static async packedRefs({fs:t,gitdir:e}){const r=await K("packed-refs",async()=>t.read(`${e}/packed-refs`,{encoding:"utf8"}));return G.from(r).refs}static async listRefs({fs:t,gitdir:e,filepath:r}){const n=X.packedRefs({fs:t,gitdir:e});let i=null;try{i=await t.readdirDeep(`${e}/${r}`),i=i.map(t=>t.replace(`${e}/${r}/`,""))}catch(t){i=[]}for(let t of(await n).keys())t.startsWith(r)&&(t=t.replace(r+"/",""),i.includes(t)||i.push(t));return i.sort(q),i}static async listBranches({fs:t,gitdir:e,remote:r}){return r?X.listRefs({fs:t,gitdir:e,filepath:`refs/remotes/${r}`}):X.listRefs({fs:t,gitdir:e,filepath:"refs/heads"})}static async listTags({fs:t,gitdir:e}){return(await X.listRefs({fs:t,gitdir:e,filepath:"refs/tags"})).filter(t=>!t.endsWith("^{}"))}}class J extends v{constructor(t,e,r){super(`HTTP Error: ${t} ${e}`),this.code=this.name=J.code,this.data={statusCode:t,statusMessage:e,response:r}}}J.code="HttpError";class Q extends v{constructor(t,e){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${t}`),this.code=this.name=Q.code,this.data={preview:t,response:e}}}Q.code="SmartHttpError";class tt extends v{constructor(){super("The operation was canceled."),this.code=this.name=tt.code,this.data={}}}function et({username:t="",password:e=""}){return`Basic ${Buffer.from(`${t}:${e}`).toString("base64")}`}function rt(t){return t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]?t[Symbol.iterator]():t.next?t:function(t){let e=[t];return{next:()=>Promise.resolve({done:0===e.length,value:e.pop()}),return:()=>(e=[],{}),[Symbol.asyncIterator](){return this}}}(t)}function nt(t){let e=t.match(/^https?:\/\/([^/]+)@/);if(null==e)return{url:t,auth:{}};e=e[1];const[r,n]=e.split(":");return{url:t=t.replace(`${e}@`,""),auth:{username:r,password:n}}}tt.code="UserCanceledError";class it extends v{constructor(){super("Empty response from git server."),this.code=this.name=it.code,this.data={}}}it.code="EmptyServerResponseError";class ot extends v{constructor(t,e){super(`Expected "${t}" but received "${e}".`),this.code=this.name=ot.code,this.data={expected:t,actual:e}}}ot.code="ParseError";class st{constructor(t){if("undefined"==typeof Buffer)throw new Error("Missing Buffer dependency");this.stream=rt(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(t){if(!this.eof())return this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t),this.buffer.slice(this.undoCursor,this.cursor)}async skip(t){this.eof()||(this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:t,value:e}=await this.stream.next();return t&&(this._ended=!0,!e)?Buffer.alloc(0):(e&&(e=Buffer.from(e)),e)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(t){if(this._ended)return;const e=[this.buffer];for(;this.cursor+t>at(e);){const t=await this._next();if(this._ended)break;e.push(t)}this.buffer=Buffer.concat(e)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function at(t){return t.reduce((t,e)=>t+e.length,0)}class ft{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(t){"string"==typeof t&&(t=Buffer.from(t));const e=function(t,e){const r=e.toString(16);return"0".repeat(4-r.length)+r}(0,t.length+4);return Buffer.concat([Buffer.from(e,"utf8"),t])}static streamReader(t){const e=new st(t);return async function(){try{let t=await e.read(4);if(null==t)return!0;if(t=parseInt(t.toString("utf8"),16),0===t)return null;if(1===t)return null;const r=await e.read(t-4);return null==r||r}catch(e){return t.error=e,!0}}}}async function ut(t){const e={};let r;for(;r=await t(),!0!==r;){if(null===r)continue;r=r.toString("utf8").replace(/\n$/,"");const t=r.indexOf("=");if(t>-1){const n=r.slice(0,t),i=r.slice(t+1);e[n]=i}else e[r]=!0}return{protocolVersion:2,capabilities2:e}}async function ct(t,{service:e}){const r=new Set,n=new Map,i=new Map,o=ft.streamReader(t);let s=await o();for(;null===s;)s=await o();if(!0===s)throw new it;if(s.includes("version 2"))return ut(o);if(s.toString("utf8").replace(/\n$/,"")!==`# service=${e}`)throw new ot(`# service=${e}\\n`,s.toString("utf8"));let a=await o();for(;null===a;)a=await o();if(!0===a)return{capabilities:r,refs:n,symrefs:i};if(a=a.toString("utf8"),a.includes("version 2"))return ut(o);const[f,u]=lt(a,"\0","\\x00");if(u.split(" ").map(t=>r.add(t)),"0000000000000000000000000000000000000000 capabilities^{}"!==f){const[t,e]=lt(f," "," ");for(n.set(e,t);;){const t=await o();if(!0===t)break;if(null!==t){const[e,r]=lt(t.toString("utf8")," "," ");n.set(r,e)}}}for(const t of r)if(t.startsWith("symref=")){const e=t.match(/symref=([^:]+):(.*)/);3===e.length&&i.set(e[1],e[2])}return{protocolVersion:1,capabilities:r,refs:n,symrefs:i}}function lt(t,e,r){const n=t.trim().split(e);if(2!==n.length)throw new ot(`Two strings separated by '${r}'`,t.toString("utf8"));return n}const ht=(t,e)=>t.endsWith("?")?`${t}${e}`:`${t}/${e.replace(/^https?:\/\//,"")}`,dt=(t,e)=>{(e.username||e.password)&&(t.Authorization=et(e)),e.headers&&Object.assign(t,e.headers)},pt=async t=>{try{const e=Buffer.from(await async function(t){let e=0;const r=[];await async function(t,e){const r=rt(t);for(;;){const{value:t,done:n}=await r.next();if(t&&await e(t),n)break}r.return&&r.return()}(t,t=>{r.push(t),e+=t.byteLength});const n=new Uint8Array(e);let i=0;for(const t of r)n.set(t,i),i+=t.byteLength;return n}(t.body)),r=e.toString("utf8");return{preview:r.length<256?r:r.slice(0,256)+"...",response:r,data:e}}catch(t){return{}}};class gt{static async capabilities(){return["discover","connect"]}static async discover({http:t,onProgress:e,onAuth:r,onAuthSuccess:n,onAuthFailure:i,corsProxy:o,service:s,url:a,headers:f,protocolVersion:u}){let{url:c,auth:l}=nt(a);const h=o?ht(o,c):c;let d,p;(l.username||l.password)&&(f.Authorization=et(l)),2===u&&(f["Git-Protocol"]="version=2");let g=!1;do{if(d=await t.request({onProgress:e,method:"GET",url:`${h}/info/refs?service=${s}`,headers:f}),p=!1,401===d.statusCode||203===d.statusCode){const t=g?i:r;if(t){if(l=await t(c,{...l,headers:{...f}}),l&&l.cancel)throw new tt;l&&(dt(f,l),g=!0,p=!0)}}else 200===d.statusCode&&g&&n&&await n(c,l)}while(p);if(200!==d.statusCode){const{response:t}=await pt(d);throw new J(d.statusCode,d.statusMessage,t)}if(d.headers["content-type"]===`application/x-${s}-advertisement`){const t=await ct(d.body,{service:s});return t.auth=l,t}{const{preview:t,response:e,data:r}=await pt(d);try{const t=await ct([r],{service:s});return t.auth=l,t}catch(r){throw new Q(t,e)}}}static async connect({http:t,onProgress:e,corsProxy:r,service:n,url:i,auth:o,body:s,headers:a}){const f=nt(i);f&&(i=f.url),r&&(i=ht(r,i)),a["content-type"]=`application/x-${n}-request`,a.accept=`application/x-${n}-result`,dt(a,o);const u=await t.request({onProgress:e,method:"POST",url:`${i}/${n}`,body:s,headers:a});if(200!==u.statusCode){const{response:t}=pt(u);throw new J(u.statusCode,u.statusMessage,t)}return u}}class yt extends v{constructor(t,e,r){super(`Git remote "${t}" uses an unrecognized transport protocol: "${e}"`),this.code=this.name=yt.code,this.data={url:t,transport:e,suggestion:r}}}yt.code="UnknownTransportError";class mt extends v{constructor(t){super(`Cannot parse remote URL: "${t}"`),this.code=this.name=mt.code,this.data={url:t}}}mt.code="UrlParseError";class wt{static getRemoteHelperFor({url:t}){const e=new Map;e.set("http",gt),e.set("https",gt);const r=function({url:t}){if(t.startsWith("git@"))return{transport:"ssh",address:t};const e=t.match(/(\w+)(:\/\/|::)(.*)/);return null!==e?"://"===e[2]?{transport:e[1],address:e[0]}:"::"===e[2]?{transport:e[1],address:e[3]}:void 0:void 0}({url:t});if(!r)throw new mt(t);if(e.has(r.transport))return e.get(r.transport);throw new yt(t,r.transport,"ssh"===r.transport?function(t){return(t=t.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(t):void 0)}}let _t=null;class bt{static async read({fs:t,gitdir:e}){null===_t&&(_t=new b);const r=w(e,"shallow"),n=new Set;return await _t.acquire(r,async function(){const e=await t.read(r,{encoding:"utf8"});return null===e||""===e.trim()?n:void e.trim().split("\n").map(t=>n.add(t))}),n}static async write({fs:t,gitdir:e,oids:r}){null===_t&&(_t=new b);const n=w(e,"shallow");if(r.size>0){const e=[...r].join("\n")+"\n";await _t.acquire(n,async function(){await t.write(n,e,{encoding:"utf8"})})}else await _t.acquire(n,async function(){await t.rm(n)})}}class vt extends v{constructor(t,e,r,n){super(`Object ${t} ${n?`at ${n}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=vt.code,this.data={oid:t,actual:e,expected:r,filepath:n}}}function xt({name:t,email:e,timestamp:r,timezoneOffset:n}){return`${t} <${e}> ${r} ${n=function(t){const e=function(t){return Math.sign(t)||(Object.is(t,-0)?-1:1)}(0===(r=t)?r:-r);var r;t=Math.abs(t);const n=Math.floor(t/60);t-=60*n;let i=String(n),o=String(t);return i.length<2&&(i="0"+i),o.length<2&&(o="0"+o),(-1===e?"-":"+")+i+o}(n)}`}function Et(t){return(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}function kt(t){const[,e,r,n,i]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(n),timezoneOffset:At(i)}}function At(t){let[,e,r,n]=t.match(/(\+|-)(\d\d)(\d\d)/);return n=("+"===e?1:-1)*(60*Number(r)+Number(n)),0===(i=n)?i:-i;var i}vt.code="ObjectTypeError";class Bt{constructor(t){if("string"==typeof t)this._tag=t;else if(Buffer.isBuffer(t))this._tag=t.toString("utf8");else{if("object"!=typeof t)throw new E("invalid type passed to GitAnnotatedTag constructor");this._tag=Bt.render(t)}}static from(t){return new Bt(t)}static render(t){return`object ${t.object}\ntype ${t.type}\ntag ${t.tag}\ntagger ${xt(t.tagger)}\n\n${t.message}\n${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const t=this.withoutSignature();return t.slice(t.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.tagger&&(r.tagger=kt(r.tagger)),r.committer&&(r.committer=kt(r.committer)),r}withoutSignature(){const t=Et(this._tag);return-1===t.indexOf("\n-----BEGIN PGP SIGNATURE-----")?t:t.slice(0,t.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1!==this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return Et(this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27))}payload(){return this.withoutSignature()+"\n"}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,e,r){const n=t.payload();let{signature:i}=await e({payload:n,secretKey:r});i=Et(i);const o=n+i;return Bt.from(o)}}function St(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}class It{constructor(t){if("string"==typeof t)this._commit=t;else if(Buffer.isBuffer(t))this._commit=t.toString("utf8");else{if("object"!=typeof t)throw new E("invalid type passed to GitCommit constructor");this._commit=It.render(t)}}static fromPayloadSignature({payload:t,signature:e}){const r=It.justHeaders(t),n=It.justMessage(t),i=Et(r+"\ngpgsig"+St(e)+"\n"+n);return new It(i)}static from(t){return new It(t)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return It.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Et(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){const t=It.justHeaders(this._commit).split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={parent:[]};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.author&&(r.author=kt(r.author)),r.committer&&(r.committer=kt(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent){if(void 0===t.parent.length)throw new E("commit 'parent' property should be an array");for(const r of t.parent)e+=`parent ${r}\n`}return e+=`author ${xt(t.author)}\n`,e+=`committer ${xt(t.committer||t.author)}\n`,t.gpgsig&&(e+="gpgsig"+St(t.gpgsig)),e}static render(t){return It.renderHeaders(t)+"\n"+Et(t.message)}render(){return this._commit}withoutSignature(){const t=Et(this._commit);return-1===t.indexOf("\ngpgsig")?t:Et(t.slice(0,t.indexOf("\ngpgsig"))+"\n"+t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+28))}isolateSignature(){return this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27).split("\n").map(t=>t.replace(/^ /,"")).join("\n")}static async sign(t,e,r){const n=t.withoutSignature(),i=It.justMessage(t._commit);let{signature:o}=await e({payload:n,secretKey:r});o=Et(o);const s=It.justHeaders(t._commit)+"\ngpgsig"+St(o)+"\n"+i;return It.from(s)}}class Ut{static wrap({type:t,object:e}){const r=`${t} ${e.length}\0`,n=r.length,i=n+e.length,o=new Uint8Array(i);for(let t=0;t<n;t++)o[t]=r.charCodeAt(t);return o.set(e,n),o}static unwrap(t){const e=t.indexOf(32),r=t.indexOf(0),n=t.slice(0,e).toString("utf8"),i=t.slice(e+1,r).toString("utf8"),o=t.length-(r+1);if(parseInt(i)!==o)throw new E(`Length mismatch: expected ${i} bytes but got ${o} instead.`);return{type:n,object:Buffer.from(t.slice(r+1))}}}var Ot=r(2566);function Pt(t){let e=0,r=0,n=null;do{n=t.readUInt8(),e|=(127&n)<<r,r+=7}while(128&n);return e}function Rt(t,e,r){let n=0,i=0;for(;r--;)1&e&&(n|=t.readUInt8()<<i),e>>=1,i+=8;return n}function $t(t,e){const r=t.readUInt8();if(128&r){const n=Rt(t,15&r,4);let i=Rt(t,(112&r)>>4,3);return 0===i&&(i=65536),e.slice(n,n+i)}return t.slice(r)}var Tt=r(1668);async function jt(t){let e=await t.byte();const r=e>>4&7;let n,i,o=15&e;if(128&e){let r=4;do{e=await t.byte(),o|=(127&e)<<r,r+=7}while(128&e)}if(6===r){let r=0;n=0;const o=[];do{e=await t.byte(),n|=(127&e)<<r,r+=7,o.push(e)}while(128&e);i=Buffer.from(o)}return 7===r&&(i=await t.read(20)),{type:r,length:o,ofs:n,reference:i}}let zt=!1;async function Ct(t){return null===zt&&(zt=function(){try{if(new DecompressionStream("deflate"))return!0}catch(t){}return!1}()),zt?async function(t){const e=new DecompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(await new Response(r).arrayBuffer())}(t):Tt.inflate(t)}class Mt{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:e}){const r=new A(t);if("ff744f63"!==r.slice(4).toString("hex"))return;const n=r.readUInt32BE();if(2!==n)throw new E(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2147483648)throw new E("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+1020);const i=r.readUInt32BE(),o=[];for(let t=0;t<i;t++){const e=r.slice(20).toString("hex");o[t]=e}r.seek(r.tell()+4*i);const s=new Map;for(let t=0;t<i;t++)s.set(o[t],r.readUInt32BE());const a=r.slice(20).toString("hex");return new Mt({hashes:o,crcs:{},offsets:s,packfileSha:a,getExternalRefDelta:e})}static async fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){const n={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},i={},o=t.slice(-20).toString("hex"),s=[],a={},f=new Map;let u=null,c=null;await async function(t,e){const r=new st(t);let n=await r.read(4);if(n=n.toString("utf8"),"PACK"!==n)throw new E(`Invalid PACK header '${n}'`);let i=await r.read(4);if(i=i.readUInt32BE(0),2!==i)throw new E(`Invalid packfile version: ${i}`);let o=await r.read(4);if(o=o.readUInt32BE(0),!(o<1))for(;!r.eof()&&o--;){const t=r.tell(),{type:n,length:i,ofs:s,reference:a}=await jt(r),f=new Tt.Inflate;for(;!f.result;){const u=await r.chunk();if(!u)break;if(f.push(u,!1),f.err)throw new E(`Pako error: ${f.msg}`);if(f.result){if(f.result.length!==i)throw new E("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(u.length-f.strm.avail_in);const c=r.tell();await e({data:f.result,type:n,num:o,offset:t,end:c,reference:a,ofs:s})}}}}([t],async({data:t,type:e,reference:o,offset:s,num:a})=>{null===u&&(u=a);const f=Math.floor(100*(u-a)/u);f!==c&&r&&await r({phase:"Receiving objects",loaded:u-a,total:u}),c=f,(["commit","tree","blob","tag"].includes(e=n[e])||"ofs-delta"===e||"ref-delta"===e)&&(i[s]={type:e,offset:s})});const l=Object.keys(i).map(Number);for(const[e,r]of l.entries()){const n=e+1===l.length?t.byteLength-20:l[e+1],o=i[r],s=Ot.buf(t.slice(r,n))>>>0;o.end=n,o.crc=s}const h=new Mt({pack:Promise.resolve(t),packfileSha:o,crcs:a,hashes:s,offsets:f,getExternalRefDelta:e});c=null;let d=0;const p=[0,0,0,0,0,0,0,0,0,0,0,0];for(let t in i){t=Number(t);const e=Math.floor(100*d/u);e!==c&&r&&await r({phase:"Resolving deltas",loaded:d,total:u}),d++,c=e;const n=i[t];if(!n.oid)try{h.readDepth=0,h.externalReadDepth=0;const{type:e,object:r}=await h.readSlice({start:t});p[h.readDepth]+=1;const i=await $(Ut.wrap({type:e,object:r}));n.oid=i,s.push(i),f.set(i,t),a[i]=n.crc}catch(t){continue}}return s.sort(),h}async toBuffer(){const t=[],e=(e,r)=>{t.push(Buffer.from(e,r))};e("ff744f63","hex"),e("00000002","hex");const r=new A(Buffer.alloc(1024));for(let t=0;t<256;t++){let e=0;for(const r of this.hashes)parseInt(r.slice(0,2),16)<=t&&e++;r.writeUInt32BE(e)}t.push(r.buffer);for(const t of this.hashes)e(t,"hex");const n=new A(Buffer.alloc(4*this.hashes.length));for(const t of this.hashes)n.writeUInt32BE(this.crcs[t]);t.push(n.buffer);const i=new A(Buffer.alloc(4*this.hashes.length));for(const t of this.hashes)i.writeUInt32BE(this.offsets.get(t));t.push(i.buffer),e(this.packfileSha,"hex");const o=Buffer.concat(t),s=await $(o),a=Buffer.alloc(20);return a.write(s,"hex"),Buffer.concat([o,a])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new E(`Could not read object ${t} from packfile`)}const e=this.offsets.get(t);return this.readSlice({start:e})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);if(this.readDepth++,!this.pack)throw new E("Tried to read from a GitPackIndex with no packfile loaded into memory");const e=(await this.pack).slice(t),r=new A(e),n=r.readUInt8(),i=112&n;let o={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[i];if(void 0===o)throw new E("Unrecognized type: 0b"+i.toString(2));const s=15&n;let a=s;128&n&&(a=function(t,e){let r=e,n=4,i=null;do{i=t.readUInt8(),r|=(127&i)<<n,n+=7}while(128&i);return r}(r,s));let f=null,u=null;if("ofs_delta"===o){const e=function(t){const e=[];let r=0,n=0;do{r=t.readUInt8();const i=127&r;e.push(i),n=128&r}while(n);return e.reduce((t,e)=>t+1<<7|e,-1)}(r),n=t-e;({object:f,type:o}=await this.readSlice({start:n}))}if("ref_delta"===o){const t=r.slice(20).toString("hex");({object:f,type:o}=await this.read({oid:t}))}const c=e.slice(r.tell());if(u=Buffer.from(await Ct(c)),u.byteLength!==a)throw new E(`Packfile told us object would have length ${a} but it had length ${u.byteLength}`);return f&&(u=Buffer.from(function(t,e){const r=new A(t),n=Pt(r);if(n!==e.byteLength)throw new E(`applyDelta expected source buffer to be ${n} bytes but the provided buffer was ${e.length} bytes`);const i=Pt(r);let o;const s=$t(r,e);if(s.byteLength===i)o=s;else{o=Buffer.alloc(i);const t=new A(o);for(t.copy(s);!r.eof();)t.copy($t(r,e));const n=t.tell();if(i!==n)throw new E(`applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${n} bytes`)}return o}(u,f))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:u}),{type:o,format:"content",object:u}}}const Nt=Symbol("PackfileCache");function Ft({fs:t,cache:e,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}){e[Nt]||(e[Nt]=new Map);let s=e[Nt].get(r);return s||(s=async function({fs:t,filename:e,getExternalRefDelta:r,emitter:n,emitterPrefix:i}){const o=await t.read(e);return Mt.fromIdx({idx:o,getExternalRefDelta:r})}({fs:t,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}),e[Nt].set(r,s)),s}async function Lt({fs:t,cache:e,gitdir:r,oid:n,format:i="content"}){const o=n=>Lt({fs:t,cache:e,gitdir:r,oid:n});let s;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===n&&(s={format:"wrapped",object:Buffer.from("tree 0\0")}),s||(s=await async function({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`,i=await t.read(`${e}/${n}`);return i?{object:i,format:"deflated",source:n}:null}({fs:t,gitdir:r,oid:n})),!s){if(s=await async function({fs:t,cache:e,gitdir:r,oid:n,format:i="content",getExternalRefDelta:o}){let s=await t.readdir(w(r,"objects/pack"));s=s.filter(t=>t.endsWith(".idx"));for(const i of s){const s=`${r}/objects/pack/${i}`,a=await Ft({fs:t,cache:e,filename:s,getExternalRefDelta:o});if(a.error)throw new E(a.error);if(a.offsets.has(n)){if(!a.pack){const e=s.replace(/idx$/,"pack");a.pack=t.read(e)}const e=await a.read({oid:n,getExternalRefDelta:o});return e.format="content",e.source=`objects/pack/${i.replace(/idx$/,"pack")}`,e}}return null}({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:o}),!s)throw new D(n);return s}if("deflated"===i)return s;if("deflated"===s.format&&(s.object=Buffer.from(await Ct(s.object)),s.format="wrapped"),"wrapped"===i)return s;const a=await $(s.object);if(a!==n)throw new E(`SHA check failed! Expected ${n}, computed ${a}`);const{object:f,type:u}=Ut.unwrap(s.object);if(s.type=u,s.object=f,s.format="content","content"===i)return s;throw new E(`invalid requested format "${i}"`)}async function Dt({fs:t,cache:e,gitdir:r,oid:n}){const{type:i,object:o}=await Lt({fs:t,cache:e,gitdir:r,oid:n});if("tag"===i)return Dt({fs:t,cache:e,gitdir:r,oid:n=Bt.from(o).parse().object});if("commit"!==i)throw new vt(n,i,"commit");return{commit:It.from(o),oid:n}}let Gt,Zt=null;async function Ht({fs:t,gitdir:e,type:r,object:n,format:i="content",oid:o,dryRun:s=!1}){return"deflated"!==i&&("wrapped"!==i&&(n=Ut.wrap({type:r,object:n})),o=await $(n),n=Buffer.from(await async function(t){return null===Zt&&(Zt=function(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch(t){return!1}}()),Zt?async function(t){const e=new CompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(await new Response(r).arrayBuffer())}(t):Tt.deflate(t)}(n))),s||await async function({fs:t,gitdir:e,object:r,format:n,oid:i}){if("deflated"!==n)throw new E("GitObjectStoreLoose expects objects to write to be in deflated format");const o=`${e}/objects/${i.slice(0,2)}/${i.slice(2)}`;await t.exists(o)||await t.write(o,r)}({fs:t,gitdir:e,object:n,format:"deflated",oid:o}),o}class qt extends v{constructor(t,e){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${e}".)`),this.code=this.name=qt.code,this.data={ref:t,suggestion:e}}}qt.code="InvalidRefNameError";class Wt extends v{constructor(t){super(`No name was provided for ${t} in the argument or in the .git/config file.`),this.code=this.name=Wt.code,this.data={role:t}}}Wt.code="MissingNameError";class Vt{static get timezoneOffsetForRefLogEntry(){const t=(new Date).getTimezoneOffset(),e=Math.abs(Math.floor(t/60)),r=Math.abs(t%60).toString().padStart(2,"0");return`${t>0?"-":"+"}${e.toString().padStart(2,"0")}${r}`}static createStashReflogEntry(t,e,r){const n=t.name.replace(/\s/g,""),i=Math.floor(Date.now()/1e3),o=Vt.timezoneOffsetForRefLogEntry;return`0000000000000000000000000000000000000000 ${e} ${n} ${t.email} ${i} ${o}\t${r}\n`}static getStashReflogEntry(t,e=!1){return t.split("\n").filter(t=>t).reverse().map((t,r)=>e?`stash@{${r}}: ${t.split("\t")[1]}`:t)}}async function Yt({fs:t,gitdir:e,path:r}){return(await g.get({fs:t,gitdir:e})).get(r)}Symbol("GitWalkSymbol");class Kt{constructor({fs:t,dir:e,gitdir:r=w(e,".git")}){Object.assign(this,{fs:t,dir:e,gitdir:r,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return w(this.gitdir,Kt.refStash)}get refLogsStashPath(){return w(this.gitdir,Kt.refLogsStash)}async getAuthor(){if(!this._author&&(this._author=await async function({fs:t,gitdir:e,author:r,commit:n}){const i=Math.floor(Date.now()/1e3),o=function(t,...e){for(const r of e)if(r)for(const e of Object.keys(r)){const n=r[e];void 0!==n&&(t[e]=n)}return t}({},{name:await Yt({fs:t,gitdir:e,path:"user.name"}),email:await Yt({fs:t,gitdir:e,path:"user.email"})||"",timestamp:i,timezoneOffset:new Date(1e3*i).getTimezoneOffset()},n?n.author:void 0,r);if(void 0!==o.name)return o}({fs:this.fs,gitdir:this.gitdir,author:{}}),!this._author))throw new Wt("author");return this._author}async getStashSHA(t,e){return await this.fs.exists(this.refStashPath)?(e||await this.readStashReflogs({parsed:!1}))[t].split(" ")[1]:null}async writeStashCommit({message:t,tree:e,parent:r}){return async function({fs:t,gitdir:e,commit:r}){const n=It.from(r).toObject();return await Ht({fs:t,gitdir:e,type:"commit",object:n,format:"content"})}({fs:this.fs,gitdir:this.gitdir,commit:{message:t,tree:e,parent:r,author:await this.getAuthor(),committer:await this.getAuthor()}})}async readStashCommit(t){const e=await this.readStashReflogs({parsed:!1});if(0!==t&&(t<0||t>e.length-1))throw new qt(`stash@${t}`,"number that is in range of [0, num of stash pushed]");const r=await this.getStashSHA(t,e);return r?async function({fs:t,cache:e,gitdir:r,oid:n}){const{commit:i,oid:o}=await Dt({fs:t,cache:e,gitdir:r,oid:n});return{oid:o,commit:i.parse(),payload:i.withoutSignature()}}({fs:this.fs,cache:{},gitdir:this.gitdir,oid:r}):{}}async writeStashRef(t){return X.writeRef({fs:this.fs,gitdir:this.gitdir,ref:Kt.refStash,value:t})}async writeStashReflogEntry({stashCommit:t,message:e}){const r=await this.getAuthor(),n=Vt.createStashReflogEntry(r,t,e),i=this.refLogsStashPath;await async function(t,e){return void 0===Gt&&(Gt=new b),Gt.acquire(t,e)}({filepath:i,entry:n},async()=>{const t=await this.fs.exists(i)?await this.fs.read(i,"utf8"):"";await this.fs.write(i,t+n,"utf8")})}async readStashReflogs({parsed:t=!1}){if(!await this.fs.exists(this.refLogsStashPath))return[];const e=await this.fs.read(this.refLogsStashPath,"utf8");return Vt.getStashReflogEntry(e,t)}}})(),n})());
|
|
13
3
|
//# sourceMappingURL=index.umd.min.js.map
|