107 lines
521 KiB
JavaScript
107 lines
521 KiB
JavaScript
var Tabby=(()=>{var L_=Object.create;var Ao=Object.defineProperty;var k_=Object.getOwnPropertyDescriptor;var F_=Object.getOwnPropertyNames;var P_=Object.getPrototypeOf,U_=Object.prototype.hasOwnProperty;var D_=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ro=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var ei=(e,t)=>()=>(e&&(t=e(e=0)),t);var He=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ch=(e,t)=>{for(var r in t)Ao(e,r,{get:t[r],enumerable:!0})},Nh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of F_(t))!U_.call(e,o)&&o!==r&&Ao(e,o,{get:()=>t[o],enumerable:!(n=k_(t,o))||n.enumerable});return e};var Ln=(e,t,r)=>(r=e!=null?L_(P_(e)):{},Nh(t||!e||!e.__esModule?Ao(r,"default",{value:e,enumerable:!0}):r,e)),M_=e=>Nh(Ao({},"__esModule",{value:!0}),e);var at=(e,t,r)=>(D_(e,typeof t!="symbol"?t+"":t,r),r),ku=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),it=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ge=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xa=(e,t,r,n)=>({set _(o){Ge(e,t,o,r)},get _(){return J(e,t,n)}}),tt=(e,t,r)=>(ku(e,t,"access private method"),r);var se,$=ei(()=>{se=globalThis});var q=ei(()=>{});var z=ei(()=>{});var ce={};Ch(ce,{_debugEnd:()=>bp,_debugProcess:()=>wp,_events:()=>Fp,_eventsCount:()=>Pp,_exiting:()=>ep,_fatalExceptions:()=>yp,_getActiveHandles:()=>ip,_getActiveRequests:()=>np,_kill:()=>ap,_linkedBinding:()=>Jh,_maxListeners:()=>kp,_preload_modules:()=>Np,_rawDebug:()=>Kh,_startProfilerIdleNotifier:()=>_p,_stopProfilerIdleNotifier:()=>Ep,_tickCallback:()=>vp,abort:()=>Tp,addListener:()=>Up,allowedNodeEnvironmentFlags:()=>hp,arch:()=>Uh,argv:()=>jh,argv0:()=>Cp,assert:()=>pp,binding:()=>Hh,chdir:()=>Gh,config:()=>tp,cpuUsage:()=>Na,cwd:()=>Vh,debugPort:()=>Bp,default:()=>Zp,dlopen:()=>rp,domain:()=>Qh,emit:()=>qp,emitWarning:()=>Wh,env:()=>Mh,execArgv:()=>$h,execPath:()=>xp,exit:()=>lp,features:()=>dp,hasUncaughtExceptionCaptureCallback:()=>mp,hrtime:()=>Ca,kill:()=>fp,listeners:()=>Hp,memoryUsage:()=>up,moduleLoadList:()=>Xh,nextTick:()=>kh,off:()=>Mp,on:()=>yn,once:()=>Dp,openStdin:()=>cp,pid:()=>Op,platform:()=>Dh,ppid:()=>Ip,prependListener:()=>zp,prependOnceListener:()=>Wp,reallyExit:()=>op,release:()=>Yh,removeAllListeners:()=>$p,removeListener:()=>jp,resourceUsage:()=>sp,setSourceMapsEnabled:()=>Lp,setUncaughtExceptionCaptureCallback:()=>gp,stderr:()=>Ap,stdin:()=>Rp,stdout:()=>Sp,title:()=>Ph,umask:()=>Zh,uptime:()=>To,version:()=>qh,versions:()=>zh});function Uu(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function j_(){!ki||!ti||(ki=!1,ti.length?dn=ti.concat(dn):Ba=-1,dn.length&&Lh())}function Lh(){if(!ki){var e=setTimeout(j_,0);ki=!0;for(var t=dn.length;t;){for(ti=dn,dn=[];++Ba<t;)ti&&ti[Ba].run();Ba=-1,t=dn.length}ti=null,ki=!1,clearTimeout(e)}}function kh(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(new Fh(e,t)),dn.length===1&&!ki&&setTimeout(Lh,0)}function Fh(e,t){this.fun=e,this.array=t}function er(){}function Jh(e){Uu("_linkedBinding")}function rp(e){Uu("dlopen")}function np(){return[]}function ip(){return[]}function pp(e,t){if(!e)throw new Error(t||"assertion error")}function mp(){return!1}function To(){return kn.now()/1e3}function Ca(e){var t=Math.floor((Date.now()-kn.now())*.001),r=kn.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);return e&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=Pu)),[n,o]}function yn(){return Zp}function Hp(e){return[]}var dn,ki,ti,Ba,Ph,Uh,Dh,Mh,jh,$h,qh,zh,Wh,Hh,Zh,Vh,Gh,Yh,Kh,Xh,Qh,ep,tp,op,ap,Na,sp,up,fp,lp,cp,hp,dp,yp,gp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Np,Lp,kn,Fu,Pu,kp,Fp,Pp,Up,Dp,Mp,jp,$p,qp,zp,Wp,Zp,La=ei(()=>{$();q();z();H();W();dn=[],ki=!1,Ba=-1;Fh.prototype.run=function(){this.fun.apply(null,this.array)};Ph="browser",Uh="x64",Dh="browser",Mh={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},jh=["/usr/bin/node"],$h=[],qh="v16.8.0",zh={},Wh=function(e,t){console.warn((t?t+": ":"")+e)},Hh=function(e){Uu("binding")},Zh=function(e){return 0},Vh=function(){return"/"},Gh=function(e){},Yh={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Kh=er,Xh=[];Qh={},ep=!1,tp={};op=er,ap=er,Na=function(){return{}},sp=Na,up=Na,fp=er,lp=er,cp=er,hp={};dp={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},yp=er,gp=er;vp=er,wp=er,bp=er,_p=er,Ep=er,Sp=void 0,Ap=void 0,Rp=void 0,Tp=er,Op=2,Ip=1,xp="/bin/usr/node",Bp=9229,Cp="node",Np=[],Lp=er,kn={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};kn.now===void 0&&(Fu=Date.now(),kn.timing&&kn.timing.navigationStart&&(Fu=kn.timing.navigationStart),kn.now=()=>Date.now()-Fu);Pu=1e9;Ca.bigint=function(e){var t=Ca(e);return typeof BigInt>"u"?t[0]*Pu+t[1]:BigInt(t[0]*Pu)+BigInt(t[1])};kp=10,Fp={},Pp=0;Up=yn,Dp=yn,Mp=yn,jp=yn,$p=yn,qp=er,zp=yn,Wp=yn;Zp={version:qh,versions:zh,arch:Uh,platform:Dh,release:Yh,_rawDebug:Kh,moduleLoadList:Xh,binding:Hh,_linkedBinding:Jh,_events:Fp,_eventsCount:Pp,_maxListeners:kp,on:yn,addListener:Up,once:Dp,off:Mp,removeListener:jp,removeAllListeners:$p,emit:qp,prependListener:zp,prependOnceListener:Wp,listeners:Hp,domain:Qh,_exiting:ep,config:tp,dlopen:rp,uptime:To,_getActiveRequests:np,_getActiveHandles:ip,reallyExit:op,_kill:ap,cpuUsage:Na,resourceUsage:sp,memoryUsage:up,kill:fp,exit:lp,openStdin:cp,allowedNodeEnvironmentFlags:hp,assert:pp,features:dp,_fatalExceptions:yp,setUncaughtExceptionCaptureCallback:gp,hasUncaughtExceptionCaptureCallback:mp,emitWarning:Wh,nextTick:kh,_tickCallback:vp,_debugProcess:wp,_debugEnd:bp,_startProfilerIdleNotifier:_p,_stopProfilerIdleNotifier:Ep,stdout:Sp,stdin:Rp,stderr:Ap,abort:Tp,umask:Zh,chdir:Gh,cwd:Vh,env:Mh,title:Ph,argv:jh,execArgv:$h,pid:Op,ppid:Ip,execPath:xp,debugPort:Bp,hrtime:Ca,argv0:Cp,_preload_modules:Np,setSourceMapsEnabled:Lp}});var W=ei(()=>{La()});function $_(){if(Vp)return Oo;Vp=!0,Oo.byteLength=f,Oo.toByteArray=c,Oo.fromByteArray=v;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(_){var h=_.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=_.indexOf("=");w===-1&&(w=h);var S=w===h?0:4-w%4;return[w,S]}function f(_){var h=i(_),w=h[0],S=h[1];return(w+S)*3/4-S}function l(_,h,w){return(h+w)*3/4-w}function c(_){var h,w=i(_),S=w[0],T=w[1],C=new r(l(_,S,T)),M=0,D=T>0?S-4:S,V;for(V=0;V<D;V+=4)h=t[_.charCodeAt(V)]<<18|t[_.charCodeAt(V+1)]<<12|t[_.charCodeAt(V+2)]<<6|t[_.charCodeAt(V+3)],C[M++]=h>>16&255,C[M++]=h>>8&255,C[M++]=h&255;return T===2&&(h=t[_.charCodeAt(V)]<<2|t[_.charCodeAt(V+1)]>>4,C[M++]=h&255),T===1&&(h=t[_.charCodeAt(V)]<<10|t[_.charCodeAt(V+1)]<<4|t[_.charCodeAt(V+2)]>>2,C[M++]=h>>8&255,C[M++]=h&255),C}function d(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,h,w){for(var S,T=[],C=h;C<w;C+=3)S=(_[C]<<16&16711680)+(_[C+1]<<8&65280)+(_[C+2]&255),T.push(d(S));return T.join("")}function v(_){for(var h,w=_.length,S=w%3,T=[],C=16383,M=0,D=w-S;M<D;M+=C)T.push(y(_,M,M+C>D?D:M+C));return S===1?(h=_[w-1],T.push(e[h>>2]+e[h<<4&63]+"==")):S===2&&(h=(_[w-2]<<8)+_[w-1],T.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),T.join("")}return Oo}function q_(){if(Gp)return ka;Gp=!0;return ka.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)},ka.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128},ka}function z_(){if(Yp)return ri;Yp=!0;let e=$_(),t=q_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ri.Buffer=i,ri.SlowBuffer=T,ri.INSPECT_MAX_BYTES=50;let n=2147483647;ri.kMaxLength=n,i.TYPED_ARRAY_SUPPORT=o(),!i.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 o(){try{let p=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(p,s),p.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(p){if(p>n)throw new RangeError('The value "'+p+'" is invalid for option "size"');let s=new Uint8Array(p);return Object.setPrototypeOf(s,i.prototype),s}function i(p,s,u){if(typeof p=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(p)}return f(p,s,u)}i.poolSize=8192;function f(p,s,u){if(typeof p=="string")return y(p,s);if(ArrayBuffer.isView(p))return _(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(et(p,ArrayBuffer)||p&&et(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(et(p,SharedArrayBuffer)||p&&et(p.buffer,SharedArrayBuffer)))return h(p,s,u);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return i.from(b,s,u);let L=w(p);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return i.from(p[Symbol.toPrimitive]("string"),s,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}i.from=function(p,s,u){return f(p,s,u)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function l(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 c(p,s,u){return l(p),p<=0?a(p):s!==void 0?typeof u=="string"?a(p).fill(s,u):a(p).fill(s):a(p)}i.alloc=function(p,s,u){return c(p,s,u)};function d(p){return l(p),a(p<0?0:S(p)|0)}i.allocUnsafe=function(p){return d(p)},i.allocUnsafeSlow=function(p){return d(p)};function y(p,s){if((typeof s!="string"||s==="")&&(s="utf8"),!i.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let u=C(p,s)|0,b=a(u),L=b.write(p,s);return L!==u&&(b=b.slice(0,L)),b}function v(p){let s=p.length<0?0:S(p.length)|0,u=a(s);for(let b=0;b<s;b+=1)u[b]=p[b]&255;return u}function _(p){if(et(p,Uint8Array)){let s=new Uint8Array(p);return h(s.buffer,s.byteOffset,s.byteLength)}return v(p)}function h(p,s,u){if(s<0||p.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<s+(u||0))throw new RangeError('"length" is outside of buffer bounds');let b;return s===void 0&&u===void 0?b=new Uint8Array(p):u===void 0?b=new Uint8Array(p,s):b=new Uint8Array(p,s,u),Object.setPrototypeOf(b,i.prototype),b}function w(p){if(i.isBuffer(p)){let s=S(p.length)|0,u=a(s);return u.length===0||p.copy(u,0,0,s),u}if(p.length!==void 0)return typeof p.length!="number"||bt(p.length)?a(0):v(p);if(p.type==="Buffer"&&Array.isArray(p.data))return v(p.data)}function S(p){if(p>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return p|0}function T(p){return+p!=p&&(p=0),i.alloc(+p)}i.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==i.prototype},i.compare=function(s,u){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),et(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(s)||!i.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===u)return 0;let b=s.length,L=u.length;for(let m=0,j=Math.min(b,L);m<j;++m)if(s[m]!==u[m]){b=s[m],L=u[m];break}return b<L?-1:L<b?1:0},i.isEncoding=function(s){switch(String(s).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}},i.concat=function(s,u){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return i.alloc(0);let b;if(u===void 0)for(u=0,b=0;b<s.length;++b)u+=s[b].length;let L=i.allocUnsafe(u),m=0;for(b=0;b<s.length;++b){let j=s[b];if(et(j,Uint8Array))m+j.length>L.length?(i.isBuffer(j)||(j=i.from(j)),j.copy(L,m)):Uint8Array.prototype.set.call(L,j,m);else if(i.isBuffer(j))j.copy(L,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=j.length}return L};function C(p,s){if(i.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||et(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 u=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;let L=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return De(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ot(p).length;default:if(L)return b?-1:De(p).length;s=(""+s).toLowerCase(),L=!0}}i.byteLength=C;function M(p,s,u){let b=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,s>>>=0,u<=s))return"";for(p||(p="utf8");;)switch(p){case"hex":return te(this,s,u);case"utf8":case"utf-8":return re(this,s,u);case"ascii":return Ne(this,s,u);case"latin1":case"binary":return ne(this,s,u);case"base64":return K(this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,s,u);default:if(b)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),b=!0}}i.prototype._isBuffer=!0;function D(p,s,u){let b=p[s];p[s]=p[u],p[u]=b}i.prototype.swap16=function(){let s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<s;u+=2)D(this,u,u+1);return this},i.prototype.swap32=function(){let s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<s;u+=4)D(this,u,u+3),D(this,u+1,u+2);return this},i.prototype.swap64=function(){let s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<s;u+=8)D(this,u,u+7),D(this,u+1,u+6),D(this,u+2,u+5),D(this,u+3,u+4);return this},i.prototype.toString=function(){let s=this.length;return s===0?"":arguments.length===0?re(this,0,s):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(s){if(!i.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:i.compare(this,s)===0},i.prototype.inspect=function(){let s="",u=ri.INSPECT_MAX_BYTES;return s=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(s+=" ... "),"<Buffer "+s+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(s,u,b,L,m){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(u===void 0&&(u=0),b===void 0&&(b=s?s.length:0),L===void 0&&(L=0),m===void 0&&(m=this.length),u<0||b>s.length||L<0||m>this.length)throw new RangeError("out of range index");if(L>=m&&u>=b)return 0;if(L>=m)return-1;if(u>=b)return 1;if(u>>>=0,b>>>=0,L>>>=0,m>>>=0,this===s)return 0;let j=m-L,le=b-u,Be=Math.min(j,le),ee=this.slice(L,m),ue=s.slice(u,b);for(let I=0;I<Be;++I)if(ee[I]!==ue[I]){j=ee[I],le=ue[I];break}return j<le?-1:le<j?1:0};function V(p,s,u,b,L){if(p.length===0)return-1;if(typeof u=="string"?(b=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,bt(u)&&(u=L?0:p.length-1),u<0&&(u=p.length+u),u>=p.length){if(L)return-1;u=p.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof s=="string"&&(s=i.from(s,b)),i.isBuffer(s))return s.length===0?-1:F(p,s,u,b,L);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(p,s,u):Uint8Array.prototype.lastIndexOf.call(p,s,u):F(p,[s],u,b,L);throw new TypeError("val must be string, number or Buffer")}function F(p,s,u,b,L){let m=1,j=p.length,le=s.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(p.length<2||s.length<2)return-1;m=2,j/=2,le/=2,u/=2}function Be(ue,I){return m===1?ue[I]:ue.readUInt16BE(I*m)}let ee;if(L){let ue=-1;for(ee=u;ee<j;ee++)if(Be(p,ee)===Be(s,ue===-1?0:ee-ue)){if(ue===-1&&(ue=ee),ee-ue+1===le)return ue*m}else ue!==-1&&(ee-=ee-ue),ue=-1}else for(u+le>j&&(u=j-le),ee=u;ee>=0;ee--){let ue=!0;for(let I=0;I<le;I++)if(Be(p,ee+I)!==Be(s,I)){ue=!1;break}if(ue)return ee}return-1}i.prototype.includes=function(s,u,b){return this.indexOf(s,u,b)!==-1},i.prototype.indexOf=function(s,u,b){return V(this,s,u,b,!0)},i.prototype.lastIndexOf=function(s,u,b){return V(this,s,u,b,!1)};function N(p,s,u,b){u=Number(u)||0;let L=p.length-u;b?(b=Number(b),b>L&&(b=L)):b=L;let m=s.length;b>m/2&&(b=m/2);let j;for(j=0;j<b;++j){let le=parseInt(s.substr(j*2,2),16);if(bt(le))return j;p[u+j]=le}return j}function x(p,s,u,b){return nt(De(s,p.length-u),p,u,b)}function G(p,s,u,b){return nt($e(s),p,u,b)}function Q(p,s,u,b){return nt(ot(s),p,u,b)}function Te(p,s,u,b){return nt(Me(s,p.length-u),p,u,b)}i.prototype.write=function(s,u,b,L){if(u===void 0)L="utf8",b=this.length,u=0;else if(b===void 0&&typeof u=="string")L=u,b=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(b)?(b=b>>>0,L===void 0&&(L="utf8")):(L=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let m=this.length-u;if((b===void 0||b>m)&&(b=m),s.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let j=!1;for(;;)switch(L){case"hex":return N(this,s,u,b);case"utf8":case"utf-8":return x(this,s,u,b);case"ascii":case"latin1":case"binary":return G(this,s,u,b);case"base64":return Q(this,s,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,u,b);default:if(j)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),j=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(p,s,u){return s===0&&u===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(s,u))}function re(p,s,u){u=Math.min(p.length,u);let b=[],L=s;for(;L<u;){let m=p[L],j=null,le=m>239?4:m>223?3:m>191?2:1;if(L+le<=u){let Be,ee,ue,I;switch(le){case 1:m<128&&(j=m);break;case 2:Be=p[L+1],(Be&192)===128&&(I=(m&31)<<6|Be&63,I>127&&(j=I));break;case 3:Be=p[L+1],ee=p[L+2],(Be&192)===128&&(ee&192)===128&&(I=(m&15)<<12|(Be&63)<<6|ee&63,I>2047&&(I<55296||I>57343)&&(j=I));break;case 4:Be=p[L+1],ee=p[L+2],ue=p[L+3],(Be&192)===128&&(ee&192)===128&&(ue&192)===128&&(I=(m&15)<<18|(Be&63)<<12|(ee&63)<<6|ue&63,I>65535&&I<1114112&&(j=I))}}j===null?(j=65533,le=1):j>65535&&(j-=65536,b.push(j>>>10&1023|55296),j=56320|j&1023),b.push(j),L+=le}return Ce(b)}let ae=4096;function Ce(p){let s=p.length;if(s<=ae)return String.fromCharCode.apply(String,p);let u="",b=0;for(;b<s;)u+=String.fromCharCode.apply(String,p.slice(b,b+=ae));return u}function Ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]&127);return b}function ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]);return b}function te(p,s,u){let b=p.length;(!s||s<0)&&(s=0),(!u||u<0||u>b)&&(u=b);let L="";for(let m=s;m<u;++m)L+=Qt[p[m]];return L}function ye(p,s,u){let b=p.slice(s,u),L="";for(let m=0;m<b.length-1;m+=2)L+=String.fromCharCode(b[m]+b[m+1]*256);return L}i.prototype.slice=function(s,u){let b=this.length;s=~~s,u=u===void 0?b:~~u,s<0?(s+=b,s<0&&(s=0)):s>b&&(s=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),u<s&&(u=s);let L=this.subarray(s,u);return Object.setPrototypeOf(L,i.prototype),L};function me(p,s,u){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+s>u)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return L},i.prototype.readUintBE=i.prototype.readUIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s+--u],m=1;for(;u>0&&(m*=256);)L+=this[s+--u]*m;return L},i.prototype.readUint8=i.prototype.readUInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]|this[s+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]<<8|this[s+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},i.prototype.readBigUInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,m=this[++s]+this[++s]*2**8+this[++s]*2**16+b*2**24;return BigInt(L)+(BigInt(m)<<BigInt(32))}),i.prototype.readBigUInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],m=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b;return(BigInt(L)<<BigInt(32))+BigInt(m)}),i.prototype.readIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return m*=128,L>=m&&(L-=Math.pow(2,8*u)),L},i.prototype.readIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=u,m=1,j=this[s+--L];for(;L>0&&(m*=256);)j+=this[s+--L]*m;return m*=128,j>=m&&(j-=Math.pow(2,8*u)),j},i.prototype.readInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},i.prototype.readInt16LE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s]|this[s+1]<<8;return b&32768?b|4294901760:b},i.prototype.readInt16BE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s+1]|this[s]<<8;return b&32768?b|4294901760:b},i.prototype.readInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},i.prototype.readInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},i.prototype.readBigInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(b<<24);return(BigInt(L)<<BigInt(32))+BigInt(u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24)}),i.prototype.readBigInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=(u<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return(BigInt(L)<<BigInt(32))+BigInt(this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b)}),i.prototype.readFloatLE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!0,23,4)},i.prototype.readFloatBE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!1,23,4)},i.prototype.readDoubleLE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!0,52,8)},i.prototype.readDoubleBE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!1,52,8)};function Re(p,s,u,b,L,m){if(!i.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>L||s<m)throw new RangeError('"value" argument is out of bounds');if(u+b>p.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=1,j=0;for(this[u]=s&255;++j<b&&(m*=256);)this[u+j]=s/m&255;return u+b},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=b-1,j=1;for(this[u+m]=s&255;--m>=0&&(j*=256);)this[u+m]=s/j&255;return u+b},i.prototype.writeUint8=i.prototype.writeUInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,255,0),this[u]=s&255,u+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u+3]=s>>>24,this[u+2]=s>>>16,this[u+1]=s>>>8,this[u]=s&255,u+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4};function qe(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,u}function je(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u+7]=m,m=m>>8,p[u+6]=m,m=m>>8,p[u+5]=m,m=m>>8,p[u+4]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u+3]=j,j=j>>8,p[u+2]=j,j=j>>8,p[u+1]=j,j=j>>8,p[u]=j,u+8}i.prototype.writeBigUInt64LE=gt(function(s,u=0){return qe(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=gt(function(s,u=0){return je(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=0,j=1,le=0;for(this[u]=s&255;++m<b&&(j*=256);)s<0&&le===0&&this[u+m-1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=b-1,j=1,le=0;for(this[u+m]=s&255;--m>=0&&(j*=256);)s<0&&le===0&&this[u+m+1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,127,-128),s<0&&(s=255+s+1),this[u]=s&255,u+1},i.prototype.writeInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),this[u]=s&255,this[u+1]=s>>>8,this[u+2]=s>>>16,this[u+3]=s>>>24,u+4},i.prototype.writeInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4},i.prototype.writeBigInt64LE=gt(function(s,u=0){return qe(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=gt(function(s,u=0){return je(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(p,s,u,b,L,m){if(u+b>p.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ve(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,4),t.write(p,s,u,b,23,4),u+4}i.prototype.writeFloatLE=function(s,u,b){return Ve(this,s,u,!0,b)},i.prototype.writeFloatBE=function(s,u,b){return Ve(this,s,u,!1,b)};function xe(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,8),t.write(p,s,u,b,52,8),u+8}i.prototype.writeDoubleLE=function(s,u,b){return xe(this,s,u,!0,b)},i.prototype.writeDoubleBE=function(s,u,b){return xe(this,s,u,!1,b)},i.prototype.copy=function(s,u,b,L){if(!i.isBuffer(s))throw new TypeError("argument should be a Buffer");if(b||(b=0),!L&&L!==0&&(L=this.length),u>=s.length&&(u=s.length),u||(u=0),L>0&&L<b&&(L=b),L===b||s.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),s.length-u<L-b&&(L=s.length-u+b);let m=L-b;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,L):Uint8Array.prototype.set.call(s,this.subarray(b,L),u),m},i.prototype.fill=function(s,u,b,L){if(typeof s=="string"){if(typeof u=="string"?(L=u,u=0,b=this.length):typeof b=="string"&&(L=b,b=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!i.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(s.length===1){let j=s.charCodeAt(0);(L==="utf8"&&j<128||L==="latin1")&&(s=j)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(u<0||this.length<u||this.length<b)throw new RangeError("Out of range index");if(b<=u)return this;u=u>>>0,b=b===void 0?this.length:b>>>0,s||(s=0);let m;if(typeof s=="number")for(m=u;m<b;++m)this[m]=s;else{let j=i.isBuffer(s)?s:i.from(s,L),le=j.length;if(le===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(m=0;m<b-u;++m)this[m+u]=j[m%le]}return this};let A={};function O(p,s,u){A[p]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(p,s){return`The "${p}" argument must be of type number. Received type ${typeof s}`},TypeError),O("ERR_OUT_OF_RANGE",function(p,s,u){let b=`The value of "${p}" is out of range.`,L=u;return Number.isInteger(u)&&Math.abs(u)>2**32?L=Y(String(u)):typeof u=="bigint"&&(L=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(L=Y(L)),L+="n"),b+=` It must be ${s}. Received ${L}`,b},RangeError);function Y(p){let s="",u=p.length,b=p[0]==="-"?1:0;for(;u>=b+4;u-=3)s=`_${p.slice(u-3,u)}${s}`;return`${p.slice(0,u)}${s}`}function fe(p,s,u){k(s,"offset"),(p[s]===void 0||p[s+u]===void 0)&&Z(s,p.length-(u+1))}function ge(p,s,u,b,L,m){if(p>u||p<s){let j=typeof s=="bigint"?"n":"",le;throw m>3?s===0||s===BigInt(0)?le=`>= 0${j} and < 2${j} ** ${(m+1)*8}${j}`:le=`>= -(2${j} ** ${(m+1)*8-1}${j}) and < 2 ** ${(m+1)*8-1}${j}`:le=`>= ${s}${j} and <= ${u}${j}`,new A.ERR_OUT_OF_RANGE("value",le,p)}fe(b,L,m)}function k(p,s){if(typeof p!="number")throw new A.ERR_INVALID_ARG_TYPE(s,"number",p)}function Z(p,s,u){throw Math.floor(p)!==p?(k(p,u),new A.ERR_OUT_OF_RANGE(u||"offset","an integer",p)):s<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${s}`,p)}let Se=/[^+/0-9A-Za-z-_]/g;function ke(p){if(p=p.split("=")[0],p=p.trim().replace(Se,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function De(p,s){s=s||1/0;let u,b=p.length,L=null,m=[];for(let j=0;j<b;++j){if(u=p.charCodeAt(j),u>55295&&u<57344){if(!L){if(u>56319){(s-=3)>-1&&m.push(239,191,189);continue}else if(j+1===b){(s-=3)>-1&&m.push(239,191,189);continue}L=u;continue}if(u<56320){(s-=3)>-1&&m.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(s-=3)>-1&&m.push(239,191,189);if(L=null,u<128){if((s-=1)<0)break;m.push(u)}else if(u<2048){if((s-=2)<0)break;m.push(u>>6|192,u&63|128)}else if(u<65536){if((s-=3)<0)break;m.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((s-=4)<0)break;m.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return m}function $e(p){let s=[];for(let u=0;u<p.length;++u)s.push(p.charCodeAt(u)&255);return s}function Me(p,s){let u,b,L,m=[];for(let j=0;j<p.length&&!((s-=2)<0);++j)u=p.charCodeAt(j),b=u>>8,L=u%256,m.push(L),m.push(b);return m}function ot(p){return e.toByteArray(ke(p))}function nt(p,s,u,b){let L;for(L=0;L<b&&!(L+u>=s.length||L>=p.length);++L)s[L+u]=p[L];return L}function et(p,s){return p instanceof s||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===s.name}function bt(p){return p!==p}let Qt=function(){let p="0123456789abcdef",s=new Array(256);for(let u=0;u<16;++u){let b=u*16;for(let L=0;L<16;++L)s[b+L]=p[u]+p[L]}return s}();function gt(p){return typeof BigInt>"u"?Ct:p}function Ct(){throw new Error("BigInt not supported")}return ri}var Oo,Vp,ka,Gp,ri,Yp,ni,he,$B,qB,Fa=ei(()=>{$();q();z();H();W();Oo={},Vp=!1;ka={},Gp=!1;ri={},Yp=!1;ni=z_();ni.Buffer;ni.SlowBuffer;ni.INSPECT_MAX_BYTES;ni.kMaxLength;he=ni.Buffer,$B=ni.INSPECT_MAX_BYTES,qB=ni.kMaxLength});var H=ei(()=>{Fa()});var of=He((Mk,zd)=>{"use strict";$();q();z();H();W();var qd=Object.prototype.toString;zd.exports=function(t){var r=qd.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&qd.call(t.callee)==="[object Function]"),n}});var Jd=He((Hk,Xd)=>{"use strict";$();q();z();H();W();var Kd;Object.keys||(Do=Object.prototype.hasOwnProperty,af=Object.prototype.toString,Wd=of(),sf=Object.prototype.propertyIsEnumerable,Hd=!sf.call({toString:null},"toString"),Zd=sf.call(function(){},"prototype"),Mo=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ja=function(e){var t=e.constructor;return t&&t.prototype===e},Vd={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Gd=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Vd["$"+e]&&Do.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Ja(window[e])}catch{return!0}}catch{return!0}return!1}(),Yd=function(e){if(typeof window>"u"||!Gd)return Ja(e);try{return Ja(e)}catch{return!1}},Kd=function(t){var r=t!==null&&typeof t=="object",n=af.call(t)==="[object Function]",o=Wd(t),a=r&&af.call(t)==="[object String]",i=[];if(!r&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=Zd&&n;if(a&&t.length>0&&!Do.call(t,0))for(var l=0;l<t.length;++l)i.push(String(l));if(o&&t.length>0)for(var c=0;c<t.length;++c)i.push(String(c));else for(var d in t)!(f&&d==="prototype")&&Do.call(t,d)&&i.push(String(d));if(Hd)for(var y=Yd(t),v=0;v<Mo.length;++v)!(y&&Mo[v]==="constructor")&&Do.call(t,Mo[v])&&i.push(Mo[v]);return i});var Do,af,Wd,sf,Hd,Zd,Mo,Ja,Vd,Gd,Yd;Xd.exports=Kd});var es=He((Xk,ty)=>{"use strict";$();q();z();H();W();var VE=Array.prototype.slice,GE=of(),Qd=Object.keys,Qa=Qd?function(t){return Qd(t)}:Jd(),ey=Object.keys;Qa.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return GE(n)?ey(VE.call(n)):ey(n)})}else Object.keys=Qa;return Object.keys||Qa};ty.exports=Qa});var jo=He((nF,ry)=>{"use strict";$();q();z();H();W();ry.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var ts=He((fF,iy)=>{"use strict";$();q();z();H();W();var ny=typeof Symbol<"u"&&Symbol,YE=jo();iy.exports=function(){return typeof ny!="function"||typeof Symbol!="function"||typeof ny("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:YE()}});var sy=He((yF,ay)=>{"use strict";$();q();z();H();W();var oy={foo:{}},KE=Object;ay.exports=function(){return{__proto__:oy}.foo===oy.foo&&!({__proto__:null}instanceof KE)}});var fy=He((_F,uy)=>{"use strict";$();q();z();H();W();var XE="Function.prototype.bind called on incompatible ",uf=Array.prototype.slice,JE=Object.prototype.toString,QE="[object Function]";uy.exports=function(t){var r=this;if(typeof r!="function"||JE.call(r)!==QE)throw new TypeError(XE+r);for(var n=uf.call(arguments,1),o,a=function(){if(this instanceof o){var d=r.apply(this,n.concat(uf.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(uf.call(arguments)))},i=Math.max(0,r.length-n.length),f=[],l=0;l<i;l++)f.push("$"+l);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var rs=He((OF,ly)=>{"use strict";$();q();z();H();W();var eS=fy();ly.exports=Function.prototype.bind||eS});var ff=He((LF,cy)=>{"use strict";$();q();z();H();W();var tS=rs();cy.exports=tS.call(Function.call,Object.prototype.hasOwnProperty)});var Ur=He((MF,gy)=>{"use strict";$();q();z();H();W();var yt,Wi=SyntaxError,yy=Function,zi=TypeError,lf=function(e){try{return yy('"use strict"; return ('+e+").constructor;")()}catch{}},oi=Object.getOwnPropertyDescriptor;if(oi)try{oi({},"")}catch{oi=null}var cf=function(){throw new zi},rS=oi?function(){try{return arguments.callee,cf}catch{try{return oi(arguments,"callee").get}catch{return cf}}}():cf,$i=ts()(),nS=sy()(),Wt=Object.getPrototypeOf||(nS?function(e){return e.__proto__}:null),qi={},iS=typeof Uint8Array>"u"||!Wt?yt:Wt(Uint8Array),ai={"%AggregateError%":typeof AggregateError>"u"?yt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?yt:ArrayBuffer,"%ArrayIteratorPrototype%":$i&&Wt?Wt([][Symbol.iterator]()):yt,"%AsyncFromSyncIteratorPrototype%":yt,"%AsyncFunction%":qi,"%AsyncGenerator%":qi,"%AsyncGeneratorFunction%":qi,"%AsyncIteratorPrototype%":qi,"%Atomics%":typeof Atomics>"u"?yt:Atomics,"%BigInt%":typeof BigInt>"u"?yt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?yt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?yt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?yt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?yt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?yt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?yt:FinalizationRegistry,"%Function%":yy,"%GeneratorFunction%":qi,"%Int8Array%":typeof Int8Array>"u"?yt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?yt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?yt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$i&&Wt?Wt(Wt([][Symbol.iterator]())):yt,"%JSON%":typeof JSON=="object"?JSON:yt,"%Map%":typeof Map>"u"?yt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$i||!Wt?yt:Wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?yt:Promise,"%Proxy%":typeof Proxy>"u"?yt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?yt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?yt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$i||!Wt?yt:Wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?yt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$i&&Wt?Wt(""[Symbol.iterator]()):yt,"%Symbol%":$i?Symbol:yt,"%SyntaxError%":Wi,"%ThrowTypeError%":rS,"%TypedArray%":iS,"%TypeError%":zi,"%Uint8Array%":typeof Uint8Array>"u"?yt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?yt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?yt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?yt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?yt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?yt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?yt:WeakSet};if(Wt)try{null.error}catch(e){hy=Wt(Wt(e)),ai["%Error.prototype%"]=hy}var hy,oS=function e(t){var r;if(t==="%AsyncFunction%")r=lf("async function () {}");else if(t==="%GeneratorFunction%")r=lf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=lf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Wt&&(r=Wt(o.prototype))}return ai[t]=r,r},py={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$o=rs(),ns=ff(),aS=$o.call(Function.call,Array.prototype.concat),sS=$o.call(Function.apply,Array.prototype.splice),dy=$o.call(Function.call,String.prototype.replace),is=$o.call(Function.call,String.prototype.slice),uS=$o.call(Function.call,RegExp.prototype.exec),fS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lS=/\\(\\)?/g,cS=function(t){var r=is(t,0,1),n=is(t,-1);if(r==="%"&&n!=="%")throw new Wi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Wi("invalid intrinsic syntax, expected opening `%`");var o=[];return dy(t,fS,function(a,i,f,l){o[o.length]=f?dy(l,lS,"$1"):i||a}),o},hS=function(t,r){var n=t,o;if(ns(py,n)&&(o=py[n],n="%"+o[0]+"%"),ns(ai,n)){var a=ai[n];if(a===qi&&(a=oS(n)),typeof a>"u"&&!r)throw new zi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Wi("intrinsic "+t+" does not exist!")};gy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new zi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new zi('"allowMissing" argument must be a boolean');if(uS(/^%?[^%]*%?$/,t)===null)throw new Wi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=cS(t),o=n.length>0?n[0]:"",a=hS("%"+o+"%",r),i=a.name,f=a.value,l=!1,c=a.alias;c&&(o=c[0],sS(n,aS([0,1],c)));for(var d=1,y=!0;d<n.length;d+=1){var v=n[d],_=is(v,0,1),h=is(v,-1);if((_==='"'||_==="'"||_==="`"||h==='"'||h==="'"||h==="`")&&_!==h)throw new Wi("property names with quotes must have matching quotes");if((v==="constructor"||!y)&&(l=!0),o+="."+v,i="%"+o+"%",ns(ai,i))f=ai[i];else if(f!=null){if(!(v in f)){if(!r)throw new zi("base intrinsic for "+t+" exists, but the property is not available.");return}if(oi&&d+1>=n.length){var w=oi(f,v);y=!!w,y&&"get"in w&&!("originalValue"in w.get)?f=w.get:f=f[v]}else y=ns(f,v),f=f[v];y&&!l&&(ai[i]=f)}}return f}});var vy=He((HF,my)=>{"use strict";$();q();z();H();W();var pS=Ur(),hf=pS("%Object.defineProperty%",!0),pf=function(){if(hf)try{return hf({},"a",{value:1}),!0}catch{return!1}return!1};pf.hasArrayLengthDefineBug=function(){if(!pf())return null;try{return hf([],"length",{value:1}).length!==1}catch{return!0}};my.exports=pf});var Dn=He((XF,Ey)=>{"use strict";$();q();z();H();W();var dS=es(),yS=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",gS=Object.prototype.toString,mS=Array.prototype.concat,wy=Object.defineProperty,vS=function(e){return typeof e=="function"&&gS.call(e)==="[object Function]"},wS=vy()(),by=wy&&wS,bS=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!vS(n)||!n())return}by?wy(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},_y=function(e,t){var r=arguments.length>2?arguments[2]:{},n=dS(t);yS&&(n=mS.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)bS(e,n[o],t[n[o]],r[n[o]])};_y.supportsDescriptors=!!by;Ey.exports=_y});var Zi=He((n4,os)=>{"use strict";$();q();z();H();W();var df=rs(),Hi=Ur(),Ry=Hi("%Function.prototype.apply%"),Ty=Hi("%Function.prototype.call%"),Oy=Hi("%Reflect.apply%",!0)||df.call(Ty,Ry),Sy=Hi("%Object.getOwnPropertyDescriptor%",!0),si=Hi("%Object.defineProperty%",!0),_S=Hi("%Math.max%");if(si)try{si({},"a",{value:1})}catch{si=null}os.exports=function(t){var r=Oy(df,Ty,arguments);if(Sy&&si){var n=Sy(r,"length");n.configurable&&si(r,"length",{value:1+_S(0,t.length-(arguments.length-1))})}return r};var Ay=function(){return Oy(df,Ry,arguments)};si?si(os.exports,"apply",{value:Ay}):os.exports.apply=Ay});var lr=He((f4,By)=>{"use strict";$();q();z();H();W();var Iy=Ur(),xy=Zi(),ES=xy(Iy("String.prototype.indexOf"));By.exports=function(t,r){var n=Iy(t,!!r);return typeof n=="function"&&ES(t,".prototype.")>-1?xy(n):n}});var yf=He((y4,Fy)=>{"use strict";$();q();z();H();W();var SS=es(),Ly=jo()(),ky=lr(),Cy=Object,AS=ky("Array.prototype.push"),Ny=ky("Object.prototype.propertyIsEnumerable"),RS=Ly?Object.getOwnPropertySymbols:null;Fy.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=Cy(t);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Cy(arguments[o]),i=SS(a),f=Ly&&(Object.getOwnPropertySymbols||RS);if(f)for(var l=f(a),c=0;c<l.length;++c){var d=l[c];Ny(a,d)&&AS(i,d)}for(var y=0;y<i.length;++y){var v=i[y];if(Ny(a,v)){var _=a[v];n[v]=_}}}return n}});var mf=He((_4,Py)=>{"use strict";$();q();z();H();W();var gf=yf(),TS=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var o=Object.assign({},r),a="";for(var i in o)a+=i;return e!==a},OS=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Py.exports=function(){return!Object.assign||TS()||OS()?gf:Object.assign}});var Dy=He((O4,Uy)=>{"use strict";$();q();z();H();W();var IS=Dn(),xS=mf();Uy.exports=function(){var t=xS();return IS(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}});var qy=He((L4,$y)=>{"use strict";$();q();z();H();W();var BS=Dn(),CS=Zi(),NS=yf(),My=mf(),LS=Dy(),kS=CS.apply(My()),jy=function(t,r){return kS(Object,arguments)};BS(jy,{getPolyfill:My,implementation:NS,shim:LS});$y.exports=jy});var Wy=He((M4,zy)=>{"use strict";$();q();z();H();W();var zo=function(){return typeof function(){}.name=="string"},qo=Object.getOwnPropertyDescriptor;if(qo)try{qo([],"length")}catch{qo=null}zo.functionsHaveConfigurableNames=function(){if(!zo()||!qo)return!1;var t=qo(function(){},"name");return!!t&&!!t.configurable};var FS=Function.prototype.bind;zo.boundFunctionsHaveNames=function(){return zo()&&typeof FS=="function"&&function(){}.bind().name!==""};zy.exports=zo});var wf=He((H4,vf)=>{"use strict";$();q();z();H();W();var PS=Wy().functionsHaveConfigurableNames(),US=Object,DS=TypeError;vf.exports=function(){if(this!=null&&this!==US(this))throw new DS("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t};PS&&Object.defineProperty&&Object.defineProperty(vf.exports,"name",{value:"get flags"})});var bf=He((X4,Hy)=>{"use strict";$();q();z();H();W();var MS=wf(),jS=Dn().supportsDescriptors,$S=Object.getOwnPropertyDescriptor;Hy.exports=function(){if(jS&&/a/mig.flags==="gim"){var t=$S(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return MS}});var Gy=He((nP,Vy)=>{"use strict";$();q();z();H();W();var qS=Dn().supportsDescriptors,zS=bf(),WS=Object.getOwnPropertyDescriptor,HS=Object.defineProperty,ZS=TypeError,Zy=Object.getPrototypeOf,VS=/a/;Vy.exports=function(){if(!qS||!Zy)throw new ZS("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=zS(),r=Zy(VS),n=WS(r,"flags");return(!n||n.get!==t)&&HS(r,"flags",{configurable:!0,enumerable:!1,get:t}),t}});var Jy=He((fP,Xy)=>{"use strict";$();q();z();H();W();var GS=Dn(),YS=Zi(),KS=wf(),Yy=bf(),XS=Gy(),Ky=YS(Yy());GS(Ky,{getPolyfill:Yy,implementation:KS,shim:XS});Xy.exports=Ky});var mn=He((yP,Qy)=>{"use strict";$();q();z();H();W();var JS=jo();Qy.exports=function(){return JS()&&!!Symbol.toStringTag}});var Ef=He((_P,tg)=>{"use strict";$();q();z();H();W();var QS=mn()(),e2=lr(),_f=e2("Object.prototype.toString"),as=function(t){return QS&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:_f(t)==="[object Arguments]"},eg=function(t){return as(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&_f(t)!=="[object Array]"&&_f(t.callee)==="[object Function]"},t2=function(){return as(arguments)}();as.isLegacyArguments=eg;tg.exports=t2?as:eg});var rg=He(()=>{$();q();z();H();W()});var Eg=He((kP,_g)=>{$();q();z();H();W();var Nf=typeof Map=="function"&&Map.prototype,Sf=Object.getOwnPropertyDescriptor&&Nf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,us=Nf&&Sf&&typeof Sf.get=="function"?Sf.get:null,ng=Nf&&Map.prototype.forEach,Lf=typeof Set=="function"&&Set.prototype,Af=Object.getOwnPropertyDescriptor&&Lf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fs=Lf&&Af&&typeof Af.get=="function"?Af.get:null,ig=Lf&&Set.prototype.forEach,r2=typeof WeakMap=="function"&&WeakMap.prototype,Ho=r2?WeakMap.prototype.has:null,n2=typeof WeakSet=="function"&&WeakSet.prototype,Zo=n2?WeakSet.prototype.has:null,i2=typeof WeakRef=="function"&&WeakRef.prototype,og=i2?WeakRef.prototype.deref:null,o2=Boolean.prototype.valueOf,a2=Object.prototype.toString,s2=Function.prototype.toString,u2=String.prototype.match,kf=String.prototype.slice,jn=String.prototype.replace,f2=String.prototype.toUpperCase,ag=String.prototype.toLowerCase,yg=RegExp.prototype.test,sg=Array.prototype.concat,Kr=Array.prototype.join,l2=Array.prototype.slice,ug=Math.floor,Of=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rf=Object.getOwnPropertySymbols,If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vi||"symbol")?Symbol.toStringTag:null,gg=Object.prototype.propertyIsEnumerable,fg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function lg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||yg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ug(-e):ug(e);if(n!==e){var o=String(n),a=kf.call(t,o.length+1);return jn.call(o,r,"$&_")+"."+jn.call(jn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return jn.call(t,r,"$&_")}var xf=rg(),cg=xf.custom,hg=vg(cg)?cg:null;_g.exports=function e(t,r,n,o){var a=r||{};if(Mn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Mn(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return bg(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return f?lg(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return f?lg(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Bf(t)?"[Array]":"[Object]";var y=I2(a,n);if(typeof o>"u")o=[];else if(wg(o,t)>=0)return"[Circular]";function v(re,ae,Ce){if(ae&&(o=l2.call(o),o.push(ae)),Ce){var Ne={depth:a.depth};return Mn(a,"quoteStyle")&&(Ne.quoteStyle=a.quoteStyle),e(re,Ne,n+1,o)}return e(re,a,n+1,o)}if(typeof t=="function"&&!pg(t)){var _=w2(t),h=ss(t,v);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(h.length>0?" { "+Kr.call(h,", ")+" }":"")}if(vg(t)){var w=Vi?jn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):If.call(t);return typeof t=="object"&&!Vi?Wo(w):w}if(R2(t)){for(var S="<"+ag.call(String(t.nodeName)),T=t.attributes||[],C=0;C<T.length;C++)S+=" "+T[C].name+"="+mg(c2(T[C].value),"double",a);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+ag.call(String(t.nodeName))+">",S}if(Bf(t)){if(t.length===0)return"[]";var M=ss(t,v);return y&&!O2(M)?"["+Cf(M,y)+"]":"[ "+Kr.call(M,", ")+" ]"}if(p2(t)){var D=ss(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!gg.call(t,"cause")?"{ ["+String(t)+"] "+Kr.call(sg.call("[cause]: "+v(t.cause),D),", ")+" }":D.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Kr.call(D,", ")+" }"}if(typeof t=="object"&&i){if(hg&&typeof t[hg]=="function"&&xf)return xf(t,{depth:d-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(b2(t)){var V=[];return ng&&ng.call(t,function(re,ae){V.push(v(ae,t,!0)+" => "+v(re,t))}),dg("Map",us.call(t),V,y)}if(S2(t)){var F=[];return ig&&ig.call(t,function(re){F.push(v(re,t))}),dg("Set",fs.call(t),F,y)}if(_2(t))return Tf("WeakMap");if(A2(t))return Tf("WeakSet");if(E2(t))return Tf("WeakRef");if(y2(t))return Wo(v(Number(t)));if(m2(t))return Wo(v(Of.call(t)));if(g2(t))return Wo(o2.call(t));if(d2(t))return Wo(v(String(t)));if(!h2(t)&&!pg(t)){var N=ss(t,v),x=fg?fg(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",Q=!x&&rr&&Object(t)===t&&rr in t?kf.call($n(t),8,-1):G?"Object":"",Te=x||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",K=Te+(Q||G?"["+Kr.call(sg.call([],Q||[],G||[]),": ")+"] ":"");return N.length===0?K+"{}":y?K+"{"+Cf(N,y)+"}":K+"{ "+Kr.call(N,", ")+" }"}return String(t)};function mg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function c2(e){return jn.call(String(e),/"/g,""")}function Bf(e){return $n(e)==="[object Array]"&&(!rr||!(typeof e=="object"&&rr in e))}function h2(e){return $n(e)==="[object Date]"&&(!rr||!(typeof e=="object"&&rr in e))}function pg(e){return $n(e)==="[object RegExp]"&&(!rr||!(typeof e=="object"&&rr in e))}function p2(e){return $n(e)==="[object Error]"&&(!rr||!(typeof e=="object"&&rr in e))}function d2(e){return $n(e)==="[object String]"&&(!rr||!(typeof e=="object"&&rr in e))}function y2(e){return $n(e)==="[object Number]"&&(!rr||!(typeof e=="object"&&rr in e))}function g2(e){return $n(e)==="[object Boolean]"&&(!rr||!(typeof e=="object"&&rr in e))}function vg(e){if(Vi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!If)return!1;try{return If.call(e),!0}catch{}return!1}function m2(e){if(!e||typeof e!="object"||!Of)return!1;try{return Of.call(e),!0}catch{}return!1}var v2=Object.prototype.hasOwnProperty||function(e){return e in this};function Mn(e,t){return v2.call(e,t)}function $n(e){return a2.call(e)}function w2(e){if(e.name)return e.name;var t=u2.call(s2.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function wg(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function b2(e){if(!us||!e||typeof e!="object")return!1;try{us.call(e);try{fs.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _2(e){if(!Ho||!e||typeof e!="object")return!1;try{Ho.call(e,Ho);try{Zo.call(e,Zo)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function E2(e){if(!og||!e||typeof e!="object")return!1;try{return og.call(e),!0}catch{}return!1}function S2(e){if(!fs||!e||typeof e!="object")return!1;try{fs.call(e);try{us.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function A2(e){if(!Zo||!e||typeof e!="object")return!1;try{Zo.call(e,Zo);try{Ho.call(e,Ho)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function R2(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function bg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return bg(kf.call(e,0,t.maxStringLength),t)+n}var o=jn.call(jn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,T2);return mg(o,"single",t)}function T2(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+f2.call(t.toString(16))}function Wo(e){return"Object("+e+")"}function Tf(e){return e+" { ? }"}function dg(e,t,r,n){var o=n?Cf(r,n):Kr.call(r,", ");return e+" ("+t+") {"+o+"}"}function O2(e){for(var t=0;t<e.length;t++)if(wg(e[t],`
|
|
`)>=0)return!1;return!0}function I2(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Kr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Kr.call(Array(t+1),r)}}function Cf(e,t){if(e.length===0)return"";var r=`
|
|
`+t.prev+t.base;return r+Kr.call(e,","+r)+`
|
|
`+t.prev}function ss(e,t){var r=Bf(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Mn(e,o)?t(e[o],e):""}var a=typeof Rf=="function"?Rf(e):[],i;if(Vi){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in e)Mn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Vi&&i["$"+l]instanceof Symbol||(yg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Rf=="function")for(var c=0;c<a.length;c++)gg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Uf=He((jP,Sg)=>{"use strict";$();q();z();H();W();var Ff=Ur(),Gi=lr(),x2=Eg(),B2=Ff("%TypeError%"),ls=Ff("%WeakMap%",!0),cs=Ff("%Map%",!0),C2=Gi("WeakMap.prototype.get",!0),N2=Gi("WeakMap.prototype.set",!0),L2=Gi("WeakMap.prototype.has",!0),k2=Gi("Map.prototype.get",!0),F2=Gi("Map.prototype.set",!0),P2=Gi("Map.prototype.has",!0),Pf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},U2=function(e,t){var r=Pf(e,t);return r&&r.value},D2=function(e,t,r){var n=Pf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},M2=function(e,t){return!!Pf(e,t)};Sg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new B2("Side channel does not contain "+x2(a))},get:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return C2(t,a)}else if(cs){if(r)return k2(r,a)}else if(n)return U2(n,a)},has:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return L2(t,a)}else if(cs){if(r)return P2(r,a)}else if(n)return M2(n,a);return!1},set:function(a,i){ls&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ls),N2(t,a,i)):cs?(r||(r=new cs),F2(r,a,i)):(n||(n={key:{},next:null}),D2(n,a,i))}};return o}});var Rg=He((ZP,Ag)=>{"use strict";$();q();z();H();W();var j2=Ur(),$2=ff(),Vo=Uf()(),vn=j2("%TypeError%"),Df={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");if(Vo.assert(e),!Df.has(e,t))throw new vn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return!!r&&$2(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var n=Vo.get(e);n||(n={},Vo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(Df);Ag.exports=Df});var Ig=He((JP,Og)=>{"use strict";$();q();z();H();W();var Go=Rg(),q2=SyntaxError,Tg=typeof StopIteration=="object"?StopIteration:null;Og.exports=function(t){if(!Tg)throw new q2("this environment lacks StopIteration");Go.set(t,"[[Done]]",!1);var r={next:function(){var o=Go.get(this,"[[Iterator]]"),a=Go.get(o,"[[Done]]");try{return{done:a,value:a?void 0:o.next()}}catch(i){if(Go.set(o,"[[Done]]",!0),i!==Tg)throw i;return{done:!0,value:void 0}}}};return Go.set(r,"[[Iterator]]",t),r}});var Mf=He((iU,xg)=>{$();q();z();H();W();var z2={}.toString;xg.exports=Array.isArray||function(e){return z2.call(e)=="[object Array]"}});var jf=He((lU,Bg)=>{"use strict";$();q();z();H();W();var W2=String.prototype.valueOf,H2=function(t){try{return W2.call(t),!0}catch{return!1}},Z2=Object.prototype.toString,V2="[object String]",G2=mn()();Bg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:G2?H2(t):Z2.call(t)===V2}});var qf=He((gU,Lg)=>{"use strict";$();q();z();H();W();var $f=typeof Map=="function"&&Map.prototype?Map:null,Y2=typeof Set=="function"&&Set.prototype?Set:null,hs;$f||(hs=function(t){return!1});var Ng=$f?Map.prototype.has:null,Cg=Y2?Set.prototype.has:null;!hs&&!Ng&&(hs=function(t){return!1});Lg.exports=hs||function(t){if(!t||typeof t!="object")return!1;try{if(Ng.call(t),Cg)try{Cg.call(t)}catch{return!0}return t instanceof $f}catch{}return!1}});var Wf=He((EU,Pg)=>{"use strict";$();q();z();H();W();var K2=typeof Map=="function"&&Map.prototype?Map:null,zf=typeof Set=="function"&&Set.prototype?Set:null,ps;zf||(ps=function(t){return!1});var kg=K2?Map.prototype.has:null,Fg=zf?Set.prototype.has:null;!ps&&!Fg&&(ps=function(t){return!1});Pg.exports=ps||function(t){if(!t||typeof t!="object")return!1;try{if(Fg.call(t),kg)try{kg.call(t)}catch{return!0}return t instanceof zf}catch{}return!1}});var Gg=He((IU,gs)=>{"use strict";$();q();z();H();W();var Ug=Ef(),Dg=Ig();ts()()||jo()()?(ds=Symbol.iterator,gs.exports=function(t){if(t!=null&&typeof t[ds]<"u")return t[ds]();if(Ug(t))return Array.prototype[ds].call(t)}):(Mg=Mf(),jg=jf(),Hf=Ur(),$g=Hf("%Map%",!0),qg=Hf("%Set%",!0),Tr=lr(),Zf=Tr("Array.prototype.push"),Vf=Tr("String.prototype.charCodeAt"),zg=Tr("String.prototype.slice"),Wg=function(t,r){var n=t.length;if(r+1>=n)return r+1;var o=Vf(t,r);if(o<55296||o>56319)return r+1;var a=Vf(t,r+1);return a<56320||a>57343?r+1:r+2},ys=function(t){var r=0;return{next:function(){var o=r>=t.length,a;return o||(a=t[r],r+=1),{done:o,value:a}}}},Gf=function(t,r){if(Mg(t)||Ug(t))return ys(t);if(jg(t)){var n=0;return{next:function(){var a=Wg(t,n),i=zg(t,n,a);return n=a,{done:a>t.length,value:i}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()},!$g&&!qg?gs.exports=function(t){if(t!=null)return Gf(t,!0)}:(Hg=qf(),Zg=Wf(),Yf=Tr("Map.prototype.forEach",!0),Kf=Tr("Set.prototype.forEach",!0),(typeof ce>"u"||!ce.versions||!ce.versions.node)&&(Xf=Tr("Map.prototype.iterator",!0),Jf=Tr("Set.prototype.iterator",!0)),Qf=Tr("Map.prototype.@@iterator",!0)||Tr("Map.prototype._es6-shim iterator_",!0),el=Tr("Set.prototype.@@iterator",!0)||Tr("Set.prototype._es6-shim iterator_",!0),Vg=function(t){if(Hg(t)){if(Xf)return Dg(Xf(t));if(Qf)return Qf(t);if(Yf){var r=[];return Yf(t,function(o,a){Zf(r,[a,o])}),ys(r)}}if(Zg(t)){if(Jf)return Dg(Jf(t));if(el)return el(t);if(Kf){var n=[];return Kf(t,function(o){Zf(n,o)}),ys(n)}}},gs.exports=function(t){return Vg(t)||Gf(t)}));var ds,Mg,jg,Hf,$g,qg,Tr,Zf,Vf,zg,Wg,ys,Gf,Hg,Zg,Yf,Kf,Xf,Jf,Qf,el,Vg});var tl=He((kU,Kg)=>{"use strict";$();q();z();H();W();var Yg=function(e){return e!==e};Kg.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Yg(t)&&Yg(r))}});var rl=He((jU,Xg)=>{"use strict";$();q();z();H();W();var X2=tl();Xg.exports=function(){return typeof Object.is=="function"?Object.is:X2}});var Qg=He((ZU,Jg)=>{"use strict";$();q();z();H();W();var J2=rl(),Q2=Dn();Jg.exports=function(){var t=J2();return Q2(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var nm=He((JU,rm)=>{"use strict";$();q();z();H();W();var eA=Dn(),tA=Zi(),rA=tl(),em=rl(),nA=Qg(),tm=tA(em(),Object);eA(tm,{getPolyfill:em,implementation:rA,shim:nA});rm.exports=tm});var sm=He((iD,am)=>{"use strict";$();q();z();H();W();var om=Function.prototype.toString,Yi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,il,ms;if(typeof Yi=="function"&&typeof Object.defineProperty=="function")try{il=Object.defineProperty({},"length",{get:function(){throw ms}}),ms={},Yi(function(){throw 42},null,il)}catch(e){e!==ms&&(Yi=null)}else Yi=null;var iA=/^\s*class\b/,ol=function(t){try{var r=om.call(t);return iA.test(r)}catch{return!1}},nl=function(t){try{return ol(t)?!1:(om.call(t),!0)}catch{return!1}},vs=Object.prototype.toString,oA="[object Object]",aA="[object Function]",sA="[object GeneratorFunction]",uA="[object HTMLAllCollection]",fA="[object HTML document.all class]",lA="[object HTMLCollection]",cA=typeof Symbol=="function"&&!!Symbol.toStringTag,hA=!(0 in[,]),al=function(){return!1};typeof document=="object"&&(im=document.all,vs.call(im)===vs.call(document.all)&&(al=function(t){if((hA||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=vs.call(t);return(r===uA||r===fA||r===lA||r===oA)&&t("")==null}catch{}return!1}));var im;am.exports=Yi?function(t){if(al(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Yi(t,null,il)}catch(r){if(r!==ms)return!1}return!ol(t)&&nl(t)}:function(t){if(al(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(cA)return nl(t);if(ol(t))return!1;var r=vs.call(t);return r!==aA&&r!==sA&&!/^\[object HTML/.test(r)?!1:nl(t)}});var sl=He((lD,fm)=>{"use strict";$();q();z();H();W();var pA=sm(),dA=Object.prototype.toString,um=Object.prototype.hasOwnProperty,yA=function(t,r,n){for(var o=0,a=t.length;o<a;o++)um.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},gA=function(t,r,n){for(var o=0,a=t.length;o<a;o++)n==null?r(t.charAt(o),o,t):r.call(n,t.charAt(o),o,t)},mA=function(t,r,n){for(var o in t)um.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},vA=function(t,r,n){if(!pA(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),dA.call(t)==="[object Array]"?yA(t,r,o):typeof t=="string"?gA(t,r,o):mA(t,r,o)};fm.exports=vA});var fl=He((gD,lm)=>{"use strict";$();q();z();H();W();var ul=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],wA=typeof globalThis>"u"?se:globalThis;lm.exports=function(){for(var t=[],r=0;r<ul.length;r++)typeof wA[ul[r]]=="function"&&(t[t.length]=ul[r]);return t}});var ll=He((ED,cm)=>{"use strict";$();q();z();H();W();var bA=Ur(),ws=bA("%Object.getOwnPropertyDescriptor%",!0);if(ws)try{ws([],"length")}catch{ws=null}cm.exports=ws});var pl=He((ID,gm)=>{"use strict";$();q();z();H();W();var hm=sl(),_A=fl(),hl=lr(),EA=hl("Object.prototype.toString"),pm=mn()(),bs=ll(),SA=typeof globalThis>"u"?se:globalThis,dm=_A(),AA=hl("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},RA=hl("String.prototype.slice"),ym={},cl=Object.getPrototypeOf;pm&&bs&&cl&&hm(dm,function(e){var t=new SA[e];if(Symbol.toStringTag in t){var r=cl(t),n=bs(r,Symbol.toStringTag);if(!n){var o=cl(r);n=bs(o,Symbol.toStringTag)}ym[e]=n.get}});var TA=function(t){var r=!1;return hm(ym,function(n,o){if(!r)try{r=n.call(t)===o}catch{}}),r};gm.exports=function(t){if(!t||typeof t!="object")return!1;if(!pm||!(Symbol.toStringTag in t)){var r=RA(EA(t),8,-1);return AA(dm,r)>-1}return bs?TA(t):!1}});var dl=He((kD,Em)=>{"use strict";$();q();z();H();W();var OA=Zi(),IA=lr(),_m=Ur(),xA=pl(),mm=_m("ArrayBuffer",!0),vm=_m("Float32Array",!0),_s=IA("ArrayBuffer.prototype.byteLength",!0),wm=mm&&!_s&&new mm().slice,bm=wm&&OA(wm);Em.exports=_s||bm?function(t){if(!t||typeof t!="object")return!1;try{return _s?_s(t):bm(t,0),!0}catch{return!1}}:vm?function(t){try{return new vm(t).buffer===t&&!xA(t)}catch(r){return typeof t=="object"&&r.name==="RangeError"}}:function(t){return!1}});var Am=He((jD,Sm)=>{"use strict";$();q();z();H();W();var BA=Date.prototype.getDay,CA=function(t){try{return BA.call(t),!0}catch{return!1}},NA=Object.prototype.toString,LA="[object Date]",kA=mn()();Sm.exports=function(t){return typeof t!="object"||t===null?!1:kA?CA(t):NA.call(t)===LA}});var xm=He((ZD,Im)=>{"use strict";$();q();z();H();W();var yl=lr(),Rm=mn()(),Tm,Om,gl,ml;Rm&&(Tm=yl("Object.prototype.hasOwnProperty"),Om=yl("RegExp.prototype.exec"),gl={},Es=function(){throw gl},ml={toString:Es,valueOf:Es},typeof Symbol.toPrimitive=="symbol"&&(ml[Symbol.toPrimitive]=Es));var Es,FA=yl("Object.prototype.toString"),PA=Object.getOwnPropertyDescriptor,UA="[object RegExp]";Im.exports=Rm?function(t){if(!t||typeof t!="object")return!1;var r=PA(t,"lastIndex"),n=r&&Tm(r,"value");if(!n)return!1;try{Om(t,ml)}catch(o){return o===gl}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:FA(t)===UA}});var Nm=He((JD,Cm)=>{"use strict";$();q();z();H();W();var DA=lr(),Bm=DA("SharedArrayBuffer.prototype.byteLength",!0);Cm.exports=Bm?function(t){if(!t||typeof t!="object")return!1;try{return Bm(t),!0}catch{return!1}}:function(t){return!1}});var km=He((iM,Lm)=>{"use strict";$();q();z();H();W();var MA=Number.prototype.toString,jA=function(t){try{return MA.call(t),!0}catch{return!1}},$A=Object.prototype.toString,qA="[object Number]",zA=mn()();Lm.exports=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:zA?jA(t):$A.call(t)===qA}});var Um=He((lM,Pm)=>{"use strict";$();q();z();H();W();var Fm=lr(),WA=Fm("Boolean.prototype.toString"),HA=Fm("Object.prototype.toString"),ZA=function(t){try{return WA(t),!0}catch{return!1}},VA="[object Boolean]",GA=mn()();Pm.exports=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:GA&&Symbol.toStringTag in t?ZA(t):HA(t)===VA}});var $m=He((gM,vl)=>{"use strict";$();q();z();H();W();var YA=Object.prototype.toString,KA=ts()();KA?(Dm=Symbol.prototype.toString,Mm=/^Symbol\(.*\)$/,jm=function(t){return typeof t.valueOf()!="symbol"?!1:Mm.test(Dm.call(t))},vl.exports=function(t){if(typeof t=="symbol")return!0;if(YA.call(t)!=="[object Symbol]")return!1;try{return jm(t)}catch{return!1}}):vl.exports=function(t){return!1};var Dm,Mm,jm});var Wm=He((EM,zm)=>{"use strict";$();q();z();H();W();var qm=typeof BigInt<"u"&&BigInt;zm.exports=function(){return typeof qm=="function"&&typeof BigInt=="function"&&typeof qm(42)=="bigint"&&typeof BigInt(42)=="bigint"}});var Vm=He((IM,wl)=>{"use strict";$();q();z();H();W();var XA=Wm()();XA?(Hm=BigInt.prototype.valueOf,Zm=function(t){try{return Hm.call(t),!0}catch{}return!1},wl.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Zm(t)}):wl.exports=function(t){return!1};var Hm,Zm});var Ym=He((kM,Gm)=>{"use strict";$();q();z();H();W();var JA=jf(),QA=km(),eR=Um(),tR=$m(),rR=Vm();Gm.exports=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(JA(t))return"String";if(QA(t))return"Number";if(eR(t))return"Boolean";if(tR(t))return"Symbol";if(rR(t))return"BigInt"}});var Jm=He((jM,Xm)=>{"use strict";$();q();z();H();W();var Ss=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Km=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,As;Ss||(As=function(t){return!1});var _l=Ss?Ss.prototype.has:null,bl=Km?Km.prototype.has:null;!As&&!_l&&(As=function(t){return!1});Xm.exports=As||function(t){if(!t||typeof t!="object")return!1;try{if(_l.call(t,_l),bl)try{bl.call(t,bl)}catch{return!0}return t instanceof Ss}catch{}return!1}});var e0=He((ZM,Sl)=>{"use strict";$();q();z();H();W();var nR=Ur(),Qm=lr(),iR=nR("%WeakSet%",!0),El=Qm("WeakSet.prototype.has",!0);El?(Rs=Qm("WeakMap.prototype.has",!0),Sl.exports=function(t){if(!t||typeof t!="object")return!1;try{if(El(t,El),Rs)try{Rs(t,Rs)}catch{return!0}return t instanceof iR}catch{}return!1}):Sl.exports=function(t){return!1};var Rs});var r0=He((JM,t0)=>{"use strict";$();q();z();H();W();var oR=qf(),aR=Wf(),sR=Jm(),uR=e0();t0.exports=function(t){if(t&&typeof t=="object"){if(oR(t))return"Map";if(aR(t))return"Set";if(sR(t))return"WeakMap";if(uR(t))return"WeakSet"}return!1}});var f0=He((ij,u0)=>{"use strict";$();q();z();H();W();var i0=sl(),fR=fl(),o0=lr(),Al=ll(),lR=o0("Object.prototype.toString"),a0=mn()(),n0=typeof globalThis>"u"?se:globalThis,cR=fR(),hR=o0("String.prototype.slice"),s0={},Rl=Object.getPrototypeOf;a0&&Al&&Rl&&i0(cR,function(e){if(typeof n0[e]=="function"){var t=new n0[e];if(Symbol.toStringTag in t){var r=Rl(t),n=Al(r,Symbol.toStringTag);if(!n){var o=Rl(r);n=Al(o,Symbol.toStringTag)}s0[e]=n.get}}});var pR=function(t){var r=!1;return i0(s0,function(n,o){if(!r)try{var a=n.call(t);a===o&&(r=a)}catch{}}),r},dR=pl();u0.exports=function(t){return dR(t)?!a0||!(Symbol.toStringTag in t)?hR(lR(t),8,-1):pR(t):!1}});var h0=He((lj,c0)=>{"use strict";$();q();z();H();W();var yR=lr(),l0=yR("ArrayBuffer.prototype.byteLength",!0),gR=dl();c0.exports=function(t){return gR(t)?l0?l0(t):t.byteLength:NaN}});var Il=He((gj,P0)=>{"use strict";$();q();z();H();W();var L0=qy(),Xr=lr(),p0=Jy(),mR=Ur(),Ki=Gg(),vR=Uf(),d0=nm(),y0=Ef(),g0=Mf(),m0=dl(),v0=Am(),w0=xm(),b0=Nm(),_0=es(),E0=Ym(),S0=r0(),A0=f0(),R0=h0(),T0=Xr("SharedArrayBuffer.prototype.byteLength",!0),O0=Xr("Date.prototype.getTime"),Tl=Object.getPrototypeOf,I0=Xr("Object.prototype.toString"),Os=mR("%Set%",!0),Ol=Xr("Map.prototype.has",!0),Is=Xr("Map.prototype.get",!0),x0=Xr("Map.prototype.size",!0),xs=Xr("Set.prototype.add",!0),k0=Xr("Set.prototype.delete",!0),Bs=Xr("Set.prototype.has",!0),Ts=Xr("Set.prototype.size",!0);function B0(e,t,r,n){for(var o=Ki(e),a;(a=o.next())&&!a.done;)if(Dr(t,a.value,r,n))return k0(e,a.value),!0;return!1}function F0(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function wR(e,t,r,n,o,a){var i=F0(r);if(i!=null)return i;var f=Is(t,i),l=L0({},o,{strict:!1});return typeof f>"u"&&!Ol(t,i)||!Dr(n,f,l,a)?!1:!Ol(e,i)&&Dr(n,f,l,a)}function bR(e,t,r){var n=F0(r);return n??(Bs(t,n)&&!Bs(e,n))}function C0(e,t,r,n,o,a){for(var i=Ki(e),f,l;(f=i.next())&&!f.done;)if(l=f.value,Dr(r,l,o,a)&&Dr(n,Is(t,l),o,a))return k0(e,l),!0;return!1}function Dr(e,t,r,n){var o=r||{};if(o.strict?d0(e,t):e===t)return!0;var a=E0(e),i=E0(t);if(a!==i)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?d0(e,t):e==t;var f=n.has(e),l=n.has(t),c;if(f&&l){if(n.get(e)===n.get(t))return!0}else c={};return f||n.set(e,c),l||n.set(t,c),SR(e,t,o,n)}function N0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function _R(e,t,r,n){if(Ts(e)!==Ts(t))return!1;for(var o=Ki(e),a=Ki(t),i,f,l;(i=o.next())&&!i.done;)if(i.value&&typeof i.value=="object")l||(l=new Os),xs(l,i.value);else if(!Bs(t,i.value)){if(r.strict||!bR(e,t,i.value))return!1;l||(l=new Os),xs(l,i.value)}if(l){for(;(f=a.next())&&!f.done;)if(f.value&&typeof f.value=="object"){if(!B0(l,f.value,r.strict,n))return!1}else if(!r.strict&&!Bs(e,f.value)&&!B0(l,f.value,r.strict,n))return!1;return Ts(l)===0}return!0}function ER(e,t,r,n){if(x0(e)!==x0(t))return!1;for(var o=Ki(e),a=Ki(t),i,f,l,c,d,y;(i=o.next())&&!i.done;)if(c=i.value[0],d=i.value[1],c&&typeof c=="object")l||(l=new Os),xs(l,c);else if(y=Is(t,c),typeof y>"u"&&!Ol(t,c)||!Dr(d,y,r,n)){if(r.strict||!wR(e,t,c,d,r,n))return!1;l||(l=new Os),xs(l,c)}if(l){for(;(f=a.next())&&!f.done;)if(c=f.value[0],y=f.value[1],c&&typeof c=="object"){if(!C0(l,e,c,y,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Dr(Is(e,c),y,r,n))&&!C0(l,e,c,y,L0({},r,{strict:!1}),n))return!1;return Ts(l)===0}return!0}function SR(e,t,r,n){var o,a;if(typeof e!=typeof t||e==null||t==null||I0(e)!==I0(t)||y0(e)!==y0(t))return!1;var i=g0(e),f=g0(t);if(i!==f)return!1;var l=e instanceof Error,c=t instanceof Error;if(l!==c||(l||c)&&(e.name!==t.name||e.message!==t.message))return!1;var d=w0(e),y=w0(t);if(d!==y||(d||y)&&(e.source!==t.source||p0(e)!==p0(t)))return!1;var v=v0(e),_=v0(t);if(v!==_||(v||_)&&O0(e)!==O0(t)||r.strict&&Tl&&Tl(e)!==Tl(t))return!1;var h=A0(e),w=A0(t);if((h||w)&&h!==w)return!1;var S=N0(e),T=N0(t);if(S!==T)return!1;if(S||T){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var C=m0(e),M=m0(t);if(C!==M)return!1;if(C||M)return R0(e)!==R0(t)?!1:typeof Uint8Array=="function"&&Dr(new Uint8Array(e),new Uint8Array(t),r,n);var D=b0(e),V=b0(t);if(D!==V)return!1;if(D||V)return T0(e)!==T0(t)?!1:typeof Uint8Array=="function"&&Dr(new Uint8Array(e),new Uint8Array(t),r,n);if(typeof e!=typeof t)return!1;var F=_0(e),N=_0(t);if(F.length!==N.length)return!1;for(F.sort(),N.sort(),o=F.length-1;o>=0;o--)if(F[o]!=N[o])return!1;for(o=F.length-1;o>=0;o--)if(a=F[o],!Dr(e[a],t[a],r,n))return!1;var x=S0(e),G=S0(t);return x!==G?!1:x==="Set"||G==="Set"?_R(e,t,r,n):x==="Map"?ER(e,t,r,n):!0}P0.exports=function(t,r,n){return Dr(t,r,n,vR())}});var j0=He((Ej,M0)=>{"use strict";$();q();z();H();W();var AR=function(t){return RR(t)&&!TR(t)};function RR(e){return!!e&&typeof e=="object"}function TR(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||xR(e)}var OR=typeof Symbol=="function"&&Symbol.for,IR=OR?Symbol.for("react.element"):60103;function xR(e){return e.$$typeof===IR}function BR(e){return Array.isArray(e)?[]:{}}function Yo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xi(BR(e),e,t):e}function CR(e,t,r){return e.concat(t).map(function(n){return Yo(n,r)})}function NR(e,t){if(!t.customMerge)return Xi;var r=t.customMerge(e);return typeof r=="function"?r:Xi}function LR(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function U0(e){return Object.keys(e).concat(LR(e))}function D0(e,t){try{return t in e}catch{return!1}}function kR(e,t){return D0(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function FR(e,t,r){var n={};return r.isMergeableObject(e)&&U0(e).forEach(function(o){n[o]=Yo(e[o],r)}),U0(t).forEach(function(o){kR(e,o)||(D0(e,o)&&r.isMergeableObject(t[o])?n[o]=NR(o,r)(e[o],t[o],r):n[o]=Yo(t[o],r))}),n}function Xi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||CR,r.isMergeableObject=r.isMergeableObject||AR,r.cloneUnlessOtherwiseSpecified=Yo;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):FR(e,t,r):Yo(t,r)}Xi.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Xi(n,o,r)},{})};var PR=Xi;M0.exports=PR});var q0=He((kj,$0)=>{$();q();z();H();W();$0.exports=typeof self=="object"?self.FormData:window.FormData});var ev=He((J0,Q0)=>{$();q();z();H();W();(function(e){var t;typeof J0=="object"?Q0.exports=e():typeof define=="function"&&define.amd?define(e):(typeof window<"u"?t=window:typeof se<"u"?t=se:typeof self<"u"&&(t=self),t.objectHash=e())})(function(){return function e(t,r,n){function o(f,l){if(!r[f]){if(!t[f]){var c=typeof Ro=="function"&&Ro;if(!l&&c)return c(f,!0);if(a)return a(f,!0);throw new Error("Cannot find module '"+f+"'")}l=r[f]={exports:{}},t[f][0].call(l.exports,function(d){var y=t[f][1][d];return o(y||d)},l,l.exports,e,t,r,n)}return r[f].exports}for(var a=typeof Ro=="function"&&Ro,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){"use strict";var v=e("crypto");function _(D,V){V=S(D,V);var F;return(F=V.algorithm!=="passthrough"?v.createHash(V.algorithm):new M).write===void 0&&(F.write=F.update,F.end=F.update),C(V,F).dispatch(D),F.update||F.end(""),F.digest?F.digest(V.encoding==="buffer"?void 0:V.encoding):(D=F.read(),V.encoding!=="buffer"?D.toString(V.encoding):D)}(r=t.exports=_).sha1=function(D){return _(D)},r.keys=function(D){return _(D,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(D){return _(D,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(D){return _(D,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=v.getHashes?v.getHashes().slice():["sha1","md5"],w=(h.push("passthrough"),["buffer","hex","binary","base64"]);function S(D,V){var F={};if(F.algorithm=(V=V||{}).algorithm||"sha1",F.encoding=V.encoding||"hex",F.excludeValues=!!V.excludeValues,F.algorithm=F.algorithm.toLowerCase(),F.encoding=F.encoding.toLowerCase(),F.ignoreUnknown=V.ignoreUnknown===!0,F.respectType=V.respectType!==!1,F.respectFunctionNames=V.respectFunctionNames!==!1,F.respectFunctionProperties=V.respectFunctionProperties!==!1,F.unorderedArrays=V.unorderedArrays===!0,F.unorderedSets=V.unorderedSets!==!1,F.unorderedObjects=V.unorderedObjects!==!1,F.replacer=V.replacer||void 0,F.excludeKeys=V.excludeKeys||void 0,D===void 0)throw new Error("Object argument required.");for(var N=0;N<h.length;++N)h[N].toLowerCase()===F.algorithm.toLowerCase()&&(F.algorithm=h[N]);if(h.indexOf(F.algorithm)===-1)throw new Error('Algorithm "'+F.algorithm+'" not supported. supported values: '+h.join(", "));if(w.indexOf(F.encoding)===-1&&F.algorithm!=="passthrough")throw new Error('Encoding "'+F.encoding+'" not supported. supported values: '+w.join(", "));return F}function T(D){if(typeof D=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(D))!=null}function C(D,V,F){F=F||[];function N(x){return V.update?V.update(x,"utf8"):V.write(x,"utf8")}return{dispatch:function(x){return this["_"+((x=D.replacer?D.replacer(x):x)===null?"null":typeof x)](x)},_object:function(x){var G,Q=Object.prototype.toString.call(x),Te=/\[object (.*)\]/i.exec(Q);if(Te=(Te=Te?Te[1]:"unknown:["+Q+"]").toLowerCase(),0<=(Q=F.indexOf(x)))return this.dispatch("[CIRCULAR:"+Q+"]");if(F.push(x),a!==void 0&&a.isBuffer&&a.isBuffer(x))return N("buffer:"),N(x);if(Te==="object"||Te==="function"||Te==="asyncfunction")return Q=Object.keys(x),D.unorderedObjects&&(Q=Q.sort()),D.respectType===!1||T(x)||Q.splice(0,0,"prototype","__proto__","constructor"),D.excludeKeys&&(Q=Q.filter(function(K){return!D.excludeKeys(K)})),N("object:"+Q.length+":"),G=this,Q.forEach(function(K){G.dispatch(K),N(":"),D.excludeValues||G.dispatch(x[K]),N(",")});if(!this["_"+Te]){if(D.ignoreUnknown)return N("["+Te+"]");throw new Error('Unknown object type "'+Te+'"')}this["_"+Te](x)},_array:function(x,K){K=K!==void 0?K:D.unorderedArrays!==!1;var Q=this;if(N("array:"+x.length+":"),!K||x.length<=1)return x.forEach(function(re){return Q.dispatch(re)});var Te=[],K=x.map(function(re){var ae=new M,Ce=F.slice();return C(D,ae,Ce).dispatch(re),Te=Te.concat(Ce.slice(F.length)),ae.read().toString()});return F=F.concat(Te),K.sort(),this._array(K,!1)},_date:function(x){return N("date:"+x.toJSON())},_symbol:function(x){return N("symbol:"+x.toString())},_error:function(x){return N("error:"+x.toString())},_boolean:function(x){return N("bool:"+x.toString())},_string:function(x){N("string:"+x.length+":"),N(x.toString())},_function:function(x){N("fn:"),T(x)?this.dispatch("[native]"):this.dispatch(x.toString()),D.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(x.name)),D.respectFunctionProperties&&this._object(x)},_number:function(x){return N("number:"+x.toString())},_xml:function(x){return N("xml:"+x.toString())},_null:function(){return N("Null")},_undefined:function(){return N("Undefined")},_regexp:function(x){return N("regex:"+x.toString())},_uint8array:function(x){return N("uint8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint8clampedarray:function(x){return N("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(x))},_int8array:function(x){return N("int8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint16array:function(x){return N("uint16array:"),this.dispatch(Array.prototype.slice.call(x))},_int16array:function(x){return N("int16array:"),this.dispatch(Array.prototype.slice.call(x))},_uint32array:function(x){return N("uint32array:"),this.dispatch(Array.prototype.slice.call(x))},_int32array:function(x){return N("int32array:"),this.dispatch(Array.prototype.slice.call(x))},_float32array:function(x){return N("float32array:"),this.dispatch(Array.prototype.slice.call(x))},_float64array:function(x){return N("float64array:"),this.dispatch(Array.prototype.slice.call(x))},_arraybuffer:function(x){return N("arraybuffer:"),this.dispatch(new Uint8Array(x))},_url:function(x){return N("url:"+x.toString())},_map:function(x){return N("map:"),x=Array.from(x),this._array(x,D.unorderedSets!==!1)},_set:function(x){return N("set:"),x=Array.from(x),this._array(x,D.unorderedSets!==!1)},_file:function(x){return N("file:"),this.dispatch([x.name,x.size,x.type,x.lastModfied])},_blob:function(){if(D.ignoreUnknown)return N("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
`)},_domwindow:function(){return N("domwindow")},_bigint:function(x){return N("bigint:"+x.toString())},_process:function(){return N("process")},_timer:function(){return N("timer")},_pipe:function(){return N("pipe")},_tcp:function(){return N("tcp")},_udp:function(){return N("udp")},_tty:function(){return N("tty")},_statwatcher:function(){return N("statwatcher")},_securecontext:function(){return N("securecontext")},_connection:function(){return N("connection")},_zlib:function(){return N("zlib")},_context:function(){return N("context")},_nodescript:function(){return N("nodescript")},_httpparser:function(){return N("httpparser")},_dataview:function(){return N("dataview")},_signal:function(){return N("signal")},_fsevent:function(){return N("fsevent")},_tlswrap:function(){return N("tlswrap")}}}function M(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}r.writeToStream=function(D,V,F){return F===void 0&&(F=V,V={}),C(V=S(D,V),F).dispatch(D)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){(function(v){"use strict";var _=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),w="/".charCodeAt(0),S="0".charCodeAt(0),T="a".charCodeAt(0),C="A".charCodeAt(0),M="-".charCodeAt(0),D="_".charCodeAt(0);function V(F){return F=F.charCodeAt(0),F===h||F===M?62:F===w||F===D?63:F<S?-1:F<S+10?F-S+26+26:F<C+26?F-C:F<T+26?F-T+26:void 0}v.toByteArray=function(F){var N,x;if(0<F.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var G=F.length,G=F.charAt(G-2)==="="?2:F.charAt(G-1)==="="?1:0,Q=new _(3*F.length/4-G),Te=0<G?F.length-4:F.length,K=0;function re(ae){Q[K++]=ae}for(N=0;N<Te;N+=4,0)re((16711680&(x=V(F.charAt(N))<<18|V(F.charAt(N+1))<<12|V(F.charAt(N+2))<<6|V(F.charAt(N+3))))>>16),re((65280&x)>>8),re(255&x);return G==2?re(255&(x=V(F.charAt(N))<<2|V(F.charAt(N+1))>>4)):G==1&&(re((x=V(F.charAt(N))<<10|V(F.charAt(N+1))<<4|V(F.charAt(N+2))>>2)>>8&255),re(255&x)),Q},v.fromByteArray=function(F){var N,x,G,Q,Te=F.length%3,K="";function re(ae){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ae)}for(N=0,G=F.length-Te;N<G;N+=3)x=(F[N]<<16)+(F[N+1]<<8)+F[N+2],K+=re((Q=x)>>18&63)+re(Q>>12&63)+re(Q>>6&63)+re(63&Q);switch(Te){case 1:K=(K+=re((x=F[F.length-1])>>2))+re(x<<4&63)+"==";break;case 2:K=(K=(K+=re((x=(F[F.length-2]<<8)+F[F.length-1])>>10))+re(x>>4&63))+re(x<<2&63)+"="}return K}})(r===void 0?this.base64js={}:r)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,r){(function(n,o,h,i,f,l,c,d,y){var v=e("base64-js"),_=e("ieee754");function h(A,O,Y){if(!(this instanceof h))return new h(A,O,Y);var fe,ge,k,Z,Se=typeof A;if(O==="base64"&&Se=="string")for(A=(Z=A).trim?Z.trim():Z.replace(/^\s+|\s+$/g,"");A.length%4!=0;)A+="=";if(Se=="number")fe=Ne(A);else if(Se=="string")fe=h.byteLength(A,O);else{if(Se!="object")throw new Error("First argument needs to be a number, array or string.");fe=Ne(A.length)}if(h._useTypedArrays?ge=h._augment(new Uint8Array(fe)):((ge=this).length=fe,ge._isBuffer=!0),h._useTypedArrays&&typeof A.byteLength=="number")ge._set(A);else if(ne(Z=A)||h.isBuffer(Z)||Z&&typeof Z=="object"&&typeof Z.length=="number")for(k=0;k<fe;k++)h.isBuffer(A)?ge[k]=A.readUInt8(k):ge[k]=A[k];else if(Se=="string")ge.write(A,0,O);else if(Se=="number"&&!h._useTypedArrays&&!Y)for(k=0;k<fe;k++)ge[k]=0;return ge}function w(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k=[],Z=0;Z<ge.length;Z++)k.push(255&ge.charCodeAt(Z));return k}(O),A,Y,fe)}function S(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k,Z,Se=[],ke=0;ke<ge.length;ke++)Z=ge.charCodeAt(ke),k=Z>>8,Z=Z%256,Se.push(Z),Se.push(k);return Se}(O),A,Y,fe)}function T(A,O,Y){var fe="";Y=Math.min(A.length,Y);for(var ge=O;ge<Y;ge++)fe+=String.fromCharCode(A[ge]);return fe}function C(A,O,Y,k){k||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+1<A.length,"Trying to read beyond buffer length"));var ge,k=A.length;if(!(k<=O))return Y?(ge=A[O],O+1<k&&(ge|=A[O+1]<<8)):(ge=A[O]<<8,O+1<k&&(ge|=A[O+1])),ge}function M(A,O,Y,k){k||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+3<A.length,"Trying to read beyond buffer length"));var ge,k=A.length;if(!(k<=O))return Y?(O+2<k&&(ge=A[O+2]<<16),O+1<k&&(ge|=A[O+1]<<8),ge|=A[O],O+3<k&&(ge+=A[O+3]<<24>>>0)):(O+1<k&&(ge=A[O+1]<<16),O+2<k&&(ge|=A[O+2]<<8),O+3<k&&(ge|=A[O+3]),ge+=A[O]<<24>>>0),ge}function D(A,O,Y,fe){if(fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+1<A.length,"Trying to read beyond buffer length")),!(A.length<=O))return fe=C(A,O,Y,!0),32768&fe?-1*(65535-fe+1):fe}function V(A,O,Y,fe){if(fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+3<A.length,"Trying to read beyond buffer length")),!(A.length<=O))return fe=M(A,O,Y,!0),2147483648&fe?-1*(4294967295-fe+1):fe}function F(A,O,Y,fe){return fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O+3<A.length,"Trying to read beyond buffer length")),_.read(A,O,Y,23,4)}function N(A,O,Y,fe){return fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O+7<A.length,"Trying to read beyond buffer length")),_.read(A,O,Y,52,8)}function x(A,O,Y,fe,ge){if(ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+1<A.length,"trying to write beyond buffer length"),je(O,65535)),ge=A.length,!(ge<=Y))for(var k=0,Z=Math.min(ge-Y,2);k<Z;k++)A[Y+k]=(O&255<<8*(fe?k:1-k))>>>8*(fe?k:1-k)}function G(A,O,Y,fe,ge){if(ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"trying to write beyond buffer length"),je(O,4294967295)),ge=A.length,!(ge<=Y))for(var k=0,Z=Math.min(ge-Y,4);k<Z;k++)A[Y+k]=O>>>8*(fe?k:3-k)&255}function Q(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+1<A.length,"Trying to write beyond buffer length"),Je(O,32767,-32768)),A.length<=Y||x(A,0<=O?O:65535+O+1,Y,fe,ge)}function Te(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"Trying to write beyond buffer length"),Je(O,2147483647,-2147483648)),A.length<=Y||G(A,0<=O?O:4294967295+O+1,Y,fe,ge)}function K(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"Trying to write beyond buffer length"),Ve(O,34028234663852886e22,-34028234663852886e22)),A.length<=Y||_.write(A,O,Y,fe,23,4)}function re(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+7<A.length,"Trying to write beyond buffer length"),Ve(O,17976931348623157e292,-17976931348623157e292)),A.length<=Y||_.write(A,O,Y,fe,52,8)}r.Buffer=h,r.SlowBuffer=h,r.INSPECT_MAX_BYTES=50,h.poolSize=8192,h._useTypedArrays=function(){try{var A=new ArrayBuffer(0),O=new Uint8Array(A);return O.foo=function(){return 42},O.foo()===42&&typeof O.subarray=="function"}catch{return!1}}(),h.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.isBuffer=function(A){return!(A==null||!A._isBuffer)},h.byteLength=function(A,O){var Y;switch(A+="",O||"utf8"){case"hex":Y=A.length/2;break;case"utf8":case"utf-8":Y=ye(A).length;break;case"ascii":case"binary":case"raw":Y=A.length;break;case"base64":Y=me(A).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=2*A.length;break;default:throw new Error("Unknown encoding")}return Y},h.concat=function(A,O){if(xe(ne(A),`Usage: Buffer.concat(list, [totalLength])
|
|
list should be an Array.`),A.length===0)return new h(0);if(A.length===1)return A[0];if(typeof O!="number")for(ge=O=0;ge<A.length;ge++)O+=A[ge].length;for(var Y=new h(O),fe=0,ge=0;ge<A.length;ge++){var k=A[ge];k.copy(Y,fe),fe+=k.length}return Y},h.prototype.write=function(A,O,Y,fe){isFinite(O)?isFinite(Y)||(fe=Y,Y=void 0):(ke=fe,fe=O,O=Y,Y=ke),O=Number(O)||0;var ge,k,Z,Se,ke=this.length-O;switch((!Y||ke<(Y=Number(Y)))&&(Y=ke),fe=String(fe||"utf8").toLowerCase()){case"hex":ge=function(De,$e,Me,ot){Me=Number(Me)||0;var nt=De.length-Me;(!ot||nt<(ot=Number(ot)))&&(ot=nt),xe((nt=$e.length)%2==0,"Invalid hex string"),nt/2<ot&&(ot=nt/2);for(var et=0;et<ot;et++){var bt=parseInt($e.substr(2*et,2),16);xe(!isNaN(bt),"Invalid hex string"),De[Me+et]=bt}return h._charsWritten=2*et,et}(this,A,O,Y);break;case"utf8":case"utf-8":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(ye(A),k,Z,Se);break;case"ascii":case"binary":ge=w(this,A,O,Y);break;case"base64":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(me(A),k,Z,Se);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ge=S(this,A,O,Y);break;default:throw new Error("Unknown encoding")}return ge},h.prototype.toString=function(A,O,Y){var fe,ge,k,Z,Se=this;if(A=String(A||"utf8").toLowerCase(),O=Number(O)||0,(Y=Y!==void 0?Number(Y):Se.length)===O)return"";switch(A){case"hex":fe=function(ke,De,$e){var Me=ke.length;(!De||De<0)&&(De=0),(!$e||$e<0||Me<$e)&&($e=Me);for(var ot="",nt=De;nt<$e;nt++)ot+=te(ke[nt]);return ot}(Se,O,Y);break;case"utf8":case"utf-8":fe=function(ke,De,$e){var Me="",ot="";$e=Math.min(ke.length,$e);for(var nt=De;nt<$e;nt++)ke[nt]<=127?(Me+=qe(ot)+String.fromCharCode(ke[nt]),ot=""):ot+="%"+ke[nt].toString(16);return Me+qe(ot)}(Se,O,Y);break;case"ascii":case"binary":fe=T(Se,O,Y);break;case"base64":ge=Se,Z=Y,fe=(k=O)===0&&Z===ge.length?v.fromByteArray(ge):v.fromByteArray(ge.slice(k,Z));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":fe=function(ke,De,$e){for(var Me=ke.slice(De,$e),ot="",nt=0;nt<Me.length;nt+=2)ot+=String.fromCharCode(Me[nt]+256*Me[nt+1]);return ot}(Se,O,Y);break;default:throw new Error("Unknown encoding")}return fe},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(A,O,Y,fe){if(O=O||0,(fe=fe||fe===0?fe:this.length)!==(Y=Y||0)&&A.length!==0&&this.length!==0){xe(Y<=fe,"sourceEnd < sourceStart"),xe(0<=O&&O<A.length,"targetStart out of bounds"),xe(0<=Y&&Y<this.length,"sourceStart out of bounds"),xe(0<=fe&&fe<=this.length,"sourceEnd out of bounds"),fe>this.length&&(fe=this.length);var ge=(fe=A.length-O<fe-Y?A.length-O+Y:fe)-Y;if(ge<100||!h._useTypedArrays)for(var k=0;k<ge;k++)A[k+O]=this[k+Y];else A._set(this.subarray(Y,Y+ge),O)}},h.prototype.slice=function(A,O){var Y=this.length;if(A=Ce(A,Y,0),O=Ce(O,Y,Y),h._useTypedArrays)return h._augment(this.subarray(A,O));for(var fe=O-A,ge=new h(fe,void 0,!0),k=0;k<fe;k++)ge[k]=this[k+A];return ge},h.prototype.get=function(A){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(A)},h.prototype.set=function(A,O){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(A,O)},h.prototype.readUInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return this[A]},h.prototype.readUInt16LE=function(A,O){return C(this,A,!0,O)},h.prototype.readUInt16BE=function(A,O){return C(this,A,!1,O)},h.prototype.readUInt32LE=function(A,O){return M(this,A,!0,O)},h.prototype.readUInt32BE=function(A,O){return M(this,A,!1,O)},h.prototype.readInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return 128&this[A]?-1*(255-this[A]+1):this[A]},h.prototype.readInt16LE=function(A,O){return D(this,A,!0,O)},h.prototype.readInt16BE=function(A,O){return D(this,A,!1,O)},h.prototype.readInt32LE=function(A,O){return V(this,A,!0,O)},h.prototype.readInt32BE=function(A,O){return V(this,A,!1,O)},h.prototype.readFloatLE=function(A,O){return F(this,A,!0,O)},h.prototype.readFloatBE=function(A,O){return F(this,A,!1,O)},h.prototype.readDoubleLE=function(A,O){return N(this,A,!0,O)},h.prototype.readDoubleBE=function(A,O){return N(this,A,!1,O)},h.prototype.writeUInt8=function(A,O,Y){Y||(xe(A!=null,"missing value"),xe(O!=null,"missing offset"),xe(O<this.length,"trying to write beyond buffer length"),je(A,255)),O>=this.length||(this[O]=A)},h.prototype.writeUInt16LE=function(A,O,Y){x(this,A,O,!0,Y)},h.prototype.writeUInt16BE=function(A,O,Y){x(this,A,O,!1,Y)},h.prototype.writeUInt32LE=function(A,O,Y){G(this,A,O,!0,Y)},h.prototype.writeUInt32BE=function(A,O,Y){G(this,A,O,!1,Y)},h.prototype.writeInt8=function(A,O,Y){Y||(xe(A!=null,"missing value"),xe(O!=null,"missing offset"),xe(O<this.length,"Trying to write beyond buffer length"),Je(A,127,-128)),O>=this.length||(0<=A?this.writeUInt8(A,O,Y):this.writeUInt8(255+A+1,O,Y))},h.prototype.writeInt16LE=function(A,O,Y){Q(this,A,O,!0,Y)},h.prototype.writeInt16BE=function(A,O,Y){Q(this,A,O,!1,Y)},h.prototype.writeInt32LE=function(A,O,Y){Te(this,A,O,!0,Y)},h.prototype.writeInt32BE=function(A,O,Y){Te(this,A,O,!1,Y)},h.prototype.writeFloatLE=function(A,O,Y){K(this,A,O,!0,Y)},h.prototype.writeFloatBE=function(A,O,Y){K(this,A,O,!1,Y)},h.prototype.writeDoubleLE=function(A,O,Y){re(this,A,O,!0,Y)},h.prototype.writeDoubleBE=function(A,O,Y){re(this,A,O,!1,Y)},h.prototype.fill=function(A,O,Y){if(O=O||0,Y=Y||this.length,xe(typeof(A=typeof(A=A||0)=="string"?A.charCodeAt(0):A)=="number"&&!isNaN(A),"value is not a number"),xe(O<=Y,"end < start"),Y!==O&&this.length!==0){xe(0<=O&&O<this.length,"start out of bounds"),xe(0<=Y&&Y<=this.length,"end out of bounds");for(var fe=O;fe<Y;fe++)this[fe]=A}},h.prototype.inspect=function(){for(var A=[],O=this.length,Y=0;Y<O;Y++)if(A[Y]=te(this[Y]),Y===r.INSPECT_MAX_BYTES){A[Y+1]="...";break}return"<Buffer "+A.join(" ")+">"},h.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var A=new Uint8Array(this.length),O=0,Y=A.length;O<Y;O+=1)A[O]=this[O];return A.buffer};var ae=h.prototype;function Ce(A,O,Y){return typeof A!="number"?Y:O<=(A=~~A)?O:0<=A||0<=(A+=O)?A:0}function Ne(A){return(A=~~Math.ceil(+A))<0?0:A}function ne(A){return(Array.isArray||function(O){return Object.prototype.toString.call(O)==="[object Array]"})(A)}function te(A){return A<16?"0"+A.toString(16):A.toString(16)}function ye(A){for(var O=[],Y=0;Y<A.length;Y++){var fe=A.charCodeAt(Y);if(fe<=127)O.push(A.charCodeAt(Y));else for(var ge=Y,k=(55296<=fe&&fe<=57343&&Y++,encodeURIComponent(A.slice(ge,Y+1)).substr(1).split("%")),Z=0;Z<k.length;Z++)O.push(parseInt(k[Z],16))}return O}function me(A){return v.toByteArray(A)}function Re(A,O,Y,fe){for(var ge=0;ge<fe&&!(ge+Y>=O.length||ge>=A.length);ge++)O[ge+Y]=A[ge];return ge}function qe(A){try{return decodeURIComponent(A)}catch{return String.fromCharCode(65533)}}function je(A,O){xe(typeof A=="number","cannot write a non-number as a number"),xe(0<=A,"specified a negative value for writing an unsigned value"),xe(A<=O,"value is larger than maximum value for type"),xe(Math.floor(A)===A,"value has a fractional component")}function Je(A,O,Y){xe(typeof A=="number","cannot write a non-number as a number"),xe(A<=O,"value larger than maximum allowed value"),xe(Y<=A,"value smaller than minimum allowed value"),xe(Math.floor(A)===A,"value has a fractional component")}function Ve(A,O,Y){xe(typeof A=="number","cannot write a non-number as a number"),xe(A<=O,"value larger than maximum allowed value"),xe(Y<=A,"value smaller than minimum allowed value")}function xe(A,O){if(!A)throw new Error(O||"Failed assertion")}h._augment=function(A){return A._isBuffer=!0,A._get=A.get,A._set=A.set,A.get=ae.get,A.set=ae.set,A.write=ae.write,A.toString=ae.toString,A.toLocaleString=ae.toString,A.toJSON=ae.toJSON,A.copy=ae.copy,A.slice=ae.slice,A.readUInt8=ae.readUInt8,A.readUInt16LE=ae.readUInt16LE,A.readUInt16BE=ae.readUInt16BE,A.readUInt32LE=ae.readUInt32LE,A.readUInt32BE=ae.readUInt32BE,A.readInt8=ae.readInt8,A.readInt16LE=ae.readInt16LE,A.readInt16BE=ae.readInt16BE,A.readInt32LE=ae.readInt32LE,A.readInt32BE=ae.readInt32BE,A.readFloatLE=ae.readFloatLE,A.readFloatBE=ae.readFloatBE,A.readDoubleLE=ae.readDoubleLE,A.readDoubleBE=ae.readDoubleBE,A.writeUInt8=ae.writeUInt8,A.writeUInt16LE=ae.writeUInt16LE,A.writeUInt16BE=ae.writeUInt16BE,A.writeUInt32LE=ae.writeUInt32LE,A.writeUInt32BE=ae.writeUInt32BE,A.writeInt8=ae.writeInt8,A.writeInt16LE=ae.writeInt16LE,A.writeInt16BE=ae.writeInt16BE,A.writeInt32LE=ae.writeInt32LE,A.writeInt32BE=ae.writeInt32BE,A.writeFloatLE=ae.writeFloatLE,A.writeFloatBE=ae.writeFloatBE,A.writeDoubleLE=ae.writeDoubleLE,A.writeDoubleBE=ae.writeDoubleBE,A.fill=ae.fill,A.inspect=ae.inspect,A.toArrayBuffer=ae.toArrayBuffer,A}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,r){(function(n,o,v,i,f,l,c,d,y){var v=e("buffer").Buffer,_=4,h=new v(_);h.fill(0),t.exports={hash:function(w,S,T,C){for(var M=S(function(x,G){x.length%_!=0&&(Q=x.length+(_-x.length%_),x=v.concat([x,h],Q));for(var Q,Te=[],K=G?x.readInt32BE:x.readInt32LE,re=0;re<x.length;re+=_)Te.push(K.call(x,re));return Te}(w=v.isBuffer(w)?w:new v(w),C),8*w.length),S=C,D=new v(T),V=S?D.writeInt32BE:D.writeInt32LE,F=0;F<M.length;F++)V.call(D,M[F],4*F,!0);return D}}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,r){(function(n,o,v,i,f,l,c,d,y){var v=e("buffer").Buffer,_=e("./sha"),h=e("./sha256"),w=e("./rng"),S={sha1:_,sha256:h,md5:e("./md5")},T=64,C=new v(T);function M(x,G){var Q=S[x=x||"sha1"],Te=[];return Q||D("algorithm:",x,"is not yet supported"),{update:function(K){return v.isBuffer(K)||(K=new v(K)),Te.push(K),K.length,this},digest:function(K){var re=v.concat(Te),re=G?function(ae,Ce,Ne){v.isBuffer(Ce)||(Ce=new v(Ce)),v.isBuffer(Ne)||(Ne=new v(Ne)),Ce.length>T?Ce=ae(Ce):Ce.length<T&&(Ce=v.concat([Ce,C],T));for(var ne=new v(T),te=new v(T),ye=0;ye<T;ye++)ne[ye]=54^Ce[ye],te[ye]=92^Ce[ye];return Ne=ae(v.concat([ne,Ne])),ae(v.concat([te,Ne]))}(Q,G,re):Q(re);return Te=null,K?re.toString(K):re}}}function D(){var x=[].slice.call(arguments).join(" ");throw new Error([x,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
`))}C.fill(0),r.createHash=function(x){return M(x)},r.createHmac=M,r.randomBytes=function(x,G){if(!G||!G.call)return new v(w(x));try{G.call(this,void 0,new v(w(x)))}catch(Q){G(Q)}};var V,F=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],N=function(x){r[x]=function(){D("sorry,",x,"is not implemented yet")}};for(V in F)N(F[V],V)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v=e("./helpers");function _(D,V){D[V>>5]|=128<<V%32,D[14+(V+64>>>9<<4)]=V;for(var F=1732584193,N=-271733879,x=-1732584194,G=271733878,Q=0;Q<D.length;Q+=16){var Te=F,K=N,re=x,ae=G,F=w(F,N,x,G,D[Q+0],7,-680876936),G=w(G,F,N,x,D[Q+1],12,-389564586),x=w(x,G,F,N,D[Q+2],17,606105819),N=w(N,x,G,F,D[Q+3],22,-1044525330);F=w(F,N,x,G,D[Q+4],7,-176418897),G=w(G,F,N,x,D[Q+5],12,1200080426),x=w(x,G,F,N,D[Q+6],17,-1473231341),N=w(N,x,G,F,D[Q+7],22,-45705983),F=w(F,N,x,G,D[Q+8],7,1770035416),G=w(G,F,N,x,D[Q+9],12,-1958414417),x=w(x,G,F,N,D[Q+10],17,-42063),N=w(N,x,G,F,D[Q+11],22,-1990404162),F=w(F,N,x,G,D[Q+12],7,1804603682),G=w(G,F,N,x,D[Q+13],12,-40341101),x=w(x,G,F,N,D[Q+14],17,-1502002290),F=S(F,N=w(N,x,G,F,D[Q+15],22,1236535329),x,G,D[Q+1],5,-165796510),G=S(G,F,N,x,D[Q+6],9,-1069501632),x=S(x,G,F,N,D[Q+11],14,643717713),N=S(N,x,G,F,D[Q+0],20,-373897302),F=S(F,N,x,G,D[Q+5],5,-701558691),G=S(G,F,N,x,D[Q+10],9,38016083),x=S(x,G,F,N,D[Q+15],14,-660478335),N=S(N,x,G,F,D[Q+4],20,-405537848),F=S(F,N,x,G,D[Q+9],5,568446438),G=S(G,F,N,x,D[Q+14],9,-1019803690),x=S(x,G,F,N,D[Q+3],14,-187363961),N=S(N,x,G,F,D[Q+8],20,1163531501),F=S(F,N,x,G,D[Q+13],5,-1444681467),G=S(G,F,N,x,D[Q+2],9,-51403784),x=S(x,G,F,N,D[Q+7],14,1735328473),F=T(F,N=S(N,x,G,F,D[Q+12],20,-1926607734),x,G,D[Q+5],4,-378558),G=T(G,F,N,x,D[Q+8],11,-2022574463),x=T(x,G,F,N,D[Q+11],16,1839030562),N=T(N,x,G,F,D[Q+14],23,-35309556),F=T(F,N,x,G,D[Q+1],4,-1530992060),G=T(G,F,N,x,D[Q+4],11,1272893353),x=T(x,G,F,N,D[Q+7],16,-155497632),N=T(N,x,G,F,D[Q+10],23,-1094730640),F=T(F,N,x,G,D[Q+13],4,681279174),G=T(G,F,N,x,D[Q+0],11,-358537222),x=T(x,G,F,N,D[Q+3],16,-722521979),N=T(N,x,G,F,D[Q+6],23,76029189),F=T(F,N,x,G,D[Q+9],4,-640364487),G=T(G,F,N,x,D[Q+12],11,-421815835),x=T(x,G,F,N,D[Q+15],16,530742520),F=C(F,N=T(N,x,G,F,D[Q+2],23,-995338651),x,G,D[Q+0],6,-198630844),G=C(G,F,N,x,D[Q+7],10,1126891415),x=C(x,G,F,N,D[Q+14],15,-1416354905),N=C(N,x,G,F,D[Q+5],21,-57434055),F=C(F,N,x,G,D[Q+12],6,1700485571),G=C(G,F,N,x,D[Q+3],10,-1894986606),x=C(x,G,F,N,D[Q+10],15,-1051523),N=C(N,x,G,F,D[Q+1],21,-2054922799),F=C(F,N,x,G,D[Q+8],6,1873313359),G=C(G,F,N,x,D[Q+15],10,-30611744),x=C(x,G,F,N,D[Q+6],15,-1560198380),N=C(N,x,G,F,D[Q+13],21,1309151649),F=C(F,N,x,G,D[Q+4],6,-145523070),G=C(G,F,N,x,D[Q+11],10,-1120210379),x=C(x,G,F,N,D[Q+2],15,718787259),N=C(N,x,G,F,D[Q+9],21,-343485551),F=M(F,Te),N=M(N,K),x=M(x,re),G=M(G,ae)}return Array(F,N,x,G)}function h(D,V,F,N,x,G){return M((V=M(M(V,D),M(N,G)))<<x|V>>>32-x,F)}function w(D,V,F,N,x,G,Q){return h(V&F|~V&N,D,V,x,G,Q)}function S(D,V,F,N,x,G,Q){return h(V&N|F&~N,D,V,x,G,Q)}function T(D,V,F,N,x,G,Q){return h(V^F^N,D,V,x,G,Q)}function C(D,V,F,N,x,G,Q){return h(F^(V|~N),D,V,x,G,Q)}function M(D,V){var F=(65535&D)+(65535&V);return(D>>16)+(V>>16)+(F>>16)<<16|65535&F}t.exports=function(D){return v.hash(D,_,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v;t.exports=v||function(_){for(var h,w=new Array(_),S=0;S<_;S++)!(3&S)&&(h=4294967296*Math.random()),w[S]=h>>>((3&S)<<3)&255;return w}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v=e("./helpers");function _(S,T){S[T>>5]|=128<<24-T%32,S[15+(T+64>>9<<4)]=T;for(var C,M,D,V=Array(80),F=1732584193,N=-271733879,x=-1732584194,G=271733878,Q=-1009589776,Te=0;Te<S.length;Te+=16){for(var K=F,re=N,ae=x,Ce=G,Ne=Q,ne=0;ne<80;ne++){V[ne]=ne<16?S[Te+ne]:w(V[ne-3]^V[ne-8]^V[ne-14]^V[ne-16],1);var te=h(h(w(F,5),(te=N,M=x,D=G,(C=ne)<20?te&M|~te&D:!(C<40)&&C<60?te&M|te&D|M&D:te^M^D)),h(h(Q,V[ne]),(C=ne)<20?1518500249:C<40?1859775393:C<60?-1894007588:-899497514)),Q=G,G=x,x=w(N,30),N=F,F=te}F=h(F,K),N=h(N,re),x=h(x,ae),G=h(G,Ce),Q=h(Q,Ne)}return Array(F,N,x,G,Q)}function h(S,T){var C=(65535&S)+(65535&T);return(S>>16)+(T>>16)+(C>>16)<<16|65535&C}function w(S,T){return S<<T|S>>>32-T}t.exports=function(S){return v.hash(S,_,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){function v(T,C){var M=(65535&T)+(65535&C);return(T>>16)+(C>>16)+(M>>16)<<16|65535&M}function _(T,C){var M,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),V=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),F=new Array(64);T[C>>5]|=128<<24-C%32,T[15+(C+64>>9<<4)]=C;for(var N,x,G=0;G<T.length;G+=16){for(var Q=V[0],Te=V[1],K=V[2],re=V[3],ae=V[4],Ce=V[5],Ne=V[6],ne=V[7],te=0;te<64;te++)F[te]=te<16?T[te+G]:v(v(v((x=F[te-2],w(x,17)^w(x,19)^S(x,10)),F[te-7]),(x=F[te-15],w(x,7)^w(x,18)^S(x,3))),F[te-16]),M=v(v(v(v(ne,w(x=ae,6)^w(x,11)^w(x,25)),ae&Ce^~ae&Ne),D[te]),F[te]),N=v(w(N=Q,2)^w(N,13)^w(N,22),Q&Te^Q&K^Te&K),ne=Ne,Ne=Ce,Ce=ae,ae=v(re,M),re=K,K=Te,Te=Q,Q=v(M,N);V[0]=v(Q,V[0]),V[1]=v(Te,V[1]),V[2]=v(K,V[2]),V[3]=v(re,V[3]),V[4]=v(ae,V[4]),V[5]=v(Ce,V[5]),V[6]=v(Ne,V[6]),V[7]=v(ne,V[7])}return V}var h=e("./helpers"),w=function(T,C){return T>>>C|T<<32-C},S=function(T,C){return T>>>C};t.exports=function(T){return h.hash(T,_,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){r.read=function(v,_,h,w,G){var T,C,M=8*G-w-1,D=(1<<M)-1,V=D>>1,F=-7,N=h?G-1:0,x=h?-1:1,G=v[_+N];for(N+=x,T=G&(1<<-F)-1,G>>=-F,F+=M;0<F;T=256*T+v[_+N],N+=x,F-=8);for(C=T&(1<<-F)-1,T>>=-F,F+=w;0<F;C=256*C+v[_+N],N+=x,F-=8);if(T===0)T=1-V;else{if(T===D)return C?NaN:1/0*(G?-1:1);C+=Math.pow(2,w),T-=V}return(G?-1:1)*C*Math.pow(2,T-w)},r.write=function(v,_,h,w,S,Q){var C,M,D=8*Q-S-1,V=(1<<D)-1,F=V>>1,N=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=w?0:Q-1,G=w?1:-1,Q=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(M=isNaN(_)?1:0,C=V):(C=Math.floor(Math.log(_)/Math.LN2),_*(w=Math.pow(2,-C))<1&&(C--,w*=2),2<=(_+=1<=C+F?N/w:N*Math.pow(2,1-F))*w&&(C++,w/=2),V<=C+F?(M=0,C=V):1<=C+F?(M=(_*w-1)*Math.pow(2,S),C+=F):(M=_*Math.pow(2,F-1)*Math.pow(2,S),C=0));8<=S;v[h+x]=255&M,x+=G,M/=256,S-=8);for(C=C<<S|M,D+=S;0<D;v[h+x]=255&C,x+=G,C/=256,D-=8);v[h+x-G]|=128*Q}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v,_,h;function w(){}(n=t.exports={}).nextTick=(_=typeof window<"u"&&window.setImmediate,h=typeof window<"u"&&window.postMessage&&window.addEventListener,_?function(S){return window.setImmediate(S)}:h?(v=[],window.addEventListener("message",function(S){var T=S.source;T!==window&&T!==null||S.data!=="process-tick"||(S.stopPropagation(),0<v.length&&v.shift()())},!0),function(S){v.push(S),window.postMessage("process-tick","*")}):function(S){setTimeout(S,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=w,n.addListener=w,n.once=w,n.off=w,n.removeListener=w,n.removeAllListeners=w,n.emit=w,n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var rv=He((A7,tv)=>{$();q();z();H();W();tv.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}});var ov=He($s=>{"use strict";$();q();z();H();W();$s.byteLength=XR;$s.toByteArray=QR;$s.fromByteArray=rT;var on=[],Ir=[],KR=typeof Uint8Array<"u"?Uint8Array:Array,Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(hi=0,nv=Ml.length;hi<nv;++hi)on[hi]=Ml[hi],Ir[Ml.charCodeAt(hi)]=hi;var hi,nv;Ir["-".charCodeAt(0)]=62;Ir["_".charCodeAt(0)]=63;function iv(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function XR(e){var t=iv(e),r=t[0],n=t[1];return(r+n)*3/4-n}function JR(e,t,r){return(t+r)*3/4-r}function QR(e){var t,r=iv(e),n=r[0],o=r[1],a=new KR(JR(e,n,o)),i=0,f=o>0?n-4:n,l;for(l=0;l<f;l+=4)t=Ir[e.charCodeAt(l)]<<18|Ir[e.charCodeAt(l+1)]<<12|Ir[e.charCodeAt(l+2)]<<6|Ir[e.charCodeAt(l+3)],a[i++]=t>>16&255,a[i++]=t>>8&255,a[i++]=t&255;return o===2&&(t=Ir[e.charCodeAt(l)]<<2|Ir[e.charCodeAt(l+1)]>>4,a[i++]=t&255),o===1&&(t=Ir[e.charCodeAt(l)]<<10|Ir[e.charCodeAt(l+1)]<<4|Ir[e.charCodeAt(l+2)]>>2,a[i++]=t>>8&255,a[i++]=t&255),a}function eT(e){return on[e>>18&63]+on[e>>12&63]+on[e>>6&63]+on[e&63]}function tT(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(eT(n));return o.join("")}function rT(e){for(var t,r=e.length,n=r%3,o=[],a=16383,i=0,f=r-n;i<f;i+=a)o.push(tT(e,i,i+a>f?f:i+a));return n===1?(t=e[r-1],o.push(on[t>>2]+on[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(on[t>>10]+on[t>>4&63]+on[t<<2&63]+"=")),o.join("")}});var av=He(jl=>{$();q();z();H();W();jl.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)};jl.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128}});var Sv=He(lo=>{"use strict";$();q();z();H();W();var $l=ov(),uo=av(),sv=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lo.Buffer=Ie;lo.SlowBuffer=uT;lo.INSPECT_MAX_BYTES=50;var qs=2147483647;lo.kMaxLength=qs;Ie.TYPED_ARRAY_SUPPORT=nT();!Ie.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 nT(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(Ie.prototype,"parent",{enumerable:!0,get:function(){if(Ie.isBuffer(this))return this.buffer}});Object.defineProperty(Ie.prototype,"offset",{enumerable:!0,get:function(){if(Ie.isBuffer(this))return this.byteOffset}});function En(e){if(e>qs)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Ie.prototype),t}function Ie(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Hl(e)}return cv(e,t,r)}Ie.poolSize=8192;function cv(e,t,r){if(typeof e=="string")return oT(e,t);if(ArrayBuffer.isView(e))return aT(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(an(e,ArrayBuffer)||e&&an(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(an(e,SharedArrayBuffer)||e&&an(e.buffer,SharedArrayBuffer)))return zl(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Ie.from(n,t,r);let o=sT(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ie.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ie.from=function(e,t,r){return cv(e,t,r)};Object.setPrototypeOf(Ie.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ie,Uint8Array);function hv(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function iT(e,t,r){return hv(e),e<=0?En(e):t!==void 0?typeof r=="string"?En(e).fill(t,r):En(e).fill(t):En(e)}Ie.alloc=function(e,t,r){return iT(e,t,r)};function Hl(e){return hv(e),En(e<0?0:Zl(e)|0)}Ie.allocUnsafe=function(e){return Hl(e)};Ie.allocUnsafeSlow=function(e){return Hl(e)};function oT(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Ie.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=pv(e,t)|0,n=En(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function ql(e){let t=e.length<0?0:Zl(e.length)|0,r=En(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function aT(e){if(an(e,Uint8Array)){let t=new Uint8Array(e);return zl(t.buffer,t.byteOffset,t.byteLength)}return ql(e)}function zl(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,Ie.prototype),n}function sT(e){if(Ie.isBuffer(e)){let t=Zl(e.length)|0,r=En(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Gl(e.length)?En(0):ql(e);if(e.type==="Buffer"&&Array.isArray(e.data))return ql(e.data)}function Zl(e){if(e>=qs)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qs.toString(16)+" bytes");return e|0}function uT(e){return+e!=e&&(e=0),Ie.alloc(+e)}Ie.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Ie.prototype};Ie.compare=function(t,r){if(an(t,Uint8Array)&&(t=Ie.from(t,t.offset,t.byteLength)),an(r,Uint8Array)&&(r=Ie.from(r,r.offset,r.byteLength)),!Ie.isBuffer(t)||!Ie.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,o=r.length;for(let a=0,i=Math.min(n,o);a<i;++a)if(t[a]!==r[a]){n=t[a],o=r[a];break}return n<o?-1:o<n?1:0};Ie.isEncoding=function(t){switch(String(t).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}};Ie.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Ie.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let o=Ie.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){let i=t[n];if(an(i,Uint8Array))a+i.length>o.length?(Ie.isBuffer(i)||(i=Ie.from(i)),i.copy(o,a)):Uint8Array.prototype.set.call(o,i,a);else if(Ie.isBuffer(i))i.copy(o,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=i.length}return o};function pv(e,t){if(Ie.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||an(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Wl(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ev(e).length;default:if(o)return n?-1:Wl(e).length;t=(""+t).toLowerCase(),o=!0}}Ie.byteLength=pv;function fT(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return wT(this,t,r);case"utf8":case"utf-8":return yv(this,t,r);case"ascii":return mT(this,t,r);case"latin1":case"binary":return vT(this,t,r);case"base64":return yT(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bT(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Ie.prototype._isBuffer=!0;function pi(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Ie.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)pi(this,r,r+1);return this};Ie.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)pi(this,r,r+3),pi(this,r+1,r+2);return this};Ie.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)pi(this,r,r+7),pi(this,r+1,r+6),pi(this,r+2,r+5),pi(this,r+3,r+4);return this};Ie.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?yv(this,0,t):fT.apply(this,arguments)};Ie.prototype.toLocaleString=Ie.prototype.toString;Ie.prototype.equals=function(t){if(!Ie.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Ie.compare(this,t)===0};Ie.prototype.inspect=function(){let t="",r=lo.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};sv&&(Ie.prototype[sv]=Ie.prototype.inspect);Ie.prototype.compare=function(t,r,n,o,a){if(an(t,Uint8Array)&&(t=Ie.from(t,t.offset,t.byteLength)),!Ie.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),r<0||n>t.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&r>=n)return 0;if(o>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,a>>>=0,this===t)return 0;let i=a-o,f=n-r,l=Math.min(i,f),c=this.slice(o,a),d=t.slice(r,n);for(let y=0;y<l;++y)if(c[y]!==d[y]){i=c[y],f=d[y];break}return i<f?-1:f<i?1:0};function dv(e,t,r,n,o){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Gl(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof t=="string"&&(t=Ie.from(t,n)),Ie.isBuffer(t))return t.length===0?-1:uv(e,t,r,n,o);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):uv(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function uv(e,t,r,n,o){let a=1,i=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,i/=2,f/=2,r/=2}function l(d,y){return a===1?d[y]:d.readUInt16BE(y*a)}let c;if(o){let d=-1;for(c=r;c<i;c++)if(l(e,c)===l(t,d===-1?0:c-d)){if(d===-1&&(d=c),c-d+1===f)return d*a}else d!==-1&&(c-=c-d),d=-1}else for(r+f>i&&(r=i-f),c=r;c>=0;c--){let d=!0;for(let y=0;y<f;y++)if(l(e,c+y)!==l(t,y)){d=!1;break}if(d)return c}return-1}Ie.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Ie.prototype.indexOf=function(t,r,n){return dv(this,t,r,n,!0)};Ie.prototype.lastIndexOf=function(t,r,n){return dv(this,t,r,n,!1)};function lT(e,t,r,n){r=Number(r)||0;let o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let a=t.length;n>a/2&&(n=a/2);let i;for(i=0;i<n;++i){let f=parseInt(t.substr(i*2,2),16);if(Gl(f))return i;e[r+i]=f}return i}function cT(e,t,r,n){return zs(Wl(t,e.length-r),e,r,n)}function hT(e,t,r,n){return zs(AT(t),e,r,n)}function pT(e,t,r,n){return zs(Ev(t),e,r,n)}function dT(e,t,r,n){return zs(RT(t,e.length-r),e,r,n)}Ie.prototype.write=function(t,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let i=!1;for(;;)switch(o){case"hex":return lT(this,t,r,n);case"utf8":case"utf-8":return cT(this,t,r,n);case"ascii":case"latin1":case"binary":return hT(this,t,r,n);case"base64":return pT(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dT(this,t,r,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}};Ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yT(e,t,r){return t===0&&r===e.length?$l.fromByteArray(e):$l.fromByteArray(e.slice(t,r))}function yv(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let a=e[o],i=null,f=a>239?4:a>223?3:a>191?2:1;if(o+f<=r){let l,c,d,y;switch(f){case 1:a<128&&(i=a);break;case 2:l=e[o+1],(l&192)===128&&(y=(a&31)<<6|l&63,y>127&&(i=y));break;case 3:l=e[o+1],c=e[o+2],(l&192)===128&&(c&192)===128&&(y=(a&15)<<12|(l&63)<<6|c&63,y>2047&&(y<55296||y>57343)&&(i=y));break;case 4:l=e[o+1],c=e[o+2],d=e[o+3],(l&192)===128&&(c&192)===128&&(d&192)===128&&(y=(a&15)<<18|(l&63)<<12|(c&63)<<6|d&63,y>65535&&y<1114112&&(i=y))}}i===null?(i=65533,f=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),o+=f}return gT(n)}var fv=4096;function gT(e){let t=e.length;if(t<=fv)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=fv));return r}function mT(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function vT(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function wT(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let a=t;a<r;++a)o+=TT[e[a]];return o}function bT(e,t,r){let n=e.slice(t,r),o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+n[a+1]*256);return o}Ie.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let o=this.subarray(t,r);return Object.setPrototypeOf(o,Ie.prototype),o};function Zt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Ie.prototype.readUintLE=Ie.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return o};Ie.prototype.readUintBE=Ie.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t+--r],a=1;for(;r>0&&(a*=256);)o+=this[t+--r]*a;return o};Ie.prototype.readUint8=Ie.prototype.readUInt8=function(t,r){return t=t>>>0,r||Zt(t,1,this.length),this[t]};Ie.prototype.readUint16LE=Ie.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Zt(t,2,this.length),this[t]|this[t+1]<<8};Ie.prototype.readUint16BE=Ie.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Zt(t,2,this.length),this[t]<<8|this[t+1]};Ie.prototype.readUint32LE=Ie.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Ie.prototype.readUint32BE=Ie.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Ie.prototype.readBigUInt64LE=Yn(function(t){t=t>>>0,fo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&sa(t,this.length-8);let o=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))});Ie.prototype.readBigUInt64BE=Yn(function(t){t=t>>>0,fo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&sa(t,this.length-8);let o=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(a)});Ie.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Ie.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=r,a=1,i=this[t+--o];for(;o>0&&(a*=256);)i+=this[t+--o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};Ie.prototype.readInt8=function(t,r){return t=t>>>0,r||Zt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Ie.prototype.readInt16LE=function(t,r){t=t>>>0,r||Zt(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt16BE=function(t,r){t=t>>>0,r||Zt(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Ie.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Ie.prototype.readBigInt64LE=Yn(function(t){t=t>>>0,fo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&sa(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});Ie.prototype.readBigInt64BE=Yn(function(t){t=t>>>0,fo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&sa(t,this.length-8);let o=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});Ie.prototype.readFloatLE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),uo.read(this,t,!0,23,4)};Ie.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),uo.read(this,t,!1,23,4)};Ie.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Zt(t,8,this.length),uo.read(this,t,!0,52,8)};Ie.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Zt(t,8,this.length),uo.read(this,t,!1,52,8)};function hr(e,t,r,n,o,a){if(!Ie.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Ie.prototype.writeUintLE=Ie.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;hr(this,t,r,n,f,0)}let a=1,i=0;for(this[r]=t&255;++i<n&&(a*=256);)this[r+i]=t/a&255;return r+n};Ie.prototype.writeUintBE=Ie.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;hr(this,t,r,n,f,0)}let a=n-1,i=1;for(this[r+a]=t&255;--a>=0&&(i*=256);)this[r+a]=t/i&255;return r+n};Ie.prototype.writeUint8=Ie.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,1,255,0),this[r]=t&255,r+1};Ie.prototype.writeUint16LE=Ie.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Ie.prototype.writeUint16BE=Ie.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Ie.prototype.writeUint32LE=Ie.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Ie.prototype.writeUint32BE=Ie.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function gv(e,t,r,n,o){_v(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,r}function mv(e,t,r,n,o){_v(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i=i>>8,e[r+2]=i,i=i>>8,e[r+1]=i,i=i>>8,e[r]=i,r+8}Ie.prototype.writeBigUInt64LE=Yn(function(t,r=0){return gv(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ie.prototype.writeBigUInt64BE=Yn(function(t,r=0){return mv(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ie.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);hr(this,t,r,n,l-1,-l)}let a=0,i=1,f=0;for(this[r]=t&255;++a<n&&(i*=256);)t<0&&f===0&&this[r+a-1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Ie.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);hr(this,t,r,n,l-1,-l)}let a=n-1,i=1,f=0;for(this[r+a]=t&255;--a>=0&&(i*=256);)t<0&&f===0&&this[r+a+1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Ie.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Ie.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Ie.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Ie.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Ie.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Ie.prototype.writeBigInt64LE=Yn(function(t,r=0){return gv(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ie.prototype.writeBigInt64BE=Yn(function(t,r=0){return mv(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function vv(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function wv(e,t,r,n,o){return t=+t,r=r>>>0,o||vv(e,t,r,4,34028234663852886e22,-34028234663852886e22),uo.write(e,t,r,n,23,4),r+4}Ie.prototype.writeFloatLE=function(t,r,n){return wv(this,t,r,!0,n)};Ie.prototype.writeFloatBE=function(t,r,n){return wv(this,t,r,!1,n)};function bv(e,t,r,n,o){return t=+t,r=r>>>0,o||vv(e,t,r,8,17976931348623157e292,-17976931348623157e292),uo.write(e,t,r,n,52,8),r+8}Ie.prototype.writeDoubleLE=function(t,r,n){return bv(this,t,r,!0,n)};Ie.prototype.writeDoubleBE=function(t,r,n){return bv(this,t,r,!1,n)};Ie.prototype.copy=function(t,r,n,o){if(!Ie.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);let a=o-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(t,this.subarray(n,o),r),a};Ie.prototype.fill=function(t,r,n,o){if(typeof t=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Ie.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){let i=t.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(t=i)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else{let i=Ie.isBuffer(t)?t:Ie.from(t,o),f=i.length;if(f===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=i[a%f]}return this};var so={};function Vl(e,t,r){so[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Vl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Vl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Vl("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=lv(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=lv(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);function lv(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _T(e,t,r){fo(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&sa(t,e.length-(r+1))}function _v(e,t,r,n,o,a){if(e>r||e<t){let i=typeof t=="bigint"?"n":"",f;throw a>3?t===0||t===BigInt(0)?f=`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:f=`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:f=`>= ${t}${i} and <= ${r}${i}`,new so.ERR_OUT_OF_RANGE("value",f,e)}_T(n,o,a)}function fo(e,t){if(typeof e!="number")throw new so.ERR_INVALID_ARG_TYPE(t,"number",e)}function sa(e,t,r){throw Math.floor(e)!==e?(fo(e,r),new so.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new so.ERR_BUFFER_OUT_OF_BOUNDS:new so.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ET=/[^+/0-9A-Za-z-_]/g;function ST(e){if(e=e.split("=")[0],e=e.trim().replace(ET,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Wl(e,t){t=t||1/0;let r,n=e.length,o=null,a=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function AT(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function RT(e,t){let r,n,o,a=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}function Ev(e){return $l.toByteArray(ST(e))}function zs(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function an(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Gl(e){return e!==e}var TT=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Yn(e){return typeof BigInt>"u"?OT:e}function OT(){throw new Error("BigInt not supported")}});var Tv=He((Y7,Rv)=>{"use strict";$();q();z();H();W();var wr=rv(),Av=Sv().Buffer;function IT(e){return 12+4*Math.ceil(e.length/4)}function xT(){return!(typeof window<"u"&&typeof document<"u")}function BT(e){let t=0,r=-1;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),e instanceof Int8Array)return e.length*wr.Int8Array;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)return e.length*wr.Uint8Array;if(e instanceof Int16Array)return e.length*wr.Int16Array;if(e instanceof Uint16Array)return e.length*wr.Uint16Array;if(e instanceof Int32Array)return e.length*wr.Int32Array;if(e instanceof Uint32Array)return e.length*wr.Uint32Array;if(e instanceof Float32Array)return e.length*wr.Float32Array;if(e instanceof Float64Array)return e.length*wr.Float64Array;let o=JSON.stringify(n);t=new Av.from(o).byteLength}catch(n){return console.error("Error detected, return "+r,n),r}return t}function CT(e){let t=[],r=[e],n=0;for(;r.length;){let o=r.pop();if(typeof o=="boolean")n+=wr.BYTES;else if(typeof o=="string")xT()?n+=IT(o):n+=o.length*wr.STRING;else if(typeof o=="number")n+=wr.NUMBER;else if(typeof o=="symbol")Symbol.keyFor&&Symbol.keyFor(e)?n+=Symbol.keyFor(e).length*wr.STRING:n+=(e.toString().length-8)*wr.STRING;else if(typeof o=="bigint")n+=Av.from(o.toString()).byteLength;else if(typeof o=="function")n+=o.toString().length;else if(typeof o=="object"&&t.indexOf(o)===-1){t.push(o);for(let a in o)r.push(o[a])}}return n}Rv.exports=function(e){let t=0;return e!==null&&typeof e=="object"?t=BT(e):t=CT(e),t}});var Bv=He(di=>{"use strict";$();q();z();H();W();Object.defineProperty(di,"__esModule",{value:!0});var PT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UT=typeof window<"u"&&typeof window.document<"u",DT=typeof ce<"u"&&ce.versions!=null&&ce.versions.node!=null,MT=(typeof self>"u"?"undefined":PT(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",jT=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),$T=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";di.isBrowser=UT;di.isWebWorker=MT;di.isNode=DT;di.isJsDom=jT;di.isDeno=$T});var l_=He((MK,f_)=>{"use strict";$();q();z();H();W();function pB(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}f_.exports=dB;function dB(e,t,r){var n=r&&r.stringify||pB,o=1;if(typeof e=="object"&&e!==null){var a=t.length+o;if(a===1)return e;var i=new Array(a);i[0]=n(e);for(var f=1;f<a;f++)i[f]=n(t[f]);return i.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var c="",d=1-o,y=-1,v=e&&e.length||0,_=0;_<v;){if(e.charCodeAt(_)===37&&_+1<v){switch(y=y>-1?y:0,e.charCodeAt(_+1)){case 100:case 102:if(d>=l||t[d]==null)break;y<_&&(c+=e.slice(y,_)),c+=Number(t[d]),y=_+2,_++;break;case 105:if(d>=l||t[d]==null)break;y<_&&(c+=e.slice(y,_)),c+=Math.floor(Number(t[d])),y=_+2,_++;break;case 79:case 111:case 106:if(d>=l||t[d]===void 0)break;y<_&&(c+=e.slice(y,_));var h=typeof t[d];if(h==="string"){c+="'"+t[d]+"'",y=_+2,_++;break}if(h==="function"){c+=t[d].name||"<anonymous>",y=_+2,_++;break}c+=n(t[d]),y=_+2,_++;break;case 115:if(d>=l)break;y<_&&(c+=e.slice(y,_)),c+=String(t[d]),y=_+2,_++;break;case 37:y<_&&(c+=e.slice(y,_)),c+="%",y=_+2,_++,d--;break}++d}++_}return y===-1?e:(y<v&&(c+=e.slice(y)),c)}});var g_=He((HK,y_)=>{"use strict";$();q();z();H();W();var c_=l_();y_.exports=Ni;var Ta=RB().console||{},yB={mapHttpRequest:Ou,mapHttpResponse:Ou,wrapRequestSerializer:Eh,wrapResponseSerializer:Eh,wrapErrorSerializer:Eh,req:Ou,res:Ou,err:h_,errWithCause:h_};function gB(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Ni(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Ta;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=gB(e.browser.serialize,n),a=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(a=!1);let i=Object.keys(e.customLevels||{}),f=["error","fatal","warn","info","debug","trace"].concat(i);typeof r=="function"&&f.forEach(function(w){r[w]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let l=e.level||"info",c=Object.create(r);c.log||(c.log=Oa),Object.defineProperty(c,"levelVal",{get:y}),Object.defineProperty(c,"level",{get:v,set:_});let d={transmit:t,serialize:o,asObject:e.browser.asObject,levels:f,timestamp:EB(e)};c.levels=mB(e),c.level=l,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=Oa,c.serializers=n,c._serialize=o,c._stdErrSerialize=a,c.child=h,t&&(c._logEvent=Sh());function y(){return this.level==="silent"?1/0:this.levels.values[this.level]}function v(){return this._level}function _(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,Ci(d,c,"error","log"),Ci(d,c,"fatal","error"),Ci(d,c,"warn","error"),Ci(d,c,"info","log"),Ci(d,c,"debug","log"),Ci(d,c,"trace","log"),i.forEach(function(S){Ci(d,c,S,"log")})}function h(w,S){if(!w)throw new Error("missing bindings for child Pino");S=S||{},o&&w.serializers&&(S.serializers=w.serializers);let T=S.serializers;if(o&&T){var C=Object.assign({},n,T),M=e.browser.serialize===!0?Object.keys(C):o;delete w.serializers,Iu([w],M,C,this._stdErrSerialize)}function D(V){this._childLevel=(V._childLevel|0)+1,this.error=So(V,w,"error"),this.fatal=So(V,w,"fatal"),this.warn=So(V,w,"warn"),this.info=So(V,w,"info"),this.debug=So(V,w,"debug"),this.trace=So(V,w,"trace"),C&&(this.serializers=C,this._serialize=M),t&&(this._logEvent=Sh([].concat(V._logEvent.bindings,w)))}return D.prototype=this,new D(this)}return c}function mB(e){let t=e.customLevels||{},r=Object.assign({},Ni.levels.values,t),n=Object.assign({},Ni.levels.labels,vB(t));return{values:r,labels:n}}function vB(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Ni.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Ni.stdSerializers=yB;Ni.stdTimeFunctions=Object.assign({},{nullTime:p_,epochTime:d_,unixTime:SB,isoTime:AB});function Ci(e,t,r,n){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?Oa:o[r]?o[r]:Ta[r]||Ta[n]||Oa,wB(e,t,r)}function wB(e,t,r){!e.transmit&&t[r]===Oa||(t[r]=function(n){return function(){let a=e.timestamp(),i=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ta?Ta:this;for(var l=0;l<i.length;l++)i[l]=arguments[l];if(e.serialize&&!e.asObject&&Iu(i,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(f,bB(this,r,i,a)):n.apply(f,i),e.transmit){let c=e.transmit.level||t.level,d=t.levels.values[c],y=t.levels.values[r];if(y<d)return;_B(this,{ts:a,methodLevel:r,methodValue:y,transmitLevel:c,transmitValue:t.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},i)}}}(t[r]))}function bB(e,t,r,n){e._serialize&&Iu(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),a=o[0],i={};n&&(i.time=n),i.level=e.levels.values[t];let f=(e._childLevel|0)+1;if(f<1&&(f=1),a!==null&&typeof a=="object"){for(;f--&&typeof o[0]=="object";)Object.assign(i,o.shift());a=o.length?c_(o.shift(),o):void 0}else typeof a=="string"&&(a=c_(o.shift(),o));return a!==void 0&&(i.msg=a),i}function Iu(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=Ni.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o]))for(let a in e[o])t&&t.indexOf(a)>-1&&a in r&&(e[o][a]=r[a](e[o][a]))}function So(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var o=1;o<n.length;o++)n[o]=arguments[o-1];return e[r].apply(this,n)}}function _B(e,t,r){let n=t.send,o=t.ts,a=t.methodLevel,i=t.methodValue,f=t.val,l=e._logEvent.bindings;Iu(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=r.filter(function(c){return l.indexOf(c)===-1}),e._logEvent.level.label=a,e._logEvent.level.value=i,n(a,e._logEvent,f),e._logEvent=Sh(l)}function Sh(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function h_(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function EB(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?p_:d_}function Ou(){return{}}function Eh(e){return e}function Oa(){}function p_(){return!1}function d_(){return Date.now()}function SB(){return Math.round(Date.now()/1e3)}function AB(){return new Date(Date.now()).toISOString()}function RB(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}});var xB={};Ch(xB,{ApiError:()=>qn,CancelError:()=>Qi,CancelablePromise:()=>Or,TabbyAgent:()=>Cu,agentEventNames:()=>T_});$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();function Io(e,t){return function(){return e.apply(t,arguments)}}var{toString:W_}=Object.prototype,{getPrototypeOf:ju}=Object,Ua=(e=>t=>{let r=W_.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=e=>(e=e.toLowerCase(),t=>Ua(t)===e),Da=e=>t=>typeof t===e,{isArray:Fi}=Array,xo=Da("undefined");function H_(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&Rr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Jp=Yr("ArrayBuffer");function Z_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jp(e.buffer),t}var V_=Da("string"),Rr=Da("function"),Qp=Da("number"),Ma=e=>e!==null&&typeof e=="object",G_=e=>e===!0||e===!1,Pa=e=>{if(Ua(e)!=="object")return!1;let t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y_=Yr("Date"),K_=Yr("File"),X_=Yr("Blob"),J_=Yr("FileList"),Q_=e=>Ma(e)&&Rr(e.pipe),eE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rr(e.append)&&((t=Ua(e))==="formdata"||t==="object"&&Rr(e.toString)&&e.toString()==="[object FormData]"))},tE=Yr("URLSearchParams"),rE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Fi(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length,f;for(n=0;n<i;n++)f=a[n],t.call(null,e[f],f,e)}}function ed(e,t){t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}var td=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:se)(),rd=e=>!xo(e)&&e!==td;function Mu(){let{caseless:e}=rd(this)&&this||{},t={},r=(n,o)=>{let a=e&&ed(t,o)||o;Pa(t[a])&&Pa(n)?t[a]=Mu(t[a],n):Pa(n)?t[a]=Mu({},n):Fi(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Bo(arguments[n],r);return t}var nE=(e,t,r,{allOwnKeys:n}={})=>(Bo(t,(o,a)=>{r&&Rr(o)?e[a]=Io(o,r):e[a]=o},{allOwnKeys:n}),e),iE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oE=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},aE=(e,t,r,n)=>{let o,a,i,f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=r!==!1&&ju(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},sE=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},uE=e=>{if(!e)return null;if(Fi(e))return e;let t=e.length;if(!Qp(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),lE=(e,t)=>{let n=(e&&e[Symbol.iterator]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},cE=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},hE=Yr("HTMLFormElement"),pE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Kp=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dE=Yr("RegExp"),nd=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Bo(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},yE=e=>{nd(e,(t,r)=>{if(Rr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(Rr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},gE=(e,t)=>{let r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Fi(e)?n(e):n(String(e).split(t)),r},mE=()=>{},vE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Du="abcdefghijklmnopqrstuvwxyz",Xp="0123456789",id={DIGIT:Xp,ALPHA:Du,ALPHA_DIGIT:Du+Du.toUpperCase()+Xp},wE=(e=16,t=id.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function bE(e){return!!(e&&Rr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var _E=e=>{let t=new Array(10),r=(n,o)=>{if(Ma(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;let a=Fi(n)?[]:{};return Bo(n,(i,f)=>{let l=r(i,o+1);!xo(l)&&(a[f]=l)}),t[o]=void 0,a}}return n};return r(e,0)},EE=Yr("AsyncFunction"),SE=e=>e&&(Ma(e)||Rr(e))&&Rr(e.then)&&Rr(e.catch),Ee={isArray:Fi,isArrayBuffer:Jp,isBuffer:H_,isFormData:eE,isArrayBufferView:Z_,isString:V_,isNumber:Qp,isBoolean:G_,isObject:Ma,isPlainObject:Pa,isUndefined:xo,isDate:Y_,isFile:K_,isBlob:X_,isRegExp:dE,isFunction:Rr,isStream:Q_,isURLSearchParams:tE,isTypedArray:fE,isFileList:J_,forEach:Bo,merge:Mu,extend:nE,trim:rE,stripBOM:iE,inherits:oE,toFlatObject:aE,kindOf:Ua,kindOfTest:Yr,endsWith:sE,toArray:uE,forEachEntry:lE,matchAll:cE,isHTMLForm:hE,hasOwnProperty:Kp,hasOwnProp:Kp,reduceDescriptors:nd,freezeMethods:yE,toObjectSet:gE,toCamelCase:pE,noop:mE,toFiniteNumber:vE,findKey:ed,global:td,isContextDefined:rd,ALPHABET:id,generateString:wE,isSpecCompliantForm:bE,toJSONObject:_E,isAsyncFn:EE,isThenable:SE};$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();function Pi(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Ee.inherits(Pi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var od=Pi.prototype,ad={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ad[e]={value:e}});Object.defineProperties(Pi,ad);Object.defineProperty(od,"isAxiosError",{value:!0});Pi.from=(e,t,r,n,o,a)=>{let i=Object.create(od);return Ee.toFlatObject(e,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError"),Pi.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var dt=Pi;$();q();z();H();W();var ja=null;function $u(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function ud(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function sd(e,t,r){return e?e.concat(t).map(function(o,a){return o=ud(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function AE(e){return Ee.isArray(e)&&!e.some($u)}var RE=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function TE(e,t,r){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new(ja||FormData),r=Ee.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!Ee.isUndefined(S[w])});let n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Ee.isDate(h))return h.toISOString();if(!l&&Ee.isBlob(h))throw new dt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(h)||Ee.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):he.from(h):h}function d(h,w,S){let T=h;if(h&&!S&&typeof h=="object"){if(Ee.endsWith(w,"{}"))w=n?w:w.slice(0,-2),h=JSON.stringify(h);else if(Ee.isArray(h)&&AE(h)||(Ee.isFileList(h)||Ee.endsWith(w,"[]"))&&(T=Ee.toArray(h)))return w=ud(w),T.forEach(function(M,D){!(Ee.isUndefined(M)||M===null)&&t.append(i===!0?sd([w],D,a):i===null?w:w+"[]",c(M))}),!1}return $u(h)?!0:(t.append(sd(S,w,a),c(h)),!1)}let y=[],v=Object.assign(RE,{defaultVisitor:d,convertValue:c,isVisitable:$u});function _(h,w){if(!Ee.isUndefined(h)){if(y.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));y.push(h),Ee.forEach(h,function(T,C){(!(Ee.isUndefined(T)||T===null)&&o.call(t,T,Ee.isString(C)?C.trim():C,w,v))===!0&&_(T,w?w.concat(C):[C])}),y.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return _(e),t}var Fn=TE;function fd(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ld(e,t){this._pairs=[],e&&Fn(e,this,t)}var cd=ld.prototype;cd.append=function(t,r){this._pairs.push([t,r])};cd.toString=function(t){let r=t?function(n){return t.call(this,n,fd)}:fd;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var $a=ld;function OE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Co(e,t,r){if(!t)return e;let n=r&&r.encode||OE,o=r&&r.serialize,a;if(o?a=o(t,r):a=Ee.isURLSearchParams(t)?t.toString():new $a(t,r).toString(n),a){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}$();q();z();H();W();var qu=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(n){n!==null&&t(n)})}},zu=qu;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var qa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var hd=typeof URLSearchParams<"u"?URLSearchParams:$a;$();q();z();H();W();var pd=typeof FormData<"u"?FormData:null;$();q();z();H();W();var dd=typeof Blob<"u"?Blob:null;var IE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),xE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tr={isBrowser:!0,classes:{URLSearchParams:hd,FormData:pd,Blob:dd},isStandardBrowserEnv:IE,isStandardBrowserWebWorkerEnv:xE,protocols:["http","https","file","blob","url","data"]};function Wu(e,t){return Fn(e,new tr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return tr.isNode&&Ee.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}$();q();z();H();W();function BE(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CE(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function NE(e){function t(r,n,o,a){let i=r[a++],f=Number.isFinite(+i),l=a>=r.length;return i=!i&&Ee.isArray(o)?o.length:i,l?(Ee.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!f):((!o[i]||!Ee.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&Ee.isArray(o[i])&&(o[i]=CE(o[i])),!f)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){let r={};return Ee.forEachEntry(e,(n,o)=>{t(BE(n),o,r,0)}),r}return null}var za=NE;var LE={"Content-Type":void 0};function kE(e,t,r){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Wa={transitional:qa,adapter:["xhr","http"],transformRequest:[function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Ee.isObject(t);if(a&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return o&&o?JSON.stringify(za(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wu(t,this.formSerializer).toString();if((f=Ee.isFileList(t))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return Fn(f?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),kE(t)):t}],transformResponse:[function(t){let r=this.transitional||Wa.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Ee.isString(t)&&(n&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?dt.from(f,dt.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tr.classes.FormData,Blob:tr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ee.forEach(["delete","get","head"],function(t){Wa.headers[t]={}});Ee.forEach(["post","put","patch"],function(t){Wa.headers[t]=Ee.merge(LE)});var Ui=Wa;$();q();z();H();W();$();q();z();H();W();var FE=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yd=e=>{let t={},r,n,o;return e&&e.split(`
|
|
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&FE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var gd=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Ha(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Ha):String(e)}function PE(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var UE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hu(e,t,r,n,o){if(Ee.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))return t.indexOf(n)!==-1;if(Ee.isRegExp(n))return n.test(t)}}function DE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ME(e,t){let r=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}var Di=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(f,l,c){let d=No(l);if(!d)throw new Error("header name must be a non-empty string");let y=Ee.findKey(o,d);(!y||o[y]===void 0||c===!0||c===void 0&&o[y]!==!1)&&(o[y||l]=Ha(f))}let i=(f,l)=>Ee.forEach(f,(c,d)=>a(c,d,l));return Ee.isPlainObject(t)||t instanceof this.constructor?i(t,r):Ee.isString(t)&&(t=t.trim())&&!UE(t)?i(yd(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=No(t),t){let n=Ee.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return PE(o);if(Ee.isFunction(r))return r.call(this,o,n);if(Ee.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=No(t),t){let n=Ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hu(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(i){if(i=No(i),i){let f=Ee.findKey(n,i);f&&(!r||Hu(n,n[f],f,r))&&(delete n[f],o=!0)}}return Ee.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Hu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return Ee.forEach(this,(o,a)=>{let i=Ee.findKey(n,a);if(i){r[i]=Ha(o),delete r[a];return}let f=t?DE(a):String(a).trim();f!==a&&delete r[a],r[f]=Ha(o),n[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return Ee.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[gd]=this[gd]={accessors:{}}).accessors,o=this.prototype;function a(i){let f=No(i);n[f]||(ME(o,i),n[f]=!0)}return Ee.isArray(t)?t.forEach(a):a(t),this}};Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(Di.prototype);Ee.freezeMethods(Di);var ar=Di;function Lo(e,t){let r=this||Ui,n=t||r,o=ar.from(n.headers),a=n.data;return Ee.forEach(e,function(f){a=f.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}$();q();z();H();W();function ko(e){return!!(e&&e.__CANCEL__)}$();q();z();H();W();function md(e,t,r){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,r),this.name="CanceledError"}Ee.inherits(md,dt,{__CANCEL__:!0});var Pn=md;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();function Zu(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new dt("Request failed with status code "+r.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}$();q();z();H();W();var vd=tr.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,f){let l=[];l.push(r+"="+encodeURIComponent(n)),Ee.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Ee.isString(a)&&l.push("path="+a),Ee.isString(i)&&l.push("domain="+i),f===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();$();q();z();H();W();$();q();z();H();W();function Vu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}$();q();z();H();W();function Gu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fo(e,t){return e&&!Vu(t)?Gu(e,t):t}$();q();z();H();W();var wd=tr.isStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){let f=Ee.isString(i)?o(i):i;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}();$();q();z();H();W();function Yu(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}$();q();z();H();W();function jE(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),d=n[a];i||(i=c),r[o]=l,n[o]=c;let y=a,v=0;for(;y!==o;)v+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;let _=d&&c-d;return _?Math.round(v*1e3/_):void 0}}var bd=jE;function _d(e,t){let r=0,n=bd(50,250);return o=>{let a=o.loaded,i=o.lengthComputable?o.total:void 0,f=a-r,l=n(f),c=a<=i;r=a;let d={loaded:a,total:i,progress:i?a/i:void 0,bytes:f,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}var $E=typeof XMLHttpRequest<"u",Ed=$E&&function(e){return new Promise(function(r,n){let o=e.data,a=ar.from(e.headers).normalize(),i=e.responseType,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ee.isFormData(o)&&(tr.isStandardBrowserEnv||tr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){let _=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(_+":"+h))}let d=Fo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Co(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let _=ar.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:e,request:c};Zu(function(T){r(T),l()},function(T){n(T),l()},w),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(n(new dt("Request aborted",dt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new dt("Network Error",dt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",w=e.transitional||qa;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new dt(h,w.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,e,c)),c=null},tr.isStandardBrowserEnv){let _=(e.withCredentials||wd(d))&&e.xsrfCookieName&&vd.read(e.xsrfCookieName);_&&a.set(e.xsrfHeaderName,_)}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&Ee.forEach(a.toJSON(),function(h,w){c.setRequestHeader(w,h)}),Ee.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",_d(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",_d(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=_=>{c&&(n(!_||_.type?new Pn(null,e,c):_),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));let v=Yu(d);if(v&&tr.protocols.indexOf(v)===-1){n(new dt("Unsupported protocol "+v+":",dt.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var Za={http:ja,xhr:Ed};Ee.forEach(Za,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Sd={getAdapter:e=>{e=Ee.isArray(e)?e:[e];let{length:t}=e,r,n;for(let o=0;o<t&&(r=e[o],!(n=Ee.isString(r)?Za[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new dt(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ee.hasOwnProp(Za,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!Ee.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Za};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pn(null,e)}function Va(e){return Ku(e),e.headers=ar.from(e.headers),e.data=Lo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sd.getAdapter(e.adapter||Ui.adapter)(e).then(function(n){return Ku(e),n.data=Lo.call(e,e.transformResponse,n),n.headers=ar.from(n.headers),n},function(n){return ko(n)||(Ku(e),n&&n.response&&(n.response.data=Lo.call(e,e.transformResponse,n.response),n.response.headers=ar.from(n.response.headers))),Promise.reject(n)})}$();q();z();H();W();var Ad=e=>e instanceof ar?e.toJSON():e;function gn(e,t){t=t||{};let r={};function n(c,d,y){return Ee.isPlainObject(c)&&Ee.isPlainObject(d)?Ee.merge.call({caseless:y},c,d):Ee.isPlainObject(d)?Ee.merge({},d):Ee.isArray(d)?d.slice():d}function o(c,d,y){if(Ee.isUndefined(d)){if(!Ee.isUndefined(c))return n(void 0,c,y)}else return n(c,d,y)}function a(c,d){if(!Ee.isUndefined(d))return n(void 0,d)}function i(c,d){if(Ee.isUndefined(d)){if(!Ee.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function f(c,d,y){if(y in t)return n(c,d);if(y in e)return n(void 0,c)}let l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f,headers:(c,d)=>o(Ad(c),Ad(d),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),function(d){let y=l[d]||o,v=y(e[d],t[d],d);Ee.isUndefined(v)&&y!==f||(r[d]=v)}),r}$();q();z();H();W();$();q();z();H();W();var Ga="1.4.0";var Xu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xu[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Rd={};Xu.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Ga+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,f)=>{if(t===!1)throw new dt(o(i," has been removed"+(r?" in "+r:"")),dt.ERR_DEPRECATED);return r&&!Rd[i]&&(Rd[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,f):!0}};function qE(e,t,r){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],i=t[a];if(i){let f=e[a],l=f===void 0||i(f,a,e);if(l!==!0)throw new dt("option "+a+" must be "+l,dt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new dt("Unknown option "+a,dt.ERR_BAD_OPTION)}}var Ya={assertOptions:qE,validators:Xu};var Un=Ya.validators,Mi=class{constructor(t){this.defaults=t,this.interceptors={request:new zu,response:new zu}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Ya.assertOptions(n,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),o!=null&&(Ee.isFunction(o)?r.paramsSerializer={serialize:o}:Ya.assertOptions(o,{encode:Un.function,serialize:Un.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Ee.merge(a.common,a[r.method]),i&&Ee.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),r.headers=ar.concat(i,a);let f=[],l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(l=l&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});let c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});let d,y=0,v;if(!l){let h=[Va.bind(this),void 0];for(h.unshift.apply(h,f),h.push.apply(h,c),v=h.length,d=Promise.resolve(r);y<v;)d=d.then(h[y++],h[y++]);return d}v=f.length;let _=r;for(y=0;y<v;){let h=f[y++],w=f[y++];try{_=h(_)}catch(S){w.call(this,S);break}}try{d=Va.call(this,_)}catch(h){return Promise.reject(h)}for(y=0,v=c.length;y<v;)d=d.then(c[y++],c[y++]);return d}getUri(t){t=gn(this.defaults,t);let r=Fo(t.baseURL,t.url);return Co(r,t.params,t.paramsSerializer)}};Ee.forEach(["delete","get","head","options"],function(t){Mi.prototype[t]=function(r,n){return this.request(gn(n||{},{method:t,url:r,data:(n||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,f){return this.request(gn(f||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Mi.prototype[t]=r(),Mi.prototype[t+"Form"]=r(!0)});var Po=Mi;$();q();z();H();W();var Uo=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,i=new Promise(f=>{n.subscribe(f),a=f}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,f){n.reason||(n.reason=new Pn(a,i,f),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Uo(function(o){t=o}),cancel:t}}},Td=Uo;$();q();z();H();W();function Ju(e){return function(r){return e.apply(null,r)}}$();q();z();H();W();function Qu(e){return Ee.isObject(e)&&e.isAxiosError===!0}$();q();z();H();W();var ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ef).forEach(([e,t])=>{ef[t]=e});var Od=ef;function Id(e){let t=new Po(e),r=Io(Po.prototype.request,t);return Ee.extend(r,Po.prototype,t,{allOwnKeys:!0}),Ee.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Id(gn(e,o))},r}var Mt=Id(Ui);Mt.Axios=Po;Mt.CanceledError=Pn;Mt.CancelToken=Td;Mt.isCancel=ko;Mt.VERSION=Ga;Mt.toFormData=Fn;Mt.AxiosError=dt;Mt.Cancel=Mt.CanceledError;Mt.all=function(t){return Promise.all(t)};Mt.spread=Ju;Mt.isAxiosError=Qu;Mt.mergeConfig=gn;Mt.AxiosHeaders=ar;Mt.formToJSON=e=>za(Ee.isHTMLForm(e)?new FormData(e):e);Mt.HttpStatusCode=Od;Mt.default=Mt;var ii=Mt;var{Axios:w5,AxiosError:b5,CanceledError:_5,isCancel:E5,CancelToken:S5,VERSION:A5,all:R5,Cancel:T5,isAxiosError:O5,spread:I5,toFormData:x5,AxiosHeaders:B5,HttpStatusCode:C5,formToJSON:N5,mergeConfig:L5}=ii;$();q();z();H();W();$();q();z();H();W();var Pd,Ud,ji=typeof Reflect=="object"?Reflect:null,xd=ji&&typeof ji.apply=="function"?ji.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};Ud=ji&&typeof ji.ownKeys=="function"?ji.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var Bd=Number.isNaN||function(e){return e!=e};function _t(){_t.init.call(this)}Pd=_t,_t.EventEmitter=_t,_t.prototype._events=void 0,_t.prototype._eventsCount=0,_t.prototype._maxListeners=void 0;var Cd=10;function Ka(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Dd(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}function Nd(e,t,r,n){var o,a,i,f;if(Ka(r),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),i===void 0)i=a[t]=r,++e._eventsCount;else if(typeof i=="function"?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(o=Dd(e))>0&&i.length>o&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,f=l,console&&console.warn&&console.warn(f)}return e}function zE(){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 Ld(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=zE.bind(n);return o.listener=r,n.wrapFn=o,o}function kd(e,t,r){var n=e._events;if(n===void 0)return[];var o=n[t];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(a){for(var i=new Array(a.length),f=0;f<i.length;++f)i[f]=a[f].listener||a[f];return i}(o):Md(o,o.length)}function Fd(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function Md(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return Cd},set:function(e){if(typeof e!="number"||e<0||Bd(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Cd=e}}),_t.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},_t.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Bd(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},_t.prototype.getMaxListeners=function(){return Dd(this)},_t.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var f=o[e];if(f===void 0)return!1;if(typeof f=="function")xd(f,this,t);else{var l=f.length,c=Md(f,l);for(r=0;r<l;++r)xd(c[r],this,t)}return!0},_t.prototype.addListener=function(e,t){return Nd(this,e,t,!1)},_t.prototype.on=_t.prototype.addListener,_t.prototype.prependListener=function(e,t){return Nd(this,e,t,!0)},_t.prototype.once=function(e,t){return Ka(t),this.on(e,Ld(this,e,t)),this},_t.prototype.prependOnceListener=function(e,t){return Ka(t),this.prependListener(e,Ld(this,e,t)),this},_t.prototype.removeListener=function(e,t){var r,n,o,a,i;if(Ka(t),(n=this._events)===void 0)return this;if((r=n[e])===void 0)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():function(f,l){for(;l+1<f.length;l++)f[l]=f[l+1];f.pop()}(r,o),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,i||t)}return this},_t.prototype.off=_t.prototype.removeListener,_t.prototype.removeAllListeners=function(e){var t,r,n;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o,a=Object.keys(r);for(n=0;n<a.length;++n)(o=a[n])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},_t.prototype.listeners=function(e){return kd(this,e,!0)},_t.prototype.rawListeners=function(e){return kd(this,e,!1)},_t.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Fd.call(e,t)},_t.prototype.listenerCount=Fd,_t.prototype.eventNames=function(){return this._eventsCount>0?Ud(this._events):[]};var Ft=Pd;Ft.EventEmitter;Ft.defaultMaxListeners;Ft.init;Ft.listenerCount;Ft.EventEmitter;Ft.defaultMaxListeners;Ft.init;Ft.listenerCount;Ft.once=function(e,t){return new Promise((r,n)=>{function o(...i){a!==void 0&&e.removeListener("error",a),r(i)}let a;t!=="error"&&(a=i=>{e.removeListener(name,o),n(i)},e.once("error",a)),e.once(t,o)})};Ft.on=function(e,t){let r=[],n=[],o=null,a=!1,i={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(o){let d=Promise.reject(o);return o=null,d}return a?createIterResult(void 0,!0):new Promise((d,y)=>n.push({resolve:d,reject:y}))},async return(){e.removeListener(t,f),e.removeListener("error",l),a=!0;for(let c of n)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=c,e.removeListener(t,f),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,f),e.on("error",l),i;function f(...c){let d=n.shift();d?d.resolve(createIterResult(c,!1)):r.push(c)}function l(c){a=!0;let d=n.shift();d?d.reject(c):o=c,i.return()}};var{EventEmitter:jd,defaultMaxListeners:V5,init:G5,listenerCount:Y5,on:K5,once:X5}=Ft;$();q();z();H();W();$();q();z();H();W();var Xa,WE=new Uint8Array(16);function tf(){if(!Xa&&(Xa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xa(WE)}$();q();z();H();W();var Xt=[];for(let e=0;e<256;++e)Xt.push((e+256).toString(16).slice(1));function $d(e,t=0){return(Xt[e[t+0]]+Xt[e[t+1]]+Xt[e[t+2]]+Xt[e[t+3]]+"-"+Xt[e[t+4]]+Xt[e[t+5]]+"-"+Xt[e[t+6]]+Xt[e[t+7]]+"-"+Xt[e[t+8]]+Xt[e[t+9]]+"-"+Xt[e[t+10]]+Xt[e[t+11]]+Xt[e[t+12]]+Xt[e[t+13]]+Xt[e[t+14]]+Xt[e[t+15]]).toLowerCase()}$();q();z();H();W();$();q();z();H();W();var HE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rf={randomUUID:HE};function ZE(e,t,r){if(rf.randomUUID&&!t&&!e)return rf.randomUUID();e=e||{};let n=e.random||(e.rng||tf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return $d(n)}var nf=ZE;var A_=Ln(Il()),R_=Ln(j0());$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var Ko=class{constructor(t){this.config=t}};$();q();z();H();W();var Bl=Ln(q0());$();q();z();H();W();var qn=class extends Error{constructor(r,n,o){super(o);this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=r}};$();q();z();H();W();var Qi=class extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}},Jr,Qr,Mr,zn,ui,Xo,Ji,Or=class{constructor(t){it(this,Jr,void 0);it(this,Qr,void 0);it(this,Mr,void 0);it(this,zn,void 0);it(this,ui,void 0);it(this,Xo,void 0);it(this,Ji,void 0);Ge(this,Jr,!1),Ge(this,Qr,!1),Ge(this,Mr,!1),Ge(this,zn,[]),Ge(this,ui,new Promise((r,n)=>{Ge(this,Xo,r),Ge(this,Ji,n);let o=f=>{var l;J(this,Jr)||J(this,Qr)||J(this,Mr)||(Ge(this,Jr,!0),(l=J(this,Xo))==null||l.call(this,f))},a=f=>{var l;J(this,Jr)||J(this,Qr)||J(this,Mr)||(Ge(this,Qr,!0),(l=J(this,Ji))==null||l.call(this,f))},i=f=>{J(this,Jr)||J(this,Qr)||J(this,Mr)||J(this,zn).push(f)};return Object.defineProperty(i,"isResolved",{get:()=>J(this,Jr)}),Object.defineProperty(i,"isRejected",{get:()=>J(this,Qr)}),Object.defineProperty(i,"isCancelled",{get:()=>J(this,Mr)}),t(o,a,i)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,r){return J(this,ui).then(t,r)}catch(t){return J(this,ui).catch(t)}finally(t){return J(this,ui).finally(t)}cancel(){var t;if(!(J(this,Jr)||J(this,Qr)||J(this,Mr))){if(Ge(this,Mr,!0),J(this,zn).length)try{for(let r of J(this,zn))r()}catch(r){console.warn("Cancellation threw an error",r);return}J(this,zn).length=0,(t=J(this,Ji))==null||t.call(this,new Qi("Request aborted"))}}get isCancelled(){return J(this,Mr)}};Jr=new WeakMap,Qr=new WeakMap,Mr=new WeakMap,zn=new WeakMap,ui=new WeakMap,Xo=new WeakMap,Ji=new WeakMap;var Cl=e=>e!=null,Ns=e=>typeof e=="string",xl=e=>Ns(e)&&e!=="",z0=e=>typeof e=="object"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.arrayBuffer=="function"&&typeof e.constructor=="function"&&typeof e.constructor.name=="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),UR=e=>e instanceof Bl.default,DR=e=>e>=200&&e<300,MR=e=>{try{return btoa(e)}catch{return he.from(e).toString("base64")}},jR=e=>{let t=[],r=(o,a)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(a))}`)},n=(o,a)=>{Cl(a)&&(Array.isArray(a)?a.forEach(i=>{n(o,i)}):typeof a=="object"?Object.entries(a).forEach(([i,f])=>{n(`${o}[${i}]`,f)}):r(o,a))};return Object.entries(e).forEach(([o,a])=>{n(o,a)}),t.length>0?`?${t.join("&")}`:""},$R=(e,t)=>{let r=e.ENCODE_PATH||encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(a,i)=>t.path?.hasOwnProperty(i)?r(String(t.path[i])):a),o=`${e.BASE}${n}`;return t.query?`${o}${jR(t.query)}`:o},qR=e=>{if(e.formData){let t=new Bl.default,r=(n,o)=>{Ns(o)||z0(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([n,o])=>Cl(o)).forEach(([n,o])=>{Array.isArray(o)?o.forEach(a=>r(n,a)):r(n,o)}),t}},Cs=async(e,t)=>typeof t=="function"?t(e):t,zR=async(e,t,r)=>{let n=await Cs(t,e.TOKEN),o=await Cs(t,e.USERNAME),a=await Cs(t,e.PASSWORD),i=await Cs(t,e.HEADERS),f=typeof r?.getHeaders=="function"&&r?.getHeaders()||{},l=Object.entries({Accept:"application/json",...i,...t.headers,...f}).filter(([c,d])=>Cl(d)).reduce((c,[d,y])=>({...c,[d]:String(y)}),{});if(xl(n)&&(l.Authorization=`Bearer ${n}`),xl(o)&&xl(a)){let c=MR(`${o}:${a}`);l.Authorization=`Basic ${c}`}return t.body&&(t.mediaType?l["Content-Type"]=t.mediaType:z0(t.body)?l["Content-Type"]=t.body.type||"application/octet-stream":Ns(t.body)?l["Content-Type"]="text/plain":UR(t.body)||(l["Content-Type"]="application/json")),l},WR=e=>{if(e.body)return e.body},HR=async(e,t,r,n,o,a,i)=>{let f=ii.CancelToken.source(),l={url:r,headers:a,data:n??o,method:t.method,withCredentials:e.WITH_CREDENTIALS,cancelToken:f.token};i(()=>f.cancel("The user aborted a request."));try{return await ii.request(l)}catch(c){let d=c;if(d.response)return d.response;throw c}},ZR=(e,t)=>{if(t){let r=e.headers[t];if(Ns(r))return r}},VR=e=>{if(e.status!==204)return e.data},GR=(e,t)=>{let n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[t.status];if(n)throw new qn(e,t,n);if(!t.ok)throw new qn(e,t,"Generic Error")},W0=(e,t)=>new Or(async(r,n,o)=>{try{let a=$R(e,t),i=qR(t),f=WR(t),l=await zR(e,t,i);if(!o.isCancelled){let c=await HR(e,t,a,f,i,l,o),d=VR(c),y=ZR(c,t.responseHeader),v={url:a,ok:DR(c.status),status:c.status,statusText:c.statusText,body:y??d};GR(t,v),r(v.body)}}catch(a){n(a)}});var Ls=class extends Ko{constructor(t){super(t)}request(t){return W0(this.config,t)}};$();q();z();H();W();var Jo=class{constructor(t){this.httpRequest=t}completion(t){return this.httpRequest.request({method:"POST",url:"/v1/completions",body:t,mediaType:"application/json",errors:{400:"Bad Request"}})}event(t){return this.httpRequest.request({method:"POST",url:"/v1/events",body:t,mediaType:"application/json",errors:{400:"Bad Request"}})}};var Qo=class{constructor(t,r=Ls){this.request=new r({BASE:t?.BASE??"https://app.tabbyml.com/api/workspace/tabbyml/tabby",VERSION:t?.VERSION??"0.1.0",WITH_CREDENTIALS:t?.WITH_CREDENTIALS??!1,CREDENTIALS:t?.CREDENTIALS??"include",TOKEN:t?.TOKEN,USERNAME:t?.USERNAME,PASSWORD:t?.PASSWORD,HEADERS:t?.HEADERS,ENCODE_PATH:t?.ENCODE_PATH}),this.v1=new Jo(this.request)}};$();q();z();H();W();$();q();z();H();W();function H0(e){return new Promise(t=>setTimeout(t,e))}function Wn(e){return e.match(/.*(?:$|\r?\n)/g).filter(Boolean)}function Nl(e){return e.match(/\w+|\W+/g).filter(Boolean)}function ks(e){return e.trim().length===0}function Ll(e,t){return new Or((r,n,o)=>{e.then(a=>{r(a)}).catch(a=>{n(a)}),o(()=>{t()})})}$();q();z();H();W();var Z0={server:{endpoint:"http://localhost:8080"},logs:{level:"error"},anonymousUsageTracking:{disable:!1}};$();q();z();H();W();$();q();z();H();W();var ea=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,G0=new Set,kl=typeof ce=="object"&&ce?ce:{},Y0=(e,t,r,n)=>{typeof kl.emitWarning=="function"?kl.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Ds=globalThis.AbortController,V0=globalThis.AbortSignal;if(typeof Ds>"u"){V0=class{constructor(){at(this,"onabort");at(this,"_onabort",[]);at(this,"reason");at(this,"aborted",!1)}addEventListener(n,o){this._onabort.push(o)}},Ds=class{constructor(){at(this,"signal",new V0);t()}abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);this.signal.onabort?.(n)}}};let e=kl.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Y0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var YR=e=>!G0.has(e),l7=Symbol("type"),Hn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),K0=e=>Hn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?to:null:null,to=class extends Array{constructor(t){super(t),this.fill(0)}},ro,eo=class{constructor(t,r){at(this,"heap");at(this,"length");if(!J(eo,ro))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){let r=K0(t);if(!r)return[];Ge(eo,ro,!0);let n=new eo(t,r);return Ge(eo,ro,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Fs=eo;ro=new WeakMap,it(Fs,ro,!1);var jr,gr,en,$r,no,jt,qr,$t,Rt,ft,sr,mr,nr,Ht,zr,Jt,wn,bn,Wr,tn,Gn,cr,ra,Fl,fi,_n,na,vr,js,X0,li,io,ia,rn,Zn,nn,Vn,oa,Pl,oo,Ps,ao,Us,At,Tt,aa,Ul,ci,ta,Dl=class{constructor(t){it(this,ra);it(this,js);it(this,rn);it(this,nn);it(this,oa);it(this,oo);it(this,ao);it(this,At);it(this,aa);it(this,ci);it(this,jr,void 0);it(this,gr,void 0);it(this,en,void 0);it(this,$r,void 0);it(this,no,void 0);at(this,"ttl");at(this,"ttlResolution");at(this,"ttlAutopurge");at(this,"updateAgeOnGet");at(this,"updateAgeOnHas");at(this,"allowStale");at(this,"noDisposeOnSet");at(this,"noUpdateTTL");at(this,"maxEntrySize");at(this,"sizeCalculation");at(this,"noDeleteOnFetchRejection");at(this,"noDeleteOnStaleGet");at(this,"allowStaleOnFetchAbort");at(this,"allowStaleOnFetchRejection");at(this,"ignoreFetchAbort");it(this,jt,void 0);it(this,qr,void 0);it(this,$t,void 0);it(this,Rt,void 0);it(this,ft,void 0);it(this,sr,void 0);it(this,mr,void 0);it(this,nr,void 0);it(this,Ht,void 0);it(this,zr,void 0);it(this,Jt,void 0);it(this,wn,void 0);it(this,bn,void 0);it(this,Wr,void 0);it(this,tn,void 0);it(this,Gn,void 0);it(this,cr,void 0);it(this,fi,()=>{});it(this,_n,()=>{});it(this,na,()=>{});it(this,vr,()=>!1);it(this,li,t=>{});it(this,io,(t,r,n)=>{});it(this,ia,(t,r,n,o)=>{if(n||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:r=0,ttl:n,ttlResolution:o=1,ttlAutopurge:a,updateAgeOnGet:i,updateAgeOnHas:f,allowStale:l,dispose:c,disposeAfter:d,noDisposeOnSet:y,noUpdateTTL:v,maxSize:_=0,maxEntrySize:h=0,sizeCalculation:w,fetchMethod:S,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:D,ignoreFetchAbort:V}=t;if(r!==0&&!Hn(r))throw new TypeError("max option must be a nonnegative integer");let F=r?K0(r):Array;if(!F)throw new Error("invalid max value: "+r);if(Ge(this,jr,r),Ge(this,gr,_),this.maxEntrySize=h||J(this,gr),this.sizeCalculation=w,this.sizeCalculation){if(!J(this,gr)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ge(this,no,S),Ge(this,Gn,!!S),Ge(this,$t,new Map),Ge(this,Rt,new Array(r).fill(void 0)),Ge(this,ft,new Array(r).fill(void 0)),Ge(this,sr,new F(r)),Ge(this,mr,new F(r)),Ge(this,nr,0),Ge(this,Ht,0),Ge(this,zr,Fs.create(r)),Ge(this,jt,0),Ge(this,qr,0),typeof c=="function"&&Ge(this,en,c),typeof d=="function"?(Ge(this,$r,d),Ge(this,Jt,[])):(Ge(this,$r,void 0),Ge(this,Jt,void 0)),Ge(this,tn,!!J(this,en)),Ge(this,cr,!!J(this,$r)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(J(this,gr)!==0&&!Hn(J(this,gr)))throw new TypeError("maxSize must be a positive integer if specified");if(!Hn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");tt(this,js,X0).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!f,this.ttlResolution=Hn(o)||o===0?o:1,this.ttlAutopurge=!!a,this.ttl=n||0,this.ttl){if(!Hn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");tt(this,ra,Fl).call(this)}if(J(this,jr)===0&&this.ttl===0&&J(this,gr)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!J(this,jr)&&!J(this,gr)){let N="LRU_CACHE_UNBOUNDED";YR(N)&&(G0.add(N),Y0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,Dl))}}static unsafeExposeInternals(t){return{starts:J(t,bn),ttls:J(t,Wr),sizes:J(t,wn),keyMap:J(t,$t),keyList:J(t,Rt),valList:J(t,ft),next:J(t,sr),prev:J(t,mr),get head(){return J(t,nr)},get tail(){return J(t,Ht)},free:J(t,zr),isBackgroundFetch:r=>{var n;return tt(n=t,At,Tt).call(n,r)},backgroundFetch:(r,n,o,a)=>{var i;return tt(i=t,ao,Us).call(i,r,n,o,a)},moveToTail:r=>{var n;return tt(n=t,ci,ta).call(n,r)},indexes:r=>{var n;return tt(n=t,rn,Zn).call(n,r)},rindexes:r=>{var n;return tt(n=t,nn,Vn).call(n,r)},isStale:r=>{var n;return J(n=t,vr).call(n,r)}}}get max(){return J(this,jr)}get maxSize(){return J(this,gr)}get calculatedSize(){return J(this,qr)}get size(){return J(this,jt)}get fetchMethod(){return J(this,no)}get dispose(){return J(this,en)}get disposeAfter(){return J(this,$r)}getRemainingTTL(t){return J(this,$t).has(t)?1/0:0}*entries(){for(let t of tt(this,rn,Zn).call(this))J(this,ft)[t]!==void 0&&J(this,Rt)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield[J(this,Rt)[t],J(this,ft)[t]])}*rentries(){for(let t of tt(this,nn,Vn).call(this))J(this,ft)[t]!==void 0&&J(this,Rt)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield[J(this,Rt)[t],J(this,ft)[t]])}*keys(){for(let t of tt(this,rn,Zn).call(this)){let r=J(this,Rt)[t];r!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield r)}}*rkeys(){for(let t of tt(this,nn,Vn).call(this)){let r=J(this,Rt)[t];r!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield r)}}*values(){for(let t of tt(this,rn,Zn).call(this))J(this,ft)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield J(this,ft)[t])}*rvalues(){for(let t of tt(this,nn,Vn).call(this))J(this,ft)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield J(this,ft)[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of tt(this,rn,Zn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;if(a!==void 0&&t(a,J(this,Rt)[n],this))return this.get(J(this,Rt)[n],r)}}forEach(t,r=this){for(let n of tt(this,rn,Zn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,J(this,Rt)[n],this)}}rforEach(t,r=this){for(let n of tt(this,nn,Vn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,J(this,Rt)[n],this)}}purgeStale(){let t=!1;for(let r of tt(this,nn,Vn).call(this,{allowStale:!0}))J(this,vr).call(this,r)&&(this.delete(J(this,Rt)[r]),t=!0);return t}dump(){let t=[];for(let r of tt(this,rn,Zn).call(this,{allowStale:!0})){let n=J(this,Rt)[r],o=J(this,ft)[r],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;if(a===void 0||n===void 0)continue;let i={value:a};if(J(this,Wr)&&J(this,bn)){i.ttl=J(this,Wr)[r];let f=ea.now()-J(this,bn)[r];i.start=Math.floor(Date.now()-f)}J(this,wn)&&(i.size=J(this,wn)[r]),t.unshift([n,i])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let o=Date.now()-n.start;n.start=ea.now()-o}this.set(r,n.value,n)}}set(t,r,n={}){var v,_;if(r===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:a,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:l}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,d=J(this,ia).call(this,t,r,n.size||0,f);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let y=J(this,jt)===0?void 0:J(this,$t).get(t);if(y===void 0)y=J(this,jt)===0?J(this,Ht):J(this,zr).length!==0?J(this,zr).pop():J(this,jt)===J(this,jr)?tt(this,oo,Ps).call(this,!1):J(this,jt),J(this,Rt)[y]=t,J(this,ft)[y]=r,J(this,$t).set(t,y),J(this,sr)[J(this,Ht)]=y,J(this,mr)[y]=J(this,Ht),Ge(this,Ht,y),xa(this,jt)._++,J(this,io).call(this,y,d,l),l&&(l.set="add"),c=!1;else{tt(this,ci,ta).call(this,y);let h=J(this,ft)[y];if(r!==h){if(J(this,Gn)&&tt(this,At,Tt).call(this,h)?h.__abortController.abort(new Error("replaced")):i||(J(this,tn)&&((v=J(this,en))==null||v.call(this,h,t,"set")),J(this,cr)&&J(this,Jt)?.push([h,t,"set"])),J(this,li).call(this,y),J(this,io).call(this,y,d,l),J(this,ft)[y]=r,l){l.set="replace";let w=h&&tt(this,At,Tt).call(this,h)?h.__staleWhileFetching:h;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(o!==0&&!J(this,Wr)&&tt(this,ra,Fl).call(this),J(this,Wr)&&(c||J(this,na).call(this,y,o,a),l&&J(this,_n).call(this,l,y)),!i&&J(this,cr)&&J(this,Jt)){let h=J(this,Jt),w;for(;w=h?.shift();)(_=J(this,$r))==null||_.call(this,...w)}return this}pop(){var t;try{for(;J(this,jt);){let r=J(this,ft)[J(this,nr)];if(tt(this,oo,Ps).call(this,!0),tt(this,At,Tt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(J(this,cr)&&J(this,Jt)){let r=J(this,Jt),n;for(;n=r?.shift();)(t=J(this,$r))==null||t.call(this,...n)}}}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:o}=r,a=J(this,$t).get(t);if(a!==void 0){let i=J(this,ft)[a];if(tt(this,At,Tt).call(this,i)&&i.__staleWhileFetching===void 0)return!1;if(J(this,vr).call(this,a))o&&(o.has="stale",J(this,_n).call(this,o,a));else return n&&J(this,fi).call(this,a),o&&(o.has="hit",J(this,_n).call(this,o,a)),!0}else o&&(o.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,o=J(this,$t).get(t);if(o!==void 0&&(n||!J(this,vr).call(this,o))){let a=J(this,ft)[o];return tt(this,At,Tt).call(this,a)?a.__staleWhileFetching:a}}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:_=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:w,forceRefresh:S=!1,status:T,signal:C}=r;if(!J(this,Gn))return T&&(T.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:T});let M={allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:i,noDisposeOnSet:f,size:l,sizeCalculation:c,noUpdateTTL:d,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:h,ignoreFetchAbort:_,status:T,signal:C},D=J(this,$t).get(t);if(D===void 0){T&&(T.fetch="miss");let V=tt(this,ao,Us).call(this,t,D,M,w);return V.__returned=V}else{let V=J(this,ft)[D];if(tt(this,At,Tt).call(this,V)){let Q=n&&V.__staleWhileFetching!==void 0;return T&&(T.fetch="inflight",Q&&(T.returnedStale=!0)),Q?V.__staleWhileFetching:V.__returned=V}let F=J(this,vr).call(this,D);if(!S&&!F)return T&&(T.fetch="hit"),tt(this,ci,ta).call(this,D),o&&J(this,fi).call(this,D),T&&J(this,_n).call(this,T,D),V;let N=tt(this,ao,Us).call(this,t,D,M,w),G=N.__staleWhileFetching!==void 0&&n;return T&&(T.fetch=F?"stale":"refresh",G&&F&&(T.returnedStale=!0)),G?N.__staleWhileFetching:N.__returned=N}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:i}=r,f=J(this,$t).get(t);if(f!==void 0){let l=J(this,ft)[f],c=tt(this,At,Tt).call(this,l);return i&&J(this,_n).call(this,i,f),J(this,vr).call(this,f)?(i&&(i.get="stale"),c?(i&&n&&l.__staleWhileFetching!==void 0&&(i.returnedStale=!0),n?l.__staleWhileFetching:void 0):(a||this.delete(t),i&&n&&(i.returnedStale=!0),n?l:void 0)):(i&&(i.get="hit"),c?l.__staleWhileFetching:(tt(this,ci,ta).call(this,f),o&&J(this,fi).call(this,f),l))}else i&&(i.get="miss")}delete(t){var n,o;let r=!1;if(J(this,jt)!==0){let a=J(this,$t).get(t);if(a!==void 0)if(r=!0,J(this,jt)===1)this.clear();else{J(this,li).call(this,a);let i=J(this,ft)[a];tt(this,At,Tt).call(this,i)?i.__abortController.abort(new Error("deleted")):(J(this,tn)||J(this,cr))&&(J(this,tn)&&((n=J(this,en))==null||n.call(this,i,t,"delete")),J(this,cr)&&J(this,Jt)?.push([i,t,"delete"])),J(this,$t).delete(t),J(this,Rt)[a]=void 0,J(this,ft)[a]=void 0,a===J(this,Ht)?Ge(this,Ht,J(this,mr)[a]):a===J(this,nr)?Ge(this,nr,J(this,sr)[a]):(J(this,sr)[J(this,mr)[a]]=J(this,sr)[a],J(this,mr)[J(this,sr)[a]]=J(this,mr)[a]),xa(this,jt)._--,J(this,zr).push(a)}}if(J(this,cr)&&J(this,Jt)?.length){let a=J(this,Jt),i;for(;i=a?.shift();)(o=J(this,$r))==null||o.call(this,...i)}return r}clear(){var t,r;for(let n of tt(this,nn,Vn).call(this,{allowStale:!0})){let o=J(this,ft)[n];if(tt(this,At,Tt).call(this,o))o.__abortController.abort(new Error("deleted"));else{let a=J(this,Rt)[n];J(this,tn)&&((t=J(this,en))==null||t.call(this,o,a,"delete")),J(this,cr)&&J(this,Jt)?.push([o,a,"delete"])}}if(J(this,$t).clear(),J(this,ft).fill(void 0),J(this,Rt).fill(void 0),J(this,Wr)&&J(this,bn)&&(J(this,Wr).fill(0),J(this,bn).fill(0)),J(this,wn)&&J(this,wn).fill(0),Ge(this,nr,0),Ge(this,Ht,0),J(this,zr).length=0,Ge(this,qr,0),Ge(this,jt,0),J(this,cr)&&J(this,Jt)){let n=J(this,Jt),o;for(;o=n?.shift();)(r=J(this,$r))==null||r.call(this,...o)}}},Ms=Dl;jr=new WeakMap,gr=new WeakMap,en=new WeakMap,$r=new WeakMap,no=new WeakMap,jt=new WeakMap,qr=new WeakMap,$t=new WeakMap,Rt=new WeakMap,ft=new WeakMap,sr=new WeakMap,mr=new WeakMap,nr=new WeakMap,Ht=new WeakMap,zr=new WeakMap,Jt=new WeakMap,wn=new WeakMap,bn=new WeakMap,Wr=new WeakMap,tn=new WeakMap,Gn=new WeakMap,cr=new WeakMap,ra=new WeakSet,Fl=function(){let t=new to(J(this,jr)),r=new to(J(this,jr));Ge(this,Wr,t),Ge(this,bn,r),Ge(this,na,(a,i,f=ea.now())=>{if(r[a]=i!==0?f:0,t[a]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{J(this,vr).call(this,a)&&this.delete(J(this,Rt)[a])},i+1);l.unref&&l.unref()}}),Ge(this,fi,a=>{r[a]=t[a]!==0?ea.now():0}),Ge(this,_n,(a,i)=>{if(t[i]){let f=t[i],l=r[i];a.ttl=f,a.start=l,a.now=n||o();let c=a.now-l;a.remainingTTL=f-c}});let n=0,o=()=>{let a=ea.now();if(this.ttlResolution>0){n=a;let i=setTimeout(()=>n=0,this.ttlResolution);i.unref&&i.unref()}return a};this.getRemainingTTL=a=>{let i=J(this,$t).get(a);if(i===void 0)return 0;let f=t[i],l=r[i];if(f===0||l===0)return 1/0;let c=(n||o())-l;return f-c},Ge(this,vr,a=>t[a]!==0&&r[a]!==0&&(n||o())-r[a]>t[a])},fi=new WeakMap,_n=new WeakMap,na=new WeakMap,vr=new WeakMap,js=new WeakSet,X0=function(){let t=new to(J(this,jr));Ge(this,qr,0),Ge(this,wn,t),Ge(this,li,r=>{Ge(this,qr,J(this,qr)-t[r]),t[r]=0}),Ge(this,ia,(r,n,o,a)=>{if(tt(this,At,Tt).call(this,n))return 0;if(!Hn(o))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(o=a(n,r),!Hn(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ge(this,io,(r,n,o)=>{if(t[r]=n,J(this,gr)){let a=J(this,gr)-t[r];for(;J(this,qr)>a;)tt(this,oo,Ps).call(this,!0)}Ge(this,qr,J(this,qr)+t[r]),o&&(o.entrySize=n,o.totalCalculatedSize=J(this,qr))})},li=new WeakMap,io=new WeakMap,ia=new WeakMap,rn=new WeakSet,Zn=function*({allowStale:t=this.allowStale}={}){if(J(this,jt))for(let r=J(this,Ht);!(!tt(this,oa,Pl).call(this,r)||((t||!J(this,vr).call(this,r))&&(yield r),r===J(this,nr)));)r=J(this,mr)[r]},nn=new WeakSet,Vn=function*({allowStale:t=this.allowStale}={}){if(J(this,jt))for(let r=J(this,nr);!(!tt(this,oa,Pl).call(this,r)||((t||!J(this,vr).call(this,r))&&(yield r),r===J(this,Ht)));)r=J(this,sr)[r]},oa=new WeakSet,Pl=function(t){return t!==void 0&&J(this,$t).get(J(this,Rt)[t])===t},oo=new WeakSet,Ps=function(t){var a;let r=J(this,nr),n=J(this,Rt)[r],o=J(this,ft)[r];return J(this,Gn)&&tt(this,At,Tt).call(this,o)?o.__abortController.abort(new Error("evicted")):(J(this,tn)||J(this,cr))&&(J(this,tn)&&((a=J(this,en))==null||a.call(this,o,n,"evict")),J(this,cr)&&J(this,Jt)?.push([o,n,"evict"])),J(this,li).call(this,r),t&&(J(this,Rt)[r]=void 0,J(this,ft)[r]=void 0,J(this,zr).push(r)),J(this,jt)===1?(Ge(this,nr,Ge(this,Ht,0)),J(this,zr).length=0):Ge(this,nr,J(this,sr)[r]),J(this,$t).delete(n),xa(this,jt)._--,r},ao=new WeakSet,Us=function(t,r,n,o){let a=r===void 0?void 0:J(this,ft)[r];if(tt(this,At,Tt).call(this,a))return a;let i=new Ds,{signal:f}=n;f?.addEventListener("abort",()=>i.abort(f.reason),{signal:i.signal});let l={signal:i.signal,options:n,context:o},c=(w,S=!1)=>{let{aborted:T}=i.signal,C=n.ignoreFetchAbort&&w!==void 0;if(n.status&&(T&&!S?(n.status.fetchAborted=!0,n.status.fetchError=i.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),T&&!C&&!S)return y(i.signal.reason);let M=_;return J(this,ft)[r]===_&&(w===void 0?M.__staleWhileFetching?J(this,ft)[r]=M.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,w,l.options))),w},d=w=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=w),y(w)),y=w=>{let{aborted:S}=i.signal,T=S&&n.allowStaleOnFetchAbort,C=T||n.allowStaleOnFetchRejection,M=C||n.noDeleteOnFetchRejection,D=_;if(J(this,ft)[r]===_&&(!M||D.__staleWhileFetching===void 0?this.delete(t):T||(J(this,ft)[r]=D.__staleWhileFetching)),C)return n.status&&D.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw w},v=(w,S)=>{var C;let T=(C=J(this,no))==null?void 0:C.call(this,t,a,l);T&&T instanceof Promise&&T.then(M=>w(M),S),i.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(w(),n.allowStaleOnFetchAbort&&(w=M=>c(M,!0)))})};n.status&&(n.status.fetchDispatched=!0);let _=new Promise(v).then(c,d),h=Object.assign(_,{__abortController:i,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,h,{...l.options,status:void 0}),r=J(this,$t).get(t)):J(this,ft)[r]=h,h},At=new WeakSet,Tt=function(t){if(!J(this,Gn))return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ds},aa=new WeakSet,Ul=function(t,r){J(this,mr)[r]=t,J(this,sr)[t]=r},ci=new WeakSet,ta=function(t){t!==J(this,Ht)&&(t===J(this,nr)?Ge(this,nr,J(this,sr)[t]):tt(this,aa,Ul).call(this,J(this,mr)[t],J(this,sr)[t]),tt(this,aa,Ul).call(this,J(this,Ht),t),Ge(this,Ht,t))};var w_=Ln(ev()),b_=Ln(Tv());$();q();z();H();W();$();q();z();H();W();La();La();var qt={},Ov=!1;function NT(){return Ov||(Ov=!0,qt.endianness=function(){return"LE"},qt.hostname=function(){return typeof location<"u"?location.hostname:""},qt.loadavg=function(){return[]},qt.uptime=function(){return 0},qt.freemem=function(){return Number.MAX_VALUE},qt.totalmem=function(){return Number.MAX_VALUE},qt.cpus=function(){return[]},qt.type=function(){return"Browser"},qt.release=function(){return typeof navigator<"u"?navigator.appVersion:""},qt.networkInterfaces=qt.getNetworkInterfaces=function(){return{}},qt.arch=function(){return"javascript"},qt.platform=function(){return"browser"},qt.tmpdir=qt.tmpDir=function(){return"/tmp"},qt.EOL=`
|
|
`,qt.homedir=function(){return"/"}),qt}var st=NT();st.endianness;st.hostname;st.loadavg;st.uptime;st.freemem;st.totalmem;st.cpus;st.type;st.release;st.networkInterfaces;st.getNetworkInterfaces;st.arch;st.platform;st.tmpdir;st.tmpDir;st.EOL;st.homedir;var LT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return LT};st.homedir=function(){return"/home"};st.version=function(){return""};st.arch=function(){return"x64"};st.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};st.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};st.uptime=To;st.constants={};var rq=st.version,nq=st.constants,iq=st.EOL,oq=st.arch,aq=st.cpus,sq=st.endianness,uq=st.freemem,fq=st.getNetworkInterfaces,lq=st.homedir,cq=st.hostname,hq=st.loadavg,pq=st.networkInterfaces,dq=st.platform,yq=st.release,gq=st.tmpDir,mq=st.tmpdir,vq=st.totalmem,wq=st.type;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var Yl={},Iv=!1,co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function kT(){if(Iv)return Yl;Iv=!0;var e=Yl={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(w){if(t===setTimeout)return setTimeout(w,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch{try{return t.call(null,w,0)}catch{return t.call(this||co,w,0)}}}function i(w){if(r===clearTimeout)return clearTimeout(w);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{return r(w)}catch{try{return r.call(null,w)}catch{return r.call(this||co,w)}}}var f=[],l=!1,c,d=-1;function y(){!l||!c||(l=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!l){var w=a(y);l=!0;for(var S=f.length;S;){for(c=f,f=[];++d<S;)c&&c[d].run();d=-1,S=f.length}c=null,l=!1,i(w)}}e.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];f.push(new _(w,S)),f.length===1&&!l&&a(v)};function _(w,S){(this||co).fun=w,(this||co).array=S}_.prototype.run=function(){(this||co).fun.apply(null,(this||co).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(w){return[]},e.binding=function(w){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(w){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yl}var lt=kT();lt.platform="browser";lt.addListener;lt.argv;lt.binding;lt.browser;lt.chdir;lt.cwd;lt.emit;lt.env;lt.listeners;lt.nextTick;lt.off;lt.on;lt.once;lt.prependListener;lt.prependOnceListener;lt.removeAllListeners;lt.removeListener;lt.title;lt.umask;lt.version;lt.versions;var Kl={},xv=!1;function FT(){if(xv)return Kl;xv=!0;var e=lt;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l===void 0&&(l=e.cwd()),d=l),t(d),d.length!==0&&(i=d+"/"+i,f=d.charCodeAt(0)===47)}return i=r(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=r(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f<arguments.length;++f){var l=arguments[f];t(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":o.normalize(i)},relative:function(i,f){if(t(i),t(f),i===f||(i=o.resolve(i),f=o.resolve(f),i===f))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var c=i.length,d=c-l,y=1;y<f.length&&f.charCodeAt(y)===47;++y);for(var v=f.length,_=v-y,h=d<_?d:_,w=-1,S=0;S<=h;++S){if(S===h){if(_>h){if(f.charCodeAt(y+S)===47)return f.slice(y+S+1);if(S===0)return f.slice(y+S)}else d>h&&(i.charCodeAt(l+S)===47?w=S:S===0&&(w=0));break}var T=i.charCodeAt(l+S),C=f.charCodeAt(y+S);if(T!==C)break;T===47&&(w=S)}var M="";for(S=l+w+1;S<=c;++S)(S===c||i.charCodeAt(S)===47)&&(M.length===0?M+="..":M+="/..");return M.length>0?M+f.slice(y+w):(y+=w,f.charCodeAt(y)===47&&++y,f.slice(y))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,d=!0,y=i.length-1;y>=1;--y)if(f=i.charCodeAt(y),f===47){if(!d){c=y;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');t(i);var l=0,c=-1,d=!0,y;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var v=f.length-1,_=-1;for(y=i.length-1;y>=0;--y){var h=i.charCodeAt(y);if(h===47){if(!d){l=y+1;break}}else _===-1&&(d=!1,_=y+1),v>=0&&(h===f.charCodeAt(v)?--v===-1&&(c=y):(v=-1,c=_))}return l===c?c=_:c===-1&&(c=i.length),i.slice(l,c)}else{for(y=i.length-1;y>=0;--y)if(i.charCodeAt(y)===47){if(!d){l=y+1;break}}else c===-1&&(d=!1,c=y+1);return c===-1?"":i.slice(l,c)}},extname:function(i){t(i);for(var f=-1,l=0,c=-1,d=!0,y=0,v=i.length-1;v>=0;--v){var _=i.charCodeAt(v);if(_===47){if(!d){l=v+1;break}continue}c===-1&&(d=!1,c=v+1),_===46?f===-1?f=v:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){t(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,d;c?(f.root="/",d=1):d=0;for(var y=-1,v=0,_=-1,h=!0,w=i.length-1,S=0;w>=d;--w){if(l=i.charCodeAt(w),l===47){if(!h){v=w+1;break}continue}_===-1&&(h=!1,_=w+1),l===46?y===-1?y=w:S!==1&&(S=1):y!==-1&&(S=-1)}return y===-1||_===-1||S===0||S===1&&y===_-1&&y===v+1?_!==-1&&(v===0&&c?f.base=f.name=i.slice(1,_):f.base=f.name=i.slice(v,_)):(v===0&&c?(f.name=i.slice(1,y),f.base=i.slice(1,_)):(f.name=i.slice(v,y),f.base=i.slice(v,_)),f.ext=i.slice(y,_)),v>0?f.dir=i.slice(0,v-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Kl=o,Kl}var Ot=FT();var qq=Ot._makeLong,zq=Ot.basename,Wq=Ot.delimiter,Hq=Ot.dirname,Zq=Ot.extname,Vq=Ot.format,Gq=Ot.isAbsolute,Yq=Ot.join,Kq=Ot.normalize,Xq=Ot.parse,Jq=Ot.posix,Qq=Ot.relative,ez=Ot.resolve,ua=Ot.sep,tz=Ot.win32;var v_=Ln(Bv());$();q();z();H();W();$();q();z();H();W();function Cv(){throw new Error("Node.js child_process is not supported by JSPM core in the browser")}$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var Lv,An,Rn,po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se,Pt=Lv={};function Xl(){throw new Error("setTimeout has not been defined")}function Jl(){throw new Error("clearTimeout has not been defined")}function kv(e){if(An===setTimeout)return setTimeout(e,0);if((An===Xl||!An)&&setTimeout)return An=setTimeout,setTimeout(e,0);try{return An(e,0)}catch{try{return An.call(null,e,0)}catch{return An.call(this||po,e,0)}}}(function(){try{An=typeof setTimeout=="function"?setTimeout:Xl}catch{An=Xl}try{Rn=typeof clearTimeout=="function"?clearTimeout:Jl}catch{Rn=Jl}})();var yi,Tn=[],ho=!1,Ws=-1;function qT(){ho&&yi&&(ho=!1,yi.length?Tn=yi.concat(Tn):Ws=-1,Tn.length&&Fv())}function Fv(){if(!ho){var e=kv(qT);ho=!0;for(var t=Tn.length;t;){for(yi=Tn,Tn=[];++Ws<t;)yi&&yi[Ws].run();Ws=-1,t=Tn.length}yi=null,ho=!1,function(r){if(Rn===clearTimeout)return clearTimeout(r);if((Rn===Jl||!Rn)&&clearTimeout)return Rn=clearTimeout,clearTimeout(r);try{Rn(r)}catch{try{return Rn.call(null,r)}catch{return Rn.call(this||po,r)}}}(e)}}function Nv(e,t){(this||po).fun=e,(this||po).array=t}function Sn(){}Pt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Tn.push(new Nv(e,t)),Tn.length!==1||ho||kv(Fv)},Nv.prototype.run=function(){(this||po).fun.apply(null,(this||po).array)},Pt.title="browser",Pt.browser=!0,Pt.env={},Pt.argv=[],Pt.version="",Pt.versions={},Pt.on=Sn,Pt.addListener=Sn,Pt.once=Sn,Pt.off=Sn,Pt.removeListener=Sn,Pt.removeAllListeners=Sn,Pt.emit=Sn,Pt.prependListener=Sn,Pt.prependOnceListener=Sn,Pt.listeners=function(e){return[]},Pt.binding=function(e){throw new Error("process.binding is not supported")},Pt.cwd=function(){return"/"},Pt.chdir=function(e){throw new Error("process.chdir is not supported")},Pt.umask=function(){return 0};var Et=Lv;Et.addListener;Et.argv;Et.binding;Et.browser;Et.chdir;Et.cwd;Et.emit;Et.env;Et.listeners;Et.nextTick;Et.off;Et.on;Et.once;Et.prependListener;Et.prependOnceListener;Et.removeAllListeners;Et.removeListener;Et.title;Et.umask;Et.version;Et.versions;var zT=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",nc=Object.prototype.toString,nu=function(e){return!(zT&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&nc.call(e)==="[object Arguments]"},Vv=function(e){return!!nu(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&nc.call(e)!=="[object Array]"&&nc.call(e.callee)==="[object Function]"},WT=function(){return nu(arguments)}();nu.isLegacyArguments=Vv;var HT=WT?nu:Vv,ZT=Object.prototype.toString,VT=Function.prototype.toString,GT=/^\s*(?:function)?\*/,Gv=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Yv=Object.getPrototypeOf,Pv=function(){if(!Gv)return!1;try{return Function("return function*() {}")()}catch{}}(),YT=Pv?Yv(Pv):{},KT=function(e){return typeof e=="function"&&(!!GT.test(VT.call(e))||(Gv?Yv(e)===YT:ZT.call(e)==="[object GeneratorFunction]"))},XT=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},Kv=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},ct={},JT=Kv,QT=HT,eO=KT;function vi(e){return e.call.bind(e)}var Xv=typeof BigInt<"u",ic=typeof Symbol<"u",br=ic&&Symbol.toStringTag!==void 0,pr=typeof Uint8Array<"u",tO=typeof ArrayBuffer<"u";if(pr&&br)var rO=Object.getPrototypeOf(Uint8Array.prototype),xr=vi(Object.getOwnPropertyDescriptor(rO,Symbol.toStringTag).get);var Bt=vi(Object.prototype.toString),nO=vi(Number.prototype.valueOf),iO=vi(String.prototype.valueOf),oO=vi(Boolean.prototype.valueOf);if(Xv)var aO=vi(BigInt.prototype.valueOf);if(ic)var sO=vi(Symbol.prototype.valueOf);function ha(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}function Uv(e){return pr&&br?xr(e)!==void 0:Jv(e)||Qv(e)||ew(e)||tw(e)||rw(e)||nw(e)||iw(e)||ow(e)||aw(e)||sw(e)||uw(e)}function Jv(e){return pr&&br?xr(e)==="Uint8Array":Bt(e)==="[object Uint8Array]"||JT(e)&&e.buffer!==void 0}function Qv(e){return pr&&br?xr(e)==="Uint8ClampedArray":Bt(e)==="[object Uint8ClampedArray]"}function ew(e){return pr&&br?xr(e)==="Uint16Array":Bt(e)==="[object Uint16Array]"}function tw(e){return pr&&br?xr(e)==="Uint32Array":Bt(e)==="[object Uint32Array]"}function rw(e){return pr&&br?xr(e)==="Int8Array":Bt(e)==="[object Int8Array]"}function nw(e){return pr&&br?xr(e)==="Int16Array":Bt(e)==="[object Int16Array]"}function iw(e){return pr&&br?xr(e)==="Int32Array":Bt(e)==="[object Int32Array]"}function ow(e){return pr&&br?xr(e)==="Float32Array":Bt(e)==="[object Float32Array]"}function aw(e){return pr&&br?xr(e)==="Float64Array":Bt(e)==="[object Float64Array]"}function sw(e){return pr&&br?xr(e)==="BigInt64Array":Bt(e)==="[object BigInt64Array]"}function uw(e){return pr&&br?xr(e)==="BigUint64Array":Bt(e)==="[object BigUint64Array]"}function Hs(e){return Bt(e)==="[object Map]"}function Zs(e){return Bt(e)==="[object Set]"}function Vs(e){return Bt(e)==="[object WeakMap]"}function Ql(e){return Bt(e)==="[object WeakSet]"}function Xs(e){return Bt(e)==="[object ArrayBuffer]"}function Dv(e){return typeof ArrayBuffer<"u"&&(Xs.working?Xs(e):e instanceof ArrayBuffer)}function Js(e){return Bt(e)==="[object DataView]"}function Mv(e){return typeof DataView<"u"&&(Js.working?Js(e):e instanceof DataView)}function Qs(e){return Bt(e)==="[object SharedArrayBuffer]"}function jv(e){return typeof SharedArrayBuffer<"u"&&(Qs.working?Qs(e):e instanceof SharedArrayBuffer)}function $v(e){return ha(e,nO)}function qv(e){return ha(e,iO)}function zv(e){return ha(e,oO)}function Wv(e){return Xv&&ha(e,aO)}function Hv(e){return ic&&ha(e,sO)}ct.isArgumentsObject=QT,ct.isGeneratorFunction=eO,ct.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},ct.isArrayBufferView=function(e){return tO&&ArrayBuffer.isView?ArrayBuffer.isView(e):Uv(e)||Mv(e)},ct.isTypedArray=Uv,ct.isUint8Array=Jv,ct.isUint8ClampedArray=Qv,ct.isUint16Array=ew,ct.isUint32Array=tw,ct.isInt8Array=rw,ct.isInt16Array=nw,ct.isInt32Array=iw,ct.isFloat32Array=ow,ct.isFloat64Array=aw,ct.isBigInt64Array=sw,ct.isBigUint64Array=uw,Hs.working=typeof Map<"u"&&Hs(new Map),ct.isMap=function(e){return typeof Map<"u"&&(Hs.working?Hs(e):e instanceof Map)},Zs.working=typeof Set<"u"&&Zs(new Set),ct.isSet=function(e){return typeof Set<"u"&&(Zs.working?Zs(e):e instanceof Set)},Vs.working=typeof WeakMap<"u"&&Vs(new WeakMap),ct.isWeakMap=function(e){return typeof WeakMap<"u"&&(Vs.working?Vs(e):e instanceof WeakMap)},Ql.working=typeof WeakSet<"u"&&Ql(new WeakSet),ct.isWeakSet=function(e){return Ql(e)},Xs.working=typeof ArrayBuffer<"u"&&Xs(new ArrayBuffer),ct.isArrayBuffer=Dv,Js.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Js(new DataView(new ArrayBuffer(1),0,1)),ct.isDataView=Mv,Qs.working=typeof SharedArrayBuffer<"u"&&Qs(new SharedArrayBuffer),ct.isSharedArrayBuffer=jv,ct.isAsyncFunction=function(e){return Bt(e)==="[object AsyncFunction]"},ct.isMapIterator=function(e){return Bt(e)==="[object Map Iterator]"},ct.isSetIterator=function(e){return Bt(e)==="[object Set Iterator]"},ct.isGeneratorObject=function(e){return Bt(e)==="[object Generator]"},ct.isWebAssemblyCompiledModule=function(e){return Bt(e)==="[object WebAssembly.Module]"},ct.isNumberObject=$v,ct.isStringObject=qv,ct.isBooleanObject=zv,ct.isBigIntObject=Wv,ct.isSymbolObject=Hv,ct.isBoxedPrimitive=function(e){return $v(e)||qv(e)||zv(e)||Wv(e)||Hv(e)},ct.isAnyArrayBuffer=function(e){return pr&&(Dv(e)||jv(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ct,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});var fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se,Oe={},sn=Et,Zv=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},uO=/%[sdj%]/g;Oe.format=function(e){if(!tu(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Kn(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(uO,function(f){if(f==="%%")return"%";if(r>=o)return f;switch(f){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return f}}),i=n[r];r<o;i=n[++r])iu(i)||!yo(i)?a+=" "+i:a+=" "+Kn(i);return a},Oe.deprecate=function(e,t){if(sn!==void 0&&sn.noDeprecation===!0)return e;if(sn===void 0)return function(){return Oe.deprecate(e,t).apply(this||fa,arguments)};var r=!1;return function(){if(!r){if(sn.throwDeprecation)throw new Error(t);sn.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this||fa,arguments)}};var Gs={},fw=/^$/;sn.env.NODE_DEBUG&&(Ys=sn.env.NODE_DEBUG,Ys=Ys.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),fw=new RegExp("^"+Ys+"$","i"));var Ys;function Kn(e,t){var r={seen:[],stylize:lO};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),oc(t)?r.showHidden=t:t&&Oe._extend(r,t),mi(r.showHidden)&&(r.showHidden=!1),mi(r.depth)&&(r.depth=2),mi(r.colors)&&(r.colors=!1),mi(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=fO),eu(r,e,r.depth)}function fO(e,t){var r=Kn.styles[t];return r?"\x1B["+Kn.colors[r][0]+"m"+e+"\x1B["+Kn.colors[r][1]+"m":e}function lO(e,t){return e}function eu(e,t,r){if(e.customInspect&&t&&Ks(t.inspect)&&t.inspect!==Oe.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return tu(n)||(n=eu(e,n,r)),n}var o=function(v,_){if(mi(_))return v.stylize("undefined","undefined");if(tu(_)){var h="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(h,"string")}if(cw(_))return v.stylize(""+_,"number");if(oc(_))return v.stylize(""+_,"boolean");if(iu(_))return v.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),i=function(v){var _={};return v.forEach(function(h,w){_[h]=!0}),_}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),ca(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ec(t);if(a.length===0){if(Ks(t)){var f=t.name?": "+t.name:"";return e.stylize("[Function"+f+"]","special")}if(la(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ru(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ca(t))return ec(t)}var l,c="",d=!1,y=["{","}"];return lw(t)&&(d=!0,y=["[","]"]),Ks(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),la(t)&&(c=" "+RegExp.prototype.toString.call(t)),ru(t)&&(c=" "+Date.prototype.toUTCString.call(t)),ca(t)&&(c=" "+ec(t)),a.length!==0||d&&t.length!=0?r<0?la(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=d?function(v,_,h,w,S){for(var T=[],C=0,M=_.length;C<M;++C)hw(_,String(C))?T.push(tc(v,_,h,w,String(C),!0)):T.push("");return S.forEach(function(D){D.match(/^\d+$/)||T.push(tc(v,_,h,w,D,!0))}),T}(e,t,r,i,a):a.map(function(v){return tc(e,t,r,i,v,d)}),e.seen.pop(),function(v,_,h){var w=0;return v.reduce(function(S,T){return w++,T.indexOf(`
|
|
`)>=0&&w++,S+T.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?h[0]+(_===""?"":_+`
|
|
`)+" "+v.join(`,
|
|
`)+" "+h[1]:h[0]+_+" "+v.join(", ")+" "+h[1]}(l,c,y)):y[0]+c+y[1]}function ec(e){return"["+Error.prototype.toString.call(e)+"]"}function tc(e,t,r,n,o,a){var i,f,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?f=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(f=e.stylize("[Setter]","special")),hw(n,o)||(i="["+o+"]"),f||(e.seen.indexOf(l.value)<0?(f=iu(r)?eu(e,l.value,null):eu(e,l.value,r-1)).indexOf(`
|
|
`)>-1&&(f=a?f.split(`
|
|
`).map(function(c){return" "+c}).join(`
|
|
`).substr(2):`
|
|
`+f.split(`
|
|
`).map(function(c){return" "+c}).join(`
|
|
`)):f=e.stylize("[Circular]","special")),mi(i)){if(a&&o.match(/^\d+$/))return f;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+f}function lw(e){return Array.isArray(e)}function oc(e){return typeof e=="boolean"}function iu(e){return e===null}function cw(e){return typeof e=="number"}function tu(e){return typeof e=="string"}function mi(e){return e===void 0}function la(e){return yo(e)&&ac(e)==="[object RegExp]"}function yo(e){return typeof e=="object"&&e!==null}function ru(e){return yo(e)&&ac(e)==="[object Date]"}function ca(e){return yo(e)&&(ac(e)==="[object Error]"||e instanceof Error)}function Ks(e){return typeof e=="function"}function ac(e){return Object.prototype.toString.call(e)}function rc(e){return e<10?"0"+e.toString(10):e.toString(10)}Oe.debuglog=function(e){if(e=e.toUpperCase(),!Gs[e])if(fw.test(e)){var t=sn.pid;Gs[e]=function(){var r=Oe.format.apply(Oe,arguments);console.error("%s %d: %s",e,t,r)}}else Gs[e]=function(){};return Gs[e]},Oe.inspect=Kn,Kn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Kn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Oe.types=ct,Oe.isArray=lw,Oe.isBoolean=oc,Oe.isNull=iu,Oe.isNullOrUndefined=function(e){return e==null},Oe.isNumber=cw,Oe.isString=tu,Oe.isSymbol=function(e){return typeof e=="symbol"},Oe.isUndefined=mi,Oe.isRegExp=la,Oe.types.isRegExp=la,Oe.isObject=yo,Oe.isDate=ru,Oe.types.isDate=ru,Oe.isError=ca,Oe.types.isNativeError=ca,Oe.isFunction=Ks,Oe.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},Oe.isBuffer=Kv;var cO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hO(){var e=new Date,t=[rc(e.getHours()),rc(e.getMinutes()),rc(e.getSeconds())].join(":");return[e.getDate(),cO[e.getMonth()],t].join(" ")}function hw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Oe.log=function(){console.log("%s - %s",hO(),Oe.format.apply(Oe,arguments))},Oe.inherits=XT,Oe._extend=function(e,t){if(!t||!yo(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var gi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function pO(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}Oe.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(gi&&e[gi]){var t;if(typeof(t=e[gi])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,gi,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var r,n,o=new Promise(function(f,l){r=f,n=l}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(f,l){f?n(f):r(l)});try{e.apply(this||fa,a)}catch(f){n(f)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),gi&&Object.defineProperty(t,gi,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Zv(e))},Oe.promisify.custom=gi,Oe.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var a=this||fa,i=function(){return o.apply(a,arguments)};e.apply(this||fa,r).then(function(f){sn.nextTick(i.bind(null,null,f))},function(f){sn.nextTick(pO.bind(null,f,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Zv(e)),t};Oe._extend;Oe.callbackify;Oe.debuglog;Oe.deprecate;Oe.format;Oe.inherits;Oe.inspect;Oe.isArray;Oe.isBoolean;Oe.isBuffer;Oe.isDate;Oe.isError;Oe.isFunction;Oe.isNull;Oe.isNullOrUndefined;Oe.isNumber;Oe.isObject;Oe.isPrimitive;Oe.isRegExp;Oe.isString;Oe.isSymbol;Oe.isUndefined;Oe.log;Oe.promisify;var Pz=Oe._extend,Uz=Oe.callbackify,Dz=Oe.debuglog,Mz=Oe.deprecate,jz=Oe.format,$z=Oe.inherits,qz=Oe.inspect,zz=Oe.isArray,Wz=Oe.isBoolean,Hz=Oe.isBuffer,Zz=Oe.isDate,Vz=Oe.isError,Gz=Oe.isFunction,Yz=Oe.isNull,Kz=Oe.isNullOrUndefined,Xz=Oe.isNumber,Jz=Oe.isObject,Qz=Oe.isPrimitive,e9=Oe.isRegExp,t9=Oe.isString,r9=Oe.isSymbol,n9=Oe.isUndefined,i9=Oe.log,o9=Oe.promisify,a9=Oe.types,s9=self.TextEncoder,u9=self.TextDecoder;$();q();z();H();W();for(Aw={byteLength:function(e){var t=yw(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=yw(e),o=n[0],a=n[1],i=new pw(function(c,d,y){return 3*(d+y)/4-y}(0,o,a)),f=0,l=a>0?o-4:o;for(r=0;r<l;r+=4)t=_r[e.charCodeAt(r)]<<18|_r[e.charCodeAt(r+1)]<<12|_r[e.charCodeAt(r+2)]<<6|_r[e.charCodeAt(r+3)],i[f++]=t>>16&255,i[f++]=t>>8&255,i[f++]=255&t;return a===2&&(t=_r[e.charCodeAt(r)]<<2|_r[e.charCodeAt(r+1)]>>4,i[f++]=255&t),a===1&&(t=_r[e.charCodeAt(r)]<<10|_r[e.charCodeAt(r+1)]<<4|_r[e.charCodeAt(r+2)]>>2,i[f++]=t>>8&255,i[f++]=255&t),i},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],a=0,i=r-n;a<i;a+=16383)o.push(dO(e,a,a+16383>i?i:a+16383));return n===1?(t=e[r-1],o.push(Hr[t>>2]+Hr[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Hr[t>>10]+Hr[t>>4&63]+Hr[t<<2&63]+"=")),o.join("")}},Hr=[],_r=[],pw=typeof Uint8Array<"u"?Uint8Array:Array,ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wi=0,dw=ou.length;wi<dw;++wi)Hr[wi]=ou[wi],_r[ou.charCodeAt(wi)]=wi;var Aw,Hr,_r,pw,ou,wi,dw;function yw(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return r===-1&&(r=t),[r,r===t?0:4-r%4]}function dO(e,t,r){for(var n,o,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(Hr[(o=n)>>18&63]+Hr[o>>12&63]+Hr[o>>6&63]+Hr[63&o]);return a.join("")}_r["-".charCodeAt(0)]=62,_r["_".charCodeAt(0)]=63;var yO={read:function(e,t,r,n,o){var a,i,f=8*o-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=256*a+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=256*i+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:1/0*(_?-1:1);i+=Math.pow(2,n),a-=c}return(_?-1:1)*i*Math.pow(2,a-n)},write:function(e,t,r,n,o,a){var i,f,l,c=8*a-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+y>=1?v/l:v*Math.pow(2,1-y))*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i+=y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=255&f,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=255&i,_+=h,i/=256,c-=8);e[r+_-h]|=128*w}},xn={},fc=Aw,go=yO,gw=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xn.Buffer=Le,xn.SlowBuffer=function(e){return+e!=e&&(e=0),Le.alloc(+e)},xn.INSPECT_MAX_BYTES=50;function On(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Le.prototype),t}function Le(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return lc(e)}return Rw(e,t,r)}function Rw(e,t,r){if(typeof e=="string")return function(a,i){if(typeof i=="string"&&i!==""||(i="utf8"),!Le.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var f=0|Ow(a,i),l=On(f),c=l.write(a,i);return c!==f&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return sc(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(In(e,ArrayBuffer)||e&&In(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(In(e,SharedArrayBuffer)||e&&In(e.buffer,SharedArrayBuffer)))return mw(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Le.from(n,t,r);var o=function(a){if(Le.isBuffer(a)){var i=0|pc(a.length),f=On(i);return f.length===0||a.copy(f,0,0,i),f}if(a.length!==void 0)return typeof a.length!="number"||dc(a.length)?On(0):sc(a);if(a.type==="Buffer"&&Array.isArray(a.data))return sc(a.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Le.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function Tw(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function lc(e){return Tw(e),On(e<0?0:0|pc(e))}function sc(e){for(var t=e.length<0?0:0|pc(e.length),r=On(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function mw(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=t===void 0&&r===void 0?new Uint8Array(e):r===void 0?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,Le.prototype),n}function pc(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|e}function Ow(e,t){if(Le.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||In(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return cc(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Cw(e).length;default:if(o)return n?-1:cc(e).length;t=(""+t).toLowerCase(),o=!0}}function gO(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return RO(this,t,r);case"utf8":case"utf-8":return xw(this,t,r);case"ascii":return SO(this,t,r);case"latin1":case"binary":return AO(this,t,r);case"base64":return EO(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TO(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function bi(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function vw(e,t,r,n,o){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),dc(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if(typeof t=="string"&&(t=Le.from(t,n)),Le.isBuffer(t))return t.length===0?-1:ww(e,t,r,n,o);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ww(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function ww(e,t,r,n,o){var a,i=1,f=e.length,l=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;i=2,f/=2,l/=2,r/=2}function c(_,h){return i===1?_[h]:_.readUInt16BE(h*i)}if(o){var d=-1;for(a=r;a<f;a++)if(c(e,a)===c(t,d===-1?0:a-d)){if(d===-1&&(d=a),a-d+1===l)return d*i}else d!==-1&&(a-=a-d),d=-1}else for(r+l>f&&(r=f-l),a=r;a>=0;a--){for(var y=!0,v=0;v<l;v++)if(c(e,a+v)!==c(t,v)){y=!1;break}if(y)return a}return-1}function mO(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var a=t.length;n>a/2&&(n=a/2);for(var i=0;i<n;++i){var f=parseInt(t.substr(2*i,2),16);if(dc(f))return i;e[r+i]=f}return i}function vO(e,t,r,n){return uu(cc(t,e.length-r),e,r,n)}function Iw(e,t,r,n){return uu(function(o){for(var a=[],i=0;i<o.length;++i)a.push(255&o.charCodeAt(i));return a}(t),e,r,n)}function wO(e,t,r,n){return Iw(e,t,r,n)}function bO(e,t,r,n){return uu(Cw(t),e,r,n)}function _O(e,t,r,n){return uu(function(o,a){for(var i,f,l,c=[],d=0;d<o.length&&!((a-=2)<0);++d)i=o.charCodeAt(d),f=i>>8,l=i%256,c.push(l),c.push(f);return c}(t,e.length-r),e,r,n)}function EO(e,t,r){return t===0&&r===e.length?fc.fromByteArray(e):fc.fromByteArray(e.slice(t,r))}function xw(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var a,i,f,l,c=e[o],d=null,y=c>239?4:c>223?3:c>191?2:1;if(o+y<=r)switch(y){case 1:c<128&&(d=c);break;case 2:(192&(a=e[o+1]))==128&&(l=(31&c)<<6|63&a)>127&&(d=l);break;case 3:a=e[o+1],i=e[o+2],(192&a)==128&&(192&i)==128&&(l=(15&c)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:a=e[o+1],i=e[o+2],f=e[o+3],(192&a)==128&&(192&i)==128&&(192&f)==128&&(l=(15&c)<<18|(63&a)<<12|(63&i)<<6|63&f)>65535&&l<1114112&&(d=l)}d===null?(d=65533,y=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),o+=y}return function(v){var _=v.length;if(_<=4096)return String.fromCharCode.apply(String,v);for(var h="",w=0;w<_;)h+=String.fromCharCode.apply(String,v.slice(w,w+=4096));return h}(n)}xn.kMaxLength=2147483647,Le.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),Le.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."),Object.defineProperty(Le.prototype,"parent",{enumerable:!0,get:function(){if(Le.isBuffer(this))return this.buffer}}),Object.defineProperty(Le.prototype,"offset",{enumerable:!0,get:function(){if(Le.isBuffer(this))return this.byteOffset}}),Le.poolSize=8192,Le.from=function(e,t,r){return Rw(e,t,r)},Object.setPrototypeOf(Le.prototype,Uint8Array.prototype),Object.setPrototypeOf(Le,Uint8Array),Le.alloc=function(e,t,r){return function(n,o,a){return Tw(n),n<=0?On(n):o!==void 0?typeof a=="string"?On(n).fill(o,a):On(n).fill(o):On(n)}(e,t,r)},Le.allocUnsafe=function(e){return lc(e)},Le.allocUnsafeSlow=function(e){return lc(e)},Le.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Le.prototype},Le.compare=function(e,t){if(In(e,Uint8Array)&&(e=Le.from(e,e.offset,e.byteLength)),In(t,Uint8Array)&&(t=Le.from(t,t.offset,t.byteLength)),!Le.isBuffer(e)||!Le.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Le.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Le.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Le.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Le.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(In(a,Uint8Array)&&(a=Le.from(a)),!Le.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},Le.byteLength=Ow,Le.prototype._isBuffer=!0,Le.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)bi(this,t,t+1);return this},Le.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)bi(this,t,t+3),bi(this,t+1,t+2);return this},Le.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)bi(this,t,t+7),bi(this,t+1,t+6),bi(this,t+2,t+5),bi(this,t+3,t+4);return this},Le.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?xw(this,0,e):gO.apply(this,arguments)},Le.prototype.toLocaleString=Le.prototype.toString,Le.prototype.equals=function(e){if(!Le.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||Le.compare(this,e)===0},Le.prototype.inspect=function(){var e="",t=xn.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},gw&&(Le.prototype[gw]=Le.prototype.inspect),Le.prototype.compare=function(e,t,r,n,o){if(In(e,Uint8Array)&&(e=Le.from(e,e.offset,e.byteLength)),!Le.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),f=Math.min(a,i),l=this.slice(n,o),c=e.slice(t,r),d=0;d<f;++d)if(l[d]!==c[d]){a=l[d],i=c[d];break}return a<i?-1:i<a?1:0},Le.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},Le.prototype.indexOf=function(e,t,r){return vw(this,e,t,r,!0)},Le.prototype.lastIndexOf=function(e,t,r){return vw(this,e,t,r,!1)},Le.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return mO(this,e,t,r);case"utf8":case"utf-8":return vO(this,e,t,r);case"ascii":return Iw(this,e,t,r);case"latin1":case"binary":return wO(this,e,t,r);case"base64":return bO(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _O(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function SO(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function AO(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function RO(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",a=t;a<r;++a)o+=IO[e[a]];return o}function TO(e,t,r){for(var n=e.slice(t,r),o="",a=0;a<n.length;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function Vt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function dr(e,t,r,n,o,a){if(!Le.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Bw(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bw(e,t,r,n,o){return t=+t,r>>>=0,o||Bw(e,0,r,4),go.write(e,t,r,n,23,4),r+4}function _w(e,t,r,n,o){return t=+t,r>>>=0,o||Bw(e,0,r,8),go.write(e,t,r,n,52,8),r+8}Le.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,Le.prototype),n},Le.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n},Le.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Le.prototype.readUInt8=function(e,t){return e>>>=0,t||Vt(e,1,this.length),this[e]},Le.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Vt(e,2,this.length),this[e]|this[e+1]<<8},Le.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Vt(e,2,this.length),this[e]<<8|this[e+1]},Le.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Le.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Le.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Le.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=t,o=1,a=this[e+--n];n>0&&(o*=256);)a+=this[e+--n]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},Le.prototype.readInt8=function(e,t){return e>>>=0,t||Vt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Le.prototype.readInt16LE=function(e,t){e>>>=0,t||Vt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Le.prototype.readInt16BE=function(e,t){e>>>=0,t||Vt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Le.prototype.readInt32LE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Le.prototype.readInt32BE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Le.prototype.readFloatLE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),go.read(this,e,!0,23,4)},Le.prototype.readFloatBE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),go.read(this,e,!1,23,4)},Le.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Vt(e,8,this.length),go.read(this,e,!0,52,8)},Le.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Vt(e,8,this.length),go.read(this,e,!1,52,8)},Le.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||dr(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},Le.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||dr(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},Le.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,1,255,0),this[t]=255&e,t+1},Le.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Le.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Le.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Le.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Le.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);dr(this,e,t,r,o-1,-o)}var a=0,i=1,f=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&f===0&&this[t+a-1]!==0&&(f=1),this[t+a]=(e/i>>0)-f&255;return t+r},Le.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);dr(this,e,t,r,o-1,-o)}var a=r-1,i=1,f=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&f===0&&this[t+a+1]!==0&&(f=1),this[t+a]=(e/i>>0)-f&255;return t+r},Le.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Le.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Le.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Le.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Le.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Le.prototype.writeFloatLE=function(e,t,r){return bw(this,e,t,!0,r)},Le.prototype.writeFloatBE=function(e,t,r){return bw(this,e,t,!1,r)},Le.prototype.writeDoubleLE=function(e,t,r){return _w(this,e,t,!0,r)},Le.prototype.writeDoubleBE=function(e,t,r){return _w(this,e,t,!1,r)},Le.prototype.copy=function(e,t,r,n){if(!Le.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=o-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},Le.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!Le.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){var o=e.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(a=t;a<r;++a)this[a]=e;else{var i=Le.isBuffer(e)?e:Le.from(e,n),f=i.length;if(f===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=i[a%f]}return this};var OO=/[^+/0-9A-Za-z-_]/g;function cc(e,t){var r;t=t||1/0;for(var n=e.length,o=null,a=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Cw(e){return fc.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(OO,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function uu(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function In(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function dc(e){return e!=e}var IO=function(){for(var e=new Array(256),t=0;t<16;++t)for(var r=16*t,n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n];return e}();xn.Buffer;xn.INSPECT_MAX_BYTES;xn.kMaxLength;var au={},su=xn,un=su.Buffer;function Ew(e,t){for(var r in e)t[r]=e[r]}function _i(e,t,r){return un(e,t,r)}un.from&&un.alloc&&un.allocUnsafe&&un.allocUnsafeSlow?au=su:(Ew(su,au),au.Buffer=_i),_i.prototype=Object.create(un.prototype),Ew(un,_i),_i.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return un(e,t,r)},_i.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=un(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n},_i.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return un(e)},_i.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return su.SlowBuffer(e)};var xO=au,mo={},hc=xO.Buffer,Sw=hc.isEncoding||function(e){switch((e=""+e)&&e.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 pa(e){var t;switch(this.encoding=function(r){var n=function(o){if(!o)return"utf8";for(var a;;)switch(o){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 o;default:if(a)return;o=(""+o).toLowerCase(),a=!0}}(r);if(typeof n!="string"&&(hc.isEncoding===Sw||!Sw(r)))throw new Error("Unknown encoding: "+r);return n||r}(e),this.encoding){case"utf16le":this.text=CO,this.end=NO,t=4;break;case"utf8":this.fillLast=BO,t=4;break;case"base64":this.text=LO,this.end=kO,t=3;break;default:return this.write=FO,this.end=PO,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=hc.allocUnsafe(t)}function uc(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function BO(e){var t=this.lastTotal-this.lastNeed,r=function(n,o,a){if((192&o[0])!=128)return n.lastNeed=0,"\uFFFD";if(n.lastNeed>1&&o.length>1){if((192&o[1])!=128)return n.lastNeed=1,"\uFFFD";if(n.lastNeed>2&&o.length>2&&(192&o[2])!=128)return n.lastNeed=2,"\uFFFD"}}(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function CO(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function NO(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function LO(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function kO(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function FO(e){return e.toString(this.encoding)}function PO(e){return e&&e.length?this.write(e):""}mo.StringDecoder=pa,pa.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},pa.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t},pa.prototype.text=function(e,t){var r=function(o,a,i){var f=a.length-1;if(f<i)return 0;var l=uc(a[f]);return l>=0?(l>0&&(o.lastNeed=l-1),l):--f<i||l===-2?0:(l=uc(a[f]))>=0?(l>0&&(o.lastNeed=l-2),l):--f<i||l===-2?0:(l=uc(a[f]))>=0?(l>0&&(l===2?l=0:o.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},pa.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};mo.StringDecoder;mo.StringDecoder;var da={},Nw=!1;function UO(){if(Nw)return da;Nw=!0,da.byteLength=f,da.toByteArray=c,da.fromByteArray=v;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(_){var h=_.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=_.indexOf("=");w===-1&&(w=h);var S=w===h?0:4-w%4;return[w,S]}function f(_){var h=i(_),w=h[0],S=h[1];return(w+S)*3/4-S}function l(_,h,w){return(h+w)*3/4-w}function c(_){var h,w=i(_),S=w[0],T=w[1],C=new r(l(_,S,T)),M=0,D=T>0?S-4:S,V;for(V=0;V<D;V+=4)h=t[_.charCodeAt(V)]<<18|t[_.charCodeAt(V+1)]<<12|t[_.charCodeAt(V+2)]<<6|t[_.charCodeAt(V+3)],C[M++]=h>>16&255,C[M++]=h>>8&255,C[M++]=h&255;return T===2&&(h=t[_.charCodeAt(V)]<<2|t[_.charCodeAt(V+1)]>>4,C[M++]=h&255),T===1&&(h=t[_.charCodeAt(V)]<<10|t[_.charCodeAt(V+1)]<<4|t[_.charCodeAt(V+2)]>>2,C[M++]=h>>8&255,C[M++]=h&255),C}function d(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,h,w){for(var S,T=[],C=h;C<w;C+=3)S=(_[C]<<16&16711680)+(_[C+1]<<8&65280)+(_[C+2]&255),T.push(d(S));return T.join("")}function v(_){for(var h,w=_.length,S=w%3,T=[],C=16383,M=0,D=w-S;M<D;M+=C)T.push(y(_,M,M+C>D?D:M+C));return S===1?(h=_[w-1],T.push(e[h>>2]+e[h<<4&63]+"==")):S===2&&(h=(_[w-2]<<8)+_[w-1],T.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),T.join("")}return da}var fu={},Lw=!1;function DO(){if(Lw)return fu;Lw=!0;return fu.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)},fu.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128},fu}var Ei={},kw=!1;function MO(){if(kw)return Ei;kw=!0;let e=UO(),t=DO(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ei.Buffer=i,Ei.SlowBuffer=T,Ei.INSPECT_MAX_BYTES=50;let n=2147483647;Ei.kMaxLength=n,i.TYPED_ARRAY_SUPPORT=o(),!i.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 o(){try{let p=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(p,s),p.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(p){if(p>n)throw new RangeError('The value "'+p+'" is invalid for option "size"');let s=new Uint8Array(p);return Object.setPrototypeOf(s,i.prototype),s}function i(p,s,u){if(typeof p=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(p)}return f(p,s,u)}i.poolSize=8192;function f(p,s,u){if(typeof p=="string")return y(p,s);if(ArrayBuffer.isView(p))return _(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(et(p,ArrayBuffer)||p&&et(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(et(p,SharedArrayBuffer)||p&&et(p.buffer,SharedArrayBuffer)))return h(p,s,u);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return i.from(b,s,u);let L=w(p);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return i.from(p[Symbol.toPrimitive]("string"),s,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}i.from=function(p,s,u){return f(p,s,u)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function l(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 c(p,s,u){return l(p),p<=0?a(p):s!==void 0?typeof u=="string"?a(p).fill(s,u):a(p).fill(s):a(p)}i.alloc=function(p,s,u){return c(p,s,u)};function d(p){return l(p),a(p<0?0:S(p)|0)}i.allocUnsafe=function(p){return d(p)},i.allocUnsafeSlow=function(p){return d(p)};function y(p,s){if((typeof s!="string"||s==="")&&(s="utf8"),!i.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let u=C(p,s)|0,b=a(u),L=b.write(p,s);return L!==u&&(b=b.slice(0,L)),b}function v(p){let s=p.length<0?0:S(p.length)|0,u=a(s);for(let b=0;b<s;b+=1)u[b]=p[b]&255;return u}function _(p){if(et(p,Uint8Array)){let s=new Uint8Array(p);return h(s.buffer,s.byteOffset,s.byteLength)}return v(p)}function h(p,s,u){if(s<0||p.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<s+(u||0))throw new RangeError('"length" is outside of buffer bounds');let b;return s===void 0&&u===void 0?b=new Uint8Array(p):u===void 0?b=new Uint8Array(p,s):b=new Uint8Array(p,s,u),Object.setPrototypeOf(b,i.prototype),b}function w(p){if(i.isBuffer(p)){let s=S(p.length)|0,u=a(s);return u.length===0||p.copy(u,0,0,s),u}if(p.length!==void 0)return typeof p.length!="number"||bt(p.length)?a(0):v(p);if(p.type==="Buffer"&&Array.isArray(p.data))return v(p.data)}function S(p){if(p>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return p|0}function T(p){return+p!=p&&(p=0),i.alloc(+p)}i.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==i.prototype},i.compare=function(s,u){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),et(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(s)||!i.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===u)return 0;let b=s.length,L=u.length;for(let m=0,j=Math.min(b,L);m<j;++m)if(s[m]!==u[m]){b=s[m],L=u[m];break}return b<L?-1:L<b?1:0},i.isEncoding=function(s){switch(String(s).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}},i.concat=function(s,u){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return i.alloc(0);let b;if(u===void 0)for(u=0,b=0;b<s.length;++b)u+=s[b].length;let L=i.allocUnsafe(u),m=0;for(b=0;b<s.length;++b){let j=s[b];if(et(j,Uint8Array))m+j.length>L.length?(i.isBuffer(j)||(j=i.from(j)),j.copy(L,m)):Uint8Array.prototype.set.call(L,j,m);else if(i.isBuffer(j))j.copy(L,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=j.length}return L};function C(p,s){if(i.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||et(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 u=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;let L=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return De(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ot(p).length;default:if(L)return b?-1:De(p).length;s=(""+s).toLowerCase(),L=!0}}i.byteLength=C;function M(p,s,u){let b=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,s>>>=0,u<=s))return"";for(p||(p="utf8");;)switch(p){case"hex":return te(this,s,u);case"utf8":case"utf-8":return re(this,s,u);case"ascii":return Ne(this,s,u);case"latin1":case"binary":return ne(this,s,u);case"base64":return K(this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,s,u);default:if(b)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),b=!0}}i.prototype._isBuffer=!0;function D(p,s,u){let b=p[s];p[s]=p[u],p[u]=b}i.prototype.swap16=function(){let s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<s;u+=2)D(this,u,u+1);return this},i.prototype.swap32=function(){let s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<s;u+=4)D(this,u,u+3),D(this,u+1,u+2);return this},i.prototype.swap64=function(){let s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<s;u+=8)D(this,u,u+7),D(this,u+1,u+6),D(this,u+2,u+5),D(this,u+3,u+4);return this},i.prototype.toString=function(){let s=this.length;return s===0?"":arguments.length===0?re(this,0,s):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(s){if(!i.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:i.compare(this,s)===0},i.prototype.inspect=function(){let s="",u=Ei.INSPECT_MAX_BYTES;return s=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(s+=" ... "),"<Buffer "+s+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(s,u,b,L,m){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(u===void 0&&(u=0),b===void 0&&(b=s?s.length:0),L===void 0&&(L=0),m===void 0&&(m=this.length),u<0||b>s.length||L<0||m>this.length)throw new RangeError("out of range index");if(L>=m&&u>=b)return 0;if(L>=m)return-1;if(u>=b)return 1;if(u>>>=0,b>>>=0,L>>>=0,m>>>=0,this===s)return 0;let j=m-L,le=b-u,Be=Math.min(j,le),ee=this.slice(L,m),ue=s.slice(u,b);for(let I=0;I<Be;++I)if(ee[I]!==ue[I]){j=ee[I],le=ue[I];break}return j<le?-1:le<j?1:0};function V(p,s,u,b,L){if(p.length===0)return-1;if(typeof u=="string"?(b=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,bt(u)&&(u=L?0:p.length-1),u<0&&(u=p.length+u),u>=p.length){if(L)return-1;u=p.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof s=="string"&&(s=i.from(s,b)),i.isBuffer(s))return s.length===0?-1:F(p,s,u,b,L);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(p,s,u):Uint8Array.prototype.lastIndexOf.call(p,s,u):F(p,[s],u,b,L);throw new TypeError("val must be string, number or Buffer")}function F(p,s,u,b,L){let m=1,j=p.length,le=s.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(p.length<2||s.length<2)return-1;m=2,j/=2,le/=2,u/=2}function Be(ue,I){return m===1?ue[I]:ue.readUInt16BE(I*m)}let ee;if(L){let ue=-1;for(ee=u;ee<j;ee++)if(Be(p,ee)===Be(s,ue===-1?0:ee-ue)){if(ue===-1&&(ue=ee),ee-ue+1===le)return ue*m}else ue!==-1&&(ee-=ee-ue),ue=-1}else for(u+le>j&&(u=j-le),ee=u;ee>=0;ee--){let ue=!0;for(let I=0;I<le;I++)if(Be(p,ee+I)!==Be(s,I)){ue=!1;break}if(ue)return ee}return-1}i.prototype.includes=function(s,u,b){return this.indexOf(s,u,b)!==-1},i.prototype.indexOf=function(s,u,b){return V(this,s,u,b,!0)},i.prototype.lastIndexOf=function(s,u,b){return V(this,s,u,b,!1)};function N(p,s,u,b){u=Number(u)||0;let L=p.length-u;b?(b=Number(b),b>L&&(b=L)):b=L;let m=s.length;b>m/2&&(b=m/2);let j;for(j=0;j<b;++j){let le=parseInt(s.substr(j*2,2),16);if(bt(le))return j;p[u+j]=le}return j}function x(p,s,u,b){return nt(De(s,p.length-u),p,u,b)}function G(p,s,u,b){return nt($e(s),p,u,b)}function Q(p,s,u,b){return nt(ot(s),p,u,b)}function Te(p,s,u,b){return nt(Me(s,p.length-u),p,u,b)}i.prototype.write=function(s,u,b,L){if(u===void 0)L="utf8",b=this.length,u=0;else if(b===void 0&&typeof u=="string")L=u,b=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(b)?(b=b>>>0,L===void 0&&(L="utf8")):(L=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let m=this.length-u;if((b===void 0||b>m)&&(b=m),s.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let j=!1;for(;;)switch(L){case"hex":return N(this,s,u,b);case"utf8":case"utf-8":return x(this,s,u,b);case"ascii":case"latin1":case"binary":return G(this,s,u,b);case"base64":return Q(this,s,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,u,b);default:if(j)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),j=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(p,s,u){return s===0&&u===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(s,u))}function re(p,s,u){u=Math.min(p.length,u);let b=[],L=s;for(;L<u;){let m=p[L],j=null,le=m>239?4:m>223?3:m>191?2:1;if(L+le<=u){let Be,ee,ue,I;switch(le){case 1:m<128&&(j=m);break;case 2:Be=p[L+1],(Be&192)===128&&(I=(m&31)<<6|Be&63,I>127&&(j=I));break;case 3:Be=p[L+1],ee=p[L+2],(Be&192)===128&&(ee&192)===128&&(I=(m&15)<<12|(Be&63)<<6|ee&63,I>2047&&(I<55296||I>57343)&&(j=I));break;case 4:Be=p[L+1],ee=p[L+2],ue=p[L+3],(Be&192)===128&&(ee&192)===128&&(ue&192)===128&&(I=(m&15)<<18|(Be&63)<<12|(ee&63)<<6|ue&63,I>65535&&I<1114112&&(j=I))}}j===null?(j=65533,le=1):j>65535&&(j-=65536,b.push(j>>>10&1023|55296),j=56320|j&1023),b.push(j),L+=le}return Ce(b)}let ae=4096;function Ce(p){let s=p.length;if(s<=ae)return String.fromCharCode.apply(String,p);let u="",b=0;for(;b<s;)u+=String.fromCharCode.apply(String,p.slice(b,b+=ae));return u}function Ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]&127);return b}function ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]);return b}function te(p,s,u){let b=p.length;(!s||s<0)&&(s=0),(!u||u<0||u>b)&&(u=b);let L="";for(let m=s;m<u;++m)L+=Qt[p[m]];return L}function ye(p,s,u){let b=p.slice(s,u),L="";for(let m=0;m<b.length-1;m+=2)L+=String.fromCharCode(b[m]+b[m+1]*256);return L}i.prototype.slice=function(s,u){let b=this.length;s=~~s,u=u===void 0?b:~~u,s<0?(s+=b,s<0&&(s=0)):s>b&&(s=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),u<s&&(u=s);let L=this.subarray(s,u);return Object.setPrototypeOf(L,i.prototype),L};function me(p,s,u){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+s>u)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return L},i.prototype.readUintBE=i.prototype.readUIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s+--u],m=1;for(;u>0&&(m*=256);)L+=this[s+--u]*m;return L},i.prototype.readUint8=i.prototype.readUInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]|this[s+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]<<8|this[s+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},i.prototype.readBigUInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,m=this[++s]+this[++s]*2**8+this[++s]*2**16+b*2**24;return BigInt(L)+(BigInt(m)<<BigInt(32))}),i.prototype.readBigUInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],m=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b;return(BigInt(L)<<BigInt(32))+BigInt(m)}),i.prototype.readIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return m*=128,L>=m&&(L-=Math.pow(2,8*u)),L},i.prototype.readIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=u,m=1,j=this[s+--L];for(;L>0&&(m*=256);)j+=this[s+--L]*m;return m*=128,j>=m&&(j-=Math.pow(2,8*u)),j},i.prototype.readInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},i.prototype.readInt16LE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s]|this[s+1]<<8;return b&32768?b|4294901760:b},i.prototype.readInt16BE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s+1]|this[s]<<8;return b&32768?b|4294901760:b},i.prototype.readInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},i.prototype.readInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},i.prototype.readBigInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(b<<24);return(BigInt(L)<<BigInt(32))+BigInt(u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24)}),i.prototype.readBigInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=(u<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return(BigInt(L)<<BigInt(32))+BigInt(this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b)}),i.prototype.readFloatLE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!0,23,4)},i.prototype.readFloatBE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!1,23,4)},i.prototype.readDoubleLE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!0,52,8)},i.prototype.readDoubleBE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!1,52,8)};function Re(p,s,u,b,L,m){if(!i.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>L||s<m)throw new RangeError('"value" argument is out of bounds');if(u+b>p.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=1,j=0;for(this[u]=s&255;++j<b&&(m*=256);)this[u+j]=s/m&255;return u+b},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=b-1,j=1;for(this[u+m]=s&255;--m>=0&&(j*=256);)this[u+m]=s/j&255;return u+b},i.prototype.writeUint8=i.prototype.writeUInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,255,0),this[u]=s&255,u+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u+3]=s>>>24,this[u+2]=s>>>16,this[u+1]=s>>>8,this[u]=s&255,u+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4};function qe(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,u}function je(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u+7]=m,m=m>>8,p[u+6]=m,m=m>>8,p[u+5]=m,m=m>>8,p[u+4]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u+3]=j,j=j>>8,p[u+2]=j,j=j>>8,p[u+1]=j,j=j>>8,p[u]=j,u+8}i.prototype.writeBigUInt64LE=gt(function(s,u=0){return qe(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=gt(function(s,u=0){return je(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=0,j=1,le=0;for(this[u]=s&255;++m<b&&(j*=256);)s<0&&le===0&&this[u+m-1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=b-1,j=1,le=0;for(this[u+m]=s&255;--m>=0&&(j*=256);)s<0&&le===0&&this[u+m+1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,127,-128),s<0&&(s=255+s+1),this[u]=s&255,u+1},i.prototype.writeInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),this[u]=s&255,this[u+1]=s>>>8,this[u+2]=s>>>16,this[u+3]=s>>>24,u+4},i.prototype.writeInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4},i.prototype.writeBigInt64LE=gt(function(s,u=0){return qe(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=gt(function(s,u=0){return je(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(p,s,u,b,L,m){if(u+b>p.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ve(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,4),t.write(p,s,u,b,23,4),u+4}i.prototype.writeFloatLE=function(s,u,b){return Ve(this,s,u,!0,b)},i.prototype.writeFloatBE=function(s,u,b){return Ve(this,s,u,!1,b)};function xe(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,8),t.write(p,s,u,b,52,8),u+8}i.prototype.writeDoubleLE=function(s,u,b){return xe(this,s,u,!0,b)},i.prototype.writeDoubleBE=function(s,u,b){return xe(this,s,u,!1,b)},i.prototype.copy=function(s,u,b,L){if(!i.isBuffer(s))throw new TypeError("argument should be a Buffer");if(b||(b=0),!L&&L!==0&&(L=this.length),u>=s.length&&(u=s.length),u||(u=0),L>0&&L<b&&(L=b),L===b||s.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),s.length-u<L-b&&(L=s.length-u+b);let m=L-b;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,L):Uint8Array.prototype.set.call(s,this.subarray(b,L),u),m},i.prototype.fill=function(s,u,b,L){if(typeof s=="string"){if(typeof u=="string"?(L=u,u=0,b=this.length):typeof b=="string"&&(L=b,b=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!i.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(s.length===1){let j=s.charCodeAt(0);(L==="utf8"&&j<128||L==="latin1")&&(s=j)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(u<0||this.length<u||this.length<b)throw new RangeError("Out of range index");if(b<=u)return this;u=u>>>0,b=b===void 0?this.length:b>>>0,s||(s=0);let m;if(typeof s=="number")for(m=u;m<b;++m)this[m]=s;else{let j=i.isBuffer(s)?s:i.from(s,L),le=j.length;if(le===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(m=0;m<b-u;++m)this[m+u]=j[m%le]}return this};let A={};function O(p,s,u){A[p]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(p,s){return`The "${p}" argument must be of type number. Received type ${typeof s}`},TypeError),O("ERR_OUT_OF_RANGE",function(p,s,u){let b=`The value of "${p}" is out of range.`,L=u;return Number.isInteger(u)&&Math.abs(u)>2**32?L=Y(String(u)):typeof u=="bigint"&&(L=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(L=Y(L)),L+="n"),b+=` It must be ${s}. Received ${L}`,b},RangeError);function Y(p){let s="",u=p.length,b=p[0]==="-"?1:0;for(;u>=b+4;u-=3)s=`_${p.slice(u-3,u)}${s}`;return`${p.slice(0,u)}${s}`}function fe(p,s,u){k(s,"offset"),(p[s]===void 0||p[s+u]===void 0)&&Z(s,p.length-(u+1))}function ge(p,s,u,b,L,m){if(p>u||p<s){let j=typeof s=="bigint"?"n":"",le;throw m>3?s===0||s===BigInt(0)?le=`>= 0${j} and < 2${j} ** ${(m+1)*8}${j}`:le=`>= -(2${j} ** ${(m+1)*8-1}${j}) and < 2 ** ${(m+1)*8-1}${j}`:le=`>= ${s}${j} and <= ${u}${j}`,new A.ERR_OUT_OF_RANGE("value",le,p)}fe(b,L,m)}function k(p,s){if(typeof p!="number")throw new A.ERR_INVALID_ARG_TYPE(s,"number",p)}function Z(p,s,u){throw Math.floor(p)!==p?(k(p,u),new A.ERR_OUT_OF_RANGE(u||"offset","an integer",p)):s<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${s}`,p)}let Se=/[^+/0-9A-Za-z-_]/g;function ke(p){if(p=p.split("=")[0],p=p.trim().replace(Se,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function De(p,s){s=s||1/0;let u,b=p.length,L=null,m=[];for(let j=0;j<b;++j){if(u=p.charCodeAt(j),u>55295&&u<57344){if(!L){if(u>56319){(s-=3)>-1&&m.push(239,191,189);continue}else if(j+1===b){(s-=3)>-1&&m.push(239,191,189);continue}L=u;continue}if(u<56320){(s-=3)>-1&&m.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(s-=3)>-1&&m.push(239,191,189);if(L=null,u<128){if((s-=1)<0)break;m.push(u)}else if(u<2048){if((s-=2)<0)break;m.push(u>>6|192,u&63|128)}else if(u<65536){if((s-=3)<0)break;m.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((s-=4)<0)break;m.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return m}function $e(p){let s=[];for(let u=0;u<p.length;++u)s.push(p.charCodeAt(u)&255);return s}function Me(p,s){let u,b,L,m=[];for(let j=0;j<p.length&&!((s-=2)<0);++j)u=p.charCodeAt(j),b=u>>8,L=u%256,m.push(L),m.push(b);return m}function ot(p){return e.toByteArray(ke(p))}function nt(p,s,u,b){let L;for(L=0;L<b&&!(L+u>=s.length||L>=p.length);++L)s[L+u]=p[L];return L}function et(p,s){return p instanceof s||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===s.name}function bt(p){return p!==p}let Qt=function(){let p="0123456789abcdef",s=new Array(256);for(let u=0;u<16;++u){let b=u*16;for(let L=0;L<16;++L)s[b+L]=p[u]+p[L]}return s}();function gt(p){return typeof BigInt>"u"?Ct:p}function Ct(){throw new Error("BigInt not supported")}return Ei}var Br=MO();Br.Buffer;Br.INSPECT_MAX_BYTES;Br.kMaxLength;var lu={},Fw=!1;function Ai(){return Fw||(Fw=!0,typeof Object.create=="function"?lu=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lu=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),lu}var yc={},Pw=!1;function Xw(){return Pw||(Pw=!0,yc=Ft.EventEmitter),yc}var gc={},Uw=!1;function jO(){if(Uw)return gc;Uw=!0;function e(v,_){var h=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);_&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(v,S).enumerable})),h.push.apply(h,w)}return h}function t(v){for(var _=1;_<arguments.length;_++){var h=arguments[_]!=null?arguments[_]:{};_%2?e(Object(h),!0).forEach(function(w){r(v,w,h[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(h,w))})}return v}function r(v,_,h){return _ in v?Object.defineProperty(v,_,{value:h,enumerable:!0,configurable:!0,writable:!0}):v[_]=h,v}function n(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function o(v,_){for(var h=0;h<_.length;h++){var w=_[h];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}function a(v,_,h){return _&&o(v.prototype,_),h&&o(v,h),v}var i=Br,f=i.Buffer,l=Oe,c=l.inspect,d=c&&c.custom||"inspect";function y(v,_,h){f.prototype.copy.call(v,_,h)}return gc=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(h){var w={data:h,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(h){var w={data:h,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var w=this.head,S=""+w.data;w=w.next;)S+=h+w.data;return S}},{key:"concat",value:function(h){if(this.length===0)return f.alloc(0);for(var w=f.allocUnsafe(h>>>0),S=this.head,T=0;S;)y(S.data,w,T),T+=S.data.length,S=S.next;return w}},{key:"consume",value:function(h,w){var S;return h<this.head.data.length?(S=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?S=this.shift():S=w?this._getString(h):this._getBuffer(h),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var w=this.head,S=1,T=w.data;for(h-=T.length;w=w.next;){var C=w.data,M=h>C.length?C.length:h;if(M===C.length?T+=C:T+=C.slice(0,h),h-=M,h===0){M===C.length?(++S,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=C.slice(M));break}++S}return this.length-=S,T}},{key:"_getBuffer",value:function(h){var w=f.allocUnsafe(h),S=this.head,T=1;for(S.data.copy(w),h-=S.data.length;S=S.next;){var C=S.data,M=h>C.length?C.length:h;if(C.copy(w,w.length-h,0,M),h-=M,h===0){M===C.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=C.slice(M));break}++T}return this.length-=T,w}},{key:d,value:function(h,w){return c(this,t({},w,{depth:0,customInspect:!1}))}}]),v}(),gc}var mc={},Dw=!1;function Jw(){if(Dw)return mc;Dw=!0;var e=lt;function t(f,l){var c=this,d=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return d||y?(l?l(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,f)):e.nextTick(a,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(v){!l&&v?c._writableState?c._writableState.errorEmitted?e.nextTick(n,c):(c._writableState.errorEmitted=!0,e.nextTick(r,c,v)):e.nextTick(r,c,v):l?(e.nextTick(n,c),l(v)):e.nextTick(n,c)}),this)}function r(f,l){a(f,l),n(f)}function n(f){f._writableState&&!f._writableState.emitClose||f._readableState&&!f._readableState.emitClose||f.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(f,l){f.emit("error",l)}function i(f,l){var c=f._readableState,d=f._writableState;c&&c.autoDestroy||d&&d.autoDestroy?f.destroy(l):f.emit("error",l)}return mc={destroy:t,undestroy:o,errorOrDestroy:i},mc}var vc={},Mw=!1;function vo(){if(Mw)return vc;Mw=!0;let e={};function t(i,f,l){l||(l=Error);function c(y,v,_){return typeof f=="string"?f:f(y,v,_)}class d extends l{constructor(v,_,h){super(c(v,_,h))}}d.prototype.name=l.name,d.prototype.code=i,e[i]=d}function r(i,f){if(Array.isArray(i)){let l=i.length;return i=i.map(c=>String(c)),l>2?`one of ${f} ${i.slice(0,l-1).join(", ")}, or `+i[l-1]:l===2?`one of ${f} ${i[0]} or ${i[1]}`:`of ${f} ${i[0]}`}else return`of ${f} ${String(i)}`}function n(i,f,l){return i.substr(!l||l<0?0:+l,f.length)===f}function o(i,f,l){return(l===void 0||l>i.length)&&(l=i.length),i.substring(l-f.length,l)===f}function a(i,f,l){return typeof l!="number"&&(l=0),l+f.length>i.length?!1:i.indexOf(f,l)!==-1}return t("ERR_INVALID_OPT_VALUE",function(i,f){return'The value "'+f+'" is invalid for option "'+i+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(i,f,l){let c;typeof f=="string"&&n(f,"not ")?(c="must not be",f=f.replace(/^not /,"")):c="must be";let d;if(o(i," argument"))d=`The ${i} ${c} ${r(f,"type")}`;else{let y=a(i,".")?"property":"argument";d=`The "${i}" ${y} ${c} ${r(f,"type")}`}return d+=`. Received type ${typeof l}`,d},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),vc.codes=e,vc}var wc={},jw=!1;function Qw(){if(jw)return wc;jw=!0;var e=vo().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var f=t(o,i,a);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){var l=i?a:"highWaterMark";throw new e(l,f)}return Math.floor(f)}return n.objectMode?16:16*1024}return wc={getHighWaterMark:r},wc}var bc={},$w=!1,_c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function $O(){if($w)return bc;$w=!0,bc=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this||_c,arguments)}return a}function t(r){try{if(!_c.localStorage)return!1}catch{return!1}var n=_c.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return bc}var Ec={},qw=!1,qO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Cc(){if(qw)return Ec;qw=!0;var e=lt;Ec=G;function t(A){var O=this;this.next=null,this.entry=null,this.finish=function(){xe(O,A)}}var r;G.WritableState=N;var n={deprecate:$O()},o=Xw(),a=Br.Buffer,i=qO.Uint8Array||function(){};function f(A){return a.from(A)}function l(A){return a.isBuffer(A)||A instanceof i}var c=Jw(),d=Qw(),y=d.getHighWaterMark,v=vo().codes,_=v.ERR_INVALID_ARG_TYPE,h=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_MULTIPLE_CALLBACK,S=v.ERR_STREAM_CANNOT_PIPE,T=v.ERR_STREAM_DESTROYED,C=v.ERR_STREAM_NULL_VALUES,M=v.ERR_STREAM_WRITE_AFTER_END,D=v.ERR_UNKNOWN_ENCODING,V=c.errorOrDestroy;Ai()(G,o);function F(){}function N(A,O,Y){r=r||Si(),A=A||{},typeof Y!="boolean"&&(Y=O instanceof r),this.objectMode=!!A.objectMode,Y&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=y(this,A,"writableHighWaterMark",Y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=A.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){ne(O,ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}N.prototype.getBuffer=function(){for(var O=this.bufferedRequest,Y=[];O;)Y.push(O),O=O.next;return Y},function(){try{Object.defineProperty(N.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var x;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(x=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(O){return x.call(this,O)?!0:this!==G?!1:O&&O._writableState instanceof N}})):x=function(O){return O instanceof this};function G(A){r=r||Si();var O=this instanceof r;if(!O&&!x.call(G,this))return new G(A);this._writableState=new N(A,this,O),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),o.call(this)}G.prototype.pipe=function(){V(this,new S)};function Q(A,O){var Y=new M;V(A,Y),e.nextTick(O,Y)}function Te(A,O,Y,fe){var ge;return Y===null?ge=new C:typeof Y!="string"&&!O.objectMode&&(ge=new _("chunk",["string","Buffer"],Y)),ge?(V(A,ge),e.nextTick(fe,ge),!1):!0}G.prototype.write=function(A,O,Y){var fe=this._writableState,ge=!1,k=!fe.objectMode&&l(A);return k&&!a.isBuffer(A)&&(A=f(A)),typeof O=="function"&&(Y=O,O=null),k?O="buffer":O||(O=fe.defaultEncoding),typeof Y!="function"&&(Y=F),fe.ending?Q(this,Y):(k||Te(this,fe,A,Y))&&(fe.pendingcb++,ge=re(this,fe,k,A,O,Y)),ge},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&me(this,A))},G.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new D(O);return this._writableState.defaultEncoding=O,this},Object.defineProperty(G.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(A,O,Y){return!A.objectMode&&A.decodeStrings!==!1&&typeof O=="string"&&(O=a.from(O,Y)),O}Object.defineProperty(G.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re(A,O,Y,fe,ge,k){if(!Y){var Z=K(O,fe,ge);fe!==Z&&(Y=!0,ge="buffer",fe=Z)}var Se=O.objectMode?1:fe.length;O.length+=Se;var ke=O.length<O.highWaterMark;if(ke||(O.needDrain=!0),O.writing||O.corked){var De=O.lastBufferedRequest;O.lastBufferedRequest={chunk:fe,encoding:ge,isBuf:Y,callback:k,next:null},De?De.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else ae(A,O,!1,Se,fe,ge,k);return ke}function ae(A,O,Y,fe,ge,k,Z){O.writelen=fe,O.writecb=Z,O.writing=!0,O.sync=!0,O.destroyed?O.onwrite(new T("write")):Y?A._writev(ge,O.onwrite):A._write(ge,k,O.onwrite),O.sync=!1}function Ce(A,O,Y,fe,ge){--O.pendingcb,Y?(e.nextTick(ge,fe),e.nextTick(Je,A,O),A._writableState.errorEmitted=!0,V(A,fe)):(ge(fe),A._writableState.errorEmitted=!0,V(A,fe),Je(A,O))}function Ne(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function ne(A,O){var Y=A._writableState,fe=Y.sync,ge=Y.writecb;if(typeof ge!="function")throw new w;if(Ne(Y),O)Ce(A,Y,fe,O,ge);else{var k=Re(Y)||A.destroyed;!k&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&me(A,Y),fe?e.nextTick(te,A,Y,k,ge):te(A,Y,k,ge)}}function te(A,O,Y,fe){Y||ye(A,O),O.pendingcb--,fe(),Je(A,O)}function ye(A,O){O.length===0&&O.needDrain&&(O.needDrain=!1,A.emit("drain"))}function me(A,O){O.bufferProcessing=!0;var Y=O.bufferedRequest;if(A._writev&&Y&&Y.next){var fe=O.bufferedRequestCount,ge=new Array(fe),k=O.corkedRequestsFree;k.entry=Y;for(var Z=0,Se=!0;Y;)ge[Z]=Y,Y.isBuf||(Se=!1),Y=Y.next,Z+=1;ge.allBuffers=Se,ae(A,O,!0,O.length,ge,"",k.finish),O.pendingcb++,O.lastBufferedRequest=null,k.next?(O.corkedRequestsFree=k.next,k.next=null):O.corkedRequestsFree=new t(O),O.bufferedRequestCount=0}else{for(;Y;){var ke=Y.chunk,De=Y.encoding,$e=Y.callback,Me=O.objectMode?1:ke.length;if(ae(A,O,!1,Me,ke,De,$e),Y=Y.next,O.bufferedRequestCount--,O.writing)break}Y===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=Y,O.bufferProcessing=!1}G.prototype._write=function(A,O,Y){Y(new h("_write()"))},G.prototype._writev=null,G.prototype.end=function(A,O,Y){var fe=this._writableState;return typeof A=="function"?(Y=A,A=null,O=null):typeof O=="function"&&(Y=O,O=null),A!=null&&this.write(A,O),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Ve(this,fe,Y),this},Object.defineProperty(G.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Re(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function qe(A,O){A._final(function(Y){O.pendingcb--,Y&&V(A,Y),O.prefinished=!0,A.emit("prefinish"),Je(A,O)})}function je(A,O){!O.prefinished&&!O.finalCalled&&(typeof A._final=="function"&&!O.destroyed?(O.pendingcb++,O.finalCalled=!0,e.nextTick(qe,A,O)):(O.prefinished=!0,A.emit("prefinish")))}function Je(A,O){var Y=Re(O);if(Y&&(je(A,O),O.pendingcb===0&&(O.finished=!0,A.emit("finish"),O.autoDestroy))){var fe=A._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&A.destroy()}return Y}function Ve(A,O,Y){O.ending=!0,Je(A,O),Y&&(O.finished?e.nextTick(Y):A.once("finish",Y)),O.ended=!0,A.writable=!1}function xe(A,O,Y){var fe=A.entry;for(A.entry=null;fe;){var ge=fe.callback;O.pendingcb--,ge(Y),fe=fe.next}O.corkedRequestsFree.next=A}return Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(O){this._writableState&&(this._writableState.destroyed=O)}}),G.prototype.destroy=c.destroy,G.prototype._undestroy=c.undestroy,G.prototype._destroy=function(A,O){O(A)},Ec}var Sc={},zw=!1;function Si(){if(zw)return Sc;zw=!0;var e=lt,t=Object.keys||function(d){var y=[];for(var v in d)y.push(v);return y};Sc=f;var r=Nc(),n=Cc();Ai()(f,r);for(var o=t(n.prototype),a=0;a<o.length;a++){var i=o[a];f.prototype[i]||(f.prototype[i]=n.prototype[i])}function f(d){if(!(this instanceof f))return new f(d);r.call(this,d),n.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||e.nextTick(c,this)}function c(d){d.end()}return Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),Sc}var Ac={},Ww=!1;function cu(){if(Ww)return Ac;Ww=!0;var e=vo().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var f=arguments.length,l=new Array(f),c=0;c<f;c++)l[c]=arguments[c];a.apply(this,l)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,f){if(typeof i=="function")return o(a,null,i);i||(i={}),f=t(f||r);var l=i.readable||i.readable!==!1&&a.readable,c=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||v()},y=a._writableState&&a._writableState.finished,v=function(){c=!1,y=!0,l||f.call(a)},_=a._readableState&&a._readableState.endEmitted,h=function(){l=!1,_=!0,c||f.call(a)},w=function(M){f.call(a,M)},S=function(){var M;if(l&&!_)return(!a._readableState||!a._readableState.ended)&&(M=new e),f.call(a,M);if(c&&!y)return(!a._writableState||!a._writableState.ended)&&(M=new e),f.call(a,M)},T=function(){a.req.on("finish",v)};return n(a)?(a.on("complete",v),a.on("abort",S),a.req?T():a.on("request",T)):c&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",h),a.on("finish",v),i.error!==!1&&a.on("error",w),a.on("close",S),function(){a.removeListener("complete",v),a.removeListener("abort",S),a.removeListener("request",T),a.req&&a.req.removeListener("finish",v),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",v),a.removeListener("end",h),a.removeListener("error",w),a.removeListener("close",S)}}return Ac=o,Ac}var Rc={},Hw=!1;function zO(){if(Hw)return Rc;Hw=!0;var e=lt,t;function r(C,M,D){return M in C?Object.defineProperty(C,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):C[M]=D,C}var n=cu(),o=Symbol("lastResolve"),a=Symbol("lastReject"),i=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function y(C,M){return{value:C,done:M}}function v(C){var M=C[o];if(M!==null){var D=C[d].read();D!==null&&(C[l]=null,C[o]=null,C[a]=null,M(y(D,!1)))}}function _(C){e.nextTick(v,C)}function h(C,M){return function(D,V){C.then(function(){if(M[f]){D(y(void 0,!0));return}M[c](D,V)},V)}}var w=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((t={get stream(){return this[d]},next:function(){var M=this,D=this[i];if(D!==null)return Promise.reject(D);if(this[f])return Promise.resolve(y(void 0,!0));if(this[d].destroyed)return new Promise(function(x,G){e.nextTick(function(){M[i]?G(M[i]):x(y(void 0,!0))})});var V=this[l],F;if(V)F=new Promise(h(V,this));else{var N=this[d].read();if(N!==null)return Promise.resolve(y(N,!1));F=new Promise(this[c])}return this[l]=F,F}},r(t,Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var M=this;return new Promise(function(D,V){M[d].destroy(null,function(F){if(F){V(F);return}D(y(void 0,!0))})})}),t),w),T=function(M){var D,V=Object.create(S,(D={},r(D,d,{value:M,writable:!0}),r(D,o,{value:null,writable:!0}),r(D,a,{value:null,writable:!0}),r(D,i,{value:null,writable:!0}),r(D,f,{value:M._readableState.endEmitted,writable:!0}),r(D,c,{value:function(N,x){var G=V[d].read();G?(V[l]=null,V[o]=null,V[a]=null,N(y(G,!1))):(V[o]=N,V[a]=x)},writable:!0}),D));return V[l]=null,n(M,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=V[a];N!==null&&(V[l]=null,V[o]=null,V[a]=null,N(F)),V[i]=F;return}var x=V[o];x!==null&&(V[l]=null,V[o]=null,V[a]=null,x(y(void 0,!0))),V[f]=!0}),M.on("readable",_.bind(null,V)),V};return Rc=T,Rc}var Tc={},Zw=!1;function WO(){return Zw||(Zw=!0,Tc=function(){throw new Error("Readable.from is not available in the browser")}),Tc}var Oc={},Vw=!1,HO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Nc(){if(Vw)return Oc;Vw=!0;var e=lt;Oc=Q;var t;Q.ReadableState=G,Ft.EventEmitter;var r=function(Z,Se){return Z.listeners(Se).length},n=Xw(),o=Br.Buffer,a=HO.Uint8Array||function(){};function i(k){return o.from(k)}function f(k){return o.isBuffer(k)||k instanceof a}var l=Oe,c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var d=jO(),y=Jw(),v=Qw(),_=v.getHighWaterMark,h=vo().codes,w=h.ERR_INVALID_ARG_TYPE,S=h.ERR_STREAM_PUSH_AFTER_EOF,T=h.ERR_METHOD_NOT_IMPLEMENTED,C=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,M,D,V;Ai()(Q,n);var F=y.errorOrDestroy,N=["error","close","destroy","pause","resume"];function x(k,Z,Se){if(typeof k.prependListener=="function")return k.prependListener(Z,Se);!k._events||!k._events[Z]?k.on(Z,Se):Array.isArray(k._events[Z])?k._events[Z].unshift(Se):k._events[Z]=[Se,k._events[Z]]}function G(k,Z,Se){t=t||Si(),k=k||{},typeof Se!="boolean"&&(Se=Z instanceof t),this.objectMode=!!k.objectMode,Se&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=_(this,k,"readableHighWaterMark",Se),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(M||(M=mo.StringDecoder),this.decoder=new M(k.encoding),this.encoding=k.encoding)}function Q(k){if(t=t||Si(),!(this instanceof Q))return new Q(k);var Z=this instanceof t;this._readableState=new G(k,this,Z),this.readable=!0,k&&(typeof k.read=="function"&&(this._read=k.read),typeof k.destroy=="function"&&(this._destroy=k.destroy)),n.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Z){this._readableState&&(this._readableState.destroyed=Z)}}),Q.prototype.destroy=y.destroy,Q.prototype._undestroy=y.undestroy,Q.prototype._destroy=function(k,Z){Z(k)},Q.prototype.push=function(k,Z){var Se=this._readableState,ke;return Se.objectMode?ke=!0:typeof k=="string"&&(Z=Z||Se.defaultEncoding,Z!==Se.encoding&&(k=o.from(k,Z),Z=""),ke=!0),Te(this,k,Z,!1,ke)},Q.prototype.unshift=function(k){return Te(this,k,null,!0,!1)};function Te(k,Z,Se,ke,De){c("readableAddChunk",Z);var $e=k._readableState;if(Z===null)$e.reading=!1,ne(k,$e);else{var Me;if(De||(Me=re($e,Z)),Me)F(k,Me);else if($e.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!$e.objectMode&&Object.getPrototypeOf(Z)!==o.prototype&&(Z=i(Z)),ke)$e.endEmitted?F(k,new C):K(k,$e,Z,!0);else if($e.ended)F(k,new S);else{if($e.destroyed)return!1;$e.reading=!1,$e.decoder&&!Se?(Z=$e.decoder.write(Z),$e.objectMode||Z.length!==0?K(k,$e,Z,!1):me(k,$e)):K(k,$e,Z,!1)}else ke||($e.reading=!1,me(k,$e))}return!$e.ended&&($e.length<$e.highWaterMark||$e.length===0)}function K(k,Z,Se,ke){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,k.emit("data",Se)):(Z.length+=Z.objectMode?1:Se.length,ke?Z.buffer.unshift(Se):Z.buffer.push(Se),Z.needReadable&&te(k)),me(k,Z)}function re(k,Z){var Se;return!f(Z)&&typeof Z!="string"&&Z!==void 0&&!k.objectMode&&(Se=new w("chunk",["string","Buffer","Uint8Array"],Z)),Se}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(k){M||(M=mo.StringDecoder);var Z=new M(k);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,ke="";Se!==null;)ke+=Z.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),ke!==""&&this._readableState.buffer.push(ke),this._readableState.length=ke.length,this};var ae=1073741824;function Ce(k){return k>=ae?k=ae:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Ne(k,Z){return k<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:k!==k?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(k>Z.highWaterMark&&(Z.highWaterMark=Ce(k)),k<=Z.length?k:Z.ended?Z.length:(Z.needReadable=!0,0))}Q.prototype.read=function(k){c("read",k),k=parseInt(k,10);var Z=this._readableState,Se=k;if(k!==0&&(Z.emittedReadable=!1),k===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return c("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?Y(this):te(this),null;if(k=Ne(k,Z),k===0&&Z.ended)return Z.length===0&&Y(this),null;var ke=Z.needReadable;c("need readable",ke),(Z.length===0||Z.length-k<Z.highWaterMark)&&(ke=!0,c("length less than watermark",ke)),Z.ended||Z.reading?(ke=!1,c("reading or ended",ke)):ke&&(c("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(k=Ne(Se,Z)));var De;return k>0?De=O(k,Z):De=null,De===null?(Z.needReadable=Z.length<=Z.highWaterMark,k=0):(Z.length-=k,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),Se!==k&&Z.ended&&Y(this)),De!==null&&this.emit("data",De),De};function ne(k,Z){if(c("onEofChunk"),!Z.ended){if(Z.decoder){var Se=Z.decoder.end();Se&&Se.length&&(Z.buffer.push(Se),Z.length+=Z.objectMode?1:Se.length)}Z.ended=!0,Z.sync?te(k):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,ye(k)))}}function te(k){var Z=k._readableState;c("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(c("emitReadable",Z.flowing),Z.emittedReadable=!0,e.nextTick(ye,k))}function ye(k){var Z=k._readableState;c("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(k.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,A(k)}function me(k,Z){Z.readingMore||(Z.readingMore=!0,e.nextTick(Re,k,Z))}function Re(k,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var Se=Z.length;if(c("maybeReadMore read 0"),k.read(0),Se===Z.length)break}Z.readingMore=!1}Q.prototype._read=function(k){F(this,new T("_read()"))},Q.prototype.pipe=function(k,Z){var Se=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=k;break;case 1:ke.pipes=[ke.pipes,k];break;default:ke.pipes.push(k);break}ke.pipesCount+=1,c("pipe count=%d opts=%j",ke.pipesCount,Z);var De=(!Z||Z.end!==!1)&&k!==e.stdout&&k!==e.stderr,$e=De?ot:s;ke.endEmitted?e.nextTick($e):Se.once("end",$e),k.on("unpipe",Me);function Me(u,b){c("onunpipe"),u===Se&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,bt())}function ot(){c("onend"),k.end()}var nt=qe(Se);k.on("drain",nt);var et=!1;function bt(){c("cleanup"),k.removeListener("close",Ct),k.removeListener("finish",p),k.removeListener("drain",nt),k.removeListener("error",gt),k.removeListener("unpipe",Me),Se.removeListener("end",ot),Se.removeListener("end",s),Se.removeListener("data",Qt),et=!0,ke.awaitDrain&&(!k._writableState||k._writableState.needDrain)&&nt()}Se.on("data",Qt);function Qt(u){c("ondata");var b=k.write(u);c("dest.write",b),b===!1&&((ke.pipesCount===1&&ke.pipes===k||ke.pipesCount>1&&ge(ke.pipes,k)!==-1)&&!et&&(c("false write response, pause",ke.awaitDrain),ke.awaitDrain++),Se.pause())}function gt(u){c("onerror",u),s(),k.removeListener("error",gt),r(k,"error")===0&&F(k,u)}x(k,"error",gt);function Ct(){k.removeListener("finish",p),s()}k.once("close",Ct);function p(){c("onfinish"),k.removeListener("close",Ct),s()}k.once("finish",p);function s(){c("unpipe"),Se.unpipe(k)}return k.emit("pipe",Se),ke.flowing||(c("pipe resume"),Se.resume()),k};function qe(k){return function(){var Se=k._readableState;c("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&r(k,"data")&&(Se.flowing=!0,A(k))}}Q.prototype.unpipe=function(k){var Z=this._readableState,Se={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return k&&k!==Z.pipes?this:(k||(k=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,k&&k.emit("unpipe",this,Se),this);if(!k){var ke=Z.pipes,De=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var $e=0;$e<De;$e++)ke[$e].emit("unpipe",this,{hasUnpiped:!1});return this}var Me=ge(Z.pipes,k);return Me===-1?this:(Z.pipes.splice(Me,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),k.emit("unpipe",this,Se),this)},Q.prototype.on=function(k,Z){var Se=n.prototype.on.call(this,k,Z),ke=this._readableState;return k==="data"?(ke.readableListening=this.listenerCount("readable")>0,ke.flowing!==!1&&this.resume()):k==="readable"&&!ke.endEmitted&&!ke.readableListening&&(ke.readableListening=ke.needReadable=!0,ke.flowing=!1,ke.emittedReadable=!1,c("on readable",ke.length,ke.reading),ke.length?te(this):ke.reading||e.nextTick(Je,this)),Se},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(k,Z){var Se=n.prototype.removeListener.call(this,k,Z);return k==="readable"&&e.nextTick(je,this),Se},Q.prototype.removeAllListeners=function(k){var Z=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&e.nextTick(je,this),Z};function je(k){var Z=k._readableState;Z.readableListening=k.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:k.listenerCount("data")>0&&k.resume()}function Je(k){c("readable nexttick read 0"),k.read(0)}Q.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,Ve(this,k)),k.paused=!1,this};function Ve(k,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,e.nextTick(xe,k,Z))}function xe(k,Z){c("resume",Z.reading),Z.reading||k.read(0),Z.resumeScheduled=!1,k.emit("resume"),A(k),Z.flowing&&!Z.reading&&k.read(0)}Q.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(k){var Z=k._readableState;for(c("flow",Z.flowing);Z.flowing&&k.read()!==null;);}Q.prototype.wrap=function(k){var Z=this,Se=this._readableState,ke=!1;k.on("end",function(){if(c("wrapped end"),Se.decoder&&!Se.ended){var Me=Se.decoder.end();Me&&Me.length&&Z.push(Me)}Z.push(null)}),k.on("data",function(Me){if(c("wrapped data"),Se.decoder&&(Me=Se.decoder.write(Me)),!(Se.objectMode&&Me==null)&&!(!Se.objectMode&&(!Me||!Me.length))){var ot=Z.push(Me);ot||(ke=!0,k.pause())}});for(var De in k)this[De]===void 0&&typeof k[De]=="function"&&(this[De]=function(ot){return function(){return k[ot].apply(k,arguments)}}(De));for(var $e=0;$e<N.length;$e++)k.on(N[$e],this.emit.bind(this,N[$e]));return this._read=function(Me){c("wrapped _read",Me),ke&&(ke=!1,k.resume())},this},typeof Symbol=="function"&&(Q.prototype[Symbol.asyncIterator]=function(){return D===void 0&&(D=zO()),D(this)}),Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Z){this._readableState&&(this._readableState.flowing=Z)}}),Q._fromList=O,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function O(k,Z){if(Z.length===0)return null;var Se;return Z.objectMode?Se=Z.buffer.shift():!k||k>=Z.length?(Z.decoder?Se=Z.buffer.join(""):Z.buffer.length===1?Se=Z.buffer.first():Se=Z.buffer.concat(Z.length),Z.buffer.clear()):Se=Z.buffer.consume(k,Z.decoder),Se}function Y(k){var Z=k._readableState;c("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,e.nextTick(fe,Z,k))}function fe(k,Z){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,Z.readable=!1,Z.emit("end"),k.autoDestroy)){var Se=Z._writableState;(!Se||Se.autoDestroy&&Se.finished)&&Z.destroy()}}typeof Symbol=="function"&&(Q.from=function(k,Z){return V===void 0&&(V=WO()),V(Q,k,Z)});function ge(k,Z){for(var Se=0,ke=k.length;Se<ke;Se++)if(k[Se]===Z)return Se;return-1}return Oc}var Ic={},Gw=!1;function Lc(){if(Gw)return Ic;Gw=!0,Ic=f;var e=vo().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,a=Si();Ai()(f,a);function i(d,y){var v=this._transformState;v.transforming=!1;var _=v.writecb;if(_===null)return this.emit("error",new r);v.writechunk=null,v.writecb=null,y!=null&&this.push(y),_(d);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function f(d){if(!(this instanceof f))return new f(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",l)}function l(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(y,v){c(d,y,v)}):c(this,null,null)}f.prototype.push=function(d,y){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,y)},f.prototype._transform=function(d,y,v){v(new t("_transform()"))},f.prototype._write=function(d,y,v){var _=this._transformState;if(_.writecb=v,_.writechunk=d,_.writeencoding=y,!_.transforming){var h=this._readableState;(_.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},f.prototype._read=function(d){var y=this._transformState;y.writechunk!==null&&!y.transforming?(y.transforming=!0,this._transform(y.writechunk,y.writeencoding,y.afterTransform)):y.needTransform=!0},f.prototype._destroy=function(d,y){a.prototype._destroy.call(this,d,function(v){y(v)})};function c(d,y,v){if(y)return d.emit("error",y);if(v!=null&&d.push(v),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Ic}var xc={},Yw=!1;function e1(){if(Yw)return xc;Yw=!0,xc=t;var e=Lc();Ai()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},xc}var Bc={},Kw=!1;function t1(){if(Kw)return Bc;Kw=!0;var e;function t(v){var _=!1;return function(){_||(_=!0,v.apply(void 0,arguments))}}var r=vo().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(v){if(v)throw v}function i(v){return v.setHeader&&typeof v.abort=="function"}function f(v,_,h,w){w=t(w);var S=!1;v.on("close",function(){S=!0}),e===void 0&&(e=cu()),e(v,{readable:_,writable:h},function(C){if(C)return w(C);S=!0,w()});var T=!1;return function(C){if(!S&&!T){if(T=!0,i(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();w(C||new o("pipe"))}}}function l(v){v()}function c(v,_){return v.pipe(_)}function d(v){return!v.length||typeof v[v.length-1]!="function"?a:v.pop()}function y(){for(var v=arguments.length,_=new Array(v),h=0;h<v;h++)_[h]=arguments[h];var w=d(_);if(Array.isArray(_[0])&&(_=_[0]),_.length<2)throw new n("streams");var S,T=_.map(function(C,M){var D=M<_.length-1,V=M>0;return f(C,D,V,function(F){S||(S=F),F&&T.forEach(l),!D&&(T.forEach(l),w(S))})});return _.reduce(c)}return Bc=y,Bc}$();q();z();H();W();$();q();z();H();W();var kc={},r1=!1,Fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function ZO(){if(r1)return kc;r1=!0,kc=r;var e=Ft.EventEmitter,t=Ai();t(r,e),r.Readable=Nc(),r.Writable=Cc(),r.Duplex=Si(),r.Transform=Lc(),r.PassThrough=e1(),r.finished=cu(),r.pipeline=t1(),r.Stream=r;function r(){e.call(this||Fc)}return r.prototype.pipe=function(n,o){var a=this||Fc;function i(_){n.writable&&n.write(_)===!1&&a.pause&&a.pause()}a.on("data",i);function f(){a.readable&&a.resume&&a.resume()}n.on("drain",f),!n._isStdio&&(!o||o.end!==!1)&&(a.on("end",c),a.on("close",d));var l=!1;function c(){l||(l=!0,n.end())}function d(){l||(l=!0,typeof n.destroy=="function"&&n.destroy())}function y(_){if(v(),e.listenerCount(this||Fc,"error")===0)throw _}a.on("error",y),n.on("error",y);function v(){a.removeListener("data",i),n.removeListener("drain",f),a.removeListener("end",c),a.removeListener("close",d),a.removeListener("error",y),n.removeListener("error",y),a.removeListener("end",v),a.removeListener("close",v),n.removeListener("close",v)}return a.on("end",v),a.on("close",v),n.on("close",v),n.emit("pipe",a),n},kc}var ir=ZO();$();q();z();H();W();var H9=Oe._extend,Z9=Oe.callbackify,V9=Oe.debuglog,G9=Oe.deprecate,Y9=Oe.format,K9=Oe.inherits,X9=Oe.inspect,J9=Oe.isArray,Q9=Oe.isBoolean,eW=Oe.isBuffer,tW=Oe.isDate,rW=Oe.isError,nW=Oe.isFunction,iW=Oe.isNull,oW=Oe.isNullOrUndefined,aW=Oe.isNumber,sW=Oe.isObject,uW=Oe.isPrimitive,fW=Oe.isRegExp,lW=Oe.isString,cW=Oe.isSymbol,hW=Oe.isUndefined,pW=Oe.log,Pc=Oe.promisify,dW=Oe.types,yW=Oe.TextEncoder=globalThis.TextEncoder,n1=Oe.TextDecoder=globalThis.TextDecoder;var i1=ir.Readable;i1.wrap=function(e,t){return t=Object.assign({objectMode:e.readableObjectMode!=null||e.objectMode!=null||!0},t),t.destroy=function(r,n){e.destroy(r),n(r)},new i1(t).wrap(e)};var o1=ir.Writable,LW=ir.Duplex,kW=ir.Transform,FW=ir.PassThrough,PW=ir.finished,UW=ir.pipeline,DW=ir.Stream,MW={finished:Pc(ir.finished),pipeline:Pc(ir.pipeline)};$();q();z();H();W();function a1(e,t){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(o!=null)for(var a=Object.keys(Object(o)),i=0,f=a.length;i<f;i++){var l=a[i],c=Object.getOwnPropertyDescriptor(o,l);c!==void 0&&c.enumerable&&(r[l]=o[l])}}return r}var VO={assign:a1,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:a1})}},D1,s1=Object.prototype.toString,M1=function(e){var t=s1.call(e),r=t==="[object Arguments]";return r||(r=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&s1.call(e.callee)==="[object Function]"),r};Object.keys||(ya=Object.prototype.hasOwnProperty,Uc=Object.prototype.toString,u1=M1,Dc=Object.prototype.propertyIsEnumerable,f1=!Dc.call({toString:null},"toString"),l1=Dc.call(function(){},"prototype"),ga=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],hu=function(e){var t=e.constructor;return t&&t.prototype===e},c1={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h1=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!c1["$"+e]&&ya.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{hu(window[e])}catch{return!0}}catch{return!0}return!1}(),D1=function(e){var t=e!==null&&typeof e=="object",r=Uc.call(e)==="[object Function]",n=u1(e),o=t&&Uc.call(e)==="[object String]",a=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var i=l1&&r;if(o&&e.length>0&&!ya.call(e,0))for(var f=0;f<e.length;++f)a.push(String(f));if(n&&e.length>0)for(var l=0;l<e.length;++l)a.push(String(l));else for(var c in e)i&&c==="prototype"||!ya.call(e,c)||a.push(String(c));if(f1)for(var d=function(v){if(typeof window>"u"||!h1)return hu(v);try{return hu(v)}catch{return!1}}(e),y=0;y<ga.length;++y)d&&ga[y]==="constructor"||!ya.call(e,ga[y])||a.push(ga[y]);return a});var ya,Uc,u1,Dc,f1,l1,ga,hu,c1,h1,GO=D1,YO=Array.prototype.slice,KO=M1,p1=Object.keys,gu=p1?function(e){return p1(e)}:GO,d1=Object.keys;gu.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return KO(e)?d1(YO.call(e)):d1(e)}):Object.keys=gu,Object.keys||gu};var XO=gu,JO=XO,QO=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",eI=Object.prototype.toString,tI=Array.prototype.concat,Hc=Object.defineProperty,j1=Hc&&function(){var e={};try{for(var t in Hc(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}}(),rI=function(e,t,r,n){var o;(!(t in e)||typeof(o=n)=="function"&&eI.call(o)==="[object Function]"&&n())&&(j1?Hc(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},$1=function(e,t){var r=arguments.length>2?arguments[2]:{},n=JO(t);QO&&(n=tI.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)rI(e,n[o],t[n[o]],r[n[o]])};$1.supportsDescriptors=!!j1;var bu=$1,nI=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;for(t in e[t]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==42||o.enumerable!==!0)return!1}return!0},y1=(typeof globalThis<"u"?globalThis:typeof self<"u"?self:se).Symbol,iI=nI,oI=function(){return typeof y1=="function"&&typeof Symbol=="function"&&typeof y1("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&iI()},aI="Function.prototype.bind called on incompatible ",Mc=Array.prototype.slice,sI=Object.prototype.toString,uI=function(e){var t=this;if(typeof t!="function"||sI.call(t)!=="[object Function]")throw new TypeError(aI+t);for(var r,n=Mc.call(arguments,1),o=function(){if(this instanceof r){var c=t.apply(this,n.concat(Mc.call(arguments)));return Object(c)===c?c:this}return t.apply(e,n.concat(Mc.call(arguments)))},a=Math.max(0,t.length-n.length),i=[],f=0;f<a;f++)i.push("$"+f);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},q1=Function.prototype.bind||uI,wa=TypeError,Oi=Object.getOwnPropertyDescriptor;if(Oi)try{Oi({},"")}catch{Oi=null}var jc=function(){throw new wa},fI=Oi?function(){try{return arguments.callee,jc}catch{try{return Oi(arguments,"callee").get}catch{return jc}}}():jc,Ri=oI(),Ti=Object.getPrototypeOf||function(e){return e.__proto__},$c=typeof Uint8Array>"u"?void 0:Ti(Uint8Array),qc={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Ri?Ti([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":void 0,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView>"u"?void 0:DataView,"%DataViewPrototype%":typeof DataView>"u"?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array>"u"?void 0:Float32Array.prototype,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array>"u"?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array>"u"?void 0:Int8Array.prototype,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array>"u"?void 0:Int8Array.prototype,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array>"u"?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ri?Ti(Ti([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%JSONParse%":typeof JSON=="object"?JSON.parse:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&Ri?Ti(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":typeof Map>"u"?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%PromisePrototype%":typeof Promise>"u"?void 0:Promise.prototype,"%PromiseProto_then%":typeof Promise>"u"?void 0:Promise.prototype.then,"%Promise_all%":typeof Promise>"u"?void 0:Promise.all,"%Promise_reject%":typeof Promise>"u"?void 0:Promise.reject,"%Promise_resolve%":typeof Promise>"u"?void 0:Promise.resolve,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&Ri?Ti(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":typeof Set>"u"?void 0:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Ri?Ti(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":Ri?Symbol:void 0,"%SymbolPrototype%":Ri?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":fI,"%TypedArray%":$c,"%TypedArrayPrototype%":$c?$c.prototype:void 0,"%TypeError%":wa,"%TypeErrorPrototype%":wa.prototype,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array>"u"?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array>"u"?void 0:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array>"u"?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakMapPrototype%":typeof WeakMap>"u"?void 0:WeakMap.prototype,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%WeakSetPrototype%":typeof WeakSet>"u"?void 0:WeakSet.prototype},g1=q1.call(Function.call,String.prototype.replace),lI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cI=/\\(\\)?/g,hI=function(e){var t=[];return g1(e,lI,function(r,n,o,a){t[t.length]=o?g1(a,cI,"$1"):n||r}),t},pI=function(e,t){if(!(e in qc))throw new SyntaxError("intrinsic "+e+" does not exist!");if(qc[e]===void 0&&!t)throw new wa("intrinsic "+e+" exists, but is not available. Please file an issue!");return qc[e]},dI=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var r=hI(e),n=pI("%"+(r.length>0?r[0]:"")+"%",t),o=1;o<r.length;o+=1)if(n!=null)if(Oi&&o+1>=r.length){var a=Oi(n,r[o]);if(!t&&!(r[o]in n))throw new wa("base intrinsic for "+e+" exists, but the property is not available.");n=a?a.get||a.value:n[r[o]]}else n=n[r[o]];return n},z1,m1=q1,W1=dI("%Function%"),yI=W1.apply,gI=W1.call;(z1=function(){return m1.apply(gI,arguments)}).apply=function(){return m1.apply(yI,arguments)};var mI=z1,Zc,Vc,v1=function(e){return e!=e},vI=(Zc=function(e,t){return e===0&&t===0?1/e==1/t:e===t||!(!v1(e)||!v1(t))},Zc),wI=(Vc=function(){return typeof Object.is=="function"?Object.is:vI},Vc),bI=bu,_I=bu,EI=Zc,H1=Vc,SI=function(){var e=wI();return bI(Object,{is:e},{is:function(){return Object.is!==e}}),e},Z1=mI(H1(),Object);_I(Z1,{getPolyfill:H1,implementation:EI,shim:SI});var V1=Z1;Kc=function(e){return e!=e};var Kc,Xc,AI=Kc,RI=(Xc=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:AI},bu),TI=Xc,OI=bu,II=Kc,G1=Xc,xI=function(){var e=TI();return RI(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},Y1=G1();OI(Y1,{getPolyfill:G1,implementation:II,shim:xI});var BI=Y1,zc={},w1=!1;function K1(){if(w1)return zc;function e(c){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function t(c,d){return!d||e(d)!=="object"&&typeof d!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(c):d}function r(c){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}function n(c,d){return(n=Object.setPrototypeOf||function(y,v){return y.__proto__=v,y})(c,d)}w1=!0;var o,a,i={};function f(c,d,y){y||(y=Error);var v=function(_){function h(w,S,T){var C;return function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}(this,h),(C=t(this,r(h).call(this,function(M,D,V){return typeof d=="string"?d:d(M,D,V)}(w,S,T)))).code=c,C}return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),S&&n(w,S)}(h,_),h}(y);i[c]=v}function l(c,d){if(Array.isArray(c)){var y=c.length;return c=c.map(function(v){return String(v)}),y>2?"one of ".concat(d," ").concat(c.slice(0,y-1).join(", "),", or ")+c[y-1]:y===2?"one of ".concat(d," ").concat(c[0]," or ").concat(c[1]):"of ".concat(d," ").concat(c[0])}return"of ".concat(d," ").concat(String(c))}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(c,d,y){var v,_,h;if(o===void 0&&(o=Yc()),o(typeof c=="string","'name' must be a string"),typeof d=="string"&&(_="not ",d.substr(0,_.length)===_)?(v="must not be",d=d.replace(/^not /,"")):v="must be",function(S,T,C){return(C===void 0||C>S.length)&&(C=S.length),S.substring(C-T.length,C)===T}(c," argument"))h="The ".concat(c," ").concat(v," ").concat(l(d,"type"));else{var w=function(S,T,C){return typeof C!="number"&&(C=0),!(C+T.length>S.length)&&S.indexOf(T,C)!==-1}(c,".")?"property":"argument";h='The "'.concat(c,'" ').concat(w," ").concat(v," ").concat(l(d,"type"))}return h+=". Received type ".concat(e(y))},TypeError),f("ERR_INVALID_ARG_VALUE",function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=Oe);var v=a.inspect(d);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(y,". Received ").concat(v)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(c,d,y){var v;return v=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(e(y)),"Expected ".concat(c,' to be returned from the "').concat(d,'"')+" function but got ".concat(v,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var c=arguments.length,d=new Array(c),y=0;y<c;y++)d[y]=arguments[y];o===void 0&&(o=Yc()),o(d.length>0,"At least one arg needs to be specified");var v="The ",_=d.length;switch(d=d.map(function(h){return'"'.concat(h,'"')}),_){case 1:v+="".concat(d[0]," argument");break;case 2:v+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:v+=d.slice(0,_-1).join(", "),v+=", and ".concat(d[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),zc.codes=i,zc}var b1={},_1=!1;function CI(){if(_1)return b1;_1=!0;var e=Et;function t(N,x,G){return x in N?Object.defineProperty(N,x,{value:G,enumerable:!0,configurable:!0,writable:!0}):N[x]=G,N}function r(N,x){for(var G=0;G<x.length;G++){var Q=x[G];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(N,Q.key,Q)}}function n(N,x){return!x||d(x)!=="object"&&typeof x!="function"?o(N):x}function o(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function a(N){var x=typeof Map=="function"?new Map:void 0;return(a=function(G){if(G===null||(Q=G,Function.toString.call(Q).indexOf("[native code]")===-1))return G;var Q;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(G))return x.get(G);x.set(G,Te)}function Te(){return f(G,arguments,c(this).constructor)}return Te.prototype=Object.create(G.prototype,{constructor:{value:Te,enumerable:!1,writable:!0,configurable:!0}}),l(Te,G)})(N)}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(N,x,G){return(f=i()?Reflect.construct:function(Q,Te,K){var re=[null];re.push.apply(re,Te);var ae=new(Function.bind.apply(Q,re));return K&&l(ae,K.prototype),ae}).apply(null,arguments)}function l(N,x){return(l=Object.setPrototypeOf||function(G,Q){return G.__proto__=Q,G})(N,x)}function c(N){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(N)}function d(N){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(N)}var y=Oe.inspect,v=K1().codes.ERR_INVALID_ARG_TYPE;function _(N,x,G){return(G===void 0||G>N.length)&&(G=N.length),N.substring(G-x.length,G)===x}var h="",w="",S="",T="",C={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function M(N){var x=Object.keys(N),G=Object.create(Object.getPrototypeOf(N));return x.forEach(function(Q){G[Q]=N[Q]}),Object.defineProperty(G,"message",{value:N.message}),G}function D(N){return y(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function V(N,x,G){var Q="",Te="",K=0,re="",ae=!1,Ce=D(N),Ne=Ce.split(`
|
|
`),ne=D(x).split(`
|
|
`),te=0,ye="";if(G==="strictEqual"&&d(N)==="object"&&d(x)==="object"&&N!==null&&x!==null&&(G="strictEqualObject"),Ne.length===1&&ne.length===1&&Ne[0]!==ne[0]){var me=Ne[0].length+ne[0].length;if(me<=10){if(!(d(N)==="object"&&N!==null||d(x)==="object"&&x!==null||N===0&&x===0))return"".concat(C[G],`
|
|
|
|
`)+"".concat(Ne[0]," !== ").concat(ne[0],`
|
|
`)}else if(G!=="strictEqualObject"&&me<(e.stderr&&e.stderr.isTTY?e.stderr.columns:80)){for(;Ne[0][te]===ne[0][te];)te++;te>2&&(ye=`
|
|
`.concat(function(k,Z){if(Z=Math.floor(Z),k.length==0||Z==0)return"";var Se=k.length*Z;for(Z=Math.floor(Math.log(Z)/Math.log(2));Z;)k+=k,Z--;return k+=k.substring(0,Se-k.length)}(" ",te),"^"),te=0)}}for(var Re=Ne[Ne.length-1],qe=ne[ne.length-1];Re===qe&&(te++<2?re=`
|
|
`.concat(Re).concat(re):Q=Re,Ne.pop(),ne.pop(),Ne.length!==0&&ne.length!==0);)Re=Ne[Ne.length-1],qe=ne[ne.length-1];var je=Math.max(Ne.length,ne.length);if(je===0){var Je=Ce.split(`
|
|
`);if(Je.length>30)for(Je[26]="".concat(h,"...").concat(T);Je.length>27;)Je.pop();return"".concat(C.notIdentical,`
|
|
|
|
`).concat(Je.join(`
|
|
`),`
|
|
`)}te>3&&(re=`
|
|
`.concat(h,"...").concat(T).concat(re),ae=!0),Q!==""&&(re=`
|
|
`.concat(Q).concat(re),Q="");var Ve=0,xe=C[G]+`
|
|
`.concat(w,"+ actual").concat(T," ").concat(S,"- expected").concat(T),A=" ".concat(h,"...").concat(T," Lines skipped");for(te=0;te<je;te++){var O=te-K;if(Ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
|
|
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
|
|
`.concat(ne[te-2]),Ve++),Te+=`
|
|
`.concat(ne[te-1]),Ve++),K=te,Q+=`
|
|
`.concat(S,"-").concat(T," ").concat(ne[te]),Ve++;else if(ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
|
|
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
|
|
`.concat(Ne[te-2]),Ve++),Te+=`
|
|
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
|
|
`.concat(w,"+").concat(T," ").concat(Ne[te]),Ve++;else{var Y=ne[te],fe=Ne[te],ge=fe!==Y&&(!_(fe,",")||fe.slice(0,-1)!==Y);ge&&_(Y,",")&&Y.slice(0,-1)===fe&&(ge=!1,fe+=","),ge?(O>1&&te>2&&(O>4?(Te+=`
|
|
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
|
|
`.concat(Ne[te-2]),Ve++),Te+=`
|
|
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
|
|
`.concat(w,"+").concat(T," ").concat(fe),Q+=`
|
|
`.concat(S,"-").concat(T," ").concat(Y),Ve+=2):(Te+=Q,Q="",O!==1&&te!==0||(Te+=`
|
|
`.concat(fe),Ve++))}if(Ve>20&&te<je-2)return"".concat(xe).concat(A,`
|
|
`).concat(Te,`
|
|
`).concat(h,"...").concat(T).concat(Q,`
|
|
`)+"".concat(h,"...").concat(T)}return"".concat(xe).concat(ae?A:"",`
|
|
`).concat(Te).concat(Q).concat(re).concat(ye)}var F=function(N){function x(Te){var K;if(function(Je,Ve){if(!(Je instanceof Ve))throw new TypeError("Cannot call a class as a function")}(this,x),d(Te)!=="object"||Te===null)throw new v("options","Object",Te);var re=Te.message,ae=Te.operator,Ce=Te.stackStartFn,Ne=Te.actual,ne=Te.expected,te=Error.stackTraceLimit;if(Error.stackTraceLimit=0,re!=null)K=n(this,c(x).call(this,String(re)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(h="\x1B[34m",w="\x1B[32m",T="\x1B[39m",S="\x1B[31m"):(h="",w="",T="",S="")),d(Ne)==="object"&&Ne!==null&&d(ne)==="object"&&ne!==null&&"stack"in Ne&&Ne instanceof Error&&"stack"in ne&&ne instanceof Error&&(Ne=M(Ne),ne=M(ne)),ae==="deepStrictEqual"||ae==="strictEqual")K=n(this,c(x).call(this,V(Ne,ne,ae)));else if(ae==="notDeepStrictEqual"||ae==="notStrictEqual"){var ye=C[ae],me=D(Ne).split(`
|
|
`);if(ae==="notStrictEqual"&&d(Ne)==="object"&&Ne!==null&&(ye=C.notStrictEqualObject),me.length>30)for(me[26]="".concat(h,"...").concat(T);me.length>27;)me.pop();K=me.length===1?n(this,c(x).call(this,"".concat(ye," ").concat(me[0]))):n(this,c(x).call(this,"".concat(ye,`
|
|
|
|
`).concat(me.join(`
|
|
`),`
|
|
`)))}else{var Re=D(Ne),qe="",je=C[ae];ae==="notDeepEqual"||ae==="notEqual"?(Re="".concat(C[ae],`
|
|
|
|
`).concat(Re)).length>1024&&(Re="".concat(Re.slice(0,1021),"...")):(qe="".concat(D(ne)),Re.length>512&&(Re="".concat(Re.slice(0,509),"...")),qe.length>512&&(qe="".concat(qe.slice(0,509),"...")),ae==="deepEqual"||ae==="equal"?Re="".concat(je,`
|
|
|
|
`).concat(Re,`
|
|
|
|
should equal
|
|
|
|
`):qe=" ".concat(ae," ").concat(qe)),K=n(this,c(x).call(this,"".concat(Re).concat(qe)))}return Error.stackTraceLimit=te,K.generatedMessage=!re,Object.defineProperty(o(K),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),K.code="ERR_ASSERTION",K.actual=Ne,K.expected=ne,K.operator=ae,Error.captureStackTrace&&Error.captureStackTrace(o(K),Ce),K.stack,K.name="AssertionError",n(K)}var G,Q;return function(Te,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Te.prototype=Object.create(K&&K.prototype,{constructor:{value:Te,writable:!0,configurable:!0}}),K&&l(Te,K)}(x,N),G=x,(Q=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(Te,K){return y(this,function(re){for(var ae=1;ae<arguments.length;ae++){var Ce=arguments[ae]!=null?arguments[ae]:{},Ne=Object.keys(Ce);typeof Object.getOwnPropertySymbols=="function"&&(Ne=Ne.concat(Object.getOwnPropertySymbols(Ce).filter(function(ne){return Object.getOwnPropertyDescriptor(Ce,ne).enumerable}))),Ne.forEach(function(ne){t(re,ne,Ce[ne])})}return re}({},K,{customInspect:!1,depth:0}))}}])&&r(G.prototype,Q),x}(a(Error));return b1=F}function E1(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var o=[],a=!0,i=!1,f=void 0;try{for(var l,c=r[Symbol.iterator]();!(a=(l=c.next()).done)&&(o.push(l.value),!n||o.length!==n);a=!0);}catch(d){i=!0,f=d}finally{try{a||c.return==null||c.return()}finally{if(i)throw f}}return o}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zr(e){return(Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var NI=/a/g.flags!==void 0,wu=function(e){var t=[];return e.forEach(function(r){return t.push(r)}),t},S1=function(e){var t=[];return e.forEach(function(r,n){return t.push([n,r])}),t},A1=Object.is?Object.is:V1,mu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Gc=Number.isNaN?Number.isNaN:BI;function Jc(e){return e.call.bind(e)}var va=Jc(Object.prototype.hasOwnProperty),vu=Jc(Object.prototype.propertyIsEnumerable),R1=Jc(Object.prototype.toString),ur=Oe.types,LI=ur.isAnyArrayBuffer,kI=ur.isArrayBufferView,T1=ur.isDate,pu=ur.isMap,O1=ur.isRegExp,du=ur.isSet,FI=ur.isNativeError,PI=ur.isBoxedPrimitive,I1=ur.isNumberObject,x1=ur.isStringObject,B1=ur.isBooleanObject,C1=ur.isBigIntObject,UI=ur.isSymbolObject,DI=ur.isFloat32Array,MI=ur.isFloat64Array;function jI(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function yu(e){return Object.keys(e).filter(jI).concat(mu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function N1(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function Cr(e,t,r,n){if(e===t)return e!==0||!r||A1(e,t);if(r){if(Zr(e)!=="object")return typeof e=="number"&&Gc(e)&&Gc(t);if(Zr(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Zr(e)!=="object")return(t===null||Zr(t)!=="object")&&e==t;if(t===null||Zr(t)!=="object")return!1}var o,a,i,f,l=R1(e);if(l!==R1(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var c=yu(e),d=yu(t);return c.length===d.length&&ma(e,t,r,n,1,c)}if(l==="[object Object]"&&(!pu(e)&&pu(t)||!du(e)&&du(t)))return!1;if(T1(e)){if(!T1(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(O1(e)){if(!O1(t)||(i=e,f=t,!(NI?i.source===f.source&&i.flags===f.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(f))))return!1}else if(FI(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(kI(e)){if(r||!DI(e)&&!MI(e)){if(!function(_,h){return _.byteLength===h.byteLength&&N1(new Uint8Array(_.buffer,_.byteOffset,_.byteLength),new Uint8Array(h.buffer,h.byteOffset,h.byteLength))===0}(e,t))return!1}else if(!function(_,h){if(_.byteLength!==h.byteLength)return!1;for(var w=0;w<_.byteLength;w++)if(_[w]!==h[w])return!1;return!0}(e,t))return!1;var y=yu(e),v=yu(t);return y.length===v.length&&ma(e,t,r,n,0,y)}if(du(e))return!(!du(t)||e.size!==t.size)&&ma(e,t,r,n,2);if(pu(e))return!(!pu(t)||e.size!==t.size)&&ma(e,t,r,n,3);if(LI(e)){if(a=t,(o=e).byteLength!==a.byteLength||N1(new Uint8Array(o),new Uint8Array(a))!==0)return!1}else if(PI(e)&&!function(_,h){return I1(_)?I1(h)&&A1(Number.prototype.valueOf.call(_),Number.prototype.valueOf.call(h)):x1(_)?x1(h)&&String.prototype.valueOf.call(_)===String.prototype.valueOf.call(h):B1(_)?B1(h)&&Boolean.prototype.valueOf.call(_)===Boolean.prototype.valueOf.call(h):C1(_)?C1(h)&&BigInt.prototype.valueOf.call(_)===BigInt.prototype.valueOf.call(h):UI(h)&&Symbol.prototype.valueOf.call(_)===Symbol.prototype.valueOf.call(h)}(e,t))return!1}return ma(e,t,r,n,0)}function L1(e,t){return t.filter(function(r){return vu(e,r)})}function ma(e,t,r,n,o,a){if(arguments.length===5){a=Object.keys(e);var i=Object.keys(t);if(a.length!==i.length)return!1}for(var f=0;f<a.length;f++)if(!va(t,a[f]))return!1;if(r&&arguments.length===5){var l=mu(e);if(l.length!==0){var c=0;for(f=0;f<l.length;f++){var d=l[f];if(vu(e,d)){if(!vu(t,d))return!1;a.push(d),c++}else if(vu(t,d))return!1}var y=mu(t);if(l.length!==y.length&&L1(t,y).length!==c)return!1}else{var v=mu(t);if(v.length!==0&&L1(t,v).length!==0)return!1}}if(a.length===0&&(o===0||o===1&&e.length===0||e.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var _=n.val1.get(e);if(_!==void 0){var h=n.val2.get(t);if(h!==void 0)return _===h}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var w=zI(e,t,r,a,n,o);return n.val1.delete(e),n.val2.delete(t),w}function k1(e,t,r,n){for(var o=wu(e),a=0;a<o.length;a++){var i=o[a];if(Cr(t,i,r,n))return e.delete(i),!0}return!1}function X1(e){switch(Zr(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(Gc(e))return!1}return!0}function $I(e,t,r){var n=X1(r);return n??(t.has(n)&&!e.has(n))}function qI(e,t,r,n,o){var a=X1(r);if(a!=null)return a;var i=t.get(a);return!(i===void 0&&!t.has(a)||!Cr(n,i,!1,o))&&!e.has(a)&&Cr(n,i,!1,o)}function F1(e,t,r,n,o,a){for(var i=wu(e),f=0;f<i.length;f++){var l=i[f];if(Cr(r,l,o,a)&&Cr(n,t.get(l),o,a))return e.delete(l),!0}return!1}function zI(e,t,r,n,o,a){var i=0;if(a===2){if(!function(d,y,v,_){for(var h=null,w=wu(d),S=0;S<w.length;S++){var T=w[S];if(Zr(T)==="object"&&T!==null)h===null&&(h=new Set),h.add(T);else if(!y.has(T)){if(v||!$I(d,y,T))return!1;h===null&&(h=new Set),h.add(T)}}if(h!==null){for(var C=wu(y),M=0;M<C.length;M++){var D=C[M];if(Zr(D)==="object"&&D!==null){if(!k1(h,D,v,_))return!1}else if(!v&&!d.has(D)&&!k1(h,D,v,_))return!1}return h.size===0}return!0}(e,t,r,o))return!1}else if(a===3){if(!function(d,y,v,_){for(var h=null,w=S1(d),S=0;S<w.length;S++){var T=E1(w[S],2),C=T[0],M=T[1];if(Zr(C)==="object"&&C!==null)h===null&&(h=new Set),h.add(C);else{var D=y.get(C);if(D===void 0&&!y.has(C)||!Cr(M,D,v,_)){if(v||!qI(d,y,C,M,_))return!1;h===null&&(h=new Set),h.add(C)}}}if(h!==null){for(var V=S1(y),F=0;F<V.length;F++){var N=E1(V[F],2),x=(C=N[0],N[1]);if(Zr(C)==="object"&&C!==null){if(!F1(h,d,C,x,v,_))return!1}else if(!(v||d.has(C)&&Cr(d.get(C),x,!1,_)||F1(h,d,C,x,!1,_)))return!1}return h.size===0}return!0}(e,t,r,o))return!1}else if(a===1)for(;i<e.length;i++){if(!va(e,i)){if(va(t,i))return!1;for(var f=Object.keys(e);i<f.length;i++){var l=f[i];if(!va(t,l)||!Cr(e[l],t[l],r,o))return!1}return f.length===Object.keys(t).length}if(!va(t,i)||!Cr(e[i],t[i],r,o))return!1}for(i=0;i<n.length;i++){var c=n[i];if(!Cr(e[c],t[c],r,o))return!1}return!0}var P1={isDeepEqual:function(e,t){return Cr(e,t,!1)},isDeepStrictEqual:function(e,t){return Cr(e,t,!0)}},Wc={},U1=!1;function Yc(){if(U1)return Wc;U1=!0;var e=Et;function t(ne){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(ne)}var r,n,o=K1().codes,a=o.ERR_AMBIGUOUS_ARGUMENT,i=o.ERR_INVALID_ARG_TYPE,f=o.ERR_INVALID_ARG_VALUE,l=o.ERR_INVALID_RETURN_VALUE,c=o.ERR_MISSING_ARGS,d=CI(),y=Oe.inspect,v=Oe.types,_=v.isPromise,h=v.isRegExp,w=Object.assign?Object.assign:VO.assign,S=Object.is?Object.is:V1;function T(){r=P1.isDeepEqual,n=P1.isDeepStrictEqual}var C=!1,M=Wc=N,D={};function V(ne){throw ne.message instanceof Error?ne.message:new d(ne)}function F(ne,te,ye,me){if(!ye){var Re=!1;if(te===0)Re=!0,me="No value argument passed to `assert.ok()`";else if(me instanceof Error)throw me;var qe=new d({actual:ye,expected:!0,message:me,operator:"==",stackStartFn:ne});throw qe.generatedMessage=Re,qe}}function N(){for(var ne=arguments.length,te=new Array(ne),ye=0;ye<ne;ye++)te[ye]=arguments[ye];F.apply(void 0,[N,te.length].concat(te))}M.fail=function ne(te,ye,me,Re,qe){var je,Je=arguments.length;if(Je===0)je="Failed";else if(Je===1)me=te,te=void 0;else{if(C===!1){C=!0;var Ve=e.emitWarning?e.emitWarning:console.warn.bind(console);Ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Je===2&&(Re="!=")}if(me instanceof Error)throw me;var xe={actual:te,expected:ye,operator:Re===void 0?"fail":Re,stackStartFn:qe||ne};me!==void 0&&(xe.message=me);var A=new d(xe);throw je&&(A.message=je,A.generatedMessage=!0),A},M.AssertionError=d,M.ok=N,M.equal=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");te!=ye&&V({actual:te,expected:ye,message:me,operator:"==",stackStartFn:ne})},M.notEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");te==ye&&V({actual:te,expected:ye,message:me,operator:"!=",stackStartFn:ne})},M.deepEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),r(te,ye)||V({actual:te,expected:ye,message:me,operator:"deepEqual",stackStartFn:ne})},M.notDeepEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),r(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notDeepEqual",stackStartFn:ne})},M.deepStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),n(te,ye)||V({actual:te,expected:ye,message:me,operator:"deepStrictEqual",stackStartFn:ne})},M.notDeepStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),n(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notDeepStrictEqual",stackStartFn:ne})},M.strictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");S(te,ye)||V({actual:te,expected:ye,message:me,operator:"strictEqual",stackStartFn:ne})},M.notStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");S(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notStrictEqual",stackStartFn:ne})};var x=function ne(te,ye,me){var Re=this;(function(qe,je){if(!(qe instanceof je))throw new TypeError("Cannot call a class as a function")})(this,ne),ye.forEach(function(qe){qe in te&&(me!==void 0&&typeof me[qe]=="string"&&h(te[qe])&&te[qe].test(me[qe])?Re[qe]=me[qe]:Re[qe]=te[qe])})};function G(ne,te,ye,me,Re,qe){if(!(ye in ne)||!n(ne[ye],te[ye])){if(!me){var je=new x(ne,Re),Je=new x(te,Re,ne),Ve=new d({actual:je,expected:Je,operator:"deepStrictEqual",stackStartFn:qe});throw Ve.actual=ne,Ve.expected=te,Ve.operator=qe.name,Ve}V({actual:ne,expected:te,message:me,operator:qe.name,stackStartFn:qe})}}function Q(ne,te,ye,me){if(typeof te!="function"){if(h(te))return te.test(ne);if(arguments.length===2)throw new i("expected",["Function","RegExp"],te);if(t(ne)!=="object"||ne===null){var Re=new d({actual:ne,expected:te,message:ye,operator:"deepStrictEqual",stackStartFn:me});throw Re.operator=me.name,Re}var qe=Object.keys(te);if(te instanceof Error)qe.push("name","message");else if(qe.length===0)throw new f("error",te,"may not be an empty object");return r===void 0&&T(),qe.forEach(function(je){typeof ne[je]=="string"&&h(te[je])&&te[je].test(ne[je])||G(ne,te,je,ye,qe,me)}),!0}return te.prototype!==void 0&&ne instanceof te||!Error.isPrototypeOf(te)&&te.call({},ne)===!0}function Te(ne){if(typeof ne!="function")throw new i("fn","Function",ne);try{ne()}catch(te){return te}return D}function K(ne){return _(ne)||ne!==null&&t(ne)==="object"&&typeof ne.then=="function"&&typeof ne.catch=="function"}function re(ne){return Promise.resolve().then(function(){var te;if(typeof ne=="function"){if(!K(te=ne()))throw new l("instance of Promise","promiseFn",te)}else{if(!K(ne))throw new i("promiseFn",["Function","Promise"],ne);te=ne}return Promise.resolve().then(function(){return te}).then(function(){return D}).catch(function(ye){return ye})})}function ae(ne,te,ye,me){if(typeof ye=="string"){if(arguments.length===4)throw new i("error",["Object","Error","Function","RegExp"],ye);if(t(te)==="object"&&te!==null){if(te.message===ye)throw new a("error/message",'The error message "'.concat(te.message,'" is identical to the message.'))}else if(te===ye)throw new a("error/message",'The error "'.concat(te,'" is identical to the message.'));me=ye,ye=void 0}else if(ye!=null&&t(ye)!=="object"&&typeof ye!="function")throw new i("error",["Object","Error","Function","RegExp"],ye);if(te===D){var Re="";ye&&ye.name&&(Re+=" (".concat(ye.name,")")),Re+=me?": ".concat(me):".";var qe=ne.name==="rejects"?"rejection":"exception";V({actual:void 0,expected:ye,operator:ne.name,message:"Missing expected ".concat(qe).concat(Re),stackStartFn:ne})}if(ye&&!Q(te,ye,me,ne))throw te}function Ce(ne,te,ye,me){if(te!==D){if(typeof ye=="string"&&(me=ye,ye=void 0),!ye||Q(te,ye)){var Re=me?": ".concat(me):".",qe=ne.name==="doesNotReject"?"rejection":"exception";V({actual:te,expected:ye,operator:ne.name,message:"Got unwanted ".concat(qe).concat(Re,`
|
|
`)+'Actual message: "'.concat(te&&te.message,'"'),stackStartFn:ne})}throw te}}function Ne(){for(var ne=arguments.length,te=new Array(ne),ye=0;ye<ne;ye++)te[ye]=arguments[ye];F.apply(void 0,[Ne,te.length].concat(te))}return M.throws=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];ae.apply(void 0,[ne,Te(te)].concat(me))},M.rejects=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(qe){return ae.apply(void 0,[ne,qe].concat(me))})},M.doesNotThrow=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];Ce.apply(void 0,[ne,Te(te)].concat(me))},M.doesNotReject=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(qe){return Ce.apply(void 0,[ne,qe].concat(me))})},M.ifError=function ne(te){if(te!=null){var ye="ifError got unwanted exception: ";t(te)==="object"&&typeof te.message=="string"?te.message.length===0&&te.constructor?ye+=te.constructor.name:ye+=te.message:ye+=y(te);var me=new d({actual:te,expected:null,operator:"ifError",message:ye,stackStartFn:ne}),Re=te.stack;if(typeof Re=="string"){var qe=Re.split(`
|
|
`);qe.shift();for(var je=me.stack.split(`
|
|
`),Je=0;Je<qe.length;Je++){var Ve=je.indexOf(qe[Je]);if(Ve!==-1){je=je.slice(0,Ve);break}}me.stack="".concat(je.join(`
|
|
`),`
|
|
`).concat(qe.join(`
|
|
`))}throw me}},M.strict=w(Ne,M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}),M.strict.strict=M.strict,Wc}var Qe=Yc();Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;var YW=Qe.AssertionError,KW=Qe.deepEqual,XW=Qe.deepStrictEqual,JW=Qe.doesNotReject,QW=Qe.doesNotThrow,eH=Qe.equal,tH=Qe.fail,rH=Qe.ifError,nH=Qe.notDeepEqual,iH=Qe.notDeepStrictEqual,oH=Qe.notEqual,aH=Qe.notStrictEqual,sH=Qe.ok,uH=Qe.rejects,fH=Qe.strict,lH=Qe.strictEqual,cH=Qe.throws;var Qc={},J1=!1;function WI(){if(J1)return Qc;J1=!0;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Qc=e,Qc}var or={},Q1=!1;function _u(){if(Q1)return or;Q1=!0;var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(o,a){return Object.prototype.hasOwnProperty.call(o,a)}or.assign=function(o){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var i=a.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(var f in i)t(i,f)&&(o[f]=i[f])}}return o},or.shrinkBuf=function(o,a){return o.length===a?o:o.subarray?o.subarray(0,a):(o.length=a,o)};var r={arraySet:function(o,a,i,f,l){if(a.subarray&&o.subarray){o.set(a.subarray(i,i+f),l);return}for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){var a,i,f,l,c,d;for(f=0,a=0,i=o.length;a<i;a++)f+=o[a].length;for(d=new Uint8Array(f),l=0,a=0,i=o.length;a<i;a++)c=o[a],d.set(c,l),l+=c.length;return d}},n={arraySet:function(o,a,i,f,l){for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){return[].concat.apply([],o)}};return or.setTyped=function(o){o?(or.Buf8=Uint8Array,or.Buf16=Uint16Array,or.Buf32=Int32Array,or.assign(or,r)):(or.Buf8=Array,or.Buf16=Array,or.Buf32=Array,or.assign(or,n))},or.setTyped(e),or}var Ii={},eb=!1;function HI(){if(eb)return Ii;eb=!0;var e=_u(),t=4,r=0,n=1,o=2;function a(m){for(var j=m.length;--j>=0;)m[j]=0}var i=0,f=1,l=2,c=3,d=258,y=29,v=256,_=v+1+y,h=30,w=19,S=2*_+1,T=15,C=16,M=7,D=256,V=16,F=17,N=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],G=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=512,re=new Array((_+2)*2);a(re);var ae=new Array(h*2);a(ae);var Ce=new Array(K);a(Ce);var Ne=new Array(d-c+1);a(Ne);var ne=new Array(y);a(ne);var te=new Array(h);a(te);function ye(m,j,le,Be,ee){this.static_tree=m,this.extra_bits=j,this.extra_base=le,this.elems=Be,this.max_length=ee,this.has_stree=m&&m.length}var me,Re,qe;function je(m,j){this.dyn_tree=m,this.max_code=0,this.stat_desc=j}function Je(m){return m<256?Ce[m]:Ce[256+(m>>>7)]}function Ve(m,j){m.pending_buf[m.pending++]=j&255,m.pending_buf[m.pending++]=j>>>8&255}function xe(m,j,le){m.bi_valid>C-le?(m.bi_buf|=j<<m.bi_valid&65535,Ve(m,m.bi_buf),m.bi_buf=j>>C-m.bi_valid,m.bi_valid+=le-C):(m.bi_buf|=j<<m.bi_valid&65535,m.bi_valid+=le)}function A(m,j,le){xe(m,le[j*2],le[j*2+1])}function O(m,j){var le=0;do le|=m&1,m>>>=1,le<<=1;while(--j>0);return le>>>1}function Y(m){m.bi_valid===16?(Ve(m,m.bi_buf),m.bi_buf=0,m.bi_valid=0):m.bi_valid>=8&&(m.pending_buf[m.pending++]=m.bi_buf&255,m.bi_buf>>=8,m.bi_valid-=8)}function fe(m,j){var le=j.dyn_tree,Be=j.max_code,ee=j.stat_desc.static_tree,ue=j.stat_desc.has_stree,I=j.stat_desc.extra_bits,Fe=j.stat_desc.extra_base,rt=j.stat_desc.max_length,g,we,_e,U,ie,ve,Ye=0;for(U=0;U<=T;U++)m.bl_count[U]=0;for(le[m.heap[m.heap_max]*2+1]=0,g=m.heap_max+1;g<S;g++)we=m.heap[g],U=le[le[we*2+1]*2+1]+1,U>rt&&(U=rt,Ye++),le[we*2+1]=U,!(we>Be)&&(m.bl_count[U]++,ie=0,we>=Fe&&(ie=I[we-Fe]),ve=le[we*2],m.opt_len+=ve*(U+ie),ue&&(m.static_len+=ve*(ee[we*2+1]+ie)));if(Ye!==0){do{for(U=rt-1;m.bl_count[U]===0;)U--;m.bl_count[U]--,m.bl_count[U+1]+=2,m.bl_count[rt]--,Ye-=2}while(Ye>0);for(U=rt;U!==0;U--)for(we=m.bl_count[U];we!==0;)_e=m.heap[--g],!(_e>Be)&&(le[_e*2+1]!==U&&(m.opt_len+=(U-le[_e*2+1])*le[_e*2],le[_e*2+1]=U),we--)}}function ge(m,j,le){var Be=new Array(T+1),ee=0,ue,I;for(ue=1;ue<=T;ue++)Be[ue]=ee=ee+le[ue-1]<<1;for(I=0;I<=j;I++){var Fe=m[I*2+1];Fe!==0&&(m[I*2]=O(Be[Fe]++,Fe))}}function k(){var m,j,le,Be,ee,ue=new Array(T+1);for(le=0,Be=0;Be<y-1;Be++)for(ne[Be]=le,m=0;m<1<<x[Be];m++)Ne[le++]=Be;for(Ne[le-1]=Be,ee=0,Be=0;Be<16;Be++)for(te[Be]=ee,m=0;m<1<<G[Be];m++)Ce[ee++]=Be;for(ee>>=7;Be<h;Be++)for(te[Be]=ee<<7,m=0;m<1<<G[Be]-7;m++)Ce[256+ee++]=Be;for(j=0;j<=T;j++)ue[j]=0;for(m=0;m<=143;)re[m*2+1]=8,m++,ue[8]++;for(;m<=255;)re[m*2+1]=9,m++,ue[9]++;for(;m<=279;)re[m*2+1]=7,m++,ue[7]++;for(;m<=287;)re[m*2+1]=8,m++,ue[8]++;for(ge(re,_+1,ue),m=0;m<h;m++)ae[m*2+1]=5,ae[m*2]=O(m,5);me=new ye(re,x,v+1,_,T),Re=new ye(ae,G,0,h,T),qe=new ye(new Array(0),Q,0,w,M)}function Z(m){var j;for(j=0;j<_;j++)m.dyn_ltree[j*2]=0;for(j=0;j<h;j++)m.dyn_dtree[j*2]=0;for(j=0;j<w;j++)m.bl_tree[j*2]=0;m.dyn_ltree[D*2]=1,m.opt_len=m.static_len=0,m.last_lit=m.matches=0}function Se(m){m.bi_valid>8?Ve(m,m.bi_buf):m.bi_valid>0&&(m.pending_buf[m.pending++]=m.bi_buf),m.bi_buf=0,m.bi_valid=0}function ke(m,j,le,Be){Se(m),Be&&(Ve(m,le),Ve(m,~le)),e.arraySet(m.pending_buf,m.window,j,le,m.pending),m.pending+=le}function De(m,j,le,Be){var ee=j*2,ue=le*2;return m[ee]<m[ue]||m[ee]===m[ue]&&Be[j]<=Be[le]}function $e(m,j,le){for(var Be=m.heap[le],ee=le<<1;ee<=m.heap_len&&(ee<m.heap_len&&De(j,m.heap[ee+1],m.heap[ee],m.depth)&&ee++,!De(j,Be,m.heap[ee],m.depth));)m.heap[le]=m.heap[ee],le=ee,ee<<=1;m.heap[le]=Be}function Me(m,j,le){var Be,ee,ue=0,I,Fe;if(m.last_lit!==0)do Be=m.pending_buf[m.d_buf+ue*2]<<8|m.pending_buf[m.d_buf+ue*2+1],ee=m.pending_buf[m.l_buf+ue],ue++,Be===0?A(m,ee,j):(I=Ne[ee],A(m,I+v+1,j),Fe=x[I],Fe!==0&&(ee-=ne[I],xe(m,ee,Fe)),Be--,I=Je(Be),A(m,I,le),Fe=G[I],Fe!==0&&(Be-=te[I],xe(m,Be,Fe)));while(ue<m.last_lit);A(m,D,j)}function ot(m,j){var le=j.dyn_tree,Be=j.stat_desc.static_tree,ee=j.stat_desc.has_stree,ue=j.stat_desc.elems,I,Fe,rt=-1,g;for(m.heap_len=0,m.heap_max=S,I=0;I<ue;I++)le[I*2]!==0?(m.heap[++m.heap_len]=rt=I,m.depth[I]=0):le[I*2+1]=0;for(;m.heap_len<2;)g=m.heap[++m.heap_len]=rt<2?++rt:0,le[g*2]=1,m.depth[g]=0,m.opt_len--,ee&&(m.static_len-=Be[g*2+1]);for(j.max_code=rt,I=m.heap_len>>1;I>=1;I--)$e(m,le,I);g=ue;do I=m.heap[1],m.heap[1]=m.heap[m.heap_len--],$e(m,le,1),Fe=m.heap[1],m.heap[--m.heap_max]=I,m.heap[--m.heap_max]=Fe,le[g*2]=le[I*2]+le[Fe*2],m.depth[g]=(m.depth[I]>=m.depth[Fe]?m.depth[I]:m.depth[Fe])+1,le[I*2+1]=le[Fe*2+1]=g,m.heap[1]=g++,$e(m,le,1);while(m.heap_len>=2);m.heap[--m.heap_max]=m.heap[1],fe(m,j),ge(le,rt,m.bl_count)}function nt(m,j,le){var Be,ee=-1,ue,I=j[0*2+1],Fe=0,rt=7,g=4;for(I===0&&(rt=138,g=3),j[(le+1)*2+1]=65535,Be=0;Be<=le;Be++)ue=I,I=j[(Be+1)*2+1],!(++Fe<rt&&ue===I)&&(Fe<g?m.bl_tree[ue*2]+=Fe:ue!==0?(ue!==ee&&m.bl_tree[ue*2]++,m.bl_tree[V*2]++):Fe<=10?m.bl_tree[F*2]++:m.bl_tree[N*2]++,Fe=0,ee=ue,I===0?(rt=138,g=3):ue===I?(rt=6,g=3):(rt=7,g=4))}function et(m,j,le){var Be,ee=-1,ue,I=j[0*2+1],Fe=0,rt=7,g=4;for(I===0&&(rt=138,g=3),Be=0;Be<=le;Be++)if(ue=I,I=j[(Be+1)*2+1],!(++Fe<rt&&ue===I)){if(Fe<g)do A(m,ue,m.bl_tree);while(--Fe!==0);else ue!==0?(ue!==ee&&(A(m,ue,m.bl_tree),Fe--),A(m,V,m.bl_tree),xe(m,Fe-3,2)):Fe<=10?(A(m,F,m.bl_tree),xe(m,Fe-3,3)):(A(m,N,m.bl_tree),xe(m,Fe-11,7));Fe=0,ee=ue,I===0?(rt=138,g=3):ue===I?(rt=6,g=3):(rt=7,g=4)}}function bt(m){var j;for(nt(m,m.dyn_ltree,m.l_desc.max_code),nt(m,m.dyn_dtree,m.d_desc.max_code),ot(m,m.bl_desc),j=w-1;j>=3&&m.bl_tree[Te[j]*2+1]===0;j--);return m.opt_len+=3*(j+1)+5+5+4,j}function Qt(m,j,le,Be){var ee;for(xe(m,j-257,5),xe(m,le-1,5),xe(m,Be-4,4),ee=0;ee<Be;ee++)xe(m,m.bl_tree[Te[ee]*2+1],3);et(m,m.dyn_ltree,j-1),et(m,m.dyn_dtree,le-1)}function gt(m){var j=4093624447,le;for(le=0;le<=31;le++,j>>>=1)if(j&1&&m.dyn_ltree[le*2]!==0)return r;if(m.dyn_ltree[9*2]!==0||m.dyn_ltree[10*2]!==0||m.dyn_ltree[13*2]!==0)return n;for(le=32;le<v;le++)if(m.dyn_ltree[le*2]!==0)return n;return r}var Ct=!1;function p(m){Ct||(k(),Ct=!0),m.l_desc=new je(m.dyn_ltree,me),m.d_desc=new je(m.dyn_dtree,Re),m.bl_desc=new je(m.bl_tree,qe),m.bi_buf=0,m.bi_valid=0,Z(m)}function s(m,j,le,Be){xe(m,(i<<1)+(Be?1:0),3),ke(m,j,le,!0)}function u(m){xe(m,f<<1,3),A(m,D,re),Y(m)}function b(m,j,le,Be){var ee,ue,I=0;m.level>0?(m.strm.data_type===o&&(m.strm.data_type=gt(m)),ot(m,m.l_desc),ot(m,m.d_desc),I=bt(m),ee=m.opt_len+3+7>>>3,ue=m.static_len+3+7>>>3,ue<=ee&&(ee=ue)):ee=ue=le+5,le+4<=ee&&j!==-1?s(m,j,le,Be):m.strategy===t||ue===ee?(xe(m,(f<<1)+(Be?1:0),3),Me(m,re,ae)):(xe(m,(l<<1)+(Be?1:0),3),Qt(m,m.l_desc.max_code+1,m.d_desc.max_code+1,I+1),Me(m,m.dyn_ltree,m.dyn_dtree)),Z(m),Be&&Se(m)}function L(m,j,le){return m.pending_buf[m.d_buf+m.last_lit*2]=j>>>8&255,m.pending_buf[m.d_buf+m.last_lit*2+1]=j&255,m.pending_buf[m.l_buf+m.last_lit]=le&255,m.last_lit++,j===0?m.dyn_ltree[le*2]++:(m.matches++,j--,m.dyn_ltree[(Ne[le]+v+1)*2]++,m.dyn_dtree[Je(j)*2]++),m.last_lit===m.lit_bufsize-1}return Ii._tr_init=p,Ii._tr_stored_block=s,Ii._tr_flush_block=b,Ii._tr_tally=L,Ii._tr_align=u,Ii}var eh={},tb=!1;function cb(){if(tb)return eh;tb=!0;function e(t,r,n,o){for(var a=t&65535|0,i=t>>>16&65535|0,f=0;n!==0;){f=n>2e3?2e3:n,n-=f;do a=a+r[o++]|0,i=i+a|0;while(--f);a%=65521,i%=65521}return a|i<<16|0}return eh=e,eh}var th={},rb=!1;function hb(){if(rb)return th;rb=!0;function e(){for(var n,o=[],a=0;a<256;a++){n=a;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;o[a]=n}return o}var t=e();function r(n,o,a,i){var f=t,l=i+a;n^=-1;for(var c=i;c<l;c++)n=n>>>8^f[(n^o[c])&255];return n^-1}return th=r,th}var rh={},nb=!1;function ZI(){return nb||(nb=!0,rh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),rh}var Vr={},ib=!1;function VI(){if(ib)return Vr;ib=!0;var e=_u(),t=HI(),r=cb(),n=hb(),o=ZI(),a=0,i=1,f=3,l=4,c=5,d=0,y=1,v=-2,_=-3,h=-5,w=-1,S=1,T=2,C=3,M=4,D=0,V=2,F=8,N=9,x=15,G=8,Q=29,Te=256,K=Te+1+Q,re=30,ae=19,Ce=2*K+1,Ne=15,ne=3,te=258,ye=te+ne+1,me=32,Re=42,qe=69,je=73,Je=91,Ve=103,xe=113,A=666,O=1,Y=2,fe=3,ge=4,k=3;function Z(g,we){return g.msg=o[we],we}function Se(g){return(g<<1)-(g>4?9:0)}function ke(g){for(var we=g.length;--we>=0;)g[we]=0}function De(g){var we=g.state,_e=we.pending;_e>g.avail_out&&(_e=g.avail_out),_e!==0&&(e.arraySet(g.output,we.pending_buf,we.pending_out,_e,g.next_out),g.next_out+=_e,we.pending_out+=_e,g.total_out+=_e,g.avail_out-=_e,we.pending-=_e,we.pending===0&&(we.pending_out=0))}function $e(g,we){t._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,we),g.block_start=g.strstart,De(g.strm)}function Me(g,we){g.pending_buf[g.pending++]=we}function ot(g,we){g.pending_buf[g.pending++]=we>>>8&255,g.pending_buf[g.pending++]=we&255}function nt(g,we,_e,U){var ie=g.avail_in;return ie>U&&(ie=U),ie===0?0:(g.avail_in-=ie,e.arraySet(we,g.input,g.next_in,ie,_e),g.state.wrap===1?g.adler=r(g.adler,we,ie,_e):g.state.wrap===2&&(g.adler=n(g.adler,we,ie,_e)),g.next_in+=ie,g.total_in+=ie,ie)}function et(g,we){var _e=g.max_chain_length,U=g.strstart,ie,ve,Ye=g.prev_length,Ae=g.nice_match,We=g.strstart>g.w_size-ye?g.strstart-(g.w_size-ye):0,ht=g.window,kr=g.w_mask,ut=g.prev,pt=g.strstart+te,Lt=ht[U+Ye-1],Nt=ht[U+Ye];g.prev_length>=g.good_match&&(_e>>=2),Ae>g.lookahead&&(Ae=g.lookahead);do if(ie=we,!(ht[ie+Ye]!==Nt||ht[ie+Ye-1]!==Lt||ht[ie]!==ht[U]||ht[++ie]!==ht[U+1])){U+=2,ie++;do;while(ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&U<pt);if(ve=te-(pt-U),U=pt-te,ve>Ye){if(g.match_start=we,Ye=ve,ve>=Ae)break;Lt=ht[U+Ye-1],Nt=ht[U+Ye]}}while((we=ut[we&kr])>We&&--_e!==0);return Ye<=g.lookahead?Ye:g.lookahead}function bt(g){var we=g.w_size,_e,U,ie,ve,Ye;do{if(ve=g.window_size-g.lookahead-g.strstart,g.strstart>=we+(we-ye)){e.arraySet(g.window,g.window,we,we,0),g.match_start-=we,g.strstart-=we,g.block_start-=we,U=g.hash_size,_e=U;do ie=g.head[--_e],g.head[_e]=ie>=we?ie-we:0;while(--U);U=we,_e=U;do ie=g.prev[--_e],g.prev[_e]=ie>=we?ie-we:0;while(--U);ve+=we}if(g.strm.avail_in===0)break;if(U=nt(g.strm,g.window,g.strstart+g.lookahead,ve),g.lookahead+=U,g.lookahead+g.insert>=ne)for(Ye=g.strstart-g.insert,g.ins_h=g.window[Ye],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ye+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ye+ne-1])&g.hash_mask,g.prev[Ye&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Ye,Ye++,g.insert--,!(g.lookahead+g.insert<ne)););}while(g.lookahead<ye&&g.strm.avail_in!==0)}function Qt(g,we){var _e=65535;for(_e>g.pending_buf_size-5&&(_e=g.pending_buf_size-5);;){if(g.lookahead<=1){if(bt(g),g.lookahead===0&&we===a)return O;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var U=g.block_start+_e;if((g.strstart===0||g.strstart>=U)&&(g.lookahead=g.strstart-U,g.strstart=U,$e(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-ye&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):(g.strstart>g.block_start&&($e(g,!1),g.strm.avail_out===0),O)}function gt(g,we){for(var _e,U;;){if(g.lookahead<ye){if(bt(g),g.lookahead<ye&&we===a)return O;if(g.lookahead===0)break}if(_e=0,g.lookahead>=ne&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),_e!==0&&g.strstart-_e<=g.w_size-ye&&(g.match_length=et(g,_e)),g.match_length>=ne)if(U=t._tr_tally(g,g.strstart-g.match_start,g.match_length-ne),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=ne){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else U=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(U&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=g.strstart<ne-1?g.strstart:ne-1,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function Ct(g,we){for(var _e,U,ie;;){if(g.lookahead<ye){if(bt(g),g.lookahead<ye&&we===a)return O;if(g.lookahead===0)break}if(_e=0,g.lookahead>=ne&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=ne-1,_e!==0&&g.prev_length<g.max_lazy_match&&g.strstart-_e<=g.w_size-ye&&(g.match_length=et(g,_e),g.match_length<=5&&(g.strategy===S||g.match_length===ne&&g.strstart-g.match_start>4096)&&(g.match_length=ne-1)),g.prev_length>=ne&&g.match_length<=g.prev_length){ie=g.strstart+g.lookahead-ne,U=t._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-ne),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=ie&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);if(g.match_available=0,g.match_length=ne-1,g.strstart++,U&&($e(g,!1),g.strm.avail_out===0))return O}else if(g.match_available){if(U=t._tr_tally(g,0,g.window[g.strstart-1]),U&&$e(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return O}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(U=t._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<ne-1?g.strstart:ne-1,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function p(g,we){for(var _e,U,ie,ve,Ye=g.window;;){if(g.lookahead<=te){if(bt(g),g.lookahead<=te&&we===a)return O;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=ne&&g.strstart>0&&(ie=g.strstart-1,U=Ye[ie],U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie])){ve=g.strstart+te;do;while(U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&ie<ve);g.match_length=te-(ve-ie),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=ne?(_e=t._tr_tally(g,1,g.match_length-ne),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):(_e=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),_e&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function s(g,we){for(var _e;;){if(g.lookahead===0&&(bt(g),g.lookahead===0)){if(we===a)return O;break}if(g.match_length=0,_e=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,_e&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function u(g,we,_e,U,ie){this.good_length=g,this.max_lazy=we,this.nice_length=_e,this.max_chain=U,this.func=ie}var b;b=[new u(0,0,0,0,Qt),new u(4,4,8,4,gt),new u(4,5,16,8,gt),new u(4,6,32,32,gt),new u(4,4,16,16,Ct),new u(8,16,32,32,Ct),new u(8,16,128,128,Ct),new u(8,32,128,256,Ct),new u(32,128,258,1024,Ct),new u(32,258,258,4096,Ct)];function L(g){g.window_size=2*g.w_size,ke(g.head),g.max_lazy_match=b[g.level].max_lazy,g.good_match=b[g.level].good_length,g.nice_match=b[g.level].nice_length,g.max_chain_length=b[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=ne-1,g.match_available=0,g.ins_h=0}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=F,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Ce*2),this.dyn_dtree=new e.Buf16((2*re+1)*2),this.bl_tree=new e.Buf16((2*ae+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Ne+1),this.heap=new e.Buf16(2*K+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*K+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(g){var we;return!g||!g.state?Z(g,v):(g.total_in=g.total_out=0,g.data_type=V,we=g.state,we.pending=0,we.pending_out=0,we.wrap<0&&(we.wrap=-we.wrap),we.status=we.wrap?Re:xe,g.adler=we.wrap===2?0:1,we.last_flush=a,t._tr_init(we),d)}function le(g){var we=j(g);return we===d&&L(g.state),we}function Be(g,we){return!g||!g.state||g.state.wrap!==2?v:(g.state.gzhead=we,d)}function ee(g,we,_e,U,ie,ve){if(!g)return v;var Ye=1;if(we===w&&(we=6),U<0?(Ye=0,U=-U):U>15&&(Ye=2,U-=16),ie<1||ie>N||_e!==F||U<8||U>15||we<0||we>9||ve<0||ve>M)return Z(g,v);U===8&&(U=9);var Ae=new m;return g.state=Ae,Ae.strm=g,Ae.wrap=Ye,Ae.gzhead=null,Ae.w_bits=U,Ae.w_size=1<<Ae.w_bits,Ae.w_mask=Ae.w_size-1,Ae.hash_bits=ie+7,Ae.hash_size=1<<Ae.hash_bits,Ae.hash_mask=Ae.hash_size-1,Ae.hash_shift=~~((Ae.hash_bits+ne-1)/ne),Ae.window=new e.Buf8(Ae.w_size*2),Ae.head=new e.Buf16(Ae.hash_size),Ae.prev=new e.Buf16(Ae.w_size),Ae.lit_bufsize=1<<ie+6,Ae.pending_buf_size=Ae.lit_bufsize*4,Ae.pending_buf=new e.Buf8(Ae.pending_buf_size),Ae.d_buf=1*Ae.lit_bufsize,Ae.l_buf=(1+2)*Ae.lit_bufsize,Ae.level=we,Ae.strategy=ve,Ae.method=_e,le(g)}function ue(g,we){return ee(g,we,F,x,G,D)}function I(g,we){var _e,U,ie,ve;if(!g||!g.state||we>c||we<0)return g?Z(g,v):v;if(U=g.state,!g.output||!g.input&&g.avail_in!==0||U.status===A&&we!==l)return Z(g,g.avail_out===0?h:v);if(U.strm=g,_e=U.last_flush,U.last_flush=we,U.status===Re)if(U.wrap===2)g.adler=0,Me(U,31),Me(U,139),Me(U,8),U.gzhead?(Me(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),Me(U,U.gzhead.time&255),Me(U,U.gzhead.time>>8&255),Me(U,U.gzhead.time>>16&255),Me(U,U.gzhead.time>>24&255),Me(U,U.level===9?2:U.strategy>=T||U.level<2?4:0),Me(U,U.gzhead.os&255),U.gzhead.extra&&U.gzhead.extra.length&&(Me(U,U.gzhead.extra.length&255),Me(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(g.adler=n(g.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=qe):(Me(U,0),Me(U,0),Me(U,0),Me(U,0),Me(U,0),Me(U,U.level===9?2:U.strategy>=T||U.level<2?4:0),Me(U,k),U.status=xe);else{var Ye=F+(U.w_bits-8<<4)<<8,Ae=-1;U.strategy>=T||U.level<2?Ae=0:U.level<6?Ae=1:U.level===6?Ae=2:Ae=3,Ye|=Ae<<6,U.strstart!==0&&(Ye|=me),Ye+=31-Ye%31,U.status=xe,ot(U,Ye),U.strstart!==0&&(ot(U,g.adler>>>16),ot(U,g.adler&65535)),g.adler=1}if(U.status===qe)if(U.gzhead.extra){for(ie=U.pending;U.gzindex<(U.gzhead.extra.length&65535)&&!(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size));)Me(U,U.gzhead.extra[U.gzindex]&255),U.gzindex++;U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),U.gzindex===U.gzhead.extra.length&&(U.gzindex=0,U.status=je)}else U.status=je;if(U.status===je)if(U.gzhead.name){ie=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size)){ve=1;break}U.gzindex<U.gzhead.name.length?ve=U.gzhead.name.charCodeAt(U.gzindex++)&255:ve=0,Me(U,ve)}while(ve!==0);U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),ve===0&&(U.gzindex=0,U.status=Je)}else U.status=Je;if(U.status===Je)if(U.gzhead.comment){ie=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size)){ve=1;break}U.gzindex<U.gzhead.comment.length?ve=U.gzhead.comment.charCodeAt(U.gzindex++)&255:ve=0,Me(U,ve)}while(ve!==0);U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),ve===0&&(U.status=Ve)}else U.status=Ve;if(U.status===Ve&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&De(g),U.pending+2<=U.pending_buf_size&&(Me(U,g.adler&255),Me(U,g.adler>>8&255),g.adler=0,U.status=xe)):U.status=xe),U.pending!==0){if(De(g),g.avail_out===0)return U.last_flush=-1,d}else if(g.avail_in===0&&Se(we)<=Se(_e)&&we!==l)return Z(g,h);if(U.status===A&&g.avail_in!==0)return Z(g,h);if(g.avail_in!==0||U.lookahead!==0||we!==a&&U.status!==A){var We=U.strategy===T?s(U,we):U.strategy===C?p(U,we):b[U.level].func(U,we);if((We===fe||We===ge)&&(U.status=A),We===O||We===fe)return g.avail_out===0&&(U.last_flush=-1),d;if(We===Y&&(we===i?t._tr_align(U):we!==c&&(t._tr_stored_block(U,0,0,!1),we===f&&(ke(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),De(g),g.avail_out===0))return U.last_flush=-1,d}return we!==l?d:U.wrap<=0?y:(U.wrap===2?(Me(U,g.adler&255),Me(U,g.adler>>8&255),Me(U,g.adler>>16&255),Me(U,g.adler>>24&255),Me(U,g.total_in&255),Me(U,g.total_in>>8&255),Me(U,g.total_in>>16&255),Me(U,g.total_in>>24&255)):(ot(U,g.adler>>>16),ot(U,g.adler&65535)),De(g),U.wrap>0&&(U.wrap=-U.wrap),U.pending!==0?d:y)}function Fe(g){var we;return!g||!g.state?v:(we=g.state.status,we!==Re&&we!==qe&&we!==je&&we!==Je&&we!==Ve&&we!==xe&&we!==A?Z(g,v):(g.state=null,we===xe?Z(g,_):d))}function rt(g,we){var _e=we.length,U,ie,ve,Ye,Ae,We,ht,kr;if(!g||!g.state||(U=g.state,Ye=U.wrap,Ye===2||Ye===1&&U.status!==Re||U.lookahead))return v;for(Ye===1&&(g.adler=r(g.adler,we,_e,0)),U.wrap=0,_e>=U.w_size&&(Ye===0&&(ke(U.head),U.strstart=0,U.block_start=0,U.insert=0),kr=new e.Buf8(U.w_size),e.arraySet(kr,we,_e-U.w_size,U.w_size,0),we=kr,_e=U.w_size),Ae=g.avail_in,We=g.next_in,ht=g.input,g.avail_in=_e,g.next_in=0,g.input=we,bt(U);U.lookahead>=ne;){ie=U.strstart,ve=U.lookahead-(ne-1);do U.ins_h=(U.ins_h<<U.hash_shift^U.window[ie+ne-1])&U.hash_mask,U.prev[ie&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=ie,ie++;while(--ve);U.strstart=ie,U.lookahead=ne-1,bt(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=ne-1,U.match_available=0,g.next_in=We,g.input=ht,g.avail_in=Ae,U.wrap=Ye,d}return Vr.deflateInit=ue,Vr.deflateInit2=ee,Vr.deflateReset=le,Vr.deflateResetKeep=j,Vr.deflateSetHeader=Be,Vr.deflate=I,Vr.deflateEnd=Fe,Vr.deflateSetDictionary=rt,Vr.deflateInfo="pako deflate (from Nodeca project)",Vr}var nh={},ob=!1;function GI(){if(ob)return nh;ob=!0;var e=30,t=12;return nh=function(n,o){var a,i,f,l,c,d,y,v,_,h,w,S,T,C,M,D,V,F,N,x,G,Q,Te,K,re;a=n.state,i=n.next_in,K=n.input,f=i+(n.avail_in-5),l=n.next_out,re=n.output,c=l-(o-n.avail_out),d=l+(n.avail_out-257),y=a.dmax,v=a.wsize,_=a.whave,h=a.wnext,w=a.window,S=a.hold,T=a.bits,C=a.lencode,M=a.distcode,D=(1<<a.lenbits)-1,V=(1<<a.distbits)-1;e:do{T<15&&(S+=K[i++]<<T,T+=8,S+=K[i++]<<T,T+=8),F=C[S&D];t:for(;;){if(N=F>>>24,S>>>=N,T-=N,N=F>>>16&255,N===0)re[l++]=F&65535;else if(N&16){x=F&65535,N&=15,N&&(T<N&&(S+=K[i++]<<T,T+=8),x+=S&(1<<N)-1,S>>>=N,T-=N),T<15&&(S+=K[i++]<<T,T+=8,S+=K[i++]<<T,T+=8),F=M[S&V];r:for(;;){if(N=F>>>24,S>>>=N,T-=N,N=F>>>16&255,N&16){if(G=F&65535,N&=15,T<N&&(S+=K[i++]<<T,T+=8,T<N&&(S+=K[i++]<<T,T+=8)),G+=S&(1<<N)-1,G>y){n.msg="invalid distance too far back",a.mode=e;break e}if(S>>>=N,T-=N,N=l-c,G>N){if(N=G-N,N>_&&a.sane){n.msg="invalid distance too far back",a.mode=e;break e}if(Q=0,Te=w,h===0){if(Q+=v-N,N<x){x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}}else if(h<N){if(Q+=v+h-N,N-=h,N<x){x-=N;do re[l++]=w[Q++];while(--N);if(Q=0,h<x){N=h,x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}}}else if(Q+=h-N,N<x){x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}for(;x>2;)re[l++]=Te[Q++],re[l++]=Te[Q++],re[l++]=Te[Q++],x-=3;x&&(re[l++]=Te[Q++],x>1&&(re[l++]=Te[Q++]))}else{Q=l-G;do re[l++]=re[Q++],re[l++]=re[Q++],re[l++]=re[Q++],x-=3;while(x>2);x&&(re[l++]=re[Q++],x>1&&(re[l++]=re[Q++]))}}else if(N&64){n.msg="invalid distance code",a.mode=e;break e}else{F=M[(F&65535)+(S&(1<<N)-1)];continue r}break}}else if(N&64)if(N&32){a.mode=t;break e}else{n.msg="invalid literal/length code",a.mode=e;break e}else{F=C[(F&65535)+(S&(1<<N)-1)];continue t}break}}while(i<f&&l<d);x=T>>3,i-=x,T-=x<<3,S&=(1<<T)-1,n.next_in=i,n.next_out=l,n.avail_in=i<f?5+(f-i):5-(i-f),n.avail_out=l<d?257+(d-l):257-(l-d),a.hold=S,a.bits=T},nh}var ih={},ab=!1;function YI(){if(ab)return ih;ab=!0;var e=_u(),t=15,r=852,n=592,o=0,a=1,i=2,f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return ih=function(v,_,h,w,S,T,C,M){var D=M.bits,V=0,F=0,N=0,x=0,G=0,Q=0,Te=0,K=0,re=0,ae=0,Ce,Ne,ne,te,ye,me=null,Re=0,qe,je=new e.Buf16(t+1),Je=new e.Buf16(t+1),Ve=null,xe=0,A,O,Y;for(V=0;V<=t;V++)je[V]=0;for(F=0;F<w;F++)je[_[h+F]]++;for(G=D,x=t;x>=1&&je[x]===0;x--);if(G>x&&(G=x),x===0)return S[T++]=1<<24|64<<16|0,S[T++]=1<<24|64<<16|0,M.bits=1,0;for(N=1;N<x&&je[N]===0;N++);for(G<N&&(G=N),K=1,V=1;V<=t;V++)if(K<<=1,K-=je[V],K<0)return-1;if(K>0&&(v===o||x!==1))return-1;for(Je[1]=0,V=1;V<t;V++)Je[V+1]=Je[V]+je[V];for(F=0;F<w;F++)_[h+F]!==0&&(C[Je[_[h+F]]++]=F);if(v===o?(me=Ve=C,qe=19):v===a?(me=f,Re-=257,Ve=l,xe-=257,qe=256):(me=c,Ve=d,qe=-1),ae=0,F=0,V=N,ye=T,Q=G,Te=0,ne=-1,re=1<<G,te=re-1,v===a&&re>r||v===i&&re>n)return 1;for(;;){A=V-Te,C[F]<qe?(O=0,Y=C[F]):C[F]>qe?(O=Ve[xe+C[F]],Y=me[Re+C[F]]):(O=32+64,Y=0),Ce=1<<V-Te,Ne=1<<Q,N=Ne;do Ne-=Ce,S[ye+(ae>>Te)+Ne]=A<<24|O<<16|Y|0;while(Ne!==0);for(Ce=1<<V-1;ae&Ce;)Ce>>=1;if(Ce!==0?(ae&=Ce-1,ae+=Ce):ae=0,F++,--je[V]===0){if(V===x)break;V=_[h+C[F]]}if(V>G&&(ae&te)!==ne){for(Te===0&&(Te=G),ye+=N,Q=V-Te,K=1<<Q;Q+Te<x&&(K-=je[Q+Te],!(K<=0));)Q++,K<<=1;if(re+=1<<Q,v===a&&re>r||v===i&&re>n)return 1;ne=ae&te,S[ne]=G<<24|Q<<16|ye-T|0}}return ae!==0&&(S[ye+ae]=V-Te<<24|64<<16|0),M.bits=G,0},ih}var Nr={},sb=!1;function KI(){if(sb)return Nr;sb=!0;var e=_u(),t=cb(),r=hb(),n=GI(),o=YI(),a=0,i=1,f=2,l=4,c=5,d=6,y=0,v=1,_=2,h=-2,w=-3,S=-4,T=-5,C=8,M=1,D=2,V=3,F=4,N=5,x=6,G=7,Q=8,Te=9,K=10,re=11,ae=12,Ce=13,Ne=14,ne=15,te=16,ye=17,me=18,Re=19,qe=20,je=21,Je=22,Ve=23,xe=24,A=25,O=26,Y=27,fe=28,ge=29,k=30,Z=31,Se=32,ke=852,De=592,$e=15,Me=$e;function ot(ee){return(ee>>>24&255)+(ee>>>8&65280)+((ee&65280)<<8)+((ee&255)<<24)}function nt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function et(ee){var ue;return!ee||!ee.state?h:(ue=ee.state,ee.total_in=ee.total_out=ue.total=0,ee.msg="",ue.wrap&&(ee.adler=ue.wrap&1),ue.mode=M,ue.last=0,ue.havedict=0,ue.dmax=32768,ue.head=null,ue.hold=0,ue.bits=0,ue.lencode=ue.lendyn=new e.Buf32(ke),ue.distcode=ue.distdyn=new e.Buf32(De),ue.sane=1,ue.back=-1,y)}function bt(ee){var ue;return!ee||!ee.state?h:(ue=ee.state,ue.wsize=0,ue.whave=0,ue.wnext=0,et(ee))}function Qt(ee,ue){var I,Fe;return!ee||!ee.state||(Fe=ee.state,ue<0?(I=0,ue=-ue):(I=(ue>>4)+1,ue<48&&(ue&=15)),ue&&(ue<8||ue>15))?h:(Fe.window!==null&&Fe.wbits!==ue&&(Fe.window=null),Fe.wrap=I,Fe.wbits=ue,bt(ee))}function gt(ee,ue){var I,Fe;return ee?(Fe=new nt,ee.state=Fe,Fe.window=null,I=Qt(ee,ue),I!==y&&(ee.state=null),I):h}function Ct(ee){return gt(ee,Me)}var p=!0,s,u;function b(ee){if(p){var ue;for(s=new e.Buf32(512),u=new e.Buf32(32),ue=0;ue<144;)ee.lens[ue++]=8;for(;ue<256;)ee.lens[ue++]=9;for(;ue<280;)ee.lens[ue++]=7;for(;ue<288;)ee.lens[ue++]=8;for(o(i,ee.lens,0,288,s,0,ee.work,{bits:9}),ue=0;ue<32;)ee.lens[ue++]=5;o(f,ee.lens,0,32,u,0,ee.work,{bits:5}),p=!1}ee.lencode=s,ee.lenbits=9,ee.distcode=u,ee.distbits=5}function L(ee,ue,I,Fe){var rt,g=ee.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new e.Buf8(g.wsize)),Fe>=g.wsize?(e.arraySet(g.window,ue,I-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(rt=g.wsize-g.wnext,rt>Fe&&(rt=Fe),e.arraySet(g.window,ue,I-Fe,rt,g.wnext),Fe-=rt,Fe?(e.arraySet(g.window,ue,I-Fe,Fe,0),g.wnext=Fe,g.whave=g.wsize):(g.wnext+=rt,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=rt))),0}function m(ee,ue){var I,Fe,rt,g,we,_e,U,ie,ve,Ye,Ae,We,ht,kr,ut=0,pt,Lt,Nt,Yt,Nn,Li,mt,Ut,xt=new e.Buf8(4),Dt,Kt,pn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return h;I=ee.state,I.mode===ae&&(I.mode=Ce),we=ee.next_out,rt=ee.output,U=ee.avail_out,g=ee.next_in,Fe=ee.input,_e=ee.avail_in,ie=I.hold,ve=I.bits,Ye=_e,Ae=U,Ut=y;e:for(;;)switch(I.mode){case M:if(I.wrap===0){I.mode=Ce;break}for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.wrap&2&&ie===35615){I.check=0,xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0),ie=0,ve=0,I.mode=D;break}if(I.flags=0,I.head&&(I.head.done=!1),!(I.wrap&1)||(((ie&255)<<8)+(ie>>8))%31){ee.msg="incorrect header check",I.mode=k;break}if((ie&15)!==C){ee.msg="unknown compression method",I.mode=k;break}if(ie>>>=4,ve-=4,mt=(ie&15)+8,I.wbits===0)I.wbits=mt;else if(mt>I.wbits){ee.msg="invalid window size",I.mode=k;break}I.dmax=1<<mt,ee.adler=I.check=1,I.mode=ie&512?K:ae,ie=0,ve=0;break;case D:for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.flags=ie,(I.flags&255)!==C){ee.msg="unknown compression method",I.mode=k;break}if(I.flags&57344){ee.msg="unknown header flags set",I.mode=k;break}I.head&&(I.head.text=ie>>8&1),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0,I.mode=V;case V:for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.head&&(I.head.time=ie),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,xt[2]=ie>>>16&255,xt[3]=ie>>>24&255,I.check=r(I.check,xt,4,0)),ie=0,ve=0,I.mode=F;case F:for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.head&&(I.head.xflags=ie&255,I.head.os=ie>>8),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0,I.mode=N;case N:if(I.flags&1024){for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.length=ie,I.head&&(I.head.extra_len=ie),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0}else I.head&&(I.head.extra=null);I.mode=x;case x:if(I.flags&1024&&(We=I.length,We>_e&&(We=_e),We&&(I.head&&(mt=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Array(I.head.extra_len)),e.arraySet(I.head.extra,Fe,g,We,mt)),I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,I.length-=We),I.length))break e;I.length=0,I.mode=G;case G:if(I.flags&2048){if(_e===0)break e;We=0;do mt=Fe[g+We++],I.head&&mt&&I.length<65536&&(I.head.name+=String.fromCharCode(mt));while(mt&&We<_e);if(I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,mt)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=Q;case Q:if(I.flags&4096){if(_e===0)break e;We=0;do mt=Fe[g+We++],I.head&&mt&&I.length<65536&&(I.head.comment+=String.fromCharCode(mt));while(mt&&We<_e);if(I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,mt)break e}else I.head&&(I.head.comment=null);I.mode=Te;case Te:if(I.flags&512){for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie!==(I.check&65535)){ee.msg="header crc mismatch",I.mode=k;break}ie=0,ve=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),ee.adler=I.check=0,I.mode=ae;break;case K:for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ee.adler=I.check=ot(ie),ie=0,ve=0,I.mode=re;case re:if(I.havedict===0)return ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,_;ee.adler=I.check=1,I.mode=ae;case ae:if(ue===c||ue===d)break e;case Ce:if(I.last){ie>>>=ve&7,ve-=ve&7,I.mode=Y;break}for(;ve<3;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}switch(I.last=ie&1,ie>>>=1,ve-=1,ie&3){case 0:I.mode=Ne;break;case 1:if(b(I),I.mode=qe,ue===d){ie>>>=2,ve-=2;break e}break;case 2:I.mode=ye;break;case 3:ee.msg="invalid block type",I.mode=k}ie>>>=2,ve-=2;break;case Ne:for(ie>>>=ve&7,ve-=ve&7;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if((ie&65535)!==(ie>>>16^65535)){ee.msg="invalid stored block lengths",I.mode=k;break}if(I.length=ie&65535,ie=0,ve=0,I.mode=ne,ue===d)break e;case ne:I.mode=te;case te:if(We=I.length,We){if(We>_e&&(We=_e),We>U&&(We=U),We===0)break e;e.arraySet(rt,Fe,g,We,we),_e-=We,g+=We,U-=We,we+=We,I.length-=We;break}I.mode=ae;break;case ye:for(;ve<14;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.nlen=(ie&31)+257,ie>>>=5,ve-=5,I.ndist=(ie&31)+1,ie>>>=5,ve-=5,I.ncode=(ie&15)+4,ie>>>=4,ve-=4,I.nlen>286||I.ndist>30){ee.msg="too many length or distance symbols",I.mode=k;break}I.have=0,I.mode=me;case me:for(;I.have<I.ncode;){for(;ve<3;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.lens[pn[I.have++]]=ie&7,ie>>>=3,ve-=3}for(;I.have<19;)I.lens[pn[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,Dt={bits:I.lenbits},Ut=o(a,I.lens,0,19,I.lencode,0,I.work,Dt),I.lenbits=Dt.bits,Ut){ee.msg="invalid code lengths set",I.mode=k;break}I.have=0,I.mode=Re;case Re:for(;I.have<I.nlen+I.ndist;){for(;ut=I.lencode[ie&(1<<I.lenbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(Nt<16)ie>>>=pt,ve-=pt,I.lens[I.have++]=Nt;else{if(Nt===16){for(Kt=pt+2;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie>>>=pt,ve-=pt,I.have===0){ee.msg="invalid bit length repeat",I.mode=k;break}mt=I.lens[I.have-1],We=3+(ie&3),ie>>>=2,ve-=2}else if(Nt===17){for(Kt=pt+3;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=pt,ve-=pt,mt=0,We=3+(ie&7),ie>>>=3,ve-=3}else{for(Kt=pt+7;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=pt,ve-=pt,mt=0,We=11+(ie&127),ie>>>=7,ve-=7}if(I.have+We>I.nlen+I.ndist){ee.msg="invalid bit length repeat",I.mode=k;break}for(;We--;)I.lens[I.have++]=mt}}if(I.mode===k)break;if(I.lens[256]===0){ee.msg="invalid code -- missing end-of-block",I.mode=k;break}if(I.lenbits=9,Dt={bits:I.lenbits},Ut=o(i,I.lens,0,I.nlen,I.lencode,0,I.work,Dt),I.lenbits=Dt.bits,Ut){ee.msg="invalid literal/lengths set",I.mode=k;break}if(I.distbits=6,I.distcode=I.distdyn,Dt={bits:I.distbits},Ut=o(f,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,Dt),I.distbits=Dt.bits,Ut){ee.msg="invalid distances set",I.mode=k;break}if(I.mode=qe,ue===d)break e;case qe:I.mode=je;case je:if(_e>=6&&U>=258){ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,n(ee,Ae),we=ee.next_out,rt=ee.output,U=ee.avail_out,g=ee.next_in,Fe=ee.input,_e=ee.avail_in,ie=I.hold,ve=I.bits,I.mode===ae&&(I.back=-1);break}for(I.back=0;ut=I.lencode[ie&(1<<I.lenbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(Lt&&!(Lt&240)){for(Yt=pt,Nn=Lt,Li=Nt;ut=I.lencode[Li+((ie&(1<<Yt+Nn)-1)>>Yt)],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(Yt+pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=Yt,ve-=Yt,I.back+=Yt}if(ie>>>=pt,ve-=pt,I.back+=pt,I.length=Nt,Lt===0){I.mode=O;break}if(Lt&32){I.back=-1,I.mode=ae;break}if(Lt&64){ee.msg="invalid literal/length code",I.mode=k;break}I.extra=Lt&15,I.mode=Je;case Je:if(I.extra){for(Kt=I.extra;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.length+=ie&(1<<I.extra)-1,ie>>>=I.extra,ve-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=Ve;case Ve:for(;ut=I.distcode[ie&(1<<I.distbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(!(Lt&240)){for(Yt=pt,Nn=Lt,Li=Nt;ut=I.distcode[Li+((ie&(1<<Yt+Nn)-1)>>Yt)],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(Yt+pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=Yt,ve-=Yt,I.back+=Yt}if(ie>>>=pt,ve-=pt,I.back+=pt,Lt&64){ee.msg="invalid distance code",I.mode=k;break}I.offset=Nt,I.extra=Lt&15,I.mode=xe;case xe:if(I.extra){for(Kt=I.extra;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.offset+=ie&(1<<I.extra)-1,ie>>>=I.extra,ve-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){ee.msg="invalid distance too far back",I.mode=k;break}I.mode=A;case A:if(U===0)break e;if(We=Ae-U,I.offset>We){if(We=I.offset-We,We>I.whave&&I.sane){ee.msg="invalid distance too far back",I.mode=k;break}We>I.wnext?(We-=I.wnext,ht=I.wsize-We):ht=I.wnext-We,We>I.length&&(We=I.length),kr=I.window}else kr=rt,ht=we-I.offset,We=I.length;We>U&&(We=U),U-=We,I.length-=We;do rt[we++]=kr[ht++];while(--We);I.length===0&&(I.mode=je);break;case O:if(U===0)break e;rt[we++]=I.length,U--,I.mode=je;break;case Y:if(I.wrap){for(;ve<32;){if(_e===0)break e;_e--,ie|=Fe[g++]<<ve,ve+=8}if(Ae-=U,ee.total_out+=Ae,I.total+=Ae,Ae&&(ee.adler=I.check=I.flags?r(I.check,rt,Ae,we-Ae):t(I.check,rt,Ae,we-Ae)),Ae=U,(I.flags?ie:ot(ie))!==I.check){ee.msg="incorrect data check",I.mode=k;break}ie=0,ve=0}I.mode=fe;case fe:if(I.wrap&&I.flags){for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie!==(I.total&4294967295)){ee.msg="incorrect length check",I.mode=k;break}ie=0,ve=0}I.mode=ge;case ge:Ut=v;break e;case k:Ut=w;break e;case Z:return S;case Se:default:return h}return ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,(I.wsize||Ae!==ee.avail_out&&I.mode<k&&(I.mode<Y||ue!==l))&&L(ee,ee.output,ee.next_out,Ae-ee.avail_out),Ye-=ee.avail_in,Ae-=ee.avail_out,ee.total_in+=Ye,ee.total_out+=Ae,I.total+=Ae,I.wrap&&Ae&&(ee.adler=I.check=I.flags?r(I.check,rt,Ae,ee.next_out-Ae):t(I.check,rt,Ae,ee.next_out-Ae)),ee.data_type=I.bits+(I.last?64:0)+(I.mode===ae?128:0)+(I.mode===qe||I.mode===ne?256:0),(Ye===0&&Ae===0||ue===l)&&Ut===y&&(Ut=T),Ut}function j(ee){if(!ee||!ee.state)return h;var ue=ee.state;return ue.window&&(ue.window=null),ee.state=null,y}function le(ee,ue){var I;return!ee||!ee.state||(I=ee.state,!(I.wrap&2))?h:(I.head=ue,ue.done=!1,y)}function Be(ee,ue){var I=ue.length,Fe,rt,g;return!ee||!ee.state||(Fe=ee.state,Fe.wrap!==0&&Fe.mode!==re)?h:Fe.mode===re&&(rt=1,rt=t(rt,ue,I,0),rt!==Fe.check)?w:(g=L(ee,ue,I,I),g?(Fe.mode=Z,S):(Fe.havedict=1,y))}return Nr.inflateReset=bt,Nr.inflateReset2=Qt,Nr.inflateResetKeep=et,Nr.inflateInit=Ct,Nr.inflateInit2=gt,Nr.inflate=m,Nr.inflateEnd=j,Nr.inflateGetHeader=le,Nr.inflateSetDictionary=Be,Nr.inflateInfo="pako inflate (from Nodeca project)",Nr}var oh={},ub=!1;function XI(){return ub||(ub=!0,oh={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),oh}var ze={},fb=!1;function JI(){if(fb)return ze;fb=!0;var e=Br.Buffer,t=lt,r=Qe,n=WI(),o=VI(),a=KI(),i=XI();for(var f in i)ze[f]=i[f];ze.NONE=0,ze.DEFLATE=1,ze.INFLATE=2,ze.GZIP=3,ze.GUNZIP=4,ze.DEFLATERAW=5,ze.INFLATERAW=6,ze.UNZIP=7;var l=31,c=139;function d(y){if(typeof y!="number"||y<ze.DEFLATE||y>ze.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=y,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}return d.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,r(this.init_done,"close before init"),r(this.mode<=ze.UNZIP),this.mode===ze.DEFLATE||this.mode===ze.GZIP||this.mode===ze.DEFLATERAW?o.deflateEnd(this.strm):(this.mode===ze.INFLATE||this.mode===ze.GUNZIP||this.mode===ze.INFLATERAW||this.mode===ze.UNZIP)&&a.inflateEnd(this.strm),this.mode=ze.NONE,this.dictionary=null},d.prototype.write=function(y,v,_,h,w,S,T){return this._write(!0,y,v,_,h,w,S,T)},d.prototype.writeSync=function(y,v,_,h,w,S,T){return this._write(!1,y,v,_,h,w,S,T)},d.prototype._write=function(y,v,_,h,w,S,T,C){if(r.equal(arguments.length,8),r(this.init_done,"write before init"),r(this.mode!==ze.NONE,"already finalized"),r.equal(!1,this.write_in_progress,"write already in progress"),r.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,r.equal(!1,v===void 0,"must provide flush value"),this.write_in_progress=!0,v!==ze.Z_NO_FLUSH&&v!==ze.Z_PARTIAL_FLUSH&&v!==ze.Z_SYNC_FLUSH&&v!==ze.Z_FULL_FLUSH&&v!==ze.Z_FINISH&&v!==ze.Z_BLOCK)throw new Error("Invalid flush value");if(_==null&&(_=e.alloc(0),w=0,h=0),this.strm.avail_in=w,this.strm.input=_,this.strm.next_in=h,this.strm.avail_out=C,this.strm.output=S,this.strm.next_out=T,this.flush=v,!y)return this._process(),this._checkError()?this._afterSync():void 0;var M=this;return t.nextTick(function(){M._process(),M._after()}),this},d.prototype._afterSync=function(){var y=this.strm.avail_out,v=this.strm.avail_in;return this.write_in_progress=!1,[v,y]},d.prototype._process=function(){var y=null;switch(this.mode){case ze.DEFLATE:case ze.GZIP:case ze.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case ze.UNZIP:switch(this.strm.avail_in>0&&(y=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(y===null)break;if(this.strm.input[y]===l){if(this.gzip_id_bytes_read=1,y++,this.strm.avail_in===1)break}else{this.mode=ze.INFLATE;break}case 1:if(y===null)break;this.strm.input[y]===c?(this.gzip_id_bytes_read=2,this.mode=ze.GUNZIP):this.mode=ze.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case ze.INFLATE:case ze.GUNZIP:case ze.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===ze.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===ze.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===ze.Z_DATA_ERROR&&(this.err=ze.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===ze.GUNZIP&&this.err===ze.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},d.prototype._checkError=function(){switch(this.err){case ze.Z_OK:case ze.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===ze.Z_FINISH)return this._error("unexpected end of file"),!1;break;case ze.Z_STREAM_END:break;case ze.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},d.prototype._after=function(){if(this._checkError()){var y=this.strm.avail_out,v=this.strm.avail_in;this.write_in_progress=!1,this.callback(v,y),this.pending_close&&this.close()}},d.prototype._error=function(y){this.strm.msg&&(y=this.strm.msg),this.onerror(y,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},d.prototype.init=function(y,v,_,h,w){r(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),r(y>=8&&y<=15,"invalid windowBits"),r(v>=-1&&v<=9,"invalid compression level"),r(_>=1&&_<=9,"invalid memlevel"),r(h===ze.Z_FILTERED||h===ze.Z_HUFFMAN_ONLY||h===ze.Z_RLE||h===ze.Z_FIXED||h===ze.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(v,y,_,h,w),this._setDictionary()},d.prototype.params=function(){throw new Error("deflateParams Not supported")},d.prototype.reset=function(){this._reset(),this._setDictionary()},d.prototype._init=function(y,v,_,h,w){switch(this.level=y,this.windowBits=v,this.memLevel=_,this.strategy=h,this.flush=ze.Z_NO_FLUSH,this.err=ze.Z_OK,(this.mode===ze.GZIP||this.mode===ze.GUNZIP)&&(this.windowBits+=16),this.mode===ze.UNZIP&&(this.windowBits+=32),(this.mode===ze.DEFLATERAW||this.mode===ze.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new n,this.mode){case ze.DEFLATE:case ze.GZIP:case ze.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,ze.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case ze.INFLATE:case ze.GUNZIP:case ze.INFLATERAW:case ze.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==ze.Z_OK&&this._error("Init error"),this.dictionary=w,this.write_in_progress=!1,this.init_done=!0},d.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=ze.Z_OK,this.mode){case ze.DEFLATE:case ze.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==ze.Z_OK&&this._error("Failed to set dictionary")}},d.prototype._reset=function(){switch(this.err=ze.Z_OK,this.mode){case ze.DEFLATE:case ze.DEFLATERAW:case ze.GZIP:this.err=o.deflateReset(this.strm);break;case ze.INFLATE:case ze.INFLATERAW:case ze.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==ze.Z_OK&&this._error("Failed to reset stream")},ze.Zlib=d,ze}var Xe={},lb=!1;function QI(){if(lb)return Xe;lb=!0;var e=lt,t=Br.Buffer,r=ir.Transform,n=JI(),o=Oe,a=Qe.ok,i=Br.kMaxLength,f="Cannot create final Buffer. It would be larger than 0x"+i.toString(16)+" bytes";n.Z_MIN_WINDOWBITS=8,n.Z_MAX_WINDOWBITS=15,n.Z_DEFAULT_WINDOWBITS=15,n.Z_MIN_CHUNK=64,n.Z_MAX_CHUNK=1/0,n.Z_DEFAULT_CHUNK=16*1024,n.Z_MIN_MEMLEVEL=1,n.Z_MAX_MEMLEVEL=9,n.Z_DEFAULT_MEMLEVEL=8,n.Z_MIN_LEVEL=-1,n.Z_MAX_LEVEL=9,n.Z_DEFAULT_LEVEL=n.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(n),c=0;c<l.length;c++){var d=l[c];d.match(/^Z/)&&Object.defineProperty(Xe,d,{enumerable:!0,value:n[d],writable:!1})}for(var y={Z_OK:n.Z_OK,Z_STREAM_END:n.Z_STREAM_END,Z_NEED_DICT:n.Z_NEED_DICT,Z_ERRNO:n.Z_ERRNO,Z_STREAM_ERROR:n.Z_STREAM_ERROR,Z_DATA_ERROR:n.Z_DATA_ERROR,Z_MEM_ERROR:n.Z_MEM_ERROR,Z_BUF_ERROR:n.Z_BUF_ERROR,Z_VERSION_ERROR:n.Z_VERSION_ERROR},v=Object.keys(y),_=0;_<v.length;_++){var h=v[_];y[y[h]]=h}Object.defineProperty(Xe,"codes",{enumerable:!0,value:Object.freeze(y),writable:!1}),Xe.Deflate=T,Xe.Inflate=C,Xe.Gzip=M,Xe.Gunzip=D,Xe.DeflateRaw=V,Xe.InflateRaw=F,Xe.Unzip=N,Xe.createDeflate=function(K){return new T(K)},Xe.createInflate=function(K){return new C(K)},Xe.createDeflateRaw=function(K){return new V(K)},Xe.createInflateRaw=function(K){return new F(K)},Xe.createGzip=function(K){return new M(K)},Xe.createGunzip=function(K){return new D(K)},Xe.createUnzip=function(K){return new N(K)},Xe.deflate=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new T(re),K,ae)},Xe.deflateSync=function(K,re){return S(new T(re),K)},Xe.gzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new M(re),K,ae)},Xe.gzipSync=function(K,re){return S(new M(re),K)},Xe.deflateRaw=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new V(re),K,ae)},Xe.deflateRawSync=function(K,re){return S(new V(re),K)},Xe.unzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new N(re),K,ae)},Xe.unzipSync=function(K,re){return S(new N(re),K)},Xe.inflate=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new C(re),K,ae)},Xe.inflateSync=function(K,re){return S(new C(re),K)},Xe.gunzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new D(re),K,ae)},Xe.gunzipSync=function(K,re){return S(new D(re),K)},Xe.inflateRaw=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new F(re),K,ae)},Xe.inflateRawSync=function(K,re){return S(new F(re),K)};function w(K,re,ae){var Ce=[],Ne=0;K.on("error",te),K.on("end",ye),K.end(re),ne();function ne(){for(var me;(me=K.read())!==null;)Ce.push(me),Ne+=me.length;K.once("readable",ne)}function te(me){K.removeListener("end",ye),K.removeListener("readable",ne),ae(me)}function ye(){var me,Re=null;Ne>=i?Re=new RangeError(f):me=t.concat(Ce,Ne),Ce=[],K.close(),ae(Re,me)}}function S(K,re){if(typeof re=="string"&&(re=t.from(re)),!t.isBuffer(re))throw new TypeError("Not a string or buffer");var ae=K._finishFlushFlag;return K._processChunk(re,ae)}function T(K){if(!(this instanceof T))return new T(K);G.call(this,K,n.DEFLATE)}function C(K){if(!(this instanceof C))return new C(K);G.call(this,K,n.INFLATE)}function M(K){if(!(this instanceof M))return new M(K);G.call(this,K,n.GZIP)}function D(K){if(!(this instanceof D))return new D(K);G.call(this,K,n.GUNZIP)}function V(K){if(!(this instanceof V))return new V(K);G.call(this,K,n.DEFLATERAW)}function F(K){if(!(this instanceof F))return new F(K);G.call(this,K,n.INFLATERAW)}function N(K){if(!(this instanceof N))return new N(K);G.call(this,K,n.UNZIP)}function x(K){return K===n.Z_NO_FLUSH||K===n.Z_PARTIAL_FLUSH||K===n.Z_SYNC_FLUSH||K===n.Z_FULL_FLUSH||K===n.Z_FINISH||K===n.Z_BLOCK}function G(K,re){var ae=this;if(this._opts=K=K||{},this._chunkSize=K.chunkSize||Xe.Z_DEFAULT_CHUNK,r.call(this,K),K.flush&&!x(K.flush))throw new Error("Invalid flush flag: "+K.flush);if(K.finishFlush&&!x(K.finishFlush))throw new Error("Invalid flush flag: "+K.finishFlush);if(this._flushFlag=K.flush||n.Z_NO_FLUSH,this._finishFlushFlag=typeof K.finishFlush<"u"?K.finishFlush:n.Z_FINISH,K.chunkSize&&(K.chunkSize<Xe.Z_MIN_CHUNK||K.chunkSize>Xe.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+K.chunkSize);if(K.windowBits&&(K.windowBits<Xe.Z_MIN_WINDOWBITS||K.windowBits>Xe.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+K.windowBits);if(K.level&&(K.level<Xe.Z_MIN_LEVEL||K.level>Xe.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+K.level);if(K.memLevel&&(K.memLevel<Xe.Z_MIN_MEMLEVEL||K.memLevel>Xe.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+K.memLevel);if(K.strategy&&K.strategy!=Xe.Z_FILTERED&&K.strategy!=Xe.Z_HUFFMAN_ONLY&&K.strategy!=Xe.Z_RLE&&K.strategy!=Xe.Z_FIXED&&K.strategy!=Xe.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+K.strategy);if(K.dictionary&&!t.isBuffer(K.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new n.Zlib(re);var Ce=this;this._hadError=!1,this._handle.onerror=function(te,ye){Q(Ce),Ce._hadError=!0;var me=new Error(te);me.errno=ye,me.code=Xe.codes[ye],Ce.emit("error",me)};var Ne=Xe.Z_DEFAULT_COMPRESSION;typeof K.level=="number"&&(Ne=K.level);var ne=Xe.Z_DEFAULT_STRATEGY;typeof K.strategy=="number"&&(ne=K.strategy),this._handle.init(K.windowBits||Xe.Z_DEFAULT_WINDOWBITS,Ne,K.memLevel||Xe.Z_DEFAULT_MEMLEVEL,ne,K.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=Ne,this._strategy=ne,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!ae._handle},configurable:!0,enumerable:!0})}o.inherits(G,r),G.prototype.params=function(K,re,ae){if(K<Xe.Z_MIN_LEVEL||K>Xe.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+K);if(re!=Xe.Z_FILTERED&&re!=Xe.Z_HUFFMAN_ONLY&&re!=Xe.Z_RLE&&re!=Xe.Z_FIXED&&re!=Xe.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+re);if(this._level!==K||this._strategy!==re){var Ce=this;this.flush(n.Z_SYNC_FLUSH,function(){a(Ce._handle,"zlib binding closed"),Ce._handle.params(K,re),Ce._hadError||(Ce._level=K,Ce._strategy=re,ae&&ae())})}else e.nextTick(ae)},G.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},G.prototype._flush=function(K){this._transform(t.alloc(0),"",K)},G.prototype.flush=function(K,re){var ae=this,Ce=this._writableState;(typeof K=="function"||K===void 0&&!re)&&(re=K,K=n.Z_FULL_FLUSH),Ce.ended?re&&e.nextTick(re):Ce.ending?re&&this.once("end",re):Ce.needDrain?re&&this.once("drain",function(){return ae.flush(K,re)}):(this._flushFlag=K,this.write(t.alloc(0),"",re))},G.prototype.close=function(K){Q(this,K),e.nextTick(Te,this)};function Q(K,re){re&&e.nextTick(re),K._handle&&(K._handle.close(),K._handle=null)}function Te(K){K.emit("close")}return G.prototype._transform=function(K,re,ae){var Ce,Ne=this._writableState,ne=Ne.ending||Ne.ended,te=ne&&(!K||Ne.length===K.length);if(K!==null&&!t.isBuffer(K))return ae(new Error("invalid input"));if(!this._handle)return ae(new Error("zlib binding closed"));te?Ce=this._finishFlushFlag:(Ce=this._flushFlag,K.length>=Ne.length&&(this._flushFlag=this._opts.flush||n.Z_NO_FLUSH)),this._processChunk(K,Ce,ae)},G.prototype._processChunk=function(K,re,ae){var Ce=K&&K.length,Ne=this._chunkSize-this._offset,ne=0,te=this,ye=typeof ae=="function";if(!ye){var me=[],Re=0,qe;this.on("error",function(A){qe=A}),a(this._handle,"zlib binding closed");do var je=this._handle.writeSync(re,K,ne,Ce,this._buffer,this._offset,Ne);while(!this._hadError&&xe(je[0],je[1]));if(this._hadError)throw qe;if(Re>=i)throw Q(this),new RangeError(f);var Je=t.concat(me,Re);return Q(this),Je}a(this._handle,"zlib binding closed");var Ve=this._handle.write(re,K,ne,Ce,this._buffer,this._offset,Ne);Ve.buffer=K,Ve.callback=xe;function xe(A,O){if(this&&(this.buffer=null,this.callback=null),!te._hadError){var Y=Ne-O;if(a(Y>=0,"have should not go down"),Y>0){var fe=te._buffer.slice(te._offset,te._offset+Y);te._offset+=Y,ye?te.push(fe):(me.push(fe),Re+=fe.length)}if((O===0||te._offset>=te._chunkSize)&&(Ne=te._chunkSize,te._offset=0,te._buffer=t.allocUnsafe(te._chunkSize)),O===0){if(ne+=Ce-A,Ce=A,!ye)return!0;var ge=te._handle.write(re,K,ne,Ce,te._buffer,te._offset,te._chunkSize);ge.callback=xe,ge.buffer=K;return}if(!ye)return!1;ae()}}},o.inherits(T,G),o.inherits(C,G),o.inherits(M,G),o.inherits(D,G),o.inherits(V,G),o.inherits(F,G),o.inherits(N,G),Xe}var Pe=QI();Pe.codes;Pe.Deflate;Pe.Inflate;Pe.Gzip;Pe.Gunzip;Pe.DeflateRaw;Pe.InflateRaw;Pe.Unzip;Pe.createDeflate;Pe.createInflate;Pe.createDeflateRaw;Pe.createInflateRaw;Pe.createGzip;Pe.createGunzip;Pe.createUnzip;Pe.deflate;Pe.deflateSync;Pe.gzip;Pe.gzipSync;Pe.deflateRaw;Pe.deflateRawSync;Pe.unzip;Pe.unzipSync;Pe.inflate;Pe.inflateSync;Pe.gunzip;Pe.gunzipSync;Pe.inflateRaw;Pe.inflateRawSync;var BH=Pe.Deflate,CH=Pe.DeflateRaw,NH=Pe.Gunzip,LH=Pe.Gzip,kH=Pe.Inflate,FH=Pe.InflateRaw,PH=Pe.Unzip,UH=Pe.Z_BEST_COMPRESSION,DH=Pe.Z_BEST_SPEED,MH=Pe.Z_BINARY,jH=Pe.Z_BLOCK,$H=Pe.Z_BUF_ERROR,qH=Pe.Z_DATA_ERROR,zH=Pe.Z_DEFAULT_CHUNK,WH=Pe.Z_DEFAULT_COMPRESSION,HH=Pe.Z_DEFAULT_LEVEL,ZH=Pe.Z_DEFAULT_MEMLEVEL,VH=Pe.Z_DEFAULT_STRATEGY,GH=Pe.Z_DEFAULT_WINDOWBITS,YH=Pe.Z_DEFLATED,KH=Pe.Z_ERRNO,XH=Pe.Z_FILTERED,JH=Pe.Z_FINISH,QH=Pe.Z_FIXED,eZ=Pe.Z_FULL_FLUSH,tZ=Pe.Z_HUFFMAN_ONLY,rZ=Pe.Z_MAX_CHUNK,nZ=Pe.Z_MAX_LEVEL,iZ=Pe.Z_MAX_MEMLEVEL,oZ=Pe.Z_MAX_WINDOWBITS,aZ=Pe.Z_MIN_CHUNK,sZ=Pe.Z_MIN_LEVEL,uZ=Pe.Z_MIN_MEMLEVEL,fZ=Pe.Z_MIN_WINDOWBITS,lZ=Pe.Z_NEED_DICT,cZ=Pe.Z_NO_COMPRESSION,hZ=Pe.Z_NO_FLUSH,pZ=Pe.Z_OK,dZ=Pe.Z_PARTIAL_FLUSH,yZ=Pe.Z_RLE,gZ=Pe.Z_STREAM_END,mZ=Pe.Z_STREAM_ERROR,vZ=Pe.Z_SYNC_FLUSH,wZ=Pe.Z_TEXT,bZ=Pe.Z_TREES,_Z=Pe.Z_UNKNOWN,EZ=Pe.Zlib,SZ=Pe.codes,AZ=Pe.createDeflate,RZ=Pe.createDeflateRaw,TZ=Pe.createGunzip,pb=Pe.createGzip,OZ=Pe.createInflate,IZ=Pe.createInflateRaw,xZ=Pe.createUnzip,BZ=Pe.deflate,CZ=Pe.deflateRaw,NZ=Pe.deflateRawSync,LZ=Pe.deflateSync,kZ=Pe.gunzip,FZ=Pe.gunzipSync,PZ=Pe.gzip,UZ=Pe.gzipSync,DZ=Pe.inflate,MZ=Pe.inflateRaw,jZ=Pe.inflateRawSync,$Z=Pe.inflateSync,qZ=Pe.unzip,zZ=Pe.unzipSync;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var ex=/^xn--/,tx=/[^\0-\x7E]/,rx=/[\x2E\u3002\uFF0E\uFF61]/g,nx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Math.floor,ah=String.fromCharCode;function xi(e){throw new RangeError(nx[e])}function db(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);let o=function(a,i){let f=[],l=a.length;for(;l--;)f[l]=i(a[l]);return f}((e=e.replace(rx,".")).split("."),t).join(".");return n+o}function vb(e){let t=[],r=0,n=e.length;for(;r<n;){let o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){let a=e.charCodeAt(r++);(64512&a)==56320?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var yb=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},wb=function(e,t,r){let n=0;for(e=r?fn(e/700):e>>1,e+=fn(e/t);e>455;n+=36)e=fn(e/35);return fn(n+36*e/(e+38))},gb=function(e){let t=[],r=e.length,n=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let l=0;l<i;++l)e.charCodeAt(l)>=128&&xi("not-basic"),t.push(e.charCodeAt(l));for(let l=i>0?i+1:0;l<r;){let c=n;for(let y=1,v=36;;v+=36){l>=r&&xi("invalid-input");let _=(f=e.charCodeAt(l++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36;(_>=36||_>fn((2147483647-n)/y))&&xi("overflow"),n+=_*y;let h=v<=a?1:v>=a+26?26:v-a;if(_<h)break;let w=36-h;y>fn(2147483647/w)&&xi("overflow"),y*=w}let d=t.length+1;a=wb(n-c,d,c==0),fn(n/d)>2147483647-o&&xi("overflow"),o+=fn(n/d),n%=d,t.splice(n++,0,o)}var f;return String.fromCodePoint(...t)},mb=function(e){let t=[],r=(e=vb(e)).length,n=128,o=0,a=72;for(let l of e)l<128&&t.push(ah(l));let i=t.length,f=i;for(i&&t.push("-");f<r;){let l=2147483647;for(let d of e)d>=n&&d<l&&(l=d);let c=f+1;l-n>fn((2147483647-o)/c)&&xi("overflow"),o+=(l-n)*c,n=l;for(let d of e)if(d<n&&++o>2147483647&&xi("overflow"),d==n){let y=o;for(let v=36;;v+=36){let _=v<=a?1:v>=a+26?26:v-a;if(y<_)break;let h=y-_,w=36-_;t.push(ah(yb(_+h%w,0))),y=fn(h/w)}t.push(ah(yb(y,0))),a=wb(o,c,f==i),o=0,++f}++o,++n}return t.join("")},Xn={version:"2.1.0",ucs2:{decode:vb,encode:e=>String.fromCodePoint(...e)},decode:gb,encode:mb,toASCII:function(e){return db(e,function(t){return tx.test(t)?"xn--"+mb(t):t})},toUnicode:function(e){return db(e,function(t){return ex.test(t)?gb(t.slice(4).toLowerCase()):t})}};Xn.decode;Xn.encode;Xn.toASCII;Xn.toUnicode;Xn.ucs2;Xn.version;$();q();z();H();W();function ix(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ox=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if(typeof e!="string"||e.length===0)return o;var a=/\+/g;e=e.split(t);var i=1e3;n&&typeof n.maxKeys=="number"&&(i=n.maxKeys);var f=e.length;i>0&&f>i&&(f=i);for(var l=0;l<f;++l){var c,d,y,v,_=e[l].replace(a,"%20"),h=_.indexOf(r);h>=0?(c=_.substr(0,h),d=_.substr(h+1)):(c=_,d=""),y=decodeURIComponent(c),v=decodeURIComponent(d),ix(o,y)?Array.isArray(o[y])?o[y].push(v):o[y]=[o[y],v]:o[y]=v}return o},ba=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},ax=function(e,t,r,n){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var a=encodeURIComponent(ba(o))+r;return Array.isArray(e[o])?e[o].map(function(i){return a+encodeURIComponent(ba(i))}).join(t):a+encodeURIComponent(ba(e[o]))}).join(t):n?encodeURIComponent(ba(n))+r+encodeURIComponent(ba(e)):""},ln={};ln.decode=ln.parse=ox,ln.encode=ln.stringify=ax;ln.decode;ln.encode;ln.parse;ln.stringify;var St={},sx=Xn,cn={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}};function Lr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}St.parse=_a,St.resolve=function(e,t){return _a(e,!1,!0).resolve(t)},St.resolveObject=function(e,t){return e?_a(e,!1,!0).resolveObject(t):t},St.format=function(e){return cn.isString(e)&&(e=_a(e)),e instanceof Lr?e.format():Lr.prototype.format.call(e)},St.Url=Lr;var ux=/^([a-z0-9.+-]+:)/i,fx=/:[0-9]*$/,lx=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,cx=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
`," "]),lh=["'"].concat(cx),bb=["%","/","?",";","#"].concat(lh),_b=["/","?","#"],Eb=/^[+a-z0-9A-Z_-]{0,63}$/,hx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,px={javascript:!0,"javascript:":!0},sh={javascript:!0,"javascript:":!0},wo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},uh=ln;function _a(e,t,r){if(e&&cn.isObject(e)&&e instanceof Lr)return e;var n=new Lr;return n.parse(e,t,r),n}Lr.prototype.parse=function(e,t,r){if(!cn.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=n!==-1&&n<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!r&&e.split("#").length===1){var f=lx.exec(i);if(f)return this.path=i,this.href=i,this.pathname=f[1],f[2]?(this.search=f[2],this.query=t?uh.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=ux.exec(i);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,i=i.substr(l.length)}if(r||l||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var d=i.substr(0,2)==="//";!d||l&&sh[l]||(i=i.substr(2),this.slashes=!0)}if(!sh[l]&&(d||l&&!wo[l])){for(var y,v,_=-1,h=0;h<_b.length;h++)(w=i.indexOf(_b[h]))!==-1&&(_===-1||w<_)&&(_=w);for((v=_===-1?i.lastIndexOf("@"):i.lastIndexOf("@",_))!==-1&&(y=i.slice(0,v),i=i.slice(v+1),this.auth=decodeURIComponent(y)),_=-1,h=0;h<bb.length;h++){var w;(w=i.indexOf(bb[h]))!==-1&&(_===-1||w<_)&&(_=w)}_===-1&&(_=i.length),this.host=i.slice(0,_),i=i.slice(_),this.parseHost(),this.hostname=this.hostname||"";var S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S)for(var T=this.hostname.split(/\./),C=(h=0,T.length);h<C;h++){var M=T[h];if(M&&!M.match(Eb)){for(var D="",V=0,F=M.length;V<F;V++)M.charCodeAt(V)>127?D+="x":D+=M[V];if(!D.match(Eb)){var N=T.slice(0,h),x=T.slice(h+1),G=M.match(hx);G&&(N.push(G[1]),x.unshift(G[2])),x.length&&(i="/"+x.join(".")+i),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=sx.toASCII(this.hostname));var Q=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+Q,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),i[0]!=="/"&&(i="/"+i))}if(!px[c])for(h=0,C=lh.length;h<C;h++){var K=lh[h];if(i.indexOf(K)!==-1){var re=encodeURIComponent(K);re===K&&(re=escape(K)),i=i.split(K).join(re)}}var ae=i.indexOf("#");ae!==-1&&(this.hash=i.substr(ae),i=i.slice(0,ae));var Ce=i.indexOf("?");if(Ce!==-1?(this.search=i.substr(Ce),this.query=i.substr(Ce+1),t&&(this.query=uh.parse(this.query)),i=i.slice(0,Ce)):t&&(this.search="",this.query={}),i&&(this.pathname=i),wo[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Q=this.pathname||"";var Ne=this.search||"";this.path=Q+Ne}return this.href=this.format(),this},Lr.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&cn.isObject(this.query)&&Object.keys(this.query).length&&(a=uh.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||wo[t])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),i&&i.charAt(0)!=="?"&&(i="?"+i),t+o+(r=r.replace(/[?#]/g,function(f){return encodeURIComponent(f)}))+(i=i.replace("#","%23"))+n},Lr.prototype.resolve=function(e){return this.resolveObject(_a(e,!1,!0)).format()},Lr.prototype.resolveObject=function(e){if(cn.isString(e)){var t=new Lr;t.parse(e,!1,!0),e=t}for(var r=new Lr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),f=0;f<i.length;f++){var l=i[f];l!=="protocol"&&(r[l]=e[l])}return wo[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!wo[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var y=c[d];r[y]=e[y]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||sh[e.protocol])r.pathname=e.pathname;else{for(var v=(e.pathname||"").split("/");v.length&&!(e.host=v.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),v[0]!==""&&v.unshift(""),v.length<2&&v.unshift(""),r.pathname=v.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var _=r.pathname||"",h=r.search||"";r.path=_+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",S=e.host||e.pathname&&e.pathname.charAt(0)==="/",T=S||w||r.host&&e.pathname,C=T,M=r.pathname&&r.pathname.split("/")||[],D=(v=e.pathname&&e.pathname.split("/")||[],r.protocol&&!wo[r.protocol]);if(D&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(v[0]===""?v[0]=e.host:v.unshift(e.host)),e.host=null),T=T&&(v[0]===""||M[0]==="")),S)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,M=v;else if(v.length)M||(M=[]),M.pop(),M=M.concat(v),r.search=e.search,r.query=e.query;else if(!cn.isNullOrUndefined(e.search))return D&&(r.hostname=r.host=M.shift(),(G=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=G.shift(),r.host=r.hostname=G.shift())),r.search=e.search,r.query=e.query,cn.isNull(r.pathname)&&cn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],F=(r.host||e.host||M.length>1)&&(V==="."||V==="..")||V==="",N=0,x=M.length;x>=0;x--)(V=M[x])==="."?M.splice(x,1):V===".."?(M.splice(x,1),N++):N&&(M.splice(x,1),N--);if(!T&&!C)for(;N--;N)M.unshift("..");!T||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),F&&M.join("/").substr(-1)!=="/"&&M.push("");var G,Q=M[0]===""||M[0]&&M[0].charAt(0)==="/";return D&&(r.hostname=r.host=Q?"":M.length?M.shift():"",(G=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=G.shift(),r.host=r.hostname=G.shift())),(T=T||r.host&&M.length)&&!Q&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),cn.isNull(r.pathname)&&cn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Lr.prototype.parseHost=function(){var e=this.host,t=fx.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};St.Url;St.format;St.resolve;St.resolveObject;var fh={},Sb=!1;function dx(){if(Sb)return fh;Sb=!0;var e=Et;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l===void 0&&(l=e.cwd()),d=l),t(d),d.length!==0&&(i=d+"/"+i,f=d.charCodeAt(0)===47)}return i=r(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=r(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f<arguments.length;++f){var l=arguments[f];t(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":o.normalize(i)},relative:function(i,f){if(t(i),t(f),i===f||(i=o.resolve(i),f=o.resolve(f),i===f))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var c=i.length,d=c-l,y=1;y<f.length&&f.charCodeAt(y)===47;++y);for(var v=f.length,_=v-y,h=d<_?d:_,w=-1,S=0;S<=h;++S){if(S===h){if(_>h){if(f.charCodeAt(y+S)===47)return f.slice(y+S+1);if(S===0)return f.slice(y+S)}else d>h&&(i.charCodeAt(l+S)===47?w=S:S===0&&(w=0));break}var T=i.charCodeAt(l+S),C=f.charCodeAt(y+S);if(T!==C)break;T===47&&(w=S)}var M="";for(S=l+w+1;S<=c;++S)(S===c||i.charCodeAt(S)===47)&&(M.length===0?M+="..":M+="/..");return M.length>0?M+f.slice(y+w):(y+=w,f.charCodeAt(y)===47&&++y,f.slice(y))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,d=!0,y=i.length-1;y>=1;--y)if(f=i.charCodeAt(y),f===47){if(!d){c=y;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');t(i);var l=0,c=-1,d=!0,y;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var v=f.length-1,_=-1;for(y=i.length-1;y>=0;--y){var h=i.charCodeAt(y);if(h===47){if(!d){l=y+1;break}}else _===-1&&(d=!1,_=y+1),v>=0&&(h===f.charCodeAt(v)?--v===-1&&(c=y):(v=-1,c=_))}return l===c?c=_:c===-1&&(c=i.length),i.slice(l,c)}else{for(y=i.length-1;y>=0;--y)if(i.charCodeAt(y)===47){if(!d){l=y+1;break}}else c===-1&&(d=!1,c=y+1);return c===-1?"":i.slice(l,c)}},extname:function(i){t(i);for(var f=-1,l=0,c=-1,d=!0,y=0,v=i.length-1;v>=0;--v){var _=i.charCodeAt(v);if(_===47){if(!d){l=v+1;break}continue}c===-1&&(d=!1,c=v+1),_===46?f===-1?f=v:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){t(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,d;c?(f.root="/",d=1):d=0;for(var y=-1,v=0,_=-1,h=!0,w=i.length-1,S=0;w>=d;--w){if(l=i.charCodeAt(w),l===47){if(!h){v=w+1;break}continue}_===-1&&(h=!1,_=w+1),l===46?y===-1?y=w:S!==1&&(S=1):y!==-1&&(S=-1)}return y===-1||_===-1||S===0||S===1&&y===_-1&&y===v+1?_!==-1&&(v===0&&c?f.base=f.name=i.slice(1,_):f.base=f.name=i.slice(v,_)):(v===0&&c?(f.name=i.slice(1,y),f.base=i.slice(1,_)):(f.name=i.slice(v,y),f.base=i.slice(v,_)),f.ext=i.slice(y,_)),v>0?f.dir=i.slice(0,v-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,fh=o,fh}var Ab=dx(),yx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=xx;St.fileURLToPath=Tx;St.Url;St.format;St.resolve;St.resolveObject;St.URL;var gx=92,mx=47,vx=97,wx=122,ch=yx==="win32",bx=/\//g,_x=/%/g,Ex=/\\/g,Sx=/\n/g,Ax=/\r/g,Rx=/\t/g;function Tx(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return ch?Ox(e):Ix(e)}function Ox(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(bx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<vx||n>wx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function Ix(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function xx(e){let t=Ab.resolve(e),r=e.charCodeAt(e.length-1);(r===mx||ch&&r===gx)&&t[t.length-1]!==Ab.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(_x,"%25")),!ch&&t.includes("\\")&&(t=t.replace(Ex,"%5C")),t.includes(`
|
|
`)&&(t=t.replace(Sx,"%0A")),t.includes("\r")&&(t=t.replace(Ax,"%0D")),t.includes(" ")&&(t=t.replace(Rx,"%09")),n.pathname=t,n}var Bx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=zx;St.fileURLToPath=ph;var pV=St.Url,dV=St.format,yV=St.resolve,gV=St.resolveObject,mV=St.parse,vV=St.URL,Cx=92,Nx=47,Lx=97,kx=122,hh=Bx==="win32",Fx=/\//g,Px=/%/g,Ux=/\\/g,Dx=/\n/g,Mx=/\r/g,jx=/\t/g;function ph(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return hh?$x(e):qx(e)}function $x(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(Fx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Lx||n>kx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function qx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function zx(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===Nx||hh&&r===Cx)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(Px,"%25")),!hh&&t.includes("\\")&&(t=t.replace(Ux,"%5C")),t.includes(`
|
|
`)&&(t=t.replace(Dx,"%0A")),t.includes("\r")&&(t=t.replace(Mx,"%0D")),t.includes(" ")&&(t=t.replace(jx,"%09")),n.pathname=t,n}Fa();var Ea={},Rb=!1;function Aa(){return Rb||(Rb=!0,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.constants=void 0,Ea.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}),Ea}var Eu={},Tb=!1;function Wx(){return Tb||(Tb=!0,typeof BigInt=="function"?Eu.default=BigInt:Eu.default=function(){throw new Error("BigInt is not supported in this environment.")}),Eu}var bo={},Ob=!1;function dh(){if(Ob)return bo;Ob=!0,Object.defineProperty(bo,"__esModule",{value:!0}),bo.Stats=void 0;var e=Aa(),t=Wx(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){}return y.build=function(v,_){_===void 0&&(_=!1);var h=new y,w=v.uid,S=v.gid,T=v.atime,C=v.mtime,M=v.ctime,D=_?t.default:function(F){return F};h.uid=D(w),h.gid=D(S),h.rdev=D(0),h.blksize=D(4096),h.ino=D(v.ino),h.size=D(v.getSize()),h.blocks=D(1),h.atime=T,h.mtime=C,h.ctime=M,h.birthtime=M,h.atimeMs=D(T.getTime()),h.mtimeMs=D(C.getTime());var V=D(M.getTime());return h.ctimeMs=V,h.birthtimeMs=V,h.dev=D(0),h.mode=D(v.mode),h.nlink=D(v.nlink),h},y.prototype._checkModeProperty=function(v){return(Number(this.mode)&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return bo.Stats=d,bo.default=d,bo}var Gr={},Ib=!1;function yh(){if(Ib)return Gr;Ib=!0;var e=Gr&&Gr.__spreadArray||function(a,i,f){if(f||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return a.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.bufferFrom=Gr.bufferAllocUnsafe=Gr.Buffer=void 0;var t=Br;Object.defineProperty(Gr,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(a){for(var i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,a],i,!1)))}var n=t.Buffer.allocUnsafe||r;Gr.bufferAllocUnsafe=n;var o=t.Buffer.from||r;return Gr.bufferFrom=o,Gr}var zt={},xb=!1,Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(xb)return zt;xb=!0;var e=zt&&zt.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(zt,"__esModule",{value:!0}),zt.E=zt.AssertionError=zt.message=zt.RangeError=zt.TypeError=zt.Error=void 0;var t=Qe,r=Oe,n=typeof Symbol>"u"?"_kCode":Symbol("code"),o={};function a(h){return function(w){e(S,w);function S(T){for(var C=[],M=1;M<arguments.length;M++)C[M-1]=arguments[M];var D=w.call(this,l(T,C))||this;return D.code=T,D[n]=T,D.name=w.prototype.name+" ["+D[n]+"]",D}return S}(h)}var i=typeof globalThis<"u"?globalThis:Hx,f=function(h){e(w,h);function w(S){var T=this;if(typeof S!="object"||S===null)throw new zt.TypeError("ERR_INVALID_ARG_TYPE","options","object");return S.message?T=h.call(this,S.message)||this:T=h.call(this,r.inspect(S.actual).slice(0,128)+" "+(S.operator+" "+r.inspect(S.expected).slice(0,128)))||this,T.generatedMessage=!S.message,T.name="AssertionError [ERR_ASSERTION]",T.code="ERR_ASSERTION",T.actual=S.actual,T.expected=S.expected,T.operator=S.operator,zt.Error.captureStackTrace(T,S.stackStartFunction),T}return w}(i.Error);zt.AssertionError=f;function l(h,w){t.strictEqual(typeof h,"string");var S=o[h];t(S,"An invalid error message key was used: "+h+".");var T;if(typeof S=="function")T=S;else{if(T=r.format,w===void 0||w.length===0)return S;w.unshift(S)}return String(T.apply(null,w))}zt.message=l;function c(h,w){o[h]=typeof w=="function"?w:String(w)}zt.E=c,zt.Error=a(i.Error),zt.TypeError=a(i.TypeError),zt.RangeError=a(i.RangeError),c("ERR_ARG_NOT_ITERABLE","%s must be iterable"),c("ERR_ASSERTION","%s"),c("ERR_BUFFER_OUT_OF_BOUNDS",_),c("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),c("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),c("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),c("ERR_DNS_SET_SERVERS_FAILED",function(h,w){return'c-ares failed to set servers: "'+h+'" ['+w+"]"}),c("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),c("ERR_ENCODING_NOT_SUPPORTED",function(h){return'The "'+h+'" encoding is not supported'}),c("ERR_ENCODING_INVALID_ENCODED_DATA",function(h){return"The encoded data was not valid for encoding "+h}),c("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),c("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),c("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),c("ERR_INDEX_OUT_OF_RANGE","Index out of range"),c("ERR_INVALID_ARG_TYPE",d),c("ERR_INVALID_ARRAY_LENGTH",function(h,w,S){return t.strictEqual(typeof S,"number"),'The array "'+h+'" (length '+S+") must be of length "+w+"."}),c("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),c("ERR_INVALID_CALLBACK","Callback must be a function"),c("ERR_INVALID_CHAR","Invalid character in %s"),c("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),c("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),c("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),c("ERR_INVALID_FILE_URL_PATH","File URL path %s"),c("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),c("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),c("ERR_INVALID_OPT_VALUE",function(h,w){return'The value "'+String(w)+'" is invalid for option "'+h+'"'}),c("ERR_INVALID_OPT_VALUE_ENCODING",function(h){return'The value "'+String(h)+'" is invalid for option "encoding"'}),c("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),c("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),c("ERR_INVALID_THIS",'Value of "this" must be of type %s'),c("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),c("ERR_INVALID_URL","Invalid URL: %s"),c("ERR_INVALID_URL_SCHEME",function(h){return"The URL must be "+v(h,"scheme")}),c("ERR_IPC_CHANNEL_CLOSED","Channel closed"),c("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),c("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),c("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),c("ERR_MISSING_ARGS",y),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),c("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),c("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),c("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),c("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),c("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),c("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),c("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),c("ERR_SOCKET_CANNOT_SEND","Unable to send data"),c("ERR_SOCKET_CLOSED","Socket is closed"),c("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),c("ERR_STDERR_CLOSE","process.stderr cannot be closed"),c("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),c("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),c("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),c("ERR_TLS_DH_PARAM_SIZE",function(h){return"DH parameter size "+h+" is less than 2048"}),c("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),c("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),c("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),c("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),c("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),c("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),c("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),c("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),c("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),c("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),c("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl");function d(h,w,S){t(h,"name is required");var T;w.includes("not ")?(T="must not be",w=w.split("not ")[1]):T="must be";var C;if(Array.isArray(h)){var M=h.map(function(V){return'"'+V+'"'}).join(", ");C="The "+M+" arguments "+T+" "+v(w,"type")}else if(h.includes(" argument"))C="The "+h+" "+T+" "+v(w,"type");else{var D=h.includes(".")?"property":"argument";C='The "'+h+'" '+D+" "+T+" "+v(w,"type")}return arguments.length>=3&&(C+=". Received type "+(S!==null?typeof S:"null")),C}function y(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];t(h.length>0,"At least one arg needs to be specified");var S="The ",T=h.length;switch(h=h.map(function(C){return'"'+C+'"'}),T){case 1:S+=h[0]+" argument";break;case 2:S+=h[0]+" and "+h[1]+" arguments";break;default:S+=h.slice(0,T-1).join(", "),S+=", and "+h[T-1]+" arguments";break}return S+" must be specified"}function v(h,w){if(t(h,"expected is required"),t(typeof w=="string","thing is required"),Array.isArray(h)){var S=h.length;return t(S>0,"At least one expected value needs to be specified"),h=h.map(function(T){return String(T)}),S>2?"one of "+w+" "+h.slice(0,S-1).join(", ")+", or "+h[S-1]:S===2?"one of "+w+" "+h[0]+" or "+h[1]:"of "+w+" "+h[0]}else return"of "+w+" "+String(h)}function _(h,w){return w?"Attempt to write outside buffer bounds":'"'+h+'" is outside of buffer bounds'}return zt}var hn={},Bb=!1;function zb(){if(Bb)return hn;Bb=!0,Object.defineProperty(hn,"__esModule",{value:!0}),hn.strToEncoding=hn.assertEncoding=hn.ENCODING_UTF8=void 0;var e=yh(),t=qb();hn.ENCODING_UTF8="utf8";function r(o){if(o&&!e.Buffer.isEncoding(o))throw new t.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",o)}hn.assertEncoding=r;function n(o,a){return!a||a===hn.ENCODING_UTF8?o:a==="buffer"?new e.Buffer(o):new e.Buffer(o).toString(a)}return hn.strToEncoding=n,hn}var _o={},Cb=!1;function Wb(){if(Cb)return _o;Cb=!0,Object.defineProperty(_o,"__esModule",{value:!0}),_o.Dirent=void 0;var e=Aa(),t=zb(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){this.name="",this.mode=0}return y.build=function(v,_){var h=new y,w=v.getNode().mode;return h.name=(0,t.strToEncoding)(v.getName(),_),h.mode=w,h},y.prototype._checkModeProperty=function(v){return(this.mode&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return _o.Dirent=d,_o.default=d,_o}var Su={},Nb=!1,Lb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Hb(){if(Nb)return Su;Nb=!0;var e=lt;Object.defineProperty(Su,"__esModule",{value:!0});var t;return typeof e.nextTick=="function"?t=e.nextTick.bind(typeof globalThis<"u"?globalThis:Lb):t=setTimeout.bind(typeof globalThis<"u"?globalThis:Lb),Su.default=t,Su}var Eo={},kb=!1;function Zb(){if(kb)return Eo;kb=!0;var e=lt;Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.createProcess=void 0;var t=function(){if(typeof e<"u")return e;try{return lt}catch{return}};function r(){var n=t()||{};return n.getuid||(n.getuid=function(){return 0}),n.getgid||(n.getgid=function(){return 0}),n.cwd||(n.cwd=function(){return"/"}),n.nextTick||(n.nextTick=Hb().default),n.emitWarning||(n.emitWarning=function(o,a){console.warn(""+a+(a?": ":"")+o)}),n.env||(n.env={}),n}return Eo.createProcess=r,Eo.default=r(),Eo}var yr={},Fb=!1;function Zx(){if(Fb)return yr;Fb=!0;var e=yr&&yr.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(yr,"__esModule",{value:!0}),yr.File=yr.Link=yr.Node=yr.SEP=void 0;var t=Zb(),r=yh(),n=Aa(),o=Ft,a=dh(),i=n.constants.S_IFMT,f=n.constants.S_IFDIR,l=n.constants.S_IFREG,c=n.constants.S_IFLNK,d=n.constants.O_APPEND;yr.SEP="/";var y=function(h){e(w,h);function w(S,T){T===void 0&&(T=438);var C=h.call(this)||this;return C.uid=t.default.getuid(),C.gid=t.default.getgid(),C.atime=new Date,C.mtime=new Date,C.ctime=new Date,C.perm=438,C.mode=l,C.nlink=1,C.perm=T,C.mode|=T,C.ino=S,C}return w.prototype.getString=function(S){return S===void 0&&(S="utf8"),this.getBuffer().toString(S)},w.prototype.setString=function(S){this.buf=(0,r.bufferFrom)(S,"utf8"),this.touch()},w.prototype.getBuffer=function(){return this.buf||this.setBuffer((0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf)},w.prototype.setBuffer=function(S){this.buf=(0,r.bufferFrom)(S),this.touch()},w.prototype.getSize=function(){return this.buf?this.buf.length:0},w.prototype.setModeProperty=function(S){this.mode=this.mode&~i|S},w.prototype.setIsFile=function(){this.setModeProperty(l)},w.prototype.setIsDirectory=function(){this.setModeProperty(f)},w.prototype.setIsSymlink=function(){this.setModeProperty(c)},w.prototype.isFile=function(){return(this.mode&i)===l},w.prototype.isDirectory=function(){return(this.mode&i)===f},w.prototype.isSymlink=function(){return(this.mode&i)===c},w.prototype.makeSymlink=function(S){this.symlink=S,this.setIsSymlink()},w.prototype.write=function(S,T,C,M){if(T===void 0&&(T=0),C===void 0&&(C=S.length),M===void 0&&(M=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),M+C>this.buf.length){var D=(0,r.bufferAllocUnsafe)(M+C);this.buf.copy(D,0,0,this.buf.length),this.buf=D}return S.copy(this.buf,M,T,T+C),this.touch(),C},w.prototype.read=function(S,T,C,M){T===void 0&&(T=0),C===void 0&&(C=S.byteLength),M===void 0&&(M=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0));var D=C;return D>S.byteLength&&(D=S.byteLength),D+M>this.buf.length&&(D=this.buf.length-M),this.buf.copy(S,T,M,M+D),D},w.prototype.truncate=function(S){if(S===void 0&&(S=0),!S)this.buf=(0,r.bufferAllocUnsafe)(0);else if(this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),S<=this.buf.length)this.buf=this.buf.slice(0,S);else{var T=(0,r.bufferAllocUnsafe)(0);this.buf.copy(T),T.fill(0,S)}this.touch()},w.prototype.chmod=function(S){this.perm=S,this.mode=this.mode&-512|S,this.touch()},w.prototype.chown=function(S,T){this.uid=S,this.gid=T,this.touch()},w.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},w.prototype.canRead=function(S,T){return S===void 0&&(S=t.default.getuid()),T===void 0&&(T=t.default.getgid()),!!(this.perm&4||T===this.gid&&this.perm&32||S===this.uid&&this.perm&256)},w.prototype.canWrite=function(S,T){return S===void 0&&(S=t.default.getuid()),T===void 0&&(T=t.default.getgid()),!!(this.perm&2||T===this.gid&&this.perm&16||S===this.uid&&this.perm&128)},w.prototype.del=function(){this.emit("delete",this)},w.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},w}(o.EventEmitter);yr.Node=y;var v=function(h){e(w,h);function w(S,T,C){var M=h.call(this)||this;return M.children={},M.steps=[],M.ino=0,M.length=0,M.vol=S,M.parent=T,M.steps=T?T.steps.concat([C]):[C],M}return w.prototype.setNode=function(S){this.node=S,this.ino=S.ino},w.prototype.getNode=function(){return this.node},w.prototype.createChild=function(S,T){T===void 0&&(T=this.vol.createNode());var C=new w(this.vol,this,S);return C.setNode(T),T.isDirectory(),this.setChild(S,C),C},w.prototype.setChild=function(S,T){return T===void 0&&(T=new w(this.vol,this,S)),this.children[S]=T,T.parent=this,this.length++,this.emit("child:add",T,this),T},w.prototype.deleteChild=function(S){delete this.children[S.getName()],this.length--,this.emit("child:delete",S,this)},w.prototype.getChild=function(S){if(Object.hasOwnProperty.call(this.children,S))return this.children[S]},w.prototype.getPath=function(){return this.steps.join(yr.SEP)},w.prototype.getName=function(){return this.steps[this.steps.length-1]},w.prototype.walk=function(S,T,C){if(T===void 0&&(T=S.length),C===void 0&&(C=0),C>=S.length)return this;if(C>=T)return this;var M=S[C],D=this.getChild(M);return D?D.walk(S,T,C+1):null},w.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},w}(o.EventEmitter);yr.Link=v;var _=function(){function h(w,S,T,C){this.position=0,this.link=w,this.node=S,this.flags=T,this.fd=C}return h.prototype.getString=function(w){return this.node.getString()},h.prototype.setString=function(w){this.node.setString(w)},h.prototype.getBuffer=function(){return this.node.getBuffer()},h.prototype.setBuffer=function(w){this.node.setBuffer(w)},h.prototype.getSize=function(){return this.node.getSize()},h.prototype.truncate=function(w){this.node.truncate(w)},h.prototype.seekTo=function(w){this.position=w},h.prototype.stats=function(){return a.default.build(this.node)},h.prototype.write=function(w,S,T,C){S===void 0&&(S=0),T===void 0&&(T=w.length),typeof C!="number"&&(C=this.position),this.flags&d&&(C=this.getSize());var M=this.node.write(w,S,T,C);return this.position=C+M,M},h.prototype.read=function(w,S,T,C){S===void 0&&(S=0),T===void 0&&(T=w.byteLength),typeof C!="number"&&(C=this.position);var M=this.node.read(w,S,T,C);return this.position=C+M,M},h.prototype.chmod=function(w){this.node.chmod(w)},h.prototype.chown=function(w,S){this.node.chown(w,S)},h}();return yr.File=_,yr}var Au={},Pb=!1,Vx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Gx(){if(Pb)return Au;Pb=!0,Object.defineProperty(Au,"__esModule",{value:!0});function e(t,r,n){var o=setTimeout.apply(typeof globalThis<"u"?globalThis:Vx,arguments);return o&&typeof o=="object"&&typeof o.unref=="function"&&o.unref(),o}return Au.default=e,Au}var Jn={},Ub=!1;function Yx(){if(Ub)return Jn;Ub=!0;var e=Jn&&Jn.__spreadArray||function(o,a,i){if(i||arguments.length===2)for(var f=0,l=a.length,c;f<l;f++)(c||!(f in a))&&(c||(c=Array.prototype.slice.call(a,0,f)),c[f]=a[f]);return o.concat(c||Array.prototype.slice.call(a))};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.FileHandle=void 0;function t(o,a,i){return i===void 0&&(i=function(f){return f}),function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];return new Promise(function(c,d){o[a].bind(o).apply(void 0,e(e([],f,!1),[function(y,v){return y?d(y):c(i(v))}],!1))})}}var r=function(){function o(a,i){this.vol=a,this.fd=i}return o.prototype.appendFile=function(a,i){return t(this.vol,"appendFile")(this.fd,a,i)},o.prototype.chmod=function(a){return t(this.vol,"fchmod")(this.fd,a)},o.prototype.chown=function(a,i){return t(this.vol,"fchown")(this.fd,a,i)},o.prototype.close=function(){return t(this.vol,"close")(this.fd)},o.prototype.datasync=function(){return t(this.vol,"fdatasync")(this.fd)},o.prototype.read=function(a,i,f,l){return t(this.vol,"read",function(c){return{bytesRead:c,buffer:a}})(this.fd,a,i,f,l)},o.prototype.readFile=function(a){return t(this.vol,"readFile")(this.fd,a)},o.prototype.stat=function(a){return t(this.vol,"fstat")(this.fd,a)},o.prototype.sync=function(){return t(this.vol,"fsync")(this.fd)},o.prototype.truncate=function(a){return t(this.vol,"ftruncate")(this.fd,a)},o.prototype.utimes=function(a,i){return t(this.vol,"futimes")(this.fd,a,i)},o.prototype.write=function(a,i,f,l){return t(this.vol,"write",function(c){return{bytesWritten:c,buffer:a}})(this.fd,a,i,f,l)},o.prototype.writeFile=function(a,i){return t(this.vol,"writeFile")(this.fd,a,i)},o}();Jn.FileHandle=r;function n(o){return typeof Promise>"u"?null:{FileHandle:r,access:function(a,i){return t(o,"access")(a,i)},appendFile:function(a,i,f){return t(o,"appendFile")(a instanceof r?a.fd:a,i,f)},chmod:function(a,i){return t(o,"chmod")(a,i)},chown:function(a,i,f){return t(o,"chown")(a,i,f)},copyFile:function(a,i,f){return t(o,"copyFile")(a,i,f)},lchmod:function(a,i){return t(o,"lchmod")(a,i)},lchown:function(a,i,f){return t(o,"lchown")(a,i,f)},link:function(a,i){return t(o,"link")(a,i)},lstat:function(a,i){return t(o,"lstat")(a,i)},mkdir:function(a,i){return t(o,"mkdir")(a,i)},mkdtemp:function(a,i){return t(o,"mkdtemp")(a,i)},open:function(a,i,f){return t(o,"open",function(l){return new r(o,l)})(a,i,f)},readdir:function(a,i){return t(o,"readdir")(a,i)},readFile:function(a,i){return t(o,"readFile")(a instanceof r?a.fd:a,i)},readlink:function(a,i){return t(o,"readlink")(a,i)},realpath:function(a,i){return t(o,"realpath")(a,i)},rename:function(a,i){return t(o,"rename")(a,i)},rmdir:function(a){return t(o,"rmdir")(a)},stat:function(a,i){return t(o,"stat")(a,i)},symlink:function(a,i,f){return t(o,"symlink")(a,i,f)},truncate:function(a,i){return t(o,"truncate")(a,i)},unlink:function(a){return t(o,"unlink")(a)},utimes:function(a,i,f){return t(o,"utimes")(a,i,f)},writeFile:function(a,i,f){return t(o,"writeFile")(a instanceof r?a.fd:a,i,f)}}}return Jn.default=n,Jn}var Sa={},Db=!1;function Kx(){if(Db)return Sa;Db=!0;var e=lt;Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.unixify=a,Sa.correctPath=i;var t=e.platform==="win32";function r(f){var l=f.length-1;if(l<2)return f;for(;n(f,l);)l--;return f.substr(0,l+1)}function n(f,l){var c=f[l];return l>0&&(c==="/"||t&&c==="\\")}function o(f,l){if(typeof f!="string")throw new TypeError("expected a string");return f=f.replace(/[\\\/]+/g,"/"),l!==!1&&(f=r(f)),f}function a(f){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t?(f=o(f,l),f.replace(/^([a-zA-Z]+:|\.\/)/,"")):f}function i(f){return a(f.replace(/^\\\\\?\\.:\\/,"\\"))}return Sa}var vt={},Mb=!1,Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Vb(){if(Mb)return vt;Mb=!0;var e=vt&&vt.__extends||function(){var P=function(E,R){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,X){B.__proto__=X}||function(B,X){for(var oe in X)Object.prototype.hasOwnProperty.call(X,oe)&&(B[oe]=X[oe])},P(E,R)};return function(E,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");P(E,R);function B(){this.constructor=E}E.prototype=R===null?Object.create(R):(B.prototype=R.prototype,new B)}}(),t=vt&&vt.__spreadArray||function(P,E,R){if(R||arguments.length===2)for(var B=0,X=E.length,oe;B<X;B++)(oe||!(B in E))&&(oe||(oe=Array.prototype.slice.call(E,0,B)),oe[B]=E[B]);return P.concat(oe||Array.prototype.slice.call(E))};Object.defineProperty(vt,"__esModule",{value:!0}),vt.FSWatcher=vt.StatWatcher=vt.Volume=vt.toUnixTimestamp=vt.bufferToEncoding=vt.dataToBuffer=vt.dataToStr=vt.pathToSteps=vt.filenameToSteps=vt.pathToFilename=vt.flagsToNumber=vt.FLAGS=void 0;var r=Ot,n=Zx(),o=dh(),a=Wb(),i=yh(),f=Hb(),l=Zb(),c=Gx(),d=ir,y=Aa(),v=Ft,_=zb(),h=qb(),w=Oe,S=Yx(),T=r.resolve,C=y.constants.O_RDONLY,M=y.constants.O_WRONLY,D=y.constants.O_RDWR,V=y.constants.O_CREAT,F=y.constants.O_EXCL,N=y.constants.O_TRUNC,x=y.constants.O_APPEND,G=y.constants.O_SYNC,Q=y.constants.O_DIRECTORY,Te=y.constants.F_OK,K=y.constants.COPYFILE_EXCL,re=y.constants.COPYFILE_FICLONE_FORCE,ae=r.posix?r.posix:r,Ce=ae.sep,Ne=ae.relative,ne=ae.join,te=ae.dirname,ye=l.default.platform==="win32",me=128,Re={PATH_STR:"path must be a string or Buffer",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"},qe=function(P){return"Expected options to be either an object or a string, but got "+P+" instead"},je="ENOENT",Je="EBADF",Ve="EINVAL",xe="EPERM",A="EPROTO",O="EEXIST",Y="ENOTDIR",fe="EMFILE",ge="EACCES",k="EISDIR",Z="ENOTEMPTY",Se="ENOSYS";function ke(P,E,R,B){E===void 0&&(E=""),R===void 0&&(R=""),B===void 0&&(B="");var X="";switch(R&&(X=" '"+R+"'"),B&&(X+=" -> '"+B+"'"),P){case je:return"ENOENT: no such file or directory, "+E+X;case Je:return"EBADF: bad file descriptor, "+E+X;case Ve:return"EINVAL: invalid argument, "+E+X;case xe:return"EPERM: operation not permitted, "+E+X;case A:return"EPROTO: protocol error, "+E+X;case O:return"EEXIST: file already exists, "+E+X;case Y:return"ENOTDIR: not a directory, "+E+X;case k:return"EISDIR: illegal operation on a directory, "+E+X;case ge:return"EACCES: permission denied, "+E+X;case Z:return"ENOTEMPTY: directory not empty, "+E+X;case fe:return"EMFILE: too many open files, "+E+X;case Se:return"ENOSYS: function not implemented, "+E+X;default:return P+": error occurred, "+E+X}}function De(P,E,R,B,X){E===void 0&&(E=""),R===void 0&&(R=""),B===void 0&&(B=""),X===void 0&&(X=Error);var oe=new X(ke(P,E,R,B));return oe.code=P,oe}var $e;(function(P){P[P.r=C]="r",P[P["r+"]=D]="r+",P[P.rs=C|G]="rs",P[P.sr=P.rs]="sr",P[P["rs+"]=D|G]="rs+",P[P["sr+"]=P["rs+"]]="sr+",P[P.w=M|V|N]="w",P[P.wx=M|V|N|F]="wx",P[P.xw=P.wx]="xw",P[P["w+"]=D|V|N]="w+",P[P["wx+"]=D|V|N|F]="wx+",P[P["xw+"]=P["wx+"]]="xw+",P[P.a=M|x|V]="a",P[P.ax=M|x|V|F]="ax",P[P.xa=P.ax]="xa",P[P["a+"]=D|x|V]="a+",P[P["ax+"]=D|x|V|F]="ax+",P[P["xa+"]=P["ax+"]]="xa+"})($e=vt.FLAGS||(vt.FLAGS={}));function Me(P){if(typeof P=="number")return P;if(typeof P=="string"){var E=$e[P];if(typeof E<"u")return E}throw new h.TypeError("ERR_INVALID_OPT_VALUE","flags",P)}vt.flagsToNumber=Me;function ot(P,E){var R;if(E){var B=typeof E;switch(B){case"string":R=Object.assign({},P,{encoding:E});break;case"object":R=Object.assign({},P,E);break;default:throw TypeError(qe(B))}}else return P;return R.encoding!=="buffer"&&(0,_.assertEncoding)(R.encoding),R}function nt(P){return function(E){return ot(P,E)}}function et(P){if(typeof P!="function")throw TypeError(Re.CB);return P}function bt(P){return function(E,R){return typeof E=="function"?[P(),E]:[P(E),et(R)]}}var Qt={encoding:"utf8"},gt=nt(Qt),Ct=bt(gt),p={flag:"r"},s=nt(p),u={encoding:"utf8",mode:438,flag:$e[$e.w]},b=nt(u),L={encoding:"utf8",mode:438,flag:$e[$e.a]},m=nt(L),j=bt(m),le=Qt,Be=nt(le),ee=bt(Be),ue={mode:511,recursive:!1},I=function(P){return typeof P=="number"?Object.assign({},ue,{mode:P}):Object.assign({},ue,P)},Fe={recursive:!1},rt=function(P){return Object.assign({},Fe,P)},g={encoding:"utf8",withFileTypes:!1},we=nt(g),_e=bt(we),U={bigint:!1},ie=function(P){return P===void 0&&(P={}),Object.assign({},U,P)},ve=function(P,E){return typeof P=="function"?[ie(),P]:[ie(P),et(E)]};function Ye(P){if(P.hostname!=="")throw new h.TypeError("ERR_INVALID_FILE_URL_HOST",l.default.platform);for(var E=P.pathname,R=0;R<E.length;R++)if(E[R]==="%"){var B=E.codePointAt(R+2)|32;if(E[R+1]==="2"&&B===102)throw new h.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(E)}function Ae(P){if(typeof P!="string"&&!i.Buffer.isBuffer(P)){try{if(!(P instanceof St.URL))throw new TypeError(Re.PATH_STR)}catch{throw new TypeError(Re.PATH_STR)}P=Ye(P)}var E=String(P);return Nn(E),E}vt.pathToFilename=Ae;var We=function(P,E){return E===void 0&&(E=l.default.cwd()),T(E,P)};if(ye){var ht=We,kr=Kx().unixify;We=function(P,E){return kr(ht(P,E))}}function ut(P,E){var R=We(P,E),B=R.substr(1);return B?B.split(Ce):[]}vt.filenameToSteps=ut;function pt(P){return ut(Ae(P))}vt.pathToSteps=pt;function Lt(P,E){return E===void 0&&(E=_.ENCODING_UTF8),i.Buffer.isBuffer(P)?P.toString(E):P instanceof Uint8Array?(0,i.bufferFrom)(P).toString(E):String(P)}vt.dataToStr=Lt;function Nt(P,E){return E===void 0&&(E=_.ENCODING_UTF8),i.Buffer.isBuffer(P)?P:P instanceof Uint8Array?(0,i.bufferFrom)(P):(0,i.bufferFrom)(String(P),E)}vt.dataToBuffer=Nt;function Yt(P,E){return!E||E==="buffer"?P:P.toString(E)}vt.bufferToEncoding=Yt;function Nn(P,E){if((""+P).indexOf("\0")!==-1){var R=new Error("Path must be a string without null bytes");if(R.code=je,typeof E!="function")throw R;return l.default.nextTick(E,R),!1}return!0}function Li(P,E){if(typeof P=="number")return P;if(typeof P=="string")return parseInt(P,8);if(E)return mt(E)}function mt(P,E){var R=Li(P,E);if(typeof R!="number"||isNaN(R))throw new TypeError(Re.MODE_INT);return R}function Ut(P){return P>>>0===P}function xt(P){if(!Ut(P))throw TypeError(Re.FD)}function Dt(P){if(typeof P=="string"&&+P==P)return+P;if(P instanceof Date)return P.getTime()/1e3;if(isFinite(P))return P<0?Date.now()/1e3:P;throw new Error("Cannot parse time: "+P)}vt.toUnixTimestamp=Dt;function Kt(P){if(typeof P!="number")throw TypeError(Re.UID)}function pn(P){if(typeof P!="number")throw TypeError(Re.GID)}function O_(P){var E={};function R(B,X){for(var oe in X){var be=X[oe],Ue=ne(B,oe);typeof be=="string"?E[Ue]=be:typeof be=="object"&&be!==null&&Object.keys(be).length>0?R(Ue,be):E[Ue]=null}}return R("",P),E}var I_=function(){function P(E){E===void 0&&(E={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=(0,S.default)(this),this.statWatchers={},this.props=Object.assign({Node:n.Node,Link:n.Link,File:n.File},E);var R=this.createLink();R.setNode(this.createNode(!0));var B=this;this.StatWatcher=function(be){e(Ue,be);function Ue(){return be.call(this,B)||this}return Ue}(Rh);var X=Fr;this.ReadStream=function(be){e(Ue,be);function Ue(){for(var Ze=[],Ke=0;Ke<arguments.length;Ke++)Ze[Ke]=arguments[Ke];return be.apply(this,t([B],Ze,!1))||this}return Ue}(X);var oe=Ar;this.WriteStream=function(be){e(Ue,be);function Ue(){for(var Ze=[],Ke=0;Ke<arguments.length;Ke++)Ze[Ke]=arguments[Ke];return be.apply(this,t([B],Ze,!1))||this}return Ue}(oe),this.FSWatcher=function(be){e(Ue,be);function Ue(){return be.call(this,B)||this}return Ue}(Th),this.root=R}return P.fromJSON=function(E,R){var B=new P;return B.fromJSON(E,R),B},P.fromNestedJSON=function(E,R){var B=new P;return B.fromNestedJSON(E,R),B},Object.defineProperty(P.prototype,"promises",{get:function(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!1,configurable:!0}),P.prototype.createLink=function(E,R,B,X){if(B===void 0&&(B=!1),!E)return new this.props.Link(this,null,"");if(!R)throw new Error("createLink: name cannot be empty");return E.createChild(R,this.createNode(B,X))},P.prototype.deleteLink=function(E){var R=E.parent;return R?(R.deleteChild(E),!0):!1},P.prototype.newInoNumber=function(){var E=this.releasedInos.pop();return E||(this.ino=(this.ino+1)%4294967295,this.ino)},P.prototype.newFdNumber=function(){var E=this.releasedFds.pop();return typeof E=="number"?E:P.fd--},P.prototype.createNode=function(E,R){E===void 0&&(E=!1);var B=new this.props.Node(this.newInoNumber(),R);return E&&B.setIsDirectory(),this.inodes[B.ino]=B,B},P.prototype.getNode=function(E){return this.inodes[E]},P.prototype.deleteNode=function(E){E.del(),delete this.inodes[E.ino],this.releasedInos.push(E.ino)},P.prototype.genRndStr=function(){var E=(Math.random()+1).toString(36).substr(2,6);return E.length===6?E:this.genRndStr()},P.prototype.getLink=function(E){return this.root.walk(E)},P.prototype.getLinkOrThrow=function(E,R){var B=ut(E),X=this.getLink(B);if(!X)throw De(je,R,E);return X},P.prototype.getResolvedLink=function(E){for(var R=typeof E=="string"?ut(E):E,B=this.root,X=0;X<R.length;){var oe=R[X];if(B=B.getChild(oe),!B)return null;var be=B.getNode();if(be.isSymlink()){R=be.symlink.concat(R.slice(X+1)),B=this.root,X=0;continue}X++}return B},P.prototype.getResolvedLinkOrThrow=function(E,R){var B=this.getResolvedLink(E);if(!B)throw De(je,R,E);return B},P.prototype.resolveSymlinks=function(E){return this.getResolvedLink(E.steps.slice(1))},P.prototype.getLinkAsDirOrThrow=function(E,R){var B=this.getLinkOrThrow(E,R);if(!B.getNode().isDirectory())throw De(Y,R,E);return B},P.prototype.getLinkParent=function(E){return this.root.walk(E,E.length-1)},P.prototype.getLinkParentAsDirOrThrow=function(E,R){var B=E instanceof Array?E:ut(E),X=this.getLinkParent(B);if(!X)throw De(je,R,Ce+B.join(Ce));if(!X.getNode().isDirectory())throw De(Y,R,Ce+B.join(Ce));return X},P.prototype.getFileByFd=function(E){return this.fds[String(E)]},P.prototype.getFileByFdOrThrow=function(E,R){if(!Ut(E))throw TypeError(Re.FD);var B=this.getFileByFd(E);if(!B)throw De(Je,R);return B},P.prototype.getNodeByIdOrCreate=function(E,R,B){if(typeof E=="number"){var X=this.getFileByFd(E);if(!X)throw Error("File nto found");return X.node}else{var oe=pt(E),be=this.getLink(oe);if(be)return be.getNode();if(R&V){var Ue=this.getLinkParent(oe);if(Ue){var Ze=oe[oe.length-1];return be=this.createLink(Ue,Ze,!1,B),be.getNode()}}throw De(je,"getNodeByIdOrCreate",Ae(E))}},P.prototype.wrapAsync=function(E,R,B){var X=this;et(B),(0,f.default)(function(){var oe;try{oe=E.apply(X,R)}catch(be){B(be);return}B(null,oe)})},P.prototype._toJSON=function(E,R,B){var X;E===void 0&&(E=this.root),R===void 0&&(R={});var oe=!0,be=E.children;E.getNode().isFile()&&(be=(X={},X[E.getName()]=E.parent.getChild(E.getName()),X),E=E.parent);for(var Ue in be){oe=!1;var Ze=E.getChild(Ue);if(!Ze)throw new Error("_toJSON: unexpected undefined");var Ke=Ze.getNode();if(Ke.isFile()){var wt=Ze.getPath();B&&(wt=Ne(B,wt)),R[wt]=Ke.getString()}else Ke.isDirectory()&&this._toJSON(Ze,R,B)}var kt=E.getPath();return B&&(kt=Ne(B,kt)),kt&&oe&&(R[kt]=null),R},P.prototype.toJSON=function(E,R,B){R===void 0&&(R={}),B===void 0&&(B=!1);var X=[];if(E){E instanceof Array||(E=[E]);for(var oe=0,be=E;oe<be.length;oe++){var Ue=be[oe],Ze=Ae(Ue),Ke=this.getResolvedLink(Ze);Ke&&X.push(Ke)}}else X.push(this.root);if(!X.length)return R;for(var wt=0,kt=X;wt<kt.length;wt++){var Ke=kt[wt];this._toJSON(Ke,R,B?Ke.getPath():"")}return R},P.prototype.fromJSON=function(E,R){R===void 0&&(R=l.default.cwd());for(var B in E){var X=E[B];if(B=We(B,R),typeof X=="string"){var oe=te(B);this.mkdirpBase(oe,511),this.writeFileSync(B,X)}else this.mkdirpBase(B,511)}},P.prototype.fromNestedJSON=function(E,R){this.fromJSON(O_(E),R)},P.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},P.prototype.mountSync=function(E,R){this.fromJSON(R,E)},P.prototype.openLink=function(E,R,B){if(B===void 0&&(B=!0),this.openFiles>=this.maxFiles)throw De(fe,"open",E.getPath());var X=E;if(B&&(X=this.resolveSymlinks(E)),!X)throw De(je,"open",E.getPath());var oe=X.getNode();if(oe.isDirectory()){if((R&(C|D|M))!==C)throw De(k,"open",E.getPath())}else if(R&Q)throw De(Y,"open",E.getPath());if(!(R&M)&&!oe.canRead())throw De(ge,"open",E.getPath());var be=new this.props.File(E,oe,R,this.newFdNumber());return this.fds[be.fd]=be,this.openFiles++,R&N&&be.truncate(),be},P.prototype.openFile=function(E,R,B,X){X===void 0&&(X=!0);var oe=ut(E),be=X?this.getResolvedLink(oe):this.getLink(oe);if(!be&&R&V){var Ue=this.getResolvedLink(oe.slice(0,oe.length-1));if(!Ue)throw De(je,"open",Ce+oe.join(Ce));R&V&&typeof B=="number"&&(be=this.createLink(Ue,oe[oe.length-1],!1,B))}if(be)return this.openLink(be,R,X);throw De(je,"open",E)},P.prototype.openBase=function(E,R,B,X){X===void 0&&(X=!0);var oe=this.openFile(E,R,B,X);if(!oe)throw De(je,"open",E);return oe.fd},P.prototype.openSync=function(E,R,B){B===void 0&&(B=438);var X=mt(B),oe=Ae(E),be=Me(R);return this.openBase(oe,be,X)},P.prototype.open=function(E,R,B,X){var oe=B,be=X;typeof B=="function"&&(oe=438,be=B),oe=oe||438;var Ue=mt(oe),Ze=Ae(E),Ke=Me(R);this.wrapAsync(this.openBase,[Ze,Ke,Ue],be)},P.prototype.closeFile=function(E){this.fds[E.fd]&&(this.openFiles--,delete this.fds[E.fd],this.releasedFds.push(E.fd))},P.prototype.closeSync=function(E){xt(E);var R=this.getFileByFdOrThrow(E,"close");this.closeFile(R)},P.prototype.close=function(E,R){xt(E),this.wrapAsync(this.closeSync,[E],R)},P.prototype.openFileOrGetById=function(E,R,B){if(typeof E=="number"){var X=this.fds[E];if(!X)throw De(je);return X}else return this.openFile(Ae(E),R,B)},P.prototype.readBase=function(E,R,B,X,oe){var be=this.getFileByFdOrThrow(E);return be.read(R,Number(B),Number(X),oe)},P.prototype.readSync=function(E,R,B,X,oe){return xt(E),this.readBase(E,R,B,X,oe)},P.prototype.read=function(E,R,B,X,oe,be){var Ue=this;if(et(be),X===0)return l.default.nextTick(function(){be&&be(null,0,R)});(0,f.default)(function(){try{var Ze=Ue.readBase(E,R,B,X,oe);be(null,Ze,R)}catch(Ke){be(Ke)}})},P.prototype.readFileBase=function(E,R,B){var X,oe=typeof E=="number",be=oe&&Ut(E),Ue;if(be)Ue=E;else{var Ze=Ae(E),Ke=ut(Ze),wt=this.getResolvedLink(Ke);if(wt){var kt=wt.getNode();if(kt.isDirectory())throw De(k,"open",wt.getPath())}Ue=this.openSync(E,R)}try{X=Yt(this.getFileByFdOrThrow(Ue).getBuffer(),B)}finally{be||this.closeSync(Ue)}return X},P.prototype.readFileSync=function(E,R){var B=s(R),X=Me(B.flag);return this.readFileBase(E,X,B.encoding)},P.prototype.readFile=function(E,R,B){var X=bt(s)(R,B),oe=X[0],be=X[1],Ue=Me(oe.flag);this.wrapAsync(this.readFileBase,[E,Ue,oe.encoding],be)},P.prototype.writeBase=function(E,R,B,X,oe){var be=this.getFileByFdOrThrow(E,"write");return be.write(R,B,X,oe)},P.prototype.writeSync=function(E,R,B,X,oe){xt(E);var be,Ue,Ze,Ke,wt=typeof R!="string";wt?(Ue=(B||0)|0,Ze=X,Ke=oe):(Ke=B,be=X);var kt=Nt(R,be);return wt?typeof Ze>"u"&&(Ze=kt.length):(Ue=0,Ze=kt.length),this.writeBase(E,kt,Ue,Ze,Ke)},P.prototype.write=function(E,R,B,X,oe,be){var Ue=this;xt(E);var Ze,Ke,wt,kt,Pr,Nu=typeof R,Oh=typeof B,Ih=typeof X,xh=typeof oe;Nu!=="string"?Oh==="function"?Pr=B:Ih==="function"?(Ze=B|0,Pr=X):xh==="function"?(Ze=B|0,Ke=X,Pr=oe):(Ze=B|0,Ke=X,wt=oe,Pr=be):Oh==="function"?Pr=B:Ih==="function"?(wt=B,Pr=X):xh==="function"&&(wt=B,kt=X,Pr=oe);var Ia=Nt(R,kt);Nu!=="string"?typeof Ke>"u"&&(Ke=Ia.length):(Ze=0,Ke=Ia.length);var Lu=et(Pr);(0,f.default)(function(){try{var Bh=Ue.writeBase(E,Ia,Ze,Ke,wt);Nu!=="string"?Lu(null,Bh,Ia):Lu(null,Bh,R)}catch(N_){Lu(N_)}})},P.prototype.writeFileBase=function(E,R,B,X){var oe=typeof E=="number",be;oe?be=E:be=this.openBase(Ae(E),B,X);var Ue=0,Ze=R.length,Ke=B&x?void 0:0;try{for(;Ze>0;){var wt=this.writeSync(be,R,Ue,Ze,Ke);Ue+=wt,Ze-=wt,Ke!==void 0&&(Ke+=wt)}}finally{oe||this.closeSync(be)}},P.prototype.writeFileSync=function(E,R,B){var X=b(B),oe=Me(X.flag),be=mt(X.mode),Ue=Nt(R,X.encoding);this.writeFileBase(E,Ue,oe,be)},P.prototype.writeFile=function(E,R,B,X){var oe=B,be=X;typeof B=="function"&&(oe=u,be=B);var Ue=et(be),Ze=b(oe),Ke=Me(Ze.flag),wt=mt(Ze.mode),kt=Nt(R,Ze.encoding);this.wrapAsync(this.writeFileBase,[E,kt,Ke,wt],Ue)},P.prototype.linkBase=function(E,R){var B=ut(E),X=this.getLink(B);if(!X)throw De(je,"link",E,R);var oe=ut(R),be=this.getLinkParent(oe);if(!be)throw De(je,"link",E,R);var Ue=oe[oe.length-1];if(be.getChild(Ue))throw De(O,"link",E,R);var Ze=X.getNode();Ze.nlink++,be.createChild(Ue,Ze)},P.prototype.copyFileBase=function(E,R,B){var X=this.readFileSync(E);if(B&K&&this.existsSync(R))throw De(O,"copyFile",E,R);if(B&re)throw De(Se,"copyFile",E,R);this.writeFileBase(R,X,$e.w,438)},P.prototype.copyFileSync=function(E,R,B){var X=Ae(E),oe=Ae(R);return this.copyFileBase(X,oe,(B||0)|0)},P.prototype.copyFile=function(E,R,B,X){var oe=Ae(E),be=Ae(R),Ue,Ze;typeof B=="function"?(Ue=0,Ze=B):(Ue=B,Ze=X),et(Ze),this.wrapAsync(this.copyFileBase,[oe,be,Ue],Ze)},P.prototype.linkSync=function(E,R){var B=Ae(E),X=Ae(R);this.linkBase(B,X)},P.prototype.link=function(E,R,B){var X=Ae(E),oe=Ae(R);this.wrapAsync(this.linkBase,[X,oe],B)},P.prototype.unlinkBase=function(E){var R=ut(E),B=this.getLink(R);if(!B)throw De(je,"unlink",E);if(B.length)throw Error("Dir not empty...");this.deleteLink(B);var X=B.getNode();X.nlink--,X.nlink<=0&&this.deleteNode(X)},P.prototype.unlinkSync=function(E){var R=Ae(E);this.unlinkBase(R)},P.prototype.unlink=function(E,R){var B=Ae(E);this.wrapAsync(this.unlinkBase,[B],R)},P.prototype.symlinkBase=function(E,R){var B=ut(R),X=this.getLinkParent(B);if(!X)throw De(je,"symlink",E,R);var oe=B[B.length-1];if(X.getChild(oe))throw De(O,"symlink",E,R);var be=X.createChild(oe);return be.getNode().makeSymlink(ut(E)),be},P.prototype.symlinkSync=function(E,R,B){var X=Ae(E),oe=Ae(R);this.symlinkBase(X,oe)},P.prototype.symlink=function(E,R,B,X){var oe=et(typeof B=="function"?B:X),be=Ae(E),Ue=Ae(R);this.wrapAsync(this.symlinkBase,[be,Ue],oe)},P.prototype.realpathBase=function(E,R){var B=ut(E),X=this.getResolvedLink(B);if(!X)throw De(je,"realpath",E);return(0,_.strToEncoding)(X.getPath(),R)},P.prototype.realpathSync=function(E,R){return this.realpathBase(Ae(E),Be(R).encoding)},P.prototype.realpath=function(E,R,B){var X=ee(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.realpathBase,[Ue,oe.encoding],be)},P.prototype.lstatBase=function(E,R){R===void 0&&(R=!1);var B=this.getLink(ut(E));if(!B)throw De(je,"lstat",E);return o.default.build(B.getNode(),R)},P.prototype.lstatSync=function(E,R){return this.lstatBase(Ae(E),ie(R).bigint)},P.prototype.lstat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.lstatBase,[Ae(E),oe.bigint],be)},P.prototype.statBase=function(E,R){R===void 0&&(R=!1);var B=this.getResolvedLink(ut(E));if(!B)throw De(je,"stat",E);return o.default.build(B.getNode(),R)},P.prototype.statSync=function(E,R){return this.statBase(Ae(E),ie(R).bigint)},P.prototype.stat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.statBase,[Ae(E),oe.bigint],be)},P.prototype.fstatBase=function(E,R){R===void 0&&(R=!1);var B=this.getFileByFd(E);if(!B)throw De(Je,"fstat");return o.default.build(B.node,R)},P.prototype.fstatSync=function(E,R){return this.fstatBase(E,ie(R).bigint)},P.prototype.fstat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.fstatBase,[E,oe.bigint],be)},P.prototype.renameBase=function(E,R){var B=this.getLink(ut(E));if(!B)throw De(je,"rename",E,R);var X=ut(R),oe=this.getLinkParent(X);if(!oe)throw De(je,"rename",E,R);var be=B.parent;be&&be.deleteChild(B);var Ue=X[X.length-1];B.steps=t(t([],oe.steps,!0),[Ue],!1),oe.setChild(B.getName(),B)},P.prototype.renameSync=function(E,R){var B=Ae(E),X=Ae(R);this.renameBase(B,X)},P.prototype.rename=function(E,R,B){var X=Ae(E),oe=Ae(R);this.wrapAsync(this.renameBase,[X,oe],B)},P.prototype.existsBase=function(E){return!!this.statBase(E)},P.prototype.existsSync=function(E){try{return this.existsBase(Ae(E))}catch{return!1}},P.prototype.exists=function(E,R){var B=this,X=Ae(E);if(typeof R!="function")throw Error(Re.CB);(0,f.default)(function(){try{R(B.existsBase(X))}catch{R(!1)}})},P.prototype.accessBase=function(E,R){this.getLinkOrThrow(E,"access")},P.prototype.accessSync=function(E,R){R===void 0&&(R=Te);var B=Ae(E);R=R|0,this.accessBase(B,R)},P.prototype.access=function(E,R,B){var X=Te,oe;typeof R!="function"?(X=R|0,oe=et(B)):oe=R;var be=Ae(E);this.wrapAsync(this.accessBase,[be,X],oe)},P.prototype.appendFileSync=function(E,R,B){B===void 0&&(B=L);var X=m(B);(!X.flag||Ut(E))&&(X.flag="a"),this.writeFileSync(E,R,X)},P.prototype.appendFile=function(E,R,B,X){var oe=j(B,X),be=oe[0],Ue=oe[1];(!be.flag||Ut(E))&&(be.flag="a"),this.writeFile(E,R,be,Ue)},P.prototype.readdirBase=function(E,R){var B=ut(E),X=this.getResolvedLink(B);if(!X)throw De(je,"readdir",E);var oe=X.getNode();if(!oe.isDirectory())throw De(Y,"scandir",E);if(R.withFileTypes){var be=[];for(var Ue in X.children){var Ze=X.getChild(Ue);Ze&&be.push(a.default.build(Ze,R.encoding))}return!ye&&R.encoding!=="buffer"&&be.sort(function(kt,Pr){return kt.name<Pr.name?-1:kt.name>Pr.name?1:0}),be}var Ke=[];for(var wt in X.children)Ke.push((0,_.strToEncoding)(wt,R.encoding));return!ye&&R.encoding!=="buffer"&&Ke.sort(),Ke},P.prototype.readdirSync=function(E,R){var B=we(R),X=Ae(E);return this.readdirBase(X,B)},P.prototype.readdir=function(E,R,B){var X=_e(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.readdirBase,[Ue,oe],be)},P.prototype.readlinkBase=function(E,R){var B=this.getLinkOrThrow(E,"readlink"),X=B.getNode();if(!X.isSymlink())throw De(Ve,"readlink",E);var oe=Ce+X.symlink.join(Ce);return(0,_.strToEncoding)(oe,R)},P.prototype.readlinkSync=function(E,R){var B=gt(R),X=Ae(E);return this.readlinkBase(X,B.encoding)},P.prototype.readlink=function(E,R,B){var X=Ct(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.readlinkBase,[Ue,oe.encoding],be)},P.prototype.fsyncBase=function(E){this.getFileByFdOrThrow(E,"fsync")},P.prototype.fsyncSync=function(E){this.fsyncBase(E)},P.prototype.fsync=function(E,R){this.wrapAsync(this.fsyncBase,[E],R)},P.prototype.fdatasyncBase=function(E){this.getFileByFdOrThrow(E,"fdatasync")},P.prototype.fdatasyncSync=function(E){this.fdatasyncBase(E)},P.prototype.fdatasync=function(E,R){this.wrapAsync(this.fdatasyncBase,[E],R)},P.prototype.ftruncateBase=function(E,R){var B=this.getFileByFdOrThrow(E,"ftruncate");B.truncate(R)},P.prototype.ftruncateSync=function(E,R){this.ftruncateBase(E,R)},P.prototype.ftruncate=function(E,R,B){var X=typeof R=="number"?R:0,oe=et(typeof R=="number"?B:R);this.wrapAsync(this.ftruncateBase,[E,X],oe)},P.prototype.truncateBase=function(E,R){var B=this.openSync(E,"r+");try{this.ftruncateSync(B,R)}finally{this.closeSync(B)}},P.prototype.truncateSync=function(E,R){if(Ut(E))return this.ftruncateSync(E,R);this.truncateBase(E,R)},P.prototype.truncate=function(E,R,B){var X=typeof R=="number"?R:0,oe=et(typeof R=="number"?B:R);if(Ut(E))return this.ftruncate(E,X,oe);this.wrapAsync(this.truncateBase,[E,X],oe)},P.prototype.futimesBase=function(E,R,B){var X=this.getFileByFdOrThrow(E,"futimes"),oe=X.node;oe.atime=new Date(R*1e3),oe.mtime=new Date(B*1e3)},P.prototype.futimesSync=function(E,R,B){this.futimesBase(E,Dt(R),Dt(B))},P.prototype.futimes=function(E,R,B,X){this.wrapAsync(this.futimesBase,[E,Dt(R),Dt(B)],X)},P.prototype.utimesBase=function(E,R,B){var X=this.openSync(E,"r+");try{this.futimesBase(X,R,B)}finally{this.closeSync(X)}},P.prototype.utimesSync=function(E,R,B){this.utimesBase(Ae(E),Dt(R),Dt(B))},P.prototype.utimes=function(E,R,B,X){this.wrapAsync(this.utimesBase,[Ae(E),Dt(R),Dt(B)],X)},P.prototype.mkdirBase=function(E,R){var B=ut(E);if(!B.length)throw De(O,"mkdir",E);var X=this.getLinkParentAsDirOrThrow(E,"mkdir"),oe=B[B.length-1];if(X.getChild(oe))throw De(O,"mkdir",E);X.createChild(oe,this.createNode(!0,R))},P.prototype.mkdirpBase=function(E,R){for(var B=ut(E),X=this.root,oe=0;oe<B.length;oe++){var be=B[oe];if(!X.getNode().isDirectory())throw De(Y,"mkdir",X.getPath());var Ue=X.getChild(be);if(Ue)if(Ue.getNode().isDirectory())X=Ue;else throw De(Y,"mkdir",Ue.getPath());else X=X.createChild(be,this.createNode(!0,R))}},P.prototype.mkdirSync=function(E,R){var B=I(R),X=mt(B.mode,511),oe=Ae(E);B.recursive?this.mkdirpBase(oe,X):this.mkdirBase(oe,X)},P.prototype.mkdir=function(E,R,B){var X=I(R),oe=et(typeof R=="function"?R:B),be=mt(X.mode,511),Ue=Ae(E);X.recursive?this.wrapAsync(this.mkdirpBase,[Ue,be],oe):this.wrapAsync(this.mkdirBase,[Ue,be],oe)},P.prototype.mkdirpSync=function(E,R){this.mkdirSync(E,{mode:R,recursive:!0})},P.prototype.mkdirp=function(E,R,B){var X=typeof R=="function"?void 0:R,oe=et(typeof R=="function"?R:B);this.mkdir(E,{mode:X,recursive:!0},oe)},P.prototype.mkdtempBase=function(E,R,B){B===void 0&&(B=5);var X=E+this.genRndStr();try{return this.mkdirBase(X,511),(0,_.strToEncoding)(X,R)}catch(oe){if(oe.code===O){if(B>1)return this.mkdtempBase(E,R,B-1);throw Error("Could not create temp dir.")}else throw oe}},P.prototype.mkdtempSync=function(E,R){var B=gt(R).encoding;if(!E||typeof E!="string")throw new TypeError("filename prefix is required");return Nn(E),this.mkdtempBase(E,B)},P.prototype.mkdtemp=function(E,R,B){var X=Ct(R,B),oe=X[0].encoding,be=X[1];if(!E||typeof E!="string")throw new TypeError("filename prefix is required");Nn(E)&&this.wrapAsync(this.mkdtempBase,[E,oe],be)},P.prototype.rmdirBase=function(E,R){var B=rt(R),X=this.getLinkAsDirOrThrow(E,"rmdir");if(X.length&&!B.recursive)throw De(Z,"rmdir",E);this.deleteLink(X)},P.prototype.rmdirSync=function(E,R){this.rmdirBase(Ae(E),R)},P.prototype.rmdir=function(E,R,B){var X=rt(R),oe=et(typeof R=="function"?R:B);this.wrapAsync(this.rmdirBase,[Ae(E),X],oe)},P.prototype.fchmodBase=function(E,R){var B=this.getFileByFdOrThrow(E,"fchmod");B.chmod(R)},P.prototype.fchmodSync=function(E,R){this.fchmodBase(E,mt(R))},P.prototype.fchmod=function(E,R,B){this.wrapAsync(this.fchmodBase,[E,mt(R)],B)},P.prototype.chmodBase=function(E,R){var B=this.openSync(E,"r+");try{this.fchmodBase(B,R)}finally{this.closeSync(B)}},P.prototype.chmodSync=function(E,R){var B=mt(R),X=Ae(E);this.chmodBase(X,B)},P.prototype.chmod=function(E,R,B){var X=mt(R),oe=Ae(E);this.wrapAsync(this.chmodBase,[oe,X],B)},P.prototype.lchmodBase=function(E,R){var B=this.openBase(E,D,0,!1);try{this.fchmodBase(B,R)}finally{this.closeSync(B)}},P.prototype.lchmodSync=function(E,R){var B=mt(R),X=Ae(E);this.lchmodBase(X,B)},P.prototype.lchmod=function(E,R,B){var X=mt(R),oe=Ae(E);this.wrapAsync(this.lchmodBase,[oe,X],B)},P.prototype.fchownBase=function(E,R,B){this.getFileByFdOrThrow(E,"fchown").chown(R,B)},P.prototype.fchownSync=function(E,R,B){Kt(R),pn(B),this.fchownBase(E,R,B)},P.prototype.fchown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.fchownBase,[E,R,B],X)},P.prototype.chownBase=function(E,R,B){var X=this.getResolvedLinkOrThrow(E,"chown"),oe=X.getNode();oe.chown(R,B)},P.prototype.chownSync=function(E,R,B){Kt(R),pn(B),this.chownBase(Ae(E),R,B)},P.prototype.chown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.chownBase,[Ae(E),R,B],X)},P.prototype.lchownBase=function(E,R,B){this.getLinkOrThrow(E,"lchown").getNode().chown(R,B)},P.prototype.lchownSync=function(E,R,B){Kt(R),pn(B),this.lchownBase(Ae(E),R,B)},P.prototype.lchown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.lchownBase,[Ae(E),R,B],X)},P.prototype.watchFile=function(E,R,B){var X=Ae(E),oe=R,be=B;if(typeof oe=="function"&&(be=R,oe=null),typeof be!="function")throw Error('"watchFile()" requires a listener function');var Ue=5007,Ze=!0;oe&&typeof oe=="object"&&(typeof oe.interval=="number"&&(Ue=oe.interval),typeof oe.persistent=="boolean"&&(Ze=oe.persistent));var Ke=this.statWatchers[X];return Ke||(Ke=new this.StatWatcher,Ke.start(X,Ze,Ue),this.statWatchers[X]=Ke),Ke.addListener("change",be),Ke},P.prototype.unwatchFile=function(E,R){var B=Ae(E),X=this.statWatchers[B];X&&(typeof R=="function"?X.removeListener("change",R):X.removeAllListeners("change"),X.listenerCount("change")===0&&(X.stop(),delete this.statWatchers[B]))},P.prototype.createReadStream=function(E,R){return new this.ReadStream(E,R)},P.prototype.createWriteStream=function(E,R){return new this.WriteStream(E,R)},P.prototype.watch=function(E,R,B){var X=Ae(E),oe=R;typeof R=="function"&&(B=R,oe=null);var be=gt(oe),Ue=be.persistent,Ze=be.recursive,Ke=be.encoding;Ue===void 0&&(Ue=!0),Ze===void 0&&(Ze=!1);var wt=new this.FSWatcher;return wt.start(X,Ue,Ze,Ke),B&&wt.addListener("change",B),wt},P.fd=2147483647,P}();vt.Volume=I_;function x_(P){P.emit("stop")}var Rh=function(P){e(E,P);function E(R){var B=P.call(this)||this;return B.onInterval=function(){try{var X=B.vol.statSync(B.filename);B.hasChanged(X)&&(B.emit("change",X,B.prev),B.prev=X)}finally{B.loop()}},B.vol=R,B}return E.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},E.prototype.hasChanged=function(R){return R.mtimeMs>this.prev.mtimeMs||R.nlink!==this.prev.nlink},E.prototype.start=function(R,B,X){B===void 0&&(B=!0),X===void 0&&(X=5007),this.filename=Ae(R),this.setTimeout=B?setTimeout.bind(typeof globalThis<"u"?globalThis:Xx):c.default,this.interval=X,this.prev=this.vol.statSync(this.filename),this.loop()},E.prototype.stop=function(){clearTimeout(this.timeoutRef),l.default.nextTick(x_,this)},E}(v.EventEmitter);vt.StatWatcher=Rh;var Sr;function B_(P){Sr=(0,i.bufferAllocUnsafe)(P),Sr.used=0}w.inherits(Fr,d.Readable),vt.ReadStream=Fr;function Fr(P,E,R){if(!(this instanceof Fr))return new Fr(P,E,R);if(this._vol=P,R=Object.assign({},ot(R,{})),R.highWaterMark===void 0&&(R.highWaterMark=64*1024),d.Readable.call(this,R),this.path=Ae(E),this.fd=R.fd===void 0?null:R.fd,this.flags=R.flags===void 0?"r":R.flags,this.mode=R.mode===void 0?438:R.mode,this.start=R.start,this.end=R.end,this.autoClose=R.autoClose===void 0?!0:R.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}typeof this.fd!="number"&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}Fr.prototype.open=function(){var P=this;this._vol.open(this.path,this.flags,this.mode,function(E,R){if(E){P.autoClose&&P.destroy&&P.destroy(),P.emit("error",E);return}P.fd=R,P.emit("open",R),P.read()})},Fr.prototype._read=function(P){if(typeof this.fd!="number")return this.once("open",function(){this._read(P)});if(this.destroyed)return;(!Sr||Sr.length-Sr.used<me)&&B_(this._readableState.highWaterMark);var E=Sr,R=Math.min(Sr.length-Sr.used,P),B=Sr.used;if(this.pos!==void 0&&(R=Math.min(this.end-this.pos+1,R)),R<=0)return this.push(null);var X=this;this._vol.read(this.fd,Sr,Sr.used,R,this.pos,oe),this.pos!==void 0&&(this.pos+=R),Sr.used+=R;function oe(be,Ue){if(be)X.autoClose&&X.destroy&&X.destroy(),X.emit("error",be);else{var Ze=null;Ue>0&&(X.bytesRead+=Ue,Ze=E.slice(B,B+Ue)),X.push(Ze)}}},Fr.prototype._destroy=function(P,E){this.close(function(R){E(P||R)})},Fr.prototype.close=function(P){var E=this;if(P&&this.once("close",P),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",C_);return}return l.default.nextTick(function(){return E.emit("close")})}this.closed=!0,this._vol.close(this.fd,function(R){R?E.emit("error",R):E.emit("close")}),this.fd=null};function C_(P){this.close()}w.inherits(Ar,d.Writable),vt.WriteStream=Ar;function Ar(P,E,R){if(!(this instanceof Ar))return new Ar(P,E,R);if(this._vol=P,R=Object.assign({},ot(R,{})),d.Writable.call(this,R),this.path=Ae(E),this.fd=R.fd===void 0?null:R.fd,this.flags=R.flags===void 0?"w":R.flags,this.mode=R.mode===void 0?438:R.mode,this.start=R.start,this.autoClose=R.autoClose===void 0?!0:!!R.autoClose,this.pos=void 0,this.bytesWritten=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}R.encoding&&this.setDefaultEncoding(R.encoding),typeof this.fd!="number"&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}Ar.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(P,E){if(P){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",P);return}this.fd=E,this.emit("open",E)}.bind(this))},Ar.prototype._write=function(P,E,R){if(!(P instanceof i.Buffer))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!="number")return this.once("open",function(){this._write(P,E,R)});var B=this;this._vol.write(this.fd,P,0,P.length,this.pos,function(X,oe){if(X)return B.autoClose&&B.destroy&&B.destroy(),R(X);B.bytesWritten+=oe,R()}),this.pos!==void 0&&(this.pos+=P.length)},Ar.prototype._writev=function(P,E){if(typeof this.fd!="number")return this.once("open",function(){this._writev(P,E)});for(var R=this,B=P.length,X=new Array(B),oe=0,be=0;be<B;be++){var Ue=P[be].chunk;X[be]=Ue,oe+=Ue.length}var Ze=i.Buffer.concat(X);this._vol.write(this.fd,Ze,0,Ze.length,this.pos,function(Ke,wt){if(Ke)return R.destroy&&R.destroy(),E(Ke);R.bytesWritten+=wt,E()}),this.pos!==void 0&&(this.pos+=oe)},Ar.prototype._destroy=Fr.prototype._destroy,Ar.prototype.close=Fr.prototype.close,Ar.prototype.destroySoon=Ar.prototype.end;var Th=function(P){e(E,P);function E(R){var B=P.call(this)||this;return B._filename="",B._filenameEncoded="",B._recursive=!1,B._encoding=_.ENCODING_UTF8,B._onNodeChange=function(){B._emit("change")},B._onParentChild=function(X){X.getName()===B._getName()&&B._emit("rename")},B._emit=function(X){B.emit("change",X,B._filenameEncoded)},B._persist=function(){B._timer=setTimeout(B._persist,1e6)},B._vol=R,B}return E.prototype._getName=function(){return this._steps[this._steps.length-1]},E.prototype.start=function(R,B,X,oe){B===void 0&&(B=!0),X===void 0&&(X=!1),oe===void 0&&(oe=_.ENCODING_UTF8),this._filename=Ae(R),this._steps=ut(this._filename),this._filenameEncoded=(0,_.strToEncoding)(this._filename),this._recursive=X,this._encoding=oe;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(Ze){var be=new Error("watch "+this._filename+" "+Ze.code);throw be.code=Ze.code,be.errno=Ze.code,be}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var Ue=this._link.parent;Ue&&(Ue.setMaxListeners(Ue.getMaxListeners()+1),Ue.on("child:delete",this._onParentChild)),B&&this._persist()},E.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var R=this._link.parent;R&&R.removeListener("child:delete",this._onParentChild)},E}(v.EventEmitter);return vt.FSWatcher=Th,vt}var Bn={},jb=!1;function Jx(){if(jb)return Bn;jb=!0,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.fsAsyncMethods=Bn.fsSyncMethods=Bn.fsProps=void 0;var e=["constants","F_OK","R_OK","W_OK","X_OK","Stats"];Bn.fsProps=e;var t=["renameSync","ftruncateSync","truncateSync","chownSync","fchownSync","lchownSync","chmodSync","fchmodSync","lchmodSync","statSync","lstatSync","fstatSync","linkSync","symlinkSync","readlinkSync","realpathSync","unlinkSync","rmdirSync","mkdirSync","mkdirpSync","readdirSync","closeSync","openSync","utimesSync","futimesSync","fsyncSync","writeSync","readSync","readFileSync","writeFileSync","appendFileSync","existsSync","accessSync","fdatasyncSync","mkdtempSync","copyFileSync","createReadStream","createWriteStream"];Bn.fsSyncMethods=t;var r=["rename","ftruncate","truncate","chown","fchown","lchown","chmod","fchmod","lchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","mkdirp","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","exists","access","fdatasync","mkdtemp","copyFile","watchFile","unwatchFile","watch"];return Bn.fsAsyncMethods=r,Bn}var Gt={},$b=!1;function Qx(){if($b)return Gt;$b=!0;var e=Gt&&Gt.__assign||function(){return e=Object.assign||function(_){for(var h,w=1,S=arguments.length;w<S;w++){h=arguments[w];for(var T in h)Object.prototype.hasOwnProperty.call(h,T)&&(_[T]=h[T])}return _},e.apply(this,arguments)};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.fs=Gt.createFsFromVolume=Gt.vol=Gt.Volume=void 0;var t=dh(),r=Wb(),n=Vb(),o=Jx(),a=o.fsSyncMethods,i=o.fsAsyncMethods,f=Aa(),l=f.constants.F_OK,c=f.constants.R_OK,d=f.constants.W_OK,y=f.constants.X_OK;Gt.Volume=n.Volume,Gt.vol=new n.Volume;function v(_){for(var h={F_OK:l,R_OK:c,W_OK:d,X_OK:y,constants:f.constants,Stats:t.default,Dirent:r.default},w=0,S=a;w<S.length;w++){var T=S[w];typeof _[T]=="function"&&(h[T]=_[T].bind(_))}for(var C=0,M=i;C<M.length;C++){var T=M[C];typeof _[T]=="function"&&(h[T]=_[T].bind(_))}return h.StatWatcher=_.StatWatcher,h.FSWatcher=_.FSWatcher,h.WriteStream=_.WriteStream,h.ReadStream=_.ReadStream,h.promises=_.promises,h._toUnixTimestamp=n.toUnixTimestamp,h}return Gt.createFsFromVolume=v,Gt.fs=v(Gt.vol),Gt=e(e({},Gt),Gt.fs),Gt.semantic=!0,Gt}var Bi=Qx();Bi.__esModule;Bi.fs;Bi.createFsFromVolume;Bi.vol;Bi.Volume;Bi.semantic;var fr=Vb();fr.__esModule;fr.FSWatcher;fr.StatWatcher;fr.Volume;fr.toUnixTimestamp;fr.bufferToEncoding;fr.dataToBuffer;fr.dataToStr;fr.pathToSteps;fr.filenameToSteps;fr.pathToFilename;fr.flagsToNumber;fr.FLAGS;fr.ReadStream;fr.WriteStream;var{vol:Cn,createFsFromVolume:eB}=Bi;function Er(e){throw new Error(`Node.js fs ${e} is not supported by JSPM core in the browser`)}Cn.fromNestedJSON({"/dev":{stdin:"",stdout:"",stderr:""},"/usr/bin":{},"/home":{},"/tmp":{}});Cn.releasedFds=[2,1,0];Cn.openSync("/dev/stdin","w");Cn.openSync("/dev/stdout","r");Cn.openSync("/dev/stderr","r");Gb("/dev/stdout",1,console.log);Gb("/dev/stderr",2,console.error);function Gb(e,t,r){let n=0,o=new TextDecoder;Cn.watch(e,"utf8",()=>{let{size:a}=Cn.fstatSync(t),i=he.alloc(a-n);Cn.readSync(t,i,0,i.length,n),n=a,r(o.decode(i,{stream:!0}))})}var It=eB(Cn);It.opendir=()=>Er("opendir");It.opendirSync=()=>Er("opendirSync");It.promises.opendir=()=>Er("promises.opendir");It.cp=()=>Er("cp");It.cpSync=()=>Er("cpSync");It.promises.cp=()=>Er("promises.cp");It.readv=()=>Er("readv");It.readvSync=()=>Er("readvSync");It.rm=()=>Er("rm");It.rmSync=()=>Er("rmSync");It.promises.rm=()=>Er("promises.rm");It.Dir=()=>Er("Dir");It.promises.watch=()=>Er("promises.watch");It.FileReadStream=It.ReadStream;It.FileWriteStream=It.WriteStream;function gh(e,t){if(e.protocol==="file:")return ph(e);if(e.protocol==="https:"||e.protocol==="http:"){let r="\\\\url\\"+e.href.replaceAll(/\//g,"\\\\");if(iB(r))return r;if(t)throw new Error(`Cannot sync request URL ${e} via FS. JSPM FS support for network URLs requires using async FS methods or priming the MemFS cache first with an async request before a sync request.`);return(async()=>{let n=await fetch(e);if(!n.ok)throw new Error(`Unable to fetch ${e.href}, ${n.status}`);let o=await n.arrayBuffer();return oB(r,he.from(o)),r})()}throw new Error("URL "+e+" not supported in JSPM FS implementation.")}function tB(e){return function(t,...r){return t instanceof URL?e(gh(t,!0),...r):e(t,...r)}}function rB(e){return async function(t,...r){return t instanceof URL?e(await gh(t),...r):e(t,...r)}}function nB(e){return function(t,...r){let n=r[r.length-1];t instanceof URL&&typeof n=="function"?gh(t).then(o=>{e(o,...r)},n):e(t,...r)}}It.promises.readFile=rB(It.promises.readFile);It.readFile=nB(It.readFile);It.readFileSync=tB(It.readFileSync);var{appendFile:zV,appendFileSync:WV,access:Yb,accessSync:HV,chown:ZV,chownSync:VV,chmod:GV,chmodSync:YV,close:KV,closeSync:XV,copyFile:JV,copyFileSync:QV,cp:eG,cpSync:tG,createReadStream:Kb,createWriteStream:Xb,exists:rG,existsSync:iB,fchown:nG,fchownSync:iG,fchmod:oG,fchmodSync:aG,fdatasync:sG,fdatasyncSync:uG,fstat:fG,fstatSync:lG,fsync:cG,fsyncSync:hG,ftruncate:pG,ftruncateSync:dG,futimes:yG,futimesSync:gG,lchown:mG,lchownSync:vG,lchmod:wG,lchmodSync:bG,link:_G,linkSync:EG,lstat:SG,lstatSync:AG,mkdir:RG,mkdirSync:TG,mkdtemp:OG,mkdtempSync:IG,open:xG,openSync:BG,opendir:CG,opendirSync:NG,readdir:LG,readdirSync:kG,read:FG,readSync:PG,readv:UG,readvSync:DG,readFile:MG,readFileSync:jG,readlink:$G,readlinkSync:qG,realpath:zG,realpathSync:WG,rename:HG,renameSync:ZG,rm:VG,rmSync:GG,rmdir:YG,rmdirSync:KG,stat:XG,statSync:JG,symlink:QG,symlinkSync:eY,truncate:tY,truncateSync:rY,unwatchFile:nY,unlink:iY,unlinkSync:oY,utimes:aY,utimesSync:sY,watch:uY,watchFile:fY,writeFile:lY,writeFileSync:oB,write:cY,writeSync:hY,writev:pY,writevSync:dY,Dir:yY,Dirent:gY,Stats:mY,ReadStream:vY,WriteStream:wY,FileReadStream:bY,FileWriteStream:_Y,_toUnixTimestamp:EY,constants:{F_OK:SY,R_OK:AY,W_OK:RY,X_OK:TY},constants:Jb,promises:mh}=It;$();q();z();H();W();Fa();var{access:JY,copyFile:QY,cp:eK,open:Ra,opendir:tK,rename:Ru,truncate:rK,rm:nK,rmdir:iK,mkdir:Qb,readdir:oK,readlink:aK,symlink:sK,lstat:uK,stat:vh,link:fK,unlink:e_,chmod:lK,lchmod:cK,lchown:hK,chown:pK,utimes:dK,realpath:yK,mkdtemp:gK,writeFile:t_,appendFile:mK,readFile:r_,watch:vK}=mh;async function n_(e){return new Promise(t=>Yb(e,Jb.F_OK,r=>t(!r)))}var Tu=class extends Error{constructor(){super("Too many destination file attempts");at(this,"code","RFS-TOO-MANY")}},_h=class extends o1{constructor(r,n){let{encoding:o,history:a,maxFiles:i,maxSize:f,path:l}=n;super({decodeStrings:!0,defaultEncoding:o});at(this,"createGzip");at(this,"exec");at(this,"file");at(this,"filename");at(this,"finished");at(this,"fsCreateReadStream");at(this,"fsCreateWriteStream");at(this,"fsOpen");at(this,"fsReadFile");at(this,"fsStat");at(this,"fsUnlink");at(this,"generator");at(this,"initPromise");at(this,"last");at(this,"maxTimeout");at(this,"next");at(this,"options");at(this,"prev");at(this,"rotation");at(this,"size");at(this,"stdout");at(this,"timeout");at(this,"timeoutPromise");this.createGzip=pb,this.exec=Cv,this.filename=l+r(null),this.fsCreateReadStream=Kb,this.fsCreateWriteStream=Xb,this.fsOpen=Ra,this.fsReadFile=r_,this.fsStat=vh,this.fsUnlink=e_,this.generator=r,this.maxTimeout=2147483640,this.options=n,this.stdout=ce.stdout,(i||f)&&(n.history=l+(a||this.generator(null)+".txt")),this.on("close",()=>this.finished?null:this.emit("finish")),this.on("finish",()=>this.finished=this.clear()),(async()=>{try{this.initPromise=this.init(),await this.initPromise,delete this.initPromise}catch{}})()}_destroy(r,n){this.refinal(r,n)}_final(r){this.refinal(void 0,r)}_write(r,n,o){this.rewrite([{chunk:r,encoding:n}],0,o)}_writev(r,n){this.rewrite(r,0,n)}async refinal(r,n){try{this.clear(),this.initPromise&&await this.initPromise,this.timeoutPromise&&await this.timeoutPromise,await this.reclose()}catch(o){return n(r||o)}n(r)}async rewrite(r,n,o){let{size:a,teeToStdout:i}=this.options;try{this.initPromise&&await this.initPromise,this.timeoutPromise&&await this.timeoutPromise;for(let f=0;f<r.length;++f){let{chunk:l}=r[f];this.size+=l.length,await this.file.write(l),i&&!this.stdout.destroyed&&this.stdout.write(l),a&&this.size>=a&&await this.rotate()}}catch(f){return o(f)}o()}async init(){let{immutable:r,initialRotation:n,interval:o,size:a}=this.options;if(r)return new Promise((f,l)=>ce.nextTick(()=>this.immutate(!0).then(f).catch(l)));let i;try{i=await vh(this.filename)}catch(f){if(f.code!=="ENOENT")throw f;return this.reopen(0)}if(!i.isFile())throw new Error(`Can't write on: ${this.filename} (it is not a file)`);if(n){this.intervalBounds(this.now());let f=this.prev;if(this.intervalBounds(new Date(i.mtime.getTime())),f!==this.prev)return this.rotate()}return this.size=i.size,!a||i.size<a?this.reopen(i.size):(o&&this.intervalBounds(this.now()),this.rotate())}async makePath(r){return Qb(r.split(ua).slice(0,-1).join(ua),{recursive:!0})}async reopen(r){let n;try{n=await Ra(this.filename,"a",this.options.mode)}catch(o){if(o.code!=="ENOENT")throw o;await this.makePath(this.filename),n=await Ra(this.filename,"a",this.options.mode)}this.file=n,this.size=r,this.interval(),this.emit("open",this.filename)}async reclose(){let{file:r}=this;if(r)return delete this.file,r.close()}now(){return new Date}async rotate(){let{immutable:r,rotate:n}=this.options;return this.size=0,this.rotation=this.now(),this.clear(),this.emit("rotation"),await this.reclose(),n?this.classical():r?this.immutate(!1):this.move()}async findName(){let{interval:r,path:n,intervalBoundary:o}=this.options;for(let a=1;a<1e3;++a){let i=n+this.generator(r&&o?new Date(this.prev):this.rotation,a);if(!await n_(i))return i}throw new Tu}async move(){let{compress:r}=this.options,n=await this.findName();return await this.touch(n),r?await this.compress(n):await Ru(this.filename,n),this.rotated(n)}async touch(r){let n;try{n=await this.fsOpen(r,"a")}catch(o){if(o.code!=="ENOENT")throw o;await this.makePath(r),n=await Ra(r,"a")}return await n.close(),this.unlink(r)}async classical(){let{compress:r,path:n,rotate:o}=this.options,a="";for(let i=o;i>0;--i){let f=n+this.generator(i),l=i===1?this.filename:n+this.generator(i-1);if(await n_(l))if(a||(a=f),i===1&&r)await this.compress(f);else try{await Ru(l,f)}catch(c){if(c.code!=="ENOENT")throw c;await this.makePath(f),await Ru(l,f)}}return this.rotated(a)}clear(){return this.timeout&&(clearTimeout(this.timeout),this.timeout=null),!0}intervalBoundsBig(r){let n=r.getFullYear(),o=r.getMonth(),a=r.getDate(),i=r.getHours(),{num:f,unit:l}=this.options.interval;l==="M"?(a=1,i=0):l==="d"?i=0:i=parseInt(i/f,10)*f,this.prev=new Date(n,o,a,i,0,0,0).getTime(),l==="M"?o+=f:l==="d"?a+=f:i+=f,this.next=new Date(n,o,a,i,0,0,0).getTime()}intervalBounds(r){let n=this.options.interval.unit;if(n==="M"||n==="d"||n==="h")this.intervalBoundsBig(r);else{let o=1e3*this.options.interval.num;n==="m"&&(o*=60),this.prev=parseInt(r.getTime()/o,10)*o,this.next=this.prev+o}return new Date(this.prev)}interval(){if(!this.options.interval)return;this.intervalBounds(this.now());let r=async()=>{let n=this.next-this.now().getTime();if(n<=0)try{this.timeoutPromise=this.rotate(),await this.timeoutPromise,delete this.timeoutPromise}catch{}else this.timeout=setTimeout(r,n>this.maxTimeout?this.maxTimeout:n),this.timeout.unref()};r()}async compress(r){let{compress:n}=this.options;return typeof n=="function"?await new Promise((o,a)=>{this.exec(n(this.filename,r),(i,f,l)=>{this.emit("external",f,l),i?a(i):o()})}):await this.gzip(r),this.unlink(this.filename)}async gzip(r){let{mode:n}=this.options,o=n?{mode:n}:{},a=this.fsCreateReadStream(this.filename,{}),i=this.fsCreateWriteStream(r,o),f=this.createGzip();return new Promise((l,c)=>{[a,i,f].map(d=>d.once("error",c)),i.once("finish",l),a.pipe(f).pipe(i)})}async rotated(r){let{maxFiles:n,maxSize:o}=this.options;return(n||o)&&await this.history(r),this.emit("rotated",r),this.reopen(0)}async history(r){let{history:n,maxFiles:o,maxSize:a}=this.options,i=[],f=[r];try{f=[...(await this.fsReadFile(n,"utf8")).toString().split(`
|
|
`),r]}catch(l){if(l.code!=="ENOENT")throw l}for(let l of f)if(l)try{let c=await this.fsStat(l);c.isFile()?i.push({name:l,size:c.size,time:c.ctime.getTime()}):this.emit("warning",new Error(`File '${l}' contained in history is not a regular file`))}catch(c){if(c.code!=="ENOENT")throw c}if(i.sort((l,c)=>l.time-c.time),o)for(;i.length>o;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!0)}if(a)for(;i.reduce((l,c)=>l+c.size,0)>a;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!1)}await t_(n,i.map(l=>l.name).join(`
|
|
`)+`
|
|
`,"utf-8"),this.emit("history")}async immutate(r){let{size:n}=this.options,o=this.now();for(let a=1;a<1e3;++a){let i=0,f;this.filename=this.options.path+this.generator(o,a);try{f=await this.fsStat(this.filename)}catch(l){if(l.code!=="ENOENT")throw l}if(f){if(i=f.size,!f.isFile())throw new Error(`Can't write on: '${this.filename}' (it is not a file)`);if(n&&i>=n)continue}if(r)return this.last=this.filename,this.reopen(i);await this.rotated(this.last),this.last=this.filename;return}throw new Tu}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function i_(e){return(t,r,n)=>{let o=parseInt(n,10);if(t!=="number"||o!==n||o<=0)throw new Error(`'${e}' option must be a positive integer number`)}}function wh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don't know how to handle 'options.${e}' type: ${r}`);n[e]=t(o)}}function s_(e,t,r){let n={};if(n.num=parseInt(e,10),isNaN(n.num))throw new Error(`Unknown 'options.${t}' format: ${e}`);if(n.num<=0)throw new Error(`A positive integer number is expected for 'options.${t}'`);if(n.unit=e.replace(/^[ 0]*/g,"").substr((n.num+"").length,1),n.unit.length===0)throw new Error(`Missing unit for 'options.${t}'`);if(!r[n.unit])throw new Error(`Unknown 'options.${t}' unit: ${n.unit}`);return n}var aB={M:!0,d:!0,h:!0,m:!0,s:!0};function bh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`An integer divider of ${r} is expected as ${t} for 'options.interval'`)}function sB(e){let t=s_(e,"interval",aB);switch(t.unit){case"h":bh(t,"hours",24);break;case"m":bh(t,"minutes",60);break;case"s":bh(t,"seconds",60);break}return t}var uB={B:!0,G:!0,K:!0,M:!0};function o_(e){let t=s_(e,"size",uB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var a_={encoding:(e,t,r)=>new n1(r),immutable:()=>{},initialRotation:()=>{},interval:wh("interval",sB),intervalBoundary:()=>{},maxFiles:i_("maxFiles"),maxSize:wh("maxSize",o_),mode:()=>{},omitExtension:()=>{},rotate:i_("rotate"),size:wh("size",o_),teeToStdout:()=>{},compress:(e,t,r)=>{if(!r)throw new Error("A value for 'options.compress' must be specified");if(e==="boolean")return t.compress=(n,o)=>`cat ${n} | gzip -c9 > ${o}`;if(e!=="function"){if(e!=="string")throw new Error(`Don't know how to handle 'options.compress' type: ${e}`);if(r!=="gzip")throw new Error(`Don't know how to handle compression method: ${r}`)}},history:e=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.history' type: ${e}`)},path:(e,t,r)=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.path' type: ${e}`);r[r.length-1]!==ua&&(t.path=r+ua)}};function fB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in a_))throw new Error(`Unknown option: ${r}`);t[r]=e[r],a_[r](o,t,n)}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function lB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function cB(e,t,r){let n=o=>(o>9?"":"0")+o;return(o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function u_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The "options" argument must be of type object. Received type ${typeof t}`);let r=fB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?lB(e,n!==void 0,o):cB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The "filename" argument must be one of type string or function. Received type ${typeof e}`);return new _h(a,r)}var Ah=Ln(g_()),m_=v_.isBrowser?null:u_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Qn=m_?(0,Ah.default)(m_):(0,Ah.default)(),xu=[Qn];Qn.onChild=e=>{xu.push(e)};var Bu=class{constructor(){this.logger=Qn.child({component:"CompletionCache"});this.options={maxSize:1*1024*1024,partiallyAcceptedCacheGeneration:{enabled:!0,perCharacter:{lines:1,words:10,max:30},perWord:{lines:1,max:20},perLine:{max:3}}};this.cache=new Ms({maxSize:this.options.maxSize,sizeCalculation:b_.default})}has(t){return this.cache.has(this.hash(t))}set(t,r){for(let n of this.createCacheEntries(t,r))this.logger.debug({entry:n},"Setting cache entry"),this.cache.set(this.hash(n.key),n.value);this.logger.debug({size:this.cache.calculatedSize},"Cache size")}get(t){return this.cache.get(this.hash(t))}hash(t){return(0,w_.default)(t)}createCacheEntries(t,r){let n=[{key:t,value:r}];if(this.options.partiallyAcceptedCacheGeneration.enabled){let o=r.choices.map(a=>this.calculatePartiallyAcceptedPositions(a.text).map(i=>({prefix:a.text.slice(0,i),suffix:a.text.slice(i),choiceIndex:a.index}))).flat().reduce((a,i)=>(a[i.prefix]=a[i.prefix]||[],a[i.prefix].push({suffix:i.suffix,choiceIndex:i.choiceIndex}),a),{});for(let a in o){let i={...t,text:t.text.slice(0,t.position)+a+t.text.slice(t.position),position:t.position+a.length},f={...r,choices:o[a].map(l=>({index:l.choiceIndex,text:l.suffix}))};n.push({key:i,value:f})}}return n}calculatePartiallyAcceptedPositions(t){let r=[],n=this.options.partiallyAcceptedCacheGeneration,o=Wn(t),a=0,i=0;for(;a<o.length-1&&a<n.perLine.max;)i+=o[a].length,r.push(i),a++;let f=o.slice(0,n.perWord.lines).map(Nl).flat();for(a=0,i=0;a<f.length&&a<n.perWord.max;)i+=f[a].length,r.push(i),a++;let l=o.slice(0,n.perCharacter.lines).map(Nl).flat().slice(0,n.perCharacter.words).join("");for(i=1;i<l.length&&i<n.perCharacter.max;)r.push(i),i++;return r.filter((c,d,y)=>y.indexOf(c)===d).sort((c,d)=>c-d)}};$();q();z();H();W();var E_=Ln(Il());var TB=Qn.child({component:"Postprocess"}),OB=e=>t=>{let r=e.text.slice(e.position),n=Wn(r),o=Wn(t);for(let a=Math.max(0,o.length-n.length);a<o.length;a++)if((0,E_.default)(o.slice(a),n.slice(0,t.length-a)))return TB.debug({input:t,suffix:r,duplicateAt:a},"Remove duplicate lines"),t.slice(0,a);return t},IB=e=>ks(e)?null:e,__=e=>async t=>(t.choices=(await Promise.all(t.choices.map(async r=>(r.text=await e(r.text),r)))).filter(Boolean),t);async function S_(e,t){return new Promise(r=>r(t)).then(__(OB(e))).then(__(IB))}var Cu=class extends jd{constructor(){super();this.logger=Qn.child({component:"TabbyAgent"});this.config=Z0;this.status="connecting";this.completionCache=new Bu;this.onConfigUpdated()}onConfigUpdated(){xu.forEach(r=>r.level=this.config.logs.level),this.api=new Qo({BASE:this.config.server.endpoint}),this.ping()}changeStatus(r){if(this.status!=r){this.status=r;let n={event:"statusChanged",status:r};this.logger.debug({event:n},"Status changed"),super.emit("statusChanged",n)}}async ping(r=0){try{return await ii.get(this.config.server.endpoint),this.changeStatus("ready"),!0}catch{return r>5?(this.changeStatus("disconnected"),!1):(this.changeStatus("connecting"),await H0(1e3),this.ping(r+1))}}callApi(r,n){this.logger.debug({api:r.name,request:n},"API request");let o=r.call(this.api.v1,n);return Ll(o.then(a=>(this.logger.debug({api:r.name,response:a},"API response"),this.changeStatus("ready"),a)).catch(a=>{throw this.logger.debug({api:r.name},"API request canceled"),a}).catch(a=>{throw this.logger.error({api:r.name,error:a},"API error"),this.changeStatus("disconnected"),a}),()=>{o.cancel()})}createSegments(r){let o=r.text.slice(0,r.position),a=Wn(o),i=r.text.slice(r.position),f=Wn(i);return{prefix:a.slice(Math.max(a.length-20,0)).join(""),suffix:f.slice(0,20).join("")}}initialize(r){return r.config&&this.updateConfig(r.config),r.client&&xu.forEach(n=>n.setBindings&&n.setBindings({client:r.client})),this.logger.debug({params:r},"Initialized"),!0}updateConfig(r){let n=(0,R_.default)(this.config,r);if(!(0,A_.default)(this.config,n)){this.config=n,this.onConfigUpdated();let o={event:"configUpdated",config:this.config};this.logger.debug({event:o},"Config updated"),super.emit("configUpdated",o)}return!0}getConfig(){return this.config}getStatus(){return this.status}getCompletions(r){if(this.completionCache.has(r))return this.logger.debug({request:r},"Completion cache hit"),new Or(a=>{a(this.completionCache.get(r))});let n=this.createSegments(r);if(ks(n.prefix))return this.logger.debug("Segment prefix is blank, returning empty completion response"),new Or(a=>{a({id:"agent-"+nf(),choices:[]})});let o=this.callApi(this.api.v1.completion,{language:r.language,segments:n});return Ll(o.then(a=>S_(r,a)).then(a=>(this.completionCache.set(r,a),a)),()=>{o.cancel()})}postEvent(r){return this.callApi(this.api.v1.event,r)}};$();q();z();H();W();var T_=["statusChanged","configUpdated"];return M_(xB);})();
|
|
/*! Bundled license information:
|
|
|
|
@jspm/core/nodelibs/browser/buffer.js:
|
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
|
|
ieee754/index.js:
|
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
|
|
buffer/index.js:
|
|
(*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*)
|
|
|
|
@jspm/core/nodelibs/browser/chunk-44e51b61.js:
|
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
|
|
@jspm/core/nodelibs/browser/assert.js:
|
|
(*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
* @license MIT
|
|
*)
|
|
*/
|
|
//# sourceMappingURL=index.global.js.map
|