@enbox/identity-agent
Version:
| A library for building Web5 identity management applications | | ------------------------------------------------------------ |
1 lines • 2.04 MB
JavaScript
"use strict";var Web5IdentityAgent=(()=>{var age=Object.create;var B3=Object.defineProperty;var cge=Object.getOwnPropertyDescriptor;var dge=Object.getOwnPropertyNames;var uge=Object.getPrototypeOf,lge=Object.prototype.hasOwnProperty;var fge=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var hge=(t,e)=>()=>(t&&(e=t(t=0)),e);var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Br=(t,e)=>{for(var r in e)B3(t,r,{get:e[r],enumerable:!0})},uL=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dge(e))!lge.call(t,i)&&i!==r&&B3(t,i,{get:()=>e[i],enumerable:!(n=cge(e,i))||n.enumerable});return t};var Jt=(t,e,r)=>(r=t!=null?age(uge(t)):{},uL(e||!t||!t.__esModule?B3(r,"default",{value:t,enumerable:!0}):r,t)),pge=t=>uL(B3({},"__esModule",{value:!0}),t);var XI=V(D3=>{"use strict";f();D3.byteLength=yge;D3.toByteArray=vge;D3.fromByteArray=_ge;var ku=[],Oc=[],mge=typeof Uint8Array<"u"?Uint8Array:Array,YI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(a0=0,lL=YI.length;a0<lL;++a0)ku[a0]=YI[a0],Oc[YI.charCodeAt(a0)]=a0;var a0,lL;Oc[45]=62;Oc[95]=63;function fL(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function yge(t){var e=fL(t),r=e[0],n=e[1];return(r+n)*3/4-n}function gge(t,e,r){return(e+r)*3/4-r}function vge(t){var e,r=fL(t),n=r[0],i=r[1],o=new mge(gge(t,n,i)),s=0,a=i>0?n-4:n,d;for(d=0;d<a;d+=4)e=Oc[t.charCodeAt(d)]<<18|Oc[t.charCodeAt(d+1)]<<12|Oc[t.charCodeAt(d+2)]<<6|Oc[t.charCodeAt(d+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=Oc[t.charCodeAt(d)]<<2|Oc[t.charCodeAt(d+1)]>>4,o[s++]=e&255),i===1&&(e=Oc[t.charCodeAt(d)]<<10|Oc[t.charCodeAt(d+1)]<<4|Oc[t.charCodeAt(d+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function bge(t){return ku[t>>18&63]+ku[t>>12&63]+ku[t>>6&63]+ku[t&63]}function wge(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(bge(n));return i.join("")}function _ge(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(wge(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(ku[e>>2]+ku[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(ku[e>>10]+ku[e>>4&63]+ku[e<<2&63]+"=")),i.join("")}});var ek=V(QI=>{f();QI.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,d=(1<<a)-1,u=d>>1,c=-7,l=r?i-1:0,p=r?-1:1,h=t[e+l];for(l+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=o*256+t[e+l],l+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=s*256+t[e+l],l+=p,c-=8);if(o===0)o=1-u;else{if(o===d)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(h?-1:1)*s*Math.pow(2,o-n)};QI.write=function(t,e,r,n,i,o){var s,a,d,u=o*8-i-1,c=(1<<u)-1,l=c>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,g=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+l>=1?e+=p/d:e+=p*Math.pow(2,1-l),e*d>=2&&(s++,d/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(e*d-1)*Math.pow(2,i),s=s+l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+h]=a&255,h+=g,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+h]=s&255,h+=g,s/=256,u-=8);t[r+h-g]|=v*128}});var AL=V(iv=>{"use strict";f();var tk=XI(),nv=ek(),hL=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;iv.Buffer=we;iv.SlowBuffer=Pge;iv.INSPECT_MAX_BYTES=50;var O3=2147483647;iv.kMaxLength=O3;we.TYPED_ARRAY_SUPPORT=xge();!we.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 xge(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(we.prototype,"parent",{enumerable:!0,get:function(){if(we.isBuffer(this))return this.buffer}});Object.defineProperty(we.prototype,"offset",{enumerable:!0,get:function(){if(we.isBuffer(this))return this.byteOffset}});function Hl(t){if(t>O3)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,we.prototype),e}function we(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ok(t)}return yL(t,e,r)}we.poolSize=8192;function yL(t,e,r){if(typeof t=="string")return Sge(t,e);if(ArrayBuffer.isView(t))return Age(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ru(t,ArrayBuffer)||t&&Ru(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ru(t,SharedArrayBuffer)||t&&Ru(t.buffer,SharedArrayBuffer)))return nk(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return we.from(n,e,r);var i=Tge(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return we.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}we.from=function(t,e,r){return yL(t,e,r)};Object.setPrototypeOf(we.prototype,Uint8Array.prototype);Object.setPrototypeOf(we,Uint8Array);function gL(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Ege(t,e,r){return gL(t),t<=0?Hl(t):e!==void 0?typeof r=="string"?Hl(t).fill(e,r):Hl(t).fill(e):Hl(t)}we.alloc=function(t,e,r){return Ege(t,e,r)};function ok(t){return gL(t),Hl(t<0?0:sk(t)|0)}we.allocUnsafe=function(t){return ok(t)};we.allocUnsafeSlow=function(t){return ok(t)};function Sge(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!we.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=vL(t,e)|0,n=Hl(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function rk(t){for(var e=t.length<0?0:sk(t.length)|0,r=Hl(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Age(t){if(Ru(t,Uint8Array)){var e=new Uint8Array(t);return nk(e.buffer,e.byteOffset,e.byteLength)}return rk(t)}function nk(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,we.prototype),n}function Tge(t){if(we.isBuffer(t)){var e=sk(t.length)|0,r=Hl(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ak(t.length)?Hl(0):rk(t);if(t.type==="Buffer"&&Array.isArray(t.data))return rk(t.data)}function sk(t){if(t>=O3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O3.toString(16)+" bytes");return t|0}function Pge(t){return+t!=t&&(t=0),we.alloc(+t)}we.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==we.prototype};we.compare=function(e,r){if(Ru(e,Uint8Array)&&(e=we.from(e,e.offset,e.byteLength)),Ru(r,Uint8Array)&&(r=we.from(r,r.offset,r.byteLength)),!we.isBuffer(e)||!we.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};we.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};we.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return we.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=we.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(Ru(s,Uint8Array))o+s.length>i.length?we.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(we.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function vL(t,e){if(we.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ru(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ik(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return SL(t).length;default:if(i)return n?-1:ik(t).length;e=(""+e).toLowerCase(),i=!0}}we.byteLength=vL;function Ige(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Nge(this,e,r);case"utf8":case"utf-8":return wL(this,e,r);case"ascii":return jge(this,e,r);case"latin1":case"binary":return $ge(this,e,r);case"base64":return Cge(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Uge(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}we.prototype._isBuffer=!0;function c0(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}we.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)c0(this,r,r+1);return this};we.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)c0(this,r,r+3),c0(this,r+1,r+2);return this};we.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)c0(this,r,r+7),c0(this,r+1,r+6),c0(this,r+2,r+5),c0(this,r+3,r+4);return this};we.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?wL(this,0,e):Ige.apply(this,arguments)};we.prototype.toLocaleString=we.prototype.toString;we.prototype.equals=function(e){if(!we.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:we.compare(this,e)===0};we.prototype.inspect=function(){var e="",r=iv.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};hL&&(we.prototype[hL]=we.prototype.inspect);we.prototype.compare=function(e,r,n,i,o){if(Ru(e,Uint8Array)&&(e=we.from(e,e.offset,e.byteLength)),!we.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,a=n-r,d=Math.min(s,a),u=this.slice(i,o),c=e.slice(r,n),l=0;l<d;++l)if(u[l]!==c[l]){s=u[l],a=c[l];break}return s<a?-1:a<s?1:0};function bL(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ak(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=we.from(e,n)),we.isBuffer(e))return e.length===0?-1:pL(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):pL(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function pL(t,e,r,n,i){var o=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,r/=2}function d(h,g){return o===1?h[g]:h.readUInt16BE(g*o)}var u;if(i){var c=-1;for(u=r;u<s;u++)if(d(t,u)===d(e,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===a)return c*o}else c!==-1&&(u-=u-c),c=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){for(var l=!0,p=0;p<a;p++)if(d(t,u+p)!==d(e,p)){l=!1;break}if(l)return u}return-1}we.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};we.prototype.indexOf=function(e,r,n){return bL(this,e,r,n,!0)};we.prototype.lastIndexOf=function(e,r,n){return bL(this,e,r,n,!1)};function kge(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(s*2,2),16);if(ak(a))return s;t[r+s]=a}return s}function Rge(t,e,r,n){return C3(ik(e,t.length-r),t,r,n)}function Bge(t,e,r,n){return C3(Kge(e),t,r,n)}function Dge(t,e,r,n){return C3(SL(e),t,r,n)}function Oge(t,e,r,n){return C3(zge(e,t.length-r),t,r,n)}we.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return kge(this,e,r,n);case"utf8":case"utf-8":return Rge(this,e,r,n);case"ascii":case"latin1":case"binary":return Bge(this,e,r,n);case"base64":return Dge(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oge(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};we.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cge(t,e,r){return e===0&&r===t.length?tk.fromByteArray(t):tk.fromByteArray(t.slice(e,r))}function wL(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var d,u,c,l;switch(a){case 1:o<128&&(s=o);break;case 2:d=t[i+1],(d&192)===128&&(l=(o&31)<<6|d&63,l>127&&(s=l));break;case 3:d=t[i+1],u=t[i+2],(d&192)===128&&(u&192)===128&&(l=(o&15)<<12|(d&63)<<6|u&63,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:d=t[i+1],u=t[i+2],c=t[i+3],(d&192)===128&&(u&192)===128&&(c&192)===128&&(l=(o&15)<<18|(d&63)<<12|(u&63)<<6|c&63,l>65535&&l<1114112&&(s=l))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Mge(n)}var mL=4096;function Mge(t){var e=t.length;if(e<=mL)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=mL));return r}function jge(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function $ge(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Nge(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Fge[t[o]];return i}function Uge(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}we.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,we.prototype),i};function ro(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}we.prototype.readUintLE=we.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||ro(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};we.prototype.readUintBE=we.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||ro(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};we.prototype.readUint8=we.prototype.readUInt8=function(e,r){return e=e>>>0,r||ro(e,1,this.length),this[e]};we.prototype.readUint16LE=we.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||ro(e,2,this.length),this[e]|this[e+1]<<8};we.prototype.readUint16BE=we.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||ro(e,2,this.length),this[e]<<8|this[e+1]};we.prototype.readUint32LE=we.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};we.prototype.readUint32BE=we.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};we.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||ro(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};we.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||ro(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};we.prototype.readInt8=function(e,r){return e=e>>>0,r||ro(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};we.prototype.readInt16LE=function(e,r){e=e>>>0,r||ro(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};we.prototype.readInt16BE=function(e,r){e=e>>>0,r||ro(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};we.prototype.readInt32LE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};we.prototype.readInt32BE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};we.prototype.readFloatLE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),nv.read(this,e,!0,23,4)};we.prototype.readFloatBE=function(e,r){return e=e>>>0,r||ro(e,4,this.length),nv.read(this,e,!1,23,4)};we.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||ro(e,8,this.length),nv.read(this,e,!0,52,8)};we.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||ro(e,8,this.length),nv.read(this,e,!1,52,8)};function pa(t,e,r,n,i,o){if(!we.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}we.prototype.writeUintLE=we.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;pa(this,e,r,n,o,0)}var s=1,a=0;for(this[r]=e&255;++a<n&&(s*=256);)this[r+a]=e/s&255;return r+n};we.prototype.writeUintBE=we.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;pa(this,e,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=e&255;--s>=0&&(a*=256);)this[r+s]=e/a&255;return r+n};we.prototype.writeUint8=we.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,1,255,0),this[r]=e&255,r+1};we.prototype.writeUint16LE=we.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};we.prototype.writeUint16BE=we.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};we.prototype.writeUint32LE=we.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};we.prototype.writeUint32BE=we.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};we.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);pa(this,e,r,n,o-1,-o)}var s=0,a=1,d=0;for(this[r]=e&255;++s<n&&(a*=256);)e<0&&d===0&&this[r+s-1]!==0&&(d=1),this[r+s]=(e/a>>0)-d&255;return r+n};we.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);pa(this,e,r,n,o-1,-o)}var s=n-1,a=1,d=0;for(this[r+s]=e&255;--s>=0&&(a*=256);)e<0&&d===0&&this[r+s+1]!==0&&(d=1),this[r+s]=(e/a>>0)-d&255;return r+n};we.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};we.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};we.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};we.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};we.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||pa(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function _L(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function xL(t,e,r,n,i){return e=+e,r=r>>>0,i||_L(t,e,r,4,34028234663852886e22,-34028234663852886e22),nv.write(t,e,r,n,23,4),r+4}we.prototype.writeFloatLE=function(e,r,n){return xL(this,e,r,!0,n)};we.prototype.writeFloatBE=function(e,r,n){return xL(this,e,r,!1,n)};function EL(t,e,r,n,i){return e=+e,r=r>>>0,i||_L(t,e,r,8,17976931348623157e292,-17976931348623157e292),nv.write(t,e,r,n,52,8),r+8}we.prototype.writeDoubleLE=function(e,r,n){return EL(this,e,r,!0,n)};we.prototype.writeDoubleBE=function(e,r,n){return EL(this,e,r,!1,n)};we.prototype.copy=function(e,r,n,i){if(!we.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};we.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!we.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var a=we.isBuffer(e)?e:we.from(e,i),d=a.length;if(d===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=a[s%d]}return this};var qge=/[^+/0-9A-Za-z-_]/g;function Lge(t){if(t=t.split("=")[0],t=t.trim().replace(qge,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ik(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Kge(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function zge(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function SL(t){return tk.toByteArray(Lge(t))}function C3(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ru(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ak(t){return t!==t}var Fge=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Zl=V((tZe,kL)=>{f();var bi=kL.exports={},Bu,Du;function ck(){throw new Error("setTimeout has not been defined")}function dk(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Bu=setTimeout:Bu=ck}catch{Bu=ck}try{typeof clearTimeout=="function"?Du=clearTimeout:Du=dk}catch{Du=dk}})();function TL(t){if(Bu===setTimeout)return setTimeout(t,0);if((Bu===ck||!Bu)&&setTimeout)return Bu=setTimeout,setTimeout(t,0);try{return Bu(t,0)}catch{try{return Bu.call(null,t,0)}catch{return Bu.call(this,t,0)}}}function Vge(t){if(Du===clearTimeout)return clearTimeout(t);if((Du===dk||!Du)&&clearTimeout)return Du=clearTimeout,clearTimeout(t);try{return Du(t)}catch{try{return Du.call(null,t)}catch{return Du.call(this,t)}}}var Wl=[],ov=!1,d0,M3=-1;function Gge(){!ov||!d0||(ov=!1,d0.length?Wl=d0.concat(Wl):M3=-1,Wl.length&&PL())}function PL(){if(!ov){var t=TL(Gge);ov=!0;for(var e=Wl.length;e;){for(d0=Wl,Wl=[];++M3<e;)d0&&d0[M3].run();M3=-1,e=Wl.length}d0=null,ov=!1,Vge(t)}}bi.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Wl.push(new IL(t,e)),Wl.length===1&&!ov&&TL(PL)};function IL(t,e){this.fun=t,this.array=e}IL.prototype.run=function(){this.fun.apply(null,this.array)};bi.title="browser";bi.browser=!0;bi.env={};bi.argv=[];bi.version="";bi.versions={};function Jl(){}bi.on=Jl;bi.addListener=Jl;bi.once=Jl;bi.off=Jl;bi.removeListener=Jl;bi.removeAllListeners=Jl;bi.emit=Jl;bi.prependListener=Jl;bi.prependOnceListener=Jl;bi.listeners=function(t){return[]};bi.binding=function(t){throw new Error("process.binding is not supported")};bi.cwd=function(){return"/"};bi.chdir=function(t){throw new Error("process.chdir is not supported")};bi.umask=function(){return 0}});var C,P,nZe,f=hge(()=>{C=Jt(AL()),P=Jt(Zl()),nZe=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var BL=V((oZe,RL)=>{f();var Hge=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;RL.exports=Hge});var OL=V((aZe,DL)=>{f();var Wge=BL(),Jge=typeof self=="object"&&self&&self.Object===Object&&self,Zge=Wge||Jge||Function("return this")();DL.exports=Zge});var uk=V((dZe,CL)=>{f();var Yge=OL(),Xge=Yge.Symbol;CL.exports=Xge});var NL=V((lZe,$L)=>{f();var ML=uk(),jL=Object.prototype,Qge=jL.hasOwnProperty,eve=jL.toString,Z1=ML?ML.toStringTag:void 0;function tve(t){var e=Qge.call(t,Z1),r=t[Z1];try{t[Z1]=void 0;var n=!0}catch{}var i=eve.call(t);return n&&(e?t[Z1]=r:delete t[Z1]),i}$L.exports=tve});var qL=V((hZe,UL)=>{f();var rve=Object.prototype,nve=rve.toString;function ive(t){return nve.call(t)}UL.exports=ive});var FL=V((mZe,zL)=>{f();var LL=uk(),ove=NL(),sve=qL(),ave="[object Null]",cve="[object Undefined]",KL=LL?LL.toStringTag:void 0;function dve(t){return t==null?t===void 0?cve:ave:KL&&KL in Object(t)?ove(t):sve(t)}zL.exports=dve});var GL=V((gZe,VL)=>{f();function uve(t,e){return function(r){return t(e(r))}}VL.exports=uve});var WL=V((bZe,HL)=>{f();var lve=GL(),fve=lve(Object.getPrototypeOf,Object);HL.exports=fve});var ZL=V((_Ze,JL)=>{f();function hve(t){return t!=null&&typeof t=="object"}JL.exports=hve});var QL=V((EZe,XL)=>{f();var pve=FL(),mve=WL(),yve=ZL(),gve="[object Object]",vve=Function.prototype,bve=Object.prototype,YL=vve.toString,wve=bve.hasOwnProperty,_ve=YL.call(Object);function xve(t){if(!yve(t)||pve(t)!=gve)return!1;var e=mve(t);if(e===null)return!0;var r=wve.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&YL.call(r)==_ve}XL.exports=xve});var Nc=V((fnt,bV)=>{"use strict";f();function vV(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function l_e(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=""),e&&(r.code=e);try{return vV(t,r)}catch{r.message=t.message,r.stack=t.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(t)),vV(new i,r)}}bV.exports=l_e});var mG=V((H2,B8)=>{f();(function(t,e){"use strict";var r={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(h){if(!Array.isArray(h)&&!ArrayBuffer.isView(h))return!1;for(var g=0;g<h.length;g++)if(!Number.isInteger(h[g])||h[g]<0||h[g]>255)return!1;return!0}function i(h,g){return(h&65535)*g+(((h>>>16)*g&65535)<<16)}function o(h,g){return h<<g|h>>>32-g}function s(h){return h^=h>>>16,h=i(h,2246822507),h^=h>>>13,h=i(h,3266489909),h^=h>>>16,h}function a(h,g){h=[h[0]>>>16,h[0]&65535,h[1]>>>16,h[1]&65535],g=[g[0]>>>16,g[0]&65535,g[1]>>>16,g[1]&65535];var v=[0,0,0,0];return v[3]+=h[3]+g[3],v[2]+=v[3]>>>16,v[3]&=65535,v[2]+=h[2]+g[2],v[1]+=v[2]>>>16,v[2]&=65535,v[1]+=h[1]+g[1],v[0]+=v[1]>>>16,v[1]&=65535,v[0]+=h[0]+g[0],v[0]&=65535,[v[0]<<16|v[1],v[2]<<16|v[3]]}function d(h,g){h=[h[0]>>>16,h[0]&65535,h[1]>>>16,h[1]&65535],g=[g[0]>>>16,g[0]&65535,g[1]>>>16,g[1]&65535];var v=[0,0,0,0];return v[3]+=h[3]*g[3],v[2]+=v[3]>>>16,v[3]&=65535,v[2]+=h[2]*g[3],v[1]+=v[2]>>>16,v[2]&=65535,v[2]+=h[3]*g[2],v[1]+=v[2]>>>16,v[2]&=65535,v[1]+=h[1]*g[3],v[0]+=v[1]>>>16,v[1]&=65535,v[1]+=h[2]*g[2],v[0]+=v[1]>>>16,v[1]&=65535,v[1]+=h[3]*g[1],v[0]+=v[1]>>>16,v[1]&=65535,v[0]+=h[0]*g[3]+h[1]*g[2]+h[2]*g[1]+h[3]*g[0],v[0]&=65535,[v[0]<<16|v[1],v[2]<<16|v[3]]}function u(h,g){return g%=64,g===32?[h[1],h[0]]:g<32?[h[0]<<g|h[1]>>>32-g,h[1]<<g|h[0]>>>32-g]:(g-=32,[h[1]<<g|h[0]>>>32-g,h[0]<<g|h[1]>>>32-g])}function c(h,g){return g%=64,g===0?h:g<32?[h[0]<<g|h[1]>>>32-g,h[1]<<g]:[h[1]<<g-32,0]}function l(h,g){return[h[0]^g[0],h[1]^g[1]]}function p(h){return h=l(h,[0,h[0]>>>1]),h=d(h,[4283543511,3981806797]),h=l(h,[0,h[0]>>>1]),h=d(h,[3301882366,444984403]),h=l(h,[0,h[0]>>>1]),h}r.x86.hash32=function(h,g){if(r.inputValidation&&!n(h))return e;g=g||0;for(var v=h.length%4,E=h.length-v,A=g,D=0,B=3432918353,$=461845907,U=0;U<E;U=U+4)D=h[U]|h[U+1]<<8|h[U+2]<<16|h[U+3]<<24,D=i(D,B),D=o(D,15),D=i(D,$),A^=D,A=o(A,13),A=i(A,5)+3864292196;switch(D=0,v){case 3:D^=h[U+2]<<16;case 2:D^=h[U+1]<<8;case 1:D^=h[U],D=i(D,B),D=o(D,15),D=i(D,$),A^=D}return A^=h.length,A=s(A),A>>>0},r.x86.hash128=function(h,g){if(r.inputValidation&&!n(h))return e;g=g||0;for(var v=h.length%16,E=h.length-v,A=g,D=g,B=g,$=g,U=0,L=0,K=0,F=0,W=597399067,q=2869860233,S=951274213,M=2716044179,R=0;R<E;R=R+16)U=h[R]|h[R+1]<<8|h[R+2]<<16|h[R+3]<<24,L=h[R+4]|h[R+5]<<8|h[R+6]<<16|h[R+7]<<24,K=h[R+8]|h[R+9]<<8|h[R+10]<<16|h[R+11]<<24,F=h[R+12]|h[R+13]<<8|h[R+14]<<16|h[R+15]<<24,U=i(U,W),U=o(U,15),U=i(U,q),A^=U,A=o(A,19),A+=D,A=i(A,5)+1444728091,L=i(L,q),L=o(L,16),L=i(L,S),D^=L,D=o(D,17),D+=B,D=i(D,5)+197830471,K=i(K,S),K=o(K,17),K=i(K,M),B^=K,B=o(B,15),B+=$,B=i(B,5)+2530024501,F=i(F,M),F=o(F,18),F=i(F,W),$^=F,$=o($,13),$+=A,$=i($,5)+850148119;switch(U=0,L=0,K=0,F=0,v){case 15:F^=h[R+14]<<16;case 14:F^=h[R+13]<<8;case 13:F^=h[R+12],F=i(F,M),F=o(F,18),F=i(F,W),$^=F;case 12:K^=h[R+11]<<24;case 11:K^=h[R+10]<<16;case 10:K^=h[R+9]<<8;case 9:K^=h[R+8],K=i(K,S),K=o(K,17),K=i(K,M),B^=K;case 8:L^=h[R+7]<<24;case 7:L^=h[R+6]<<16;case 6:L^=h[R+5]<<8;case 5:L^=h[R+4],L=i(L,q),L=o(L,16),L=i(L,S),D^=L;case 4:U^=h[R+3]<<24;case 3:U^=h[R+2]<<16;case 2:U^=h[R+1]<<8;case 1:U^=h[R],U=i(U,W),U=o(U,15),U=i(U,q),A^=U}return A^=h.length,D^=h.length,B^=h.length,$^=h.length,A+=D,A+=B,A+=$,D+=A,B+=A,$+=A,A=s(A),D=s(D),B=s(B),$=s($),A+=D,A+=B,A+=$,D+=A,B+=A,$+=A,("00000000"+(A>>>0).toString(16)).slice(-8)+("00000000"+(D>>>0).toString(16)).slice(-8)+("00000000"+(B>>>0).toString(16)).slice(-8)+("00000000"+($>>>0).toString(16)).slice(-8)},r.x64.hash128=function(h,g){if(r.inputValidation&&!n(h))return e;g=g||0;for(var v=h.length%16,E=h.length-v,A=[0,g],D=[0,g],B=[0,0],$=[0,0],U=[2277735313,289559509],L=[1291169091,658871167],K=0;K<E;K=K+16)B=[h[K+4]|h[K+5]<<8|h[K+6]<<16|h[K+7]<<24,h[K]|h[K+1]<<8|h[K+2]<<16|h[K+3]<<24],$=[h[K+12]|h[K+13]<<8|h[K+14]<<16|h[K+15]<<24,h[K+8]|h[K+9]<<8|h[K+10]<<16|h[K+11]<<24],B=d(B,U),B=u(B,31),B=d(B,L),A=l(A,B),A=u(A,27),A=a(A,D),A=a(d(A,[0,5]),[0,1390208809]),$=d($,L),$=u($,33),$=d($,U),D=l(D,$),D=u(D,31),D=a(D,A),D=a(d(D,[0,5]),[0,944331445]);switch(B=[0,0],$=[0,0],v){case 15:$=l($,c([0,h[K+14]],48));case 14:$=l($,c([0,h[K+13]],40));case 13:$=l($,c([0,h[K+12]],32));case 12:$=l($,c([0,h[K+11]],24));case 11:$=l($,c([0,h[K+10]],16));case 10:$=l($,c([0,h[K+9]],8));case 9:$=l($,[0,h[K+8]]),$=d($,L),$=u($,33),$=d($,U),D=l(D,$);case 8:B=l(B,c([0,h[K+7]],56));case 7:B=l(B,c([0,h[K+6]],48));case 6:B=l(B,c([0,h[K+5]],40));case 5:B=l(B,c([0,h[K+4]],32));case 4:B=l(B,c([0,h[K+3]],24));case 3:B=l(B,c([0,h[K+2]],16));case 2:B=l(B,c([0,h[K+1]],8));case 1:B=l(B,[0,h[K]]),B=d(B,U),B=u(B,31),B=d(B,L),A=l(A,B)}return A=l(A,[0,h.length]),D=l(D,[0,h.length]),A=a(A,D),D=a(D,A),A=p(A),D=p(D),A=a(A,D),D=a(D,A),("00000000"+(A[0]>>>0).toString(16)).slice(-8)+("00000000"+(A[1]>>>0).toString(16)).slice(-8)+("00000000"+(D[0]>>>0).toString(16)).slice(-8)+("00000000"+(D[1]>>>0).toString(16)).slice(-8)},typeof H2<"u"?(typeof B8<"u"&&B8.exports&&(H2=B8.exports=r),H2.murmurHash3=r):typeof define=="function"&&define.amd?define([],function(){return r}):(r._murmurHash3=t.murmurHash3,r.noConflict=function(){return t.murmurHash3=r._murmurHash3,r._murmurHash3=e,r.noConflict=e,r},t.murmurHash3=r)})(H2)});var gG=V((Gst,yG)=>{f();yG.exports=mG()});var wG=V((tat,bG)=>{"use strict";f();bG.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,r){let n=this._internalPositionFor(e,!1);if(r===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let i=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):i=!0,this._setInternalPos(n,e,r,i),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let r=this._internalPositionFor(e,!0);if(r!==-1)return this._data[r][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let r=0;for(;r<this.length;)e(this.get(r),r,this),r++}map(e){let r=0,n=new Array(this.length);for(;r<this.length;)n[r]=e(this.get(r),r,this),r++;return n}reduce(e,r){let n=0,i=r;for(;n<this.length;){let o=this.get(n);i=e(i,o,n),n++}return i}find(e){let r=0,n,i;for(;r<this.length&&!n;)i=this.get(r),n=e(i),r++;return n?i:void 0}_internalPositionFor(e,r){let n=this._bytePosFor(e,r);if(n>=this._bitArrays.length)return-1;let i=this._bitArrays[n],o=e-n*7;if(!((i&1<<o)>0))return-1;let a=this._bitArrays.slice(0,n).reduce(wxe,0),d=~(4294967295<<o+1),u=vG(i&d);return a+u-1}_bytePosFor(e,r){let n=Math.floor(e/7),i=n+1;for(;!r&&this._bitArrays.length<i;)this._bitArrays.push(0);return n}_setBit(e){let r=this._bytePosFor(e,!1);this._bitArrays[r]|=1<<e-r*7}_unsetBit(e){let r=this._bytePosFor(e,!1);this._bitArrays[r]&=~(1<<e-r*7)}_setInternalPos(e,r,n,i){let o=this._data,s=[r,n];if(i)this._sortData(),o[e]=s;else{if(o.length)if(o[o.length-1][0]>=r)o.push(s);else if(o[0][0]<=r)o.unshift(s);else{let a=Math.round(o.length/2);this._data=o.slice(0,a).concat(s).concat(o.slice(a))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(_xe),this._changedData=!1}bitField(){let e=[],r=8,n=0,i=0,o,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(o=s.shift(),n=7);let d=Math.min(n,r),u=~(255<<d),c=o&u;i|=c<<8-r,o=o>>>d,n-=d,r-=d,(!r||!n&&!s.length)&&(e.push(i),i=0,r=8)}for(var a=e.length-1;a>0&&e[a]===0;a--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(xxe)}};function wxe(t,e){return t+vG(e)}function vG(t){let e=t;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function _xe(t,e){return t[0]-e[0]}function xxe(t){return t[1]}});var _i=V(Gv=>{"use strict";f();var R7=XI(),Fv=ek(),CG=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Gv.Buffer=ve;Gv.SlowBuffer=qxe;Gv.INSPECT_MAX_BYTES=50;var $8=2147483647;Gv.kMaxLength=$8;ve.TYPED_ARRAY_SUPPORT=Mxe();!ve.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 Mxe(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.buffer}});Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.byteOffset}});function lf(t){if(t>$8)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,ve.prototype),e}function ve(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C7(t)}return NG(t,e,r)}ve.poolSize=8192;function NG(t,e,r){if(typeof t=="string")return $xe(t,e);if(ArrayBuffer.isView(t))return Nxe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Fu(t,ArrayBuffer)||t&&Fu(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fu(t,SharedArrayBuffer)||t&&Fu(t.buffer,SharedArrayBuffer)))return D7(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return ve.from(n,e,r);let i=Uxe(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return ve.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}ve.from=function(t,e,r){return NG(t,e,r)};Object.setPrototypeOf(ve.prototype,Uint8Array.prototype);Object.setPrototypeOf(ve,Uint8Array);function UG(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function jxe(t,e,r){return UG(t),t<=0?lf(t):e!==void 0?typeof r=="string"?lf(t).fill(e,r):lf(t).fill(e):lf(t)}ve.alloc=function(t,e,r){return jxe(t,e,r)};function C7(t){return UG(t),lf(t<0?0:M7(t)|0)}ve.allocUnsafe=function(t){return C7(t)};ve.allocUnsafeSlow=function(t){return C7(t)};function $xe(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!ve.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=qG(t,e)|0,n=lf(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function B7(t){let e=t.length<0?0:M7(t.length)|0,r=lf(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Nxe(t){if(Fu(t,Uint8Array)){let e=new Uint8Array(t);return D7(e.buffer,e.byteOffset,e.byteLength)}return B7(t)}function D7(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,ve.prototype),n}function Uxe(t){if(ve.isBuffer(t)){let e=M7(t.length)|0,r=lf(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||$7(t.length)?lf(0):B7(t);if(t.type==="Buffer"&&Array.isArray(t.data))return B7(t.data)}function M7(t){if(t>=$8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$8.toString(16)+" bytes");return t|0}function qxe(t){return+t!=t&&(t=0),ve.alloc(+t)}ve.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ve.prototype};ve.compare=function(e,r){if(Fu(e,Uint8Array)&&(e=ve.from(e,e.offset,e.byteLength)),Fu(r,Uint8Array)&&(r=ve.from(r,r.offset,r.byteLength)),!ve.isBuffer(e)||!ve.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};ve.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};ve.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return ve.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=ve.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){let s=e[n];if(Fu(s,Uint8Array))o+s.length>i.length?(ve.isBuffer(s)||(s=ve.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(ve.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function qG(t,e){if(ve.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Fu(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O7(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return JG(t).length;default:if(i)return n?-1:O7(t).length;e=(""+e).toLowerCase(),i=!0}}ve.byteLength=qG;function Lxe(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Yxe(this,e,r);case"utf8":case"utf-8":return KG(this,e,r);case"ascii":return Jxe(this,e,r);case"latin1":case"binary":return Zxe(this,e,r);case"base64":return Hxe(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xxe(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}ve.prototype._isBuffer=!0;function M0(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}ve.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)M0(this,r,r+1);return this};ve.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)M0(this,r,r+3),M0(this,r+1,r+2);return this};ve.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)M0(this,r,r+7),M0(this,r+1,r+6),M0(this,r+2,r+5),M0(this,r+3,r+4);return this};ve.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?KG(this,0,e):Lxe.apply(this,arguments)};ve.prototype.toLocaleString=ve.prototype.toString;ve.prototype.equals=function(e){if(!ve.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:ve.compare(this,e)===0};ve.prototype.inspect=function(){let e="",r=Gv.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};CG&&(ve.prototype[CG]=ve.prototype.inspect);ve.prototype.compare=function(e,r,n,i,o){if(Fu(e,Uint8Array)&&(e=ve.from(e,e.offset,e.byteLength)),!ve.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;let s=o-i,a=n-r,d=Math.min(s,a),u=this.slice(i,o),c=e.slice(r,n);for(let l=0;l<d;++l)if(u[l]!==c[l]){s=u[l],a=c[l];break}return s<a?-1:a<s?1:0};function LG(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,$7(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=ve.from(e,n)),ve.isBuffer(e))return e.length===0?-1:MG(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):MG(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function MG(t,e,r,n,i){let o=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,r/=2}function d(c,l){return o===1?c[l]:c.readUInt16BE(l*o)}let u;if(i){let c=-1;for(u=r;u<s;u++)if(d(t,u)===d(e,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===a)return c*o}else c!==-1&&(u-=u-c),c=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){let c=!0;for(let l=0;l<a;l++)if(d(t,u+l)!==d(e,l)){c=!1;break}if(c)return u}return-1}ve.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};ve.prototype.indexOf=function(e,r,n){return LG(this,e,r,n,!0)};ve.prototype.lastIndexOf=function(e,r,n){return LG(this,e,r,n,!1)};function Kxe(t,e,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=e.length;n>o/2&&(n=o/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if($7(a))return s;t[r+s]=a}return s}function zxe(t,e,r,n){return N8(O7(e,t.length-r),t,r,n)}function Fxe(t,e,r,n){return N8(rEe(e),t,r,n)}function Vxe(t,e,r,n){return N8(JG(e),t,r,n)}function Gxe(t,e,r,n){return N8(nEe(e,t.length-r),t,r,n)}ve.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return Kxe(this,e,r,n);case"utf8":case"utf-8":return zxe(this,e,r,n);case"ascii":case"latin1":case"binary":return Fxe(this,e,r,n);case"base64":return Vxe(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gxe(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hxe(t,e,r){return e===0&&r===t.length?R7.fromByteArray(t):R7.fromByteArray(t.slice(e,r))}function KG(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){let d,u,c,l;switch(a){case 1:o<128&&(s=o);break;case 2:d=t[i+1],(d&192)===128&&(l=(o&31)<<6|d&63,l>127&&(s=l));break;case 3:d=t[i+1],u=t[i+2],(d&192)===128&&(u&192)===128&&(l=(o&15)<<12|(d&63)<<6|u&63,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:d=t[i+1],u=t[i+2],c=t[i+3],(d&192)===128&&(u&192)===128&&(c&192)===128&&(l=(o&15)<<18|(d&63)<<12|(u&63)<<6|c&63,l>65535&&l<1114112&&(s=l))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Wxe(n)}var jG=4096;function Wxe(t){let e=t.length;if(e<=jG)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=jG));return r}function Jxe(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Zxe(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Yxe(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=e;o<r;++o)i+=iEe[t[o]];return i}function Xxe(t,e,r){let n=t.slice(e,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}ve.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let i=this.subarray(e,r);return Object.setPrototypeOf(i,ve.prototype),i};function uo(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||uo(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return i};ve.prototype.readUintBE=ve.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||uo(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};ve.prototype.readUint8=ve.prototype.readUInt8=function(e,r){return e=e>>>0,r||uo(e,1,this.length),this[e]};ve.prototype.readUint16LE=ve.prototype.readUInt16LE