@web5/agent
Version:
1 lines • 2.17 MB
JavaScript
"use strict";var Web5Agent=(()=>{var e1e=Object.create;var r3=Object.defineProperty;var t1e=Object.getOwnPropertyDescriptor;var r1e=Object.getOwnPropertyNames;var n1e=Object.getPrototypeOf,i1e=Object.prototype.hasOwnProperty;var o1e=(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 s1e=(t,e)=>()=>(t&&(e=t(t=0)),e);var G=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dr=(t,e)=>{for(var r in e)r3(t,r,{get:e[r],enumerable:!0})},sz=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of r1e(e))!i1e.call(t,i)&&i!==r&&r3(t,i,{get:()=>e[i],enumerable:!(n=t1e(e,i))||n.enumerable});return t};var yt=(t,e,r)=>(r=t!=null?e1e(n1e(t)):{},sz(e||!t||!t.__esModule?r3(r,"default",{value:t,enumerable:!0}):r,t)),a1e=t=>sz(r3({},"__esModule",{value:!0}),t);var XR=G(n3=>{"use strict";f();n3.byteLength=d1e;n3.toByteArray=l1e;n3.fromByteArray=p1e;var ll=[],ld=[],c1e=typeof Uint8Array<"u"?Uint8Array:Array,YR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i0=0,az=YR.length;i0<az;++i0)ll[i0]=YR[i0],ld[YR.charCodeAt(i0)]=i0;var i0,az;ld[45]=62;ld[95]=63;function cz(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 d1e(t){var e=cz(t),r=e[0],n=e[1];return(r+n)*3/4-n}function u1e(t,e,r){return(e+r)*3/4-r}function l1e(t){var e,r=cz(t),n=r[0],i=r[1],o=new c1e(u1e(t,n,i)),s=0,a=i>0?n-4:n,d;for(d=0;d<a;d+=4)e=ld[t.charCodeAt(d)]<<18|ld[t.charCodeAt(d+1)]<<12|ld[t.charCodeAt(d+2)]<<6|ld[t.charCodeAt(d+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=ld[t.charCodeAt(d)]<<2|ld[t.charCodeAt(d+1)]>>4,o[s++]=e&255),i===1&&(e=ld[t.charCodeAt(d)]<<10|ld[t.charCodeAt(d+1)]<<4|ld[t.charCodeAt(d+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function f1e(t){return ll[t>>18&63]+ll[t>>12&63]+ll[t>>6&63]+ll[t&63]}function h1e(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(f1e(n));return i.join("")}function p1e(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(h1e(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(ll[e>>2]+ll[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(ll[e>>10]+ll[e>>4&63]+ll[e<<2&63]+"=")),i.join("")}});var eD=G(QR=>{f();QR.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,m=t[e+l];for(l+=p,o=m&(1<<-c)-1,m>>=-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:(m?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(m?-1:1)*s*Math.pow(2,o-n)};QR.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,m=n?0:o-1,g=n?1:-1,b=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+m]=a&255,m+=g,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+m]=s&255,m+=g,s/=256,u-=8);t[r+m-g]|=b*128}});var _z=G(Pw=>{"use strict";f();var tD=XR(),Sw=eD(),dz=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Pw.Buffer=we;Pw.SlowBuffer=v1e;Pw.INSPECT_MAX_BYTES=50;var i3=2147483647;Pw.kMaxLength=i3;we.TYPED_ARRAY_SUPPORT=m1e();!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 m1e(){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 jf(t){if(t>i3)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 oD(t)}return fz(t,e,r)}we.poolSize=8192;function fz(t,e,r){if(typeof t=="string")return g1e(t,e);if(ArrayBuffer.isView(t))return b1e(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(fl(t,ArrayBuffer)||t&&fl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fl(t,SharedArrayBuffer)||t&&fl(t.buffer,SharedArrayBuffer)))return nD(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=w1e(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 fz(t,e,r)};Object.setPrototypeOf(we.prototype,Uint8Array.prototype);Object.setPrototypeOf(we,Uint8Array);function hz(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 y1e(t,e,r){return hz(t),t<=0?jf(t):e!==void 0?typeof r=="string"?jf(t).fill(e,r):jf(t).fill(e):jf(t)}we.alloc=function(t,e,r){return y1e(t,e,r)};function oD(t){return hz(t),jf(t<0?0:sD(t)|0)}we.allocUnsafe=function(t){return oD(t)};we.allocUnsafeSlow=function(t){return oD(t)};function g1e(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!we.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=pz(t,e)|0,n=jf(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function rD(t){for(var e=t.length<0?0:sD(t.length)|0,r=jf(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function b1e(t){if(fl(t,Uint8Array)){var e=new Uint8Array(t);return nD(e.buffer,e.byteOffset,e.byteLength)}return rD(t)}function nD(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 w1e(t){if(we.isBuffer(t)){var e=sD(t.length)|0,r=jf(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||aD(t.length)?jf(0):rD(t);if(t.type==="Buffer"&&Array.isArray(t.data))return rD(t.data)}function sD(t){if(t>=i3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i3.toString(16)+" bytes");return t|0}function v1e(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(fl(e,Uint8Array)&&(e=we.from(e,e.offset,e.byteLength)),fl(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(fl(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 pz(t,e){if(we.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||fl(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 iD(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return vz(t).length;default:if(i)return n?-1:iD(t).length;e=(""+e).toLowerCase(),i=!0}}we.byteLength=pz;function _1e(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 D1e(this,e,r);case"utf8":case"utf-8":return yz(this,e,r);case"ascii":return k1e(this,e,r);case"latin1":case"binary":return R1e(this,e,r);case"base64":return T1e(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B1e(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}we.prototype._isBuffer=!0;function o0(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)o0(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)o0(this,r,r+3),o0(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)o0(this,r,r+7),o0(this,r+1,r+6),o0(this,r+2,r+5),o0(this,r+3,r+4);return this};we.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?yz(this,0,e):_1e.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=Pw.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};dz&&(we.prototype[dz]=we.prototype.inspect);we.prototype.compare=function(e,r,n,i,o){if(fl(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 mz(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,aD(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:uz(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):uz(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function uz(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(m,g){return o===1?m[g]:m.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 mz(this,e,r,n,!0)};we.prototype.lastIndexOf=function(e,r,n){return mz(this,e,r,n,!1)};function x1e(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(aD(a))return s;t[r+s]=a}return s}function E1e(t,e,r,n){return o3(iD(e,t.length-r),t,r,n)}function S1e(t,e,r,n){return o3(O1e(e),t,r,n)}function P1e(t,e,r,n){return o3(vz(e),t,r,n)}function A1e(t,e,r,n){return o3(j1e(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 x1e(this,e,r,n);case"utf8":case"utf-8":return E1e(this,e,r,n);case"ascii":case"latin1":case"binary":return S1e(this,e,r,n);case"base64":return P1e(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A1e(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 T1e(t,e,r){return e===0&&r===t.length?tD.fromByteArray(t):tD.fromByteArray(t.slice(e,r))}function yz(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 I1e(n)}var lz=4096;function I1e(t){var e=t.length;if(e<=lz)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=lz));return r}function k1e(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 R1e(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 D1e(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+=$1e[t[o]];return i}function B1e(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 vo(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||vo(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||vo(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||vo(e,1,this.length),this[e]};we.prototype.readUint16LE=we.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||vo(e,2,this.length),this[e]|this[e+1]<<8};we.prototype.readUint16BE=we.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||vo(e,2,this.length),this[e]<<8|this[e+1]};we.prototype.readUint32LE=we.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||vo(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||vo(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||vo(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||vo(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||vo(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};we.prototype.readInt16LE=function(e,r){e=e>>>0,r||vo(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||vo(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||vo(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||vo(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||vo(e,4,this.length),Sw.read(this,e,!0,23,4)};we.prototype.readFloatBE=function(e,r){return e=e>>>0,r||vo(e,4,this.length),Sw.read(this,e,!1,23,4)};we.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||vo(e,8,this.length),Sw.read(this,e,!0,52,8)};we.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||vo(e,8,this.length),Sw.read(this,e,!1,52,8)};function Fa(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;Fa(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;Fa(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||Fa(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||Fa(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||Fa(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||Fa(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||Fa(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);Fa(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);Fa(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||Fa(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||Fa(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||Fa(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||Fa(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||Fa(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 gz(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 bz(t,e,r,n,i){return e=+e,r=r>>>0,i||gz(t,e,r,4,34028234663852886e22,-34028234663852886e22),Sw.write(t,e,r,n,23,4),r+4}we.prototype.writeFloatLE=function(e,r,n){return bz(this,e,r,!0,n)};we.prototype.writeFloatBE=function(e,r,n){return bz(this,e,r,!1,n)};function wz(t,e,r,n,i){return e=+e,r=r>>>0,i||gz(t,e,r,8,17976931348623157e292,-17976931348623157e292),Sw.write(t,e,r,n,52,8),r+8}we.prototype.writeDoubleLE=function(e,r,n){return wz(this,e,r,!0,n)};we.prototype.writeDoubleBE=function(e,r,n){return wz(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 M1e=/[^+/0-9A-Za-z-_]/g;function C1e(t){if(t=t.split("=")[0],t=t.trim().replace(M1e,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function iD(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 O1e(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function j1e(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 vz(t){return tD.toByteArray(C1e(t))}function o3(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 fl(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function aD(t){return t!==t}var $1e=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 Ms=G((ynt,Pz)=>{f();var Pi=Pz.exports={},hl,pl;function cD(){throw new Error("setTimeout has not been defined")}function dD(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?hl=setTimeout:hl=cD}catch{hl=cD}try{typeof clearTimeout=="function"?pl=clearTimeout:pl=dD}catch{pl=dD}})();function xz(t){if(hl===setTimeout)return setTimeout(t,0);if((hl===cD||!hl)&&setTimeout)return hl=setTimeout,setTimeout(t,0);try{return hl(t,0)}catch{try{return hl.call(null,t,0)}catch{return hl.call(this,t,0)}}}function N1e(t){if(pl===clearTimeout)return clearTimeout(t);if((pl===dD||!pl)&&clearTimeout)return pl=clearTimeout,clearTimeout(t);try{return pl(t)}catch{try{return pl.call(null,t)}catch{return pl.call(this,t)}}}var $f=[],Aw=!1,s0,s3=-1;function U1e(){!Aw||!s0||(Aw=!1,s0.length?$f=s0.concat($f):s3=-1,$f.length&&Ez())}function Ez(){if(!Aw){var t=xz(U1e);Aw=!0;for(var e=$f.length;e;){for(s0=$f,$f=[];++s3<e;)s0&&s0[s3].run();s3=-1,e=$f.length}s0=null,Aw=!1,N1e(t)}}Pi.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];$f.push(new Sz(t,e)),$f.length===1&&!Aw&&xz(Ez)};function Sz(t,e){this.fun=t,this.array=e}Sz.prototype.run=function(){this.fun.apply(null,this.array)};Pi.title="browser";Pi.browser=!0;Pi.env={};Pi.argv=[];Pi.version="";Pi.versions={};function Nf(){}Pi.on=Nf;Pi.addListener=Nf;Pi.once=Nf;Pi.off=Nf;Pi.removeListener=Nf;Pi.removeAllListeners=Nf;Pi.emit=Nf;Pi.prependListener=Nf;Pi.prependOnceListener=Nf;Pi.listeners=function(t){return[]};Pi.binding=function(t){throw new Error("process.binding is not supported")};Pi.cwd=function(){return"/"};Pi.chdir=function(t){throw new Error("process.chdir is not supported")};Pi.umask=function(){return 0}});var C,k,bnt,f=s1e(()=>{C=yt(_z()),k=yt(Ms()),bnt=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 Tz=G((vnt,Az)=>{f();var K1e=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;Az.exports=K1e});var kz=G((xnt,Iz)=>{f();var q1e=Tz(),L1e=typeof self=="object"&&self&&self.Object===Object&&self,F1e=q1e||L1e||Function("return this")();Iz.exports=F1e});var uD=G((Snt,Rz)=>{f();var z1e=kz(),W1e=z1e.Symbol;Rz.exports=W1e});var Cz=G((Ant,Mz)=>{f();var Dz=uD(),Bz=Object.prototype,H1e=Bz.hasOwnProperty,G1e=Bz.toString,P_=Dz?Dz.toStringTag:void 0;function V1e(t){var e=H1e.call(t,P_),r=t[P_];try{t[P_]=void 0;var n=!0}catch{}var i=G1e.call(t);return n&&(e?t[P_]=r:delete t[P_]),i}Mz.exports=V1e});var jz=G((Int,Oz)=>{f();var J1e=Object.prototype,Z1e=J1e.toString;function Y1e(t){return Z1e.call(t)}Oz.exports=Y1e});var Kz=G((Rnt,Uz)=>{f();var $z=uD(),X1e=Cz(),Q1e=jz(),e2e="[object Null]",t2e="[object Undefined]",Nz=$z?$z.toStringTag:void 0;function r2e(t){return t==null?t===void 0?t2e:e2e:Nz&&Nz in Object(t)?X1e(t):Q1e(t)}Uz.exports=r2e});var Lz=G((Bnt,qz)=>{f();function n2e(t,e){return function(r){return t(e(r))}}qz.exports=n2e});var zz=G((Cnt,Fz)=>{f();var i2e=Lz(),o2e=i2e(Object.getPrototypeOf,Object);Fz.exports=o2e});var Hz=G((jnt,Wz)=>{f();function s2e(t){return t!=null&&typeof t=="object"}Wz.exports=s2e});var Jz=G((Nnt,Vz)=>{f();var a2e=Kz(),c2e=zz(),d2e=Hz(),u2e="[object Object]",l2e=Function.prototype,f2e=Object.prototype,Gz=l2e.toString,h2e=f2e.hasOwnProperty,p2e=Gz.call(Object);function m2e(t){if(!d2e(t)||a2e(t)!=u2e)return!1;var e=c2e(t);if(e===null)return!0;var r=h2e.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Gz.call(r)==p2e}Vz.exports=m2e});var Tc=G((Sut,yV)=>{"use strict";f();function mV(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function s6e(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 mV(t,r)}catch{r.message=t.message,r.stack=t.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(t)),mV(new i,r)}}yV.exports=s6e});var lJ=G((wx,Q3)=>{f();(function(t,e){"use strict";var r={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var g=0;g<m.length;g++)if(!Number.isInteger(m[g])||m[g]<0||m[g]>255)return!1;return!0}function i(m,g){return(m&65535)*g+(((m>>>16)*g&65535)<<16)}function o(m,g){return m<<g|m>>>32-g}function s(m){return m^=m>>>16,m=i(m,2246822507),m^=m>>>13,m=i(m,3266489909),m^=m>>>16,m}function a(m,g){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],g=[g[0]>>>16,g[0]&65535,g[1]>>>16,g[1]&65535];var b=[0,0,0,0];return b[3]+=m[3]+g[3],b[2]+=b[3]>>>16,b[3]&=65535,b[2]+=m[2]+g[2],b[1]+=b[2]>>>16,b[2]&=65535,b[1]+=m[1]+g[1],b[0]+=b[1]>>>16,b[1]&=65535,b[0]+=m[0]+g[0],b[0]&=65535,[b[0]<<16|b[1],b[2]<<16|b[3]]}function d(m,g){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],g=[g[0]>>>16,g[0]&65535,g[1]>>>16,g[1]&65535];var b=[0,0,0,0];return b[3]+=m[3]*g[3],b[2]+=b[3]>>>16,b[3]&=65535,b[2]+=m[2]*g[3],b[1]+=b[2]>>>16,b[2]&=65535,b[2]+=m[3]*g[2],b[1]+=b[2]>>>16,b[2]&=65535,b[1]+=m[1]*g[3],b[0]+=b[1]>>>16,b[1]&=65535,b[1]+=m[2]*g[2],b[0]+=b[1]>>>16,b[1]&=65535,b[1]+=m[3]*g[1],b[0]+=b[1]>>>16,b[1]&=65535,b[0]+=m[0]*g[3]+m[1]*g[2]+m[2]*g[1]+m[3]*g[0],b[0]&=65535,[b[0]<<16|b[1],b[2]<<16|b[3]]}function u(m,g){return g%=64,g===32?[m[1],m[0]]:g<32?[m[0]<<g|m[1]>>>32-g,m[1]<<g|m[0]>>>32-g]:(g-=32,[m[1]<<g|m[0]>>>32-g,m[0]<<g|m[1]>>>32-g])}function c(m,g){return g%=64,g===0?m:g<32?[m[0]<<g|m[1]>>>32-g,m[1]<<g]:[m[1]<<g-32,0]}function l(m,g){return[m[0]^g[0],m[1]^g[1]]}function p(m){return m=l(m,[0,m[0]>>>1]),m=d(m,[4283543511,3981806797]),m=l(m,[0,m[0]>>>1]),m=d(m,[3301882366,444984403]),m=l(m,[0,m[0]>>>1]),m}r.x86.hash32=function(m,g){if(r.inputValidation&&!n(m))return e;g=g||0;for(var b=m.length%4,x=m.length-b,S=g,T=0,P=3432918353,j=461845907,$=0;$<x;$=$+4)T=m[$]|m[$+1]<<8|m[$+2]<<16|m[$+3]<<24,T=i(T,P),T=o(T,15),T=i(T,j),S^=T,S=o(S,13),S=i(S,5)+3864292196;switch(T=0,b){case 3:T^=m[$+2]<<16;case 2:T^=m[$+1]<<8;case 1:T^=m[$],T=i(T,P),T=o(T,15),T=i(T,j),S^=T}return S^=m.length,S=s(S),S>>>0},r.x86.hash128=function(m,g){if(r.inputValidation&&!n(m))return e;g=g||0;for(var b=m.length%16,x=m.length-b,S=g,T=g,P=g,j=g,$=0,K=0,F=0,L=0,W=597399067,q=2869860233,I=951274213,A=2716044179,D=0;D<x;D=D+16)$=m[D]|m[D+1]<<8|m[D+2]<<16|m[D+3]<<24,K=m[D+4]|m[D+5]<<8|m[D+6]<<16|m[D+7]<<24,F=m[D+8]|m[D+9]<<8|m[D+10]<<16|m[D+11]<<24,L=m[D+12]|m[D+13]<<8|m[D+14]<<16|m[D+15]<<24,$=i($,W),$=o($,15),$=i($,q),S^=$,S=o(S,19),S+=T,S=i(S,5)+1444728091,K=i(K,q),K=o(K,16),K=i(K,I),T^=K,T=o(T,17),T+=P,T=i(T,5)+197830471,F=i(F,I),F=o(F,17),F=i(F,A),P^=F,P=o(P,15),P+=j,P=i(P,5)+2530024501,L=i(L,A),L=o(L,18),L=i(L,W),j^=L,j=o(j,13),j+=S,j=i(j,5)+850148119;switch($=0,K=0,F=0,L=0,b){case 15:L^=m[D+14]<<16;case 14:L^=m[D+13]<<8;case 13:L^=m[D+12],L=i(L,A),L=o(L,18),L=i(L,W),j^=L;case 12:F^=m[D+11]<<24;case 11:F^=m[D+10]<<16;case 10:F^=m[D+9]<<8;case 9:F^=m[D+8],F=i(F,I),F=o(F,17),F=i(F,A),P^=F;case 8:K^=m[D+7]<<24;case 7:K^=m[D+6]<<16;case 6:K^=m[D+5]<<8;case 5:K^=m[D+4],K=i(K,q),K=o(K,16),K=i(K,I),T^=K;case 4:$^=m[D+3]<<24;case 3:$^=m[D+2]<<16;case 2:$^=m[D+1]<<8;case 1:$^=m[D],$=i($,W),$=o($,15),$=i($,q),S^=$}return S^=m.length,T^=m.length,P^=m.length,j^=m.length,S+=T,S+=P,S+=j,T+=S,P+=S,j+=S,S=s(S),T=s(T),P=s(P),j=s(j),S+=T,S+=P,S+=j,T+=S,P+=S,j+=S,("00000000"+(S>>>0).toString(16)).slice(-8)+("00000000"+(T>>>0).toString(16)).slice(-8)+("00000000"+(P>>>0).toString(16)).slice(-8)+("00000000"+(j>>>0).toString(16)).slice(-8)},r.x64.hash128=function(m,g){if(r.inputValidation&&!n(m))return e;g=g||0;for(var b=m.length%16,x=m.length-b,S=[0,g],T=[0,g],P=[0,0],j=[0,0],$=[2277735313,289559509],K=[1291169091,658871167],F=0;F<x;F=F+16)P=[m[F+4]|m[F+5]<<8|m[F+6]<<16|m[F+7]<<24,m[F]|m[F+1]<<8|m[F+2]<<16|m[F+3]<<24],j=[m[F+12]|m[F+13]<<8|m[F+14]<<16|m[F+15]<<24,m[F+8]|m[F+9]<<8|m[F+10]<<16|m[F+11]<<24],P=d(P,$),P=u(P,31),P=d(P,K),S=l(S,P),S=u(S,27),S=a(S,T),S=a(d(S,[0,5]),[0,1390208809]),j=d(j,K),j=u(j,33),j=d(j,$),T=l(T,j),T=u(T,31),T=a(T,S),T=a(d(T,[0,5]),[0,944331445]);switch(P=[0,0],j=[0,0],b){case 15:j=l(j,c([0,m[F+14]],48));case 14:j=l(j,c([0,m[F+13]],40));case 13:j=l(j,c([0,m[F+12]],32));case 12:j=l(j,c([0,m[F+11]],24));case 11:j=l(j,c([0,m[F+10]],16));case 10:j=l(j,c([0,m[F+9]],8));case 9:j=l(j,[0,m[F+8]]),j=d(j,K),j=u(j,33),j=d(j,$),T=l(T,j);case 8:P=l(P,c([0,m[F+7]],56));case 7:P=l(P,c([0,m[F+6]],48));case 6:P=l(P,c([0,m[F+5]],40));case 5:P=l(P,c([0,m[F+4]],32));case 4:P=l(P,c([0,m[F+3]],24));case 3:P=l(P,c([0,m[F+2]],16));case 2:P=l(P,c([0,m[F+1]],8));case 1:P=l(P,[0,m[F]]),P=d(P,$),P=u(P,31),P=d(P,K),S=l(S,P)}return S=l(S,[0,m.length]),T=l(T,[0,m.length]),S=a(S,T),T=a(T,S),S=p(S),T=p(T),S=a(S,T),T=a(T,S),("00000000"+(S[0]>>>0).toString(16)).slice(-8)+("00000000"+(S[1]>>>0).toString(16)).slice(-8)+("00000000"+(T[0]>>>0).toString(16)).slice(-8)+("00000000"+(T[1]>>>0).toString(16)).slice(-8)},typeof wx<"u"?(typeof Q3<"u"&&Q3.exports&&(wx=Q3.exports=r),wx.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)})(wx)});var hJ=G((ept,fJ)=>{f();fJ.exports=lJ()});var yJ=G((dpt,mJ)=>{"use strict";f();mJ.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(h5e,0),d=~(4294967295<<o+1),u=pJ(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(p5e),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(m5e)}};function h5e(t,e){return t+pJ(e)}function pJ(t){let e=t;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function p5e(t,e){return t[0]-e[0]}function m5e(t){return t[1]}});var hn=G(hv=>{"use strict";f();var k9=XR(),lv=eD(),RJ=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;hv.Buffer=ge;hv.SlowBuffer=M5e;hv.INSPECT_MAX_BYTES=50;var o8=2147483647;hv.kMaxLength=o8;ge.TYPED_ARRAY_SUPPORT=I5e();!ge.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 I5e(){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(ge.prototype,"parent",{enumerable:!0,get:function(){if(ge.isBuffer(this))return this.buffer}});Object.defineProperty(ge.prototype,"offset",{enumerable:!0,get:function(){if(ge.isBuffer(this))return this.byteOffset}});function Xf(t){if(t>o8)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,ge.prototype),e}function ge(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 M9(t)}return CJ(t,e,r)}ge.poolSize=8192;function CJ(t,e,r){if(typeof t=="string")return R5e(t,e);if(ArrayBuffer.isView(t))return D5e(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(Sl(t,ArrayBuffer)||t&&Sl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Sl(t,SharedArrayBuffer)||t&&Sl(t.buffer,SharedArrayBuffer)))return D9(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 ge.from(n,e,r);let i=B5e(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return ge.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)}ge.from=function(t,e,r){return CJ(t,e,r)};Object.setPrototypeOf(ge.prototype,Uint8Array.prototype);Object.setPrototypeOf(ge,Uint8Array);function OJ(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 k5e(t,e,r){return OJ(t),t<=0?Xf(t):e!==void 0?typeof r=="string"?Xf(t).fill(e,r):Xf(t).fill(e):Xf(t)}ge.alloc=function(t,e,r){return k5e(t,e,r)};function M9(t){return OJ(t),Xf(t<0?0:C9(t)|0)}ge.allocUnsafe=function(t){return M9(t)};ge.allocUnsafeSlow=function(t){return M9(t)};function R5e(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!ge.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=jJ(t,e)|0,n=Xf(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function R9(t){let e=t.length<0?0:C9(t.length)|0,r=Xf(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function D5e(t){if(Sl(t,Uint8Array)){let e=new Uint8Array(t);return D9(e.buffer,e.byteOffset,e.byteLength)}return R9(t)}function D9(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,ge.prototype),n}function B5e(t){if(ge.isBuffer(t)){let e=C9(t.length)|0,r=Xf(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||j9(t.length)?Xf(0):R9(t);if(t.type==="Buffer"&&Array.isArray(t.data))return R9(t.data)}function C9(t){if(t>=o8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o8.toString(16)+" bytes");return t|0}function M5e(t){return+t!=t&&(t=0),ge.alloc(+t)}ge.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ge.prototype};ge.compare=function(e,r){if(Sl(e,Uint8Array)&&(e=ge.from(e,e.offset,e.byteLength)),Sl(r,Uint8Array)&&(r=ge.from(r,r.offset,r.byteLength)),!ge.isBuffer(e)||!ge.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};ge.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}};ge.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return ge.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=ge.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){let s=e[n];if(Sl(s,Uint8Array))o+s.length>i.length?(ge.isBuffer(s)||(s=ge.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(ge.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function jJ(t,e){if(ge.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Sl(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 B9(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return WJ(t).length;default:if(i)return n?-1:B9(t).length;e=(""+e).toLowerCase(),i=!0}}ge.byteLength=jJ;function C5e(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 z5e(this,e,r);case"utf8":case"utf-8":return NJ(this,e,r);case"ascii":return L5e(this,e,r);case"latin1":case"binary":return F5e(this,e,r);case"base64":return K5e(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W5e(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}ge.prototype._isBuffer=!0;function j0(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}ge.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)j0(this,r,r+1);return this};ge.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)j0(this,r,r+3),j0(this,r+1,r+2);return this};ge.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)j0(this,r,r+7),j0(this,r+1,r+6),j0(this,r+2,r+5),j0(this,r+3,r+4);return this};ge.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?NJ(this,0,e):C5e.apply(this,arguments)};ge.prototype.toLocaleString=ge.prototype.toString;ge.prototype.equals=function(e){if(!ge.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:ge.compare(this,e)===0};ge.prototype.inspect=function(){let e="",r=hv.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};RJ&&(ge.prototype[RJ]=ge.prototype.inspect);ge.prototype.compare=function(e,r,n,i,o){if(Sl(e,Uint8Array)&&(e=ge.from(e,e.offset,e.byteLength)),!ge.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 $J(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,j9(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=ge.from(e,n)),ge.isBuffer(e))return e.length===0?-1:DJ(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):DJ(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function DJ(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}ge.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};ge.prototype.indexOf=function(e,r,n){return $J(this,e,r,n,!0)};ge.prototype.lastIndexOf=function(e,r,n){return $J(this,e,r,n,!1)};function O5e(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(j9(a))return s;t[r+s]=a}return s}function j5e(t,e,r,n){return s8(B9(e,t.length-r),t,r,n)}function $5e(t,e,r,n){return s8(J5e(e),t,r,n)}function N5e(t,e,r,n){return s8(WJ(e),t,r,n)}function U5e(t,e,r,n){return s8(Z5e(e,t.length-r),t,r,n)}ge.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 O5e(this,e,r,n);case"utf8":case"utf-8":return j5e(this,e,r,n);case"ascii":case"latin1":case"binary":return $5e(this,e,r,n);case"base64":return N5e(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U5e(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K5e(t,e,r){return e===0&&r===t.length?k9.fromByteArray(t):k9.fromByteArray(t.slice(e,r))}function NJ(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 q5e(n)}var BJ=4096;function q5e(t){let e=t.length;if(e<=BJ)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=BJ));return r}function L5e(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 F5e(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 z5e(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+=Y5e[t[o]];return i}function W5e(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}ge.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,ge.prototype),i};function Io(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")}ge.prototype.readUintLE=ge.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Io(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return i};ge.prototype.readUintBE=ge.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Io(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};ge.prototype.readUint8=ge.prototype.readUInt8=function(e,r){return e=e>>>0,r||Io(e,1,this.length),this[e]};ge.prototype.readUint16LE=ge.prototype.readUInt16LE=functio