varTabby=(()=>{varL_=Object.create;varAo=Object.defineProperty;vark_=Object.getOwnPropertyDescriptor;varF_=Object.getOwnPropertyNames;varP_=Object.getPrototypeOf,U_=Object.prototype.hasOwnProperty;varD_=(e,t,r)=>tine?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;varRo=(e=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(e,{get:(t,r)=>(typeofrequire<"u"?require:t)[r]}):e)(function(e){if(typeofrequire<"u")returnrequire.apply(this,arguments);thrownewError('Dynamic require of "'+e+'" is not supported')});varei=(e,t)=>()=>(e&&(t=e(e=0)),t);varHe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ch=(e,t)=>{for(varrint)Ao(e,r,{get:t[r],enumerable:!0})},Nh=(e,t,r,n)=>{if(t&&typeoft=="object"||typeoft=="function")for(letoofF_(t))!U_.call(e,o)&&o!==r&&Ao(e,o,{get:()=>t[o],enumerable:!(n=k_(t,o))||n.enumerable});returne};varLn=(e,t,r)=>(r=e!=null?L_(P_(e)):{},Nh(t||!e||!e.__esModule?Ao(r,"default",{value:e,enumerable:!0}):r,e)),M_=e=>Nh(Ao({},"__esModule",{value:!0}),e);varat=(e,t,r)=>(D_(e,typeoft!="symbol"?t+"":t,r),r),ku=(e,t,r)=>{if(!t.has(e))throwTypeError("Cannot "+r)};varJ=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),it=(e,t,r)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,r)},Ge=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xa=(e,t,r,n)=>({set_(o){Ge(e,t,o,r)},get_(){returnJ(e,t,n)}}),tt=(e,t,r)=>(ku(e,t,"access private method"),r);varse,$=ei(()=>{se=globalThis});varq=ei(()=>{});varz=ei(()=>{});varce={};Ch(ce,{_debugEnd:()=>bp,_debugProcess:()=>wp,_events:()=>Fp,_eventsCount:()=>Pp,_exiting:()=>ep,_fatalExceptions:()=>yp,_getActiveHandles:()=>ip,_getActiveRequests:()=>np,_kill:()=>ap,_linkedBinding:()=>Jh,_maxListeners:()=>kp,_preload_modules:()=>Np,_rawDebug:()=>Kh,_startProfilerIdleNotifier:()=>_p,_stopProfilerIdleNotifier:()=>Ep,_tickCallback:()=>vp,abort:()=>Tp,addListener:()=>Up,allowedNodeEnvironmentFlags:()=>hp,arch:()=>Uh,argv:()=>jh,argv0:()=>Cp,assert:()=>pp,binding:()=>Hh,chdir:()=>Gh,config:()=>tp,cpuUsage:()=>Na,cwd:()=>Vh,debugPort:()=>Bp,default:()=>Zp,dlopen:()=>rp,domain:()=>Qh,emit:()=>qp,emitWarning:()=>Wh,env:()=>Mh,execArgv:()=>$h,execPath:()=>xp,exit:()=>lp,features:()=>dp,hasUncaughtExceptionCaptureCallback:()=>mp,hrtime:()=>Ca,kill:()=>fp,listeners:()=>Hp,memoryUsage:()=>up,moduleLoadList:()=>Xh,nextTick:()=>kh,off:()=>Mp,on:()=>yn,once:()=>Dp,openStdin:()=>cp,pid:()=>Op,platform:()=>Dh,ppid:()=>Ip,prependListener:()=>zp,prependOnceListener:()=>Wp,reallyExit:()=>op,release:()=>Yh,removeAllListeners:()=>$p,removeListener:()=>jp,resourceUsage:()=>sp,setSourceMapsEnabled:()=>Lp,setUncaughtExceptionCaptureCallback:()=>gp,stderr:()=>Ap,stdin:()=>Rp,stdout:()=>Sp,title:()=>Ph,umask:()=>Zh,uptime:()=>To,version:()=>qh,versions:()=>zh});functionUu(e){thrownewError("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}functionj_(){!ki||!ti||(ki=!1,ti.length?dn=ti.concat(dn):Ba=-1,dn.length&&Lh())}functionLh(){if(!ki){vare=setTimeout(j_,0);ki=!0;for(vart=dn.length;t;){for(ti=dn,dn=[];++Ba<t;)ti&&ti[Ba].run();Ba=-1,t=dn.length}ti=null,ki=!1,clearTimeout(e)}}functionkh(e){vart=newArray(arguments.length-1);if(arguments.length>1)for(varr=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(newFh(e,t)),dn.length===1&&!ki&&setTimeout(Lh,0)}functionFh(e,t){this.fun=e,this.array=t}functioner(){}functionJh(e){Uu("_linkedBinding")}functionrp(e){Uu("dlopen")}functionnp(){return[]}functionip(){return[]}functionpp(e,t){if(!e)thrownewError(t||"assertion error")}functionmp(){return!1}functionTo(){returnkn.now()/1e3}functionCa(e){vart=Math.floor((Date.now()-kn.now())*.001),r=kn.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);returne&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=Pu)),[n,o]}functionyn(){returnZp}functionHp(e){return[]}vardn,ki,ti,Ba,Ph,Uh,Dh,Mh,jh,$h,qh,zh,Wh,Hh,Zh,Vh,Gh,Yh,Kh,Xh,Qh,ep,tp,op,ap,Na,sp,up,fp,lp,cp,hp,dp,yp,gp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Np,Lp,kn,Fu,Pu,
`+t.prev}function ss(e,t){var r=Bf(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Mn(e,o)?t(e[o],e):""}var a=typeof Rf=="function"?Rf(e):[],i;if(Vi){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in e)Mn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Vi&&i["$"+l]instanceof Symbol||(yg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Rf=="function")for(var c=0;c<a.length;c++)gg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Uf=He((jP,Sg)=>{"use strict";$();q();z();H();W();var Ff=Ur(),Gi=lr(),x2=Eg(),B2=Ff("%TypeError%"),ls=Ff("%WeakMap%",!0),cs=Ff("%Map%",!0),C2=Gi("WeakMap.prototype.get",!0),N2=Gi("WeakMap.prototype.set",!0),L2=Gi("WeakMap.prototype.has",!0),k2=Gi("Map.prototype.get",!0),F2=Gi("Map.prototype.set",!0),P2=Gi("Map.prototype.has",!0),Pf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},U2=function(e,t){var r=Pf(e,t);return r&&r.value},D2=function(e,t,r){var n=Pf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},M2=function(e,t){return!!Pf(e,t)};Sg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new B2("Side channel does not contain "+x2(a))},get:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return C2(t,a)}else if(cs){if(r)return k2(r,a)}else if(n)return U2(n,a)},has:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return L2(t,a)}else if(cs){if(r)return P2(r,a)}else if(n)return M2(n,a);return!1},set:function(a,i){ls&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ls),N2(t,a,i)):cs?(r||(r=new cs),F2(r,a,i)):(n||(n={key:{},next:null}),D2(n,a,i))}};return o}});var Rg=He((ZP,Ag)=>{"use strict";$();q();z();H();W();var j2=Ur(),$2=ff(),Vo=Uf()(),vn=j2("%TypeError%"),Df={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");if(Vo.assert(e),!Df.has(e,t))throw new vn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return!!r&&$2(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var n=Vo.get(e);n||(n={},Vo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(Df);Ag.exports=Df});var Ig=He((JP,Og)=>{"use strict";$();q();z();H();W();var Go=Rg(),q2=SyntaxError,Tg=typeof StopIteration=="object"?StopIteration:null;Og.exports=function(t){if(!Tg)throw new q2("this environment lacks StopIteration");Go.set(t,"[[Done]]",!1);var r={next:function(){var o=Go.get(this,"[[Iterator]]"),a=Go.get(o,"[[Done]]");try{return{done:a,value:a?void 0:o.next()}}catch(i){if(Go.set(o,"[[Done]]",!0),i!==Tg)throw i;return{done:!0,value:void 0}}}};return Go.set(r,"[[Iterator]]",t),r}});var Mf=He((iU,xg)=>{$();q();z();H();W();var z2={}.toString;xg.exports=Array.isArray||function(e){return z2.call(e)=="[object Array]"}});var jf=He((lU,Bg)=>{"use strict";$();q();z();H();W();var W2=String.prototype.valueOf,H2=function(t){try{return W2.call(t),!0}catch{return!1}},Z2=Object.prototype.toString,V2="[object String]",G2=mn()();Bg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:G2?H2(t):Z2.call(t)===V2}});var qf=He((gU,Lg)=>{"use strict";$();q();z();H();W();var $f=typeof Map=="function"&&Map.prototype?Map:null,Y2=typeof Set=="function"&&Set.prototype?Set:null,hs;$f||(hs=function(t){return!1});var Ng=$f?Map.prototype.has:null,Cg=Y2?Set.prototype.has:null;!hs&&!Ng&&(hs=function(t){return!1});Lg.exports=hs||function(t){if(!t||typeof t!="object")return!1;try{if(Ng.call(t),Cg)try{Cg.call(t)}catch{return!0}return t instanceof $f
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&FE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var gd=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Ha(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Ha):String(e)}function PE(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var UE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());functionHu(e,t,r,n,o){if(Ee.isFunction(n))returnn.call(this,t,r);if(o&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))returnt.indexOf(n)!==-1;if(Ee.isRegExp(n))returnn.test(t)}}functionDE(e){returne.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}functionME(e,t){letr=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){returnthis[n].call(this,t,o,a,i)},configurable:!0})})}varDi=class{constructor(t){t&&this.set(t)}set(t,r,n){leto=this;functiona(f,l,c){letd=No(l);if(!d)thrownewError("header name must be a non-empty string");lety=Ee.findKey(o,d);(!y||o[y]===void0||c===!0||c===void0&&o[y]!==!1)&&(o[y||l]=Ha(f))}leti=(f,l)=>Ee.forEach(f,(c,d)=>a(c,d,l));returnEe.isPlainObject(t)||tinstanceofthis.constructor?i(t,r):Ee.isString(t)&&(t=t.trim())&&!UE(t)?i(yd(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=No(t),t){letn=Ee.findKey(this,t);if(n){leto=this[n];if(!r)returno;if(r===!0)returnPE(o);if(Ee.isFunction(r))returnr.call(this,o,n);if(Ee.isRegExp(r))returnr.exec(o);thrownewTypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=No(t),t){letn=Ee.findKey(this,t);return!!(n&&this[n]!==void0&&(!r||Hu(this,this[n],n,r)))}return!1}delete(t,r){letn=this,o=!1;functiona(i){if(i=No(i),i){letf=Ee.findKey(n,i);f&&(!r||Hu(n,n[f],f,r))&&(deleten[f],o=!0)}}returnEe.isArray(t)?t.forEach(a):a(t),o}clear(t){letr=Object.keys(this),n=r.length,o=!1;for(;n--;){leta=r[n];(!t||Hu(this,this[a],a,t,!0))&&(deletethis[a],o=!0)}returno}normalize(t){letr=this,n={};returnEe.forEach(this,(o,a)=>{leti=Ee.findKey(n,a);if(i){r[i]=Ha(o),deleter[a];return}letf=t?DE(a):String(a).trim();f!==a&&deleter[a],r[f]=Ha(o),n[f]=!0}),this}concat(...t){returnthis.constructor.concat(this,...t)}toJSON(t){letr=Object.create(null);returnEe.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`,qt.homedir=function(){return"/"}),qt}var st=NT();st.endianness;st.hostname;st.loadavg;st.uptime;st.freemem;st.totalmem;st.cpus;st.type;st.release;st.networkInterfaces;st.getNetworkInterfaces;st.arch;st.platform;st.tmpdir;st.tmpDir;st.EOL;st.homedir;var LT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return LT};st.homedir=function(){return"/home"};st.version=function(){return""};st.arch=function(){return"x64"};st.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};st.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};st.uptime=To;st.constants={};var rq=st.version,nq=st.constants,iq=st.EOL,oq=st.arch,aq=st.cpus,sq=st.endianness,uq=st.freemem,fq=st.getNetworkInterfaces,lq=st.homedir,cq=st.hostname,hq=st.loadavg,pq=st.networkInterfaces,dq=st.platform,yq=st.release,gq=st.tmpDir,mq=st.tmpdir,vq=st.totalmem,wq=st.type;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var Yl={},Iv=!1,co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function kT(){if(Iv)return Yl;Iv=!0;var e=Yl={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(w){if(t===setTimeout)return setTimeout(w,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch{try{return t.call(null,w,0)}catch{return t.call(this||co,w,0)}}}function i(w){if(r===clearTimeout)return clearTimeout(w);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{return r(w)}catch{try{return r.call(null,w)}catch{return r.call(this||co,w)}}}var f=[],l=!1,c,d=-1;function y(){!l||!c||(l=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!l){var w=a(y);l=!0;for(var S=f.length;S;){for(c=f,f=[];++d<S;)c&&c[d].run();d=-1,S=f.length}c=null,l=!1,i(w)}}e.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];f.push(new _(w,S)),f.length===1&&!l&&a(v)};function _(w,S){(this||co).fun=w,(this||co).array=S}_.prototype.run=function(){(this||co).fun.apply(null,(this||co).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(w){return[]},e.binding=function(w){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(w){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yl}var lt=kT();lt.platform="browser";lt.addListener;lt.argv;lt.binding;lt.browser;lt.chdir;lt.cwd;lt.emit;lt.env;lt.listeners;lt.nextTick;lt.off;lt.on;lt.once;lt.prependListener;lt.prependOnceListener;lt.removeAllListeners;lt.removeListener;lt.title;lt.umask;lt.version;lt.versions;var Kl={},xv=!1;function FT(){if(xv)return Kl;xv=!0;var e=lt;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l=
`).concat(Te).concat(Q).concat(re).concat(ye)}var F=function(N){function x(Te){var K;if(function(Je,Ve){if(!(Je instanceof Ve))throw new TypeError("Cannot call a class as a function")}(this,x),d(Te)!=="object"||Te===null)throw new v("options","Object",Te);var re=Te.message,ae=Te.operator,Ce=Te.stackStartFn,Ne=Te.actual,ne=Te.expected,te=Error.stackTraceLimit;if(Error.stackTraceLimit=0,re!=null)K=n(this,c(x).call(this,String(re)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(h="\x1B[34m",w="\x1B[32m",T="\x1B[39m",S="\x1B[31m"):(h="",w="",T="",S="")),d(Ne)==="object"&&Ne!==null&&d(ne)==="object"&&ne!==null&&"stack"in Ne&&Ne instanceof Error&&"stack"in ne&&ne instanceof Error&&(Ne=M(Ne),ne=M(ne)),ae==="deepStrictEqual"||ae==="strictEqual")K=n(this,c(x).call(this,V(Ne,ne,ae)));else if(ae==="notDeepStrictEqual"||ae==="notStrictEqual"){var ye=C[ae],me=D(Ne).split(`
`)&&(t=t.replace(Sx,"%0A")),t.includes("\r")&&(t=t.replace(Ax,"%0D")),t.includes(" ")&&(t=t.replace(Rx,"%09")),n.pathname=t,n}var Bx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=zx;St.fileURLToPath=ph;var pV=St.Url,dV=St.format,yV=St.resolve,gV=St.resolveObject,mV=St.parse,vV=St.URL,Cx=92,Nx=47,Lx=97,kx=122,hh=Bx==="win32",Fx=/\//g,Px=/%/g,Ux=/\\/g,Dx=/\n/g,Mx=/\r/g,jx=/\t/g;function ph(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return hh?$x(e):qx(e)}function $x(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(Fx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Lx||n>kx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function qx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function zx(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===Nx||hh&&r===Cx)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(Px,"%25")),!hh&&t.includes("\\")&&(t=t.replace(Ux,"%5C")),t.includes(`
`)&&(t=t.replace(Dx,"%0A")),t.includes("\r")&&(t=t.replace(Mx,"%0D")),t.includes(" ")&&(t=t.replace(jx,"%09")),n.pathname=t,n}Fa();var Ea={},Rb=!1;function Aa(){return Rb||(Rb=!0,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.constants=void 0,Ea.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}),Ea}var Eu={},Tb=!1;function Wx(){return Tb||(Tb=!0,typeof BigInt=="function"?Eu.default=BigInt:Eu.default=function(){throw new Error("BigInt is not supported in this environment.")}),Eu}var bo={},Ob=!1;function dh(){if(Ob)return bo;Ob=!0,Object.defineProperty(bo,"__esModule",{value:!0}),bo.Stats=void 0;var e=Aa(),t=Wx(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){}return y.build=function(v,_){_===void 0&&(_=!1);var h=new y,w=v.uid,S=v.gid,T=v.atime,C=v.mtime,M=v.ctime,D=_?t.default:function(F){return F};h.uid=D(w),h.gid=D(S),h.rdev=D(0),h.blksize=D(4096),h.ino=D(v.ino),h.size=D(v.getSize()),h.blocks=D(1),h.atime=T,h.mtime=C,h.ctime=M,h.birthtime=M,h.atimeMs=D(T.getTime()),h.mtimeMs=D(C.getTime());var V=D(M.getTime());return h.ctimeMs=V,h.birthtimeMs=V,h.dev=D(0),h.mode=D(v.mode),h.nlink=D(v.nlink),h},y.prototype._checkModeProperty=function(v){return(Number(this.mode)&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return bo.Stats=d,bo.default=d,bo}var Gr={},Ib=!1;function yh(){if(Ib)return Gr;Ib=!0;var e=Gr&&Gr.__spreadArray||function(a,i,f){if(f||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return a.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.bufferFrom=Gr.bufferAllocUnsafe=Gr.Buffer=void 0;var t=Br;Object.defineProperty(Gr,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(a){for(var i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,a],i,!1)))}var n=t.Buffer.allocUnsafe||r;Gr.bufferAllocUnsafe=n;var o=t.Buffer.from||r;return Gr.bufferFrom=o,Gr}var zt={},xb=!1,Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(xb)return zt;xb=!0;var e=zt&&zt.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(zt,"__esModule",{value:!0}),zt.E=zt.AssertionError=zt.message=zt.RangeError=zt.TypeError=zt.Error=void 0;var t=Qe,r=Oe,n=typeof Symbol>"u"?"_kCode":Symbol("code"),o={};function a(h){return function(w){e(S,w);function S(T){for(var C=[],M=1;M<arguments.length;M++)C[M-1]=arguments
`,"utf-8"),this.emit("history")}async immutate(r){let{size:n}=this.options,o=this.now();for(let a=1;a<1e3;++a){let i=0,f;this.filename=this.options.path+this.generator(o,a);try{f=await this.fsStat(this.filename)}catch(l){if(l.code!=="ENOENT")throw l}if(f){if(i=f.size,!f.isFile())throw new Error(`Can't write on: '${this.filename}' (it is not a file)`);if(n&&i>=n)continue}if(r)return this.last=this.filename,this.reopen(i);await this.rotated(this.last),this.last=this.filename;return}throw new Tu}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function i_(e){return(t,r,n)=>{let o=parseInt(n,10);if(t!=="number"||o!==n||o<=0)throw new Error(`'${e}' option must be a positive integer number`)}}function wh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don'tknowhowtohandle'options.${e}'type:${r}`);n[e]=t(o)}}function s_(e,t,r){let n={};if(n.num=parseInt(e,10),isNaN(n.num))throw new Error(`Unknown'options.${t}'format:${e}`);if(n.num<=0)throw new Error(`Apositiveintegernumberisexpectedfor'options.${t}'`);if(n.unit=e.replace(/^[ 0]*/g,"").substr((n.num+"").length,1),n.unit.length===0)throw new Error(`Missingunitfor'options.${t}'`);if(!r[n.unit])throw new Error(`Unknown'options.${t}'unit:${n.unit}`);return n}var aB={M:!0,d:!0,h:!0,m:!0,s:!0};function bh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`Anintegerdividerof${r}isexpectedas${t}for'options.interval'`)}function sB(e){let t=s_(e,"interval",aB);switch(t.unit){case"h":bh(t,"hours",24);break;case"m":bh(t,"minutes",60);break;case"s":bh(t,"seconds",60);break}return t}var uB={B:!0,G:!0,K:!0,M:!0};function o_(e){let t=s_(e,"size",uB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var a_={encoding:(e,t,r)=>new n1(r),immutable:()=>{},initialRotation:()=>{},interval:wh("interval",sB),intervalBoundary:()=>{},maxFiles:i_("maxFiles"),maxSize:wh("maxSize",o_),mode:()=>{},omitExtension:()=>{},rotate:i_("rotate"),size:wh("size",o_),teeToStdout:()=>{},compress:(e,t,r)=>{if(!r)throw new Error("A value for 'options.compress' must be specified");if(e==="boolean")return t.compress=(n,o)=>`cat${n}|gzip-c9>${o}`;if(e!=="function"){if(e!=="string")throw new Error(`Don't know how to handle 'options.compress' type: ${e}`);if(r!=="gzip")throw new Error(`Don'tknowhowtohandlecompressionmethod:${r}`)}},history:e=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.history' type: ${e}`)},path:(e,t,r)=>{if(e!=="string")throw new Error(`Don'tknowhowtohandle'options.path'type:${e}`);r[r.length-1]!==ua&&(t.path=r+ua)}};function fB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in a_))throw new Error(`Unknownoption:${r}`);t[r]=e[r],a_[r](o,t,n)}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function lB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function cB(e,t,r){let n=o=>(o>9?"":"0")+o;return(o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function u_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The"options"argumentmustbeoftypeobject.Receivedtype${typeoft}`);let r=fB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?lB(e,n!==void 0,o):cB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The"filename"argumentmustbeoneoftypestringorfunction.Receivedtype${typeofe}`);return new _h(a,r)}var Ah=Ln(g_()),m_=v_.isBrowser?null:u_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Qn=m_?(0,Ah.default)(m_):(0,Ah.default)(),xu=[Qn];Qn.onChild=e=>{xu.push(e)};var Bu=class{constructor(){this.logger=Qn.child({componen