tabby/clients/tabby-agent/dist/index.global.js

98 lines
240 KiB
JavaScript

var Tabby = (function (exports) {
'use strict';
var yC=Object.create;var Bs=Object.defineProperty;var gC=Object.getOwnPropertyDescriptor;var mC=Object.getOwnPropertyNames;var vC=Object.getPrototypeOf,_C=Object.prototype.hasOwnProperty;var EC=(t,e,r)=>e in t?Bs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var va=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var Mt=(t,e)=>()=>(t&&(e=t(t=0)),e);var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mn=(t,e)=>{for(var r in e)Bs(t,r,{get:e[r],enumerable:!0});},Jm=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of mC(e))!_C.call(t,o)&&o!==r&&Bs(t,o,{get:()=>e[o],enumerable:!(n=gC(e,o))||n.enumerable});return t};var _a=(t,e,r)=>(r=t!=null?yC(vC(t)):{},Jm(e||!t||!t.__esModule?Bs(r,"default",{value:t,enumerable:!0}):r,t));var bt=(t,e,r)=>(EC(t,typeof e!="symbol"?e+"":e,r),r),_h=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var ue=(t,e,r)=>(_h(t,e,"read from private field"),r?r.call(t):e.get(t)),St=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r);},ct=(t,e,r,n)=>(_h(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),_f=(t,e,r,n)=>({set _(o){ct(t,e,o,r);},get _(){return ue(t,e,n)}}),vt=(t,e,r)=>(_h(t,e,"access private method"),r);var le,x=Mt(()=>{le=globalThis;});var C=Mt(()=>{});var N=Mt(()=>{});var ne={};Mn(ne,{_debugEnd:()=>$v,_debugProcess:()=>Mv,_events:()=>t0,_eventsCount:()=>r0,_exiting:()=>Ev,_fatalExceptions:()=>Dv,_getActiveHandles:()=>Av,_getActiveRequests:()=>bv,_kill:()=>Ov,_linkedBinding:()=>vv,_maxListeners:()=>e0,_preload_modules:()=>Jv,_rawDebug:()=>gv,_startProfilerIdleNotifier:()=>jv,_stopProfilerIdleNotifier:()=>Hv,_tickCallback:()=>Uv,abort:()=>zv,addListener:()=>n0,allowedNodeEnvironmentFlags:()=>Pv,arch:()=>nv,argv:()=>av,argv0:()=>Xv,assert:()=>Lv,binding:()=>cv,chdir:()=>dv,config:()=>wv,cpuUsage:()=>Sf,cwd:()=>pv,debugPort:()=>Yv,default:()=>h0,dlopen:()=>Sv,domain:()=>_v,emit:()=>u0,emitWarning:()=>lv,env:()=>ov,execArgv:()=>sv,execPath:()=>Zv,exit:()=>Cv,features:()=>Bv,hasUncaughtExceptionCaptureCallback:()=>Fv,hrtime:()=>wf,kill:()=>xv,listeners:()=>c0,memoryUsage:()=>Iv,moduleLoadList:()=>mv,nextTick:()=>ev,off:()=>o0,on:()=>Ri,once:()=>i0,openStdin:()=>Nv,pid:()=>Vv,platform:()=>iv,ppid:()=>Kv,prependListener:()=>f0,prependOnceListener:()=>l0,reallyExit:()=>Rv,release:()=>yv,removeAllListeners:()=>s0,removeListener:()=>a0,resourceUsage:()=>Tv,setSourceMapsEnabled:()=>Qv,setUncaughtExceptionCaptureCallback:()=>kv,stderr:()=>Gv,stdin:()=>Wv,stdout:()=>qv,title:()=>rv,umask:()=>hv,uptime:()=>wa,version:()=>uv,versions:()=>fv});function Sh(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function wC(){!Ea||!Ro||(Ea=!1,Ro.length?Ai=Ro.concat(Ai):Ef=-1,Ai.length&&Qm());}function Qm(){if(!Ea){var t=setTimeout(wC,0);Ea=!0;for(var e=Ai.length;e;){for(Ro=Ai,Ai=[];++Ef<e;)Ro&&Ro[Ef].run();Ef=-1,e=Ai.length;}Ro=null,Ea=!1,clearTimeout(t);}}function ev(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ai.push(new tv(t,e)),Ai.length===1&&!Ea&&setTimeout(Qm,0);}function tv(t,e){this.fun=t,this.array=e;}function Fr(){}function vv(t){Sh("_linkedBinding");}function Sv(t){Sh("dlopen");}function bv(){return []}function Av(){return []}function Lv(t,e){if(!t)throw new Error(e||"assertion error")}function Fv(){return !1}function wa(){return Xi.now()/1e3}function wf(t){var e=Math.floor((Date.now()-Xi.now())*.001),r=Xi.now()*.001,n=Math.floor(r)+e,o=Math.floor(r%1*1e9);return t&&(n=n-t[0],o=o-t[1],o<0&&(n--,o+=wh)),[n,o]}function Ri(){return h0}function c0(t){return []}var Ai,Ea,Ro,Ef,rv,nv,iv,ov,av,sv,uv,fv,lv,cv,hv,pv,dv,yv,gv,mv,_v,Ev,wv,Rv,Ov,Sf,Tv,Iv,xv,Cv,Nv,Pv,Bv,Dv,kv,Uv,Mv,$v,jv,Hv,qv,Gv,Wv,zv,Vv,Kv,Zv,Yv,Xv,Jv,Qv,Xi,Eh,wh,e0,t0,r0,n0,i0,o0,a0,s0,u0,f0,l0,h0,bf=Mt(()=>{x();C();N();L();P();Ai=[],Ea=!1,Ef=-1;tv.prototype.run=function(){this.fun.apply(null,this.array);};rv="browser",nv="x64",iv="browser",ov={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},av=["/usr/bin/node"],sv=[],uv="v16.8.0",fv={},lv=function(t,e){console.warn((e?e+": ":"")+t);},cv=function(t){Sh("binding");},hv=function(t){return 0},pv=function(){return "/"},dv=function(t){},yv={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};gv=Fr,mv=[];_v={},Ev=!1,wv={};Rv=Fr,Ov=Fr,Sf=function(){return {}},Tv=Sf,Iv=Sf,xv=Fr,Cv=Fr,Nv=Fr,Pv={};Bv={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Dv=Fr,kv=Fr;Uv=Fr,Mv=Fr,$v=Fr,jv=Fr,Hv=Fr,qv=void 0,Gv=void 0,Wv=void 0,zv=Fr,Vv=2,Kv=1,Zv="/bin/usr/node",Yv=9229,Xv="node",Jv=[],Qv=Fr,Xi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Xi.now===void 0&&(Eh=Date.now(),Xi.timing&&Xi.timing.navigationStart&&(Eh=Xi.timing.navigationStart),Xi.now=()=>Date.now()-Eh);wh=1e9;wf.bigint=function(t){var e=wf(t);return typeof BigInt>"u"?e[0]*wh+e[1]:BigInt(e[0]*wh)+BigInt(e[1])};e0=10,t0={},r0=0;n0=Ri,i0=Ri,o0=Ri,a0=Ri,s0=Ri,u0=Fr,f0=Ri,l0=Ri;h0={version:uv,versions:fv,arch:nv,platform:iv,release:yv,_rawDebug:gv,moduleLoadList:mv,binding:cv,_linkedBinding:vv,_events:t0,_eventsCount:r0,_maxListeners:e0,on:Ri,addListener:n0,once:i0,off:o0,removeListener:a0,removeAllListeners:s0,emit:u0,prependListener:f0,prependOnceListener:l0,listeners:c0,domain:_v,_exiting:Ev,config:wv,dlopen:Sv,uptime:wa,_getActiveRequests:bv,_getActiveHandles:Av,reallyExit:Rv,_kill:Ov,cpuUsage:Sf,resourceUsage:Tv,memoryUsage:Iv,kill:xv,exit:Cv,openStdin:Nv,allowedNodeEnvironmentFlags:Pv,assert:Lv,features:Bv,_fatalExceptions:Dv,setUncaughtExceptionCaptureCallback:kv,hasUncaughtExceptionCaptureCallback:Fv,emitWarning:lv,nextTick:ev,_tickCallback:Uv,_debugProcess:Mv,_debugEnd:$v,_startProfilerIdleNotifier:jv,_stopProfilerIdleNotifier:Hv,stdout:qv,stdin:Wv,stderr:Gv,abort:zv,umask:hv,chdir:dv,cwd:pv,env:ov,title:rv,argv:av,execArgv:sv,pid:Vv,ppid:Kv,execPath:Zv,debugPort:Yv,hrtime:wf,argv0:Xv,_preload_modules:Jv,setSourceMapsEnabled:Qv};});var P=Mt(()=>{bf();});function SC(){if(p0)return Ds;p0=!0,Ds.byteLength=s,Ds.toByteArray=h,Ds.fromByteArray=g;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)t[o]=n[o],e[n.charCodeAt(o)]=o;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63;function a(v){var p=v.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=v.indexOf("=");_===-1&&(_=p);var b=_===p?0:4-_%4;return [_,b]}function s(v){var p=a(v),_=p[0],b=p[1];return (_+b)*3/4-b}function f(v,p,_){return (p+_)*3/4-_}function h(v){var p,_=a(v),b=_[0],O=_[1],B=new r(f(v,b,O)),$=0,H=O>0?b-4:b,Z;for(Z=0;Z<H;Z+=4)p=e[v.charCodeAt(Z)]<<18|e[v.charCodeAt(Z+1)]<<12|e[v.charCodeAt(Z+2)]<<6|e[v.charCodeAt(Z+3)],B[$++]=p>>16&255,B[$++]=p>>8&255,B[$++]=p&255;return O===2&&(p=e[v.charCodeAt(Z)]<<2|e[v.charCodeAt(Z+1)]>>4,B[$++]=p&255),O===1&&(p=e[v.charCodeAt(Z)]<<10|e[v.charCodeAt(Z+1)]<<4|e[v.charCodeAt(Z+2)]>>2,B[$++]=p>>8&255,B[$++]=p&255),B}function l(v){return t[v>>18&63]+t[v>>12&63]+t[v>>6&63]+t[v&63]}function d(v,p,_){for(var b,O=[],B=p;B<_;B+=3)b=(v[B]<<16&16711680)+(v[B+1]<<8&65280)+(v[B+2]&255),O.push(l(b));return O.join("")}function g(v){for(var p,_=v.length,b=_%3,O=[],B=16383,$=0,H=_-b;$<H;$+=B)O.push(d(v,$,$+B>H?H:$+B));return b===1?(p=v[_-1],O.push(t[p>>2]+t[p<<4&63]+"==")):b===2&&(p=(v[_-2]<<8)+v[_-1],O.push(t[p>>10]+t[p>>4&63]+t[p<<2&63]+"=")),O.join("")}return Ds}function bC(){if(d0)return Af;d0=!0;return Af.read=function(t,e,r,n,o){var i,a,s=o*8-n-1,f=(1<<s)-1,h=f>>1,l=-7,d=r?o-1:0,g=r?-1:1,v=t[e+d];for(d+=g,i=v&(1<<-l)-1,v>>=-l,l+=s;l>0;i=i*256+t[e+d],d+=g,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=a*256+t[e+d],d+=g,l-=8);if(i===0)i=1-h;else {if(i===f)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-h;}return (v?-1:1)*a*Math.pow(2,i-n)},Af.write=function(t,e,r,n,o,i){var a,s,f,h=i*8-o-1,l=(1<<h)-1,d=l>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:i-1,p=n?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+d>=1?e+=g/f:e+=g*Math.pow(2,1-d),e*f>=2&&(a++,f/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(e*f-1)*Math.pow(2,o),a=a+d):(s=e*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;t[r+v]=s&255,v+=p,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[r+v]=a&255,v+=p,a/=256,h-=8);t[r+v-p]|=_*128;},Af}function AC(){if(y0)return Oo;y0=!0;let t=SC(),e=bC(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Oo.Buffer=a,Oo.SlowBuffer=O,Oo.INSPECT_MAX_BYTES=50;let n=2147483647;Oo.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=o(),!a.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 m=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(m,u),m.foo()===42}catch{return !1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function i(m){if(m>n)throw new RangeError('The value "'+m+'" is invalid for option "size"');let u=new Uint8Array(m);return Object.setPrototypeOf(u,a.prototype),u}function a(m,u,c){if(typeof m=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(m)}return s(m,u,c)}a.poolSize=8192;function s(m,u,c){if(typeof m=="string")return d(m,u);if(ArrayBuffer.isView(m))return v(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(pt(m,ArrayBuffer)||m&&pt(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pt(m,SharedArrayBuffer)||m&&pt(m.buffer,SharedArrayBuffer)))return p(m,u,c);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let A=m.valueOf&&m.valueOf();if(A!=null&&A!==m)return a.from(A,u,c);let z=_(m);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return a.from(m[Symbol.toPrimitive]("string"),u,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}a.from=function(m,u,c){return s(m,u,c)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function h(m,u,c){return f(m),m<=0?i(m):u!==void 0?typeof c=="string"?i(m).fill(u,c):i(m).fill(u):i(m)}a.alloc=function(m,u,c){return h(m,u,c)};function l(m){return f(m),i(m<0?0:b(m)|0)}a.allocUnsafe=function(m){return l(m)},a.allocUnsafeSlow=function(m){return l(m)};function d(m,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let c=B(m,u)|0,A=i(c),z=A.write(m,u);return z!==c&&(A=A.slice(0,z)),A}function g(m){let u=m.length<0?0:b(m.length)|0,c=i(u);for(let A=0;A<u;A+=1)c[A]=m[A]&255;return c}function v(m){if(pt(m,Uint8Array)){let u=new Uint8Array(m);return p(u.buffer,u.byteOffset,u.byteLength)}return g(m)}function p(m,u,c){if(u<0||m.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<u+(c||0))throw new RangeError('"length" is outside of buffer bounds');let A;return u===void 0&&c===void 0?A=new Uint8Array(m):c===void 0?A=new Uint8Array(m,u):A=new Uint8Array(m,u,c),Object.setPrototypeOf(A,a.prototype),A}function _(m){if(a.isBuffer(m)){let u=b(m.length)|0,c=i(u);return c.length===0||m.copy(c,0,0,u),c}if(m.length!==void 0)return typeof m.length!="number"||Ut(m.length)?i(0):g(m);if(m.type==="Buffer"&&Array.isArray(m.data))return g(m.data)}function b(m){if(m>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return m|0}function O(m){return +m!=m&&(m=0),a.alloc(+m)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,c){if(pt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),pt(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),!a.isBuffer(u)||!a.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===c)return 0;let A=u.length,z=c.length;for(let S=0,ee=Math.min(A,z);S<ee;++S)if(u[S]!==c[S]){A=u[S],z=c[S];break}return A<z?-1:z<A?1:0},a.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},a.concat=function(u,c){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);let A;if(c===void 0)for(c=0,A=0;A<u.length;++A)c+=u[A].length;let z=a.allocUnsafe(c),S=0;for(A=0;A<u.length;++A){let ee=u[A];if(pt(ee,Uint8Array))S+ee.length>z.length?(a.isBuffer(ee)||(ee=a.from(ee)),ee.copy(z,S)):Uint8Array.prototype.set.call(z,ee,S);else if(a.isBuffer(ee))ee.copy(z,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=ee.length;}return z};function B(m,u){if(a.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||pt(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);let c=m.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&c===0)return 0;let z=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return We(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return _t(m).length;default:if(z)return A?-1:We(m).length;u=(""+u).toLowerCase(),z=!0;}}a.byteLength=B;function $(m,u,c){let A=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,u>>>=0,c<=u))return "";for(m||(m="utf8");;)switch(m){case"hex":return ie(this,u,c);case"utf8":case"utf-8":return se(this,u,c);case"ascii":return he(this,u,c);case"latin1":case"binary":return fe(this,u,c);case"base64":return Y(this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Se(this,u,c);default:if(A)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),A=!0;}}a.prototype._isBuffer=!0;function H(m,u,c){let A=m[u];m[u]=m[c],m[c]=A;}a.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<u;c+=2)H(this,c,c+1);return this},a.prototype.swap32=function(){let u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<u;c+=4)H(this,c,c+3),H(this,c+1,c+2);return this},a.prototype.swap64=function(){let u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<u;c+=8)H(this,c,c+7),H(this,c+1,c+6),H(this,c+2,c+5),H(this,c+3,c+4);return this},a.prototype.toString=function(){let u=this.length;return u===0?"":arguments.length===0?se(this,0,u):$.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){let u="",c=Oo.INSPECT_MAX_BYTES;return u=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(u+=" ... "),"<Buffer "+u+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(u,c,A,z,S){if(pt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(c===void 0&&(c=0),A===void 0&&(A=u?u.length:0),z===void 0&&(z=0),S===void 0&&(S=this.length),c<0||A>u.length||z<0||S>this.length)throw new RangeError("out of range index");if(z>=S&&c>=A)return 0;if(z>=S)return -1;if(c>=A)return 1;if(c>>>=0,A>>>=0,z>>>=0,S>>>=0,this===u)return 0;let ee=S-z,Oe=A-c,qe=Math.min(ee,Oe),de=this.slice(z,S),Re=u.slice(c,A);for(let U=0;U<qe;++U)if(de[U]!==Re[U]){ee=de[U],Oe=Re[U];break}return ee<Oe?-1:Oe<ee?1:0};function Z(m,u,c,A,z){if(m.length===0)return -1;if(typeof c=="string"?(A=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ut(c)&&(c=z?0:m.length-1),c<0&&(c=m.length+c),c>=m.length){if(z)return -1;c=m.length-1;}else if(c<0)if(z)c=0;else return -1;if(typeof u=="string"&&(u=a.from(u,A)),a.isBuffer(u))return u.length===0?-1:V(m,u,c,A,z);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(m,u,c):Uint8Array.prototype.lastIndexOf.call(m,u,c):V(m,[u],c,A,z);throw new TypeError("val must be string, number or Buffer")}function V(m,u,c,A,z){let S=1,ee=m.length,Oe=u.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(m.length<2||u.length<2)return -1;S=2,ee/=2,Oe/=2,c/=2;}function qe(Re,U){return S===1?Re[U]:Re.readUInt16BE(U*S)}let de;if(z){let Re=-1;for(de=c;de<ee;de++)if(qe(m,de)===qe(u,Re===-1?0:de-Re)){if(Re===-1&&(Re=de),de-Re+1===Oe)return Re*S}else Re!==-1&&(de-=de-Re),Re=-1;}else for(c+Oe>ee&&(c=ee-Oe),de=c;de>=0;de--){let Re=!0;for(let U=0;U<Oe;U++)if(qe(m,de+U)!==qe(u,U)){Re=!1;break}if(Re)return de}return -1}a.prototype.includes=function(u,c,A){return this.indexOf(u,c,A)!==-1},a.prototype.indexOf=function(u,c,A){return Z(this,u,c,A,!0)},a.prototype.lastIndexOf=function(u,c,A){return Z(this,u,c,A,!1)};function j(m,u,c,A){c=Number(c)||0;let z=m.length-c;A?(A=Number(A),A>z&&(A=z)):A=z;let S=u.length;A>S/2&&(A=S/2);let ee;for(ee=0;ee<A;++ee){let Oe=parseInt(u.substr(ee*2,2),16);if(Ut(Oe))return ee;m[c+ee]=Oe;}return ee}function D(m,u,c,A){return mt(We(u,m.length-c),m,c,A)}function q(m,u,c,A){return mt(Xe(u),m,c,A)}function te(m,u,c,A){return mt(_t(u),m,c,A)}function ae(m,u,c,A){return mt(Qe(u,m.length-c),m,c,A)}a.prototype.write=function(u,c,A,z){if(c===void 0)z="utf8",A=this.length,c=0;else if(A===void 0&&typeof c=="string")z=c,A=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(A)?(A=A>>>0,z===void 0&&(z="utf8")):(z=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let S=this.length-c;if((A===void 0||A>S)&&(A=S),u.length>0&&(A<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let ee=!1;for(;;)switch(z){case"hex":return j(this,u,c,A);case"utf8":case"utf-8":return D(this,u,c,A);case"ascii":case"latin1":case"binary":return q(this,u,c,A);case"base64":return te(this,u,c,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,u,c,A);default:if(ee)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),ee=!0;}},a.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(m,u,c){return u===0&&c===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(u,c))}function se(m,u,c){c=Math.min(m.length,c);let A=[],z=u;for(;z<c;){let S=m[z],ee=null,Oe=S>239?4:S>223?3:S>191?2:1;if(z+Oe<=c){let qe,de,Re,U;switch(Oe){case 1:S<128&&(ee=S);break;case 2:qe=m[z+1],(qe&192)===128&&(U=(S&31)<<6|qe&63,U>127&&(ee=U));break;case 3:qe=m[z+1],de=m[z+2],(qe&192)===128&&(de&192)===128&&(U=(S&15)<<12|(qe&63)<<6|de&63,U>2047&&(U<55296||U>57343)&&(ee=U));break;case 4:qe=m[z+1],de=m[z+2],Re=m[z+3],(qe&192)===128&&(de&192)===128&&(Re&192)===128&&(U=(S&15)<<18|(qe&63)<<12|(de&63)<<6|Re&63,U>65535&&U<1114112&&(ee=U));}}ee===null?(ee=65533,Oe=1):ee>65535&&(ee-=65536,A.push(ee>>>10&1023|55296),ee=56320|ee&1023),A.push(ee),z+=Oe;}return ce(A)}let _e=4096;function ce(m){let u=m.length;if(u<=_e)return String.fromCharCode.apply(String,m);let c="",A=0;for(;A<u;)c+=String.fromCharCode.apply(String,m.slice(A,A+=_e));return c}function he(m,u,c){let A="";c=Math.min(m.length,c);for(let z=u;z<c;++z)A+=String.fromCharCode(m[z]&127);return A}function fe(m,u,c){let A="";c=Math.min(m.length,c);for(let z=u;z<c;++z)A+=String.fromCharCode(m[z]);return A}function ie(m,u,c){let A=m.length;(!u||u<0)&&(u=0),(!c||c<0||c>A)&&(c=A);let z="";for(let S=u;S<c;++S)z+=yr[m[S]];return z}function Se(m,u,c){let A=m.slice(u,c),z="";for(let S=0;S<A.length-1;S+=2)z+=String.fromCharCode(A[S]+A[S+1]*256);return z}a.prototype.slice=function(u,c){let A=this.length;u=~~u,c=c===void 0?A:~~c,u<0?(u+=A,u<0&&(u=0)):u>A&&(u=A),c<0?(c+=A,c<0&&(c=0)):c>A&&(c=A),c<u&&(c=u);let z=this.subarray(u,c);return Object.setPrototypeOf(z,a.prototype),z};function Te(m,u,c){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+u>c)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,c,A){u=u>>>0,c=c>>>0,A||Te(u,c,this.length);let z=this[u],S=1,ee=0;for(;++ee<c&&(S*=256);)z+=this[u+ee]*S;return z},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,c,A){u=u>>>0,c=c>>>0,A||Te(u,c,this.length);let z=this[u+--c],S=1;for(;c>0&&(S*=256);)z+=this[u+--c]*S;return z},a.prototype.readUint8=a.prototype.readUInt8=function(u,c){return u=u>>>0,c||Te(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,c){return u=u>>>0,c||Te(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,c){return u=u>>>0,c||Te(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readBigUInt64LE=Nt(function(u){u=u>>>0,M(u,"offset");let c=this[u],A=this[u+7];(c===void 0||A===void 0)&&J(u,this.length-8);let z=c+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,S=this[++u]+this[++u]*2**8+this[++u]*2**16+A*2**24;return BigInt(z)+(BigInt(S)<<BigInt(32))}),a.prototype.readBigUInt64BE=Nt(function(u){u=u>>>0,M(u,"offset");let c=this[u],A=this[u+7];(c===void 0||A===void 0)&&J(u,this.length-8);let z=c*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],S=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+A;return (BigInt(z)<<BigInt(32))+BigInt(S)}),a.prototype.readIntLE=function(u,c,A){u=u>>>0,c=c>>>0,A||Te(u,c,this.length);let z=this[u],S=1,ee=0;for(;++ee<c&&(S*=256);)z+=this[u+ee]*S;return S*=128,z>=S&&(z-=Math.pow(2,8*c)),z},a.prototype.readIntBE=function(u,c,A){u=u>>>0,c=c>>>0,A||Te(u,c,this.length);let z=c,S=1,ee=this[u+--z];for(;z>0&&(S*=256);)ee+=this[u+--z]*S;return S*=128,ee>=S&&(ee-=Math.pow(2,8*c)),ee},a.prototype.readInt8=function(u,c){return u=u>>>0,c||Te(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,c){u=u>>>0,c||Te(u,2,this.length);let A=this[u]|this[u+1]<<8;return A&32768?A|4294901760:A},a.prototype.readInt16BE=function(u,c){u=u>>>0,c||Te(u,2,this.length);let A=this[u+1]|this[u]<<8;return A&32768?A|4294901760:A},a.prototype.readInt32LE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readBigInt64LE=Nt(function(u){u=u>>>0,M(u,"offset");let c=this[u],A=this[u+7];(c===void 0||A===void 0)&&J(u,this.length-8);let z=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(A<<24);return (BigInt(z)<<BigInt(32))+BigInt(c+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),a.prototype.readBigInt64BE=Nt(function(u){u=u>>>0,M(u,"offset");let c=this[u],A=this[u+7];(c===void 0||A===void 0)&&J(u,this.length-8);let z=(c<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return (BigInt(z)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+A)}),a.prototype.readFloatLE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),e.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,c){return u=u>>>0,c||Te(u,4,this.length),e.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,c){return u=u>>>0,c||Te(u,8,this.length),e.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,c){return u=u>>>0,c||Te(u,8,this.length),e.read(this,u,!1,52,8)};function Pe(m,u,c,A,z,S){if(!a.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>z||u<S)throw new RangeError('"value" argument is out of bounds');if(c+A>m.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,c,A,z){if(u=+u,c=c>>>0,A=A>>>0,!z){let Oe=Math.pow(2,8*A)-1;Pe(this,u,c,A,Oe,0);}let S=1,ee=0;for(this[c]=u&255;++ee<A&&(S*=256);)this[c+ee]=u/S&255;return c+A},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,c,A,z){if(u=+u,c=c>>>0,A=A>>>0,!z){let Oe=Math.pow(2,8*A)-1;Pe(this,u,c,A,Oe,0);}let S=A-1,ee=1;for(this[c+S]=u&255;--S>=0&&(ee*=256);)this[c+S]=u/ee&255;return c+A},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,1,255,0),this[c]=u&255,c+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,2,65535,0),this[c]=u&255,this[c+1]=u>>>8,c+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,2,65535,0),this[c]=u>>>8,this[c+1]=u&255,c+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,4,4294967295,0),this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255,c+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,4,4294967295,0),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4};function Je(m,u,c,A,z){me(u,A,z,m,c,7);let S=Number(u&BigInt(4294967295));m[c++]=S,S=S>>8,m[c++]=S,S=S>>8,m[c++]=S,S=S>>8,m[c++]=S;let ee=Number(u>>BigInt(32)&BigInt(4294967295));return m[c++]=ee,ee=ee>>8,m[c++]=ee,ee=ee>>8,m[c++]=ee,ee=ee>>8,m[c++]=ee,c}function et(m,u,c,A,z){me(u,A,z,m,c,7);let S=Number(u&BigInt(4294967295));m[c+7]=S,S=S>>8,m[c+6]=S,S=S>>8,m[c+5]=S,S=S>>8,m[c+4]=S;let ee=Number(u>>BigInt(32)&BigInt(4294967295));return m[c+3]=ee,ee=ee>>8,m[c+2]=ee,ee=ee>>8,m[c+1]=ee,ee=ee>>8,m[c]=ee,c+8}a.prototype.writeBigUInt64LE=Nt(function(u,c=0){return Je(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Nt(function(u,c=0){return et(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(u,c,A,z){if(u=+u,c=c>>>0,!z){let qe=Math.pow(2,8*A-1);Pe(this,u,c,A,qe-1,-qe);}let S=0,ee=1,Oe=0;for(this[c]=u&255;++S<A&&(ee*=256);)u<0&&Oe===0&&this[c+S-1]!==0&&(Oe=1),this[c+S]=(u/ee>>0)-Oe&255;return c+A},a.prototype.writeIntBE=function(u,c,A,z){if(u=+u,c=c>>>0,!z){let qe=Math.pow(2,8*A-1);Pe(this,u,c,A,qe-1,-qe);}let S=A-1,ee=1,Oe=0;for(this[c+S]=u&255;--S>=0&&(ee*=256);)u<0&&Oe===0&&this[c+S+1]!==0&&(Oe=1),this[c+S]=(u/ee>>0)-Oe&255;return c+A},a.prototype.writeInt8=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,1,127,-128),u<0&&(u=255+u+1),this[c]=u&255,c+1},a.prototype.writeInt16LE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,2,32767,-32768),this[c]=u&255,this[c+1]=u>>>8,c+2},a.prototype.writeInt16BE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,2,32767,-32768),this[c]=u>>>8,this[c+1]=u&255,c+2},a.prototype.writeInt32LE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,4,2147483647,-2147483648),this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24,c+4},a.prototype.writeInt32BE=function(u,c,A){return u=+u,c=c>>>0,A||Pe(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4},a.prototype.writeBigInt64LE=Nt(function(u,c=0){return Je(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Nt(function(u,c=0){return et(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function st(m,u,c,A,z,S){if(c+A>m.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function it(m,u,c,A,z){return u=+u,c=c>>>0,z||st(m,u,c,4),e.write(m,u,c,A,23,4),c+4}a.prototype.writeFloatLE=function(u,c,A){return it(this,u,c,!0,A)},a.prototype.writeFloatBE=function(u,c,A){return it(this,u,c,!1,A)};function Ie(m,u,c,A,z){return u=+u,c=c>>>0,z||st(m,u,c,8),e.write(m,u,c,A,52,8),c+8}a.prototype.writeDoubleLE=function(u,c,A){return Ie(this,u,c,!0,A)},a.prototype.writeDoubleBE=function(u,c,A){return Ie(this,u,c,!1,A)},a.prototype.copy=function(u,c,A,z){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(A||(A=0),!z&&z!==0&&(z=this.length),c>=u.length&&(c=u.length),c||(c=0),z>0&&z<A&&(z=A),z===A||u.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),u.length-c<z-A&&(z=u.length-c+A);let S=z-A;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,A,z):Uint8Array.prototype.set.call(u,this.subarray(A,z),c),S},a.prototype.fill=function(u,c,A,z){if(typeof u=="string"){if(typeof c=="string"?(z=c,c=0,A=this.length):typeof A=="string"&&(z=A,A=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!a.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(u.length===1){let ee=u.charCodeAt(0);(z==="utf8"&&ee<128||z==="latin1")&&(u=ee);}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(c<0||this.length<c||this.length<A)throw new RangeError("Out of range index");if(A<=c)return this;c=c>>>0,A=A===void 0?this.length:A>>>0,u||(u=0);let S;if(typeof u=="number")for(S=c;S<A;++S)this[S]=u;else {let ee=a.isBuffer(u)?u:a.from(u,z),Oe=ee.length;if(Oe===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(S=0;S<A-c;++S)this[S+c]=ee[S%Oe];}return this};let I={};function F(m,u,c){I[m]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,delete this.name;}get code(){return m}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0});}toString(){return `${this.name} [${m}]: ${this.message}`}};}F("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(m,u){return `The "${m}" argument must be of type number. Received type ${typeof u}`},TypeError),F("ERR_OUT_OF_RANGE",function(m,u,c){let A=`The value of "${m}" is out of range.`,z=c;return Number.isInteger(c)&&Math.abs(c)>2**32?z=K(String(c)):typeof c=="bigint"&&(z=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(z=K(z)),z+="n"),A+=` It must be ${u}. Received ${z}`,A},RangeError);function K(m){let u="",c=m.length,A=m[0]==="-"?1:0;for(;c>=A+4;c-=3)u=`_${m.slice(c-3,c)}${u}`;return `${m.slice(0,c)}${u}`}function be(m,u,c){M(u,"offset"),(m[u]===void 0||m[u+c]===void 0)&&J(u,m.length-(c+1));}function me(m,u,c,A,z,S){if(m>c||m<u){let ee=typeof u=="bigint"?"n":"",Oe;throw S>3?u===0||u===BigInt(0)?Oe=`>= 0${ee} and < 2${ee} ** ${(S+1)*8}${ee}`:Oe=`>= -(2${ee} ** ${(S+1)*8-1}${ee}) and < 2 ** ${(S+1)*8-1}${ee}`:Oe=`>= ${u}${ee} and <= ${c}${ee}`,new I.ERR_OUT_OF_RANGE("value",Oe,m)}be(A,z,S);}function M(m,u){if(typeof m!="number")throw new I.ERR_INVALID_ARG_TYPE(u,"number",m)}function J(m,u,c){throw Math.floor(m)!==m?(M(m,c),new I.ERR_OUT_OF_RANGE(c||"offset","an integer",m)):u<0?new I.ERR_BUFFER_OUT_OF_BOUNDS:new I.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${u}`,m)}let Ne=/[^+/0-9A-Za-z-_]/g;function je(m){if(m=m.split("=")[0],m=m.trim().replace(Ne,""),m.length<2)return "";for(;m.length%4!==0;)m=m+"=";return m}function We(m,u){u=u||1/0;let c,A=m.length,z=null,S=[];for(let ee=0;ee<A;++ee){if(c=m.charCodeAt(ee),c>55295&&c<57344){if(!z){if(c>56319){(u-=3)>-1&&S.push(239,191,189);continue}else if(ee+1===A){(u-=3)>-1&&S.push(239,191,189);continue}z=c;continue}if(c<56320){(u-=3)>-1&&S.push(239,191,189),z=c;continue}c=(z-55296<<10|c-56320)+65536;}else z&&(u-=3)>-1&&S.push(239,191,189);if(z=null,c<128){if((u-=1)<0)break;S.push(c);}else if(c<2048){if((u-=2)<0)break;S.push(c>>6|192,c&63|128);}else if(c<65536){if((u-=3)<0)break;S.push(c>>12|224,c>>6&63|128,c&63|128);}else if(c<1114112){if((u-=4)<0)break;S.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128);}else throw new Error("Invalid code point")}return S}function Xe(m){let u=[];for(let c=0;c<m.length;++c)u.push(m.charCodeAt(c)&255);return u}function Qe(m,u){let c,A,z,S=[];for(let ee=0;ee<m.length&&!((u-=2)<0);++ee)c=m.charCodeAt(ee),A=c>>8,z=c%256,S.push(z),S.push(A);return S}function _t(m){return t.toByteArray(je(m))}function mt(m,u,c,A){let z;for(z=0;z<A&&!(z+c>=u.length||z>=m.length);++z)u[z+c]=m[z];return z}function pt(m,u){return m instanceof u||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===u.name}function Ut(m){return m!==m}let yr=function(){let m="0123456789abcdef",u=new Array(256);for(let c=0;c<16;++c){let A=c*16;for(let z=0;z<16;++z)u[A+z]=m[c]+m[z];}return u}();function Nt(m){return typeof BigInt>"u"?Qt:m}function Qt(){throw new Error("BigInt not supported")}return Oo}var Ds,p0,Af,d0,Oo,y0,To,pe,Rf=Mt(()=>{x();C();N();L();P();Ds={},p0=!1;Af={},d0=!1;Oo={},y0=!1;To=AC();pe=To.Buffer;});var L=Mt(()=>{Rf();});function Wt(){Wt.init.call(this);}function Of(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function R0(t){return t._maxListeners===void 0?Wt.defaultMaxListeners:t._maxListeners}function _0(t,e,r,n){var o,i,a,s;if(Of(r),(i=t._events)===void 0?(i=t._events=Object.create(null),t._eventsCount=0):(i.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),a===void 0)a=i[e]=r,++t._eventsCount;else if(typeof a=="function"?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=R0(t))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,s=f,console&&console.warn&&console.warn(s);}return t}function RC(){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 E0(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=RC.bind(n);return o.listener=r,n.wrapFn=o,o}function w0(t,e,r){var n=t._events;if(n===void 0)return [];var o=n[e];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(i){for(var a=new Array(i.length),s=0;s<a.length;++s)a[s]=i[s].listener||i[s];return a}(o):O0(o,o.length)}function S0(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function O0(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}var b0,A0,Sa,g0,m0,v0,fr,Oi=Mt(()=>{x();C();N();L();P();Sa=typeof Reflect=="object"?Reflect:null,g0=Sa&&typeof Sa.apply=="function"?Sa.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};A0=Sa&&typeof Sa.ownKeys=="function"?Sa.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};m0=Number.isNaN||function(t){return t!=t};b0=Wt,Wt.EventEmitter=Wt,Wt.prototype._events=void 0,Wt.prototype._eventsCount=0,Wt.prototype._maxListeners=void 0;v0=10;Object.defineProperty(Wt,"defaultMaxListeners",{enumerable:!0,get:function(){return v0},set:function(t){if(typeof t!="number"||t<0||m0(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");v0=t;}}),Wt.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;},Wt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||m0(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},Wt.prototype.getMaxListeners=function(){return R0(this)},Wt.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=t==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return !1;if(n){var i;if(e.length>0&&(i=e[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[t];if(s===void 0)return !1;if(typeof s=="function")g0(s,this,e);else {var f=s.length,h=O0(s,f);for(r=0;r<f;++r)g0(h[r],this,e);}return !0},Wt.prototype.addListener=function(t,e){return _0(this,t,e,!1)},Wt.prototype.on=Wt.prototype.addListener,Wt.prototype.prependListener=function(t,e){return _0(this,t,e,!0)},Wt.prototype.once=function(t,e){return Of(e),this.on(t,E0(this,t,e)),this},Wt.prototype.prependOnceListener=function(t,e){return Of(e),this.prependListener(t,E0(this,t,e)),this},Wt.prototype.removeListener=function(t,e){var r,n,o,i,a;if(Of(e),(n=this._events)===void 0)return this;if((r=n[t])===void 0)return this;if(r===e||r.listener===e)--this._eventsCount==0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if(typeof r!="function"){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;o===0?r.shift():function(s,f){for(;f+1<s.length;f++)s[f]=s[f+1];s.pop();}(r,o),r.length===1&&(n[t]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",t,a||e);}return this},Wt.prototype.off=Wt.prototype.removeListener,Wt.prototype.removeAllListeners=function(t){var e,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[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var o,i=Object.keys(r);for(n=0;n<i.length;++n)(o=i[n])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(e=r[t])=="function")this.removeListener(t,e);else if(e!==void 0)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},Wt.prototype.listeners=function(t){return w0(this,t,!0)},Wt.prototype.rawListeners=function(t){return w0(this,t,!1)},Wt.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):S0.call(t,e)},Wt.prototype.listenerCount=S0,Wt.prototype.eventNames=function(){return this._eventsCount>0?A0(this._events):[]};fr=b0;});var bh={};Mn(bh,{EventEmitter:()=>ks,default:()=>fr,defaultMaxListeners:()=>OC,init:()=>TC,listenerCount:()=>IC,on:()=>xC,once:()=>CC});var ks,OC,TC,IC,xC,CC,ri=Mt(()=>{x();C();N();L();P();Oi();Oi();fr.once=function(t,e){return new Promise((r,n)=>{function o(...a){i!==void 0&&t.removeListener("error",i),r(a);}let i;e!=="error"&&(i=a=>{t.removeListener(name,o),n(a);},t.once("error",i)),t.once(e,o);})};fr.on=function(t,e){let r=[],n=[],o=null,i=!1,a={async next(){let h=r.shift();if(h)return createIterResult(h,!1);if(o){let l=Promise.reject(o);return o=null,l}return i?createIterResult(void 0,!0):new Promise((l,d)=>n.push({resolve:l,reject:d}))},async return(){t.removeListener(e,s),t.removeListener("error",f),i=!0;for(let h of n)h.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(h){o=h,t.removeListener(e,s),t.removeListener("error",f);},[Symbol.asyncIterator](){return this}};return t.on(e,s),t.on("error",f),a;function s(...h){let l=n.shift();l?l.resolve(createIterResult(h,!1)):r.push(h);}function f(h){i=!0;let l=n.shift();l?l.reject(h):o=h,a.return();}};({EventEmitter:ks,defaultMaxListeners:OC,init:TC,listenerCount:IC,on:xC,once:CC}=fr);});var Oh=Fe((zz,x0)=>{x();C();N();L();P();var I0=Object.prototype.toString;x0.exports=function(e){var r=I0.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&I0.call(e.callee)==="[object Function]"),n};});var U0=Fe((Jz,F0)=>{x();C();N();L();P();var k0;Object.keys||(Fs=Object.prototype.hasOwnProperty,Th=Object.prototype.toString,C0=Oh(),Ih=Object.prototype.propertyIsEnumerable,N0=!Ih.call({toString:null},"toString"),P0=Ih.call(function(){},"prototype"),Us=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],If=function(t){var e=t.constructor;return e&&e.prototype===t},L0={$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},B0=function(){if(typeof window>"u")return !1;for(var t in window)try{if(!L0["$"+t]&&Fs.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{If(window[t]);}catch{return !0}}catch{return !0}return !1}(),D0=function(t){if(typeof window>"u"||!B0)return If(t);try{return If(t)}catch{return !1}},k0=function(e){var r=e!==null&&typeof e=="object",n=Th.call(e)==="[object Function]",o=C0(e),i=r&&Th.call(e)==="[object String]",a=[];if(!r&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=P0&&n;if(i&&e.length>0&&!Fs.call(e,0))for(var f=0;f<e.length;++f)a.push(String(f));if(o&&e.length>0)for(var h=0;h<e.length;++h)a.push(String(h));else for(var l in e)!(s&&l==="prototype")&&Fs.call(e,l)&&a.push(String(l));if(N0)for(var d=D0(e),g=0;g<Us.length;++g)!(d&&Us[g]==="constructor")&&Fs.call(e,Us[g])&&a.push(Us[g]);return a});var Fs,Th,C0,Ih,N0,P0,Us,If,L0,B0,D0;F0.exports=k0;});var Cf=Fe((iV,j0)=>{x();C();N();L();P();var BC=Array.prototype.slice,DC=Oh(),M0=Object.keys,xf=M0?function(e){return M0(e)}:U0(),$0=Object.keys;xf.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return DC(n)?$0(BC.call(n)):$0(n)});}else Object.keys=xf;return Object.keys||xf};j0.exports=xf;});var Ms=Fe((lV,H0)=>{x();C();N();L();P();H0.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var e={},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;e[r]=o;for(r in e)return !1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return !1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==o||a.enumerable!==!0)return !1}return !0};});var Nf=Fe((gV,G0)=>{x();C();N();L();P();var q0=typeof Symbol<"u"&&Symbol,kC=Ms();G0.exports=function(){return typeof q0!="function"||typeof Symbol!="function"||typeof q0("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kC()};});var V0=Fe((SV,z0)=>{x();C();N();L();P();var W0={foo:{}},FC=Object;z0.exports=function(){return {__proto__:W0}.foo===W0.foo&&!({__proto__:null}instanceof FC)};});var Z0=Fe((IV,K0)=>{x();C();N();L();P();var UC="Function.prototype.bind called on incompatible ",xh=Array.prototype.slice,MC=Object.prototype.toString,$C="[object Function]";K0.exports=function(e){var r=this;if(typeof r!="function"||MC.call(r)!==$C)throw new TypeError(UC+r);for(var n=xh.call(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,n.concat(xh.call(arguments)));return Object(l)===l?l:this}else return r.apply(e,n.concat(xh.call(arguments)))},a=Math.max(0,r.length-n.length),s=[],f=0;f<a;f++)s.push("$"+f);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var h=function(){};h.prototype=r.prototype,o.prototype=new h,h.prototype=null;}return o};});var Pf=Fe((BV,Y0)=>{x();C();N();L();P();var jC=Z0();Y0.exports=Function.prototype.bind||jC;});var Ch=Fe(($V,X0)=>{x();C();N();L();P();var HC=Pf();X0.exports=HC.call(Function.call,Object.prototype.hasOwnProperty);});var $n=Fe((zV,r_)=>{x();C();N();L();P();var Dt,Ta=SyntaxError,t_=Function,Oa=TypeError,Nh=function(t){try{return t_('"use strict"; return ('+t+").constructor;")()}catch{}},Io=Object.getOwnPropertyDescriptor;var Ph=function(){throw new Oa},qC=Io?function(){try{return Ph}catch{try{return Io(arguments,"callee").get}catch{return Ph}}}():Ph,Aa=Nf()(),GC=V0()(),Sr=Object.getPrototypeOf||(GC?function(t){return t.__proto__}:null),Ra={},WC=typeof Uint8Array>"u"||!Sr?Dt:Sr(Uint8Array),xo={"%AggregateError%":typeof AggregateError>"u"?Dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Dt:ArrayBuffer,"%ArrayIteratorPrototype%":Aa&&Sr?Sr([][Symbol.iterator]()):Dt,"%AsyncFromSyncIteratorPrototype%":Dt,"%AsyncFunction%":Ra,"%AsyncGenerator%":Ra,"%AsyncGeneratorFunction%":Ra,"%AsyncIteratorPrototype%":Ra,"%Atomics%":typeof Atomics>"u"?Dt:Atomics,"%BigInt%":typeof BigInt>"u"?Dt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Dt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Dt:FinalizationRegistry,"%Function%":t_,"%GeneratorFunction%":Ra,"%Int8Array%":typeof Int8Array>"u"?Dt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Dt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Aa&&Sr?Sr(Sr([][Symbol.iterator]())):Dt,"%JSON%":typeof JSON=="object"?JSON:Dt,"%Map%":typeof Map>"u"?Dt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Aa||!Sr?Dt:Sr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Dt:Promise,"%Proxy%":typeof Proxy>"u"?Dt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Dt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Aa||!Sr?Dt:Sr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Aa&&Sr?Sr(""[Symbol.iterator]()):Dt,"%Symbol%":Aa?Symbol:Dt,"%SyntaxError%":Ta,"%ThrowTypeError%":qC,"%TypedArray%":WC,"%TypeError%":Oa,"%Uint8Array%":typeof Uint8Array>"u"?Dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Dt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Dt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Dt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Dt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Dt:WeakSet};var zC=function t(e){var r;if(e==="%AsyncFunction%")r=Nh("async function () {}");else if(e==="%GeneratorFunction%")r=Nh("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Nh("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype);}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&Sr&&(r=Sr(o.prototype));}return xo[e]=r,r},Q0={"%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"]},$s=Pf(),Lf=Ch(),VC=$s.call(Function.call,Array.prototype.concat),KC=$s.call(Function.apply,Array.prototype.splice),e_=$s.call(Function.call,String.prototype.replace),Bf=$s.call(Function.call,String.prototype.slice),ZC=$s.call(Function.call,RegExp.prototype.exec),YC=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,XC=/\\(\\)?/g,JC=function(e){var r=Bf(e,0,1),n=Bf(e,-1);if(r==="%"&&n!=="%")throw new Ta("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ta("invalid intrinsic syntax, expected opening `%`");var o=[];return e_(e,YC,function(i,a,s,f){o[o.length]=s?e_(f,XC,"$1"):a||i;}),o},QC=function(e,r){var n=e,o;if(Lf(Q0,n)&&(o=Q0[n],n="%"+o[0]+"%"),Lf(xo,n)){var i=xo[n];if(i===Ra&&(i=zC(n)),typeof i>"u"&&!r)throw new Oa("intrinsic "+e+" exists, but is not available. Please file an issue!");return {alias:o,name:n,value:i}}throw new Ta("intrinsic "+e+" does not exist!")};r_.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Oa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Oa('"allowMissing" argument must be a boolean');if(ZC(/^%?[^%]*%?$/,e)===null)throw new Ta("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=JC(e),o=n.length>0?n[0]:"",i=QC("%"+o+"%",r),a=i.name,s=i.value,f=!1,h=i.alias;h&&(o=h[0],KC(n,VC([0,1],h)));for(var l=1,d=!0;l<n.length;l+=1){var g=n[l],v=Bf(g,0,1),p=Bf(g,-1);if((v==='"'||v==="'"||v==="`"||p==='"'||p==="'"||p==="`")&&v!==p)throw new Ta("property names with quotes must have matching quotes");if((g==="constructor"||!d)&&(f=!0),o+="."+g,a="%"+o+"%",Lf(xo,a))s=xo[a];else if(s!=null){if(!(g in s)){if(!r)throw new Oa("base intrinsic for "+e+" exists, but the property is not available.");return}if(Io&&l+1>=n.length){var _=Io(s,g);d=!!_,d&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[g];}else d=Lf(s,g),s=s[g];d&&!f&&(xo[a]=s);}}return s};});var i_=Fe((JV,n_)=>{x();C();N();L();P();var eN=$n(),Lh=eN("%Object.defineProperty%",!0),Bh=function(){if(Lh)try{return Lh({},"a",{value:1}),!0}catch{return !1}return !1};Bh.hasArrayLengthDefineBug=function(){if(!Bh())return null;try{return Lh([],"length",{value:1}).length!==1}catch{return !0}};n_.exports=Bh;});var Ji=Fe((iK,u_)=>{x();C();N();L();P();var tN=Cf(),rN=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",nN=Object.prototype.toString,iN=Array.prototype.concat,o_=Object.defineProperty,oN=function(t){return typeof t=="function"&&nN.call(t)==="[object Function]"},aN=i_()(),a_=o_&&aN,sN=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!oN(n)||!n())return}a_?o_(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r;},s_=function(t,e){var r=arguments.length>2?arguments[2]:{},n=tN(e);rN&&(n=iN.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)sN(t,n[o],e[n[o]],r[n[o]]);};s_.supportsDescriptors=!!a_;u_.exports=s_;});var xa=Fe((lK,Df)=>{x();C();N();L();P();var Dh=Pf(),Ia=$n(),c_=Ia("%Function.prototype.apply%"),h_=Ia("%Function.prototype.call%"),p_=Ia("%Reflect.apply%",!0)||Dh.call(h_,c_),f_=Ia("%Object.getOwnPropertyDescriptor%",!0),Co=Ia("%Object.defineProperty%",!0),uN=Ia("%Math.max%");if(Co)try{Co({},"a",{value:1});}catch{Co=null;}Df.exports=function(e){var r=p_(Dh,h_,arguments);if(f_&&Co){var n=f_(r,"length");n.configurable&&Co(r,"length",{value:1+uN(0,e.length-(arguments.length-1))});}return r};var l_=function(){return p_(Dh,c_,arguments)};Co?Co(Df.exports,"apply",{value:l_}):Df.exports.apply=l_;});var Jr=Fe((gK,g_)=>{x();C();N();L();P();var d_=$n(),y_=xa(),fN=y_(d_("String.prototype.indexOf"));g_.exports=function(e,r){var n=d_(e,!!r);return typeof n=="function"&&fN(e,".prototype.")>-1?y_(n):n};});var kh=Fe((SK,w_)=>{x();C();N();L();P();var lN=Cf(),__=Ms()(),E_=Jr(),m_=Object,cN=E_("Array.prototype.push"),v_=E_("Object.prototype.propertyIsEnumerable"),hN=__?Object.getOwnPropertySymbols:null;w_.exports=function(e,r){if(e==null)throw new TypeError("target must be an object");var n=m_(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=m_(arguments[o]),a=lN(i),s=__&&(Object.getOwnPropertySymbols||hN);if(s)for(var f=s(i),h=0;h<f.length;++h){var l=f[h];v_(i,l)&&cN(a,l);}for(var d=0;d<a.length;++d){var g=a[d];if(v_(i,g)){var v=i[g];n[g]=v;}}}return n};});var Uh=Fe((IK,S_)=>{x();C();N();L();P();var Fh=kh(),pN=function(){if(!Object.assign)return !1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var o=Object.assign({},r),i="";for(var a in o)i+=a;return t!==i},dN=function(){if(!Object.assign||!Object.preventExtensions)return !1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy");}catch{return t[1]==="y"}return !1};S_.exports=function(){return !Object.assign||pN()||dN()?Fh:Object.assign};});var A_=Fe((BK,b_)=>{x();C();N();L();P();var yN=Ji(),gN=Uh();b_.exports=function(){var e=gN();return yN(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e};});var I_=Fe(($K,T_)=>{x();C();N();L();P();var mN=Ji(),vN=xa(),_N=kh(),R_=Uh(),EN=A_(),wN=vN.apply(R_()),O_=function(e,r){return wN(Object,arguments)};mN(O_,{getPolyfill:R_,implementation:_N,shim:EN});T_.exports=O_;});var C_=Fe((zK,x_)=>{x();C();N();L();P();var Hs=function(){return typeof function(){}.name=="string"},js=Object.getOwnPropertyDescriptor;Hs.functionsHaveConfigurableNames=function(){if(!Hs()||!js)return !1;var e=js(function(){},"name");return !!e&&!!e.configurable};var SN=Function.prototype.bind;Hs.boundFunctionsHaveNames=function(){return Hs()&&typeof SN=="function"&&function(){}.bind().name!==""};x_.exports=Hs;});var $h=Fe((JK,Mh)=>{x();C();N();L();P();var bN=C_().functionsHaveConfigurableNames(),AN=Object,RN=TypeError;Mh.exports=function(){if(this!=null&&this!==AN(this))throw new RN("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e};bN&&Object.defineProperty&&Object.defineProperty(Mh.exports,"name",{value:"get flags"});});var jh=Fe((iZ,N_)=>{x();C();N();L();P();var ON=$h(),TN=Ji().supportsDescriptors,IN=Object.getOwnPropertyDescriptor;N_.exports=function(){if(TN&&/a/mig.flags==="gim"){var e=IN(RegExp.prototype,"flags");if(e&&typeof e.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 e.get}}return ON};});var B_=Fe((lZ,L_)=>{x();C();N();L();P();var xN=Ji().supportsDescriptors,CN=jh(),NN=Object.getOwnPropertyDescriptor,PN=Object.defineProperty,LN=TypeError,P_=Object.getPrototypeOf,BN=/a/;L_.exports=function(){if(!xN||!P_)throw new LN("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=CN(),r=P_(BN),n=NN(r,"flags");return (!n||n.get!==e)&&PN(r,"flags",{configurable:!0,enumerable:!1,get:e}),e};});var U_=Fe((gZ,F_)=>{x();C();N();L();P();var DN=Ji(),kN=xa(),FN=$h(),D_=jh(),UN=B_(),k_=kN(D_());DN(k_,{getPolyfill:D_,implementation:FN,shim:UN});F_.exports=k_;});var Ti=Fe((SZ,M_)=>{x();C();N();L();P();var MN=Ms();M_.exports=function(){return MN()&&!!Symbol.toStringTag};});var qh=Fe((IZ,j_)=>{x();C();N();L();P();var $N=Ti()(),jN=Jr(),Hh=jN("Object.prototype.toString"),kf=function(e){return $N&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Hh(e)==="[object Arguments]"},$_=function(e){return kf(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Hh(e)!=="[object Array]"&&Hh(e.callee)==="[object Function]"},HN=function(){return kf(arguments)}();kf.isLegacyArguments=$_;j_.exports=HN?kf:$_;});var H_=Fe(()=>{x();C();N();L();P();});var uE=Fe((jZ,sE)=>{x();C();N();L();P();var Qh=typeof Map=="function"&&Map.prototype,Gh=Object.getOwnPropertyDescriptor&&Qh?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Uf=Qh&&Gh&&typeof Gh.get=="function"?Gh.get:null,q_=Qh&&Map.prototype.forEach,ep=typeof Set=="function"&&Set.prototype,Wh=Object.getOwnPropertyDescriptor&&ep?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Mf=ep&&Wh&&typeof Wh.get=="function"?Wh.get:null,G_=ep&&Set.prototype.forEach,qN=typeof WeakMap=="function"&&WeakMap.prototype,Gs=qN?WeakMap.prototype.has:null,GN=typeof WeakSet=="function"&&WeakSet.prototype,Ws=GN?WeakSet.prototype.has:null,WN=typeof WeakRef=="function"&&WeakRef.prototype,W_=WN?WeakRef.prototype.deref:null,zN=Boolean.prototype.valueOf,VN=Object.prototype.toString,KN=Function.prototype.toString,ZN=String.prototype.match,tp=String.prototype.slice,eo=String.prototype.replace,YN=String.prototype.toUpperCase,z_=String.prototype.toLowerCase,tE=RegExp.prototype.test,V_=Array.prototype.concat,ni=Array.prototype.join,XN=Array.prototype.slice,K_=Math.floor,Kh=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zh=Object.getOwnPropertySymbols,Zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ca||"symbol")?Symbol.toStringTag:null,rE=Object.prototype.propertyIsEnumerable,Z_=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Y_(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||tE.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-K_(-t):K_(t);if(n!==t){var o=String(n),i=tp.call(e,o.length+1);return eo.call(o,r,"$&_")+"."+eo.call(eo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return eo.call(e,r,"$&_")}var Yh=H_(),X_=Yh.custom,J_=iE(X_)?X_:null;sE.exports=function t(e,r,n,o){var i=r||{};if(Qi(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Qi(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Qi(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Qi(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Qi(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof e>"u")return "undefined";if(e===null)return "null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return aE(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return s?Y_(e,f):f}if(typeof e=="bigint"){var h=String(e)+"n";return s?Y_(e,h):h}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return Xh(e)?"[Array]":"[Object]";var d=yP(i,n);if(typeof o>"u")o=[];else if(oE(o,e)>=0)return "[Circular]";function g(se,_e,ce){if(_e&&(o=XN.call(o),o.push(_e)),ce){var he={depth:i.depth};return Qi(i,"quoteStyle")&&(he.quoteStyle=i.quoteStyle),t(se,he,n+1,o)}return t(se,i,n+1,o)}if(typeof e=="function"&&!Q_(e)){var v=aP(e),p=Ff(e,g);return "[Function"+(v?": "+v:" (anonymous)")+"]"+(p.length>0?" { "+ni.call(p,", ")+" }":"")}if(iE(e)){var _=Ca?eo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zh.call(e);return typeof e=="object"&&!Ca?qs(_):_}if(hP(e)){for(var b="<"+z_.call(String(e.nodeName)),O=e.attributes||[],B=0;B<O.length;B++)b+=" "+O[B].name+"="+nE(JN(O[B].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+z_.call(String(e.nodeName))+">",b}if(Xh(e)){if(e.length===0)return "[]";var $=Ff(e,g);return d&&!dP($)?"["+Jh($,d)+"]":"[ "+ni.call($,", ")+" ]"}if(eP(e)){var H=Ff(e,g);return !("cause"in Error.prototype)&&"cause"in e&&!rE.call(e,"cause")?"{ ["+String(e)+"] "+ni.call(V_.call("[cause]: "+g(e.cause),H),", ")+" }":H.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ni.call(H,", ")+" }"}if(typeof e=="object"&&a){if(J_&&typeof e[J_]=="function"&&Yh)return Yh(e,{depth:l-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(sP(e)){var Z=[];return q_&&q_.call(e,function(se,_e){Z.push(g(_e,e,!0)+" => "+g(se,e));}),eE("Map",Uf.call(e),Z,d)}if(lP(e)){var V=[];return G_&&G_.call(e,function(se){V.push(g(se,e));}),eE("Set",Mf.call(e),V,d)}if(uP(e))return Vh("WeakMap");if(cP(e))return Vh("WeakSet");if(fP(e))return Vh("WeakRef");if(rP(e))return qs(g(Number(e)));if(iP(e))return qs(g(Kh.call(e)));if(nP(e))return qs(zN.call(e));if(tP(e))return qs(g(String(e)));if(!QN(e)&&!Q_(e)){var j=Ff(e,g),D=Z_?Z_(e)===Object.prototype:e instanceof Object||e.constructor===Object,q=e instanceof Object?"":"null prototype",te=!D&&Ur&&Object(e)===e&&Ur in e?tp.call(to(e),8,-1):q?"Object":"",ae=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Y=ae+(te||q?"["+ni.call(V_.call([],te||[],q||[]),": ")+"] ":"");return j.length===0?Y+"{}":d?Y+"{"+Jh(j,d)+"}":Y+"{ "+ni.call(j,", ")+" }"}return String(e)};function nE(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function JN(t){return eo.call(String(t),/"/g,"&quot;")}function Xh(t){return to(t)==="[object Array]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function QN(t){return to(t)==="[object Date]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function Q_(t){return to(t)==="[object RegExp]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function eP(t){return to(t)==="[object Error]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function tP(t){return to(t)==="[object String]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function rP(t){return to(t)==="[object Number]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function nP(t){return to(t)==="[object Boolean]"&&(!Ur||!(typeof t=="object"&&Ur in t))}function iE(t){if(Ca)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return !0;if(!t||typeof t!="object"||!Zh)return !1;try{return Zh.call(t),!0}catch{}return !1}function iP(t){if(!t||typeof t!="object"||!Kh)return !1;try{return Kh.call(t),!0}catch{}return !1}var oP=Object.prototype.hasOwnProperty||function(t){return t in this};function Qi(t,e){return oP.call(t,e)}function to(t){return VN.call(t)}function aP(t){if(t.name)return t.name;var e=ZN.call(KN.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function oE(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}function sP(t){if(!Uf||!t||typeof t!="object")return !1;try{Uf.call(t);try{Mf.call(t);}catch{return !0}return t instanceof Map}catch{}return !1}function uP(t){if(!Gs||!t||typeof t!="object")return !1;try{Gs.call(t,Gs);try{Ws.call(t,Ws);}catch{return !0}return t instanceof WeakMap}catch{}return !1}function fP(t){if(!W_||!t||typeof t!="object")return !1;try{return W_.call(t),!0}catch{}return !1}function lP(t){if(!Mf||!t||typeof t!="object")return !1;try{Mf.call(t);try{Uf.call(t);}catch{return !0}return t instanceof Set}catch{}return !1}function cP(t){if(!Ws||!t||typeof t!="object")return !1;try{Ws.call(t,Ws);try{Gs.call(t,Gs);}catch{return !0}return t instanceof WeakSet}catch{}return !1}function hP(t){return !t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function aE(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return aE(tp.call(t,0,e.maxStringLength),e)+n}var o=eo.call(eo.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pP);return nE(o,"single",e)}function pP(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+YN.call(e.toString(16))}function qs(t){return "Object("+t+")"}function Vh(t){return t+" { ? }"}function eE(t,e,r,n){var o=n?Jh(r,n):ni.call(r,", ");return t+" ("+e+") {"+o+"}"}function dP(t){for(var e=0;e<t.length;e++)if(oE(t[e],`
`)>=0)return !1;return !0}function yP(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ni.call(Array(t.indent+1)," ");else return null;return {base:r,prev:ni.call(Array(e+1),r)}}function Jh(t,e){if(t.length===0)return "";var r=`
`+e.prev+e.base;return r+ni.call(t,","+r)+`
`+e.prev}function Ff(t,e){var r=Xh(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Qi(t,o)?e(t[o],t):"";}var i=typeof zh=="function"?zh(t):[],a;if(Ca){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s];}for(var f in t)Qi(t,f)&&(r&&String(Number(f))===f&&f<t.length||Ca&&a["$"+f]instanceof Symbol||(tE.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof zh=="function")for(var h=0;h<i.length;h++)rE.call(t,i[h])&&n.push("["+e(i[h])+"]: "+e(t[i[h]],t));return n}});var ip=Fe((VZ,fE)=>{x();C();N();L();P();var rp=$n(),Na=Jr(),gP=uE(),mP=rp("%TypeError%"),$f=rp("%WeakMap%",!0),jf=rp("%Map%",!0),vP=Na("WeakMap.prototype.get",!0),_P=Na("WeakMap.prototype.set",!0),EP=Na("WeakMap.prototype.has",!0),wP=Na("Map.prototype.get",!0),SP=Na("Map.prototype.set",!0),bP=Na("Map.prototype.has",!0),np=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},AP=function(t,e){var r=np(t,e);return r&&r.value},RP=function(t,e,r){var n=np(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r};},OP=function(t,e){return !!np(t,e)};fE.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new mP("Side channel does not contain "+gP(i))},get:function(i){if($f&&i&&(typeof i=="object"||typeof i=="function")){if(e)return vP(e,i)}else if(jf){if(r)return wP(r,i)}else if(n)return AP(n,i)},has:function(i){if($f&&i&&(typeof i=="object"||typeof i=="function")){if(e)return EP(e,i)}else if(jf){if(r)return bP(r,i)}else if(n)return OP(n,i);return !1},set:function(i,a){$f&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new $f),_P(e,i,a)):jf?(r||(r=new jf),SP(r,i,a)):(n||(n={key:{},next:null}),RP(n,i,a));}};return o};});var cE=Fe((QZ,lE)=>{x();C();N();L();P();var TP=$n(),IP=Ch(),zs=ip()(),Ii=TP("%TypeError%"),op={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`O` is not an object");if(typeof e!="string")throw new Ii("`slot` must be a string");if(zs.assert(t),!op.has(t,e))throw new Ii("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`O` is not an object");if(typeof e!="string")throw new Ii("`slot` must be a string");var r=zs.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`O` is not an object");if(typeof e!="string")throw new Ii("`slot` must be a string");var r=zs.get(t);return !!r&&IP(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`O` is not an object");if(typeof e!="string")throw new Ii("`slot` must be a string");var n=zs.get(t);n||(n={},zs.set(t,n)),n["$"+e]=r;}};Object.freeze&&Object.freeze(op);lE.exports=op;});var dE=Fe((oY,pE)=>{x();C();N();L();P();var Vs=cE(),xP=SyntaxError,hE=typeof StopIteration=="object"?StopIteration:null;pE.exports=function(e){if(!hE)throw new xP("this environment lacks StopIteration");Vs.set(e,"[[Done]]",!1);var r={next:function(){var o=Vs.get(this,"[[Iterator]]"),i=Vs.get(o,"[[Done]]");try{return {done:i,value:i?void 0:o.next()}}catch(a){if(Vs.set(o,"[[Done]]",!0),a!==hE)throw a;return {done:!0,value:void 0}}}};return Vs.set(r,"[[Iterator]]",e),r};});var ap=Fe((cY,yE)=>{x();C();N();L();P();var CP={}.toString;yE.exports=Array.isArray||function(t){return CP.call(t)=="[object Array]"};});var sp=Fe((mY,gE)=>{x();C();N();L();P();var NP=String.prototype.valueOf,PP=function(e){try{return NP.call(e),!0}catch{return !1}},LP=Object.prototype.toString,BP="[object String]",DP=Ti()();gE.exports=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:DP?PP(e):LP.call(e)===BP};});var fp=Fe((bY,_E)=>{x();C();N();L();P();var up=typeof Map=="function"&&Map.prototype?Map:null,kP=typeof Set=="function"&&Set.prototype?Set:null,Hf;up||(Hf=function(e){return !1});var vE=up?Map.prototype.has:null,mE=kP?Set.prototype.has:null;!Hf&&!vE&&(Hf=function(e){return !1});_E.exports=Hf||function(e){if(!e||typeof e!="object")return !1;try{if(vE.call(e),mE)try{mE.call(e);}catch{return !0}return e instanceof up}catch{}return !1};});var cp=Fe((xY,SE)=>{x();C();N();L();P();var FP=typeof Map=="function"&&Map.prototype?Map:null,lp=typeof Set=="function"&&Set.prototype?Set:null,qf;lp||(qf=function(e){return !1});var EE=FP?Map.prototype.has:null,wE=lp?Set.prototype.has:null;!qf&&!wE&&(qf=function(e){return !1});SE.exports=qf||function(e){if(!e||typeof e!="object")return !1;try{if(wE.call(e),EE)try{EE.call(e);}catch{return !0}return e instanceof lp}catch{}return !1};});var BE=Fe((DY,zf)=>{x();C();N();L();P();var bE=qh(),AE=dE();Nf()()||Ms()()?(Gf=Symbol.iterator,zf.exports=function(e){if(e!=null&&typeof e[Gf]<"u")return e[Gf]();if(bE(e))return Array.prototype[Gf].call(e)}):(RE=ap(),OE=sp(),hp=$n(),TE=hp("%Map%",!0),IE=hp("%Set%",!0),In=Jr(),pp=In("Array.prototype.push"),dp=In("String.prototype.charCodeAt"),xE=In("String.prototype.slice"),CE=function(e,r){var n=e.length;if(r+1>=n)return r+1;var o=dp(e,r);if(o<55296||o>56319)return r+1;var i=dp(e,r+1);return i<56320||i>57343?r+1:r+2},Wf=function(e){var r=0;return {next:function(){var o=r>=e.length,i;return o||(i=e[r],r+=1),{done:o,value:i}}}},yp=function(e,r){if(RE(e)||bE(e))return Wf(e);if(OE(e)){var n=0;return {next:function(){var i=CE(e,n),a=xE(e,n,i);return n=i,{done:i>e.length,value:a}}}}if(r&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()},!TE&&!IE?zf.exports=function(e){if(e!=null)return yp(e,!0)}:(NE=fp(),PE=cp(),gp=In("Map.prototype.forEach",!0),mp=In("Set.prototype.forEach",!0),(typeof ne>"u"||!ne.versions||!ne.versions.node)&&(vp=In("Map.prototype.iterator",!0),_p=In("Set.prototype.iterator",!0)),Ep=In("Map.prototype.@@iterator",!0)||In("Map.prototype._es6-shim iterator_",!0),wp=In("Set.prototype.@@iterator",!0)||In("Set.prototype._es6-shim iterator_",!0),LE=function(e){if(NE(e)){if(vp)return AE(vp(e));if(Ep)return Ep(e);if(gp){var r=[];return gp(e,function(o,i){pp(r,[i,o]);}),Wf(r)}}if(PE(e)){if(_p)return AE(_p(e));if(wp)return wp(e);if(mp){var n=[];return mp(e,function(o){pp(n,o);}),Wf(n)}}},zf.exports=function(e){return LE(e)||yp(e)}));var Gf,RE,OE,hp,TE,IE,In,pp,dp,xE,CE,Wf,yp,NE,PE,gp,mp,vp,_p,Ep,wp,LE;});var Sp=Fe((jY,kE)=>{x();C();N();L();P();var DE=function(t){return t!==t};kE.exports=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||DE(e)&&DE(r))};});var bp=Fe((VY,FE)=>{x();C();N();L();P();var UP=Sp();FE.exports=function(){return typeof Object.is=="function"?Object.is:UP};});var ME=Fe((QY,UE)=>{x();C();N();L();P();var MP=bp(),$P=Ji();UE.exports=function(){var e=MP();return $P(Object,{is:e},{is:function(){return Object.is!==e}}),e};});var qE=Fe((oX,HE)=>{x();C();N();L();P();var jP=Ji(),HP=xa(),qP=Sp(),$E=bp(),GP=ME(),jE=HP($E(),Object);jP(jE,{getPolyfill:$E,implementation:qP,shim:GP});HE.exports=jE;});var VE=Fe((cX,zE)=>{x();C();N();L();P();var WE=Function.prototype.toString,Pa=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Rp,Vf;if(typeof Pa=="function"&&typeof Object.defineProperty=="function")try{Rp=Object.defineProperty({},"length",{get:function(){throw Vf}}),Vf={},Pa(function(){throw 42},null,Rp);}catch(t){t!==Vf&&(Pa=null);}else Pa=null;var WP=/^\s*class\b/,Op=function(e){try{var r=WE.call(e);return WP.test(r)}catch{return !1}},Ap=function(e){try{return Op(e)?!1:(WE.call(e),!0)}catch{return !1}},Kf=Object.prototype.toString,zP="[object Object]",VP="[object Function]",KP="[object GeneratorFunction]",ZP="[object HTMLAllCollection]",YP="[object HTML document.all class]",XP="[object HTMLCollection]",JP=typeof Symbol=="function"&&!!Symbol.toStringTag,QP=!(0 in[,]),Tp=function(){return !1};typeof document=="object"&&(GE=document.all,Kf.call(GE)===Kf.call(document.all)&&(Tp=function(e){if((QP||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Kf.call(e);return (r===ZP||r===YP||r===XP||r===zP)&&e("")==null}catch{}return !1}));var GE;zE.exports=Pa?function(e){if(Tp(e))return !0;if(!e||typeof e!="function"&&typeof e!="object")return !1;try{Pa(e,null,Rp);}catch(r){if(r!==Vf)return !1}return !Op(e)&&Ap(e)}:function(e){if(Tp(e))return !0;if(!e||typeof e!="function"&&typeof e!="object")return !1;if(JP)return Ap(e);if(Op(e))return !1;var r=Kf.call(e);return r!==VP&&r!==KP&&!/^\[object HTML/.test(r)?!1:Ap(e)};});var Ip=Fe((mX,ZE)=>{x();C();N();L();P();var eL=VE(),tL=Object.prototype.toString,KE=Object.prototype.hasOwnProperty,rL=function(e,r,n){for(var o=0,i=e.length;o<i;o++)KE.call(e,o)&&(n==null?r(e[o],o,e):r.call(n,e[o],o,e));},nL=function(e,r,n){for(var o=0,i=e.length;o<i;o++)n==null?r(e.charAt(o),o,e):r.call(n,e.charAt(o),o,e);},iL=function(e,r,n){for(var o in e)KE.call(e,o)&&(n==null?r(e[o],o,e):r.call(n,e[o],o,e));},oL=function(e,r,n){if(!eL(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),tL.call(e)==="[object Array]"?rL(e,r,o):typeof e=="string"?nL(e,r,o):iL(e,r,o);};ZE.exports=oL;});var Cp=Fe((bX,YE)=>{x();C();N();L();P();var xp=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],aL=typeof globalThis>"u"?le:globalThis;YE.exports=function(){for(var e=[],r=0;r<xp.length;r++)typeof aL[xp[r]]=="function"&&(e[e.length]=xp[r]);return e};});var Np=Fe((xX,XE)=>{x();C();N();L();P();var sL=$n(),Zf=sL("%Object.getOwnPropertyDescriptor%",!0);if(Zf)try{Zf([],"length");}catch{Zf=null;}XE.exports=Zf;});var Bp=Fe((DX,rw)=>{x();C();N();L();P();var JE=Ip(),uL=Cp(),Lp=Jr(),fL=Lp("Object.prototype.toString"),QE=Ti()(),Yf=Np(),lL=typeof globalThis>"u"?le:globalThis,ew=uL(),cL=Lp("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return -1},hL=Lp("String.prototype.slice"),tw={},Pp=Object.getPrototypeOf;QE&&Yf&&Pp&&JE(ew,function(t){var e=new lL[t];if(Symbol.toStringTag in e){var r=Pp(e),n=Yf(r,Symbol.toStringTag);if(!n){var o=Pp(r);n=Yf(o,Symbol.toStringTag);}tw[t]=n.get;}});var pL=function(e){var r=!1;return JE(tw,function(n,o){if(!r)try{r=n.call(e)===o;}catch{}}),r};rw.exports=function(e){if(!e||typeof e!="object")return !1;if(!QE||!(Symbol.toStringTag in e)){var r=hL(fL(e),8,-1);return cL(ew,r)>-1}return Yf?pL(e):!1};});var Dp=Fe((jX,uw)=>{x();C();N();L();P();var dL=xa(),yL=Jr(),sw=$n(),gL=Bp(),nw=sw("ArrayBuffer",!0),iw=sw("Float32Array",!0),Xf=yL("ArrayBuffer.prototype.byteLength",!0),ow=nw&&!Xf&&new nw().slice,aw=ow&&dL(ow);uw.exports=Xf||aw?function(e){if(!e||typeof e!="object")return !1;try{return Xf?Xf(e):aw(e,0),!0}catch{return !1}}:iw?function(e){try{return new iw(e).buffer===e&&!gL(e)}catch(r){return typeof e=="object"&&r.name==="RangeError"}}:function(e){return !1};});var lw=Fe((VX,fw)=>{x();C();N();L();P();var mL=Date.prototype.getDay,vL=function(e){try{return mL.call(e),!0}catch{return !1}},_L=Object.prototype.toString,EL="[object Date]",wL=Ti()();fw.exports=function(e){return typeof e!="object"||e===null?!1:wL?vL(e):_L.call(e)===EL};});var yw=Fe((QX,dw)=>{x();C();N();L();P();var kp=Jr(),cw=Ti()(),hw,pw,Fp,Up;cw&&(hw=kp("Object.prototype.hasOwnProperty"),pw=kp("RegExp.prototype.exec"),Fp={},Jf=function(){throw Fp},Up={toString:Jf,valueOf:Jf},typeof Symbol.toPrimitive=="symbol"&&(Up[Symbol.toPrimitive]=Jf));var Jf,SL=kp("Object.prototype.toString"),bL=Object.getOwnPropertyDescriptor,AL="[object RegExp]";dw.exports=cw?function(e){if(!e||typeof e!="object")return !1;var r=bL(e,"lastIndex"),n=r&&hw(r,"value");if(!n)return !1;try{pw(e,Up);}catch(o){return o===Fp}}:function(e){return !e||typeof e!="object"&&typeof e!="function"?!1:SL(e)===AL};});var vw=Fe((oJ,mw)=>{x();C();N();L();P();var RL=Jr(),gw=RL("SharedArrayBuffer.prototype.byteLength",!0);mw.exports=gw?function(e){if(!e||typeof e!="object")return !1;try{return gw(e),!0}catch{return !1}}:function(e){return !1};});var Ew=Fe((cJ,_w)=>{x();C();N();L();P();var OL=Number.prototype.toString,TL=function(e){try{return OL.call(e),!0}catch{return !1}},IL=Object.prototype.toString,xL="[object Number]",CL=Ti()();_w.exports=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:CL?TL(e):IL.call(e)===xL};});var bw=Fe((mJ,Sw)=>{x();C();N();L();P();var ww=Jr(),NL=ww("Boolean.prototype.toString"),PL=ww("Object.prototype.toString"),LL=function(e){try{return NL(e),!0}catch{return !1}},BL="[object Boolean]",DL=Ti()();Sw.exports=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:DL&&Symbol.toStringTag in e?LL(e):PL(e)===BL};});var Tw=Fe((bJ,Mp)=>{x();C();N();L();P();var kL=Object.prototype.toString,FL=Nf()();FL?(Aw=Symbol.prototype.toString,Rw=/^Symbol\(.*\)$/,Ow=function(e){return typeof e.valueOf()!="symbol"?!1:Rw.test(Aw.call(e))},Mp.exports=function(e){if(typeof e=="symbol")return !0;if(kL.call(e)!=="[object Symbol]")return !1;try{return Ow(e)}catch{return !1}}):Mp.exports=function(e){return !1};var Aw,Rw,Ow;});var Cw=Fe((xJ,xw)=>{x();C();N();L();P();var Iw=typeof BigInt<"u"&&BigInt;xw.exports=function(){return typeof Iw=="function"&&typeof BigInt=="function"&&typeof Iw(42)=="bigint"&&typeof BigInt(42)=="bigint"};});var Lw=Fe((DJ,$p)=>{x();C();N();L();P();var UL=Cw()();UL?(Nw=BigInt.prototype.valueOf,Pw=function(e){try{return Nw.call(e),!0}catch{}return !1},$p.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:Pw(e)}):$p.exports=function(e){return !1};var Nw,Pw;});var Dw=Fe((jJ,Bw)=>{x();C();N();L();P();var ML=sp(),$L=Ew(),jL=bw(),HL=Tw(),qL=Lw();Bw.exports=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(ML(e))return "String";if($L(e))return "Number";if(jL(e))return "Boolean";if(HL(e))return "Symbol";if(qL(e))return "BigInt"};});var Uw=Fe((VJ,Fw)=>{x();C();N();L();P();var Qf=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,kw=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,el;Qf||(el=function(e){return !1});var Hp=Qf?Qf.prototype.has:null,jp=kw?kw.prototype.has:null;!el&&!Hp&&(el=function(e){return !1});Fw.exports=el||function(e){if(!e||typeof e!="object")return !1;try{if(Hp.call(e,Hp),jp)try{jp.call(e,jp);}catch{return !0}return e instanceof Qf}catch{}return !1};});var $w=Fe((QJ,Gp)=>{x();C();N();L();P();var GL=$n(),Mw=Jr(),WL=GL("%WeakSet%",!0),qp=Mw("WeakSet.prototype.has",!0);qp?(tl=Mw("WeakMap.prototype.has",!0),Gp.exports=function(e){if(!e||typeof e!="object")return !1;try{if(qp(e,qp),tl)try{tl(e,tl);}catch{return !0}return e instanceof WL}catch{}return !1}):Gp.exports=function(e){return !1};var tl;});var Hw=Fe((oQ,jw)=>{x();C();N();L();P();var zL=fp(),VL=cp(),KL=Uw(),ZL=$w();jw.exports=function(e){if(e&&typeof e=="object"){if(zL(e))return "Map";if(VL(e))return "Set";if(KL(e))return "WeakMap";if(ZL(e))return "WeakSet"}return !1};});var Zw=Fe((cQ,Kw)=>{x();C();N();L();P();var Gw=Ip(),YL=Cp(),Ww=Jr(),Wp=Np(),XL=Ww("Object.prototype.toString"),zw=Ti()(),qw=typeof globalThis>"u"?le:globalThis,JL=YL(),QL=Ww("String.prototype.slice"),Vw={},zp=Object.getPrototypeOf;zw&&Wp&&zp&&Gw(JL,function(t){if(typeof qw[t]=="function"){var e=new qw[t];if(Symbol.toStringTag in e){var r=zp(e),n=Wp(r,Symbol.toStringTag);if(!n){var o=zp(r);n=Wp(o,Symbol.toStringTag);}Vw[t]=n.get;}}});var eB=function(e){var r=!1;return Gw(Vw,function(n,o){if(!r)try{var i=n.call(e);i===o&&(r=i);}catch{}}),r},tB=Bp();Kw.exports=function(e){return tB(e)?!zw||!(Symbol.toStringTag in e)?QL(XL(e),8,-1):eB(e):!1};});var Jw=Fe((mQ,Xw)=>{x();C();N();L();P();var rB=Jr(),Yw=rB("ArrayBuffer.prototype.byteLength",!0),nB=Dp();Xw.exports=function(e){return nB(e)?Yw?Yw(e):e.byteLength:NaN};});var b1=Fe((bQ,S1)=>{x();C();N();L();P();var _1=I_(),ii=Jr(),Qw=U_(),iB=$n(),La=BE(),oB=ip(),e1=qE(),t1=qh(),r1=ap(),n1=Dp(),i1=lw(),o1=yw(),a1=vw(),s1=Cf(),u1=Dw(),f1=Hw(),l1=Zw(),c1=Jw(),h1=ii("SharedArrayBuffer.prototype.byteLength",!0),p1=ii("Date.prototype.getTime"),Vp=Object.getPrototypeOf,d1=ii("Object.prototype.toString"),nl=iB("%Set%",!0),Kp=ii("Map.prototype.has",!0),il=ii("Map.prototype.get",!0),y1=ii("Map.prototype.size",!0),ol=ii("Set.prototype.add",!0),E1=ii("Set.prototype.delete",!0),al=ii("Set.prototype.has",!0),rl=ii("Set.prototype.size",!0);function g1(t,e,r,n){for(var o=La(t),i;(i=o.next())&&!i.done;)if(jn(e,i.value,r,n))return E1(t,i.value),!0;return !1}function w1(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function aB(t,e,r,n,o,i){var a=w1(r);if(a!=null)return a;var s=il(e,a),f=_1({},o,{strict:!1});return typeof s>"u"&&!Kp(e,a)||!jn(n,s,f,i)?!1:!Kp(t,a)&&jn(n,s,f,i)}function sB(t,e,r){var n=w1(r);return n??(al(e,n)&&!al(t,n))}function m1(t,e,r,n,o,i){for(var a=La(t),s,f;(s=a.next())&&!s.done;)if(f=s.value,jn(r,f,o,i)&&jn(n,il(e,f),o,i))return E1(t,f),!0;return !1}function jn(t,e,r,n){var o=r||{};if(o.strict?e1(t,e):t===e)return !0;var i=u1(t),a=u1(e);if(i!==a)return !1;if(!t||!e||typeof t!="object"&&typeof e!="object")return o.strict?e1(t,e):t==e;var s=n.has(t),f=n.has(e),h;if(s&&f){if(n.get(t)===n.get(e))return !0}else h={};return s||n.set(t,h),f||n.set(e,h),lB(t,e,o,n)}function v1(t){return !t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function uB(t,e,r,n){if(rl(t)!==rl(e))return !1;for(var o=La(t),i=La(e),a,s,f;(a=o.next())&&!a.done;)if(a.value&&typeof a.value=="object")f||(f=new nl),ol(f,a.value);else if(!al(e,a.value)){if(r.strict||!sB(t,e,a.value))return !1;f||(f=new nl),ol(f,a.value);}if(f){for(;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object"){if(!g1(f,s.value,r.strict,n))return !1}else if(!r.strict&&!al(t,s.value)&&!g1(f,s.value,r.strict,n))return !1;return rl(f)===0}return !0}function fB(t,e,r,n){if(y1(t)!==y1(e))return !1;for(var o=La(t),i=La(e),a,s,f,h,l,d;(a=o.next())&&!a.done;)if(h=a.value[0],l=a.value[1],h&&typeof h=="object")f||(f=new nl),ol(f,h);else if(d=il(e,h),typeof d>"u"&&!Kp(e,h)||!jn(l,d,r,n)){if(r.strict||!aB(t,e,h,l,r,n))return !1;f||(f=new nl),ol(f,h);}if(f){for(;(s=i.next())&&!s.done;)if(h=s.value[0],d=s.value[1],h&&typeof h=="object"){if(!m1(f,t,h,d,r,n))return !1}else if(!r.strict&&(!t.has(h)||!jn(il(t,h),d,r,n))&&!m1(f,t,h,d,_1({},r,{strict:!1}),n))return !1;return rl(f)===0}return !0}function lB(t,e,r,n){var o,i;if(typeof t!=typeof e||t==null||e==null||d1(t)!==d1(e)||t1(t)!==t1(e))return !1;var a=r1(t),s=r1(e);if(a!==s)return !1;var f=t instanceof Error,h=e instanceof Error;if(f!==h||(f||h)&&(t.name!==e.name||t.message!==e.message))return !1;var l=o1(t),d=o1(e);if(l!==d||(l||d)&&(t.source!==e.source||Qw(t)!==Qw(e)))return !1;var g=i1(t),v=i1(e);if(g!==v||(g||v)&&p1(t)!==p1(e)||r.strict&&Vp&&Vp(t)!==Vp(e))return !1;var p=l1(t),_=l1(e);if((p||_)&&p!==_)return !1;var b=v1(t),O=v1(e);if(b!==O)return !1;if(b||O){if(t.length!==e.length)return !1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return !1;return !0}var B=n1(t),$=n1(e);if(B!==$)return !1;if(B||$)return c1(t)!==c1(e)?!1:typeof Uint8Array=="function"&&jn(new Uint8Array(t),new Uint8Array(e),r,n);var H=a1(t),Z=a1(e);if(H!==Z)return !1;if(H||Z)return h1(t)!==h1(e)?!1:typeof Uint8Array=="function"&&jn(new Uint8Array(t),new Uint8Array(e),r,n);if(typeof t!=typeof e)return !1;var V=s1(t),j=s1(e);if(V.length!==j.length)return !1;for(V.sort(),j.sort(),o=V.length-1;o>=0;o--)if(V[o]!=j[o])return !1;for(o=V.length-1;o>=0;o--)if(i=V[o],!jn(t[i],e[i],r,n))return !1;var D=f1(t),q=f1(e);return D!==q?!1:D==="Set"||q==="Set"?uB(t,e,r,n):D==="Map"?fB(t,e,r,n):!0}S1.exports=function(e,r,n){return jn(e,r,n,oB())};});var T1=Fe((xQ,O1)=>{x();C();N();L();P();var cB=function(e){return hB(e)&&!pB(e)};function hB(t){return !!t&&typeof t=="object"}function pB(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||gB(t)}var dB=typeof Symbol=="function"&&Symbol.for,yB=dB?Symbol.for("react.element"):60103;function gB(t){return t.$$typeof===yB}function mB(t){return Array.isArray(t)?[]:{}}function Ks(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ba(mB(t),t,e):t}function vB(t,e,r){return t.concat(e).map(function(n){return Ks(n,r)})}function _B(t,e){if(!e.customMerge)return Ba;var r=e.customMerge(t);return typeof r=="function"?r:Ba}function EB(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function A1(t){return Object.keys(t).concat(EB(t))}function R1(t,e){try{return e in t}catch{return !1}}function wB(t,e){return R1(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function SB(t,e,r){var n={};return r.isMergeableObject(t)&&A1(t).forEach(function(o){n[o]=Ks(t[o],r);}),A1(e).forEach(function(o){wB(t,o)||(R1(t,o)&&r.isMergeableObject(e[o])?n[o]=_B(o,r)(t[o],e[o],r):n[o]=Ks(e[o],r));}),n}function Ba(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||vB,r.isMergeableObject=r.isMergeableObject||cB,r.cloneUnlessOtherwiseSpecified=Ks;var n=Array.isArray(e),o=Array.isArray(t),i=n===o;return i?n?r.arrayMerge(t,e,r):SB(t,e,r):Ks(e,r)}Ba.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Ba(n,o,r)},{})};var bB=Ba;O1.exports=bB;});var uS=Fe((Cae,sS)=>{x();C();N();L();P();sS.exports=typeof self=="object"?self.FormData:window.FormData;});var cu=Mt(()=>{x();C();N();L();P();});var or;var Kt={};Mn(Kt,{_makeLong:()=>MD,basename:()=>$D,default:()=>or,delimiter:()=>jD,dirname:()=>HD,extname:()=>qD,format:()=>GD,isAbsolute:()=>WD,join:()=>zD,normalize:()=>VD,parse:()=>KD,posix:()=>ZD,relative:()=>YD,resolve:()=>XD,sep:()=>Ga,win32:()=>JD});var MD,$D,jD,HD,qD,GD,WD,zD,VD,KD,ZD,YD,XD,Ga,JD;var so={};Mn(so,{EOL:()=>nk,arch:()=>ik,constants:()=>rk,cpus:()=>ok,default:()=>Ot,endianness:()=>ak,freemem:()=>sk,getNetworkInterfaces:()=>uk,homedir:()=>fk,hostname:()=>lk,loadavg:()=>ck,networkInterfaces:()=>hk,platform:()=>pk,release:()=>dk,tmpDir:()=>yk,tmpdir:()=>gk,totalmem:()=>mk,type:()=>vk,uptime:()=>wa,version:()=>tk});var Ot,tk,rk,nk,ik,ok,ak,sk,uk,fk,lk,ck,hk,pk,dk,yk,gk,mk,vk;var Me;var NA={};Mn(NA,{AssertionError:()=>E6,deepEqual:()=>w6,deepStrictEqual:()=>S6,default:()=>yt,doesNotReject:()=>b6,doesNotThrow:()=>A6,equal:()=>R6,fail:()=>O6,ifError:()=>T6,notDeepEqual:()=>I6,notDeepStrictEqual:()=>x6,notEqual:()=>C6,notStrictEqual:()=>N6,ok:()=>P6,rejects:()=>L6,strict:()=>B6,strictEqual:()=>D6,throws:()=>k6});var yt,E6,w6,S6,b6,A6,R6,O6,T6,I6,x6,C6,N6,P6,L6,B6,D6,k6;var lo={};Mn(lo,{TextDecoder:()=>_y,TextEncoder:()=>s3,_extend:()=>F6,callbackify:()=>U6,debuglog:()=>M6,default:()=>Me,deprecate:()=>$6,format:()=>j6,inherits:()=>H6,inspect:()=>q6,isArray:()=>G6,isBoolean:()=>W6,isBuffer:()=>z6,isDate:()=>V6,isError:()=>K6,isFunction:()=>Z6,isNull:()=>Y6,isNullOrUndefined:()=>X6,isNumber:()=>J6,isObject:()=>Q6,isPrimitive:()=>e3,isRegExp:()=>t3,isString:()=>r3,isSymbol:()=>n3,isUndefined:()=>i3,log:()=>o3,promisify:()=>nc,types:()=>a3});var F6,U6,M6,$6,j6,H6,q6,G6,W6,z6,V6,K6,Z6,Y6,X6,J6,Q6,e3,t3,r3,n3,i3,o3,nc,a3,s3,_y;var Br;var Ay={};Mn(Ay,{Duplex:()=>f3,PassThrough:()=>c3,Readable:()=>Sy,Stream:()=>d3,Transform:()=>l3,Writable:()=>by,default:()=>Br,finished:()=>h3,pipeline:()=>p3,promises:()=>y3});var Sy,by,f3,l3,c3,h3,p3,d3,y3;var Xo={};Mn(Xo,{Dir:()=>zU,Dirent:()=>VU,F_OK:()=>e8,FileReadStream:()=>XU,FileWriteStream:()=>JU,R_OK:()=>t8,ReadStream:()=>ZU,Stats:()=>KU,W_OK:()=>r8,WriteStream:()=>YU,X_OK:()=>n8,_toUnixTimestamp:()=>QU,access:()=>Fy,accessSync:()=>S4,appendFile:()=>E4,appendFileSync:()=>w4,chmod:()=>R4,chmodSync:()=>O4,chown:()=>b4,chownSync:()=>A4,close:()=>T4,closeSync:()=>I4,constants:()=>$y,copyFile:()=>x4,copyFileSync:()=>C4,cp:()=>N4,cpSync:()=>P4,createReadStream:()=>Uy,createWriteStream:()=>My,default:()=>Xt,exists:()=>L4,existsSync:()=>dR,fchmod:()=>k4,fchmodSync:()=>F4,fchown:()=>B4,fchownSync:()=>D4,fdatasync:()=>U4,fdatasyncSync:()=>M4,fstat:()=>$4,fstatSync:()=>j4,fsync:()=>H4,fsyncSync:()=>q4,ftruncate:()=>G4,ftruncateSync:()=>W4,futimes:()=>z4,futimesSync:()=>V4,lchmod:()=>Y4,lchmodSync:()=>X4,lchown:()=>K4,lchownSync:()=>Z4,link:()=>J4,linkSync:()=>Q4,lstat:()=>eU,lstatSync:()=>tU,mkdir:()=>rU,mkdirSync:()=>nU,mkdtemp:()=>iU,mkdtempSync:()=>oU,open:()=>aU,openSync:()=>sU,opendir:()=>uU,opendirSync:()=>fU,promises:()=>fc,read:()=>hU,readFile:()=>gU,readFileSync:()=>mU,readSync:()=>pU,readdir:()=>lU,readdirSync:()=>cU,readlink:()=>vU,readlinkSync:()=>_U,readv:()=>dU,readvSync:()=>yU,realpath:()=>EU,realpathSync:()=>wU,rename:()=>SU,renameSync:()=>bU,rm:()=>AU,rmSync:()=>RU,rmdir:()=>OU,rmdirSync:()=>TU,stat:()=>IU,statSync:()=>xU,symlink:()=>CU,symlinkSync:()=>NU,truncate:()=>PU,truncateSync:()=>LU,unlink:()=>DU,unlinkSync:()=>kU,unwatchFile:()=>BU,utimes:()=>FU,utimesSync:()=>UU,watch:()=>MU,watchFile:()=>$U,write:()=>HU,writeFile:()=>jU,writeFileSync:()=>yR,writeSync:()=>qU,writev:()=>GU,writevSync:()=>WU});var Xt,E4,w4,Fy,S4,b4,A4,R4,O4,T4,I4,x4,C4,N4,P4,Uy,My,L4,dR,B4,D4,k4,F4,U4,M4,$4,j4,H4,q4,G4,W4,z4,V4,K4,Z4,Y4,X4,J4,Q4,eU,tU,rU,nU,iU,oU,aU,sU,uU,fU,lU,cU,hU,pU,dU,yU,gU,mU,vU,_U,EU,wU,SU,bU,AU,RU,OU,TU,IU,xU,CU,NU,PU,LU,BU,DU,kU,FU,UU,MU,$U,jU,yR,HU,qU,GU,WU,zU,VU,KU,ZU,YU,XU,JU,QU,e8,t8,r8,n8,$y,fc;var gR={};Mn(gR,{DH_CHECK_P_NOT_PRIME:()=>i8,DH_CHECK_P_NOT_SAFE_PRIME:()=>o8,DH_NOT_SUITABLE_GENERATOR:()=>a8,DH_UNABLE_TO_CHECK_GENERATOR:()=>s8,E2BIG:()=>u8,EACCES:()=>f8,EADDRINUSE:()=>l8,EADDRNOTAVAIL:()=>c8,EAFNOSUPPORT:()=>h8,EAGAIN:()=>p8,EALREADY:()=>d8,EBADF:()=>y8,EBADMSG:()=>g8,EBUSY:()=>m8,ECANCELED:()=>v8,ECHILD:()=>_8,ECONNABORTED:()=>E8,ECONNREFUSED:()=>w8,ECONNRESET:()=>S8,EDEADLK:()=>b8,EDESTADDRREQ:()=>A8,EDOM:()=>R8,EDQUOT:()=>O8,EEXIST:()=>T8,EFAULT:()=>I8,EFBIG:()=>x8,EHOSTUNREACH:()=>C8,EIDRM:()=>N8,EILSEQ:()=>P8,EINPROGRESS:()=>L8,EINTR:()=>B8,EINVAL:()=>D8,EIO:()=>k8,EISCONN:()=>F8,EISDIR:()=>U8,ELOOP:()=>M8,EMFILE:()=>$8,EMLINK:()=>j8,EMSGSIZE:()=>H8,EMULTIHOP:()=>q8,ENAMETOOLONG:()=>G8,ENETDOWN:()=>W8,ENETRESET:()=>z8,ENETUNREACH:()=>V8,ENFILE:()=>K8,ENGINE_METHOD_ALL:()=>Z8,ENGINE_METHOD_CIPHERS:()=>Y8,ENGINE_METHOD_DH:()=>X8,ENGINE_METHOD_DIGESTS:()=>J8,ENGINE_METHOD_DSA:()=>Q8,ENGINE_METHOD_ECDH:()=>e5,ENGINE_METHOD_ECDSA:()=>t5,ENGINE_METHOD_NONE:()=>r5,ENGINE_METHOD_PKEY_ASN1_METHS:()=>n5,ENGINE_METHOD_PKEY_METHS:()=>i5,ENGINE_METHOD_RAND:()=>o5,ENGINE_METHOD_STORE:()=>a5,ENOBUFS:()=>s5,ENODATA:()=>u5,ENODEV:()=>f5,ENOENT:()=>l5,ENOEXEC:()=>c5,ENOLCK:()=>h5,ENOLINK:()=>p5,ENOMEM:()=>d5,ENOMSG:()=>y5,ENOPROTOOPT:()=>g5,ENOSPC:()=>m5,ENOSR:()=>v5,ENOSTR:()=>_5,ENOSYS:()=>E5,ENOTCONN:()=>w5,ENOTDIR:()=>S5,ENOTEMPTY:()=>b5,ENOTSOCK:()=>A5,ENOTSUP:()=>R5,ENOTTY:()=>O5,ENXIO:()=>T5,EOPNOTSUPP:()=>I5,EOVERFLOW:()=>x5,EPERM:()=>C5,EPIPE:()=>N5,EPROTO:()=>P5,EPROTONOSUPPORT:()=>L5,EPROTOTYPE:()=>B5,ERANGE:()=>D5,EROFS:()=>k5,ESPIPE:()=>F5,ESRCH:()=>U5,ESTALE:()=>M5,ETIME:()=>$5,ETIMEDOUT:()=>j5,ETXTBSY:()=>H5,EWOULDBLOCK:()=>q5,EXDEV:()=>G5,F_OK:()=>W5,NPN_ENABLED:()=>z5,O_APPEND:()=>V5,O_CREAT:()=>K5,O_DIRECTORY:()=>Z5,O_EXCL:()=>Y5,O_NOCTTY:()=>X5,O_NOFOLLOW:()=>J5,O_NONBLOCK:()=>Q5,O_RDONLY:()=>eM,O_RDWR:()=>tM,O_SYMLINK:()=>rM,O_SYNC:()=>nM,O_TRUNC:()=>iM,O_WRONLY:()=>oM,POINT_CONVERSION_COMPRESSED:()=>aM,POINT_CONVERSION_HYBRID:()=>sM,POINT_CONVERSION_UNCOMPRESSED:()=>uM,RSA_NO_PADDING:()=>fM,RSA_PKCS1_OAEP_PADDING:()=>lM,RSA_PKCS1_PADDING:()=>cM,RSA_PKCS1_PSS_PADDING:()=>hM,RSA_SSLV23_PADDING:()=>pM,RSA_X931_PADDING:()=>dM,R_OK:()=>yM,SIGABRT:()=>gM,SIGALRM:()=>mM,SIGBUS:()=>vM,SIGCHLD:()=>_M,SIGCONT:()=>EM,SIGFPE:()=>wM,SIGHUP:()=>SM,SIGILL:()=>bM,SIGINT:()=>AM,SIGIO:()=>RM,SIGIOT:()=>OM,SIGKILL:()=>TM,SIGPIPE:()=>IM,SIGPROF:()=>xM,SIGQUIT:()=>CM,SIGSEGV:()=>NM,SIGSTOP:()=>PM,SIGSYS:()=>LM,SIGTERM:()=>BM,SIGTRAP:()=>DM,SIGTSTP:()=>kM,SIGTTIN:()=>FM,SIGTTOU:()=>UM,SIGURG:()=>MM,SIGUSR1:()=>$M,SIGUSR2:()=>jM,SIGVTALRM:()=>HM,SIGWINCH:()=>qM,SIGXCPU:()=>GM,SIGXFSZ:()=>WM,SSL_OP_ALL:()=>zM,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:()=>VM,SSL_OP_CIPHER_SERVER_PREFERENCE:()=>KM,SSL_OP_CISCO_ANYCONNECT:()=>ZM,SSL_OP_COOKIE_EXCHANGE:()=>YM,SSL_OP_CRYPTOPRO_TLSEXT_BUG:()=>XM,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:()=>JM,SSL_OP_EPHEMERAL_RSA:()=>QM,SSL_OP_LEGACY_SERVER_CONNECT:()=>e$,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:()=>t$,SSL_OP_MICROSOFT_SESS_ID_BUG:()=>r$,SSL_OP_MSIE_SSLV2_RSA_PADDING:()=>n$,SSL_OP_NETSCAPE_CA_DN_BUG:()=>i$,SSL_OP_NETSCAPE_CHALLENGE_BUG:()=>o$,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:()=>a$,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:()=>s$,SSL_OP_NO_COMPRESSION:()=>u$,SSL_OP_NO_QUERY_MTU:()=>f$,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:()=>l$,SSL_OP_NO_SSLv2:()=>c$,SSL_OP_NO_SSLv3:()=>h$,SSL_OP_NO_TICKET:()=>p$,SSL_OP_NO_TLSv1:()=>d$,SSL_OP_NO_TLSv1_1:()=>y$,SSL_OP_NO_TLSv1_2:()=>g$,SSL_OP_PKCS1_CHECK_1:()=>m$,SSL_OP_PKCS1_CHECK_2:()=>v$,SSL_OP_SINGLE_DH_USE:()=>_$,SSL_OP_SINGLE_ECDH_USE:()=>E$,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:()=>w$,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:()=>S$,SSL_OP_TLS_BLOCK_PADDING_BUG:()=>b$,SSL_OP_TLS_D5_BUG:()=>A$,SSL_OP_TLS_ROLLBACK_BUG:()=>R$,S_IFBLK:()=>O$,S_IFCHR:()=>T$,S_IFDIR:()=>I$,S_IFIFO:()=>x$,S_IFLNK:()=>C$,S_IFMT:()=>N$,S_IFREG:()=>P$,S_IFSOCK:()=>L$,S_IRGRP:()=>B$,S_IROTH:()=>D$,S_IRUSR:()=>k$,S_IRWXG:()=>F$,S_IRWXO:()=>U$,S_IRWXU:()=>M$,S_IWGRP:()=>$$,S_IWOTH:()=>j$,S_IWUSR:()=>H$,S_IXGRP:()=>q$,S_IXOTH:()=>G$,S_IXUSR:()=>W$,UV_UDP_REUSEADDR:()=>z$,W_OK:()=>V$,X_OK:()=>K$,default:()=>we});var we,i8,o8,a8,s8,u8,f8,l8,c8,h8,p8,d8,y8,g8,m8,v8,_8,E8,w8,S8,b8,A8,R8,O8,T8,I8,x8,C8,N8,P8,L8,B8,D8,k8,F8,U8,M8,$8,j8,H8,q8,G8,W8,z8,V8,K8,Z8,Y8,X8,J8,Q8,e5,t5,r5,n5,i5,o5,a5,s5,u5,f5,l5,c5,h5,p5,d5,y5,g5,m5,v5,_5,E5,w5,S5,b5,A5,R5,O5,T5,I5,x5,C5,N5,P5,L5,B5,D5,k5,F5,U5,M5,$5,j5,H5,q5,G5,W5,z5,V5,K5,Z5,Y5,X5,J5,Q5,eM,tM,rM,nM,iM,oM,aM,sM,uM,fM,lM,cM,hM,pM,dM,yM,gM,mM,vM,_M,EM,wM,SM,bM,AM,RM,OM,TM,IM,xM,CM,NM,PM,LM,BM,DM,kM,FM,UM,MM,$M,jM,HM,qM,GM,WM,zM,VM,KM,ZM,YM,XM,JM,QM,e$,t$,r$,n$,i$,o$,a$,s$,u$,f$,l$,c$,h$,p$,d$,y$,g$,m$,v$,_$,E$,w$,S$,b$,A$,R$,O$,T$,I$,x$,C$,N$,P$,L$,B$,D$,k$,F$,U$,M$,$$,j$,H$,q$,G$,W$,z$,V$,K$;var gO=Fe((mge,yO)=>{x();C();N();L();P();function tq(t){try{return JSON.stringify(t)}catch{return '"[Circular]"'}}yO.exports=rq;function rq(t,e,r){var n=r&&r.stringify||tq,o=1;if(typeof t=="object"&&t!==null){var i=e.length+o;if(i===1)return t;var a=new Array(i);a[0]=n(t);for(var s=1;s<i;s++)a[s]=n(e[s]);return a.join(" ")}if(typeof t!="string")return t;var f=e.length;if(f===0)return t;for(var h="",l=1-o,d=-1,g=t&&t.length||0,v=0;v<g;){if(t.charCodeAt(v)===37&&v+1<g){switch(d=d>-1?d:0,t.charCodeAt(v+1)){case 100:case 102:if(l>=f||e[l]==null)break;d<v&&(h+=t.slice(d,v)),h+=Number(e[l]),d=v+2,v++;break;case 105:if(l>=f||e[l]==null)break;d<v&&(h+=t.slice(d,v)),h+=Math.floor(Number(e[l])),d=v+2,v++;break;case 79:case 111:case 106:if(l>=f||e[l]===void 0)break;d<v&&(h+=t.slice(d,v));var p=typeof e[l];if(p==="string"){h+="'"+e[l]+"'",d=v+2,v++;break}if(p==="function"){h+=e[l].name||"<anonymous>",d=v+2,v++;break}h+=n(e[l]),d=v+2,v++;break;case 115:if(l>=f)break;d<v&&(h+=t.slice(d,v)),h+=String(e[l]),d=v+2,v++;break;case 37:d<v&&(h+=t.slice(d,v)),h+="%",d=v+2,v++,l--;break}++l;}++v;}return d===-1?t:(d<g&&(h+=t.slice(d)),h)}});var SO=Fe((bge,wO)=>{x();C();N();L();P();var mO=gO();wO.exports=ra;var Fu=pq().console||{},nq={mapHttpRequest:Sc,mapHttpResponse:Sc,wrapRequestSerializer:ig,wrapResponseSerializer:ig,wrapErrorSerializer:ig,req:Sc,res:Sc,err:vO,errWithCause:vO};function iq(t,e){return Array.isArray(t)?t.filter(function(n){return n!=="!stdSerializers.err"}):t===!0?Object.keys(e):!1}function ra(t){t=t||{},t.browser=t.browser||{};let e=t.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let r=t.browser.write||Fu;t.browser.write&&(t.browser.asObject=!0);let n=t.serializers||{},o=iq(t.browser.serialize,n),i=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let a=Object.keys(t.customLevels||{}),s=["error","fatal","warn","info","debug","trace"].concat(a);typeof r=="function"&&s.forEach(function(_){r[_]=r;}),(t.enabled===!1||t.browser.disabled)&&(t.level="silent");let f=t.level||"info",h=Object.create(r);h.log||(h.log=Uu),Object.defineProperty(h,"levelVal",{get:d}),Object.defineProperty(h,"level",{get:g,set:v});let l={transmit:e,serialize:o,asObject:t.browser.asObject,levels:s,timestamp:lq(t)};h.levels=oq(t),h.level=f,h.setMaxListeners=h.getMaxListeners=h.emit=h.addListener=h.on=h.prependListener=h.once=h.prependOnceListener=h.removeListener=h.removeAllListeners=h.listeners=h.listenerCount=h.eventNames=h.write=h.flush=Uu,h.serializers=n,h._serialize=o,h._stdErrSerialize=i,h.child=p,e&&(h._logEvent=og());function d(){return this.level==="silent"?1/0:this.levels.values[this.level]}function g(){return this._level}function v(_){if(_!=="silent"&&!this.levels.values[_])throw Error("unknown level "+_);this._level=_,ta(l,h,"error","log"),ta(l,h,"fatal","error"),ta(l,h,"warn","error"),ta(l,h,"info","log"),ta(l,h,"debug","log"),ta(l,h,"trace","log"),a.forEach(function(b){ta(l,h,b,"log");});}function p(_,b){if(!_)throw new Error("missing bindings for child Pino");b=b||{},o&&_.serializers&&(b.serializers=_.serializers);let O=b.serializers;if(o&&O){var B=Object.assign({},n,O),$=t.browser.serialize===!0?Object.keys(B):o;delete _.serializers,bc([_],$,B,this._stdErrSerialize);}function H(Z){this._childLevel=(Z._childLevel|0)+1,this.error=us(Z,_,"error"),this.fatal=us(Z,_,"fatal"),this.warn=us(Z,_,"warn"),this.info=us(Z,_,"info"),this.debug=us(Z,_,"debug"),this.trace=us(Z,_,"trace"),B&&(this.serializers=B,this._serialize=$),e&&(this._logEvent=og([].concat(Z._logEvent.bindings,_)));}return H.prototype=this,new H(this)}return h}function oq(t){let e=t.customLevels||{},r=Object.assign({},ra.levels.values,e),n=Object.assign({},ra.levels.labels,aq(e));return {values:r,labels:n}}function aq(t){let e={};return Object.keys(t).forEach(function(r){e[t[r]]=r;}),e}ra.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"}};ra.stdSerializers=nq;ra.stdTimeFunctions=Object.assign({},{nullTime:_O,epochTime:EO,unixTime:cq,isoTime:hq});function ta(t,e,r,n){let o=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?Uu:o[r]?o[r]:Fu[r]||Fu[n]||Uu,sq(t,e,r);}function sq(t,e,r){!t.transmit&&e[r]===Uu||(e[r]=function(n){return function(){let i=t.timestamp(),a=new Array(arguments.length),s=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Fu?Fu:this;for(var f=0;f<a.length;f++)a[f]=arguments[f];if(t.serialize&&!t.asObject&&bc(a,this._serialize,this.serializers,this._stdErrSerialize),t.asObject?n.call(s,uq(this,r,a,i)):n.apply(s,a),t.transmit){let h=t.transmit.level||e.level,l=e.levels.values[h],d=e.levels.values[r];if(d<l)return;fq(this,{ts:i,methodLevel:r,methodValue:d,transmitLevel:h,transmitValue:e.levels.values[t.transmit.level||e.level],send:t.transmit.send,val:e.levelVal},a);}}}(e[r]));}function uq(t,e,r,n){t._serialize&&bc(r,t._serialize,t.serializers,t._stdErrSerialize);let o=r.slice(),i=o[0],a={};n&&(a.time=n),a.level=t.levels.values[e];let s=(t._childLevel|0)+1;if(s<1&&(s=1),i!==null&&typeof i=="object"){for(;s--&&typeof o[0]=="object";)Object.assign(a,o.shift());i=o.length?mO(o.shift(),o):void 0;}else typeof i=="string"&&(i=mO(o.shift(),o));return i!==void 0&&(a.msg=i),a}function bc(t,e,r,n){for(let o in t)if(n&&t[o]instanceof Error)t[o]=ra.stdSerializers.err(t[o]);else if(typeof t[o]=="object"&&!Array.isArray(t[o]))for(let i in t[o])e&&e.indexOf(i)>-1&&i in r&&(t[o][i]=r[i](t[o][i]));}function us(t,e,r){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var o=1;o<n.length;o++)n[o]=arguments[o-1];return t[r].apply(this,n)}}function fq(t,e,r){let n=e.send,o=e.ts,i=e.methodLevel,a=e.methodValue,s=e.val,f=t._logEvent.bindings;bc(r,t._serialize||Object.keys(t.serializers),t.serializers,t._stdErrSerialize===void 0?!0:t._stdErrSerialize),t._logEvent.ts=o,t._logEvent.messages=r.filter(function(h){return f.indexOf(h)===-1}),t._logEvent.level.label=i,t._logEvent.level.value=a,n(i,t._logEvent,s),t._logEvent=og(f);}function og(t){return {ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function vO(t){let e={type:t.constructor.name,msg:t.message,stack:t.stack};for(let r in t)e[r]===void 0&&(e[r]=t[r]);return e}function lq(t){return typeof t.timestamp=="function"?t.timestamp:t.timestamp===!1?_O:EO}function Sc(){return {}}function ig(t){return t}function Uu(){}function _O(){return !1}function EO(){return Date.now()}function cq(){return Math.round(Date.now()/1e3)}function hq(){return new Date(Date.now()).toISOString()}function pq(){function t(e){return typeof e<"u"&&e}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 t(self)||t(window)||t(this)||{}}}});var JO={};Mn(JO,{RotatingFileStream:()=>Oc,RotatingFileStreamError:()=>$u,createStream:()=>Cq});function Tq(t){let e={};for(let r in t){let n=t[r],o=typeof n;if(!(r in YO))throw new Error(`Unknown option: ${r}`);e[r]=t[r],YO[r](o,e,n);}return e.path||(e.path=""),e.interval||(delete e.immutable,delete e.initialRotation,delete e.intervalBoundary),e.rotate&&(delete e.history,delete e.immutable,delete e.maxFiles,delete e.maxSize,delete e.intervalBoundary),e.immutable&&delete e.compress,e.intervalBoundary||delete e.initialRotation,e}function Iq(t,e,r){return n=>n?`${t}.${n}${e&&!r?".gz":""}`:t}function xq(t,e,r){let n=o=>(o>9?"":"0")+o;return (o,i)=>{if(!o)return t;let a=o.getFullYear()+""+n(o.getMonth()+1),s=n(o.getDate()),f=n(o.getHours()),h=n(o.getMinutes());return a+s+"-"+f+h+"-"+n(i)+"-"+t+(e&&!r?".gz":"")}}function Cq(t,e){if(typeof e>"u")e={};else if(typeof e!="object")throw new Error(`The "options" argument must be of type object. Received type ${typeof e}`);let r=Tq(e),{compress:n,omitExtension:o}=r,i;if(typeof t=="string")i=e.rotate?Iq(t,n!==void 0,o):xq(t,n!==void 0,o);else if(typeof t=="function")i=t;else throw new Error(`The "filename" argument must be one of type string or function. Received type ${typeof t}`);return new Oc(i,r)}var $u,Oc,YO;var tT={};Mn(tT,{allLoggers:()=>ju,rootLogger:()=>vn});var gg,eT,vn,ju,ia=Mt(()=>{x();C();N();L();P();gg=_a(SO());cu();eT=null,vn=eT?(0, gg.default)(eT):(0, gg.default)(),ju=[vn];vn.onChild=t=>{ju.push(t);};});var px=Fe((cx,hx)=>{x();C();N();L();P();(function(t){var e;typeof cx=="object"?hx.exports=t():typeof define=="function"&&define.amd?define(t):(typeof window<"u"?e=window:typeof le<"u"?e=le:typeof self<"u"&&(e=self),e.objectHash=t());})(function(){return function t(e,r,n){function o(s,f){if(!r[s]){if(!e[s]){var h=typeof va=="function"&&va;if(!f&&h)return h(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}f=r[s]={exports:{}},e[s][0].call(f.exports,function(l){var d=e[s][1][l];return o(d||l)},f,f.exports,t,e,r,n);}return r[s].exports}for(var i=typeof va=="function"&&va,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,r){(function(n,o,i,a,s,f,h,l,d){var g=t("crypto");function v(H,Z){Z=b(H,Z);var V;return (V=Z.algorithm!=="passthrough"?g.createHash(Z.algorithm):new $).write===void 0&&(V.write=V.update,V.end=V.update),B(Z,V).dispatch(H),V.update||V.end(""),V.digest?V.digest(Z.encoding==="buffer"?void 0:Z.encoding):(H=V.read(),Z.encoding!=="buffer"?H.toString(Z.encoding):H)}(r=e.exports=v).sha1=function(H){return v(H)},r.keys=function(H){return v(H,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(H){return v(H,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(H){return v(H,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var p=g.getHashes?g.getHashes().slice():["sha1","md5"],_=(p.push("passthrough"),["buffer","hex","binary","base64"]);function b(H,Z){var V={};if(V.algorithm=(Z=Z||{}).algorithm||"sha1",V.encoding=Z.encoding||"hex",V.excludeValues=!!Z.excludeValues,V.algorithm=V.algorithm.toLowerCase(),V.encoding=V.encoding.toLowerCase(),V.ignoreUnknown=Z.ignoreUnknown===!0,V.respectType=Z.respectType!==!1,V.respectFunctionNames=Z.respectFunctionNames!==!1,V.respectFunctionProperties=Z.respectFunctionProperties!==!1,V.unorderedArrays=Z.unorderedArrays===!0,V.unorderedSets=Z.unorderedSets!==!1,V.unorderedObjects=Z.unorderedObjects!==!1,V.replacer=Z.replacer||void 0,V.excludeKeys=Z.excludeKeys||void 0,H===void 0)throw new Error("Object argument required.");for(var j=0;j<p.length;++j)p[j].toLowerCase()===V.algorithm.toLowerCase()&&(V.algorithm=p[j]);if(p.indexOf(V.algorithm)===-1)throw new Error('Algorithm "'+V.algorithm+'" not supported. supported values: '+p.join(", "));if(_.indexOf(V.encoding)===-1&&V.algorithm!=="passthrough")throw new Error('Encoding "'+V.encoding+'" not supported. supported values: '+_.join(", "));return V}function O(H){if(typeof H=="function")return /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(H))!=null}function B(H,Z,V){V=V||[];function j(D){return Z.update?Z.update(D,"utf8"):Z.write(D,"utf8")}return {dispatch:function(D){return this["_"+((D=H.replacer?H.replacer(D):D)===null?"null":typeof D)](D)},_object:function(D){var q,te=Object.prototype.toString.call(D),ae=/\[object (.*)\]/i.exec(te);if(ae=(ae=ae?ae[1]:"unknown:["+te+"]").toLowerCase(),0<=(te=V.indexOf(D)))return this.dispatch("[CIRCULAR:"+te+"]");if(V.push(D),i!==void 0&&i.isBuffer&&i.isBuffer(D))return j("buffer:"),j(D);if(ae==="object"||ae==="function"||ae==="asyncfunction")return te=Object.keys(D),H.unorderedObjects&&(te=te.sort()),H.respectType===!1||O(D)||te.splice(0,0,"prototype","__proto__","constructor"),H.excludeKeys&&(te=te.filter(function(Y){return !H.excludeKeys(Y)})),j("object:"+te.length+":"),q=this,te.forEach(function(Y){q.dispatch(Y),j(":"),H.excludeValues||q.dispatch(D[Y]),j(",");});if(!this["_"+ae]){if(H.ignoreUnknown)return j("["+ae+"]");throw new Error('Unknown object type "'+ae+'"')}this["_"+ae](D);},_array:function(D,Y){Y=Y!==void 0?Y:H.unorderedArrays!==!1;var te=this;if(j("array:"+D.length+":"),!Y||D.length<=1)return D.forEach(function(se){return te.dispatch(se)});var ae=[],Y=D.map(function(se){var _e=new $,ce=V.slice();return B(H,_e,ce).dispatch(se),ae=ae.concat(ce.slice(V.length)),_e.read().toString()});return V=V.concat(ae),Y.sort(),this._array(Y,!1)},_date:function(D){return j("date:"+D.toJSON())},_symbol:function(D){return j("symbol:"+D.toString())},_error:function(D){return j("error:"+D.toString())},_boolean:function(D){return j("bool:"+D.toString())},_string:function(D){j("string:"+D.length+":"),j(D.toString());},_function:function(D){j("fn:"),O(D)?this.dispatch("[native]"):this.dispatch(D.toString()),H.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(D.name)),H.respectFunctionProperties&&this._object(D);},_number:function(D){return j("number:"+D.toString())},_xml:function(D){return j("xml:"+D.toString())},_null:function(){return j("Null")},_undefined:function(){return j("Undefined")},_regexp:function(D){return j("regex:"+D.toString())},_uint8array:function(D){return j("uint8array:"),this.dispatch(Array.prototype.slice.call(D))},_uint8clampedarray:function(D){return j("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(D))},_int8array:function(D){return j("int8array:"),this.dispatch(Array.prototype.slice.call(D))},_uint16array:function(D){return j("uint16array:"),this.dispatch(Array.prototype.slice.call(D))},_int16array:function(D){return j("int16array:"),this.dispatch(Array.prototype.slice.call(D))},_uint32array:function(D){return j("uint32array:"),this.dispatch(Array.prototype.slice.call(D))},_int32array:function(D){return j("int32array:"),this.dispatch(Array.prototype.slice.call(D))},_float32array:function(D){return j("float32array:"),this.dispatch(Array.prototype.slice.call(D))},_float64array:function(D){return j("float64array:"),this.dispatch(Array.prototype.slice.call(D))},_arraybuffer:function(D){return j("arraybuffer:"),this.dispatch(new Uint8Array(D))},_url:function(D){return j("url:"+D.toString())},_map:function(D){return j("map:"),D=Array.from(D),this._array(D,H.unorderedSets!==!1)},_set:function(D){return j("set:"),D=Array.from(D),this._array(D,H.unorderedSets!==!1)},_file:function(D){return j("file:"),this.dispatch([D.name,D.size,D.type,D.lastModfied])},_blob:function(){if(H.ignoreUnknown)return j("[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 j("domwindow")},_bigint:function(D){return j("bigint:"+D.toString())},_process:function(){return j("process")},_timer:function(){return j("timer")},_pipe:function(){return j("pipe")},_tcp:function(){return j("tcp")},_udp:function(){return j("udp")},_tty:function(){return j("tty")},_statwatcher:function(){return j("statwatcher")},_securecontext:function(){return j("securecontext")},_connection:function(){return j("connection")},_zlib:function(){return j("zlib")},_context:function(){return j("context")},_nodescript:function(){return j("nodescript")},_httpparser:function(){return j("httpparser")},_dataview:function(){return j("dataview")},_signal:function(){return j("signal")},_fsevent:function(){return j("fsevent")},_tlswrap:function(){return j("tlswrap")}}}function $(){return {buf:"",write:function(H){this.buf+=H;},end:function(H){this.buf+=H;},read:function(){return this.buf}}}r.writeToStream=function(H,Z,V){return V===void 0&&(V=Z,Z={}),B(Z=b(H,Z),V).dispatch(H)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/");},{buffer:3,crypto:5,lYpoI2:11}],2:[function(t,e,r){(function(n,o,i,a,s,f,h,l,d){(function(g){var v=typeof Uint8Array<"u"?Uint8Array:Array,p="+".charCodeAt(0),_="/".charCodeAt(0),b="0".charCodeAt(0),O="a".charCodeAt(0),B="A".charCodeAt(0),$="-".charCodeAt(0),H="_".charCodeAt(0);function Z(V){return V=V.charCodeAt(0),V===p||V===$?62:V===_||V===H?63:V<b?-1:V<b+10?V-b+26+26:V<B+26?V-B:V<O+26?V-O+26:void 0}g.toByteArray=function(V){var j,D;if(0<V.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var q=V.length,q=V.charAt(q-2)==="="?2:V.charAt(q-1)==="="?1:0,te=new v(3*V.length/4-q),ae=0<q?V.length-4:V.length,Y=0;function se(_e){te[Y++]=_e;}for(j=0;j<ae;j+=4,0)se((16711680&(D=Z(V.charAt(j))<<18|Z(V.charAt(j+1))<<12|Z(V.charAt(j+2))<<6|Z(V.charAt(j+3))))>>16),se((65280&D)>>8),se(255&D);return q==2?se(255&(D=Z(V.charAt(j))<<2|Z(V.charAt(j+1))>>4)):q==1&&(se((D=Z(V.charAt(j))<<10|Z(V.charAt(j+1))<<4|Z(V.charAt(j+2))>>2)>>8&255),se(255&D)),te},g.fromByteArray=function(V){var j,D,q,te,ae=V.length%3,Y="";function se(_e){return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(_e)}for(j=0,q=V.length-ae;j<q;j+=3)D=(V[j]<<16)+(V[j+1]<<8)+V[j+2],Y+=se((te=D)>>18&63)+se(te>>12&63)+se(te>>6&63)+se(63&te);switch(ae){case 1:Y=(Y+=se((D=V[V.length-1])>>2))+se(D<<4&63)+"==";break;case 2:Y=(Y=(Y+=se((D=(V[V.length-2]<<8)+V[V.length-1])>>10))+se(D>>4&63))+se(D<<2&63)+"=";}return Y};})(r===void 0?this.base64js={}:r);}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,p,a,s,f,h,l,d){var g=t("base64-js"),v=t("ieee754");function p(I,F,K){if(!(this instanceof p))return new p(I,F,K);var be,me,M,J,Ne=typeof I;if(F==="base64"&&Ne=="string")for(I=(J=I).trim?J.trim():J.replace(/^\s+|\s+$/g,"");I.length%4!=0;)I+="=";if(Ne=="number")be=he(I);else if(Ne=="string")be=p.byteLength(I,F);else {if(Ne!="object")throw new Error("First argument needs to be a number, array or string.");be=he(I.length);}if(p._useTypedArrays?me=p._augment(new Uint8Array(be)):((me=this).length=be,me._isBuffer=!0),p._useTypedArrays&&typeof I.byteLength=="number")me._set(I);else if(fe(J=I)||p.isBuffer(J)||J&&typeof J=="object"&&typeof J.length=="number")for(M=0;M<be;M++)p.isBuffer(I)?me[M]=I.readUInt8(M):me[M]=I[M];else if(Ne=="string")me.write(I,0,F);else if(Ne=="number"&&!p._useTypedArrays&&!K)for(M=0;M<be;M++)me[M]=0;return me}function _(I,F,K,be){return p._charsWritten=Pe(function(me){for(var M=[],J=0;J<me.length;J++)M.push(255&me.charCodeAt(J));return M}(F),I,K,be)}function b(I,F,K,be){return p._charsWritten=Pe(function(me){for(var M,J,Ne=[],je=0;je<me.length;je++)J=me.charCodeAt(je),M=J>>8,J=J%256,Ne.push(J),Ne.push(M);return Ne}(F),I,K,be)}function O(I,F,K){var be="";K=Math.min(I.length,K);for(var me=F;me<K;me++)be+=String.fromCharCode(I[me]);return be}function B(I,F,K,M){M||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F!=null,"missing offset"),Ie(F+1<I.length,"Trying to read beyond buffer length"));var me,M=I.length;if(!(M<=F))return K?(me=I[F],F+1<M&&(me|=I[F+1]<<8)):(me=I[F]<<8,F+1<M&&(me|=I[F+1])),me}function $(I,F,K,M){M||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F!=null,"missing offset"),Ie(F+3<I.length,"Trying to read beyond buffer length"));var me,M=I.length;if(!(M<=F))return K?(F+2<M&&(me=I[F+2]<<16),F+1<M&&(me|=I[F+1]<<8),me|=I[F],F+3<M&&(me+=I[F+3]<<24>>>0)):(F+1<M&&(me=I[F+1]<<16),F+2<M&&(me|=I[F+2]<<8),F+3<M&&(me|=I[F+3]),me+=I[F]<<24>>>0),me}function H(I,F,K,be){if(be||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F!=null,"missing offset"),Ie(F+1<I.length,"Trying to read beyond buffer length")),!(I.length<=F))return be=B(I,F,K,!0),32768&be?-1*(65535-be+1):be}function Z(I,F,K,be){if(be||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F!=null,"missing offset"),Ie(F+3<I.length,"Trying to read beyond buffer length")),!(I.length<=F))return be=$(I,F,K,!0),2147483648&be?-1*(4294967295-be+1):be}function V(I,F,K,be){return be||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F+3<I.length,"Trying to read beyond buffer length")),v.read(I,F,K,23,4)}function j(I,F,K,be){return be||(Ie(typeof K=="boolean","missing or invalid endian"),Ie(F+7<I.length,"Trying to read beyond buffer length")),v.read(I,F,K,52,8)}function D(I,F,K,be,me){if(me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+1<I.length,"trying to write beyond buffer length"),et(F,65535)),me=I.length,!(me<=K))for(var M=0,J=Math.min(me-K,2);M<J;M++)I[K+M]=(F&255<<8*(be?M:1-M))>>>8*(be?M:1-M);}function q(I,F,K,be,me){if(me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+3<I.length,"trying to write beyond buffer length"),et(F,4294967295)),me=I.length,!(me<=K))for(var M=0,J=Math.min(me-K,4);M<J;M++)I[K+M]=F>>>8*(be?M:3-M)&255;}function te(I,F,K,be,me){me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+1<I.length,"Trying to write beyond buffer length"),st(F,32767,-32768)),I.length<=K||D(I,0<=F?F:65535+F+1,K,be,me);}function ae(I,F,K,be,me){me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+3<I.length,"Trying to write beyond buffer length"),st(F,2147483647,-2147483648)),I.length<=K||q(I,0<=F?F:4294967295+F+1,K,be,me);}function Y(I,F,K,be,me){me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+3<I.length,"Trying to write beyond buffer length"),it(F,34028234663852886e22,-34028234663852886e22)),I.length<=K||v.write(I,F,K,be,23,4);}function se(I,F,K,be,me){me||(Ie(F!=null,"missing value"),Ie(typeof be=="boolean","missing or invalid endian"),Ie(K!=null,"missing offset"),Ie(K+7<I.length,"Trying to write beyond buffer length"),it(F,17976931348623157e292,-17976931348623157e292)),I.length<=K||v.write(I,F,K,be,52,8);}r.Buffer=p,r.SlowBuffer=p,r.INSPECT_MAX_BYTES=50,p.poolSize=8192,p._useTypedArrays=function(){try{var I=new ArrayBuffer(0),F=new Uint8Array(I);return F.foo=function(){return 42},F.foo()===42&&typeof F.subarray=="function"}catch{return !1}}(),p.isEncoding=function(I){switch(String(I).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}},p.isBuffer=function(I){return !(I==null||!I._isBuffer)},p.byteLength=function(I,F){var K;switch(I+="",F||"utf8"){case"hex":K=I.length/2;break;case"utf8":case"utf-8":K=Se(I).length;break;case"ascii":case"binary":case"raw":K=I.length;break;case"base64":K=Te(I).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":K=2*I.length;break;default:throw new Error("Unknown encoding")}return K},p.concat=function(I,F){if(Ie(fe(I),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),I.length===0)return new p(0);if(I.length===1)return I[0];if(typeof F!="number")for(me=F=0;me<I.length;me++)F+=I[me].length;for(var K=new p(F),be=0,me=0;me<I.length;me++){var M=I[me];M.copy(K,be),be+=M.length;}return K},p.prototype.write=function(I,F,K,be){isFinite(F)?isFinite(K)||(be=K,K=void 0):(je=be,be=F,F=K,K=je),F=Number(F)||0;var me,M,J,Ne,je=this.length-F;switch((!K||je<(K=Number(K)))&&(K=je),be=String(be||"utf8").toLowerCase()){case"hex":me=function(We,Xe,Qe,_t){Qe=Number(Qe)||0;var mt=We.length-Qe;(!_t||mt<(_t=Number(_t)))&&(_t=mt),Ie((mt=Xe.length)%2==0,"Invalid hex string"),mt/2<_t&&(_t=mt/2);for(var pt=0;pt<_t;pt++){var Ut=parseInt(Xe.substr(2*pt,2),16);Ie(!isNaN(Ut),"Invalid hex string"),We[Qe+pt]=Ut;}return p._charsWritten=2*pt,pt}(this,I,F,K);break;case"utf8":case"utf-8":M=this,J=F,Ne=K,me=p._charsWritten=Pe(Se(I),M,J,Ne);break;case"ascii":case"binary":me=_(this,I,F,K);break;case"base64":M=this,J=F,Ne=K,me=p._charsWritten=Pe(Te(I),M,J,Ne);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":me=b(this,I,F,K);break;default:throw new Error("Unknown encoding")}return me},p.prototype.toString=function(I,F,K){var be,me,M,J,Ne=this;if(I=String(I||"utf8").toLowerCase(),F=Number(F)||0,(K=K!==void 0?Number(K):Ne.length)===F)return "";switch(I){case"hex":be=function(je,We,Xe){var Qe=je.length;(!We||We<0)&&(We=0),(!Xe||Xe<0||Qe<Xe)&&(Xe=Qe);for(var _t="",mt=We;mt<Xe;mt++)_t+=ie(je[mt]);return _t}(Ne,F,K);break;case"utf8":case"utf-8":be=function(je,We,Xe){var Qe="",_t="";Xe=Math.min(je.length,Xe);for(var mt=We;mt<Xe;mt++)je[mt]<=127?(Qe+=Je(_t)+String.fromCharCode(je[mt]),_t=""):_t+="%"+je[mt].toString(16);return Qe+Je(_t)}(Ne,F,K);break;case"ascii":case"binary":be=O(Ne,F,K);break;case"base64":me=Ne,J=K,be=(M=F)===0&&J===me.length?g.fromByteArray(me):g.fromByteArray(me.slice(M,J));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":be=function(je,We,Xe){for(var Qe=je.slice(We,Xe),_t="",mt=0;mt<Qe.length;mt+=2)_t+=String.fromCharCode(Qe[mt]+256*Qe[mt+1]);return _t}(Ne,F,K);break;default:throw new Error("Unknown encoding")}return be},p.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},p.prototype.copy=function(I,F,K,be){if(F=F||0,(be=be||be===0?be:this.length)!==(K=K||0)&&I.length!==0&&this.length!==0){Ie(K<=be,"sourceEnd < sourceStart"),Ie(0<=F&&F<I.length,"targetStart out of bounds"),Ie(0<=K&&K<this.length,"sourceStart out of bounds"),Ie(0<=be&&be<=this.length,"sourceEnd out of bounds"),be>this.length&&(be=this.length);var me=(be=I.length-F<be-K?I.length-F+K:be)-K;if(me<100||!p._useTypedArrays)for(var M=0;M<me;M++)I[M+F]=this[M+K];else I._set(this.subarray(K,K+me),F);}},p.prototype.slice=function(I,F){var K=this.length;if(I=ce(I,K,0),F=ce(F,K,K),p._useTypedArrays)return p._augment(this.subarray(I,F));for(var be=F-I,me=new p(be,void 0,!0),M=0;M<be;M++)me[M]=this[M+I];return me},p.prototype.get=function(I){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(I)},p.prototype.set=function(I,F){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(I,F)},p.prototype.readUInt8=function(I,F){if(F||(Ie(I!=null,"missing offset"),Ie(I<this.length,"Trying to read beyond buffer length")),!(I>=this.length))return this[I]},p.prototype.readUInt16LE=function(I,F){return B(this,I,!0,F)},p.prototype.readUInt16BE=function(I,F){return B(this,I,!1,F)},p.prototype.readUInt32LE=function(I,F){return $(this,I,!0,F)},p.prototype.readUInt32BE=function(I,F){return $(this,I,!1,F)},p.prototype.readInt8=function(I,F){if(F||(Ie(I!=null,"missing offset"),Ie(I<this.length,"Trying to read beyond buffer length")),!(I>=this.length))return 128&this[I]?-1*(255-this[I]+1):this[I]},p.prototype.readInt16LE=function(I,F){return H(this,I,!0,F)},p.prototype.readInt16BE=function(I,F){return H(this,I,!1,F)},p.prototype.readInt32LE=function(I,F){return Z(this,I,!0,F)},p.prototype.readInt32BE=function(I,F){return Z(this,I,!1,F)},p.prototype.readFloatLE=function(I,F){return V(this,I,!0,F)},p.prototype.readFloatBE=function(I,F){return V(this,I,!1,F)},p.prototype.readDoubleLE=function(I,F){return j(this,I,!0,F)},p.prototype.readDoubleBE=function(I,F){return j(this,I,!1,F)},p.prototype.writeUInt8=function(I,F,K){K||(Ie(I!=null,"missing value"),Ie(F!=null,"missing offset"),Ie(F<this.length,"trying to write beyond buffer length"),et(I,255)),F>=this.length||(this[F]=I);},p.prototype.writeUInt16LE=function(I,F,K){D(this,I,F,!0,K);},p.prototype.writeUInt16BE=function(I,F,K){D(this,I,F,!1,K);},p.prototype.writeUInt32LE=function(I,F,K){q(this,I,F,!0,K);},p.prototype.writeUInt32BE=function(I,F,K){q(this,I,F,!1,K);},p.prototype.writeInt8=function(I,F,K){K||(Ie(I!=null,"missing value"),Ie(F!=null,"missing offset"),Ie(F<this.length,"Trying to write beyond buffer length"),st(I,127,-128)),F>=this.length||(0<=I?this.writeUInt8(I,F,K):this.writeUInt8(255+I+1,F,K));},p.prototype.writeInt16LE=function(I,F,K){te(this,I,F,!0,K);},p.prototype.writeInt16BE=function(I,F,K){te(this,I,F,!1,K);},p.prototype.writeInt32LE=function(I,F,K){ae(this,I,F,!0,K);},p.prototype.writeInt32BE=function(I,F,K){ae(this,I,F,!1,K);},p.prototype.writeFloatLE=function(I,F,K){Y(this,I,F,!0,K);},p.prototype.writeFloatBE=function(I,F,K){Y(this,I,F,!1,K);},p.prototype.writeDoubleLE=function(I,F,K){se(this,I,F,!0,K);},p.prototype.writeDoubleBE=function(I,F,K){se(this,I,F,!1,K);},p.prototype.fill=function(I,F,K){if(F=F||0,K=K||this.length,Ie(typeof(I=typeof(I=I||0)=="string"?I.charCodeAt(0):I)=="number"&&!isNaN(I),"value is not a number"),Ie(F<=K,"end < start"),K!==F&&this.length!==0){Ie(0<=F&&F<this.length,"start out of bounds"),Ie(0<=K&&K<=this.length,"end out of bounds");for(var be=F;be<K;be++)this[be]=I;}},p.prototype.inspect=function(){for(var I=[],F=this.length,K=0;K<F;K++)if(I[K]=ie(this[K]),K===r.INSPECT_MAX_BYTES){I[K+1]="...";break}return "<Buffer "+I.join(" ")+">"},p.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(p._useTypedArrays)return new p(this).buffer;for(var I=new Uint8Array(this.length),F=0,K=I.length;F<K;F+=1)I[F]=this[F];return I.buffer};var _e=p.prototype;function ce(I,F,K){return typeof I!="number"?K:F<=(I=~~I)?F:0<=I||0<=(I+=F)?I:0}function he(I){return (I=~~Math.ceil(+I))<0?0:I}function fe(I){return (Array.isArray||function(F){return Object.prototype.toString.call(F)==="[object Array]"})(I)}function ie(I){return I<16?"0"+I.toString(16):I.toString(16)}function Se(I){for(var F=[],K=0;K<I.length;K++){var be=I.charCodeAt(K);if(be<=127)F.push(I.charCodeAt(K));else for(var me=K,M=(55296<=be&&be<=57343&&K++,encodeURIComponent(I.slice(me,K+1)).substr(1).split("%")),J=0;J<M.length;J++)F.push(parseInt(M[J],16));}return F}function Te(I){return g.toByteArray(I)}function Pe(I,F,K,be){for(var me=0;me<be&&!(me+K>=F.length||me>=I.length);me++)F[me+K]=I[me];return me}function Je(I){try{return decodeURIComponent(I)}catch{return String.fromCharCode(65533)}}function et(I,F){Ie(typeof I=="number","cannot write a non-number as a number"),Ie(0<=I,"specified a negative value for writing an unsigned value"),Ie(I<=F,"value is larger than maximum value for type"),Ie(Math.floor(I)===I,"value has a fractional component");}function st(I,F,K){Ie(typeof I=="number","cannot write a non-number as a number"),Ie(I<=F,"value larger than maximum allowed value"),Ie(K<=I,"value smaller than minimum allowed value"),Ie(Math.floor(I)===I,"value has a fractional component");}function it(I,F,K){Ie(typeof I=="number","cannot write a non-number as a number"),Ie(I<=F,"value larger than maximum allowed value"),Ie(K<=I,"value smaller than minimum allowed value");}function Ie(I,F){if(!I)throw new Error(F||"Failed assertion")}p._augment=function(I){return I._isBuffer=!0,I._get=I.get,I._set=I.set,I.get=_e.get,I.set=_e.set,I.write=_e.write,I.toString=_e.toString,I.toLocaleString=_e.toString,I.toJSON=_e.toJSON,I.copy=_e.copy,I.slice=_e.slice,I.readUInt8=_e.readUInt8,I.readUInt16LE=_e.readUInt16LE,I.readUInt16BE=_e.readUInt16BE,I.readUInt32LE=_e.readUInt32LE,I.readUInt32BE=_e.readUInt32BE,I.readInt8=_e.readInt8,I.readInt16LE=_e.readInt16LE,I.readInt16BE=_e.readInt16BE,I.readInt32LE=_e.readInt32LE,I.readInt32BE=_e.readInt32BE,I.readFloatLE=_e.readFloatLE,I.readFloatBE=_e.readFloatBE,I.readDoubleLE=_e.readDoubleLE,I.readDoubleBE=_e.readDoubleBE,I.writeUInt8=_e.writeUInt8,I.writeUInt16LE=_e.writeUInt16LE,I.writeUInt16BE=_e.writeUInt16BE,I.writeUInt32LE=_e.writeUInt32LE,I.writeUInt32BE=_e.writeUInt32BE,I.writeInt8=_e.writeInt8,I.writeInt16LE=_e.writeInt16LE,I.writeInt16BE=_e.writeInt16BE,I.writeInt32LE=_e.writeInt32LE,I.writeInt32BE=_e.writeInt32BE,I.writeFloatLE=_e.writeFloatLE,I.writeFloatBE=_e.writeFloatBE,I.writeDoubleLE=_e.writeDoubleLE,I.writeDoubleBE=_e.writeDoubleBE,I.fill=_e.fill,I.inspect=_e.inspect,I.toArrayBuffer=_e.toArrayBuffer,I};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,g,a,s,f,h,l,d){var g=t("buffer").Buffer,v=4,p=new g(v);p.fill(0),e.exports={hash:function(_,b,O,B){for(var $=b(function(D,q){D.length%v!=0&&(te=D.length+(v-D.length%v),D=g.concat([D,p],te));for(var te,ae=[],Y=q?D.readInt32BE:D.readInt32LE,se=0;se<D.length;se+=v)ae.push(Y.call(D,se));return ae}(_=g.isBuffer(_)?_:new g(_),B),8*_.length),b=B,H=new g(O),Z=b?H.writeInt32BE:H.writeInt32LE,V=0;V<$.length;V++)Z.call(H,$[V],4*V,!0);return H}};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,g,a,s,f,h,l,d){var g=t("buffer").Buffer,v=t("./sha"),p=t("./sha256"),_=t("./rng"),b={sha1:v,sha256:p,md5:t("./md5")},O=64,B=new g(O);function $(D,q){var te=b[D=D||"sha1"],ae=[];return te||H("algorithm:",D,"is not yet supported"),{update:function(Y){return g.isBuffer(Y)||(Y=new g(Y)),ae.push(Y),this},digest:function(Y){var se=g.concat(ae),se=q?function(_e,ce,he){g.isBuffer(ce)||(ce=new g(ce)),g.isBuffer(he)||(he=new g(he)),ce.length>O?ce=_e(ce):ce.length<O&&(ce=g.concat([ce,B],O));for(var fe=new g(O),ie=new g(O),Se=0;Se<O;Se++)fe[Se]=54^ce[Se],ie[Se]=92^ce[Se];return he=_e(g.concat([fe,he])),_e(g.concat([ie,he]))}(te,q,se):te(se);return ae=null,Y?se.toString(Y):se}}}function H(){var D=[].slice.call(arguments).join(" ");throw new Error([D,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}B.fill(0),r.createHash=function(D){return $(D)},r.createHmac=$,r.randomBytes=function(D,q){if(!q||!q.call)return new g(_(D));try{q.call(this,void 0,new g(_(D)));}catch(te){q(te);}};var Z,V=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],j=function(D){r[D]=function(){H("sorry,",D,"is not implemented yet");};};for(Z in V)j(V[Z]);}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){var g=t("./helpers");function v(H,Z){H[Z>>5]|=128<<Z%32,H[14+(Z+64>>>9<<4)]=Z;for(var V=1732584193,j=-271733879,D=-1732584194,q=271733878,te=0;te<H.length;te+=16){var ae=V,Y=j,se=D,_e=q,V=_(V,j,D,q,H[te+0],7,-680876936),q=_(q,V,j,D,H[te+1],12,-389564586),D=_(D,q,V,j,H[te+2],17,606105819),j=_(j,D,q,V,H[te+3],22,-1044525330);V=_(V,j,D,q,H[te+4],7,-176418897),q=_(q,V,j,D,H[te+5],12,1200080426),D=_(D,q,V,j,H[te+6],17,-1473231341),j=_(j,D,q,V,H[te+7],22,-45705983),V=_(V,j,D,q,H[te+8],7,1770035416),q=_(q,V,j,D,H[te+9],12,-1958414417),D=_(D,q,V,j,H[te+10],17,-42063),j=_(j,D,q,V,H[te+11],22,-1990404162),V=_(V,j,D,q,H[te+12],7,1804603682),q=_(q,V,j,D,H[te+13],12,-40341101),D=_(D,q,V,j,H[te+14],17,-1502002290),V=b(V,j=_(j,D,q,V,H[te+15],22,1236535329),D,q,H[te+1],5,-165796510),q=b(q,V,j,D,H[te+6],9,-1069501632),D=b(D,q,V,j,H[te+11],14,643717713),j=b(j,D,q,V,H[te+0],20,-373897302),V=b(V,j,D,q,H[te+5],5,-701558691),q=b(q,V,j,D,H[te+10],9,38016083),D=b(D,q,V,j,H[te+15],14,-660478335),j=b(j,D,q,V,H[te+4],20,-405537848),V=b(V,j,D,q,H[te+9],5,568446438),q=b(q,V,j,D,H[te+14],9,-1019803690),D=b(D,q,V,j,H[te+3],14,-187363961),j=b(j,D,q,V,H[te+8],20,1163531501),V=b(V,j,D,q,H[te+13],5,-1444681467),q=b(q,V,j,D,H[te+2],9,-51403784),D=b(D,q,V,j,H[te+7],14,1735328473),V=O(V,j=b(j,D,q,V,H[te+12],20,-1926607734),D,q,H[te+5],4,-378558),q=O(q,V,j,D,H[te+8],11,-2022574463),D=O(D,q,V,j,H[te+11],16,1839030562),j=O(j,D,q,V,H[te+14],23,-35309556),V=O(V,j,D,q,H[te+1],4,-1530992060),q=O(q,V,j,D,H[te+4],11,1272893353),D=O(D,q,V,j,H[te+7],16,-155497632),j=O(j,D,q,V,H[te+10],23,-1094730640),V=O(V,j,D,q,H[te+13],4,681279174),q=O(q,V,j,D,H[te+0],11,-358537222),D=O(D,q,V,j,H[te+3],16,-722521979),j=O(j,D,q,V,H[te+6],23,76029189),V=O(V,j,D,q,H[te+9],4,-640364487),q=O(q,V,j,D,H[te+12],11,-421815835),D=O(D,q,V,j,H[te+15],16,530742520),V=B(V,j=O(j,D,q,V,H[te+2],23,-995338651),D,q,H[te+0],6,-198630844),q=B(q,V,j,D,H[te+7],10,1126891415),D=B(D,q,V,j,H[te+14],15,-1416354905),j=B(j,D,q,V,H[te+5],21,-57434055),V=B(V,j,D,q,H[te+12],6,1700485571),q=B(q,V,j,D,H[te+3],10,-1894986606),D=B(D,q,V,j,H[te+10],15,-1051523),j=B(j,D,q,V,H[te+1],21,-2054922799),V=B(V,j,D,q,H[te+8],6,1873313359),q=B(q,V,j,D,H[te+15],10,-30611744),D=B(D,q,V,j,H[te+6],15,-1560198380),j=B(j,D,q,V,H[te+13],21,1309151649),V=B(V,j,D,q,H[te+4],6,-145523070),q=B(q,V,j,D,H[te+11],10,-1120210379),D=B(D,q,V,j,H[te+2],15,718787259),j=B(j,D,q,V,H[te+9],21,-343485551),V=$(V,ae),j=$(j,Y),D=$(D,se),q=$(q,_e);}return Array(V,j,D,q)}function p(H,Z,V,j,D,q){return $((Z=$($(Z,H),$(j,q)))<<D|Z>>>32-D,V)}function _(H,Z,V,j,D,q,te){return p(Z&V|~Z&j,H,Z,D,q,te)}function b(H,Z,V,j,D,q,te){return p(Z&j|V&~j,H,Z,D,q,te)}function O(H,Z,V,j,D,q,te){return p(Z^V^j,H,Z,D,q,te)}function B(H,Z,V,j,D,q,te){return p(V^(Z|~j),H,Z,D,q,te)}function $(H,Z){var V=(65535&H)+(65535&Z);return (H>>16)+(Z>>16)+(V>>16)<<16|65535&V}e.exports=function(H){return g.hash(H,v,16)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){e.exports=function(v){for(var p,_=new Array(v),b=0;b<v;b++)!(3&b)&&(p=4294967296*Math.random()),_[b]=p>>>((3&b)<<3)&255;return _};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){var g=t("./helpers");function v(b,O){b[O>>5]|=128<<24-O%32,b[15+(O+64>>9<<4)]=O;for(var B,$,H,Z=Array(80),V=1732584193,j=-271733879,D=-1732584194,q=271733878,te=-1009589776,ae=0;ae<b.length;ae+=16){for(var Y=V,se=j,_e=D,ce=q,he=te,fe=0;fe<80;fe++){Z[fe]=fe<16?b[ae+fe]:_(Z[fe-3]^Z[fe-8]^Z[fe-14]^Z[fe-16],1);var ie=p(p(_(V,5),(ie=j,$=D,H=q,(B=fe)<20?ie&$|~ie&H:!(B<40)&&B<60?ie&$|ie&H|$&H:ie^$^H)),p(p(te,Z[fe]),(B=fe)<20?1518500249:B<40?1859775393:B<60?-1894007588:-899497514)),te=q,q=D,D=_(j,30),j=V,V=ie;}V=p(V,Y),j=p(j,se),D=p(D,_e),q=p(q,ce),te=p(te,he);}return Array(V,j,D,q,te)}function p(b,O){var B=(65535&b)+(65535&O);return (b>>16)+(O>>16)+(B>>16)<<16|65535&B}function _(b,O){return b<<O|b>>>32-O}e.exports=function(b){return g.hash(b,v,20,!0)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){function g(O,B){var $=(65535&O)+(65535&B);return (O>>16)+(B>>16)+($>>16)<<16|65535&$}function v(O,B){var $,H=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),Z=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),V=new Array(64);O[B>>5]|=128<<24-B%32,O[15+(B+64>>9<<4)]=B;for(var j,D,q=0;q<O.length;q+=16){for(var te=Z[0],ae=Z[1],Y=Z[2],se=Z[3],_e=Z[4],ce=Z[5],he=Z[6],fe=Z[7],ie=0;ie<64;ie++)V[ie]=ie<16?O[ie+q]:g(g(g((D=V[ie-2],_(D,17)^_(D,19)^b(D,10)),V[ie-7]),(D=V[ie-15],_(D,7)^_(D,18)^b(D,3))),V[ie-16]),$=g(g(g(g(fe,_(D=_e,6)^_(D,11)^_(D,25)),_e&ce^~_e&he),H[ie]),V[ie]),j=g(_(j=te,2)^_(j,13)^_(j,22),te&ae^te&Y^ae&Y),fe=he,he=ce,ce=_e,_e=g(se,$),se=Y,Y=ae,ae=te,te=g($,j);Z[0]=g(te,Z[0]),Z[1]=g(ae,Z[1]),Z[2]=g(Y,Z[2]),Z[3]=g(se,Z[3]),Z[4]=g(_e,Z[4]),Z[5]=g(ce,Z[5]),Z[6]=g(he,Z[6]),Z[7]=g(fe,Z[7]);}return Z}var p=t("./helpers"),_=function(O,B){return O>>>B|O<<32-B},b=function(O,B){return O>>>B};e.exports=function(O){return p.hash(O,v,32,!0)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){r.read=function(g,v,p,_,q){var O,B,$=8*q-_-1,H=(1<<$)-1,Z=H>>1,V=-7,j=p?q-1:0,D=p?-1:1,q=g[v+j];for(j+=D,O=q&(1<<-V)-1,q>>=-V,V+=$;0<V;O=256*O+g[v+j],j+=D,V-=8);for(B=O&(1<<-V)-1,O>>=-V,V+=_;0<V;B=256*B+g[v+j],j+=D,V-=8);if(O===0)O=1-Z;else {if(O===H)return B?NaN:1/0*(q?-1:1);B+=Math.pow(2,_),O-=Z;}return (q?-1:1)*B*Math.pow(2,O-_)},r.write=function(g,v,p,_,b,te){var B,$,H=8*te-b-1,Z=(1<<H)-1,V=Z>>1,j=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=_?0:te-1,q=_?1:-1,te=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?($=isNaN(v)?1:0,B=Z):(B=Math.floor(Math.log(v)/Math.LN2),v*(_=Math.pow(2,-B))<1&&(B--,_*=2),2<=(v+=1<=B+V?j/_:j*Math.pow(2,1-V))*_&&(B++,_/=2),Z<=B+V?($=0,B=Z):1<=B+V?($=(v*_-1)*Math.pow(2,b),B+=V):($=v*Math.pow(2,V-1)*Math.pow(2,b),B=0));8<=b;g[p+D]=255&$,D+=q,$/=256,b-=8);for(B=B<<b|$,H+=b;0<H;g[p+D]=255&B,D+=q,B/=256,H-=8);g[p+D-q]|=128*te;};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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(t,e,r){(function(n,o,i,a,s,f,h,l,d){var g,v,p;function _(){}(n=e.exports={}).nextTick=(v=typeof window<"u"&&window.setImmediate,p=typeof window<"u"&&window.postMessage&&window.addEventListener,v?function(b){return window.setImmediate(b)}:p?(g=[],window.addEventListener("message",function(b){var O=b.source;O!==window&&O!==null||b.data!=="process-tick"||(b.stopPropagation(),0<g.length&&g.shift()());},!0),function(b){g.push(b),window.postMessage("process-tick","*");}):function(b){setTimeout(b,0);}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=_,n.addListener=_,n.once=_,n.off=_,n.removeListener=_,n.removeAllListeners=_,n.emit=_,n.binding=function(b){throw new Error("process.binding is not supported")},n.cwd=function(){return "/"},n.chdir=function(b){throw new Error("process.chdir is not supported")};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("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 yx=Fe((L1e,dx)=>{x();C();N();L();P();dx.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 vx=Fe(Xc=>{x();C();N();L();P();Xc.byteLength=GG;Xc.toByteArray=zG;Xc.fromByteArray=ZG;var Si=[],kn=[],qG=typeof Uint8Array<"u"?Uint8Array:Array,Em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ca=0,gx=Em.length;ca<gx;++ca)Si[ca]=Em[ca],kn[Em.charCodeAt(ca)]=ca;var ca,gx;kn["-".charCodeAt(0)]=62;kn["_".charCodeAt(0)]=63;function mx(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return [r,n]}function GG(t){var e=mx(t),r=e[0],n=e[1];return (r+n)*3/4-n}function WG(t,e,r){return (e+r)*3/4-r}function zG(t){var e,r=mx(t),n=r[0],o=r[1],i=new qG(WG(t,n,o)),a=0,s=o>0?n-4:n,f;for(f=0;f<s;f+=4)e=kn[t.charCodeAt(f)]<<18|kn[t.charCodeAt(f+1)]<<12|kn[t.charCodeAt(f+2)]<<6|kn[t.charCodeAt(f+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=kn[t.charCodeAt(f)]<<2|kn[t.charCodeAt(f+1)]>>4,i[a++]=e&255),o===1&&(e=kn[t.charCodeAt(f)]<<10|kn[t.charCodeAt(f+1)]<<4|kn[t.charCodeAt(f+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function VG(t){return Si[t>>18&63]+Si[t>>12&63]+Si[t>>6&63]+Si[t&63]}function KG(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(VG(n));return o.join("")}function ZG(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,s=r-n;a<s;a+=i)o.push(KG(t,a,a+i>s?s:a+i));return n===1?(e=t[r-1],o.push(Si[e>>2]+Si[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(Si[e>>10]+Si[e>>4&63]+Si[e<<2&63]+"=")),o.join("")}});var _x=Fe(wm=>{x();C();N();L();P();wm.read=function(t,e,r,n,o){var i,a,s=o*8-n-1,f=(1<<s)-1,h=f>>1,l=-7,d=r?o-1:0,g=r?-1:1,v=t[e+d];for(d+=g,i=v&(1<<-l)-1,v>>=-l,l+=s;l>0;i=i*256+t[e+d],d+=g,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=a*256+t[e+d],d+=g,l-=8);if(i===0)i=1-h;else {if(i===f)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-h;}return (v?-1:1)*a*Math.pow(2,i-n)};wm.write=function(t,e,r,n,o,i){var a,s,f,h=i*8-o-1,l=(1<<h)-1,d=l>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:i-1,p=n?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+d>=1?e+=g/f:e+=g*Math.pow(2,1-d),e*f>=2&&(a++,f/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(e*f-1)*Math.pow(2,o),a=a+d):(s=e*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;t[r+v]=s&255,v+=p,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[r+v]=a&255,v+=p,a/=256,h-=8);t[r+v-p]|=_*128;};});var kx=Fe(Ts=>{x();C();N();L();P();var Sm=vx(),Rs=_x(),Ex=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ts.Buffer=$e;Ts.SlowBuffer=tW;Ts.INSPECT_MAX_BYTES=50;var Jc=2147483647;Ts.kMaxLength=Jc;$e.TYPED_ARRAY_SUPPORT=YG();!$e.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 YG(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return !1}}Object.defineProperty($e.prototype,"parent",{enumerable:!0,get:function(){if($e.isBuffer(this))return this.buffer}});Object.defineProperty($e.prototype,"offset",{enumerable:!0,get:function(){if($e.isBuffer(this))return this.byteOffset}});function Ki(t){if(t>Jc)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,$e.prototype),e}function $e(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Om(t)}return Ax(t,e,r)}$e.poolSize=8192;function Ax(t,e,r){if(typeof t=="string")return JG(t,e);if(ArrayBuffer.isView(t))return QG(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(bi(t,ArrayBuffer)||t&&bi(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(bi(t,SharedArrayBuffer)||t&&bi(t.buffer,SharedArrayBuffer)))return Am(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return $e.from(n,e,r);let o=eW(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return $e.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}$e.from=function(t,e,r){return Ax(t,e,r)};Object.setPrototypeOf($e.prototype,Uint8Array.prototype);Object.setPrototypeOf($e,Uint8Array);function Rx(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function XG(t,e,r){return Rx(t),t<=0?Ki(t):e!==void 0?typeof r=="string"?Ki(t).fill(e,r):Ki(t).fill(e):Ki(t)}$e.alloc=function(t,e,r){return XG(t,e,r)};function Om(t){return Rx(t),Ki(t<0?0:Tm(t)|0)}$e.allocUnsafe=function(t){return Om(t)};$e.allocUnsafeSlow=function(t){return Om(t)};function JG(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!$e.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Ox(t,e)|0,n=Ki(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function bm(t){let e=t.length<0?0:Tm(t.length)|0,r=Ki(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function QG(t){if(bi(t,Uint8Array)){let e=new Uint8Array(t);return Am(e.buffer,e.byteOffset,e.byteLength)}return bm(t)}function Am(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,$e.prototype),n}function eW(t){if($e.isBuffer(t)){let e=Tm(t.length)|0,r=Ki(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||xm(t.length)?Ki(0):bm(t);if(t.type==="Buffer"&&Array.isArray(t.data))return bm(t.data)}function Tm(t){if(t>=Jc)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Jc.toString(16)+" bytes");return t|0}function tW(t){return +t!=t&&(t=0),$e.alloc(+t)}$e.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==$e.prototype};$e.compare=function(e,r){if(bi(e,Uint8Array)&&(e=$e.from(e,e.offset,e.byteLength)),bi(r,Uint8Array)&&(r=$e.from(r,r.offset,r.byteLength)),!$e.isBuffer(e)||!$e.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};$e.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}};$e.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return $e.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=$e.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let a=e[n];if(bi(a,Uint8Array))i+a.length>o.length?($e.isBuffer(a)||(a=$e.from(a)),a.copy(o,i)):Uint8Array.prototype.set.call(o,a,i);else if($e.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length;}return o};function Ox(t,e){if($e.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||bi(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Rm(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Dx(t).length;default:if(o)return n?-1:Rm(t).length;e=(""+e).toLowerCase(),o=!0;}}$e.byteLength=Ox;function rW(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return "";for(t||(t="utf8");;)switch(t){case"hex":return hW(this,e,r);case"utf8":case"utf-8":return Ix(this,e,r);case"ascii":return lW(this,e,r);case"latin1":case"binary":return cW(this,e,r);case"base64":return uW(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pW(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0;}}$e.prototype._isBuffer=!0;function ha(t,e,r){let n=t[e];t[e]=t[r],t[r]=n;}$e.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)ha(this,r,r+1);return this};$e.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)ha(this,r,r+3),ha(this,r+1,r+2);return this};$e.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)ha(this,r,r+7),ha(this,r+1,r+6),ha(this,r+2,r+5),ha(this,r+3,r+4);return this};$e.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Ix(this,0,e):rW.apply(this,arguments)};$e.prototype.toLocaleString=$e.prototype.toString;$e.prototype.equals=function(e){if(!$e.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:$e.compare(this,e)===0};$e.prototype.inspect=function(){let e="",r=Ts.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ex&&($e.prototype[Ex]=$e.prototype.inspect);$e.prototype.compare=function(e,r,n,o,i){if(bi(e,Uint8Array)&&(e=$e.from(e,e.offset,e.byteLength)),!$e.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return -1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let a=i-o,s=n-r,f=Math.min(a,s),h=this.slice(o,i),l=e.slice(r,n);for(let d=0;d<f;++d)if(h[d]!==l[d]){a=h[d],s=l[d];break}return a<s?-1:s<a?1:0};function Tx(t,e,r,n,o){if(t.length===0)return -1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xm(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return -1;r=t.length-1;}else if(r<0)if(o)r=0;else return -1;if(typeof e=="string"&&(e=$e.from(e,n)),$e.isBuffer(e))return e.length===0?-1:wx(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):wx(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function wx(t,e,r,n,o){let i=1,a=t.length,s=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return -1;i=2,a/=2,s/=2,r/=2;}function f(l,d){return i===1?l[d]:l.readUInt16BE(d*i)}let h;if(o){let l=-1;for(h=r;h<a;h++)if(f(t,h)===f(e,l===-1?0:h-l)){if(l===-1&&(l=h),h-l+1===s)return l*i}else l!==-1&&(h-=h-l),l=-1;}else for(r+s>a&&(r=a-s),h=r;h>=0;h--){let l=!0;for(let d=0;d<s;d++)if(f(t,h+d)!==f(e,d)){l=!1;break}if(l)return h}return -1}$e.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};$e.prototype.indexOf=function(e,r,n){return Tx(this,e,r,n,!0)};$e.prototype.lastIndexOf=function(e,r,n){return Tx(this,e,r,n,!1)};function nW(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let a;for(a=0;a<n;++a){let s=parseInt(e.substr(a*2,2),16);if(xm(s))return a;t[r+a]=s;}return a}function iW(t,e,r,n){return Qc(Rm(e,t.length-r),t,r,n)}function oW(t,e,r,n){return Qc(mW(e),t,r,n)}function aW(t,e,r,n){return Qc(Dx(e),t,r,n)}function sW(t,e,r,n){return Qc(vW(e,t.length-r),t,r,n)}$e.prototype.write=function(e,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 i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let a=!1;for(;;)switch(o){case"hex":return nW(this,e,r,n);case"utf8":case"utf-8":return iW(this,e,r,n);case"ascii":case"latin1":case"binary":return oW(this,e,r,n);case"base64":return aW(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sW(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0;}};$e.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function uW(t,e,r){return e===0&&r===t.length?Sm.fromByteArray(t):Sm.fromByteArray(t.slice(e,r))}function Ix(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){let f,h,l,d;switch(s){case 1:i<128&&(a=i);break;case 2:f=t[o+1],(f&192)===128&&(d=(i&31)<<6|f&63,d>127&&(a=d));break;case 3:f=t[o+1],h=t[o+2],(f&192)===128&&(h&192)===128&&(d=(i&15)<<12|(f&63)<<6|h&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:f=t[o+1],h=t[o+2],l=t[o+3],(f&192)===128&&(h&192)===128&&(l&192)===128&&(d=(i&15)<<18|(f&63)<<12|(h&63)<<6|l&63,d>65535&&d<1114112&&(a=d));}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=s;}return fW(n)}var Sx=4096;function fW(t){let e=t.length;if(e<=Sx)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Sx));return r}function lW(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function cW(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function hW(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=_W[t[i]];return o}function pW(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}$e.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,$e.prototype),o};function xr(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}$e.prototype.readUintLE=$e.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||xr(e,r,this.length);let o=this[e],i=1,a=0;for(;++a<r&&(i*=256);)o+=this[e+a]*i;return o};$e.prototype.readUintBE=$e.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||xr(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};$e.prototype.readUint8=$e.prototype.readUInt8=function(e,r){return e=e>>>0,r||xr(e,1,this.length),this[e]};$e.prototype.readUint16LE=$e.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||xr(e,2,this.length),this[e]|this[e+1]<<8};$e.prototype.readUint16BE=$e.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||xr(e,2,this.length),this[e]<<8|this[e+1]};$e.prototype.readUint32LE=$e.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};$e.prototype.readUint32BE=$e.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};$e.prototype.readBigUInt64LE=Ao(function(e){e=e>>>0,Os(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&sf(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});$e.prototype.readBigUInt64BE=Ao(function(e){e=e>>>0,Os(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&sf(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return (BigInt(o)<<BigInt(32))+BigInt(i)});$e.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||xr(e,r,this.length);let o=this[e],i=1,a=0;for(;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};$e.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||xr(e,r,this.length);let o=r,i=1,a=this[e+--o];for(;o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};$e.prototype.readInt8=function(e,r){return e=e>>>0,r||xr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};$e.prototype.readInt16LE=function(e,r){e=e>>>0,r||xr(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};$e.prototype.readInt16BE=function(e,r){e=e>>>0,r||xr(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};$e.prototype.readInt32LE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};$e.prototype.readInt32BE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};$e.prototype.readBigInt64LE=Ao(function(e){e=e>>>0,Os(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&sf(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return (BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});$e.prototype.readBigInt64BE=Ao(function(e){e=e>>>0,Os(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&sf(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return (BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});$e.prototype.readFloatLE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),Rs.read(this,e,!0,23,4)};$e.prototype.readFloatBE=function(e,r){return e=e>>>0,r||xr(e,4,this.length),Rs.read(this,e,!1,23,4)};$e.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||xr(e,8,this.length),Rs.read(this,e,!0,52,8)};$e.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||xr(e,8,this.length),Rs.read(this,e,!1,52,8)};function un(t,e,r,n,o,i){if(!$e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}$e.prototype.writeUintLE=$e.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let s=Math.pow(2,8*n)-1;un(this,e,r,n,s,0);}let i=1,a=0;for(this[r]=e&255;++a<n&&(i*=256);)this[r+a]=e/i&255;return r+n};$e.prototype.writeUintBE=$e.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let s=Math.pow(2,8*n)-1;un(this,e,r,n,s,0);}let i=n-1,a=1;for(this[r+i]=e&255;--i>=0&&(a*=256);)this[r+i]=e/a&255;return r+n};$e.prototype.writeUint8=$e.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,1,255,0),this[r]=e&255,r+1};$e.prototype.writeUint16LE=$e.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};$e.prototype.writeUint16BE=$e.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};$e.prototype.writeUint32LE=$e.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};$e.prototype.writeUint32BE=$e.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function xx(t,e,r,n,o){Bx(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,r}function Cx(t,e,r,n,o){Bx(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a=a>>8,t[r+2]=a,a=a>>8,t[r+1]=a,a=a>>8,t[r]=a,r+8}$e.prototype.writeBigUInt64LE=Ao(function(e,r=0){return xx(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});$e.prototype.writeBigUInt64BE=Ao(function(e,r=0){return Cx(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});$e.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let f=Math.pow(2,8*n-1);un(this,e,r,n,f-1,-f);}let i=0,a=1,s=0;for(this[r]=e&255;++i<n&&(a*=256);)e<0&&s===0&&this[r+i-1]!==0&&(s=1),this[r+i]=(e/a>>0)-s&255;return r+n};$e.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let f=Math.pow(2,8*n-1);un(this,e,r,n,f-1,-f);}let i=n-1,a=1,s=0;for(this[r+i]=e&255;--i>=0&&(a*=256);)e<0&&s===0&&this[r+i+1]!==0&&(s=1),this[r+i]=(e/a>>0)-s&255;return r+n};$e.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};$e.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};$e.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};$e.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};$e.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||un(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};$e.prototype.writeBigInt64LE=Ao(function(e,r=0){return xx(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$e.prototype.writeBigInt64BE=Ao(function(e,r=0){return Cx(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Nx(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Px(t,e,r,n,o){return e=+e,r=r>>>0,o||Nx(t,e,r,4),Rs.write(t,e,r,n,23,4),r+4}$e.prototype.writeFloatLE=function(e,r,n){return Px(this,e,r,!0,n)};$e.prototype.writeFloatBE=function(e,r,n){return Px(this,e,r,!1,n)};function Lx(t,e,r,n,o){return e=+e,r=r>>>0,o||Nx(t,e,r,8),Rs.write(t,e,r,n,52,8),r+8}$e.prototype.writeDoubleLE=function(e,r,n){return Lx(this,e,r,!0,n)};$e.prototype.writeDoubleBE=function(e,r,n){return Lx(this,e,r,!1,n)};$e.prototype.copy=function(e,r,n,o){if(!$e.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};$e.prototype.fill=function(e,r,n,o){if(typeof e=="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"&&!$e.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let a=e.charCodeAt(0);(o==="utf8"&&a<128||o==="latin1")&&(e=a);}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else {let a=$e.isBuffer(e)?e:$e.from(e,o),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=a[i%s];}return this};var As={};function Im(t,e,r){As[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,delete this.name;}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0});}toString(){return `${this.name} [${t}]: ${this.message}`}};}Im("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Im("ERR_INVALID_ARG_TYPE",function(t,e){return `The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Im("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=bx(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=bx(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function bx(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return `${t.slice(0,r)}${e}`}function dW(t,e,r){Os(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&sf(e,t.length-(r+1));}function Bx(t,e,r,n,o,i){if(t>r||t<e){let a=typeof e=="bigint"?"n":"",s;throw i>3?e===0||e===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:s=`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:s=`>= ${e}${a} and <= ${r}${a}`,new As.ERR_OUT_OF_RANGE("value",s,t)}dW(n,o,i);}function Os(t,e){if(typeof t!="number")throw new As.ERR_INVALID_ARG_TYPE(e,"number",t)}function sf(t,e,r){throw Math.floor(t)!==t?(Os(t,r),new As.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new As.ERR_BUFFER_OUT_OF_BOUNDS:new As.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var yW=/[^+/0-9A-Za-z-_]/g;function gW(t){if(t=t.split("=")[0],t=t.trim().replace(yW,""),t.length<2)return "";for(;t.length%4!==0;)t=t+"=";return t}function Rm(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536;}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r);}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128);}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128);}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128);}else throw new Error("Invalid code point")}return i}function mW(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function vW(t,e){let r,n,o,i=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Dx(t){return Sm.toByteArray(gW(t))}function Qc(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function bi(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function xm(t){return t!==t}var _W=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o];}return e}();function Ao(t){return typeof BigInt>"u"?EW:t}function EW(){throw new Error("BigInt not supported")}});var Mx=Fe((iSe,Ux)=>{x();C();N();L();P();var An=yx(),Fx=kx().Buffer;function wW(t){return 12+4*Math.ceil(t.length/4)}function SW(){return !(typeof window<"u"&&typeof document<"u")}function bW(t){let e=0,r=-1;try{let n=t;if(t instanceof Map?n=Object.fromEntries(t):t instanceof Set&&(n=Array.from(t)),t instanceof Int8Array)return t.length*An.Int8Array;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return t.length*An.Uint8Array;if(t instanceof Int16Array)return t.length*An.Int16Array;if(t instanceof Uint16Array)return t.length*An.Uint16Array;if(t instanceof Int32Array)return t.length*An.Int32Array;if(t instanceof Uint32Array)return t.length*An.Uint32Array;if(t instanceof Float32Array)return t.length*An.Float32Array;if(t instanceof Float64Array)return t.length*An.Float64Array;let o=JSON.stringify(n);e=new Fx.from(o).byteLength;}catch(n){return console.error("Error detected, return "+r,n),r}return e}function AW(t){let e=[],r=[t],n=0;for(;r.length;){let o=r.pop();if(typeof o=="boolean")n+=An.BYTES;else if(typeof o=="string")SW()?n+=wW(o):n+=o.length*An.STRING;else if(typeof o=="number")n+=An.NUMBER;else if(typeof o=="symbol")Symbol.keyFor&&Symbol.keyFor(t)?n+=Symbol.keyFor(t).length*An.STRING:n+=(t.toString().length-8)*An.STRING;else if(typeof o=="bigint")n+=Fx.from(o.toString()).byteLength;else if(typeof o=="function")n+=o.toString().length;else if(typeof o=="object"&&e.indexOf(o)===-1){e.push(o);for(let i in o)r.push(o[i]);}}return n}Ux.exports=function(t){let e=0;return t!==null&&typeof t=="object"?e=bW(t):e=AW(t),e};});x();C();N();L();P();x();C();N();L();P();ri();x();C();N();L();P();x();C();N();L();P();var Tf,NC=new Uint8Array(16);function Ah(){if(!Tf&&(Tf=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Tf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Tf(NC)}x();C();N();L();P();var Lr=[];for(let t=0;t<256;++t)Lr.push((t+256).toString(16).slice(1));function T0(t,e=0){return (Lr[t[e+0]]+Lr[t[e+1]]+Lr[t[e+2]]+Lr[t[e+3]]+"-"+Lr[t[e+4]]+Lr[t[e+5]]+"-"+Lr[t[e+6]]+Lr[t[e+7]]+"-"+Lr[t[e+8]]+Lr[t[e+9]]+"-"+Lr[t[e+10]]+Lr[t[e+11]]+Lr[t[e+12]]+Lr[t[e+13]]+Lr[t[e+14]]+Lr[t[e+15]]).toLowerCase()}x();C();N();L();P();x();C();N();L();P();var PC=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Rh={randomUUID:PC};function LC(t,e,r){if(Rh.randomUUID&&!e&&!t)return Rh.randomUUID();t=t||{};let n=t.random||(t.rng||Ah)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let o=0;o<16;++o)e[r+o]=n[o];return e}return T0(n)}var ba=LC;var Cm=_a(b1()),nh=_a(T1());x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();var Zs=class{constructor(e){this.config=e;}};x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();function Ys(t,e){return function(){return t.apply(e,arguments)}}var{toString:AB}=Object.prototype,{getPrototypeOf:Xp}=Object,ul=(t=>e=>{let r=AB.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),oi=t=>(t=t.toLowerCase(),e=>ul(e)===t),fl=t=>e=>typeof e===t,{isArray:Da}=Array,Xs=fl("undefined");function RB(t){return t!==null&&!Xs(t)&&t.constructor!==null&&!Xs(t.constructor)&&xn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var C1=oi("ArrayBuffer");function OB(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&C1(t.buffer),e}var TB=fl("string"),xn=fl("function"),N1=fl("number"),ll=t=>t!==null&&typeof t=="object",IB=t=>t===!0||t===!1,sl=t=>{if(ul(t)!=="object")return !1;let e=Xp(t);return (e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xB=oi("Date"),CB=oi("File"),NB=oi("Blob"),PB=oi("FileList"),LB=t=>ll(t)&&xn(t.pipe),BB=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xn(t.append)&&((e=ul(t))==="formdata"||e==="object"&&xn(t.toString)&&t.toString()==="[object FormData]"))},DB=oi("URLSearchParams"),kB=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Js(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),Da(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else {let i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length,s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t);}}function P1(t,e){e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:le)(),B1=t=>!Xs(t)&&t!==L1;function Yp(){let{caseless:t}=B1(this)&&this||{},e={},r=(n,o)=>{let i=t&&P1(e,o)||o;sl(e[i])&&sl(n)?e[i]=Yp(e[i],n):sl(n)?e[i]=Yp({},n):Da(n)?e[i]=n.slice():e[i]=n;};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Js(arguments[n],r);return e}var FB=(t,e,r,{allOwnKeys:n}={})=>(Js(e,(o,i)=>{r&&xn(o)?t[i]=Ys(o,r):t[i]=o;},{allOwnKeys:n}),t),UB=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),MB=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r);},$B=(t,e,r,n)=>{let o,i,a,s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&Xp(t);}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},jB=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},HB=t=>{if(!t)return null;if(Da(t))return t;let e=t.length;if(!N1(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},qB=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Xp(Uint8Array)),GB=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),o;for(;(o=n.next())&&!o.done;){let i=o.value;e.call(t,i[0],i[1]);}},WB=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},zB=oi("HTMLFormElement"),VB=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),I1=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),KB=oi("RegExp"),D1=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Js(r,(o,i)=>{e(o,i,t)!==!1&&(n[i]=o);}),Object.defineProperties(t,n);},ZB=t=>{D1(t,(e,r)=>{if(xn(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return !1;let n=t[r];if(xn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")});}});},YB=(t,e)=>{let r={},n=o=>{o.forEach(i=>{r[i]=!0;});};return Da(t)?n(t):n(String(t).split(e)),r},XB=()=>{},JB=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Zp="abcdefghijklmnopqrstuvwxyz",x1="0123456789",k1={DIGIT:x1,ALPHA:Zp,ALPHA_DIGIT:Zp+Zp.toUpperCase()+x1},QB=(t=16,e=k1.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function eD(t){return !!(t&&xn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}var tD=t=>{let e=new Array(10),r=(n,o)=>{if(ll(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;let i=Da(n)?[]:{};return Js(n,(a,s)=>{let f=r(a,o+1);!Xs(f)&&(i[s]=f);}),e[o]=void 0,i}}return n};return r(t,0)},rD=oi("AsyncFunction"),nD=t=>t&&(ll(t)||xn(t))&&xn(t.then)&&xn(t.catch),Ue={isArray:Da,isArrayBuffer:C1,isBuffer:RB,isFormData:BB,isArrayBufferView:OB,isString:TB,isNumber:N1,isBoolean:IB,isObject:ll,isPlainObject:sl,isUndefined:Xs,isDate:xB,isFile:CB,isBlob:NB,isRegExp:KB,isFunction:xn,isStream:LB,isURLSearchParams:DB,isTypedArray:qB,isFileList:PB,forEach:Js,merge:Yp,extend:FB,trim:kB,stripBOM:UB,inherits:MB,toFlatObject:$B,kindOf:ul,kindOfTest:oi,endsWith:jB,toArray:HB,forEachEntry:GB,matchAll:WB,isHTMLForm:zB,hasOwnProperty:I1,hasOwnProp:I1,reduceDescriptors:D1,freezeMethods:ZB,toObjectSet:YB,toCamelCase:VB,noop:XB,toFiniteNumber:JB,findKey:P1,global:L1,isContextDefined:B1,ALPHABET:k1,generateString:QB,isSpecCompliantForm:eD,toJSONObject:tD,isAsyncFn:rD,isThenable:nD};x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();function ka(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o);}Ue.inherits(ka,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:Ue.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var F1=ka.prototype,U1={};["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(t=>{U1[t]={value:t};});Object.defineProperties(ka,U1);Object.defineProperty(F1,"isAxiosError",{value:!0});ka.from=(t,e,r,n,o,i)=>{let a=Object.create(F1);return Ue.toFlatObject(t,a,function(f){return f!==Error.prototype},s=>s!=="isAxiosError"),ka.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};var kt=ka;x();C();N();L();P();var cl=null;function Jp(t){return Ue.isPlainObject(t)||Ue.isArray(t)}function $1(t){return Ue.endsWith(t,"[]")?t.slice(0,-2):t}function M1(t,e,r){return t?t.concat(e).map(function(o,i){return o=$1(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function iD(t){return Ue.isArray(t)&&!t.some(Jp)}var oD=Ue.toFlatObject(Ue,{},null,function(e){return /^is[A-Z]/.test(e)});function aD(t,e,r){if(!Ue.isObject(t))throw new TypeError("target must be an object");e=e||new(FormData),r=Ue.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return !Ue.isUndefined(b[_])});let n=r.metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&Ue.isSpecCompliantForm(e);if(!Ue.isFunction(o))throw new TypeError("visitor must be a function");function h(p){if(p===null)return "";if(Ue.isDate(p))return p.toISOString();if(!f&&Ue.isBlob(p))throw new kt("Blob is not supported. Use a Buffer instead.");return Ue.isArrayBuffer(p)||Ue.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):pe.from(p):p}function l(p,_,b){let O=p;if(p&&!b&&typeof p=="object"){if(Ue.endsWith(_,"{}"))_=n?_:_.slice(0,-2),p=JSON.stringify(p);else if(Ue.isArray(p)&&iD(p)||(Ue.isFileList(p)||Ue.endsWith(_,"[]"))&&(O=Ue.toArray(p)))return _=$1(_),O.forEach(function($,H){!(Ue.isUndefined($)||$===null)&&e.append(a===!0?M1([_],H,i):a===null?_:_+"[]",h($));}),!1}return Jp(p)?!0:(e.append(M1(b,_,i),h(p)),!1)}let d=[],g=Object.assign(oD,{defaultVisitor:l,convertValue:h,isVisitable:Jp});function v(p,_){if(!Ue.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(p),Ue.forEach(p,function(O,B){(!(Ue.isUndefined(O)||O===null)&&o.call(e,O,Ue.isString(B)?B.trim():B,_,g))===!0&&v(O,_?_.concat(B):[B]);}),d.pop();}}if(!Ue.isObject(t))throw new TypeError("data must be an object");return v(t),e}var ro=aD;function j1(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function H1(t,e){this._pairs=[],t&&ro(t,this,e);}var q1=H1.prototype;q1.append=function(e,r){this._pairs.push([e,r]);};q1.toString=function(e){let r=e?function(n){return e.call(this,n,j1)}:j1;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var hl=H1;function sD(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qs(t,e,r){if(!e)return t;let n=r&&r.encode||sD,o=r&&r.serialize,i;if(o?i=o(e,r):i=Ue.isURLSearchParams(e)?e.toString():new hl(e,r).toString(n),i){let a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i;}return t}x();C();N();L();P();var Qp=class{constructor(){this.handlers=[];}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(e){Ue.forEach(this.handlers,function(n){n!==null&&e(n);});}},ed=Qp;x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();var pl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();var G1=typeof URLSearchParams<"u"?URLSearchParams:hl;x();C();N();L();P();var W1=typeof FormData<"u"?FormData:null;x();C();N();L();P();var z1=typeof Blob<"u"?Blob:null;var uD=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),fD=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Mr={isBrowser:!0,classes:{URLSearchParams:G1,FormData:W1,Blob:z1},isStandardBrowserEnv:uD,isStandardBrowserWebWorkerEnv:fD,protocols:["http","https","file","blob","url","data"]};function td(t,e){return ro(t,new Mr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Mr.isNode&&Ue.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}x();C();N();L();P();function lD(t){return Ue.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function cD(t){let e={},r=Object.keys(t),n,o=r.length,i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function hD(t){function e(r,n,o,i){let a=r[i++],s=Number.isFinite(+a),f=i>=r.length;return a=!a&&Ue.isArray(o)?o.length:a,f?(Ue.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!Ue.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&Ue.isArray(o[a])&&(o[a]=cD(o[a])),!s)}if(Ue.isFormData(t)&&Ue.isFunction(t.entries)){let r={};return Ue.forEachEntry(t,(n,o)=>{e(lD(n),o,r,0);}),r}return null}var dl=hD;var pD={"Content-Type":void 0};function dD(t,e,r){if(Ue.isString(t))try{return (e||JSON.parse)(t),Ue.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return (r||JSON.stringify)(t)}var yl={transitional:pl,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Ue.isObject(e);if(i&&Ue.isHTMLForm(e)&&(e=new FormData(e)),Ue.isFormData(e))return o&&o?JSON.stringify(dl(e)):e;if(Ue.isArrayBuffer(e)||Ue.isBuffer(e)||Ue.isStream(e)||Ue.isFile(e)||Ue.isBlob(e))return e;if(Ue.isArrayBufferView(e))return e.buffer;if(Ue.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return td(e,this.formSerializer).toString();if((s=Ue.isFileList(e))||n.indexOf("multipart/form-data")>-1){let f=this.env&&this.env.FormData;return ro(s?{"files[]":e}:e,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),dD(e)):e}],transformResponse:[function(e){let r=this.transitional||yl.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&Ue.isString(e)&&(n&&!this.responseType||o)){let a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?kt.from(s,kt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mr.classes.FormData,Blob:Mr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ue.forEach(["delete","get","head"],function(e){yl.headers[e]={};});Ue.forEach(["post","put","patch"],function(e){yl.headers[e]=Ue.merge(pD);});var Fa=yl;x();C();N();L();P();x();C();N();L();P();var yD=Ue.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"]),V1=t=>{let e={},r,n,o;return t&&t.split(`
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||e[r]&&yD[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n);}),e};var K1=Symbol("internals");function eu(t){return t&&String(t).trim().toLowerCase()}function gl(t){return t===!1||t==null?t:Ue.isArray(t)?t.map(gl):String(t)}function gD(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var mD=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function rd(t,e,r,n,o){if(Ue.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!Ue.isString(e)){if(Ue.isString(n))return e.indexOf(n)!==-1;if(Ue.isRegExp(n))return n.test(e)}}function vD(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function _D(t,e){let r=Ue.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,a){return this[n].call(this,e,o,i,a)},configurable:!0});});}var Ua=class{constructor(e){e&&this.set(e);}set(e,r,n){let o=this;function i(s,f,h){let l=eu(f);if(!l)throw new Error("header name must be a non-empty string");let d=Ue.findKey(o,l);(!d||o[d]===void 0||h===!0||h===void 0&&o[d]!==!1)&&(o[d||f]=gl(s));}let a=(s,f)=>Ue.forEach(s,(h,l)=>i(h,l,f));return Ue.isPlainObject(e)||e instanceof this.constructor?a(e,r):Ue.isString(e)&&(e=e.trim())&&!mD(e)?a(V1(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=eu(e),e){let n=Ue.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return gD(o);if(Ue.isFunction(r))return r.call(this,o,n);if(Ue.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=eu(e),e){let n=Ue.findKey(this,e);return !!(n&&this[n]!==void 0&&(!r||rd(this,this[n],n,r)))}return !1}delete(e,r){let n=this,o=!1;function i(a){if(a=eu(a),a){let s=Ue.findKey(n,a);s&&(!r||rd(n,n[s],s,r))&&(delete n[s],o=!0);}}return Ue.isArray(e)?e.forEach(i):i(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||rd(this,this[i],i,e,!0))&&(delete this[i],o=!0);}return o}normalize(e){let r=this,n={};return Ue.forEach(this,(o,i)=>{let a=Ue.findKey(n,i);if(a){r[a]=gl(o),delete r[i];return}let s=e?vD(i):String(i).trim();s!==i&&delete r[i],r[s]=gl(o),n[s]=!0;}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return Ue.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&Ue.isArray(n)?n.join(", "):n);}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[K1]=this[K1]={accessors:{}}).accessors,o=this.prototype;function i(a){let s=eu(a);n[s]||(_D(o,a),n[s]=!0);}return Ue.isArray(e)?e.forEach(i):i(e),this}};Ua.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ue.freezeMethods(Ua.prototype);Ue.freezeMethods(Ua);var qr=Ua;function tu(t,e){let r=this||Fa,n=e||r,o=qr.from(n.headers),i=n.data;return Ue.forEach(t,function(s){i=s.call(r,i,o.normalize(),e?e.status:void 0);}),o.normalize(),i}x();C();N();L();P();function ru(t){return !!(t&&t.__CANCEL__)}x();C();N();L();P();function Z1(t,e,r){kt.call(this,t??"canceled",kt.ERR_CANCELED,e,r),this.name="CanceledError";}Ue.inherits(Z1,kt,{__CANCEL__:!0});var no=Z1;x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();function nd(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new kt("Request failed with status code "+r.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));}x();C();N();L();P();var Y1=Mr.isStandardBrowserEnv?function(){return {write:function(r,n,o,i,a,s){let f=[];f.push(r+"="+encodeURIComponent(n)),Ue.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),Ue.isString(i)&&f.push("path="+i),Ue.isString(a)&&f.push("domain="+a),s===!0&&f.push("secure"),document.cookie=f.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(){}}}();x();C();N();L();P();x();C();N();L();P();function id(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}x();C();N();L();P();function od(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function nu(t,e){return t&&!id(e)?od(t,e):e}x();C();N();L();P();var X1=Mr.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){let a=i;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{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(a){let s=Ue.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return !0}}();x();C();N();L();P();function ad(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}x();C();N();L();P();function ED(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,i=0,a;return e=e!==void 0?e:1e3,function(f){let h=Date.now(),l=n[i];a||(a=h),r[o]=f,n[o]=h;let d=i,g=0;for(;d!==o;)g+=r[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),h-a<e)return;let v=l&&h-l;return v?Math.round(g*1e3/v):void 0}}var J1=ED;function Q1(t,e){let r=0,n=J1(50,250);return o=>{let i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,f=n(s),h=i<=a;r=i;let l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:f||void 0,estimated:f&&a&&h?(a-i)/f:void 0,event:o};l[e?"download":"upload"]=!0,t(l);}}var wD=typeof XMLHttpRequest<"u",eS=wD&&function(t){return new Promise(function(r,n){let o=t.data,i=qr.from(t.headers).normalize(),a=t.responseType,s;function f(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s);}Ue.isFormData(o)&&(Mr.isStandardBrowserEnv||Mr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(t.auth){let v=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+p));}let l=nu(t.baseURL,t.url);h.open(t.method.toUpperCase(),Qs(l,t.params,t.paramsSerializer),!0),h.timeout=t.timeout;function d(){if(!h)return;let v=qr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:v,config:t,request:h};nd(function(O){r(O),f();},function(O){n(O),f();},_),h=null;}if("onloadend"in h?h.onloadend=d:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(d);},h.onabort=function(){h&&(n(new kt("Request aborted",kt.ECONNABORTED,t,h)),h=null);},h.onerror=function(){n(new kt("Network Error",kt.ERR_NETWORK,t,h)),h=null;},h.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",_=t.transitional||pl;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),n(new kt(p,_.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,t,h)),h=null;},Mr.isStandardBrowserEnv){let v=(t.withCredentials||X1(l))&&t.xsrfCookieName&&Y1.read(t.xsrfCookieName);v&&i.set(t.xsrfHeaderName,v);}o===void 0&&i.setContentType(null),"setRequestHeader"in h&&Ue.forEach(i.toJSON(),function(p,_){h.setRequestHeader(_,p);}),Ue.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),a&&a!=="json"&&(h.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&h.addEventListener("progress",Q1(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Q1(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=v=>{h&&(n(!v||v.type?new no(null,t,h):v),h.abort(),h=null);},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));let g=ad(l);if(g&&Mr.protocols.indexOf(g)===-1){n(new kt("Unsupported protocol "+g+":",kt.ERR_BAD_REQUEST,t));return}h.send(o||null);})};var ml={http:cl,xhr:eS};Ue.forEach(ml,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e});}catch{}Object.defineProperty(t,"adapterName",{value:e});}});var tS={getAdapter:t=>{t=Ue.isArray(t)?t:[t];let{length:e}=t,r,n;for(let o=0;o<e&&(r=t[o],!(n=Ue.isString(r)?ml[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new kt(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ue.hasOwnProp(ml,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!Ue.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:ml};function sd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new no(null,t)}function vl(t){return sd(t),t.headers=qr.from(t.headers),t.data=tu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tS.getAdapter(t.adapter||Fa.adapter)(t).then(function(n){return sd(t),n.data=tu.call(t,t.transformResponse,n),n.headers=qr.from(n.headers),n},function(n){return ru(n)||(sd(t),n&&n.response&&(n.response.data=tu.call(t,t.transformResponse,n.response),n.response.headers=qr.from(n.response.headers))),Promise.reject(n)})}x();C();N();L();P();var rS=t=>t instanceof qr?t.toJSON():t;function xi(t,e){e=e||{};let r={};function n(h,l,d){return Ue.isPlainObject(h)&&Ue.isPlainObject(l)?Ue.merge.call({caseless:d},h,l):Ue.isPlainObject(l)?Ue.merge({},l):Ue.isArray(l)?l.slice():l}function o(h,l,d){if(Ue.isUndefined(l)){if(!Ue.isUndefined(h))return n(void 0,h,d)}else return n(h,l,d)}function i(h,l){if(!Ue.isUndefined(l))return n(void 0,l)}function a(h,l){if(Ue.isUndefined(l)){if(!Ue.isUndefined(h))return n(void 0,h)}else return n(void 0,l)}function s(h,l,d){if(d in e)return n(h,l);if(d in t)return n(void 0,h)}let f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(h,l)=>o(rS(h),rS(l),!0)};return Ue.forEach(Object.keys(Object.assign({},t,e)),function(l){let d=f[l]||o,g=d(t[l],e[l],l);Ue.isUndefined(g)&&d!==s||(r[l]=g);}),r}x();C();N();L();P();x();C();N();L();P();var _l="1.4.0";var ud={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ud[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t};});var nS={};ud.transitional=function(e,r,n){function o(i,a){return "[Axios v"+_l+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return (i,a,s)=>{if(e===!1)throw new kt(o(a," has been removed"+(r?" in "+r:"")),kt.ERR_DEPRECATED);return r&&!nS[a]&&(nS[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,a,s):!0}};function SD(t,e,r){if(typeof t!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],a=e[i];if(a){let s=t[i],f=s===void 0||a(s,i,t);if(f!==!0)throw new kt("option "+i+" must be "+f,kt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new kt("Unknown option "+i,kt.ERR_BAD_OPTION)}}var El={assertOptions:SD,validators:ud};var io=El.validators,Ma=class{constructor(e){this.defaults=e,this.interceptors={request:new ed,response:new ed};}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=xi(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&El.assertOptions(n,{silentJSONParsing:io.transitional(io.boolean),forcedJSONParsing:io.transitional(io.boolean),clarifyTimeoutError:io.transitional(io.boolean)},!1),o!=null&&(Ue.isFunction(o)?r.paramsSerializer={serialize:o}:El.assertOptions(o,{encode:io.function,serialize:io.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a;a=i&&Ue.merge(i.common,i[r.method]),a&&Ue.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p];}),r.headers=qr.concat(a,i);let s=[],f=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(f=f&&_.synchronous,s.unshift(_.fulfilled,_.rejected));});let h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected);});let l,d=0,g;if(!f){let p=[vl.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,h),g=p.length,l=Promise.resolve(r);d<g;)l=l.then(p[d++],p[d++]);return l}g=s.length;let v=r;for(d=0;d<g;){let p=s[d++],_=s[d++];try{v=p(v);}catch(b){_.call(this,b);break}}try{l=vl.call(this,v);}catch(p){return Promise.reject(p)}for(d=0,g=h.length;d<g;)l=l.then(h[d++],h[d++]);return l}getUri(e){e=xi(this.defaults,e);let r=nu(e.baseURL,e.url);return Qs(r,e.params,e.paramsSerializer)}};Ue.forEach(["delete","get","head","options"],function(e){Ma.prototype[e]=function(r,n){return this.request(xi(n||{},{method:e,url:r,data:(n||{}).data}))};});Ue.forEach(["post","put","patch"],function(e){function r(n){return function(i,a,s){return this.request(xi(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ma.prototype[e]=r(),Ma.prototype[e+"Form"]=r(!0);});var iu=Ma;x();C();N();L();P();var ou=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i;});let n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null;}),this.promise.then=o=>{let i,a=new Promise(s=>{n.subscribe(s),i=s;}).then(o);return a.cancel=function(){n.unsubscribe(i);},a},e(function(i,a,s){n.reason||(n.reason=new no(i,a,s),r(n.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e];}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1);}static source(){let e;return {token:new ou(function(o){e=o;}),cancel:e}}},iS=ou;x();C();N();L();P();function fd(t){return function(r){return t.apply(null,r)}}x();C();N();L();P();function ld(t){return Ue.isObject(t)&&t.isAxiosError===!0}x();C();N();L();P();var cd={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(cd).forEach(([t,e])=>{cd[e]=t;});var oS=cd;function aS(t){let e=new iu(t),r=Ys(iu.prototype.request,e);return Ue.extend(r,iu.prototype,e,{allOwnKeys:!0}),Ue.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return aS(xi(t,o))},r}var mr=aS(Fa);mr.Axios=iu;mr.CanceledError=no;mr.CancelToken=iS;mr.isCancel=ru;mr.VERSION=_l;mr.toFormData=ro;mr.AxiosError=kt;mr.Cancel=mr.CanceledError;mr.all=function(e){return Promise.all(e)};mr.spread=fd;mr.isAxiosError=ld;mr.mergeConfig=xi;mr.AxiosHeaders=qr;mr.formToJSON=t=>dl(Ue.isHTMLForm(t)?new FormData(t):t);mr.HttpStatusCode=oS;mr.default=mr;var au=mr;var pd=_a(uS());x();C();N();L();P();var Ci=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;}};x();C();N();L();P();var wl=class extends Error{constructor(e){super(e),this.name="CancelError";}get isCancelled(){return !0}},ai,si,Hn,oo,No,su,$a,Gr=class{constructor(e){St(this,ai,void 0);St(this,si,void 0);St(this,Hn,void 0);St(this,oo,void 0);St(this,No,void 0);St(this,su,void 0);St(this,$a,void 0);ct(this,ai,!1),ct(this,si,!1),ct(this,Hn,!1),ct(this,oo,[]),ct(this,No,new Promise((r,n)=>{ct(this,su,r),ct(this,$a,n);let o=s=>{var f;ue(this,ai)||ue(this,si)||ue(this,Hn)||(ct(this,ai,!0),(f=ue(this,su))==null||f.call(this,s));},i=s=>{var f;ue(this,ai)||ue(this,si)||ue(this,Hn)||(ct(this,si,!0),(f=ue(this,$a))==null||f.call(this,s));},a=s=>{ue(this,ai)||ue(this,si)||ue(this,Hn)||ue(this,oo).push(s);};return Object.defineProperty(a,"isResolved",{get:()=>ue(this,ai)}),Object.defineProperty(a,"isRejected",{get:()=>ue(this,si)}),Object.defineProperty(a,"isCancelled",{get:()=>ue(this,Hn)}),e(o,i,a)}));}get[Symbol.toStringTag](){return "Cancellable Promise"}then(e,r){return ue(this,No).then(e,r)}catch(e){return ue(this,No).catch(e)}finally(e){return ue(this,No).finally(e)}cancel(){var e;if(!(ue(this,ai)||ue(this,si)||ue(this,Hn))){if(ct(this,Hn,!0),ue(this,oo).length)try{for(let r of ue(this,oo))r();}catch(r){console.warn("Cancellation threw an error",r);return}ue(this,oo).length=0,(e=ue(this,$a))==null||e.call(this,new wl("Request aborted"));}}get isCancelled(){return ue(this,Hn)}};ai=new WeakMap,si=new WeakMap,Hn=new WeakMap,oo=new WeakMap,No=new WeakMap,su=new WeakMap,$a=new WeakMap;var dd=t=>t!=null,bl=t=>typeof t=="string",hd=t=>bl(t)&&t!=="",fS=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),bD=t=>t instanceof pd.default,AD=t=>t>=200&&t<300,RD=t=>{try{return btoa(t)}catch{return pe.from(t).toString("base64")}},OD=t=>{let e=[],r=(o,i)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`);},n=(o,i)=>{dd(i)&&(Array.isArray(i)?i.forEach(a=>{n(o,a);}):typeof i=="object"?Object.entries(i).forEach(([a,s])=>{n(`${o}[${a}]`,s);}):r(o,i));};return Object.entries(t).forEach(([o,i])=>{n(o,i);}),e.length>0?`?${e.join("&")}`:""},TD=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,n=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(i,a)=>e.path?.hasOwnProperty(a)?r(String(e.path[a])):i),o=`${t.BASE}${n}`;return e.query?`${o}${OD(e.query)}`:o},ID=t=>{if(t.formData){let e=new pd.default,r=(n,o)=>{bl(o)||fS(o)?e.append(n,o):e.append(n,JSON.stringify(o));};return Object.entries(t.formData).filter(([n,o])=>dd(o)).forEach(([n,o])=>{Array.isArray(o)?o.forEach(i=>r(n,i)):r(n,o);}),e}},Sl=async(t,e)=>typeof e=="function"?e(t):e,xD=async(t,e,r)=>{let n=await Sl(e,t.TOKEN),o=await Sl(e,t.USERNAME),i=await Sl(e,t.PASSWORD),a=await Sl(e,t.HEADERS),s=typeof r?.getHeaders=="function"&&r?.getHeaders()||{},f=Object.entries({Accept:"application/json",...a,...e.headers,...s}).filter(([h,l])=>dd(l)).reduce((h,[l,d])=>({...h,[l]:String(d)}),{});if(hd(n)&&(f.Authorization=`Bearer ${n}`),hd(o)&&hd(i)){let h=RD(`${o}:${i}`);f.Authorization=`Basic ${h}`;}return e.body&&(e.mediaType?f["Content-Type"]=e.mediaType:fS(e.body)?f["Content-Type"]=e.body.type||"application/octet-stream":bl(e.body)?f["Content-Type"]="text/plain":bD(e.body)||(f["Content-Type"]="application/json")),f},CD=t=>{if(t.body)return t.body},ND=async(t,e,r,n,o,i,a)=>{let s=au.CancelToken.source(),f={url:r,headers:i,data:n??o,method:e.method,withCredentials:t.WITH_CREDENTIALS,cancelToken:s.token};a(()=>s.cancel("The user aborted a request."));try{return await au.request(f)}catch(h){let l=h;if(l.response)return l.response;throw h}},PD=(t,e)=>{if(e){let r=t.headers[e];if(bl(r))return r}},LD=t=>{if(t.status!==204)return t.data},BD=(t,e)=>{let n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...t.errors}[e.status];if(n)throw new Ci(t,e,n);if(!e.ok)throw new Ci(t,e,"Generic Error")},lS=(t,e)=>new Gr(async(r,n,o)=>{try{let i=TD(t,e),a=ID(e),s=CD(e),f=await xD(t,e,a);if(!o.isCancelled){let h=await ND(t,e,i,s,a,f,o),l=LD(h),d=PD(h,e.responseHeader),g={url:i,ok:AD(h.status),status:h.status,statusText:h.statusText,body:d??l};BD(e,g),r(g.body);}}catch(i){n(i);}});var ja=class extends Zs{constructor(e){super(e);}request(e){return lS(this.config,e)}};x();C();N();L();P();var uu=class{constructor(e){this.httpRequest=e;}completion(e){return this.httpRequest.request({method:"POST",url:"/v1/completions",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}event(e){return this.httpRequest.request({method:"POST",url:"/v1/events",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}health(){return this.httpRequest.request({method:"POST",url:"/v1/health"})}};var fu=class{constructor(e,r=ja){this.request=new r({BASE:e?.BASE??"https://playground.app.tabbyml.com",VERSION:e?.VERSION??"0.1.0",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.v1=new uu(this.request);}};x();C();N();L();P();x();C();N();L();P();function Ni(t){return t.match(/.*(?:$|\r?\n)/g).filter(Boolean)}function yd(t){return t.match(/\w+|\W+/g).filter(Boolean)}function Po(t){return t.trim().length===0}function ao(t,e){return new Gr((r,n,o)=>{t.then(i=>{r(i);}).catch(i=>{n(i);}),o(()=>{e();});})}x();C();N();L();P();ri();x();C();N();L();P();function gd(t){this.message=t;}gd.prototype=new Error,gd.prototype.name="InvalidCharacterError";var cS=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new gd("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,a="";n=e.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function DD(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw "Illegal base64url string!"}try{return function(r){return decodeURIComponent(cS(r).replace(/(.)/g,function(n,o){var i=o.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}(e)}catch{return cS(e)}}function Al(t){this.message=t;}function kD(t,e){if(typeof t!="string")throw new Al("Invalid token specified");var r=(e=e||{}).header===!0?0:1;try{return JSON.parse(DD(t.split(".")[r]))}catch(n){throw new Al("Invalid token specified: "+n.message)}}Al.prototype=new Error,Al.prototype.name="InvalidTokenError";var Rl=kD;x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();var lu=class{constructor(e){this.httpRequest=e;}deviceToken(e){return this.httpRequest.request({method:"POST",url:"/device-token",body:e})}deviceTokenAccept(e){return this.httpRequest.request({method:"POST",url:"/device-token/accept",query:e})}deviceTokenRefresh(e){return this.httpRequest.request({method:"POST",url:"/device-token/refresh",headers:{Authorization:`Bearer ${e}`}})}usage(e){return this.httpRequest.request({method:"POST",url:"/usage",body:e})}};var Lo=class{constructor(e,r=ja){this.request=new r({BASE:e?.BASE??"https://app.tabbyml.com/api",VERSION:e?.VERSION??"0.0.0",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.api=new lu(this.request);}};x();C();N();L();P();x();C();N();L();P();x();C();N();L();P();cu();var wc=null;ia();var Zn=class extends ks{constructor(r){super();this.logger=vn.child({component:"Auth"});this.dataStore=null;this.refreshTokenTimer=null;this.authApi=null;this.jwt=null;this.endpoint=r.endpoint,this.dataStore=r.dataStore||wc,this.authApi=new Lo,this.scheduleRefreshToken();}static async create(r){let n=new Zn(r);return await n.load(),n}get token(){return this.jwt?.token}get user(){return this.jwt?.payload.email}async load(){if(this.dataStore)try{await this.dataStore.load();let r=this.dataStore.data.auth?.[this.endpoint]?.jwt;if(typeof r=="string"&&this.jwt?.token!==r){this.logger.debug({storedJwt:r},"Load jwt from data store.");let n={token:r,payload:Rl(r)};n.payload.exp*1e3-Date.now()<Zn.tokenStrategy.refresh.beforeExpire?(this.jwt=await this.refreshToken(n,Zn.tokenStrategy.refresh.whenLoaded),await this.save()):this.jwt=n;}}catch(r){this.logger.debug({error:r},"Error when loading auth");}}async save(){if(this.dataStore)try{if(this.jwt){if(this.dataStore.data.auth?.[this.endpoint]?.jwt===this.jwt.token)return;this.dataStore.data.auth={...this.dataStore.data.auth,[this.endpoint]:{jwt:this.jwt.token}};}else {if(typeof this.dataStore.data.auth?.[this.endpoint]>"u")return;delete this.dataStore.data.auth[this.endpoint];}await this.dataStore.save(),this.logger.debug("Save changes to data store.");}catch(r){this.logger.error({error:r},"Error when saving auth");}}async reset(){this.jwt&&(this.jwt=null,await this.save());}requestAuthUrl(){return new Gr(async(r,n,o)=>{let i;o(()=>{i?.cancel();});try{if(await this.reset(),o.isCancelled)return;this.logger.debug("Start to request device token"),i=this.authApi.api.deviceToken({auth_url:this.endpoint});let a=await i;this.logger.debug({deviceToken:a},"Request device token response");let s=new URL(Zn.authPageUrl);s.searchParams.append("code",a.data.code),r({authUrl:s.toString(),code:a.data.code});}catch(a){this.logger.error({error:a},"Error when requesting token"),n(a);}})}pollingToken(r){return new Gr((n,o,i)=>{let a,s=setInterval(async()=>{try{a=this.authApi.api.deviceTokenAccept({code:r});let f=await a;this.logger.debug({response:f},"Poll jwt response"),this.jwt={token:f.data.jwt,payload:Rl(f.data.jwt)},super.emit("updated",this.jwt),await this.save(),clearInterval(s),n(!0);}catch(f){f instanceof Ci&&[400,401,403,405].indexOf(f.status)!==-1?this.logger.debug({error:f},"Expected error when polling jwt"):this.logger.error({error:f},"Error when polling jwt");}},Zn.tokenStrategy.polling.interval);setTimeout(()=>{clearInterval(s),o(new Error("Timeout when polling token"));},Zn.tokenStrategy.polling.timeout),i(()=>{a?.cancel(),clearInterval(s);});})}async refreshToken(r,n={maxTry:1,retryDelay:1e3},o=0){try{this.logger.debug({retry:o},"Start to refresh token");let i=await this.authApi.api.deviceTokenRefresh(r.token);return this.logger.debug({refreshedJwt:i},"Refresh token response"),{token:i.data.jwt,payload:Rl(i.data.jwt)}}catch(i){if(i instanceof Ci&&[400,401,403,405].indexOf(i.status)!==-1)this.logger.debug({error:i},"Error when refreshing jwt");else if(this.logger.error({error:i},"Unknown error when refreshing jwt"),o<n.maxTry)return this.logger.debug(`Retry refreshing jwt after ${n.retryDelay}ms`),await new Promise(a=>setTimeout(a,n.retryDelay)),this.refreshToken(r,n,o+1);throw {...i,retry:o}}}scheduleRefreshToken(){this.refreshTokenTimer=setInterval(async()=>{if(!this.jwt)return null;if(this.jwt.payload.exp*1e3-Date.now()<Zn.tokenStrategy.refresh.beforeExpire)try{this.jwt=await this.refreshToken(this.jwt,Zn.tokenStrategy.refresh.whenScheduled),super.emit("updated",this.jwt),await this.save();}catch(r){this.logger.error({error:r},"Error when refreshing jwt");}else this.logger.debug("Check token, still valid");},Zn.tokenStrategy.refresh.interval);}},fs=Zn;fs.authPageUrl="https://app.tabbyml.com/account/device-token",fs.tokenStrategy={polling:{interval:5e3,timeout:5*60*1e3},refresh:{interval:15*60*1e3,beforeExpire:30*60*1e3,whenLoaded:{maxTry:5,retryDelay:1e3},whenScheduled:{maxTry:60,retryDelay:30*1e3}}};x();C();N();L();P();cu();var dm={server:{endpoint:"http://localhost:8080"},logs:{level:"silent"},anonymousUsageTracking:{disable:!1}};x();C();N();L();P();x();C();N();L();P();var Qu=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,sx=new Set,ym=typeof ne=="object"&&ne?ne:{},ux=(t,e,r,n)=>{typeof ym.emitWarning=="function"?ym.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`);},Kc=globalThis.AbortController,ax=globalThis.AbortSignal;if(typeof Kc>"u"){ax=class{constructor(){bt(this,"onabort");bt(this,"_onabort",[]);bt(this,"reason");bt(this,"aborted",!1);}addEventListener(n,o){this._onabort.push(o);}},Kc=class{constructor(){bt(this,"signal",new ax);e();}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 t=ym.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,ux("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",e));};}var HG=t=>!sx.has(t),Eo=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),fx=t=>Eo(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?vs:null:null,vs=class extends Array{constructor(e){super(e),this.fill(0);}},_s,ms=class{constructor(e,r){bt(this,"heap");bt(this,"length");if(!ue(ms,_s))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0;}static create(e){let r=fx(e);if(!r)return [];ct(ms,_s,!0);let n=new ms(e,r);return ct(ms,_s,!1),n}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},Wc=ms;_s=new WeakMap,St(Wc,_s,!1);var Xn,wn,vi,Jn,Es,Er,Qn,wr,Jt,Tt,Yr,Sn,jr,Ir,ei,kr,Wi,zi,ti,_i,bo,sn,tf,gm,ua,Vi,rf,bn,Yc,lx,fa,ws,nf,Ei,wo,wi,So,of,mm,Ss,zc,bs,Vc,Zt,tr,af,vm,la,ef,_m=class{constructor(e){St(this,tf);St(this,Yc);St(this,Ei);St(this,wi);St(this,of);St(this,Ss);St(this,bs);St(this,Zt);St(this,af);St(this,la);St(this,Xn,void 0);St(this,wn,void 0);St(this,vi,void 0);St(this,Jn,void 0);St(this,Es,void 0);bt(this,"ttl");bt(this,"ttlResolution");bt(this,"ttlAutopurge");bt(this,"updateAgeOnGet");bt(this,"updateAgeOnHas");bt(this,"allowStale");bt(this,"noDisposeOnSet");bt(this,"noUpdateTTL");bt(this,"maxEntrySize");bt(this,"sizeCalculation");bt(this,"noDeleteOnFetchRejection");bt(this,"noDeleteOnStaleGet");bt(this,"allowStaleOnFetchAbort");bt(this,"allowStaleOnFetchRejection");bt(this,"ignoreFetchAbort");St(this,Er,void 0);St(this,Qn,void 0);St(this,wr,void 0);St(this,Jt,void 0);St(this,Tt,void 0);St(this,Yr,void 0);St(this,Sn,void 0);St(this,jr,void 0);St(this,Ir,void 0);St(this,ei,void 0);St(this,kr,void 0);St(this,Wi,void 0);St(this,zi,void 0);St(this,ti,void 0);St(this,_i,void 0);St(this,bo,void 0);St(this,sn,void 0);St(this,ua,()=>{});St(this,Vi,()=>{});St(this,rf,()=>{});St(this,bn,()=>!1);St(this,fa,e=>{});St(this,ws,(e,r,n)=>{});St(this,nf,(e,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:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:f,dispose:h,disposeAfter:l,noDisposeOnSet:d,noUpdateTTL:g,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:_,fetchMethod:b,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:H,ignoreFetchAbort:Z}=e;if(r!==0&&!Eo(r))throw new TypeError("max option must be a nonnegative integer");let V=r?fx(r):Array;if(!V)throw new Error("invalid max value: "+r);if(ct(this,Xn,r),ct(this,wn,v),this.maxEntrySize=p||ue(this,wn),this.sizeCalculation=_,this.sizeCalculation){if(!ue(this,wn)&&!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(b!==void 0&&typeof b!="function")throw new TypeError("fetchMethod must be a function if specified");if(ct(this,Es,b),ct(this,bo,!!b),ct(this,wr,new Map),ct(this,Jt,new Array(r).fill(void 0)),ct(this,Tt,new Array(r).fill(void 0)),ct(this,Yr,new V(r)),ct(this,Sn,new V(r)),ct(this,jr,0),ct(this,Ir,0),ct(this,ei,Wc.create(r)),ct(this,Er,0),ct(this,Qn,0),typeof h=="function"&&ct(this,vi,h),typeof l=="function"?(ct(this,Jn,l),ct(this,kr,[])):(ct(this,Jn,void 0),ct(this,kr,void 0)),ct(this,_i,!!ue(this,vi)),ct(this,sn,!!ue(this,Jn)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!H,this.ignoreFetchAbort=!!Z,this.maxEntrySize!==0){if(ue(this,wn)!==0&&!Eo(ue(this,wn)))throw new TypeError("maxSize must be a positive integer if specified");if(!Eo(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");vt(this,Yc,lx).call(this);}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Eo(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Eo(this.ttl))throw new TypeError("ttl must be a positive integer if specified");vt(this,tf,gm).call(this);}if(ue(this,Xn)===0&&this.ttl===0&&ue(this,wn)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!ue(this,Xn)&&!ue(this,wn)){let j="LRU_CACHE_UNBOUNDED";HG(j)&&(sx.add(j),ux("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,_m));}}static unsafeExposeInternals(e){return {starts:ue(e,zi),ttls:ue(e,ti),sizes:ue(e,Wi),keyMap:ue(e,wr),keyList:ue(e,Jt),valList:ue(e,Tt),next:ue(e,Yr),prev:ue(e,Sn),get head(){return ue(e,jr)},get tail(){return ue(e,Ir)},free:ue(e,ei),isBackgroundFetch:r=>{var n;return vt(n=e,Zt,tr).call(n,r)},backgroundFetch:(r,n,o,i)=>{var a;return vt(a=e,bs,Vc).call(a,r,n,o,i)},moveToTail:r=>{var n;return vt(n=e,la,ef).call(n,r)},indexes:r=>{var n;return vt(n=e,Ei,wo).call(n,r)},rindexes:r=>{var n;return vt(n=e,wi,So).call(n,r)},isStale:r=>{var n;return ue(n=e,bn).call(n,r)}}}get max(){return ue(this,Xn)}get maxSize(){return ue(this,wn)}get calculatedSize(){return ue(this,Qn)}get size(){return ue(this,Er)}get fetchMethod(){return ue(this,Es)}get dispose(){return ue(this,vi)}get disposeAfter(){return ue(this,Jn)}getRemainingTTL(e){return ue(this,wr).has(e)?1/0:0}*entries(){for(let e of vt(this,Ei,wo).call(this))ue(this,Tt)[e]!==void 0&&ue(this,Jt)[e]!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield [ue(this,Jt)[e],ue(this,Tt)[e]]);}*rentries(){for(let e of vt(this,wi,So).call(this))ue(this,Tt)[e]!==void 0&&ue(this,Jt)[e]!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield [ue(this,Jt)[e],ue(this,Tt)[e]]);}*keys(){for(let e of vt(this,Ei,wo).call(this)){let r=ue(this,Jt)[e];r!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield r);}}*rkeys(){for(let e of vt(this,wi,So).call(this)){let r=ue(this,Jt)[e];r!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield r);}}*values(){for(let e of vt(this,Ei,wo).call(this))ue(this,Tt)[e]!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield ue(this,Tt)[e]);}*rvalues(){for(let e of vt(this,wi,So).call(this))ue(this,Tt)[e]!==void 0&&!vt(this,Zt,tr).call(this,ue(this,Tt)[e])&&(yield ue(this,Tt)[e]);}[Symbol.iterator](){return this.entries()}find(e,r={}){for(let n of vt(this,Ei,wo).call(this)){let o=ue(this,Tt)[n],i=vt(this,Zt,tr).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&e(i,ue(this,Jt)[n],this))return this.get(ue(this,Jt)[n],r)}}forEach(e,r=this){for(let n of vt(this,Ei,wo).call(this)){let o=ue(this,Tt)[n],i=vt(this,Zt,tr).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&e.call(r,i,ue(this,Jt)[n],this);}}rforEach(e,r=this){for(let n of vt(this,wi,So).call(this)){let o=ue(this,Tt)[n],i=vt(this,Zt,tr).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&e.call(r,i,ue(this,Jt)[n],this);}}purgeStale(){let e=!1;for(let r of vt(this,wi,So).call(this,{allowStale:!0}))ue(this,bn).call(this,r)&&(this.delete(ue(this,Jt)[r]),e=!0);return e}dump(){let e=[];for(let r of vt(this,Ei,wo).call(this,{allowStale:!0})){let n=ue(this,Jt)[r],o=ue(this,Tt)[r],i=vt(this,Zt,tr).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||n===void 0)continue;let a={value:i};if(ue(this,ti)&&ue(this,zi)){a.ttl=ue(this,ti)[r];let s=Qu.now()-ue(this,zi)[r];a.start=Math.floor(Date.now()-s);}ue(this,Wi)&&(a.size=ue(this,Wi)[r]),e.unshift([n,a]);}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let o=Date.now()-n.start;n.start=Qu.now()-o;}this.set(r,n.value,n);}}set(e,r,n={}){var g,v;if(r===void 0)return this.delete(e),this;let{ttl:o=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:f}=n,{noUpdateTTL:h=this.noUpdateTTL}=n,l=ue(this,nf).call(this,e,r,n.size||0,s);if(this.maxEntrySize&&l>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),this.delete(e),this;let d=ue(this,Er)===0?void 0:ue(this,wr).get(e);if(d===void 0)d=ue(this,Er)===0?ue(this,Ir):ue(this,ei).length!==0?ue(this,ei).pop():ue(this,Er)===ue(this,Xn)?vt(this,Ss,zc).call(this,!1):ue(this,Er),ue(this,Jt)[d]=e,ue(this,Tt)[d]=r,ue(this,wr).set(e,d),ue(this,Yr)[ue(this,Ir)]=d,ue(this,Sn)[d]=ue(this,Ir),ct(this,Ir,d),_f(this,Er)._++,ue(this,ws).call(this,d,l,f),f&&(f.set="add"),h=!1;else {vt(this,la,ef).call(this,d);let p=ue(this,Tt)[d];if(r!==p){if(ue(this,bo)&&vt(this,Zt,tr).call(this,p)?p.__abortController.abort(new Error("replaced")):a||(ue(this,_i)&&((g=ue(this,vi))==null||g.call(this,p,e,"set")),ue(this,sn)&&ue(this,kr)?.push([p,e,"set"])),ue(this,fa).call(this,d),ue(this,ws).call(this,d,l,f),ue(this,Tt)[d]=r,f){f.set="replace";let _=p&&vt(this,Zt,tr).call(this,p)?p.__staleWhileFetching:p;_!==void 0&&(f.oldValue=_);}}else f&&(f.set="update");}if(o!==0&&!ue(this,ti)&&vt(this,tf,gm).call(this),ue(this,ti)&&(h||ue(this,rf).call(this,d,o,i),f&&ue(this,Vi).call(this,f,d)),!a&&ue(this,sn)&&ue(this,kr)){let p=ue(this,kr),_;for(;_=p?.shift();)(v=ue(this,Jn))==null||v.call(this,..._);}return this}pop(){var e;try{for(;ue(this,Er);){let r=ue(this,Tt)[ue(this,jr)];if(vt(this,Ss,zc).call(this,!0),vt(this,Zt,tr).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(ue(this,sn)&&ue(this,kr)){let r=ue(this,kr),n;for(;n=r?.shift();)(e=ue(this,Jn))==null||e.call(this,...n);}}}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:o}=r,i=ue(this,wr).get(e);if(i!==void 0){let a=ue(this,Tt)[i];if(vt(this,Zt,tr).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(ue(this,bn).call(this,i))o&&(o.has="stale",ue(this,Vi).call(this,o,i));else return n&&ue(this,ua).call(this,i),o&&(o.has="hit",ue(this,Vi).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,o=ue(this,wr).get(e);if(o!==void 0&&(n||!ue(this,bn).call(this,o))){let i=ue(this,Tt)[o];return vt(this,Zt,tr).call(this,i)?i.__staleWhileFetching:i}}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:f=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:_,forceRefresh:b=!1,status:O,signal:B}=r;if(!ue(this,bo))return O&&(O.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:O});let $={allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:f,sizeCalculation:h,noUpdateTTL:l,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:O,signal:B},H=ue(this,wr).get(e);if(H===void 0){O&&(O.fetch="miss");let Z=vt(this,bs,Vc).call(this,e,H,$,_);return Z.__returned=Z}else {let Z=ue(this,Tt)[H];if(vt(this,Zt,tr).call(this,Z)){let te=n&&Z.__staleWhileFetching!==void 0;return O&&(O.fetch="inflight",te&&(O.returnedStale=!0)),te?Z.__staleWhileFetching:Z.__returned=Z}let V=ue(this,bn).call(this,H);if(!b&&!V)return O&&(O.fetch="hit"),vt(this,la,ef).call(this,H),o&&ue(this,ua).call(this,H),O&&ue(this,Vi).call(this,O,H),Z;let j=vt(this,bs,Vc).call(this,e,H,$,_),q=j.__staleWhileFetching!==void 0&&n;return O&&(O.fetch=V?"stale":"refresh",q&&V&&(O.returnedStale=!0)),q?j.__staleWhileFetching:j.__returned=j}}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=r,s=ue(this,wr).get(e);if(s!==void 0){let f=ue(this,Tt)[s],h=vt(this,Zt,tr).call(this,f);return a&&ue(this,Vi).call(this,a,s),ue(this,bn).call(this,s)?(a&&(a.get="stale"),h?(a&&n&&f.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?f.__staleWhileFetching:void 0):(i||this.delete(e),a&&n&&(a.returnedStale=!0),n?f:void 0)):(a&&(a.get="hit"),h?f.__staleWhileFetching:(vt(this,la,ef).call(this,s),o&&ue(this,ua).call(this,s),f))}else a&&(a.get="miss");}delete(e){var n,o;let r=!1;if(ue(this,Er)!==0){let i=ue(this,wr).get(e);if(i!==void 0)if(r=!0,ue(this,Er)===1)this.clear();else {ue(this,fa).call(this,i);let a=ue(this,Tt)[i];vt(this,Zt,tr).call(this,a)?a.__abortController.abort(new Error("deleted")):(ue(this,_i)||ue(this,sn))&&(ue(this,_i)&&((n=ue(this,vi))==null||n.call(this,a,e,"delete")),ue(this,sn)&&ue(this,kr)?.push([a,e,"delete"])),ue(this,wr).delete(e),ue(this,Jt)[i]=void 0,ue(this,Tt)[i]=void 0,i===ue(this,Ir)?ct(this,Ir,ue(this,Sn)[i]):i===ue(this,jr)?ct(this,jr,ue(this,Yr)[i]):(ue(this,Yr)[ue(this,Sn)[i]]=ue(this,Yr)[i],ue(this,Sn)[ue(this,Yr)[i]]=ue(this,Sn)[i]),_f(this,Er)._--,ue(this,ei).push(i);}}if(ue(this,sn)&&ue(this,kr)?.length){let i=ue(this,kr),a;for(;a=i?.shift();)(o=ue(this,Jn))==null||o.call(this,...a);}return r}clear(){var e,r;for(let n of vt(this,wi,So).call(this,{allowStale:!0})){let o=ue(this,Tt)[n];if(vt(this,Zt,tr).call(this,o))o.__abortController.abort(new Error("deleted"));else {let i=ue(this,Jt)[n];ue(this,_i)&&((e=ue(this,vi))==null||e.call(this,o,i,"delete")),ue(this,sn)&&ue(this,kr)?.push([o,i,"delete"]);}}if(ue(this,wr).clear(),ue(this,Tt).fill(void 0),ue(this,Jt).fill(void 0),ue(this,ti)&&ue(this,zi)&&(ue(this,ti).fill(0),ue(this,zi).fill(0)),ue(this,Wi)&&ue(this,Wi).fill(0),ct(this,jr,0),ct(this,Ir,0),ue(this,ei).length=0,ct(this,Qn,0),ct(this,Er,0),ue(this,sn)&&ue(this,kr)){let n=ue(this,kr),o;for(;o=n?.shift();)(r=ue(this,Jn))==null||r.call(this,...o);}}},Zc=_m;Xn=new WeakMap,wn=new WeakMap,vi=new WeakMap,Jn=new WeakMap,Es=new WeakMap,Er=new WeakMap,Qn=new WeakMap,wr=new WeakMap,Jt=new WeakMap,Tt=new WeakMap,Yr=new WeakMap,Sn=new WeakMap,jr=new WeakMap,Ir=new WeakMap,ei=new WeakMap,kr=new WeakMap,Wi=new WeakMap,zi=new WeakMap,ti=new WeakMap,_i=new WeakMap,bo=new WeakMap,sn=new WeakMap,tf=new WeakSet,gm=function(){let e=new vs(ue(this,Xn)),r=new vs(ue(this,Xn));ct(this,ti,e),ct(this,zi,r),ct(this,rf,(i,a,s=Qu.now())=>{if(r[i]=a!==0?s:0,e[i]=a,a!==0&&this.ttlAutopurge){let f=setTimeout(()=>{ue(this,bn).call(this,i)&&this.delete(ue(this,Jt)[i]);},a+1);f.unref&&f.unref();}}),ct(this,ua,i=>{r[i]=e[i]!==0?Qu.now():0;}),ct(this,Vi,(i,a)=>{if(e[a]){let s=e[a],f=r[a];i.ttl=s,i.start=f,i.now=n||o();let h=i.now-f;i.remainingTTL=s-h;}});let n=0,o=()=>{let i=Qu.now();if(this.ttlResolution>0){n=i;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref();}return i};this.getRemainingTTL=i=>{let a=ue(this,wr).get(i);if(a===void 0)return 0;let s=e[a],f=r[a];if(s===0||f===0)return 1/0;let h=(n||o())-f;return s-h},ct(this,bn,i=>e[i]!==0&&r[i]!==0&&(n||o())-r[i]>e[i]);},ua=new WeakMap,Vi=new WeakMap,rf=new WeakMap,bn=new WeakMap,Yc=new WeakSet,lx=function(){let e=new vs(ue(this,Xn));ct(this,Qn,0),ct(this,Wi,e),ct(this,fa,r=>{ct(this,Qn,ue(this,Qn)-e[r]),e[r]=0;}),ct(this,nf,(r,n,o,i)=>{if(vt(this,Zt,tr).call(this,n))return 0;if(!Eo(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(n,r),!Eo(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}),ct(this,ws,(r,n,o)=>{if(e[r]=n,ue(this,wn)){let i=ue(this,wn)-e[r];for(;ue(this,Qn)>i;)vt(this,Ss,zc).call(this,!0);}ct(this,Qn,ue(this,Qn)+e[r]),o&&(o.entrySize=n,o.totalCalculatedSize=ue(this,Qn));});},fa=new WeakMap,ws=new WeakMap,nf=new WeakMap,Ei=new WeakSet,wo=function*({allowStale:e=this.allowStale}={}){if(ue(this,Er))for(let r=ue(this,Ir);!(!vt(this,of,mm).call(this,r)||((e||!ue(this,bn).call(this,r))&&(yield r),r===ue(this,jr)));)r=ue(this,Sn)[r];},wi=new WeakSet,So=function*({allowStale:e=this.allowStale}={}){if(ue(this,Er))for(let r=ue(this,jr);!(!vt(this,of,mm).call(this,r)||((e||!ue(this,bn).call(this,r))&&(yield r),r===ue(this,Ir)));)r=ue(this,Yr)[r];},of=new WeakSet,mm=function(e){return e!==void 0&&ue(this,wr).get(ue(this,Jt)[e])===e},Ss=new WeakSet,zc=function(e){var i;let r=ue(this,jr),n=ue(this,Jt)[r],o=ue(this,Tt)[r];return ue(this,bo)&&vt(this,Zt,tr).call(this,o)?o.__abortController.abort(new Error("evicted")):(ue(this,_i)||ue(this,sn))&&(ue(this,_i)&&((i=ue(this,vi))==null||i.call(this,o,n,"evict")),ue(this,sn)&&ue(this,kr)?.push([o,n,"evict"])),ue(this,fa).call(this,r),e&&(ue(this,Jt)[r]=void 0,ue(this,Tt)[r]=void 0,ue(this,ei).push(r)),ue(this,Er)===1?(ct(this,jr,ct(this,Ir,0)),ue(this,ei).length=0):ct(this,jr,ue(this,Yr)[r]),ue(this,wr).delete(n),_f(this,Er)._--,r},bs=new WeakSet,Vc=function(e,r,n,o){let i=r===void 0?void 0:ue(this,Tt)[r];if(vt(this,Zt,tr).call(this,i))return i;let a=new Kc,{signal:s}=n;s?.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let f={signal:a.signal,options:n,context:o},h=(_,b=!1)=>{let{aborted:O}=a.signal,B=n.ignoreFetchAbort&&_!==void 0;if(n.status&&(O&&!b?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,B&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),O&&!B&&!b)return d(a.signal.reason);let $=v;return ue(this,Tt)[r]===v&&(_===void 0?$.__staleWhileFetching?ue(this,Tt)[r]=$.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,_,f.options))),_},l=_=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=_),d(_)),d=_=>{let{aborted:b}=a.signal,O=b&&n.allowStaleOnFetchAbort,B=O||n.allowStaleOnFetchRejection,$=B||n.noDeleteOnFetchRejection,H=v;if(ue(this,Tt)[r]===v&&(!$||H.__staleWhileFetching===void 0?this.delete(e):O||(ue(this,Tt)[r]=H.__staleWhileFetching)),B)return n.status&&H.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),H.__staleWhileFetching;if(H.__returned===H)throw _},g=(_,b)=>{var B;let O=(B=ue(this,Es))==null?void 0:B.call(this,e,i,f);O&&O instanceof Promise&&O.then($=>_($),b),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(_(),n.allowStaleOnFetchAbort&&(_=$=>h($,!0)));});};n.status&&(n.status.fetchDispatched=!0);let v=new Promise(g).then(h,l),p=Object.assign(v,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(e,p,{...f.options,status:void 0}),r=ue(this,wr).get(e)):ue(this,Tt)[r]=p,p},Zt=new WeakSet,tr=function(e){if(!ue(this,bo))return !1;let r=e;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Kc},af=new WeakSet,vm=function(e,r){ue(this,Sn)[r]=e,ue(this,Yr)[e]=r;},la=new WeakSet,ef=function(e){e!==ue(this,Ir)&&(e===ue(this,jr)?ct(this,jr,ue(this,Yr)[e]):vt(this,af,vm).call(this,ue(this,Sn)[e],ue(this,Yr)[e]),vt(this,af,vm).call(this,ue(this,Ir),e),ct(this,Ir,e));};var $x=_a(px()),jx=_a(Mx());ia();var eh=class{constructor(){this.logger=vn.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 Zc({maxSize:this.options.maxSize,sizeCalculation:jx.default});}has(e){return this.cache.has(this.hash(e))}set(e,r){for(let n of this.createCacheEntries(e,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(e){return this.cache.get(this.hash(e))}hash(e){return (0, $x.default)(e)}createCacheEntries(e,r){let n=[{key:e,value:r}];if(this.options.partiallyAcceptedCacheGeneration.enabled){let o=r.choices.map(i=>this.calculatePartiallyAcceptedPositions(i.text).map(a=>({prefix:i.text.slice(0,a),suffix:i.text.slice(a),choiceIndex:i.index}))).flat().reduce((i,a)=>(i[a.prefix]=i[a.prefix]||[],i[a.prefix].push({suffix:a.suffix,choiceIndex:a.choiceIndex}),i),{});for(let i in o){let a={...e,text:e.text.slice(0,e.position)+i+e.text.slice(e.position),position:e.position+i.length},s={...r,choices:o[i].map(f=>({index:f.choiceIndex,text:f.suffix}))};n.push({key:a,value:s});}}return n}calculatePartiallyAcceptedPositions(e){let r=[],n=this.options.partiallyAcceptedCacheGeneration,o=Ni(e),i=0,a=0;for(;i<o.length-1&&i<n.perLine.max;)a+=o[i].length,r.push(a),i++;let s=o.slice(0,n.perWord.lines).map(yd).flat();for(i=0,a=0;i<s.length&&i<n.perWord.max;)a+=s[i].length,r.push(a),i++;let f=o.slice(0,n.perCharacter.lines).map(yd).flat().slice(0,n.perCharacter.words).join("");for(a=1;a<f.length&&a<n.perCharacter.max;)r.push(a),a++;return r.filter((h,l,d)=>d.indexOf(h)===l).sort((h,l)=>h-l)}};x();C();N();L();P();x();C();N();L();P();ia();var th=vn.child({component:"Postprocess"}),rh=t=>async e=>(e.choices=(await Promise.all(e.choices.map(async r=>(r.text=await t(r.text),r)))).filter(Boolean),e);x();C();N();L();P();function uf(t){return t.match(/^[ \t]*/)?.[0]?.length||0}function RW(t,e){let r=1;for(;r<e.length&&Po(e[r]);)r++;return r>=e.length?!0:uf(e[r])<t}function OW(t,e){return e>=t.length-1?!1:uf(t[e])<uf(t[e+1])}var Hx=t=>e=>{let r=t.text.slice(0,t.position),n=t.text.slice(t.position),o=Ni(r),i=Ni(n),a=Ni(e),s=uf(o[o.length-1]),f;for(f=1;f<a.length;f++){if(Po(a[f]))continue;if(uf(a[f])<s){RW(s,i)&&!OW(a,f)&&f++;break}}return f<a.length?(th.debug({input:e,prefix:r,suffix:n,scopeEndAt:f},"Remove content out of scope"),a.slice(0,f).join("").trimEnd()):e};x();C();N();L();P();var qx=t=>e=>{let r=t.text.slice(t.position);for(let n=Math.max(0,e.length-r.length);n<e.length;n++)if(e.slice(n)===r.slice(0,e.length-n))return th.debug({input:e,suffix:r,overlappedAt:n},"Remove overlapped content"),e.slice(0,n);return e};x();C();N();L();P();var Gx=()=>t=>Po(t)?null:t;async function Wx(t,e){return new Promise(r=>r(e)).then(rh(Hx(t))).then(rh(qx(t))).then(rh(Gx()))}ia();x();C();N();L();P();var Vx="tabby-agent",Kx="0.0.1";cu();ia();var Is=class{constructor(){this.anonymousUsageTrackingApi=new Lo;this.logger=vn.child({component:"AnonymousUsage"});this.systemData={agent:`${Vx}, ${Kx}`,browser:navigator?.userAgent||"browser",node:void 0};this.dataStore=null;}static async create(e){let r=new Is;return r.dataStore=e.dataStore||wc,await r.checkAnonymousId(),r}async checkAnonymousId(){if(this.dataStore){try{await this.dataStore.load();}catch(e){this.logger.debug({error:e},"Error when loading anonymousId");}if(typeof this.dataStore.data.anonymousId=="string")this.anonymousId=this.dataStore.data.anonymousId;else {this.anonymousId=ba(),this.dataStore.data.anonymousId=this.anonymousId;try{await this.dataStore.save();}catch(e){this.logger.debug({error:e},"Error when saving anonymousId");}}}else this.anonymousId=ba();}async event(e,r){this.disabled||await this.anonymousUsageTrackingApi.api.usage({distinctId:this.anonymousId,event:e,properties:{...this.systemData,...r}}).catch(n=>{this.logger.error({error:n},"Error when sending anonymous usage data");});}};var oh=class extends ks{constructor(){super();this.logger=vn.child({component:"TabbyAgent"});this.config=dm;this.userConfig={};this.clientConfig={};this.status="notInitialized";this.dataStore=null;this.completionCache=new eh;this.tryingConnectTimer=null;this.tryingConnectTimer=setInterval(async()=>{this.status==="disconnected"&&(this.logger.debug("Trying to connect..."),await this.healthCheck());},oh.tryConnectInterval);}static async create(r){let n=new oh;return n.dataStore=r?.dataStore,n.anonymousUsageLogger=await Is.create({dataStore:r?.dataStore}),n}async applyConfig(){this.config=nh.default.all([dm,this.userConfig,this.clientConfig]),ju.forEach(r=>r.level=this.config.logs.level),this.anonymousUsageLogger.disabled=this.config.anonymousUsageTracking.disable,this.config.server.endpoint!==this.auth?.endpoint&&(this.auth=await fs.create({endpoint:this.config.server.endpoint,dataStore:this.dataStore}),this.auth.on("updated",this.setupApi.bind(this))),await this.setupApi();}async setupApi(){this.api=new fu({BASE:this.config.server.endpoint.replace(/\/+$/,""),TOKEN:this.auth?.token}),await this.healthCheck();}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);}}callApi(r,n){this.logger.debug({api:r.name,request:n},"API request");let o=r.call(this.api.v1,n);return ao(o.then(i=>(this.logger.debug({api:r.name,response:i},"API response"),this.changeStatus("ready"),i)).catch(i=>{throw i.isCancelled?this.logger.debug({api:r.name,error:i},"API request canceled"):i.name==="ApiError"&&[401,403,405].indexOf(i.status)!==-1?(this.logger.debug({api:r.name,error:i},"API unauthorized"),this.changeStatus("unauthorized")):i.name==="ApiError"?(this.logger.error({api:r.name,error:i},"API error"),this.changeStatus("disconnected")):(this.logger.error({api:r.name,error:i},"API request failed with unknown error"),this.changeStatus("disconnected")),i}),()=>{o.cancel();})}healthCheck(){return this.callApi(this.api.v1.health,{}).catch(()=>{})}createSegments(r){let n=r.maxPrefixLines,o=r.maxSuffixLines,i=r.text.slice(0,r.position),a=Ni(i),s=r.text.slice(r.position),f=Ni(s);return {prefix:a.slice(Math.max(a.length-n,0)).join(""),suffix:f.slice(0,o).join("")}}async initialize(r){if(r.client&&ju.forEach(n=>n.setBindings?.({client:r.client})),r.config&&(this.clientConfig=(0, nh.default)(this.clientConfig,r.config)),await this.applyConfig(),this.status==="unauthorized"){let n={event:"authRequired",server:this.config.server};super.emit("authRequired",n);}return await this.anonymousUsageLogger.event("AgentInitialized",{client:r.client}),this.logger.debug({options:r},"Initialized"),this.status!=="notInitialized"}async updateConfig(r){let n=(0, nh.default)(this.clientConfig,r);if(!(0, Cm.default)(this.clientConfig,n)){let o=!(0, Cm.default)(this.config.server,n.server);this.clientConfig=n,await this.applyConfig();let i={event:"configUpdated",config:this.config};if(this.logger.debug({event:i},"Config updated"),super.emit("configUpdated",i),o&&this.status==="unauthorized"){let a={event:"authRequired",server:this.config.server};super.emit("authRequired",a);}}return !0}getConfig(){return this.config}getStatus(){return this.status}requestAuthUrl(){return this.status==="notInitialized"?ao(Promise.reject("Agent is not initialized"),()=>{}):new Gr(async(r,n,o)=>{let i;o(()=>{i?.cancel();}),await this.healthCheck(),!o.isCancelled&&(this.status==="unauthorized"&&(i=this.auth.requestAuthUrl(),r(i)),r(null));})}waitForAuthToken(r){if(this.status==="notInitialized")return ao(Promise.reject("Agent is not initialized"),()=>{});let n=this.auth.pollingToken(r);return ao(n.then(()=>this.setupApi()),()=>{n.cancel();})}getCompletions(r){if(this.status==="notInitialized")return ao(Promise.reject("Agent is not initialized"),()=>{});if(this.completionCache.has(r))return this.logger.debug({request:r},"Completion cache hit"),new Gr(i=>{i(this.completionCache.get(r));});let n=this.createSegments(r);if(Po(n.prefix))return this.logger.debug("Segment prefix is blank, returning empty completion response"),new Gr(i=>{i({id:"agent-"+ba(),choices:[]});});let o=this.callApi(this.api.v1.completion,{language:r.language,segments:n,user:this.auth?.user});return ao(o.then(i=>(this.completionCache.set(r,i),i)).then(i=>Wx(r,i)),()=>{o.cancel();})}postEvent(r){return this.status==="notInitialized"?ao(Promise.reject("Agent is not initialized"),()=>{}):this.callApi(this.api.v1.event,r)}},ih=oh;ih.tryConnectInterval=1e3*30;x();C();N();L();P();var TW=["statusChanged","configUpdated","authRequired"];/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@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
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*)
is-extglob/index.js:
(*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*)
is-glob/index.js:
(*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
is-number/index.js:
(*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*)
to-regex-range/index.js:
(*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*)
fill-range/index.js:
(*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*)
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
*)
*/
exports.CancelablePromise = Gr;
exports.TabbyAgent = ih;
exports.agentEventNames = TW;
return exports;
})({});
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.global.js.map