UNPKG

@dsnp/parquetjs

Version:

fully asynchronous, pure JavaScript implementation of the Parquet file format

1 lines 2.13 MB
var UO=Object.create;var kc=Object.defineProperty;var GO=Object.getOwnPropertyDescriptor;var KO=Object.getOwnPropertyNames;var WO=Object.getPrototypeOf,HO=Object.prototype.hasOwnProperty;var VO=(A,e,t)=>e in A?kc(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t;var XO=(A=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(A,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):A)(function(A){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+A+'" is not supported')});var YO=(A,e)=>()=>(A&&(e=A(A=0)),e);var R=(A,e)=>()=>(e||A((e={exports:{}}).exports,e),e.exports),kt=(A,e)=>{for(var t in e)kc(A,t,{get:e[t],enumerable:!0})},JO=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of KO(e))!HO.call(A,n)&&n!==t&&kc(A,n,{get:()=>e[n],enumerable:!(r=GO(e,n))||r.enumerable});return A};var DA=(A,e,t)=>(t=A!=null?UO(WO(A)):{},JO(e||!A||!A.__esModule?kc(t,"default",{value:A,enumerable:!0}):t,A));var z=(A,e,t)=>VO(A,typeof e!="symbol"?e+"":e,t);var Rw=(()=>{for(var A=new Uint8Array(128),e=0;e<64;e++)A[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return t=>{for(var r=t.length,n=new Uint8Array((r-(t[r-1]=="=")-(t[r-2]=="="))*3/4|0),i=0,s=0;i<r;){var o=A[t.charCodeAt(i++)],a=A[t.charCodeAt(i++)],l=A[t.charCodeAt(i++)],f=A[t.charCodeAt(i++)];n[s++]=o<<2|a>>4,n[s++]=a<<4|l>>2,n[s++]=l<<6|f}return n}})();var Nw=R(Ic=>{"use strict";c();Ic.byteLength=QO;Ic.toByteArray=eq;Ic.fromByteArray=nq;var Gt=[],ct=[],ZO=typeof Uint8Array<"u"?Uint8Array:Array,Nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Zn=0,Cw=Nu.length;Zn<Cw;++Zn)Gt[Zn]=Nu[Zn],ct[Nu.charCodeAt(Zn)]=Zn;var Zn,Cw;ct[45]=62;ct[95]=63;function Fw(A){var e=A.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=A.indexOf("=");t===-1&&(t=e);var r=t===e?0:4-t%4;return[t,r]}function QO(A){var e=Fw(A),t=e[0],r=e[1];return(t+r)*3/4-r}function Aq(A,e,t){return(e+t)*3/4-t}function eq(A){var e,t=Fw(A),r=t[0],n=t[1],i=new ZO(Aq(A,r,n)),s=0,o=n>0?r-4:r,a;for(a=0;a<o;a+=4)e=ct[A.charCodeAt(a)]<<18|ct[A.charCodeAt(a+1)]<<12|ct[A.charCodeAt(a+2)]<<6|ct[A.charCodeAt(a+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=ct[A.charCodeAt(a)]<<2|ct[A.charCodeAt(a+1)]>>4,i[s++]=e&255),n===1&&(e=ct[A.charCodeAt(a)]<<10|ct[A.charCodeAt(a+1)]<<4|ct[A.charCodeAt(a+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function tq(A){return Gt[A>>18&63]+Gt[A>>12&63]+Gt[A>>6&63]+Gt[A&63]}function rq(A,e,t){for(var r,n=[],i=e;i<t;i+=3)r=(A[i]<<16&16711680)+(A[i+1]<<8&65280)+(A[i+2]&255),n.push(tq(r));return n.join("")}function nq(A){for(var e,t=A.length,r=t%3,n=[],i=16383,s=0,o=t-r;s<o;s+=i)n.push(rq(A,s,s+i>o?o:s+i));return r===1?(e=A[t-1],n.push(Gt[e>>2]+Gt[e<<4&63]+"==")):r===2&&(e=(A[t-2]<<8)+A[t-1],n.push(Gt[e>>10]+Gt[e>>4&63]+Gt[e<<2&63]+"=")),n.join("")}});var zw=R(zu=>{c();zu.read=function(A,e,t,r,n){var i,s,o=n*8-r-1,a=(1<<o)-1,l=a>>1,f=-7,d=t?n-1:0,j=t?-1:1,p=A[e+d];for(d+=j,i=p&(1<<-f)-1,p>>=-f,f+=o;f>0;i=i*256+A[e+d],d+=j,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=s*256+A[e+d],d+=j,f-=8);if(i===0)i=1-l;else{if(i===a)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-l}return(p?-1:1)*s*Math.pow(2,i-r)};zu.write=function(A,e,t,r,n,i){var s,o,a,l=i*8-n-1,f=(1<<l)-1,d=f>>1,j=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,y=r?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+d>=1?e+=j/a:e+=j*Math.pow(2,1-d),e*a>=2&&(s++,a/=2),s+d>=f?(o=0,s=f):s+d>=1?(o=(e*a-1)*Math.pow(2,n),s=s+d):(o=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;A[t+p]=o&255,p+=y,o/=256,n-=8);for(s=s<<n|o,l+=n;l>0;A[t+p]=s&255,p+=y,s/=256,l-=8);A[t+p-y]|=_*128}});var Ie=R(cs=>{"use strict";c();var Pu=Nw(),os=zw(),Pw=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;cs.Buffer=C;cs.SlowBuffer=lq;cs.INSPECT_MAX_BYTES=50;var Tc=2147483647;cs.kMaxLength=Tc;C.TYPED_ARRAY_SUPPORT=iq();!C.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 iq(){try{let A=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(A,e),A.foo()===42}catch{return!1}}Object.defineProperty(C.prototype,"parent",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.buffer}});Object.defineProperty(C.prototype,"offset",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.byteOffset}});function gr(A){if(A>Tc)throw new RangeError('The value "'+A+'" is invalid for option "size"');let e=new Uint8Array(A);return Object.setPrototypeOf(e,C.prototype),e}function C(A,e,t){if(typeof A=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $u(A)}return $w(A,e,t)}C.poolSize=8192;function $w(A,e,t){if(typeof A=="string")return oq(A,e);if(ArrayBuffer.isView(A))return aq(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Kt(A,ArrayBuffer)||A&&Kt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(A,SharedArrayBuffer)||A&&Kt(A.buffer,SharedArrayBuffer)))return Lu(A,e,t);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let r=A.valueOf&&A.valueOf();if(r!=null&&r!==A)return C.from(r,e,t);let n=cq(A);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return C.from(A[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}C.from=function(A,e,t){return $w(A,e,t)};Object.setPrototypeOf(C.prototype,Uint8Array.prototype);Object.setPrototypeOf(C,Uint8Array);function Uw(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function sq(A,e,t){return Uw(A),A<=0?gr(A):e!==void 0?typeof t=="string"?gr(A).fill(e,t):gr(A).fill(e):gr(A)}C.alloc=function(A,e,t){return sq(A,e,t)};function $u(A){return Uw(A),gr(A<0?0:Uu(A)|0)}C.allocUnsafe=function(A){return $u(A)};C.allocUnsafeSlow=function(A){return $u(A)};function oq(A,e){if((typeof e!="string"||e==="")&&(e="utf8"),!C.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Gw(A,e)|0,r=gr(t),n=r.write(A,e);return n!==t&&(r=r.slice(0,n)),r}function Mu(A){let e=A.length<0?0:Uu(A.length)|0,t=gr(e);for(let r=0;r<e;r+=1)t[r]=A[r]&255;return t}function aq(A){if(Kt(A,Uint8Array)){let e=new Uint8Array(A);return Lu(e.buffer,e.byteOffset,e.byteLength)}return Mu(A)}function Lu(A,e,t){if(e<0||A.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return e===void 0&&t===void 0?r=new Uint8Array(A):t===void 0?r=new Uint8Array(A,e):r=new Uint8Array(A,e,t),Object.setPrototypeOf(r,C.prototype),r}function cq(A){if(C.isBuffer(A)){let e=Uu(A.length)|0,t=gr(e);return t.length===0||A.copy(t,0,0,e),t}if(A.length!==void 0)return typeof A.length!="number"||Ku(A.length)?gr(0):Mu(A);if(A.type==="Buffer"&&Array.isArray(A.data))return Mu(A.data)}function Uu(A){if(A>=Tc)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Tc.toString(16)+" bytes");return A|0}function lq(A){return+A!=A&&(A=0),C.alloc(+A)}C.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==C.prototype};C.compare=function(e,t){if(Kt(e,Uint8Array)&&(e=C.from(e,e.offset,e.byteLength)),Kt(t,Uint8Array)&&(t=C.from(t,t.offset,t.byteLength)),!C.isBuffer(e)||!C.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0};C.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}};C.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return C.alloc(0);let r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;let n=C.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let s=e[r];if(Kt(s,Uint8Array))i+s.length>n.length?(C.isBuffer(s)||(s=C.from(s)),s.copy(n,i)):Uint8Array.prototype.set.call(n,s,i);else if(C.isBuffer(s))s.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n};function Gw(A,e){if(C.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Kt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let t=A.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&t===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Du(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Qw(A).length;default:if(n)return r?-1:Du(A).length;e=(""+e).toLowerCase(),n=!0}}C.byteLength=Gw;function fq(A,e,t){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(A||(A="utf8");;)switch(A){case"hex":return bq(this,e,t);case"utf8":case"utf-8":return Ww(this,e,t);case"ascii":return gq(this,e,t);case"latin1":case"binary":return wq(this,e,t);case"base64":return yq(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _q(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),r=!0}}C.prototype._isBuffer=!0;function Qn(A,e,t){let r=A[e];A[e]=A[t],A[t]=r}C.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 t=0;t<e;t+=2)Qn(this,t,t+1);return this};C.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 t=0;t<e;t+=4)Qn(this,t,t+3),Qn(this,t+1,t+2);return this};C.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 t=0;t<e;t+=8)Qn(this,t,t+7),Qn(this,t+1,t+6),Qn(this,t+2,t+5),Qn(this,t+3,t+4);return this};C.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Ww(this,0,e):fq.apply(this,arguments)};C.prototype.toLocaleString=C.prototype.toString;C.prototype.equals=function(e){if(!C.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:C.compare(this,e)===0};C.prototype.inspect=function(){let e="",t=cs.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Pw&&(C.prototype[Pw]=C.prototype.inspect);C.prototype.compare=function(e,t,r,n,i){if(Kt(e,Uint8Array)&&(e=C.from(e,e.offset,e.byteLength)),!C.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,a=Math.min(s,o),l=this.slice(n,i),f=e.slice(t,r);for(let d=0;d<a;++d)if(l[d]!==f[d]){s=l[d],o=f[d];break}return s<o?-1:o<s?1:0};function Kw(A,e,t,r,n){if(A.length===0)return-1;if(typeof t=="string"?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Ku(t)&&(t=n?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(n)return-1;t=A.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=C.from(e,r)),C.isBuffer(e))return e.length===0?-1:Mw(A,e,t,r,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(A,e,t):Uint8Array.prototype.lastIndexOf.call(A,e,t):Mw(A,[e],t,r,n);throw new TypeError("val must be string, number or Buffer")}function Mw(A,e,t,r,n){let i=1,s=A.length,o=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(A.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function a(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}let l;if(n){let f=-1;for(l=t;l<s;l++)if(a(A,l)===a(e,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===o)return f*i}else f!==-1&&(l-=l-f),f=-1}else for(t+o>s&&(t=s-o),l=t;l>=0;l--){let f=!0;for(let d=0;d<o;d++)if(a(A,l+d)!==a(e,d)){f=!1;break}if(f)return l}return-1}C.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1};C.prototype.indexOf=function(e,t,r){return Kw(this,e,t,r,!0)};C.prototype.lastIndexOf=function(e,t,r){return Kw(this,e,t,r,!1)};function dq(A,e,t,r){t=Number(t)||0;let n=A.length-t;r?(r=Number(r),r>n&&(r=n)):r=n;let i=e.length;r>i/2&&(r=i/2);let s;for(s=0;s<r;++s){let o=parseInt(e.substr(s*2,2),16);if(Ku(o))return s;A[t+s]=o}return s}function uq(A,e,t,r){return Bc(Du(e,A.length-t),A,t,r)}function hq(A,e,t,r){return Bc(Sq(e),A,t,r)}function jq(A,e,t,r){return Bc(Qw(e),A,t,r)}function pq(A,e,t,r){return Bc(kq(e,A.length-t),A,t,r)}C.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return dq(this,e,t,r);case"utf8":case"utf-8":return uq(this,e,t,r);case"ascii":case"latin1":case"binary":return hq(this,e,t,r);case"base64":return jq(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pq(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}};C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yq(A,e,t){return e===0&&t===A.length?Pu.fromByteArray(A):Pu.fromByteArray(A.slice(e,t))}function Ww(A,e,t){t=Math.min(A.length,t);let r=[],n=e;for(;n<t;){let i=A[n],s=null,o=i>239?4:i>223?3:i>191?2:1;if(n+o<=t){let a,l,f,d;switch(o){case 1:i<128&&(s=i);break;case 2:a=A[n+1],(a&192)===128&&(d=(i&31)<<6|a&63,d>127&&(s=d));break;case 3:a=A[n+1],l=A[n+2],(a&192)===128&&(l&192)===128&&(d=(i&15)<<12|(a&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:a=A[n+1],l=A[n+2],f=A[n+3],(a&192)===128&&(l&192)===128&&(f&192)===128&&(d=(i&15)<<18|(a&63)<<12|(l&63)<<6|f&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|s&1023),r.push(s),n+=o}return mq(r)}var Lw=4096;function mq(A){let e=A.length;if(e<=Lw)return String.fromCharCode.apply(String,A);let t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,A.slice(r,r+=Lw));return t}function gq(A,e,t){let r="";t=Math.min(A.length,t);for(let n=e;n<t;++n)r+=String.fromCharCode(A[n]&127);return r}function wq(A,e,t){let r="";t=Math.min(A.length,t);for(let n=e;n<t;++n)r+=String.fromCharCode(A[n]);return r}function bq(A,e,t){let r=A.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);let n="";for(let i=e;i<t;++i)n+=Iq[A[i]];return n}function _q(A,e,t){let r=A.slice(e,t),n="";for(let i=0;i<r.length-1;i+=2)n+=String.fromCharCode(r[i]+r[i+1]*256);return n}C.prototype.slice=function(e,t){let r=this.length;e=~~e,t=t===void 0?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,C.prototype),n};function ge(A,e,t){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+e>t)throw new RangeError("Trying to access beyond buffer length")}C.prototype.readUintLE=C.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n};C.prototype.readUintBE=C.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};C.prototype.readUint8=C.prototype.readUInt8=function(e,t){return e=e>>>0,t||ge(e,1,this.length),this[e]};C.prototype.readUint16LE=C.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ge(e,2,this.length),this[e]|this[e+1]<<8};C.prototype.readUint16BE=C.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ge(e,2,this.length),this[e]<<8|this[e+1]};C.prototype.readUint32LE=C.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};C.prototype.readUint32BE=C.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};C.prototype.readBigUInt64LE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&qo(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))});C.prototype.readBigUInt64BE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&qo(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<<BigInt(32))+BigInt(i)});C.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n};C.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};C.prototype.readInt8=function(e,t){return e=e>>>0,t||ge(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};C.prototype.readInt16LE=function(e,t){e=e>>>0,t||ge(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};C.prototype.readInt16BE=function(e,t){e=e>>>0,t||ge(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};C.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};C.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};C.prototype.readBigInt64LE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&qo(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});C.prototype.readBigInt64BE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&qo(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)});C.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),os.read(this,e,!0,23,4)};C.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),os.read(this,e,!1,23,4)};C.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ge(e,8,this.length),os.read(this,e,!0,52,8)};C.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ge(e,8,this.length),os.read(this,e,!1,52,8)};function He(A,e,t,r,n,i){if(!C.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<i)throw new RangeError('"value" argument is out of bounds');if(t+r>A.length)throw new RangeError("Index out of range")}C.prototype.writeUintLE=C.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let o=Math.pow(2,8*r)-1;He(this,e,t,r,o,0)}let i=1,s=0;for(this[t]=e&255;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r};C.prototype.writeUintBE=C.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let o=Math.pow(2,8*r)-1;He(this,e,t,r,o,0)}let i=r-1,s=1;for(this[t+i]=e&255;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r};C.prototype.writeUint8=C.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,1,255,0),this[t]=e&255,t+1};C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Hw(A,e,t,r,n){Zw(e,r,n,A,t,7);let i=Number(e&BigInt(4294967295));A[t++]=i,i=i>>8,A[t++]=i,i=i>>8,A[t++]=i,i=i>>8,A[t++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return A[t++]=s,s=s>>8,A[t++]=s,s=s>>8,A[t++]=s,s=s>>8,A[t++]=s,t}function Vw(A,e,t,r,n){Zw(e,r,n,A,t,7);let i=Number(e&BigInt(4294967295));A[t+7]=i,i=i>>8,A[t+6]=i,i=i>>8,A[t+5]=i,i=i>>8,A[t+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return A[t+3]=s,s=s>>8,A[t+2]=s,s=s>>8,A[t+1]=s,s=s>>8,A[t]=s,t+8}C.prototype.writeBigUInt64LE=ln(function(e,t=0){return Hw(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});C.prototype.writeBigUInt64BE=ln(function(e,t=0){return Vw(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});C.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);He(this,e,t,r,a-1,-a)}let i=0,s=1,o=0;for(this[t]=e&255;++i<r&&(s*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r};C.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);He(this,e,t,r,a-1,-a)}let i=r-1,s=1,o=0;for(this[t+i]=e&255;--i>=0&&(s*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r};C.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};C.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};C.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};C.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};C.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};C.prototype.writeBigInt64LE=ln(function(e,t=0){return Hw(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});C.prototype.writeBigInt64BE=ln(function(e,t=0){return Vw(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xw(A,e,t,r,n,i){if(t+r>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Yw(A,e,t,r,n){return e=+e,t=t>>>0,n||Xw(A,e,t,4,34028234663852886e22,-34028234663852886e22),os.write(A,e,t,r,23,4),t+4}C.prototype.writeFloatLE=function(e,t,r){return Yw(this,e,t,!0,r)};C.prototype.writeFloatBE=function(e,t,r){return Yw(this,e,t,!1,r)};function Jw(A,e,t,r,n){return e=+e,t=t>>>0,n||Xw(A,e,t,8,17976931348623157e292,-17976931348623157e292),os.write(A,e,t,r,52,8),t+8}C.prototype.writeDoubleLE=function(e,t,r){return Jw(this,e,t,!0,r)};C.prototype.writeDoubleBE=function(e,t,r){return Jw(this,e,t,!1,r)};C.prototype.copy=function(e,t,r,n){if(!C.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i};C.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!C.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let s=e.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i<r;++i)this[i]=e;else{let s=C.isBuffer(e)?e:C.from(e,n),o=s.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};var ss={};function Gu(A,e,t){ss[A]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}Gu("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Gu("ERR_INVALID_ARG_TYPE",function(A,e){return`The "${A}" argument must be of type number. Received type ${typeof e}`},TypeError);Gu("ERR_OUT_OF_RANGE",function(A,e,t){let r=`The value of "${A}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=Dw(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=Dw(n)),n+="n"),r+=` It must be ${e}. Received ${n}`,r},RangeError);function Dw(A){let e="",t=A.length,r=A[0]==="-"?1:0;for(;t>=r+4;t-=3)e=`_${A.slice(t-3,t)}${e}`;return`${A.slice(0,t)}${e}`}function Eq(A,e,t){as(e,"offset"),(A[e]===void 0||A[e+t]===void 0)&&qo(e,A.length-(t+1))}function Zw(A,e,t,r,n,i){if(A>t||A<e){let s=typeof e=="bigint"?"n":"",o;throw i>3?e===0||e===BigInt(0)?o=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:o=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:o=`>= ${e}${s} and <= ${t}${s}`,new ss.ERR_OUT_OF_RANGE("value",o,A)}Eq(r,n,i)}function as(A,e){if(typeof A!="number")throw new ss.ERR_INVALID_ARG_TYPE(e,"number",A)}function qo(A,e,t){throw Math.floor(A)!==A?(as(A,t),new ss.ERR_OUT_OF_RANGE(t||"offset","an integer",A)):e<0?new ss.ERR_BUFFER_OUT_OF_BOUNDS:new ss.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,A)}var vq=/[^+/0-9A-Za-z-_]/g;function xq(A){if(A=A.split("=")[0],A=A.trim().replace(vq,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function Du(A,e){e=e||1/0;let t,r=A.length,n=null,i=[];for(let s=0;s<r;++s){if(t=A.charCodeAt(s),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Sq(A){let e=[];for(let t=0;t<A.length;++t)e.push(A.charCodeAt(t)&255);return e}function kq(A,e){let t,r,n,i=[];for(let s=0;s<A.length&&!((e-=2)<0);++s)t=A.charCodeAt(s),r=t>>8,n=t%256,i.push(n),i.push(r);return i}function Qw(A){return Pu.toByteArray(xq(A))}function Bc(A,e,t,r){let n;for(n=0;n<r&&!(n+t>=e.length||n>=A.length);++n)e[n+t]=A[n];return n}function Kt(A,e){return A instanceof e||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===e.name}function Ku(A){return A!==A}var Iq=function(){let A="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let r=t*16;for(let n=0;n<16;++n)e[r+n]=A[t]+A[n]}return e}();function ln(A){return typeof BigInt>"u"?Tq:A}function Tq(){throw new Error("BigInt not supported")}});var Ab,u,c=YO(()=>{"use strict";Ab=DA(Ie(),1),u=Ab.Buffer});var Wt=R((ZW,tb)=>{c();var Wu=4294967296,eb=[];for(ls=0;ls<256;ls++)eb[ls]=(ls>15?"":"0")+ls.toString(16);var ls,Ro=tb.exports=function(A,e){A instanceof u?(this.buffer=A,this.offset=e||0):Object.prototype.toString.call(A)=="[object Uint8Array]"?(this.buffer=new u(A),this.offset=e||0):(this.buffer=this.buffer||new u(8),this.offset=0,this.setValue.apply(this,arguments))};Ro.MAX_INT=Math.pow(2,53);Ro.MIN_INT=-Math.pow(2,53);Ro.prototype={constructor:Ro,_2scomp:function(){for(var A=this.buffer,e=this.offset,t=1,r=e+7;r>=e;r--){var n=(A[r]^255)+t;A[r]=n&255,t=n>>8}},setValue:function(A,e){var t=!1;if(arguments.length==1)if(typeof A=="number"){if(t=A<0,A=Math.abs(A),e=A%Wu,A=A/Wu,A>Wu)throw new RangeError(A+" is outside Int64 range");A=A|0}else if(typeof A=="string")A=(A+"").replace(/^0x/,""),e=A.substr(-8),A=A.length>8?A.substr(0,A.length-8):"",A=parseInt(A,16),e=parseInt(e,16);else throw new Error(A+" must be a Number or String");for(var r=this.buffer,n=this.offset,i=7;i>=0;i--)r[n+i]=e&255,e=i==4?A:e>>>8;t&&this._2scomp()},toNumber:function(A){for(var e=this.buffer,t=this.offset,r=e[t]&128,n=0,i=1,s=7,o=1;s>=0;s--,o*=256){var a=e[t+s];r&&(a=(a^255)+i,i=a>>8,a=a&255),n+=a*o}return!A&&n>=Ro.MAX_INT?r?-1/0:1/0:r?-n:n},valueOf:function(){return this.toNumber(!1)},toString:function(A){return this.valueOf().toString(A||10)},toOctetString:function(A){for(var e=new Array(8),t=this.buffer,r=this.offset,n=0;n<8;n++)e[n]=eb[t[r+n]];return e.join(A||"")},toBuffer:function(A){if(A&&this.offset===0)return this.buffer;var e=new u(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(A,e){this.buffer.copy(A,e||0,this.offset,this.offset+8)},compare:function(A){if((this.buffer[this.offset]&128)!=(A.buffer[A.offset]&128))return A.buffer[A.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==A.buffer[A.offset+e])return this.buffer[this.offset+e]-A.buffer[A.offset+e];return 0},equals:function(A){return this.compare(A)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var Hu=R((A5,rb)=>{"use strict";c();rb.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Co=R((t5,nb)=>{"use strict";c();var Bq=Hu();nb.exports=function(){return Bq()&&!!Symbol.toStringTag}});var sb=R((n5,ib)=>{"use strict";c();ib.exports=Error});var ab=R((s5,ob)=>{"use strict";c();ob.exports=EvalError});var lb=R((a5,cb)=>{"use strict";c();cb.exports=RangeError});var db=R((l5,fb)=>{"use strict";c();fb.exports=ReferenceError});var Vu=R((d5,ub)=>{"use strict";c();ub.exports=SyntaxError});var Fo=R((h5,hb)=>{"use strict";c();hb.exports=TypeError});var pb=R((p5,jb)=>{"use strict";c();jb.exports=URIError});var gb=R((m5,mb)=>{"use strict";c();var yb=typeof Symbol<"u"&&Symbol,Oq=Hu();mb.exports=function(){return typeof yb!="function"||typeof Symbol!="function"||typeof yb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Oq()}});var _b=R((w5,bb)=>{"use strict";c();var wb={foo:{}},qq=Object;bb.exports=function(){return{__proto__:wb}.foo===wb.foo&&!({__proto__:null}instanceof qq)}});var xb=R((_5,vb)=>{"use strict";c();var Rq="Function.prototype.bind called on incompatible ",Cq=Object.prototype.toString,Fq=Math.max,Nq="[object Function]",Eb=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},zq=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},Pq=function(A,e){for(var t="",r=0;r<A.length;r+=1)t+=A[r],r+1<A.length&&(t+=e);return t};vb.exports=function(e){var t=this;if(typeof t!="function"||Cq.apply(t)!==Nq)throw new TypeError(Rq+t);for(var r=zq(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,Eb(r,arguments));return Object(f)===f?f:this}return t.apply(e,Eb(r,arguments))},s=Fq(0,t.length-r.length),o=[],a=0;a<s;a++)o[a]="$"+a;if(n=Function("binder","return function ("+Pq(o,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n}});var Oc=R((v5,Sb)=>{"use strict";c();var Mq=xb();Sb.exports=Function.prototype.bind||Mq});var Ib=R((S5,kb)=>{"use strict";c();var Lq=Function.prototype.call,Dq=Object.prototype.hasOwnProperty,$q=Oc();kb.exports=$q.call(Lq,Dq)});var js=R((I5,Rb)=>{"use strict";c();var wA,Uq=sb(),Gq=ab(),Kq=lb(),Wq=db(),hs=Vu(),us=Fo(),Hq=pb(),qb=Function,Xu=function(A){try{return qb('"use strict"; return ('+A+").constructor;")()}catch{}},Ai=Object.getOwnPropertyDescriptor;if(Ai)try{Ai({},"")}catch{Ai=null}var Yu=function(){throw new us},Vq=Ai?function(){try{return arguments.callee,Yu}catch{try{return Ai(arguments,"callee").get}catch{return Yu}}}():Yu,fs=gb()(),Xq=_b()(),we=Object.getPrototypeOf||(Xq?function(A){return A.__proto__}:null),ds={},Yq=typeof Uint8Array>"u"||!we?wA:we(Uint8Array),ei={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wA:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wA:ArrayBuffer,"%ArrayIteratorPrototype%":fs&&we?we([][Symbol.iterator]()):wA,"%AsyncFromSyncIteratorPrototype%":wA,"%AsyncFunction%":ds,"%AsyncGenerator%":ds,"%AsyncGeneratorFunction%":ds,"%AsyncIteratorPrototype%":ds,"%Atomics%":typeof Atomics>"u"?wA:Atomics,"%BigInt%":typeof BigInt>"u"?wA:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wA:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wA:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wA:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Uq,"%eval%":eval,"%EvalError%":Gq,"%Float32Array%":typeof Float32Array>"u"?wA:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wA:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wA:FinalizationRegistry,"%Function%":qb,"%GeneratorFunction%":ds,"%Int8Array%":typeof Int8Array>"u"?wA:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wA:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wA:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fs&&we?we(we([][Symbol.iterator]())):wA,"%JSON%":typeof JSON=="object"?JSON:wA,"%Map%":typeof Map>"u"?wA:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fs||!we?wA:we(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wA:Promise,"%Proxy%":typeof Proxy>"u"?wA:Proxy,"%RangeError%":Kq,"%ReferenceError%":Wq,"%Reflect%":typeof Reflect>"u"?wA:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wA:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fs||!we?wA:we(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wA:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fs&&we?we(""[Symbol.iterator]()):wA,"%Symbol%":fs?Symbol:wA,"%SyntaxError%":hs,"%ThrowTypeError%":Vq,"%TypedArray%":Yq,"%TypeError%":us,"%Uint8Array%":typeof Uint8Array>"u"?wA:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wA:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wA:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wA:Uint32Array,"%URIError%":Hq,"%WeakMap%":typeof WeakMap>"u"?wA:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wA:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wA:WeakSet};if(we)try{null.error}catch(A){Tb=we(we(A)),ei["%Error.prototype%"]=Tb}var Tb,Jq=function A(e){var t;if(e==="%AsyncFunction%")t=Xu("async function () {}");else if(e==="%GeneratorFunction%")t=Xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Xu("async function* () {}");else if(e==="%AsyncGenerator%"){var r=A("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=A("%AsyncGenerator%");n&&we&&(t=we(n.prototype))}return ei[e]=t,t},Bb={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},No=Oc(),qc=Ib(),Zq=No.call(Function.call,Array.prototype.concat),Qq=No.call(Function.apply,Array.prototype.splice),Ob=No.call(Function.call,String.prototype.replace),Rc=No.call(Function.call,String.prototype.slice),AR=No.call(Function.call,RegExp.prototype.exec),eR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tR=/\\(\\)?/g,rR=function(e){var t=Rc(e,0,1),r=Rc(e,-1);if(t==="%"&&r!=="%")throw new hs("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new hs("invalid intrinsic syntax, expected opening `%`");var n=[];return Ob(e,eR,function(i,s,o,a){n[n.length]=o?Ob(a,tR,"$1"):s||i}),n},nR=function(e,t){var r=e,n;if(qc(Bb,r)&&(n=Bb[r],r="%"+n[0]+"%"),qc(ei,r)){var i=ei[r];if(i===ds&&(i=Jq(r)),typeof i>"u"&&!t)throw new us("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new hs("intrinsic "+e+" does not exist!")};Rb.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new us("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new us('"allowMissing" argument must be a boolean');if(AR(/^%?[^%]*%?$/,e)===null)throw new hs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=rR(e),n=r.length>0?r[0]:"",i=nR("%"+n+"%",t),s=i.name,o=i.value,a=!1,l=i.alias;l&&(n=l[0],Qq(r,Zq([0,1],l)));for(var f=1,d=!0;f<r.length;f+=1){var j=r[f],p=Rc(j,0,1),y=Rc(j,-1);if((p==='"'||p==="'"||p==="`"||y==='"'||y==="'"||y==="`")&&p!==y)throw new hs("property names with quotes must have matching quotes");if((j==="constructor"||!d)&&(a=!0),n+="."+j,s="%"+n+"%",qc(ei,s))o=ei[s];else if(o!=null){if(!(j in o)){if(!t)throw new us("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ai&&f+1>=r.length){var _=Ai(o,j);d=!!_,d&&"get"in _&&!("originalValue"in _.get)?o=_.get:o=o[j]}else d=qc(o,j),o=o[j];d&&!a&&(ei[s]=o)}}return o}});var Fc=R((B5,Cb)=>{"use strict";c();var iR=js(),Cc=iR("%Object.defineProperty%",!0)||!1;if(Cc)try{Cc({},"a",{value:1})}catch{Cc=!1}Cb.exports=Cc});var zo=R((q5,Fb)=>{"use strict";c();var sR=js(),Nc=sR("%Object.getOwnPropertyDescriptor%",!0);if(Nc)try{Nc([],"length")}catch{Nc=null}Fb.exports=Nc});var Mb=R((C5,Pb)=>{"use strict";c();var Nb=Fc(),oR=Vu(),ps=Fo(),zb=zo();Pb.exports=function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new ps("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ps("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ps("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ps("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ps("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ps("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,a=!!zb&&zb(e,t);if(Nb)Nb(e,t,{configurable:s===null&&a?a.configurable:!s,enumerable:n===null&&a?a.enumerable:!n,value:r,writable:i===null&&a?a.writable:!i});else if(o||!n&&!i&&!s)e[t]=r;else throw new oR("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var $b=R((N5,Db)=>{"use strict";c();var Ju=Fc(),Lb=function(){return!!Ju};Lb.hasArrayLengthDefineBug=function(){if(!Ju)return null;try{return Ju([],"length",{value:1}).length!==1}catch{return!0}};Db.exports=Lb});var Hb=R((P5,Wb)=>{"use strict";c();var aR=js(),Ub=Mb(),cR=$b()(),Gb=zo(),Kb=Fo(),lR=aR("%Math.floor%");Wb.exports=function(e,t){if(typeof e!="function")throw new Kb("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||lR(t)!==t)throw new Kb("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in e&&Gb){var s=Gb(e,"length");s&&!s.configurable&&(n=!1),s&&!s.writable&&(i=!1)}return(n||i||!r)&&(cR?Ub(e,"length",t,!0,!0):Ub(e,"length",t)),e}});var Qb=R((L5,zc)=>{"use strict";c();var Zu=Oc(),Pc=js(),fR=Hb(),dR=Fo(),Yb=Pc("%Function.prototype.apply%"),Jb=Pc("%Function.prototype.call%"),Zb=Pc("%Reflect.apply%",!0)||Zu.call(Jb,Yb),Vb=Fc(),uR=Pc("%Math.max%");zc.exports=function(e){if(typeof e!="function")throw new dR("a function is required");var t=Zb(Zu,Jb,arguments);return fR(t,1+uR(0,e.length-(arguments.length-1)),!0)};var Xb=function(){return Zb(Zu,Yb,arguments)};Vb?Vb(zc.exports,"apply",{value:Xb}):zc.exports.apply=Xb});var Mc=R(($5,t_)=>{"use strict";c();var A_=js(),e_=Qb(),hR=e_(A_("String.prototype.indexOf"));t_.exports=function(e,t){var r=A_(e,!!t);return typeof r=="function"&&hR(e,".prototype.")>-1?e_(r):r}});var i_=R((G5,n_)=>{"use strict";c();var jR=Co()(),pR=Mc(),Qu=pR("Object.prototype.toString"),Lc=function(e){return jR&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Qu(e)==="[object Arguments]"},r_=function(e){return Lc(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Qu(e)!=="[object Array]"&&Qu(e.callee)==="[object Function]"},yR=function(){return Lc(arguments)}();Lc.isLegacyArguments=r_;n_.exports=yR?Lc:r_});var a_=R((W5,o_)=>{"use strict";c();var mR=Object.prototype.toString,gR=Function.prototype.toString,wR=/^\s*(?:function)?\*/,s_=Co()(),Ah=Object.getPrototypeOf,bR=function(){if(!s_)return!1;try{return Function("return function*() {}")()}catch{}},eh;o_.exports=function(e){if(typeof e!="function")return!1;if(wR.test(gR.call(e)))return!0;if(!s_){var t=mR.call(e);return t==="[object GeneratorFunction]"}if(!Ah)return!1;if(typeof eh>"u"){var r=bR();eh=r?Ah(r):!1}return Ah(e)===eh}});var d_=R((V5,f_)=>{"use strict";c();var l_=Function.prototype.toString,ys=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,rh,Dc;if(typeof ys=="function"&&typeof Object.defineProperty=="function")try{rh=Object.defineProperty({},"length",{get:function(){throw Dc}}),Dc={},ys(function(){throw 42},null,rh)}catch(A){A!==Dc&&(ys=null)}else ys=null;var _R=/^\s*class\b/,nh=function(e){try{var t=l_.call(e);return _R.test(t)}catch{return!1}},th=function(e){try{return nh(e)?!1:(l_.call(e),!0)}catch{return!1}},$c=Object.prototype.toString,ER="[object Object]",vR="[object Function]",xR="[object GeneratorFunction]",SR="[object HTMLAllCollection]",kR="[object HTML document.all class]",IR="[object HTMLCollection]",TR=typeof Symbol=="function"&&!!Symbol.toStringTag,BR=!(0 in[,]),ih=function(){return!1};typeof document=="object"&&(c_=document.all,$c.call(c_)===$c.call(document.all)&&(ih=function(e){if((BR||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=$c.call(e);return(t===SR||t===kR||t===IR||t===ER)&&e("")==null}catch{}return!1}));var c_;f_.exports=ys?function(e){if(ih(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ys(e,null,rh)}catch(t){if(t!==Dc)return!1}return!nh(e)&&th(e)}:function(e){if(ih(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(TR)return th(e);if(nh(e))return!1;var t=$c.call(e);return t!==vR&&t!==xR&&!/^\[object HTML/.test(t)?!1:th(e)}});var sh=R((Y5,h_)=>{"use strict";c();var OR=d_(),qR=Object.prototype.toString,u_=Object.prototype.hasOwnProperty,RR=function(e,t,r){for(var n=0,i=e.length;n<i;n++)u_.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},CR=function(e,t,r){for(var n=0,i=e.length;n<i;n++)r==null?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},FR=function(e,t,r){for(var n in e)u_.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},NR=function(e,t,r){if(!OR(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=r),qR.call(e)==="[object Array]"?RR(e,t,n):typeof e=="string"?CR(e,t,n):FR(e,t,n)};h_.exports=NR});var ah=R((Z5,j_)=>{"use strict";c();var oh=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],zR=typeof globalThis>"u"?window:globalThis;j_.exports=function(){for(var e=[],t=0;t<oh.length;t++)typeof zR[oh[t]]=="function"&&(e[e.length]=oh[t]);return e}});var fh=R((AH,w_)=>{"use strict";c();var p_=sh(),PR=ah(),lh=Mc(),MR=lh("Object.prototype.toString"),y_=Co()(),Uc=zo(),LR=typeof globalThis>"u"?window:globalThis,m_=PR(),DR=lh("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},$R=lh("String.prototype.slice"),g_={},ch=Object.getPrototypeOf;y_&&Uc&&ch&&p_(m_,function(A){var e=new LR[A];if(Symbol.toStringTag in e){var t=ch(e),r=Uc(t,Symbol.toStringTag);if(!r){var n=ch(t);r=Uc(n,Symbol.toStringTag)}g_[A]=r.get}});var UR=function(e){var t=!1;return p_(g_,function(r,n){if(!t)try{t=r.call(e)===n}catch{}}),t};w_.exports=function(e){if(!e||typeof e!="object")return!1;if(!y_||!(Symbol.toStringTag in e)){var t=$R(MR(e),8,-1);return DR(m_,t)>-1}return Uc?UR(e):!1}});var k_=R((tH,S_)=>{"use strict";c();var __=sh(),GR=ah(),E_=Mc(),dh=zo(),KR=E_("Object.prototype.toString"),v_=Co()(),b_=typeof globalThis>"u"?window:globalThis,WR=GR(),HR=E_("String.prototype.slice"),x_={},uh=Object.getPrototypeOf;v_&&dh&&uh&&__(WR,function(A){if(typeof b_[A]=="function"){var e=new b_[A];if(Symbol.toStringTag in e){var t=uh(e),r=dh(t,Symbol.toStringTag);if(!r){var n=uh(t);r=dh(n,Symbol.toStringTag)}x_[A]=r.get}}});var VR=function(e){var t=!1;return __(x_,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch{}}),t},XR=fh();S_.exports=function(e){return XR(e)?!v_||!(Symbol.toStringTag in e)?HR(KR(e),8,-1):VR(e):!1}});var D_=R(yA=>{"use strict";c();var YR=i_(),JR=a_(),It=k_(),I_=fh();function ms(A