@terai/dev 0.0.0-dev-20231215105236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE.md +20 -0
  2. package/bin.js +3 -0
  3. package/dist/cli.d.mts +3 -0
  4. package/dist/cli.d.ts +3 -0
  5. package/dist/cli.default.d.mts +1 -0
  6. package/dist/cli.default.d.ts +1 -0
  7. package/dist/cli.default.js +99 -0
  8. package/dist/cli.default.js.map +1 -0
  9. package/dist/cli.default.mjs +99 -0
  10. package/dist/cli.default.mjs.map +1 -0
  11. package/dist/cli.js +98 -0
  12. package/dist/cli.js.map +1 -0
  13. package/dist/cli.mjs +98 -0
  14. package/dist/cli.mjs.map +1 -0
  15. package/dist/commands/extract.d.mts +12 -0
  16. package/dist/commands/extract.d.ts +12 -0
  17. package/dist/commands/extract.js +11 -0
  18. package/dist/commands/extract.js.map +1 -0
  19. package/dist/commands/extract.mjs +11 -0
  20. package/dist/commands/extract.mjs.map +1 -0
  21. package/dist/commands/index.d.mts +5 -0
  22. package/dist/commands/index.d.ts +5 -0
  23. package/dist/commands/index.js +15 -0
  24. package/dist/commands/index.js.map +1 -0
  25. package/dist/commands/index.mjs +15 -0
  26. package/dist/commands/index.mjs.map +1 -0
  27. package/dist/commands/init.d.mts +12 -0
  28. package/dist/commands/init.d.ts +12 -0
  29. package/dist/commands/init.js +13 -0
  30. package/dist/commands/init.js.map +1 -0
  31. package/dist/commands/init.mjs +13 -0
  32. package/dist/commands/init.mjs.map +1 -0
  33. package/dist/commands/translate.d.mts +10 -0
  34. package/dist/commands/translate.d.ts +10 -0
  35. package/dist/commands/translate.js +11 -0
  36. package/dist/commands/translate.js.map +1 -0
  37. package/dist/commands/translate.mjs +11 -0
  38. package/dist/commands/translate.mjs.map +1 -0
  39. package/dist/index.d.mts +6 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/index.js +2 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/index.mjs +2 -0
  44. package/dist/index.mjs.map +1 -0
  45. package/dist/types.d.mts +2 -0
  46. package/dist/types.d.ts +2 -0
  47. package/dist/types.js +2 -0
  48. package/dist/types.js.map +1 -0
  49. package/dist/types.mjs +1 -0
  50. package/dist/types.mjs.map +1 -0
  51. package/package.json +53 -0
@@ -0,0 +1,99 @@
1
+ #!/usr/bin/env node
2
+ var op=Object.create;var fu=Object.defineProperty;var up=Object.getOwnPropertyDescriptor;var ap=Object.getOwnPropertyNames;var cp=Object.getPrototypeOf,lp=Object.prototype.hasOwnProperty;var O=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var fp=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dp=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ap(e))!lp.call(t,s)&&s!==r&&fu(t,s,{get:()=>e[s],enumerable:!(n=up(e,s))||n.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?op(cp(t)):{},Dp(e||!t||!t.__esModule?fu(r,"default",{value:t,enumerable:!0}):r,t));import{fileURLToPath as hp}from"url";import dp from"path";var Du,pp,m,g,a=fp(()=>{"use strict";Du=()=>hp(import.meta.url),pp=()=>dp.dirname(Du()),m=pp(),g=Du()});var Au=b((Vx,wu)=>{"use strict";a();var Ke=O("constants"),$p=process.cwd,un=null,kp=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return un||(un=$p.call(process)),un};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ts=process.chdir,process.chdir=function(t){un=null,Ts.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ts));var Ts;wu.exports=qp;function qp(t){Ke.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(l,D,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(l,D,d,h){h&&process.nextTick(h)},t.lchownSync=function(){}),kp==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(l){function D(d,h,C){var y=Date.now(),x=0;l(d,h,function F(B){if(B&&(B.code==="EACCES"||B.code==="EPERM"||B.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){t.stat(h,function(w,S){w&&w.code==="ENOENT"?l(d,h,F):C(B)})},x),x<100&&(x+=10);return}C&&C(B)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(l){function D(d,h,C,y,x,F){var B;if(F&&typeof F=="function"){var w=0;B=function(S,$,W){if(S&&S.code==="EAGAIN"&&w<10)return w++,l.call(t,d,h,C,y,x,B);F.apply(this,arguments)}}return l.call(t,d,h,C,y,x,B)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(l){return function(D,d,h,C,y){for(var x=0;;)try{return l.call(t,D,d,h,C,y)}catch(F){if(F.code==="EAGAIN"&&x<10){x++;continue}throw F}}}(t.readSync);function e(l){l.lchmod=function(D,d,h){l.open(D,Ke.O_WRONLY|Ke.O_SYMLINK,d,function(C,y){if(C){h&&h(C);return}l.fchmod(y,d,function(x){l.close(y,function(F){h&&h(x||F)})})})},l.lchmodSync=function(D,d){var h=l.openSync(D,Ke.O_WRONLY|Ke.O_SYMLINK,d),C=!0,y;try{y=l.fchmodSync(h,d),C=!1}finally{if(C)try{l.closeSync(h)}catch{}else l.closeSync(h)}return y}}function r(l){Ke.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(D,d,h,C){l.open(D,Ke.O_SYMLINK,function(y,x){if(y){C&&C(y);return}l.futimes(x,d,h,function(F){l.close(x,function(B){C&&C(F||B)})})})},l.lutimesSync=function(D,d,h){var C=l.openSync(D,Ke.O_SYMLINK),y,x=!0;try{y=l.futimesSync(C,d,h),x=!1}finally{if(x)try{l.closeSync(C)}catch{}else l.closeSync(C)}return y}):l.futimes&&(l.lutimes=function(D,d,h,C){C&&process.nextTick(C)},l.lutimesSync=function(){})}function n(l){return l&&function(D,d,h){return l.call(t,D,d,function(C){f(C)&&(C=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(D,d){try{return l.call(t,D,d)}catch(h){if(!f(h))throw h}}}function i(l){return l&&function(D,d,h,C){return l.call(t,D,d,h,function(y){f(y)&&(y=null),C&&C.apply(this,arguments)})}}function o(l){return l&&function(D,d,h){try{return l.call(t,D,d,h)}catch(C){if(!f(C))throw C}}}function u(l){return l&&function(D,d,h){typeof d=="function"&&(h=d,d=null);function C(y,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),h&&h.apply(this,arguments)}return d?l.call(t,D,d,C):l.call(t,D,C)}}function c(l){return l&&function(D,d){var h=d?l.call(t,D,d):l.call(t,D);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function f(l){if(!l||l.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Ou=b((Kx,vu)=>{"use strict";a();var Su=O("stream").Stream;vu.exports=Up;function Up(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);Su.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),u=0,c=o.length;u<c;u++){var f=o[u];this[f]=s[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(l,D){if(l){i.emit("error",l),i.readable=!1;return}i.fd=D,i.emit("open",D),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);Su.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,u=i.length;o<u;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ru=b((Jx,Bu)=>{"use strict";a();Bu.exports=Hp;var Mp=Object.getPrototypeOf||function(t){return t.__proto__};function Hp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Mp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Nu=b((Zx,Ns)=>{"use strict";a();var ie=O("fs"),Gp=Au(),zp=Ou(),Wp=Ru(),an=O("util"),me,ln;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),ln=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",ln="___graceful-fs.previous");function Vp(){}function Pu(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var ut=Vp;an.debuglog?ut=an.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ut=function(){var t=an.format.apply(an,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ GFS4: `),console.error(t)});ie[me]||(Tu=global[me]||[],Pu(ie,Tu),ie.close=function(t){function e(r,n){return t.call(ie,r,function(s){s||Iu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,ln,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(r){t.apply(ie,arguments),Iu()}return Object.defineProperty(e,ln,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ut(ie[me]),O("assert").equal(ie[me].length,0)}));var Tu;global[me]||Pu(global,ie[me]);Ns.exports=Is(Wp(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Ns.exports=Is(ie),ie.__patched=!0);function Is(t){Gp(t),t.gracefulify=Is,t.createReadStream=$,t.createWriteStream=W;var e=t.readFile;t.readFile=r;function r(_,R,T){return typeof R=="function"&&(T=R,R=null),M(_,R,T);function M(G,H,j,k){return e(G,H,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([M,[G,H,j],N,k||Date.now(),Date.now()]):typeof j=="function"&&j.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return n(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Tt([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return i(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Tt([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(_,R,T,M){return typeof T=="function"&&(M=T,T=0),G(_,R,T,M);function G(H,j,k,N,z){return u(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Tt([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(_,R,T){typeof R=="function"&&(T=R,R=null);var M=l.test(process.version)?function(j,k,N,z){return f(j,G(j,k,N,z))}:function(j,k,N,z){return f(j,k,G(j,k,N,z))};return M(_,R,T);function G(H,j,k,N){return function(z,L){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Tt([M,[H,j,k],z,N||Date.now(),Date.now()]):(L&&L.sort&&L.sort(),typeof k=="function"&&k.call(this,z,L))}}}if(process.version.substr(0,4)==="v0.8"){var d=zp(t);F=d.ReadStream,w=d.WriteStream}var h=t.ReadStream;h&&(F.prototype=Object.create(h.prototype),F.prototype.open=B);var C=t.WriteStream;C&&(w.prototype=Object.create(C.prototype),w.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(_){F=_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(_){w=_},enumerable:!0,configurable:!0});var y=F;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(_){y=_},enumerable:!0,configurable:!0});var x=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(_){x=_},enumerable:!0,configurable:!0});function F(_,R){return this instanceof F?(h.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function B(){var _=this;pe(_.path,_.flags,_.mode,function(R,T){R?(_.autoClose&&_.destroy(),_.emit("error",R)):(_.fd=T,_.emit("open",T),_.read())})}function w(_,R){return this instanceof w?(C.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var _=this;pe(_.path,_.flags,_.mode,function(R,T){R?(_.destroy(),_.emit("error",R)):(_.fd=T,_.emit("open",T))})}function $(_,R){return new t.ReadStream(_,R)}function W(_,R){return new t.WriteStream(_,R)}var q=t.open;t.open=pe;function pe(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return q(H,j,k,function(L,ip){L&&(L.code==="EMFILE"||L.code==="ENFILE")?Tt([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}return t}function Tt(t){ut("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ps()}var cn;function Iu(){for(var t=Date.now(),e=0;e<ie[me].length;++e)ie[me][e].length>2&&(ie[me][e][3]=t,ie[me][e][4]=t);Ps()}function Ps(){if(clearTimeout(cn),cn=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ut("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ut("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(ut("RETRY",e.name,r),e.apply(null,r.concat([s]))):ie[me].push(t)}cn===void 0&&(cn=setTimeout(Ps,0))}}});var ju=b((a_,Ls)=>{"use strict";a();(function(){var t;function e(r,n){var s=this instanceof e?this:t;if(s.reset(n),typeof r=="string"&&r.length>0&&s.hash(r),s!==this)return s}e.prototype.hash=function(r){var n,s,i,o,u;switch(u=r.length,this.len+=u,s=this.k1,i=0,this.rem){case 0:s^=u>i?r.charCodeAt(i++)&65535:0;case 1:s^=u>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=u>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=u>i?(r.charCodeAt(i)&255)<<24:0,s^=u>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=u+this.rem&3,u-=this.rem,u>0){for(n=this.h1;s=s*11601+(s&65535)*3432906752&4294967295,s=s<<15|s>>>17,s=s*13715+(s&65535)*461832192&4294967295,n^=s,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(i>=u);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),s^=(o&255)<<24^(o&65280)>>8;switch(s=0,this.rem){case 3:s^=(r.charCodeAt(i+2)&65535)<<16;case 2:s^=(r.charCodeAt(i+1)&65535)<<8;case 1:s^=r.charCodeAt(i)&65535}this.h1=n}return this.k1=s,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof Ls<"u"?Ls.exports=e:this.MurmurHash3=e})()});var $u=b((l_,Dn)=>{"use strict";a();Dn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Dn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Dn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Hu=b((D_,Lt)=>{"use strict";a();var Z=global.process,ct=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};ct(Z)?(ku=O("assert"),Pt=$u(),qu=/^win/i.test(Z.platform),lr=O("events"),typeof lr!="function"&&(lr=lr.EventEmitter),Z.__signal_exit_emitter__?De=Z.__signal_exit_emitter__:(De=Z.__signal_exit_emitter__=new lr,De.count=0,De.emitted={}),De.infinite||(De.setMaxListeners(1/0),De.infinite=!0),Lt.exports=function(t,e){if(!ct(global.process))return function(){};ku.equal(typeof t,"function","a callback must be provided for exit handler"),Nt===!1&&js();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){De.removeListener(r,t),De.listeners("exit").length===0&&De.listeners("afterexit").length===0&&hn()};return De.on(r,t),n},hn=function(){!Nt||!ct(global.process)||(Nt=!1,Pt.forEach(function(e){try{Z.removeListener(e,dn[e])}catch{}}),Z.emit=pn,Z.reallyExit=$s,De.count-=1)},Lt.exports.unload=hn,lt=function(e,r,n){De.emitted[e]||(De.emitted[e]=!0,De.emit(e,r,n))},dn={},Pt.forEach(function(t){dn[t]=function(){if(ct(global.process)){var r=Z.listeners(t);r.length===De.count&&(hn(),lt("exit",null,t),lt("afterexit",null,t),qu&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Lt.exports.signals=function(){return Pt},Nt=!1,js=function(){Nt||!ct(global.process)||(Nt=!0,De.count+=1,Pt=Pt.filter(function(e){try{return Z.on(e,dn[e]),!0}catch{return!1}}),Z.emit=Mu,Z.reallyExit=Uu)},Lt.exports.load=js,$s=Z.reallyExit,Uu=function(e){ct(global.process)&&(Z.exitCode=e||0,lt("exit",Z.exitCode,null),lt("afterexit",Z.exitCode,null),$s.call(Z,Z.exitCode))},pn=Z.emit,Mu=function(e,r){if(e==="exit"&&ct(global.process)){r!==void 0&&(Z.exitCode=r);var n=pn.apply(this,arguments);return lt("exit",Z.exitCode,null),lt("afterexit",Z.exitCode,null),n}else return pn.apply(this,arguments)}):Lt.exports=function(){return function(){}};var ku,Pt,qu,lr,De,hn,lt,dn,Nt,js,$s,Uu,pn,Mu});var qs=b((d_,Wu)=>{"use strict";a();Wu.exports=ks;ks.strict=Gu;ks.loose=zu;var Jp=Object.prototype.toString,Qp={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ks(t){return Gu(t)||zu(t)}function Gu(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function zu(t){return Qp[Jp.call(t)]}});var Yu=b((m_,Vu)=>{"use strict";a();var Zp=qs().strict;Vu.exports=function(e){if(Zp(e)){var r=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)),r}else return Buffer.from(e)}});var Qu=b((E_,fr)=>{"use strict";a();fr.exports=om;fr.exports.sync=um;fr.exports._getTmpname=Us;fr.exports._cleanupOnExit=Ms;var ee=O("fs"),em=ju(),Ku=Hu(),tm=O("path"),Xu=qs(),Ju=Yu(),{promisify:Re}=O("util"),Je={},rm=function(){try{return O("worker_threads").threadId}catch{return 0}}(),nm=0;function Us(t){return t+"."+em(g).hash(String(process.pid)).hash(String(rm)).hash(String(++nm)).result()}function Ms(t){return()=>{try{ee.unlinkSync(typeof t=="function"?t():t)}catch{}}}function sm(t){return new Promise(e=>{Je[t]||(Je[t]=[]),Je[t].push(e),Je[t].length===1&&e()})}function mn(t){return t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}async function im(t,e,r={}){typeof r=="string"&&(r={encoding:r});let n,s,i=Ku(Ms(()=>s)),o=tm.resolve(t);try{await sm(o);let u=await Re(ee.realpath)(t).catch(()=>t);if(s=Us(u),!r.mode||!r.chown){let c=await Re(ee.stat)(u).catch(()=>{});c&&(r.mode==null&&(r.mode=c.mode),r.chown==null&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid}))}n=await Re(ee.open)(s,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(s),Xu(e)&&(e=Ju(e)),Buffer.isBuffer(e)?await Re(ee.write)(n,e,0,e.length,0):e!=null&&await Re(ee.write)(n,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&await Re(ee.fsync)(n),await Re(ee.close)(n),n=null,r.chown&&await Re(ee.chown)(s,r.chown.uid,r.chown.gid).catch(c=>{if(!mn(c))throw c}),r.mode&&await Re(ee.chmod)(s,r.mode).catch(c=>{if(!mn(c))throw c}),await Re(ee.rename)(s,u)}finally{n&&await Re(ee.close)(n).catch(()=>{}),i(),await Re(ee.unlink)(s).catch(()=>{}),Je[o].shift(),Je[o].length>0?Je[o][0]():delete Je[o]}}function om(t,e,r,n){r instanceof Function&&(n=r,r={});let s=im(t,e,r);return n&&s.then(n,n),s}function um(t,e,r){typeof r=="string"?r={encoding:r}:r||(r={});try{t=ee.realpathSync(t)}catch{}let n=Us(t);if(!r.mode||!r.chown)try{let c=ee.statSync(t);r=Object.assign({},r),r.mode||(r.mode=c.mode),!r.chown&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid})}catch{}let s,i=Ms(n),o=Ku(i),u=!0;try{if(s=ee.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),Xu(e)&&(e=Ju(e)),Buffer.isBuffer(e)?ee.writeSync(s,e,0,e.length,0):e!=null&&ee.writeSync(s,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&ee.fsyncSync(s),ee.closeSync(s),s=null,r.chown)try{ee.chownSync(n,r.chown.uid,r.chown.gid)}catch(c){if(!mn(c))throw c}if(r.mode)try{ee.chmodSync(n,r.mode)}catch(c){if(!mn(c))throw c}ee.renameSync(n,t),u=!1}finally{if(s)try{ee.closeSync(s)}catch{}o(),u&&i()}}});var ea=b((C_,Zu)=>{"use strict";a();Zu.exports=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")}});var ra=b((b_,ta)=>{"use strict";a();var ft=ea(),am=new Set(["__proto__","prototype","constructor"]),cm=t=>!t.some(e=>am.has(e));function gn(t){let e=t.split("."),r=[];for(let n=0;n<e.length;n++){let s=e[n];for(;s[s.length-1]==="\\"&&e[n+1]!==void 0;)s=s.slice(0,-1)+".",s+=e[++n];r.push(s)}return cm(r)?r:[]}ta.exports={get(t,e,r){if(!ft(t)||typeof e!="string")return r===void 0?t:r;let n=gn(e);if(n.length!==0){for(let s=0;s<n.length;s++)if(t=t[n[s]],t==null){if(s!==n.length-1)return r;break}return t===void 0?r:t}},set(t,e,r){if(!ft(t)||typeof e!="string")return t;let n=t,s=gn(e);for(let i=0;i<s.length;i++){let o=s[i];ft(t[o])||(t[o]={}),i===s.length-1&&(t[o]=r),t=t[o]}return n},delete(t,e){if(!ft(t)||typeof e!="string")return!1;let r=gn(e);for(let n=0;n<r.length;n++){let s=r[n];if(n===r.length-1)return delete t[s],!0;if(t=t[s],!ft(t))return!1}},has(t,e){if(!ft(t)||typeof e!="string")return!1;let r=gn(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(ft(t)){if(!(r[n]in t))return!1;t=t[r[n]]}else return!1;return!0}}});var mr=b((e3,Ca)=>{"use strict";a();var km="2.0.0",qm=Number.MAX_SAFE_INTEGER||9007199254740991,Um=16,Mm=250,Hm=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ca.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Um,MAX_SAFE_BUILD_LENGTH:Mm,MAX_SAFE_INTEGER:qm,RELEASE_TYPES:Hm,SEMVER_SPEC_VERSION:km,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gr=b((r3,Fa)=>{"use strict";a();var Gm=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Fa.exports=Gm});var qt=b((Ue,ba)=>{"use strict";a();var{MAX_SAFE_COMPONENT_LENGTH:Js,MAX_SAFE_BUILD_LENGTH:zm,MAX_LENGTH:Wm}=mr(),Vm=gr();Ue=ba.exports={};var Ym=Ue.re=[],Km=Ue.safeRe=[],I=Ue.src=[],P=Ue.t={},Xm=0,Qs="[a-zA-Z0-9-]",Jm=[["\\s",1],["\\d",Wm],[Qs,zm]],Qm=t=>{for(let[e,r]of Jm)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},U=(t,e,r)=>{let n=Qm(e),s=Xm++;Vm(t,s,e),P[t]=s,I[s]=e,Ym[s]=new RegExp(e,r?"g":void 0),Km[s]=new RegExp(n,r?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Qs}*`);U("MAINVERSION",`(${I[P.NUMERICIDENTIFIER]})\\.(${I[P.NUMERICIDENTIFIER]})\\.(${I[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${I[P.NUMERICIDENTIFIERLOOSE]})\\.(${I[P.NUMERICIDENTIFIERLOOSE]})\\.(${I[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${I[P.NUMERICIDENTIFIER]}|${I[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${I[P.NUMERICIDENTIFIERLOOSE]}|${I[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${I[P.PRERELEASEIDENTIFIER]}(?:\\.${I[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${I[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${I[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Qs}+`);U("BUILD",`(?:\\+(${I[P.BUILDIDENTIFIER]}(?:\\.${I[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${I[P.MAINVERSION]}${I[P.PRERELEASE]}?${I[P.BUILD]}?`);U("FULL",`^${I[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${I[P.MAINVERSIONLOOSE]}${I[P.PRERELEASELOOSE]}?${I[P.BUILD]}?`);U("LOOSE",`^${I[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${I[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${I[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${I[P.XRANGEIDENTIFIER]})(?:\\.(${I[P.XRANGEIDENTIFIER]})(?:\\.(${I[P.XRANGEIDENTIFIER]})(?:${I[P.PRERELEASE]})?${I[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${I[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${I[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${I[P.XRANGEIDENTIFIERLOOSE]})(?:${I[P.PRERELEASELOOSE]})?${I[P.BUILD]}?)?)?`);U("XRANGE",`^${I[P.GTLT]}\\s*${I[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${I[P.GTLT]}\\s*${I[P.XRANGEPLAINLOOSE]}$`);U("COERCE",`(^|[^\\d])(\\d{1,${Js}})(?:\\.(\\d{1,${Js}}))?(?:\\.(\\d{1,${Js}}))?(?:$|[^\\d])`);U("COERCERTL",I[P.COERCE],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${I[P.LONETILDE]}\\s+`,!0);Ue.tildeTrimReplace="$1~";U("TILDE",`^${I[P.LONETILDE]}${I[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${I[P.LONETILDE]}${I[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${I[P.LONECARET]}\\s+`,!0);Ue.caretTrimReplace="$1^";U("CARET",`^${I[P.LONECARET]}${I[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${I[P.LONECARET]}${I[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${I[P.GTLT]}\\s*(${I[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${I[P.GTLT]}\\s*(${I[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${I[P.GTLT]}\\s*(${I[P.LOOSEPLAIN]}|${I[P.XRANGEPLAIN]})`,!0);Ue.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${I[P.XRANGEPLAIN]})\\s+-\\s+(${I[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${I[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${I[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Cn=b((i3,xa)=>{"use strict";a();var Zm=Object.freeze({loose:!0}),e0=Object.freeze({}),t0=t=>t?typeof t!="object"?Zm:t:e0;xa.exports=t0});var Zs=b((u3,Aa)=>{"use strict";a();var _a=/^[0-9]+$/,wa=(t,e)=>{let r=_a.test(t),n=_a.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},r0=(t,e)=>wa(e,t);Aa.exports={compareIdentifiers:wa,rcompareIdentifiers:r0}});var ye=b((c3,Ba)=>{"use strict";a();var Fn=gr(),{MAX_LENGTH:Sa,MAX_SAFE_INTEGER:bn}=mr(),{safeRe:va,t:Oa}=qt(),n0=Cn(),{compareIdentifiers:Ut}=Zs(),ei=class t{constructor(e,r){if(r=n0(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Sa)throw new TypeError(`version is longer than ${Sa} characters`);Fn("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?va[Oa.LOOSE]:va[Oa.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>bn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>bn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>bn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<bn)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Fn("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Ut(this.major,e.major)||Ut(this.minor,e.minor)||Ut(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(Fn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ut(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(Fn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ut(n,s)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),Ut(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ba.exports=ei});var Dt=b((f3,Ta)=>{"use strict";a();var Ra=ye(),s0=(t,e,r=!1)=>{if(t instanceof Ra)return t;try{return new Ra(t,e)}catch(n){if(!r)return null;throw n}};Ta.exports=s0});var Pa=b((h3,Ia)=>{"use strict";a();var i0=Dt(),o0=(t,e)=>{let r=i0(t,e);return r?r.version:null};Ia.exports=o0});var La=b((p3,Na)=>{"use strict";a();var u0=Dt(),a0=(t,e)=>{let r=u0(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Na.exports=a0});var ka=b((g3,$a)=>{"use strict";a();var ja=ye(),c0=(t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new ja(t instanceof ja?t.version:t,r).inc(e,n,s).version}catch{return null}};$a.exports=c0});var Ma=b((y3,Ua)=>{"use strict";a();var qa=Dt(),l0=(t,e)=>{let r=qa(t,null,!0),n=qa(e,null,!0),s=r.compare(n);if(s===0)return null;let i=s>0,o=i?r:n,u=i?n:r,c=!!o.prerelease.length;if(!!u.prerelease.length&&!c)return!u.patch&&!u.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=c?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};Ua.exports=l0});var Ga=b((F3,Ha)=>{"use strict";a();var f0=ye(),D0=(t,e)=>new f0(t,e).major;Ha.exports=D0});var Wa=b((x3,za)=>{"use strict";a();var h0=ye(),d0=(t,e)=>new h0(t,e).minor;za.exports=d0});var Ya=b((w3,Va)=>{"use strict";a();var p0=ye(),m0=(t,e)=>new p0(t,e).patch;Va.exports=m0});var Xa=b((S3,Ka)=>{"use strict";a();var g0=Dt(),E0=(t,e)=>{let r=g0(t,e);return r&&r.prerelease.length?r.prerelease:null};Ka.exports=E0});var Ie=b((O3,Qa)=>{"use strict";a();var Ja=ye(),y0=(t,e,r)=>new Ja(t,r).compare(new Ja(e,r));Qa.exports=y0});var ec=b((R3,Za)=>{"use strict";a();var C0=Ie(),F0=(t,e,r)=>C0(e,t,r);Za.exports=F0});var rc=b((I3,tc)=>{"use strict";a();var b0=Ie(),x0=(t,e)=>b0(t,e,!0);tc.exports=x0});var xn=b((N3,sc)=>{"use strict";a();var nc=ye(),_0=(t,e,r)=>{let n=new nc(t,r),s=new nc(e,r);return n.compare(s)||n.compareBuild(s)};sc.exports=_0});var oc=b((j3,ic)=>{"use strict";a();var w0=xn(),A0=(t,e)=>t.sort((r,n)=>w0(r,n,e));ic.exports=A0});var ac=b((k3,uc)=>{"use strict";a();var S0=xn(),v0=(t,e)=>t.sort((r,n)=>S0(n,r,e));uc.exports=v0});var Er=b((U3,cc)=>{"use strict";a();var O0=Ie(),B0=(t,e,r)=>O0(t,e,r)>0;cc.exports=B0});var _n=b((H3,lc)=>{"use strict";a();var R0=Ie(),T0=(t,e,r)=>R0(t,e,r)<0;lc.exports=T0});var ti=b((z3,fc)=>{"use strict";a();var I0=Ie(),P0=(t,e,r)=>I0(t,e,r)===0;fc.exports=P0});var ri=b((V3,Dc)=>{"use strict";a();var N0=Ie(),L0=(t,e,r)=>N0(t,e,r)!==0;Dc.exports=L0});var wn=b((K3,hc)=>{"use strict";a();var j0=Ie(),$0=(t,e,r)=>j0(t,e,r)>=0;hc.exports=$0});var An=b((J3,dc)=>{"use strict";a();var k0=Ie(),q0=(t,e,r)=>k0(t,e,r)<=0;dc.exports=q0});var ni=b((Z3,pc)=>{"use strict";a();var U0=ti(),M0=ri(),H0=Er(),G0=wn(),z0=_n(),W0=An(),V0=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return U0(t,r,n);case"!=":return M0(t,r,n);case">":return H0(t,r,n);case">=":return G0(t,r,n);case"<":return z0(t,r,n);case"<=":return W0(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};pc.exports=V0});var gc=b((tw,mc)=>{"use strict";a();var Y0=ye(),K0=Dt(),{safeRe:Sn,t:vn}=qt(),X0=(t,e)=>{if(t instanceof Y0)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(Sn[vn.COERCE]);else{let n;for(;(n=Sn[vn.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Sn[vn.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Sn[vn.COERCERTL].lastIndex=-1}return r===null?null:K0(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};mc.exports=X0});var yc=b((nw,Ec)=>{"use strict";a();Ec.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Fc=b((iw,Cc)=>{"use strict";a();Cc.exports=V;V.Node=ht;V.create=V;function V(t){var e=this;if(e instanceof V||(e=new V),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}V.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};V.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};V.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};V.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)Q0(this,arguments[t]);return this.length};V.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)Z0(this,arguments[t]);return this.length};V.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};V.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};V.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};V.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};V.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};V.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};V.prototype.map=function(t,e){e=e||this;for(var r=new V,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};V.prototype.mapReverse=function(t,e){e=e||this;for(var r=new V,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};V.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=t(r,n.value,s),n=n.next;return r};V.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=t(r,n.value,s),n=n.prev;return r};V.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};V.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};V.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new V;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)r.push(s.value);return r};V.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new V;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>t;n--,s=s.prev)r.push(s.value);return r};V.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<r.length;n++)s=J0(this,s,r[n]);return i};V.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function J0(t,e,r){var n=e===t.head?new ht(r,null,e,t):new ht(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function Q0(t,e){t.tail=new ht(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function Z0(t,e){t.head=new ht(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ht(t,e,r,n){if(!(this instanceof ht))return new ht(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{yc()(V)}catch{}});var Ac=b((uw,wc)=>{"use strict";a();var eg=Fc(),dt=Symbol("max"),He=Symbol("length"),Mt=Symbol("lengthCalculator"),Cr=Symbol("allowStale"),pt=Symbol("maxAge"),Me=Symbol("dispose"),bc=Symbol("noDisposeOnSet"),he=Symbol("lruList"),$e=Symbol("cache"),_c=Symbol("updateAgeOnGet"),si=()=>1,oi=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[dt]=e.max||1/0,n=e.length||si;if(this[Mt]=typeof n!="function"?si:n,this[Cr]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[pt]=e.maxAge||0,this[Me]=e.dispose,this[bc]=e.noDisposeOnSet||!1,this[_c]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[dt]=e||1/0,yr(this)}get max(){return this[dt]}set allowStale(e){this[Cr]=!!e}get allowStale(){return this[Cr]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[pt]=e,yr(this)}get maxAge(){return this[pt]}set lengthCalculator(e){typeof e!="function"&&(e=si),e!==this[Mt]&&(this[Mt]=e,this[He]=0,this[he].forEach(r=>{r.length=this[Mt](r.value,r.key),this[He]+=r.length})),yr(this)}get lengthCalculator(){return this[Mt]}get length(){return this[He]}get itemCount(){return this[he].length}rforEach(e,r){r=r||this;for(let n=this[he].tail;n!==null;){let s=n.prev;xc(this,e,n,r),n=s}}forEach(e,r){r=r||this;for(let n=this[he].head;n!==null;){let s=n.next;xc(this,e,n,r),n=s}}keys(){return this[he].toArray().map(e=>e.key)}values(){return this[he].toArray().map(e=>e.value)}reset(){this[Me]&&this[he]&&this[he].length&&this[he].forEach(e=>this[Me](e.key,e.value)),this[$e]=new Map,this[he]=new eg,this[He]=0}dump(){return this[he].map(e=>On(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[he]}set(e,r,n){if(n=n||this[pt],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[Mt](r,e);if(this[$e].has(e)){if(i>this[dt])return Ht(this,this[$e].get(e)),!1;let c=this[$e].get(e).value;return this[Me]&&(this[bc]||this[Me](e,c.value)),c.now=s,c.maxAge=n,c.value=r,this[He]+=i-c.length,c.length=i,this.get(e),yr(this),!0}let o=new ui(e,r,i,s,n);return o.length>this[dt]?(this[Me]&&this[Me](e,r),!1):(this[He]+=o.length,this[he].unshift(o),this[$e].set(e,this[he].head),yr(this),!0)}has(e){if(!this[$e].has(e))return!1;let r=this[$e].get(e).value;return!On(this,r)}get(e){return ii(this,e,!0)}peek(e){return ii(this,e,!1)}pop(){let e=this[he].tail;return e?(Ht(this,e),e.value):null}del(e){Ht(this,this[$e].get(e))}load(e){this.reset();let r=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let o=i-r;o>0&&this.set(s.k,s.v,o)}}}prune(){this[$e].forEach((e,r)=>ii(this,r,!1))}},ii=(t,e,r)=>{let n=t[$e].get(e);if(n){let s=n.value;if(On(t,s)){if(Ht(t,n),!t[Cr])return}else r&&(t[_c]&&(n.value.now=Date.now()),t[he].unshiftNode(n));return s.value}},On=(t,e)=>{if(!e||!e.maxAge&&!t[pt])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[pt]&&r>t[pt]},yr=t=>{if(t[He]>t[dt])for(let e=t[he].tail;t[He]>t[dt]&&e!==null;){let r=e.prev;Ht(t,e),e=r}},Ht=(t,e)=>{if(e){let r=e.value;t[Me]&&t[Me](r.key,r.value),t[He]-=r.length,t[$e].delete(r.key),t[he].removeNode(e)}},ui=class{constructor(e,r,n,s,i){this.key=e,this.value=r,this.length=n,this.now=s,this.maxAge=i||0}},xc=(t,e,r,n)=>{let s=r.value;On(t,s)&&(Ht(t,r),t[Cr]||(s=void 0)),s&&e.call(n,s.value,s.key,t)};wc.exports=oi});var Pe=b((cw,Bc)=>{"use strict";a();var ai=class t{constructor(e,r){if(r=rg(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof ci)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!vc(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&cg(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&ug)|(this.options.loose&&ag))+":"+e,s=Sc.get(n);if(s)return s;let i=this.options.loose,o=i?Se[be.HYPHENRANGELOOSE]:Se[be.HYPHENRANGE];e=e.replace(o,yg(this.options.includePrerelease)),X("hyphen replace",e),e=e.replace(Se[be.COMPARATORTRIM],sg),X("comparator trim",e),e=e.replace(Se[be.TILDETRIM],ig),X("tilde trim",e),e=e.replace(Se[be.CARETTRIM],og),X("caret trim",e);let u=e.split(" ").map(D=>lg(D,this.options)).join(" ").split(/\s+/).map(D=>Eg(D,this.options));i&&(u=u.filter(D=>(X("loose invalid filter",D,this.options),!!D.match(Se[be.COMPARATORLOOSE])))),X("range list",u);let c=new Map,f=u.map(D=>new ci(D,this.options));for(let D of f){if(vc(D))return[D];c.set(D.value,D)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return Sc.set(n,l),l}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Oc(n,r)&&e.set.some(s=>Oc(s,r)&&n.every(i=>s.every(o=>i.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ng(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Cg(this.set[r],e,this.options))return!0;return!1}};Bc.exports=ai;var tg=Ac(),Sc=new tg({max:1e3}),rg=Cn(),ci=Fr(),X=gr(),ng=ye(),{safeRe:Se,t:be,comparatorTrimReplace:sg,tildeTrimReplace:ig,caretTrimReplace:og}=qt(),{FLAG_INCLUDE_PRERELEASE:ug,FLAG_LOOSE:ag}=mr(),vc=t=>t.value==="<0.0.0-0",cg=t=>t.value==="",Oc=(t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(i=>s.intersects(i,e)),s=n.pop();return r},lg=(t,e)=>(X("comp",t,e),t=hg(t,e),X("caret",t),t=fg(t,e),X("tildes",t),t=pg(t,e),X("xrange",t),t=gg(t,e),X("stars",t),t),xe=t=>!t||t.toLowerCase()==="x"||t==="*",fg=(t,e)=>t.trim().split(/\s+/).map(r=>Dg(r,e)).join(" "),Dg=(t,e)=>{let r=e.loose?Se[be.TILDELOOSE]:Se[be.TILDE];return t.replace(r,(n,s,i,o,u)=>{X("tilde",t,n,s,i,o,u);let c;return xe(s)?c="":xe(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:xe(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:u?(X("replaceTilde pr",u),c=`>=${s}.${i}.${o}-${u} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,X("tilde return",c),c})},hg=(t,e)=>t.trim().split(/\s+/).map(r=>dg(r,e)).join(" "),dg=(t,e)=>{X("caret",t,e);let r=e.loose?Se[be.CARETLOOSE]:Se[be.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,i,o,u,c)=>{X("caret",t,s,i,o,u,c);let f;return xe(i)?f="":xe(o)?f=`>=${i}.0.0${n} <${+i+1}.0.0-0`:xe(u)?i==="0"?f=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(X("replaceCaret pr",c),i==="0"?o==="0"?f=`>=${i}.${o}.${u}-${c} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}-${c} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u}-${c} <${+i+1}.0.0-0`):(X("no pr"),i==="0"?o==="0"?f=`>=${i}.${o}.${u}${n} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u} <${+i+1}.0.0-0`),X("caret return",f),f})},pg=(t,e)=>(X("replaceXRanges",t,e),t.split(/\s+/).map(r=>mg(r,e)).join(" ")),mg=(t,e)=>{t=t.trim();let r=e.loose?Se[be.XRANGELOOSE]:Se[be.XRANGE];return t.replace(r,(n,s,i,o,u,c)=>{X("xRange",t,n,s,i,o,u,c);let f=xe(i),l=f||xe(o),D=l||xe(u),d=D;return s==="="&&d&&(s=""),c=e.includePrerelease?"-0":"",f?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&d?(l&&(o=0),u=0,s===">"?(s=">=",l?(i=+i+1,o=0,u=0):(o=+o+1,u=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${u}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:D&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),X("xRange return",n),n})},gg=(t,e)=>(X("replaceStars",t,e),t.trim().replace(Se[be.STAR],"")),Eg=(t,e)=>(X("replaceGTE0",t,e),t.trim().replace(Se[e.includePrerelease?be.GTE0PRE:be.GTE0],"")),yg=t=>(e,r,n,s,i,o,u,c,f,l,D,d,h)=>(xe(n)?r="":xe(s)?r=`>=${n}.0.0${t?"-0":""}`:xe(i)?r=`>=${n}.${s}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,xe(f)?c="":xe(l)?c=`<${+f+1}.0.0-0`:xe(D)?c=`<${f}.${+l+1}.0-0`:d?c=`<=${f}.${l}.${D}-${d}`:t?c=`<${f}.${l}.${+D+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),Cg=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(X(t[n].semver),t[n].semver!==ci.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Fr=b((fw,Lc)=>{"use strict";a();var br=Symbol("SemVer ANY"),Di=class t{static get ANY(){return br}constructor(e,r){if(r=Rc(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),fi("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===br?this.value="":this.value=this.operator+this.semver.version,fi("comp",this)}parse(e){let r=this.options.loose?Tc[Ic.COMPARATORLOOSE]:Tc[Ic.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Pc(n[2],this.options.loose):this.semver=br}toString(){return this.value}test(e){if(fi("Comparator.test",e,this.options.loose),this.semver===br||e===br)return!0;if(typeof e=="string")try{e=new Pc(e,this.options)}catch{return!1}return li(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Nc(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Nc(this.value,r).test(e.semver):(r=Rc(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||li(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||li(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Lc.exports=Di;var Rc=Cn(),{safeRe:Tc,t:Ic}=qt(),li=ni(),fi=gr(),Pc=ye(),Nc=Pe()});var xr=b((hw,jc)=>{"use strict";a();var Fg=Pe(),bg=(t,e,r)=>{try{e=new Fg(e,r)}catch{return!1}return e.test(t)};jc.exports=bg});var kc=b((pw,$c)=>{"use strict";a();var xg=Pe(),_g=(t,e)=>new xg(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));$c.exports=_g});var Uc=b((gw,qc)=>{"use strict";a();var wg=ye(),Ag=Pe(),Sg=(t,e,r)=>{let n=null,s=null,i=null;try{i=new Ag(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new wg(n,r))}),n};qc.exports=Sg});var Hc=b((yw,Mc)=>{"use strict";a();var vg=ye(),Og=Pe(),Bg=(t,e,r)=>{let n=null,s=null,i=null;try{i=new Og(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new vg(n,r))}),n};Mc.exports=Bg});var Wc=b((Fw,zc)=>{"use strict";a();var hi=ye(),Rg=Pe(),Gc=Er(),Tg=(t,e)=>{t=new Rg(t,e);let r=new hi("0.0.0");if(t.test(r)||(r=new hi("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],i=null;s.forEach(o=>{let u=new hi(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||Gc(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||Gc(r,i))&&(r=i)}return r&&t.test(r)?r:null};zc.exports=Tg});var Yc=b((xw,Vc)=>{"use strict";a();var Ig=Pe(),Pg=(t,e)=>{try{return new Ig(t,e).range||"*"}catch{return null}};Vc.exports=Pg});var Bn=b((ww,Qc)=>{"use strict";a();var Ng=ye(),Jc=Fr(),{ANY:Lg}=Jc,jg=Pe(),$g=xr(),Kc=Er(),Xc=_n(),kg=An(),qg=wn(),Ug=(t,e,r,n)=>{t=new Ng(t,n),e=new jg(e,n);let s,i,o,u,c;switch(r){case">":s=Kc,i=kg,o=Xc,u=">",c=">=";break;case"<":s=Xc,i=qg,o=Kc,u="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($g(t,e,n))return!1;for(let f=0;f<e.set.length;++f){let l=e.set[f],D=null,d=null;if(l.forEach(h=>{h.semver===Lg&&(h=new Jc(">=0.0.0")),D=D||h,d=d||h,s(h.semver,D.semver,n)?D=h:o(h.semver,d.semver,n)&&(d=h)}),D.operator===u||D.operator===c||(!d.operator||d.operator===u)&&i(t,d.semver))return!1;if(d.operator===c&&o(t,d.semver))return!1}return!0};Qc.exports=Ug});var el=b((Sw,Zc)=>{"use strict";a();var Mg=Bn(),Hg=(t,e,r)=>Mg(t,e,">",r);Zc.exports=Hg});var rl=b((Ow,tl)=>{"use strict";a();var Gg=Bn(),zg=(t,e,r)=>Gg(t,e,"<",r);tl.exports=zg});var il=b((Rw,sl)=>{"use strict";a();var nl=Pe(),Wg=(t,e,r)=>(t=new nl(t,r),e=new nl(e,r),t.intersects(e,r));sl.exports=Wg});var ul=b((Iw,ol)=>{"use strict";a();var Vg=xr(),Yg=Ie();ol.exports=(t,e,r)=>{let n=[],s=null,i=null,o=t.sort((l,D)=>Yg(l,D,r));for(let l of o)Vg(l,e,r)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let u=[];for(let[l,D]of n)l===D?u.push(l):!D&&l===o[0]?u.push("*"):D?l===o[0]?u.push(`<=${D}`):u.push(`${l} - ${D}`):u.push(`>=${l}`);let c=u.join(" || "),f=typeof e.raw=="string"?e.raw:String(e);return c.length<f.length?c:e}});var hl=b((Nw,Dl)=>{"use strict";a();var al=Pe(),pi=Fr(),{ANY:di}=pi,_r=xr(),mi=Ie(),Kg=(t,e,r={})=>{if(t===e)return!0;t=new al(t,r),e=new al(e,r);let n=!1;e:for(let s of t.set){for(let i of e.set){let o=Jg(s,i,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Xg=[new pi(">=0.0.0-0")],cl=[new pi(">=0.0.0")],Jg=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===di){if(e.length===1&&e[0].semver===di)return!0;r.includePrerelease?t=Xg:t=cl}if(e.length===1&&e[0].semver===di){if(r.includePrerelease)return!0;e=cl}let n=new Set,s,i;for(let h of t)h.operator===">"||h.operator===">="?s=ll(s,h,r):h.operator==="<"||h.operator==="<="?i=fl(i,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(s&&i){if(o=mi(s.semver,i.semver,r),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let h of n){if(s&&!_r(h,String(s),r)||i&&!_r(h,String(i),r))return null;for(let C of e)if(!_r(h,String(C),r))return!1;return!0}let u,c,f,l,D=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,d=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;D&&D.prerelease.length===1&&i.operator==="<"&&D.prerelease[0]===0&&(D=!1);for(let h of e){if(l=l||h.operator===">"||h.operator===">=",f=f||h.operator==="<"||h.operator==="<=",s){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(u=ll(s,h,r),u===h&&u!==s)return!1}else if(s.operator===">="&&!_r(s.semver,String(h),r))return!1}if(i){if(D&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===D.major&&h.semver.minor===D.minor&&h.semver.patch===D.patch&&(D=!1),h.operator==="<"||h.operator==="<="){if(c=fl(i,h,r),c===h&&c!==i)return!1}else if(i.operator==="<="&&!_r(i.semver,String(h),r))return!1}if(!h.operator&&(i||s)&&o!==0)return!1}return!(s&&f&&!i&&o!==0||i&&l&&!s&&o!==0||d||D)},ll=(t,e,r)=>{if(!t)return e;let n=mi(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},fl=(t,e,r)=>{if(!t)return e;let n=mi(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};Dl.exports=Kg});var Rn=b((jw,ml)=>{"use strict";a();var gi=qt(),dl=mr(),Qg=ye(),pl=Zs(),Zg=Dt(),eE=Pa(),tE=La(),rE=ka(),nE=Ma(),sE=Ga(),iE=Wa(),oE=Ya(),uE=Xa(),aE=Ie(),cE=ec(),lE=rc(),fE=xn(),DE=oc(),hE=ac(),dE=Er(),pE=_n(),mE=ti(),gE=ri(),EE=wn(),yE=An(),CE=ni(),FE=gc(),bE=Fr(),xE=Pe(),_E=xr(),wE=kc(),AE=Uc(),SE=Hc(),vE=Wc(),OE=Yc(),BE=Bn(),RE=el(),TE=rl(),IE=il(),PE=ul(),NE=hl();ml.exports={parse:Zg,valid:eE,clean:tE,inc:rE,diff:nE,major:sE,minor:iE,patch:oE,prerelease:uE,compare:aE,rcompare:cE,compareLoose:lE,compareBuild:fE,sort:DE,rsort:hE,gt:dE,lt:pE,eq:mE,neq:gE,gte:EE,lte:yE,cmp:CE,coerce:FE,Comparator:bE,Range:xE,satisfies:_E,toComparators:wE,maxSatisfying:AE,minSatisfying:SE,minVersion:vE,validRange:OE,outside:BE,gtr:RE,ltr:TE,intersects:IE,simplifyRange:PE,subset:NE,SemVer:Qg,re:gi.re,src:gi.src,tokens:gi.t,SEMVER_SPEC_VERSION:dl.SEMVER_SPEC_VERSION,RELEASE_TYPES:dl.RELEASE_TYPES,compareIdentifiers:pl.compareIdentifiers,rcompareIdentifiers:pl.rcompareIdentifiers}});var Cl=b((Fi,bi)=>{"use strict";a();Object.defineProperty(Fi,"__esModule",{value:!0});function KE(t){return t.encrypted}var Ci=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",s=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{n&&r.connect(),KE(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};Fi.default=Ci;bi.exports=Ci;bi.exports.default=Ci});var _l=b((tA,xl)=>{"use strict";a();var{PassThrough:sy}=O("stream");xl.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",s=!1;e?s=!(r||n):r=r||"utf8",n&&(r=null);let i=new sy({objectMode:s});r&&i.setEncoding(r);let o=0,u=[];return i.on("data",c=>{u.push(c),s?o=u.length:o+=c.length}),i.getBufferedValue=()=>e?u:n?Buffer.concat(u,o):u.join(""),i.getBufferedLength=()=>o,i}});var Ai=b((nA,Or)=>{"use strict";a();var{constants:iy}=O("buffer"),oy=O("stream"),{promisify:uy}=O("util"),ay=_l(),cy=uy(oy.pipeline),jn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function wi(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=ay(e);return await new Promise((s,i)=>{let o=u=>{u&&n.getBufferedLength()<=iy.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),i(u)};(async()=>{try{await cy(t,n),s()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new jn)})}),n.getBufferedValue()}Or.exports=wi;Or.exports.buffer=(t,e)=>wi(t,{...e,encoding:"buffer"});Or.exports.array=(t,e)=>wi(t,{...e,array:!0});Or.exports.MaxBufferError=jn});var Al=b((oA,wl)=>{"use strict";a();var ly=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),fy=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Dy=new Set([500,502,503,504]),hy={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},dy={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function mt(t){let e=parseInt(t,10);return isFinite(e)?e:0}function py(t){return t?Dy.has(t.status):!0}function Si(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[s,i]=n.split(/=/,2);e[s.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function my(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}wl.exports=class{constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:u}={}){if(u){this._fromObject(u);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Si(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Si(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":my(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&fy.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||ly.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Si(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)hy[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let s of n)delete r[s]}if(r.warning){let n=r.warning.split(/,/).filter(s=>!/^\s*1[0-9][0-9]/.test(s));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return mt(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return mt(this._rescc["s-maxage"])}if(this._rescc["max-age"])return mt(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+mt(this._rescc["stale-if-error"]),n=e+mt(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+mt(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+mt(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let s=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));s.length?r["if-none-match"]=s.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&py(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let s={};for(let o in this._resHeaders)s[o]=o in r.headers&&!dy[o]?r.headers[o]:this._resHeaders[o];let i=Object.assign({},r,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Sl=b(vi=>{"use strict";a();vi.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var s=!0;for(var i in e){var o=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(s||(r+=","),s=!1,n?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};vi.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Rl=b((mA,Bl)=>{"use strict";a();var Ey=O("events"),vl=Sl(),yy=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(O(e[r]))(t)}return new Map},Ol=["sqlite","postgres","mysql","mongo","redis","tiered"],Oi=class extends Ey{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:vl.stringify,deserialize:vl.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=yy(i)}if(this.opts.compression){let i=this.opts.compression;this.opts.serialize=i.serialize.bind(i),this.opts.deserialize=i.deserialize.bind(i)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace;let s=i=>async function*(){for await(let[o,u]of typeof i=="function"?i(this.opts.store.namespace):i){let c=await this.opts.deserialize(u);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=s(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=s(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Ol.includes(this.opts.store.opts.dialect)||Ol.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,s=Array.isArray(e),i=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&n.getMany===void 0){let o=[];for(let u of i)o.push(Promise.resolve().then(()=>n.get(u)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(u).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(u=>{let c=[];for(let f of u)c.push(f.value);return c})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return s?o.map((u,c)=>{if(typeof u=="string"&&(u=this.opts.deserialize(u)),u!=null){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(e[c]).then(()=>{});return}return r&&r.raw?u:u.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,n){let s=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(s,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let s=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of s)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(u=>u.value===!0))}return Promise.resolve().then(()=>r.deleteMany(s))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Bl.exports=Oi});var Ll=b((PA,Nl)=>{"use strict";a();var vy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Nl.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(vy)),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var $l=b((LA,jl)=>{"use strict";a();var{Transform:Oy,PassThrough:By}=O("stream"),Ii=O("zlib"),Ry=Ll();jl.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Ii.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new Oy({transform(u,c,f){n=!1,f(null,u)},flush(u){u()}}),i=new By({autoDestroy:!1,destroy(u,c){t.destroy(),c(u)}}),o=r?Ii.createBrotliDecompress():Ii.createUnzip();return o.once("error",u=>{if(n&&!t.readable){i.end();return}i.destroy(u)}),Ry(t,i),t.pipe(s).pipe(o).pipe(i),i}});var zi=b((GS,Zl)=>{"use strict";a();var Gi=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,s]of this.oldCache.entries())this.onEviction(n,s);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};Zl.exports=Gi});var Wi=b((WS,ef)=>{"use strict";a();ef.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let n=r.pop();t.__destroy(...r,async s=>{await Promise.resolve(),n(s)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var Et=b((YS,uf)=>{"use strict";a();var{URL:tf}=O("url"),Qy=O("events"),Zy=O("tls"),eC=O("http2"),tC=zi(),rC=Wi(),_e=Symbol("currentStreamCount"),rf=Symbol("request"),we=Symbol("cachedOriginSet"),tt=Symbol("gracefullyClosing"),Wn=Symbol("length"),nf=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],nC=(t,e,r)=>{let n=0,s=t.length;for(;n<s;){let i=n+s>>>1;r(t[i],e)?n=i+1:s=i}return n},sC=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Vi=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[we].length>0&&n[we].length<e[we].length&&n[we].every(s=>e[we].includes(s))&&n[_e]+e[_e]<=e.remoteSettings.maxConcurrentStreams&&of(n)}},sf=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[we].length>0&&e[we].length<n[we].length&&e[we].every(s=>n[we].includes(s))&&e[_e]+n[_e]<=n.remoteSettings.maxConcurrentStreams)return of(e),!0}return!1},of=t=>{t[tt]=!0,t[_e]===0&&t.close()},Xt=class t extends Qy{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:n=10,maxCachedTlsSessions:s=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=n,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new tC({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<nf.length;n++){let s=nf[n];r+=":",e&&e[s]!==void 0&&(r+=e[s])}return r}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let r in this.queue[e]){let n=this.queue[e][r];n.completed||(n.completed=!0,n())}}_isBetterSession(e,r){return e>r}_accept(e,r,n,s){let i=0;for(;i<r.length&&e[_e]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(n,s,r),r.length=0)}getSession(e,r,n){return new Promise((s,i)=>{Array.isArray(n)&&n.length>0?(n=[...n],s()):n=[{resolve:s,reject:i}];try{if(typeof e=="string")e=new tf(e);else if(!(e instanceof tf))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:l}=r,{hostname:D}=e;if(l&&D!==l)throw new Error(`Origin ${D} differs from servername ${l}`)}}catch(l){for(let D=0;D<n.length;D++)n[D].reject(l);return}let o=this.normalizeOptions(r),u=e.origin;if(o in this.sessions){let l=this.sessions[o],D=-1,d=-1,h;for(let C=0;C<l.length;C++){let y=l[C],x=y.remoteSettings.maxConcurrentStreams;if(x<D)break;if(!y[we].includes(u))continue;let F=y[_e];F>=x||y[tt]||y.destroyed||(h||(D=x),this._isBetterSession(F,d)&&(h=y,d=F))}if(h){this._accept(h,n,u,r);return}}if(o in this.queue){if(u in this.queue[o]){this.queue[o][u].listeners.push(...n);return}}else this.queue[o]={[Wn]:0};let c=()=>{o in this.queue&&this.queue[o][u]===f&&(delete this.queue[o][u],--this.queue[o][Wn]===0&&delete this.queue[o])},f=async()=>{this._sessionCount++;let l=`${u}:${o}`,D=!1,d;try{let h={...r};h.settings===void 0&&(h.settings=this.settings),h.session===void 0&&(h.session=this.tlsSessionCache.get(l)),d=await(h.createConnection||this.createConnection).call(this,e,h),h.createConnection=()=>d;let y=eC.connect(e,h);y[_e]=0,y[tt]=!1;let x=()=>{let{socket:w}=y,S;return w.servername===!1?(w.servername=w.remoteAddress,S=y.originSet,w.servername=!1):S=y.originSet,S},F=()=>y[_e]<y.remoteSettings.maxConcurrentStreams;y.socket.once("session",w=>{this.tlsSessionCache.set(l,w)}),y.once("error",w=>{for(let S=0;S<n.length;S++)n[S].reject(w);this.tlsSessionCache.delete(l)}),y.setTimeout(this.timeout,()=>{y.destroy()}),y.once("close",()=>{if(this._sessionCount--,D){this._emptySessionCount--;let w=this.sessions[o];w.length===1?delete this.sessions[o]:w.splice(w.indexOf(y),1)}else{c();let w=new Error("Session closed without receiving a SETTINGS frame");w.code="HTTP2WRAPPER_NOSETTINGS";for(let S=0;S<n.length;S++)n[S].reject(w)}this._processQueue()});let B=()=>{let w=this.queue[o];if(!w)return;let S=y[we];for(let $=0;$<S.length;$++){let W=S[$];if(W in w){let{listeners:q,completed:pe}=w[W],_=0;for(;_<q.length&&F();)q[_].resolve(y),_++;if(w[W].listeners.splice(0,_),w[W].listeners.length===0&&!pe&&(delete w[W],--w[Wn]===0)){delete this.queue[o];break}if(!F())break}}};y.on("origin",()=>{y[we]=x()||[],y[tt]=!1,sf(this.sessions[o],y),!(y[tt]||!F())&&(B(),F()&&Vi(this.sessions[o],y))}),y.once("remoteSettings",()=>{if(f.destroyed){let w=new Error("Agent has been destroyed");for(let S=0;S<n.length;S++)n[S].reject(w);y.destroy();return}if(y.setLocalWindowSize&&y.setLocalWindowSize(1024*1024*4),y[we]=x()||[],y.socket.encrypted){let w=y[we][0];if(w!==u){let S=new Error(`Requested origin ${u} does not match server ${w}`);for(let $=0;$<n.length;$++)n[$].reject(S);y.destroy();return}}c();{let w=this.sessions;if(o in w){let S=w[o];S.splice(nC(S,y,sC),0,y)}else w[o]=[y]}D=!0,this._emptySessionCount++,this.emit("session",y),this._accept(y,n,u,r),y[_e]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),y.on("remoteSettings",()=>{F()&&(B(),F()&&Vi(this.sessions[o],y))})}),y[rf]=y.request,y.request=(w,S)=>{if(y[tt])throw new Error("The session is gracefully closing. No new streams are allowed.");let $=y[rf](w,S);return y.ref(),y[_e]++===0&&this._emptySessionCount--,$.once("close",()=>{if(--y[_e]===0&&(this._emptySessionCount++,y.unref(),this._emptySessionCount>this.maxEmptySessions||y[tt])){y.close();return}y.destroyed||y.closed||F()&&!sf(this.sessions[o],y)&&(Vi(this.sessions[o],y),B(),y[_e]===0&&this._processQueue())}),$}}catch(h){c(),this._sessionCount--;for(let C=0;C<n.length;C++)n[C].reject(h)}};f.listeners=n,f.completed=!1,f.destroyed=!1,this.queue[o][u]=f,this.queue[o][Wn]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:u=>{try{let c=u.request(n,s);rC(c),i(c)}catch(c){o(c)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,s=e.hostname;typeof r.servername>"u"&&(r.servername=s);let i=Zy.connect(n,s,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:n}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:n}=this;for(let s in n){let i=n[s];for(let o=0;o<i.length;o++){let u=i[o];if(u[_e]===0&&(r++,u.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:n}=this;for(let s in r){let i=r[s];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let s in n){let i=n[s];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Xt.kCurrentStreamCount=_e;Xt.kGracefullyClosing=tt;uf.exports={Agent:Xt,globalAgent:new Xt}});var Ki=b((XS,af)=>{"use strict";a();var{Readable:iC}=O("stream"),Yi=class extends iC{constructor(e,r){super({emitClose:!1,autoDestroy:!0,highWaterMark:r}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,r){this.readableEnded||(this.aborted=!0),r(),this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};af.exports=Yi});var lf=b((QS,cf)=>{"use strict";a();cf.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var Mr=b((tv,ff)=>{"use strict";a();var yt=(t,e,r)=>{ff.exports[e]=class extends t{constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}};yt(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});yt(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);yt(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);yt(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);yt(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);yt(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);yt(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var hf=b((nv,Df)=>{"use strict";a();Df.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Xi=b((iv,df)=>{"use strict";a();var{ERR_INVALID_HTTP_TOKEN:oC}=Mr(),uC=hf(),aC=/^[\^`\-\w!#$%&*+.|~]+$/;df.exports=t=>{if(typeof t!="string"||!aC.test(t)&&!uC(t))throw new oC("Header name",t)}});var Ji=b((uv,pf)=>{"use strict";a();var{ERR_HTTP_INVALID_HEADER_VALUE:cC,ERR_INVALID_CHAR:lC}=Mr(),fC=/[^\t\u0020-\u007E\u0080-\u00FF]/;pf.exports=(t,e)=>{if(typeof e>"u")throw new cC(e,t);if(fC.test(e))throw new lC("header content",t)}});var Ef=b((cv,gf)=>{"use strict";a();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:mf}=Mr(),DC={has(t,e){let r=t.session===void 0?t:t.session.socket;return e in t||e in r},get(t,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return t[e].bind(t);case"writable":case"destroyed":return t[e];case"readable":return t.destroyed?!1:t.readable;case"setTimeout":{let{session:r}=t;return r!==void 0?r.setTimeout.bind(r):t.setTimeout.bind(t)}case"write":case"read":case"pause":case"resume":throw new mf;default:{let r=t.session===void 0?t:t.session.socket,n=r[e];return typeof n=="function"?n.bind(r):n}}},getPrototypeOf(t){return t.session!==void 0?Reflect.getPrototypeOf(t.session.socket):Reflect.getPrototypeOf(t)},set(t,e,r){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return t[e]=r,!0;case"setTimeout":{let{session:n}=t;return n===void 0?t.setTimeout=r:n.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new mf;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};gf.exports=DC});var to=b((fv,_f)=>{"use strict";a();var{URL:Qi,urlToHttpOptions:yf}=O("url"),hC=O("http2"),{Writable:dC}=O("stream"),{Agent:pC,globalAgent:mC}=Et(),gC=Ki(),EC=lf(),{ERR_INVALID_ARG_TYPE:Vn,ERR_INVALID_PROTOCOL:yC,ERR_HTTP_HEADERS_SENT:Cf}=Mr(),CC=Xi(),FC=Ji(),bC=Ef(),{HTTP2_HEADER_STATUS:Ff,HTTP2_HEADER_METHOD:bf,HTTP2_HEADER_PATH:xf,HTTP2_HEADER_AUTHORITY:Hr,HTTP2_METHOD_CONNECT:xC}=hC.constants,ge=Symbol("headers"),Jt=Symbol("origin"),Gr=Symbol("session"),Zi=Symbol("options"),Yn=Symbol("flushedHeaders"),Qt=Symbol("jobs"),zr=Symbol("pendingAgentPromise"),eo=class extends dC{constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=yf(new Qi(e)):e instanceof Qi?e=yf(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[Gr]=r.h2session,this[Gr].destroyed)throw new Error("The session has been closed already");this.protocol=this[Gr].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new pC({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=mC;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new Vn("options.agent",["http2wrapper.Agent-like Object","undefined","false"],r.agent);if(this.agent&&(this.protocol=this.agent.protocol),r.protocol&&r.protocol!==this.protocol)throw new yC(r.protocol,this.protocol);r.port||(r.port=r.defaultPort||this.agent&&this.agent.defaultPort||443),r.host=r.hostname||r.host||"localhost",delete r.hostname;let{timeout:s}=r;r.timeout=void 0,this[ge]=Object.create(null),this[Qt]=[],this[zr]=void 0,this.socket=null,this.connection=null,this.method=r.method||"GET",this.method==="CONNECT"&&(r.path==="/"||r.path===void 0)||(this.path=r.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:i}=r;if(i)for(let u in i)this.setHeader(u,i[u]);r.auth&&!("authorization"in this[ge])&&(this[ge].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Zi]=r,this[Jt]=new Qi(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...u)=>o.destroyed?this.agent.createConnection(...u):o,this.agent.getSession(this[Jt],this[Zi]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[Yn]=!1}get method(){return this[ge][bf]}set method(e){e&&(this[ge][bf]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?Hr:xf;return this[ge][e]}set path(e){if(e){let r=this.method==="CONNECT"?Hr:xf;this[ge][r]=e}}get host(){return this[Jt].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let s=()=>this._request.write(e,r,n);this._request?s():this[Qt].push(s)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Qt].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,r){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[zr]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[Yn]||this.destroyed)return;this[Yn]=!0;let e=this.method===xC,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||EC(n,this,["timeout","continue"]),n.once("error",i=>{this.destroy(i)}),n.once("aborted",()=>{let{res:i}=this;i?(i.aborted=!0,i.emit("aborted"),i.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let s=(i,o,u)=>{let c=new gC(this.socket,n.readableHighWaterMark);this.res=c,c.url=`${this[Jt].origin}${this.path}`,c.req=this,c.statusCode=i[Ff],c.headers=i,c.rawHeaders=u,c.once("end",()=>{c.complete=!0,c.socket=null,c.connection=null}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!c._dumped&&!c.push(f)&&n.pause()}),n.once("end",()=>{this.aborted||c.push(null)}),this.emit("response",c)||c._dump())};n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[Ff]})),n.once("trailers",(i,o,u)=>{let{res:c}=this;if(c===null){s(i,o,u);return}c.trailers=i,c.rawTrailers=u}),n.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let u=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.once("end",u):u();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(n,bC);for(let i of this[Qt])i();this[Qt].length=0,this.emit("socket",this.socket)};if(!(Hr in this[ge])&&!e&&(this[ge][Hr]=this[Jt].host),this[Gr])try{r(this[Gr].request(this[ge]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Jt],this[Zi],this[ge]);this[zr]=n,r(await n),this[zr]=!1}catch(n){this[zr]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[ge])}hasHeader(e){if(typeof e!="string")throw new Vn("name","string",e);return!!this[ge][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new Vn("name","string",e);return this[ge][e.toLowerCase()]}get headersSent(){return this[Yn]}removeHeader(e){if(typeof e!="string")throw new Vn("name","string",e);if(this.headersSent)throw new Cf("remove");delete this[ge][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new Cf("set");CC(e),FC(e,r);let n=e.toLowerCase();if(n==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}n==="host"&&this.method==="CONNECT"?this[ge][Hr]=r:this[ge][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Qt].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};_f.exports=eo});var Af=b((hv,wf)=>{"use strict";a();var _C=O("tls");wf.exports=(t={},e=_C.connect)=>new Promise((r,n)=>{let s=!1,i,o=async()=>{await c,i.off("timeout",u),i.off("error",n),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:s}),s&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:s}))},u=async()=>{s=!0,o()},c=(async()=>{try{i=await e(t,o),i.on("error",n),i.once("timeout",u)}catch(f){n(f)}})()})});var vf=b((pv,Sf)=>{"use strict";a();var{isIP:wC}=O("net"),AC=O("assert"),SC=t=>{if(t[0]==="["){let r=t.indexOf("]");return AC(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};Sf.exports=t=>{let e=SC(t);return wC(e)?"":e}});var Lf=b((gv,Wr)=>{"use strict";a();var{URL:Of,urlToHttpOptions:Bf}=O("url"),Rf=O("http"),ro=O("https"),vC=Af(),OC=zi(),{Agent:BC,globalAgent:RC}=Et(),TC=to(),IC=vf(),Tf=Wi(),If=new OC({maxSize:100}),PC=new Map,NC=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let s=()=>{t.removeSocket(e,r)};e.on("close",s);let i=()=>{let{freeSockets:u}=t;for(let c of Object.values(u))if(c.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},Pf=(t,e=new Map,r=void 0)=>async n=>{let s=`${n.host}:${n.port}:${n.ALPNProtocols.sort()}`;if(!t.has(s)){if(e.has(s))return{alpnProtocol:(await e.get(s)).alpnProtocol};let{path:i}=n;n.path=n.socketPath;let o=vC(n,r);e.set(s,o);try{let u=await o;return t.set(s,u.alpnProtocol),e.delete(s),n.path=i,u}catch(u){throw e.delete(s),n.path=i,u}}return{alpnProtocol:t.get(s)}},Nf=Pf(If,PC);Wr.exports=async(t,e,r)=>{if(typeof t=="string"?t=Bf(new Of(t)):t instanceof Of?t=Bf(t):t={...t},typeof e=="function"||e===void 0?(r=e,e=t):e=Object.assign(t,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||IC(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?ro.globalAgent:Rf.globalAgent;let s=e.resolveProtocol||Nf,{agent:i}=e;if(i!==void 0&&i!==!1&&i.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(n){e.resolveSocket=!0;let{socket:o,alpnProtocol:u,timeout:c}=await s(e);if(c){o&&o.destroy();let l=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw l.code="ETIMEDOUT",l.ms=e.timeout,l}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let f=u==="h2";if(i&&(i=f?i.http2:i.https,e.agent=i),i===void 0&&(i=f?RC:ro.globalAgent),o)if(i===!1)o.destroy();else{let l=(f?BC:ro.Agent).prototype.createConnection;i.createConnection===l?f?e._reuseSocket=o:NC(i,o,e):o.destroy()}if(f)return Tf(new TC(e,r))}else i&&(e.agent=i.http);return Tf(Rf.request(e,r))};Wr.exports.protocolCache=If;Wr.exports.resolveProtocol=Nf;Wr.exports.createResolveProtocol=Pf});var no=b((yv,jf)=>{"use strict";a();var LC=O("stream"),jC=O("tls"),$C=new jC.TLSSocket(new LC.PassThrough)._handle._parentWrap.constructor;jf.exports=$C});var io=b((Fv,$f)=>{"use strict";a();var so=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};$f.exports=so});var qf=b((xv,kf)=>{"use strict";a();var kC=(t,e,r)=>{if(!r.some(s=>typeof s==="string"?typeof e===s:e instanceof s)){let s=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${s.join(" or ")}, got ${typeof e}`)}};kf.exports=kC});var oo=b((wv,Mf)=>{"use strict";a();var{URL:Uf}=O("url"),Kn=qf();Mf.exports=(t,e)=>{Kn("proxyOptions",e,["object"]),Kn("proxyOptions.headers",e.headers,["object","undefined"]),Kn("proxyOptions.raw",e.raw,["boolean","undefined"]),Kn("proxyOptions.url",e.url,[Uf,"string"]);let r=new Uf(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var Xn=b((Sv,Hf)=>{"use strict";a();Hf.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let n=`${e}:${r}`,s=`Basic ${Buffer.from(n).toString("base64")}`;return{"proxy-authorization":s,authorization:s}}return{}}});var Yf=b((Ov,Vf)=>{"use strict";a();var qC=O("tls"),UC=O("http"),Gf=O("https"),MC=no(),{globalAgent:HC}=Et(),GC=io(),zf=oo(),zC=Xn(),Wf=(t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:o}=n,u=await HC.request(s,n,{...zC(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});u.once("error",r),u.once("response",c=>{let f=c[":status"];if(f!==200){r(new GC(f,""));return}let l=t instanceof Gf.Agent;if(o&&l){e.socket=u;let d=qC.connect(e);d.once("close",()=>{u.destroy()}),r(null,d);return}let D=new MC(u);D.encrypted=!1,D._handle.getpeername=d=>{d.family=void 0,d.address=void 0,d.port=void 0},r(null,D)})}catch(n){r(n)}})()},uo=class extends UC.Agent{constructor(e){super(e),zf(this,e.proxyOptions)}createConnection(e,r){Wf(this,e,r)}},ao=class extends Gf.Agent{constructor(e){super(e),zf(this,e.proxyOptions)}createConnection(e,r){Wf(this,e,r)}};Vf.exports={HttpOverHttp2:uo,HttpsOverHttp2:ao}});var lo=b((Rv,Kf)=>{"use strict";a();var{Agent:WC}=Et(),VC=no(),YC=io(),KC=oo(),co=class extends WC{constructor(e){super(e),KC(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,o]=await this._getProxyStream(n);if(i!==200)throw new YC(i,o);if(this.proxyOptions.raw)r.socket=s;else{let u=new VC(s);return u.encrypted=!1,u._handle.getpeername=c=>{c.family=void 0,c.address=void 0,c.port=void 0},u}return super.createConnection(e,r)}};Kf.exports=co});var Jf=b((Iv,Xf)=>{"use strict";a();var{globalAgent:XC}=Et(),JC=lo(),QC=Xn(),ZC=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),fo=class extends JC{async _getProxyStream(e){let{proxyOptions:r}=this,n={...QC(this),...r.headers,":method":"CONNECT",":authority":e},s=await XC.request(r.url,r,n),i=await ZC(s);return[s,i,""]}};Xf.exports=fo});var Zf=b((Nv,Qf)=>{"use strict";a();var eF=O("http"),tF=O("https"),rF=lo(),nF=Xn(),sF=t=>new Promise((e,r)=>{let n=(s,i,o)=>{i.unshift(o),t.off("error",r),e([i,s.statusCode,s.statusMessage])};t.once("error",r),t.once("connect",n)}),Jn=class extends rF{async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,o=(n.protocol==="https:"?tF:eF).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...nF(this),...s,host:e},method:"CONNECT"}).end();return sF(o)}};Qf.exports={Http2OverHttp:Jn,Http2OverHttps:Jn}});var tD=b((jv,eD)=>{"use strict";a();var iF=O("http2"),{Agent:oF,globalAgent:uF}=Et(),Do=to(),aF=Ki(),cF=Lf(),{HttpOverHttp2:lF,HttpsOverHttp2:fF}=Yf(),DF=Jf(),{Http2OverHttp:hF,Http2OverHttps:dF}=Zf(),pF=Xi(),mF=Ji(),gF=(t,e,r)=>new Do(t,e,r),EF=(t,e,r)=>{let n=new Do(t,e,r);return n.end(),n};eD.exports={...iF,ClientRequest:Do,IncomingMessage:aF,Agent:oF,globalAgent:uF,request:gF,get:EF,auto:cF,proxies:{HttpOverHttp2:lF,HttpsOverHttp2:fF,Http2OverHttp2:DF,Http2OverHttp:hF,Http2OverHttps:dF},validateHeaderName:pF,validateHeaderValue:mF}});var yo=b(Ft=>{"use strict";a();Ft.parse=Ft.decode=KF;Ft.stringify=Ft.encode=pD;Ft.safe=er;Ft.unsafe=ss;var Eo=typeof process<"u"&&process.platform==="win32"?`\r
4
+ `:`
5
+ `;function pD(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var s=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(i,o,u){var c=t[i];c&&Array.isArray(c)?c.forEach(function(f){n+=er(i+"[]")+s+er(f)+`
6
+ `}):c&&typeof c=="object"?r.push(i):n+=er(i)+s+er(c)+Eo}),e.section&&n.length&&(n="["+er(e.section)+"]"+Eo+n),r.forEach(function(i,o,u){var c=mD(i).join("\\."),f=(e.section?e.section+".":"")+c,l=pD(t[i],{section:f,whitespace:e.whitespace});n.length&&l.length&&(n+=Eo),n+=l}),n}function mD(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function KF(t){var e={},r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);return i.forEach(function(o,u,c){if(!(!o||o.match(/^\s*[;#]/))){var f=o.match(s);if(f){if(f[1]!==void 0){if(n=ss(f[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var l=ss(f[2]);if(l!=="__proto__"){var D=f[3]?ss(f[4]):!0;switch(D){case"true":case"false":case"null":D=JSON.parse(D)}if(l.length>2&&l.slice(-2)==="[]"){if(l=l.substring(0,l.length-2),l==="__proto__")return;r[l]?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]}Array.isArray(r[l])?r[l].push(D):r[l]=D}}}}),Object.keys(e).filter(function(o,u,c){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var f=mD(o),l=e,D=f.pop(),d=D.replace(/\\\./g,".");return f.forEach(function(h,C,y){h!=="__proto__"&&((!l[h]||typeof l[h]!="object")&&(l[h]={}),l=l[h])}),l===e&&d===D?!1:(l[d]=e[o],!0)}).forEach(function(o,u,c){delete e[o]}),e}function gD(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function er(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&gD(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function ss(t,e){if(t=(t||"").trim(),gD(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",s=0,i=t.length;s<i;s++){var o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var CD=b((u6,yD)=>{"use strict";a();var Co=1,ED=2;function XF(){return""}function JF(t,e,r){return t.slice(e,r).replace(/\S/g," ")}yD.exports=function(t,e){e=e||{};for(var r,n,s=!1,i=!1,o=0,u="",c=e.whitespace===!1?XF:JF,f=0;f<t.length;f++){if(r=t[f],n=t[f+1],!i&&r==='"'){var l=t[f-1]==="\\"&&t[f-2]!=="\\";l||(s=!s)}if(!s){if(!i&&r+n==="//")u+=t.slice(o,f),o=f,i=Co,f++;else if(i===Co&&r+n===`\r
7
+ `){f++,i=!1,u+=c(t,o,f),o=f;continue}else if(i===Co&&r===`
8
+ `)i=!1,u+=c(t,o,f),o=f;else if(!i&&r+n==="/*"){u+=t.slice(o,f),o=f,i=ED,f++;continue}else if(i===ED&&r+n==="*/"){f++,i=!1,u+=c(t,o,f+1),o=f+1;continue}}}return u+(i?c(t.substr(o)):t.substr(o))}});var bD=b(tr=>{"use strict";a();var FD=O("fs"),QF=yo(),Yr=O("path"),ZF=CD(),e2=tr.parse=function(t){return/^\s*{/.test(t)?JSON.parse(ZF(t)):QF.parse(t)},t2=tr.file=function(){var t=[].slice.call(arguments).filter(function(s){return s!=null});for(var e in t)if(typeof t[e]!="string")return;var r=Yr.join.apply(null,t),n;try{return FD.readFileSync(r,"utf-8")}catch{return}},c6=tr.json=function(){var t=t2.apply(null,arguments);return t?e2(t):null},l6=tr.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)if(s.toLowerCase().indexOf(t.toLowerCase())===0){for(var i=s.substring(n).split("__"),o;(o=i.indexOf(""))>-1;)i.splice(o,1);var u=r;i.forEach(function(f,l){!f||typeof u!="object"||(l===i.length-1&&(u[f]=e[s]),u[f]===void 0&&(u[f]={}),u=u[f])})}return r},f6=tr.find=function(){var t=Yr.join.apply(null,[].slice.call(arguments));function e(r,n){var s=Yr.join(r,n);try{return FD.statSync(s),s}catch{if(Yr.dirname(r)!==r)return e(Yr.dirname(r),n)}}return e(process.cwd(),t)}});var vD=b((d6,SD)=>{"use strict";a();function _D(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function wD(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function AD(t){var e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=AD(r):_D(r)?e[n]=wD(r):e[n]=Fo({},r):e[n]=r}),e}function xD(t,e){return e==="__proto__"?void 0:t[e]}var Fo=SD.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,n,s;return e.forEach(function(i){typeof i!="object"||i===null||Array.isArray(i)||Object.keys(i).forEach(function(o){if(n=xD(t,o),r=xD(i,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=AD(r);return}else if(_D(r)){t[o]=wD(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[o]=Fo({},r);return}else{t[o]=Fo(n,r);return}})}),t}});var TD=b((m6,RD)=>{"use strict";a();function r2(t,e){var r=t;e.slice(0,-1).forEach(function(s){r=r[s]||{}});var n=e[e.length-1];return n in r}function OD(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function BD(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}RD.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(S){r.bools[S]=!0});var n={};function s(S){return n[S].some(function($){return r.bools[$]})}Object.keys(e.alias||{}).forEach(function(S){n[S]=[].concat(e.alias[S]),n[S].forEach(function($){n[$]=[S].concat(n[S].filter(function(W){return $!==W}))})}),[].concat(e.string).filter(Boolean).forEach(function(S){r.strings[S]=!0,n[S]&&[].concat(n[S]).forEach(function($){r.strings[$]=!0})});var i=e.default||{},o={_:[]};function u(S,$){return r.allBools&&/^--[^=]+$/.test($)||r.strings[S]||r.bools[S]||n[S]}function c(S,$,W){for(var q=S,pe=0;pe<$.length-1;pe++){var _=$[pe];if(BD(q,_))return;q[_]===void 0&&(q[_]={}),(q[_]===Object.prototype||q[_]===Number.prototype||q[_]===String.prototype)&&(q[_]={}),q[_]===Array.prototype&&(q[_]=[]),q=q[_]}var R=$[$.length-1];BD(q,R)||((q===Object.prototype||q===Number.prototype||q===String.prototype)&&(q={}),q===Array.prototype&&(q=[]),q[R]===void 0||r.bools[R]||typeof q[R]=="boolean"?q[R]=W:Array.isArray(q[R])?q[R].push(W):q[R]=[q[R],W])}function f(S,$,W){if(!(W&&r.unknownFn&&!u(S,W)&&r.unknownFn(W)===!1)){var q=!r.strings[S]&&OD($)?Number($):$;c(o,S.split("."),q),(n[S]||[]).forEach(function(pe){c(o,pe.split("."),q)})}}Object.keys(r.bools).forEach(function(S){f(S,i[S]===void 0?!1:i[S])});var l=[];t.indexOf("--")!==-1&&(l=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var D=0;D<t.length;D++){var d=t[D],h,C;if(/^--.+=/.test(d)){var y=d.match(/^--([^=]+)=([\s\S]*)$/);h=y[1];var x=y[2];r.bools[h]&&(x=x!=="false"),f(h,x,d)}else if(/^--no-.+/.test(d))h=d.match(/^--no-(.+)/)[1],f(h,!1,d);else if(/^--.+/.test(d))h=d.match(/^--(.+)/)[1],C=t[D+1],C!==void 0&&!/^(-|--)[^-]/.test(C)&&!r.bools[h]&&!r.allBools&&(!n[h]||!s(h))?(f(h,C,d),D+=1):/^(true|false)$/.test(C)?(f(h,C==="true",d),D+=1):f(h,r.strings[h]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var F=d.slice(1,-1).split(""),B=!1,w=0;w<F.length;w++){if(C=d.slice(w+2),C==="-"){f(F[w],C,d);continue}if(/[A-Za-z]/.test(F[w])&&C[0]==="="){f(F[w],C.slice(1),d),B=!0;break}if(/[A-Za-z]/.test(F[w])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(C)){f(F[w],C,d),B=!0;break}if(F[w+1]&&F[w+1].match(/\W/)){f(F[w],d.slice(w+2),d),B=!0;break}else f(F[w],r.strings[F[w]]?"":!0,d)}h=d.slice(-1)[0],!B&&h!=="-"&&(t[D+1]&&!/^(-|--)[^-]/.test(t[D+1])&&!r.bools[h]&&(!n[h]||!s(h))?(f(h,t[D+1],d),D+=1):t[D+1]&&/^(true|false)$/.test(t[D+1])?(f(h,t[D+1]==="true",d),D+=1):f(h,r.strings[h]?"":!0,d))}else if((!r.unknownFn||r.unknownFn(d)!==!1)&&o._.push(r.strings._||!OD(d)?d:Number(d)),e.stopEarly){o._.push.apply(o._,t.slice(D+1));break}}return Object.keys(i).forEach(function(S){r2(o,S.split("."))||(c(o,S.split("."),i[S]),(n[S]||[]).forEach(function($){c(o,$.split("."),i[S])}))}),e["--"]?o["--"]=l.slice():l.forEach(function(S){o._.push(S)}),o}});var LD=b((E6,ND)=>{"use strict";a();var Kr=bD(),rr=O("path").join,n2=vD(),ID="/etc",PD=process.platform==="win32",Xr=PD?process.env.USERPROFILE:process.env.HOME;ND.exports=function(t,e,r,n){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=TD()(process.argv.slice(2))),e=(typeof e=="string"?Kr.json(e):e)||{},n=n||Kr.parse;var s=Kr.env(t+"_"),i=[e],o=[];function u(c){if(!(o.indexOf(c)>=0)){var f=Kr.file(c);f&&(i.push(n(f)),o.push(c))}}return PD||[rr(ID,t,"config"),rr(ID,t+"rc")].forEach(u),Xr&&[rr(Xr,".config",t,"config"),rr(Xr,".config",t),rr(Xr,"."+t,"config"),rr(Xr,"."+t+"rc")].forEach(u),u(Kr.find("."+t+"rc")),s.config&&u(s.config),r.config&&u(r.config),n2.apply(null,i.concat([s,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var kD=b((b6,$D)=>{"use strict";a();var rt=O("constants"),s2=process.cwd,is=null,i2=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return is||(is=s2.call(process)),is};try{process.cwd()}catch{}typeof process.chdir=="function"&&(xo=process.chdir,process.chdir=function(t){is=null,xo.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,xo));var xo;$D.exports=o2;function o2(t){rt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(l,D,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(l,D,d,h){h&&process.nextTick(h)},t.lchownSync=function(){}),i2==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(l){function D(d,h,C){var y=Date.now(),x=0;l(d,h,function F(B){if(B&&(B.code==="EACCES"||B.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){t.stat(h,function(w,S){w&&w.code==="ENOENT"?l(d,h,F):C(B)})},x),x<100&&(x+=10);return}C&&C(B)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(l){function D(d,h,C,y,x,F){var B;if(F&&typeof F=="function"){var w=0;B=function(S,$,W){if(S&&S.code==="EAGAIN"&&w<10)return w++,l.call(t,d,h,C,y,x,B);F.apply(this,arguments)}}return l.call(t,d,h,C,y,x,B)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(l){return function(D,d,h,C,y){for(var x=0;;)try{return l.call(t,D,d,h,C,y)}catch(F){if(F.code==="EAGAIN"&&x<10){x++;continue}throw F}}}(t.readSync);function e(l){l.lchmod=function(D,d,h){l.open(D,rt.O_WRONLY|rt.O_SYMLINK,d,function(C,y){if(C){h&&h(C);return}l.fchmod(y,d,function(x){l.close(y,function(F){h&&h(x||F)})})})},l.lchmodSync=function(D,d){var h=l.openSync(D,rt.O_WRONLY|rt.O_SYMLINK,d),C=!0,y;try{y=l.fchmodSync(h,d),C=!1}finally{if(C)try{l.closeSync(h)}catch{}else l.closeSync(h)}return y}}function r(l){rt.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(D,d,h,C){l.open(D,rt.O_SYMLINK,function(y,x){if(y){C&&C(y);return}l.futimes(x,d,h,function(F){l.close(x,function(B){C&&C(F||B)})})})},l.lutimesSync=function(D,d,h){var C=l.openSync(D,rt.O_SYMLINK),y,x=!0;try{y=l.futimesSync(C,d,h),x=!1}finally{if(x)try{l.closeSync(C)}catch{}else l.closeSync(C)}return y}):l.futimes&&(l.lutimes=function(D,d,h,C){C&&process.nextTick(C)},l.lutimesSync=function(){})}function n(l){return l&&function(D,d,h){return l.call(t,D,d,function(C){f(C)&&(C=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(D,d){try{return l.call(t,D,d)}catch(h){if(!f(h))throw h}}}function i(l){return l&&function(D,d,h,C){return l.call(t,D,d,h,function(y){f(y)&&(y=null),C&&C.apply(this,arguments)})}}function o(l){return l&&function(D,d,h){try{return l.call(t,D,d,h)}catch(C){if(!f(C))throw C}}}function u(l){return l&&function(D,d,h){typeof d=="function"&&(h=d,d=null);function C(y,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),h&&h.apply(this,arguments)}return d?l.call(t,D,d,C):l.call(t,D,C)}}function c(l){return l&&function(D,d){var h=d?l.call(t,D,d):l.call(t,D);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function f(l){if(!l||l.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var MD=b((_6,UD)=>{"use strict";a();var qD=O("stream").Stream;UD.exports=u2;function u2(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);qD.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),u=0,c=o.length;u<c;u++){var f=o[u];this[f]=s[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(l,D){if(l){i.emit("error",l),i.readable=!1;return}i.fd=D,i.emit("open",D),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);qD.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,u=i.length;o<u;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var GD=b((A6,HD)=>{"use strict";a();HD.exports=c2;var a2=Object.getPrototypeOf||function(t){return t.__proto__};function c2(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:a2(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var YD=b((v6,Ao)=>{"use strict";a();var ue=O("fs"),l2=kD(),f2=MD(),D2=GD(),os=O("util"),Ee,as;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ee=Symbol.for("graceful-fs.queue"),as=Symbol.for("graceful-fs.previous")):(Ee="___graceful-fs.queue",as="___graceful-fs.previous");function h2(){}function VD(t,e){Object.defineProperty(t,Ee,{get:function(){return e}})}var bt=h2;os.debuglog?bt=os.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bt=function(){var t=os.format.apply(os,arguments);t="GFS4: "+t.split(/\n/).join(`
9
+ GFS4: `),console.error(t)});ue[Ee]||(zD=global[Ee]||[],VD(ue,zD),ue.close=function(t){function e(r,n){return t.call(ue,r,function(s){s||WD(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,as,{value:t}),e}(ue.close),ue.closeSync=function(t){function e(r){t.apply(ue,arguments),WD()}return Object.defineProperty(e,as,{value:t}),e}(ue.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bt(ue[Ee]),O("assert").equal(ue[Ee].length,0)}));var zD;global[Ee]||VD(global,ue[Ee]);Ao.exports=_o(D2(ue));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ue.__patched&&(Ao.exports=_o(ue),ue.__patched=!0);function _o(t){l2(t),t.gracefulify=_o,t.createReadStream=$,t.createWriteStream=W;var e=t.readFile;t.readFile=r;function r(_,R,T){return typeof R=="function"&&(T=R,R=null),M(_,R,T);function M(G,H,j,k){return e(G,H,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?nr([M,[G,H,j],N,k||Date.now(),Date.now()]):typeof j=="function"&&j.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return n(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?nr([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return i(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?nr([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(_,R,T,M){return typeof T=="function"&&(M=T,T=0),G(_,R,T,M);function G(H,j,k,N,z){return u(H,j,k,function(L){L&&(L.code==="EMFILE"||L.code==="ENFILE")?nr([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(_,R,T){typeof R=="function"&&(T=R,R=null);var M=l.test(process.version)?function(j,k,N,z){return f(j,G(j,k,N,z))}:function(j,k,N,z){return f(j,k,G(j,k,N,z))};return M(_,R,T);function G(H,j,k,N){return function(z,L){z&&(z.code==="EMFILE"||z.code==="ENFILE")?nr([M,[H,j,k],z,N||Date.now(),Date.now()]):(L&&L.sort&&L.sort(),typeof k=="function"&&k.call(this,z,L))}}}if(process.version.substr(0,4)==="v0.8"){var d=f2(t);F=d.ReadStream,w=d.WriteStream}var h=t.ReadStream;h&&(F.prototype=Object.create(h.prototype),F.prototype.open=B);var C=t.WriteStream;C&&(w.prototype=Object.create(C.prototype),w.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(_){F=_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(_){w=_},enumerable:!0,configurable:!0});var y=F;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(_){y=_},enumerable:!0,configurable:!0});var x=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(_){x=_},enumerable:!0,configurable:!0});function F(_,R){return this instanceof F?(h.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function B(){var _=this;pe(_.path,_.flags,_.mode,function(R,T){R?(_.autoClose&&_.destroy(),_.emit("error",R)):(_.fd=T,_.emit("open",T),_.read())})}function w(_,R){return this instanceof w?(C.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var _=this;pe(_.path,_.flags,_.mode,function(R,T){R?(_.destroy(),_.emit("error",R)):(_.fd=T,_.emit("open",T))})}function $(_,R){return new t.ReadStream(_,R)}function W(_,R){return new t.WriteStream(_,R)}var q=t.open;t.open=pe;function pe(_,R,T,M){return typeof T=="function"&&(M=T,T=null),G(_,R,T,M);function G(H,j,k,N,z){return q(H,j,k,function(L,ip){L&&(L.code==="EMFILE"||L.code==="ENFILE")?nr([G,[H,j,k,N],L,z||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}return t}function nr(t){bt("ENQUEUE",t[0].name,t[1]),ue[Ee].push(t),wo()}var us;function WD(){for(var t=Date.now(),e=0;e<ue[Ee].length;++e)ue[Ee][e].length>2&&(ue[Ee][e][3]=t,ue[Ee][e][4]=t);wo()}function wo(){if(clearTimeout(us),us=void 0,ue[Ee].length!==0){var t=ue[Ee].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)bt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){bt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(bt("RETRY",e.name,r),e.apply(null,r.concat([s]))):ue[Ee].push(t)}us===void 0&&(us=setTimeout(wo,0))}}});var KD=b(sr=>{"use strict";a();var d2=sr&&sr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sr,"__esModule",{value:!0});sr.readCAFileSync=void 0;var p2=d2(YD());function m2(t){try{let e=p2.default.readFileSync(t,"utf8"),r="-----END CERTIFICATE-----";return e.split(r).filter(s=>!!s.trim()).map(s=>`${s.trimLeft()}${r}`)}catch(e){if(e.code==="ENOENT")return;throw e}}sr.readCAFileSync=m2});var XD=b(xt=>{"use strict";a();var g2=xt&&xt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),E2=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&g2(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});E2(KD(),xt)});var ZD=b((P6,QD)=>{"use strict";a();QD.exports=JD;function _t(t,e){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(t,e);t.__proto__=e}function JD(){this.list=[];var t=null;Object.defineProperty(this,"root",{get:function(){return t},set:function(e){t=e,this.list.length&&_t(this.list[this.list.length-1],e)},enumerable:!0,configurable:!0})}JD.prototype={get length(){return this.list.length},get keys(){var t=[];for(var e in this.list[0])t.push(e);return t},get snapshot(){var t={};return this.keys.forEach(function(e){t[e]=this.get(e)},this),t},get store(){return this.list[0]},push:function(t){return typeof t!="object"&&(t={valueOf:t}),this.list.length>=1&&_t(this.list[this.list.length-1],t),_t(t,this.root),this.list.push(t)},pop:function(){return this.list.length>=2&&_t(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(t){return _t(t,this.list[0]||this.root),this.list.unshift(t)},shift:function(){return this.list.length===1&&_t(this.list[0],this.root),this.list.shift()},get:function(t){return this.list[0][t]},set:function(t,e,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(t)&&this.push({}),this.list[0][t]=e},forEach:function(t,e){for(var r in this.list[0])t.call(e,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var t=this.list.splice.apply(this.list,arguments),e=0,r=this.list.length;e<r;e++)_t(this.list[e],this.list[e+1]||this.root);return t}}});var nh=b((ze,rh)=>{"use strict";a();var eh=ZD(),Jr=O("path"),cs=O("fs"),So=yo(),vo=O("events").EventEmitter,y2=O("url"),C2=O("http"),ze=rh.exports=function(){for(var t=[].slice.call(arguments),e=new Ce;t.length;){var r=t.shift();r&&e.push(typeof r=="string"?b2(r):r)}return e},L6=ze.find=function(){var t=Jr.join.apply(null,[].slice.call(arguments));function e(r,n){var s=Jr.join(r,n);try{return cs.statSync(s),s}catch{if(Jr.dirname(r)!==r)return e(Jr.dirname(r),n)}}return e(m,t)},F2=ze.parse=function(t,e,r){if(t=""+t,r)if(r==="json")if(this.emit)try{return JSON.parse(t)}catch(n){this.emit("error",n)}else return JSON.parse(t);else return So.parse(t);else try{return JSON.parse(t)}catch{return So.parse(t)}},b2=ze.json=function(){var t=[].slice.call(arguments).filter(function(n){return n!=null}),e=Jr.join.apply(null,t),r;try{r=cs.readFileSync(e,"utf-8")}catch{return}return F2(r,e,"json")},j6=ze.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)s.indexOf(t)===0&&(r[s.substring(n)]=e[s]);return r};ze.ConfigChain=Ce;function Ce(){vo.apply(this),eh.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var th={constructor:{value:Ce}};Object.keys(vo.prototype).forEach(function(t){th[t]=Object.getOwnPropertyDescriptor(vo.prototype,t)});Ce.prototype=Object.create(eh.prototype,th);Ce.prototype.del=function(t,e){if(e){var r=this.sources[e];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+e));delete r[t]}else for(var n=0,s=this.list.length;n<s;n++)delete this.list[n][t];return this};Ce.prototype.set=function(t,e,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[t]=e,this};Ce.prototype.get=function(t,e){return e?(e=this.sources[e],e&&(e=e.data),e&&Object.hasOwnProperty.call(e,t)?e[t]:void 0):this.list[0][t]};Ce.prototype.save=function(t,i,r){typeof i=="function"&&(r=i,i=null);var n=this.sources[t];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+t));if(n.source){var s=n.prefix||"";return Object.keys(n.data).forEach(function(u){n.source[s+u]=n.data[u]}),this}var i=i||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=So.stringify(o),this._saving++,cs.writeFile(n.path,o,"utf8",function(u){if(this._saving--,u)return r?r(u):this.emit("error",u);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Ce.prototype.addFile=function(t,e,r){r=r||t;var n={__source__:r};return this.sources[r]={path:t,type:e},this.push(n),this._await(),cs.readFile(t,"utf8",function(s,i){s&&this.emit("error",s),this.addString(i,t,e,n)}.bind(this)),this};Ce.prototype.addEnv=function(t,e,r){r=r||"env";var n=ze.env(t,e);return this.sources[r]={data:n,source:e,prefix:t},this.add(n,r)};Ce.prototype.addUrl=function(t,e,r){this._await();var n=y2.format(t);r=r||n;var s={__source__:r};return this.sources[r]={href:n,type:e},this.push(s),C2.request(t,function(i){var o=[],u=i.headers["content-type"];e||(e=u.indexOf("json")!==-1?"json":u.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,s.type=e),i.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,e,s)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Ce.prototype.addString=function(t,e,r,n){return t=this.parse(t,e,r),this.add(t,n),this};Ce.prototype.add=function(t,e){if(e&&typeof e=="object"){var r=this.list.indexOf(e);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,t),e=e.__source__,this.sources[e]=this.sources[e]||{},this.sources[e].data=t,this._resolve()}else typeof e=="string"&&(this.sources[e]=this.sources[e]||{},this.sources[e].data=t),this._await(),this.push(t),process.nextTick(this._resolve.bind(this));return this};Ce.prototype.parse=ze.parse;Ce.prototype._await=function(){this._awaiting++};Ce.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var ih=b((k6,sh)=>{"use strict";a();sh.exports=function(t){let e=t.indexOf(":");if(e===-1)return Oo(t);let r=t.substr(0,e),n=t.substr(e+1);return`${Oo(r)}:${Oo(n)}`};function Oo(t){if(t=t.toLowerCase(),t==="_authtoken")return"_authToken";let e=t[0];for(let r=1;r<t.length;r++)e+=t[r]==="_"?"-":t[r];return e}});var oh=b(ls=>{"use strict";a();Object.defineProperty(ls,"__esModule",{value:!0});ls.envReplace=void 0;var x2=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function _2(t,e){return t.replace(x2,w2.bind(null,e))}ls.envReplace=_2;function w2(t,e,r,n){if(r.length%2)return e.slice((r.length+1)/2);let s=S2(t,n);if(s===void 0)throw new Error(`Failed to replace env in config: ${e}`);return`${r.slice(r.length/2)}${s}`}var A2=/([^:-]+)(:?)-(.+)/;function S2(t,e){let r=e.match(A2);if(!r)return t[e];let[,n,s,i]=r;return Object.prototype.hasOwnProperty.call(t,n)?!t[n]&&s?i:t[n]:i}});var uh=b(fs=>{"use strict";a();Object.defineProperty(fs,"__esModule",{value:!0});fs.envReplace=void 0;var v2=oh();Object.defineProperty(fs,"envReplace",{enumerable:!0,get:function(){return v2.envReplace}})});var ch=b(Ds=>{"use strict";a();var O2=O("fs"),wt=O("path"),{envReplace:ah}=uh(),B2=(t,e,r)=>{if(typeof e!="string")return e;let n=[].concat(t[r]),s=n.indexOf(wt)!==-1,i=n.indexOf(Boolean)!==-1,o=n.indexOf(String)!==-1,u=n.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${e}`)}if(i&&!o&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return e=ah(e,process.env),s&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=wt.resolve(process.env.HOME,e.substr(2))),e=wt.resolve(e)),u&&!isNaN(e)&&(e=Number(e)),e},R2=t=>{t=wt.resolve(t);let e=!1;for(;wt.basename(t)==="node_modules";)t=wt.dirname(t),e=!0;if(e)return t;let r=(n,s)=>{let i=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&i.test(n))return s;try{let o=O2.readdirSync(n);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return n;let u=wt.dirname(n);return u===n?s:r(u,s)}catch(o){if(n===s){if(o.code==="ENOENT")return s;throw o}return s}};return r(t,t)};Ds.envReplace=ah;Ds.findPrefix=R2;Ds.parseField=B2});var Dh=b(fh=>{"use strict";a();var At=O("path"),T2=O("stream").Stream,hs=O("url"),I2=()=>{},P2=()=>[],lh=()=>{};fh.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:At,cache:At,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:At,"global-style":Boolean,group:[Number,String],"https-proxy":[null,hs],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":At,"init-author-name":String,"init-author-email":String,"init-author-url":["",hs],"init-license":String,"init-version":lh,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":P2(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:T2,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,lh],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:At,production:Boolean,progress:Boolean,proxy:[null,!1,hs],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,hs],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:At,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:At,umask:I2,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var mh=b((K6,ph)=>{"use strict";a();var{readCAFileSync:N2}=XD(),hh=O("fs"),Bo=O("path"),{ConfigChain:L2}=nh(),j2=ih(),dh=ch(),Ro=class extends L2{constructor(e,r){super(e),this.root=e,this._parseField=dh.parseField.bind(null,r||Dh())}add(e,r){try{for(let n of Object.keys(e))e[n]=this._parseField(e[n],n)}catch(n){throw n}return super.add(e,r)}addFile(e,r){r=r||e;let n={__source__:r};this.sources[r]={path:e,type:"ini"},this.push(n),this._await();try{let s=hh.readFileSync(e,"utf8");this.addString(s,e,"ini",n)}catch(s){if(s.code==="ENOENT")this.add({},n);else return`Issue while reading "${e}". ${s.message}`}}addEnv(e){e=e||process.env;let r={};return Object.keys(e).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{e[n]&&(r[j2(n.substr(11))]=e[n])}),super.addEnv("",r,"env")}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let s=this.get("global");this[s?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>Bo.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(e,"prefix"))r=Bo.resolve(e.prefix);else try{r=dh.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(e){if(!e)return;let r=N2(e);r&&this.set("ca",r)}loadUser(){let e=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let r=Bo.resolve(this.get("prefix"));try{let n=hh.statSync(r);e.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};ph.exports=Ro});var bh=b(Fh=>{"use strict";a();var yh=O("os"),We=O("path"),Ch=yh.tmpdir(),$2=process.getuid?process.getuid():process.pid,k2=()=>!0,gh=process.platform==="win32",Eh={editor:()=>process.env.EDITOR||process.env.VISUAL||(gh?"notepad.exe":"vi"),shell:()=>gh?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},q2={fromString:()=>process.umask()},ir=yh.homedir();ir?process.env.HOME=ir:ir=We.resolve(Ch,"npm-"+$2);var U2=process.platform==="win32"?"npm-cache":".npm",M2=process.platform==="win32"&&process.env.APPDATA||ir,H2=We.resolve(M2,U2),ds,St;Object.defineProperty(Fh,"defaults",{get:function(){return ds||(process.env.PREFIX?St=process.env.PREFIX:process.platform==="win32"?St=We.dirname(process.execPath):(St=We.dirname(We.dirname(process.execPath)),process.env.DESTDIR&&(St=We.join(process.env.DESTDIR,St))),ds={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:H2,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Eh.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:We.resolve(St,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":We.resolve(ir,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:St,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:Eh.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:Ch,unicode:k2(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:We.resolve(ir,".npmrc"),umask:process.umask?process.umask():q2.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},ds)}})});var _h=b((Z6,To)=>{"use strict";a();var vt=O("path"),G2=mh(),xh=bh();To.exports=(t,e,r)=>{let n=new G2(Object.assign({},xh.defaults,r),e);n.add(Object.assign({},t),"cli");let s=[],i=!1;if(O.resolve.paths){let f=O.resolve.paths("npm"),l;try{l=O.resolve("npm",{paths:f.slice(-1)})}catch{i=!0}l&&s.push(n.addFile(vt.resolve(vt.dirname(l),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let o=vt.resolve(n.localPrefix,".npmrc"),u=n.get("userconfig");if(!n.get("global")&&o!==u?s.push(n.addFile(o,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==o){let f=vt.resolve(n.get("workspace-prefix"),".npmrc");s.push(n.addFile(f,"workspace"))}if(s.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let f=vt.resolve(n.get("prefix"),"etc");n.root.globalconfig=vt.resolve(f,"npmrc"),n.root.globalignorefile=vt.resolve(f,"npmignore")}s.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let c=n.get("cafile");return c&&n.loadCAFile(c),{config:n,warnings:s.filter(Boolean),failedToLoadBuiltInConfig:i}};Object.defineProperty(To.exports,"defaults",{get(){return xh.defaults},enumerable:!0})});var Th=b((r1,Rh)=>{"use strict";a();var Io=O("url"),wh=_h(),Ah=":_authToken",Sh=":_auth",vh=":username",Oh=":_password";Rh.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:s=>n[s]}}:wh()).config,e=e||r.npmrc.get("registry")||wh.defaults.registry,Bh(e,r)||z2(r.npmrc)};function Bh(t,e){let r=Io.parse(t,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let s="//"+r.host+n.replace(/\/$/,""),i=V2(s,e.npmrc);if(i)return i;if(!e.recursive)return/\/$/.test(t)?void 0:Bh(Io.resolve(t,"."),e);r.pathname=Io.resolve(W2(n),"..")||"/"}}function z2(t){return t.get("_auth")?{token:ps(t.get("_auth")),type:"Basic"}:void 0}function W2(t){return t[t.length-1]==="/"?t:t+"/"}function V2(t,e){let r=Y2(e.get(t+Ah)||e.get(t+"/"+Ah));if(r)return r;let n=e.get(t+vh)||e.get(t+"/"+vh),s=e.get(t+Oh)||e.get(t+"/"+Oh),i=K2(n,s);if(i)return i;let o=X2(e.get(t+Sh)||e.get(t+"/"+Sh));if(o)return o}function ps(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function Y2(t){return t?{token:ps(t),type:"Bearer"}:void 0}function K2(t,e){if(!t||!e)return;let r=Buffer.from(ps(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function X2(t){return t?{token:ps(t),type:"Basic"}:void 0}});var Hh=b((m1,Mh)=>{"use strict";a();var{hasOwnProperty:$o}=Object.prototype,ko=typeof process<"u"&&process.platform==="win32"?`\r
10
+ `:`
11
+ `,qo=(t,e)=>{let r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||Object.create(null),e.whitespace=e.whitespace===!0);let s=e.whitespace?" = ":"=";for(let i of Object.keys(t)){let o=t[i];if(o&&Array.isArray(o))for(let u of o)n+=or(i+"[]")+s+or(u)+`
12
+ `;else o&&typeof o=="object"?r.push(i):n+=or(i)+s+or(o)+ko}e.section&&n.length&&(n="["+or(e.section)+"]"+ko+n);for(let i of r){let o=qh(i).join("\\."),u=(e.section?e.section+".":"")+o,{whitespace:c}=e,f=qo(t[i],{section:u,whitespace:c});n.length&&f.length&&(n+=ko),n+=f}return n},qh=t=>t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),kh=t=>{let e=Object.create(null),r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);for(let u of i){if(!u||u.match(/^\s*[;#]/))continue;let c=u.match(s);if(!c)continue;if(c[1]!==void 0){if(n=gs(c[1]),n==="__proto__"){r=Object.create(null);continue}r=e[n]=e[n]||Object.create(null);continue}let f=gs(c[2]),l=f.length>2&&f.slice(-2)==="[]",D=l?f.slice(0,-2):f;if(D==="__proto__")continue;let d=c[3]?gs(c[4]):!0,h=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;l&&($o.call(r,D)?Array.isArray(r[D])||(r[D]=[r[D]]):r[D]=[]),Array.isArray(r[D])?r[D].push(h):r[D]=h}let o=[];for(let u of Object.keys(e)){if(!$o.call(e,u)||typeof e[u]!="object"||Array.isArray(e[u]))continue;let c=qh(u),f=e,l=c.pop(),D=l.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!$o.call(f,d)||typeof f[d]!="object")&&(f[d]=Object.create(null)),f=f[d]);f===e&&D===l||(f[D]=e[u],o.push(u))}for(let u of o)delete e[u];return e},Uh=t=>t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'",or=t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&Uh(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#"),gs=(t,e)=>{if(t=(t||"").trim(),Uh(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{let r=!1,n="";for(let s=0,i=t.length;s<i;s++){let o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t};Mh.exports={parse:kh,decode:kh,stringify:qo,encode:qo,safe:or,unsafe:gs}});var Vh=b(qe=>{"use strict";a();var le=O("path"),Uo=O("os"),Es=O("fs"),ib=Hh(),Zr=process.platform==="win32",Gh=t=>{try{return ib.parse(Es.readFileSync(t,"utf8")).prefix}catch{}},ob=()=>Object.keys(process.env).reduce((t,e)=>/^npm_config_prefix$/i.test(e)?process.env[e]:t,void 0),ub=()=>{if(Zr&&process.env.APPDATA)return le.join(process.env.APPDATA,"/npm/etc/npmrc");if(process.execPath.includes("/Cellar/node")){let t=process.execPath.slice(0,process.execPath.indexOf("/Cellar/node"));return le.join(t,"/lib/node_modules/npm/npmrc")}if(process.execPath.endsWith("/bin/node")){let t=le.dirname(le.dirname(process.execPath));return le.join(t,"/etc/npmrc")}},ab=()=>{if(Zr){let{APPDATA:t}=process.env;return t?le.join(t,"npm"):le.dirname(process.execPath)}return le.dirname(le.dirname(process.execPath))},cb=()=>{let t=ob();if(t)return t;let e=Gh(le.join(Uo.homedir(),".npmrc"));if(e)return e;if(process.env.PREFIX)return process.env.PREFIX;let r=Gh(ub());return r||ab()},Qr=le.resolve(cb()),zh=()=>{if(Zr&&process.env.LOCALAPPDATA){let t=le.join(process.env.LOCALAPPDATA,"Yarn");if(Es.existsSync(t))return t}return!1},lb=()=>{if(process.env.PREFIX)return process.env.PREFIX;let t=zh();if(t)return t;let e=le.join(Uo.homedir(),".config/yarn");if(Es.existsSync(e))return e;let r=le.join(Uo.homedir(),".yarn-config");return Es.existsSync(r)?r:Qr};qe.npm={};qe.npm.prefix=Qr;qe.npm.packages=le.join(Qr,Zr?"node_modules":"lib/node_modules");qe.npm.binaries=Zr?Qr:le.join(Qr,"bin");var Wh=le.resolve(lb());qe.yarn={};qe.yarn.prefix=Wh;qe.yarn.packages=le.join(Wh,zh()?"Data/global/node_modules":"global/node_modules");qe.yarn.binaries=le.join(qe.yarn.packages,".bin")});var Kh=b((C1,Yh)=>{"use strict";a();var Mo=O("path");Yh.exports=(t,e)=>{let r=Mo.relative(e,t);return!!(r&&r!==".."&&!r.startsWith(`..${Mo.sep}`)&&r!==Mo.resolve(t))}});var Zh=b((b1,Qh)=>{"use strict";a();var fb=O("fs"),Xh=Vh(),Jh=Kh();Qh.exports=(()=>{try{return Jh(m,Xh.yarn.packages)||Jh(m,fb.realpathSync(Xh.npm.packages))}catch{return!1}})()});var rd=b(($1,Wo)=>{"use strict";a();var nt={};typeof Wo>"u"?window.eastasianwidth=nt:Wo.exports=nt;nt.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};nt.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function td(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}nt.length=function(t){for(var e=td(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};nt.slice=function(t,e,r){textLen=nt.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",s=0,i=td(t),o=0;o<i.length;o++){var u=i[o],c=nt.length(u);if(s>=e-(c==2?1:0))if(s+c<=r)n+=u;else break;s+=c}return n}});var sd=b((q1,nd)=>{"use strict";a();nd.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var ud=b((Y1,Eb)=>{Eb.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Yo=b((K1,Vo)=>{"use strict";a();var ad=ud();Vo.exports=ad;Vo.exports.default=ad});var dd=b((Z1,hd)=>{"use strict";a();hd.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var md=b((tO,pd)=>{"use strict";a();var wb=dd();pd.exports=t=>typeof t=="string"?t.replace(wb(),""):t});var Ed=b((nO,Jo)=>{"use strict";a();var gd=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Jo.exports=gd;Jo.exports.default=gd});var Cd=b((iO,yd)=>{"use strict";a();yd.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var bd=b((uO,Qo)=>{"use strict";a();var Ab=md(),Sb=Ed(),vb=Cd(),Fd=t=>{if(typeof t!="string"||t.length===0||(t=Ab(t),t.length===0))return 0;t=t.replace(vb()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=Sb(n)?2:1)}return e};Qo.exports=Fd;Qo.exports.default=Fd});var _d=b((cO,xd)=>{"use strict";a();var Ob=bd();function Ot(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
13
+ `,s=e.pad||" ",i=r!=="right"?Bb:Rb,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(n));let u,c=0;return t=t.map(function(f){return f=String(f),u=Ob(f),c=Math.max(u,c),{str:f,width:u}}).map(function(f){return new Array(i(c,f.width)+1).join(s)+f.str}),o?t.join(n):t}Ot.left=function(e){return Ot(e,{align:"left"})};Ot.center=function(e){return Ot(e,{align:"center"})};Ot.right=function(e){return Ot(e,{align:"right"})};xd.exports=Ot;function Bb(t,e){return Math.floor((t-e)/2)}function Rb(t,e){return t-e}});var $d=b((vO,Xb)=>{Xb.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Ud=b(Oe=>{"use strict";a();var qd=$d(),fe=process.env;Object.defineProperty(Oe,"_vendors",{value:qd.map(function(t){return t.constant})});Oe.name=null;Oe.isPR=null;qd.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return kd(n)});if(Oe[t.constant]=r,!!r)switch(Oe.name=t.name,typeof t.pr){case"string":Oe.isPR=!!fe[t.pr];break;case"object":"env"in t.pr?Oe.isPR=t.pr.env in fe&&fe[t.pr.env]!==t.pr.ne:"any"in t.pr?Oe.isPR=t.pr.any.some(function(n){return!!fe[n]}):Oe.isPR=kd(t.pr);break;default:Oe.isPR=null}});Oe.isCI=!!(fe.CI!=="false"&&(fe.BUILD_ID||fe.BUILD_NUMBER||fe.CI||fe.CI_APP_ID||fe.CI_BUILD_ID||fe.CI_BUILD_NUMBER||fe.CI_NAME||fe.CONTINUOUS_INTEGRATION||fe.RUN_ID||Oe.name));function kd(t){return typeof t=="string"?!!fe[t]:"env"in t?fe[t.env]&&fe[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!fe[e]}):Object.keys(t).every(function(e){return fe[e]===t[e]})}});var Hd=b((RO,Md)=>{"use strict";a();Md.exports=Ud().isCI});a();a();import{cac as Rx}from"cac";import{runtime as Tx}from"@terai/runtime";a();import _u from"node:process";import Rs from"node:process";import Cp from"node:os";import mu from"node:tty";var hu=(t=0)=>e=>`\x1B[${e+t}m`,du=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,pu=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},kx=Object.keys(Q.modifier),mp=Object.keys(Q.color),gp=Object.keys(Q.bgColor),qx=[...mp,...gp];function Ep(){let t=new Map;for(let[e,r]of Object.entries(Q)){for(let[n,s]of Object.entries(r))Q[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=Q[n],t.set(s[0],s[1]);Object.defineProperty(Q,e,{value:r,enumerable:!1})}return Object.defineProperty(Q,"codes",{value:t,enumerable:!1}),Q.color.close="\x1B[39m",Q.bgColor.close="\x1B[49m",Q.color.ansi=hu(),Q.color.ansi256=du(),Q.color.ansi16m=pu(),Q.bgColor.ansi=hu(10),Q.bgColor.ansi256=du(10),Q.bgColor.ansi16m=pu(10),Object.defineProperties(Q,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),enumerable:!1}}),Q}var yp=Ep(),ke=yp;function Be(t,e=globalThis.Deno?globalThis.Deno.args:Rs.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:se}=Rs,sn;Be("no-color")||Be("no-colors")||Be("color=false")||Be("color=never")?sn=0:(Be("color")||Be("colors")||Be("color=true")||Be("color=always"))&&(sn=1);function Fp(){if("FORCE_COLOR"in se)return se.FORCE_COLOR==="true"?1:se.FORCE_COLOR==="false"?0:se.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(se.FORCE_COLOR,10),3)}function bp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function xp(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Fp();n!==void 0&&(sn=n);let s=r?sn:n;if(s===0)return 0;if(r){if(Be("color=16m")||Be("color=full")||Be("color=truecolor"))return 3;if(Be("color=256"))return 2}if("TF_BUILD"in se&&"AGENT_NAME"in se)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(se.TERM==="dumb")return i;if(Rs.platform==="win32"){let o=Cp.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in se)return"GITHUB_ACTIONS"in se||"GITEA_ACTIONS"in se?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in se)||se.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(se.TEAMCITY_VERSION)?1:0;if(se.COLORTERM==="truecolor"||se.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in se){let o=Number.parseInt((se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(se.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(se.TERM)||"COLORTERM"in se?1:i}function gu(t,e={}){let r=xp(t,{streamIsTTY:t&&t.isTTY,...e});return bp(r)}var _p={stdout:gu({isTTY:mu.isatty(1)}),stderr:gu({isTTY:mu.isatty(2)})},wp=_p;function Ap(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return o+=t.slice(i),o}function Sp(t,e,r,n){let s=0,i="";do{let o=t[n-1]==="\r";i+=t.slice(s,o?n-1:n)+e+(o?`\r
14
+ `:`
15
+ `)+r,s=n+1,n=t.indexOf(`
16
+ `,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:Eu,stderr:yu}=wp,vs=Symbol("GENERATOR"),Bt=Symbol("STYLER"),ur=Symbol("IS_EMPTY"),Cu=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),vp=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Eu?Eu.level:0;t.level=e.level===void 0?r:e.level},Op=t=>{let e=(...r)=>r.join(" ");return vp(e,t),Object.setPrototypeOf(e,ar.prototype),e};function ar(t){return Op(t)}Object.setPrototypeOf(ar.prototype,Function.prototype);for(let[t,e]of Object.entries(ke))Rt[t]={get(){let r=on(this,Bs(e.open,e.close,this[Bt]),this[ur]);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=on(this,this[Bt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Os=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?ke[r].ansi16m(...n):e==="ansi256"?ke[r].ansi256(ke.rgbToAnsi256(...n)):ke[r].ansi(ke.rgbToAnsi(...n)):t==="hex"?Os("rgb",e,r,...ke.hexToRgb(...n)):ke[r][t](...n),Bp=["rgb","hex","ansi256"];for(let t of Bp){Rt[t]={get(){let{level:r}=this;return function(...n){let s=Bs(Os(t,Cu[r],"color",...n),ke.color.close,this[Bt]);return on(this,s,this[ur])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...n){let s=Bs(Os(t,Cu[r],"bgColor",...n),ke.bgColor.close,this[Bt]);return on(this,s,this[ur])}}}}var Rp=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this[vs].level},set(t){this[vs].level=t}}}),Bs=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},on=(t,e,r)=>{let n=(...s)=>Tp(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,Rp),n[vs]=t,n[Bt]=e,n[ur]=r,n},Tp=(t,e)=>{if(t.level<=0||!e)return t[ur]?"":e;let r=t[Bt];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Ap(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
17
+ `);return i!==-1&&(e=Sp(e,s,n,i)),n+e+s};Object.defineProperties(ar.prototype,Rt);var Ip=ar(),Gx=ar({level:yu?yu.level:0}),Fe=Ip;function ot(t){return _u.stdout.write(t+`
18
+ `)}function Pp(t){return _u.stderr.write(t+`
19
+ `)}function cr(t,e,r,n,s,i){let o=(Array.isArray(i)?i:[i||""].filter(Boolean)).map(u=>r(u)).join("");t(`${" ".repeat(3)} ${e(n)} ${e(s)} ${o}`)}function Np(t,e){cr(ot,Fe.yellow,Fe.yellow,"\u25CF",t,e)}function Fu(t,e){cr(ot,Fe.yellow,Fe.dim,"\u25CF",t,e)}function bu(t,e){cr(ot,Fe.cyan,Fe.dim,"\u25FC",t,e)}function xu(t){cr(ot,Fe.green,Fe.dim,"\u2714",t)}function Lp(t,e){ot(""),cr(Pp,Fe.red,Fe.red,"\u25B2",t,e)}function jp(t,e){return ot(`
20
+ ${Fe.bgWhite(` ${Fe.whiteBright(t)} `)} ${Fe.bold(e)}
21
+ `)}var Ss=t=>()=>{let e=performance.now();return r=>{let n=performance.now()-e;t(`${r} ${Fe.gray(`(${n.toFixed(2)}ms)`)}`)}},K={colors:Fe,log:ot,heading:jp,debug:Fu,info:bu,warn:Np,success:xu,error:Lp,time:{success:Ss(xu),info:Ss(bu),debug:Ss(Fu)}};a();a();import Ve from"node:process";import{spawn as Jb}from"node:child_process";import{fileURLToPath as Qb}from"node:url";import Wd from"node:path";import{format as ou}from"node:util";a();var zs=ae(Nu(),1);import Dr from"path";import Fm from"os";a();import Yp from"os";import fn from"path";var Xe=Yp.homedir(),{env:at}=process,Lu=at.XDG_DATA_HOME||(Xe?fn.join(Xe,".local","share"):void 0),It=at.XDG_CONFIG_HOME||(Xe?fn.join(Xe,".config"):void 0),n_=at.XDG_STATE_HOME||(Xe?fn.join(Xe,".local","state"):void 0),s_=at.XDG_CACHE_HOME||(Xe?fn.join(Xe,".cache"):void 0),i_=at.XDG_RUNTIME_DIR||void 0,Kp=(at.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Lu&&Kp.unshift(Lu);var Xp=(at.XDG_CONFIG_DIRS||"/etc/xdg").split(":");It&&Xp.unshift(It);var Ws=ae(Qu(),1),jt=ae(ra(),1);a();a();import{promisify as lm}from"util";import Hs from"crypto";var na=lm(Hs.randomBytes),fm="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Dm="0123456789".split(""),hm="CDEHKMPRTUWXY012458".split(""),dm="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),pm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),mm=(t,e)=>{let r=e.length,n=Math.floor(65536/r)*r-1,s=2*Math.ceil(1.1*t),i="",o=0;for(;o<t;){let u=Hs.randomBytes(s),c=0;for(;c<s&&o<t;){let f=u.readUInt16LE(c);c+=2,!(f>n)&&(i+=e[f%r],o++)}}return i},gm=async(t,e)=>{let r=e.length,n=Math.floor(65536/r)*r-1,s=2*Math.ceil(1.1*t),i="",o=0;for(;o<t;){let u=await na(s),c=0;for(;c<s&&o<t;){let f=u.readUInt16LE(c);c+=2,!(f>n)&&(i+=e[f%r],o++)}}return i},Em=(t,e,r)=>Hs.randomBytes(t).toString(e).slice(0,r),ym=async(t,e,r)=>(await na(t)).toString(e).slice(0,r),Cm=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),sa=(t,e)=>({length:r,type:n,characters:s})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(n!==void 0&&s!==void 0)throw new TypeError("Expected either `type` or `characters`");if(s!==void 0&&typeof s!="string")throw new TypeError("Expected `characters` to be string");if(!Cm.has(n))throw new TypeError(`Unknown type: ${n}`);if(n===void 0&&s===void 0&&(n="hex"),n==="hex"||n===void 0&&s===void 0)return e(Math.ceil(r*.5),"hex",r);if(n==="base64")return e(Math.ceil(r*.75),"base64",r);if(n==="url-safe")return t(r,fm);if(n==="numeric")return t(r,Dm);if(n==="distinguishable")return t(r,hm);if(n==="ascii-printable")return t(r,dm);if(n==="alphanumeric")return t(r,pm);if(s.length===0)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(s.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return t(r,s.split(""))},ia=sa(mm,Em);ia.async=sa(gm,ym);var oa=ia;function Gs(){return oa({length:32})}var bm=It||Dr.join(Fm.tmpdir(),Gs()),ua="You don't have access to this file.",xm={mode:448,recursive:!0},aa={mode:384},hr=class{constructor(e,r,n={}){let s=n.globalConfigPath?Dr.join(e,"config.json"):Dr.join("configstore",`${e}.json`);this._path=n.configPath||Dr.join(bm,s),r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(zs.default.readFileSync(this._path,"utf8"))}catch(e){if(e.code==="ENOENT")return{};if(e.code==="EACCES"&&(e.message=`${e.message}
22
+ ${ua}
23
+ `),e.name==="SyntaxError")return Ws.default.sync(this._path,"",aa),{};throw e}}set all(e){try{zs.default.mkdirSync(Dr.dirname(this._path),xm),Ws.default.sync(this._path,JSON.stringify(e,void 0," "),aa)}catch(r){throw r.code==="EACCES"&&(r.message=`${r.message}
24
+ ${ua}
25
+ `),r}}get size(){return Object.keys(this.all||{}).length}get(e){return jt.default.get(this.all,e)}set(e,r){let n=this.all;if(arguments.length===1)for(let s of Object.keys(e))jt.default.set(n,s,e[s]);else jt.default.set(n,e,r);this.all=n}has(e){return jt.default.has(this.all,e)}delete(e){let r=this.all;jt.default.delete(r,e),this.all=r}clear(){this.all={}}get path(){return this._path}};a();a();var ca=(t=0)=>e=>`\x1B[${e+t}m`,la=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,fa=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,te={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},j_=Object.keys(te.modifier),_m=Object.keys(te.color),wm=Object.keys(te.bgColor),$_=[..._m,...wm];function Am(){let t=new Map;for(let[e,r]of Object.entries(te)){for(let[n,s]of Object.entries(r))te[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=te[n],t.set(s[0],s[1]);Object.defineProperty(te,e,{value:r,enumerable:!1})}return Object.defineProperty(te,"codes",{value:t,enumerable:!1}),te.color.close="\x1B[39m",te.bgColor.close="\x1B[49m",te.color.ansi=ca(),te.color.ansi256=la(),te.color.ansi16m=fa(),te.bgColor.ansi=ca(10),te.bgColor.ansi256=la(10),te.bgColor.ansi16m=fa(10),Object.defineProperties(te,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>te.rgbToAnsi256(...te.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>te.ansi256ToAnsi(te.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>te.ansi256ToAnsi(te.hexToAnsi256(e)),enumerable:!1}}),te}var Sm=Am(),je=Sm;a();import Vs from"node:process";import vm from"node:os";import Da from"node:tty";function Te(t,e=globalThis.Deno?globalThis.Deno.args:Vs.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:oe}=Vs,En;Te("no-color")||Te("no-colors")||Te("color=false")||Te("color=never")?En=0:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(En=1);function Om(){if("FORCE_COLOR"in oe)return oe.FORCE_COLOR==="true"?1:oe.FORCE_COLOR==="false"?0:oe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(oe.FORCE_COLOR,10),3)}function Bm(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Rm(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Om();n!==void 0&&(En=n);let s=r?En:n;if(s===0)return 0;if(r){if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2}if("TF_BUILD"in oe&&"AGENT_NAME"in oe)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(oe.TERM==="dumb")return i;if(Vs.platform==="win32"){let o=vm.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in oe)return"GITHUB_ACTIONS"in oe||"GITEA_ACTIONS"in oe?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in oe)||oe.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in oe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(oe.TEAMCITY_VERSION)?1:0;if(oe.COLORTERM==="truecolor"||oe.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in oe){let o=Number.parseInt((oe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(oe.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(oe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(oe.TERM)||"COLORTERM"in oe?1:i}function ha(t,e={}){let r=Rm(t,{streamIsTTY:t&&t.isTTY,...e});return Bm(r)}var Tm={stdout:ha({isTTY:Da.isatty(1)}),stderr:ha({isTTY:Da.isatty(2)})},da=Tm;a();function pa(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return o+=t.slice(i),o}function ma(t,e,r,n){let s=0,i="";do{let o=t[n-1]==="\r";i+=t.slice(s,o?n-1:n)+e+(o?`\r
26
+ `:`
27
+ `)+r,s=n+1,n=t.indexOf(`
28
+ `,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:ga,stderr:Ea}=da,Ys=Symbol("GENERATOR"),$t=Symbol("STYLER"),dr=Symbol("IS_EMPTY"),ya=["ansi","ansi","ansi256","ansi16m"],kt=Object.create(null),Im=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ga?ga.level:0;t.level=e.level===void 0?r:e.level};var Pm=t=>{let e=(...r)=>r.join(" ");return Im(e,t),Object.setPrototypeOf(e,pr.prototype),e};function pr(t){return Pm(t)}Object.setPrototypeOf(pr.prototype,Function.prototype);for(let[t,e]of Object.entries(je))kt[t]={get(){let r=yn(this,Xs(e.open,e.close,this[$t]),this[dr]);return Object.defineProperty(this,t,{value:r}),r}};kt.visible={get(){let t=yn(this,this[$t],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Ks=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?je[r].ansi16m(...n):e==="ansi256"?je[r].ansi256(je.rgbToAnsi256(...n)):je[r].ansi(je.rgbToAnsi(...n)):t==="hex"?Ks("rgb",e,r,...je.hexToRgb(...n)):je[r][t](...n),Nm=["rgb","hex","ansi256"];for(let t of Nm){kt[t]={get(){let{level:r}=this;return function(...n){let s=Xs(Ks(t,ya[r],"color",...n),je.color.close,this[$t]);return yn(this,s,this[dr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);kt[e]={get(){let{level:r}=this;return function(...n){let s=Xs(Ks(t,ya[r],"bgColor",...n),je.bgColor.close,this[$t]);return yn(this,s,this[dr])}}}}var Lm=Object.defineProperties(()=>{},{...kt,level:{enumerable:!0,get(){return this[Ys].level},set(t){this[Ys].level=t}}}),Xs=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},yn=(t,e,r)=>{let n=(...s)=>jm(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,Lm),n[Ys]=t,n[$t]=e,n[dr]=r,n},jm=(t,e)=>{if(t.level<=0||!e)return t[dr]?"":e;let r=t[$t];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=pa(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
29
+ `);return i!==-1&&(e=ma(e,s,n,i)),n+e+s};Object.defineProperties(pr.prototype,kt);var $m=pr(),J_=pr({level:Ea?Ea.level:0});var ce=$m;var Vd=ae(Rn(),1);a();var wr=ae(Rn(),1);function Ei(t,e){if(t=wr.default.parse(t),e=wr.default.parse(e),!(wr.default.compareBuild(t,e)>=0))return wr.default.diff(t,e)||"build"}a();a();import{Agent as J2}from"node:http";import{Agent as Q2}from"node:https";a();a();a();var gl=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function LE(t){return gl.includes(t)}var jE=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...gl];function $E(t){return jE.includes(t)}var kE=["null","undefined","string","number","bigint","boolean","symbol"];function qE(t){return kE.includes(t)}function Gt(t){return e=>typeof e===t}var{toString:UE}=Object.prototype,Ar=t=>{let e=UE.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&p.domElement(t))return"HTMLElement";if($E(e))return e},Y=t=>e=>Ar(e)===t;function p(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(p.observable(t))return"Observable";if(p.array(t))return"Array";if(p.buffer(t))return"Buffer";let e=Ar(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}p.undefined=Gt("undefined");p.string=Gt("string");var ME=Gt("number");p.number=t=>ME(t)&&!p.nan(t);p.positiveNumber=t=>p.number(t)&&t>0;p.negativeNumber=t=>p.number(t)&&t<0;p.bigint=Gt("bigint");p.function_=Gt("function");p.null_=t=>t===null;p.class_=t=>p.function_(t)&&t.toString().startsWith("class ");p.boolean=t=>t===!0||t===!1;p.symbol=Gt("symbol");p.numericString=t=>p.string(t)&&!p.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));p.array=(t,e)=>Array.isArray(t)?p.function_(e)?t.every(r=>e(r)):!0:!1;p.buffer=t=>t?.constructor?.isBuffer?.(t)??!1;p.blob=t=>Y("Blob")(t);p.nullOrUndefined=t=>p.null_(t)||p.undefined(t);p.object=t=>!p.null_(t)&&(typeof t=="object"||p.function_(t));p.iterable=t=>p.function_(t?.[Symbol.iterator]);p.asyncIterable=t=>p.function_(t?.[Symbol.asyncIterator]);p.generator=t=>p.iterable(t)&&p.function_(t?.next)&&p.function_(t?.throw);p.asyncGenerator=t=>p.asyncIterable(t)&&p.function_(t.next)&&p.function_(t.throw);p.nativePromise=t=>Y("Promise")(t);var HE=t=>p.function_(t?.then)&&p.function_(t?.catch);p.promise=t=>p.nativePromise(t)||HE(t);p.generatorFunction=Y("GeneratorFunction");p.asyncGeneratorFunction=t=>Ar(t)==="AsyncGeneratorFunction";p.asyncFunction=t=>Ar(t)==="AsyncFunction";p.boundFunction=t=>p.function_(t)&&!t.hasOwnProperty("prototype");p.regExp=Y("RegExp");p.date=Y("Date");p.error=Y("Error");p.map=t=>Y("Map")(t);p.set=t=>Y("Set")(t);p.weakMap=t=>Y("WeakMap")(t);p.weakSet=t=>Y("WeakSet")(t);p.weakRef=t=>Y("WeakRef")(t);p.int8Array=Y("Int8Array");p.uint8Array=Y("Uint8Array");p.uint8ClampedArray=Y("Uint8ClampedArray");p.int16Array=Y("Int16Array");p.uint16Array=Y("Uint16Array");p.int32Array=Y("Int32Array");p.uint32Array=Y("Uint32Array");p.float32Array=Y("Float32Array");p.float64Array=Y("Float64Array");p.bigInt64Array=Y("BigInt64Array");p.bigUint64Array=Y("BigUint64Array");p.arrayBuffer=Y("ArrayBuffer");p.sharedArrayBuffer=Y("SharedArrayBuffer");p.dataView=Y("DataView");p.enumCase=(t,e)=>Object.values(e).includes(t);p.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;p.urlInstance=t=>Y("URL")(t);p.urlString=t=>{if(!p.string(t))return!1;try{return new URL(t),!0}catch{return!1}};p.truthy=t=>!!t;p.falsy=t=>!t;p.nan=t=>Number.isNaN(t);p.primitive=t=>p.null_(t)||qE(typeof t);p.integer=t=>Number.isInteger(t);p.safeInteger=t=>Number.isSafeInteger(t);p.plainObject=t=>{if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};p.typedArray=t=>LE(Ar(t));var GE=t=>p.safeInteger(t)&&t>=0;p.arrayLike=t=>!p.nullOrUndefined(t)&&!p.function_(t)&&GE(t.length);p.tupleLike=(t,e)=>p.array(e)&&p.array(t)&&e.length===t.length?e.every((r,n)=>r(t[n])):!1;p.inRange=(t,e)=>{if(p.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(p.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var zE=1,WE=["innerHTML","ownerDocument","style","attributes","nodeValue"];p.domElement=t=>p.object(t)&&t.nodeType===zE&&p.string(t.nodeName)&&!p.plainObject(t)&&WE.every(e=>e in t);p.observable=t=>t?t===t[Symbol.observable]?.()||t===t["@@observable"]?.():!1;p.nodeStream=t=>p.object(t)&&p.function_(t.pipe)&&!p.observable(t);p.infinite=t=>t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY;var El=t=>e=>p.integer(e)&&Math.abs(e%2)===t;p.evenInteger=El(0);p.oddInteger=El(1);p.emptyArray=t=>p.array(t)&&t.length===0;p.nonEmptyArray=t=>p.array(t)&&t.length>0;p.emptyString=t=>p.string(t)&&t.length===0;var VE=t=>p.string(t)&&!/\S/.test(t);p.emptyStringOrWhitespace=t=>p.emptyString(t)||VE(t);p.nonEmptyString=t=>p.string(t)&&t.length>0;p.nonEmptyStringAndNotWhitespace=t=>p.string(t)&&!p.emptyStringOrWhitespace(t);p.emptyObject=t=>p.object(t)&&!p.map(t)&&!p.set(t)&&Object.keys(t).length===0;p.nonEmptyObject=t=>p.object(t)&&!p.map(t)&&!p.set(t)&&Object.keys(t).length>0;p.emptySet=t=>p.set(t)&&t.size===0;p.nonEmptySet=t=>p.set(t)&&t.size>0;p.emptyMap=t=>p.map(t)&&t.size===0;p.nonEmptyMap=t=>p.map(t)&&t.size>0;p.propertyKey=t=>p.any([p.string,p.number,p.symbol],t);p.formData=t=>Y("FormData")(t);p.urlSearchParams=t=>Y("URLSearchParams")(t);var yl=(t,e,r)=>{if(!p.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};p.any=(t,...e)=>(p.array(t)?t:[t]).some(n=>yl(Array.prototype.some,n,e));p.all=(t,...e)=>yl(Array.prototype.every,t,e);var v=(t,e,r,n={})=>{if(!t){let{multipleValues:s}=n,i=s?`received values of types ${[...new Set(r.map(o=>`\`${p(o)}\``))].join(", ")}`:`received value of type \`${p(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${i}.`)}},A={undefined:t=>v(p.undefined(t),"undefined",t),string:t=>v(p.string(t),"string",t),number:t=>v(p.number(t),"number",t),positiveNumber:t=>v(p.positiveNumber(t),"positive number",t),negativeNumber:t=>v(p.negativeNumber(t),"negative number",t),bigint:t=>v(p.bigint(t),"bigint",t),function_:t=>v(p.function_(t),"Function",t),null_:t=>v(p.null_(t),"null",t),class_:t=>v(p.class_(t),"Class",t),boolean:t=>v(p.boolean(t),"boolean",t),symbol:t=>v(p.symbol(t),"symbol",t),numericString:t=>v(p.numericString(t),"string with a number",t),array:(t,e)=>{v(p.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>v(p.buffer(t),"Buffer",t),blob:t=>v(p.blob(t),"Blob",t),nullOrUndefined:t=>v(p.nullOrUndefined(t),"null or undefined",t),object:t=>v(p.object(t),"Object",t),iterable:t=>v(p.iterable(t),"Iterable",t),asyncIterable:t=>v(p.asyncIterable(t),"AsyncIterable",t),generator:t=>v(p.generator(t),"Generator",t),asyncGenerator:t=>v(p.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>v(p.nativePromise(t),"native Promise",t),promise:t=>v(p.promise(t),"Promise",t),generatorFunction:t=>v(p.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>v(p.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>v(p.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>v(p.boundFunction(t),"Function",t),regExp:t=>v(p.regExp(t),"RegExp",t),date:t=>v(p.date(t),"Date",t),error:t=>v(p.error(t),"Error",t),map:t=>v(p.map(t),"Map",t),set:t=>v(p.set(t),"Set",t),weakMap:t=>v(p.weakMap(t),"WeakMap",t),weakSet:t=>v(p.weakSet(t),"WeakSet",t),weakRef:t=>v(p.weakRef(t),"WeakRef",t),int8Array:t=>v(p.int8Array(t),"Int8Array",t),uint8Array:t=>v(p.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>v(p.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>v(p.int16Array(t),"Int16Array",t),uint16Array:t=>v(p.uint16Array(t),"Uint16Array",t),int32Array:t=>v(p.int32Array(t),"Int32Array",t),uint32Array:t=>v(p.uint32Array(t),"Uint32Array",t),float32Array:t=>v(p.float32Array(t),"Float32Array",t),float64Array:t=>v(p.float64Array(t),"Float64Array",t),bigInt64Array:t=>v(p.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>v(p.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>v(p.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>v(p.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>v(p.dataView(t),"DataView",t),enumCase:(t,e)=>v(p.enumCase(t,e),"EnumCase",t),urlInstance:t=>v(p.urlInstance(t),"URL",t),urlString:t=>v(p.urlString(t),"string with a URL",t),truthy:t=>v(p.truthy(t),"truthy",t),falsy:t=>v(p.falsy(t),"falsy",t),nan:t=>v(p.nan(t),"NaN",t),primitive:t=>v(p.primitive(t),"primitive",t),integer:t=>v(p.integer(t),"integer",t),safeInteger:t=>v(p.safeInteger(t),"integer",t),plainObject:t=>v(p.plainObject(t),"plain object",t),typedArray:t=>v(p.typedArray(t),"TypedArray",t),arrayLike:t=>v(p.arrayLike(t),"array-like",t),tupleLike:(t,e)=>v(p.tupleLike(t,e),"tuple-like",t),domElement:t=>v(p.domElement(t),"HTMLElement",t),observable:t=>v(p.observable(t),"Observable",t),nodeStream:t=>v(p.nodeStream(t),"Node.js Stream",t),infinite:t=>v(p.infinite(t),"infinite number",t),emptyArray:t=>v(p.emptyArray(t),"empty array",t),nonEmptyArray:t=>v(p.nonEmptyArray(t),"non-empty array",t),emptyString:t=>v(p.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>v(p.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>v(p.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>v(p.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>v(p.emptyObject(t),"empty object",t),nonEmptyObject:t=>v(p.nonEmptyObject(t),"non-empty object",t),emptySet:t=>v(p.emptySet(t),"empty set",t),nonEmptySet:t=>v(p.nonEmptySet(t),"non-empty set",t),emptyMap:t=>v(p.emptyMap(t),"empty map",t),nonEmptyMap:t=>v(p.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>v(p.propertyKey(t),"PropertyKey",t),formData:t=>v(p.formData(t),"FormData",t),urlSearchParams:t=>v(p.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>v(p.evenInteger(t),"even integer",t),oddInteger:t=>v(p.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>v(p.directInstanceOf(t,e),"T",t),inRange:(t,e)=>v(p.inRange(t,e),"in range",t),any:(t,...e)=>v(p.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>v(p.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(p,{class:{value:p.class_},function:{value:p.function_},null:{value:p.null_}});Object.defineProperties(A,{class:{value:A.class_},function:{value:A.function_},null:{value:A.null_}});var E=p;a();import{EventEmitter as MF}from"node:events";a();var yi=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},zt=class t{static fn(e){return(...r)=>new t((n,s,i)=>{r.push(i),e(...r).then(n,s)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let s=u=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(u))},i=u=>{this._isPending=!1,n(u)},o=u=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(u)};Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:u=>{this._rejectOnCancel=u}}}),e(s,i,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new yi(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(zt.prototype,Promise.prototype);a();function YE(t){return E.object(t)&&"_onResponse"in t}var re=class extends Error{constructor(e,r,n){if(super(e),Object.defineProperty(this,"input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stack",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=r.code??"ERR_GOT_REQUEST_ERROR",this.input=r.input,YE(n)?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n.response}),this.options=n.options):this.options=n,this.timings=this.request?.timings,E.string(r.stack)&&E.string(this.stack)){let s=this.stack.indexOf(this.message)+this.message.length,i=this.stack.slice(s).split(`
30
+ `).reverse(),o=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
31
+ `).reverse();for(;o.length>0&&o[0]===i[0];)i.shift();this.stack=`${this.stack.slice(0,s)}${i.reverse().join(`
32
+ `)}${o.reverse().join(`
33
+ `)}`}}},Tn=class extends re{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},Qe=class extends re{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},In=class extends re{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},Sr=class extends re{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},Pn=class extends re{constructor(e,r,n){super(e.message,e,n),Object.defineProperty(this,"timings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.event=e.event,this.timings=r}},vr=class extends re{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}},Nn=class extends re{constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Ln=class extends re{constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}};a();import cD from"node:process";import{Buffer as mo}from"node:buffer";import{Duplex as IF}from"node:stream";import{URL as PF,URLSearchParams as NF}from"node:url";import LF,{ServerResponse as aD}from"node:http";a();var Fl=ae(Cl(),1);import{errorMonitor as XE}from"events";import{types as JE}from"util";var QE=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=o=>{o.once(XE,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})};r(t);let n=()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start};t.prependOnceListener("abort",n);let s=o=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,JE.isProxy(o))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};o.prependOnceListener("lookup",u),(0,Fl.default)(o,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(o.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?s(t.socket):t.prependOnceListener("socket",s);let i=()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)};return t.writableFinished?i():t.prependOnceListener("finish",i),t.prependOnceListener("response",o=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,o.timings=e,r(o),o.prependOnceListener("end",()=>{t.off("abort",n),o.off("aborted",n),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),o.prependOnceListener("aborted",n)}),e},bl=QE;a();import Fy from"node:events";import kn from"node:url";import by from"node:crypto";import xy,{PassThrough as _y}from"node:stream";a();var ZE="text/plain",ey="us-ascii",xi=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),ty=new Set(["https:","http:","file:"]),ry=t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!ty.has(e)}catch{return!1}},ny=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:s,hash:i}=r.groups,o=n.split(";");i=e?"":i;let u=!1;o[o.length-1]==="base64"&&(o.pop(),u=!0);let c=o.shift()?.toLowerCase()??"",l=[...o.map(D=>{let[d,h=""]=D.split("=").map(C=>C.trim());return d==="charset"&&(h=h.toLowerCase(),h===ey)?"":`${d}${h?`=${h}`:""}`}).filter(Boolean)];return u&&l.push("base64"),(l.length>0||c&&c!==ZE)&&l.unshift(c),`data:${l.join(";")},${u?s.trim():s}${i?`#${i}`:""}`};function _i(t,e){if(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...e},typeof e.defaultProtocol=="string"&&!e.defaultProtocol.endsWith(":")&&(e.defaultProtocol=`${e.defaultProtocol}:`),t=t.trim(),/^data:/i.test(t))return ny(t,e);if(ry(t))return t;let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let s=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&s.protocol==="https:"&&(s.protocol="http:"),e.forceHttps&&s.protocol==="http:"&&(s.protocol="https:"),e.stripAuthentication&&(s.username="",s.password=""),e.stripHash?s.hash="":e.stripTextFragment&&(s.hash=s.hash.replace(/#?:~:text.*?$/i,"")),s.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,u=0,c="";for(;;){let l=o.exec(s.pathname);if(!l)break;let D=l[0],d=l.index,h=s.pathname.slice(u,d);c+=h.replace(/\/{2,}/g,"/"),c+=D,u=d+D.length}let f=s.pathname.slice(u,s.pathname.length);c+=f.replace(/\/{2,}/g,"/"),s.pathname=c}if(s.pathname)try{s.pathname=decodeURI(s.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=s.pathname.split("/"),u=o[o.length-1];xi(u,e.removeDirectoryIndex)&&(o=o.slice(0,-1),s.pathname=o.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...s.searchParams.keys()])xi(o,e.removeQueryParameters)&&s.searchParams.delete(o);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(s.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let o of[...s.searchParams.keys()])xi(o,e.keepQueryParameters)||s.searchParams.delete(o);if(e.sortQueryParameters){s.searchParams.sort();try{s.search=decodeURIComponent(s.search)}catch{}}e.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e.removeExplicitPort&&s.port&&(s.port="");let i=t;return t=s.toString(),!e.removeSingleSlash&&s.pathname==="/"&&!i.endsWith("/")&&s.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||s.pathname==="/")&&s.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var Il=ae(Ai(),1),qn=ae(Al(),1);a();import{Readable as gy}from"node:stream";a();function Wt(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLowerCase(),r]))}var Vt=class extends gy{statusCode;headers;body;url;constructor({statusCode:e,headers:r,body:n,url:s}){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Uint8Array))throw new TypeError("Argument `body` should be a buffer");if(typeof s!="string")throw new TypeError("Argument `url` should be a string");super({read(){this.push(n),this.push(null)}}),this.statusCode=e,this.headers=Wt(r),this.body=n,this.url=s}};var Br=ae(Rl(),1);a();var Cy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function Bi(t,e){if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set([...Object.keys(t),...Cy]),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}a();var $n=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}},Ge=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}};var Ti=class{constructor(e,r){this.hooks=new Map,this.request=()=>(n,s)=>{let i;if(typeof n=="string")i=Ri(kn.parse(n)),n={};else if(n instanceof kn.URL)i=Ri(kn.parse(n.toString())),n={};else{let[d,...h]=(n.path??"").split("?"),C=h.length>0?`?${h.join("?")}`:"";i=Ri({...n,pathname:d,search:C})}n={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...n,...Sy(i)},n.headers=Object.fromEntries(wy(n.headers).map(([d,h])=>[d.toLowerCase(),h]));let o=new Fy,u=_i(kn.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${n.method}:${u}`;n.body&&n.method!==void 0&&["POST","PATCH","PUT"].includes(n.method)&&(n.body instanceof xy.Readable?n.cache=!1:c+=`:${by.createHash("md5").update(n.body).digest("hex")}`);let f=!1,l=!1,D=d=>{l=!0;let h=!1,C=()=>{},y=new Promise(F=>{C=()=>{h||(h=!0,F())}}),x=async F=>{if(f){F.status=F.statusCode;let w=qn.default.fromObject(f.cachePolicy).revalidatedPolicy(d,F);if(!w.modified){F.resume(),await new Promise($=>{F.once("end",$)});let S=Tl(w.policy.responseHeaders());F=new Vt({statusCode:f.statusCode,headers:S,body:f.body,url:f.url}),F.cachePolicy=w.policy,F.fromCache=!0}}F.fromCache||(F.cachePolicy=new qn.default(d,F,d),F.fromCache=!1);let B;d.cache&&F.cachePolicy.storable()?(B=Ay(F),(async()=>{try{let w=Il.default.buffer(F);await Promise.race([y,new Promise(q=>F.once("end",q)),new Promise(q=>F.once("close",q))]);let S=await w,$={url:F.url,statusCode:F.fromCache?f.statusCode:F.statusCode,body:S,cachePolicy:F.cachePolicy.toObject()},W=d.strictTtl?F.cachePolicy.timeToLive():void 0;if(d.maxTtl&&(W=W?Math.min(W,d.maxTtl):d.maxTtl),this.hooks.size>0)for(let q of this.hooks.keys())$=await this.runHook(q,$,F);await this.cache.set(c,$,W)}catch(w){o.emit("error",new Ge(w))}})()):d.cache&&f&&(async()=>{try{await this.cache.delete(c)}catch(w){o.emit("error",new Ge(w))}})(),o.emit("response",B??F),typeof s=="function"&&s(B??F)};try{let F=this.cacheRequest(d,x);F.once("error",C),F.once("abort",C),F.once("destroy",C),o.emit("request",F)}catch(F){o.emit("error",new $n(F))}};return(async()=>{let d=async C=>{await Promise.resolve();let y=C.cache?await this.cache.get(c):void 0;if(y===void 0&&!C.forceRefresh){D(C);return}let x=qn.default.fromObject(y.cachePolicy);if(x.satisfiesWithoutRevalidation(C)&&!C.forceRefresh){let F=Tl(x.responseHeaders()),B=new Vt({statusCode:y.statusCode,headers:F,body:y.body,url:y.url});B.cachePolicy=x,B.fromCache=!0,o.emit("response",B),typeof s=="function"&&s(B)}else x.satisfiesWithoutRevalidation(C)&&Date.now()>=x.timeToLive()&&C.forceRefresh?(await this.cache.delete(c),C.headers=x.revalidationHeaders(C),D(C)):(f=y,C.headers=x.revalidationHeaders(C),D(C))},h=C=>o.emit("error",new Ge(C));if(this.cache instanceof Br.default){let C=this.cache;C.once("error",h),o.on("error",()=>C.removeListener("error",h)),o.on("response",()=>C.removeListener("error",h))}try{await d(n)}catch(C){n.automaticFailover&&!l&&D(n),o.emit("error",new Ge(C))}})(),o},this.addHook=(n,s)=>{this.hooks.has(n)||this.hooks.set(n,s)},this.removeHook=n=>this.hooks.delete(n),this.getHook=n=>this.hooks.get(n),this.runHook=async(n,...s)=>this.hooks.get(n)?.(...s),r instanceof Br.default?this.cache=r:typeof r=="string"?this.cache=new Br.default({uri:r,namespace:"cacheable-request"}):this.cache=new Br.default({store:r,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},wy=Object.entries,Ay=t=>{let e=new _y({autoDestroy:!1});return Bi(t,e),t.pipe(e)},Sy=t=>{let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e},Ri=t=>({protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}),Tl=t=>{let e=[];for(let r of Object.keys(t))e[r.toLowerCase()]=t[r];return e},Pl=Ti;var lD=ae($l(),1);var fD=ae(Ai(),1);a();a();a();var Ne=t=>typeof t=="function";var Ty=t=>Ne(t[Symbol.asyncIterator]);async function*Iy(t){let e=t.getReader();for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}var kl=t=>{if(Ty(t))return t;if(Ne(t.getReader))return Iy(t);throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};a();var ql="abcdefghijklmnopqrstuvwxyz0123456789";function Ul(){let t=16,e="";for(;t--;)e+=ql[Math.random()*ql.length<<0];return e}a();var Pi=t=>String(t).replace(/\r|\n/g,(e,r,n)=>e==="\r"&&n[r+1]!==`
34
+ `||e===`
35
+ `&&n[r-1]!=="\r"?`\r
36
+ `:e);a();var Py=t=>Object.prototype.toString.call(t).slice(8,-1).toLowerCase();function Ni(t){if(Py(t)!=="object")return!1;let e=Object.getPrototypeOf(t);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}a();function Ml(t,e){if(typeof e=="string"){for(let[r,n]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return n}}var Hl=t=>new Proxy(t,{get:(e,r)=>Ml(e,r),has:(e,r)=>Ml(e,r)!==void 0});a();var Yt=t=>!!(t&&Ne(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&Ne(t.append)&&Ne(t.getAll)&&Ne(t.entries)&&Ne(t[Symbol.iterator]));a();var Li=t=>String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");a();var Ze=t=>!!(t&&typeof t=="object"&&Ne(t.constructor)&&t[Symbol.toStringTag]==="File"&&Ne(t.stream)&&t.name!=null);var Rr=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},J=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Tr,et,Ir,Un,Pr,gt,Nr,Lr,Mn,ji,Gl,Ny={enableAdditionalHeaders:!1},Hn={writable:!1,configurable:!1},Gn=class{constructor(e,r,n){if(Tr.add(this),et.set(this,`\r
37
+ `),Ir.set(this,void 0),Un.set(this,void 0),Pr.set(this,"-".repeat(2)),gt.set(this,new TextEncoder),Nr.set(this,void 0),Lr.set(this,void 0),Mn.set(this,void 0),!Yt(e))throw new TypeError("Expected first argument to be a FormData instance.");let s;if(Ni(r)?n=r:s=r,s||(s=Ul()),typeof s!="string")throw new TypeError("Expected boundary argument to be a string.");if(n&&!Ni(n))throw new TypeError("Expected options argument to be an object.");Rr(this,Lr,Array.from(e.entries()),"f"),Rr(this,Mn,{...Ny,...n},"f"),Rr(this,Ir,J(this,gt,"f").encode(J(this,et,"f")),"f"),Rr(this,Un,J(this,Ir,"f").byteLength,"f"),this.boundary=`form-data-boundary-${s}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Rr(this,Nr,J(this,gt,"f").encode(`${J(this,Pr,"f")}${this.boundary}${J(this,Pr,"f")}${J(this,et,"f").repeat(2)}`),"f");let i={"Content-Type":this.contentType},o=J(this,Tr,"m",Gl).call(this);o&&(this.contentLength=o,i["Content-Length"]=o),this.headers=Hl(Object.freeze(i)),Object.defineProperties(this,{boundary:Hn,contentType:Hn,contentLength:Hn,headers:Hn})}getContentLength(){return this.contentLength==null?void 0:Number(this.contentLength)}*values(){for(let[e,r]of J(this,Lr,"f")){let n=Ze(r)?r:J(this,gt,"f").encode(Pi(r));yield J(this,Tr,"m",ji).call(this,e,n),yield n,yield J(this,Ir,"f")}yield J(this,Nr,"f")}async*encode(){for(let e of this.values())Ze(e)?yield*kl(e.stream()):yield e}[(et=new WeakMap,Ir=new WeakMap,Un=new WeakMap,Pr=new WeakMap,gt=new WeakMap,Nr=new WeakMap,Lr=new WeakMap,Mn=new WeakMap,Tr=new WeakSet,ji=function(r,n){let s="";s+=`${J(this,Pr,"f")}${this.boundary}${J(this,et,"f")}`,s+=`Content-Disposition: form-data; name="${Li(r)}"`,Ze(n)&&(s+=`; filename="${Li(n.name)}"${J(this,et,"f")}`,s+=`Content-Type: ${n.type||"application/octet-stream"}`);let i=Ze(n)?n.size:n.byteLength;return J(this,Mn,"f").enableAdditionalHeaders===!0&&i!=null&&!isNaN(i)&&(s+=`${J(this,et,"f")}Content-Length: ${Ze(n)?n.size:n.byteLength}`),J(this,gt,"f").encode(`${s}${J(this,et,"f").repeat(2)}`)},Gl=function(){let r=0;for(let[n,s]of J(this,Lr,"f")){let i=Ze(s)?s:J(this,gt,"f").encode(Pi(s)),o=Ze(i)?i.size:i.byteLength;if(o==null||isNaN(o))return;r+=J(this,Tr,"m",ji).call(this,n,i).byteLength,r+=o,r+=J(this,Un,"f")}return String(r+J(this,Nr,"f").byteLength)},Symbol.iterator)](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};a();import{Buffer as Ly}from"node:buffer";import{promisify as jy}from"node:util";a();function jr(t){return E.nodeStream(t)&&E.function_(t.getBoundary)}async function $i(t,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(E.string(t))return Ly.byteLength(t);if(E.buffer(t))return t.length;if(jr(t))return jy(t.getLength.bind(t))()}a();function $r(t,e,r){let n={};for(let s of r){let i=(...o)=>{e.emit(s,...o)};n[s]=i,t.on(s,i)}return()=>{for(let[s,i]of Object.entries(n))t.off(s,i)}}a();import $y from"node:net";a();function ki(){let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:s}=e;r.removeListener(n,s)}t.length=0}}}var zl=Symbol("reentry"),ky=()=>{},kr=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.code="ETIMEDOUT"}};function qi(t,e,r){if(zl in t)return ky;t[zl]=!0;let n=[],{once:s,unhandleAll:i}=ki(),o=(y,x,F)=>{let B=setTimeout(x,y,y,F);B.unref?.();let w=()=>{clearTimeout(B)};return n.push(w),w},{host:u,hostname:c}=r,f=(y,x)=>{t.destroy(new kr(y,x))},l=()=>{for(let y of n)y();i()};if(t.once("error",y=>{if(l(),t.listenerCount("error")===0)throw y}),typeof e.request<"u"){let y=o(e.request,f,"request");s(t,"response",x=>{s(x,"end",y)})}if(typeof e.socket<"u"){let{socket:y}=e,x=()=>{f(y,"socket")};t.setTimeout(y,x),n.push(()=>{t.removeListener("timeout",x)})}let D=typeof e.lookup<"u",d=typeof e.connect<"u",h=typeof e.secureConnect<"u",C=typeof e.send<"u";return(D||d||h||C)&&s(t,"socket",y=>{let{socketPath:x}=t;if(y.connecting){let F=!!(x??$y.isIP(c??u??"")!==0);if(D&&!F&&typeof y.address().address>"u"){let B=o(e.lookup,f,"lookup");s(y,"lookup",B)}if(d){let B=()=>o(e.connect,f,"connect");F?s(y,"connect",B()):s(y,"lookup",w=>{w===null&&s(y,"connect",B())})}h&&r.protocol==="https:"&&s(y,"connect",()=>{let B=o(e.secureConnect,f,"secureConnect");s(y,"secureConnect",B)})}if(C){let F=()=>o(e.send,f,"send");y.connecting?s(y,"connect",()=>{s(t,"upload-complete",F())}):s(t,"upload-complete",F())}}),typeof e.response<"u"&&s(t,"upload-complete",()=>{let y=o(e.response,f,"response");s(t,"response",y)}),typeof e.read<"u"&&s(t,"response",y=>{let x=o(e.read,f,"read");s(y,"end",x)}),l}a();function Ui(t){t=t;let e={protocol:t.protocol,hostname:E.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return E.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}a();var qr=class{constructor(){Object.defineProperty(this,"weakMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};a();var qy=({attemptCount:t,retryOptions:e,error:r,retryAfter:n,computedValue:s})=>{if(r.name==="RetryError")return 1;if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),o=e.errorCodes.includes(r.code),u=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!o&&!u)return 0;if(r.response){if(n)return n>s?0:n;if(r.response.statusCode===413)return 0}let c=Math.random()*e.noise;return Math.min(2**(t-1)*1e3,e.backoffLimit)+c},Wl=qy;a();import yF from"node:process";import{promisify as rD,inspect as CF}from"node:util";import{URL as iD,URLSearchParams as Vr}from"node:url";import{checkServerIdentity as FF}from"node:tls";import bF from"node:http";import xF from"node:https";a();import{V4MAPPED as Uy,ADDRCONFIG as My,ALL as Ql,promises as Hy,lookup as Gy}from"node:dns";import{promisify as Mi}from"node:util";import zy from"node:os";var{Resolver:Vl}=Hy,Kt=Symbol("cacheableLookupCreateConnection"),Hi=Symbol("cacheableLookupInstance"),Yl=Symbol("expires"),Wy=typeof Ql=="number",Kl=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},Vy=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},Xl=()=>{let t=!1,e=!1;for(let r of Object.values(zy.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},Yy=t=>Symbol.iterator in t,zn=t=>t.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),Jl={ttl:!0},Ky={all:!0},Xy={all:!0,family:4},Jy={all:!0,family:6},Ur=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:s=.15,resolver:i=new Vl,lookup:o=Gy}={}){if(this.maxTtl=r,this.errorTtl=s,this._cache=e,this._resolver=i,this._dnsLookup=o&&Mi(o),this.stats={cache:0,query:0},this._resolver instanceof Vl?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Mi(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Mi(this._resolver.resolve6.bind(this._resolver))),this._iface=Xl(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=n,n>0){let u=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);u.unref&&u.unref(),this._fallbackInterval=u}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(s=>{r.all?n(null,s):n(null,s.address,s.family,s.expires,s.ttl,s.source)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let s=n.filter(i=>i.family===6);r.hints&Uy&&(Wy&&r.hints&Ql||s.length===0)?Vy(n):n=s}else r.family===4&&(n=n.filter(s=>s.family===4));if(r.hints&My){let{_iface:s}=this;n=n.filter(i=>i.family===6?s.has6:s.has4)}if(n.length===0){let s=new Error(`cacheableLookup ENOTFOUND ${e}`);throw s.code="ENOTFOUND",s.hostname=e,s}return r.all?n:n[0]}async query(e){let r="cache",n=await this._cache.get(e);if(n&&this.stats.cache++,!n){let s=this._pending[e];if(s)this.stats.cache++,n=await s;else{r="query";let i=this.queryAndCache(e);this._pending[e]=i,this.stats.query++;try{n=await i}finally{delete this._pending[e]}}}return n=n.map(s=>({...s,source:r})),n}async _resolve(e){let[r,n]=await Promise.all([zn(this._resolve4(e,Jl)),zn(this._resolve6(e,Jl))]),s=0,i=0,o=0,u=Date.now();for(let c of r)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,i=Math.max(i,c.ttl);return r.length>0?n.length>0?o=Math.min(s,i):o=s:o=i,{entries:[...r,...n],cacheTtl:o}}async _lookup(e){try{let[r,n]=await Promise.all([zn(this._dnsLookup(e,Xy)),zn(this._dnsLookup(e,Jy))]);return{entries:[...r,...n],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[Yl]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(s){this.lookupAsync=async()=>{let i=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw i.cause=s,i}}Yy(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,Ky);let r=await this._resolve(e);r.entries.length===0&&this._dnsLookup&&(r=await this._lookup(e),r.entries.length!==0&&this.fallbackDuration>0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,s=Date.now();for(let[i,o]of this._cache){let u=o[Yl];s>=u?this._cache.delete(i):u<n&&(n=u)}n!==1/0&&this._tick(n-s)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(Kl(e),Kt in e)throw new Error("CacheableLookup has been already installed");e[Kt]=e.createConnection,e[Hi]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Kt](r,n))}uninstall(e){if(Kl(e),e[Kt]){if(e[Hi]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Kt],delete e[Kt],delete e[Hi]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=Xl(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};var oD=ae(tD(),1);a();function ho(t){let e=[],r=t.split(",");for(let n of r){let[s,...i]=n.split(";"),o=s.trim();if(o[0]!=="<"||o[o.length-1]!==">")throw new Error(`Invalid format of the Link header reference: ${o}`);let u=o.slice(1,-1),c={};if(i.length===0)throw new Error(`Unexpected end of Link header parameters: ${i.join(";")}`);for(let f of i){let l=f.trim(),D=l.indexOf("=");if(D===-1)throw new Error(`Failed to parse Link header: ${t}`);let d=l.slice(0,D).trim(),h=l.slice(D+1).trim();c[d]=h}e.push({reference:u,parameters:c})}return e}var[nD,_F]=yF.versions.node.split(".").map(Number);function wF(t){for(let e in t){let r=t[e];A.any([E.string,E.number,E.boolean,E.null_,E.undefined],r)}}var AF=new Map,Qn,SF=()=>Qn||(Qn=new Ur,Qn),vF={request:void 0,agent:{http:void 0,https:void 0,http2:void 0},h2session:void 0,decompress:!0,timeout:{connect:void 0,lookup:void 0,read:void 0,request:void 0,response:void 0,secureConnect:void 0,send:void 0,socket:void 0},prefixUrl:"",body:void 0,form:void 0,json:void 0,cookieJar:void 0,ignoreInvalidCookies:!1,searchParams:void 0,dnsLookup:void 0,dnsCache:void 0,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},followRedirect:!0,maxRedirects:10,cache:void 0,throwHttpErrors:!0,username:"",password:"",http2:!1,allowGetBody:!1,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:!1,dnsLookupIpVersion:void 0,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t,backoffLimit:Number.POSITIVE_INFINITY,noise:100},localAddress:void 0,method:"GET",createConnection:void 0,cacheOptions:{shared:void 0,cacheHeuristic:void 0,immutableMinTimeToLive:void 0,ignoreCargoCult:void 0},https:{alpnProtocols:void 0,rejectUnauthorized:void 0,checkServerIdentity:void 0,certificateAuthority:void 0,key:void 0,certificate:void 0,passphrase:void 0,pfx:void 0,ciphers:void 0,honorCipherOrder:void 0,minVersion:void 0,maxVersion:void 0,signatureAlgorithms:void 0,tlsSessionLifetime:void 0,dhparam:void 0,ecdhCurve:void 0,certificateRevocationLists:void 0},encoding:void 0,resolveBodyOnly:!1,isStream:!1,responseType:"text",url:void 0,pagination:{transform(t){return t.request.options.responseType==="json"?t.body:JSON.parse(t.body)},paginate({response:t}){let e=t.headers.link;if(typeof e!="string"||e.trim()==="")return!1;let n=ho(e).find(s=>s.parameters.rel==="next"||s.parameters.rel==='"next"');return n?{url:new iD(n.reference,t.url)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!0},OF=t=>{let{hooks:e,retry:r}=t,n={...t,context:{...t.context},cacheOptions:{...t.cacheOptions},https:{...t.https},agent:{...t.agent},headers:{...t.headers},retry:{...r,errorCodes:[...r.errorCodes],methods:[...r.methods],statusCodes:[...r.statusCodes]},timeout:{...t.timeout},hooks:{init:[...e.init],beforeRequest:[...e.beforeRequest],beforeError:[...e.beforeError],beforeRedirect:[...e.beforeRedirect],beforeRetry:[...e.beforeRetry],afterResponse:[...e.afterResponse]},searchParams:t.searchParams?new Vr(t.searchParams):void 0,pagination:{...t.pagination}};return n.url!==void 0&&(n.prefixUrl=""),n},BF=t=>{let{hooks:e,retry:r}=t,n={...t};return E.object(t.context)&&(n.context={...t.context}),E.object(t.cacheOptions)&&(n.cacheOptions={...t.cacheOptions}),E.object(t.https)&&(n.https={...t.https}),E.object(t.cacheOptions)&&(n.cacheOptions={...n.cacheOptions}),E.object(t.agent)&&(n.agent={...t.agent}),E.object(t.headers)&&(n.headers={...t.headers}),E.object(r)&&(n.retry={...r},E.array(r.errorCodes)&&(n.retry.errorCodes=[...r.errorCodes]),E.array(r.methods)&&(n.retry.methods=[...r.methods]),E.array(r.statusCodes)&&(n.retry.statusCodes=[...r.statusCodes])),E.object(t.timeout)&&(n.timeout={...t.timeout}),E.object(e)&&(n.hooks={...e},E.array(e.init)&&(n.hooks.init=[...e.init]),E.array(e.beforeRequest)&&(n.hooks.beforeRequest=[...e.beforeRequest]),E.array(e.beforeError)&&(n.hooks.beforeError=[...e.beforeError]),E.array(e.beforeRedirect)&&(n.hooks.beforeRedirect=[...e.beforeRedirect]),E.array(e.beforeRetry)&&(n.hooks.beforeRetry=[...e.beforeRetry]),E.array(e.afterResponse)&&(n.hooks.afterResponse=[...e.afterResponse])),E.object(t.pagination)&&(n.pagination={...t.pagination}),n},RF=t=>{let e=[t.timeout.socket,t.timeout.connect,t.timeout.lookup,t.timeout.request,t.timeout.secureConnect].filter(r=>typeof r=="number");if(e.length>0)return Math.min(...e)},sD=(t,e,r)=>{let n=t.hooks?.init;if(n)for(let s of n)s(e,r)},Le=class t{constructor(e,r,n){if(Object.defineProperty(this,"_unixOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_internals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_merging",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_init",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),A.any([E.string,E.urlInstance,E.object,E.undefined],e),A.any([E.object,E.undefined],r),A.any([E.object,E.undefined],n),e instanceof t||r instanceof t)throw new TypeError("The defaults must be passed as the third argument");this._internals=OF(n?._internals??n??vF),this._init=[...n?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(E.plainObject(e))try{this.merge(e),this.merge(r)}finally{this.url=e.url}else try{this.merge(r)}finally{if(r?.url!==void 0)if(e===void 0)this.url=r.url;else throw new TypeError("The `url` option is mutually exclusive with the `input` argument");else e!==void 0&&(this.url=e)}}catch(s){throw s.options=this,s}}merge(e){if(e){if(e instanceof t){for(let r of e._init)this.merge(r);return}e=BF(e),sD(this,e,this),sD(e,e,this),this._merging=!0,"isStream"in e&&(this.isStream=e.isStream);try{let r=!1;for(let n in e)if(!(n==="mutableDefaults"||n==="handlers")&&n!=="url"){if(!(n in this))throw new Error(`Unexpected option: ${n}`);this[n]=e[n],r=!0}r&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){A.any([E.function_,E.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){A.plainObject(e);for(let r in e){if(!(r in this._internals.agent))throw new TypeError(`Unexpected agent option: ${r}`);A.any([E.object,E.undefined],e[r])}this._merging?Object.assign(this._internals.agent,e):this._internals.agent={...e}}get h2session(){return this._internals.h2session}set h2session(e){this._internals.h2session=e}get decompress(){return this._internals.decompress}set decompress(e){A.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){A.plainObject(e);for(let r in e){if(!(r in this._internals.timeout))throw new Error(`Unexpected timeout option: ${r}`);A.any([E.number,E.undefined],e[r])}this._merging?Object.assign(this._internals.timeout,e):this._internals.timeout={...e}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(e){if(A.any([E.string,E.urlInstance],e),e===""){this._internals.prefixUrl="";return}if(e=e.toString(),e.endsWith("/")||(e+="/"),this._internals.prefixUrl&&this._internals.url){let{href:r}=this._internals.url;this._internals.url.href=e+r.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=e}get body(){return this._internals.body}set body(e){A.any([E.string,E.buffer,E.nodeStream,E.generator,E.asyncGenerator,Yt,E.undefined],e),E.nodeStream(e)&&A.truthy(e.readable),e!==void 0&&(A.undefined(this._internals.form),A.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){A.any([E.plainObject,E.undefined],e),e!==void 0&&(A.undefined(this._internals.body),A.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(A.undefined(this._internals.body),A.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(A.any([E.string,E.urlInstance,E.undefined],e),e===void 0){this._internals.url=void 0;return}if(E.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let r=`${this.prefixUrl}${e.toString()}`,n=new iD(r);if(this._internals.url=n,n.protocol==="unix:"&&(n.href=`http://unix${n.pathname}${n.search}`),n.protocol!=="http:"&&n.protocol!=="https:"){let s=new Error(`Unsupported protocol: ${n.protocol}`);throw s.code="ERR_UNSUPPORTED_PROTOCOL",s}if(this._internals.username&&(n.username=this._internals.username,this._internals.username=""),this._internals.password&&(n.password=this._internals.password,this._internals.password=""),this._internals.searchParams&&(n.search=this._internals.searchParams.toString(),this._internals.searchParams=void 0),n.hostname==="unix"){if(!this._internals.enableUnixSockets)throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled");let s=/(?<socketPath>.+?):(?<path>.+)/.exec(`${n.pathname}${n.search}`);if(s?.groups){let{socketPath:i,path:o}=s.groups;this._unixOptions={socketPath:i,path:o,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(A.any([E.object,E.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:r,getCookieString:n}=e;A.function_(r),A.function_(n),r.length===4&&n.length===0?(r=rD(r.bind(e)),n=rD(n.bind(e)),this._internals.cookieJar={setCookie:r,getCookieString:n}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){A.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){A.boolean(e),this._internals.ignoreInvalidCookies=e}get searchParams(){return this._internals.url?this._internals.url.searchParams:(this._internals.searchParams===void 0&&(this._internals.searchParams=new Vr),this._internals.searchParams)}set searchParams(e){A.any([E.string,E.object,E.undefined],e);let r=this._internals.url;if(e===void 0){this._internals.searchParams=void 0,r&&(r.search="");return}let n=this.searchParams,s;if(E.string(e))s=new Vr(e);else if(e instanceof Vr)s=e;else{wF(e),s=new Vr;for(let i in e){let o=e[i];o===null?s.append(i,""):o===void 0?n.delete(i):s.append(i,o)}}if(this._merging){for(let i of s.keys())n.delete(i);for(let[i,o]of s)n.append(i,o)}else r?r.search=n.toString():this._internals.searchParams=n}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(e){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(e){A.any([E.function_,E.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){A.any([E.object,E.boolean,E.undefined],e),e===!0?this._internals.dnsCache=SF():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){A.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){A.object(e);for(let r in e){if(!(r in this._internals.hooks))throw new Error(`Unexpected hook event: ${r}`);let n=r,s=e[n];if(A.any([E.array,E.undefined],s),s)for(let i of s)A.function_(i);if(this._merging)s&&this._internals.hooks[n].push(...s);else{if(!s)throw new Error(`Missing hook event: ${r}`);this._internals.hooks[r]=[...s]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(e){A.boolean(e),this._internals.followRedirect=e}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(e){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(e){A.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){A.any([E.object,E.string,E.boolean,E.undefined],e),e===!0?this._internals.cache=AF:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){A.boolean(e),this._internals.throwHttpErrors=e}get username(){let e=this._internals.url,r=e?e.username:this._internals.username;return decodeURIComponent(r)}set username(e){A.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.username=n:this._internals.username=n}get password(){let e=this._internals.url,r=e?e.password:this._internals.password;return decodeURIComponent(r)}set password(e){A.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.password=n:this._internals.password=n}get http2(){return this._internals.http2}set http2(e){A.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){A.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){A.plainObject(e),this._merging?Object.assign(this._internals.headers,Wt(e)):this._internals.headers=Wt(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){A.boolean(e),this._internals.methodRewriting=e}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(e){if(e!==void 0&&e!==4&&e!==6)throw new TypeError(`Invalid DNS lookup IP version: ${e}`);this._internals.dnsLookupIpVersion=e}get parseJson(){return this._internals.parseJson}set parseJson(e){A.function_(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){A.function_(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(A.plainObject(e),A.any([E.function_,E.undefined],e.calculateDelay),A.any([E.number,E.undefined],e.maxRetryAfter),A.any([E.number,E.undefined],e.limit),A.any([E.array,E.undefined],e.methods),A.any([E.array,E.undefined],e.statusCodes),A.any([E.array,E.undefined],e.errorCodes),A.any([E.number,E.undefined],e.noise),e.noise&&Math.abs(e.noise)>100)throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`);for(let n in e)if(!(n in this._internals.retry))throw new Error(`Unexpected retry option: ${n}`);this._merging?Object.assign(this._internals.retry,e):this._internals.retry={...e};let{retry:r}=this._internals;r.methods=[...new Set(r.methods.map(n=>n.toUpperCase()))],r.statusCodes=[...new Set(r.statusCodes)],r.errorCodes=[...new Set(r.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(e){A.any([E.string,E.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){A.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){A.any([E.function_,E.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){A.plainObject(e),A.any([E.boolean,E.undefined],e.shared),A.any([E.number,E.undefined],e.cacheHeuristic),A.any([E.number,E.undefined],e.immutableMinTimeToLive),A.any([E.boolean,E.undefined],e.ignoreCargoCult);for(let r in e)if(!(r in this._internals.cacheOptions))throw new Error(`Cache option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.cacheOptions,e):this._internals.cacheOptions={...e}}get https(){return this._internals.https}set https(e){A.plainObject(e),A.any([E.boolean,E.undefined],e.rejectUnauthorized),A.any([E.function_,E.undefined],e.checkServerIdentity),A.any([E.string,E.object,E.array,E.undefined],e.certificateAuthority),A.any([E.string,E.object,E.array,E.undefined],e.key),A.any([E.string,E.object,E.array,E.undefined],e.certificate),A.any([E.string,E.undefined],e.passphrase),A.any([E.string,E.buffer,E.array,E.undefined],e.pfx),A.any([E.array,E.undefined],e.alpnProtocols),A.any([E.string,E.undefined],e.ciphers),A.any([E.string,E.buffer,E.undefined],e.dhparam),A.any([E.string,E.undefined],e.signatureAlgorithms),A.any([E.string,E.undefined],e.minVersion),A.any([E.string,E.undefined],e.maxVersion),A.any([E.boolean,E.undefined],e.honorCipherOrder),A.any([E.number,E.undefined],e.tlsSessionLifetime),A.any([E.string,E.undefined],e.ecdhCurve),A.any([E.string,E.buffer,E.array,E.undefined],e.certificateRevocationLists);for(let r in e)if(!(r in this._internals.https))throw new Error(`HTTPS option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.https,e):this._internals.https={...e}}get encoding(){return this._internals.encoding}set encoding(e){if(e===null)throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");A.any([E.string,E.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){A.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){A.boolean(e),this._internals.isStream=e}get responseType(){return this._internals.responseType}set responseType(e){if(e===void 0){this._internals.responseType="text";return}if(e!=="text"&&e!=="buffer"&&e!=="json")throw new Error(`Invalid \`responseType\` option: ${e}`);this._internals.responseType=e}get pagination(){return this._internals.pagination}set pagination(e){A.object(e),this._merging?Object.assign(this._internals.pagination,e):this._internals.pagination=e}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(e){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(e){A.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){A.any([E.number,E.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){A.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,r){return CF(this._internals,r)}createNativeRequestOptions(){let e=this._internals,r=e.url,n;r.protocol==="https:"?n=e.http2?e.agent:e.agent.https:n=e.agent.http;let{https:s}=e,{pfx:i}=s;return E.array(i)&&E.plainObject(i[0])&&(i=i.map(o=>({buf:o.buffer,passphrase:o.passphrase}))),{...e.cacheOptions,...this._unixOptions,ALPNProtocols:s.alpnProtocols,ca:s.certificateAuthority,cert:s.certificate,key:s.key,passphrase:s.passphrase,pfx:s.pfx,rejectUnauthorized:s.rejectUnauthorized,checkServerIdentity:s.checkServerIdentity??FF,ciphers:s.ciphers,honorCipherOrder:s.honorCipherOrder,minVersion:s.minVersion,maxVersion:s.maxVersion,sigalgs:s.signatureAlgorithms,sessionTimeout:s.tlsSessionLifetime,dhparam:s.dhparam,ecdhCurve:s.ecdhCurve,crl:s.certificateRevocationLists,lookup:e.dnsLookup??e.dnsCache?.lookup,family:e.dnsLookupIpVersion,agent:n,setHost:e.setHost,method:e.method,maxHeaderSize:e.maxHeaderSize,localAddress:e.localAddress,headers:e.headers,createConnection:e.createConnection,timeout:e.http2?RF(e):void 0,h2session:e.h2session}}getRequestFunction(){let e=this._internals.url,{request:r}=this._internals;return!r&&e?this.getFallbackRequestFunction():r}getFallbackRequestFunction(){let e=this._internals.url;if(e){if(e.protocol==="https:"){if(this._internals.http2){if(nD<15||nD===15&&_F<10){let r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw r.code="EUNSUPPORTED",r}return oD.default.auto}return xF.request}return bF.request}}freeze(){let e=this._internals;Object.freeze(e),Object.freeze(e.hooks),Object.freeze(e.hooks.afterResponse),Object.freeze(e.hooks.beforeError),Object.freeze(e.hooks.beforeRedirect),Object.freeze(e.hooks.beforeRequest),Object.freeze(e.hooks.beforeRetry),Object.freeze(e.hooks.init),Object.freeze(e.https),Object.freeze(e.cacheOptions),Object.freeze(e.agent),Object.freeze(e.headers),Object.freeze(e.timeout),Object.freeze(e.retry),Object.freeze(e.retry.errorCodes),Object.freeze(e.retry.methods),Object.freeze(e.retry.statusCodes)}};a();var Zt=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304},Zn=class extends re{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code="ERR_BODY_PARSE_FAILURE"}},po=(t,e,r,n)=>{let{rawBody:s}=t;try{if(e==="text")return s.toString(n);if(e==="json")return s.length===0?"":r(s.toString(n));if(e==="buffer")return s}catch(i){throw new Zn(i,t)}throw new Zn({message:`Unknown body type '${e}'`,name:"Error"},t)};a();function TF(t){return t.writable&&!t.writableEnded}var uD=TF;a();function es(t){return t.protocol==="unix:"||t.hostname==="unix"}var{buffer:jF}=fD.default,$F=E.string(cD.versions.brotli),kF=new Set(["GET","HEAD"]),go=new qr,qF=new Set([300,301,302,303,304,307,308]),UF=["socket","connect","continue","information","upgrade"],ts=()=>{},Ct=class t extends IF{constructor(e,r,n){super({autoDestroy:!1,highWaterMark:0}),Object.defineProperty(this,"constructor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_noPipe",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"requestUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"redirectUrls",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"retryCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopRetry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downloadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_uploadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopReading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pipedServerResponses",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_responseSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bodySize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_unproxyEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isFromCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cannotHaveBody",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_triggerRead",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cancelTimeouts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_removeListeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nativeResponse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_flushed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_aborted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_requestInitialized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._downloadedSize=0,this._uploadedSize=0,this._stopReading=!1,this._pipedServerResponses=new Set,this._cannotHaveBody=!1,this._unproxyEvents=ts,this._triggerRead=!1,this._cancelTimeouts=ts,this._removeListeners=ts,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=ts,this.on("pipe",i=>{i?.headers&&Object.assign(this.options.headers,i.headers)}),this.on("newListener",i=>{if(i==="retry"&&this.listenerCount("retry")>0)throw new Error("A retry listener has been attached already.")});try{if(this.options=new Le(e,r,n),!this.options.url){if(this.options.prefixUrl==="")throw new TypeError("Missing `url` property");this.options.url=""}this.requestUrl=this.options.url}catch(i){let{options:o}=i;o&&(this.options=o),this.flush=async()=>{this.flush=async()=>{},this.destroy(i)};return}let{body:s}=this.options;if(E.nodeStream(s)&&s.once("error",i=>{this._flushed?this._beforeError(new Sr(i,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new Sr(i,this))}}),this.options.signal){let i=()=>{this.destroy(new Ln(this))};this.options.signal.aborted?i():(this.options.signal.addEventListener("abort",i),this._removeListeners=()=>{this.options.signal.removeEventListener("abort",i)})}}async flush(){if(!this._flushed){this._flushed=!0;try{if(await this._finalizeBody(),this.destroyed)return;if(await this._makeRequest(),this.destroyed){this._request?.destroy();return}for(let e of this._jobs)e();this._jobs.length=0,this._requestInitialized=!0}catch(e){this._beforeError(e)}}}_beforeError(e){if(this._stopReading)return;let{response:r,options:n}=this,s=this.retryCount+(e.name==="RetryError"?0:1);this._stopReading=!0,e instanceof re||(e=new re(e.message,e,this));let i=e;(async()=>{if(r?.readable&&!r.rawBody&&!this._request?.socket?.destroyed&&(r.setEncoding(this.readableEncoding),await this._setRawBody(r)&&(r.body=r.rawBody.toString())),this.listenerCount("retry")!==0){let o;try{let u;r&&"retry-after"in r.headers&&(u=Number(r.headers["retry-after"]),Number.isNaN(u)?(u=Date.parse(r.headers["retry-after"])-Date.now(),u<=0&&(u=1)):u*=1e3);let c=n.retry;o=await c.calculateDelay({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:Wl({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:c.maxRetryAfter??n.timeout.request??Number.POSITIVE_INFINITY})})}catch(u){this._error(new re(u.message,u,this));return}if(o){if(await new Promise(u=>{let c=setTimeout(u,o);this._stopRetry=()=>{clearTimeout(c),u()}}),this.destroyed)return;try{for(let u of this.options.hooks.beforeRetry)await u(i,this.retryCount+1)}catch(u){this._error(new re(u.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,u=>{let c=new t(n.url,u,n);return c.retryCount=this.retryCount+1,cD.nextTick(()=>{c.flush()}),c});return}}this._error(i)})()}_read(){this._triggerRead=!0;let{response:e}=this;if(e&&!this._stopReading){e.readableLength&&(this._triggerRead=!1);let r;for(;(r=e.read())!==null;){this._downloadedSize+=r.length;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let s=()=>{this._writeRequest(e,r,n)};this._requestInitialized?s():this._jobs.push(s)}_final(e){let r=()=>{if(!this._request||this._request.destroyed){e();return}this._request.end(n=>{this._request._writableState?.errored||(n||(this._bodySize=this._uploadedSize,this.emit("uploadProgress",this.uploadProgress),this._request.emit("upload-complete")),e(n))})};this._requestInitialized?r():this._jobs.push(r)}_destroy(e,r){if(this._stopReading=!0,this.flush=async()=>{},this._stopRetry(),this._cancelTimeouts(),this._removeListeners(),this.options){let{body:n}=this.options;E.nodeStream(n)&&n.destroy()}this._request&&this._request.destroy(),e!==null&&!E.undefined(e)&&!(e instanceof re)&&(e=new re(e.message,e,this)),r(e)}pipe(e,r){return e instanceof aD&&this._pipedServerResponses.add(e),super.pipe(e,r)}unpipe(e){return e instanceof aD&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!E.undefined(e.form),s=!E.undefined(e.json),i=!E.undefined(e.body),o=kF.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=o,n||s||i){if(o)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let u=!E.string(r["content-type"]);if(i){if(Yt(e.body)){let f=new Gn(e.body);u&&(r["content-type"]=f.headers["Content-Type"]),"Content-Length"in f.headers&&(r["content-length"]=f.headers["Content-Length"]),e.body=f.encode()}jr(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(n){u&&(r["content-type"]="application/x-www-form-urlencoded");let{form:f}=e;e.form=void 0,e.body=new NF(f).toString()}else{u&&(r["content-type"]="application/json");let{json:f}=e;e.json=void 0,e.body=e.stringifyJson(f)}let c=await $i(e.body,e.headers);E.undefined(r["content-length"])&&E.undefined(r["transfer-encoding"])&&!o&&!E.undefined(c)&&(r["content-length"]=String(c))}e.responseType==="json"&&!("accept"in e.headers)&&(e.headers.accept="application/json"),this._bodySize=Number(r["content-length"])||void 0}async _onResponseBase(e){if(this.isAborted)return;let{options:r}=this,{url:n}=r;this._nativeResponse=e,r.decompress&&(e=(0,lD.default)(e));let s=e.statusCode,i=e;i.statusMessage=i.statusMessage??LF.STATUS_CODES[s],i.url=r.url.toString(),i.requestUrl=this.requestUrl,i.redirectUrls=this.redirectUrls,i.request=this,i.isFromCache=this._nativeResponse.fromCache??!1,i.ip=this.ip,i.retryCount=this.retryCount,i.ok=Zt(i),this._isFromCache=i.isFromCache,this._responseSize=Number(e.headers["content-length"])||void 0,this.response=i,e.once("end",()=>{this._responseSize=this._downloadedSize,this.emit("downloadProgress",this.downloadProgress)}),e.once("error",u=>{this._aborted=!0,e.destroy(),this._beforeError(new vr(u,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new vr({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(E.object(r.cookieJar)&&o){let u=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(u=u.map(async c=>{try{await c}catch{}}));try{await Promise.all(u)}catch(c){this._beforeError(c);return}}if(!this.isAborted){if(r.followRedirect&&e.headers.location&&qF.has(s)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=r.maxRedirects){this._beforeError(new Tn(this));return}this._request=void 0;let u=new Le(void 0,void 0,this.options),c=s===303&&u.method!=="GET"&&u.method!=="HEAD",f=s!==307&&s!==308,l=u.methodRewriting&&f;(c||l)&&(u.method="GET",u.body=void 0,u.json=void 0,u.form=void 0,delete u.headers["content-length"]);try{let D=mo.from(e.headers.location,"binary").toString(),d=new PF(D,n);if(!es(n)&&es(d)){this._beforeError(new re("Cannot redirect to UNIX socket",{},this));return}d.hostname!==n.hostname||d.port!==n.port?("host"in u.headers&&delete u.headers.host,"cookie"in u.headers&&delete u.headers.cookie,"authorization"in u.headers&&delete u.headers.authorization,(u.username||u.password)&&(u.username="",u.password="")):(d.username=u.username,d.password=u.password),this.redirectUrls.push(d),u.prefixUrl="",u.url=d;for(let h of u.hooks.beforeRedirect)await h(u,i);this.emit("redirect",u,i),this.options=u,await this._makeRequest()}catch(D){this._beforeError(D);return}return}if(r.isStream&&r.throwHttpErrors&&!Zt(i)){this._beforeError(new Qe(i));return}if(e.on("readable",()=>{this._triggerRead&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this._noPipe){await this._setRawBody()&&this.emit("response",e);return}this.emit("response",e);for(let u of this._pipedServerResponses)if(!u.headersSent){for(let c in e.headers){let f=r.decompress?c!=="content-encoding":!0,l=e.headers[c];f&&u.setHeader(c,l)}u.statusCode=s}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let r=await jF(e);if(!this.isAborted)return this.response.rawBody=r,!0}catch{}return!1}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:s}=r;bl(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=qi(e,n,s);let i=r.cache?"cacheableResponse":"response";e.once(i,o=>{this._onResponse(o)}),e.once("error",o=>{this._aborted=!0,e.destroy(),o=o instanceof kr?new Pn(o,this.timings,this):new re(o.message,o,this),this._beforeError(o)}),this._unproxyEvents=$r(e,this,UF),this._request=e,this.emit("uploadProgress",this.uploadProgress),this._sendBody(),this.emit("request",e)}async _asyncWrite(e){return new Promise((r,n)=>{super.write(e,s=>{if(s){n(s);return}r()})})}_sendBody(){let{body:e}=this.options,r=this.redirectUrls.length===0?this:this._request??this;E.nodeStream(e)?e.pipe(r):E.generator(e)||E.asyncGenerator(e)?(async()=>{try{for await(let n of e)await this._asyncWrite(n);super.end()}catch(n){this._beforeError(n)}})():E.undefined(e)?(this._cannotHaveBody||this._noPipe)&&r.end():(this._writeRequest(e,void 0,()=>{}),r.end())}_prepareCache(e){if(!go.has(e)){let r=new Pl((n,s)=>{let i=n._request(n,s);return E.promise(i)&&(i.once=(o,u)=>{if(o==="error")(async()=>{try{await i}catch(c){u(c)}})();else if(o==="abort")(async()=>{try{(await i).once("abort",u)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${o}`);return i}),i},e);go.set(e,r.request())}}async _createCacheableRequest(e,r){return new Promise((n,s)=>{Object.assign(r,Ui(e));let i,o=go.get(r.cache)(r,async u=>{if(u._readableState.autoDestroy=!1,i){let c=()=>{u.req&&(u.complete=u.req.res.complete)};u.prependOnceListener("end",c),c(),(await i).emit("cacheableResponse",u)}n(u)});o.once("error",s),o.once("request",async u=>{i=u,n(i)})})}async _makeRequest(){let{options:e}=this,{headers:r,username:n,password:s}=e,i=e.cookieJar;for(let f in r)if(E.undefined(r[f]))delete r[f];else if(E.null_(r[f]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${f}\` header`);if(e.decompress&&E.undefined(r["accept-encoding"])&&(r["accept-encoding"]=$F?"gzip, deflate, br":"gzip, deflate"),n||s){let f=mo.from(`${n}:${s}`).toString("base64");r.authorization=`Basic ${f}`}if(i){let f=await i.getCookieString(e.url.toString());E.nonEmptyString(f)&&(r.cookie=f)}e.prefixUrl="";let o;for(let f of e.hooks.beforeRequest){let l=await f(e);if(!E.undefined(l)){o=()=>l;break}}o||(o=e.getRequestFunction());let u=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=o,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let c=e.cache?this._createCacheableRequest:o;try{let f=c(u,this._requestOptions);E.promise(f)&&(f=await f),E.undefined(f)&&(f=e.getFallbackRequestFunction()(u,this._requestOptions),E.promise(f)&&(f=await f)),uD(f)?this._onRequest(f):this.writable?(this.once("finish",()=>{this._onResponse(f)}),this._sendBody()):this._onResponse(f)}catch(f){throw f instanceof Ge?new In(f,this):f}}async _error(e){try{if(!(e instanceof Qe&&!this.options.throwHttpErrors))for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new re(r.message,r,this)}this.destroy(e)}_writeRequest(e,r,n){!this._request||this._request.destroyed||this._request.write(e,r,s=>{if(!s&&!this._request.destroyed){this._uploadedSize+=mo.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}n(s)})}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??void 0}get downloadProgress(){let e;return this._responseSize?e=this._downloadedSize/this._responseSize:this._responseSize===this._downloadedSize?e=1:e=0,{percent:e,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let e;return this._bodySize?e=this._uploadedSize/this._bodySize:this._bodySize===this._uploadedSize?e=1:e=0,{percent:e,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}};a();var rs=class extends re{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};var HF=["request","response","redirect","uploadProgress","downloadProgress"];function ns(t){let e,r,n,s=new MF,i=new zt((u,c,f)=>{f(()=>{e.destroy()}),f.shouldReject=!1,f(()=>{c(new rs(e))});let l=D=>{f(()=>{});let d=t??new Ct(void 0,void 0,n);d.retryCount=D,d._noPipe=!0,e=d,d.once("response",async y=>{let x=(y.headers["content-encoding"]??"").toLowerCase(),F=x==="gzip"||x==="deflate"||x==="br",{options:B}=d;if(F&&!B.decompress)y.body=y.rawBody;else try{y.body=po(y,B.responseType,B.parseJson,B.encoding)}catch(w){if(y.body=y.rawBody.toString(),Zt(y)){d._beforeError(w);return}}try{let w=B.hooks.afterResponse;for(let[S,$]of w.entries())if(y=await $(y,async W=>{throw B.merge(W),B.prefixUrl="",W.url&&(B.url=W.url),B.hooks.afterResponse=B.hooks.afterResponse.slice(0,S),new Nn(d)}),!(E.object(y)&&E.number(y.statusCode)&&!E.nullOrUndefined(y.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(w){d._beforeError(w);return}if(r=y,!Zt(y)){d._beforeError(new Qe(y));return}d.destroy(),u(d.options.resolveBodyOnly?y.body:y)});let h=y=>{if(i.isCanceled)return;let{options:x}=d;if(y instanceof Qe&&!x.throwHttpErrors){let{response:F}=y;d.destroy(),u(d.options.resolveBodyOnly?F.body:F);return}c(y)};d.once("error",h);let C=d.options?.body;d.once("retry",(y,x)=>{t=void 0;let F=d.options.body;if(C===F&&E.nodeStream(F)){x.message="Cannot retry with consumed body stream",h(x);return}n=d.options,l(y)}),$r(d,s,HF),E.undefined(t)&&d.flush()};l(0)});i.on=(u,c)=>(s.on(u,c),i),i.off=(u,c)=>(s.off(u,c),i);let o=u=>{let c=(async()=>{await i;let{options:f}=r.request;return po(r,u,f.parseJson,f.encoding)})();return Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)),c};return i.json=()=>{if(e.options){let{headers:u}=e.options;!e.writableFinished&&!("accept"in u)&&(u.accept="application/json")}return o("json")},i.buffer=()=>o("buffer"),i.text=()=>o("text"),i}var GF=async t=>new Promise(e=>{setTimeout(e,t)}),zF=t=>E.function_(t),WF=["get","post","put","patch","head","delete"],DD=t=>{t={options:new Le(void 0,void 0,t.options),handlers:[...t.handlers],mutableDefaults:t.mutableDefaults},Object.defineProperty(t,"mutableDefaults",{enumerable:!0,configurable:!1,writable:!1});let e=(n,s,i=t.options)=>{let o=new Ct(n,s,i),u,c=D=>(o.options=D,o._noPipe=!D.isStream,o.flush(),D.isStream?o:(u||(u=ns(o)),u)),f=0,l=D=>{let h=(t.handlers[f++]??c)(D,l);if(E.promise(h)&&!o.options.isStream&&(u||(u=ns(o)),h!==u)){let C=Object.getOwnPropertyDescriptors(u);for(let y in C)y in h&&delete C[y];Object.defineProperties(h,C),h.cancel=u.cancel}return h};return l(o.options)};e.extend=(...n)=>{let s=new Le(void 0,void 0,t.options),i=[...t.handlers],o;for(let u of n)zF(u)?(s.merge(u.defaults.options),i.push(...u.defaults.handlers),o=u.defaults.mutableDefaults):(s.merge(u),u.handlers&&i.push(...u.handlers),o=u.mutableDefaults);return DD({options:s,handlers:i,mutableDefaults:!!o})};let r=async function*(n,s){let i=new Le(n,s,t.options);i.resolveBodyOnly=!1;let{pagination:o}=i;A.function_(o.transform),A.function_(o.shouldContinue),A.function_(o.filter),A.function_(o.paginate),A.number(o.countLimit),A.number(o.requestLimit),A.number(o.backoff);let u=[],{countLimit:c}=o,f=0;for(;f<o.requestLimit;){f!==0&&await GF(o.backoff);let l=await e(void 0,void 0,i),D=await o.transform(l),d=[];A.array(D);for(let C of D)if(o.filter({item:C,currentItems:d,allItems:u})&&(!o.shouldContinue({item:C,currentItems:d,allItems:u})||(yield C,o.stackAllItems&&u.push(C),d.push(C),--c<=0)))return;let h=o.paginate({response:l,currentItems:d,allItems:u});if(h===!1)return;h===l.request.options?i=l.request.options:(i.merge(h),A.any([E.urlInstance,E.undefined],h.url),h.url!==void 0&&(i.prefixUrl="",i.url=h.url)),f++}};e.paginate=r,e.paginate.all=async(n,s)=>{let i=[];for await(let o of r(n,s))i.push(o);return i},e.paginate.each=r,e.stream=(n,s)=>e(n,{...s,isStream:!0});for(let n of WF)e[n]=(s,i)=>e(s,{...i,method:n}),e.stream[n]=(s,i)=>e(s,{...i,method:n,isStream:!0});return t.mutableDefaults||(Object.freeze(t.handlers),t.options.freeze()),Object.defineProperty(e,"defaults",{value:t,writable:!1,configurable:!1,enumerable:!0}),e},hD=DD;var VF={options:new Le,handlers:[],mutableDefaults:!1},YF=hD(VF),dD=YF;a();var jD=ae(LD(),1);function bo(t){let e=(0,jD.default)("npm",{registry:"https://registry.npmjs.org/"}),r=e[`${t}:registry`]||e.config_registry||e.registry;return r.slice(-1)==="/"?r:`${r}/`}var Ih=ae(Th(),1),Ph=ae(Rn(),1),Nh={keepAlive:!0,maxSockets:50},Z2=new J2(Nh),eb=new Q2(Nh),Po=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},No=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Lo(t,e){e={version:"latest",...e};let r=t.split("/")[0],n=e.registryUrl||bo(r),s=new URL(encodeURIComponent(t).replace(/^%40/,"@"),n),i=(0,Ih.default)(n.toString(),{recursive:!0}),o={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};e.fullMetadata&&delete o.accept,i&&(o.authorization=`${i.type} ${i.token}`);let u={headers:o,agent:{http:Z2,https:eb}};e.agent&&(u.agent=e.agent);let c;try{c=await dD(s,u).json()}catch(D){throw D?.response?.statusCode===404?new Po(t):D}if(e.allVersions)return c;let{version:f}=e,l=new No(t,f);if(c["dist-tags"][f]){let D=c.time;c=c.versions[c["dist-tags"][f]],c.time=D}else if(f){if(!c.versions[f]){let d=Object.keys(c.versions);if(f=Ph.default.maxSatisfying(d,f),!f)throw l}let D=c.time;if(c=c.versions[f],c.time=D,!c)throw l}return c}async function jo(t,e){let{version:r}=await Lo(t.toLowerCase(),e);return r}a();import jh from"node:process";var Lh=jh.env.npm_package_json,ms=jh.env.npm_config_user_agent,tb=!!(ms&&ms.startsWith("npm")),rb=!!(Lh&&Lh.endsWith("package.json")),nb=tb||rb,sb=!!(ms&&ms.startsWith("yarn")),$h=nb||sb;var Yd=ae(Zh(),1);a();import Ho from"node:path";import{fileURLToPath as Db}from"node:url";var hb=()=>{let t=Ho.dirname(Db(import.meta.url)),r=process.platform==="win32"?Ho.join("Yarn","config","global"):Ho.join(".config","yarn","global");return t.includes(r)},ed=hb;a();import db from"node:process";import pb from"node:path";import mb from"node:fs";function Go(t=db.cwd()){return mb.existsSync(pb.resolve(t,"yarn.lock"))}a();import bs from"node:process";a();a();a();function zo({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var gb=zo();function en(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(gb,"")}var id=ae(rd(),1),od=ae(sd(),1);function de(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=en(t),t.length===0))return 0;t=t.replace((0,od.default)()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let s of t){let i=s.codePointAt(0);if(i<=31||i>=127&&i<=159||i>=768&&i<=879)continue;switch(id.default.eastAsianWidth(s)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}a();function ys(t){let e=0;for(let r of t.split(`
38
+ `))e=Math.max(e,de(r));return e}var Ld=ae(Yo(),1);a();var yb=/[\p{Lu}]/u,Cb=/[\p{Ll}]/u,cd=/^[\p{Lu}](?![\p{Lu}])/gu,Dd=/([\p{Alpha}\p{N}_]|$)/u,Ko=/[_.\- ]+/,Fb=new RegExp("^"+Ko.source),ld=new RegExp(Ko.source+Dd.source,"gu"),fd=new RegExp("\\d+"+Dd.source,"gu"),bb=(t,e,r,n)=>{let s=!1,i=!1,o=!1,u=!1;for(let c=0;c<t.length;c++){let f=t[c];u=c>2?t[c-3]==="-":!0,s&&yb.test(f)?(t=t.slice(0,c)+"-"+t.slice(c),s=!1,o=i,i=!0,c++):i&&o&&Cb.test(f)&&(!u||n)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),o=i,i=!1,s=!0):(s=e(f)===f&&r(f)!==f,o=i,i=r(f)===f&&e(f)!==f)}return t},xb=(t,e)=>(cd.lastIndex=0,t.replace(cd,r=>e(r))),_b=(t,e)=>(ld.lastIndex=0,fd.lastIndex=0,t.replace(ld,(r,n)=>e(n)).replace(fd,r=>e(r)));function Xo(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(i=>i.trim()).filter(i=>i.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(e.locale),n=e.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(e.locale);return t.length===1?Ko.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=bb(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(Fb,""),t=e.preserveConsecutiveUppercase?xb(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),_b(t,n))}var ru=ae(_d(),1);a();a();var wd=(t=0)=>e=>`\x1B[${e+t}m`,Ad=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Sd=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ne={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},fO=Object.keys(ne.modifier),Tb=Object.keys(ne.color),Ib=Object.keys(ne.bgColor),DO=[...Tb,...Ib];function Pb(){let t=new Map;for(let[e,r]of Object.entries(ne)){for(let[n,s]of Object.entries(r))ne[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=ne[n],t.set(s[0],s[1]);Object.defineProperty(ne,e,{value:r,enumerable:!1})}return Object.defineProperty(ne,"codes",{value:t,enumerable:!1}),ne.color.close="\x1B[39m",ne.bgColor.close="\x1B[49m",ne.color.ansi=wd(),ne.color.ansi256=Ad(),ne.color.ansi16m=Sd(),ne.bgColor.ansi=wd(10),ne.bgColor.ansi256=Ad(10),ne.bgColor.ansi16m=Sd(10),Object.defineProperties(ne,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>ne.rgbToAnsi256(...ne.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>ne.ansi256ToAnsi(ne.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ne.ansi256ToAnsi(ne.hexToAnsi256(e)),enumerable:!1}}),ne}var Nb=Pb(),vd=Nb;var Cs=new Set(["\x1B","\x9B"]),Lb=39,eu="\x07",Rd="[",jb="]",Td="m",tu=`${jb}8;;`,Od=t=>`${Cs.values().next().value}${Rd}${t}${Td}`,Bd=t=>`${Cs.values().next().value}${tu}${t}${eu}`,$b=t=>t.split(" ").map(e=>de(e)),Zo=(t,e,r)=>{let n=[...e],s=!1,i=!1,o=de(en(t[t.length-1]));for(let[u,c]of n.entries()){let f=de(c);if(o+f<=r?t[t.length-1]+=c:(t.push(c),o=0),Cs.has(c)&&(s=!0,i=n.slice(u+1).join("").startsWith(tu)),s){i?c===eu&&(s=!1,i=!1):c===Td&&(s=!1);continue}o+=f,o===r&&u<n.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},kb=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(de(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},qb=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",s,i,o=$b(t),u=[""];for(let[f,l]of t.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u[u.length-1].trimStart());let D=de(u[u.length-1]);if(f!==0&&(D>=e&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),D=0),(D>0||r.trim===!1)&&(u[u.length-1]+=" ",D++)),r.hard&&o[f]>e){let d=e-D,h=1+Math.floor((o[f]-d-1)/e);Math.floor((o[f]-1)/e)<h&&u.push(""),Zo(u,l,e);continue}if(D+o[f]>e&&D>0&&o[f]>0){if(r.wordWrap===!1&&D<e){Zo(u,l,e);continue}u.push("")}if(D+o[f]>e&&r.wordWrap===!1){Zo(u,l,e);continue}u[u.length-1]+=l}r.trim!==!1&&(u=u.map(f=>kb(f)));let c=[...u.join(`
39
+ `)];for(let[f,l]of c.entries()){if(n+=l,Cs.has(l)){let{groups:d}=new RegExp(`(?:\\${Rd}(?<code>\\d+)m|\\${tu}(?<uri>.*)${eu})`).exec(c.slice(f).join(""))||{groups:{}};if(d.code!==void 0){let h=Number.parseFloat(d.code);s=h===Lb?void 0:h}else d.uri!==void 0&&(i=d.uri.length===0?void 0:d.uri)}let D=vd.codes.get(Number(s));c[f+1]===`
40
+ `?(i&&(n+=Bd("")),s&&D&&(n+=Od(D))):l===`
41
+ `&&(s&&D&&(n+=Od(s)),i&&(n+=Bd(i)))}return n};function Fs(t,e,r){return String(t).normalize().replace(/\r\n/g,`
42
+ `).split(`
43
+ `).map(n=>qb(n,e,r)).join(`
44
+ `)}var Kb=ae(Yo(),1),st=`
45
+ `,Ae=" ",tn="none",jd=()=>{let{env:t,stdout:e,stderr:r}=bs;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},Id=t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},rn=t=>t===tn?0:2,Ub=t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===tn){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=Ld.default[t],!r)throw new TypeError(`Invalid border style: ${t}`)}else{typeof t?.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t?.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(let n of e)if(t[n]===null||typeof t[n]!="string")throw new TypeError(`Invalid border style: ${n}`);r=t}return r},Mb=(t,e,r)=>{let n="",s=de(t);switch(r){case"left":{n=t+e.slice(s);break}case"right":{n=e.slice(s)+t;break}default:{e=e.slice(s),e.length%2===1?(e=e.slice(Math.floor(e.length/2)),n=e.slice(1)+t+e):(e=e.slice(e.length/2),n=e+t+e);break}}return n},Hb=(t,{padding:e,width:r,textAlignment:n,height:s})=>{t=(0,ru.default)(t,{align:n});let i=t.split(st),o=ys(t),u=r-e.left-e.right;if(o>u){let l=[];for(let D of i){let d=Fs(D,u,{hard:!0}),C=(0,ru.default)(d,{align:n}).split(`
46
+ `),y=Math.max(...C.map(x=>de(x)));for(let x of C){let F;switch(n){case"center":{F=Ae.repeat((u-y)/2)+x;break}case"right":{F=Ae.repeat(u-y)+x;break}default:{F=x;break}}l.push(F)}}i=l}n==="center"&&o<u?i=i.map(l=>Ae.repeat((u-o)/2)+l):n==="right"&&o<u&&(i=i.map(l=>Ae.repeat(u-o)+l));let c=Ae.repeat(e.left),f=Ae.repeat(e.right);return i=i.map(l=>c+l+f),i=i.map(l=>{if(r-de(l)>0)switch(n){case"center":return l+Ae.repeat(r-de(l));case"right":return l+Ae.repeat(r-de(l));default:return l+Ae.repeat(r-de(l))}return l}),e.top>0&&(i=[...Array.from({length:e.top}).fill(Ae.repeat(r)),...i]),e.bottom>0&&(i=[...i,...Array.from({length:e.bottom}).fill(Ae.repeat(r))]),s&&i.length>s?i=i.slice(0,s):s&&i.length<s&&(i=[...i,...Array.from({length:s-i.length}).fill(Ae.repeat(r))]),i.join(st)},Gb=(t,e,r)=>{let n=l=>{let D=r.borderColor?Vb(r.borderColor)(l):l;return r.dimBorder?ce.dim(D):D},s=l=>r.backgroundColor?Yb(r.backgroundColor)(l):l,i=Ub(r.borderStyle),o=jd(),u=Ae.repeat(r.margin.left);if(r.float==="center"){let l=Math.max((o-e-rn(r.borderStyle))/2,0);u=Ae.repeat(l)}else if(r.float==="right"){let l=Math.max(o-e-r.margin.right-rn(r.borderStyle),0);u=Ae.repeat(l)}let c="";r.margin.top&&(c+=st.repeat(r.margin.top)),(r.borderStyle!==tn||r.title)&&(c+=n(u+i.topLeft+(r.title?Mb(r.title,i.top.repeat(e),r.titleAlignment):i.top.repeat(e))+i.topRight)+st);let f=t.split(st);return c+=f.map(l=>u+n(i.left)+s(l)+n(i.right)).join(st),r.borderStyle!==tn&&(c+=st+n(u+i.bottomLeft+i.bottom.repeat(e)+i.bottomRight)),r.margin.bottom&&(c+=st.repeat(r.margin.bottom)),c},zb=t=>{if(t.fullscreen&&bs?.stdout){let e=[bs.stdout.columns,bs.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||(t.width=e[0]),t.height||(t.height=e[1])}return t.width&&(t.width=Math.max(1,t.width-rn(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-rn(t.borderStyle))),t},Pd=(t,e)=>e===tn?t:` ${t} `,Wb=(t,e)=>{e=zb(e);let r=e.width!==void 0,n=jd(),s=rn(e.borderStyle),i=n-e.margin.left-e.margin.right-s,o=ys(Fs(t,n-s,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&(e.title=Pd(e.title,e.borderStyle))):e.title&&(e.title=e.title.slice(0,Math.max(0,i-2)),e.title&&(e.title=Pd(e.title,e.borderStyle),de(e.title)>o&&(e.width=de(e.title)))),e.width=e.width?e.width:o,!r){if(e.margin.left&&e.margin.right&&e.width>i){let c=(n-e.width-s)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*c)),e.margin.right=Math.max(0,Math.floor(e.margin.right*c))}e.width=Math.min(e.width,n-s-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},nu=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),Nd=t=>typeof t=="string"&&(ce[t]??nu(t)),Vb=t=>nu(t)?ce.hex(t):ce[t],Yb=t=>nu(t)?ce.bgHex(t):ce[Xo(["bg",t])];function xs(t,e){if(e={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...e},e.align&&(e.textAlignment=e.align),e.borderColor&&!Nd(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!Nd(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=Id(e.padding),e.margin=Id(e.margin),e=Wb(t,e),t=Hb(t,e),Gb(t,e.width,e)}var Kd=ae(Hd(),1);a();a();var Gd=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function zd(t,...e){if(typeof t=="string")return Gd(t);let r=t[0];for(let[n,s]of e.entries())r=r+Gd(String(s))+t[n+1];return r}var su=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}};function iu(t,e,{ignoreMissing:r=!1,transform:n=({value:s})=>s}={}){if(typeof t!="string")throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof t}\``);if(typeof e!="object")throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof e}\``);let s=(c,f)=>{let l=e;for(let d of f.split("."))l=l?l[d]:void 0;let D=n({value:l,key:f});if(D===void 0){if(r)return c;throw new su(f)}return String(D)},i=c=>(...f)=>zd(c(...f)),o=/{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;o.test(t)&&(t=t.replace(o,i(s)));let u=/{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi;return t.replace(u,s)}var Zb=Wd.dirname(Qb(import.meta.url)),ex=1e3*60*60*24,nn=class{config;update;_packageName;_shouldNotifyInNpmScript;#t;#e;#n;#r;constructor(e={}){if(this.#t=e,e.pkg=e.pkg||{},e.distTag=e.distTag||"latest",e.pkg={name:e.pkg.name||e.packageName,version:e.pkg.version||e.packageVersion},!e.pkg.name||!e.pkg.version)throw new Error("pkg.name and pkg.version required");if(this._packageName=e.pkg.name,this.#e=e.pkg.version,this.#n=typeof e.updateCheckInterval=="number"?e.updateCheckInterval:ex,this.#r="NO_UPDATE_NOTIFIER"in Ve.env||Ve.env.NODE_ENV==="test"||Ve.argv.includes("--no-update-notifier")||Kd.default,this._shouldNotifyInNpmScript=e.shouldNotifyInNpmScript,!this.#r)try{this.config=new hr(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{let r=ce.yellow(ou(" %s update check failed ",e.pkg.name))+ou(`
47
+ Try running with %s or get access `,ce.cyan("sudo"))+`
48
+ to the local update config store via
49
+ `+ce.cyan(ou(" sudo chown -R $USER:$(id -gn $USER) %s ",It));Ve.on("exit",()=>{console.error(xs(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#r||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#e,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#n)&&Jb(Ve.execPath,[Wd.join(Zb,"check.js"),JSON.stringify(this.#t)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){let{distTag:e}=this.#t,r=await jo(this._packageName,{version:e});return{latest:r,current:this.#e,type:Ei(this.#e,r)||e,name:this._packageName}}notify(e){let r=!this._shouldNotifyInNpmScript&&$h;if(!Ve.stdout.isTTY||r||!this.update||!Vd.default.gt(this.update.latest,this.update.current))return this;e={isGlobal:Yd.default,isYarnGlobal:ed(),...e};let n;e.isYarnGlobal?n=`yarn global add ${this._packageName}`:e.isGlobal?n=`npm i -g ${this._packageName}`:Go()?n=`yarn add ${this._packageName}`:n=`npm i ${this._packageName}`;let s="Update available "+ce.dim("{currentVersion}")+ce.reset(" \u2192 ")+ce.green("{latestVersion}")+`
50
+ Run `+ce.cyan("{updateCommand}")+" to update",i=e.message||s;e.boxenOptions=e.boxenOptions||{padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=xs(iu(i,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),e.boxenOptions);return e.defer===!1?console.error(o):(Ve.on("exit",()=>{console.error(o)}),Ve.on("SIGINT",()=>{console.error(""),Ve.exit()})),this}};function uu(t){let e=new nn(t);return e.check(),e}var _s={name:"@terai/dev",version:"0.0.1",description:"The user-facing package for Terai",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",private:!1,author:"Hugo Corta <corta.hugo@gmail.com>",bin:{koi:"bin.js",terai:"bin.js"},scripts:{dev:"tsup --format=esm,cjs --no-dts --watch",build:"tsup"},files:["bin.js","dist"],sideEffects:!1,publishConfig:{access:"public"},exports:{".":{types:"./dist/index.d.ts",require:"./dist/index.js",import:"./dist/index.mjs"}},dependencies:{"@inquirer/prompts":"^3","@terai/extractor":"workspace:*","@terai/runtime":"workspace:*","@terai/translator":"workspace:*","@terai/utils":"workspace:*",cac:"^6",dotenv:"^1",inquirer:"^9",kleur:"^4","perfect-debounce":"^1","preferred-pm":"^3"},devDependencies:{"@terai/generator":"workspace:*","@terai/logger":"workspace:*","@terai/types":"workspace:*","@types/update-notifier":"^6","update-notifier":"^6"}};a();import{findConfig as fx,setupConfig as Dx,setupTemplate as hx}from"@terai/runtime";import{input as Zd,select as dx}from"@inquirer/prompts";a();function ws(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function Xd(){return typeof WeakMap<"u"?new WeakMap:rx()}function rx(){return{add:ws,delete:ws,get:ws,set:ws,has:function(t){return!1}}}var nx=Object.prototype.hasOwnProperty,cu=function(t,e){return nx.call(t,e)};function au(t,e){for(var r in e)cu(e,r)&&(t[r]=e[r]);return t}var sx=/^[ \t]*(?:\r\n|\r|\n)/,ix=/(?:\r\n|\r|\n)[ \t]*$/,ox=/^(?:[\r\n]|$)/,ux=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,ax=/^[ \t]*[\r\n][ \t\r\n]*$/;function Jd(t,e,r){var n=0,s=t[0].match(ux);s&&(n=s[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",o=new RegExp(i,"g");e&&(t=t.slice(1));var u=r.newline,c=r.trimLeadingNewline,f=r.trimTrailingNewline,l=typeof u=="string",D=t.length,d=t.map(function(h,C){return h=h.replace(o,"$1"),C===0&&c&&(h=h.replace(sx,"")),C===D-1&&f&&(h=h.replace(ix,"")),l&&(h=h.replace(/\r\n|\n|\r/g,function(y){return u})),h});return d}function cx(t,e){for(var r="",n=0,s=t.length;n<s;n++)r+=t[n],n<s-1&&(r+=e[n]);return r}function lx(t){return cu(t,"raw")&&cu(t,"length")}function Qd(t){var e=Xd(),r=Xd();function n(i){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];if(lx(i)){var c=i,f=(o[0]===n||o[0]===Ye)&&ax.test(c[0])&&ox.test(c[1]),l=f?r:e,D=l.get(c);if(D||(D=Jd(c,f,t),l.set(c,D)),o.length===0)return D[0];var d=cx(D,f?o.slice(1):o);return d}else return Qd(au(au({},t),i||{}))}var s=au(n,{string:function(i){return Jd([i],!1,t)[0]}});return s}var Ye=Qd({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=Ye,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.default=Ye,Ye.outdent=Ye}catch{}import px from"preferred-pm";function ep(t,e){return t.command("init","Initialize config file").option("-f, --force","Force overwrite existing config files").option("--cwd <cwd>","Current working directory",{default:e}).action(mx)}async function mx({cwd:t,force:e}){K.heading("init","Initialize config file");let r=fx({cwd:t}),s=(await px(t))?.name??"npm",i=s==="npm"?"npm run":s;if(r&&!e)return K.log(Ye`
51
+ It looks like you already have terai created.
52
+ You can now run ${K.colors.cyan(`'${i} terai extract --watch'`)}
53
+ `);let o=await Zd({message:"What locale do you use for development?",default:"en"}),u=await Zd({message:"Where do you want to place your generated files?",default:"./locale-system"}),c=await dx({message:"Would you like to use any of these templates? (recommended)",choices:[{name:"No",value:null},{name:"Next",value:"next"},{name:"Vite",value:"vite"}]}),f=K.time.success();await Dx({cwd:t,projectLocale:o,outDir:u}),c&&await hx({cwd:t,outDir:u,framework:c}),f("Config file created"),K.log("\u{1F680} You are set up to start using terai! Thanks for choosing it.")}a();import{debounce as Ex}from"perfect-debounce";import{extract as yx}from"@terai/extractor";a();import{runtime as lu}from"@terai/runtime";import{stringify as gx}from"@terai/utils";async function As({dictionaries:t,locale:e,cwd:r,outDir:n}){let s=lu.path.resolve(r,n,e),i=[];for(let o in t){let u=lu.path.resolve(s,o+".json"),c=t[o],f=gx(c);lu.fs.write(u,f),i.push(f)}return i}import{loadConfig as Cx,runtime as it}from"@terai/runtime";import{convertExtractedMessagesToDictionary as Fx,stringify as bx,groupDictionaryByChunks as xx}from"@terai/utils";function tp(t,e){return t.command("extract","Statically extract messages from your project").option("-w, --watch","Watch files and rebuild").option("--cwd <cwd>","Current working directory",{default:e}).action(_x)}async function _x(t){K.heading("extract","Statically extract messages from your project");let e=K.time.success(),r=await Cx(t),n=it.fs.glob({...r,cwd:t.cwd}),s=it.path.resolve(t.cwd,r.outDir),i=it.path.resolve(s,r.projectLocale),o=it.path.resolve(s,".terai","locale-manifest.json");K.info("Scan:","Processing files...");async function u(f=n){let l=await yx({...r,filesPaths:f,cwd:t.cwd}),D=Fx(l),d={messages:l},h=xx(D,d,r.projectLocale);return it.fs.remove(it.path.resolve(i)),await As({...r,dictionaries:h,locale:r.projectLocale,cwd:t.cwd}),it.fs.write(o,bx(d)),Object.keys(D).length}K.info("Extraction:","Extracting messages...");let c=await u();e(`Extracted ${c} messages`),t.watch&&(K.log(""),K.info("Watch:",`Watching files for changes...
54
+ `),it.fs.watch({...r,...t}).on("change",Ex(async()=>{let l=K.time.success();K.info("Extraction:","Files changed, processing messages...");let D=await u();l(`Extracted ${D} messages`),K.log("")})))}a();import{loadConfig as wx,runtime as ve}from"@terai/runtime";import{translate as Ax}from"@terai/translator";import{merge as Sx,stringify as vx,groupDictionaryByChunks as Ox}from"@terai/utils";function rp(t,e){return t.command("translate","Translate messages from your project").option("--cwd <cwd>","Current working directory",{default:e}).action(Bx)}async function Bx({cwd:t}){K.heading("translate","Translate messages from your project");let e=K.time.success(),r=await wx({cwd:t}),n=ve.path.resolve(t,r.outDir),s=ve.path.resolve(t,r.outDir,".terai"),i=ve.path.resolve(s,"locale-manifest.json");if(!ve.fs.exists(i))return K.error("translate",`No locale-manifest.json found in ${s}. Please run "extract" first.`);let u=JSON.parse(ve.fs.readFile(i)),c=0,f=0;if(await Promise.all(r.outLocales.map(async l=>{try{let D={},d={},h=ve.path.resolve(n,l),C=ve.path.resolve(s,"cache",`${l}.cache.json`),x=ve.fs.exists(C)?JSON.parse(ve.fs.readFile(C)):{},F=0,B=0;for(let S in u.messages){let{value:$,chunksIds:W}=u.messages[S],q=W.length?W:[l];for(let pe of q){let _=ve.path.resolve(h,`${pe}.json`),M=(ve.fs.exists(_)?JSON.parse(ve.fs.readFile(_)):{})[S]??x[S];M?(D[S]=M,x[S]=M,F++):(d[S]=$,B++)}}if(B>0){let S=await Ax({...r,dictionary:d,locale:l});D=Sx(S,D)}x={...x,...D},ve.fs.remove(h);let w=Ox(D,u,l);await As({...r,dictionaries:w,locale:l,cwd:t}),ve.fs.write(C,vx(x)),c+=B,f+=F,K.info(`Locale ${l.toUpperCase()}:`,`${B} new messages translated, ${F} recovered from cache`)}catch(D){D instanceof Error&&K.error(`${l} translation:`,`Error translating to ${l}: ${D.message}
55
+ `)}})),!c)return e("Everything up-to-date");e(`Translated ${c} messages, ${f} read from cache`)}async function np(){uu({pkg:_s,distTag:"latest"}).notify(),K.log(`${K.colors.bold("terai")} ${K.colors.cyan(`v${_s.version}`)}`);let t=Tx.cwd(),e=Rx("terai");ep(e,t),tp(e,t),rp(e,t),e.help(),e.version(_s.version),e.parse(process.argv,{run:!1});try{await e.runMatchedCommand()}catch(r){r instanceof Error&&K.error(r.message),process.exit(1)}}import{isMainThread as Ix,parentPort as sp}from"worker_threads";np().catch(t=>{t.loc&&console.error(ce.bold(ce.red(`Error parsing: ${t.loc.file}:${t.loc.line}:${t.loc.column}`))),t.frame?(console.error(ce.red(t.message)),console.error(ce.dim(t.frame))):console.error(ce.red(t.message)),process.exitCode=1,!Ix&&sp&&sp.postMessage("error")});
56
+ /*! Bundled license information:
57
+
58
+ imurmurhash/imurmurhash.js:
59
+ (**
60
+ * @preserve
61
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
62
+ *
63
+ * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
64
+ * @see http://github.com/homebrewing/brauhaus-diff
65
+ * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
66
+ * @see http://github.com/garycourt/murmurhash-js
67
+ * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
68
+ * @see http://sites.google.com/site/murmurhash/
69
+ *)
70
+
71
+ deep-extend/lib/deep-extend.js:
72
+ (*!
73
+ * @description Recursive object extending
74
+ * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
75
+ * @license MIT
76
+ *
77
+ * The MIT License (MIT)
78
+ *
79
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
80
+ *
81
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
82
+ * this software and associated documentation files (the "Software"), to deal in
83
+ * the Software without restriction, including without limitation the rights to
84
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
85
+ * the Software, and to permit persons to whom the Software is furnished to do so,
86
+ * subject to the following conditions:
87
+ *
88
+ * The above copyright notice and this permission notice shall be included in all
89
+ * copies or substantial portions of the Software.
90
+ *
91
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
93
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
94
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
95
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
96
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
97
+ *)
98
+ */
99
+ //# sourceMappingURL=cli.default.mjs.map