multichain-address-validator
Version:
Multichain address validator for Bitcoin and other blockchains.
1 lines • 116 kB
JavaScript
var MCAV=(()=>{var Bx=Object.create;var te=Object.defineProperty;var vx=Object.getOwnPropertyDescriptor;var Ex=Object.getOwnPropertyNames;var Ix=Object.getPrototypeOf,Cx=Object.prototype.hasOwnProperty;var Ux=(e,t)=>()=>(e&&(t=e(e=0)),t);var L0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tx=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},qt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let x of Ex(t))!Cx.call(e,x)&&x!==r&&te(e,x,{get:()=>t[x],enumerable:!(n=vx(t,x))||n.enumerable});return e};var a0=(e,t,r)=>(r=e!=null?Bx(Ix(e)):{},qt(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Lx=e=>qt(te({},"__esModule",{value:!0}),e);var Yt=L0(re=>{"use strict";s();re.byteLength=kx;re.toByteArray=Ox;re.fromByteArray=Vx;var e0=[],Y=[],Fx=typeof Uint8Array<"u"?Uint8Array:Array,ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B0=0,Kt=ke.length;B0<Kt;++B0)e0[B0]=ke[B0],Y[ke.charCodeAt(B0)]=B0;var B0,Kt;Y[45]=62;Y[95]=63;function Jt(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function kx(e){var t=Jt(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Sx(e,t,r){return(t+r)*3/4-r}function Ox(e){var t,r=Jt(e),n=r[0],x=r[1],i=new Fx(Sx(e,n,x)),a=0,f=x>0?n-4:n,o;for(o=0;o<f;o+=4)t=Y[e.charCodeAt(o)]<<18|Y[e.charCodeAt(o+1)]<<12|Y[e.charCodeAt(o+2)]<<6|Y[e.charCodeAt(o+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return x===2&&(t=Y[e.charCodeAt(o)]<<2|Y[e.charCodeAt(o+1)]>>4,i[a++]=t&255),x===1&&(t=Y[e.charCodeAt(o)]<<10|Y[e.charCodeAt(o+1)]<<4|Y[e.charCodeAt(o+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Hx(e){return e0[e>>18&63]+e0[e>>12&63]+e0[e>>6&63]+e0[e&63]}function Rx(e,t,r){for(var n,x=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),x.push(Hx(n));return x.join("")}function Vx(e){for(var t,r=e.length,n=r%3,x=[],i=16383,a=0,f=r-n;a<f;a+=i)x.push(Rx(e,a,a+i>f?f:a+i));return n===1?(t=e[r-1],x.push(e0[t>>2]+e0[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],x.push(e0[t>>10]+e0[t>>4&63]+e0[t<<2&63]+"=")),x.join("")}});var Zt=L0(Se=>{s();Se.read=function(e,t,r,n,x){var i,a,f=x*8-n-1,o=(1<<f)-1,d=o>>1,h=-7,u=r?x-1:0,m=r?-1:1,p=e[t+u];for(u+=m,i=p&(1<<-h)-1,p>>=-h,h+=f;h>0;i=i*256+e[t+u],u+=m,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+e[t+u],u+=m,h-=8);if(i===0)i=1-d;else{if(i===o)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-d}return(p?-1:1)*a*Math.pow(2,i-n)};Se.write=function(e,t,r,n,x,i){var a,f,o,d=i*8-x-1,h=(1<<d)-1,u=h>>1,m=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,v=n?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+u>=1?t+=m/o:t+=m*Math.pow(2,1-u),t*o>=2&&(a++,o/=2),a+u>=h?(f=0,a=h):a+u>=1?(f=(t*o-1)*Math.pow(2,x),a=a+u):(f=t*Math.pow(2,u-1)*Math.pow(2,x),a=0));x>=8;e[r+p]=f&255,p+=v,f/=256,x-=8);for(a=a<<x|f,d+=x;d>0;e[r+p]=a&255,p+=v,a/=256,d-=8);e[r+p-v]|=g*128}});var H0=L0(O0=>{"use strict";s();var Oe=Yt(),k0=Zt(),Qt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O0.Buffer=l;O0.SlowBuffer=Gx;O0.INSPECT_MAX_BYTES=50;var ne=2147483647;O0.kMaxLength=ne;l.TYPED_ARRAY_SUPPORT=Mx();!l.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 Mx(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function f0(e){if(e>ne)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Me(e)}return nr(e,t,r)}l.poolSize=8192;function nr(e,t,r){if(typeof e=="string")return Nx(e,t);if(ArrayBuffer.isView(e))return $x(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(t0(e,ArrayBuffer)||e&&t0(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(t0(e,SharedArrayBuffer)||e&&t0(e.buffer,SharedArrayBuffer)))return Re(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return l.from(n,t,r);let x=Px(e);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}l.from=function(e,t,r){return nr(e,t,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function xr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Dx(e,t,r){return xr(e),e<=0?f0(e):t!==void 0?typeof r=="string"?f0(e).fill(t,r):f0(e).fill(t):f0(e)}l.alloc=function(e,t,r){return Dx(e,t,r)};function Me(e){return xr(e),f0(e<0?0:De(e)|0)}l.allocUnsafe=function(e){return Me(e)};l.allocUnsafeSlow=function(e){return Me(e)};function Nx(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ir(e,t)|0,n=f0(r),x=n.write(e,t);return x!==r&&(n=n.slice(0,x)),n}function He(e){let t=e.length<0?0:De(e.length)|0,r=f0(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function $x(e){if(t0(e,Uint8Array)){let t=new Uint8Array(e);return Re(t.buffer,t.byteOffset,t.byteLength)}return He(e)}function Re(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function Px(e){if(l.isBuffer(e)){let t=De(e.length)|0,r=f0(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||$e(e.length)?f0(0):He(e);if(e.type==="Buffer"&&Array.isArray(e.data))return He(e.data)}function De(e){if(e>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return e|0}function Gx(e){return+e!=e&&(e=0),l.alloc(+e)}l.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==l.prototype};l.compare=function(t,r){if(t0(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),t0(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(t)||!l.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,x=r.length;for(let i=0,a=Math.min(n,x);i<a;++i)if(t[i]!==r[i]){n=t[i],x=r[i];break}return n<x?-1:x<n?1:0};l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};l.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return l.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let x=l.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){let a=t[n];if(t0(a,Uint8Array))i+a.length>x.length?(l.isBuffer(a)||(a=l.from(a)),a.copy(x,i)):Uint8Array.prototype.set.call(x,a,i);else if(l.isBuffer(a))a.copy(x,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return x};function ir(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||t0(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let x=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ve(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return lr(e).length;default:if(x)return n?-1:Ve(e).length;t=(""+t).toLowerCase(),x=!0}}l.byteLength=ir;function zx(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ei(this,t,r);case"utf8":case"utf-8":return fr(this,t,r);case"ascii":return Zx(this,t,r);case"latin1":case"binary":return Qx(this,t,r);case"base64":return Jx(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ti(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function v0(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}l.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)v0(this,r,r+1);return this};l.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)v0(this,r,r+3),v0(this,r+1,r+2);return this};l.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)v0(this,r,r+7),v0(this,r+1,r+6),v0(this,r+2,r+5),v0(this,r+3,r+4);return this};l.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?fr(this,0,t):zx.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:l.compare(this,t)===0};l.prototype.inspect=function(){let t="",r=O0.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qt&&(l.prototype[Qt]=l.prototype.inspect);l.prototype.compare=function(t,r,n,x,i){if(t0(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),x===void 0&&(x=0),i===void 0&&(i=this.length),r<0||n>t.length||x<0||i>this.length)throw new RangeError("out of range index");if(x>=i&&r>=n)return 0;if(x>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,x>>>=0,i>>>=0,this===t)return 0;let a=i-x,f=n-r,o=Math.min(a,f),d=this.slice(x,i),h=t.slice(r,n);for(let u=0;u<o;++u)if(d[u]!==h[u]){a=d[u],f=h[u];break}return a<f?-1:f<a?1:0};function ar(e,t,r,n,x){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,$e(r)&&(r=x?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(x)return-1;r=e.length-1}else if(r<0)if(x)r=0;else return-1;if(typeof t=="string"&&(t=l.from(t,n)),l.isBuffer(t))return t.length===0?-1:er(e,t,r,n,x);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):er(e,[t],r,n,x);throw new TypeError("val must be string, number or Buffer")}function er(e,t,r,n,x){let i=1,a=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;i=2,a/=2,f/=2,r/=2}function o(h,u){return i===1?h[u]:h.readUInt16BE(u*i)}let d;if(x){let h=-1;for(d=r;d<a;d++)if(o(e,d)===o(t,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===f)return h*i}else h!==-1&&(d-=d-h),h=-1}else for(r+f>a&&(r=a-f),d=r;d>=0;d--){let h=!0;for(let u=0;u<f;u++)if(o(e,d+u)!==o(t,u)){h=!1;break}if(h)return d}return-1}l.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};l.prototype.indexOf=function(t,r,n){return ar(this,t,r,n,!0)};l.prototype.lastIndexOf=function(t,r,n){return ar(this,t,r,n,!1)};function jx(e,t,r,n){r=Number(r)||0;let x=e.length-r;n?(n=Number(n),n>x&&(n=x)):n=x;let i=t.length;n>i/2&&(n=i/2);let a;for(a=0;a<n;++a){let f=parseInt(t.substr(a*2,2),16);if($e(f))return a;e[r+a]=f}return a}function Xx(e,t,r,n){return xe(Ve(t,e.length-r),e,r,n)}function Wx(e,t,r,n){return xe(ii(t),e,r,n)}function qx(e,t,r,n){return xe(lr(t),e,r,n)}function Kx(e,t,r,n){return xe(ai(t,e.length-r),e,r,n)}l.prototype.write=function(t,r,n,x){if(r===void 0)x="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")x=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,x===void 0&&(x="utf8")):(x=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let a=!1;for(;;)switch(x){case"hex":return jx(this,t,r,n);case"utf8":case"utf-8":return Xx(this,t,r,n);case"ascii":case"latin1":case"binary":return Wx(this,t,r,n);case"base64":return qx(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kx(this,t,r,n);default:if(a)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jx(e,t,r){return t===0&&r===e.length?Oe.fromByteArray(e):Oe.fromByteArray(e.slice(t,r))}function fr(e,t,r){r=Math.min(e.length,r);let n=[],x=t;for(;x<r;){let i=e[x],a=null,f=i>239?4:i>223?3:i>191?2:1;if(x+f<=r){let o,d,h,u;switch(f){case 1:i<128&&(a=i);break;case 2:o=e[x+1],(o&192)===128&&(u=(i&31)<<6|o&63,u>127&&(a=u));break;case 3:o=e[x+1],d=e[x+2],(o&192)===128&&(d&192)===128&&(u=(i&15)<<12|(o&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:o=e[x+1],d=e[x+2],h=e[x+3],(o&192)===128&&(d&192)===128&&(h&192)===128&&(u=(i&15)<<18|(o&63)<<12|(d&63)<<6|h&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,f=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),x+=f}return Yx(n)}var tr=4096;function Yx(e){let t=e.length;if(t<=tr)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=tr));return r}function Zx(e,t,r){let n="";r=Math.min(e.length,r);for(let x=t;x<r;++x)n+=String.fromCharCode(e[x]&127);return n}function Qx(e,t,r){let n="";r=Math.min(e.length,r);for(let x=t;x<r;++x)n+=String.fromCharCode(e[x]);return n}function ei(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let x="";for(let i=t;i<r;++i)x+=fi[e[i]];return x}function ti(e,t,r){let n=e.slice(t,r),x="";for(let i=0;i<n.length-1;i+=2)x+=String.fromCharCode(n[i]+n[i+1]*256);return x}l.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let x=this.subarray(t,r);return Object.setPrototypeOf(x,l.prototype),x};function j(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||j(t,r,this.length);let x=this[t],i=1,a=0;for(;++a<r&&(i*=256);)x+=this[t+a]*i;return x};l.prototype.readUintBE=l.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||j(t,r,this.length);let x=this[t+--r],i=1;for(;r>0&&(i*=256);)x+=this[t+--r]*i;return x};l.prototype.readUint8=l.prototype.readUInt8=function(t,r){return t=t>>>0,r||j(t,1,this.length),this[t]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||j(t,2,this.length),this[t]|this[t+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||j(t,2,this.length),this[t]<<8|this[t+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||j(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readBigUInt64LE=u0(function(t){t=t>>>0,S0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j0(t,this.length-8);let x=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,i=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(x)+(BigInt(i)<<BigInt(32))});l.prototype.readBigUInt64BE=u0(function(t){t=t>>>0,S0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j0(t,this.length-8);let x=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],i=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(x)<<BigInt(32))+BigInt(i)});l.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||j(t,r,this.length);let x=this[t],i=1,a=0;for(;++a<r&&(i*=256);)x+=this[t+a]*i;return i*=128,x>=i&&(x-=Math.pow(2,8*r)),x};l.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||j(t,r,this.length);let x=r,i=1,a=this[t+--x];for(;x>0&&(i*=256);)a+=this[t+--x]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};l.prototype.readInt8=function(t,r){return t=t>>>0,r||j(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};l.prototype.readInt16LE=function(t,r){t=t>>>0,r||j(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(t,r){t=t>>>0,r||j(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(t,r){return t=t>>>0,r||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function(t,r){return t=t>>>0,r||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readBigInt64LE=u0(function(t){t=t>>>0,S0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j0(t,this.length-8);let x=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(x)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});l.prototype.readBigInt64BE=u0(function(t){t=t>>>0,S0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j0(t,this.length-8);let x=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(x)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});l.prototype.readFloatLE=function(t,r){return t=t>>>0,r||j(t,4,this.length),k0.read(this,t,!0,23,4)};l.prototype.readFloatBE=function(t,r){return t=t>>>0,r||j(t,4,this.length),k0.read(this,t,!1,23,4)};l.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||j(t,8,this.length),k0.read(this,t,!0,52,8)};l.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||j(t,8,this.length),k0.read(this,t,!1,52,8)};function K(e,t,r,n,x,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>x||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,r,n,x){if(t=+t,r=r>>>0,n=n>>>0,!x){let f=Math.pow(2,8*n)-1;K(this,t,r,n,f,0)}let i=1,a=0;for(this[r]=t&255;++a<n&&(i*=256);)this[r+a]=t/i&255;return r+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,r,n,x){if(t=+t,r=r>>>0,n=n>>>0,!x){let f=Math.pow(2,8*n)-1;K(this,t,r,n,f,0)}let i=n-1,a=1;for(this[r+i]=t&255;--i>=0&&(a*=256);)this[r+i]=t/a&255;return r+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,1,255,0),this[r]=t&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function or(e,t,r,n,x){hr(t,n,x,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,r}function cr(e,t,r,n,x){hr(t,n,x,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i=i>>8,e[r+6]=i,i=i>>8,e[r+5]=i,i=i>>8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a=a>>8,e[r+2]=a,a=a>>8,e[r+1]=a,a=a>>8,e[r]=a,r+8}l.prototype.writeBigUInt64LE=u0(function(t,r=0){return or(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=u0(function(t,r=0){return cr(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(t,r,n,x){if(t=+t,r=r>>>0,!x){let o=Math.pow(2,8*n-1);K(this,t,r,n,o-1,-o)}let i=0,a=1,f=0;for(this[r]=t&255;++i<n&&(a*=256);)t<0&&f===0&&this[r+i-1]!==0&&(f=1),this[r+i]=(t/a>>0)-f&255;return r+n};l.prototype.writeIntBE=function(t,r,n,x){if(t=+t,r=r>>>0,!x){let o=Math.pow(2,8*n-1);K(this,t,r,n,o-1,-o)}let i=n-1,a=1,f=0;for(this[r+i]=t&255;--i>=0&&(a*=256);)t<0&&f===0&&this[r+i+1]!==0&&(f=1),this[r+i]=(t/a>>0)-f&255;return r+n};l.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};l.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};l.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};l.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};l.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||K(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};l.prototype.writeBigInt64LE=u0(function(t,r=0){return or(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=u0(function(t,r=0){return cr(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function sr(e,t,r,n,x,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function dr(e,t,r,n,x){return t=+t,r=r>>>0,x||sr(e,t,r,4,34028234663852886e22,-34028234663852886e22),k0.write(e,t,r,n,23,4),r+4}l.prototype.writeFloatLE=function(t,r,n){return dr(this,t,r,!0,n)};l.prototype.writeFloatBE=function(t,r,n){return dr(this,t,r,!1,n)};function ur(e,t,r,n,x){return t=+t,r=r>>>0,x||sr(e,t,r,8,17976931348623157e292,-17976931348623157e292),k0.write(e,t,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(t,r,n){return ur(this,t,r,!0,n)};l.prototype.writeDoubleBE=function(t,r,n){return ur(this,t,r,!1,n)};l.prototype.copy=function(t,r,n,x){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!x&&x!==0&&(x=this.length),r>=t.length&&(r=t.length),r||(r=0),x>0&&x<n&&(x=n),x===n||t.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(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),t.length-r<x-n&&(x=t.length-r+n);let i=x-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,x):Uint8Array.prototype.set.call(t,this.subarray(n,x),r),i};l.prototype.fill=function(t,r,n,x){if(typeof t=="string"){if(typeof r=="string"?(x=r,r=0,n=this.length):typeof n=="string"&&(x=n,n=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!l.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(t.length===1){let a=t.charCodeAt(0);(x==="utf8"&&a<128||x==="latin1")&&(t=a)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));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,t||(t=0);let i;if(typeof t=="number")for(i=r;i<n;++i)this[i]=t;else{let a=l.isBuffer(t)?t:l.from(t,x),f=a.length;if(f===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=a[i%f]}return this};var F0={};function Ne(e,t,r){F0[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Ne("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ne("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Ne("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,x=r;return Number.isInteger(r)&&Math.abs(r)>2**32?x=rr(String(r)):typeof r=="bigint"&&(x=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(x=rr(x)),x+="n"),n+=` It must be ${t}. Received ${x}`,n},RangeError);function rr(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function ri(e,t,r){S0(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&j0(t,e.length-(r+1))}function hr(e,t,r,n,x,i){if(e>r||e<t){let a=typeof t=="bigint"?"n":"",f;throw i>3?t===0||t===BigInt(0)?f=`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:f=`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:f=`>= ${t}${a} and <= ${r}${a}`,new F0.ERR_OUT_OF_RANGE("value",f,e)}ri(n,x,i)}function S0(e,t){if(typeof e!="number")throw new F0.ERR_INVALID_ARG_TYPE(t,"number",e)}function j0(e,t,r){throw Math.floor(e)!==e?(S0(e,r),new F0.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new F0.ERR_BUFFER_OUT_OF_BOUNDS:new F0.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ni=/[^+/0-9A-Za-z-_]/g;function xi(e){if(e=e.split("=")[0],e=e.trim().replace(ni,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ve(e,t){t=t||1/0;let r,n=e.length,x=null,i=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!x){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}x=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),x=r;continue}r=(x-55296<<10|r-56320)+65536}else x&&(t-=3)>-1&&i.push(239,191,189);if(x=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function ii(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ai(e,t){let r,n,x,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,x=r%256,i.push(x),i.push(n);return i}function lr(e){return Oe.toByteArray(xi(e))}function xe(e,t,r,n){let x;for(x=0;x<n&&!(x+r>=t.length||x>=e.length);++x)t[x+r]=e[x];return x}function t0(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function $e(e){return e!==e}var fi=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let x=0;x<16;++x)t[n+x]=e[r]+e[x]}return t}();function u0(e){return typeof BigInt>"u"?oi:e}function oi(){throw new Error("BigInt not supported")}});var w,s=Ux(()=>{w=H0().Buffer});var Jr=L0((Kr,he)=>{s();(function(e,t){"use strict";var r=Math.pow(2,-24),n=Math.pow(2,32),x=Math.pow(2,53);function i(o){var d=new ArrayBuffer(256),h=new DataView(d),u,m=0;function p(E){for(var O=d.byteLength,U=m+E;O<U;)O*=2;if(O!==d.byteLength){var L=h;d=new ArrayBuffer(O),h=new DataView(d);for(var $=m+3>>2,S=0;S<$;++S)h.setUint32(S*4,L.getUint32(S*4))}return u=E,h}function v(){m+=u}function g(E){v(p(8).setFloat64(m,E))}function b(E){v(p(1).setUint8(m,E))}function y(E){for(var O=p(E.length),U=0;U<E.length;++U)O.setUint8(m+U,E[U]);v()}function B(E){v(p(2).setUint16(m,E))}function A(E){v(p(4).setUint32(m,E))}function I(E){var O=E%n,U=(E-O)/n,L=p(8);L.setUint32(m,U),L.setUint32(m+4,O),v()}function T(E,O){O<24?b(E<<5|O):O<256?(b(E<<5|24),b(O)):O<65536?(b(E<<5|25),B(O)):O<4294967296?(b(E<<5|26),A(O)):(b(E<<5|27),I(O))}function D(E){var O;if(E===!1)return b(244);if(E===!0)return b(245);if(E===null)return b(246);if(E===t)return b(247);switch(typeof E){case"number":if(Math.floor(E)===E){if(0<=E&&E<=x)return T(0,E);if(-x<=E&&E<0)return T(1,-(E+1))}return b(251),g(E);case"string":var U=[];for(O=0;O<E.length;++O){var L=E.charCodeAt(O);L<128?U.push(L):L<2048?(U.push(192|L>>6),U.push(128|L&63)):L<55296?(U.push(224|L>>12),U.push(128|L>>6&63),U.push(128|L&63)):(L=(L&1023)<<10,L|=E.charCodeAt(++O)&1023,L+=65536,U.push(240|L>>18),U.push(128|L>>12&63),U.push(128|L>>6&63),U.push(128|L&63))}return T(3,U.length),y(U);default:var $;if(Array.isArray(E))for($=E.length,T(4,$),O=0;O<$;++O)D(E[O]);else if(E instanceof Uint8Array)T(2,E.length),y(E);else{var S=Object.keys(E);for($=S.length,T(5,$),O=0;O<$;++O){var V=S[O];D(V),D(E[V])}}}}if(D(o),"slice"in d)return d.slice(0,m);for(var P=new ArrayBuffer(m),z=new DataView(P),X=0;X<m;++X)z.setUint8(X,h.getUint8(X));return P}function a(o,d,h){var u=new DataView(o),m=0;typeof d!="function"&&(d=function(U){return U}),typeof h!="function"&&(h=function(){return t});function p(U,L){return m+=L,U}function v(U){return p(new Uint8Array(o,m,U),U)}function g(){var U=new ArrayBuffer(4),L=new DataView(U),$=A(),S=$&32768,V=$&31744,d0=$&1023;if(V===31744)V=261120;else if(V!==0)V+=114688;else if(d0!==0)return d0*r;return L.setUint32(0,S<<16|V<<13|d0<<13),L.getFloat32(0)}function b(){return p(u.getFloat32(m),4)}function y(){return p(u.getFloat64(m),8)}function B(){return p(u.getUint8(m),1)}function A(){return p(u.getUint16(m),2)}function I(){return p(u.getUint32(m),4)}function T(){return I()*n+I()}function D(){return u.getUint8(m)!==255?!1:(m+=1,!0)}function P(U){if(U<24)return U;if(U===24)return B();if(U===25)return A();if(U===26)return I();if(U===27)return T();if(U===31)return-1;throw"Invalid length encoding"}function z(U){var L=B();if(L===255)return-1;var $=P(L&31);if($<0||L>>5!==U)throw"Invalid indefinite length element";return $}function X(U,L){for(var $=0;$<L;++$){var S=B();S&128&&(S<224?(S=(S&31)<<6|B()&63,L-=1):S<240?(S=(S&15)<<12|(B()&63)<<6|B()&63,L-=2):(S=(S&15)<<18|(B()&63)<<12|(B()&63)<<6|B()&63,L-=3)),S<65536?U.push(S):(S-=65536,U.push(55296|S>>10),U.push(56320|S&1023))}}function E(){var U=B(),L=U>>5,$=U&31,S,V;if(L===7)switch($){case 25:return g();case 26:return b();case 27:return y()}if(V=P($),V<0&&(L<2||6<L))throw"Invalid length";switch(L){case 0:return V;case 1:return-1-V;case 2:if(V<0){for(var d0=[],zt=0;(V=z(L))>=0;)zt+=V,d0.push(v(V));var jt=new Uint8Array(zt),Xt=0;for(S=0;S<d0.length;++S)jt.set(d0[S],Xt),Xt+=d0[S].length;return jt}return v(V);case 3:var Fe=[];if(V<0)for(;(V=z(L))>=0;)X(Fe,V);else X(Fe,V);return String.fromCharCode.apply(null,Fe);case 4:var z0;if(V<0)for(z0=[];!D();)z0.push(E());else for(z0=new Array(V),S=0;S<V;++S)z0[S]=E();return z0;case 5:var Wt={};for(S=0;S<V||V<0&&!D();++S){var _x=E();Wt[_x]=E()}return Wt;case 6:return d(E(),V);case 7:switch(V){case 20:return!1;case 21:return!0;case 22:return null;case 23:return t;default:return h(V)}}}var O=E();if(m!==o.byteLength)throw"Remaining bytes";return O}var f={encode:i,decode:a};typeof define=="function"&&define.amd?define("cbor/cbor",f):typeof he<"u"&&he.exports?he.exports=f:e.CBOR||(e.CBOR=f)})(Kr)});var me=L0(($1,Ln)=>{"use strict";s();function Ma(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<e.length;n++){var x=e.charAt(n),i=x.charCodeAt(0);if(t[i]!==255)throw new TypeError(x+" is ambiguous");t[i]=n}var a=e.length,f=e.charAt(0),o=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function h(p){if(p instanceof Uint8Array||(ArrayBuffer.isView(p)?p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):Array.isArray(p)&&(p=Uint8Array.from(p))),!(p instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(p.length===0)return"";for(var v=0,g=0,b=0,y=p.length;b!==y&&p[b]===0;)b++,v++;for(var B=(y-b)*d+1>>>0,A=new Uint8Array(B);b!==y;){for(var I=p[b],T=0,D=B-1;(I!==0||T<g)&&D!==-1;D--,T++)I+=256*A[D]>>>0,A[D]=I%a>>>0,I=I/a>>>0;if(I!==0)throw new Error("Non-zero carry");g=T,b++}for(var P=B-g;P!==B&&A[P]===0;)P++;for(var z=f.repeat(v);P<B;++P)z+=e.charAt(A[P]);return z}function u(p){if(typeof p!="string")throw new TypeError("Expected String");if(p.length===0)return new Uint8Array;for(var v=0,g=0,b=0;p[v]===f;)g++,v++;for(var y=(p.length-v)*o+1>>>0,B=new Uint8Array(y);p[v];){var A=t[p.charCodeAt(v)];if(A===255)return;for(var I=0,T=y-1;(A!==0||I<b)&&T!==-1;T--,I++)A+=a*B[T]>>>0,B[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");b=I,v++}for(var D=y-b;D!==y&&B[D]===0;)D++;for(var P=new Uint8Array(g+(y-D)),z=g;D!==y;)P[z++]=B[D++];return P}function m(p){var v=u(p);if(v)return v;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:u,decode:m}}Ln.exports=Ma});var px=L0((J0,P0)=>{s();var za=200,Mt="__lodash_hash_undefined__",Ie=1,Wn=2,qn=9007199254740991,ye="[object Arguments]",Ft="[object Array]",ja="[object AsyncFunction]",Kn="[object Boolean]",Jn="[object Date]",Yn="[object Error]",Zn="[object Function]",Xa="[object GeneratorFunction]",we="[object Map]",Qn="[object Number]",Wa="[object Null]",$0="[object Object]",Rn="[object Promise]",qa="[object Proxy]",ex="[object RegExp]",Ae="[object Set]",tx="[object String]",Ka="[object Symbol]",Ja="[object Undefined]",kt="[object WeakMap]",rx="[object ArrayBuffer]",_e="[object DataView]",Ya="[object Float32Array]",Za="[object Float64Array]",Qa="[object Int8Array]",ef="[object Int16Array]",tf="[object Int32Array]",rf="[object Uint8Array]",nf="[object Uint8ClampedArray]",xf="[object Uint16Array]",af="[object Uint32Array]",ff=/[\\^$.*+?()[\]{}|]/g,of=/^\[object .+?Constructor\]$/,cf=/^(?:0|[1-9]\d*)$/,N={};N[Ya]=N[Za]=N[Qa]=N[ef]=N[tf]=N[rf]=N[nf]=N[xf]=N[af]=!0;N[ye]=N[Ft]=N[rx]=N[Kn]=N[_e]=N[Jn]=N[Yn]=N[Zn]=N[we]=N[Qn]=N[$0]=N[ex]=N[Ae]=N[tx]=N[kt]=!1;var nx=typeof global=="object"&&global&&global.Object===Object&&global,sf=typeof self=="object"&&self&&self.Object===Object&&self,c0=nx||sf||Function("return this")(),xx=typeof J0=="object"&&J0&&!J0.nodeType&&J0,Vn=xx&&typeof P0=="object"&&P0&&!P0.nodeType&&P0,ix=Vn&&Vn.exports===xx,Ut=ix&&nx.process,Mn=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch{}}(),Dn=Mn&&Mn.isTypedArray;function df(e,t){for(var r=-1,n=e==null?0:e.length,x=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[x++]=a)}return i}function uf(e,t){for(var r=-1,n=t.length,x=e.length;++r<n;)e[x+r]=t[r];return e}function hf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function lf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function bf(e){return function(t){return e(t)}}function pf(e,t){return e.has(t)}function gf(e,t){return e?.[t]}function mf(e){var t=-1,r=Array(e.size);return e.forEach(function(n,x){r[++t]=[x,n]}),r}function yf(e,t){return function(r){return e(t(r))}}function wf(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Af=Array.prototype,_f=Function.prototype,Ce=Object.prototype,Tt=c0["__core-js_shared__"],ax=_f.toString,i0=Ce.hasOwnProperty,Nn=function(){var e=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fx=Ce.toString,Bf=RegExp("^"+ax.call(i0).replace(ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$n=ix?c0.Buffer:void 0,Be=c0.Symbol,Pn=c0.Uint8Array,ox=Ce.propertyIsEnumerable,vf=Af.splice,I0=Be?Be.toStringTag:void 0,Gn=Object.getOwnPropertySymbols,Ef=$n?$n.isBuffer:void 0,If=yf(Object.keys,Object),St=G0(c0,"DataView"),Y0=G0(c0,"Map"),Ot=G0(c0,"Promise"),Ht=G0(c0,"Set"),Rt=G0(c0,"WeakMap"),Z0=G0(Object,"create"),Cf=T0(St),Uf=T0(Y0),Tf=T0(Ot),Lf=T0(Ht),Ff=T0(Rt),zn=Be?Be.prototype:void 0,Lt=zn?zn.valueOf:void 0;function C0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function kf(){this.__data__=Z0?Z0(null):{},this.size=0}function Sf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Of(e){var t=this.__data__;if(Z0){var r=t[e];return r===Mt?void 0:r}return i0.call(t,e)?t[e]:void 0}function Hf(e){var t=this.__data__;return Z0?t[e]!==void 0:i0.call(t,e)}function Rf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z0&&t===void 0?Mt:t,this}C0.prototype.clear=kf;C0.prototype.delete=Sf;C0.prototype.get=Of;C0.prototype.has=Hf;C0.prototype.set=Rf;function s0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vf(){this.__data__=[],this.size=0}function Mf(e){var t=this.__data__,r=Ue(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vf.call(t,r,1),--this.size,!0}function Df(e){var t=this.__data__,r=Ue(t,e);return r<0?void 0:t[r][1]}function Nf(e){return Ue(this.__data__,e)>-1}function $f(e,t){var r=this.__data__,n=Ue(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}s0.prototype.clear=Vf;s0.prototype.delete=Mf;s0.prototype.get=Df;s0.prototype.has=Nf;s0.prototype.set=$f;function U0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pf(){this.size=0,this.__data__={hash:new C0,map:new(Y0||s0),string:new C0}}function Gf(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t}function zf(e){return Te(this,e).get(e)}function jf(e){return Te(this,e).has(e)}function Xf(e,t){var r=Te(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}U0.prototype.clear=Pf;U0.prototype.delete=Gf;U0.prototype.get=zf;U0.prototype.has=jf;U0.prototype.set=Xf;function ve(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new U0;++t<r;)this.add(e[t])}function Wf(e){return this.__data__.set(e,Mt),this}function qf(e){return this.__data__.has(e)}ve.prototype.add=ve.prototype.push=Wf;ve.prototype.has=qf;function _0(e){var t=this.__data__=new s0(e);this.size=t.size}function Kf(){this.__data__=new s0,this.size=0}function Jf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Yf(e){return this.__data__.get(e)}function Zf(e){return this.__data__.has(e)}function Qf(e,t){var r=this.__data__;if(r instanceof s0){var n=r.__data__;if(!Y0||n.length<za-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U0(n)}return r.set(e,t),this.size=r.size,this}_0.prototype.clear=Kf;_0.prototype.delete=Jf;_0.prototype.get=Yf;_0.prototype.has=Zf;_0.prototype.set=Qf;function eo(e,t){var r=Ee(e),n=!r&&po(e),x=!r&&!n&&Vt(e),i=!r&&!n&&!x&&bx(e),a=r||n||x||i,f=a?lf(e.length,String):[],o=f.length;for(var d in e)(t||i0.call(e,d))&&!(a&&(d=="length"||x&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||so(d,o)))&&f.push(d);return f}function Ue(e,t){for(var r=e.length;r--;)if(dx(e[r][0],t))return r;return-1}function to(e,t,r){var n=t(e);return Ee(e)?n:uf(n,r(e))}function ee(e){return e==null?e===void 0?Ja:Wa:I0&&I0 in Object(e)?oo(e):bo(e)}function jn(e){return Q0(e)&&ee(e)==ye}function cx(e,t,r,n,x){return e===t?!0:e==null||t==null||!Q0(e)&&!Q0(t)?e!==e&&t!==t:ro(e,t,r,n,cx,x)}function ro(e,t,r,n,x,i){var a=Ee(e),f=Ee(t),o=a?Ft:A0(e),d=f?Ft:A0(t);o=o==ye?$0:o,d=d==ye?$0:d;var h=o==$0,u=d==$0,m=o==d;if(m&&Vt(e)){if(!Vt(t))return!1;a=!0,h=!1}if(m&&!h)return i||(i=new _0),a||bx(e)?sx(e,t,r,n,x,i):ao(e,t,o,r,n,x,i);if(!(r&Ie)){var p=h&&i0.call(e,"__wrapped__"),v=u&&i0.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,b=v?t.value():t;return i||(i=new _0),x(g,b,r,n,i)}}return m?(i||(i=new _0),fo(e,t,r,n,x,i)):!1}function no(e){if(!lx(e)||ho(e))return!1;var t=ux(e)?Bf:of;return t.test(T0(e))}function xo(e){return Q0(e)&&hx(e.length)&&!!N[ee(e)]}function io(e){if(!lo(e))return If(e);var t=[];for(var r in Object(e))i0.call(e,r)&&r!="constructor"&&t.push(r);return t}function sx(e,t,r,n,x,i){var a=r&Ie,f=e.length,o=t.length;if(f!=o&&!(a&&o>f))return!1;var d=i.get(e);if(d&&i.get(t))return d==t;var h=-1,u=!0,m=r&Wn?new ve:void 0;for(i.set(e,t),i.set(t,e);++h<f;){var p=e[h],v=t[h];if(n)var g=a?n(v,p,h,t,e,i):n(p,v,h,e,t,i);if(g!==void 0){if(g)continue;u=!1;break}if(m){if(!hf(t,function(b,y){if(!pf(m,y)&&(p===b||x(p,b,r,n,i)))return m.push(y)})){u=!1;break}}else if(!(p===v||x(p,v,r,n,i))){u=!1;break}}return i.delete(e),i.delete(t),u}function ao(e,t,r,n,x,i,a){switch(r){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rx:return!(e.byteLength!=t.byteLength||!i(new Pn(e),new Pn(t)));case Kn:case Jn:case Qn:return dx(+e,+t);case Yn:return e.name==t.name&&e.message==t.message;case ex:case tx:return e==t+"";case we:var f=mf;case Ae:var o=n&Ie;if(f||(f=wf),e.size!=t.size&&!o)return!1;var d=a.get(e);if(d)return d==t;n|=Wn,a.set(e,t);var h=sx(f(e),f(t),n,x,i,a);return a.delete(e),h;case Ka:if(Lt)return Lt.call(e)==Lt.call(t)}return!1}function fo(e,t,r,n,x,i){var a=r&Ie,f=Xn(e),o=f.length,d=Xn(t),h=d.length;if(o!=h&&!a)return!1;for(var u=o;u--;){var m=f[u];if(!(a?m in t:i0.call(t,m)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var v=!0;i.set(e,t),i.set(t,e);for(var g=a;++u<o;){m=f[u];var b=e[m],y=t[m];if(n)var B=a?n(y,b,m,t,e,i):n(b,y,m,e,t,i);if(!(B===void 0?b===y||x(b,y,r,n,i):B)){v=!1;break}g||(g=m=="constructor")}if(v&&!g){var A=e.constructor,I=t.constructor;A!=I&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof I=="function"&&I instanceof I)&&(v=!1)}return i.delete(e),i.delete(t),v}function Xn(e){return to(e,yo,co)}function Te(e,t){var r=e.__data__;return uo(t)?r[typeof t=="string"?"string":"hash"]:r.map}function G0(e,t){var r=gf(e,t);return no(r)?r:void 0}function oo(e){var t=i0.call(e,I0),r=e[I0];try{e[I0]=void 0;var n=!0}catch{}var x=fx.call(e);return n&&(t?e[I0]=r:delete e[I0]),x}var co=Gn?function(e){return e==null?[]:(e=Object(e),df(Gn(e),function(t){return ox.call(e,t)}))}:wo,A0=ee;(St&&A0(new St(new ArrayBuffer(1)))!=_e||Y0&&A0(new Y0)!=we||Ot&&A0(Ot.resolve())!=Rn||Ht&&A0(new Ht)!=Ae||Rt&&A0(new Rt)!=kt)&&(A0=function(e){var t=ee(e),r=t==$0?e.constructor:void 0,n=r?T0(r):"";if(n)switch(n){case Cf:return _e;case Uf:return we;case Tf:return Rn;case Lf:return Ae;case Ff:return kt}return t});function so(e,t){return t=t??qn,!!t&&(typeof e=="number"||cf.test(e))&&e>-1&&e%1==0&&e<t}function uo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ho(e){return!!Nn&&Nn in e}function lo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ce;return e===r}function bo(e){return fx.call(e)}function T0(e){if(e!=null){try{return ax.call(e)}catch{}try{return e+""}catch{}}return""}function dx(e,t){return e===t||e!==e&&t!==t}var po=jn(function(){return arguments}())?jn:function(e){return Q0(e)&&i0.call(e,"callee")&&!ox.call(e,"callee")},Ee=Array.isArray;function go(e){return e!=null&&hx(e.length)&&!ux(e)}var Vt=Ef||Ao;function mo(e,t){return cx(e,t)}function ux(e){if(!lx(e))return!1;var t=ee(e);return t==Zn||t==Xa||t==ja||t==qa}function hx(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qn}function lx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Q0(e){return e!=null&&typeof e=="object"}var bx=Dn?bf(Dn):xo;function yo(e){return go(e)?eo(e):io(e)}function wo(){return[]}function Ao(){return!1}P0.exports=mo});var ko={};Tx(ko,{validate:()=>Fo});s();s();s();s();s();s();var nt=a0(H0(),1);s();s();s();function Pe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function ci(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function R0(e,...t){if(!ci(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function V0(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ie(e,t){R0(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}s();var br=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),ae=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Z=(e,t)=>e<<32-t|e>>>t;var Ge=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,si=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function ze(e){for(let t=0;t<e.length;t++)e[t]=si(e[t])}var di=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function X0(e){R0(e);let t="";for(let r=0;r<e.length;r++)t+=di[e[r]];return t}function ui(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function D0(e){return typeof e=="string"&&(e=ui(e)),R0(e),e}var M0=class{clone(){return this._cloneInto()}},Wo={}.toString;function E0(e){let t=n=>e().update(D0(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function pr(e){let t=(n,x)=>e(x).update(D0(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function hi(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);let x=BigInt(32),i=BigInt(4294967295),a=Number(r>>x&i),f=Number(r&i),o=n?4:0,d=n?0:4;e.setUint32(t+o,a,n),e.setUint32(t+d,f,n)}var gr=(e,t,r)=>e&t^~e&r,mr=(e,t,r)=>e&t^e&r^t&r,N0=class extends M0{constructor(t,r,n,x){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=x,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ae(this.buffer)}update(t){V0(this);let{view:r,buffer:n,blockLen:x}=this;t=D0(t);let i=t.length;for(let a=0;a<i;){let f=Math.min(x-this.pos,i-a);if(f===x){let o=ae(t);for(;x<=i-a;a+=x)this.process(o,a);continue}n.set(t.subarray(a,a+f),this.pos),this.pos+=f,a+=f,this.pos===x&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){V0(this),ie(t,this),this.finished=!0;let{buffer:r,view:n,blockLen:x,isLE:i}=this,{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>x-a&&(this.process(n,0),a=0);for(let u=a;u<x;u++)r[u]=0;hi(n,x-8,BigInt(this.length*8),i),this.process(n,0);let f=ae(t),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let d=o/4,h=this.get();if(d>h.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<d;u++)f.setUint32(4*u,h[u],i)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:n,length:x,finished:i,destroyed:a,pos:f}=this;return t.length=x,t.pos=f,t.finished=i,t.destroyed=a,x%r&&t.buffer.set(n),t}};var li=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),h0=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l0=new Uint32Array(64),je=class extends N0{constructor(){super(64,32,8,!1),this.A=h0[0]|0,this.B=h0[1]|0,this.C=h0[2]|0,this.D=h0[3]|0,this.E=h0[4]|0,this.F=h0[5]|0,this.G=h0[6]|0,this.H=h0[7]|0}get(){let{A:t,B:r,C:n,D:x,E:i,F:a,G:f,H:o}=this;return[t,r,n,x,i,a,f,o]}set(t,r,n,x,i,a,f,o){this.A=t|0,this.B=r|0,this.C=n|0,this.D=x|0,this.E=i|0,this.F=a|0,this.G=f|0,this.H=o|0}process(t,r){for(let u=0;u<16;u++,r+=4)l0[u]=t.getUint32(r,!1);for(let u=16;u<64;u++){let m=l0[u-15],p=l0[u-2],v=Z(m,7)^Z(m,18)^m>>>3,g=Z(p,17)^Z(p,19)^p>>>10;l0[u]=g+l0[u-7]+v+l0[u-16]|0}let{A:n,B:x,C:i,D:a,E:f,F:o,G:d,H:h}=this;for(let u=0;u<64;u++){let m=Z(f,6)^Z(f,11)^Z(f,25),p=h+m+gr(f,o,d)+li[u]+l0[u]|0,g=(Z(n,2)^Z(n,13)^Z(n,22))+mr(n,x,i)|0;h=d,d=o,o=f,f=a+p|0,a=i,i=x,x=n,n=p+g|0}n=n+this.A|0,x=x+this.B|0,i=i+this.C|0,a=a+this.D|0,f=f+this.E|0,o=o+this.F|0,d=d+this.G|0,h=h+this.H|0,this.set(n,x,i,a,f,o,d,h)}roundClean(){l0.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var yr=E0(()=>new je);s();s();var fe=BigInt(4294967295),Xe=BigInt(32);function wr(e,t=!1){return t?{h:Number(e&fe),l:Number(e>>Xe&fe)}:{h:Number(e>>Xe&fe)|0,l:Number(e&fe)|0}}function We(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let x=0;x<e.length;x++){let{h:i,l:a}=wr(e[x],t);[r[x],n[x]]=[i,a]}return[r,n]}var bi=(e,t)=>BigInt(e>>>0)<<Xe|BigInt(t>>>0),pi=(e,t,r)=>e>>>r,gi=(