@ar.io/sdk
Version:
[](https://codecov.io/gh/ar-io/ar-io-sdk)
1 lines • 5.31 MB
JavaScript
var Eet=Object.create;var KM=Object.defineProperty;var Aet=Object.getOwnPropertyDescriptor;var Ret=Object.getOwnPropertyNames;var Tet=Object.getPrototypeOf,Iet=Object.prototype.hasOwnProperty;var Sn=(t,r)=>()=>(t&&(r=t(t=0)),r);var Ut=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Uf=(t,r)=>{for(var n in r)KM(t,n,{get:r[n],enumerable:!0})},Ole=(t,r,n,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ret(r))!Iet.call(t,i)&&i!==n&&KM(t,i,{get:()=>r[i],enumerable:!(l=Aet(r,i))||l.enumerable});return t};var $n=(t,r,n)=>(n=t!=null?Eet(Tet(t)):{},Ole(r||!t||!t.__esModule?KM(n,"default",{value:t,enumerable:!0}):n,t)),dn=t=>Ole(KM({},"__esModule",{value:!0}),t);var we=Sn(()=>{"use strict"});var We={};Uf(We,{_debugEnd:()=>Mce,_debugProcess:()=>_ce,_events:()=>Dce,_eventsCount:()=>$ce,_exiting:()=>rce,_fatalExceptions:()=>bce,_getActiveHandles:()=>oce,_getActiveRequests:()=>ace,_kill:()=>fce,_linkedBinding:()=>ece,_maxListeners:()=>Lce,_preload_modules:()=>Nce,_rawDebug:()=>Xle,_startProfilerIdleNotifier:()=>Sce,_stopProfilerIdleNotifier:()=>xce,_tickCallback:()=>wce,abort:()=>Tce,addListener:()=>qce,allowedNodeEnvironmentFlags:()=>pce,arch:()=>$le,argv:()=>jle,argv0:()=>Oce,assert:()=>mce,binding:()=>Zle,browser:()=>Jle,chdir:()=>Vle,config:()=>ice,cpuUsage:()=>GM,cwd:()=>Gle,debugPort:()=>Pce,default:()=>Gce,dlopen:()=>nce,domain:()=>tce,emit:()=>Hce,emitWarning:()=>Kle,env:()=>Ule,execArgv:()=>Fle,execPath:()=>Bce,exit:()=>cce,features:()=>vce,hasUncaughtExceptionCaptureCallback:()=>yce,hrtime:()=>WM,kill:()=>lce,listeners:()=>Wce,memoryUsage:()=>uce,moduleLoadList:()=>Qle,nextTick:()=>Cle,off:()=>jce,on:()=>u1,once:()=>Uce,openStdin:()=>dce,pid:()=>Ice,platform:()=>qle,ppid:()=>kce,prependListener:()=>Kce,prependOnceListener:()=>Zce,reallyExit:()=>sce,release:()=>Yle,removeAllListeners:()=>zce,removeListener:()=>Fce,resourceUsage:()=>hce,setSourceMapsEnabled:()=>Cce,setUncaughtExceptionCaptureCallback:()=>gce,stderr:()=>Ace,stdin:()=>Rce,stdout:()=>Ece,title:()=>Dle,umask:()=>Wle,uptime:()=>p4,version:()=>zle,versions:()=>Hle});function TL(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function ket(){!N6||!x2||(N6=!1,x2.length?h1=x2.concat(h1):ZM=-1,h1.length&&Nle())}function Nle(){if(!N6){var t=setTimeout(ket,0);N6=!0;for(var r=h1.length;r;){for(x2=h1,h1=[];++ZM<r;)x2&&x2[ZM].run();ZM=-1,r=h1.length}x2=null,N6=!1,clearTimeout(t)}}function Cle(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];h1.push(new Lle(t,r)),h1.length===1&&!N6&&setTimeout(Nle,0)}function Lle(t,r){this.fun=t,this.array=r}function pf(){}function ece(t){TL("_linkedBinding")}function nce(t){TL("dlopen")}function ace(){return[]}function oce(){return[]}function mce(t,r){if(!t)throw new Error(r||"assertion error")}function yce(){return!1}function p4(){return Jp.now()/1e3}function WM(t){var r=Math.floor((Date.now()-Jp.now())*.001),n=Jp.now()*.001,l=Math.floor(n)+r,i=Math.floor(n%1*1e9);return t&&(l=l-t[0],i=i-t[1],i<0&&(l--,i+=RL)),[l,i]}function u1(){return Gce}function Wce(t){return[]}var h1,N6,x2,ZM,Dle,$le,qle,Ule,jle,Fle,zle,Hle,Kle,Zle,Wle,Gle,Vle,Yle,Jle,Xle,Qle,tce,rce,ice,sce,fce,GM,hce,uce,lce,cce,dce,pce,vce,bce,gce,wce,_ce,Mce,Sce,xce,Ece,Ace,Rce,Tce,Ice,kce,Bce,Pce,Oce,Nce,Cce,Jp,AL,RL,Lce,Dce,$ce,qce,Uce,jce,Fce,zce,Hce,Kce,Zce,Gce,IL=Sn(()=>{"use strict";we();Me();_e();h1=[],N6=!1,ZM=-1;Lle.prototype.run=function(){this.fun.apply(null,this.array)};Dle="browser",$le="x64",qle="browser",Ule={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},jle=["/usr/bin/node"],Fle=[],zle="v16.8.0",Hle={},Kle=function(t,r){console.warn((r?r+": ":"")+t)},Zle=function(t){TL("binding")},Wle=function(t){return 0},Gle=function(){return"/"},Vle=function(t){},Yle={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Jle=!0,Xle=pf,Qle=[];tce={},rce=!1,ice={};sce=pf,fce=pf,GM=function(){return{}},hce=GM,uce=GM,lce=pf,cce=pf,dce=pf,pce={};vce={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},bce=pf,gce=pf;wce=pf,_ce=pf,Mce=pf,Sce=pf,xce=pf,Ece=void 0,Ace=void 0,Rce=void 0,Tce=pf,Ice=2,kce=1,Bce="/bin/usr/node",Pce=9229,Oce="node",Nce=[],Cce=pf,Jp={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Jp.now===void 0&&(AL=Date.now(),Jp.timing&&Jp.timing.navigationStart&&(AL=Jp.timing.navigationStart),Jp.now=()=>Date.now()-AL);RL=1e9;WM.bigint=function(t){var r=WM(t);return typeof BigInt>"u"?r[0]*RL+r[1]:BigInt(r[0]*RL)+BigInt(r[1])};Lce=10,Dce={},$ce=0;qce=u1,Uce=u1,jce=u1,Fce=u1,zce=u1,Hce=pf,Kce=u1,Zce=u1;Gce={version:zle,versions:Hle,arch:$le,platform:qle,browser:Jle,release:Yle,_rawDebug:Xle,moduleLoadList:Qle,binding:Zle,_linkedBinding:ece,_events:Dce,_eventsCount:$ce,_maxListeners:Lce,on:u1,addListener:qce,once:Uce,off:jce,removeListener:Fce,removeAllListeners:zce,emit:Hce,prependListener:Kce,prependOnceListener:Zce,listeners:Wce,domain:tce,_exiting:rce,config:ice,dlopen:nce,uptime:p4,_getActiveRequests:ace,_getActiveHandles:oce,reallyExit:sce,_kill:fce,cpuUsage:GM,resourceUsage:hce,memoryUsage:uce,kill:lce,exit:cce,openStdin:dce,allowedNodeEnvironmentFlags:pce,assert:mce,features:vce,_fatalExceptions:bce,setUncaughtExceptionCaptureCallback:gce,hasUncaughtExceptionCaptureCallback:yce,emitWarning:Kle,nextTick:Cle,_tickCallback:wce,_debugProcess:_ce,_debugEnd:Mce,_startProfilerIdleNotifier:Sce,_stopProfilerIdleNotifier:xce,stdout:Ece,stdin:Rce,stderr:Ace,abort:Tce,umask:Wle,chdir:Vle,cwd:Gle,env:Ule,title:Dle,argv:jle,execArgv:Fle,pid:Ice,ppid:kce,execPath:Bce,debugPort:Pce,hrtime:WM,argv0:Oce,_preload_modules:Nce,setSourceMapsEnabled:Cce}});var _e=Sn(()=>{"use strict";IL()});function Bet(){if(Vce)return m4;Vce=!0,m4.byteLength=v,m4.toByteArray=y,m4.fromByteArray=M;for(var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,d=l.length;i<d;++i)t[i]=l[i],r[l.charCodeAt(i)]=i;r[45]=62,r[95]=63;function p(x){var E=x.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=x.indexOf("=");T===-1&&(T=E);var I=T===E?0:4-T%4;return[T,I]}function v(x){var E=p(x),T=E[0],I=E[1];return(T+I)*3/4-I}function _(x,E,T){return(E+T)*3/4-T}function y(x){var E,T=p(x),I=T[0],B=T[1],O=new n(_(x,I,B)),N=0,H=B>0?I-4:I,K;for(K=0;K<H;K+=4)E=r[x.charCodeAt(K)]<<18|r[x.charCodeAt(K+1)]<<12|r[x.charCodeAt(K+2)]<<6|r[x.charCodeAt(K+3)],O[N++]=E>>16&255,O[N++]=E>>8&255,O[N++]=E&255;return B===2&&(E=r[x.charCodeAt(K)]<<2|r[x.charCodeAt(K+1)]>>4,O[N++]=E&255),B===1&&(E=r[x.charCodeAt(K)]<<10|r[x.charCodeAt(K+1)]<<4|r[x.charCodeAt(K+2)]>>2,O[N++]=E>>8&255,O[N++]=E&255),O}function w(x){return t[x>>18&63]+t[x>>12&63]+t[x>>6&63]+t[x&63]}function S(x,E,T){for(var I,B=[],O=E;O<T;O+=3)I=(x[O]<<16&16711680)+(x[O+1]<<8&65280)+(x[O+2]&255),B.push(w(I));return B.join("")}function M(x){for(var E,T=x.length,I=T%3,B=[],O=16383,N=0,H=T-I;N<H;N+=O)B.push(S(x,N,N+O>H?H:N+O));return I===1?(E=x[T-1],B.push(t[E>>2]+t[E<<4&63]+"==")):I===2&&(E=(x[T-2]<<8)+x[T-1],B.push(t[E>>10]+t[E>>4&63]+t[E<<2&63]+"=")),B.join("")}return m4}function Pet(){if(Yce)return VM;Yce=!0;return VM.read=function(t,r,n,l,i){var d,p,v=i*8-l-1,_=(1<<v)-1,y=_>>1,w=-7,S=n?i-1:0,M=n?-1:1,x=t[r+S];for(S+=M,d=x&(1<<-w)-1,x>>=-w,w+=v;w>0;d=d*256+t[r+S],S+=M,w-=8);for(p=d&(1<<-w)-1,d>>=-w,w+=l;w>0;p=p*256+t[r+S],S+=M,w-=8);if(d===0)d=1-y;else{if(d===_)return p?NaN:(x?-1:1)*(1/0);p=p+Math.pow(2,l),d=d-y}return(x?-1:1)*p*Math.pow(2,d-l)},VM.write=function(t,r,n,l,i,d){var p,v,_,y=d*8-i-1,w=(1<<y)-1,S=w>>1,M=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=l?0:d-1,E=l?1:-1,T=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(v=isNaN(r)?1:0,p=w):(p=Math.floor(Math.log(r)/Math.LN2),r*(_=Math.pow(2,-p))<1&&(p--,_*=2),p+S>=1?r+=M/_:r+=M*Math.pow(2,1-S),r*_>=2&&(p++,_/=2),p+S>=w?(v=0,p=w):p+S>=1?(v=(r*_-1)*Math.pow(2,i),p=p+S):(v=r*Math.pow(2,S-1)*Math.pow(2,i),p=0));i>=8;t[n+x]=v&255,x+=E,v/=256,i-=8);for(p=p<<i|v,y+=i;y>0;t[n+x]=p&255,x+=E,p/=256,y-=8);t[n+x-E]|=T*128},VM}function Oi(){if(Jce)return E2;Jce=!0;let t=Bet(),r=Pet(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;E2.Buffer=p,E2.SlowBuffer=B,E2.INSPECT_MAX_BYTES=50;let l=2147483647;E2.kMaxLength=l,p.TYPED_ARRAY_SUPPORT=i(),!p.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 j=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(j,P),j.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function d(j){if(j>l)throw new RangeError('The value "'+j+'" is invalid for option "size"');let P=new Uint8Array(j);return Object.setPrototypeOf(P,p.prototype),P}function p(j,P,C){if(typeof j=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(j)}return v(j,P,C)}p.poolSize=8192;function v(j,P,C){if(typeof j=="string")return S(j,P);if(ArrayBuffer.isView(j))return x(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(Re(j,ArrayBuffer)||j&&Re(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(j,SharedArrayBuffer)||j&&Re(j.buffer,SharedArrayBuffer)))return E(j,P,C);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let U=j.valueOf&&j.valueOf();if(U!=null&&U!==j)return p.from(U,P,C);let ee=T(j);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return p.from(j[Symbol.toPrimitive]("string"),P,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}p.from=function(j,P,C){return v(j,P,C)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function _(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function y(j,P,C){return _(j),j<=0?d(j):P!==void 0?typeof C=="string"?d(j).fill(P,C):d(j).fill(P):d(j)}p.alloc=function(j,P,C){return y(j,P,C)};function w(j){return _(j),d(j<0?0:I(j)|0)}p.allocUnsafe=function(j){return w(j)},p.allocUnsafeSlow=function(j){return w(j)};function S(j,P){if((typeof P!="string"||P==="")&&(P="utf8"),!p.isEncoding(P))throw new TypeError("Unknown encoding: "+P);let C=O(j,P)|0,U=d(C),ee=U.write(j,P);return ee!==C&&(U=U.slice(0,ee)),U}function M(j){let P=j.length<0?0:I(j.length)|0,C=d(P);for(let U=0;U<P;U+=1)C[U]=j[U]&255;return C}function x(j){if(Re(j,Uint8Array)){let P=new Uint8Array(j);return E(P.buffer,P.byteOffset,P.byteLength)}return M(j)}function E(j,P,C){if(P<0||j.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(j.byteLength<P+(C||0))throw new RangeError('"length" is outside of buffer bounds');let U;return P===void 0&&C===void 0?U=new Uint8Array(j):C===void 0?U=new Uint8Array(j,P):U=new Uint8Array(j,P,C),Object.setPrototypeOf(U,p.prototype),U}function T(j){if(p.isBuffer(j)){let P=I(j.length)|0,C=d(P);return C.length===0||j.copy(C,0,0,P),C}if(j.length!==void 0)return typeof j.length!="number"||Be(j.length)?d(0):M(j);if(j.type==="Buffer"&&Array.isArray(j.data))return M(j.data)}function I(j){if(j>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return j|0}function B(j){return+j!=j&&(j=0),p.alloc(+j)}p.isBuffer=function(P){return P!=null&&P._isBuffer===!0&&P!==p.prototype},p.compare=function(P,C){if(Re(P,Uint8Array)&&(P=p.from(P,P.offset,P.byteLength)),Re(C,Uint8Array)&&(C=p.from(C,C.offset,C.byteLength)),!p.isBuffer(P)||!p.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===C)return 0;let U=P.length,ee=C.length;for(let Q=0,te=Math.min(U,ee);Q<te;++Q)if(P[Q]!==C[Q]){U=P[Q],ee=C[Q];break}return U<ee?-1:ee<U?1:0},p.isEncoding=function(P){switch(String(P).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}},p.concat=function(P,C){if(!Array.isArray(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return p.alloc(0);let U;if(C===void 0)for(C=0,U=0;U<P.length;++U)C+=P[U].length;let ee=p.allocUnsafe(C),Q=0;for(U=0;U<P.length;++U){let te=P[U];if(Re(te,Uint8Array))Q+te.length>ee.length?(p.isBuffer(te)||(te=p.from(te)),te.copy(ee,Q)):Uint8Array.prototype.set.call(ee,te,Q);else if(p.isBuffer(te))te.copy(ee,Q);else throw new TypeError('"list" argument must be an Array of Buffers');Q+=te.length}return ee};function O(j,P){if(p.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||Re(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);let C=j.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&C===0)return 0;let ee=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return de(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return ye(j).length;default:if(ee)return U?-1:de(j).length;P=(""+P).toLowerCase(),ee=!0}}p.byteLength=O;function N(j,P,C){let U=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,P>>>=0,C<=P))return"";for(j||(j="utf8");;)switch(j){case"hex":return f(this,P,C);case"utf8":case"utf-8":return s(this,P,C);case"ascii":return g(this,P,C);case"latin1":case"binary":return m(this,P,C);case"base64":return a(this,P,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,P,C);default:if(U)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),U=!0}}p.prototype._isBuffer=!0;function H(j,P,C){let U=j[P];j[P]=j[C],j[C]=U}p.prototype.swap16=function(){let P=this.length;if(P%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let C=0;C<P;C+=2)H(this,C,C+1);return this},p.prototype.swap32=function(){let P=this.length;if(P%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let C=0;C<P;C+=4)H(this,C,C+3),H(this,C+1,C+2);return this},p.prototype.swap64=function(){let P=this.length;if(P%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let C=0;C<P;C+=8)H(this,C,C+7),H(this,C+1,C+6),H(this,C+2,C+5),H(this,C+3,C+4);return this},p.prototype.toString=function(){let P=this.length;return P===0?"":arguments.length===0?s(this,0,P):N.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(P){if(!p.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P?!0:p.compare(this,P)===0},p.prototype.inspect=function(){let P="",C=E2.INSPECT_MAX_BYTES;return P=this.toString("hex",0,C).replace(/(.{2})/g,"$1 ").trim(),this.length>C&&(P+=" ... "),"<Buffer "+P+">"},n&&(p.prototype[n]=p.prototype.inspect),p.prototype.compare=function(P,C,U,ee,Q){if(Re(P,Uint8Array)&&(P=p.from(P,P.offset,P.byteLength)),!p.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(C===void 0&&(C=0),U===void 0&&(U=P?P.length:0),ee===void 0&&(ee=0),Q===void 0&&(Q=this.length),C<0||U>P.length||ee<0||Q>this.length)throw new RangeError("out of range index");if(ee>=Q&&C>=U)return 0;if(ee>=Q)return-1;if(C>=U)return 1;if(C>>>=0,U>>>=0,ee>>>=0,Q>>>=0,this===P)return 0;let te=Q-ee,le=U-C,Ie=Math.min(te,le),se=this.slice(ee,Q),Ee=P.slice(C,U);for(let me=0;me<Ie;++me)if(se[me]!==Ee[me]){te=se[me],le=Ee[me];break}return te<le?-1:le<te?1:0};function K(j,P,C,U,ee){if(j.length===0)return-1;if(typeof C=="string"?(U=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,Be(C)&&(C=ee?0:j.length-1),C<0&&(C=j.length+C),C>=j.length){if(ee)return-1;C=j.length-1}else if(C<0)if(ee)C=0;else return-1;if(typeof P=="string"&&(P=p.from(P,U)),p.isBuffer(P))return P.length===0?-1:J(j,P,C,U,ee);if(typeof P=="number")return P=P&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(j,P,C):Uint8Array.prototype.lastIndexOf.call(j,P,C):J(j,[P],C,U,ee);throw new TypeError("val must be string, number or Buffer")}function J(j,P,C,U,ee){let Q=1,te=j.length,le=P.length;if(U!==void 0&&(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(j.length<2||P.length<2)return-1;Q=2,te/=2,le/=2,C/=2}function Ie(Ee,me){return Q===1?Ee[me]:Ee.readUInt16BE(me*Q)}let se;if(ee){let Ee=-1;for(se=C;se<te;se++)if(Ie(j,se)===Ie(P,Ee===-1?0:se-Ee)){if(Ee===-1&&(Ee=se),se-Ee+1===le)return Ee*Q}else Ee!==-1&&(se-=se-Ee),Ee=-1}else for(C+le>te&&(C=te-le),se=C;se>=0;se--){let Ee=!0;for(let me=0;me<le;me++)if(Ie(j,se+me)!==Ie(P,me)){Ee=!1;break}if(Ee)return se}return-1}p.prototype.includes=function(P,C,U){return this.indexOf(P,C,U)!==-1},p.prototype.indexOf=function(P,C,U){return K(this,P,C,U,!0)},p.prototype.lastIndexOf=function(P,C,U){return K(this,P,C,U,!1)};function L(j,P,C,U){C=Number(C)||0;let ee=j.length-C;U?(U=Number(U),U>ee&&(U=ee)):U=ee;let Q=P.length;U>Q/2&&(U=Q/2);let te;for(te=0;te<U;++te){let le=parseInt(P.substr(te*2,2),16);if(Be(le))return te;j[C+te]=le}return te}function $(j,P,C,U){return he(de(P,j.length-C),j,C,U)}function V(j,P,C,U){return he(re(P),j,C,U)}function h(j,P,C,U){return he(ye(P),j,C,U)}function e(j,P,C,U){return he(fe(P,j.length-C),j,C,U)}p.prototype.write=function(P,C,U,ee){if(C===void 0)ee="utf8",U=this.length,C=0;else if(U===void 0&&typeof C=="string")ee=C,U=this.length,C=0;else if(isFinite(C))C=C>>>0,isFinite(U)?(U=U>>>0,ee===void 0&&(ee="utf8")):(ee=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Q=this.length-C;if((U===void 0||U>Q)&&(U=Q),P.length>0&&(U<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let te=!1;for(;;)switch(ee){case"hex":return L(this,P,C,U);case"utf8":case"utf-8":return $(this,P,C,U);case"ascii":case"latin1":case"binary":return V(this,P,C,U);case"base64":return h(this,P,C,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,P,C,U);default:if(te)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),te=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function a(j,P,C){return P===0&&C===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(P,C))}function s(j,P,C){C=Math.min(j.length,C);let U=[],ee=P;for(;ee<C;){let Q=j[ee],te=null,le=Q>239?4:Q>223?3:Q>191?2:1;if(ee+le<=C){let Ie,se,Ee,me;switch(le){case 1:Q<128&&(te=Q);break;case 2:Ie=j[ee+1],(Ie&192)===128&&(me=(Q&31)<<6|Ie&63,me>127&&(te=me));break;case 3:Ie=j[ee+1],se=j[ee+2],(Ie&192)===128&&(se&192)===128&&(me=(Q&15)<<12|(Ie&63)<<6|se&63,me>2047&&(me<55296||me>57343)&&(te=me));break;case 4:Ie=j[ee+1],se=j[ee+2],Ee=j[ee+3],(Ie&192)===128&&(se&192)===128&&(Ee&192)===128&&(me=(Q&15)<<18|(Ie&63)<<12|(se&63)<<6|Ee&63,me>65535&&me<1114112&&(te=me))}}te===null?(te=65533,le=1):te>65535&&(te-=65536,U.push(te>>>10&1023|55296),te=56320|te&1023),U.push(te),ee+=le}return c(U)}let u=4096;function c(j){let P=j.length;if(P<=u)return String.fromCharCode.apply(String,j);let C="",U=0;for(;U<P;)C+=String.fromCharCode.apply(String,j.slice(U,U+=u));return C}function g(j,P,C){let U="";C=Math.min(j.length,C);for(let ee=P;ee<C;++ee)U+=String.fromCharCode(j[ee]&127);return U}function m(j,P,C){let U="";C=Math.min(j.length,C);for(let ee=P;ee<C;++ee)U+=String.fromCharCode(j[ee]);return U}function f(j,P,C){let U=j.length;(!P||P<0)&&(P=0),(!C||C<0||C>U)&&(C=U);let ee="";for(let Q=P;Q<C;++Q)ee+=ge[j[Q]];return ee}function o(j,P,C){let U=j.slice(P,C),ee="";for(let Q=0;Q<U.length-1;Q+=2)ee+=String.fromCharCode(U[Q]+U[Q+1]*256);return ee}p.prototype.slice=function(P,C){let U=this.length;P=~~P,C=C===void 0?U:~~C,P<0?(P+=U,P<0&&(P=0)):P>U&&(P=U),C<0?(C+=U,C<0&&(C=0)):C>U&&(C=U),C<P&&(C=P);let ee=this.subarray(P,C);return Object.setPrototypeOf(ee,p.prototype),ee};function b(j,P,C){if(j%1!==0||j<0)throw new RangeError("offset is not uint");if(j+P>C)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(P,C,U){P=P>>>0,C=C>>>0,U||b(P,C,this.length);let ee=this[P],Q=1,te=0;for(;++te<C&&(Q*=256);)ee+=this[P+te]*Q;return ee},p.prototype.readUintBE=p.prototype.readUIntBE=function(P,C,U){P=P>>>0,C=C>>>0,U||b(P,C,this.length);let ee=this[P+--C],Q=1;for(;C>0&&(Q*=256);)ee+=this[P+--C]*Q;return ee},p.prototype.readUint8=p.prototype.readUInt8=function(P,C){return P=P>>>0,C||b(P,1,this.length),this[P]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(P,C){return P=P>>>0,C||b(P,2,this.length),this[P]|this[P+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(P,C){return P=P>>>0,C||b(P,2,this.length),this[P]<<8|this[P+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(P,C){return P=P>>>0,C||b(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+this[P+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(P,C){return P=P>>>0,C||b(P,4,this.length),this[P]*16777216+(this[P+1]<<16|this[P+2]<<8|this[P+3])},p.prototype.readBigUInt64LE=Ne(function(P){P=P>>>0,z(P,"offset");let C=this[P],U=this[P+7];(C===void 0||U===void 0)&&F(P,this.length-8);let ee=C+this[++P]*2**8+this[++P]*2**16+this[++P]*2**24,Q=this[++P]+this[++P]*2**8+this[++P]*2**16+U*2**24;return BigInt(ee)+(BigInt(Q)<<BigInt(32))}),p.prototype.readBigUInt64BE=Ne(function(P){P=P>>>0,z(P,"offset");let C=this[P],U=this[P+7];(C===void 0||U===void 0)&&F(P,this.length-8);let ee=C*2**24+this[++P]*2**16+this[++P]*2**8+this[++P],Q=this[++P]*2**24+this[++P]*2**16+this[++P]*2**8+U;return(BigInt(ee)<<BigInt(32))+BigInt(Q)}),p.prototype.readIntLE=function(P,C,U){P=P>>>0,C=C>>>0,U||b(P,C,this.length);let ee=this[P],Q=1,te=0;for(;++te<C&&(Q*=256);)ee+=this[P+te]*Q;return Q*=128,ee>=Q&&(ee-=Math.pow(2,8*C)),ee},p.prototype.readIntBE=function(P,C,U){P=P>>>0,C=C>>>0,U||b(P,C,this.length);let ee=C,Q=1,te=this[P+--ee];for(;ee>0&&(Q*=256);)te+=this[P+--ee]*Q;return Q*=128,te>=Q&&(te-=Math.pow(2,8*C)),te},p.prototype.readInt8=function(P,C){return P=P>>>0,C||b(P,1,this.length),this[P]&128?(255-this[P]+1)*-1:this[P]},p.prototype.readInt16LE=function(P,C){P=P>>>0,C||b(P,2,this.length);let U=this[P]|this[P+1]<<8;return U&32768?U|4294901760:U},p.prototype.readInt16BE=function(P,C){P=P>>>0,C||b(P,2,this.length);let U=this[P+1]|this[P]<<8;return U&32768?U|4294901760:U},p.prototype.readInt32LE=function(P,C){return P=P>>>0,C||b(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},p.prototype.readInt32BE=function(P,C){return P=P>>>0,C||b(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},p.prototype.readBigInt64LE=Ne(function(P){P=P>>>0,z(P,"offset");let C=this[P],U=this[P+7];(C===void 0||U===void 0)&&F(P,this.length-8);let ee=this[P+4]+this[P+5]*2**8+this[P+6]*2**16+(U<<24);return(BigInt(ee)<<BigInt(32))+BigInt(C+this[++P]*2**8+this[++P]*2**16+this[++P]*2**24)}),p.prototype.readBigInt64BE=Ne(function(P){P=P>>>0,z(P,"offset");let C=this[P],U=this[P+7];(C===void 0||U===void 0)&&F(P,this.length-8);let ee=(C<<24)+this[++P]*2**16+this[++P]*2**8+this[++P];return(BigInt(ee)<<BigInt(32))+BigInt(this[++P]*2**24+this[++P]*2**16+this[++P]*2**8+U)}),p.prototype.readFloatLE=function(P,C){return P=P>>>0,C||b(P,4,this.length),r.read(this,P,!0,23,4)},p.prototype.readFloatBE=function(P,C){return P=P>>>0,C||b(P,4,this.length),r.read(this,P,!1,23,4)},p.prototype.readDoubleLE=function(P,C){return P=P>>>0,C||b(P,8,this.length),r.read(this,P,!0,52,8)},p.prototype.readDoubleBE=function(P,C){return P=P>>>0,C||b(P,8,this.length),r.read(this,P,!1,52,8)};function A(j,P,C,U,ee,Q){if(!p.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>ee||P<Q)throw new RangeError('"value" argument is out of bounds');if(C+U>j.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(P,C,U,ee){if(P=+P,C=C>>>0,U=U>>>0,!ee){let le=Math.pow(2,8*U)-1;A(this,P,C,U,le,0)}let Q=1,te=0;for(this[C]=P&255;++te<U&&(Q*=256);)this[C+te]=P/Q&255;return C+U},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(P,C,U,ee){if(P=+P,C=C>>>0,U=U>>>0,!ee){let le=Math.pow(2,8*U)-1;A(this,P,C,U,le,0)}let Q=U-1,te=1;for(this[C+Q]=P&255;--Q>=0&&(te*=256);)this[C+Q]=P/te&255;return C+U},p.prototype.writeUint8=p.prototype.writeUInt8=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,1,255,0),this[C]=P&255,C+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,2,65535,0),this[C]=P&255,this[C+1]=P>>>8,C+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,2,65535,0),this[C]=P>>>8,this[C+1]=P&255,C+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,4,4294967295,0),this[C+3]=P>>>24,this[C+2]=P>>>16,this[C+1]=P>>>8,this[C]=P&255,C+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,4,4294967295,0),this[C]=P>>>24,this[C+1]=P>>>16,this[C+2]=P>>>8,this[C+3]=P&255,C+4};function R(j,P,C,U,ee){X(P,U,ee,j,C,7);let Q=Number(P&BigInt(4294967295));j[C++]=Q,Q=Q>>8,j[C++]=Q,Q=Q>>8,j[C++]=Q,Q=Q>>8,j[C++]=Q;let te=Number(P>>BigInt(32)&BigInt(4294967295));return j[C++]=te,te=te>>8,j[C++]=te,te=te>>8,j[C++]=te,te=te>>8,j[C++]=te,C}function k(j,P,C,U,ee){X(P,U,ee,j,C,7);let Q=Number(P&BigInt(4294967295));j[C+7]=Q,Q=Q>>8,j[C+6]=Q,Q=Q>>8,j[C+5]=Q,Q=Q>>8,j[C+4]=Q;let te=Number(P>>BigInt(32)&BigInt(4294967295));return j[C+3]=te,te=te>>8,j[C+2]=te,te=te>>8,j[C+1]=te,te=te>>8,j[C]=te,C+8}p.prototype.writeBigUInt64LE=Ne(function(P,C=0){return R(this,P,C,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ne(function(P,C=0){return k(this,P,C,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(P,C,U,ee){if(P=+P,C=C>>>0,!ee){let Ie=Math.pow(2,8*U-1);A(this,P,C,U,Ie-1,-Ie)}let Q=0,te=1,le=0;for(this[C]=P&255;++Q<U&&(te*=256);)P<0&&le===0&&this[C+Q-1]!==0&&(le=1),this[C+Q]=(P/te>>0)-le&255;return C+U},p.prototype.writeIntBE=function(P,C,U,ee){if(P=+P,C=C>>>0,!ee){let Ie=Math.pow(2,8*U-1);A(this,P,C,U,Ie-1,-Ie)}let Q=U-1,te=1,le=0;for(this[C+Q]=P&255;--Q>=0&&(te*=256);)P<0&&le===0&&this[C+Q+1]!==0&&(le=1),this[C+Q]=(P/te>>0)-le&255;return C+U},p.prototype.writeInt8=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,1,127,-128),P<0&&(P=255+P+1),this[C]=P&255,C+1},p.prototype.writeInt16LE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,2,32767,-32768),this[C]=P&255,this[C+1]=P>>>8,C+2},p.prototype.writeInt16BE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,2,32767,-32768),this[C]=P>>>8,this[C+1]=P&255,C+2},p.prototype.writeInt32LE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,4,2147483647,-2147483648),this[C]=P&255,this[C+1]=P>>>8,this[C+2]=P>>>16,this[C+3]=P>>>24,C+4},p.prototype.writeInt32BE=function(P,C,U){return P=+P,C=C>>>0,U||A(this,P,C,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[C]=P>>>24,this[C+1]=P>>>16,this[C+2]=P>>>8,this[C+3]=P&255,C+4},p.prototype.writeBigInt64LE=Ne(function(P,C=0){return R(this,P,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ne(function(P,C=0){return k(this,P,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q(j,P,C,U,ee,Q){if(C+U>j.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function Z(j,P,C,U,ee){return P=+P,C=C>>>0,ee||q(j,P,C,4),r.write(j,P,C,U,23,4),C+4}p.prototype.writeFloatLE=function(P,C,U){return Z(this,P,C,!0,U)},p.prototype.writeFloatBE=function(P,C,U){return Z(this,P,C,!1,U)};function ne(j,P,C,U,ee){return P=+P,C=C>>>0,ee||q(j,P,C,8),r.write(j,P,C,U,52,8),C+8}p.prototype.writeDoubleLE=function(P,C,U){return ne(this,P,C,!0,U)},p.prototype.writeDoubleBE=function(P,C,U){return ne(this,P,C,!1,U)},p.prototype.copy=function(P,C,U,ee){if(!p.isBuffer(P))throw new TypeError("argument should be a Buffer");if(U||(U=0),!ee&&ee!==0&&(ee=this.length),C>=P.length&&(C=P.length),C||(C=0),ee>0&&ee<U&&(ee=U),ee===U||P.length===0||this.length===0)return 0;if(C<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),P.length-C<ee-U&&(ee=P.length-C+U);let Q=ee-U;return this===P&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(C,U,ee):Uint8Array.prototype.set.call(P,this.subarray(U,ee),C),Q},p.prototype.fill=function(P,C,U,ee){if(typeof P=="string"){if(typeof C=="string"?(ee=C,C=0,U=this.length):typeof U=="string"&&(ee=U,U=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!p.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(P.length===1){let te=P.charCodeAt(0);(ee==="utf8"&&te<128||ee==="latin1")&&(P=te)}}else typeof P=="number"?P=P&255:typeof P=="boolean"&&(P=Number(P));if(C<0||this.length<C||this.length<U)throw new RangeError("Out of range index");if(U<=C)return this;C=C>>>0,U=U===void 0?this.length:U>>>0,P||(P=0);let Q;if(typeof P=="number")for(Q=C;Q<U;++Q)this[Q]=P;else{let te=p.isBuffer(P)?P:p.from(P,ee),le=te.length;if(le===0)throw new TypeError('The value "'+P+'" is invalid for argument "value"');for(Q=0;Q<U-C;++Q)this[Q+C]=te[Q%le]}return this};let G={};function D(j,P,C){G[j]=class extends C{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${j}]`,this.stack,delete this.name}get code(){return j}set code(ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ee,writable:!0})}toString(){return`${this.name} [${j}]: ${this.message}`}}}D("ERR_BUFFER_OUT_OF_BOUNDS",function(j){return j?`${j} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),D("ERR_INVALID_ARG_TYPE",function(j,P){return`The "${j}" argument must be of type number. Received type ${typeof P}`},TypeError),D("ERR_OUT_OF_RANGE",function(j,P,C){let U=`The value of "${j}" is out of range.`,ee=C;return Number.isInteger(C)&&Math.abs(C)>2**32?ee=W(String(C)):typeof C=="bigint"&&(ee=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(ee=W(ee)),ee+="n"),U+=` It must be ${P}. Received ${ee}`,U},RangeError);function W(j){let P="",C=j.length,U=j[0]==="-"?1:0;for(;C>=U+4;C-=3)P=`_${j.slice(C-3,C)}${P}`;return`${j.slice(0,C)}${P}`}function ie(j,P,C){z(P,"offset"),(j[P]===void 0||j[P+C]===void 0)&&F(P,j.length-(C+1))}function X(j,P,C,U,ee,Q){if(j>C||j<P){let te=typeof P=="bigint"?"n":"",le;throw P===0||P===BigInt(0)?le=`>= 0${te} and < 2${te} ** ${(Q+1)*8}${te}`:le=`>= -(2${te} ** ${(Q+1)*8-1}${te}) and < 2 ** ${(Q+1)*8-1}${te}`,new G.ERR_OUT_OF_RANGE("value",le,j)}ie(U,ee,Q)}function z(j,P){if(typeof j!="number")throw new G.ERR_INVALID_ARG_TYPE(P,"number",j)}function F(j,P,C){throw Math.floor(j)!==j?(z(j,C),new G.ERR_OUT_OF_RANGE("offset","an integer",j)):P<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,j)}let Y=/[^+/0-9A-Za-z-_]/g;function ae(j){if(j=j.split("=")[0],j=j.trim().replace(Y,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function de(j,P){P=P||1/0;let C,U=j.length,ee=null,Q=[];for(let te=0;te<U;++te){if(C=j.charCodeAt(te),C>55295&&C<57344){if(!ee){if(C>56319){(P-=3)>-1&&Q.push(239,191,189);continue}else if(te+1===U){(P-=3)>-1&&Q.push(239,191,189);continue}ee=C;continue}if(C<56320){(P-=3)>-1&&Q.push(239,191,189),ee=C;continue}C=(ee-55296<<10|C-56320)+65536}else ee&&(P-=3)>-1&&Q.push(239,191,189);if(ee=null,C<128){if((P-=1)<0)break;Q.push(C)}else if(C<2048){if((P-=2)<0)break;Q.push(C>>6|192,C&63|128)}else if(C<65536){if((P-=3)<0)break;Q.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((P-=4)<0)break;Q.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return Q}function re(j){let P=[];for(let C=0;C<j.length;++C)P.push(j.charCodeAt(C)&255);return P}function fe(j,P){let C,U,ee,Q=[];for(let te=0;te<j.length&&!((P-=2)<0);++te)C=j.charCodeAt(te),U=C>>8,ee=C%256,Q.push(ee),Q.push(U);return Q}function ye(j){return t.toByteArray(ae(j))}function he(j,P,C,U){let ee;for(ee=0;ee<U&&!(ee+C>=P.length||ee>=j.length);++ee)P[ee+C]=j[ee];return ee}function Re(j,P){return j instanceof P||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===P.name}function Be(j){return j!==j}let ge=function(){let j="0123456789abcdef",P=new Array(256);for(let C=0;C<16;++C){let U=C*16;for(let ee=0;ee<16;++ee)P[U+ee]=j[C]+j[ee]}return P}();function Ne(j){return typeof BigInt>"u"?qe:j}function qe(){throw new Error("BigInt not supported")}return E2}var m4,Vce,VM,Yce,E2,Jce,l1=Sn(()=>{"use strict";we();Me();_e();m4={},Vce=!1;VM={},Yce=!1;E2={},Jce=!1});var $c={};Uf($c,{Buffer:()=>ze,INSPECT_MAX_BYTES:()=>Oet,default:()=>Xp,kMaxLength:()=>Net});var Xp,ze,Oet,Net,nh=Sn(()=>{"use strict";we();Me();_e();l1();Xp=Oi();Xp.Buffer;Xp.SlowBuffer;Xp.INSPECT_MAX_BYTES;Xp.kMaxLength;ze=Xp.Buffer,Oet=Xp.INSPECT_MAX_BYTES,Net=Xp.kMaxLength});var Me=Sn(()=>{"use strict";nh()});var Xce=Ut(BL=>{"use strict";we();Me();_e();Object.defineProperty(BL,"__esModule",{value:!0});function Cet(t){var r=4,n=t.length,l=n%r;if(!l)return t;var i=n,d=r-l,p=n+d,v=ze.alloc(p);for(v.write(t);d--;)v.write("=",i++);return v.toString()}BL.default=Cet});var ede=Ut(NL=>{"use strict";we();Me();_e();Object.defineProperty(NL,"__esModule",{value:!0});var Let=Xce();function Qce(t,r){return r===void 0&&(r="utf8"),ze.isBuffer(t)?PL(t.toString("base64")):PL(ze.from(t,r).toString("base64"))}function Det(t,r){return r===void 0&&(r="utf8"),ze.from(OL(t),"base64").toString(r)}function OL(t){return t=t.toString(),Let.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function PL(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $et(t){return ze.from(OL(t),"base64")}var C6=Qce;C6.encode=Qce;C6.decode=Det;C6.toBase64=OL;C6.fromBase64=PL;C6.toBuffer=$et;NL.default=C6});var Cu=Ut((izt,YM)=>{"use strict";we();Me();_e();YM.exports=ede().default;YM.exports.default=YM.exports});function Ui(){if(tde)return v4;tde=!0;var t=Oi(),r=t.Buffer;function n(i,d){for(var p in i)d[p]=i[p]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?v4=t:(n(t,v4),v4.Buffer=l);function l(i,d,p){return r(i,d,p)}return l.prototype=Object.create(r.prototype),n(r,l),l.from=function(i,d,p){if(typeof i=="number")throw new TypeError("Argument must not be a number");return r(i,d,p)},l.alloc=function(i,d,p){if(typeof i!="number")throw new TypeError("Argument must be a number");var v=r(i);return d!==void 0?typeof p=="string"?v.fill(d,p):v.fill(d):v.fill(0),v},l.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r(i)},l.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(i)},v4}function qet(){if(rde)return CL;rde=!0;var t=Ui().Buffer,r=t.isEncoding||function(B){switch(B=""+B,B&&B.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(B){if(!B)return"utf8";for(var O;;)switch(B){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return B;default:if(O)return;B=(""+B).toLowerCase(),O=!0}}function l(B){var O=n(B);if(typeof O!="string"&&(t.isEncoding===r||!r(B)))throw new Error("Unknown encoding: "+B);return O||B}CL.StringDecoder=i;function i(B){this.encoding=l(B);var O;switch(this.encoding){case"utf16le":this.text=S,this.end=M,O=4;break;case"utf8":this.fillLast=_,O=4;break;case"base64":this.text=x,this.end=E,O=3;break;default:this.write=T,this.end=I;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(O)}i.prototype.write=function(B){if(B.length===0)return"";var O,N;if(this.lastNeed){if(O=this.fillLast(B),O===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<B.length?O?O+this.text(B,N):this.text(B,N):O||""},i.prototype.end=w,i.prototype.text=y,i.prototype.fillLast=function(B){if(this.lastNeed<=B.length)return B.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);B.copy(this.lastChar,this.lastTotal-this.lastNeed,0,B.length),this.lastNeed-=B.length};function d(B){return B<=127?0:B>>5===6?2:B>>4===14?3:B>>3===30?4:B>>6===2?-1:-2}function p(B,O,N){var H=O.length-1;if(H<N)return 0;var K=d(O[H]);return K>=0?(K>0&&(B.lastNeed=K-1),K):--H<N||K===-2?0:(K=d(O[H]),K>=0?(K>0&&(B.lastNeed=K-2),K):--H<N||K===-2?0:(K=d(O[H]),K>=0?(K>0&&(K===2?K=0:B.lastNeed=K-3),K):0))}function v(B,O,N){if((O[0]&192)!==128)return B.lastNeed=0,"\uFFFD";if(B.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return B.lastNeed=1,"\uFFFD";if(B.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return B.lastNeed=2,"\uFFFD"}}function _(B){var O=this.lastTotal-this.lastNeed,N=v(this,B);if(N!==void 0)return N;if(this.lastNeed<=B.length)return B.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);B.copy(this.lastChar,O,0,B.length),this.lastNeed-=B.length}function y(B,O){var N=p(this,B,O);if(!this.lastNeed)return B.toString("utf8",O);this.lastTotal=N;var H=B.length-(N-this.lastNeed);return B.copy(this.lastChar,0,H),B.toString("utf8",O,H)}function w(B){var O=B&&B.length?this.write(B):"";return this.lastNeed?O+"\uFFFD":O}function S(B,O){if((B.length-O)%2===0){var N=B.toString("utf16le",O);if(N){var H=N.charCodeAt(N.length-1);if(H>=55296&&H<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=B[B.length-1],B.toString("utf16le",O,B.length-1)}function M(B){var O=B&&B.length?this.write(B):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,N)}return O}function x(B,O){var N=(B.length-O)%3;return N===0?B.toString("base64",O):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=B[B.length-1]:(this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1]),B.toString("base64",O,B.length-N))}function E(B){var O=B&&B.length?this.write(B):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function T(B){return B.toString(this.encoding)}function I(B){return B&&B.length?this.write(B):""}return CL}var v4,tde,CL,rde,Lu,ide,b4=Sn(()=>{"use strict";we();Me();_e();l1();v4={},tde=!1;CL={},rde=!1;Lu=qet();Lu.StringDecoder;ide=Lu.StringDecoder});function qL(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function Uet(){!L6||!A2||(L6=!1,A2.length?c1=A2.concat(c1):JM=-1,c1.length&&nde())}function nde(){if(!L6){var t=setTimeout(Uet,0);L6=!0;for(var r=c1.length;r;){for(A2=c1,c1=[];++JM<r;)A2&&A2[JM].run();JM=-1,r=c1.length}A2=null,L6=!1,clearTimeout(t)}}function jet(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];c1.push(new ade(t,r)),c1.length===1&&!L6&&setTimeout(nde,0)}function ade(t,r){this.fun=t,this.array=r}function mf(){}function ntt(t){qL("_linkedBinding")}function ftt(t){qL("dlopen")}function htt(){return[]}function utt(){return[]}function ytt(t,r){if(!t)throw new Error(r||"assertion error")}function Stt(){return!1}function Utt(){return Qp.now()/1e3}function $L(t){var r=Math.floor((Date.now()-Qp.now())*.001),n=Qp.now()*.001,l=Math.floor(n)+r,i=Math.floor(n%1*1e9);return t&&(l=l-t[0],i=i-t[1],i<0&&(l--,i+=DL)),[l,i]}function em(){return pn}function Xtt(t){return[]}var c1,L6,A2,JM,Fet,zet,Het,Ket,Zet,Wet,Get,Vet,Yet,Jet,Xet,Qet,ett,ttt,rtt,itt,att,ott,stt,ltt,ctt,UL,dtt,ptt,mtt,vtt,btt,gtt,wtt,_tt,Mtt,xtt,Ett,Att,Rtt,Ttt,Itt,ktt,Btt,Ptt,Ott,Ntt,Ctt,Ltt,Dtt,$tt,qtt,Qp,LL,DL,jtt,Ftt,ztt,Htt,Ktt,Ztt,Wtt,Gtt,Vtt,Ytt,Jtt,pn,qc=Sn(()=>{"use strict";we();Me();_e();c1=[],L6=!1,JM=-1;ade.prototype.run=function(){this.fun.apply(null,this.array)};Fet="browser",zet="x64",Het="browser",Ket={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Zet=["/usr/bin/node"],Wet=[],Get="v16.8.0",Vet={},Yet=function(t,r){console.warn((r?r+": ":"")+t)},Jet=function(t){qL("binding")},Xet=function(t){return 0},Qet=function(){return"/"},ett=function(t){},ttt={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};rtt=mf,itt=[];att={},ott=!1,stt={};ltt=mf,ctt=mf,UL=function(){return{}},dtt=UL,ptt=UL,mtt=mf,vtt=mf,btt=mf,gtt={};wtt={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_tt=mf,Mtt=mf;xtt=mf,Ett=mf,Att=mf,Rtt=mf,Ttt=mf,Itt=void 0,ktt=void 0,Btt=void 0,Ptt=mf,Ott=2,Ntt=1,Ctt="/bin/usr/node",Ltt=9229,Dtt="node",$tt=[],qtt=mf,Qp={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Qp.now===void 0&&(LL=Date.now(),Qp.timing&&Qp.timing.navigationStart&&(LL=Qp.timing.navigationStart),Qp.now=()=>Date.now()-LL);DL=1e9;$L.bigint=function(t){var r=$L(t);return typeof BigInt>"u"?r[0]*DL+r[1]:BigInt(r[0]*DL)+BigInt(r[1])};jtt=10,Ftt={},ztt=0;Htt=em,Ktt=em,Ztt=em,Wtt=em,Gtt=em,Vtt=mf,Ytt=em,Jtt=em;pn={version:Get,versions:Vet,arch:zet,platform:Het,release:ttt,_rawDebug:rtt,moduleLoadList:itt,binding:Jet,_linkedBinding:ntt,_events:Ftt,_eventsCount:ztt,_maxListeners:jtt,on:em,addListener:Htt,once:Ktt,off:Ztt,removeListener:Wtt,removeAllListeners:Gtt,emit:Vtt,prependListener:Ytt,prependOnceListener:Jtt,listeners:Xtt,domain:att,_exiting:ott,config:stt,dlopen:ftt,uptime:Utt,_getActiveRequests:htt,_getActiveHandles:utt,reallyExit:ltt,_kill:ctt,cpuUsage:UL,resourceUsage:dtt,memoryUsage:ptt,kill:mtt,exit:vtt,openStdin:btt,allowedNodeEnvironmentFlags:gtt,assert:ytt,features:wtt,_fatalExceptions:_tt,setUncaughtExceptionCaptureCallback:Mtt,hasUncaughtExceptionCaptureCallback:Stt,emitWarning:Yet,nextTick:jet,_tickCallback:xtt,_debugProcess:Ett,_debugEnd:Att,_startProfilerIdleNotifier:Rtt,_stopProfilerIdleNotifier:Ttt,stdout:Itt,stdin:Btt,stderr:ktt,abort:Ptt,umask:Xet,chdir:ett,cwd:Qet,env:Ket,title:Fet,argv:Zet,execArgv:Wet,pid:Ott,ppid:Ntt,execPath:Ctt,debugPort:Ltt,hrtime:$L,argv0:Dtt,_preload_modules:$tt,setSourceMapsEnabled:qtt}});function Xr(){return ode||(ode=!0,typeof Object.create=="function"?XM=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:XM=function(r,n){if(n){r.super_=n;var l=function(){};l.prototype=n.prototype,r.prototype=new l,r.prototype.constructor=r}}),XM}var XM,ode,g4=Sn(()=>{"use strict";we();Me();_e();XM={},ode=!1});function _a(){_a.init.call(this)}function QM(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function vde(t){return t._maxListeners===void 0?_a.defaultMaxListeners:t._maxListeners}function ude(t,r,n,l){var i,d,p,v;if(QM(n),(d=t._events)===void 0?(d=t._events=Object.create(null),t._eventsCount=0):(d.newListener!==void 0&&(t.emit("newListener",r,n.listener?n.listener:n),d=t._events),p=d[r]),p===void 0)p=d[r]=n,++t._eventsCount;else if(typeof p=="function"?p=d[r]=l?[n,p]:[p,n]:l?p.unshift(n):p.push(n),(i=vde(t))>0&&p.length>i&&!p.warned){p.warned=!0;var _=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");_.name="MaxListenersExceededWarning",_.emitter=t,_.type=r,_.count=p.length,v=_,console&&console.warn&&console.warn(v)}return t}function Qtt(){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 lde(t,r,n){var l={fired:!1,wrapFn:void 0,target:t,type:r,listener:n},i=Qtt.bind(l);return i.listener=n,l.wrapFn=i,i}function cde(t,r,n){var l=t._events;if(l===void 0)return[];var i=l[r];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(d){for(var p=new Array(d.length),v=0;v<p.length;++v)p[v]=d[v].listener||d[v];return p}(i):bde(i,i.length)}function dde(t){var r=this._events;if(r!==void 0){var n=r[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}function bde(t,r){for(var n=new Array(r),l=0;l<r;++l)n[l]=t[l];return n}var pde,mde,D6,sde,fde,hde,Un,d1=Sn(()=>{"use strict";we();Me();_e();D6=typeof Reflect=="object"?Reflect:null,sde=D6&&typeof D6.apply=="function"?D6.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)};mde=D6&&typeof D6.ownKeys=="function"?D6.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};fde=Number.isNaN||function(t){return t!=t};pde=_a,_a.EventEmitter=_a,_a.prototype._events=void 0,_a.prototype._eventsCount=0,_a.prototype._maxListeners=void 0;hde=10;Object.defineProperty(_a,"defaultMaxListeners",{enumerable:!0,get:function(){return hde},set:function(t){if(typeof t!="number"||t<0||fde(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");hde=t}}),_a.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},_a.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||fde(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},_a.prototype.getMaxListeners=function(){return vde(this)},_a.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var l=t==="error",i=this._events;if(i!==void 0)l=l&&i.error===void 0;else if(!l)return!1;if(l){var d;if(r.length>0&&(d=r[0]),d instanceof Error)throw d;var p=new Error("Unhandled error."+(d?" ("+d.message+")":""));throw p.context=d,p}var v=i[t];if(v===void 0)return!1;if(typeof v=="function")sde(v,this,r);else{var _=v.length,y=bde(v,_);for(n=0;n<_;++n)sde(y[n],this,r)}return!0},_a.prototype.addListener=function(t,r){return ude(this,t,r,!1)},_a.prototype.on=_a.prototype.addListener,_a.prototype.prependListener=function(t,r){return ude(this,t,r,!0)},_a.prototype.once=function(t,r){return QM(r),this.on(t,lde(this,t,r)),this},_a.prototype.prependOnceListener=function(t,r){return QM(r),this.prependListener(t,lde(this,t,r)),this},_a.prototype.removeListener=function(t,r){var n,l,i,d,p;if(QM(r),(l=this._events)===void 0)return this;if((n=l[t])===void 0)return this;if(n===r||n.listener===r)--this._eventsCount==0?this._events=Object.create(null):(delete l[t],l.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,d=n.length-1;d>=0;d--)if(n[d]===r||n[d].listener===r){p=n[d].listener,i=d;break}if(i<0)return this;i===0?n.shift():function(v,_){for(;_+1<v.length;_++)v[_]=v[_+1];v.pop()}(n,i),n.length===1&&(l[t]=n[0]),l.removeListener!==void 0&&this.emit("removeListener",t,p||r)}return this},_a.prototype.off=_a.prototype.removeListener,_a.prototype.removeAllListeners=function(t){var r,n,l;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var i,d=Object.keys(n);for(l=0;l<d.length;++l)(i=d[l])!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(r=n[t])=="function")this.removeListener(t,r);else if(r!==void 0)for(l=r.length-1;l>=0;l--)this.removeListener(t,r[l]);return this},_a.prototype.listeners=function(t){return cde(this,t,!0)},_a.prototype.rawListeners=function(t){return cde(this,t,!1)},_a.listenerCount=function(t,r){return typeof t.listenerCount=="function"?t.listenerCount(r):dde.call(t,r)},_a.prototype.listenerCount=dde,_a.prototype.eventNames=function(){return this._eventsCount>0?mde(this._events):[]};Un=pde;Un.EventEmitter;Un.defaultMaxListeners;Un.init;Un.listenerCount;Un.EventEmitter;Un.defaultMaxListeners;Un.init;Un.listenerCount});var $6=Sn(()=>{"use strict";we();Me();_e();d1();Un.once=function(t,r){return new Promise((n,l)=>{function i(...p){d!==void 0&&t.removeListener("error",d),n(p)}let d;r!=="error"&&(d=p=>{t.removeListener(name,i),l(p)},t.once("error",d)),t.once(r,i)})};Un.on=function(t,r){let n=[],l=[],i=null,d=!1,p={async next(){let y=n.shift();if(y)return createIterResult(y,!1);if(i){let w=Promise.reject(i);return i=null,w}return d?createIterResult(void 0,!0):new Promise((w,S)=>l.push({resolve:w,reject:S}))},async return(){t.removeListener(r,v),t.removeListener("error",_),d=!0;for(let y of l)y.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(y){i=y,