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

50 lines
237 KiB
JavaScript

var Tabby = (function (exports) {
'use strict';
var LA=Object.create;var Ea=Object.defineProperty;var CA=Object.getOwnPropertyDescriptor;var BA=Object.getOwnPropertyNames;var kA=Object.getPrototypeOf,DA=Object.prototype.hasOwnProperty;var FA=(e,t,r)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _a=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var St=(e,t)=>()=>(e&&(t=e(e=0)),t);var Be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bn=(e,t)=>{for(var r in t)Ea(e,r,{get:t[r],enumerable:!0});},Nd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of BA(t))!DA.call(e,o)&&o!==r&&Ea(e,o,{get:()=>t[o],enumerable:!(n=CA(t,o))||n.enumerable});return e};var ho=(e,t,r)=>(r=e!=null?LA(kA(e)):{},Nd(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e));var st=(e,t,r)=>(FA(e,typeof t!="symbol"?t+"":t,r),r),cl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Q=(e,t,r)=>(cl(e,t,"read from private field"),r?r.call(e):t.get(e)),ot=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},Ke=(e,t,r,n)=>(cl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Fs=(e,t,r,n)=>({set _(o){Ke(e,t,o,r);},get _(){return Q(e,t,n)}}),rt=(e,t,r)=>(cl(e,t,"access private method"),r);var oe,N=St(()=>{oe=globalThis;});var x=St(()=>{});var P=St(()=>{});var te={};Bn(te,{_debugEnd:()=>gy,_debugProcess:()=>my,_events:()=>Ly,_eventsCount:()=>Cy,_exiting:()=>Xd,_fatalExceptions:()=>hy,_getActiveHandles:()=>ty,_getActiveRequests:()=>ey,_kill:()=>ny,_linkedBinding:()=>Kd,_maxListeners:()=>Py,_preload_modules:()=>Ny,_rawDebug:()=>Zd,_startProfilerIdleNotifier:()=>vy,_stopProfilerIdleNotifier:()=>wy,_tickCallback:()=>yy,abort:()=>by,addListener:()=>By,allowedNodeEnvironmentFlags:()=>fy,arch:()=>Bd,argv:()=>Fd,argv0:()=>Iy,assert:()=>ly,binding:()=>qd,chdir:()=>zd,config:()=>Jd,cpuUsage:()=>js,cwd:()=>Gd,debugPort:()=>Ty,default:()=>Hy,dlopen:()=>Qd,domain:()=>Yd,emit:()=>My,emitWarning:()=>$d,env:()=>Dd,execArgv:()=>Ud,execPath:()=>Ry,exit:()=>sy,features:()=>cy,hasUncaughtExceptionCaptureCallback:()=>dy,hrtime:()=>Ms,kill:()=>ay,listeners:()=>qy,memoryUsage:()=>oy,moduleLoadList:()=>Vd,nextTick:()=>Pd,off:()=>Dy,on:()=>Dn,once:()=>ky,openStdin:()=>uy,pid:()=>Ay,platform:()=>kd,ppid:()=>Oy,prependListener:()=>jy,prependOnceListener:()=>$y,reallyExit:()=>ry,release:()=>Wd,removeAllListeners:()=>Uy,removeListener:()=>Fy,resourceUsage:()=>iy,setSourceMapsEnabled:()=>xy,setUncaughtExceptionCaptureCallback:()=>py,stderr:()=>_y,stdin:()=>Sy,stdout:()=>Ey,title:()=>Cd,umask:()=>Hd,uptime:()=>yo,version:()=>Md,versions:()=>jd});function dl(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function UA(){!po||!Ni||(po=!1,Ni.length?kn=Ni.concat(kn):Us=-1,kn.length&&xd());}function xd(){if(!po){var e=setTimeout(UA,0);po=!0;for(var t=kn.length;t;){for(Ni=kn,kn=[];++Us<t;)Ni&&Ni[Us].run();Us=-1,t=kn.length;}Ni=null,po=!1,clearTimeout(e);}}function Pd(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];kn.push(new Ld(e,t)),kn.length===1&&!po&&setTimeout(xd,0);}function Ld(e,t){this.fun=e,this.array=t;}function ur(){}function Kd(e){dl("_linkedBinding");}function Qd(e){dl("dlopen");}function ey(){return []}function ty(){return []}function ly(e,t){if(!e)throw new Error(t||"assertion error")}function dy(){return !1}function yo(){return oi.now()/1e3}function Ms(e){var t=Math.floor((Date.now()-oi.now())*.001),r=oi.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);return e&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=pl)),[n,o]}function Dn(){return Hy}function qy(e){return []}var kn,po,Ni,Us,Cd,Bd,kd,Dd,Fd,Ud,Md,jd,$d,qd,Hd,Gd,zd,Wd,Zd,Vd,Yd,Xd,Jd,ry,ny,js,iy,oy,ay,sy,uy,fy,cy,hy,py,yy,my,gy,vy,wy,Ey,_y,Sy,by,Ay,Oy,Ry,Ty,Iy,Ny,xy,oi,hl,pl,Py,Ly,Cy,By,ky,Dy,Fy,Uy,My,jy,$y,Hy,$s=St(()=>{N();x();P();C();L();kn=[],po=!1,Us=-1;Ld.prototype.run=function(){this.fun.apply(null,this.array);};Cd="browser",Bd="x64",kd="browser",Dd={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Fd=["/usr/bin/node"],Ud=[],Md="v16.8.0",jd={},$d=function(e,t){console.warn((t?t+": ":"")+e);},qd=function(e){dl("binding");},Hd=function(e){return 0},Gd=function(){return "/"},zd=function(e){},Wd={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Zd=ur,Vd=[];Yd={},Xd=!1,Jd={};ry=ur,ny=ur,js=function(){return {}},iy=js,oy=js,ay=ur,sy=ur,uy=ur,fy={};cy={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},hy=ur,py=ur;yy=ur,my=ur,gy=ur,vy=ur,wy=ur,Ey=void 0,_y=void 0,Sy=void 0,by=ur,Ay=2,Oy=1,Ry="/bin/usr/node",Ty=9229,Iy="node",Ny=[],xy=ur,oi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};oi.now===void 0&&(hl=Date.now(),oi.timing&&oi.timing.navigationStart&&(hl=oi.timing.navigationStart),oi.now=()=>Date.now()-hl);pl=1e9;Ms.bigint=function(e){var t=Ms(e);return typeof BigInt>"u"?t[0]*pl+t[1]:BigInt(t[0]*pl)+BigInt(t[1])};Py=10,Ly={},Cy=0;By=Dn,ky=Dn,Dy=Dn,Fy=Dn,Uy=Dn,My=ur,jy=Dn,$y=Dn;Hy={version:Md,versions:jd,arch:Bd,platform:kd,release:Wd,_rawDebug:Zd,moduleLoadList:Vd,binding:qd,_linkedBinding:Kd,_events:Ly,_eventsCount:Cy,_maxListeners:Py,on:Dn,addListener:By,once:ky,off:Dy,removeListener:Fy,removeAllListeners:Uy,emit:My,prependListener:jy,prependOnceListener:$y,listeners:qy,domain:Yd,_exiting:Xd,config:Jd,dlopen:Qd,uptime:yo,_getActiveRequests:ey,_getActiveHandles:ty,reallyExit:ry,_kill:ny,cpuUsage:js,resourceUsage:iy,memoryUsage:oy,kill:ay,exit:sy,openStdin:uy,allowedNodeEnvironmentFlags:fy,assert:ly,features:cy,_fatalExceptions:hy,setUncaughtExceptionCaptureCallback:py,hasUncaughtExceptionCaptureCallback:dy,emitWarning:$d,nextTick:Pd,_tickCallback:yy,_debugProcess:my,_debugEnd:gy,_startProfilerIdleNotifier:vy,_stopProfilerIdleNotifier:wy,stdout:Ey,stdin:Sy,stderr:_y,abort:by,umask:Hd,chdir:zd,cwd:Gd,env:Dd,title:Cd,argv:Fd,execArgv:Ud,pid:Ay,ppid:Oy,execPath:Ry,debugPort:Ty,hrtime:Ms,argv0:Iy,_preload_modules:Ny,setSourceMapsEnabled:xy};});var L=St(()=>{$s();});function MA(){if(Gy)return Sa;Gy=!0,Sa.byteLength=f,Sa.toByteArray=c,Sa.fromByteArray=m;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(g){var h=g.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=g.indexOf("=");E===-1&&(E=h);var S=E===h?0:4-E%4;return [E,S]}function f(g){var h=i(g),E=h[0],S=h[1];return (E+S)*3/4-S}function l(g,h,E){return (h+E)*3/4-E}function c(g){var h,E=i(g),S=E[0],O=E[1],k=new r(l(g,S,O)),$=0,q=O>0?S-4:S,K;for(K=0;K<q;K+=4)h=t[g.charCodeAt(K)]<<18|t[g.charCodeAt(K+1)]<<12|t[g.charCodeAt(K+2)]<<6|t[g.charCodeAt(K+3)],k[$++]=h>>16&255,k[$++]=h>>8&255,k[$++]=h&255;return O===2&&(h=t[g.charCodeAt(K)]<<2|t[g.charCodeAt(K+1)]>>4,k[$++]=h&255),O===1&&(h=t[g.charCodeAt(K)]<<10|t[g.charCodeAt(K+1)]<<4|t[g.charCodeAt(K+2)]>>2,k[$++]=h>>8&255,k[$++]=h&255),k}function p(g){return e[g>>18&63]+e[g>>12&63]+e[g>>6&63]+e[g&63]}function y(g,h,E){for(var S,O=[],k=h;k<E;k+=3)S=(g[k]<<16&16711680)+(g[k+1]<<8&65280)+(g[k+2]&255),O.push(p(S));return O.join("")}function m(g){for(var h,E=g.length,S=E%3,O=[],k=16383,$=0,q=E-S;$<q;$+=k)O.push(y(g,$,$+k>q?q:$+k));return S===1?(h=g[E-1],O.push(e[h>>2]+e[h<<4&63]+"==")):S===2&&(h=(g[E-2]<<8)+g[E-1],O.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),O.join("")}return Sa}function jA(){if(zy)return qs;zy=!0;return qs.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,p=-7,y=r?o-1:0,m=r?-1:1,g=e[t+y];for(y+=m,a=g&(1<<-p)-1,g>>=-p,p+=f;p>0;a=a*256+e[t+y],y+=m,p-=8);for(i=a&(1<<-p)-1,a>>=-p,p+=n;p>0;i=i*256+e[t+y],y+=m,p-=8);if(a===0)a=1-c;else {if(a===l)return i?NaN:(g?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c;}return (g?-1:1)*i*Math.pow(2,a-n)},qs.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,p=(1<<c)-1,y=p>>1,m=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,h=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=m/l:t+=m*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=p?(f=0,i=p):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+g]=f&255,g+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+g]=i&255,g+=h,i/=256,c-=8);e[r+g-h]|=E*128;},qs}function $A(){if(Wy)return xi;Wy=!0;let e=MA(),t=jA(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xi.Buffer=i,xi.SlowBuffer=O,xi.INSPECT_MAX_BYTES=50;let n=2147483647;xi.kMaxLength=n,i.TYPED_ARRAY_SUPPORT=o(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{let d=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(d,s),d.foo()===42}catch{return !1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(d){if(d>n)throw new RangeError('The value "'+d+'" is invalid for option "size"');let s=new Uint8Array(d);return Object.setPrototypeOf(s,i.prototype),s}function i(d,s,u){if(typeof d=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(d)}return f(d,s,u)}i.poolSize=8192;function f(d,s,u){if(typeof d=="string")return y(d,s);if(ArrayBuffer.isView(d))return g(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(tt(d,ArrayBuffer)||d&&tt(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tt(d,SharedArrayBuffer)||d&&tt(d.buffer,SharedArrayBuffer)))return h(d,s,u);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let _=d.valueOf&&d.valueOf();if(_!=null&&_!==d)return i.from(_,s,u);let U=E(d);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return i.from(d[Symbol.toPrimitive]("string"),s,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}i.from=function(d,s,u){return f(d,s,u)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function l(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function c(d,s,u){return l(d),d<=0?a(d):s!==void 0?typeof u=="string"?a(d).fill(s,u):a(d).fill(s):a(d)}i.alloc=function(d,s,u){return c(d,s,u)};function p(d){return l(d),a(d<0?0:S(d)|0)}i.allocUnsafe=function(d){return p(d)},i.allocUnsafeSlow=function(d){return p(d)};function y(d,s){if((typeof s!="string"||s==="")&&(s="utf8"),!i.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let u=k(d,s)|0,_=a(u),U=_.write(d,s);return U!==u&&(_=_.slice(0,U)),_}function m(d){let s=d.length<0?0:S(d.length)|0,u=a(s);for(let _=0;_<s;_+=1)u[_]=d[_]&255;return u}function g(d){if(tt(d,Uint8Array)){let s=new Uint8Array(d);return h(s.buffer,s.byteOffset,s.byteLength)}return m(d)}function h(d,s,u){if(s<0||d.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(d.byteLength<s+(u||0))throw new RangeError('"length" is outside of buffer bounds');let _;return s===void 0&&u===void 0?_=new Uint8Array(d):u===void 0?_=new Uint8Array(d,s):_=new Uint8Array(d,s,u),Object.setPrototypeOf(_,i.prototype),_}function E(d){if(i.isBuffer(d)){let s=S(d.length)|0,u=a(s);return u.length===0||d.copy(u,0,0,s),u}if(d.length!==void 0)return typeof d.length!="number"||_t(d.length)?a(0):m(d);if(d.type==="Buffer"&&Array.isArray(d.data))return m(d.data)}function S(d){if(d>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return d|0}function O(d){return +d!=d&&(d=0),i.alloc(+d)}i.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==i.prototype},i.compare=function(s,u){if(tt(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),tt(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(s)||!i.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===u)return 0;let _=s.length,U=u.length;for(let w=0,W=Math.min(_,U);w<W;++w)if(s[w]!==u[w]){_=s[w],U=u[w];break}return _<U?-1:U<_?1:0},i.isEncoding=function(s){switch(String(s).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},i.concat=function(s,u){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return i.alloc(0);let _;if(u===void 0)for(u=0,_=0;_<s.length;++_)u+=s[_].length;let U=i.allocUnsafe(u),w=0;for(_=0;_<s.length;++_){let W=s[_];if(tt(W,Uint8Array))w+W.length>U.length?(i.isBuffer(W)||(W=i.from(W)),W.copy(U,w)):Uint8Array.prototype.set.call(U,W,w);else if(i.isBuffer(W))W.copy(U,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=W.length;}return U};function k(d,s){if(i.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||tt(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);let u=d.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&u===0)return 0;let U=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return je(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return at(d).length;default:if(U)return _?-1:je(d).length;s=(""+s).toLowerCase(),U=!0;}}i.byteLength=k;function $(d,s,u){let _=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,s>>>=0,u<=s))return "";for(d||(d="utf8");;)switch(d){case"hex":return ee(this,s,u);case"utf8":case"utf-8":return ne(this,s,u);case"ascii":return Ie(this,s,u);case"latin1":case"binary":return re(this,s,u);case"base64":return V(this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,s,u);default:if(_)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),_=!0;}}i.prototype._isBuffer=!0;function q(d,s,u){let _=d[s];d[s]=d[u],d[u]=_;}i.prototype.swap16=function(){let s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<s;u+=2)q(this,u,u+1);return this},i.prototype.swap32=function(){let s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<s;u+=4)q(this,u,u+3),q(this,u+1,u+2);return this},i.prototype.swap64=function(){let s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<s;u+=8)q(this,u,u+7),q(this,u+1,u+6),q(this,u+2,u+5),q(this,u+3,u+4);return this},i.prototype.toString=function(){let s=this.length;return s===0?"":arguments.length===0?ne(this,0,s):$.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(s){if(!i.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:i.compare(this,s)===0},i.prototype.inspect=function(){let s="",u=xi.INSPECT_MAX_BYTES;return s=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(s+=" ... "),"<Buffer "+s+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(s,u,_,U,w){if(tt(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(u===void 0&&(u=0),_===void 0&&(_=s?s.length:0),U===void 0&&(U=0),w===void 0&&(w=this.length),u<0||_>s.length||U<0||w>this.length)throw new RangeError("out of range index");if(U>=w&&u>=_)return 0;if(U>=w)return -1;if(u>=_)return 1;if(u>>>=0,_>>>=0,U>>>=0,w>>>=0,this===s)return 0;let W=w-U,me=_-u,Ce=Math.min(W,me),ie=this.slice(U,w),de=s.slice(u,_);for(let I=0;I<Ce;++I)if(ie[I]!==de[I]){W=ie[I],me=de[I];break}return W<me?-1:me<W?1:0};function K(d,s,u,_,U){if(d.length===0)return -1;if(typeof u=="string"?(_=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,_t(u)&&(u=U?0:d.length-1),u<0&&(u=d.length+u),u>=d.length){if(U)return -1;u=d.length-1;}else if(u<0)if(U)u=0;else return -1;if(typeof s=="string"&&(s=i.from(s,_)),i.isBuffer(s))return s.length===0?-1:j(d,s,u,_,U);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(d,s,u):Uint8Array.prototype.lastIndexOf.call(d,s,u):j(d,[s],u,_,U);throw new TypeError("val must be string, number or Buffer")}function j(d,s,u,_,U){let w=1,W=d.length,me=s.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(d.length<2||s.length<2)return -1;w=2,W/=2,me/=2,u/=2;}function Ce(de,I){return w===1?de[I]:de.readUInt16BE(I*w)}let ie;if(U){let de=-1;for(ie=u;ie<W;ie++)if(Ce(d,ie)===Ce(s,de===-1?0:ie-de)){if(de===-1&&(de=ie),ie-de+1===me)return de*w}else de!==-1&&(ie-=ie-de),de=-1;}else for(u+me>W&&(u=W-me),ie=u;ie>=0;ie--){let de=!0;for(let I=0;I<me;I++)if(Ce(d,ie+I)!==Ce(s,I)){de=!1;break}if(de)return ie}return -1}i.prototype.includes=function(s,u,_){return this.indexOf(s,u,_)!==-1},i.prototype.indexOf=function(s,u,_){return K(this,s,u,_,!0)},i.prototype.lastIndexOf=function(s,u,_){return K(this,s,u,_,!1)};function D(d,s,u,_){u=Number(u)||0;let U=d.length-u;_?(_=Number(_),_>U&&(_=U)):_=U;let w=s.length;_>w/2&&(_=w/2);let W;for(W=0;W<_;++W){let me=parseInt(s.substr(W*2,2),16);if(_t(me))return W;d[u+W]=me;}return W}function B(d,s,u,_){return it(je(s,d.length-u),d,u,_)}function H(d,s,u,_){return it(He(s),d,u,_)}function J(d,s,u,_){return it(at(s),d,u,_)}function ge(d,s,u,_){return it($e(s,d.length-u),d,u,_)}i.prototype.write=function(s,u,_,U){if(u===void 0)U="utf8",_=this.length,u=0;else if(_===void 0&&typeof u=="string")U=u,_=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(_)?(_=_>>>0,U===void 0&&(U="utf8")):(U=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let w=this.length-u;if((_===void 0||_>w)&&(_=w),s.length>0&&(_<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");let W=!1;for(;;)switch(U){case"hex":return D(this,s,u,_);case"utf8":case"utf-8":return B(this,s,u,_);case"ascii":case"latin1":case"binary":return H(this,s,u,_);case"base64":return J(this,s,u,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,s,u,_);default:if(W)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),W=!0;}},i.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(d,s,u){return s===0&&u===d.length?e.fromByteArray(d):e.fromByteArray(d.slice(s,u))}function ne(d,s,u){u=Math.min(d.length,u);let _=[],U=s;for(;U<u;){let w=d[U],W=null,me=w>239?4:w>223?3:w>191?2:1;if(U+me<=u){let Ce,ie,de,I;switch(me){case 1:w<128&&(W=w);break;case 2:Ce=d[U+1],(Ce&192)===128&&(I=(w&31)<<6|Ce&63,I>127&&(W=I));break;case 3:Ce=d[U+1],ie=d[U+2],(Ce&192)===128&&(ie&192)===128&&(I=(w&15)<<12|(Ce&63)<<6|ie&63,I>2047&&(I<55296||I>57343)&&(W=I));break;case 4:Ce=d[U+1],ie=d[U+2],de=d[U+3],(Ce&192)===128&&(ie&192)===128&&(de&192)===128&&(I=(w&15)<<18|(Ce&63)<<12|(ie&63)<<6|de&63,I>65535&&I<1114112&&(W=I));}}W===null?(W=65533,me=1):W>65535&&(W-=65536,_.push(W>>>10&1023|55296),W=56320|W&1023),_.push(W),U+=me;}return Oe(_)}let ue=4096;function Oe(d){let s=d.length;if(s<=ue)return String.fromCharCode.apply(String,d);let u="",_=0;for(;_<s;)u+=String.fromCharCode.apply(String,d.slice(_,_+=ue));return u}function Ie(d,s,u){let _="";u=Math.min(d.length,u);for(let U=s;U<u;++U)_+=String.fromCharCode(d[U]&127);return _}function re(d,s,u){let _="";u=Math.min(d.length,u);for(let U=s;U<u;++U)_+=String.fromCharCode(d[U]);return _}function ee(d,s,u){let _=d.length;(!s||s<0)&&(s=0),(!u||u<0||u>_)&&(u=_);let U="";for(let w=s;w<u;++w)U+=sr[d[w]];return U}function pe(d,s,u){let _=d.slice(s,u),U="";for(let w=0;w<_.length-1;w+=2)U+=String.fromCharCode(_[w]+_[w+1]*256);return U}i.prototype.slice=function(s,u){let _=this.length;s=~~s,u=u===void 0?_:~~u,s<0?(s+=_,s<0&&(s=0)):s>_&&(s=_),u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),u<s&&(u=s);let U=this.subarray(s,u);return Object.setPrototypeOf(U,i.prototype),U};function we(d,s,u){if(d%1!==0||d<0)throw new RangeError("offset is not uint");if(d+s>u)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(s,u,_){s=s>>>0,u=u>>>0,_||we(s,u,this.length);let U=this[s],w=1,W=0;for(;++W<u&&(w*=256);)U+=this[s+W]*w;return U},i.prototype.readUintBE=i.prototype.readUIntBE=function(s,u,_){s=s>>>0,u=u>>>0,_||we(s,u,this.length);let U=this[s+--u],w=1;for(;u>0&&(w*=256);)U+=this[s+--u]*w;return U},i.prototype.readUint8=i.prototype.readUInt8=function(s,u){return s=s>>>0,u||we(s,1,this.length),this[s]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(s,u){return s=s>>>0,u||we(s,2,this.length),this[s]|this[s+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(s,u){return s=s>>>0,u||we(s,2,this.length),this[s]<<8|this[s+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(s,u){return s=s>>>0,u||we(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(s,u){return s=s>>>0,u||we(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},i.prototype.readBigUInt64LE=gt(function(s){s=s>>>0,M(s,"offset");let u=this[s],_=this[s+7];(u===void 0||_===void 0)&&Z(s,this.length-8);let U=u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,w=this[++s]+this[++s]*2**8+this[++s]*2**16+_*2**24;return BigInt(U)+(BigInt(w)<<BigInt(32))}),i.prototype.readBigUInt64BE=gt(function(s){s=s>>>0,M(s,"offset");let u=this[s],_=this[s+7];(u===void 0||_===void 0)&&Z(s,this.length-8);let U=u*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],w=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+_;return (BigInt(U)<<BigInt(32))+BigInt(w)}),i.prototype.readIntLE=function(s,u,_){s=s>>>0,u=u>>>0,_||we(s,u,this.length);let U=this[s],w=1,W=0;for(;++W<u&&(w*=256);)U+=this[s+W]*w;return w*=128,U>=w&&(U-=Math.pow(2,8*u)),U},i.prototype.readIntBE=function(s,u,_){s=s>>>0,u=u>>>0,_||we(s,u,this.length);let U=u,w=1,W=this[s+--U];for(;U>0&&(w*=256);)W+=this[s+--U]*w;return w*=128,W>=w&&(W-=Math.pow(2,8*u)),W},i.prototype.readInt8=function(s,u){return s=s>>>0,u||we(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},i.prototype.readInt16LE=function(s,u){s=s>>>0,u||we(s,2,this.length);let _=this[s]|this[s+1]<<8;return _&32768?_|4294901760:_},i.prototype.readInt16BE=function(s,u){s=s>>>0,u||we(s,2,this.length);let _=this[s+1]|this[s]<<8;return _&32768?_|4294901760:_},i.prototype.readInt32LE=function(s,u){return s=s>>>0,u||we(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},i.prototype.readInt32BE=function(s,u){return s=s>>>0,u||we(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},i.prototype.readBigInt64LE=gt(function(s){s=s>>>0,M(s,"offset");let u=this[s],_=this[s+7];(u===void 0||_===void 0)&&Z(s,this.length-8);let U=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(_<<24);return (BigInt(U)<<BigInt(32))+BigInt(u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24)}),i.prototype.readBigInt64BE=gt(function(s){s=s>>>0,M(s,"offset");let u=this[s],_=this[s+7];(u===void 0||_===void 0)&&Z(s,this.length-8);let U=(u<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return (BigInt(U)<<BigInt(32))+BigInt(this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+_)}),i.prototype.readFloatLE=function(s,u){return s=s>>>0,u||we(s,4,this.length),t.read(this,s,!0,23,4)},i.prototype.readFloatBE=function(s,u){return s=s>>>0,u||we(s,4,this.length),t.read(this,s,!1,23,4)},i.prototype.readDoubleLE=function(s,u){return s=s>>>0,u||we(s,8,this.length),t.read(this,s,!0,52,8)},i.prototype.readDoubleBE=function(s,u){return s=s>>>0,u||we(s,8,this.length),t.read(this,s,!1,52,8)};function Ne(d,s,u,_,U,w){if(!i.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>U||s<w)throw new RangeError('"value" argument is out of bounds');if(u+_>d.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(s,u,_,U){if(s=+s,u=u>>>0,_=_>>>0,!U){let me=Math.pow(2,8*_)-1;Ne(this,s,u,_,me,0);}let w=1,W=0;for(this[u]=s&255;++W<_&&(w*=256);)this[u+W]=s/w&255;return u+_},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(s,u,_,U){if(s=+s,u=u>>>0,_=_>>>0,!U){let me=Math.pow(2,8*_)-1;Ne(this,s,u,_,me,0);}let w=_-1,W=1;for(this[u+w]=s&255;--w>=0&&(W*=256);)this[u+w]=s/W&255;return u+_},i.prototype.writeUint8=i.prototype.writeUInt8=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,1,255,0),this[u]=s&255,u+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,2,65535,0),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,2,65535,0),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,4,4294967295,0),this[u+3]=s>>>24,this[u+2]=s>>>16,this[u+1]=s>>>8,this[u]=s&255,u+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,4,4294967295,0),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4};function Ge(d,s,u,_,U){ve(s,_,U,d,u,7);let w=Number(s&BigInt(4294967295));d[u++]=w,w=w>>8,d[u++]=w,w=w>>8,d[u++]=w,w=w>>8,d[u++]=w;let W=Number(s>>BigInt(32)&BigInt(4294967295));return d[u++]=W,W=W>>8,d[u++]=W,W=W>>8,d[u++]=W,W=W>>8,d[u++]=W,u}function qe(d,s,u,_,U){ve(s,_,U,d,u,7);let w=Number(s&BigInt(4294967295));d[u+7]=w,w=w>>8,d[u+6]=w,w=w>>8,d[u+5]=w,w=w>>8,d[u+4]=w;let W=Number(s>>BigInt(32)&BigInt(4294967295));return d[u+3]=W,W=W>>8,d[u+2]=W,W=W>>8,d[u+1]=W,W=W>>8,d[u]=W,u+8}i.prototype.writeBigUInt64LE=gt(function(s,u=0){return Ge(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=gt(function(s,u=0){return qe(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(s,u,_,U){if(s=+s,u=u>>>0,!U){let Ce=Math.pow(2,8*_-1);Ne(this,s,u,_,Ce-1,-Ce);}let w=0,W=1,me=0;for(this[u]=s&255;++w<_&&(W*=256);)s<0&&me===0&&this[u+w-1]!==0&&(me=1),this[u+w]=(s/W>>0)-me&255;return u+_},i.prototype.writeIntBE=function(s,u,_,U){if(s=+s,u=u>>>0,!U){let Ce=Math.pow(2,8*_-1);Ne(this,s,u,_,Ce-1,-Ce);}let w=_-1,W=1,me=0;for(this[u+w]=s&255;--w>=0&&(W*=256);)s<0&&me===0&&this[u+w+1]!==0&&(me=1),this[u+w]=(s/W>>0)-me&255;return u+_},i.prototype.writeInt8=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,1,127,-128),s<0&&(s=255+s+1),this[u]=s&255,u+1},i.prototype.writeInt16LE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,2,32767,-32768),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeInt16BE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,2,32767,-32768),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeInt32LE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,4,2147483647,-2147483648),this[u]=s&255,this[u+1]=s>>>8,this[u+2]=s>>>16,this[u+3]=s>>>24,u+4},i.prototype.writeInt32BE=function(s,u,_){return s=+s,u=u>>>0,_||Ne(this,s,u,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4},i.prototype.writeBigInt64LE=gt(function(s,u=0){return Ge(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=gt(function(s,u=0){return qe(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qe(d,s,u,_,U,w){if(u+_>d.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ve(d,s,u,_,U){return s=+s,u=u>>>0,U||Qe(d,s,u,4),t.write(d,s,u,_,23,4),u+4}i.prototype.writeFloatLE=function(s,u,_){return Ve(this,s,u,!0,_)},i.prototype.writeFloatBE=function(s,u,_){return Ve(this,s,u,!1,_)};function Le(d,s,u,_,U){return s=+s,u=u>>>0,U||Qe(d,s,u,8),t.write(d,s,u,_,52,8),u+8}i.prototype.writeDoubleLE=function(s,u,_){return Le(this,s,u,!0,_)},i.prototype.writeDoubleBE=function(s,u,_){return Le(this,s,u,!1,_)},i.prototype.copy=function(s,u,_,U){if(!i.isBuffer(s))throw new TypeError("argument should be a Buffer");if(_||(_=0),!U&&U!==0&&(U=this.length),u>=s.length&&(u=s.length),u||(u=0),U>0&&U<_&&(U=_),U===_||s.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),s.length-u<U-_&&(U=s.length-u+_);let w=U-_;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,_,U):Uint8Array.prototype.set.call(s,this.subarray(_,U),u),w},i.prototype.fill=function(s,u,_,U){if(typeof s=="string"){if(typeof u=="string"?(U=u,u=0,_=this.length):typeof _=="string"&&(U=_,_=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!i.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(s.length===1){let W=s.charCodeAt(0);(U==="utf8"&&W<128||U==="latin1")&&(s=W);}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(u<0||this.length<u||this.length<_)throw new RangeError("Out of range index");if(_<=u)return this;u=u>>>0,_=_===void 0?this.length:_>>>0,s||(s=0);let w;if(typeof s=="number")for(w=u;w<_;++w)this[w]=s;else {let W=i.isBuffer(s)?s:i.from(s,U),me=W.length;if(me===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(w=0;w<_-u;++w)this[w+u]=W[w%me];}return this};let A={};function T(d,s,u){A[d]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${d}]`,delete this.name;}get code(){return d}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0});}toString(){return `${this.name} [${d}]: ${this.message}`}};}T("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(d,s){return `The "${d}" argument must be of type number. Received type ${typeof s}`},TypeError),T("ERR_OUT_OF_RANGE",function(d,s,u){let _=`The value of "${d}" is out of range.`,U=u;return Number.isInteger(u)&&Math.abs(u)>2**32?U=Y(String(u)):typeof u=="bigint"&&(U=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(U=Y(U)),U+="n"),_+=` It must be ${s}. Received ${U}`,_},RangeError);function Y(d){let s="",u=d.length,_=d[0]==="-"?1:0;for(;u>=_+4;u-=3)s=`_${d.slice(u-3,u)}${s}`;return `${d.slice(0,u)}${s}`}function ye(d,s,u){M(s,"offset"),(d[s]===void 0||d[s+u]===void 0)&&Z(s,d.length-(u+1));}function ve(d,s,u,_,U,w){if(d>u||d<s){let W=typeof s=="bigint"?"n":"",me;throw w>3?s===0||s===BigInt(0)?me=`>= 0${W} and < 2${W} ** ${(w+1)*8}${W}`:me=`>= -(2${W} ** ${(w+1)*8-1}${W}) and < 2 ** ${(w+1)*8-1}${W}`:me=`>= ${s}${W} and <= ${u}${W}`,new A.ERR_OUT_OF_RANGE("value",me,d)}ye(_,U,w);}function M(d,s){if(typeof d!="number")throw new A.ERR_INVALID_ARG_TYPE(s,"number",d)}function Z(d,s,u){throw Math.floor(d)!==d?(M(d,u),new A.ERR_OUT_OF_RANGE(u||"offset","an integer",d)):s<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${s}`,d)}let Re=/[^+/0-9A-Za-z-_]/g;function De(d){if(d=d.split("=")[0],d=d.trim().replace(Re,""),d.length<2)return "";for(;d.length%4!==0;)d=d+"=";return d}function je(d,s){s=s||1/0;let u,_=d.length,U=null,w=[];for(let W=0;W<_;++W){if(u=d.charCodeAt(W),u>55295&&u<57344){if(!U){if(u>56319){(s-=3)>-1&&w.push(239,191,189);continue}else if(W+1===_){(s-=3)>-1&&w.push(239,191,189);continue}U=u;continue}if(u<56320){(s-=3)>-1&&w.push(239,191,189),U=u;continue}u=(U-55296<<10|u-56320)+65536;}else U&&(s-=3)>-1&&w.push(239,191,189);if(U=null,u<128){if((s-=1)<0)break;w.push(u);}else if(u<2048){if((s-=2)<0)break;w.push(u>>6|192,u&63|128);}else if(u<65536){if((s-=3)<0)break;w.push(u>>12|224,u>>6&63|128,u&63|128);}else if(u<1114112){if((s-=4)<0)break;w.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128);}else throw new Error("Invalid code point")}return w}function He(d){let s=[];for(let u=0;u<d.length;++u)s.push(d.charCodeAt(u)&255);return s}function $e(d,s){let u,_,U,w=[];for(let W=0;W<d.length&&!((s-=2)<0);++W)u=d.charCodeAt(W),_=u>>8,U=u%256,w.push(U),w.push(_);return w}function at(d){return e.toByteArray(De(d))}function it(d,s,u,_){let U;for(U=0;U<_&&!(U+u>=s.length||U>=d.length);++U)s[U+u]=d[U];return U}function tt(d,s){return d instanceof s||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===s.name}function _t(d){return d!==d}let sr=function(){let d="0123456789abcdef",s=new Array(256);for(let u=0;u<16;++u){let _=u*16;for(let U=0;U<16;++U)s[_+U]=d[u]+d[U];}return s}();function gt(d){return typeof BigInt>"u"?kt:d}function kt(){throw new Error("BigInt not supported")}return xi}var Sa,Gy,qs,zy,xi,Wy,Pi,se,Hs=St(()=>{N();x();P();C();L();Sa={},Gy=!1;qs={},zy=!1;xi={},Wy=!1;Pi=$A();se=Pi.Buffer;});var C=St(()=>{Hs();});function bt(){bt.init.call(this);}function Gs(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function rm(e){return e._maxListeners===void 0?bt.defaultMaxListeners:e._maxListeners}function Yy(e,t,r,n){var o,a,i,f;if(Gs(r),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),i===void 0)i=a[t]=r,++e._eventsCount;else if(typeof i=="function"?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(o=rm(e))>0&&i.length>o&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,f=l,console&&console.warn&&console.warn(f);}return e}function qA(){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 Xy(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=qA.bind(n);return o.listener=r,n.wrapFn=o,o}function Jy(e,t,r){var n=e._events;if(n===void 0)return [];var o=n[t];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(a){for(var i=new Array(a.length),f=0;f<i.length;++f)i[f]=a[f].listener||a[f];return i}(o):nm(o,o.length)}function Qy(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function nm(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}var em,tm,mo,Zy,Vy,Ky,Mt,Fn=St(()=>{N();x();P();C();L();mo=typeof Reflect=="object"?Reflect:null,Zy=mo&&typeof mo.apply=="function"?mo.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};tm=mo&&typeof mo.ownKeys=="function"?mo.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};Vy=Number.isNaN||function(e){return e!=e};em=bt,bt.EventEmitter=bt,bt.prototype._events=void 0,bt.prototype._eventsCount=0,bt.prototype._maxListeners=void 0;Ky=10;Object.defineProperty(bt,"defaultMaxListeners",{enumerable:!0,get:function(){return Ky},set:function(e){if(typeof e!="number"||e<0||Vy(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ky=e;}}),bt.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;},bt.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Vy(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},bt.prototype.getMaxListeners=function(){return rm(this)},bt.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return !1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var f=o[e];if(f===void 0)return !1;if(typeof f=="function")Zy(f,this,t);else {var l=f.length,c=nm(f,l);for(r=0;r<l;++r)Zy(c[r],this,t);}return !0},bt.prototype.addListener=function(e,t){return Yy(this,e,t,!1)},bt.prototype.on=bt.prototype.addListener,bt.prototype.prependListener=function(e,t){return Yy(this,e,t,!0)},bt.prototype.once=function(e,t){return Gs(t),this.on(e,Xy(this,e,t)),this},bt.prototype.prependOnceListener=function(e,t){return Gs(t),this.prependListener(e,Xy(this,e,t)),this},bt.prototype.removeListener=function(e,t){var r,n,o,a,i;if(Gs(t),(n=this._events)===void 0)return this;if((r=n[e])===void 0)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():function(f,l){for(;l+1<f.length;l++)f[l]=f[l+1];f.pop();}(r,o),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,i||t);}return this},bt.prototype.off=bt.prototype.removeListener,bt.prototype.removeAllListeners=function(e){var t,r,n;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o,a=Object.keys(r);for(n=0;n<a.length;++n)(o=a[n])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},bt.prototype.listeners=function(e){return Jy(this,e,!0)},bt.prototype.rawListeners=function(e){return Jy(this,e,!1)},bt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Qy.call(e,t)},bt.prototype.listenerCount=Qy,bt.prototype.eventNames=function(){return this._eventsCount>0?tm(this._events):[]};Mt=em;});var zs,nM,iM,oM,aM,sM,ai=St(()=>{N();x();P();C();L();Fn();Fn();Mt.once=function(e,t){return new Promise((r,n)=>{function o(...i){a!==void 0&&e.removeListener("error",a),r(i);}let a;t!=="error"&&(a=i=>{e.removeListener(name,o),n(i);},e.once("error",a)),e.once(t,o);})};Mt.on=function(e,t){let r=[],n=[],o=null,a=!1,i={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(o){let p=Promise.reject(o);return o=null,p}return a?createIterResult(void 0,!0):new Promise((p,y)=>n.push({resolve:p,reject:y}))},async return(){e.removeListener(t,f),e.removeListener("error",l),a=!0;for(let c of n)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=c,e.removeListener(t,f),e.removeListener("error",l);},[Symbol.asyncIterator](){return this}};return e.on(t,f),e.on("error",l),i;function f(...c){let p=n.shift();p?p.resolve(createIterResult(c,!1)):r.push(c);}function l(c){a=!0;let p=n.shift();p?p.reject(c):o=c,i.return();}};({EventEmitter:zs,defaultMaxListeners:nM,init:iM,listenerCount:oM,on:aM,once:sM}=Mt);});var gl=Be((KM,am)=>{N();x();P();C();L();var om=Object.prototype.toString;am.exports=function(t){var r=om.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&om.call(t.callee)==="[object Function]"),n};});var ym=Be((tj,dm)=>{N();x();P();C();L();var pm;Object.keys||(ba=Object.prototype.hasOwnProperty,vl=Object.prototype.toString,sm=gl(),wl=Object.prototype.propertyIsEnumerable,um=!wl.call({toString:null},"toString"),fm=wl.call(function(){},"prototype"),Aa=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Zs=function(e){var t=e.constructor;return t&&t.prototype===e},lm={$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},cm=function(){if(typeof window>"u")return !1;for(var e in window)try{if(!lm["$"+e]&&ba.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Zs(window[e]);}catch{return !0}}catch{return !0}return !1}(),hm=function(e){if(typeof window>"u"||!cm)return Zs(e);try{return Zs(e)}catch{return !1}},pm=function(t){var r=t!==null&&typeof t=="object",n=vl.call(t)==="[object Function]",o=sm(t),a=r&&vl.call(t)==="[object String]",i=[];if(!r&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=fm&&n;if(a&&t.length>0&&!ba.call(t,0))for(var l=0;l<t.length;++l)i.push(String(l));if(o&&t.length>0)for(var c=0;c<t.length;++c)i.push(String(c));else for(var p in t)!(f&&p==="prototype")&&ba.call(t,p)&&i.push(String(p));if(um)for(var y=hm(t),m=0;m<Aa.length;++m)!(y&&Aa[m]==="constructor")&&ba.call(t,Aa[m])&&i.push(Aa[m]);return i});var ba,vl,sm,wl,um,fm,Aa,Zs,lm,cm,hm;dm.exports=pm;});var Ks=Be((sj,vm)=>{N();x();P();C();L();var WA=Array.prototype.slice,ZA=gl(),mm=Object.keys,Vs=mm?function(t){return mm(t)}:ym(),gm=Object.keys;Vs.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return ZA(n)?gm(WA.call(n)):gm(n)});}else Object.keys=Vs;return Object.keys||Vs};vm.exports=Vs;});var Oa=Be((pj,wm)=>{N();x();P();C();L();wm.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return !1;var o=42;t[r]=o;for(r in t)return !1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return !1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return !1}return !0};});var Ys=Be((wj,_m)=>{N();x();P();C();L();var Em=typeof Symbol<"u"&&Symbol,VA=Oa();_m.exports=function(){return typeof Em!="function"||typeof Symbol!="function"||typeof Em("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:VA()};});var Am=Be((Oj,bm)=>{N();x();P();C();L();var Sm={foo:{}},KA=Object;bm.exports=function(){return {__proto__:Sm}.foo===Sm.foo&&!({__proto__:null}instanceof KA)};});var Rm=Be((Pj,Om)=>{N();x();P();C();L();var YA="Function.prototype.bind called on incompatible ",El=Array.prototype.slice,XA=Object.prototype.toString,JA="[object Function]";Om.exports=function(t){var r=this;if(typeof r!="function"||XA.call(r)!==JA)throw new TypeError(YA+r);for(var n=El.call(arguments,1),o,a=function(){if(this instanceof o){var p=r.apply(this,n.concat(El.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(El.call(arguments)))},i=Math.max(0,r.length-n.length),f=[],l=0;l<i;l++)f.push("$"+l);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null;}return o};});var Xs=Be((Fj,Tm)=>{N();x();P();C();L();var QA=Rm();Tm.exports=Function.prototype.bind||QA;});var _l=Be((Hj,Im)=>{N();x();P();C();L();var eO=Xs();Im.exports=eO.call(Function.call,Object.prototype.hasOwnProperty);});var Xr=Be((Kj,Cm)=>{N();x();P();C();L();var yt,_o=SyntaxError,Lm=Function,Eo=TypeError,Sl=function(e){try{return Lm('"use strict"; return ('+e+").constructor;")()}catch{}},Li=Object.getOwnPropertyDescriptor;var bl=function(){throw new Eo},tO=Li?function(){try{return bl}catch{try{return Li(arguments,"callee").get}catch{return bl}}}():bl,vo=Ys()(),rO=Am()(),Vt=Object.getPrototypeOf||(rO?function(e){return e.__proto__}:null),wo={},nO=typeof Uint8Array>"u"||!Vt?yt:Vt(Uint8Array),Ci={"%AggregateError%":typeof AggregateError>"u"?yt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?yt:ArrayBuffer,"%ArrayIteratorPrototype%":vo&&Vt?Vt([][Symbol.iterator]()):yt,"%AsyncFromSyncIteratorPrototype%":yt,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?yt:Atomics,"%BigInt%":typeof BigInt>"u"?yt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?yt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?yt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?yt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?yt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?yt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?yt:FinalizationRegistry,"%Function%":Lm,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?yt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?yt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?yt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vo&&Vt?Vt(Vt([][Symbol.iterator]())):yt,"%JSON%":typeof JSON=="object"?JSON:yt,"%Map%":typeof Map>"u"?yt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vo||!Vt?yt:Vt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?yt:Promise,"%Proxy%":typeof Proxy>"u"?yt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?yt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?yt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vo||!Vt?yt:Vt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?yt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vo&&Vt?Vt(""[Symbol.iterator]()):yt,"%Symbol%":vo?Symbol:yt,"%SyntaxError%":_o,"%ThrowTypeError%":tO,"%TypedArray%":nO,"%TypeError%":Eo,"%Uint8Array%":typeof Uint8Array>"u"?yt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?yt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?yt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?yt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?yt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?yt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?yt:WeakSet};var iO=function e(t){var r;if(t==="%AsyncFunction%")r=Sl("async function () {}");else if(t==="%GeneratorFunction%")r=Sl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Sl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype);}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Vt&&(r=Vt(o.prototype));}return Ci[t]=r,r},xm={"%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"]},Ra=Xs(),Js=_l(),oO=Ra.call(Function.call,Array.prototype.concat),aO=Ra.call(Function.apply,Array.prototype.splice),Pm=Ra.call(Function.call,String.prototype.replace),Qs=Ra.call(Function.call,String.prototype.slice),sO=Ra.call(Function.call,RegExp.prototype.exec),uO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fO=/\\(\\)?/g,lO=function(t){var r=Qs(t,0,1),n=Qs(t,-1);if(r==="%"&&n!=="%")throw new _o("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new _o("invalid intrinsic syntax, expected opening `%`");var o=[];return Pm(t,uO,function(a,i,f,l){o[o.length]=f?Pm(l,fO,"$1"):i||a;}),o},cO=function(t,r){var n=t,o;if(Js(xm,n)&&(o=xm[n],n="%"+o[0]+"%"),Js(Ci,n)){var a=Ci[n];if(a===wo&&(a=iO(n)),typeof a>"u"&&!r)throw new Eo("intrinsic "+t+" exists, but is not available. Please file an issue!");return {alias:o,name:n,value:a}}throw new _o("intrinsic "+t+" does not exist!")};Cm.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Eo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Eo('"allowMissing" argument must be a boolean');if(sO(/^%?[^%]*%?$/,t)===null)throw new _o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=lO(t),o=n.length>0?n[0]:"",a=cO("%"+o+"%",r),i=a.name,f=a.value,l=!1,c=a.alias;c&&(o=c[0],aO(n,oO([0,1],c)));for(var p=1,y=!0;p<n.length;p+=1){var m=n[p],g=Qs(m,0,1),h=Qs(m,-1);if((g==='"'||g==="'"||g==="`"||h==='"'||h==="'"||h==="`")&&g!==h)throw new _o("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),o+="."+m,i="%"+o+"%",Js(Ci,i))f=Ci[i];else if(f!=null){if(!(m in f)){if(!r)throw new Eo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Li&&p+1>=n.length){var E=Li(f,m);y=!!E,y&&"get"in E&&!("originalValue"in E.get)?f=E.get:f=f[m];}else y=Js(f,m),f=f[m];y&&!l&&(Ci[i]=f);}}return f};});var km=Be((t$,Bm)=>{N();x();P();C();L();var hO=Xr(),Al=hO("%Object.defineProperty%",!0),Ol=function(){if(Al)try{return Al({},"a",{value:1}),!0}catch{return !1}return !1};Ol.hasArrayLengthDefineBug=function(){if(!Ol())return null;try{return Al([],"length",{value:1}).length!==1}catch{return !0}};Bm.exports=Ol;});var si=Be((s$,Mm)=>{N();x();P();C();L();var pO=Ks(),dO=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",yO=Object.prototype.toString,mO=Array.prototype.concat,Dm=Object.defineProperty,gO=function(e){return typeof e=="function"&&yO.call(e)==="[object Function]"},vO=km()(),Fm=Dm&&vO,wO=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!gO(n)||!n())return}Fm?Dm(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r;},Um=function(e,t){var r=arguments.length>2?arguments[2]:{},n=pO(t);dO&&(n=mO.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)wO(e,n[o],t[n[o]],r[n[o]]);};Um.supportsDescriptors=!!Fm;Mm.exports=Um;});var bo=Be((p$,eu)=>{N();x();P();C();L();var Rl=Xs(),So=Xr(),qm=So("%Function.prototype.apply%"),Hm=So("%Function.prototype.call%"),Gm=So("%Reflect.apply%",!0)||Rl.call(Hm,qm),jm=So("%Object.getOwnPropertyDescriptor%",!0),Bi=So("%Object.defineProperty%",!0),EO=So("%Math.max%");if(Bi)try{Bi({},"a",{value:1});}catch{Bi=null;}eu.exports=function(t){var r=Gm(Rl,Hm,arguments);if(jm&&Bi){var n=jm(r,"length");n.configurable&&Bi(r,"length",{value:1+EO(0,t.length-(arguments.length-1))});}return r};var $m=function(){return Gm(Rl,qm,arguments)};Bi?Bi(eu.exports,"apply",{value:$m}):eu.exports.apply=$m;});var _r=Be((w$,Zm)=>{N();x();P();C();L();var zm=Xr(),Wm=bo(),_O=Wm(zm("String.prototype.indexOf"));Zm.exports=function(t,r){var n=zm(t,!!r);return typeof n=="function"&&_O(t,".prototype.")>-1?Wm(n):n};});var Tl=Be((O$,Jm)=>{N();x();P();C();L();var SO=Ks(),Ym=Oa()(),Xm=_r(),Vm=Object,bO=Xm("Array.prototype.push"),Km=Xm("Object.prototype.propertyIsEnumerable"),AO=Ym?Object.getOwnPropertySymbols:null;Jm.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=Vm(t);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Vm(arguments[o]),i=SO(a),f=Ym&&(Object.getOwnPropertySymbols||AO);if(f)for(var l=f(a),c=0;c<l.length;++c){var p=l[c];Km(a,p)&&bO(i,p);}for(var y=0;y<i.length;++y){var m=i[y];if(Km(a,m)){var g=a[m];n[m]=g;}}}return n};});var Nl=Be((P$,Qm)=>{N();x();P();C();L();var Il=Tl(),OO=function(){if(!Object.assign)return !1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var o=Object.assign({},r),a="";for(var i in o)a+=i;return e!==a},RO=function(){if(!Object.assign||!Object.preventExtensions)return !1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy");}catch{return e[1]==="y"}return !1};Qm.exports=function(){return !Object.assign||OO()||RO()?Il:Object.assign};});var tg=Be((F$,eg)=>{N();x();P();C();L();var TO=si(),IO=Nl();eg.exports=function(){var t=IO();return TO(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t};});var og=Be((H$,ig)=>{N();x();P();C();L();var NO=si(),xO=bo(),PO=Tl(),rg=Nl(),LO=tg(),CO=xO.apply(rg()),ng=function(t,r){return CO(Object,arguments)};NO(ng,{getPolyfill:rg,implementation:PO,shim:LO});ig.exports=ng;});var sg=Be((K$,ag)=>{N();x();P();C();L();var Ia=function(){return typeof function(){}.name=="string"},Ta=Object.getOwnPropertyDescriptor;Ia.functionsHaveConfigurableNames=function(){if(!Ia()||!Ta)return !1;var t=Ta(function(){},"name");return !!t&&!!t.configurable};var BO=Function.prototype.bind;Ia.boundFunctionsHaveNames=function(){return Ia()&&typeof BO=="function"&&function(){}.bind().name!==""};ag.exports=Ia;});var Pl=Be((tq,xl)=>{N();x();P();C();L();var kO=sg().functionsHaveConfigurableNames(),DO=Object,FO=TypeError;xl.exports=function(){if(this!=null&&this!==DO(this))throw new FO("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t};kO&&Object.defineProperty&&Object.defineProperty(xl.exports,"name",{value:"get flags"});});var Ll=Be((sq,ug)=>{N();x();P();C();L();var UO=Pl(),MO=si().supportsDescriptors,jO=Object.getOwnPropertyDescriptor;ug.exports=function(){if(MO&&/a/mig.flags==="gim"){var t=jO(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d";}}),Object.defineProperty(n,"sticky",{get:function(){r+="y";}}),r==="dy")return t.get}}return UO};});var cg=Be((pq,lg)=>{N();x();P();C();L();var $O=si().supportsDescriptors,qO=Ll(),HO=Object.getOwnPropertyDescriptor,GO=Object.defineProperty,zO=TypeError,fg=Object.getPrototypeOf,WO=/a/;lg.exports=function(){if(!$O||!fg)throw new zO("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=qO(),r=fg(WO),n=HO(r,"flags");return (!n||n.get!==t)&&GO(r,"flags",{configurable:!0,enumerable:!1,get:t}),t};});var yg=Be((wq,dg)=>{N();x();P();C();L();var ZO=si(),VO=bo(),KO=Pl(),hg=Ll(),YO=cg(),pg=VO(hg());ZO(pg,{getPolyfill:hg,implementation:KO,shim:YO});dg.exports=pg;});var Un=Be((Oq,mg)=>{N();x();P();C();L();var XO=Oa();mg.exports=function(){return XO()&&!!Symbol.toStringTag};});var Bl=Be((Pq,vg)=>{N();x();P();C();L();var JO=Un()(),QO=_r(),Cl=QO("Object.prototype.toString"),tu=function(t){return JO&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Cl(t)==="[object Arguments]"},gg=function(t){return tu(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Cl(t)!=="[object Array]"&&Cl(t.callee)==="[object Function]"},eR=function(){return tu(arguments)}();tu.isLegacyArguments=gg;vg.exports=eR?tu:gg;});var wg=Be(()=>{N();x();P();C();L();});var Mg=Be((Gq,Ug)=>{N();x();P();C();L();var Gl=typeof Map=="function"&&Map.prototype,kl=Object.getOwnPropertyDescriptor&&Gl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nu=Gl&&kl&&typeof kl.get=="function"?kl.get:null,Eg=Gl&&Map.prototype.forEach,zl=typeof Set=="function"&&Set.prototype,Dl=Object.getOwnPropertyDescriptor&&zl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,iu=zl&&Dl&&typeof Dl.get=="function"?Dl.get:null,_g=zl&&Set.prototype.forEach,tR=typeof WeakMap=="function"&&WeakMap.prototype,xa=tR?WeakMap.prototype.has:null,rR=typeof WeakSet=="function"&&WeakSet.prototype,Pa=rR?WeakSet.prototype.has:null,nR=typeof WeakRef=="function"&&WeakRef.prototype,Sg=nR?WeakRef.prototype.deref:null,iR=Boolean.prototype.valueOf,oR=Object.prototype.toString,aR=Function.prototype.toString,sR=String.prototype.match,Wl=String.prototype.slice,fi=String.prototype.replace,uR=String.prototype.toUpperCase,bg=String.prototype.toLowerCase,Lg=RegExp.prototype.test,Ag=Array.prototype.concat,pn=Array.prototype.join,fR=Array.prototype.slice,Og=Math.floor,Ml=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Fl=Object.getOwnPropertySymbols,jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ao||"symbol")?Symbol.toStringTag:null,Cg=Object.prototype.propertyIsEnumerable,Rg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Tg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Lg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Og(-e):Og(e);if(n!==e){var o=String(n),a=Wl.call(t,o.length+1);return fi.call(o,r,"$&_")+"."+fi.call(fi.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fi.call(t,r,"$&_")}var $l=wg(),Ig=$l.custom,Ng=kg(Ig)?Ig:null;Ug.exports=function e(t,r,n,o){var a=r||{};if(ui(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ui(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=ui(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ui(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ui(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return "undefined";if(t===null)return "null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Fg(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return f?Tg(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return f?Tg(t,c):c}var p=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof t=="object")return ql(t)?"[Array]":"[Object]";var y=TR(a,n);if(typeof o>"u")o=[];else if(Dg(o,t)>=0)return "[Circular]";function m(ne,ue,Oe){if(ue&&(o=fR.call(o),o.push(ue)),Oe){var Ie={depth:a.depth};return ui(a,"quoteStyle")&&(Ie.quoteStyle=a.quoteStyle),e(ne,Ie,n+1,o)}return e(ne,a,n+1,o)}if(typeof t=="function"&&!xg(t)){var g=vR(t),h=ru(t,m);return "[Function"+(g?": "+g:" (anonymous)")+"]"+(h.length>0?" { "+pn.call(h,", ")+" }":"")}if(kg(t)){var E=Ao?fi.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):jl.call(t);return typeof t=="object"&&!Ao?Na(E):E}if(AR(t)){for(var S="<"+bg.call(String(t.nodeName)),O=t.attributes||[],k=0;k<O.length;k++)S+=" "+O[k].name+"="+Bg(lR(O[k].value),"double",a);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+bg.call(String(t.nodeName))+">",S}if(ql(t)){if(t.length===0)return "[]";var $=ru(t,m);return y&&!RR($)?"["+Hl($,y)+"]":"[ "+pn.call($,", ")+" ]"}if(hR(t)){var q=ru(t,m);return !("cause"in Error.prototype)&&"cause"in t&&!Cg.call(t,"cause")?"{ ["+String(t)+"] "+pn.call(Ag.call("[cause]: "+m(t.cause),q),", ")+" }":q.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+pn.call(q,", ")+" }"}if(typeof t=="object"&&i){if(Ng&&typeof t[Ng]=="function"&&$l)return $l(t,{depth:p-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wR(t)){var K=[];return Eg&&Eg.call(t,function(ne,ue){K.push(m(ue,t,!0)+" => "+m(ne,t));}),Pg("Map",nu.call(t),K,y)}if(SR(t)){var j=[];return _g&&_g.call(t,function(ne){j.push(m(ne,t));}),Pg("Set",iu.call(t),j,y)}if(ER(t))return Ul("WeakMap");if(bR(t))return Ul("WeakSet");if(_R(t))return Ul("WeakRef");if(dR(t))return Na(m(Number(t)));if(mR(t))return Na(m(Ml.call(t)));if(yR(t))return Na(iR.call(t));if(pR(t))return Na(m(String(t)));if(!cR(t)&&!xg(t)){var D=ru(t,m),B=Rg?Rg(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",J=!B&&fr&&Object(t)===t&&fr in t?Wl.call(li(t),8,-1):H?"Object":"",ge=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",V=ge+(J||H?"["+pn.call(Ag.call([],J||[],H||[]),": ")+"] ":"");return D.length===0?V+"{}":y?V+"{"+Hl(D,y)+"}":V+"{ "+pn.call(D,", ")+" }"}return String(t)};function Bg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function lR(e){return fi.call(String(e),/"/g,"&quot;")}function ql(e){return li(e)==="[object Array]"&&(!fr||!(typeof e=="object"&&fr in e))}function cR(e){return li(e)==="[object Date]"&&(!fr||!(typeof e=="object"&&fr in e))}function xg(e){return li(e)==="[object RegExp]"&&(!fr||!(typeof e=="object"&&fr in e))}function hR(e){return li(e)==="[object Error]"&&(!fr||!(typeof e=="object"&&fr in e))}function pR(e){return li(e)==="[object String]"&&(!fr||!(typeof e=="object"&&fr in e))}function dR(e){return li(e)==="[object Number]"&&(!fr||!(typeof e=="object"&&fr in e))}function yR(e){return li(e)==="[object Boolean]"&&(!fr||!(typeof e=="object"&&fr in e))}function kg(e){if(Ao)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return !0;if(!e||typeof e!="object"||!jl)return !1;try{return jl.call(e),!0}catch{}return !1}function mR(e){if(!e||typeof e!="object"||!Ml)return !1;try{return Ml.call(e),!0}catch{}return !1}var gR=Object.prototype.hasOwnProperty||function(e){return e in this};function ui(e,t){return gR.call(e,t)}function li(e){return oR.call(e)}function vR(e){if(e.name)return e.name;var t=sR.call(aR.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Dg(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function wR(e){if(!nu||!e||typeof e!="object")return !1;try{nu.call(e);try{iu.call(e);}catch{return !0}return e instanceof Map}catch{}return !1}function ER(e){if(!xa||!e||typeof e!="object")return !1;try{xa.call(e,xa);try{Pa.call(e,Pa);}catch{return !0}return e instanceof WeakMap}catch{}return !1}function _R(e){if(!Sg||!e||typeof e!="object")return !1;try{return Sg.call(e),!0}catch{}return !1}function SR(e){if(!iu||!e||typeof e!="object")return !1;try{iu.call(e);try{nu.call(e);}catch{return !0}return e instanceof Set}catch{}return !1}function bR(e){if(!Pa||!e||typeof e!="object")return !1;try{Pa.call(e,Pa);try{xa.call(e,xa);}catch{return !0}return e instanceof WeakSet}catch{}return !1}function AR(e){return !e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Fg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Fg(Wl.call(e,0,t.maxStringLength),t)+n}var o=fi.call(fi.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,OR);return Bg(o,"single",t)}function OR(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+uR.call(t.toString(16))}function Na(e){return "Object("+e+")"}function Ul(e){return e+" { ? }"}function Pg(e,t,r,n){var o=n?Hl(r,n):pn.call(r,", ");return e+" ("+t+") {"+o+"}"}function RR(e){for(var t=0;t<e.length;t++)if(Dg(e[t],`
`)>=0)return !1;return !0}function TR(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=pn.call(Array(e.indent+1)," ");else return null;return {base:r,prev:pn.call(Array(t+1),r)}}function Hl(e,t){if(e.length===0)return "";var r=`
`+t.prev+t.base;return r+pn.call(e,","+r)+`
`+t.prev}function ru(e,t){var r=ql(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ui(e,o)?t(e[o],e):"";}var a=typeof Fl=="function"?Fl(e):[],i;if(Ao){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f];}for(var l in e)ui(e,l)&&(r&&String(Number(l))===l&&l<e.length||Ao&&i["$"+l]instanceof Symbol||(Lg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Fl=="function")for(var c=0;c<a.length;c++)Cg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Kl=Be((Yq,jg)=>{N();x();P();C();L();var Zl=Xr(),Oo=_r(),IR=Mg(),NR=Zl("%TypeError%"),ou=Zl("%WeakMap%",!0),au=Zl("%Map%",!0),xR=Oo("WeakMap.prototype.get",!0),PR=Oo("WeakMap.prototype.set",!0),LR=Oo("WeakMap.prototype.has",!0),CR=Oo("Map.prototype.get",!0),BR=Oo("Map.prototype.set",!0),kR=Oo("Map.prototype.has",!0),Vl=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},DR=function(e,t){var r=Vl(e,t);return r&&r.value},FR=function(e,t,r){var n=Vl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r};},UR=function(e,t){return !!Vl(e,t)};jg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new NR("Side channel does not contain "+IR(a))},get:function(a){if(ou&&a&&(typeof a=="object"||typeof a=="function")){if(t)return xR(t,a)}else if(au){if(r)return CR(r,a)}else if(n)return DR(n,a)},has:function(a){if(ou&&a&&(typeof a=="object"||typeof a=="function")){if(t)return LR(t,a)}else if(au){if(r)return kR(r,a)}else if(n)return UR(n,a);return !1},set:function(a,i){ou&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ou),PR(t,a,i)):au?(r||(r=new au),BR(r,a,i)):(n||(n={key:{},next:null}),FR(n,a,i));}};return o};});var qg=Be((r7,$g)=>{N();x();P();C();L();var MR=Xr(),jR=_l(),La=Kl()(),Mn=MR("%TypeError%"),Yl={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Mn("`O` is not an object");if(typeof t!="string")throw new Mn("`slot` must be a string");if(La.assert(e),!Yl.has(e,t))throw new Mn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Mn("`O` is not an object");if(typeof t!="string")throw new Mn("`slot` must be a string");var r=La.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Mn("`O` is not an object");if(typeof t!="string")throw new Mn("`slot` must be a string");var r=La.get(e);return !!r&&jR(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Mn("`O` is not an object");if(typeof t!="string")throw new Mn("`slot` must be a string");var n=La.get(e);n||(n={},La.set(e,n)),n["$"+t]=r;}};Object.freeze&&Object.freeze(Yl);$g.exports=Yl;});var zg=Be((u7,Gg)=>{N();x();P();C();L();var Ca=qg(),$R=SyntaxError,Hg=typeof StopIteration=="object"?StopIteration:null;Gg.exports=function(t){if(!Hg)throw new $R("this environment lacks StopIteration");Ca.set(t,"[[Done]]",!1);var r={next:function(){var o=Ca.get(this,"[[Iterator]]"),a=Ca.get(o,"[[Done]]");try{return {done:a,value:a?void 0:o.next()}}catch(i){if(Ca.set(o,"[[Done]]",!0),i!==Hg)throw i;return {done:!0,value:void 0}}}};return Ca.set(r,"[[Iterator]]",t),r};});var Xl=Be((d7,Wg)=>{N();x();P();C();L();var qR={}.toString;Wg.exports=Array.isArray||function(e){return qR.call(e)=="[object Array]"};});var Jl=Be((E7,Zg)=>{N();x();P();C();L();var HR=String.prototype.valueOf,GR=function(t){try{return HR.call(t),!0}catch{return !1}},zR=Object.prototype.toString,WR="[object String]",ZR=Un()();Zg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:ZR?GR(t):zR.call(t)===WR};});var ec=Be((R7,Yg)=>{N();x();P();C();L();var Ql=typeof Map=="function"&&Map.prototype?Map:null,VR=typeof Set=="function"&&Set.prototype?Set:null,su;Ql||(su=function(t){return !1});var Kg=Ql?Map.prototype.has:null,Vg=VR?Set.prototype.has:null;!su&&!Kg&&(su=function(t){return !1});Yg.exports=su||function(t){if(!t||typeof t!="object")return !1;try{if(Kg.call(t),Vg)try{Vg.call(t);}catch{return !0}return t instanceof Ql}catch{}return !1};});var rc=Be((L7,Qg)=>{N();x();P();C();L();var KR=typeof Map=="function"&&Map.prototype?Map:null,tc=typeof Set=="function"&&Set.prototype?Set:null,uu;tc||(uu=function(t){return !1});var Xg=KR?Map.prototype.has:null,Jg=tc?Set.prototype.has:null;!uu&&!Jg&&(uu=function(t){return !1});Qg.exports=uu||function(t){if(!t||typeof t!="object")return !1;try{if(Jg.call(t),Xg)try{Xg.call(t);}catch{return !0}return t instanceof tc}catch{}return !1};});var cv=Be((U7,cu)=>{N();x();P();C();L();var ev=Bl(),tv=zg();Ys()()||Oa()()?(fu=Symbol.iterator,cu.exports=function(t){if(t!=null&&typeof t[fu]<"u")return t[fu]();if(ev(t))return Array.prototype[fu].call(t)}):(rv=Xl(),nv=Jl(),nc=Xr(),iv=nc("%Map%",!0),ov=nc("%Set%",!0),Mr=_r(),ic=Mr("Array.prototype.push"),oc=Mr("String.prototype.charCodeAt"),av=Mr("String.prototype.slice"),sv=function(t,r){var n=t.length;if(r+1>=n)return r+1;var o=oc(t,r);if(o<55296||o>56319)return r+1;var a=oc(t,r+1);return a<56320||a>57343?r+1:r+2},lu=function(t){var r=0;return {next:function(){var o=r>=t.length,a;return o||(a=t[r],r+=1),{done:o,value:a}}}},ac=function(t,r){if(rv(t)||ev(t))return lu(t);if(nv(t)){var n=0;return {next:function(){var a=sv(t,n),i=av(t,n,a);return n=a,{done:a>t.length,value:i}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()},!iv&&!ov?cu.exports=function(t){if(t!=null)return ac(t,!0)}:(uv=ec(),fv=rc(),sc=Mr("Map.prototype.forEach",!0),uc=Mr("Set.prototype.forEach",!0),(typeof te>"u"||!te.versions||!te.versions.node)&&(fc=Mr("Map.prototype.iterator",!0),lc=Mr("Set.prototype.iterator",!0)),cc=Mr("Map.prototype.@@iterator",!0)||Mr("Map.prototype._es6-shim iterator_",!0),hc=Mr("Set.prototype.@@iterator",!0)||Mr("Set.prototype._es6-shim iterator_",!0),lv=function(t){if(uv(t)){if(fc)return tv(fc(t));if(cc)return cc(t);if(sc){var r=[];return sc(t,function(o,a){ic(r,[a,o]);}),lu(r)}}if(fv(t)){if(lc)return tv(lc(t));if(hc)return hc(t);if(uc){var n=[];return uc(t,function(o){ic(n,o);}),lu(n)}}},cu.exports=function(t){return lv(t)||ac(t)}));var fu,rv,nv,nc,iv,ov,Mr,ic,oc,av,sv,lu,ac,uv,fv,sc,uc,fc,lc,cc,hc,lv;});var pc=Be((G7,pv)=>{N();x();P();C();L();var hv=function(e){return e!==e};pv.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||hv(t)&&hv(r))};});var dc=Be((Y7,dv)=>{N();x();P();C();L();var YR=pc();dv.exports=function(){return typeof Object.is=="function"?Object.is:YR};});var mv=Be((rH,yv)=>{N();x();P();C();L();var XR=dc(),JR=si();yv.exports=function(){var t=XR();return JR(Object,{is:t},{is:function(){return Object.is!==t}}),t};});var Ev=Be((uH,wv)=>{N();x();P();C();L();var QR=si(),eT=bo(),tT=pc(),gv=dc(),rT=mv(),vv=eT(gv(),Object);QR(vv,{getPolyfill:gv,implementation:tT,shim:rT});wv.exports=vv;});var Av=Be((dH,bv)=>{N();x();P();C();L();var Sv=Function.prototype.toString,Ro=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,mc,hu;if(typeof Ro=="function"&&typeof Object.defineProperty=="function")try{mc=Object.defineProperty({},"length",{get:function(){throw hu}}),hu={},Ro(function(){throw 42},null,mc);}catch(e){e!==hu&&(Ro=null);}else Ro=null;var nT=/^\s*class\b/,gc=function(t){try{var r=Sv.call(t);return nT.test(r)}catch{return !1}},yc=function(t){try{return gc(t)?!1:(Sv.call(t),!0)}catch{return !1}},pu=Object.prototype.toString,iT="[object Object]",oT="[object Function]",aT="[object GeneratorFunction]",sT="[object HTMLAllCollection]",uT="[object HTML document.all class]",fT="[object HTMLCollection]",lT=typeof Symbol=="function"&&!!Symbol.toStringTag,cT=!(0 in[,]),vc=function(){return !1};typeof document=="object"&&(_v=document.all,pu.call(_v)===pu.call(document.all)&&(vc=function(t){if((cT||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=pu.call(t);return (r===sT||r===uT||r===fT||r===iT)&&t("")==null}catch{}return !1}));var _v;bv.exports=Ro?function(t){if(vc(t))return !0;if(!t||typeof t!="function"&&typeof t!="object")return !1;try{Ro(t,null,mc);}catch(r){if(r!==hu)return !1}return !gc(t)&&yc(t)}:function(t){if(vc(t))return !0;if(!t||typeof t!="function"&&typeof t!="object")return !1;if(lT)return yc(t);if(gc(t))return !1;var r=pu.call(t);return r!==oT&&r!==aT&&!/^\[object HTML/.test(r)?!1:yc(t)};});var wc=Be((EH,Rv)=>{N();x();P();C();L();var hT=Av(),pT=Object.prototype.toString,Ov=Object.prototype.hasOwnProperty,dT=function(t,r,n){for(var o=0,a=t.length;o<a;o++)Ov.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t));},yT=function(t,r,n){for(var o=0,a=t.length;o<a;o++)n==null?r(t.charAt(o),o,t):r.call(n,t.charAt(o),o,t);},mT=function(t,r,n){for(var o in t)Ov.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t));},gT=function(t,r,n){if(!hT(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),pT.call(t)==="[object Array]"?dT(t,r,o):typeof t=="string"?yT(t,r,o):mT(t,r,o);};Rv.exports=gT;});var _c=Be((RH,Tv)=>{N();x();P();C();L();var Ec=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],vT=typeof globalThis>"u"?oe:globalThis;Tv.exports=function(){for(var t=[],r=0;r<Ec.length;r++)typeof vT[Ec[r]]=="function"&&(t[t.length]=Ec[r]);return t};});var Sc=Be((LH,Iv)=>{N();x();P();C();L();var wT=Xr(),du=wT("%Object.getOwnPropertyDescriptor%",!0);if(du)try{du([],"length");}catch{du=null;}Iv.exports=du;});var Oc=Be((UH,Cv)=>{N();x();P();C();L();var Nv=wc(),ET=_c(),Ac=_r(),_T=Ac("Object.prototype.toString"),xv=Un()(),yu=Sc(),ST=typeof globalThis>"u"?oe:globalThis,Pv=ET(),bT=Ac("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return -1},AT=Ac("String.prototype.slice"),Lv={},bc=Object.getPrototypeOf;xv&&yu&&bc&&Nv(Pv,function(e){var t=new ST[e];if(Symbol.toStringTag in t){var r=bc(t),n=yu(r,Symbol.toStringTag);if(!n){var o=bc(r);n=yu(o,Symbol.toStringTag);}Lv[e]=n.get;}});var OT=function(t){var r=!1;return Nv(Lv,function(n,o){if(!r)try{r=n.call(t)===o;}catch{}}),r};Cv.exports=function(t){if(!t||typeof t!="object")return !1;if(!xv||!(Symbol.toStringTag in t)){var r=AT(_T(t),8,-1);return bT(Pv,r)>-1}return yu?OT(t):!1};});var Rc=Be((GH,Mv)=>{N();x();P();C();L();var RT=bo(),TT=_r(),Uv=Xr(),IT=Oc(),Bv=Uv("ArrayBuffer",!0),kv=Uv("Float32Array",!0),mu=TT("ArrayBuffer.prototype.byteLength",!0),Dv=Bv&&!mu&&new Bv().slice,Fv=Dv&&RT(Dv);Mv.exports=mu||Fv?function(t){if(!t||typeof t!="object")return !1;try{return mu?mu(t):Fv(t,0),!0}catch{return !1}}:kv?function(t){try{return new kv(t).buffer===t&&!IT(t)}catch(r){return typeof t=="object"&&r.name==="RangeError"}}:function(t){return !1};});var $v=Be((YH,jv)=>{N();x();P();C();L();var NT=Date.prototype.getDay,xT=function(t){try{return NT.call(t),!0}catch{return !1}},PT=Object.prototype.toString,LT="[object Date]",CT=Un()();jv.exports=function(t){return typeof t!="object"||t===null?!1:CT?xT(t):PT.call(t)===LT};});var Wv=Be((rG,zv)=>{N();x();P();C();L();var Tc=_r(),qv=Un()(),Hv,Gv,Ic,Nc;qv&&(Hv=Tc("Object.prototype.hasOwnProperty"),Gv=Tc("RegExp.prototype.exec"),Ic={},gu=function(){throw Ic},Nc={toString:gu,valueOf:gu},typeof Symbol.toPrimitive=="symbol"&&(Nc[Symbol.toPrimitive]=gu));var gu,BT=Tc("Object.prototype.toString"),kT=Object.getOwnPropertyDescriptor,DT="[object RegExp]";zv.exports=qv?function(t){if(!t||typeof t!="object")return !1;var r=kT(t,"lastIndex"),n=r&&Hv(r,"value");if(!n)return !1;try{Gv(t,Nc);}catch(o){return o===Ic}}:function(t){return !t||typeof t!="object"&&typeof t!="function"?!1:BT(t)===DT};});var Kv=Be((uG,Vv)=>{N();x();P();C();L();var FT=_r(),Zv=FT("SharedArrayBuffer.prototype.byteLength",!0);Vv.exports=Zv?function(t){if(!t||typeof t!="object")return !1;try{return Zv(t),!0}catch{return !1}}:function(t){return !1};});var Xv=Be((dG,Yv)=>{N();x();P();C();L();var UT=Number.prototype.toString,MT=function(t){try{return UT.call(t),!0}catch{return !1}},jT=Object.prototype.toString,$T="[object Number]",qT=Un()();Yv.exports=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:qT?MT(t):jT.call(t)===$T};});var e0=Be((EG,Qv)=>{N();x();P();C();L();var Jv=_r(),HT=Jv("Boolean.prototype.toString"),GT=Jv("Object.prototype.toString"),zT=function(t){try{return HT(t),!0}catch{return !1}},WT="[object Boolean]",ZT=Un()();Qv.exports=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:ZT&&Symbol.toStringTag in t?zT(t):GT(t)===WT};});var i0=Be((RG,xc)=>{N();x();P();C();L();var VT=Object.prototype.toString,KT=Ys()();KT?(t0=Symbol.prototype.toString,r0=/^Symbol\(.*\)$/,n0=function(t){return typeof t.valueOf()!="symbol"?!1:r0.test(t0.call(t))},xc.exports=function(t){if(typeof t=="symbol")return !0;if(VT.call(t)!=="[object Symbol]")return !1;try{return n0(t)}catch{return !1}}):xc.exports=function(t){return !1};var t0,r0,n0;});var s0=Be((LG,a0)=>{N();x();P();C();L();var o0=typeof BigInt<"u"&&BigInt;a0.exports=function(){return typeof o0=="function"&&typeof BigInt=="function"&&typeof o0(42)=="bigint"&&typeof BigInt(42)=="bigint"};});var l0=Be((UG,Pc)=>{N();x();P();C();L();var YT=s0()();YT?(u0=BigInt.prototype.valueOf,f0=function(t){try{return u0.call(t),!0}catch{}return !1},Pc.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:f0(t)}):Pc.exports=function(t){return !1};var u0,f0;});var h0=Be((GG,c0)=>{N();x();P();C();L();var XT=Jl(),JT=Xv(),QT=e0(),eI=i0(),tI=l0();c0.exports=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(XT(t))return "String";if(JT(t))return "Number";if(QT(t))return "Boolean";if(eI(t))return "Symbol";if(tI(t))return "BigInt"};});var y0=Be((YG,d0)=>{N();x();P();C();L();var vu=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,p0=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,wu;vu||(wu=function(t){return !1});var Cc=vu?vu.prototype.has:null,Lc=p0?p0.prototype.has:null;!wu&&!Cc&&(wu=function(t){return !1});d0.exports=wu||function(t){if(!t||typeof t!="object")return !1;try{if(Cc.call(t,Cc),Lc)try{Lc.call(t,Lc);}catch{return !0}return t instanceof vu}catch{}return !1};});var g0=Be((r9,kc)=>{N();x();P();C();L();var rI=Xr(),m0=_r(),nI=rI("%WeakSet%",!0),Bc=m0("WeakSet.prototype.has",!0);Bc?(Eu=m0("WeakMap.prototype.has",!0),kc.exports=function(t){if(!t||typeof t!="object")return !1;try{if(Bc(t,Bc),Eu)try{Eu(t,Eu);}catch{return !0}return t instanceof nI}catch{}return !1}):kc.exports=function(t){return !1};var Eu;});var w0=Be((u9,v0)=>{N();x();P();C();L();var iI=ec(),oI=rc(),aI=y0(),sI=g0();v0.exports=function(t){if(t&&typeof t=="object"){if(iI(t))return "Map";if(oI(t))return "Set";if(aI(t))return "WeakMap";if(sI(t))return "WeakSet"}return !1};});var R0=Be((d9,O0)=>{N();x();P();C();L();var _0=wc(),uI=_c(),S0=_r(),Dc=Sc(),fI=S0("Object.prototype.toString"),b0=Un()(),E0=typeof globalThis>"u"?oe:globalThis,lI=uI(),cI=S0("String.prototype.slice"),A0={},Fc=Object.getPrototypeOf;b0&&Dc&&Fc&&_0(lI,function(e){if(typeof E0[e]=="function"){var t=new E0[e];if(Symbol.toStringTag in t){var r=Fc(t),n=Dc(r,Symbol.toStringTag);if(!n){var o=Fc(r);n=Dc(o,Symbol.toStringTag);}A0[e]=n.get;}}});var hI=function(t){var r=!1;return _0(A0,function(n,o){if(!r)try{var a=n.call(t);a===o&&(r=a);}catch{}}),r},pI=Oc();O0.exports=function(t){return pI(t)?!b0||!(Symbol.toStringTag in t)?cI(fI(t),8,-1):hI(t):!1};});var N0=Be((E9,I0)=>{N();x();P();C();L();var dI=_r(),T0=dI("ArrayBuffer.prototype.byteLength",!0),yI=Rc();I0.exports=function(t){return yI(t)?T0?T0(t):t.byteLength:NaN};});var ew=Be((R9,Q0)=>{N();x();P();C();L();var Y0=og(),dn=_r(),x0=yg(),mI=Xr(),To=cv(),gI=Kl(),P0=Ev(),L0=Bl(),C0=Xl(),B0=Rc(),k0=$v(),D0=Wv(),F0=Kv(),U0=Ks(),M0=h0(),j0=w0(),$0=R0(),q0=N0(),H0=dn("SharedArrayBuffer.prototype.byteLength",!0),G0=dn("Date.prototype.getTime"),Uc=Object.getPrototypeOf,z0=dn("Object.prototype.toString"),Su=mI("%Set%",!0),Mc=dn("Map.prototype.has",!0),bu=dn("Map.prototype.get",!0),W0=dn("Map.prototype.size",!0),Au=dn("Set.prototype.add",!0),X0=dn("Set.prototype.delete",!0),Ou=dn("Set.prototype.has",!0),_u=dn("Set.prototype.size",!0);function Z0(e,t,r,n){for(var o=To(e),a;(a=o.next())&&!a.done;)if(Jr(t,a.value,r,n))return X0(e,a.value),!0;return !1}function J0(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function vI(e,t,r,n,o,a){var i=J0(r);if(i!=null)return i;var f=bu(t,i),l=Y0({},o,{strict:!1});return typeof f>"u"&&!Mc(t,i)||!Jr(n,f,l,a)?!1:!Mc(e,i)&&Jr(n,f,l,a)}function wI(e,t,r){var n=J0(r);return n??(Ou(t,n)&&!Ou(e,n))}function V0(e,t,r,n,o,a){for(var i=To(e),f,l;(f=i.next())&&!f.done;)if(l=f.value,Jr(r,l,o,a)&&Jr(n,bu(t,l),o,a))return X0(e,l),!0;return !1}function Jr(e,t,r,n){var o=r||{};if(o.strict?P0(e,t):e===t)return !0;var a=M0(e),i=M0(t);if(a!==i)return !1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?P0(e,t):e==t;var f=n.has(e),l=n.has(t),c;if(f&&l){if(n.get(e)===n.get(t))return !0}else c={};return f||n.set(e,c),l||n.set(t,c),SI(e,t,o,n)}function K0(e){return !e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function EI(e,t,r,n){if(_u(e)!==_u(t))return !1;for(var o=To(e),a=To(t),i,f,l;(i=o.next())&&!i.done;)if(i.value&&typeof i.value=="object")l||(l=new Su),Au(l,i.value);else if(!Ou(t,i.value)){if(r.strict||!wI(e,t,i.value))return !1;l||(l=new Su),Au(l,i.value);}if(l){for(;(f=a.next())&&!f.done;)if(f.value&&typeof f.value=="object"){if(!Z0(l,f.value,r.strict,n))return !1}else if(!r.strict&&!Ou(e,f.value)&&!Z0(l,f.value,r.strict,n))return !1;return _u(l)===0}return !0}function _I(e,t,r,n){if(W0(e)!==W0(t))return !1;for(var o=To(e),a=To(t),i,f,l,c,p,y;(i=o.next())&&!i.done;)if(c=i.value[0],p=i.value[1],c&&typeof c=="object")l||(l=new Su),Au(l,c);else if(y=bu(t,c),typeof y>"u"&&!Mc(t,c)||!Jr(p,y,r,n)){if(r.strict||!vI(e,t,c,p,r,n))return !1;l||(l=new Su),Au(l,c);}if(l){for(;(f=a.next())&&!f.done;)if(c=f.value[0],y=f.value[1],c&&typeof c=="object"){if(!V0(l,e,c,y,r,n))return !1}else if(!r.strict&&(!e.has(c)||!Jr(bu(e,c),y,r,n))&&!V0(l,e,c,y,Y0({},r,{strict:!1}),n))return !1;return _u(l)===0}return !0}function SI(e,t,r,n){var o,a;if(typeof e!=typeof t||e==null||t==null||z0(e)!==z0(t)||L0(e)!==L0(t))return !1;var i=C0(e),f=C0(t);if(i!==f)return !1;var l=e instanceof Error,c=t instanceof Error;if(l!==c||(l||c)&&(e.name!==t.name||e.message!==t.message))return !1;var p=D0(e),y=D0(t);if(p!==y||(p||y)&&(e.source!==t.source||x0(e)!==x0(t)))return !1;var m=k0(e),g=k0(t);if(m!==g||(m||g)&&G0(e)!==G0(t)||r.strict&&Uc&&Uc(e)!==Uc(t))return !1;var h=$0(e),E=$0(t);if((h||E)&&h!==E)return !1;var S=K0(e),O=K0(t);if(S!==O)return !1;if(S||O){if(e.length!==t.length)return !1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return !1;return !0}var k=B0(e),$=B0(t);if(k!==$)return !1;if(k||$)return q0(e)!==q0(t)?!1:typeof Uint8Array=="function"&&Jr(new Uint8Array(e),new Uint8Array(t),r,n);var q=F0(e),K=F0(t);if(q!==K)return !1;if(q||K)return H0(e)!==H0(t)?!1:typeof Uint8Array=="function"&&Jr(new Uint8Array(e),new Uint8Array(t),r,n);if(typeof e!=typeof t)return !1;var j=U0(e),D=U0(t);if(j.length!==D.length)return !1;for(j.sort(),D.sort(),o=j.length-1;o>=0;o--)if(j[o]!=D[o])return !1;for(o=j.length-1;o>=0;o--)if(a=j[o],!Jr(e[a],t[a],r,n))return !1;var B=j0(e),H=j0(t);return B!==H?!1:B==="Set"||H==="Set"?EI(e,t,r,n):B==="Map"?_I(e,t,r,n):!0}Q0.exports=function(t,r,n){return Jr(t,r,n,gI())};});var iw=Be((L9,nw)=>{N();x();P();C();L();var bI=function(t){return AI(t)&&!OI(t)};function AI(e){return !!e&&typeof e=="object"}function OI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||II(e)}var RI=typeof Symbol=="function"&&Symbol.for,TI=RI?Symbol.for("react.element"):60103;function II(e){return e.$$typeof===TI}function NI(e){return Array.isArray(e)?[]:{}}function Ba(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Io(NI(e),e,t):e}function xI(e,t,r){return e.concat(t).map(function(n){return Ba(n,r)})}function PI(e,t){if(!t.customMerge)return Io;var r=t.customMerge(e);return typeof r=="function"?r:Io}function LI(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function tw(e){return Object.keys(e).concat(LI(e))}function rw(e,t){try{return t in e}catch{return !1}}function CI(e,t){return rw(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function BI(e,t,r){var n={};return r.isMergeableObject(e)&&tw(e).forEach(function(o){n[o]=Ba(e[o],r);}),tw(t).forEach(function(o){CI(e,o)||(rw(e,o)&&r.isMergeableObject(t[o])?n[o]=PI(o,r)(e[o],t[o],r):n[o]=Ba(t[o],r));}),n}function Io(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||xI,r.isMergeableObject=r.isMergeableObject||bI,r.cloneUnlessOtherwiseSpecified=Ba;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):BI(e,t,r):Ba(t,r)}Io.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Io(n,o,r)},{})};var kI=Io;nw.exports=kI;});var Mw=Be((CX,Uw)=>{N();x();P();C();L();Uw.exports=typeof self=="object"?self.FormData:window.FormData;});var Lt;var dr={};Bn(dr,{_makeLong:()=>XN,basename:()=>JN,default:()=>Lt,delimiter:()=>QN,dirname:()=>ex,extname:()=>tx,format:()=>rx,isAbsolute:()=>nx,join:()=>ix,normalize:()=>ox,parse:()=>ax,posix:()=>sx,relative:()=>ux,resolve:()=>fx,sep:()=>Mo,win32:()=>lx});var XN,JN,QN,ex,tx,rx,nx,ix,ox,ax,sx,ux,fx,Mo,lx;var Ya={};Bn(Ya,{EOL:()=>yx,arch:()=>mx,constants:()=>dx,cpus:()=>gx,default:()=>ft,endianness:()=>vx,freemem:()=>wx,getNetworkInterfaces:()=>Ex,homedir:()=>_x,hostname:()=>Sx,loadavg:()=>bx,networkInterfaces:()=>Ax,platform:()=>Ox,release:()=>Rx,tmpDir:()=>Tx,tmpdir:()=>Ix,totalmem:()=>Nx,type:()=>xx,uptime:()=>yo,version:()=>px});var ft,px,dx,yx,mx,gx,vx,wx,Ex,_x,Sx,bx,Ax,Ox,Rx,Tx,Ix,Nx,xx;var xe;var u1={};Bn(u1,{AssertionError:()=>LL,deepEqual:()=>CL,deepStrictEqual:()=>BL,default:()=>et,doesNotReject:()=>kL,doesNotThrow:()=>DL,equal:()=>FL,fail:()=>UL,ifError:()=>ML,notDeepEqual:()=>jL,notDeepStrictEqual:()=>$L,notEqual:()=>qL,notStrictEqual:()=>HL,ok:()=>GL,rejects:()=>zL,strict:()=>WL,strictEqual:()=>ZL,throws:()=>VL});var et,LL,CL,BL,kL,DL,FL,UL,ML,jL,$L,qL,HL,GL,zL,WL,ZL,VL;var cp={};Bn(cp,{TextDecoder:()=>lp,TextEncoder:()=>wC,_extend:()=>KL,callbackify:()=>YL,debuglog:()=>XL,default:()=>xe,deprecate:()=>JL,format:()=>QL,inherits:()=>eC,inspect:()=>tC,isArray:()=>rC,isBoolean:()=>nC,isBuffer:()=>iC,isDate:()=>oC,isError:()=>aC,isFunction:()=>sC,isNull:()=>uC,isNullOrUndefined:()=>fC,isNumber:()=>lC,isObject:()=>cC,isPrimitive:()=>hC,isRegExp:()=>pC,isString:()=>dC,isSymbol:()=>yC,isUndefined:()=>mC,log:()=>gC,promisify:()=>Af,types:()=>vC});var KL,YL,XL,JL,QL,eC,tC,rC,nC,iC,oC,aC,sC,uC,fC,lC,cC,hC,pC,dC,yC,mC,gC,Af,vC,wC,lp;var ir;var l1={};Bn(l1,{Duplex:()=>_C,PassThrough:()=>bC,Readable:()=>dp,Stream:()=>RC,Transform:()=>SC,Writable:()=>yp,default:()=>ir,finished:()=>AC,pipeline:()=>OC,promises:()=>TC});var dp,yp,_C,SC,bC,AC,OC,RC,TC;var Lp={};Bn(Lp,{Dir:()=>ik,Dirent:()=>ok,F_OK:()=>hk,FileReadStream:()=>fk,FileWriteStream:()=>lk,R_OK:()=>pk,ReadStream:()=>sk,Stats:()=>ak,W_OK:()=>dk,WriteStream:()=>uk,X_OK:()=>yk,_toUnixTimestamp:()=>ck,access:()=>Ip,accessSync:()=>BB,appendFile:()=>LB,appendFileSync:()=>CB,chmod:()=>FB,chmodSync:()=>UB,chown:()=>kB,chownSync:()=>DB,close:()=>MB,closeSync:()=>jB,constants:()=>Pp,copyFile:()=>$B,copyFileSync:()=>qB,cp:()=>HB,cpSync:()=>GB,createReadStream:()=>Np,createWriteStream:()=>xp,default:()=>It,exists:()=>zB,existsSync:()=>W1,fchmod:()=>VB,fchmodSync:()=>KB,fchown:()=>WB,fchownSync:()=>ZB,fdatasync:()=>YB,fdatasyncSync:()=>XB,fstat:()=>JB,fstatSync:()=>QB,fsync:()=>e6,fsyncSync:()=>t6,ftruncate:()=>r6,ftruncateSync:()=>n6,futimes:()=>i6,futimesSync:()=>o6,lchmod:()=>u6,lchmodSync:()=>f6,lchown:()=>a6,lchownSync:()=>s6,link:()=>l6,linkSync:()=>c6,lstat:()=>h6,lstatSync:()=>p6,mkdir:()=>d6,mkdirSync:()=>y6,mkdtemp:()=>m6,mkdtempSync:()=>g6,open:()=>v6,openSync:()=>w6,opendir:()=>E6,opendirSync:()=>_6,promises:()=>xf,read:()=>A6,readFile:()=>I6,readFileSync:()=>N6,readSync:()=>O6,readdir:()=>S6,readdirSync:()=>b6,readlink:()=>x6,readlinkSync:()=>P6,readv:()=>R6,readvSync:()=>T6,realpath:()=>L6,realpathSync:()=>C6,rename:()=>B6,renameSync:()=>k6,rm:()=>D6,rmSync:()=>F6,rmdir:()=>U6,rmdirSync:()=>M6,stat:()=>j6,statSync:()=>$6,symlink:()=>q6,symlinkSync:()=>H6,truncate:()=>G6,truncateSync:()=>z6,unlink:()=>Z6,unlinkSync:()=>V6,unwatchFile:()=>W6,utimes:()=>K6,utimesSync:()=>Y6,watch:()=>X6,watchFile:()=>J6,write:()=>ek,writeFile:()=>Q6,writeFileSync:()=>Z1,writeSync:()=>tk,writev:()=>rk,writevSync:()=>nk});var It,LB,CB,Ip,BB,kB,DB,FB,UB,MB,jB,$B,qB,HB,GB,Np,xp,zB,W1,WB,ZB,VB,KB,YB,XB,JB,QB,e6,t6,r6,n6,i6,o6,a6,s6,u6,f6,l6,c6,h6,p6,d6,y6,m6,g6,v6,w6,E6,_6,S6,b6,A6,O6,R6,T6,I6,N6,x6,P6,L6,C6,B6,k6,D6,F6,U6,M6,j6,$6,q6,H6,G6,z6,W6,Z6,V6,K6,Y6,X6,J6,Q6,Z1,ek,tk,rk,nk,ik,ok,ak,sk,uk,fk,lk,ck,hk,pk,dk,yk,Pp,xf;var V1={};Bn(V1,{DH_CHECK_P_NOT_PRIME:()=>mk,DH_CHECK_P_NOT_SAFE_PRIME:()=>gk,DH_NOT_SUITABLE_GENERATOR:()=>vk,DH_UNABLE_TO_CHECK_GENERATOR:()=>wk,E2BIG:()=>Ek,EACCES:()=>_k,EADDRINUSE:()=>Sk,EADDRNOTAVAIL:()=>bk,EAFNOSUPPORT:()=>Ak,EAGAIN:()=>Ok,EALREADY:()=>Rk,EBADF:()=>Tk,EBADMSG:()=>Ik,EBUSY:()=>Nk,ECANCELED:()=>xk,ECHILD:()=>Pk,ECONNABORTED:()=>Lk,ECONNREFUSED:()=>Ck,ECONNRESET:()=>Bk,EDEADLK:()=>kk,EDESTADDRREQ:()=>Dk,EDOM:()=>Fk,EDQUOT:()=>Uk,EEXIST:()=>Mk,EFAULT:()=>jk,EFBIG:()=>$k,EHOSTUNREACH:()=>qk,EIDRM:()=>Hk,EILSEQ:()=>Gk,EINPROGRESS:()=>zk,EINTR:()=>Wk,EINVAL:()=>Zk,EIO:()=>Vk,EISCONN:()=>Kk,EISDIR:()=>Yk,ELOOP:()=>Xk,EMFILE:()=>Jk,EMLINK:()=>Qk,EMSGSIZE:()=>eD,EMULTIHOP:()=>tD,ENAMETOOLONG:()=>rD,ENETDOWN:()=>nD,ENETRESET:()=>iD,ENETUNREACH:()=>oD,ENFILE:()=>aD,ENGINE_METHOD_ALL:()=>sD,ENGINE_METHOD_CIPHERS:()=>uD,ENGINE_METHOD_DH:()=>fD,ENGINE_METHOD_DIGESTS:()=>lD,ENGINE_METHOD_DSA:()=>cD,ENGINE_METHOD_ECDH:()=>hD,ENGINE_METHOD_ECDSA:()=>pD,ENGINE_METHOD_NONE:()=>dD,ENGINE_METHOD_PKEY_ASN1_METHS:()=>yD,ENGINE_METHOD_PKEY_METHS:()=>mD,ENGINE_METHOD_RAND:()=>gD,ENGINE_METHOD_STORE:()=>vD,ENOBUFS:()=>wD,ENODATA:()=>ED,ENODEV:()=>_D,ENOENT:()=>SD,ENOEXEC:()=>bD,ENOLCK:()=>AD,ENOLINK:()=>OD,ENOMEM:()=>RD,ENOMSG:()=>TD,ENOPROTOOPT:()=>ID,ENOSPC:()=>ND,ENOSR:()=>xD,ENOSTR:()=>PD,ENOSYS:()=>LD,ENOTCONN:()=>CD,ENOTDIR:()=>BD,ENOTEMPTY:()=>kD,ENOTSOCK:()=>DD,ENOTSUP:()=>FD,ENOTTY:()=>UD,ENXIO:()=>MD,EOPNOTSUPP:()=>jD,EOVERFLOW:()=>$D,EPERM:()=>qD,EPIPE:()=>HD,EPROTO:()=>GD,EPROTONOSUPPORT:()=>zD,EPROTOTYPE:()=>WD,ERANGE:()=>ZD,EROFS:()=>VD,ESPIPE:()=>KD,ESRCH:()=>YD,ESTALE:()=>XD,ETIME:()=>JD,ETIMEDOUT:()=>QD,ETXTBSY:()=>eF,EWOULDBLOCK:()=>tF,EXDEV:()=>rF,F_OK:()=>nF,NPN_ENABLED:()=>iF,O_APPEND:()=>oF,O_CREAT:()=>aF,O_DIRECTORY:()=>sF,O_EXCL:()=>uF,O_NOCTTY:()=>fF,O_NOFOLLOW:()=>lF,O_NONBLOCK:()=>cF,O_RDONLY:()=>hF,O_RDWR:()=>pF,O_SYMLINK:()=>dF,O_SYNC:()=>yF,O_TRUNC:()=>mF,O_WRONLY:()=>gF,POINT_CONVERSION_COMPRESSED:()=>vF,POINT_CONVERSION_HYBRID:()=>wF,POINT_CONVERSION_UNCOMPRESSED:()=>EF,RSA_NO_PADDING:()=>_F,RSA_PKCS1_OAEP_PADDING:()=>SF,RSA_PKCS1_PADDING:()=>bF,RSA_PKCS1_PSS_PADDING:()=>AF,RSA_SSLV23_PADDING:()=>OF,RSA_X931_PADDING:()=>RF,R_OK:()=>TF,SIGABRT:()=>IF,SIGALRM:()=>NF,SIGBUS:()=>xF,SIGCHLD:()=>PF,SIGCONT:()=>LF,SIGFPE:()=>CF,SIGHUP:()=>BF,SIGILL:()=>kF,SIGINT:()=>DF,SIGIO:()=>FF,SIGIOT:()=>UF,SIGKILL:()=>MF,SIGPIPE:()=>jF,SIGPROF:()=>$F,SIGQUIT:()=>qF,SIGSEGV:()=>HF,SIGSTOP:()=>GF,SIGSYS:()=>zF,SIGTERM:()=>WF,SIGTRAP:()=>ZF,SIGTSTP:()=>VF,SIGTTIN:()=>KF,SIGTTOU:()=>YF,SIGURG:()=>XF,SIGUSR1:()=>JF,SIGUSR2:()=>QF,SIGVTALRM:()=>e8,SIGWINCH:()=>t8,SIGXCPU:()=>r8,SIGXFSZ:()=>n8,SSL_OP_ALL:()=>i8,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:()=>o8,SSL_OP_CIPHER_SERVER_PREFERENCE:()=>a8,SSL_OP_CISCO_ANYCONNECT:()=>s8,SSL_OP_COOKIE_EXCHANGE:()=>u8,SSL_OP_CRYPTOPRO_TLSEXT_BUG:()=>f8,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:()=>l8,SSL_OP_EPHEMERAL_RSA:()=>c8,SSL_OP_LEGACY_SERVER_CONNECT:()=>h8,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:()=>p8,SSL_OP_MICROSOFT_SESS_ID_BUG:()=>d8,SSL_OP_MSIE_SSLV2_RSA_PADDING:()=>y8,SSL_OP_NETSCAPE_CA_DN_BUG:()=>m8,SSL_OP_NETSCAPE_CHALLENGE_BUG:()=>g8,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:()=>v8,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:()=>w8,SSL_OP_NO_COMPRESSION:()=>E8,SSL_OP_NO_QUERY_MTU:()=>_8,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:()=>S8,SSL_OP_NO_SSLv2:()=>b8,SSL_OP_NO_SSLv3:()=>A8,SSL_OP_NO_TICKET:()=>O8,SSL_OP_NO_TLSv1:()=>R8,SSL_OP_NO_TLSv1_1:()=>T8,SSL_OP_NO_TLSv1_2:()=>I8,SSL_OP_PKCS1_CHECK_1:()=>N8,SSL_OP_PKCS1_CHECK_2:()=>x8,SSL_OP_SINGLE_DH_USE:()=>P8,SSL_OP_SINGLE_ECDH_USE:()=>L8,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:()=>C8,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:()=>B8,SSL_OP_TLS_BLOCK_PADDING_BUG:()=>k8,SSL_OP_TLS_D5_BUG:()=>D8,SSL_OP_TLS_ROLLBACK_BUG:()=>F8,S_IFBLK:()=>U8,S_IFCHR:()=>M8,S_IFDIR:()=>j8,S_IFIFO:()=>$8,S_IFLNK:()=>q8,S_IFMT:()=>H8,S_IFREG:()=>G8,S_IFSOCK:()=>z8,S_IRGRP:()=>W8,S_IROTH:()=>Z8,S_IRUSR:()=>V8,S_IRWXG:()=>K8,S_IRWXO:()=>Y8,S_IRWXU:()=>X8,S_IWGRP:()=>J8,S_IWOTH:()=>Q8,S_IWUSR:()=>e3,S_IXGRP:()=>t3,S_IXOTH:()=>r3,S_IXUSR:()=>n3,UV_UDP_REUSEADDR:()=>i3,W_OK:()=>o3,X_OK:()=>a3,default:()=>ce});var ce,mk,gk,vk,wk,Ek,_k,Sk,bk,Ak,Ok,Rk,Tk,Ik,Nk,xk,Pk,Lk,Ck,Bk,kk,Dk,Fk,Uk,Mk,jk,$k,qk,Hk,Gk,zk,Wk,Zk,Vk,Kk,Yk,Xk,Jk,Qk,eD,tD,rD,nD,iD,oD,aD,sD,uD,fD,lD,cD,hD,pD,dD,yD,mD,gD,vD,wD,ED,_D,SD,bD,AD,OD,RD,TD,ID,ND,xD,PD,LD,CD,BD,kD,DD,FD,UD,MD,jD,$D,qD,HD,GD,zD,WD,ZD,VD,KD,YD,XD,JD,QD,eF,tF,rF,nF,iF,oF,aF,sF,uF,fF,lF,cF,hF,pF,dF,yF,mF,gF,vF,wF,EF,_F,SF,bF,AF,OF,RF,TF,IF,NF,xF,PF,LF,CF,BF,kF,DF,FF,UF,MF,jF,$F,qF,HF,GF,zF,WF,ZF,VF,KF,YF,XF,JF,QF,e8,t8,r8,n8,i8,o8,a8,s8,u8,f8,l8,c8,h8,p8,d8,y8,m8,g8,v8,w8,E8,_8,S8,b8,A8,O8,R8,T8,I8,N8,x8,P8,L8,C8,B8,k8,D8,F8,U8,M8,j8,$8,q8,H8,G8,z8,W8,Z8,V8,K8,Y8,X8,J8,Q8,e3,t3,r3,n3,i3,o3,a3;var Kb=Be((Ese,Vb)=>{N();x();P();C();L();function p4(e){try{return JSON.stringify(e)}catch{return '"[Circular]"'}}Vb.exports=d4;function d4(e,t,r){var n=r&&r.stringify||p4,o=1;if(typeof e=="object"&&e!==null){var a=t.length+o;if(a===1)return e;var i=new Array(a);i[0]=n(e);for(var f=1;f<a;f++)i[f]=n(t[f]);return i.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var c="",p=1-o,y=-1,m=e&&e.length||0,g=0;g<m;){if(e.charCodeAt(g)===37&&g+1<m){switch(y=y>-1?y:0,e.charCodeAt(g+1)){case 100:case 102:if(p>=l||t[p]==null)break;y<g&&(c+=e.slice(y,g)),c+=Number(t[p]),y=g+2,g++;break;case 105:if(p>=l||t[p]==null)break;y<g&&(c+=e.slice(y,g)),c+=Math.floor(Number(t[p])),y=g+2,g++;break;case 79:case 111:case 106:if(p>=l||t[p]===void 0)break;y<g&&(c+=e.slice(y,g));var h=typeof t[p];if(h==="string"){c+="'"+t[p]+"'",y=g+2,g++;break}if(h==="function"){c+=t[p].name||"<anonymous>",y=g+2,g++;break}c+=n(t[p]),y=g+2,g++;break;case 115:if(p>=l)break;y<g&&(c+=e.slice(y,g)),c+=String(t[p]),y=g+2,g++;break;case 37:y<g&&(c+=e.slice(y,g)),c+="%",y=g+2,g++,p--;break}++p;}++g;}return y===-1?e:(y<m&&(c+=e.slice(y)),c)}});var t2=Be((Rse,e2)=>{N();x();P();C();L();var Yb=Kb();e2.exports=io;var bs=O4().console||{},y4={mapHttpRequest:Hf,mapHttpResponse:Hf,wrapRequestSerializer:Kp,wrapResponseSerializer:Kp,wrapErrorSerializer:Kp,req:Hf,res:Hf,err:Xb,errWithCause:Xb};function m4(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function io(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||bs;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=m4(e.browser.serialize,n),a=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(a=!1);let i=Object.keys(e.customLevels||{}),f=["error","fatal","warn","info","debug","trace"].concat(i);typeof r=="function"&&f.forEach(function(E){r[E]=r;}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let l=e.level||"info",c=Object.create(r);c.log||(c.log=As),Object.defineProperty(c,"levelVal",{get:y}),Object.defineProperty(c,"level",{get:m,set:g});let p={transmit:t,serialize:o,asObject:e.browser.asObject,levels:f,timestamp:S4(e)};c.levels=g4(e),c.level=l,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=As,c.serializers=n,c._serialize=o,c._stdErrSerialize=a,c.child=h,t&&(c._logEvent=Yp());function y(){return this.level==="silent"?1/0:this.levels.values[this.level]}function m(){return this._level}function g(E){if(E!=="silent"&&!this.levels.values[E])throw Error("unknown level "+E);this._level=E,no(p,c,"error","log"),no(p,c,"fatal","error"),no(p,c,"warn","error"),no(p,c,"info","log"),no(p,c,"debug","log"),no(p,c,"trace","log"),i.forEach(function(S){no(p,c,S,"log");});}function h(E,S){if(!E)throw new Error("missing bindings for child Pino");S=S||{},o&&E.serializers&&(S.serializers=E.serializers);let O=S.serializers;if(o&&O){var k=Object.assign({},n,O),$=e.browser.serialize===!0?Object.keys(k):o;delete E.serializers,Gf([E],$,k,this._stdErrSerialize);}function q(K){this._childLevel=(K._childLevel|0)+1,this.error=aa(K,E,"error"),this.fatal=aa(K,E,"fatal"),this.warn=aa(K,E,"warn"),this.info=aa(K,E,"info"),this.debug=aa(K,E,"debug"),this.trace=aa(K,E,"trace"),k&&(this.serializers=k,this._serialize=$),t&&(this._logEvent=Yp([].concat(K._logEvent.bindings,E)));}return q.prototype=this,new q(this)}return c}function g4(e){let t=e.customLevels||{},r=Object.assign({},io.levels.values,t),n=Object.assign({},io.levels.labels,v4(t));return {values:r,labels:n}}function v4(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r;}),t}io.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"}};io.stdSerializers=y4;io.stdTimeFunctions=Object.assign({},{nullTime:Jb,epochTime:Qb,unixTime:b4,isoTime:A4});function no(e,t,r,n){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?As:o[r]?o[r]:bs[r]||bs[n]||As,w4(e,t,r);}function w4(e,t,r){!e.transmit&&t[r]===As||(t[r]=function(n){return function(){let a=e.timestamp(),i=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===bs?bs:this;for(var l=0;l<i.length;l++)i[l]=arguments[l];if(e.serialize&&!e.asObject&&Gf(i,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(f,E4(this,r,i,a)):n.apply(f,i),e.transmit){let c=e.transmit.level||t.level,p=t.levels.values[c],y=t.levels.values[r];if(y<p)return;_4(this,{ts:a,methodLevel:r,methodValue:y,transmitLevel:c,transmitValue:t.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},i);}}}(t[r]));}function E4(e,t,r,n){e._serialize&&Gf(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),a=o[0],i={};n&&(i.time=n),i.level=e.levels.values[t];let f=(e._childLevel|0)+1;if(f<1&&(f=1),a!==null&&typeof a=="object"){for(;f--&&typeof o[0]=="object";)Object.assign(i,o.shift());a=o.length?Yb(o.shift(),o):void 0;}else typeof a=="string"&&(a=Yb(o.shift(),o));return a!==void 0&&(i.msg=a),i}function Gf(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=io.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o]))for(let a in e[o])t&&t.indexOf(a)>-1&&a in r&&(e[o][a]=r[a](e[o][a]));}function aa(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var o=1;o<n.length;o++)n[o]=arguments[o-1];return e[r].apply(this,n)}}function _4(e,t,r){let n=t.send,o=t.ts,a=t.methodLevel,i=t.methodValue,f=t.val,l=e._logEvent.bindings;Gf(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=r.filter(function(c){return l.indexOf(c)===-1}),e._logEvent.level.label=a,e._logEvent.level.value=i,n(a,e._logEvent,f),e._logEvent=Yp(l);}function Yp(e){return {ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function Xb(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function S4(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Jb:Qb}function Hf(){return {}}function Kp(e){return e}function As(){}function Jb(){return !1}function Qb(){return Date.now()}function b4(){return Math.round(Date.now()/1e3)}function A4(){return new Date(Date.now()).toISOString()}function O4(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}});var P2={};Bn(P2,{RotatingFileStream:()=>Zf,RotatingFileStreamError:()=>Rs,createStream:()=>q4});function M4(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in N2))throw new Error(`Unknown option: ${r}`);t[r]=e[r],N2[r](o,t,n);}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function j4(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function $4(e,t,r){let n=o=>(o>9?"":"0")+o;return (o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function q4(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The "options" argument must be of type object. Received type ${typeof t}`);let r=M4(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?j4(e,n!==void 0,o):$4(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The "filename" argument must be one of type string or function. Received type ${typeof e}`);return new Zf(a,r)}var Rs,Zf,N2;var q2=Be((j2,$2)=>{N();x();P();C();L();(function(e){var t;typeof j2=="object"?$2.exports=e():typeof define=="function"&&define.amd?define(e):(typeof window<"u"?t=window:typeof oe<"u"?t=oe:typeof self<"u"&&(t=self),t.objectHash=e());})(function(){return function e(t,r,n){function o(f,l){if(!r[f]){if(!t[f]){var c=typeof _a=="function"&&_a;if(!l&&c)return c(f,!0);if(a)return a(f,!0);throw new Error("Cannot find module '"+f+"'")}l=r[f]={exports:{}},t[f][0].call(l.exports,function(p){var y=t[f][1][p];return o(y||p)},l,l.exports,e,t,r,n);}return r[f].exports}for(var a=typeof _a=="function"&&_a,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){var m=e("crypto");function g(q,K){K=S(q,K);var j;return (j=K.algorithm!=="passthrough"?m.createHash(K.algorithm):new $).write===void 0&&(j.write=j.update,j.end=j.update),k(K,j).dispatch(q),j.update||j.end(""),j.digest?j.digest(K.encoding==="buffer"?void 0:K.encoding):(q=j.read(),K.encoding!=="buffer"?q.toString(K.encoding):q)}(r=t.exports=g).sha1=function(q){return g(q)},r.keys=function(q){return g(q,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(q){return g(q,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(q){return g(q,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=m.getHashes?m.getHashes().slice():["sha1","md5"],E=(h.push("passthrough"),["buffer","hex","binary","base64"]);function S(q,K){var j={};if(j.algorithm=(K=K||{}).algorithm||"sha1",j.encoding=K.encoding||"hex",j.excludeValues=!!K.excludeValues,j.algorithm=j.algorithm.toLowerCase(),j.encoding=j.encoding.toLowerCase(),j.ignoreUnknown=K.ignoreUnknown===!0,j.respectType=K.respectType!==!1,j.respectFunctionNames=K.respectFunctionNames!==!1,j.respectFunctionProperties=K.respectFunctionProperties!==!1,j.unorderedArrays=K.unorderedArrays===!0,j.unorderedSets=K.unorderedSets!==!1,j.unorderedObjects=K.unorderedObjects!==!1,j.replacer=K.replacer||void 0,j.excludeKeys=K.excludeKeys||void 0,q===void 0)throw new Error("Object argument required.");for(var D=0;D<h.length;++D)h[D].toLowerCase()===j.algorithm.toLowerCase()&&(j.algorithm=h[D]);if(h.indexOf(j.algorithm)===-1)throw new Error('Algorithm "'+j.algorithm+'" not supported. supported values: '+h.join(", "));if(E.indexOf(j.encoding)===-1&&j.algorithm!=="passthrough")throw new Error('Encoding "'+j.encoding+'" not supported. supported values: '+E.join(", "));return j}function O(q){if(typeof q=="function")return /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(q))!=null}function k(q,K,j){j=j||[];function D(B){return K.update?K.update(B,"utf8"):K.write(B,"utf8")}return {dispatch:function(B){return this["_"+((B=q.replacer?q.replacer(B):B)===null?"null":typeof B)](B)},_object:function(B){var H,J=Object.prototype.toString.call(B),ge=/\[object (.*)\]/i.exec(J);if(ge=(ge=ge?ge[1]:"unknown:["+J+"]").toLowerCase(),0<=(J=j.indexOf(B)))return this.dispatch("[CIRCULAR:"+J+"]");if(j.push(B),a!==void 0&&a.isBuffer&&a.isBuffer(B))return D("buffer:"),D(B);if(ge==="object"||ge==="function"||ge==="asyncfunction")return J=Object.keys(B),q.unorderedObjects&&(J=J.sort()),q.respectType===!1||O(B)||J.splice(0,0,"prototype","__proto__","constructor"),q.excludeKeys&&(J=J.filter(function(V){return !q.excludeKeys(V)})),D("object:"+J.length+":"),H=this,J.forEach(function(V){H.dispatch(V),D(":"),q.excludeValues||H.dispatch(B[V]),D(",");});if(!this["_"+ge]){if(q.ignoreUnknown)return D("["+ge+"]");throw new Error('Unknown object type "'+ge+'"')}this["_"+ge](B);},_array:function(B,V){V=V!==void 0?V:q.unorderedArrays!==!1;var J=this;if(D("array:"+B.length+":"),!V||B.length<=1)return B.forEach(function(ne){return J.dispatch(ne)});var ge=[],V=B.map(function(ne){var ue=new $,Oe=j.slice();return k(q,ue,Oe).dispatch(ne),ge=ge.concat(Oe.slice(j.length)),ue.read().toString()});return j=j.concat(ge),V.sort(),this._array(V,!1)},_date:function(B){return D("date:"+B.toJSON())},_symbol:function(B){return D("symbol:"+B.toString())},_error:function(B){return D("error:"+B.toString())},_boolean:function(B){return D("bool:"+B.toString())},_string:function(B){D("string:"+B.length+":"),D(B.toString());},_function:function(B){D("fn:"),O(B)?this.dispatch("[native]"):this.dispatch(B.toString()),q.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(B.name)),q.respectFunctionProperties&&this._object(B);},_number:function(B){return D("number:"+B.toString())},_xml:function(B){return D("xml:"+B.toString())},_null:function(){return D("Null")},_undefined:function(){return D("Undefined")},_regexp:function(B){return D("regex:"+B.toString())},_uint8array:function(B){return D("uint8array:"),this.dispatch(Array.prototype.slice.call(B))},_uint8clampedarray:function(B){return D("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(B))},_int8array:function(B){return D("int8array:"),this.dispatch(Array.prototype.slice.call(B))},_uint16array:function(B){return D("uint16array:"),this.dispatch(Array.prototype.slice.call(B))},_int16array:function(B){return D("int16array:"),this.dispatch(Array.prototype.slice.call(B))},_uint32array:function(B){return D("uint32array:"),this.dispatch(Array.prototype.slice.call(B))},_int32array:function(B){return D("int32array:"),this.dispatch(Array.prototype.slice.call(B))},_float32array:function(B){return D("float32array:"),this.dispatch(Array.prototype.slice.call(B))},_float64array:function(B){return D("float64array:"),this.dispatch(Array.prototype.slice.call(B))},_arraybuffer:function(B){return D("arraybuffer:"),this.dispatch(new Uint8Array(B))},_url:function(B){return D("url:"+B.toString())},_map:function(B){return D("map:"),B=Array.from(B),this._array(B,q.unorderedSets!==!1)},_set:function(B){return D("set:"),B=Array.from(B),this._array(B,q.unorderedSets!==!1)},_file:function(B){return D("file:"),this.dispatch([B.name,B.size,B.type,B.lastModfied])},_blob:function(){if(q.ignoreUnknown)return D("[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 D("domwindow")},_bigint:function(B){return D("bigint:"+B.toString())},_process:function(){return D("process")},_timer:function(){return D("timer")},_pipe:function(){return D("pipe")},_tcp:function(){return D("tcp")},_udp:function(){return D("udp")},_tty:function(){return D("tty")},_statwatcher:function(){return D("statwatcher")},_securecontext:function(){return D("securecontext")},_connection:function(){return D("connection")},_zlib:function(){return D("zlib")},_context:function(){return D("context")},_nodescript:function(){return D("nodescript")},_httpparser:function(){return D("httpparser")},_dataview:function(){return D("dataview")},_signal:function(){return D("signal")},_fsevent:function(){return D("fsevent")},_tlswrap:function(){return D("tlswrap")}}}function $(){return {buf:"",write:function(q){this.buf+=q;},end:function(q){this.buf+=q;},read:function(){return this.buf}}}r.writeToStream=function(q,K,j){return j===void 0&&(j=K,K={}),k(K=S(q,K),j).dispatch(q)};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/");},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){(function(m){var g=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),E="/".charCodeAt(0),S="0".charCodeAt(0),O="a".charCodeAt(0),k="A".charCodeAt(0),$="-".charCodeAt(0),q="_".charCodeAt(0);function K(j){return j=j.charCodeAt(0),j===h||j===$?62:j===E||j===q?63:j<S?-1:j<S+10?j-S+26+26:j<k+26?j-k:j<O+26?j-O+26:void 0}m.toByteArray=function(j){var D,B;if(0<j.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var H=j.length,H=j.charAt(H-2)==="="?2:j.charAt(H-1)==="="?1:0,J=new g(3*j.length/4-H),ge=0<H?j.length-4:j.length,V=0;function ne(ue){J[V++]=ue;}for(D=0;D<ge;D+=4,0)ne((16711680&(B=K(j.charAt(D))<<18|K(j.charAt(D+1))<<12|K(j.charAt(D+2))<<6|K(j.charAt(D+3))))>>16),ne((65280&B)>>8),ne(255&B);return H==2?ne(255&(B=K(j.charAt(D))<<2|K(j.charAt(D+1))>>4)):H==1&&(ne((B=K(j.charAt(D))<<10|K(j.charAt(D+1))<<4|K(j.charAt(D+2))>>2)>>8&255),ne(255&B)),J},m.fromByteArray=function(j){var D,B,H,J,ge=j.length%3,V="";function ne(ue){return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ue)}for(D=0,H=j.length-ge;D<H;D+=3)B=(j[D]<<16)+(j[D+1]<<8)+j[D+2],V+=ne((J=B)>>18&63)+ne(J>>12&63)+ne(J>>6&63)+ne(63&J);switch(ge){case 1:V=(V+=ne((B=j[j.length-1])>>2))+ne(B<<4&63)+"==";break;case 2:V=(V=(V+=ne((B=(j[j.length-2]<<8)+j[j.length-1])>>10))+ne(B>>4&63))+ne(B<<2&63)+"=";}return V};})(r===void 0?this.base64js={}:r);}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib");},{buffer:3,lYpoI2:11}],3:[function(e,t,r){(function(n,o,h,i,f,l,c,p,y){var m=e("base64-js"),g=e("ieee754");function h(A,T,Y){if(!(this instanceof h))return new h(A,T,Y);var ye,ve,M,Z,Re=typeof A;if(T==="base64"&&Re=="string")for(A=(Z=A).trim?Z.trim():Z.replace(/^\s+|\s+$/g,"");A.length%4!=0;)A+="=";if(Re=="number")ye=Ie(A);else if(Re=="string")ye=h.byteLength(A,T);else {if(Re!="object")throw new Error("First argument needs to be a number, array or string.");ye=Ie(A.length);}if(h._useTypedArrays?ve=h._augment(new Uint8Array(ye)):((ve=this).length=ye,ve._isBuffer=!0),h._useTypedArrays&&typeof A.byteLength=="number")ve._set(A);else if(re(Z=A)||h.isBuffer(Z)||Z&&typeof Z=="object"&&typeof Z.length=="number")for(M=0;M<ye;M++)h.isBuffer(A)?ve[M]=A.readUInt8(M):ve[M]=A[M];else if(Re=="string")ve.write(A,0,T);else if(Re=="number"&&!h._useTypedArrays&&!Y)for(M=0;M<ye;M++)ve[M]=0;return ve}function E(A,T,Y,ye){return h._charsWritten=Ne(function(ve){for(var M=[],Z=0;Z<ve.length;Z++)M.push(255&ve.charCodeAt(Z));return M}(T),A,Y,ye)}function S(A,T,Y,ye){return h._charsWritten=Ne(function(ve){for(var M,Z,Re=[],De=0;De<ve.length;De++)Z=ve.charCodeAt(De),M=Z>>8,Z=Z%256,Re.push(Z),Re.push(M);return Re}(T),A,Y,ye)}function O(A,T,Y){var ye="";Y=Math.min(A.length,Y);for(var ve=T;ve<Y;ve++)ye+=String.fromCharCode(A[ve]);return ye}function k(A,T,Y,M){M||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T!=null,"missing offset"),Le(T+1<A.length,"Trying to read beyond buffer length"));var ve,M=A.length;if(!(M<=T))return Y?(ve=A[T],T+1<M&&(ve|=A[T+1]<<8)):(ve=A[T]<<8,T+1<M&&(ve|=A[T+1])),ve}function $(A,T,Y,M){M||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T!=null,"missing offset"),Le(T+3<A.length,"Trying to read beyond buffer length"));var ve,M=A.length;if(!(M<=T))return Y?(T+2<M&&(ve=A[T+2]<<16),T+1<M&&(ve|=A[T+1]<<8),ve|=A[T],T+3<M&&(ve+=A[T+3]<<24>>>0)):(T+1<M&&(ve=A[T+1]<<16),T+2<M&&(ve|=A[T+2]<<8),T+3<M&&(ve|=A[T+3]),ve+=A[T]<<24>>>0),ve}function q(A,T,Y,ye){if(ye||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T!=null,"missing offset"),Le(T+1<A.length,"Trying to read beyond buffer length")),!(A.length<=T))return ye=k(A,T,Y,!0),32768&ye?-1*(65535-ye+1):ye}function K(A,T,Y,ye){if(ye||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T!=null,"missing offset"),Le(T+3<A.length,"Trying to read beyond buffer length")),!(A.length<=T))return ye=$(A,T,Y,!0),2147483648&ye?-1*(4294967295-ye+1):ye}function j(A,T,Y,ye){return ye||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T+3<A.length,"Trying to read beyond buffer length")),g.read(A,T,Y,23,4)}function D(A,T,Y,ye){return ye||(Le(typeof Y=="boolean","missing or invalid endian"),Le(T+7<A.length,"Trying to read beyond buffer length")),g.read(A,T,Y,52,8)}function B(A,T,Y,ye,ve){if(ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+1<A.length,"trying to write beyond buffer length"),qe(T,65535)),ve=A.length,!(ve<=Y))for(var M=0,Z=Math.min(ve-Y,2);M<Z;M++)A[Y+M]=(T&255<<8*(ye?M:1-M))>>>8*(ye?M:1-M);}function H(A,T,Y,ye,ve){if(ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+3<A.length,"trying to write beyond buffer length"),qe(T,4294967295)),ve=A.length,!(ve<=Y))for(var M=0,Z=Math.min(ve-Y,4);M<Z;M++)A[Y+M]=T>>>8*(ye?M:3-M)&255;}function J(A,T,Y,ye,ve){ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+1<A.length,"Trying to write beyond buffer length"),Qe(T,32767,-32768)),A.length<=Y||B(A,0<=T?T:65535+T+1,Y,ye,ve);}function ge(A,T,Y,ye,ve){ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+3<A.length,"Trying to write beyond buffer length"),Qe(T,2147483647,-2147483648)),A.length<=Y||H(A,0<=T?T:4294967295+T+1,Y,ye,ve);}function V(A,T,Y,ye,ve){ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+3<A.length,"Trying to write beyond buffer length"),Ve(T,34028234663852886e22,-34028234663852886e22)),A.length<=Y||g.write(A,T,Y,ye,23,4);}function ne(A,T,Y,ye,ve){ve||(Le(T!=null,"missing value"),Le(typeof ye=="boolean","missing or invalid endian"),Le(Y!=null,"missing offset"),Le(Y+7<A.length,"Trying to write beyond buffer length"),Ve(T,17976931348623157e292,-17976931348623157e292)),A.length<=Y||g.write(A,T,Y,ye,52,8);}r.Buffer=h,r.SlowBuffer=h,r.INSPECT_MAX_BYTES=50,h.poolSize=8192,h._useTypedArrays=function(){try{var A=new ArrayBuffer(0),T=new Uint8Array(A);return T.foo=function(){return 42},T.foo()===42&&typeof T.subarray=="function"}catch{return !1}}(),h.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},h.isBuffer=function(A){return !(A==null||!A._isBuffer)},h.byteLength=function(A,T){var Y;switch(A+="",T||"utf8"){case"hex":Y=A.length/2;break;case"utf8":case"utf-8":Y=pe(A).length;break;case"ascii":case"binary":case"raw":Y=A.length;break;case"base64":Y=we(A).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=2*A.length;break;default:throw new Error("Unknown encoding")}return Y},h.concat=function(A,T){if(Le(re(A),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),A.length===0)return new h(0);if(A.length===1)return A[0];if(typeof T!="number")for(ve=T=0;ve<A.length;ve++)T+=A[ve].length;for(var Y=new h(T),ye=0,ve=0;ve<A.length;ve++){var M=A[ve];M.copy(Y,ye),ye+=M.length;}return Y},h.prototype.write=function(A,T,Y,ye){isFinite(T)?isFinite(Y)||(ye=Y,Y=void 0):(De=ye,ye=T,T=Y,Y=De),T=Number(T)||0;var ve,M,Z,Re,De=this.length-T;switch((!Y||De<(Y=Number(Y)))&&(Y=De),ye=String(ye||"utf8").toLowerCase()){case"hex":ve=function(je,He,$e,at){$e=Number($e)||0;var it=je.length-$e;(!at||it<(at=Number(at)))&&(at=it),Le((it=He.length)%2==0,"Invalid hex string"),it/2<at&&(at=it/2);for(var tt=0;tt<at;tt++){var _t=parseInt(He.substr(2*tt,2),16);Le(!isNaN(_t),"Invalid hex string"),je[$e+tt]=_t;}return h._charsWritten=2*tt,tt}(this,A,T,Y);break;case"utf8":case"utf-8":M=this,Z=T,Re=Y,ve=h._charsWritten=Ne(pe(A),M,Z,Re);break;case"ascii":case"binary":ve=E(this,A,T,Y);break;case"base64":M=this,Z=T,Re=Y,ve=h._charsWritten=Ne(we(A),M,Z,Re);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ve=S(this,A,T,Y);break;default:throw new Error("Unknown encoding")}return ve},h.prototype.toString=function(A,T,Y){var ye,ve,M,Z,Re=this;if(A=String(A||"utf8").toLowerCase(),T=Number(T)||0,(Y=Y!==void 0?Number(Y):Re.length)===T)return "";switch(A){case"hex":ye=function(De,je,He){var $e=De.length;(!je||je<0)&&(je=0),(!He||He<0||$e<He)&&(He=$e);for(var at="",it=je;it<He;it++)at+=ee(De[it]);return at}(Re,T,Y);break;case"utf8":case"utf-8":ye=function(De,je,He){var $e="",at="";He=Math.min(De.length,He);for(var it=je;it<He;it++)De[it]<=127?($e+=Ge(at)+String.fromCharCode(De[it]),at=""):at+="%"+De[it].toString(16);return $e+Ge(at)}(Re,T,Y);break;case"ascii":case"binary":ye=O(Re,T,Y);break;case"base64":ve=Re,Z=Y,ye=(M=T)===0&&Z===ve.length?m.fromByteArray(ve):m.fromByteArray(ve.slice(M,Z));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ye=function(De,je,He){for(var $e=De.slice(je,He),at="",it=0;it<$e.length;it+=2)at+=String.fromCharCode($e[it]+256*$e[it+1]);return at}(Re,T,Y);break;default:throw new Error("Unknown encoding")}return ye},h.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(A,T,Y,ye){if(T=T||0,(ye=ye||ye===0?ye:this.length)!==(Y=Y||0)&&A.length!==0&&this.length!==0){Le(Y<=ye,"sourceEnd < sourceStart"),Le(0<=T&&T<A.length,"targetStart out of bounds"),Le(0<=Y&&Y<this.length,"sourceStart out of bounds"),Le(0<=ye&&ye<=this.length,"sourceEnd out of bounds"),ye>this.length&&(ye=this.length);var ve=(ye=A.length-T<ye-Y?A.length-T+Y:ye)-Y;if(ve<100||!h._useTypedArrays)for(var M=0;M<ve;M++)A[M+T]=this[M+Y];else A._set(this.subarray(Y,Y+ve),T);}},h.prototype.slice=function(A,T){var Y=this.length;if(A=Oe(A,Y,0),T=Oe(T,Y,Y),h._useTypedArrays)return h._augment(this.subarray(A,T));for(var ye=T-A,ve=new h(ye,void 0,!0),M=0;M<ye;M++)ve[M]=this[M+A];return ve},h.prototype.get=function(A){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(A)},h.prototype.set=function(A,T){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(A,T)},h.prototype.readUInt8=function(A,T){if(T||(Le(A!=null,"missing offset"),Le(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return this[A]},h.prototype.readUInt16LE=function(A,T){return k(this,A,!0,T)},h.prototype.readUInt16BE=function(A,T){return k(this,A,!1,T)},h.prototype.readUInt32LE=function(A,T){return $(this,A,!0,T)},h.prototype.readUInt32BE=function(A,T){return $(this,A,!1,T)},h.prototype.readInt8=function(A,T){if(T||(Le(A!=null,"missing offset"),Le(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return 128&this[A]?-1*(255-this[A]+1):this[A]},h.prototype.readInt16LE=function(A,T){return q(this,A,!0,T)},h.prototype.readInt16BE=function(A,T){return q(this,A,!1,T)},h.prototype.readInt32LE=function(A,T){return K(this,A,!0,T)},h.prototype.readInt32BE=function(A,T){return K(this,A,!1,T)},h.prototype.readFloatLE=function(A,T){return j(this,A,!0,T)},h.prototype.readFloatBE=function(A,T){return j(this,A,!1,T)},h.prototype.readDoubleLE=function(A,T){return D(this,A,!0,T)},h.prototype.readDoubleBE=function(A,T){return D(this,A,!1,T)},h.prototype.writeUInt8=function(A,T,Y){Y||(Le(A!=null,"missing value"),Le(T!=null,"missing offset"),Le(T<this.length,"trying to write beyond buffer length"),qe(A,255)),T>=this.length||(this[T]=A);},h.prototype.writeUInt16LE=function(A,T,Y){B(this,A,T,!0,Y);},h.prototype.writeUInt16BE=function(A,T,Y){B(this,A,T,!1,Y);},h.prototype.writeUInt32LE=function(A,T,Y){H(this,A,T,!0,Y);},h.prototype.writeUInt32BE=function(A,T,Y){H(this,A,T,!1,Y);},h.prototype.writeInt8=function(A,T,Y){Y||(Le(A!=null,"missing value"),Le(T!=null,"missing offset"),Le(T<this.length,"Trying to write beyond buffer length"),Qe(A,127,-128)),T>=this.length||(0<=A?this.writeUInt8(A,T,Y):this.writeUInt8(255+A+1,T,Y));},h.prototype.writeInt16LE=function(A,T,Y){J(this,A,T,!0,Y);},h.prototype.writeInt16BE=function(A,T,Y){J(this,A,T,!1,Y);},h.prototype.writeInt32LE=function(A,T,Y){ge(this,A,T,!0,Y);},h.prototype.writeInt32BE=function(A,T,Y){ge(this,A,T,!1,Y);},h.prototype.writeFloatLE=function(A,T,Y){V(this,A,T,!0,Y);},h.prototype.writeFloatBE=function(A,T,Y){V(this,A,T,!1,Y);},h.prototype.writeDoubleLE=function(A,T,Y){ne(this,A,T,!0,Y);},h.prototype.writeDoubleBE=function(A,T,Y){ne(this,A,T,!1,Y);},h.prototype.fill=function(A,T,Y){if(T=T||0,Y=Y||this.length,Le(typeof(A=typeof(A=A||0)=="string"?A.charCodeAt(0):A)=="number"&&!isNaN(A),"value is not a number"),Le(T<=Y,"end < start"),Y!==T&&this.length!==0){Le(0<=T&&T<this.length,"start out of bounds"),Le(0<=Y&&Y<=this.length,"end out of bounds");for(var ye=T;ye<Y;ye++)this[ye]=A;}},h.prototype.inspect=function(){for(var A=[],T=this.length,Y=0;Y<T;Y++)if(A[Y]=ee(this[Y]),Y===r.INSPECT_MAX_BYTES){A[Y+1]="...";break}return "<Buffer "+A.join(" ")+">"},h.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var A=new Uint8Array(this.length),T=0,Y=A.length;T<Y;T+=1)A[T]=this[T];return A.buffer};var ue=h.prototype;function Oe(A,T,Y){return typeof A!="number"?Y:T<=(A=~~A)?T:0<=A||0<=(A+=T)?A:0}function Ie(A){return (A=~~Math.ceil(+A))<0?0:A}function re(A){return (Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"})(A)}function ee(A){return A<16?"0"+A.toString(16):A.toString(16)}function pe(A){for(var T=[],Y=0;Y<A.length;Y++){var ye=A.charCodeAt(Y);if(ye<=127)T.push(A.charCodeAt(Y));else for(var ve=Y,M=(55296<=ye&&ye<=57343&&Y++,encodeURIComponent(A.slice(ve,Y+1)).substr(1).split("%")),Z=0;Z<M.length;Z++)T.push(parseInt(M[Z],16));}return T}function we(A){return m.toByteArray(A)}function Ne(A,T,Y,ye){for(var ve=0;ve<ye&&!(ve+Y>=T.length||ve>=A.length);ve++)T[ve+Y]=A[ve];return ve}function Ge(A){try{return decodeURIComponent(A)}catch{return String.fromCharCode(65533)}}function qe(A,T){Le(typeof A=="number","cannot write a non-number as a number"),Le(0<=A,"specified a negative value for writing an unsigned value"),Le(A<=T,"value is larger than maximum value for type"),Le(Math.floor(A)===A,"value has a fractional component");}function Qe(A,T,Y){Le(typeof A=="number","cannot write a non-number as a number"),Le(A<=T,"value larger than maximum allowed value"),Le(Y<=A,"value smaller than minimum allowed value"),Le(Math.floor(A)===A,"value has a fractional component");}function Ve(A,T,Y){Le(typeof A=="number","cannot write a non-number as a number"),Le(A<=T,"value larger than maximum allowed value"),Le(Y<=A,"value smaller than minimum allowed value");}function Le(A,T){if(!A)throw new Error(T||"Failed assertion")}h._augment=function(A){return A._isBuffer=!0,A._get=A.get,A._set=A.set,A.get=ue.get,A.set=ue.set,A.write=ue.write,A.toString=ue.toString,A.toLocaleString=ue.toString,A.toJSON=ue.toJSON,A.copy=ue.copy,A.slice=ue.slice,A.readUInt8=ue.readUInt8,A.readUInt16LE=ue.readUInt16LE,A.readUInt16BE=ue.readUInt16BE,A.readUInt32LE=ue.readUInt32LE,A.readUInt32BE=ue.readUInt32BE,A.readInt8=ue.readInt8,A.readInt16LE=ue.readInt16LE,A.readInt16BE=ue.readInt16BE,A.readInt32LE=ue.readInt32LE,A.readInt32BE=ue.readInt32BE,A.readFloatLE=ue.readFloatLE,A.readFloatBE=ue.readFloatBE,A.readDoubleLE=ue.readDoubleLE,A.readDoubleBE=ue.readDoubleBE,A.writeUInt8=ue.writeUInt8,A.writeUInt16LE=ue.writeUInt16LE,A.writeUInt16BE=ue.writeUInt16BE,A.writeUInt32LE=ue.writeUInt32LE,A.writeUInt32BE=ue.writeUInt32BE,A.writeInt8=ue.writeInt8,A.writeInt16LE=ue.writeInt16LE,A.writeInt16BE=ue.writeInt16BE,A.writeInt32LE=ue.writeInt32LE,A.writeInt32BE=ue.writeInt32BE,A.writeFloatLE=ue.writeFloatLE,A.writeFloatBE=ue.writeFloatBE,A.writeDoubleLE=ue.writeDoubleLE,A.writeDoubleBE=ue.writeDoubleBE,A.fill=ue.fill,A.inspect=ue.inspect,A.toArrayBuffer=ue.toArrayBuffer,A};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer");},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,r){(function(n,o,m,i,f,l,c,p,y){var m=e("buffer").Buffer,g=4,h=new m(g);h.fill(0),t.exports={hash:function(E,S,O,k){for(var $=S(function(B,H){B.length%g!=0&&(J=B.length+(g-B.length%g),B=m.concat([B,h],J));for(var J,ge=[],V=H?B.readInt32BE:B.readInt32LE,ne=0;ne<B.length;ne+=g)ge.push(V.call(B,ne));return ge}(E=m.isBuffer(E)?E:new m(E),k),8*E.length),S=k,q=new m(O),K=S?q.writeInt32BE:q.writeInt32LE,j=0;j<$.length;j++)K.call(q,$[j],4*j,!0);return q}};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{buffer:3,lYpoI2:11}],5:[function(e,t,r){(function(n,o,m,i,f,l,c,p,y){var m=e("buffer").Buffer,g=e("./sha"),h=e("./sha256"),E=e("./rng"),S={sha1:g,sha256:h,md5:e("./md5")},O=64,k=new m(O);function $(B,H){var J=S[B=B||"sha1"],ge=[];return J||q("algorithm:",B,"is not yet supported"),{update:function(V){return m.isBuffer(V)||(V=new m(V)),ge.push(V),this},digest:function(V){var ne=m.concat(ge),ne=H?function(ue,Oe,Ie){m.isBuffer(Oe)||(Oe=new m(Oe)),m.isBuffer(Ie)||(Ie=new m(Ie)),Oe.length>O?Oe=ue(Oe):Oe.length<O&&(Oe=m.concat([Oe,k],O));for(var re=new m(O),ee=new m(O),pe=0;pe<O;pe++)re[pe]=54^Oe[pe],ee[pe]=92^Oe[pe];return Ie=ue(m.concat([re,Ie])),ue(m.concat([ee,Ie]))}(J,H,ne):J(ne);return ge=null,V?ne.toString(V):ne}}}function q(){var B=[].slice.call(arguments).join(" ");throw new Error([B,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}k.fill(0),r.createHash=function(B){return $(B)},r.createHmac=$,r.randomBytes=function(B,H){if(!H||!H.call)return new m(E(B));try{H.call(this,void 0,new m(E(B)));}catch(J){H(J);}};var K,j=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],D=function(B){r[B]=function(){q("sorry,",B,"is not implemented yet");};};for(K in j)D(j[K]);}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){var m=e("./helpers");function g(q,K){q[K>>5]|=128<<K%32,q[14+(K+64>>>9<<4)]=K;for(var j=1732584193,D=-271733879,B=-1732584194,H=271733878,J=0;J<q.length;J+=16){var ge=j,V=D,ne=B,ue=H,j=E(j,D,B,H,q[J+0],7,-680876936),H=E(H,j,D,B,q[J+1],12,-389564586),B=E(B,H,j,D,q[J+2],17,606105819),D=E(D,B,H,j,q[J+3],22,-1044525330);j=E(j,D,B,H,q[J+4],7,-176418897),H=E(H,j,D,B,q[J+5],12,1200080426),B=E(B,H,j,D,q[J+6],17,-1473231341),D=E(D,B,H,j,q[J+7],22,-45705983),j=E(j,D,B,H,q[J+8],7,1770035416),H=E(H,j,D,B,q[J+9],12,-1958414417),B=E(B,H,j,D,q[J+10],17,-42063),D=E(D,B,H,j,q[J+11],22,-1990404162),j=E(j,D,B,H,q[J+12],7,1804603682),H=E(H,j,D,B,q[J+13],12,-40341101),B=E(B,H,j,D,q[J+14],17,-1502002290),j=S(j,D=E(D,B,H,j,q[J+15],22,1236535329),B,H,q[J+1],5,-165796510),H=S(H,j,D,B,q[J+6],9,-1069501632),B=S(B,H,j,D,q[J+11],14,643717713),D=S(D,B,H,j,q[J+0],20,-373897302),j=S(j,D,B,H,q[J+5],5,-701558691),H=S(H,j,D,B,q[J+10],9,38016083),B=S(B,H,j,D,q[J+15],14,-660478335),D=S(D,B,H,j,q[J+4],20,-405537848),j=S(j,D,B,H,q[J+9],5,568446438),H=S(H,j,D,B,q[J+14],9,-1019803690),B=S(B,H,j,D,q[J+3],14,-187363961),D=S(D,B,H,j,q[J+8],20,1163531501),j=S(j,D,B,H,q[J+13],5,-1444681467),H=S(H,j,D,B,q[J+2],9,-51403784),B=S(B,H,j,D,q[J+7],14,1735328473),j=O(j,D=S(D,B,H,j,q[J+12],20,-1926607734),B,H,q[J+5],4,-378558),H=O(H,j,D,B,q[J+8],11,-2022574463),B=O(B,H,j,D,q[J+11],16,1839030562),D=O(D,B,H,j,q[J+14],23,-35309556),j=O(j,D,B,H,q[J+1],4,-1530992060),H=O(H,j,D,B,q[J+4],11,1272893353),B=O(B,H,j,D,q[J+7],16,-155497632),D=O(D,B,H,j,q[J+10],23,-1094730640),j=O(j,D,B,H,q[J+13],4,681279174),H=O(H,j,D,B,q[J+0],11,-358537222),B=O(B,H,j,D,q[J+3],16,-722521979),D=O(D,B,H,j,q[J+6],23,76029189),j=O(j,D,B,H,q[J+9],4,-640364487),H=O(H,j,D,B,q[J+12],11,-421815835),B=O(B,H,j,D,q[J+15],16,530742520),j=k(j,D=O(D,B,H,j,q[J+2],23,-995338651),B,H,q[J+0],6,-198630844),H=k(H,j,D,B,q[J+7],10,1126891415),B=k(B,H,j,D,q[J+14],15,-1416354905),D=k(D,B,H,j,q[J+5],21,-57434055),j=k(j,D,B,H,q[J+12],6,1700485571),H=k(H,j,D,B,q[J+3],10,-1894986606),B=k(B,H,j,D,q[J+10],15,-1051523),D=k(D,B,H,j,q[J+1],21,-2054922799),j=k(j,D,B,H,q[J+8],6,1873313359),H=k(H,j,D,B,q[J+15],10,-30611744),B=k(B,H,j,D,q[J+6],15,-1560198380),D=k(D,B,H,j,q[J+13],21,1309151649),j=k(j,D,B,H,q[J+4],6,-145523070),H=k(H,j,D,B,q[J+11],10,-1120210379),B=k(B,H,j,D,q[J+2],15,718787259),D=k(D,B,H,j,q[J+9],21,-343485551),j=$(j,ge),D=$(D,V),B=$(B,ne),H=$(H,ue);}return Array(j,D,B,H)}function h(q,K,j,D,B,H){return $((K=$($(K,q),$(D,H)))<<B|K>>>32-B,j)}function E(q,K,j,D,B,H,J){return h(K&j|~K&D,q,K,B,H,J)}function S(q,K,j,D,B,H,J){return h(K&D|j&~D,q,K,B,H,J)}function O(q,K,j,D,B,H,J){return h(K^j^D,q,K,B,H,J)}function k(q,K,j,D,B,H,J){return h(j^(K|~D),q,K,B,H,J)}function $(q,K){var j=(65535&q)+(65535&K);return (q>>16)+(K>>16)+(j>>16)<<16|65535&j}t.exports=function(q){return m.hash(q,g,16)};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){t.exports=function(g){for(var h,E=new Array(g),S=0;S<g;S++)!(3&S)&&(h=4294967296*Math.random()),E[S]=h>>>((3&S)<<3)&255;return E};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{buffer:3,lYpoI2:11}],8:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){var m=e("./helpers");function g(S,O){S[O>>5]|=128<<24-O%32,S[15+(O+64>>9<<4)]=O;for(var k,$,q,K=Array(80),j=1732584193,D=-271733879,B=-1732584194,H=271733878,J=-1009589776,ge=0;ge<S.length;ge+=16){for(var V=j,ne=D,ue=B,Oe=H,Ie=J,re=0;re<80;re++){K[re]=re<16?S[ge+re]:E(K[re-3]^K[re-8]^K[re-14]^K[re-16],1);var ee=h(h(E(j,5),(ee=D,$=B,q=H,(k=re)<20?ee&$|~ee&q:!(k<40)&&k<60?ee&$|ee&q|$&q:ee^$^q)),h(h(J,K[re]),(k=re)<20?1518500249:k<40?1859775393:k<60?-1894007588:-899497514)),J=H,H=B,B=E(D,30),D=j,j=ee;}j=h(j,V),D=h(D,ne),B=h(B,ue),H=h(H,Oe),J=h(J,Ie);}return Array(j,D,B,H,J)}function h(S,O){var k=(65535&S)+(65535&O);return (S>>16)+(O>>16)+(k>>16)<<16|65535&k}function E(S,O){return S<<O|S>>>32-O}t.exports=function(S){return m.hash(S,g,20,!0)};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){function m(O,k){var $=(65535&O)+(65535&k);return (O>>16)+(k>>16)+($>>16)<<16|65535&$}function g(O,k){var $,q=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),K=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),j=new Array(64);O[k>>5]|=128<<24-k%32,O[15+(k+64>>9<<4)]=k;for(var D,B,H=0;H<O.length;H+=16){for(var J=K[0],ge=K[1],V=K[2],ne=K[3],ue=K[4],Oe=K[5],Ie=K[6],re=K[7],ee=0;ee<64;ee++)j[ee]=ee<16?O[ee+H]:m(m(m((B=j[ee-2],E(B,17)^E(B,19)^S(B,10)),j[ee-7]),(B=j[ee-15],E(B,7)^E(B,18)^S(B,3))),j[ee-16]),$=m(m(m(m(re,E(B=ue,6)^E(B,11)^E(B,25)),ue&Oe^~ue&Ie),q[ee]),j[ee]),D=m(E(D=J,2)^E(D,13)^E(D,22),J&ge^J&V^ge&V),re=Ie,Ie=Oe,Oe=ue,ue=m(ne,$),ne=V,V=ge,ge=J,J=m($,D);K[0]=m(J,K[0]),K[1]=m(ge,K[1]),K[2]=m(V,K[2]),K[3]=m(ne,K[3]),K[4]=m(ue,K[4]),K[5]=m(Oe,K[5]),K[6]=m(Ie,K[6]),K[7]=m(re,K[7]);}return K}var h=e("./helpers"),E=function(O,k){return O>>>k|O<<32-k},S=function(O,k){return O>>>k};t.exports=function(O){return h.hash(O,g,32,!0)};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){r.read=function(m,g,h,E,H){var O,k,$=8*H-E-1,q=(1<<$)-1,K=q>>1,j=-7,D=h?H-1:0,B=h?-1:1,H=m[g+D];for(D+=B,O=H&(1<<-j)-1,H>>=-j,j+=$;0<j;O=256*O+m[g+D],D+=B,j-=8);for(k=O&(1<<-j)-1,O>>=-j,j+=E;0<j;k=256*k+m[g+D],D+=B,j-=8);if(O===0)O=1-K;else {if(O===q)return k?NaN:1/0*(H?-1:1);k+=Math.pow(2,E),O-=K;}return (H?-1:1)*k*Math.pow(2,O-E)},r.write=function(m,g,h,E,S,J){var k,$,q=8*J-S-1,K=(1<<q)-1,j=K>>1,D=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=E?0:J-1,H=E?1:-1,J=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?($=isNaN(g)?1:0,k=K):(k=Math.floor(Math.log(g)/Math.LN2),g*(E=Math.pow(2,-k))<1&&(k--,E*=2),2<=(g+=1<=k+j?D/E:D*Math.pow(2,1-j))*E&&(k++,E/=2),K<=k+j?($=0,k=K):1<=k+j?($=(g*E-1)*Math.pow(2,S),k+=j):($=g*Math.pow(2,j-1)*Math.pow(2,S),k=0));8<=S;m[h+B]=255&$,B+=H,$/=256,S-=8);for(k=k<<S|$,q+=S;0<q;m[h+B]=255&k,B+=H,k/=256,q-=8);m[h+B-H]|=128*J;};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754");},{buffer:3,lYpoI2:11}],11:[function(e,t,r){(function(n,o,a,i,f,l,c,p,y){var m,g,h;function E(){}(n=t.exports={}).nextTick=(g=typeof window<"u"&&window.setImmediate,h=typeof window<"u"&&window.postMessage&&window.addEventListener,g?function(S){return window.setImmediate(S)}:h?(m=[],window.addEventListener("message",function(S){var O=S.source;O!==window&&O!==null||S.data!=="process-tick"||(S.stopPropagation(),0<m.length&&m.shift()());},!0),function(S){m.push(S),window.postMessage("process-tick","*");}):function(S){setTimeout(S,0);}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=E,n.addListener=E,n.once=E,n.off=E,n.removeListener=E,n.removeAllListeners=E,n.emit=E,n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return "/"},n.chdir=function(S){throw new Error("process.chdir is not supported")};}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process");},{buffer:3,lYpoI2:11}]},{},[1])(1)});});var G2=Be((lce,H2)=>{N();x();P();C();L();H2.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 Z2=Be(tl=>{N();x();P();C();L();tl.byteLength=z4;tl.toByteArray=Z4;tl.fromByteArray=Y4;var Pn=[],Zr=[],G4=typeof Uint8Array<"u"?Uint8Array:Array,pd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(fo=0,z2=pd.length;fo<z2;++fo)Pn[fo]=pd[fo],Zr[pd.charCodeAt(fo)]=fo;var fo,z2;Zr["-".charCodeAt(0)]=62;Zr["_".charCodeAt(0)]=63;function W2(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return [r,n]}function z4(e){var t=W2(e),r=t[0],n=t[1];return (r+n)*3/4-n}function W4(e,t,r){return (t+r)*3/4-r}function Z4(e){var t,r=W2(e),n=r[0],o=r[1],a=new G4(W4(e,n,o)),i=0,f=o>0?n-4:n,l;for(l=0;l<f;l+=4)t=Zr[e.charCodeAt(l)]<<18|Zr[e.charCodeAt(l+1)]<<12|Zr[e.charCodeAt(l+2)]<<6|Zr[e.charCodeAt(l+3)],a[i++]=t>>16&255,a[i++]=t>>8&255,a[i++]=t&255;return o===2&&(t=Zr[e.charCodeAt(l)]<<2|Zr[e.charCodeAt(l+1)]>>4,a[i++]=t&255),o===1&&(t=Zr[e.charCodeAt(l)]<<10|Zr[e.charCodeAt(l+1)]<<4|Zr[e.charCodeAt(l+2)]>>2,a[i++]=t>>8&255,a[i++]=t&255),a}function V4(e){return Pn[e>>18&63]+Pn[e>>12&63]+Pn[e>>6&63]+Pn[e&63]}function K4(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(V4(n));return o.join("")}function Y4(e){for(var t,r=e.length,n=r%3,o=[],a=16383,i=0,f=r-n;i<f;i+=a)o.push(K4(e,i,i+a>f?f:i+a));return n===1?(t=e[r-1],o.push(Pn[t>>2]+Pn[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Pn[t>>10]+Pn[t>>4&63]+Pn[t<<2&63]+"=")),o.join("")}});var V2=Be(dd=>{N();x();P();C();L();dd.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,p=-7,y=r?o-1:0,m=r?-1:1,g=e[t+y];for(y+=m,a=g&(1<<-p)-1,g>>=-p,p+=f;p>0;a=a*256+e[t+y],y+=m,p-=8);for(i=a&(1<<-p)-1,a>>=-p,p+=n;p>0;i=i*256+e[t+y],y+=m,p-=8);if(a===0)a=1-c;else {if(a===l)return i?NaN:(g?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c;}return (g?-1:1)*i*Math.pow(2,a-n)};dd.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,p=(1<<c)-1,y=p>>1,m=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,h=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=m/l:t+=m*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=p?(f=0,i=p):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+g]=f&255,g+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+g]=i&255,g+=h,i/=256,c-=8);e[r+g-h]|=E*128;};});var cA=Be(va=>{N();x();P();C();L();var yd=Z2(),ma=V2(),K2=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;va.Buffer=Pe;va.SlowBuffer=r5;va.INSPECT_MAX_BYTES=50;var rl=2147483647;va.kMaxLength=rl;Pe.TYPED_ARRAY_SUPPORT=X4();!Pe.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 X4(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return !1}}Object.defineProperty(Pe.prototype,"parent",{enumerable:!0,get:function(){if(Pe.isBuffer(this))return this.buffer}});Object.defineProperty(Pe.prototype,"offset",{enumerable:!0,get:function(){if(Pe.isBuffer(this))return this.byteOffset}});function ni(e){if(e>rl)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Pe.prototype),t}function Pe(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return wd(e)}return Q2(e,t,r)}Pe.poolSize=8192;function Q2(e,t,r){if(typeof e=="string")return Q4(e,t);if(ArrayBuffer.isView(e))return e5(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Ln(e,ArrayBuffer)||e&&Ln(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ln(e,SharedArrayBuffer)||e&&Ln(e.buffer,SharedArrayBuffer)))return gd(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Pe.from(n,t,r);let o=t5(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Pe.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Pe.from=function(e,t,r){return Q2(e,t,r)};Object.setPrototypeOf(Pe.prototype,Uint8Array.prototype);Object.setPrototypeOf(Pe,Uint8Array);function eA(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function J4(e,t,r){return eA(e),e<=0?ni(e):t!==void 0?typeof r=="string"?ni(e).fill(t,r):ni(e).fill(t):ni(e)}Pe.alloc=function(e,t,r){return J4(e,t,r)};function wd(e){return eA(e),ni(e<0?0:Ed(e)|0)}Pe.allocUnsafe=function(e){return wd(e)};Pe.allocUnsafeSlow=function(e){return wd(e)};function Q4(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Pe.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=tA(e,t)|0,n=ni(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function md(e){let t=e.length<0?0:Ed(e.length)|0,r=ni(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function e5(e){if(Ln(e,Uint8Array)){let t=new Uint8Array(e);return gd(t.buffer,t.byteOffset,t.byteLength)}return md(e)}function gd(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,Pe.prototype),n}function t5(e){if(Pe.isBuffer(e)){let t=Ed(e.length)|0,r=ni(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Sd(e.length)?ni(0):md(e);if(e.type==="Buffer"&&Array.isArray(e.data))return md(e.data)}function Ed(e){if(e>=rl)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rl.toString(16)+" bytes");return e|0}function r5(e){return +e!=e&&(e=0),Pe.alloc(+e)}Pe.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Pe.prototype};Pe.compare=function(t,r){if(Ln(t,Uint8Array)&&(t=Pe.from(t,t.offset,t.byteLength)),Ln(r,Uint8Array)&&(r=Pe.from(r,r.offset,r.byteLength)),!Pe.isBuffer(t)||!Pe.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,o=r.length;for(let a=0,i=Math.min(n,o);a<i;++a)if(t[a]!==r[a]){n=t[a],o=r[a];break}return n<o?-1:o<n?1:0};Pe.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}};Pe.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Pe.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let o=Pe.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){let i=t[n];if(Ln(i,Uint8Array))a+i.length>o.length?(Pe.isBuffer(i)||(i=Pe.from(i)),i.copy(o,a)):Uint8Array.prototype.set.call(o,i,a);else if(Pe.isBuffer(i))i.copy(o,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=i.length;}return o};function tA(e,t){if(Pe.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Ln(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return vd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return lA(e).length;default:if(o)return n?-1:vd(e).length;t=(""+t).toLowerCase(),o=!0;}}Pe.byteLength=tA;function n5(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return "";for(e||(e="utf8");;)switch(e){case"hex":return p5(this,t,r);case"utf8":case"utf-8":return nA(this,t,r);case"ascii":return c5(this,t,r);case"latin1":case"binary":return h5(this,t,r);case"base64":return f5(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d5(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}Pe.prototype._isBuffer=!0;function lo(e,t,r){let n=e[t];e[t]=e[r],e[r]=n;}Pe.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)lo(this,r,r+1);return this};Pe.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)lo(this,r,r+3),lo(this,r+1,r+2);return this};Pe.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)lo(this,r,r+7),lo(this,r+1,r+6),lo(this,r+2,r+5),lo(this,r+3,r+4);return this};Pe.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?nA(this,0,t):n5.apply(this,arguments)};Pe.prototype.toLocaleString=Pe.prototype.toString;Pe.prototype.equals=function(t){if(!Pe.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Pe.compare(this,t)===0};Pe.prototype.inspect=function(){let t="",r=va.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};K2&&(Pe.prototype[K2]=Pe.prototype.inspect);Pe.prototype.compare=function(t,r,n,o,a){if(Ln(t,Uint8Array)&&(t=Pe.from(t,t.offset,t.byteLength)),!Pe.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),r<0||n>t.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&r>=n)return 0;if(o>=a)return -1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,a>>>=0,this===t)return 0;let i=a-o,f=n-r,l=Math.min(i,f),c=this.slice(o,a),p=t.slice(r,n);for(let y=0;y<l;++y)if(c[y]!==p[y]){i=c[y],f=p[y];break}return i<f?-1:f<i?1:0};function rA(e,t,r,n,o){if(e.length===0)return -1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Sd(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1;}else if(r<0)if(o)r=0;else return -1;if(typeof t=="string"&&(t=Pe.from(t,n)),Pe.isBuffer(t))return t.length===0?-1:Y2(e,t,r,n,o);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Y2(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Y2(e,t,r,n,o){let a=1,i=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return -1;a=2,i/=2,f/=2,r/=2;}function l(p,y){return a===1?p[y]:p.readUInt16BE(y*a)}let c;if(o){let p=-1;for(c=r;c<i;c++)if(l(e,c)===l(t,p===-1?0:c-p)){if(p===-1&&(p=c),c-p+1===f)return p*a}else p!==-1&&(c-=c-p),p=-1;}else for(r+f>i&&(r=i-f),c=r;c>=0;c--){let p=!0;for(let y=0;y<f;y++)if(l(e,c+y)!==l(t,y)){p=!1;break}if(p)return c}return -1}Pe.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Pe.prototype.indexOf=function(t,r,n){return rA(this,t,r,n,!0)};Pe.prototype.lastIndexOf=function(t,r,n){return rA(this,t,r,n,!1)};function i5(e,t,r,n){r=Number(r)||0;let o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let a=t.length;n>a/2&&(n=a/2);let i;for(i=0;i<n;++i){let f=parseInt(t.substr(i*2,2),16);if(Sd(f))return i;e[r+i]=f;}return i}function o5(e,t,r,n){return nl(vd(t,e.length-r),e,r,n)}function a5(e,t,r,n){return nl(v5(t),e,r,n)}function s5(e,t,r,n){return nl(lA(t),e,r,n)}function u5(e,t,r,n){return nl(w5(t,e.length-r),e,r,n)}Pe.prototype.write=function(t,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let i=!1;for(;;)switch(o){case"hex":return i5(this,t,r,n);case"utf8":case"utf-8":return o5(this,t,r,n);case"ascii":case"latin1":case"binary":return a5(this,t,r,n);case"base64":return s5(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u5(this,t,r,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0;}};Pe.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f5(e,t,r){return t===0&&r===e.length?yd.fromByteArray(e):yd.fromByteArray(e.slice(t,r))}function nA(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let a=e[o],i=null,f=a>239?4:a>223?3:a>191?2:1;if(o+f<=r){let l,c,p,y;switch(f){case 1:a<128&&(i=a);break;case 2:l=e[o+1],(l&192)===128&&(y=(a&31)<<6|l&63,y>127&&(i=y));break;case 3:l=e[o+1],c=e[o+2],(l&192)===128&&(c&192)===128&&(y=(a&15)<<12|(l&63)<<6|c&63,y>2047&&(y<55296||y>57343)&&(i=y));break;case 4:l=e[o+1],c=e[o+2],p=e[o+3],(l&192)===128&&(c&192)===128&&(p&192)===128&&(y=(a&15)<<18|(l&63)<<12|(c&63)<<6|p&63,y>65535&&y<1114112&&(i=y));}}i===null?(i=65533,f=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),o+=f;}return l5(n)}var X2=4096;function l5(e){let t=e.length;if(t<=X2)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=X2));return r}function c5(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function h5(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function p5(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let a=t;a<r;++a)o+=E5[e[a]];return o}function d5(e,t,r){let n=e.slice(t,r),o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+n[a+1]*256);return o}Pe.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let o=this.subarray(t,r);return Object.setPrototypeOf(o,Pe.prototype),o};function er(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Pe.prototype.readUintLE=Pe.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||er(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return o};Pe.prototype.readUintBE=Pe.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||er(t,r,this.length);let o=this[t+--r],a=1;for(;r>0&&(a*=256);)o+=this[t+--r]*a;return o};Pe.prototype.readUint8=Pe.prototype.readUInt8=function(t,r){return t=t>>>0,r||er(t,1,this.length),this[t]};Pe.prototype.readUint16LE=Pe.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||er(t,2,this.length),this[t]|this[t+1]<<8};Pe.prototype.readUint16BE=Pe.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||er(t,2,this.length),this[t]<<8|this[t+1]};Pe.prototype.readUint32LE=Pe.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||er(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Pe.prototype.readUint32BE=Pe.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||er(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Pe.prototype.readBigUInt64LE=Ii(function(t){t=t>>>0,ga(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Bs(t,this.length-8);let o=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))});Pe.prototype.readBigUInt64BE=Ii(function(t){t=t>>>0,ga(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Bs(t,this.length-8);let o=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return (BigInt(o)<<BigInt(32))+BigInt(a)});Pe.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||er(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Pe.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||er(t,r,this.length);let o=r,a=1,i=this[t+--o];for(;o>0&&(a*=256);)i+=this[t+--o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};Pe.prototype.readInt8=function(t,r){return t=t>>>0,r||er(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Pe.prototype.readInt16LE=function(t,r){t=t>>>0,r||er(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Pe.prototype.readInt16BE=function(t,r){t=t>>>0,r||er(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Pe.prototype.readInt32LE=function(t,r){return t=t>>>0,r||er(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Pe.prototype.readInt32BE=function(t,r){return t=t>>>0,r||er(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Pe.prototype.readBigInt64LE=Ii(function(t){t=t>>>0,ga(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Bs(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return (BigInt(o)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});Pe.prototype.readBigInt64BE=Ii(function(t){t=t>>>0,ga(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Bs(t,this.length-8);let o=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return (BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});Pe.prototype.readFloatLE=function(t,r){return t=t>>>0,r||er(t,4,this.length),ma.read(this,t,!0,23,4)};Pe.prototype.readFloatBE=function(t,r){return t=t>>>0,r||er(t,4,this.length),ma.read(this,t,!1,23,4)};Pe.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||er(t,8,this.length),ma.read(this,t,!0,52,8)};Pe.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||er(t,8,this.length),ma.read(this,t,!1,52,8)};function Nr(e,t,r,n,o,a){if(!Pe.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Pe.prototype.writeUintLE=Pe.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;Nr(this,t,r,n,f,0);}let a=1,i=0;for(this[r]=t&255;++i<n&&(a*=256);)this[r+i]=t/a&255;return r+n};Pe.prototype.writeUintBE=Pe.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;Nr(this,t,r,n,f,0);}let a=n-1,i=1;for(this[r+a]=t&255;--a>=0&&(i*=256);)this[r+a]=t/i&255;return r+n};Pe.prototype.writeUint8=Pe.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,1,255,0),this[r]=t&255,r+1};Pe.prototype.writeUint16LE=Pe.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Pe.prototype.writeUint16BE=Pe.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Pe.prototype.writeUint32LE=Pe.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Pe.prototype.writeUint32BE=Pe.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function iA(e,t,r,n,o){fA(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,r}function oA(e,t,r,n,o){fA(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i=i>>8,e[r+2]=i,i=i>>8,e[r+1]=i,i=i>>8,e[r]=i,r+8}Pe.prototype.writeBigUInt64LE=Ii(function(t,r=0){return iA(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Pe.prototype.writeBigUInt64BE=Ii(function(t,r=0){return oA(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Pe.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);Nr(this,t,r,n,l-1,-l);}let a=0,i=1,f=0;for(this[r]=t&255;++a<n&&(i*=256);)t<0&&f===0&&this[r+a-1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Pe.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);Nr(this,t,r,n,l-1,-l);}let a=n-1,i=1,f=0;for(this[r+a]=t&255;--a>=0&&(i*=256);)t<0&&f===0&&this[r+a+1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Pe.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Pe.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Pe.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Pe.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Pe.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Nr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Pe.prototype.writeBigInt64LE=Ii(function(t,r=0){return iA(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Pe.prototype.writeBigInt64BE=Ii(function(t,r=0){return oA(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function aA(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function sA(e,t,r,n,o){return t=+t,r=r>>>0,o||aA(e,t,r,4),ma.write(e,t,r,n,23,4),r+4}Pe.prototype.writeFloatLE=function(t,r,n){return sA(this,t,r,!0,n)};Pe.prototype.writeFloatBE=function(t,r,n){return sA(this,t,r,!1,n)};function uA(e,t,r,n,o){return t=+t,r=r>>>0,o||aA(e,t,r,8),ma.write(e,t,r,n,52,8),r+8}Pe.prototype.writeDoubleLE=function(t,r,n){return uA(this,t,r,!0,n)};Pe.prototype.writeDoubleBE=function(t,r,n){return uA(this,t,r,!1,n)};Pe.prototype.copy=function(t,r,n,o){if(!Pe.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);let a=o-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(t,this.subarray(n,o),r),a};Pe.prototype.fill=function(t,r,n,o){if(typeof t=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Pe.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){let i=t.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(t=i);}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else {let i=Pe.isBuffer(t)?t:Pe.from(t,o),f=i.length;if(f===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=i[a%f];}return this};var ya={};function _d(e,t,r){ya[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}_d("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);_d("ERR_INVALID_ARG_TYPE",function(e,t){return `The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);_d("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=J2(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=J2(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);function J2(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return `${e.slice(0,r)}${t}`}function y5(e,t,r){ga(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Bs(t,e.length-(r+1));}function fA(e,t,r,n,o,a){if(e>r||e<t){let i=typeof t=="bigint"?"n":"",f;throw a>3?t===0||t===BigInt(0)?f=`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:f=`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:f=`>= ${t}${i} and <= ${r}${i}`,new ya.ERR_OUT_OF_RANGE("value",f,e)}y5(n,o,a);}function ga(e,t){if(typeof e!="number")throw new ya.ERR_INVALID_ARG_TYPE(t,"number",e)}function Bs(e,t,r){throw Math.floor(e)!==e?(ga(e,r),new ya.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ya.ERR_BUFFER_OUT_OF_BOUNDS:new ya.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var m5=/[^+/0-9A-Za-z-_]/g;function g5(e){if(e=e.split("=")[0],e=e.trim().replace(m5,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function vd(e,t){t=t||1/0;let r,n=e.length,o=null,a=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536;}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r);}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128);}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128);}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128);}else throw new Error("Invalid code point")}return a}function v5(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function w5(e,t){let r,n,o,a=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}function lA(e){return yd.toByteArray(g5(e))}function nl(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Ln(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Sd(e){return e!==e}var E5=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o];}return t}();function Ii(e){return typeof BigInt>"u"?_5:e}function _5(){throw new Error("BigInt not supported")}});var dA=Be((kce,pA)=>{N();x();P();C();L();var Dr=G2(),hA=cA().Buffer;function S5(e){return 12+4*Math.ceil(e.length/4)}function b5(){return !(typeof window<"u"&&typeof document<"u")}function A5(e){let t=0,r=-1;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),e instanceof Int8Array)return e.length*Dr.Int8Array;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)return e.length*Dr.Uint8Array;if(e instanceof Int16Array)return e.length*Dr.Int16Array;if(e instanceof Uint16Array)return e.length*Dr.Uint16Array;if(e instanceof Int32Array)return e.length*Dr.Int32Array;if(e instanceof Uint32Array)return e.length*Dr.Uint32Array;if(e instanceof Float32Array)return e.length*Dr.Float32Array;if(e instanceof Float64Array)return e.length*Dr.Float64Array;let o=JSON.stringify(n);t=new hA.from(o).byteLength;}catch(n){return console.error("Error detected, return "+r,n),r}return t}function O5(e){let t=[],r=[e],n=0;for(;r.length;){let o=r.pop();if(typeof o=="boolean")n+=Dr.BYTES;else if(typeof o=="string")b5()?n+=S5(o):n+=o.length*Dr.STRING;else if(typeof o=="number")n+=Dr.NUMBER;else if(typeof o=="symbol")Symbol.keyFor&&Symbol.keyFor(e)?n+=Symbol.keyFor(e).length*Dr.STRING:n+=(e.toString().length-8)*Dr.STRING;else if(typeof o=="bigint")n+=hA.from(o.toString()).byteLength;else if(typeof o=="function")n+=o.toString().length;else if(typeof o=="object"&&t.indexOf(o)===-1){t.push(o);for(let a in o)r.push(o[a]);}}return n}pA.exports=function(e){let t=0;return e!==null&&typeof e=="object"?t=A5(e):t=O5(e),t};});N();x();P();C();L();N();x();P();C();L();ai();N();x();P();C();L();N();x();P();C();L();var Ws,HA=new Uint8Array(16);function yl(){if(!Ws&&(Ws=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ws))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ws(HA)}N();x();P();C();L();var nr=[];for(let e=0;e<256;++e)nr.push((e+256).toString(16).slice(1));function im(e,t=0){return (nr[e[t+0]]+nr[e[t+1]]+nr[e[t+2]]+nr[e[t+3]]+"-"+nr[e[t+4]]+nr[e[t+5]]+"-"+nr[e[t+6]]+nr[e[t+7]]+"-"+nr[e[t+8]]+nr[e[t+9]]+"-"+nr[e[t+10]]+nr[e[t+11]]+nr[e[t+12]]+nr[e[t+13]]+nr[e[t+14]]+nr[e[t+15]]).toLowerCase()}N();x();P();C();L();N();x();P();C();L();var GA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ml={randomUUID:GA};function zA(e,t,r){if(ml.randomUUID&&!t&&!e)return ml.randomUUID();e=e||{};let n=e.random||(e.rng||yl)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return im(n)}var go=zA;var AA=ho(ew()),OA=ho(iw());N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();var ka=class{constructor(t){this.config=t;}};N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();function Da(e,t){return function(){return e.apply(t,arguments)}}var{toString:DI}=Object.prototype,{getPrototypeOf:qc}=Object,Tu=(e=>t=>{let r=DI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),yn=e=>(e=e.toLowerCase(),t=>Tu(t)===e),Iu=e=>t=>typeof t===e,{isArray:No}=Array,Fa=Iu("undefined");function FI(e){return e!==null&&!Fa(e)&&e.constructor!==null&&!Fa(e.constructor)&&jr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var sw=yn("ArrayBuffer");function UI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sw(e.buffer),t}var MI=Iu("string"),jr=Iu("function"),uw=Iu("number"),Nu=e=>e!==null&&typeof e=="object",jI=e=>e===!0||e===!1,Ru=e=>{if(Tu(e)!=="object")return !1;let t=qc(e);return (t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$I=yn("Date"),qI=yn("File"),HI=yn("Blob"),GI=yn("FileList"),zI=e=>Nu(e)&&jr(e.pipe),WI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jr(e.append)&&((t=Tu(e))==="formdata"||t==="object"&&jr(e.toString)&&e.toString()==="[object FormData]"))},ZI=yn("URLSearchParams"),VI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ua(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),No(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else {let a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length,f;for(n=0;n<i;n++)f=a[n],t.call(null,e[f],f,e);}}function fw(e,t){t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}var lw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:oe)(),cw=e=>!Fa(e)&&e!==lw;function $c(){let{caseless:e}=cw(this)&&this||{},t={},r=(n,o)=>{let a=e&&fw(t,o)||o;Ru(t[a])&&Ru(n)?t[a]=$c(t[a],n):Ru(n)?t[a]=$c({},n):No(n)?t[a]=n.slice():t[a]=n;};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ua(arguments[n],r);return t}var KI=(e,t,r,{allOwnKeys:n}={})=>(Ua(t,(o,a)=>{r&&jr(o)?e[a]=Da(o,r):e[a]=o;},{allOwnKeys:n}),e),YI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XI=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r);},JI=(e,t,r,n)=>{let o,a,i,f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=r!==!1&&qc(e);}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},QI=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},eN=e=>{if(!e)return null;if(No(e))return e;let t=e.length;if(!uw(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},tN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qc(Uint8Array)),rN=(e,t)=>{let n=(e&&e[Symbol.iterator]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1]);}},nN=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},iN=yn("HTMLFormElement"),oN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ow=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),aN=yn("RegExp"),hw=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Ua(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o);}),Object.defineProperties(e,n);},sN=e=>{hw(e,(t,r)=>{if(jr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return !1;let n=e[r];if(jr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")});}});},uN=(e,t)=>{let r={},n=o=>{o.forEach(a=>{r[a]=!0;});};return No(e)?n(e):n(String(e).split(t)),r},fN=()=>{},lN=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jc="abcdefghijklmnopqrstuvwxyz",aw="0123456789",pw={DIGIT:aw,ALPHA:jc,ALPHA_DIGIT:jc+jc.toUpperCase()+aw},cN=(e=16,t=pw.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function hN(e){return !!(e&&jr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var pN=e=>{let t=new Array(10),r=(n,o)=>{if(Nu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;let a=No(n)?[]:{};return Ua(n,(i,f)=>{let l=r(i,o+1);!Fa(l)&&(a[f]=l);}),t[o]=void 0,a}}return n};return r(e,0)},dN=yn("AsyncFunction"),yN=e=>e&&(Nu(e)||jr(e))&&jr(e.then)&&jr(e.catch),Ae={isArray:No,isArrayBuffer:sw,isBuffer:FI,isFormData:WI,isArrayBufferView:UI,isString:MI,isNumber:uw,isBoolean:jI,isObject:Nu,isPlainObject:Ru,isUndefined:Fa,isDate:$I,isFile:qI,isBlob:HI,isRegExp:aN,isFunction:jr,isStream:zI,isURLSearchParams:ZI,isTypedArray:tN,isFileList:GI,forEach:Ua,merge:$c,extend:KI,trim:VI,stripBOM:YI,inherits:XI,toFlatObject:JI,kindOf:Tu,kindOfTest:yn,endsWith:QI,toArray:eN,forEachEntry:rN,matchAll:nN,isHTMLForm:iN,hasOwnProperty:ow,hasOwnProp:ow,reduceDescriptors:hw,freezeMethods:sN,toObjectSet:uN,toCamelCase:oN,noop:fN,toFiniteNumber:lN,findKey:fw,global:lw,isContextDefined:cw,ALPHABET:pw,generateString:cN,isSpecCompliantForm:hN,toJSONObject:pN,isAsyncFn:dN,isThenable:yN};N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();function xo(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o);}Ae.inherits(xo,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:Ae.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var dw=xo.prototype,yw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yw[e]={value:e};});Object.defineProperties(xo,yw);Object.defineProperty(dw,"isAxiosError",{value:!0});xo.from=(e,t,r,n,o,a)=>{let i=Object.create(dw);return Ae.toFlatObject(e,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError"),xo.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var mt=xo;N();x();P();C();L();var xu=null;function Hc(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function gw(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function mw(e,t,r){return e?e.concat(t).map(function(o,a){return o=gw(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function mN(e){return Ae.isArray(e)&&!e.some(Hc)}var gN=Ae.toFlatObject(Ae,{},null,function(t){return /^is[A-Z]/.test(t)});function vN(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new(FormData),r=Ae.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,S){return !Ae.isUndefined(S[E])});let n=r.metaTokens,o=r.visitor||p,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(t);if(!Ae.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return "";if(Ae.isDate(h))return h.toISOString();if(!l&&Ae.isBlob(h))throw new mt("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(h)||Ae.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):se.from(h):h}function p(h,E,S){let O=h;if(h&&!S&&typeof h=="object"){if(Ae.endsWith(E,"{}"))E=n?E:E.slice(0,-2),h=JSON.stringify(h);else if(Ae.isArray(h)&&mN(h)||(Ae.isFileList(h)||Ae.endsWith(E,"[]"))&&(O=Ae.toArray(h)))return E=gw(E),O.forEach(function($,q){!(Ae.isUndefined($)||$===null)&&t.append(i===!0?mw([E],q,a):i===null?E:E+"[]",c($));}),!1}return Hc(h)?!0:(t.append(mw(S,E,a),c(h)),!1)}let y=[],m=Object.assign(gN,{defaultVisitor:p,convertValue:c,isVisitable:Hc});function g(h,E){if(!Ae.isUndefined(h)){if(y.indexOf(h)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(h),Ae.forEach(h,function(O,k){(!(Ae.isUndefined(O)||O===null)&&o.call(t,O,Ae.isString(k)?k.trim():k,E,m))===!0&&g(O,E?E.concat(k):[k]);}),y.pop();}}if(!Ae.isObject(e))throw new TypeError("data must be an object");return g(e),t}var ci=vN;function vw(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ww(e,t){this._pairs=[],e&&ci(e,this,t);}var Ew=ww.prototype;Ew.append=function(t,r){this._pairs.push([t,r]);};Ew.toString=function(t){let r=t?function(n){return t.call(this,n,vw)}:vw;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var Pu=ww;function wN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ma(e,t,r){if(!t)return e;let n=r&&r.encode||wN,o=r&&r.serialize,a;if(o?a=o(t,r):a=Ae.isURLSearchParams(t)?t.toString():new Pu(t,r).toString(n),a){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a;}return e}N();x();P();C();L();var Gc=class{constructor(){this.handlers=[];}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(t){Ae.forEach(this.handlers,function(n){n!==null&&t(n);});}},zc=Gc;N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();var Lu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();var _w=typeof URLSearchParams<"u"?URLSearchParams:Pu;N();x();P();C();L();var Sw=typeof FormData<"u"?FormData:null;N();x();P();C();L();var bw=typeof Blob<"u"?Blob:null;var EN=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),_N=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),lr={isBrowser:!0,classes:{URLSearchParams:_w,FormData:Sw,Blob:bw},isStandardBrowserEnv:EN,isStandardBrowserWebWorkerEnv:_N,protocols:["http","https","file","blob","url","data"]};function Wc(e,t){return ci(e,new lr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return lr.isNode&&Ae.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}N();x();P();C();L();function SN(e){return Ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bN(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function AN(e){function t(r,n,o,a){let i=r[a++],f=Number.isFinite(+i),l=a>=r.length;return i=!i&&Ae.isArray(o)?o.length:i,l?(Ae.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!f):((!o[i]||!Ae.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&Ae.isArray(o[i])&&(o[i]=bN(o[i])),!f)}if(Ae.isFormData(e)&&Ae.isFunction(e.entries)){let r={};return Ae.forEachEntry(e,(n,o)=>{t(SN(n),o,r,0);}),r}return null}var Cu=AN;var ON={"Content-Type":void 0};function RN(e,t,r){if(Ae.isString(e))try{return (t||JSON.parse)(e),Ae.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return (r||JSON.stringify)(e)}var Bu={transitional:Lu,adapter:["xhr","http"],transformRequest:[function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Ae.isObject(t);if(a&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return o&&o?JSON.stringify(Cu(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wc(t,this.formSerializer).toString();if((f=Ae.isFileList(t))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return ci(f?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),RN(t)):t}],transformResponse:[function(t){let r=this.transitional||Bu.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Ae.isString(t)&&(n&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?mt.from(f,mt.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lr.classes.FormData,Blob:lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ae.forEach(["delete","get","head"],function(t){Bu.headers[t]={};});Ae.forEach(["post","put","patch"],function(t){Bu.headers[t]=Ae.merge(ON);});var Po=Bu;N();x();P();C();L();N();x();P();C();L();var TN=Ae.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"]),Aw=e=>{let t={},r,n,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&TN[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n);}),t};var Ow=Symbol("internals");function ja(e){return e&&String(e).trim().toLowerCase()}function ku(e){return e===!1||e==null?e:Ae.isArray(e)?e.map(ku):String(e)}function IN(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var NN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zc(e,t,r,n,o){if(Ae.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Ae.isString(t)){if(Ae.isString(n))return t.indexOf(n)!==-1;if(Ae.isRegExp(n))return n.test(t)}}function xN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function PN(e,t){let r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0});});}var Lo=class{constructor(t){t&&this.set(t);}set(t,r,n){let o=this;function a(f,l,c){let p=ja(l);if(!p)throw new Error("header name must be a non-empty string");let y=Ae.findKey(o,p);(!y||o[y]===void 0||c===!0||c===void 0&&o[y]!==!1)&&(o[y||l]=ku(f));}let i=(f,l)=>Ae.forEach(f,(c,p)=>a(c,p,l));return Ae.isPlainObject(t)||t instanceof this.constructor?i(t,r):Ae.isString(t)&&(t=t.trim())&&!NN(t)?i(Aw(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=ja(t),t){let n=Ae.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return IN(o);if(Ae.isFunction(r))return r.call(this,o,n);if(Ae.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ja(t),t){let n=Ae.findKey(this,t);return !!(n&&this[n]!==void 0&&(!r||Zc(this,this[n],n,r)))}return !1}delete(t,r){let n=this,o=!1;function a(i){if(i=ja(i),i){let f=Ae.findKey(n,i);f&&(!r||Zc(n,n[f],f,r))&&(delete n[f],o=!0);}}return Ae.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Zc(this,this[a],a,t,!0))&&(delete this[a],o=!0);}return o}normalize(t){let r=this,n={};return Ae.forEach(this,(o,a)=>{let i=Ae.findKey(n,a);if(i){r[i]=ku(o),delete r[a];return}let f=t?xN(a):String(a).trim();f!==a&&delete r[a],r[f]=ku(o),n[f]=!0;}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return Ae.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ae.isArray(n)?n.join(", "):n);}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[Ow]=this[Ow]={accessors:{}}).accessors,o=this.prototype;function a(i){let f=ja(i);n[f]||(PN(o,i),n[f]=!0);}return Ae.isArray(t)?t.forEach(a):a(t),this}};Lo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ae.freezeMethods(Lo.prototype);Ae.freezeMethods(Lo);var pr=Lo;function $a(e,t){let r=this||Po,n=t||r,o=pr.from(n.headers),a=n.data;return Ae.forEach(e,function(f){a=f.call(r,a,o.normalize(),t?t.status:void 0);}),o.normalize(),a}N();x();P();C();L();function qa(e){return !!(e&&e.__CANCEL__)}N();x();P();C();L();function Rw(e,t,r){mt.call(this,e??"canceled",mt.ERR_CANCELED,t,r),this.name="CanceledError";}Ae.inherits(Rw,mt,{__CANCEL__:!0});var hi=Rw;N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();function Vc(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new mt("Request failed with status code "+r.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));}N();x();P();C();L();var Tw=lr.isStandardBrowserEnv?function(){return {write:function(r,n,o,a,i,f){let l=[];l.push(r+"="+encodeURIComponent(n)),Ae.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Ae.isString(a)&&l.push("path="+a),Ae.isString(i)&&l.push("domain="+i),f===!0&&l.push("secure"),document.cookie=l.join("; ");},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}();N();x();P();C();L();N();x();P();C();L();function Kc(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}N();x();P();C();L();function Yc(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ha(e,t){return e&&!Kc(t)?Yc(e,t):t}N();x();P();C();L();var Iw=lr.isStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){let f=Ae.isString(i)?o(i):i;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return !0}}();N();x();P();C();L();function Xc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}N();x();P();C();L();function LN(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),p=n[a];i||(i=c),r[o]=l,n[o]=c;let y=a,m=0;for(;y!==o;)m+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;let g=p&&c-p;return g?Math.round(m*1e3/g):void 0}}var Nw=LN;function xw(e,t){let r=0,n=Nw(50,250);return o=>{let a=o.loaded,i=o.lengthComputable?o.total:void 0,f=a-r,l=n(f),c=a<=i;r=a;let p={loaded:a,total:i,progress:i?a/i:void 0,bytes:f,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};p[t?"download":"upload"]=!0,e(p);}}var CN=typeof XMLHttpRequest<"u",Pw=CN&&function(e){return new Promise(function(r,n){let o=e.data,a=pr.from(e.headers).normalize(),i=e.responseType,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f);}Ae.isFormData(o)&&(lr.isStandardBrowserEnv||lr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){let g=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(g+":"+h));}let p=Ha(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ma(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let g=pr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};Vc(function(O){r(O),l();},function(O){n(O),l();},E),c=null;}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y);},c.onabort=function(){c&&(n(new mt("Request aborted",mt.ECONNABORTED,e,c)),c=null);},c.onerror=function(){n(new mt("Network Error",mt.ERR_NETWORK,e,c)),c=null;},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",E=e.transitional||Lu;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new mt(h,E.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,e,c)),c=null;},lr.isStandardBrowserEnv){let g=(e.withCredentials||Iw(p))&&e.xsrfCookieName&&Tw.read(e.xsrfCookieName);g&&a.set(e.xsrfHeaderName,g);}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&Ae.forEach(a.toJSON(),function(h,E){c.setRequestHeader(E,h);}),Ae.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",xw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",xw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=g=>{c&&(n(!g||g.type?new hi(null,e,c):g),c.abort(),c=null);},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));let m=Xc(p);if(m&&lr.protocols.indexOf(m)===-1){n(new mt("Unsupported protocol "+m+":",mt.ERR_BAD_REQUEST,e));return}c.send(o||null);})};var Du={http:xu,xhr:Pw};Ae.forEach(Du,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch{}Object.defineProperty(e,"adapterName",{value:t});}});var Lw={getAdapter:e=>{e=Ae.isArray(e)?e:[e];let{length:t}=e,r,n;for(let o=0;o<t&&(r=e[o],!(n=Ae.isString(r)?Du[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new mt(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ae.hasOwnProp(Du,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!Ae.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Du};function Jc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hi(null,e)}function Fu(e){return Jc(e),e.headers=pr.from(e.headers),e.data=$a.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lw.getAdapter(e.adapter||Po.adapter)(e).then(function(n){return Jc(e),n.data=$a.call(e,e.transformResponse,n),n.headers=pr.from(n.headers),n},function(n){return qa(n)||(Jc(e),n&&n.response&&(n.response.data=$a.call(e,e.transformResponse,n.response),n.response.headers=pr.from(n.response.headers))),Promise.reject(n)})}N();x();P();C();L();var Cw=e=>e instanceof pr?e.toJSON():e;function jn(e,t){t=t||{};let r={};function n(c,p,y){return Ae.isPlainObject(c)&&Ae.isPlainObject(p)?Ae.merge.call({caseless:y},c,p):Ae.isPlainObject(p)?Ae.merge({},p):Ae.isArray(p)?p.slice():p}function o(c,p,y){if(Ae.isUndefined(p)){if(!Ae.isUndefined(c))return n(void 0,c,y)}else return n(c,p,y)}function a(c,p){if(!Ae.isUndefined(p))return n(void 0,p)}function i(c,p){if(Ae.isUndefined(p)){if(!Ae.isUndefined(c))return n(void 0,c)}else return n(void 0,p)}function f(c,p,y){if(y in t)return n(c,p);if(y in e)return n(void 0,c)}let l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f,headers:(c,p)=>o(Cw(c),Cw(p),!0)};return Ae.forEach(Object.keys(Object.assign({},e,t)),function(p){let y=l[p]||o,m=y(e[p],t[p],p);Ae.isUndefined(m)&&y!==f||(r[p]=m);}),r}N();x();P();C();L();N();x();P();C();L();var Uu="1.4.0";var Qc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e};});var Bw={};Qc.transitional=function(t,r,n){function o(a,i){return "[Axios v"+Uu+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return (a,i,f)=>{if(t===!1)throw new mt(o(i," has been removed"+(r?" in "+r:"")),mt.ERR_DEPRECATED);return r&&!Bw[i]&&(Bw[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,f):!0}};function BN(e,t,r){if(typeof e!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],i=t[a];if(i){let f=e[a],l=f===void 0||i(f,a,e);if(l!==!0)throw new mt("option "+a+" must be "+l,mt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new mt("Unknown option "+a,mt.ERR_BAD_OPTION)}}var Mu={assertOptions:BN,validators:Qc};var pi=Mu.validators,Co=class{constructor(t){this.defaults=t,this.interceptors={request:new zc,response:new zc};}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=jn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Mu.assertOptions(n,{silentJSONParsing:pi.transitional(pi.boolean),forcedJSONParsing:pi.transitional(pi.boolean),clarifyTimeoutError:pi.transitional(pi.boolean)},!1),o!=null&&(Ae.isFunction(o)?r.paramsSerializer={serialize:o}:Mu.assertOptions(o,{encode:pi.function,serialize:pi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Ae.merge(a.common,a[r.method]),i&&Ae.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h];}),r.headers=pr.concat(i,a);let f=[],l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(l=l&&E.synchronous,f.unshift(E.fulfilled,E.rejected));});let c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected);});let p,y=0,m;if(!l){let h=[Fu.bind(this),void 0];for(h.unshift.apply(h,f),h.push.apply(h,c),m=h.length,p=Promise.resolve(r);y<m;)p=p.then(h[y++],h[y++]);return p}m=f.length;let g=r;for(y=0;y<m;){let h=f[y++],E=f[y++];try{g=h(g);}catch(S){E.call(this,S);break}}try{p=Fu.call(this,g);}catch(h){return Promise.reject(h)}for(y=0,m=c.length;y<m;)p=p.then(c[y++],c[y++]);return p}getUri(t){t=jn(this.defaults,t);let r=Ha(t.baseURL,t.url);return Ma(r,t.params,t.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){Co.prototype[t]=function(r,n){return this.request(jn(n||{},{method:t,url:r,data:(n||{}).data}))};});Ae.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,f){return this.request(jn(f||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Co.prototype[t]=r(),Co.prototype[t+"Form"]=r(!0);});var Ga=Co;N();x();P();C();L();var za=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a;});let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null;}),this.promise.then=o=>{let a,i=new Promise(f=>{n.subscribe(f),a=f;}).then(o);return i.cancel=function(){n.unsubscribe(a);},i},t(function(a,i,f){n.reason||(n.reason=new hi(a,i,f),r(n.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t];}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1);}static source(){let t;return {token:new za(function(o){t=o;}),cancel:t}}},kw=za;N();x();P();C();L();function eh(e){return function(r){return e.apply(null,r)}}N();x();P();C();L();function th(e){return Ae.isObject(e)&&e.isAxiosError===!0}N();x();P();C();L();var rh={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(rh).forEach(([e,t])=>{rh[t]=e;});var Dw=rh;function Fw(e){let t=new Ga(e),r=Da(Ga.prototype.request,t);return Ae.extend(r,Ga.prototype,t,{allOwnKeys:!0}),Ae.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Fw(jn(e,o))},r}var Ht=Fw(Po);Ht.Axios=Ga;Ht.CanceledError=hi;Ht.CancelToken=kw;Ht.isCancel=qa;Ht.VERSION=Uu;Ht.toFormData=ci;Ht.AxiosError=mt;Ht.Cancel=Ht.CanceledError;Ht.all=function(t){return Promise.all(t)};Ht.spread=eh;Ht.isAxiosError=th;Ht.mergeConfig=jn;Ht.AxiosHeaders=pr;Ht.formToJSON=e=>Cu(Ae.isHTMLForm(e)?new FormData(e):e);Ht.HttpStatusCode=Dw;Ht.default=Ht;var Wa=Ht;var ih=ho(Mw());N();x();P();C();L();var $n=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;}};N();x();P();C();L();var ju=class extends Error{constructor(t){super(t),this.name="CancelError";}get isCancelled(){return !0}},mn,gn,Qr,di,ki,Za,Bo,en=class{constructor(t){ot(this,mn,void 0);ot(this,gn,void 0);ot(this,Qr,void 0);ot(this,di,void 0);ot(this,ki,void 0);ot(this,Za,void 0);ot(this,Bo,void 0);Ke(this,mn,!1),Ke(this,gn,!1),Ke(this,Qr,!1),Ke(this,di,[]),Ke(this,ki,new Promise((r,n)=>{Ke(this,Za,r),Ke(this,Bo,n);let o=f=>{var l;Q(this,mn)||Q(this,gn)||Q(this,Qr)||(Ke(this,mn,!0),(l=Q(this,Za))==null||l.call(this,f));},a=f=>{var l;Q(this,mn)||Q(this,gn)||Q(this,Qr)||(Ke(this,gn,!0),(l=Q(this,Bo))==null||l.call(this,f));},i=f=>{Q(this,mn)||Q(this,gn)||Q(this,Qr)||Q(this,di).push(f);};return Object.defineProperty(i,"isResolved",{get:()=>Q(this,mn)}),Object.defineProperty(i,"isRejected",{get:()=>Q(this,gn)}),Object.defineProperty(i,"isCancelled",{get:()=>Q(this,Qr)}),t(o,a,i)}));}get[Symbol.toStringTag](){return "Cancellable Promise"}then(t,r){return Q(this,ki).then(t,r)}catch(t){return Q(this,ki).catch(t)}finally(t){return Q(this,ki).finally(t)}cancel(){var t;if(!(Q(this,mn)||Q(this,gn)||Q(this,Qr))){if(Ke(this,Qr,!0),Q(this,di).length)try{for(let r of Q(this,di))r();}catch(r){console.warn("Cancellation threw an error",r);return}Q(this,di).length=0,(t=Q(this,Bo))==null||t.call(this,new ju("Request aborted"));}}get isCancelled(){return Q(this,Qr)}};mn=new WeakMap,gn=new WeakMap,Qr=new WeakMap,di=new WeakMap,ki=new WeakMap,Za=new WeakMap,Bo=new WeakMap;var oh=e=>e!=null,qu=e=>typeof e=="string",nh=e=>qu(e)&&e!=="",jw=e=>typeof e=="object"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.arrayBuffer=="function"&&typeof e.constructor=="function"&&typeof e.constructor.name=="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),kN=e=>e instanceof ih.default,DN=e=>e>=200&&e<300,FN=e=>{try{return btoa(e)}catch{return se.from(e).toString("base64")}},UN=e=>{let t=[],r=(o,a)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(a))}`);},n=(o,a)=>{oh(a)&&(Array.isArray(a)?a.forEach(i=>{n(o,i);}):typeof a=="object"?Object.entries(a).forEach(([i,f])=>{n(`${o}[${i}]`,f);}):r(o,a));};return Object.entries(e).forEach(([o,a])=>{n(o,a);}),t.length>0?`?${t.join("&")}`:""},MN=(e,t)=>{let r=e.ENCODE_PATH||encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(a,i)=>t.path?.hasOwnProperty(i)?r(String(t.path[i])):a),o=`${e.BASE}${n}`;return t.query?`${o}${UN(t.query)}`:o},jN=e=>{if(e.formData){let t=new ih.default,r=(n,o)=>{qu(o)||jw(o)?t.append(n,o):t.append(n,JSON.stringify(o));};return Object.entries(e.formData).filter(([n,o])=>oh(o)).forEach(([n,o])=>{Array.isArray(o)?o.forEach(a=>r(n,a)):r(n,o);}),t}},$u=async(e,t)=>typeof t=="function"?t(e):t,$N=async(e,t,r)=>{let n=await $u(t,e.TOKEN),o=await $u(t,e.USERNAME),a=await $u(t,e.PASSWORD),i=await $u(t,e.HEADERS),f=typeof r?.getHeaders=="function"&&r?.getHeaders()||{},l=Object.entries({Accept:"application/json",...i,...t.headers,...f}).filter(([c,p])=>oh(p)).reduce((c,[p,y])=>({...c,[p]:String(y)}),{});if(nh(n)&&(l.Authorization=`Bearer ${n}`),nh(o)&&nh(a)){let c=FN(`${o}:${a}`);l.Authorization=`Basic ${c}`;}return t.body&&(t.mediaType?l["Content-Type"]=t.mediaType:jw(t.body)?l["Content-Type"]=t.body.type||"application/octet-stream":qu(t.body)?l["Content-Type"]="text/plain":kN(t.body)||(l["Content-Type"]="application/json")),l},qN=e=>{if(e.body)return e.body},HN=async(e,t,r,n,o,a,i)=>{let f=Wa.CancelToken.source(),l={url:r,headers:a,data:n??o,method:t.method,withCredentials:e.WITH_CREDENTIALS,cancelToken:f.token};i(()=>f.cancel("The user aborted a request."));try{return await Wa.request(l)}catch(c){let p=c;if(p.response)return p.response;throw c}},GN=(e,t)=>{if(t){let r=e.headers[t];if(qu(r))return r}},zN=e=>{if(e.status!==204)return e.data},WN=(e,t)=>{let n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[t.status];if(n)throw new $n(e,t,n);if(!t.ok)throw new $n(e,t,"Generic Error")},$w=(e,t)=>new en(async(r,n,o)=>{try{let a=MN(e,t),i=jN(t),f=qN(t),l=await $N(e,t,i);if(!o.isCancelled){let c=await HN(e,t,a,f,i,l,o),p=zN(c),y=GN(c,t.responseHeader),m={url:a,ok:DN(c.status),status:c.status,statusText:c.statusText,body:y??p};WN(t,m),r(m.body);}}catch(a){n(a);}});var ko=class extends ka{constructor(t){super(t);}request(t){return $w(this.config,t)}};N();x();P();C();L();var Va=class{constructor(t){this.httpRequest=t;}completion(t){return this.httpRequest.request({method:"POST",url:"/v1/completions",body:t,mediaType:"application/json",errors:{400:"Bad Request"}})}event(t){return this.httpRequest.request({method:"POST",url:"/v1/events",body:t,mediaType:"application/json",errors:{400:"Bad Request"}})}health(){return this.httpRequest.request({method:"POST",url:"/v1/health"})}};var Do=class{constructor(t,r=ko){this.request=new r({BASE:t?.BASE??"https://playground.app.tabbyml.com/tabby",VERSION:t?.VERSION??"0.1.0",WITH_CREDENTIALS:t?.WITH_CREDENTIALS??!1,CREDENTIALS:t?.CREDENTIALS??"include",TOKEN:t?.TOKEN,USERNAME:t?.USERNAME,PASSWORD:t?.PASSWORD,HEADERS:t?.HEADERS,ENCODE_PATH:t?.ENCODE_PATH}),this.v1=new Va(this.request);}};N();x();P();C();L();N();x();P();C();L();function qn(e){return e.match(/.*(?:$|\r?\n)/g).filter(Boolean)}function ah(e){return e.match(/\w+|\W+/g).filter(Boolean)}function Di(e){return e.trim().length===0}function Hu(e,t){return new en((r,n,o)=>{e.then(a=>{r(a);}).catch(a=>{n(a);}),o(()=>{t();});})}N();x();P();C();L();ai();N();x();P();C();L();function sh(e){this.message=e;}sh.prototype=new Error,sh.prototype.name="InvalidCharacterError";var qw=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new sh("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,a=0,i="";n=t.charAt(a++);~n&&(r=o%4?64*r+n:n,o++%4)?i+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return i};function ZN(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(r){return decodeURIComponent(qw(r).replace(/(.)/g,function(n,o){var a=o.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return qw(t)}}function Gu(e){this.message=e;}function VN(e,t){if(typeof e!="string")throw new Gu("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(ZN(e.split(".")[r]))}catch(n){throw new Gu("Invalid token specified: "+n.message)}}Gu.prototype=new Error,Gu.prototype.name="InvalidTokenError";var zu=VN;N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();var Ka=class{constructor(t){this.httpRequest=t;}deviceToken(t){return this.httpRequest.request({method:"POST",url:"/device-token",body:t})}deviceTokenAccept(t){return this.httpRequest.request({method:"POST",url:"/device-token/accept",query:t})}deviceTokenRefresh(t){return this.httpRequest.request({method:"POST",url:"/device-token/refresh",headers:{Authorization:`Bearer ${t}`}})}usage(t){return this.httpRequest.request({method:"POST",url:"/usage",body:t})}};var Fi=class{constructor(t,r=ko){this.request=new r({BASE:t?.BASE,VERSION:t?.VERSION??"0.0.0",WITH_CREDENTIALS:t?.WITH_CREDENTIALS??!1,CREDENTIALS:t?.CREDENTIALS??"include",TOKEN:t?.TOKEN,USERNAME:t?.USERNAME,PASSWORD:t?.PASSWORD,HEADERS:t?.HEADERS,ENCODE_PATH:t?.ENCODE_PATH}),this.api=new Ka(this.request);}};N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();N();x();P();C();L();var qf=null;N();x();P();C();L();var sd=ho(t2());var Wr=(0, sd.default)(),Vf=[Wr];Wr.onChild=e=>{Vf.push(e);};var Rn=class extends zs{constructor(r){super();this.logger=Wr.child({component:"Auth"});this.dataStore=null;this.pollingTokenTimer=null;this.stopPollingTokenTimer=null;this.refreshTokenTimer=null;this.authApi=null;this.jwt=null;this.endpoint=r.endpoint,this.dataStore=r.dataStore||qf;let n=this.endpoint.replace(/\/tabby\/?$/,"/api");this.authApi=new Fi({BASE:n});}static async create(r){let n=new Rn(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:zu(r)};n.payload.exp*1e3-Date.now()<Rn.tokenStrategy.refresh.beforeExpire?(this.jwt=await this.refreshToken(n),await this.save()):this.jwt=n,this.scheduleRefreshToken();}}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()),this.refreshTokenTimer&&(clearTimeout(this.refreshTokenTimer),this.refreshTokenTimer=null),this.pollingTokenTimer&&(clearInterval(this.pollingTokenTimer),this.pollingTokenTimer=null),this.stopPollingTokenTimer&&(clearTimeout(this.stopPollingTokenTimer),this.stopPollingTokenTimer=null);}async requestToken(){try{await this.reset(),this.logger.debug("Start to request device token");let r=await this.authApi.api.deviceToken({auth_url:this.endpoint});this.logger.debug({deviceToken:r},"Request device token response");let n=new URL(Rn.authPageUrl);return n.searchParams.append("code",r.data.code),this.schedulePollingToken(r.data.code),n.toString()}catch(r){throw this.logger.error({error:r},"Error when requesting token"),r}}async refreshToken(r,n=0){try{this.logger.debug({retry:n},"Start to refresh token");let o=await this.authApi.api.deviceTokenRefresh(r.token);return this.logger.debug({refreshedJwt:o},"Refresh token response"),{token:o.data.jwt,payload:zu(o.data.jwt)}}catch(o){if(o instanceof $n&&[401,403,405].indexOf(o.status)!==-1)this.logger.debug({error:o},"Error when refreshing jwt");else if(this.logger.error({error:o},"Unknown error when refreshing jwt"),n<Rn.tokenStrategy.refresh.maxTry)return await new Promise(a=>setTimeout(a,Rn.tokenStrategy.refresh.retryDelay)),this.logger.debug("Retry refreshing jwt"),this.refreshToken(r,n+1);throw {...o,retry:n}}}async schedulePollingToken(r){this.pollingTokenTimer=setInterval(async()=>{try{let n=await this.authApi.api.deviceTokenAccept({code:r});this.logger.debug({response:n},"Poll jwt response"),this.jwt={token:n.data.jwt,payload:zu(n.data.jwt)},await this.save(),this.scheduleRefreshToken(),super.emit("updated",this.jwt),clearInterval(this.pollingTokenTimer),this.pollingTokenTimer=null;}catch(n){n instanceof $n&&[401,403,405].indexOf(n.status)!==-1?this.logger.debug({error:n},"Expected error when polling jwt"):this.logger.error({error:n},"Error when polling jwt");}},Rn.tokenStrategy.polling.interval),this.stopPollingTokenTimer=setTimeout(()=>{this.pollingTokenTimer&&(clearInterval(this.pollingTokenTimer),this.pollingTokenTimer=null);},Rn.tokenStrategy.polling.timeout);}scheduleRefreshToken(){if(this.refreshTokenTimer&&(clearTimeout(this.refreshTokenTimer),this.refreshTokenTimer=null),!this.jwt)return null;let r=Math.max(0,this.jwt.payload.exp*1e3-Rn.tokenStrategy.refresh.beforeExpire-Date.now());this.logger.debug({refreshDelay:r},"Schedule refresh token"),this.refreshTokenTimer=setTimeout(async()=>{this.jwt=await this.refreshToken(this.jwt),await this.save(),this.scheduleRefreshToken(),super.emit("updated",this.jwt);},r);}},sa=Rn;sa.authPageUrl="https://app.tabbyml.com/account/device-token",sa.tokenStrategy={polling:{interval:5e3,timeout:5*60*1e3},refresh:{beforeExpire:30*60*1e3,maxTry:5,retryDelay:2e3}};N();x();P();C();L();var B2={server:{endpoint:"http://localhost:8080"},logs:{level:"silent"},anonymousUsageTracking:{disable:!1}};N();x();P();C();L();N();x();P();C();L();var Ts=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,D2=new Set,ud=typeof te=="object"&&te?te:{},F2=(e,t,r,n)=>{typeof ud.emitWarning=="function"?ud.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);},Jf=globalThis.AbortController,k2=globalThis.AbortSignal;if(typeof Jf>"u"){k2=class{constructor(){st(this,"onabort");st(this,"_onabort",[]);st(this,"reason");st(this,"aborted",!1);}addEventListener(n,o){this._onabort.push(o);}},Jf=class{constructor(){st(this,"signal",new k2);t();}abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);this.signal.onabort?.(n);}}};let e=ud.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,F2("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}var H4=e=>!D2.has(e),Ai=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),U2=e=>Ai(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?fa:null:null,fa=class extends Array{constructor(t){super(t),this.fill(0);}},la,ua=class{constructor(t,r){st(this,"heap");st(this,"length");if(!Q(ua,la))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){let r=U2(t);if(!r)return [];Ke(ua,la,!0);let n=new ua(t,r);return Ke(ua,la,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}},Kf=ua;la=new WeakMap,ot(Kf,la,!1);var un,Cr,Tn,fn,ca,Wt,ln,Zt,Nt,lt,Er,Br,hr,Qt,cn,ar,ei,ti,hn,In,Ti,Ir,Ns,fd,ao,ri,xs,kr,el,M2,so,ha,Ps,Nn,Oi,xn,Ri,Ls,ld,pa,Yf,da,Xf,Tt,xt,Cs,cd,uo,Is,hd=class{constructor(t){ot(this,Ns);ot(this,el);ot(this,Nn);ot(this,xn);ot(this,Ls);ot(this,pa);ot(this,da);ot(this,Tt);ot(this,Cs);ot(this,uo);ot(this,un,void 0);ot(this,Cr,void 0);ot(this,Tn,void 0);ot(this,fn,void 0);ot(this,ca,void 0);st(this,"ttl");st(this,"ttlResolution");st(this,"ttlAutopurge");st(this,"updateAgeOnGet");st(this,"updateAgeOnHas");st(this,"allowStale");st(this,"noDisposeOnSet");st(this,"noUpdateTTL");st(this,"maxEntrySize");st(this,"sizeCalculation");st(this,"noDeleteOnFetchRejection");st(this,"noDeleteOnStaleGet");st(this,"allowStaleOnFetchAbort");st(this,"allowStaleOnFetchRejection");st(this,"ignoreFetchAbort");ot(this,Wt,void 0);ot(this,ln,void 0);ot(this,Zt,void 0);ot(this,Nt,void 0);ot(this,lt,void 0);ot(this,Er,void 0);ot(this,Br,void 0);ot(this,hr,void 0);ot(this,Qt,void 0);ot(this,cn,void 0);ot(this,ar,void 0);ot(this,ei,void 0);ot(this,ti,void 0);ot(this,hn,void 0);ot(this,In,void 0);ot(this,Ti,void 0);ot(this,Ir,void 0);ot(this,ao,()=>{});ot(this,ri,()=>{});ot(this,xs,()=>{});ot(this,kr,()=>!1);ot(this,so,t=>{});ot(this,ha,(t,r,n)=>{});ot(this,Ps,(t,r,n,o)=>{if(n||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:r=0,ttl:n,ttlResolution:o=1,ttlAutopurge:a,updateAgeOnGet:i,updateAgeOnHas:f,allowStale:l,dispose:c,disposeAfter:p,noDisposeOnSet:y,noUpdateTTL:m,maxSize:g=0,maxEntrySize:h=0,sizeCalculation:E,fetchMethod:S,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:q,ignoreFetchAbort:K}=t;if(r!==0&&!Ai(r))throw new TypeError("max option must be a nonnegative integer");let j=r?U2(r):Array;if(!j)throw new Error("invalid max value: "+r);if(Ke(this,un,r),Ke(this,Cr,g),this.maxEntrySize=h||Q(this,Cr),this.sizeCalculation=E,this.sizeCalculation){if(!Q(this,Cr)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ke(this,ca,S),Ke(this,Ti,!!S),Ke(this,Zt,new Map),Ke(this,Nt,new Array(r).fill(void 0)),Ke(this,lt,new Array(r).fill(void 0)),Ke(this,Er,new j(r)),Ke(this,Br,new j(r)),Ke(this,hr,0),Ke(this,Qt,0),Ke(this,cn,Kf.create(r)),Ke(this,Wt,0),Ke(this,ln,0),typeof c=="function"&&Ke(this,Tn,c),typeof p=="function"?(Ke(this,fn,p),Ke(this,ar,[])):(Ke(this,fn,void 0),Ke(this,ar,void 0)),Ke(this,In,!!Q(this,Tn)),Ke(this,Ir,!!Q(this,fn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!K,this.maxEntrySize!==0){if(Q(this,Cr)!==0&&!Ai(Q(this,Cr)))throw new TypeError("maxSize must be a positive integer if specified");if(!Ai(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");rt(this,el,M2).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!f,this.ttlResolution=Ai(o)||o===0?o:1,this.ttlAutopurge=!!a,this.ttl=n||0,this.ttl){if(!Ai(this.ttl))throw new TypeError("ttl must be a positive integer if specified");rt(this,Ns,fd).call(this);}if(Q(this,un)===0&&this.ttl===0&&Q(this,Cr)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Q(this,un)&&!Q(this,Cr)){let D="LRU_CACHE_UNBOUNDED";H4(D)&&(D2.add(D),F2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,hd));}}static unsafeExposeInternals(t){return {starts:Q(t,ti),ttls:Q(t,hn),sizes:Q(t,ei),keyMap:Q(t,Zt),keyList:Q(t,Nt),valList:Q(t,lt),next:Q(t,Er),prev:Q(t,Br),get head(){return Q(t,hr)},get tail(){return Q(t,Qt)},free:Q(t,cn),isBackgroundFetch:r=>{var n;return rt(n=t,Tt,xt).call(n,r)},backgroundFetch:(r,n,o,a)=>{var i;return rt(i=t,da,Xf).call(i,r,n,o,a)},moveToTail:r=>{var n;return rt(n=t,uo,Is).call(n,r)},indexes:r=>{var n;return rt(n=t,Nn,Oi).call(n,r)},rindexes:r=>{var n;return rt(n=t,xn,Ri).call(n,r)},isStale:r=>{var n;return Q(n=t,kr).call(n,r)}}}get max(){return Q(this,un)}get maxSize(){return Q(this,Cr)}get calculatedSize(){return Q(this,ln)}get size(){return Q(this,Wt)}get fetchMethod(){return Q(this,ca)}get dispose(){return Q(this,Tn)}get disposeAfter(){return Q(this,fn)}getRemainingTTL(t){return Q(this,Zt).has(t)?1/0:0}*entries(){for(let t of rt(this,Nn,Oi).call(this))Q(this,lt)[t]!==void 0&&Q(this,Nt)[t]!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield [Q(this,Nt)[t],Q(this,lt)[t]]);}*rentries(){for(let t of rt(this,xn,Ri).call(this))Q(this,lt)[t]!==void 0&&Q(this,Nt)[t]!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield [Q(this,Nt)[t],Q(this,lt)[t]]);}*keys(){for(let t of rt(this,Nn,Oi).call(this)){let r=Q(this,Nt)[t];r!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield r);}}*rkeys(){for(let t of rt(this,xn,Ri).call(this)){let r=Q(this,Nt)[t];r!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield r);}}*values(){for(let t of rt(this,Nn,Oi).call(this))Q(this,lt)[t]!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield Q(this,lt)[t]);}*rvalues(){for(let t of rt(this,xn,Ri).call(this))Q(this,lt)[t]!==void 0&&!rt(this,Tt,xt).call(this,Q(this,lt)[t])&&(yield Q(this,lt)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of rt(this,Nn,Oi).call(this)){let o=Q(this,lt)[n],a=rt(this,Tt,xt).call(this,o)?o.__staleWhileFetching:o;if(a!==void 0&&t(a,Q(this,Nt)[n],this))return this.get(Q(this,Nt)[n],r)}}forEach(t,r=this){for(let n of rt(this,Nn,Oi).call(this)){let o=Q(this,lt)[n],a=rt(this,Tt,xt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,Q(this,Nt)[n],this);}}rforEach(t,r=this){for(let n of rt(this,xn,Ri).call(this)){let o=Q(this,lt)[n],a=rt(this,Tt,xt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,Q(this,Nt)[n],this);}}purgeStale(){let t=!1;for(let r of rt(this,xn,Ri).call(this,{allowStale:!0}))Q(this,kr).call(this,r)&&(this.delete(Q(this,Nt)[r]),t=!0);return t}dump(){let t=[];for(let r of rt(this,Nn,Oi).call(this,{allowStale:!0})){let n=Q(this,Nt)[r],o=Q(this,lt)[r],a=rt(this,Tt,xt).call(this,o)?o.__staleWhileFetching:o;if(a===void 0||n===void 0)continue;let i={value:a};if(Q(this,hn)&&Q(this,ti)){i.ttl=Q(this,hn)[r];let f=Ts.now()-Q(this,ti)[r];i.start=Math.floor(Date.now()-f);}Q(this,ei)&&(i.size=Q(this,ei)[r]),t.unshift([n,i]);}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let o=Date.now()-n.start;n.start=Ts.now()-o;}this.set(r,n.value,n);}}set(t,r,n={}){var m,g;if(r===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:a,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:l}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,p=Q(this,Ps).call(this,t,r,n.size||0,f);if(this.maxEntrySize&&p>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let y=Q(this,Wt)===0?void 0:Q(this,Zt).get(t);if(y===void 0)y=Q(this,Wt)===0?Q(this,Qt):Q(this,cn).length!==0?Q(this,cn).pop():Q(this,Wt)===Q(this,un)?rt(this,pa,Yf).call(this,!1):Q(this,Wt),Q(this,Nt)[y]=t,Q(this,lt)[y]=r,Q(this,Zt).set(t,y),Q(this,Er)[Q(this,Qt)]=y,Q(this,Br)[y]=Q(this,Qt),Ke(this,Qt,y),Fs(this,Wt)._++,Q(this,ha).call(this,y,p,l),l&&(l.set="add"),c=!1;else {rt(this,uo,Is).call(this,y);let h=Q(this,lt)[y];if(r!==h){if(Q(this,Ti)&&rt(this,Tt,xt).call(this,h)?h.__abortController.abort(new Error("replaced")):i||(Q(this,In)&&((m=Q(this,Tn))==null||m.call(this,h,t,"set")),Q(this,Ir)&&Q(this,ar)?.push([h,t,"set"])),Q(this,so).call(this,y),Q(this,ha).call(this,y,p,l),Q(this,lt)[y]=r,l){l.set="replace";let E=h&&rt(this,Tt,xt).call(this,h)?h.__staleWhileFetching:h;E!==void 0&&(l.oldValue=E);}}else l&&(l.set="update");}if(o!==0&&!Q(this,hn)&&rt(this,Ns,fd).call(this),Q(this,hn)&&(c||Q(this,xs).call(this,y,o,a),l&&Q(this,ri).call(this,l,y)),!i&&Q(this,Ir)&&Q(this,ar)){let h=Q(this,ar),E;for(;E=h?.shift();)(g=Q(this,fn))==null||g.call(this,...E);}return this}pop(){var t;try{for(;Q(this,Wt);){let r=Q(this,lt)[Q(this,hr)];if(rt(this,pa,Yf).call(this,!0),rt(this,Tt,xt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(Q(this,Ir)&&Q(this,ar)){let r=Q(this,ar),n;for(;n=r?.shift();)(t=Q(this,fn))==null||t.call(this,...n);}}}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:o}=r,a=Q(this,Zt).get(t);if(a!==void 0){let i=Q(this,lt)[a];if(rt(this,Tt,xt).call(this,i)&&i.__staleWhileFetching===void 0)return !1;if(Q(this,kr).call(this,a))o&&(o.has="stale",Q(this,ri).call(this,o,a));else return n&&Q(this,ao).call(this,a),o&&(o.has="hit",Q(this,ri).call(this,o,a)),!0}else o&&(o.has="miss");return !1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,o=Q(this,Zt).get(t);if(o!==void 0&&(n||!Q(this,kr).call(this,o))){let a=Q(this,lt)[o];return rt(this,Tt,xt).call(this,a)?a.__staleWhileFetching:a}}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:E,forceRefresh:S=!1,status:O,signal:k}=r;if(!Q(this,Ti))return O&&(O.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:O});let $={allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:i,noDisposeOnSet:f,size:l,sizeCalculation:c,noUpdateTTL:p,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:h,ignoreFetchAbort:g,status:O,signal:k},q=Q(this,Zt).get(t);if(q===void 0){O&&(O.fetch="miss");let K=rt(this,da,Xf).call(this,t,q,$,E);return K.__returned=K}else {let K=Q(this,lt)[q];if(rt(this,Tt,xt).call(this,K)){let J=n&&K.__staleWhileFetching!==void 0;return O&&(O.fetch="inflight",J&&(O.returnedStale=!0)),J?K.__staleWhileFetching:K.__returned=K}let j=Q(this,kr).call(this,q);if(!S&&!j)return O&&(O.fetch="hit"),rt(this,uo,Is).call(this,q),o&&Q(this,ao).call(this,q),O&&Q(this,ri).call(this,O,q),K;let D=rt(this,da,Xf).call(this,t,q,$,E),H=D.__staleWhileFetching!==void 0&&n;return O&&(O.fetch=j?"stale":"refresh",H&&j&&(O.returnedStale=!0)),H?D.__staleWhileFetching:D.__returned=D}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:i}=r,f=Q(this,Zt).get(t);if(f!==void 0){let l=Q(this,lt)[f],c=rt(this,Tt,xt).call(this,l);return i&&Q(this,ri).call(this,i,f),Q(this,kr).call(this,f)?(i&&(i.get="stale"),c?(i&&n&&l.__staleWhileFetching!==void 0&&(i.returnedStale=!0),n?l.__staleWhileFetching:void 0):(a||this.delete(t),i&&n&&(i.returnedStale=!0),n?l:void 0)):(i&&(i.get="hit"),c?l.__staleWhileFetching:(rt(this,uo,Is).call(this,f),o&&Q(this,ao).call(this,f),l))}else i&&(i.get="miss");}delete(t){var n,o;let r=!1;if(Q(this,Wt)!==0){let a=Q(this,Zt).get(t);if(a!==void 0)if(r=!0,Q(this,Wt)===1)this.clear();else {Q(this,so).call(this,a);let i=Q(this,lt)[a];rt(this,Tt,xt).call(this,i)?i.__abortController.abort(new Error("deleted")):(Q(this,In)||Q(this,Ir))&&(Q(this,In)&&((n=Q(this,Tn))==null||n.call(this,i,t,"delete")),Q(this,Ir)&&Q(this,ar)?.push([i,t,"delete"])),Q(this,Zt).delete(t),Q(this,Nt)[a]=void 0,Q(this,lt)[a]=void 0,a===Q(this,Qt)?Ke(this,Qt,Q(this,Br)[a]):a===Q(this,hr)?Ke(this,hr,Q(this,Er)[a]):(Q(this,Er)[Q(this,Br)[a]]=Q(this,Er)[a],Q(this,Br)[Q(this,Er)[a]]=Q(this,Br)[a]),Fs(this,Wt)._--,Q(this,cn).push(a);}}if(Q(this,Ir)&&Q(this,ar)?.length){let a=Q(this,ar),i;for(;i=a?.shift();)(o=Q(this,fn))==null||o.call(this,...i);}return r}clear(){var t,r;for(let n of rt(this,xn,Ri).call(this,{allowStale:!0})){let o=Q(this,lt)[n];if(rt(this,Tt,xt).call(this,o))o.__abortController.abort(new Error("deleted"));else {let a=Q(this,Nt)[n];Q(this,In)&&((t=Q(this,Tn))==null||t.call(this,o,a,"delete")),Q(this,Ir)&&Q(this,ar)?.push([o,a,"delete"]);}}if(Q(this,Zt).clear(),Q(this,lt).fill(void 0),Q(this,Nt).fill(void 0),Q(this,hn)&&Q(this,ti)&&(Q(this,hn).fill(0),Q(this,ti).fill(0)),Q(this,ei)&&Q(this,ei).fill(0),Ke(this,hr,0),Ke(this,Qt,0),Q(this,cn).length=0,Ke(this,ln,0),Ke(this,Wt,0),Q(this,Ir)&&Q(this,ar)){let n=Q(this,ar),o;for(;o=n?.shift();)(r=Q(this,fn))==null||r.call(this,...o);}}},Qf=hd;un=new WeakMap,Cr=new WeakMap,Tn=new WeakMap,fn=new WeakMap,ca=new WeakMap,Wt=new WeakMap,ln=new WeakMap,Zt=new WeakMap,Nt=new WeakMap,lt=new WeakMap,Er=new WeakMap,Br=new WeakMap,hr=new WeakMap,Qt=new WeakMap,cn=new WeakMap,ar=new WeakMap,ei=new WeakMap,ti=new WeakMap,hn=new WeakMap,In=new WeakMap,Ti=new WeakMap,Ir=new WeakMap,Ns=new WeakSet,fd=function(){let t=new fa(Q(this,un)),r=new fa(Q(this,un));Ke(this,hn,t),Ke(this,ti,r),Ke(this,xs,(a,i,f=Ts.now())=>{if(r[a]=i!==0?f:0,t[a]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{Q(this,kr).call(this,a)&&this.delete(Q(this,Nt)[a]);},i+1);l.unref&&l.unref();}}),Ke(this,ao,a=>{r[a]=t[a]!==0?Ts.now():0;}),Ke(this,ri,(a,i)=>{if(t[i]){let f=t[i],l=r[i];a.ttl=f,a.start=l,a.now=n||o();let c=a.now-l;a.remainingTTL=f-c;}});let n=0,o=()=>{let a=Ts.now();if(this.ttlResolution>0){n=a;let i=setTimeout(()=>n=0,this.ttlResolution);i.unref&&i.unref();}return a};this.getRemainingTTL=a=>{let i=Q(this,Zt).get(a);if(i===void 0)return 0;let f=t[i],l=r[i];if(f===0||l===0)return 1/0;let c=(n||o())-l;return f-c},Ke(this,kr,a=>t[a]!==0&&r[a]!==0&&(n||o())-r[a]>t[a]);},ao=new WeakMap,ri=new WeakMap,xs=new WeakMap,kr=new WeakMap,el=new WeakSet,M2=function(){let t=new fa(Q(this,un));Ke(this,ln,0),Ke(this,ei,t),Ke(this,so,r=>{Ke(this,ln,Q(this,ln)-t[r]),t[r]=0;}),Ke(this,Ps,(r,n,o,a)=>{if(rt(this,Tt,xt).call(this,n))return 0;if(!Ai(o))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(o=a(n,r),!Ai(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}),Ke(this,ha,(r,n,o)=>{if(t[r]=n,Q(this,Cr)){let a=Q(this,Cr)-t[r];for(;Q(this,ln)>a;)rt(this,pa,Yf).call(this,!0);}Ke(this,ln,Q(this,ln)+t[r]),o&&(o.entrySize=n,o.totalCalculatedSize=Q(this,ln));});},so=new WeakMap,ha=new WeakMap,Ps=new WeakMap,Nn=new WeakSet,Oi=function*({allowStale:t=this.allowStale}={}){if(Q(this,Wt))for(let r=Q(this,Qt);!(!rt(this,Ls,ld).call(this,r)||((t||!Q(this,kr).call(this,r))&&(yield r),r===Q(this,hr)));)r=Q(this,Br)[r];},xn=new WeakSet,Ri=function*({allowStale:t=this.allowStale}={}){if(Q(this,Wt))for(let r=Q(this,hr);!(!rt(this,Ls,ld).call(this,r)||((t||!Q(this,kr).call(this,r))&&(yield r),r===Q(this,Qt)));)r=Q(this,Er)[r];},Ls=new WeakSet,ld=function(t){return t!==void 0&&Q(this,Zt).get(Q(this,Nt)[t])===t},pa=new WeakSet,Yf=function(t){var a;let r=Q(this,hr),n=Q(this,Nt)[r],o=Q(this,lt)[r];return Q(this,Ti)&&rt(this,Tt,xt).call(this,o)?o.__abortController.abort(new Error("evicted")):(Q(this,In)||Q(this,Ir))&&(Q(this,In)&&((a=Q(this,Tn))==null||a.call(this,o,n,"evict")),Q(this,Ir)&&Q(this,ar)?.push([o,n,"evict"])),Q(this,so).call(this,r),t&&(Q(this,Nt)[r]=void 0,Q(this,lt)[r]=void 0,Q(this,cn).push(r)),Q(this,Wt)===1?(Ke(this,hr,Ke(this,Qt,0)),Q(this,cn).length=0):Ke(this,hr,Q(this,Er)[r]),Q(this,Zt).delete(n),Fs(this,Wt)._--,r},da=new WeakSet,Xf=function(t,r,n,o){let a=r===void 0?void 0:Q(this,lt)[r];if(rt(this,Tt,xt).call(this,a))return a;let i=new Jf,{signal:f}=n;f?.addEventListener("abort",()=>i.abort(f.reason),{signal:i.signal});let l={signal:i.signal,options:n,context:o},c=(E,S=!1)=>{let{aborted:O}=i.signal,k=n.ignoreFetchAbort&&E!==void 0;if(n.status&&(O&&!S?(n.status.fetchAborted=!0,n.status.fetchError=i.signal.reason,k&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),O&&!k&&!S)return y(i.signal.reason);let $=g;return Q(this,lt)[r]===g&&(E===void 0?$.__staleWhileFetching?Q(this,lt)[r]=$.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,E,l.options))),E},p=E=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=E),y(E)),y=E=>{let{aborted:S}=i.signal,O=S&&n.allowStaleOnFetchAbort,k=O||n.allowStaleOnFetchRejection,$=k||n.noDeleteOnFetchRejection,q=g;if(Q(this,lt)[r]===g&&(!$||q.__staleWhileFetching===void 0?this.delete(t):O||(Q(this,lt)[r]=q.__staleWhileFetching)),k)return n.status&&q.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),q.__staleWhileFetching;if(q.__returned===q)throw E},m=(E,S)=>{var k;let O=(k=Q(this,ca))==null?void 0:k.call(this,t,a,l);O&&O instanceof Promise&&O.then($=>E($),S),i.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(E(),n.allowStaleOnFetchAbort&&(E=$=>c($,!0)));});};n.status&&(n.status.fetchDispatched=!0);let g=new Promise(m).then(c,p),h=Object.assign(g,{__abortController:i,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,h,{...l.options,status:void 0}),r=Q(this,Zt).get(t)):Q(this,lt)[r]=h,h},Tt=new WeakSet,xt=function(t){if(!Q(this,Ti))return !1;let r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Jf},Cs=new WeakSet,cd=function(t,r){Q(this,Br)[r]=t,Q(this,Er)[t]=r;},uo=new WeakSet,Is=function(t){t!==Q(this,Qt)&&(t===Q(this,hr)?Ke(this,hr,Q(this,Er)[t]):rt(this,Cs,cd).call(this,Q(this,Br)[t],Q(this,Er)[t]),rt(this,Cs,cd).call(this,Q(this,Qt),t),Ke(this,Qt,t));};var yA=ho(q2()),mA=ho(dA());var il=class{constructor(){this.logger=Wr.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 Qf({maxSize:this.options.maxSize,sizeCalculation:mA.default});}has(t){return this.cache.has(this.hash(t))}set(t,r){for(let n of this.createCacheEntries(t,r))this.logger.debug({entry:n},"Setting cache entry"),this.cache.set(this.hash(n.key),n.value);this.logger.debug({size:this.cache.calculatedSize},"Cache size");}get(t){return this.cache.get(this.hash(t))}hash(t){return (0, yA.default)(t)}createCacheEntries(t,r){let n=[{key:t,value:r}];if(this.options.partiallyAcceptedCacheGeneration.enabled){let o=r.choices.map(a=>this.calculatePartiallyAcceptedPositions(a.text).map(i=>({prefix:a.text.slice(0,i),suffix:a.text.slice(i),choiceIndex:a.index}))).flat().reduce((a,i)=>(a[i.prefix]=a[i.prefix]||[],a[i.prefix].push({suffix:i.suffix,choiceIndex:i.choiceIndex}),a),{});for(let a in o){let i={...t,text:t.text.slice(0,t.position)+a+t.text.slice(t.position),position:t.position+a.length},f={...r,choices:o[a].map(l=>({index:l.choiceIndex,text:l.suffix}))};n.push({key:i,value:f});}}return n}calculatePartiallyAcceptedPositions(t){let r=[],n=this.options.partiallyAcceptedCacheGeneration,o=qn(t),a=0,i=0;for(;a<o.length-1&&a<n.perLine.max;)i+=o[a].length,r.push(i),a++;let f=o.slice(0,n.perWord.lines).map(ah).flat();for(a=0,i=0;a<f.length&&a<n.perWord.max;)i+=f[a].length,r.push(i),a++;let l=o.slice(0,n.perCharacter.lines).map(ah).flat().slice(0,n.perCharacter.words).join("");for(i=1;i<l.length&&i<n.perCharacter.max;)r.push(i),i++;return r.filter((c,p,y)=>y.indexOf(c)===p).sort((c,p)=>c-p)}};N();x();P();C();L();N();x();P();C();L();var ol=Wr.child({component:"Postprocess"}),al=e=>async t=>(t.choices=(await Promise.all(t.choices.map(async r=>(r.text=await e(r.text),r)))).filter(Boolean),t);N();x();P();C();L();function ks(e){return e.match(/^[ \t]*/)?.[0]?.length||0}function R5(e,t){let r=1;for(;r<t.length&&Di(t[r]);)r++;return r>=t.length?!0:ks(t[r])<e}function T5(e,t){return t>=e.length-1?!1:ks(e[t])<ks(e[t+1])}var gA=e=>t=>{let r=e.text.slice(0,e.position),n=e.text.slice(e.position),o=qn(r),a=qn(n),i=qn(t),f=ks(o[o.length-1]),l;for(l=1;l<i.length;l++){if(Di(i[l]))continue;if(ks(i[l])<f){R5(f,a)&&!T5(i,l)&&l++;break}}return l<i.length?(ol.debug({input:t,prefix:r,suffix:n,scopeEndAt:l},"Remove content out of scope"),i.slice(0,l).join("").trimEnd()):t};N();x();P();C();L();var vA=e=>t=>{let r=e.text.slice(e.position);for(let n=Math.max(0,t.length-r.length);n<t.length;n++)if(t.slice(n)===r.slice(0,t.length-n))return ol.debug({input:t,suffix:r,overlappedAt:n},"Remove overlapped content"),t.slice(0,n);return t};N();x();P();C();L();var wA=()=>e=>Di(e)?null:e;async function EA(e,t){return new Promise(r=>r(t)).then(al(gA(e))).then(al(vA(e))).then(al(wA()))}N();x();P();C();L();var SA="tabby-agent",bA="0.0.1";var wa=class{constructor(){this.anonymousUsageTrackingApi=new Fi({BASE:"https://app.tabbyml.com/api"});this.logger=Wr.child({component:"AnonymousUsage"});this.systemData={agent:`${SA}, ${bA}`,browser:navigator?.userAgent||"browser",node:void 0};this.dataStore=null;}static async create(t){let r=new wa;return r.dataStore=t.dataStore||qf,await r.checkAnonymousId(),r}async checkAnonymousId(){if(this.dataStore){try{await this.dataStore.load();}catch(t){this.logger.debug({error:t},"Error when loading anonymousId");}if(typeof this.dataStore.data.anonymousId=="string")this.anonymousId=this.dataStore.data.anonymousId;else {this.anonymousId=go(),this.dataStore.data.anonymousId=this.anonymousId;try{await this.dataStore.save();}catch(t){this.logger.debug({error:t},"Error when saving anonymousId");}}}else this.anonymousId=go();}async event(t,r){this.disabled||await this.anonymousUsageTrackingApi.api.usage({distinctId:this.anonymousId,event:t,properties:{...this.systemData,...r}}).catch(n=>{this.logger.error({error:n},"Error when sending anonymous usage data");});}};var ul=class extends zs{constructor(){super();this.logger=Wr.child({component:"TabbyAgent"});this.config=B2;this.status="notInitialized";this.dataStore=null;this.completionCache=new il;this.tryingConnectTimer=null;this.tryingConnectTimer=setInterval(async()=>{this.status==="disconnected"&&(this.logger.debug("Trying to connect..."),await this.healthCheck());},ul.tryConnectInterval);}static async create(r){let n=new ul;return n.dataStore=r?.dataStore,n.anonymousUsageLogger=await wa.create({dataStore:r?.dataStore}),n}async applyConfig(){Vf.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 sa.create({endpoint:this.config.server.endpoint,dataStore:this.dataStore}),this.auth.on("updated",this.onAuthUpdated.bind(this))),this.api=new Do({BASE:this.config.server.endpoint,TOKEN:this.auth.token});}async onAuthUpdated(){this.api=new Do({BASE:this.config.server.endpoint,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 Hu(o.then(a=>(this.logger.debug({api:r.name,response:a},"API response"),this.changeStatus("ready"),a)).catch(a=>{throw a.isCancelled?this.logger.debug({api:r.name,error:a},"API request canceled"):a.name==="ApiError"&&[401,403,405].indexOf(a.status)!==-1?(this.logger.debug({api:r.name,error:a},"API unauthorized"),this.changeStatus("unauthorized")):a.name==="ApiError"?(this.logger.error({api:r.name,error:a},"API error"),this.changeStatus("disconnected")):(this.logger.error({api:r.name,error:a},"API request failed with unknown error"),this.changeStatus("disconnected")),a}),()=>{o.cancel();})}async healthCheck(){return this.callApi(this.api.v1.health,{}).catch(()=>{})}createSegments(r){let n=r.maxPrefixLines,o=r.maxSuffixLines,a=r.text.slice(0,r.position),i=qn(a),f=r.text.slice(r.position),l=qn(f);return {prefix:i.slice(Math.max(i.length-n,0)).join(""),suffix:l.slice(0,o).join("")}}async initialize(r){return r.client&&Vf.forEach(n=>n.setBindings&&n.setBindings({client:r.client})),await this.updateConfig(r.config||{}),await this.anonymousUsageLogger.event("AgentInitialized",{client:r.client}),this.logger.debug({options:r},"Initialized"),this.status!=="notInitialized"}async updateConfig(r){let n=(0, OA.default)(this.config,r);if(!(0, AA.default)(this.config,n)){this.config=n,await this.applyConfig();let o={event:"configUpdated",config:this.config};this.logger.debug({event:o},"Config updated"),super.emit("configUpdated",o);}return await this.healthCheck(),!0}getConfig(){return this.config}getStatus(){return this.status}startAuth(){if(this.status==="notInitialized")throw new Error("Agent is not initialized");return Hu(this.healthCheck().then(()=>this.status==="unauthorized"?this.auth.requestToken():null),()=>{this.status==="unauthorized"&&this.auth.reset();})}getCompletions(r){if(this.status==="notInitialized")throw new Error("Agent is not initialized");if(this.completionCache.has(r))return this.logger.debug({request:r},"Completion cache hit"),new en(a=>{a(this.completionCache.get(r));});let n=this.createSegments(r);if(Di(n.prefix))return this.logger.debug("Segment prefix is blank, returning empty completion response"),new en(a=>{a({id:"agent-"+go(),choices:[]});});let o=this.callApi(this.api.v1.completion,{language:r.language,segments:n,user:this.auth?.user});return Hu(o.then(a=>(this.completionCache.set(r,a),a)).then(a=>EA(r,a)),()=>{o.cancel();})}postEvent(r){if(this.status==="notInitialized")throw new Error("Agent is not initialized");return this.callApi(this.api.v1.event,r)}},sl=ul;sl.tryConnectInterval=1e3*30;N();x();P();C();L();var I5=["statusChanged","configUpdated"];/*! 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
*)
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 = en;
exports.TabbyAgent = sl;
exports.agentEventNames = I5;
return exports;
})({});
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.global.js.map