@wp-playground/storage 3.1.19 → 3.1.21

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/index.cjs CHANGED
@@ -46,7 +46,7 @@ gpgsig`+Dt(f)+`
46
46
  *
47
47
  * @author Feross Aboukhadijeh <https://feross.org>
48
48
  * @license MIT
49
- */(function(n){var t=$t,e=ye,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=S,n.INSPECT_MAX_BYTES=50;var o=2147483647;n.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var u=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(u,i),u.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function f(u){if(u>o)throw new RangeError('The value "'+u+'" is invalid for option "size"');var i=new Uint8Array(u);return Object.setPrototypeOf(i,s.prototype),i}function s(u,i,a){if(typeof u=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(u)}return h(u,i,a)}s.poolSize=8192;function h(u,i,a){if(typeof u=="string")return b(u,i);if(ArrayBuffer.isView(u))return _(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(q(u,ArrayBuffer)||u&&q(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(q(u,SharedArrayBuffer)||u&&q(u.buffer,SharedArrayBuffer)))return P(u,i,a);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=u.valueOf&&u.valueOf();if(l!=null&&l!==u)return s.from(l,i,a);var p=B(u);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return s.from(u[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}s.from=function(u,i,a){return h(u,i,a)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function y(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function d(u,i,a){return y(u),u<=0?f(u):i!==void 0?typeof a=="string"?f(u).fill(i,a):f(u).fill(i):f(u)}s.alloc=function(u,i,a){return d(u,i,a)};function w(u){return y(u),f(u<0?0:x(u)|0)}s.allocUnsafe=function(u){return w(u)},s.allocUnsafeSlow=function(u){return w(u)};function b(u,i){if((typeof i!="string"||i==="")&&(i="utf8"),!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var a=E(u,i)|0,l=f(a),p=l.write(u,i);return p!==a&&(l=l.slice(0,p)),l}function v(u){for(var i=u.length<0?0:x(u.length)|0,a=f(i),l=0;l<i;l+=1)a[l]=u[l]&255;return a}function _(u){if(q(u,Uint8Array)){var i=new Uint8Array(u);return P(i.buffer,i.byteOffset,i.byteLength)}return v(u)}function P(u,i,a){if(i<0||u.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(u.byteLength<i+(a||0))throw new RangeError('"length" is outside of buffer bounds');var l;return i===void 0&&a===void 0?l=new Uint8Array(u):a===void 0?l=new Uint8Array(u,i):l=new Uint8Array(u,i,a),Object.setPrototypeOf(l,s.prototype),l}function B(u){if(s.isBuffer(u)){var i=x(u.length)|0,a=f(i);return a.length===0||u.copy(a,0,0,i),a}if(u.length!==void 0)return typeof u.length!="number"||Rt(u.length)?f(0):v(u);if(u.type==="Buffer"&&Array.isArray(u.data))return v(u.data)}function x(u){if(u>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return u|0}function S(u){return+u!=u&&(u=0),s.alloc(+u)}s.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==s.prototype},s.compare=function(i,a){if(q(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),q(a,Uint8Array)&&(a=s.from(a,a.offset,a.byteLength)),!s.isBuffer(i)||!s.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===a)return 0;for(var l=i.length,p=a.length,g=0,m=Math.min(l,p);g<m;++g)if(i[g]!==a[g]){l=i[g],p=a[g];break}return l<p?-1:p<l?1:0},s.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(i,a){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return s.alloc(0);var l;if(a===void 0)for(a=0,l=0;l<i.length;++l)a+=i[l].length;var p=s.allocUnsafe(a),g=0;for(l=0;l<i.length;++l){var m=i[l];if(q(m,Uint8Array))g+m.length>p.length?s.from(m).copy(p,g):Uint8Array.prototype.set.call(p,m,g);else if(s.isBuffer(m))m.copy(p,g);else throw new TypeError('"list" argument must be an Array of Buffers');g+=m.length}return p};function E(u,i){if(s.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||q(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);var a=u.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&a===0)return 0;for(var p=!1;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Ot(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return Ie(u).length;default:if(p)return l?-1:Ot(u).length;i=(""+i).toLowerCase(),p=!0}}s.byteLength=E;function $(u,i,a){var l=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,i>>>=0,a<=i))return"";for(u||(u="utf8");;)switch(u){case"hex":return Zr(this,i,a);case"utf8":case"utf-8":return xe(this,i,a);case"ascii":return Xr(this,i,a);case"latin1":case"binary":return Kr(this,i,a);case"base64":return Jr(this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,i,a);default:if(l)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),l=!0}}s.prototype._isBuffer=!0;function j(u,i,a){var l=u[i];u[i]=u[a],u[a]=l}s.prototype.swap16=function(){var i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<i;a+=2)j(this,a,a+1);return this},s.prototype.swap32=function(){var i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<i;a+=4)j(this,a,a+3),j(this,a+1,a+2);return this},s.prototype.swap64=function(){var i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<i;a+=8)j(this,a,a+7),j(this,a+1,a+6),j(this,a+2,a+5),j(this,a+3,a+4);return this},s.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?xe(this,0,i):$.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(i){if(!s.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:s.compare(this,i)===0},s.prototype.inspect=function(){var i="",a=n.INSPECT_MAX_BYTES;return i=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(i+=" ... "),"<Buffer "+i+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(i,a,l,p,g){if(q(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(a===void 0&&(a=0),l===void 0&&(l=i?i.length:0),p===void 0&&(p=0),g===void 0&&(g=this.length),a<0||l>i.length||p<0||g>this.length)throw new RangeError("out of range index");if(p>=g&&a>=l)return 0;if(p>=g)return-1;if(a>=l)return 1;if(a>>>=0,l>>>=0,p>>>=0,g>>>=0,this===i)return 0;for(var m=g-p,F=l-a,U=Math.min(m,F),k=this.slice(p,g),C=i.slice(a,l),T=0;T<U;++T)if(k[T]!==C[T]){m=k[T],F=C[T];break}return m<F?-1:F<m?1:0};function ve(u,i,a,l,p){if(u.length===0)return-1;if(typeof a=="string"?(l=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Rt(a)&&(a=p?0:u.length-1),a<0&&(a=u.length+a),a>=u.length){if(p)return-1;a=u.length-1}else if(a<0)if(p)a=0;else return-1;if(typeof i=="string"&&(i=s.from(i,l)),s.isBuffer(i))return i.length===0?-1:Ee(u,i,a,l,p);if(typeof i=="number")return i=i&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(u,i,a):Uint8Array.prototype.lastIndexOf.call(u,i,a):Ee(u,[i],a,l,p);throw new TypeError("val must be string, number or Buffer")}function Ee(u,i,a,l,p){var g=1,m=u.length,F=i.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(u.length<2||i.length<2)return-1;g=2,m/=2,F/=2,a/=2}function U(_e,$e){return g===1?_e[$e]:_e.readUInt16BE($e*g)}var k;if(p){var C=-1;for(k=a;k<m;k++)if(U(u,k)===U(i,C===-1?0:k-C)){if(C===-1&&(C=k),k-C+1===F)return C*g}else C!==-1&&(k-=k-C),C=-1}else for(a+F>m&&(a=m-F),k=a;k>=0;k--){for(var T=!0,vt=0;vt<F;vt++)if(U(u,k+vt)!==U(i,vt)){T=!1;break}if(T)return k}return-1}s.prototype.includes=function(i,a,l){return this.indexOf(i,a,l)!==-1},s.prototype.indexOf=function(i,a,l){return ve(this,i,a,l,!0)},s.prototype.lastIndexOf=function(i,a,l){return ve(this,i,a,l,!1)};function qr(u,i,a,l){a=Number(a)||0;var p=u.length-a;l?(l=Number(l),l>p&&(l=p)):l=p;var g=i.length;l>g/2&&(l=g/2);for(var m=0;m<l;++m){var F=parseInt(i.substr(m*2,2),16);if(Rt(F))return m;u[a+m]=F}return m}function Hr(u,i,a,l){return bt(Ot(i,u.length-a),u,a,l)}function zr(u,i,a,l){return bt(rn(i),u,a,l)}function Wr(u,i,a,l){return bt(Ie(i),u,a,l)}function Vr(u,i,a,l){return bt(nn(i,u.length-a),u,a,l)}s.prototype.write=function(i,a,l,p){if(a===void 0)p="utf8",l=this.length,a=0;else if(l===void 0&&typeof a=="string")p=a,l=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(l)?(l=l>>>0,p===void 0&&(p="utf8")):(p=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var g=this.length-a;if((l===void 0||l>g)&&(l=g),i.length>0&&(l<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var m=!1;;)switch(p){case"hex":return qr(this,i,a,l);case"utf8":case"utf-8":return Hr(this,i,a,l);case"ascii":case"latin1":case"binary":return zr(this,i,a,l);case"base64":return Wr(this,i,a,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vr(this,i,a,l);default:if(m)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jr(u,i,a){return i===0&&a===u.length?t.fromByteArray(u):t.fromByteArray(u.slice(i,a))}function xe(u,i,a){a=Math.min(u.length,a);for(var l=[],p=i;p<a;){var g=u[p],m=null,F=g>239?4:g>223?3:g>191?2:1;if(p+F<=a){var U,k,C,T;switch(F){case 1:g<128&&(m=g);break;case 2:U=u[p+1],(U&192)===128&&(T=(g&31)<<6|U&63,T>127&&(m=T));break;case 3:U=u[p+1],k=u[p+2],(U&192)===128&&(k&192)===128&&(T=(g&15)<<12|(U&63)<<6|k&63,T>2047&&(T<55296||T>57343)&&(m=T));break;case 4:U=u[p+1],k=u[p+2],C=u[p+3],(U&192)===128&&(k&192)===128&&(C&192)===128&&(T=(g&15)<<18|(U&63)<<12|(k&63)<<6|C&63,T>65535&&T<1114112&&(m=T))}}m===null?(m=65533,F=1):m>65535&&(m-=65536,l.push(m>>>10&1023|55296),m=56320|m&1023),l.push(m),p+=F}return Yr(l)}var Ae=4096;function Yr(u){var i=u.length;if(i<=Ae)return String.fromCharCode.apply(String,u);for(var a="",l=0;l<i;)a+=String.fromCharCode.apply(String,u.slice(l,l+=Ae));return a}function Xr(u,i,a){var l="";a=Math.min(u.length,a);for(var p=i;p<a;++p)l+=String.fromCharCode(u[p]&127);return l}function Kr(u,i,a){var l="";a=Math.min(u.length,a);for(var p=i;p<a;++p)l+=String.fromCharCode(u[p]);return l}function Zr(u,i,a){var l=u.length;(!i||i<0)&&(i=0),(!a||a<0||a>l)&&(a=l);for(var p="",g=i;g<a;++g)p+=on[u[g]];return p}function Qr(u,i,a){for(var l=u.slice(i,a),p="",g=0;g<l.length-1;g+=2)p+=String.fromCharCode(l[g]+l[g+1]*256);return p}s.prototype.slice=function(i,a){var l=this.length;i=~~i,a=a===void 0?l:~~a,i<0?(i+=l,i<0&&(i=0)):i>l&&(i=l),a<0?(a+=l,a<0&&(a=0)):a>l&&(a=l),a<i&&(a=i);var p=this.subarray(i,a);return Object.setPrototypeOf(p,s.prototype),p};function O(u,i,a){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+i>a)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i],g=1,m=0;++m<a&&(g*=256);)p+=this[i+m]*g;return p},s.prototype.readUintBE=s.prototype.readUIntBE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i+--a],g=1;a>0&&(g*=256);)p+=this[i+--a]*g;return p},s.prototype.readUint8=s.prototype.readUInt8=function(i,a){return i=i>>>0,a||O(i,1,this.length),this[i]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(i,a){return i=i>>>0,a||O(i,2,this.length),this[i]|this[i+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(i,a){return i=i>>>0,a||O(i,2,this.length),this[i]<<8|this[i+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(i,a){return i=i>>>0,a||O(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},s.prototype.readIntLE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i],g=1,m=0;++m<a&&(g*=256);)p+=this[i+m]*g;return g*=128,p>=g&&(p-=Math.pow(2,8*a)),p},s.prototype.readIntBE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=a,g=1,m=this[i+--p];p>0&&(g*=256);)m+=this[i+--p]*g;return g*=128,m>=g&&(m-=Math.pow(2,8*a)),m},s.prototype.readInt8=function(i,a){return i=i>>>0,a||O(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},s.prototype.readInt16LE=function(i,a){i=i>>>0,a||O(i,2,this.length);var l=this[i]|this[i+1]<<8;return l&32768?l|4294901760:l},s.prototype.readInt16BE=function(i,a){i=i>>>0,a||O(i,2,this.length);var l=this[i+1]|this[i]<<8;return l&32768?l|4294901760:l},s.prototype.readInt32LE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},s.prototype.readInt32BE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},s.prototype.readFloatLE=function(i,a){return i=i>>>0,a||O(i,4,this.length),e.read(this,i,!0,23,4)},s.prototype.readFloatBE=function(i,a){return i=i>>>0,a||O(i,4,this.length),e.read(this,i,!1,23,4)},s.prototype.readDoubleLE=function(i,a){return i=i>>>0,a||O(i,8,this.length),e.read(this,i,!0,52,8)},s.prototype.readDoubleBE=function(i,a){return i=i>>>0,a||O(i,8,this.length),e.read(this,i,!1,52,8)};function N(u,i,a,l,p,g){if(!s.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>p||i<g)throw new RangeError('"value" argument is out of bounds');if(a+l>u.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(i,a,l,p){if(i=+i,a=a>>>0,l=l>>>0,!p){var g=Math.pow(2,8*l)-1;N(this,i,a,l,g,0)}var m=1,F=0;for(this[a]=i&255;++F<l&&(m*=256);)this[a+F]=i/m&255;return a+l},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(i,a,l,p){if(i=+i,a=a>>>0,l=l>>>0,!p){var g=Math.pow(2,8*l)-1;N(this,i,a,l,g,0)}var m=l-1,F=1;for(this[a+m]=i&255;--m>=0&&(F*=256);)this[a+m]=i/F&255;return a+l},s.prototype.writeUint8=s.prototype.writeUInt8=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,1,255,0),this[a]=i&255,a+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,65535,0),this[a]=i&255,this[a+1]=i>>>8,a+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,65535,0),this[a]=i>>>8,this[a+1]=i&255,a+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,4294967295,0),this[a+3]=i>>>24,this[a+2]=i>>>16,this[a+1]=i>>>8,this[a]=i&255,a+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,4294967295,0),this[a]=i>>>24,this[a+1]=i>>>16,this[a+2]=i>>>8,this[a+3]=i&255,a+4},s.prototype.writeIntLE=function(i,a,l,p){if(i=+i,a=a>>>0,!p){var g=Math.pow(2,8*l-1);N(this,i,a,l,g-1,-g)}var m=0,F=1,U=0;for(this[a]=i&255;++m<l&&(F*=256);)i<0&&U===0&&this[a+m-1]!==0&&(U=1),this[a+m]=(i/F>>0)-U&255;return a+l},s.prototype.writeIntBE=function(i,a,l,p){if(i=+i,a=a>>>0,!p){var g=Math.pow(2,8*l-1);N(this,i,a,l,g-1,-g)}var m=l-1,F=1,U=0;for(this[a+m]=i&255;--m>=0&&(F*=256);)i<0&&U===0&&this[a+m+1]!==0&&(U=1),this[a+m]=(i/F>>0)-U&255;return a+l},s.prototype.writeInt8=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,1,127,-128),i<0&&(i=255+i+1),this[a]=i&255,a+1},s.prototype.writeInt16LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,32767,-32768),this[a]=i&255,this[a+1]=i>>>8,a+2},s.prototype.writeInt16BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,32767,-32768),this[a]=i>>>8,this[a+1]=i&255,a+2},s.prototype.writeInt32LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,2147483647,-2147483648),this[a]=i&255,this[a+1]=i>>>8,this[a+2]=i>>>16,this[a+3]=i>>>24,a+4},s.prototype.writeInt32BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[a]=i>>>24,this[a+1]=i>>>16,this[a+2]=i>>>8,this[a+3]=i&255,a+4};function Be(u,i,a,l,p,g){if(a+l>u.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Se(u,i,a,l,p){return i=+i,a=a>>>0,p||Be(u,i,a,4),e.write(u,i,a,l,23,4),a+4}s.prototype.writeFloatLE=function(i,a,l){return Se(this,i,a,!0,l)},s.prototype.writeFloatBE=function(i,a,l){return Se(this,i,a,!1,l)};function Fe(u,i,a,l,p){return i=+i,a=a>>>0,p||Be(u,i,a,8),e.write(u,i,a,l,52,8),a+8}s.prototype.writeDoubleLE=function(i,a,l){return Fe(this,i,a,!0,l)},s.prototype.writeDoubleBE=function(i,a,l){return Fe(this,i,a,!1,l)},s.prototype.copy=function(i,a,l,p){if(!s.isBuffer(i))throw new TypeError("argument should be a Buffer");if(l||(l=0),!p&&p!==0&&(p=this.length),a>=i.length&&(a=i.length),a||(a=0),p>0&&p<l&&(p=l),p===l||i.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),i.length-a<p-l&&(p=i.length-a+l);var g=p-l;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,l,p):Uint8Array.prototype.set.call(i,this.subarray(l,p),a),g},s.prototype.fill=function(i,a,l,p){if(typeof i=="string"){if(typeof a=="string"?(p=a,a=0,l=this.length):typeof l=="string"&&(p=l,l=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!s.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(i.length===1){var g=i.charCodeAt(0);(p==="utf8"&&g<128||p==="latin1")&&(i=g)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(a<0||this.length<a||this.length<l)throw new RangeError("Out of range index");if(l<=a)return this;a=a>>>0,l=l===void 0?this.length:l>>>0,i||(i=0);var m;if(typeof i=="number")for(m=a;m<l;++m)this[m]=i;else{var F=s.isBuffer(i)?i:s.from(i,p),U=F.length;if(U===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(m=0;m<l-a;++m)this[m+a]=F[m%U]}return this};var tn=/[^+/0-9A-Za-z-_]/g;function en(u){if(u=u.split("=")[0],u=u.trim().replace(tn,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ot(u,i){i=i||1/0;for(var a,l=u.length,p=null,g=[],m=0;m<l;++m){if(a=u.charCodeAt(m),a>55295&&a<57344){if(!p){if(a>56319){(i-=3)>-1&&g.push(239,191,189);continue}else if(m+1===l){(i-=3)>-1&&g.push(239,191,189);continue}p=a;continue}if(a<56320){(i-=3)>-1&&g.push(239,191,189),p=a;continue}a=(p-55296<<10|a-56320)+65536}else p&&(i-=3)>-1&&g.push(239,191,189);if(p=null,a<128){if((i-=1)<0)break;g.push(a)}else if(a<2048){if((i-=2)<0)break;g.push(a>>6|192,a&63|128)}else if(a<65536){if((i-=3)<0)break;g.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((i-=4)<0)break;g.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return g}function rn(u){for(var i=[],a=0;a<u.length;++a)i.push(u.charCodeAt(a)&255);return i}function nn(u,i){for(var a,l,p,g=[],m=0;m<u.length&&!((i-=2)<0);++m)a=u.charCodeAt(m),l=a>>8,p=a%256,g.push(p),g.push(l);return g}function Ie(u){return t.toByteArray(en(u))}function bt(u,i,a,l){for(var p=0;p<l&&!(p+a>=i.length||p>=u.length);++p)i[p+a]=u[p];return p}function q(u,i){return u instanceof i||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===i.name}function Rt(u){return u!==u}var on=function(){for(var u="0123456789abcdef",i=new Array(256),a=0;a<16;++a)for(var l=a*16,p=0;p<16;++p)i[l+p]=u[a]+u[p];return i}()})(de);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(n,t){var e=de,r=e.Buffer;function o(f,s){for(var h in f)s[h]=f[h]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(o(e,t),t.Buffer=c);function c(f,s,h){return r(f,s,h)}c.prototype=Object.create(r.prototype),o(r,c),c.from=function(f,s,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return r(f,s,h)},c.alloc=function(f,s,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var y=r(f);return s!==void 0?typeof h=="string"?y.fill(s,h):y.fill(s):y.fill(0),y},c.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r(f)},c.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(f)}})(ue,ue.exports);var we=ue.exports,oi={}.toString,ai=Array.isArray||function(n){return oi.call(n)=="[object Array]"},pt=TypeError,vr=Object,si=Error,ci=EvalError,fi=RangeError,ui=ReferenceError,Er=SyntaxError,li=URIError,hi=Math.abs,pi=Math.floor,di=Math.max,yi=Math.min,wi=Math.pow,gi=Math.round,mi=Number.isNaN||function(t){return t!==t},bi=mi,vi=function(t){return bi(t)||t===0?t:t<0?-1:1},Ei=Object.getOwnPropertyDescriptor,Et=Ei;if(Et)try{Et([],"length")}catch{Et=null}var dt=Et,xt=Object.defineProperty||!1;if(xt)try{xt({},"a",{value:1})}catch{xt=!1}var Ut=xt,Ct,De;function xr(){return De||(De=1,Ct=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[e]=o;for(var c in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var f=Object.getOwnPropertySymbols(t);if(f.length!==1||f[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,e);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Ct}var Nt,je;function xi(){if(je)return Nt;je=1;var n=typeof Symbol<"u"&&Symbol,t=xr();return Nt=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Nt}var Mt,Ce;function Ar(){return Ce||(Ce=1,Mt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Mt}var Lt,Ne;function Br(){if(Ne)return Lt;Ne=1;var n=vr;return Lt=n.getPrototypeOf||null,Lt}var Ai="Function.prototype.bind called on incompatible ",Bi=Object.prototype.toString,Si=Math.max,Fi="[object Function]",Me=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var c=0;c<e.length;c+=1)r[c+t.length]=e[c];return r},Ii=function(t,e){for(var r=[],o=e,c=0;o<t.length;o+=1,c+=1)r[c]=t[o];return r},_i=function(n,t){for(var e="",r=0;r<n.length;r+=1)e+=n[r],r+1<n.length&&(e+=t);return e},$i=function(t){var e=this;if(typeof e!="function"||Bi.apply(e)!==Fi)throw new TypeError(Ai+e);for(var r=Ii(arguments,1),o,c=function(){if(this instanceof o){var d=e.apply(this,Me(r,arguments));return Object(d)===d?d:this}return e.apply(t,Me(r,arguments))},f=Si(0,e.length-r.length),s=[],h=0;h<f;h++)s[h]="$"+h;if(o=Function("binder","return function ("+_i(s,",")+"){ return binder.apply(this,arguments); }")(c),e.prototype){var y=function(){};y.prototype=e.prototype,o.prototype=new y,y.prototype=null}return o},Ui=$i,yt=Function.prototype.bind||Ui,ge=Function.prototype.call,me=Function.prototype.apply,Pi=typeof Reflect<"u"&&Reflect&&Reflect.apply,ki=yt,Ti=me,Oi=ge,Ri=Pi,Sr=Ri||ki.call(Oi,Ti),Di=yt,ji=pt,Ci=ge,Ni=Sr,be=function(t){if(t.length<1||typeof t[0]!="function")throw new ji("a function is required");return Ni(Di,Ci,t)},Gt,Le;function Mi(){if(Le)return Gt;Le=1;var n=be,t=dt,e;try{e=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var r=!!e&&t&&t(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;return Gt=r&&typeof r.get=="function"?n([r.get]):typeof c=="function"?function(s){return c(s==null?s:o(s))}:!1,Gt}var qt,Ge;function Fr(){if(Ge)return qt;Ge=1;var n=Ar(),t=Br(),e=Mi();return qt=n?function(o){return n(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:e?function(o){return e(o)}:null,qt}var Ht,qe;function Li(){if(qe)return Ht;qe=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=yt;return Ht=e.call(n,t),Ht}var A,Gi=vr,qi=si,Hi=ci,zi=fi,Wi=ui,nt=Er,rt=pt,Vi=li,Ji=hi,Yi=pi,Xi=di,Ki=yi,Zi=wi,Qi=gi,to=vi,Ir=Function,zt=function(n){try{return Ir('"use strict"; return ('+n+").constructor;")()}catch{}},ct=dt,eo=Ut,Wt=function(){throw new rt},ro=ct?function(){try{return arguments.callee,Wt}catch{try{return ct(arguments,"callee").get}catch{return Wt}}}():Wt,tt=xi()(),R=Fr(),no=Br(),io=Ar(),_r=me,wt=ge,et={},oo=typeof Uint8Array>"u"||!R?A:R(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":tt&&R?R([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":et,"%AsyncGenerator%":et,"%AsyncGeneratorFunction%":et,"%AsyncIteratorPrototype%":et,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qi,"%eval%":eval,"%EvalError%":Hi,"%Float16Array%":typeof Float16Array>"u"?A:Float16Array,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":Ir,"%GeneratorFunction%":et,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tt&&R?R(R([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tt||!R?A:R(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Gi,"%Object.getOwnPropertyDescriptor%":ct,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":zi,"%ReferenceError%":Wi,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tt||!R?A:R(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tt&&R?R(""[Symbol.iterator]()):A,"%Symbol%":tt?Symbol:A,"%SyntaxError%":nt,"%ThrowTypeError%":ro,"%TypedArray%":oo,"%TypeError%":rt,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":Vi,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet,"%Function.prototype.call%":wt,"%Function.prototype.apply%":_r,"%Object.defineProperty%":eo,"%Object.getPrototypeOf%":no,"%Math.abs%":Ji,"%Math.floor%":Yi,"%Math.max%":Xi,"%Math.min%":Ki,"%Math.pow%":Zi,"%Math.round%":Qi,"%Math.sign%":to,"%Reflect.getPrototypeOf%":io};if(R)try{null.error}catch(n){var ao=R(R(n));X["%Error.prototype%"]=ao}var so=function n(t){var e;if(t==="%AsyncFunction%")e=zt("async function () {}");else if(t==="%GeneratorFunction%")e=zt("function* () {}");else if(t==="%AsyncGeneratorFunction%")e=zt("async function* () {}");else if(t==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=n("%AsyncGenerator%");o&&R&&(e=R(o.prototype))}return X[t]=e,e},He={__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"]},gt=yt,Bt=Li(),co=gt.call(wt,Array.prototype.concat),fo=gt.call(_r,Array.prototype.splice),ze=gt.call(wt,String.prototype.replace),St=gt.call(wt,String.prototype.slice),uo=gt.call(wt,RegExp.prototype.exec),lo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ho=/\\(\\)?/g,po=function(t){var e=St(t,0,1),r=St(t,-1);if(e==="%"&&r!=="%")throw new nt("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&e!=="%")throw new nt("invalid intrinsic syntax, expected opening `%`");var o=[];return ze(t,lo,function(c,f,s,h){o[o.length]=s?ze(h,ho,"$1"):f||c}),o},yo=function(t,e){var r=t,o;if(Bt(He,r)&&(o=He[r],r="%"+o[0]+"%"),Bt(X,r)){var c=X[r];if(c===et&&(c=so(r)),typeof c>"u"&&!e)throw new rt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:c}}throw new nt("intrinsic "+t+" does not exist!")},$r=function(t,e){if(typeof t!="string"||t.length===0)throw new rt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new rt('"allowMissing" argument must be a boolean');if(uo(/^%?[^%]*%?$/,t)===null)throw new nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=po(t),o=r.length>0?r[0]:"",c=yo("%"+o+"%",e),f=c.name,s=c.value,h=!1,y=c.alias;y&&(o=y[0],fo(r,co([0,1],y)));for(var d=1,w=!0;d<r.length;d+=1){var b=r[d],v=St(b,0,1),_=St(b,-1);if((v==='"'||v==="'"||v==="`"||_==='"'||_==="'"||_==="`")&&v!==_)throw new nt("property names with quotes must have matching quotes");if((b==="constructor"||!w)&&(h=!0),o+="."+b,f="%"+o+"%",Bt(X,f))s=X[f];else if(s!=null){if(!(b in s)){if(!e)throw new rt("base intrinsic for "+t+" exists, but the property is not available.");return}if(ct&&d+1>=r.length){var P=ct(s,b);w=!!P,w&&"get"in P&&!("originalValue"in P.get)?s=P.get:s=s[b]}else w=Bt(s,b),s=s[b];w&&!h&&(X[f]=s)}}return s},Ur=$r,Pr=be,wo=Pr([Ur("%String.prototype.indexOf%")]),kr=function(t,e){var r=Ur(t,!!e);return typeof r=="function"&&wo(t,".prototype.")>-1?Pr([r]):r},Vt,We;function go(){if(We)return Vt;We=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(S){S!==r&&(t=null)}else t=null;var o=/^\s*class\b/,c=function(E){try{var $=n.call(E);return o.test($)}catch{return!1}},f=function(E){try{return c(E)?!1:(n.call(E),!0)}catch{return!1}},s=Object.prototype.toString,h="[object Object]",y="[object Function]",d="[object GeneratorFunction]",w="[object HTMLAllCollection]",b="[object HTML document.all class]",v="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,P=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var x=document.all;s.call(x)===s.call(document.all)&&(B=function(E){if((P||!E)&&(typeof E>"u"||typeof E=="object"))try{var $=s.call(E);return($===w||$===b||$===v||$===h)&&E("")==null}catch{}return!1})}return Vt=t?function(E){if(B(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,e)}catch($){if($!==r)return!1}return!c(E)&&f(E)}:function(E){if(B(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(_)return f(E);if(c(E))return!1;var $=s.call(E);return $!==y&&$!==d&&!/^\[object HTML/.test($)?!1:f(E)},Vt}var Jt,Ve;function mo(){if(Ve)return Jt;Ve=1;var n=go(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(h,y,d){for(var w=0,b=h.length;w<b;w++)e.call(h,w)&&(d==null?y(h[w],w,h):y.call(d,h[w],w,h))},o=function(h,y,d){for(var w=0,b=h.length;w<b;w++)d==null?y(h.charAt(w),w,h):y.call(d,h.charAt(w),w,h)},c=function(h,y,d){for(var w in h)e.call(h,w)&&(d==null?y(h[w],w,h):y.call(d,h[w],w,h))};function f(s){return t.call(s)==="[object Array]"}return Jt=function(h,y,d){if(!n(y))throw new TypeError("iterator must be a function");var w;arguments.length>=3&&(w=d),f(h)?r(h,y,w):typeof h=="string"?o(h,y,w):c(h,y,w)},Jt}var Yt,Je;function bo(){return Je||(Je=1,Yt=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Yt}var Xt,Ye;function vo(){if(Ye)return Xt;Ye=1;var n=bo(),t=typeof globalThis>"u"?mr:globalThis;return Xt=function(){for(var r=[],o=0;o<n.length;o++)typeof t[n[o]]=="function"&&(r[r.length]=n[o]);return r},Xt}var Kt={exports:{}},Zt,Xe;function Eo(){if(Xe)return Zt;Xe=1;var n=Ut,t=Er,e=pt,r=dt;return Zt=function(c,f,s){if(!c||typeof c!="object"&&typeof c!="function")throw new e("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,b=!!r&&r(c,f);if(n)n(c,f,{configurable:d===null&&b?b.configurable:!d,enumerable:h===null&&b?b.enumerable:!h,value:s,writable:y===null&&b?b.writable:!y});else if(w||!h&&!y&&!d)c[f]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zt}var Qt,Ke;function xo(){if(Ke)return Qt;Ke=1;var n=Ut,t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Qt=t,Qt}var te,Ze;function Ao(){if(Ze)return te;Ze=1;var n=$r,t=Eo(),e=xo()(),r=dt,o=pt,c=n("%Math.floor%");return te=function(s,h){if(typeof s!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||c(h)!==h)throw new o("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],d=!0,w=!0;if("length"in s&&r){var b=r(s,"length");b&&!b.configurable&&(d=!1),b&&!b.writable&&(w=!1)}return(d||w||!y)&&(e?t(s,"length",h,!0,!0):t(s,"length",h)),s},te}var ee,Qe;function Bo(){if(Qe)return ee;Qe=1;var n=yt,t=me,e=Sr;return ee=function(){return e(n,t,arguments)},ee}var tr;function So(){return tr||(tr=1,function(n){var t=Ao(),e=Ut,r=be,o=Bo();n.exports=function(f){var s=r(arguments),h=f.length-(arguments.length-1);return t(s,1+(h>0?h:0),!0)},e?e(n.exports,"apply",{value:o}):n.exports.apply=o}(Kt)),Kt.exports}var re,er;function Fo(){if(er)return re;er=1;var n=xr();return re=function(){return n()&&!!Symbol.toStringTag},re}var ne,rr;function Io(){if(rr)return ne;rr=1;var n=mo(),t=vo(),e=So(),r=kr,o=dt,c=Fr(),f=r("Object.prototype.toString"),s=Fo()(),h=typeof globalThis>"u"?mr:globalThis,y=t(),d=r("String.prototype.slice"),w=r("Array.prototype.indexOf",!0)||function(B,x){for(var S=0;S<B.length;S+=1)if(B[S]===x)return S;return-1},b={__proto__:null};s&&o&&c?n(y,function(P){var B=new h[P];if(Symbol.toStringTag in B&&c){var x=c(B),S=o(x,Symbol.toStringTag);if(!S&&x){var E=c(x);S=o(E,Symbol.toStringTag)}if(S&&S.get){var $=e(S.get);b["$"+P]=$}}}):n(y,function(P){var B=new h[P],x=B.slice||B.set;if(x){var S=e(x);b["$"+P]=S}});var v=function(B){var x=!1;return n(b,function(S,E){if(!x)try{"$"+S(B)===E&&(x=d(E,1))}catch{}}),x},_=function(B){var x=!1;return n(b,function(S,E){if(!x)try{S(B),x=d(E,1)}catch{}}),x};return ne=function(B){if(!B||typeof B!="object")return!1;if(!s){var x=d(f(B),8,-1);return w(y,x)>-1?x:x!=="Object"?!1:_(B)}return o?v(B):null},ne}var ie,nr;function _o(){if(nr)return ie;nr=1;var n=Io();return ie=function(e){return!!n(e)},ie}var $o=pt,Uo=kr,Po=Uo("TypedArray.prototype.buffer",!0),ko=_o(),To=Po||function(t){if(!ko(t))throw new $o("Not a Typed Array");return t.buffer},G=we.Buffer,Oo=ai,Ro=To,Do=ArrayBuffer.isView||function(t){try{return Ro(t),!0}catch{return!1}},jo=typeof Uint8Array<"u",Tr=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Co=Tr&&(G.prototype instanceof Uint8Array||G.TYPED_ARRAY_SUPPORT),No=function(t,e){if(G.isBuffer(t))return t.constructor&&!("isBuffer"in t)?G.from(t):t;if(typeof t=="string")return G.from(t,e);if(Tr&&Do(t)){if(t.byteLength===0)return G.alloc(0);if(Co){var r=G.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=G.from(o);if(c.length===t.byteLength)return c}if(jo&&t instanceof Uint8Array)return G.from(t);var f=Oo(t);if(f)for(var s=0;s<t.length;s+=1){var h=t[s];if(typeof h!="number"||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||G.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return G.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Mo=we.Buffer,Lo=No;function Pt(n,t){this._block=Mo.alloc(n),this._finalSize=t,this._blockSize=n,this._len=0}Pt.prototype.update=function(n,t){n=Lo(n,t||"utf8");for(var e=this._block,r=this._blockSize,o=n.length,c=this._len,f=0;f<o;){for(var s=c%r,h=Math.min(o-f,r-s),y=0;y<h;y++)e[s+y]=n[f+y];c+=h,f+=h,c%r===0&&this._update(e)}return this._len+=o,this};Pt.prototype.digest=function(n){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var r=(e&4294967295)>>>0,o=(e-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return n?c.toString(n):c};Pt.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Go=Pt,qo=Xn,Or=Go,Ho=we.Buffer,zo=[1518500249,1859775393,-1894007588,-899497514],Wo=new Array(80);function mt(){this.init(),this._w=Wo,Or.call(this,64,56)}qo(mt,Or);mt.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Vo(n){return n<<1|n>>>31}function Jo(n){return n<<5|n>>>27}function Yo(n){return n<<30|n>>>2}function Xo(n,t,e,r){return n===0?t&e|~t&r:n===2?t&e|t&r|e&r:t^e^r}mt.prototype._update=function(n){for(var t=this._w,e=this._a|0,r=this._b|0,o=this._c|0,c=this._d|0,f=this._e|0,s=0;s<16;++s)t[s]=n.readInt32BE(s*4);for(;s<80;++s)t[s]=Vo(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var h=0;h<80;++h){var y=~~(h/20),d=Jo(e)+Xo(y,r,o,c)+f+t[h]+zo[y]|0;f=c,c=o,o=Yo(r),r=e,e=d}this._a=e+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0};mt.prototype._hash=function(){var n=Ho.allocUnsafe(20);return n.writeInt32BE(this._a|0,0),n.writeInt32BE(this._b|0,4),n.writeInt32BE(this._c|0,8),n.writeInt32BE(this._d|0,12),n.writeInt32BE(this._e|0,16),n};var Ko=mt;const Zo=Yn(Ko);function Qo(n){let t="";for(const e of new Uint8Array(n))e<16&&(t+="0"),t+=e.toString(16);return t}let oe=null;async function Ft(n){return oe===null&&(oe=await ea()),oe?Rr(n):ta(n)}function ta(n){return new Zo().update(n).digest("hex")}async function Rr(n){const t=await crypto.subtle.digest("SHA-1",n);return Qo(t)}async function ea(){try{if(await Rr(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function ra(n){const t=[];let e=0,r=0;do{e=n.readUInt8();const o=e&127;t.push(o),r=e&128}while(r);return t.reduce((o,c)=>o+1<<7|c,-1)}function na(n,t){let e=t,r=4,o=null;do o=n.readUInt8(),e|=(o&127)<<r,r+=7;while(o&128);return e}class it{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:e}){const r=new z(t);if(r.slice(4).toString("hex")!=="ff744f63")return;const c=r.readUInt32BE();if(c!==2)throw new I(`Unable to read version ${c} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new I("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+4*255);const f=r.readUInt32BE(),s=[];for(let d=0;d<f;d++){const w=r.slice(20).toString("hex");s[d]=w}r.seek(r.tell()+4*f);const h=new Map;for(let d=0;d<f;d++)h.set(s[d],r.readUInt32BE());const y=r.slice(20).toString("hex");return new it({hashes:s,crcs:{},offsets:h,packfileSha:y,getExternalRefDelta:e})}static async fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){const o={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},c={},f=t.slice(-20).toString("hex"),s=[],h={},y=new Map;let d=null,w=null;await Wn([t],async({data:B,type:x,reference:S,offset:E,num:$})=>{d===null&&(d=$);const j=Math.floor((d-$)*100/d);j!==w&&r&&await r({phase:"Receiving objects",loaded:d-$,total:d}),w=j,x=o[x],["commit","tree","blob","tag"].includes(x)?c[E]={type:x,offset:E}:x==="ofs-delta"?c[E]={type:x,offset:E}:x==="ref-delta"&&(c[E]={type:x,offset:E})});const b=Object.keys(c).map(Number);for(const[B,x]of b.entries()){const S=B+1===b.length?t.byteLength-20:b[B+1],E=c[x],$=pn.buf(t.slice(x,S))>>>0;E.end=S,E.crc=$}const v=new it({pack:Promise.resolve(t),packfileSha:f,crcs:h,hashes:s,offsets:y,getExternalRefDelta:e});w=null;let _=0;const P=[0,0,0,0,0,0,0,0,0,0,0,0];for(let B in c){B=Number(B);const x=Math.floor(_*100/d);x!==w&&r&&await r({phase:"Resolving deltas",loaded:_,total:d}),_++,w=x;const S=c[B];if(!S.oid)try{v.readDepth=0,v.externalReadDepth=0;const{type:E,object:$}=await v.readSlice({start:B});P[v.readDepth]+=1;const j=await Ft(Hn.wrap({type:E,object:$}));S.oid=j,s.push(j),y.set(j,B),h[j]=S.crc}catch{continue}}return s.sort(),v}async toBuffer(){const t=[],e=(y,d)=>{t.push(Buffer.from(y,d))};e("ff744f63","hex"),e("00000002","hex");const r=new z(Buffer.alloc(256*4));for(let y=0;y<256;y++){let d=0;for(const w of this.hashes)parseInt(w.slice(0,2),16)<=y&&d++;r.writeUInt32BE(d)}t.push(r.buffer);for(const y of this.hashes)e(y,"hex");const o=new z(Buffer.alloc(this.hashes.length*4));for(const y of this.hashes)o.writeUInt32BE(this.crcs[y]);t.push(o.buffer);const c=new z(Buffer.alloc(this.hashes.length*4));for(const y of this.hashes)c.writeUInt32BE(this.offsets.get(y));t.push(c.buffer),e(this.packfileSha,"hex");const f=Buffer.concat(t),s=await Ft(f),h=Buffer.alloc(20);return h.write(s,"hex"),Buffer.concat([f,h])}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 I(`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]);this.readDepth++;const e={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new I("Tried to read from a GitPackIndex with no packfile loaded into memory");const r=(await this.pack).slice(t),o=new z(r),c=o.readUInt8(),f=c&112;let s=e[f];if(s===void 0)throw new I("Unrecognized type: 0b"+f.toString(2));const h=c&15;let y=h;c&128&&(y=na(o,h));let w=null,b=null;if(s==="ofs_delta"){const _=ra(o),P=t-_;({object:w,type:s}=await this.readSlice({start:P}))}if(s==="ref_delta"){const _=o.slice(20).toString("hex");({object:w,type:s}=await this.read({oid:_}))}const v=r.slice(o.tell());if(b=Buffer.from(await Jn(v)),b.byteLength!==y)throw new I(`Packfile told us object would have length ${y} but it had length ${b.byteLength}`);return w&&(b=Buffer.from(zn(b,w))),this.readDepth>3&&(this.offsetCache[t]={type:s,object:b}),{type:s,format:"content",object:b}}}class ft extends ot{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=ft.code,this.data={value:t}}}ft.code="InvalidOidError";class kt extends ot{constructor(t,e,r,o){super(`Object ${t} ${o?`at ${o}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=kt.code,this.data={oid:t,actual:e,expected:r,filepath:o}}}kt.code="ObjectTypeError";function ia(n){let t=n>0?n>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let e=n&511;return e&73?e=493:e=420,t!==8&&(e=0),(t<<12)+e}const H=2**32;function ir(n,t,e,r){if(n!==void 0&&t!==void 0)return[n,t];e===void 0&&(e=r.valueOf());const o=Math.floor(e/1e3),c=(e-o*1e3)*1e6;return[o,c]}function or(n){const[t,e]=ir(n.ctimeSeconds,n.ctimeNanoseconds,n.ctimeMs,n.ctime),[r,o]=ir(n.mtimeSeconds,n.mtimeNanoseconds,n.mtimeMs,n.mtime);return{ctimeSeconds:t%H,ctimeNanoseconds:e%H,mtimeSeconds:r%H,mtimeNanoseconds:o%H,dev:n.dev%H,ino:n.ino%H,mode:ia(n.mode%H),uid:n.uid%H,gid:n.gid%H,size:n.size>-1?n.size%H:0}}function oa(n){return{assumeValid:!!(n&32768),extended:!!(n&16384),stage:(n&12288)>>12,nameLength:n&4095}}function aa(n){const t=n.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(n.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Y{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)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 Y.fromBuffer(t);if(t===null)return new Y(null);throw new I("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new I("Index file is empty (.git/index)");const e=new Y,r=new z(t),o=r.toString("utf8",4);if(o!=="DIRC")throw new I(`Invalid dircache magic file number: ${o}`);const c=await Ft(t.slice(0,-20)),f=t.slice(-20).toString("hex");if(f!==c)throw new I(`Invalid checksum in GitIndex buffer: expected ${f} but saw ${c}`);const s=r.readUInt32BE();if(s!==2)throw new I(`Unsupported dircache version: ${s}`);const h=r.readUInt32BE();let y=0;for(;!r.eof()&&y<h;){const d={};d.ctimeSeconds=r.readUInt32BE(),d.ctimeNanoseconds=r.readUInt32BE(),d.mtimeSeconds=r.readUInt32BE(),d.mtimeNanoseconds=r.readUInt32BE(),d.dev=r.readUInt32BE(),d.ino=r.readUInt32BE(),d.mode=r.readUInt32BE(),d.uid=r.readUInt32BE(),d.gid=r.readUInt32BE(),d.size=r.readUInt32BE(),d.oid=r.slice(20).toString("hex");const w=r.readUInt16BE();d.flags=oa(w);const b=t.indexOf(0,r.tell()+1)-r.tell();if(b<1)throw new I(`Got a path length of: ${b}`);if(d.path=r.toString("utf8",b),d.path.includes("..\\")||d.path.includes("../"))throw new ht(d.path);let v=8-(r.tell()-12)%8;for(v===0&&(v=8);v--;){const _=r.readUInt8();if(_!==0)throw new I(`Expected 1-8 null characters but got '${_}' after ${d.path}`);if(r.eof())throw new I("Unexpected end of file")}d.stages=[],e._addEntry(d),y++}return e}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(wr)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(e=>e):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:e,oid:r,stage:o=0}){e||(e={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),e=or(e);const c=Buffer.from(t),f={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:o,nameLength:c.length<4095?c.length:4095},stages:[]};this._addEntry(f),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(`
49
+ */(function(n){var t=$t,e=ye,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=S,n.INSPECT_MAX_BYTES=50;var o=2147483647;n.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var u=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(u,i),u.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function f(u){if(u>o)throw new RangeError('The value "'+u+'" is invalid for option "size"');var i=new Uint8Array(u);return Object.setPrototypeOf(i,s.prototype),i}function s(u,i,a){if(typeof u=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(u)}return h(u,i,a)}s.poolSize=8192;function h(u,i,a){if(typeof u=="string")return b(u,i);if(ArrayBuffer.isView(u))return _(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(q(u,ArrayBuffer)||u&&q(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(q(u,SharedArrayBuffer)||u&&q(u.buffer,SharedArrayBuffer)))return P(u,i,a);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=u.valueOf&&u.valueOf();if(l!=null&&l!==u)return s.from(l,i,a);var p=B(u);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return s.from(u[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}s.from=function(u,i,a){return h(u,i,a)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function y(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function d(u,i,a){return y(u),u<=0?f(u):i!==void 0?typeof a=="string"?f(u).fill(i,a):f(u).fill(i):f(u)}s.alloc=function(u,i,a){return d(u,i,a)};function w(u){return y(u),f(u<0?0:x(u)|0)}s.allocUnsafe=function(u){return w(u)},s.allocUnsafeSlow=function(u){return w(u)};function b(u,i){if((typeof i!="string"||i==="")&&(i="utf8"),!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var a=E(u,i)|0,l=f(a),p=l.write(u,i);return p!==a&&(l=l.slice(0,p)),l}function v(u){for(var i=u.length<0?0:x(u.length)|0,a=f(i),l=0;l<i;l+=1)a[l]=u[l]&255;return a}function _(u){if(q(u,Uint8Array)){var i=new Uint8Array(u);return P(i.buffer,i.byteOffset,i.byteLength)}return v(u)}function P(u,i,a){if(i<0||u.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(u.byteLength<i+(a||0))throw new RangeError('"length" is outside of buffer bounds');var l;return i===void 0&&a===void 0?l=new Uint8Array(u):a===void 0?l=new Uint8Array(u,i):l=new Uint8Array(u,i,a),Object.setPrototypeOf(l,s.prototype),l}function B(u){if(s.isBuffer(u)){var i=x(u.length)|0,a=f(i);return a.length===0||u.copy(a,0,0,i),a}if(u.length!==void 0)return typeof u.length!="number"||Rt(u.length)?f(0):v(u);if(u.type==="Buffer"&&Array.isArray(u.data))return v(u.data)}function x(u){if(u>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return u|0}function S(u){return+u!=u&&(u=0),s.alloc(+u)}s.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==s.prototype},s.compare=function(i,a){if(q(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),q(a,Uint8Array)&&(a=s.from(a,a.offset,a.byteLength)),!s.isBuffer(i)||!s.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===a)return 0;for(var l=i.length,p=a.length,g=0,m=Math.min(l,p);g<m;++g)if(i[g]!==a[g]){l=i[g],p=a[g];break}return l<p?-1:p<l?1:0},s.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(i,a){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return s.alloc(0);var l;if(a===void 0)for(a=0,l=0;l<i.length;++l)a+=i[l].length;var p=s.allocUnsafe(a),g=0;for(l=0;l<i.length;++l){var m=i[l];if(q(m,Uint8Array))g+m.length>p.length?s.from(m).copy(p,g):Uint8Array.prototype.set.call(p,m,g);else if(s.isBuffer(m))m.copy(p,g);else throw new TypeError('"list" argument must be an Array of Buffers');g+=m.length}return p};function E(u,i){if(s.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||q(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);var a=u.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&a===0)return 0;for(var p=!1;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Ot(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return Ie(u).length;default:if(p)return l?-1:Ot(u).length;i=(""+i).toLowerCase(),p=!0}}s.byteLength=E;function $(u,i,a){var l=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,i>>>=0,a<=i))return"";for(u||(u="utf8");;)switch(u){case"hex":return Zr(this,i,a);case"utf8":case"utf-8":return xe(this,i,a);case"ascii":return Xr(this,i,a);case"latin1":case"binary":return Kr(this,i,a);case"base64":return Jr(this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,i,a);default:if(l)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),l=!0}}s.prototype._isBuffer=!0;function j(u,i,a){var l=u[i];u[i]=u[a],u[a]=l}s.prototype.swap16=function(){var i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<i;a+=2)j(this,a,a+1);return this},s.prototype.swap32=function(){var i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<i;a+=4)j(this,a,a+3),j(this,a+1,a+2);return this},s.prototype.swap64=function(){var i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<i;a+=8)j(this,a,a+7),j(this,a+1,a+6),j(this,a+2,a+5),j(this,a+3,a+4);return this},s.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?xe(this,0,i):$.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(i){if(!s.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:s.compare(this,i)===0},s.prototype.inspect=function(){var i="",a=n.INSPECT_MAX_BYTES;return i=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(i+=" ... "),"<Buffer "+i+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(i,a,l,p,g){if(q(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(a===void 0&&(a=0),l===void 0&&(l=i?i.length:0),p===void 0&&(p=0),g===void 0&&(g=this.length),a<0||l>i.length||p<0||g>this.length)throw new RangeError("out of range index");if(p>=g&&a>=l)return 0;if(p>=g)return-1;if(a>=l)return 1;if(a>>>=0,l>>>=0,p>>>=0,g>>>=0,this===i)return 0;for(var m=g-p,F=l-a,U=Math.min(m,F),k=this.slice(p,g),C=i.slice(a,l),T=0;T<U;++T)if(k[T]!==C[T]){m=k[T],F=C[T];break}return m<F?-1:F<m?1:0};function ve(u,i,a,l,p){if(u.length===0)return-1;if(typeof a=="string"?(l=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Rt(a)&&(a=p?0:u.length-1),a<0&&(a=u.length+a),a>=u.length){if(p)return-1;a=u.length-1}else if(a<0)if(p)a=0;else return-1;if(typeof i=="string"&&(i=s.from(i,l)),s.isBuffer(i))return i.length===0?-1:Ee(u,i,a,l,p);if(typeof i=="number")return i=i&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(u,i,a):Uint8Array.prototype.lastIndexOf.call(u,i,a):Ee(u,[i],a,l,p);throw new TypeError("val must be string, number or Buffer")}function Ee(u,i,a,l,p){var g=1,m=u.length,F=i.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(u.length<2||i.length<2)return-1;g=2,m/=2,F/=2,a/=2}function U(_e,$e){return g===1?_e[$e]:_e.readUInt16BE($e*g)}var k;if(p){var C=-1;for(k=a;k<m;k++)if(U(u,k)===U(i,C===-1?0:k-C)){if(C===-1&&(C=k),k-C+1===F)return C*g}else C!==-1&&(k-=k-C),C=-1}else for(a+F>m&&(a=m-F),k=a;k>=0;k--){for(var T=!0,vt=0;vt<F;vt++)if(U(u,k+vt)!==U(i,vt)){T=!1;break}if(T)return k}return-1}s.prototype.includes=function(i,a,l){return this.indexOf(i,a,l)!==-1},s.prototype.indexOf=function(i,a,l){return ve(this,i,a,l,!0)},s.prototype.lastIndexOf=function(i,a,l){return ve(this,i,a,l,!1)};function qr(u,i,a,l){a=Number(a)||0;var p=u.length-a;l?(l=Number(l),l>p&&(l=p)):l=p;var g=i.length;l>g/2&&(l=g/2);for(var m=0;m<l;++m){var F=parseInt(i.substr(m*2,2),16);if(Rt(F))return m;u[a+m]=F}return m}function Hr(u,i,a,l){return bt(Ot(i,u.length-a),u,a,l)}function zr(u,i,a,l){return bt(rn(i),u,a,l)}function Wr(u,i,a,l){return bt(Ie(i),u,a,l)}function Vr(u,i,a,l){return bt(nn(i,u.length-a),u,a,l)}s.prototype.write=function(i,a,l,p){if(a===void 0)p="utf8",l=this.length,a=0;else if(l===void 0&&typeof a=="string")p=a,l=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(l)?(l=l>>>0,p===void 0&&(p="utf8")):(p=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var g=this.length-a;if((l===void 0||l>g)&&(l=g),i.length>0&&(l<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var m=!1;;)switch(p){case"hex":return qr(this,i,a,l);case"utf8":case"utf-8":return Hr(this,i,a,l);case"ascii":case"latin1":case"binary":return zr(this,i,a,l);case"base64":return Wr(this,i,a,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vr(this,i,a,l);default:if(m)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jr(u,i,a){return i===0&&a===u.length?t.fromByteArray(u):t.fromByteArray(u.slice(i,a))}function xe(u,i,a){a=Math.min(u.length,a);for(var l=[],p=i;p<a;){var g=u[p],m=null,F=g>239?4:g>223?3:g>191?2:1;if(p+F<=a){var U,k,C,T;switch(F){case 1:g<128&&(m=g);break;case 2:U=u[p+1],(U&192)===128&&(T=(g&31)<<6|U&63,T>127&&(m=T));break;case 3:U=u[p+1],k=u[p+2],(U&192)===128&&(k&192)===128&&(T=(g&15)<<12|(U&63)<<6|k&63,T>2047&&(T<55296||T>57343)&&(m=T));break;case 4:U=u[p+1],k=u[p+2],C=u[p+3],(U&192)===128&&(k&192)===128&&(C&192)===128&&(T=(g&15)<<18|(U&63)<<12|(k&63)<<6|C&63,T>65535&&T<1114112&&(m=T))}}m===null?(m=65533,F=1):m>65535&&(m-=65536,l.push(m>>>10&1023|55296),m=56320|m&1023),l.push(m),p+=F}return Yr(l)}var Ae=4096;function Yr(u){var i=u.length;if(i<=Ae)return String.fromCharCode.apply(String,u);for(var a="",l=0;l<i;)a+=String.fromCharCode.apply(String,u.slice(l,l+=Ae));return a}function Xr(u,i,a){var l="";a=Math.min(u.length,a);for(var p=i;p<a;++p)l+=String.fromCharCode(u[p]&127);return l}function Kr(u,i,a){var l="";a=Math.min(u.length,a);for(var p=i;p<a;++p)l+=String.fromCharCode(u[p]);return l}function Zr(u,i,a){var l=u.length;(!i||i<0)&&(i=0),(!a||a<0||a>l)&&(a=l);for(var p="",g=i;g<a;++g)p+=on[u[g]];return p}function Qr(u,i,a){for(var l=u.slice(i,a),p="",g=0;g<l.length-1;g+=2)p+=String.fromCharCode(l[g]+l[g+1]*256);return p}s.prototype.slice=function(i,a){var l=this.length;i=~~i,a=a===void 0?l:~~a,i<0?(i+=l,i<0&&(i=0)):i>l&&(i=l),a<0?(a+=l,a<0&&(a=0)):a>l&&(a=l),a<i&&(a=i);var p=this.subarray(i,a);return Object.setPrototypeOf(p,s.prototype),p};function O(u,i,a){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+i>a)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i],g=1,m=0;++m<a&&(g*=256);)p+=this[i+m]*g;return p},s.prototype.readUintBE=s.prototype.readUIntBE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i+--a],g=1;a>0&&(g*=256);)p+=this[i+--a]*g;return p},s.prototype.readUint8=s.prototype.readUInt8=function(i,a){return i=i>>>0,a||O(i,1,this.length),this[i]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(i,a){return i=i>>>0,a||O(i,2,this.length),this[i]|this[i+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(i,a){return i=i>>>0,a||O(i,2,this.length),this[i]<<8|this[i+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(i,a){return i=i>>>0,a||O(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},s.prototype.readIntLE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=this[i],g=1,m=0;++m<a&&(g*=256);)p+=this[i+m]*g;return g*=128,p>=g&&(p-=Math.pow(2,8*a)),p},s.prototype.readIntBE=function(i,a,l){i=i>>>0,a=a>>>0,l||O(i,a,this.length);for(var p=a,g=1,m=this[i+--p];p>0&&(g*=256);)m+=this[i+--p]*g;return g*=128,m>=g&&(m-=Math.pow(2,8*a)),m},s.prototype.readInt8=function(i,a){return i=i>>>0,a||O(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},s.prototype.readInt16LE=function(i,a){i=i>>>0,a||O(i,2,this.length);var l=this[i]|this[i+1]<<8;return l&32768?l|4294901760:l},s.prototype.readInt16BE=function(i,a){i=i>>>0,a||O(i,2,this.length);var l=this[i+1]|this[i]<<8;return l&32768?l|4294901760:l},s.prototype.readInt32LE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},s.prototype.readInt32BE=function(i,a){return i=i>>>0,a||O(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},s.prototype.readFloatLE=function(i,a){return i=i>>>0,a||O(i,4,this.length),e.read(this,i,!0,23,4)},s.prototype.readFloatBE=function(i,a){return i=i>>>0,a||O(i,4,this.length),e.read(this,i,!1,23,4)},s.prototype.readDoubleLE=function(i,a){return i=i>>>0,a||O(i,8,this.length),e.read(this,i,!0,52,8)},s.prototype.readDoubleBE=function(i,a){return i=i>>>0,a||O(i,8,this.length),e.read(this,i,!1,52,8)};function N(u,i,a,l,p,g){if(!s.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>p||i<g)throw new RangeError('"value" argument is out of bounds');if(a+l>u.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(i,a,l,p){if(i=+i,a=a>>>0,l=l>>>0,!p){var g=Math.pow(2,8*l)-1;N(this,i,a,l,g,0)}var m=1,F=0;for(this[a]=i&255;++F<l&&(m*=256);)this[a+F]=i/m&255;return a+l},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(i,a,l,p){if(i=+i,a=a>>>0,l=l>>>0,!p){var g=Math.pow(2,8*l)-1;N(this,i,a,l,g,0)}var m=l-1,F=1;for(this[a+m]=i&255;--m>=0&&(F*=256);)this[a+m]=i/F&255;return a+l},s.prototype.writeUint8=s.prototype.writeUInt8=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,1,255,0),this[a]=i&255,a+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,65535,0),this[a]=i&255,this[a+1]=i>>>8,a+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,65535,0),this[a]=i>>>8,this[a+1]=i&255,a+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,4294967295,0),this[a+3]=i>>>24,this[a+2]=i>>>16,this[a+1]=i>>>8,this[a]=i&255,a+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,4294967295,0),this[a]=i>>>24,this[a+1]=i>>>16,this[a+2]=i>>>8,this[a+3]=i&255,a+4},s.prototype.writeIntLE=function(i,a,l,p){if(i=+i,a=a>>>0,!p){var g=Math.pow(2,8*l-1);N(this,i,a,l,g-1,-g)}var m=0,F=1,U=0;for(this[a]=i&255;++m<l&&(F*=256);)i<0&&U===0&&this[a+m-1]!==0&&(U=1),this[a+m]=(i/F>>0)-U&255;return a+l},s.prototype.writeIntBE=function(i,a,l,p){if(i=+i,a=a>>>0,!p){var g=Math.pow(2,8*l-1);N(this,i,a,l,g-1,-g)}var m=l-1,F=1,U=0;for(this[a+m]=i&255;--m>=0&&(F*=256);)i<0&&U===0&&this[a+m+1]!==0&&(U=1),this[a+m]=(i/F>>0)-U&255;return a+l},s.prototype.writeInt8=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,1,127,-128),i<0&&(i=255+i+1),this[a]=i&255,a+1},s.prototype.writeInt16LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,32767,-32768),this[a]=i&255,this[a+1]=i>>>8,a+2},s.prototype.writeInt16BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,2,32767,-32768),this[a]=i>>>8,this[a+1]=i&255,a+2},s.prototype.writeInt32LE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,2147483647,-2147483648),this[a]=i&255,this[a+1]=i>>>8,this[a+2]=i>>>16,this[a+3]=i>>>24,a+4},s.prototype.writeInt32BE=function(i,a,l){return i=+i,a=a>>>0,l||N(this,i,a,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[a]=i>>>24,this[a+1]=i>>>16,this[a+2]=i>>>8,this[a+3]=i&255,a+4};function Be(u,i,a,l,p,g){if(a+l>u.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Se(u,i,a,l,p){return i=+i,a=a>>>0,p||Be(u,i,a,4),e.write(u,i,a,l,23,4),a+4}s.prototype.writeFloatLE=function(i,a,l){return Se(this,i,a,!0,l)},s.prototype.writeFloatBE=function(i,a,l){return Se(this,i,a,!1,l)};function Fe(u,i,a,l,p){return i=+i,a=a>>>0,p||Be(u,i,a,8),e.write(u,i,a,l,52,8),a+8}s.prototype.writeDoubleLE=function(i,a,l){return Fe(this,i,a,!0,l)},s.prototype.writeDoubleBE=function(i,a,l){return Fe(this,i,a,!1,l)},s.prototype.copy=function(i,a,l,p){if(!s.isBuffer(i))throw new TypeError("argument should be a Buffer");if(l||(l=0),!p&&p!==0&&(p=this.length),a>=i.length&&(a=i.length),a||(a=0),p>0&&p<l&&(p=l),p===l||i.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),i.length-a<p-l&&(p=i.length-a+l);var g=p-l;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,l,p):Uint8Array.prototype.set.call(i,this.subarray(l,p),a),g},s.prototype.fill=function(i,a,l,p){if(typeof i=="string"){if(typeof a=="string"?(p=a,a=0,l=this.length):typeof l=="string"&&(p=l,l=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!s.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(i.length===1){var g=i.charCodeAt(0);(p==="utf8"&&g<128||p==="latin1")&&(i=g)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(a<0||this.length<a||this.length<l)throw new RangeError("Out of range index");if(l<=a)return this;a=a>>>0,l=l===void 0?this.length:l>>>0,i||(i=0);var m;if(typeof i=="number")for(m=a;m<l;++m)this[m]=i;else{var F=s.isBuffer(i)?i:s.from(i,p),U=F.length;if(U===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(m=0;m<l-a;++m)this[m+a]=F[m%U]}return this};var tn=/[^+/0-9A-Za-z-_]/g;function en(u){if(u=u.split("=")[0],u=u.trim().replace(tn,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ot(u,i){i=i||1/0;for(var a,l=u.length,p=null,g=[],m=0;m<l;++m){if(a=u.charCodeAt(m),a>55295&&a<57344){if(!p){if(a>56319){(i-=3)>-1&&g.push(239,191,189);continue}else if(m+1===l){(i-=3)>-1&&g.push(239,191,189);continue}p=a;continue}if(a<56320){(i-=3)>-1&&g.push(239,191,189),p=a;continue}a=(p-55296<<10|a-56320)+65536}else p&&(i-=3)>-1&&g.push(239,191,189);if(p=null,a<128){if((i-=1)<0)break;g.push(a)}else if(a<2048){if((i-=2)<0)break;g.push(a>>6|192,a&63|128)}else if(a<65536){if((i-=3)<0)break;g.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((i-=4)<0)break;g.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return g}function rn(u){for(var i=[],a=0;a<u.length;++a)i.push(u.charCodeAt(a)&255);return i}function nn(u,i){for(var a,l,p,g=[],m=0;m<u.length&&!((i-=2)<0);++m)a=u.charCodeAt(m),l=a>>8,p=a%256,g.push(p),g.push(l);return g}function Ie(u){return t.toByteArray(en(u))}function bt(u,i,a,l){for(var p=0;p<l&&!(p+a>=i.length||p>=u.length);++p)i[p+a]=u[p];return p}function q(u,i){return u instanceof i||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===i.name}function Rt(u){return u!==u}var on=function(){for(var u="0123456789abcdef",i=new Array(256),a=0;a<16;++a)for(var l=a*16,p=0;p<16;++p)i[l+p]=u[a]+u[p];return i}()})(de);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(n,t){var e=de,r=e.Buffer;function o(f,s){for(var h in f)s[h]=f[h]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(o(e,t),t.Buffer=c);function c(f,s,h){return r(f,s,h)}c.prototype=Object.create(r.prototype),o(r,c),c.from=function(f,s,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return r(f,s,h)},c.alloc=function(f,s,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var y=r(f);return s!==void 0?typeof h=="string"?y.fill(s,h):y.fill(s):y.fill(0),y},c.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r(f)},c.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(f)}})(ue,ue.exports);var we=ue.exports,oi={}.toString,ai=Array.isArray||function(n){return oi.call(n)=="[object Array]"},pt=TypeError,vr=Object,si=Error,ci=EvalError,fi=RangeError,ui=ReferenceError,Er=SyntaxError,li=URIError,hi=Math.abs,pi=Math.floor,di=Math.max,yi=Math.min,wi=Math.pow,gi=Math.round,mi=Number.isNaN||function(t){return t!==t},bi=mi,vi=function(t){return bi(t)||t===0?t:t<0?-1:1},Ei=Object.getOwnPropertyDescriptor,Et=Ei;if(Et)try{Et([],"length")}catch{Et=null}var dt=Et,xt=Object.defineProperty||!1;if(xt)try{xt({},"a",{value:1})}catch{xt=!1}var Ut=xt,Ct,De;function xr(){return De||(De=1,Ct=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[e]=o;for(var c in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var f=Object.getOwnPropertySymbols(t);if(f.length!==1||f[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,e);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Ct}var Nt,je;function xi(){if(je)return Nt;je=1;var n=typeof Symbol<"u"&&Symbol,t=xr();return Nt=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Nt}var Mt,Ce;function Ar(){return Ce||(Ce=1,Mt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Mt}var Lt,Ne;function Br(){if(Ne)return Lt;Ne=1;var n=vr;return Lt=n.getPrototypeOf||null,Lt}var Ai="Function.prototype.bind called on incompatible ",Bi=Object.prototype.toString,Si=Math.max,Fi="[object Function]",Me=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var c=0;c<e.length;c+=1)r[c+t.length]=e[c];return r},Ii=function(t,e){for(var r=[],o=e,c=0;o<t.length;o+=1,c+=1)r[c]=t[o];return r},_i=function(n,t){for(var e="",r=0;r<n.length;r+=1)e+=n[r],r+1<n.length&&(e+=t);return e},$i=function(t){var e=this;if(typeof e!="function"||Bi.apply(e)!==Fi)throw new TypeError(Ai+e);for(var r=Ii(arguments,1),o,c=function(){if(this instanceof o){var d=e.apply(this,Me(r,arguments));return Object(d)===d?d:this}return e.apply(t,Me(r,arguments))},f=Si(0,e.length-r.length),s=[],h=0;h<f;h++)s[h]="$"+h;if(o=Function("binder","return function ("+_i(s,",")+"){ return binder.apply(this,arguments); }")(c),e.prototype){var y=function(){};y.prototype=e.prototype,o.prototype=new y,y.prototype=null}return o},Ui=$i,yt=Function.prototype.bind||Ui,ge=Function.prototype.call,me=Function.prototype.apply,Pi=typeof Reflect<"u"&&Reflect&&Reflect.apply,ki=yt,Ti=me,Oi=ge,Ri=Pi,Sr=Ri||ki.call(Oi,Ti),Di=yt,ji=pt,Ci=ge,Ni=Sr,be=function(t){if(t.length<1||typeof t[0]!="function")throw new ji("a function is required");return Ni(Di,Ci,t)},Gt,Le;function Mi(){if(Le)return Gt;Le=1;var n=be,t=dt,e;try{e=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var r=!!e&&t&&t(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;return Gt=r&&typeof r.get=="function"?n([r.get]):typeof c=="function"?function(s){return c(s==null?s:o(s))}:!1,Gt}var qt,Ge;function Fr(){if(Ge)return qt;Ge=1;var n=Ar(),t=Br(),e=Mi();return qt=n?function(o){return n(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:e?function(o){return e(o)}:null,qt}var Ht,qe;function Li(){if(qe)return Ht;qe=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=yt;return Ht=e.call(n,t),Ht}var A,Gi=vr,qi=si,Hi=ci,zi=fi,Wi=ui,nt=Er,rt=pt,Vi=li,Ji=hi,Yi=pi,Xi=di,Ki=yi,Zi=wi,Qi=gi,to=vi,Ir=Function,zt=function(n){try{return Ir('"use strict"; return ('+n+").constructor;")()}catch{}},ct=dt,eo=Ut,Wt=function(){throw new rt},ro=ct?function(){try{return arguments.callee,Wt}catch{try{return ct(arguments,"callee").get}catch{return Wt}}}():Wt,tt=xi()(),R=Fr(),no=Br(),io=Ar(),_r=me,wt=ge,et={},oo=typeof Uint8Array>"u"||!R?A:R(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":tt&&R?R([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":et,"%AsyncGenerator%":et,"%AsyncGeneratorFunction%":et,"%AsyncIteratorPrototype%":et,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qi,"%eval%":eval,"%EvalError%":Hi,"%Float16Array%":typeof Float16Array>"u"?A:Float16Array,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":Ir,"%GeneratorFunction%":et,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tt&&R?R(R([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tt||!R?A:R(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Gi,"%Object.getOwnPropertyDescriptor%":ct,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":zi,"%ReferenceError%":Wi,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tt||!R?A:R(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tt&&R?R(""[Symbol.iterator]()):A,"%Symbol%":tt?Symbol:A,"%SyntaxError%":nt,"%ThrowTypeError%":ro,"%TypedArray%":oo,"%TypeError%":rt,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":Vi,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet,"%Function.prototype.call%":wt,"%Function.prototype.apply%":_r,"%Object.defineProperty%":eo,"%Object.getPrototypeOf%":no,"%Math.abs%":Ji,"%Math.floor%":Yi,"%Math.max%":Xi,"%Math.min%":Ki,"%Math.pow%":Zi,"%Math.round%":Qi,"%Math.sign%":to,"%Reflect.getPrototypeOf%":io};if(R)try{null.error}catch(n){var ao=R(R(n));X["%Error.prototype%"]=ao}var so=function n(t){var e;if(t==="%AsyncFunction%")e=zt("async function () {}");else if(t==="%GeneratorFunction%")e=zt("function* () {}");else if(t==="%AsyncGeneratorFunction%")e=zt("async function* () {}");else if(t==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=n("%AsyncGenerator%");o&&R&&(e=R(o.prototype))}return X[t]=e,e},He={__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"]},gt=yt,Bt=Li(),co=gt.call(wt,Array.prototype.concat),fo=gt.call(_r,Array.prototype.splice),ze=gt.call(wt,String.prototype.replace),St=gt.call(wt,String.prototype.slice),uo=gt.call(wt,RegExp.prototype.exec),lo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ho=/\\(\\)?/g,po=function(t){var e=St(t,0,1),r=St(t,-1);if(e==="%"&&r!=="%")throw new nt("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&e!=="%")throw new nt("invalid intrinsic syntax, expected opening `%`");var o=[];return ze(t,lo,function(c,f,s,h){o[o.length]=s?ze(h,ho,"$1"):f||c}),o},yo=function(t,e){var r=t,o;if(Bt(He,r)&&(o=He[r],r="%"+o[0]+"%"),Bt(X,r)){var c=X[r];if(c===et&&(c=so(r)),typeof c>"u"&&!e)throw new rt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:c}}throw new nt("intrinsic "+t+" does not exist!")},$r=function(t,e){if(typeof t!="string"||t.length===0)throw new rt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new rt('"allowMissing" argument must be a boolean');if(uo(/^%?[^%]*%?$/,t)===null)throw new nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=po(t),o=r.length>0?r[0]:"",c=yo("%"+o+"%",e),f=c.name,s=c.value,h=!1,y=c.alias;y&&(o=y[0],fo(r,co([0,1],y)));for(var d=1,w=!0;d<r.length;d+=1){var b=r[d],v=St(b,0,1),_=St(b,-1);if((v==='"'||v==="'"||v==="`"||_==='"'||_==="'"||_==="`")&&v!==_)throw new nt("property names with quotes must have matching quotes");if((b==="constructor"||!w)&&(h=!0),o+="."+b,f="%"+o+"%",Bt(X,f))s=X[f];else if(s!=null){if(!(b in s)){if(!e)throw new rt("base intrinsic for "+t+" exists, but the property is not available.");return}if(ct&&d+1>=r.length){var P=ct(s,b);w=!!P,w&&"get"in P&&!("originalValue"in P.get)?s=P.get:s=s[b]}else w=Bt(s,b),s=s[b];w&&!h&&(X[f]=s)}}return s},Ur=$r,Pr=be,wo=Pr([Ur("%String.prototype.indexOf%")]),kr=function(t,e){var r=Ur(t,!!e);return typeof r=="function"&&wo(t,".prototype.")>-1?Pr([r]):r},Vt,We;function go(){if(We)return Vt;We=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(S){S!==r&&(t=null)}else t=null;var o=/^\s*class\b/,c=function(E){try{var $=n.call(E);return o.test($)}catch{return!1}},f=function(E){try{return c(E)?!1:(n.call(E),!0)}catch{return!1}},s=Object.prototype.toString,h="[object Object]",y="[object Function]",d="[object GeneratorFunction]",w="[object HTMLAllCollection]",b="[object HTML document.all class]",v="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,P=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var x=document.all;s.call(x)===s.call(document.all)&&(B=function(E){if((P||!E)&&(typeof E>"u"||typeof E=="object"))try{var $=s.call(E);return($===w||$===b||$===v||$===h)&&E("")==null}catch{}return!1})}return Vt=t?function(E){if(B(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,e)}catch($){if($!==r)return!1}return!c(E)&&f(E)}:function(E){if(B(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(_)return f(E);if(c(E))return!1;var $=s.call(E);return $!==y&&$!==d&&!/^\[object HTML/.test($)?!1:f(E)},Vt}var Jt,Ve;function mo(){if(Ve)return Jt;Ve=1;var n=go(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(h,y,d){for(var w=0,b=h.length;w<b;w++)e.call(h,w)&&(d==null?y(h[w],w,h):y.call(d,h[w],w,h))},o=function(h,y,d){for(var w=0,b=h.length;w<b;w++)d==null?y(h.charAt(w),w,h):y.call(d,h.charAt(w),w,h)},c=function(h,y,d){for(var w in h)e.call(h,w)&&(d==null?y(h[w],w,h):y.call(d,h[w],w,h))};function f(s){return t.call(s)==="[object Array]"}return Jt=function(h,y,d){if(!n(y))throw new TypeError("iterator must be a function");var w;arguments.length>=3&&(w=d),f(h)?r(h,y,w):typeof h=="string"?o(h,y,w):c(h,y,w)},Jt}var Yt,Je;function bo(){return Je||(Je=1,Yt=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Yt}var Xt,Ye;function vo(){if(Ye)return Xt;Ye=1;var n=bo(),t=typeof globalThis>"u"?mr:globalThis;return Xt=function(){for(var r=[],o=0;o<n.length;o++)typeof t[n[o]]=="function"&&(r[r.length]=n[o]);return r},Xt}var Kt={exports:{}},Zt,Xe;function Eo(){if(Xe)return Zt;Xe=1;var n=Ut,t=Er,e=pt,r=dt;return Zt=function(c,f,s){if(!c||typeof c!="object"&&typeof c!="function")throw new e("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,b=!!r&&r(c,f);if(n)n(c,f,{configurable:d===null&&b?b.configurable:!d,enumerable:h===null&&b?b.enumerable:!h,value:s,writable:y===null&&b?b.writable:!y});else if(w||!h&&!y&&!d)c[f]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zt}var Qt,Ke;function xo(){if(Ke)return Qt;Ke=1;var n=Ut,t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Qt=t,Qt}var te,Ze;function Ao(){if(Ze)return te;Ze=1;var n=$r,t=Eo(),e=xo()(),r=dt,o=pt,c=n("%Math.floor%");return te=function(s,h){if(typeof s!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||c(h)!==h)throw new o("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],d=!0,w=!0;if("length"in s&&r){var b=r(s,"length");b&&!b.configurable&&(d=!1),b&&!b.writable&&(w=!1)}return(d||w||!y)&&(e?t(s,"length",h,!0,!0):t(s,"length",h)),s},te}var ee,Qe;function Bo(){if(Qe)return ee;Qe=1;var n=yt,t=me,e=Sr;return ee=function(){return e(n,t,arguments)},ee}var tr;function So(){return tr||(tr=1,function(n){var t=Ao(),e=Ut,r=be,o=Bo();n.exports=function(f){var s=r(arguments),h=1+f.length-(arguments.length-1);return t(s,h>0?h:0,!0)},e?e(n.exports,"apply",{value:o}):n.exports.apply=o}(Kt)),Kt.exports}var re,er;function Fo(){if(er)return re;er=1;var n=xr();return re=function(){return n()&&!!Symbol.toStringTag},re}var ne,rr;function Io(){if(rr)return ne;rr=1;var n=mo(),t=vo(),e=So(),r=kr,o=dt,c=Fr(),f=r("Object.prototype.toString"),s=Fo()(),h=typeof globalThis>"u"?mr:globalThis,y=t(),d=r("String.prototype.slice"),w=r("Array.prototype.indexOf",!0)||function(B,x){for(var S=0;S<B.length;S+=1)if(B[S]===x)return S;return-1},b={__proto__:null};s&&o&&c?n(y,function(P){var B=new h[P];if(Symbol.toStringTag in B&&c){var x=c(B),S=o(x,Symbol.toStringTag);if(!S&&x){var E=c(x);S=o(E,Symbol.toStringTag)}if(S&&S.get){var $=e(S.get);b["$"+P]=$}}}):n(y,function(P){var B=new h[P],x=B.slice||B.set;if(x){var S=e(x);b["$"+P]=S}});var v=function(B){var x=!1;return n(b,function(S,E){if(!x)try{"$"+S(B)===E&&(x=d(E,1))}catch{}}),x},_=function(B){var x=!1;return n(b,function(S,E){if(!x)try{S(B),x=d(E,1)}catch{}}),x};return ne=function(B){if(!B||typeof B!="object")return!1;if(!s){var x=d(f(B),8,-1);return w(y,x)>-1?x:x!=="Object"?!1:_(B)}return o?v(B):null},ne}var ie,nr;function _o(){if(nr)return ie;nr=1;var n=Io();return ie=function(e){return!!n(e)},ie}var $o=pt,Uo=kr,Po=Uo("TypedArray.prototype.buffer",!0),ko=_o(),To=Po||function(t){if(!ko(t))throw new $o("Not a Typed Array");return t.buffer},G=we.Buffer,Oo=ai,Ro=To,Do=ArrayBuffer.isView||function(t){try{return Ro(t),!0}catch{return!1}},jo=typeof Uint8Array<"u",Tr=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Co=Tr&&(G.prototype instanceof Uint8Array||G.TYPED_ARRAY_SUPPORT),No=function(t,e){if(G.isBuffer(t))return t.constructor&&!("isBuffer"in t)?G.from(t):t;if(typeof t=="string")return G.from(t,e);if(Tr&&Do(t)){if(t.byteLength===0)return G.alloc(0);if(Co){var r=G.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=G.from(o);if(c.length===t.byteLength)return c}if(jo&&t instanceof Uint8Array)return G.from(t);var f=Oo(t);if(f)for(var s=0;s<t.length;s+=1){var h=t[s];if(typeof h!="number"||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||G.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return G.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Mo=we.Buffer,Lo=No;function Pt(n,t){this._block=Mo.alloc(n),this._finalSize=t,this._blockSize=n,this._len=0}Pt.prototype.update=function(n,t){n=Lo(n,t||"utf8");for(var e=this._block,r=this._blockSize,o=n.length,c=this._len,f=0;f<o;){for(var s=c%r,h=Math.min(o-f,r-s),y=0;y<h;y++)e[s+y]=n[f+y];c+=h,f+=h,c%r===0&&this._update(e)}return this._len+=o,this};Pt.prototype.digest=function(n){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var r=(e&4294967295)>>>0,o=(e-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return n?c.toString(n):c};Pt.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Go=Pt,qo=Xn,Or=Go,Ho=we.Buffer,zo=[1518500249,1859775393,-1894007588,-899497514],Wo=new Array(80);function mt(){this.init(),this._w=Wo,Or.call(this,64,56)}qo(mt,Or);mt.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Vo(n){return n<<1|n>>>31}function Jo(n){return n<<5|n>>>27}function Yo(n){return n<<30|n>>>2}function Xo(n,t,e,r){return n===0?t&e|~t&r:n===2?t&e|t&r|e&r:t^e^r}mt.prototype._update=function(n){for(var t=this._w,e=this._a|0,r=this._b|0,o=this._c|0,c=this._d|0,f=this._e|0,s=0;s<16;++s)t[s]=n.readInt32BE(s*4);for(;s<80;++s)t[s]=Vo(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var h=0;h<80;++h){var y=~~(h/20),d=Jo(e)+Xo(y,r,o,c)+f+t[h]+zo[y]|0;f=c,c=o,o=Yo(r),r=e,e=d}this._a=e+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0};mt.prototype._hash=function(){var n=Ho.allocUnsafe(20);return n.writeInt32BE(this._a|0,0),n.writeInt32BE(this._b|0,4),n.writeInt32BE(this._c|0,8),n.writeInt32BE(this._d|0,12),n.writeInt32BE(this._e|0,16),n};var Ko=mt;const Zo=Yn(Ko);function Qo(n){let t="";for(const e of new Uint8Array(n))e<16&&(t+="0"),t+=e.toString(16);return t}let oe=null;async function Ft(n){return oe===null&&(oe=await ea()),oe?Rr(n):ta(n)}function ta(n){return new Zo().update(n).digest("hex")}async function Rr(n){const t=await crypto.subtle.digest("SHA-1",n);return Qo(t)}async function ea(){try{if(await Rr(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function ra(n){const t=[];let e=0,r=0;do{e=n.readUInt8();const o=e&127;t.push(o),r=e&128}while(r);return t.reduce((o,c)=>o+1<<7|c,-1)}function na(n,t){let e=t,r=4,o=null;do o=n.readUInt8(),e|=(o&127)<<r,r+=7;while(o&128);return e}class it{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:e}){const r=new z(t);if(r.slice(4).toString("hex")!=="ff744f63")return;const c=r.readUInt32BE();if(c!==2)throw new I(`Unable to read version ${c} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new I("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+4*255);const f=r.readUInt32BE(),s=[];for(let d=0;d<f;d++){const w=r.slice(20).toString("hex");s[d]=w}r.seek(r.tell()+4*f);const h=new Map;for(let d=0;d<f;d++)h.set(s[d],r.readUInt32BE());const y=r.slice(20).toString("hex");return new it({hashes:s,crcs:{},offsets:h,packfileSha:y,getExternalRefDelta:e})}static async fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){const o={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},c={},f=t.slice(-20).toString("hex"),s=[],h={},y=new Map;let d=null,w=null;await Wn([t],async({data:B,type:x,reference:S,offset:E,num:$})=>{d===null&&(d=$);const j=Math.floor((d-$)*100/d);j!==w&&r&&await r({phase:"Receiving objects",loaded:d-$,total:d}),w=j,x=o[x],["commit","tree","blob","tag"].includes(x)?c[E]={type:x,offset:E}:x==="ofs-delta"?c[E]={type:x,offset:E}:x==="ref-delta"&&(c[E]={type:x,offset:E})});const b=Object.keys(c).map(Number);for(const[B,x]of b.entries()){const S=B+1===b.length?t.byteLength-20:b[B+1],E=c[x],$=pn.buf(t.slice(x,S))>>>0;E.end=S,E.crc=$}const v=new it({pack:Promise.resolve(t),packfileSha:f,crcs:h,hashes:s,offsets:y,getExternalRefDelta:e});w=null;let _=0;const P=[0,0,0,0,0,0,0,0,0,0,0,0];for(let B in c){B=Number(B);const x=Math.floor(_*100/d);x!==w&&r&&await r({phase:"Resolving deltas",loaded:_,total:d}),_++,w=x;const S=c[B];if(!S.oid)try{v.readDepth=0,v.externalReadDepth=0;const{type:E,object:$}=await v.readSlice({start:B});P[v.readDepth]+=1;const j=await Ft(Hn.wrap({type:E,object:$}));S.oid=j,s.push(j),y.set(j,B),h[j]=S.crc}catch{continue}}return s.sort(),v}async toBuffer(){const t=[],e=(y,d)=>{t.push(Buffer.from(y,d))};e("ff744f63","hex"),e("00000002","hex");const r=new z(Buffer.alloc(256*4));for(let y=0;y<256;y++){let d=0;for(const w of this.hashes)parseInt(w.slice(0,2),16)<=y&&d++;r.writeUInt32BE(d)}t.push(r.buffer);for(const y of this.hashes)e(y,"hex");const o=new z(Buffer.alloc(this.hashes.length*4));for(const y of this.hashes)o.writeUInt32BE(this.crcs[y]);t.push(o.buffer);const c=new z(Buffer.alloc(this.hashes.length*4));for(const y of this.hashes)c.writeUInt32BE(this.offsets.get(y));t.push(c.buffer),e(this.packfileSha,"hex");const f=Buffer.concat(t),s=await Ft(f),h=Buffer.alloc(20);return h.write(s,"hex"),Buffer.concat([f,h])}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 I(`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]);this.readDepth++;const e={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new I("Tried to read from a GitPackIndex with no packfile loaded into memory");const r=(await this.pack).slice(t),o=new z(r),c=o.readUInt8(),f=c&112;let s=e[f];if(s===void 0)throw new I("Unrecognized type: 0b"+f.toString(2));const h=c&15;let y=h;c&128&&(y=na(o,h));let w=null,b=null;if(s==="ofs_delta"){const _=ra(o),P=t-_;({object:w,type:s}=await this.readSlice({start:P}))}if(s==="ref_delta"){const _=o.slice(20).toString("hex");({object:w,type:s}=await this.read({oid:_}))}const v=r.slice(o.tell());if(b=Buffer.from(await Jn(v)),b.byteLength!==y)throw new I(`Packfile told us object would have length ${y} but it had length ${b.byteLength}`);return w&&(b=Buffer.from(zn(b,w))),this.readDepth>3&&(this.offsetCache[t]={type:s,object:b}),{type:s,format:"content",object:b}}}class ft extends ot{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=ft.code,this.data={value:t}}}ft.code="InvalidOidError";class kt extends ot{constructor(t,e,r,o){super(`Object ${t} ${o?`at ${o}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=kt.code,this.data={oid:t,actual:e,expected:r,filepath:o}}}kt.code="ObjectTypeError";function ia(n){let t=n>0?n>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let e=n&511;return e&73?e=493:e=420,t!==8&&(e=0),(t<<12)+e}const H=2**32;function ir(n,t,e,r){if(n!==void 0&&t!==void 0)return[n,t];e===void 0&&(e=r.valueOf());const o=Math.floor(e/1e3),c=(e-o*1e3)*1e6;return[o,c]}function or(n){const[t,e]=ir(n.ctimeSeconds,n.ctimeNanoseconds,n.ctimeMs,n.ctime),[r,o]=ir(n.mtimeSeconds,n.mtimeNanoseconds,n.mtimeMs,n.mtime);return{ctimeSeconds:t%H,ctimeNanoseconds:e%H,mtimeSeconds:r%H,mtimeNanoseconds:o%H,dev:n.dev%H,ino:n.ino%H,mode:ia(n.mode%H),uid:n.uid%H,gid:n.gid%H,size:n.size>-1?n.size%H:0}}function oa(n){return{assumeValid:!!(n&32768),extended:!!(n&16384),stage:(n&12288)>>12,nameLength:n&4095}}function aa(n){const t=n.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(n.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Y{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)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 Y.fromBuffer(t);if(t===null)return new Y(null);throw new I("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new I("Index file is empty (.git/index)");const e=new Y,r=new z(t),o=r.toString("utf8",4);if(o!=="DIRC")throw new I(`Invalid dircache magic file number: ${o}`);const c=await Ft(t.slice(0,-20)),f=t.slice(-20).toString("hex");if(f!==c)throw new I(`Invalid checksum in GitIndex buffer: expected ${f} but saw ${c}`);const s=r.readUInt32BE();if(s!==2)throw new I(`Unsupported dircache version: ${s}`);const h=r.readUInt32BE();let y=0;for(;!r.eof()&&y<h;){const d={};d.ctimeSeconds=r.readUInt32BE(),d.ctimeNanoseconds=r.readUInt32BE(),d.mtimeSeconds=r.readUInt32BE(),d.mtimeNanoseconds=r.readUInt32BE(),d.dev=r.readUInt32BE(),d.ino=r.readUInt32BE(),d.mode=r.readUInt32BE(),d.uid=r.readUInt32BE(),d.gid=r.readUInt32BE(),d.size=r.readUInt32BE(),d.oid=r.slice(20).toString("hex");const w=r.readUInt16BE();d.flags=oa(w);const b=t.indexOf(0,r.tell()+1)-r.tell();if(b<1)throw new I(`Got a path length of: ${b}`);if(d.path=r.toString("utf8",b),d.path.includes("..\\")||d.path.includes("../"))throw new ht(d.path);let v=8-(r.tell()-12)%8;for(v===0&&(v=8);v--;){const _=r.readUInt8();if(_!==0)throw new I(`Expected 1-8 null characters but got '${_}' after ${d.path}`);if(r.eof())throw new I("Unexpected end of file")}d.stages=[],e._addEntry(d),y++}return e}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(wr)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(e=>e):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:e,oid:r,stage:o=0}){e||(e={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),e=or(e);const c=Buffer.from(t),f={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:o,nameLength:c.length<4095?c.length:4095},stages:[]};this._addEntry(f),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(`
50
50
  `)}static async _entryToBuffer(t){const e=Buffer.from(t.path),r=Math.ceil((62+e.length+1)/8)*8,o=Buffer.alloc(r),c=new z(o),f=or(t);return c.writeUInt32BE(f.ctimeSeconds),c.writeUInt32BE(f.ctimeNanoseconds),c.writeUInt32BE(f.mtimeSeconds),c.writeUInt32BE(f.mtimeNanoseconds),c.writeUInt32BE(f.dev),c.writeUInt32BE(f.ino),c.writeUInt32BE(f.mode),c.writeUInt32BE(f.uid),c.writeUInt32BE(f.gid),c.writeUInt32BE(f.size),c.write(t.oid,20,"hex"),c.writeUInt16BE(aa(t)),c.write(t.path,e.length,"utf8"),o}async toObject(){const t=Buffer.alloc(12),e=new z(t);e.write("DIRC",4,"utf8"),e.writeUInt32BE(2),e.writeUInt32BE(this.entriesFlat.length);let r=[];for(const s of this.entries)if(r.push(Y._entryToBuffer(s)),s.stages.length>1)for(const h of s.stages)h&&h!==s&&r.push(Y._entryToBuffer(h));r=await Promise.all(r);const o=Buffer.concat(r),c=Buffer.concat([t,o]),f=await Ft(c);return Buffer.concat([c,Buffer.from(f,"hex")])}}async function Dr(n,t){const e=pr(n);for(;;){const{value:r,done:o}=await e.next();if(r&&await t(r),o)break}e.return&&e.return()}async function ut(n){let t=0;const e=[];await Dr(n,c=>{e.push(c),t+=c.byteLength});const r=new Uint8Array(t);let o=0;for(const c of e)r.set(c,o),o+=c.byteLength;return r}class ae{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const e=this._waiting;this._waiting=null,e({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{this._waiting=t})}}class sa{static demux(t){const e=D.streamReader(t),r=new ae,o=new ae,c=new ae,f=async function(){const s=await e();if(s===null)return f();if(s===!0){r.end(),c.end(),t.error?o.destroy(t.error):o.end();return}switch(s[0]){case 1:{o.write(s.slice(1));break}case 2:{c.write(s.slice(1));break}case 3:{const h=s.slice(1);c.write(h),r.end(),c.end(),o.destroy(new Error(h.toString("utf8")));return}default:r.write(s)}f()};return f(),{packetlines:r,packfile:o,progress:c}}}async function jr(n){const{packetlines:t,packfile:e,progress:r}=sa.demux(n),o=[],c=[],f=[];let s=!1,h=!1;return new Promise((y,d)=>{Dr(t,w=>{const b=w.toString("utf8").trim();if(b.startsWith("shallow")){const v=b.slice(-41).trim();v.length!==40&&d(new ft(v)),o.push(v)}else if(b.startsWith("unshallow")){const v=b.slice(-41).trim();v.length!==40&&d(new ft(v)),c.push(v)}else if(b.startsWith("ACK")){const[,v,_]=b.split(" ");f.push({oid:v,status:_}),_||(h=!0)}else b.startsWith("NAK")?(s=!0,h=!0):(h=!0,s=!0);h&&(n.error?d(n.error):y({shallows:o,unshallows:c,acks:f,nak:s,packfile:e,progress:r}))}).finally(()=>{h||(n.error?d(n.error):y({shallows:o,unshallows:c,acks:f,nak:s,packfile:e,progress:r}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=de.Buffer);class Tt extends Error{constructor(t,e){super(`Authentication required to access private repository: ${t}`),this.name="GitAuthenticationError",this.repoUrl=t,this.status=e}}async function ca(n,t,e,r){const o=(r==null?void 0:r.additionalHeaders)||{},c=await Mr(n,t,o),f=await da(c.idx,t,e),s=e.map(v=>f[v].oid),h=s.length>0?await ya(n,s,o):null,y={};if(await Promise.all(e.map(async v=>{h&&(y[v]=await Lr(h.idx,f[v].oid))})),!(r!=null&&r.withObjects))return{files:y};const d=[],w=await c.idx.toBuffer();if(d.push({name:`pack-${c.idx.packfileSha}`,pack:c.packfile,index:lt(w),promisor:c.promisor}),h){const v=await h.idx.toBuffer();d.push({name:`pack-${h.idx.packfileSha}`,pack:h.packfile,index:lt(v),promisor:h.promisor})}const b={};for(const v of e)b[v]=f[v].oid;return{files:y,packfiles:d,objects:[...await ar(c),...await ar(h)],fileOids:b}}const fa=/^[0-9a-f]{40}$/i;async function ua(n,t,e={}){const r=await Mr(n,t,e),o=await pa(r.idx,t);return o!=null&&o.object?Cr(o):[]}async function la(n,t,e={}){const r=await ha(n,t);if(r.resolvedOid)return r.resolvedOid;const o=await le(n,r.refname,e);if(!o)throw new Error(`Git ref "${r.refname}" not found at ${n}`);return o}function Cr(n){return n.object.map(t=>{if(t.type==="blob")return{name:t.path,type:"file"};if(t.type==="tree"&&t.object)return{name:t.path,type:"folder",children:Cr(t)}}).filter(t=>!!(t!=null&&t.name))}async function Nr(n,t,e={}){const r=Buffer.from(await ut([D.encode(`command=ls-refs
51
51
  `),D.encode(`agent=git/2.37.3
52
52
  `),D.encode(`object-format=sha1