@sineways/react-tablefront
Version:
React Data Table and Data Grid for TypeScript. Zero config with fast search and filters, pagination and infinite scroll, table grid and masonry layouts. Built on TanStack Table.
1 lines • 155 kB
JavaScript
var Eo=Object.create;var ji=Object.defineProperty;var mo=Object.getOwnPropertyDescriptor;var So=Object.getOwnPropertyNames;var vo=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var $i=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var To=(t,e)=>()=>(t&&(e=t(t=0)),e);var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Bo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of So(e))!Ao.call(t,f)&&f!==r&&ji(t,f,{get:()=>e[f],enumerable:!(n=mo(e,f))||n.enumerable});return t};var vn=(t,e,r)=>(r=t!=null?Eo(vo(t)):{},Bo(e||!t||!t.__esModule?ji(r,"default",{value:t,enumerable:!0}):r,t));var Ki=Q(Br=>{"use strict";I();Br.byteLength=Ro;Br.toByteArray=No;Br.fromByteArray=Fo;var $e=[],De=[],Io=typeof Uint8Array<"u"?Uint8Array:Array,An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ct=0,Wi=An.length;ct<Wi;++ct)$e[ct]=An[ct],De[An.charCodeAt(ct)]=ct;var ct,Wi;De[45]=62;De[95]=63;function Hi(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 Ro(t){var e=Hi(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Uo(t,e,r){return(e+r)*3/4-r}function No(t){var e,r=Hi(t),n=r[0],f=r[1],s=new Io(Uo(t,n,f)),a=0,d=f>0?n-4:n,y;for(y=0;y<d;y+=4)e=De[t.charCodeAt(y)]<<18|De[t.charCodeAt(y+1)]<<12|De[t.charCodeAt(y+2)]<<6|De[t.charCodeAt(y+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=e&255;return f===2&&(e=De[t.charCodeAt(y)]<<2|De[t.charCodeAt(y+1)]>>4,s[a++]=e&255),f===1&&(e=De[t.charCodeAt(y)]<<10|De[t.charCodeAt(y+1)]<<4|De[t.charCodeAt(y+2)]>>2,s[a++]=e>>8&255,s[a++]=e&255),s}function Lo(t){return $e[t>>18&63]+$e[t>>12&63]+$e[t>>6&63]+$e[t&63]}function Mo(t,e,r){for(var n,f=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),f.push(Lo(n));return f.join("")}function Fo(t){for(var e,r=t.length,n=r%3,f=[],s=16383,a=0,d=r-n;a<d;a+=s)f.push(Mo(t,a,a+s>d?d:a+s));return n===1?(e=t[r-1],f.push($e[e>>2]+$e[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],f.push($e[e>>10]+$e[e>>4&63]+$e[e<<2&63]+"=")),f.join("")}});var Vi=Q(Tn=>{I();Tn.read=function(t,e,r,n,f){var s,a,d=f*8-n-1,y=(1<<d)-1,b=y>>1,A=-7,R=r?f-1:0,K=r?-1:1,ne=t[e+R];for(R+=K,s=ne&(1<<-A)-1,ne>>=-A,A+=d;A>0;s=s*256+t[e+R],R+=K,A-=8);for(a=s&(1<<-A)-1,s>>=-A,A+=n;A>0;a=a*256+t[e+R],R+=K,A-=8);if(s===0)s=1-b;else{if(s===y)return a?NaN:(ne?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-b}return(ne?-1:1)*a*Math.pow(2,s-n)};Tn.write=function(t,e,r,n,f,s){var a,d,y,b=s*8-f-1,A=(1<<b)-1,R=A>>1,K=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,ne=n?0:s-1,xe=n?1:-1,Pe=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,a=A):(a=Math.floor(Math.log(e)/Math.LN2),e*(y=Math.pow(2,-a))<1&&(a--,y*=2),a+R>=1?e+=K/y:e+=K*Math.pow(2,1-R),e*y>=2&&(a++,y/=2),a+R>=A?(d=0,a=A):a+R>=1?(d=(e*y-1)*Math.pow(2,f),a=a+R):(d=e*Math.pow(2,R-1)*Math.pow(2,f),a=0));f>=8;t[r+ne]=d&255,ne+=xe,d/=256,f-=8);for(a=a<<f|d,b+=f;b>0;t[r+ne]=a&255,ne+=xe,a/=256,b-=8);t[r+ne-xe]|=Pe*128}});var Fe=Q(Ct=>{"use strict";I();var Bn=Ki(),Ot=Vi(),Xi=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ct.Buffer=_;Ct.SlowBuffer=ko;Ct.INSPECT_MAX_BYTES=50;var Ir=2147483647;Ct.kMaxLength=Ir;_.TYPED_ARRAY_SUPPORT=Oo();!_.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 Oo(){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(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}});function Ze(t){if(t>Ir)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,_.prototype),e}function _(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 Nn(t)}return Qi(t,e,r)}_.poolSize=8192;function Qi(t,e,r){if(typeof t=="string")return Co(t,e);if(ArrayBuffer.isView(t))return Do(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(We(t,ArrayBuffer)||t&&We(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(t,SharedArrayBuffer)||t&&We(t.buffer,SharedArrayBuffer)))return Rn(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 _.from(n,e,r);let f=qo(t);if(f)return f;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return _.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)}_.from=function(t,e,r){return Qi(t,e,r)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);function ef(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 Po(t,e,r){return ef(t),t<=0?Ze(t):e!==void 0?typeof r=="string"?Ze(t).fill(e,r):Ze(t).fill(e):Ze(t)}_.alloc=function(t,e,r){return Po(t,e,r)};function Nn(t){return ef(t),Ze(t<0?0:Ln(t)|0)}_.allocUnsafe=function(t){return Nn(t)};_.allocUnsafeSlow=function(t){return Nn(t)};function Co(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!_.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=tf(t,e)|0,n=Ze(r),f=n.write(t,e);return f!==r&&(n=n.slice(0,f)),n}function In(t){let e=t.length<0?0:Ln(t.length)|0,r=Ze(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Do(t){if(We(t,Uint8Array)){let e=new Uint8Array(t);return Rn(e.buffer,e.byteOffset,e.byteLength)}return In(t)}function Rn(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,_.prototype),n}function qo(t){if(_.isBuffer(t)){let e=Ln(t.length)|0,r=Ze(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Fn(t.length)?Ze(0):In(t);if(t.type==="Buffer"&&Array.isArray(t.data))return In(t.data)}function Ln(t){if(t>=Ir)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ir.toString(16)+" bytes");return t|0}function ko(t){return+t!=t&&(t=0),_.alloc(+t)}_.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_.prototype};_.compare=function(e,r){if(We(e,Uint8Array)&&(e=_.from(e,e.offset,e.byteLength)),We(r,Uint8Array)&&(r=_.from(r,r.offset,r.byteLength)),!_.isBuffer(e)||!_.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,f=r.length;for(let s=0,a=Math.min(n,f);s<a;++s)if(e[s]!==r[s]){n=e[s],f=r[s];break}return n<f?-1:f<n?1:0};_.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}};_.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return _.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let f=_.allocUnsafe(r),s=0;for(n=0;n<e.length;++n){let a=e[n];if(We(a,Uint8Array))s+a.length>f.length?(_.isBuffer(a)||(a=_.from(a)),a.copy(f,s)):Uint8Array.prototype.set.call(f,a,s);else if(_.isBuffer(a))a.copy(f,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length}return f};function tf(t,e){if(_.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||We(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 f=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Un(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hf(t).length;default:if(f)return n?-1:Un(t).length;e=(""+e).toLowerCase(),f=!0}}_.byteLength=tf;function Yo(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 Jo(this,e,r);case"utf8":case"utf-8":return nf(this,e,r);case"ascii":return Xo(this,e,r);case"latin1":case"binary":return zo(this,e,r);case"base64":return Ko(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zo(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}_.prototype._isBuffer=!0;function dt(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}_.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)dt(this,r,r+1);return this};_.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)dt(this,r,r+3),dt(this,r+1,r+2);return this};_.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)dt(this,r,r+7),dt(this,r+1,r+6),dt(this,r+2,r+5),dt(this,r+3,r+4);return this};_.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?nf(this,0,e):Yo.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(e){if(!_.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:_.compare(this,e)===0};_.prototype.inspect=function(){let e="",r=Ct.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Xi&&(_.prototype[Xi]=_.prototype.inspect);_.prototype.compare=function(e,r,n,f,s){if(We(e,Uint8Array)&&(e=_.from(e,e.offset,e.byteLength)),!_.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),f===void 0&&(f=0),s===void 0&&(s=this.length),r<0||n>e.length||f<0||s>this.length)throw new RangeError("out of range index");if(f>=s&&r>=n)return 0;if(f>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,f>>>=0,s>>>=0,this===e)return 0;let a=s-f,d=n-r,y=Math.min(a,d),b=this.slice(f,s),A=e.slice(r,n);for(let R=0;R<y;++R)if(b[R]!==A[R]){a=b[R],d=A[R];break}return a<d?-1:d<a?1:0};function rf(t,e,r,n,f){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Fn(r)&&(r=f?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(f)return-1;r=t.length-1}else if(r<0)if(f)r=0;else return-1;if(typeof e=="string"&&(e=_.from(e,n)),_.isBuffer(e))return e.length===0?-1:zi(t,e,r,n,f);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?f?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):zi(t,[e],r,n,f);throw new TypeError("val must be string, number or Buffer")}function zi(t,e,r,n,f){let s=1,a=t.length,d=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;s=2,a/=2,d/=2,r/=2}function y(A,R){return s===1?A[R]:A.readUInt16BE(R*s)}let b;if(f){let A=-1;for(b=r;b<a;b++)if(y(t,b)===y(e,A===-1?0:b-A)){if(A===-1&&(A=b),b-A+1===d)return A*s}else A!==-1&&(b-=b-A),A=-1}else for(r+d>a&&(r=a-d),b=r;b>=0;b--){let A=!0;for(let R=0;R<d;R++)if(y(t,b+R)!==y(e,R)){A=!1;break}if(A)return b}return-1}_.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};_.prototype.indexOf=function(e,r,n){return rf(this,e,r,n,!0)};_.prototype.lastIndexOf=function(e,r,n){return rf(this,e,r,n,!1)};function Go(t,e,r,n){r=Number(r)||0;let f=t.length-r;n?(n=Number(n),n>f&&(n=f)):n=f;let s=e.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(e.substr(a*2,2),16);if(Fn(d))return a;t[r+a]=d}return a}function jo(t,e,r,n){return Rr(Un(e,t.length-r),t,r,n)}function $o(t,e,r,n){return Rr(ra(e),t,r,n)}function Wo(t,e,r,n){return Rr(hf(e),t,r,n)}function Ho(t,e,r,n){return Rr(na(e,t.length-r),t,r,n)}_.prototype.write=function(e,r,n,f){if(r===void 0)f="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")f=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,f===void 0&&(f="utf8")):(f=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let a=!1;for(;;)switch(f){case"hex":return Go(this,e,r,n);case"utf8":case"utf-8":return jo(this,e,r,n);case"ascii":case"latin1":case"binary":return $o(this,e,r,n);case"base64":return Wo(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ho(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),a=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ko(t,e,r){return e===0&&r===t.length?Bn.fromByteArray(t):Bn.fromByteArray(t.slice(e,r))}function nf(t,e,r){r=Math.min(t.length,r);let n=[],f=e;for(;f<r;){let s=t[f],a=null,d=s>239?4:s>223?3:s>191?2:1;if(f+d<=r){let y,b,A,R;switch(d){case 1:s<128&&(a=s);break;case 2:y=t[f+1],(y&192)===128&&(R=(s&31)<<6|y&63,R>127&&(a=R));break;case 3:y=t[f+1],b=t[f+2],(y&192)===128&&(b&192)===128&&(R=(s&15)<<12|(y&63)<<6|b&63,R>2047&&(R<55296||R>57343)&&(a=R));break;case 4:y=t[f+1],b=t[f+2],A=t[f+3],(y&192)===128&&(b&192)===128&&(A&192)===128&&(R=(s&15)<<18|(y&63)<<12|(b&63)<<6|A&63,R>65535&&R<1114112&&(a=R))}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),f+=d}return Vo(n)}var Ji=4096;function Vo(t){let e=t.length;if(e<=Ji)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ji));return r}function Xo(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]&127);return n}function zo(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]);return n}function Jo(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let f="";for(let s=e;s<r;++s)f+=ia[t[s]];return f}function Zo(t,e,r){let n=t.slice(e,r),f="";for(let s=0;s<n.length-1;s+=2)f+=String.fromCharCode(n[s]+n[s+1]*256);return f}_.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 f=this.subarray(e,r);return Object.setPrototypeOf(f,_.prototype),f};function Ae(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")}_.prototype.readUintLE=_.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Ae(e,r,this.length);let f=this[e],s=1,a=0;for(;++a<r&&(s*=256);)f+=this[e+a]*s;return f};_.prototype.readUintBE=_.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Ae(e,r,this.length);let f=this[e+--r],s=1;for(;r>0&&(s*=256);)f+=this[e+--r]*s;return f};_.prototype.readUint8=_.prototype.readUInt8=function(e,r){return e=e>>>0,r||Ae(e,1,this.length),this[e]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Ae(e,2,this.length),this[e]|this[e+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Ae(e,2,this.length),this[e]<<8|this[e+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};_.prototype.readBigUInt64LE=it(function(e){e=e>>>0,Pt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&nr(e,this.length-8);let f=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(f)+(BigInt(s)<<BigInt(32))});_.prototype.readBigUInt64BE=it(function(e){e=e>>>0,Pt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&nr(e,this.length-8);let f=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(f)<<BigInt(32))+BigInt(s)});_.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Ae(e,r,this.length);let f=this[e],s=1,a=0;for(;++a<r&&(s*=256);)f+=this[e+a]*s;return s*=128,f>=s&&(f-=Math.pow(2,8*r)),f};_.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Ae(e,r,this.length);let f=r,s=1,a=this[e+--f];for(;f>0&&(s*=256);)a+=this[e+--f]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*r)),a};_.prototype.readInt8=function(e,r){return e=e>>>0,r||Ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};_.prototype.readInt16LE=function(e,r){e=e>>>0,r||Ae(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};_.prototype.readInt16BE=function(e,r){e=e>>>0,r||Ae(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};_.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};_.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};_.prototype.readBigInt64LE=it(function(e){e=e>>>0,Pt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&nr(e,this.length-8);let f=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(f)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});_.prototype.readBigInt64BE=it(function(e){e=e>>>0,Pt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&nr(e,this.length-8);let f=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(f)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});_.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),Ot.read(this,e,!0,23,4)};_.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Ae(e,4,this.length),Ot.read(this,e,!1,23,4)};_.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Ae(e,8,this.length),Ot.read(this,e,!0,52,8)};_.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Ae(e,8,this.length),Ot.read(this,e,!1,52,8)};function Le(t,e,r,n,f,s){if(!_.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||e<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){let d=Math.pow(2,8*n)-1;Le(this,e,r,n,d,0)}let s=1,a=0;for(this[r]=e&255;++a<n&&(s*=256);)this[r+a]=e/s&255;return r+n};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){let d=Math.pow(2,8*n)-1;Le(this,e,r,n,d,0)}let s=n-1,a=1;for(this[r+s]=e&255;--s>=0&&(a*=256);)this[r+s]=e/a&255;return r+n};_.prototype.writeUint8=_.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,1,255,0),this[r]=e&255,r+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Le(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};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Le(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 ff(t,e,r,n,f){lf(e,n,f,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,r}function sf(t,e,r,n,f){lf(e,n,f,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a=a>>8,t[r+2]=a,a=a>>8,t[r+1]=a,a=a>>8,t[r]=a,r+8}_.prototype.writeBigUInt64LE=it(function(e,r=0){return ff(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeBigUInt64BE=it(function(e,r=0){return sf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){let y=Math.pow(2,8*n-1);Le(this,e,r,n,y-1,-y)}let s=0,a=1,d=0;for(this[r]=e&255;++s<n&&(a*=256);)e<0&&d===0&&this[r+s-1]!==0&&(d=1),this[r+s]=(e/a>>0)-d&255;return r+n};_.prototype.writeIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){let y=Math.pow(2,8*n-1);Le(this,e,r,n,y-1,-y)}let s=n-1,a=1,d=0;for(this[r+s]=e&255;--s>=0&&(a*=256);)e<0&&d===0&&this[r+s+1]!==0&&(d=1),this[r+s]=(e/a>>0)-d&255;return r+n};_.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};_.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};_.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Le(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};_.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Le(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};_.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Le(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};_.prototype.writeBigInt64LE=it(function(e,r=0){return ff(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeBigInt64BE=it(function(e,r=0){return sf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function of(t,e,r,n,f,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function af(t,e,r,n,f){return e=+e,r=r>>>0,f||of(t,e,r,4,34028234663852886e22,-34028234663852886e22),Ot.write(t,e,r,n,23,4),r+4}_.prototype.writeFloatLE=function(e,r,n){return af(this,e,r,!0,n)};_.prototype.writeFloatBE=function(e,r,n){return af(this,e,r,!1,n)};function uf(t,e,r,n,f){return e=+e,r=r>>>0,f||of(t,e,r,8,17976931348623157e292,-17976931348623157e292),Ot.write(t,e,r,n,52,8),r+8}_.prototype.writeDoubleLE=function(e,r,n){return uf(this,e,r,!0,n)};_.prototype.writeDoubleBE=function(e,r,n){return uf(this,e,r,!1,n)};_.prototype.copy=function(e,r,n,f){if(!_.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!f&&f!==0&&(f=this.length),r>=e.length&&(r=e.length),r||(r=0),f>0&&f<n&&(f=n),f===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(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),e.length-r<f-n&&(f=e.length-r+n);let s=f-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,f):Uint8Array.prototype.set.call(e,this.subarray(n,f),r),s};_.prototype.fill=function(e,r,n,f){if(typeof e=="string"){if(typeof r=="string"?(f=r,r=0,n=this.length):typeof n=="string"&&(f=n,n=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!_.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(e.length===1){let a=e.charCodeAt(0);(f==="utf8"&&a<128||f==="latin1")&&(e=a)}}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 s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{let a=_.isBuffer(e)?e:_.from(e,f),d=a.length;if(d===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=a[s%d]}return this};var Ft={};function Mn(t,e,r){Ft[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(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Mn("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Mn("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Mn("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,f=r;return Number.isInteger(r)&&Math.abs(r)>2**32?f=Zi(String(r)):typeof r=="bigint"&&(f=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(f=Zi(f)),f+="n"),n+=` It must be ${e}. Received ${f}`,n},RangeError);function Zi(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 Qo(t,e,r){Pt(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&nr(e,t.length-(r+1))}function lf(t,e,r,n,f,s){if(t>r||t<e){let a=typeof e=="bigint"?"n":"",d;throw s>3?e===0||e===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`:d=`>= ${e}${a} and <= ${r}${a}`,new Ft.ERR_OUT_OF_RANGE("value",d,t)}Qo(n,f,s)}function Pt(t,e){if(typeof t!="number")throw new Ft.ERR_INVALID_ARG_TYPE(e,"number",t)}function nr(t,e,r){throw Math.floor(t)!==t?(Pt(t,r),new Ft.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Ft.ERR_BUFFER_OUT_OF_BOUNDS:new Ft.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var ea=/[^+/0-9A-Za-z-_]/g;function ta(t){if(t=t.split("=")[0],t=t.trim().replace(ea,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Un(t,e){e=e||1/0;let r,n=t.length,f=null,s=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!f){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&s.push(239,191,189);continue}f=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),f=r;continue}r=(f-55296<<10|r-56320)+65536}else f&&(e-=3)>-1&&s.push(239,191,189);if(f=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function ra(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function na(t,e){let r,n,f,s=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,f=r%256,s.push(f),s.push(n);return s}function hf(t){return Bn.toByteArray(ta(t))}function Rr(t,e,r,n){let f;for(f=0;f<n&&!(f+r>=e.length||f>=t.length);++f)e[f+r]=t[f];return f}function We(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Fn(t){return t!==t}var ia=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let f=0;f<16;++f)e[n+f]=t[r]+t[f]}return e}();function it(t){return typeof BigInt>"u"?fa:t}function fa(){throw new Error("BigInt not supported")}});var re,I=To(()=>{re=vn(Fe(),1)});var Lr=Q((Ah,On)=>{"use strict";I();var Dt=typeof Reflect=="object"?Reflect:null,cf=Dt&&typeof Dt.apply=="function"?Dt.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},Ur;Dt&&typeof Dt.ownKeys=="function"?Ur=Dt.ownKeys:Object.getOwnPropertySymbols?Ur=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ur=function(e){return Object.getOwnPropertyNames(e)};function sa(t){console&&console.warn&&console.warn(t)}var pf=Number.isNaN||function(e){return e!==e};function de(){de.init.call(this)}On.exports=de;On.exports.once=la;de.EventEmitter=de;de.prototype._events=void 0;de.prototype._eventsCount=0;de.prototype._maxListeners=void 0;var df=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(de,"defaultMaxListeners",{enumerable:!0,get:function(){return df},set:function(t){if(typeof t!="number"||t<0||pf(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");df=t}});de.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};de.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||pf(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function xf(t){return t._maxListeners===void 0?de.defaultMaxListeners:t._maxListeners}de.prototype.getMaxListeners=function(){return xf(this)};de.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var f=e==="error",s=this._events;if(s!==void 0)f=f&&s.error===void 0;else if(!f)return!1;if(f){var a;if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var d=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw d.context=a,d}var y=s[e];if(y===void 0)return!1;if(typeof y=="function")cf(y,this,r);else for(var b=y.length,A=bf(y,b),n=0;n<b;++n)cf(A[n],this,r);return!0};function yf(t,e,r,n){var f,s,a;if(Nr(r),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),a=s[e]),a===void 0)a=s[e]=r,++t._eventsCount;else if(typeof a=="function"?a=s[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),f=xf(t),f>0&&a.length>f&&!a.warned){a.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=t,d.type=e,d.count=a.length,sa(d)}return t}de.prototype.addListener=function(e,r){return yf(this,e,r,!1)};de.prototype.on=de.prototype.addListener;de.prototype.prependListener=function(e,r){return yf(this,e,r,!0)};function oa(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wf(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},f=oa.bind(n);return f.listener=r,n.wrapFn=f,f}de.prototype.once=function(e,r){return Nr(r),this.on(e,wf(this,e,r)),this};de.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,wf(this,e,r)),this};de.prototype.removeListener=function(e,r){var n,f,s,a,d;if(Nr(r),f=this._events,f===void 0)return this;if(n=f[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete f[e],f.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,a=n.length-1;a>=0;a--)if(n[a]===r||n[a].listener===r){d=n[a].listener,s=a;break}if(s<0)return this;s===0?n.shift():aa(n,s),n.length===1&&(f[e]=n[0]),f.removeListener!==void 0&&this.emit("removeListener",e,d||r)}return this};de.prototype.off=de.prototype.removeListener;de.prototype.removeAllListeners=function(e){var r,n,f;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),a;for(f=0;f<s.length;++f)a=s[f],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(f=r.length-1;f>=0;f--)this.removeListener(e,r[f]);return this};function gf(t,e,r){var n=t._events;if(n===void 0)return[];var f=n[e];return f===void 0?[]:typeof f=="function"?r?[f.listener||f]:[f]:r?ua(f):bf(f,f.length)}de.prototype.listeners=function(e){return gf(this,e,!0)};de.prototype.rawListeners=function(e){return gf(this,e,!1)};de.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):_f.call(t,e)};de.prototype.listenerCount=_f;function _f(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}de.prototype.eventNames=function(){return this._eventsCount>0?Ur(this._events):[]};function bf(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function aa(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function ua(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function la(t,e){return new Promise(function(r,n){function f(a){t.removeListener(e,s),n(a)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",f),r([].slice.call(arguments))}Ef(t,e,s,{once:!0}),e!=="error"&&ha(t,f,{once:!0})})}function ha(t,e,r){typeof t.on=="function"&&Ef(t,"error",e,r)}function Ef(t,e,r,n){if(typeof t.on=="function")n.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function f(s){n.once&&t.removeEventListener(e,f),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var pt=Q((Bh,Pn)=>{I();typeof Object.create=="function"?Pn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Pn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Cn=Q((Rh,mf)=>{I();mf.exports=Lr().EventEmitter});var Dn=Q(()=>{I()});var If=Q((Fh,Bf)=>{"use strict";I();function Sf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),r.push.apply(r,n)}return r}function vf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sf(Object(r),!0).forEach(function(n){ca(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ca(t,e,r){return e=Tf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function da(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Af(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tf(n.key),n)}}function pa(t,e,r){return e&&Af(t.prototype,e),r&&Af(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tf(t){var e=xa(t,"string");return typeof e=="symbol"?e:String(e)}function xa(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ya=Fe(),Mr=ya.Buffer,wa=Dn(),qn=wa.inspect,ga=qn&&qn.custom||"inspect";function _a(t,e,r){Mr.prototype.copy.call(t,e,r)}Bf.exports=function(){function t(){da(this,t),this.head=null,this.tail=null,this.length=0}return pa(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,f=""+n.data;n=n.next;)f+=r+n.data;return f}},{key:"concat",value:function(r){if(this.length===0)return Mr.alloc(0);for(var n=Mr.allocUnsafe(r>>>0),f=this.head,s=0;f;)_a(f.data,n,s),s+=f.data.length,f=f.next;return n}},{key:"consume",value:function(r,n){var f;return r<this.head.data.length?(f=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?f=this.shift():f=n?this._getString(r):this._getBuffer(r),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,f=1,s=n.data;for(r-=s.length;n=n.next;){var a=n.data,d=r>a.length?a.length:r;if(d===a.length?s+=a:s+=a.slice(0,r),r-=d,r===0){d===a.length?(++f,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(d));break}++f}return this.length-=f,s}},{key:"_getBuffer",value:function(r){var n=Mr.allocUnsafe(r),f=this.head,s=1;for(f.data.copy(n),r-=f.data.length;f=f.next;){var a=f.data,d=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,d),r-=d,r===0){d===a.length?(++s,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=a.slice(d));break}++s}return this.length-=s,n}},{key:ga,value:function(r,n){return qn(this,vf(vf({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var Yn=Q((Ph,Uf)=>{"use strict";I();function ba(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return n||f?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(kn,this,t)):process.nextTick(kn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Fr,r):(r._writableState.errorEmitted=!0,process.nextTick(Rf,r,s)):process.nextTick(Rf,r,s):e?(process.nextTick(Fr,r),e(s)):process.nextTick(Fr,r)}),this)}function Rf(t,e){kn(t,e),Fr(t)}function Fr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Ea(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function kn(t,e){t.emit("error",e)}function ma(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Uf.exports={destroy:ba,undestroy:Ea,errorOrDestroy:ma}});var xt=Q((Dh,Mf)=>{"use strict";I();function Sa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Lf={};function qe(t,e,r){r||(r=Error);function n(s,a,d){return typeof e=="string"?e:e(s,a,d)}var f=function(s){Sa(a,s);function a(d,y,b){return s.call(this,n(d,y,b))||this}return a}(r);f.prototype.name=r.name,f.prototype.code=t,Lf[t]=f}function Nf(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function va(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Aa(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Ta(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}qe("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);qe("ERR_INVALID_ARG_TYPE",function(t,e,r){var n;typeof e=="string"&&va(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var f;if(Aa(t," argument"))f="The ".concat(t," ").concat(n," ").concat(Nf(e,"type"));else{var s=Ta(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(s," ").concat(n," ").concat(Nf(e,"type"))}return f+=". Received type ".concat(typeof r),f},TypeError);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");qe("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});qe("ERR_STREAM_PREMATURE_CLOSE","Premature close");qe("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");qe("ERR_STREAM_WRITE_AFTER_END","write after end");qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Mf.exports.codes=Lf});var Gn=Q((kh,Ff)=>{"use strict";I();var Ba=xt().codes.ERR_INVALID_OPT_VALUE;function Ia(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Ra(t,e,r,n){var f=Ia(e,n,r);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){var s=n?r:"highWaterMark";throw new Ba(s,f)}return Math.floor(f)}return t.objectMode?16:16*1024}Ff.exports={getHighWaterMark:Ra}});var Pf=Q((Gh,Of)=>{I();Of.exports=Ua;function Ua(t,e){if(jn("noDeprecation"))return t;var r=!1;function n(){if(!r){if(jn("throwDeprecation"))throw new Error(e);jn("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function jn(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var Hn=Q(($h,Gf)=>{"use strict";I();Gf.exports=be;function Df(t){var e=this;this.next=null,this.entry=null,this.finish=function(){nu(e,t)}}var qt;be.WritableState=fr;var Na={deprecate:Pf()},qf=Cn(),Pr=Fe().Buffer,La=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ma(t){return Pr.from(t)}function Fa(t){return Pr.isBuffer(t)||t instanceof La}var Wn=Yn(),Oa=Gn(),Pa=Oa.getHighWaterMark,ft=xt().codes,Ca=ft.ERR_INVALID_ARG_TYPE,Da=ft.ERR_METHOD_NOT_IMPLEMENTED,qa=ft.ERR_MULTIPLE_CALLBACK,ka=ft.ERR_STREAM_CANNOT_PIPE,Ya=ft.ERR_STREAM_DESTROYED,Ga=ft.ERR_STREAM_NULL_VALUES,ja=ft.ERR_STREAM_WRITE_AFTER_END,$a=ft.ERR_UNKNOWN_ENCODING,kt=Wn.errorOrDestroy;pt()(be,qf);function Wa(){}function fr(t,e,r){qt=qt||yt(),t=t||{},typeof r!="boolean"&&(r=e instanceof qt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Pa(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){Za(e,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Df(this)}fr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(fr.prototype,"buffer",{get:Na.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Or;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Or=Function.prototype[Symbol.hasInstance],Object.defineProperty(be,Symbol.hasInstance,{value:function(e){return Or.call(this,e)?!0:this!==be?!1:e&&e._writableState instanceof fr}})):Or=function(e){return e instanceof this};function be(t){qt=qt||yt();var e=this instanceof qt;if(!e&&!Or.call(be,this))return new be(t);this._writableState=new fr(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),qf.call(this)}be.prototype.pipe=function(){kt(this,new ka)};function Ha(t,e){var r=new ja;kt(t,r),process.nextTick(e,r)}function Ka(t,e,r,n){var f;return r===null?f=new Ga:typeof r!="string"&&!e.objectMode&&(f=new Ca("chunk",["string","Buffer"],r)),f?(kt(t,f),process.nextTick(n,f),!1):!0}be.prototype.write=function(t,e,r){var n=this._writableState,f=!1,s=!n.objectMode&&Fa(t);return s&&!Pr.isBuffer(t)&&(t=Ma(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Wa),n.ending?Ha(this,r):(s||Ka(this,n,t,r))&&(n.pendingcb++,f=Xa(this,n,s,t,e,r)),f};be.prototype.cork=function(){this._writableState.corked++};be.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&kf(this,t))};be.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new $a(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(be.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Va(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Pr.from(e,r)),e}Object.defineProperty(be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Xa(t,e,r,n,f,s){if(!r){var a=Va(e,n,f);n!==a&&(r=!0,f="buffer",n=a)}var d=e.objectMode?1:n.length;e.length+=d;var y=e.length<e.highWaterMark;if(y||(e.needDrain=!0),e.writing||e.corked){var b=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:f,isBuf:r,callback:s,next:null},b?b.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else $n(t,e,!1,d,n,f,s);return y}function $n(t,e,r,n,f,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ya("write")):r?t._writev(f,e.onwrite):t._write(f,s,e.onwrite),e.sync=!1}function za(t,e,r,n,f){--e.pendingcb,r?(process.nextTick(f,n),process.nextTick(ir,t,e),t._writableState.errorEmitted=!0,kt(t,n)):(f(n),t._writableState.errorEmitted=!0,kt(t,n),ir(t,e))}function Ja(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Za(t,e){var r=t._writableState,n=r.sync,f=r.writecb;if(typeof f!="function")throw new qa;if(Ja(r),e)za(t,r,n,e,f);else{var s=Yf(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&kf(t,r),n?process.nextTick(Cf,t,r,s,f):Cf(t,r,s,f)}}function Cf(t,e,r,n){r||Qa(t,e),e.pendingcb--,n(),ir(t,e)}function Qa(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function kf(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,f=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,d=!0;r;)f[a]=r,r.isBuf||(d=!1),r=r.next,a+=1;f.allBuffers=d,$n(t,e,!0,e.length,f,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Df(e),e.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,b=r.encoding,A=r.callback,R=e.objectMode?1:y.length;if($n(t,e,!1,R,y,b,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}be.prototype._write=function(t,e,r){r(new Da("_write()"))};be.prototype._writev=null;be.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||ru(this,n,r),this};Object.defineProperty(be.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yf(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function eu(t,e){t._final(function(r){e.pendingcb--,r&&kt(t,r),e.prefinished=!0,t.emit("prefinish"),ir(t,e)})}function tu(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(eu,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ir(t,e){var r=Yf(e);if(r&&(tu(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.auto