@dwn-protocol/id-sdk
Version:
SDK for accessing the features and capabilities
1 lines • 4.23 MB
JavaScript
var IDDwn=(()=>{var Skt=Object.create;var mM=Object.defineProperty;var Bkt=Object.getOwnPropertyDescriptor;var Dkt=Object.getOwnPropertyNames;var Rkt=Object.getPrototypeOf,kkt=Object.prototype.hasOwnProperty;var Pkt=(t,e,r)=>e in t?mM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var mB=(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 new Error('Dynamic require of "'+t+'" is not supported')});var fo=(t,e)=>()=>(t&&(e=t(t=0)),e);var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cr=(t,e)=>{for(var r in e)mM(t,r,{get:e[r],enumerable:!0})},I9e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dkt(e))!kkt.call(t,i)&&i!==r&&mM(t,i,{get:()=>e[i],enumerable:!(n=Bkt(e,i))||n.enumerable});return t};var d=(t,e,r)=>(r=t!=null?Skt(Rkt(t)):{},I9e(e||!t||!t.__esModule?mM(r,"default",{value:t,enumerable:!0}):r,t)),AM=t=>I9e(mM({},"__esModule",{value:!0}),t);var To=(t,e,r)=>(Pkt(t,typeof e!="symbol"?e+"":e,r),r),Pae=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var e3=(t,e,r)=>(Pae(t,e,"read from private field"),r?r.call(t):e.get(t)),_g=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},t3=(t,e,r,n)=>(Pae(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Kl=(t,e,r)=>(Pae(t,e,"access private method"),r);var Mae=$(cG=>{"use strict";p();var jVr=d(h());cG.byteLength=Mkt;cG.toByteArray=Qkt;cG.fromByteArray=Ukt;var B1=[],Sg=[],Tkt=typeof Uint8Array<"u"?Uint8Array:Array,Tae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(V4=0,E9e=Tae.length;V4<E9e;++V4)B1[V4]=Tae[V4],Sg[Tae.charCodeAt(V4)]=V4;var V4,E9e;Sg["-".charCodeAt(0)]=62;Sg["_".charCodeAt(0)]=63;function v9e(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 Mkt(t){var e=v9e(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Okt(t,e,r){return(e+r)*3/4-r}function Qkt(t){var e,r=v9e(t),n=r[0],i=r[1],o=new Tkt(Okt(t,n,i)),s=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)e=Sg[t.charCodeAt(c)]<<18|Sg[t.charCodeAt(c+1)]<<12|Sg[t.charCodeAt(c+2)]<<6|Sg[t.charCodeAt(c+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=Sg[t.charCodeAt(c)]<<2|Sg[t.charCodeAt(c+1)]>>4,o[s++]=e&255),i===1&&(e=Sg[t.charCodeAt(c)]<<10|Sg[t.charCodeAt(c+1)]<<4|Sg[t.charCodeAt(c+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Nkt(t){return B1[t>>18&63]+B1[t>>12&63]+B1[t>>6&63]+B1[t&63]}function Fkt(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(Nkt(n));return i.join("")}function Ukt(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Fkt(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(B1[e>>2]+B1[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(B1[e>>10]+B1[e>>4&63]+B1[e<<2&63]+"=")),i.join("")}});var Qae=$(Oae=>{p();var $Vr=d(h());Oae.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,u=-7,f=r?i-1:0,g=r?-1:1,y=t[e+f];for(f+=g,o=y&(1<<-u)-1,y>>=-u,u+=a;u>0;o=o*256+t[e+f],f+=g,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=s*256+t[e+f],f+=g,u-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(y?-1:1)*s*Math.pow(2,o-n)};Oae.write=function(t,e,r,n,i,o){var s,a,c,l=o*8-i-1,u=(1<<l)-1,f=u>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,m=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=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=g/c:e+=g*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*c-1)*Math.pow(2,i),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+y]=a&255,y+=m,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[r+y]=s&255,y+=m,s/=256,l-=8);t[r+y-m]|=b*128}});var Ni=$(IB=>{"use strict";p();var XVr=d(h());var Nae=Mae(),bB=Qae(),x9e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;IB.Buffer=Ge;IB.SlowBuffer=jkt;IB.INSPECT_MAX_BYTES=50;var uG=2147483647;IB.kMaxLength=uG;Ge.TYPED_ARRAY_SUPPORT=Lkt();!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 Lkt(){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 Ew(t){if(t>uG)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 Kae(t)}return B9e(t,e,r)}Ge.poolSize=8192;function B9e(t,e,r){if(typeof t=="string")return qkt(t,e);if(ArrayBuffer.isView(t))return Hkt(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(D1(t,ArrayBuffer)||t&&D1(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D1(t,SharedArrayBuffer)||t&&D1(t.buffer,SharedArrayBuffer)))return Uae(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=Gkt(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 B9e(t,e,r)};Object.setPrototypeOf(Ge.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ge,Uint8Array);function D9e(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 Kkt(t,e,r){return D9e(t),t<=0?Ew(t):e!==void 0?typeof r=="string"?Ew(t).fill(e,r):Ew(t).fill(e):Ew(t)}Ge.alloc=function(t,e,r){return Kkt(t,e,r)};function Kae(t){return D9e(t),Ew(t<0?0:qae(t)|0)}Ge.allocUnsafe=function(t){return Kae(t)};Ge.allocUnsafeSlow=function(t){return Kae(t)};function qkt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Ge.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=R9e(t,e)|0,n=Ew(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Fae(t){let e=t.length<0?0:qae(t.length)|0,r=Ew(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Hkt(t){if(D1(t,Uint8Array)){let e=new Uint8Array(t);return Uae(e.buffer,e.byteOffset,e.byteLength)}return Fae(t)}function Uae(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 Gkt(t){if(Ge.isBuffer(t)){let e=qae(t.length)|0,r=Ew(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Gae(t.length)?Ew(0):Fae(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fae(t.data)}function qae(t){if(t>=uG)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+uG.toString(16)+" bytes");return t|0}function jkt(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(D1(e,Uint8Array)&&(e=Ge.from(e,e.offset,e.byteLength)),D1(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(D1(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 R9e(t,e){if(Ge.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D1(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 Lae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return U9e(t).length;default:if(i)return n?-1:Lae(t).length;e=(""+e).toLowerCase(),i=!0}}Ge.byteLength=R9e;function zkt(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 rPt(this,e,r);case"utf8":case"utf-8":return P9e(this,e,r);case"ascii":return ePt(this,e,r);case"latin1":case"binary":return tPt(this,e,r);case"base64":return Xkt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nPt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}Ge.prototype._isBuffer=!0;function $4(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)$4(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)$4(this,r,r+3),$4(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)$4(this,r,r+7),$4(this,r+1,r+6),$4(this,r+2,r+5),$4(this,r+3,r+4);return this};Ge.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?P9e(this,0,e):zkt.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=IB.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};x9e&&(Ge.prototype[x9e]=Ge.prototype.inspect);Ge.prototype.compare=function(e,r,n,i,o){if(D1(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,c=Math.min(s,a),l=this.slice(i,o),u=e.slice(r,n);for(let f=0;f<c;++f)if(l[f]!==u[f]){s=l[f],a=u[f];break}return s<a?-1:a<s?1:0};function k9e(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,Gae(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:C9e(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):C9e(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function C9e(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 c(u,f){return o===1?u[f]:u.readUInt16BE(f*o)}let l;if(i){let u=-1;for(l=r;l<s;l++)if(c(t,l)===c(e,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===a)return u*o}else u!==-1&&(l-=l-u),u=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let u=!0;for(let f=0;f<a;f++)if(c(t,l+f)!==c(e,f)){u=!1;break}if(u)return l}return-1}Ge.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Ge.prototype.indexOf=function(e,r,n){return k9e(this,e,r,n,!0)};Ge.prototype.lastIndexOf=function(e,r,n){return k9e(this,e,r,n,!1)};function Vkt(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(Gae(a))return s;t[r+s]=a}return s}function $kt(t,e,r,n){return lG(Lae(e,t.length-r),t,r,n)}function Jkt(t,e,r,n){return lG(aPt(e),t,r,n)}function Wkt(t,e,r,n){return lG(U9e(e),t,r,n)}function Ykt(t,e,r,n){return lG(cPt(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 Vkt(this,e,r,n);case"utf8":case"utf-8":return $kt(this,e,r,n);case"ascii":case"latin1":case"binary":return Jkt(this,e,r,n);case"base64":return Wkt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ykt(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 Xkt(t,e,r){return e===0&&r===t.length?Nae.fromByteArray(t):Nae.fromByteArray(t.slice(e,r))}function P9e(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 c,l,u,f;switch(a){case 1:o<128&&(s=o);break;case 2:c=t[i+1],(c&192)===128&&(f=(o&31)<<6|c&63,f>127&&(s=f));break;case 3:c=t[i+1],l=t[i+2],(c&192)===128&&(l&192)===128&&(f=(o&15)<<12|(c&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:c=t[i+1],l=t[i+2],u=t[i+3],(c&192)===128&&(l&192)===128&&(u&192)===128&&(f=(o&15)<<18|(c&63)<<12|(l&63)<<6|u&63,f>65535&&f<1114112&&(s=f))}}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 Zkt(n)}var _9e=4096;function Zkt(t){let e=t.length;if(e<=_9e)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_9e));return r}function ePt(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 tPt(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 rPt(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+=uPt[t[o]];return i}function nPt(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 rl(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||rl(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||rl(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||rl(e,1,this.length),this[e]};Ge.prototype.readUint16LE=Ge.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||rl(e,2,this.length),this[e]|this[e+1]<<8};Ge.prototype.readUint16BE=Ge.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||rl(e,2,this.length),this[e]<<8|this[e+1]};Ge.prototype.readUint32LE=Ge.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ge.prototype.readUint32BE=Ge.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ge.prototype.readBigUInt64LE=r3(function(e){e=e>>>0,wB(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&bM(e,this.length-8);let i=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,o=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});Ge.prototype.readBigUInt64BE=r3(function(e){e=e>>>0,wB(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&bM(e,this.length-8);let i=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],o=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});Ge.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||rl(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};Ge.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||rl(e,r,this.length);let i=r,o=1,s=this[e+--i];for(;i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};Ge.prototype.readInt8=function(e,r){return e=e>>>0,r||rl(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ge.prototype.readInt16LE=function(e,r){e=e>>>0,r||rl(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Ge.prototype.readInt16BE=function(e,r){e=e>>>0,r||rl(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Ge.prototype.readInt32LE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ge.prototype.readInt32BE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ge.prototype.readBigInt64LE=r3(function(e){e=e>>>0,wB(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&bM(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});Ge.prototype.readBigInt64BE=r3(function(e){e=e>>>0,wB(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&bM(e,this.length-8);let i=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});Ge.prototype.readFloatLE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),bB.read(this,e,!0,23,4)};Ge.prototype.readFloatBE=function(e,r){return e=e>>>0,r||rl(e,4,this.length),bB.read(this,e,!1,23,4)};Ge.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||rl(e,8,this.length),bB.read(this,e,!0,52,8)};Ge.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||rl(e,8,this.length),bB.read(this,e,!1,52,8)};function Jh(t,e,r,n,i,o){if(!Ge.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")}Ge.prototype.writeUintLE=Ge.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;Jh(this,e,r,n,a,0)}let o=1,s=0;for(this[r]=e&255;++s<n&&(o*=256);)this[r+s]=e/o&255;return r+n};Ge.prototype.writeUintBE=Ge.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;Jh(this,e,r,n,a,0)}let o=n-1,s=1;for(this[r+o]=e&255;--o>=0&&(s*=256);)this[r+o]=e/s&255;return r+n};Ge.prototype.writeUint8=Ge.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,1,255,0),this[r]=e&255,r+1};Ge.prototype.writeUint16LE=Ge.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};Ge.prototype.writeUint16BE=Ge.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};Ge.prototype.writeUint32LE=Ge.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(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};Ge.prototype.writeUint32BE=Ge.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(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};function T9e(t,e,r,n,i){F9e(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function M9e(t,e,r,n,i){F9e(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o=o>>8,t[r+6]=o,o=o>>8,t[r+5]=o,o=o>>8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}Ge.prototype.writeBigUInt64LE=r3(function(e,r=0){return T9e(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ge.prototype.writeBigUInt64BE=r3(function(e,r=0){return M9e(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ge.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);Jh(this,e,r,n,c-1,-c)}let o=0,s=1,a=0;for(this[r]=e&255;++o<n&&(s*=256);)e<0&&a===0&&this[r+o-1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};Ge.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);Jh(this,e,r,n,c-1,-c)}let o=n-1,s=1,a=0;for(this[r+o]=e&255;--o>=0&&(s*=256);)e<0&&a===0&&this[r+o+1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};Ge.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};Ge.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};Ge.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};Ge.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(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};Ge.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Jh(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};Ge.prototype.writeBigInt64LE=r3(function(e,r=0){return T9e(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ge.prototype.writeBigInt64BE=r3(function(e,r=0){return M9e(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function O9e(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 Q9e(t,e,r,n,i){return e=+e,r=r>>>0,i||O9e(t,e,r,4,34028234663852886e22,-34028234663852886e22),bB.write(t,e,r,n,23,4),r+4}Ge.prototype.writeFloatLE=function(e,r,n){return Q9e(this,e,r,!0,n)};Ge.prototype.writeFloatBE=function(e,r,n){return Q9e(this,e,r,!1,n)};function N9e(t,e,r,n,i){return e=+e,r=r>>>0,i||O9e(t,e,r,8,17976931348623157e292,-17976931348623157e292),bB.write(t,e,r,n,52,8),r+8}Ge.prototype.writeDoubleLE=function(e,r,n){return N9e(this,e,r,!0,n)};Ge.prototype.writeDoubleBE=function(e,r,n){return N9e(this,e,r,!1,n)};Ge.prototype.copy=function(e,r,n,i){if(!Ge.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);let 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};Ge.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"&&!Ge.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let s=e.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(e=s)}}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);let o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{let s=Ge.isBuffer(e)?e:Ge.from(e,i),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var AB={};function Hae(t,e,r){AB[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Hae("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Hae("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Hae("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=S9e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=S9e(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function S9e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function iPt(t,e,r){wB(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&bM(e,t.length-(r+1))}function F9e(t,e,r,n,i,o){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw o>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new AB.ERR_OUT_OF_RANGE("value",a,t)}iPt(n,i,o)}function wB(t,e){if(typeof t!="number")throw new AB.ERR_INVALID_ARG_TYPE(e,"number",t)}function bM(t,e,r){throw Math.floor(t)!==t?(wB(t,r),new AB.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new AB.ERR_BUFFER_OUT_OF_BOUNDS:new AB.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var oPt=/[^+/0-9A-Za-z-_]/g;function sPt(t){if(t=t.split("=")[0],t=t.trim().replace(oPt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Lae(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}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 aPt(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function cPt(t,e){let r,n,i,o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function U9e(t){return Nae.toByteArray(sPt(t))}function lG(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function D1(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Gae(t){return t!==t}var uPt=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function r3(t){return typeof BigInt>"u"?lPt:t}function lPt(){throw new Error("BigInt not supported")}});var h=$(()=>{var L9e=Ni().Buffer,{Buffer:fPt}=Ni();L9e.prototype.writeBigUInt64BE=fPt.prototype.writeBigUInt64BE;globalThis.Buffer=L9e});var Z9e=$(vB=>{"use strict";p();var n$r=d(h());var jae=Mae(),EB=Qae(),K9e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vB.Buffer=Xe;vB.SlowBuffer=mPt;vB.INSPECT_MAX_BYTES=50;var fG=2147483647;vB.kMaxLength=fG;Xe.TYPED_ARRAY_SUPPORT=dPt();!Xe.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 dPt(){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(Xe.prototype,"parent",{enumerable:!0,get:function(){if(Xe.isBuffer(this))return this.buffer}});Object.defineProperty(Xe.prototype,"offset",{enumerable:!0,get:function(){if(Xe.isBuffer(this))return this.byteOffset}});function vw(t){if(t>fG)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,Xe.prototype),e}function Xe(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 Jae(t)}return G9e(t,e,r)}Xe.poolSize=8192;function G9e(t,e,r){if(typeof t=="string")return pPt(t,e);if(ArrayBuffer.isView(t))return gPt(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(R1(t,ArrayBuffer)||t&&R1(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R1(t,SharedArrayBuffer)||t&&R1(t.buffer,SharedArrayBuffer)))return Vae(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 Xe.from(n,e,r);var i=yPt(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Xe.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)}Xe.from=function(t,e,r){return G9e(t,e,r)};Object.setPrototypeOf(Xe.prototype,Uint8Array.prototype);Object.setPrototypeOf(Xe,Uint8Array);function j9e(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 hPt(t,e,r){return j9e(t),t<=0?vw(t):e!==void 0?typeof r=="string"?vw(t).fill(e,r):vw(t).fill(e):vw(t)}Xe.alloc=function(t,e,r){return hPt(t,e,r)};function Jae(t){return j9e(t),vw(t<0?0:Wae(t)|0)}Xe.allocUnsafe=function(t){return Jae(t)};Xe.allocUnsafeSlow=function(t){return Jae(t)};function pPt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Xe.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=z9e(t,e)|0,n=vw(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function zae(t){for(var e=t.length<0?0:Wae(t.length)|0,r=vw(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function gPt(t){if(R1(t,Uint8Array)){var e=new Uint8Array(t);return Vae(e.buffer,e.byteOffset,e.byteLength)}return zae(t)}function Vae(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,Xe.prototype),n}function yPt(t){if(Xe.isBuffer(t)){var e=Wae(t.length)|0,r=vw(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Yae(t.length)?vw(0):zae(t);if(t.type==="Buffer"&&Array.isArray(t.data))return zae(t.data)}function Wae(t){if(t>=fG)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fG.toString(16)+" bytes");return t|0}function mPt(t){return+t!=t&&(t=0),Xe.alloc(+t)}Xe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Xe.prototype};Xe.compare=function(e,r){if(R1(e,Uint8Array)&&(e=Xe.from(e,e.offset,e.byteLength)),R1(r,Uint8Array)&&(r=Xe.from(r,r.offset,r.byteLength)),!Xe.isBuffer(e)||!Xe.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};Xe.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}};Xe.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Xe.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=Xe.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(R1(s,Uint8Array))o+s.length>i.length?Xe.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(Xe.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function z9e(t,e){if(Xe.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R1(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 $ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return X9e(t).length;default:if(i)return n?-1:$ae(t).length;e=(""+e).toLowerCase(),i=!0}}Xe.byteLength=z9e;function APt(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 BPt(this,e,r);case"utf8":case"utf-8":return $9e(this,e,r);case"ascii":return _Pt(this,e,r);case"latin1":case"binary":return SPt(this,e,r);case"base64":return xPt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DPt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}Xe.prototype._isBuffer=!0;function J4(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Xe.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)J4(this,r,r+1);return this};Xe.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)J4(this,r,r+3),J4(this,r+1,r+2);return this};Xe.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)J4(this,r,r+7),J4(this,r+1,r+6),J4(this,r+2,r+5),J4(this,r+3,r+4);return this};Xe.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?$9e(this,0,e):APt.apply(this,arguments)};Xe.prototype.toLocaleString=Xe.prototype.toString;Xe.prototype.equals=function(e){if(!Xe.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Xe.compare(this,e)===0};Xe.prototype.inspect=function(){var e="",r=vB.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};K9e&&(Xe.prototype[K9e]=Xe.prototype.inspect);Xe.prototype.compare=function(e,r,n,i,o){if(R1(e,Uint8Array)&&(e=Xe.from(e,e.offset,e.byteLength)),!Xe.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,c=Math.min(s,a),l=this.slice(i,o),u=e.slice(r,n),f=0;f<c;++f)if(l[f]!==u[f]){s=l[f],a=u[f];break}return s<a?-1:a<s?1:0};function V9e(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,Yae(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=Xe.from(e,n)),Xe.isBuffer(e))return e.length===0?-1:q9e(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):q9e(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function q9e(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 c(y,m){return o===1?y[m]:y.readUInt16BE(m*o)}var l;if(i){var u=-1;for(l=r;l<s;l++)if(c(t,l)===c(e,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===a)return u*o}else u!==-1&&(l-=l-u),u=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var f=!0,g=0;g<a;g++)if(c(t,l+g)!==c(e,g)){f=!1;break}if(f)return l}return-1}Xe.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Xe.prototype.indexOf=function(e,r,n){return V9e(this,e,r,n,!0)};Xe.prototype.lastIndexOf=function(e,r,n){return V9e(this,e,r,n,!1)};function bPt(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(Yae(a))return s;t[r+s]=a}return s}function wPt(t,e,r,n){return dG($ae(e,t.length-r),t,r,n)}function IPt(t,e,r,n){return dG(PPt(e),t,r,n)}function EPt(t,e,r,n){return dG(X9e(e),t,r,n)}function vPt(t,e,r,n){return dG(TPt(e,t.length-r),t,r,n)}Xe.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 bPt(this,e,r,n);case"utf8":case"utf-8":return wPt(this,e,r,n);case"ascii":case"latin1":case"binary":return IPt(this,e,r,n);case"base64":return EPt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vPt(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};Xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xPt(t,e,r){return e===0&&r===t.length?jae.fromByteArray(t):jae.fromByteArray(t.slice(e,r))}function $9e(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 c,l,u,f;switch(a){case 1:o<128&&(s=o);break;case 2:c=t[i+1],(c&192)===128&&(f=(o&31)<<6|c&63,f>127&&(s=f));break;case 3:c=t[i+1],l=t[i+2],(c&192)===128&&(l&192)===128&&(f=(o&15)<<12|(c&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:c=t[i+1],l=t[i+2],u=t[i+3],(c&192)===128&&(l&192)===128&&(u&192)===128&&(f=(o&15)<<18|(c&63)<<12|(l&63)<<6|u&63,f>65535&&f<1114112&&(s=f))}}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 CPt(n)}var H9e=4096;function CPt(t){var e=t.length;if(e<=H9e)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=H9e));return r}function _Pt(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 SPt(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 BPt(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+=MPt[t[o]];return i}function DPt(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}Xe.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,Xe.prototype),i};function nl(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")}Xe.prototype.readUintLE=Xe.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||nl(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};Xe.prototype.readUintBE=Xe.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||nl(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};Xe.prototype.readUint8=Xe.prototype.readUInt8=function(e,r){return e=e>>>0,r||nl(e,1,this.length),this[e]};Xe.prototype.readUint16LE=Xe.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||nl(e,2,this.length),this[e]|this[e+1]<<8};Xe.prototype.readUint16BE=Xe.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||nl(e,2,this.length),this[e]<<8|this[e+1]};Xe.prototype.readUint32LE=Xe.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Xe.prototype.readUint32BE=Xe.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Xe.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||nl(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};Xe.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||nl(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};Xe.prototype.readInt8=function(e,r){return e=e>>>0,r||nl(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Xe.prototype.readInt16LE=function(e,r){e=e>>>0,r||nl(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Xe.prototype.readInt16BE=function(e,r){e=e>>>0,r||nl(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Xe.prototype.readInt32LE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Xe.prototype.readInt32BE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Xe.prototype.readFloatLE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),EB.read(this,e,!0,23,4)};Xe.prototype.readFloatBE=function(e,r){return e=e>>>0,r||nl(e,4,this.length),EB.read(this,e,!1,23,4)};Xe.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||nl(e,8,this.length),EB.read(this,e,!0,52,8)};Xe.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||nl(e,8,this.length),EB.read(this,e,!1,52,8)};function Wh(t,e,r,n,i,o){if(!Xe.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")}Xe.prototype.writeUintLE=Xe.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;Wh(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};Xe.prototype.writeUintBE=Xe.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;Wh(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};Xe.prototype.writeUint8=Xe.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,1,255,0),this[r]=e&255,r+1};Xe.prototype.writeUint16LE=Xe.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};Xe.prototype.writeUint16BE=Xe.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};Xe.prototype.writeUint32LE=Xe.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(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};Xe.prototype.writeUint32BE=Xe.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(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};Xe.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);Wh(this,e,r,n,o-1,-o)}var s=0,a=1,c=0;for(this[r]=e&255;++s<n&&(a*=256);)e<0&&c===0&&this[r+s-1]!==0&&(c=1),this[r+s]=(e/a>>0)-c&255;return r+n};Xe.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);Wh(this,e,r,n,o-1,-o)}var s=n-1,a=1,c=0;for(this[r+s]=e&255;--s>=0&&(a*=256);)e<0&&c===0&&this[r+s+1]!==0&&(c=1),this[r+s]=(e/a>>0)-c&255;return r+n};Xe.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};Xe.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};Xe.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};Xe.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(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};Xe.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Wh(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 J9e(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 W9e(t,e,r,n,i){return e=+e,r=r>>>0,i||J9e(t,e,r,4,34028234663852886e22,-34028234663852886e22),EB.write(t,e,r,n,23,4),r+4}Xe.prototype.writeFloatLE=function(e,r,n){return W9e(this,e,r,!0,n)};Xe.prototype.writeFloatBE=function(e,r,n){return W9e(this,e,r,!1,n)};function Y9e(t,e,r,n,i){return e=+e,r=r>>>0,i||J9e(t,e,r,8,17976931348623157e292,-17976931348623157e292),EB.write(t,e,r,n,52,8),r+8}Xe.prototype.writeDoubleLE=function(e,r,n){return Y9e(this,e,r,!0,n)};Xe.prototype.writeDoubleBE=function(e,r,n){return Y9e(this,e,r,!1,n)};Xe.prototype.copy=function(e,r,n,i){if(!Xe.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};Xe.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"&&!Xe.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=Xe.isBuffer(e)?e:Xe.from(e,i),c=a.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=a[s%c]}return this};var RPt=/[^+/0-9A-Za-z-_]/g;function kPt(t){if(t=t.split("=")[0],t=t.trim().replace(RPt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function $ae(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