mqtt
Version:
A library for the MQTT protocol
2 lines • 369 kB
JavaScript
var as=Object.defineProperty;var Yb=Object.getOwnPropertyDescriptor;var Jb=Object.getOwnPropertyNames;var Xb=Object.prototype.hasOwnProperty;var ze=(t,e)=>()=>(t&&(e=t(t=0)),e);var D=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kr=(t,e)=>{for(var r in e)as(t,r,{get:e[r],enumerable:!0})},Zb=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Jb(e))!Xb.call(t,i)&&i!==r&&as(t,i,{get:()=>e[i],enumerable:!(n=Yb(e,i))||n.enumerable});return t};var me=t=>Zb(as({},"__esModule",{value:!0}),t);var A=ze(()=>{});var M={};Kr(M,{_debugEnd:()=>Gc,_debugProcess:()=>Vc,_events:()=>lf,_eventsCount:()=>cf,_exiting:()=>xc,_fatalExceptions:()=>Fc,_getActiveHandles:()=>Rc,_getActiveRequests:()=>Oc,_kill:()=>Cc,_linkedBinding:()=>Ac,_maxListeners:()=>uf,_preload_modules:()=>of,_rawDebug:()=>Sc,_startProfilerIdleNotifier:()=>zc,_stopProfilerIdleNotifier:()=>Kc,_tickCallback:()=>Hc,abort:()=>Xc,addListener:()=>ff,allowedNodeEnvironmentFlags:()=>Uc,arch:()=>uc,argv:()=>fc,argv0:()=>nf,assert:()=>Dc,binding:()=>gc,browser:()=>vc,chdir:()=>mc,config:()=>Tc,cpuUsage:()=>Ri,cwd:()=>wc,debugPort:()=>rf,default:()=>_f,dlopen:()=>Pc,domain:()=>Ic,emit:()=>gf,emitWarning:()=>yc,env:()=>cc,execArgv:()=>hc,execPath:()=>tf,exit:()=>qc,features:()=>jc,hasUncaughtExceptionCaptureCallback:()=>$c,hrtime:()=>Oi,kill:()=>Nc,listeners:()=>mf,memoryUsage:()=>Mc,moduleLoadList:()=>Ec,nextTick:()=>oc,off:()=>df,on:()=>Nt,once:()=>hf,openStdin:()=>Lc,pid:()=>Zc,platform:()=>lc,ppid:()=>ef,prependListener:()=>bf,prependOnceListener:()=>wf,reallyExit:()=>kc,release:()=>_c,removeAllListeners:()=>yf,removeListener:()=>pf,resourceUsage:()=>Bc,setSourceMapsEnabled:()=>sf,setUncaughtExceptionCaptureCallback:()=>Wc,stderr:()=>Yc,stdin:()=>Jc,stdout:()=>Qc,title:()=>ac,umask:()=>bc,uptime:()=>af,version:()=>dc,versions:()=>pc});function cs(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function ew(){!Qr||!wr||(Qr=!1,wr.length?Mt=wr.concat(Mt):Pi=-1,Mt.length&&ic())}function ic(){if(!Qr){var t=setTimeout(ew,0);Qr=!0;for(var e=Mt.length;e;){for(wr=Mt,Mt=[];++Pi<e;)wr&&wr[Pi].run();Pi=-1,e=Mt.length}wr=null,Qr=!1,clearTimeout(t)}}function oc(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Mt.push(new sc(t,e)),Mt.length===1&&!Qr&&setTimeout(ic,0)}function sc(t,e){this.fun=t,this.array=e}function Ue(){}function Ac(t){cs("_linkedBinding")}function Pc(t){cs("dlopen")}function Oc(){return[]}function Rc(){return[]}function Dc(t,e){if(!t)throw new Error(e||"assertion error")}function $c(){return!1}function af(){return Jt.now()/1e3}function Oi(t){var e=Math.floor((Date.now()-Jt.now())*.001),r=Jt.now()*.001,n=Math.floor(r)+e,i=Math.floor(r%1*1e9);return t&&(n=n-t[0],i=i-t[1],i<0&&(n--,i+=ls)),[n,i]}function Nt(){return _f}function mf(t){return[]}var Mt,Qr,wr,Pi,ac,uc,lc,cc,fc,hc,dc,pc,yc,gc,bc,wc,mc,_c,vc,Sc,Ec,Ic,xc,Tc,kc,Cc,Ri,Bc,Mc,Nc,qc,Lc,Uc,jc,Fc,Wc,Hc,Vc,Gc,zc,Kc,Qc,Yc,Jc,Xc,Zc,ef,tf,rf,nf,of,sf,Jt,us,ls,uf,lf,cf,ff,hf,df,pf,yf,gf,bf,wf,_f,vf=ze(()=>{A();x();I();Mt=[],Qr=!1,Pi=-1;sc.prototype.run=function(){this.fun.apply(null,this.array)};ac="browser",uc="x64",lc="browser",cc={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},fc=["/usr/bin/node"],hc=[],dc="v16.8.0",pc={},yc=function(t,e){console.warn((e?e+": ":"")+t)},gc=function(t){cs("binding")},bc=function(t){return 0},wc=function(){return"/"},mc=function(t){},_c={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};vc=!0,Sc=Ue,Ec=[];Ic={},xc=!1,Tc={};kc=Ue,Cc=Ue,Ri=function(){return{}},Bc=Ri,Mc=Ri,Nc=Ue,qc=Ue,Lc=Ue,Uc={};jc={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Fc=Ue,Wc=Ue;Hc=Ue,Vc=Ue,Gc=Ue,zc=Ue,Kc=Ue,Qc=void 0,Yc=void 0,Jc=void 0,Xc=Ue,Zc=2,ef=1,tf="/bin/usr/node",rf=9229,nf="node",of=[],sf=Ue,Jt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Jt.now===void 0&&(us=Date.now(),Jt.timing&&Jt.timing.navigationStart&&(us=Jt.timing.navigationStart),Jt.now=()=>Date.now()-us);ls=1e9;Oi.bigint=function(t){var e=Oi(t);return typeof BigInt>"u"?e[0]*ls+e[1]:BigInt(e[0]*ls)+BigInt(e[1])};uf=10,lf={},cf=0;ff=Nt,hf=Nt,df=Nt,pf=Nt,yf=Nt,gf=Ue,bf=Nt,wf=Nt;_f={version:dc,versions:pc,arch:uc,platform:lc,browser:vc,release:_c,_rawDebug:Sc,moduleLoadList:Ec,binding:gc,_linkedBinding:Ac,_events:lf,_eventsCount:cf,_maxListeners:uf,on:Nt,addListener:ff,once:hf,off:df,removeListener:pf,removeAllListeners:yf,emit:gf,prependListener:bf,prependOnceListener:wf,listeners:mf,domain:Ic,_exiting:xc,config:Tc,dlopen:Pc,uptime:af,_getActiveRequests:Oc,_getActiveHandles:Rc,reallyExit:kc,_kill:Cc,cpuUsage:Ri,resourceUsage:Bc,memoryUsage:Mc,kill:Nc,exit:qc,openStdin:Lc,allowedNodeEnvironmentFlags:Uc,assert:Dc,features:jc,_fatalExceptions:Fc,setUncaughtExceptionCaptureCallback:Wc,hasUncaughtExceptionCaptureCallback:$c,emitWarning:yc,nextTick:oc,_tickCallback:Hc,_debugProcess:Vc,_debugEnd:Gc,_startProfilerIdleNotifier:zc,_stopProfilerIdleNotifier:Kc,stdout:Qc,stdin:Jc,stderr:Yc,abort:Xc,umask:bc,chdir:mc,cwd:wc,env:cc,title:ac,argv:fc,execArgv:hc,pid:Zc,ppid:ef,execPath:tf,debugPort:rf,hrtime:Oi,argv0:nf,_preload_modules:of,setSourceMapsEnabled:sf}});var I=ze(()=>{vf()});function tw(){if(Sf)return On;Sf=!0,On.byteLength=a,On.toByteArray=f,On.fromByteArray=w;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)t[i]=n[i],e[n.charCodeAt(i)]=i;e[45]=62,e[95]=63;function o(y){var P=y.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=y.indexOf("=");E===-1&&(E=P);var b=E===P?0:4-E%4;return[E,b]}function a(y){var P=o(y),E=P[0],b=P[1];return(E+b)*3/4-b}function c(y,P,E){return(P+E)*3/4-E}function f(y){var P,E=o(y),b=E[0],m=E[1],v=new r(c(y,b,m)),R=0,T=m>0?b-4:b,g;for(g=0;g<T;g+=4)P=e[y.charCodeAt(g)]<<18|e[y.charCodeAt(g+1)]<<12|e[y.charCodeAt(g+2)]<<6|e[y.charCodeAt(g+3)],v[R++]=P>>16&255,v[R++]=P>>8&255,v[R++]=P&255;return m===2&&(P=e[y.charCodeAt(g)]<<2|e[y.charCodeAt(g+1)]>>4,v[R++]=P&255),m===1&&(P=e[y.charCodeAt(g)]<<10|e[y.charCodeAt(g+1)]<<4|e[y.charCodeAt(g+2)]>>2,v[R++]=P>>8&255,v[R++]=P&255),v}function h(y){return t[y>>18&63]+t[y>>12&63]+t[y>>6&63]+t[y&63]}function d(y,P,E){for(var b,m=[],v=P;v<E;v+=3)b=(y[v]<<16&16711680)+(y[v+1]<<8&65280)+(y[v+2]&255),m.push(h(b));return m.join("")}function w(y){for(var P,E=y.length,b=E%3,m=[],v=16383,R=0,T=E-b;R<T;R+=v)m.push(d(y,R,R+v>T?T:R+v));return b===1?(P=y[E-1],m.push(t[P>>2]+t[P<<4&63]+"==")):b===2&&(P=(y[E-2]<<8)+y[E-1],m.push(t[P>>10]+t[P>>4&63]+t[P<<2&63]+"=")),m.join("")}return On}function rw(){if(Ef)return ki;Ef=!0;return ki.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<<a)-1,f=c>>1,h=-7,d=r?i-1:0,w=r?-1:1,y=t[e+d];for(d+=w,s=y&(1<<-h)-1,y>>=-h,h+=a;h>0;s=s*256+t[e+d],d+=w,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=o*256+t[e+d],d+=w,h-=8);if(s===0)s=1-f;else{if(s===c)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-f}return(y?-1:1)*o*Math.pow(2,s-n)},ki.write=function(t,e,r,n,i,s){var o,a,c,f=s*8-i-1,h=(1<<f)-1,d=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:s-1,P=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+d>=1?e+=w/c:e+=w*Math.pow(2,1-d),e*c>=2&&(o++,c/=2),o+d>=h?(a=0,o=h):o+d>=1?(a=(e*c-1)*Math.pow(2,i),o=o+d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;t[r+y]=a&255,y+=P,a/=256,i-=8);for(o=o<<i|a,f+=i;f>0;t[r+y]=o&255,y+=P,o/=256,f-=8);t[r+y-P]|=E*128},ki}function If(){if(Af)return mr;Af=!0;let t=tw(),e=rw(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;mr.Buffer=o,mr.SlowBuffer=m,mr.INSPECT_MAX_BYTES=50;let n=2147483647;mr.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.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 i(){try{let p=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(p){if(p>n)throw new RangeError('The value "'+p+'" is invalid for option "size"');let u=new Uint8Array(p);return Object.setPrototypeOf(u,o.prototype),u}function o(p,u,l){if(typeof p=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(p)}return a(p,u,l)}o.poolSize=8192;function a(p,u,l){if(typeof p=="string")return d(p,u);if(ArrayBuffer.isView(p))return y(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(Ze(p,ArrayBuffer)||p&&Ze(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(p,SharedArrayBuffer)||p&&Ze(p.buffer,SharedArrayBuffer)))return P(p,u,l);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let S=p.valueOf&&p.valueOf();if(S!=null&&S!==p)return o.from(S,u,l);let C=E(p);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return o.from(p[Symbol.toPrimitive]("string"),u,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}o.from=function(p,u,l){return a(p,u,l)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function f(p,u,l){return c(p),p<=0?s(p):u!==void 0?typeof l=="string"?s(p).fill(u,l):s(p).fill(u):s(p)}o.alloc=function(p,u,l){return f(p,u,l)};function h(p){return c(p),s(p<0?0:b(p)|0)}o.allocUnsafe=function(p){return h(p)},o.allocUnsafeSlow=function(p){return h(p)};function d(p,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let l=v(p,u)|0,S=s(l),C=S.write(p,u);return C!==l&&(S=S.slice(0,C)),S}function w(p){let u=p.length<0?0:b(p.length)|0,l=s(u);for(let S=0;S<u;S+=1)l[S]=p[S]&255;return l}function y(p){if(Ze(p,Uint8Array)){let u=new Uint8Array(p);return P(u.buffer,u.byteOffset,u.byteLength)}return w(p)}function P(p,u,l){if(u<0||p.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<u+(l||0))throw new RangeError('"length" is outside of buffer bounds');let S;return u===void 0&&l===void 0?S=new Uint8Array(p):l===void 0?S=new Uint8Array(p,u):S=new Uint8Array(p,u,l),Object.setPrototypeOf(S,o.prototype),S}function E(p){if(o.isBuffer(p)){let u=b(p.length)|0,l=s(u);return l.length===0||p.copy(l,0,0,u),l}if(p.length!==void 0)return typeof p.length!="number"||Tn(p.length)?s(0):w(p);if(p.type==="Buffer"&&Array.isArray(p.data))return w(p.data)}function b(p){if(p>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return p|0}function m(p){return+p!=p&&(p=0),o.alloc(+p)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,l){if(Ze(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ze(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(u)||!o.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===l)return 0;let S=u.length,C=l.length;for(let N=0,F=Math.min(S,C);N<F;++N)if(u[N]!==l[N]){S=u[N],C=l[N];break}return S<C?-1:C<S?1:0},o.isEncoding=function(u){switch(String(u).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}},o.concat=function(u,l){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);let S;if(l===void 0)for(l=0,S=0;S<u.length;++S)l+=u[S].length;let C=o.allocUnsafe(l),N=0;for(S=0;S<u.length;++S){let F=u[S];if(Ze(F,Uint8Array))N+F.length>C.length?(o.isBuffer(F)||(F=o.from(F)),F.copy(C,N)):Uint8Array.prototype.set.call(C,F,N);else if(o.isBuffer(F))F.copy(C,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=F.length}return C};function v(p,u){if(o.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||Ze(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let l=p.length,S=arguments.length>2&&arguments[2]===!0;if(!S&&l===0)return 0;let C=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return Ct(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l*2;case"hex":return l>>>1;case"base64":return Ii(p).length;default:if(C)return S?-1:Ct(p).length;u=(""+u).toLowerCase(),C=!0}}o.byteLength=v;function R(p,u,l){let S=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((l===void 0||l>this.length)&&(l=this.length),l<=0)||(l>>>=0,u>>>=0,l<=u))return"";for(p||(p="utf8");;)switch(p){case"hex":return V(this,u,l);case"utf8":case"utf-8":return H(this,u,l);case"ascii":return X(this,u,l);case"latin1":case"binary":return Q(this,u,l);case"base64":return W(this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,u,l);default:if(S)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),S=!0}}o.prototype._isBuffer=!0;function T(p,u,l){let S=p[u];p[u]=p[l],p[l]=S}o.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<u;l+=2)T(this,l,l+1);return this},o.prototype.swap32=function(){let u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<u;l+=4)T(this,l,l+3),T(this,l+1,l+2);return this},o.prototype.swap64=function(){let u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<u;l+=8)T(this,l,l+7),T(this,l+1,l+6),T(this,l+2,l+5),T(this,l+3,l+4);return this},o.prototype.toString=function(){let u=this.length;return u===0?"":arguments.length===0?H(this,0,u):R.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){let u="",l=mr.INSPECT_MAX_BYTES;return u=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(u+=" ... "),"<Buffer "+u+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(u,l,S,C,N){if(Ze(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(l===void 0&&(l=0),S===void 0&&(S=u?u.length:0),C===void 0&&(C=0),N===void 0&&(N=this.length),l<0||S>u.length||C<0||N>this.length)throw new RangeError("out of range index");if(C>=N&&l>=S)return 0;if(C>=N)return-1;if(l>=S)return 1;if(l>>>=0,S>>>=0,C>>>=0,N>>>=0,this===u)return 0;let F=N-C,k=S-l,B=Math.min(F,k),re=this.slice(C,N),ie=u.slice(l,S);for(let oe=0;oe<B;++oe)if(re[oe]!==ie[oe]){F=re[oe],k=ie[oe];break}return F<k?-1:k<F?1:0};function g(p,u,l,S,C){if(p.length===0)return-1;if(typeof l=="string"?(S=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,Tn(l)&&(l=C?0:p.length-1),l<0&&(l=p.length+l),l>=p.length){if(C)return-1;l=p.length-1}else if(l<0)if(C)l=0;else return-1;if(typeof u=="string"&&(u=o.from(u,S)),o.isBuffer(u))return u.length===0?-1:O(p,u,l,S,C);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(p,u,l):Uint8Array.prototype.lastIndexOf.call(p,u,l):O(p,[u],l,S,C);throw new TypeError("val must be string, number or Buffer")}function O(p,u,l,S,C){let N=1,F=p.length,k=u.length;if(S!==void 0&&(S=String(S).toLowerCase(),S==="ucs2"||S==="ucs-2"||S==="utf16le"||S==="utf-16le")){if(p.length<2||u.length<2)return-1;N=2,F/=2,k/=2,l/=2}function B(ie,oe){return N===1?ie[oe]:ie.readUInt16BE(oe*N)}let re;if(C){let ie=-1;for(re=l;re<F;re++)if(B(p,re)===B(u,ie===-1?0:re-ie)){if(ie===-1&&(ie=re),re-ie+1===k)return ie*N}else ie!==-1&&(re-=re-ie),ie=-1}else for(l+k>F&&(l=F-k),re=l;re>=0;re--){let ie=!0;for(let oe=0;oe<k;oe++)if(B(p,re+oe)!==B(u,oe)){ie=!1;break}if(ie)return re}return-1}o.prototype.includes=function(u,l,S){return this.indexOf(u,l,S)!==-1},o.prototype.indexOf=function(u,l,S){return g(this,u,l,S,!0)},o.prototype.lastIndexOf=function(u,l,S){return g(this,u,l,S,!1)};function _(p,u,l,S){l=Number(l)||0;let C=p.length-l;S?(S=Number(S),S>C&&(S=C)):S=C;let N=u.length;S>N/2&&(S=N/2);let F;for(F=0;F<S;++F){let k=parseInt(u.substr(F*2,2),16);if(Tn(k))return F;p[l+F]=k}return F}function q(p,u,l,S){return Vr(Ct(u,p.length-l),p,l,S)}function $(p,u,l,S){return Vr(Bt(u),p,l,S)}function j(p,u,l,S){return Vr(Ii(u),p,l,S)}function J(p,u,l,S){return Vr(xn(u,p.length-l),p,l,S)}o.prototype.write=function(u,l,S,C){if(l===void 0)C="utf8",S=this.length,l=0;else if(S===void 0&&typeof l=="string")C=l,S=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(S)?(S=S>>>0,C===void 0&&(C="utf8")):(C=S,S=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let N=this.length-l;if((S===void 0||S>N)&&(S=N),u.length>0&&(S<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let F=!1;for(;;)switch(C){case"hex":return _(this,u,l,S);case"utf8":case"utf-8":return q(this,u,l,S);case"ascii":case"latin1":case"binary":return $(this,u,l,S);case"base64":return j(this,u,l,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,u,l,S);default:if(F)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),F=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(p,u,l){return u===0&&l===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(u,l))}function H(p,u,l){l=Math.min(p.length,l);let S=[],C=u;for(;C<l;){let N=p[C],F=null,k=N>239?4:N>223?3:N>191?2:1;if(C+k<=l){let B,re,ie,oe;switch(k){case 1:N<128&&(F=N);break;case 2:B=p[C+1],(B&192)===128&&(oe=(N&31)<<6|B&63,oe>127&&(F=oe));break;case 3:B=p[C+1],re=p[C+2],(B&192)===128&&(re&192)===128&&(oe=(N&15)<<12|(B&63)<<6|re&63,oe>2047&&(oe<55296||oe>57343)&&(F=oe));break;case 4:B=p[C+1],re=p[C+2],ie=p[C+3],(B&192)===128&&(re&192)===128&&(ie&192)===128&&(oe=(N&15)<<18|(B&63)<<12|(re&63)<<6|ie&63,oe>65535&&oe<1114112&&(F=oe))}}F===null?(F=65533,k=1):F>65535&&(F-=65536,S.push(F>>>10&1023|55296),F=56320|F&1023),S.push(F),C+=k}return K(S)}let G=4096;function K(p){let u=p.length;if(u<=G)return String.fromCharCode.apply(String,p);let l="",S=0;for(;S<u;)l+=String.fromCharCode.apply(String,p.slice(S,S+=G));return l}function X(p,u,l){let S="";l=Math.min(p.length,l);for(let C=u;C<l;++C)S+=String.fromCharCode(p[C]&127);return S}function Q(p,u,l){let S="";l=Math.min(p.length,l);for(let C=u;C<l;++C)S+=String.fromCharCode(p[C]);return S}function V(p,u,l){let S=p.length;(!u||u<0)&&(u=0),(!l||l<0||l>S)&&(l=S);let C="";for(let N=u;N<l;++N)C+=Xo[p[N]];return C}function te(p,u,l){let S=p.slice(u,l),C="";for(let N=0;N<S.length-1;N+=2)C+=String.fromCharCode(S[N]+S[N+1]*256);return C}o.prototype.slice=function(u,l){let S=this.length;u=~~u,l=l===void 0?S:~~l,u<0?(u+=S,u<0&&(u=0)):u>S&&(u=S),l<0?(l+=S,l<0&&(l=0)):l>S&&(l=S),l<u&&(l=u);let C=this.subarray(u,l);return Object.setPrototypeOf(C,o.prototype),C};function Y(p,u,l){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+u>l)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,l,S){u=u>>>0,l=l>>>0,S||Y(u,l,this.length);let C=this[u],N=1,F=0;for(;++F<l&&(N*=256);)C+=this[u+F]*N;return C},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,l,S){u=u>>>0,l=l>>>0,S||Y(u,l,this.length);let C=this[u+--l],N=1;for(;l>0&&(N*=256);)C+=this[u+--l]*N;return C},o.prototype.readUint8=o.prototype.readUInt8=function(u,l){return u=u>>>0,l||Y(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,l){return u=u>>>0,l||Y(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,l){return u=u>>>0,l||Y(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readBigUInt64LE=at(function(u){u=u>>>0,xe(u,"offset");let l=this[u],S=this[u+7];(l===void 0||S===void 0)&&st(u,this.length-8);let C=l+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,N=this[++u]+this[++u]*2**8+this[++u]*2**16+S*2**24;return BigInt(C)+(BigInt(N)<<BigInt(32))}),o.prototype.readBigUInt64BE=at(function(u){u=u>>>0,xe(u,"offset");let l=this[u],S=this[u+7];(l===void 0||S===void 0)&&st(u,this.length-8);let C=l*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],N=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+S;return(BigInt(C)<<BigInt(32))+BigInt(N)}),o.prototype.readIntLE=function(u,l,S){u=u>>>0,l=l>>>0,S||Y(u,l,this.length);let C=this[u],N=1,F=0;for(;++F<l&&(N*=256);)C+=this[u+F]*N;return N*=128,C>=N&&(C-=Math.pow(2,8*l)),C},o.prototype.readIntBE=function(u,l,S){u=u>>>0,l=l>>>0,S||Y(u,l,this.length);let C=l,N=1,F=this[u+--C];for(;C>0&&(N*=256);)F+=this[u+--C]*N;return N*=128,F>=N&&(F-=Math.pow(2,8*l)),F},o.prototype.readInt8=function(u,l){return u=u>>>0,l||Y(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,l){u=u>>>0,l||Y(u,2,this.length);let S=this[u]|this[u+1]<<8;return S&32768?S|4294901760:S},o.prototype.readInt16BE=function(u,l){u=u>>>0,l||Y(u,2,this.length);let S=this[u+1]|this[u]<<8;return S&32768?S|4294901760:S},o.prototype.readInt32LE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readBigInt64LE=at(function(u){u=u>>>0,xe(u,"offset");let l=this[u],S=this[u+7];(l===void 0||S===void 0)&&st(u,this.length-8);let C=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(S<<24);return(BigInt(C)<<BigInt(32))+BigInt(l+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),o.prototype.readBigInt64BE=at(function(u){u=u>>>0,xe(u,"offset");let l=this[u],S=this[u+7];(l===void 0||S===void 0)&&st(u,this.length-8);let C=(l<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(C)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+S)}),o.prototype.readFloatLE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),e.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,l){return u=u>>>0,l||Y(u,4,this.length),e.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,l){return u=u>>>0,l||Y(u,8,this.length),e.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,l){return u=u>>>0,l||Y(u,8,this.length),e.read(this,u,!1,52,8)};function ee(p,u,l,S,C,N){if(!o.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>C||u<N)throw new RangeError('"value" argument is out of bounds');if(l+S>p.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,l,S,C){if(u=+u,l=l>>>0,S=S>>>0,!C){let k=Math.pow(2,8*S)-1;ee(this,u,l,S,k,0)}let N=1,F=0;for(this[l]=u&255;++F<S&&(N*=256);)this[l+F]=u/N&255;return l+S},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,l,S,C){if(u=+u,l=l>>>0,S=S>>>0,!C){let k=Math.pow(2,8*S)-1;ee(this,u,l,S,k,0)}let N=S-1,F=1;for(this[l+N]=u&255;--N>=0&&(F*=256);)this[l+N]=u/F&255;return l+S},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,1,255,0),this[l]=u&255,l+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,2,65535,0),this[l]=u&255,this[l+1]=u>>>8,l+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,2,65535,0),this[l]=u>>>8,this[l+1]=u&255,l+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,4,4294967295,0),this[l+3]=u>>>24,this[l+2]=u>>>16,this[l+1]=u>>>8,this[l]=u&255,l+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,4,4294967295,0),this[l]=u>>>24,this[l+1]=u>>>16,this[l+2]=u>>>8,this[l+3]=u&255,l+4};function pe(p,u,l,S,C){Oe(u,S,C,p,l,7);let N=Number(u&BigInt(4294967295));p[l++]=N,N=N>>8,p[l++]=N,N=N>>8,p[l++]=N,N=N>>8,p[l++]=N;let F=Number(u>>BigInt(32)&BigInt(4294967295));return p[l++]=F,F=F>>8,p[l++]=F,F=F>>8,p[l++]=F,F=F>>8,p[l++]=F,l}function Z(p,u,l,S,C){Oe(u,S,C,p,l,7);let N=Number(u&BigInt(4294967295));p[l+7]=N,N=N>>8,p[l+6]=N,N=N>>8,p[l+5]=N,N=N>>8,p[l+4]=N;let F=Number(u>>BigInt(32)&BigInt(4294967295));return p[l+3]=F,F=F>>8,p[l+2]=F,F=F>>8,p[l+1]=F,F=F>>8,p[l]=F,l+8}o.prototype.writeBigUInt64LE=at(function(u,l=0){return pe(this,u,l,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=at(function(u,l=0){return Z(this,u,l,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(u,l,S,C){if(u=+u,l=l>>>0,!C){let B=Math.pow(2,8*S-1);ee(this,u,l,S,B-1,-B)}let N=0,F=1,k=0;for(this[l]=u&255;++N<S&&(F*=256);)u<0&&k===0&&this[l+N-1]!==0&&(k=1),this[l+N]=(u/F>>0)-k&255;return l+S},o.prototype.writeIntBE=function(u,l,S,C){if(u=+u,l=l>>>0,!C){let B=Math.pow(2,8*S-1);ee(this,u,l,S,B-1,-B)}let N=S-1,F=1,k=0;for(this[l+N]=u&255;--N>=0&&(F*=256);)u<0&&k===0&&this[l+N+1]!==0&&(k=1),this[l+N]=(u/F>>0)-k&255;return l+S},o.prototype.writeInt8=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,1,127,-128),u<0&&(u=255+u+1),this[l]=u&255,l+1},o.prototype.writeInt16LE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,2,32767,-32768),this[l]=u&255,this[l+1]=u>>>8,l+2},o.prototype.writeInt16BE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,2,32767,-32768),this[l]=u>>>8,this[l+1]=u&255,l+2},o.prototype.writeInt32LE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,4,2147483647,-2147483648),this[l]=u&255,this[l+1]=u>>>8,this[l+2]=u>>>16,this[l+3]=u>>>24,l+4},o.prototype.writeInt32BE=function(u,l,S){return u=+u,l=l>>>0,S||ee(this,u,l,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[l]=u>>>24,this[l+1]=u>>>16,this[l+2]=u>>>8,this[l+3]=u&255,l+4},o.prototype.writeBigInt64LE=at(function(u,l=0){return pe(this,u,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=at(function(u,l=0){return Z(this,u,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ne(p,u,l,S,C,N){if(l+S>p.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function fe(p,u,l,S,C){return u=+u,l=l>>>0,C||ne(p,u,l,4),e.write(p,u,l,S,23,4),l+4}o.prototype.writeFloatLE=function(u,l,S){return fe(this,u,l,!0,S)},o.prototype.writeFloatBE=function(u,l,S){return fe(this,u,l,!1,S)};function ge(p,u,l,S,C){return u=+u,l=l>>>0,C||ne(p,u,l,8),e.write(p,u,l,S,52,8),l+8}o.prototype.writeDoubleLE=function(u,l,S){return ge(this,u,l,!0,S)},o.prototype.writeDoubleBE=function(u,l,S){return ge(this,u,l,!1,S)},o.prototype.copy=function(u,l,S,C){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(S||(S=0),!C&&C!==0&&(C=this.length),l>=u.length&&(l=u.length),l||(l=0),C>0&&C<S&&(C=S),C===S||u.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),u.length-l<C-S&&(C=u.length-l+S);let N=C-S;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,S,C):Uint8Array.prototype.set.call(u,this.subarray(S,C),l),N},o.prototype.fill=function(u,l,S,C){if(typeof u=="string"){if(typeof l=="string"?(C=l,l=0,S=this.length):typeof S=="string"&&(C=S,S=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(u.length===1){let F=u.charCodeAt(0);(C==="utf8"&&F<128||C==="latin1")&&(u=F)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(l<0||this.length<l||this.length<S)throw new RangeError("Out of range index");if(S<=l)return this;l=l>>>0,S=S===void 0?this.length:S>>>0,u||(u=0);let N;if(typeof u=="number")for(N=l;N<S;++N)this[N]=u;else{let F=o.isBuffer(u)?u:o.from(u,C),k=F.length;if(k===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(N=0;N<S-l;++N)this[N+l]=F[N%k]}return this};let ye={};function Ae(p,u,l){ye[p]=class extends l{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}Ae("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ae("ERR_INVALID_ARG_TYPE",function(p,u){return`The "${p}" argument must be of type number. Received type ${typeof u}`},TypeError),Ae("ERR_OUT_OF_RANGE",function(p,u,l){let S=`The value of "${p}" is out of range.`,C=l;return Number.isInteger(l)&&Math.abs(l)>2**32?C=_e(String(l)):typeof l=="bigint"&&(C=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(C=_e(C)),C+="n"),S+=` It must be ${u}. Received ${C}`,S},RangeError);function _e(p){let u="",l=p.length,S=p[0]==="-"?1:0;for(;l>=S+4;l-=3)u=`_${p.slice(l-3,l)}${u}`;return`${p.slice(0,l)}${u}`}function ve(p,u,l){xe(u,"offset"),(p[u]===void 0||p[u+l]===void 0)&&st(u,p.length-(l+1))}function Oe(p,u,l,S,C,N){if(p>l||p<u){let F=typeof u=="bigint"?"n":"",k;throw u===0||u===BigInt(0)?k=`>= 0${F} and < 2${F} ** ${(N+1)*8}${F}`:k=`>= -(2${F} ** ${(N+1)*8-1}${F}) and < 2 ** ${(N+1)*8-1}${F}`,new ye.ERR_OUT_OF_RANGE("value",k,p)}ve(S,C,N)}function xe(p,u){if(typeof p!="number")throw new ye.ERR_INVALID_ARG_TYPE(u,"number",p)}function st(p,u,l){throw Math.floor(p)!==p?(xe(p,l),new ye.ERR_OUT_OF_RANGE("offset","an integer",p)):u<0?new ye.ERR_BUFFER_OUT_OF_BOUNDS:new ye.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,p)}let Re=/[^+/0-9A-Za-z-_]/g;function Ne(p){if(p=p.split("=")[0],p=p.trim().replace(Re,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function Ct(p,u){u=u||1/0;let l,S=p.length,C=null,N=[];for(let F=0;F<S;++F){if(l=p.charCodeAt(F),l>55295&&l<57344){if(!C){if(l>56319){(u-=3)>-1&&N.push(239,191,189);continue}else if(F+1===S){(u-=3)>-1&&N.push(239,191,189);continue}C=l;continue}if(l<56320){(u-=3)>-1&&N.push(239,191,189),C=l;continue}l=(C-55296<<10|l-56320)+65536}else C&&(u-=3)>-1&&N.push(239,191,189);if(C=null,l<128){if((u-=1)<0)break;N.push(l)}else if(l<2048){if((u-=2)<0)break;N.push(l>>6|192,l&63|128)}else if(l<65536){if((u-=3)<0)break;N.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((u-=4)<0)break;N.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return N}function Bt(p){let u=[];for(let l=0;l<p.length;++l)u.push(p.charCodeAt(l)&255);return u}function xn(p,u){let l,S,C,N=[];for(let F=0;F<p.length&&!((u-=2)<0);++F)l=p.charCodeAt(F),S=l>>8,C=l%256,N.push(C),N.push(S);return N}function Ii(p){return t.toByteArray(Ne(p))}function Vr(p,u,l,S){let C;for(C=0;C<S&&!(C+l>=u.length||C>=p.length);++C)u[C+l]=p[C];return C}function Ze(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function Tn(p){return p!==p}let Xo=function(){let p="0123456789abcdef",u=new Array(256);for(let l=0;l<16;++l){let S=l*16;for(let C=0;C<16;++C)u[S+C]=p[l]+p[C]}return u}();function at(p){return typeof BigInt>"u"?Zo:p}function Zo(){throw new Error("BigInt not supported")}return mr}var On,Sf,ki,Ef,mr,Af,xf=ze(()=>{A();x();I();On={},Sf=!1;ki={},Ef=!1;mr={},Af=!1});var qe={};Kr(qe,{Buffer:()=>U,INSPECT_MAX_BYTES:()=>nw,default:()=>Xt,kMaxLength:()=>iw});var Xt,U,nw,iw,ke=ze(()=>{A();x();I();xf();Xt=If();Xt.Buffer;Xt.SlowBuffer;Xt.INSPECT_MAX_BYTES;Xt.kMaxLength;U=Xt.Buffer,nw=Xt.INSPECT_MAX_BYTES,iw=Xt.kMaxLength});var x=ze(()=>{ke()});var Ee=D((MP,Tf)=>{"use strict";A();x();I();var fs=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let n=0;n<e.length;n++)r+=` ${e[n].stack}
`;super(r),this.name="AggregateError",this.errors=e}};Tf.exports={AggregateError:fs,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var hs=D((HP,Pf)=>{"use strict";A();x();I();Pf.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var De=D((eO,kf)=>{"use strict";A();x();I();var{format:ow,inspect:Ci}=hs(),{AggregateError:sw}=Ee(),aw=globalThis.AggregateError||sw,uw=Symbol("kIsNodeError"),lw=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cw=/^([A-Z][a-z0-9]*)+$/,fw="__node_internal_",Bi={};function _r(t,e){if(!t)throw new Bi.ERR_INTERNAL_ASSERTION(e)}function Of(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 hw(t,e,r){if(typeof e=="function")return _r(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return _r(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:ow(e,...r)}function Le(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(hw(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[uw]=!0,Bi[t]=n}function Rf(t){let e=fw+t.name;return Object.defineProperty(t,"name",{value:e}),t}function dw(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aw([e,t],e.message);return r.code=e.code,r}return t||e}var ds=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Bi.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Le("ERR_ASSERTION","%s",Error);Le("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_r(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],o=[];for(let c of e)_r(typeof c=="string","All expected entries have to be of type string"),lw.includes(c)?i.push(c.toLowerCase()):cw.test(c)?s.push(c):(_r(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=i.indexOf("object");c!==-1&&(i.splice(i,c,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let c=i.pop();n+=`one of type ${i.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();n+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();n+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)n+=`. Received an instance of ${r.constructor.name}`;else{let c=Ci(r,{depth:-1});n+=`. Received ${c}`}}else{let c=Ci(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),n+=`. Received type ${typeof r} (${c})`}return n},TypeError);Le("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=Ci(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Le("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Le("ERR_MISSING_ARGS",(...t)=>{_r(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Le("ERR_OUT_OF_RANGE",(t,e,r)=>{_r(e,'Missing "range" argument');let n;if(Number.isInteger(r)&&Math.abs(r)>2**32)n=Of(String(r));else if(typeof r=="bigint"){n=String(r);let i=BigInt(2)**BigInt(32);(r>i||r<-i)&&(n=Of(n)),n+="n"}else n=Ci(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Le("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Le("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Le("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Le("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Le("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Le("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Le("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Le("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Le("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Le("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Le("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);kf.exports={AbortError:ds,aggregateTwoErrors:Rf(dw),hideStackFrames:Rf,codes:Bi}});var Yr=D((cO,Mi)=>{"use strict";A();x();I();var{AbortController:Cf,AbortSignal:pw}=typeof self<"u"?self:typeof window<"u"?window:void 0;Mi.exports=Cf;Mi.exports.AbortSignal=pw;Mi.exports.default=Cf});var Zt={};Kr(Zt,{EventEmitter:()=>gw,default:()=>Rn,defaultMaxListeners:()=>bw,init:()=>ww,listenerCount:()=>mw,on:()=>_w,once:()=>vw});function yw(){if(Bf)return Ni;Bf=!0;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(g,O,_){return Function.prototype.apply.call(g,O,_)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:r=function(g){return Object.getOwnPropertyNames(g)};function n(T){console&&console.warn&&console.warn(T)}var i=Number.isNaN||function(g){return g!==g};function s(){s.init.call(this)}Ni=s,Ni.once=m,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");o=T}}),s.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},s.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||i(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function c(T){return T._maxListeners===void 0?s.defaultMaxListeners:T._maxListeners}s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(g){for(var O=[],_=1;_<arguments.length;_++)O.push(arguments[_]);var q=g==="error",$=this._events;if($!==void 0)q=q&&$.error===void 0;else if(!q)return!1;if(q){var j;if(O.length>0&&(j=O[0]),j instanceof Error)throw j;var J=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw J.context=j,J}var W=$[g];if(W===void 0)return!1;if(typeof W=="function")e(W,this,O);else for(var H=W.length,G=P(W,H),_=0;_<H;++_)e(G[_],this,O);return!0};function f(T,g,O,_){var q,$,j;if(a(O),$=T._events,$===void 0?($=T._events=Object.create(null),T._eventsCount=0):($.newListener!==void 0&&(T.emit("newListener",g,O.listener?O.listener:O),$=T._events),j=$[g]),j===void 0)j=$[g]=O,++T._eventsCount;else if(typeof j=="function"?j=$[g]=_?[O,j]:[j,O]:_?j.unshift(O):j.push(O),q=c(T),q>0&&j.length>q&&!j.warned){j.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=T,J.type=g,J.count=j.length,n(J)}return T}s.prototype.addListener=function(g,O){return f(this,g,O,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(g,O){return f(this,g,O,!0)};function h(){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 d(T,g,O){var _={fired:!1,wrapFn:void 0,target:T,type:g,listener:O},q=h.bind(_);return q.listener=O,_.wrapFn=q,q}s.prototype.once=function(g,O){return a(O),this.on(g,d(this,g,O)),this},s.prototype.prependOnceListener=function(g,O){return a(O),this.prependListener(g,d(this,g,O)),this},s.prototype.removeListener=function(g,O){var _,q,$,j,J;if(a(O),q=this._events,q===void 0)return this;if(_=q[g],_===void 0)return this;if(_===O||_.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete q[g],q.removeListener&&this.emit("removeListener",g,_.listener||O));else if(typeof _!="function"){for($=-1,j=_.length-1;j>=0;j--)if(_[j]===O||_[j].listener===O){J=_[j].listener,$=j;break}if($<0)return this;$===0?_.shift():E(_,$),_.length===1&&(q[g]=_[0]),q.removeListener!==void 0&&this.emit("removeListener",g,J||O)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(g){var O,_,q;if(_=this._events,_===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _[g]),this;if(arguments.length===0){var $=Object.keys(_),j;for(q=0;q<$.length;++q)j=$[q],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=_[g],typeof O=="function")this.removeListener(g,O);else if(O!==void 0)for(q=O.length-1;q>=0;q--)this.removeListener(g,O[q]);return this};function w(T,g,O){var _=T._events;if(_===void 0)return[];var q=_[g];return q===void 0?[]:typeof q=="function"?O?[q.listener||q]:[q]:O?b(q):P(q,q.length)}s.prototype.listeners=function(g){return w(this,g,!0)},s.prototype.rawListeners=function(g){return w(this,g,!1)},s.listenerCount=function(T,g){return typeof T.listenerCount=="function"?T.listenerCount(g):y.call(T,g)},s.prototype.listenerCount=y;function y(T){var g=this._events;if(g!==void 0){var O=g[T];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function P(T,g){for(var O=new Array(g),_=0;_<g;++_)O[_]=T[_];return O}function E(T,g){for(;g+1<T.length;g++)T[g]=T[g+1];T.pop()}function b(T){for(var g=new Array(T.length),O=0;O<g.length;++O)g[O]=T[O].listener||T[O];return g}function m(T,g){return new Promise(function(O,_){function q(j){T.removeListener(g,$),_(j)}function $(){typeof T.removeListener=="function"&&T.removeListener("error",q),O([].slice.call(arguments))}R(T,g,$,{once:!0}),g!=="error"&&v(T,q,{once:!0})})}function v(T,g,O){typeof T.on=="function"&&R(T,"error",g,O)}function R(T,g,O,_){if(typeof T.on=="function")_.once?T.once(g,O):T.on(g,O);else if(typeof T.addEventListener=="function")T.addEventListener(g,function q($){_.once&&T.removeEventListener(g,q),O($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return Ni}var Ni,Bf,Rn,gw,bw,ww,mw,_w,vw,er=ze(()=>{A();x();I();Ni={},Bf=!1;Rn=yw();Rn.once;Rn.once=function(t,e){return new Promise((r,n)=>{function i(...o){s!==void 0&&t.removeListener("error",s),r(o)}let s;e!=="error"&&(s=o=>{t.removeListener(name,i),n(o)},t.once("error",s)),t.once(e,i)})};Rn.on=function(t,e){let r=[],n=[],i=null,s=!1,o={async next(){let f=r.shift();if(f)return createIterResult(f,!1);if(i){let h=Promise.reject(i);return i=null,h}return s?createIterResult(void 0,!0):new Promise((h,d)=>n.push({resolve:h,reject:d}))},async return(){t.removeListener(e,a),t.removeListener("error",c),s=!0;for(let f of n)f.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(f){i=f,t.removeListener(e,a),t.removeListener("error",c)},[Symbol.asyncIterator](){return this}};return t.on(e,a),t.on("error",c),o;function a(...f){let h=n.shift();h?h.resolve(createIterResult(f,!1)):r.push(f)}function c(f){s=!0;let h=n.shift();h?h.reject(f):i=f,o.return()}};({EventEmitter:gw,defaultMaxListeners:bw,init:ww,listenerCount:mw,on:_w,once:vw}=Rn)});var $e=D((OO,ys)=>{"use strict";A();x();I();var Sw=(ke(),me(qe)),{format:Ew,inspect:Aw}=hs(),{codes:{ERR_INVALID_ARG_TYPE:ps}}=De(),{kResistStopPropagation:Iw,AggregateError:xw,SymbolDispose:Tw}=Ee(),Pw=globalThis.AbortSignal||Yr().AbortSignal,Ow=globalThis.AbortController||Yr().AbortController,Rw=Object.getPrototypeOf(async function(){}).constructor,Mf=globalThis.Blob||Sw.Blob,kw=typeof Mf<"u"?function(e){return e instanceof Mf}:function(e){return!1},Nf=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ps(e,"AbortSignal",t)},Cw=(t,e)=>{if(typeof t!="function")throw new ps(e,"Function",t)};ys.exports={AggregateError:xw,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format:Ew,inspect:Aw,types:{isAsyncFunction(t){return t instanceof Rw},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:kw,deprecate(t,e){return t},addAbortListener:(er(),me(Zt)).addAbortListener||function(e,r){if(