@gadgetinc/ggt 1.4.0 → 1.4.2

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 (76) hide show
  1. package/dist/{add-FTY6SEGW.js → add-Q2YM34TO.js} +2 -2
  2. package/dist/chunk-56W5U2JG.js +2 -0
  3. package/dist/{chunk-IOJ2LNUK.js.map → chunk-56W5U2JG.js.map} +4 -4
  4. package/dist/{chunk-VF4CDM7R.js → chunk-BWIVLBZY.js} +2 -2
  5. package/dist/{chunk-ZZIIWV6T.js → chunk-GKAC6HNS.js} +2 -2
  6. package/dist/{chunk-KXSKHE3X.js → chunk-HVJWUXJL.js} +28 -28
  7. package/dist/{chunk-KXSKHE3X.js.map → chunk-HVJWUXJL.js.map} +4 -4
  8. package/dist/{chunk-LMY5YGE5.js → chunk-JOWMHVPF.js} +2 -2
  9. package/dist/chunk-JOWMHVPF.js.map +7 -0
  10. package/dist/{chunk-O3D5GVFK.js → chunk-KP35JQJ7.js} +2 -2
  11. package/dist/{chunk-DKP76YB2.js → chunk-L4OG4HIV.js} +2 -2
  12. package/dist/{chunk-FLX4WQHD.js → chunk-M5HB5SEG.js} +2 -2
  13. package/dist/chunk-O63J4YN5.js +2 -0
  14. package/dist/{chunk-YB7NQA2X.js → chunk-OTYPO33S.js} +2 -2
  15. package/dist/chunk-P7E7PAMQ.js +2 -0
  16. package/dist/{chunk-B2QVXD4S.js.map → chunk-P7E7PAMQ.js.map} +4 -4
  17. package/dist/{chunk-SWVUOPJX.js → chunk-PRAA2FG3.js} +2 -2
  18. package/dist/chunk-YINVPQ2V.js +6 -0
  19. package/dist/chunk-YINVPQ2V.js.map +7 -0
  20. package/dist/chunk-ZCRXH55K.js +2 -0
  21. package/dist/chunk-ZCRXH55K.js.map +7 -0
  22. package/dist/chunk-ZN6HRN6U.js +50 -0
  23. package/dist/chunk-ZN6HRN6U.js.map +7 -0
  24. package/dist/{deploy-PQZW3X7G.js → deploy-T5ZUHHLZ.js} +2 -2
  25. package/dist/{dev-27YLA4GG.js → dev-5CVDVGE3.js} +2 -2
  26. package/dist/esm-BEXWGPJL.js +37 -0
  27. package/dist/esm-BEXWGPJL.js.map +7 -0
  28. package/dist/list-BV7QOWA2.js +11 -0
  29. package/dist/list-BV7QOWA2.js.map +7 -0
  30. package/dist/login-M6YPWB3H.js +2 -0
  31. package/dist/logout-QLW45MMK.js +7 -0
  32. package/dist/main.js +7 -7
  33. package/dist/main.js.map +3 -3
  34. package/dist/{open-QPMDV7ZL.js → open-TKGHV5HA.js} +2 -2
  35. package/dist/{pull-3DUIUAIP.js → pull-RRR7ISUG.js} +2 -2
  36. package/dist/push-KUORLNK6.js +2 -0
  37. package/dist/{status-N3VF5MBE.js → status-BKCHGWJO.js} +2 -2
  38. package/dist/{version-EGM7PLFX.js → version-LUMBTKD4.js} +2 -2
  39. package/dist/{whoami-ES6XN3RI.js → whoami-ONJCZDTX.js} +2 -2
  40. package/package.json +24 -22
  41. package/dist/chunk-6BALPDKR.js +0 -2
  42. package/dist/chunk-6BALPDKR.js.map +0 -7
  43. package/dist/chunk-B2QVXD4S.js +0 -2
  44. package/dist/chunk-IOJ2LNUK.js +0 -2
  45. package/dist/chunk-LMY5YGE5.js.map +0 -7
  46. package/dist/chunk-P5UB5UJ6.js +0 -6
  47. package/dist/chunk-P5UB5UJ6.js.map +0 -7
  48. package/dist/chunk-RLMEA3WE.js +0 -2
  49. package/dist/chunk-WCP5LTNQ.js +0 -50
  50. package/dist/chunk-WCP5LTNQ.js.map +0 -7
  51. package/dist/esm-RPCDY7LG.js +0 -36
  52. package/dist/esm-RPCDY7LG.js.map +0 -7
  53. package/dist/list-OTGSESA6.js +0 -11
  54. package/dist/list-OTGSESA6.js.map +0 -7
  55. package/dist/login-YOXXXAJN.js +0 -2
  56. package/dist/logout-5YOHPXGR.js +0 -7
  57. package/dist/push-RS6QHKDD.js +0 -2
  58. /package/dist/{add-FTY6SEGW.js.map → add-Q2YM34TO.js.map} +0 -0
  59. /package/dist/{chunk-VF4CDM7R.js.map → chunk-BWIVLBZY.js.map} +0 -0
  60. /package/dist/{chunk-ZZIIWV6T.js.map → chunk-GKAC6HNS.js.map} +0 -0
  61. /package/dist/{chunk-O3D5GVFK.js.map → chunk-KP35JQJ7.js.map} +0 -0
  62. /package/dist/{chunk-DKP76YB2.js.map → chunk-L4OG4HIV.js.map} +0 -0
  63. /package/dist/{chunk-FLX4WQHD.js.map → chunk-M5HB5SEG.js.map} +0 -0
  64. /package/dist/{chunk-RLMEA3WE.js.map → chunk-O63J4YN5.js.map} +0 -0
  65. /package/dist/{chunk-YB7NQA2X.js.map → chunk-OTYPO33S.js.map} +0 -0
  66. /package/dist/{chunk-SWVUOPJX.js.map → chunk-PRAA2FG3.js.map} +0 -0
  67. /package/dist/{deploy-PQZW3X7G.js.map → deploy-T5ZUHHLZ.js.map} +0 -0
  68. /package/dist/{dev-27YLA4GG.js.map → dev-5CVDVGE3.js.map} +0 -0
  69. /package/dist/{login-YOXXXAJN.js.map → login-M6YPWB3H.js.map} +0 -0
  70. /package/dist/{logout-5YOHPXGR.js.map → logout-QLW45MMK.js.map} +0 -0
  71. /package/dist/{open-QPMDV7ZL.js.map → open-TKGHV5HA.js.map} +0 -0
  72. /package/dist/{pull-3DUIUAIP.js.map → pull-RRR7ISUG.js.map} +0 -0
  73. /package/dist/{push-RS6QHKDD.js.map → push-KUORLNK6.js.map} +0 -0
  74. /package/dist/{status-N3VF5MBE.js.map → status-BKCHGWJO.js.map} +0 -0
  75. /package/dist/{version-EGM7PLFX.js.map → version-LUMBTKD4.js.map} +0 -0
  76. /package/dist/{whoami-ES6XN3RI.js.map → whoami-ONJCZDTX.js.map} +0 -0
@@ -1,22 +1,22 @@
1
- import{a as o,b as L,d as w,f as we,h as l,p as bd,q as wd}from"./chunk-IOJ2LNUK.js";var oe=w(Ls=>{"use strict";l();Ls.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{e.push((s,i)=>s!=null?n(s):r(i)),t.apply(this,e)})},"name",{value:t.name})};Ls.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(n=>r(null,n),r)},"name",{value:t.name})}});var Eu=w((dw,Cu)=>{l();var et=L("constants"),sp=process.cwd,yn=null,ip=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return yn||(yn=sp.call(process)),yn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Os=process.chdir,process.chdir=function(t){yn=null,Os.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Os));var Os;Cu.exports=op;function op(t){et.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=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(h,g,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(h,g,m,y){y&&process.nextTick(y)},t.lchownSync=function(){}),ip==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(h){function g(m,y,F){var D=Date.now(),E=0;h(m,y,o(function C(T){if(T&&(T.code==="EACCES"||T.code==="EPERM"||T.code==="EBUSY")&&Date.now()-D<6e4){setTimeout(function(){t.stat(y,function(S,P){S&&S.code==="ENOENT"?h(m,y,C):F(T)})},E),E<100&&(E+=10);return}F&&F(T)},"CB"))}return o(g,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(g,h),g}(t.rename)),t.read=typeof t.read!="function"?t.read:function(h){function g(m,y,F,D,E,C){var T;if(C&&typeof C=="function"){var S=0;T=o(function(P,j,X){if(P&&P.code==="EAGAIN"&&S<10)return S++,h.call(t,m,y,F,D,E,T);C.apply(this,arguments)},"callback")}return h.call(t,m,y,F,D,E,T)}return o(g,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(g,h),g}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(h){return function(g,m,y,F,D){for(var E=0;;)try{return h.call(t,g,m,y,F,D)}catch(C){if(C.code==="EAGAIN"&&E<10){E++;continue}throw C}}}(t.readSync);function e(h){h.lchmod=function(g,m,y){h.open(g,et.O_WRONLY|et.O_SYMLINK,m,function(F,D){if(F){y&&y(F);return}h.fchmod(D,m,function(E){h.close(D,function(C){y&&y(E||C)})})})},h.lchmodSync=function(g,m){var y=h.openSync(g,et.O_WRONLY|et.O_SYMLINK,m),F=!0,D;try{D=h.fchmodSync(y,m),F=!1}finally{if(F)try{h.closeSync(y)}catch{}else h.closeSync(y)}return D}}o(e,"patchLchmod");function r(h){et.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(g,m,y,F){h.open(g,et.O_SYMLINK,function(D,E){if(D){F&&F(D);return}h.futimes(E,m,y,function(C){h.close(E,function(T){F&&F(C||T)})})})},h.lutimesSync=function(g,m,y){var F=h.openSync(g,et.O_SYMLINK),D,E=!0;try{D=h.futimesSync(F,m,y),E=!1}finally{if(E)try{h.closeSync(F)}catch{}else h.closeSync(F)}return D}):h.futimes&&(h.lutimes=function(g,m,y,F){F&&process.nextTick(F)},h.lutimesSync=function(){})}o(r,"patchLutimes");function n(h){return h&&function(g,m,y){return h.call(t,g,m,function(F){f(F)&&(F=null),y&&y.apply(this,arguments)})}}o(n,"chmodFix");function s(h){return h&&function(g,m){try{return h.call(t,g,m)}catch(y){if(!f(y))throw y}}}o(s,"chmodFixSync");function i(h){return h&&function(g,m,y,F){return h.call(t,g,m,y,function(D){f(D)&&(D=null),F&&F.apply(this,arguments)})}}o(i,"chownFix");function u(h){return h&&function(g,m,y){try{return h.call(t,g,m,y)}catch(F){if(!f(F))throw F}}}o(u,"chownFixSync");function a(h){return h&&function(g,m,y){typeof m=="function"&&(y=m,m=null);function F(D,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),y&&y.apply(this,arguments)}return o(F,"callback"),m?h.call(t,g,m,F):h.call(t,g,F)}}o(a,"statFix");function c(h){return h&&function(g,m){var y=m?h.call(t,g,m):h.call(t,g);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}o(c,"statFixSync");function f(h){if(!h||h.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(h.code==="EINVAL"||h.code==="EPERM"))}o(f,"chownErOk")}o(op,"patch")});var _u=w((mw,wu)=>{l();var bu=L("stream").Stream;wu.exports=up;function up(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);bu.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 u=Object.keys(s),a=0,c=u.length;a<c;a++){var f=u[a];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(h,g){if(h){i.emit("error",h),i.readable=!1;return}i.fd=g,i.emit("open",g),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);bu.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),u=0,a=i.length;u<a;u++){var c=i[u];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())}}o(up,"legacy")});var Su=w((Fw,xu)=>{"use strict";l();xu.exports=cp;var ap=Object.getPrototypeOf||function(t){return t.__proto__};function cp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ap(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o(cp,"clone")});var Xt=w((bw,Ns)=>{l();var ee=L("fs"),lp=Eu(),fp=_u(),hp=Su(),gn=L("util"),fe,Cn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(fe=Symbol.for("graceful-fs.queue"),Cn=Symbol.for("graceful-fs.previous")):(fe="___graceful-fs.queue",Cn="___graceful-fs.previous");function dp(){}o(dp,"noop");function Tu(t,e){Object.defineProperty(t,fe,{get:o(function(){return e},"get")})}o(Tu,"publishQueue");var kt=dp;gn.debuglog?kt=gn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(kt=o(function(){var t=gn.format.apply(gn,arguments);t="GFS4: "+t.split(/\n/).join(`
2
- GFS4: `),console.error(t)},"debug"));ee[fe]||(vu=global[fe]||[],Tu(ee,vu),ee.close=function(t){function e(r,n){return t.call(ee,r,function(s){s||Au(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,Cn,{value:t}),e}(ee.close),ee.closeSync=function(t){function e(r){t.apply(ee,arguments),Au()}return o(e,"closeSync"),Object.defineProperty(e,Cn,{value:t}),e}(ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kt(ee[fe]),L("assert").equal(ee[fe].length,0)}));var vu;global[fe]||Tu(global,ee[fe]);Ns.exports=Bs(hp(ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ee.__patched&&(Ns.exports=Bs(ee),ee.__patched=!0);function Bs(t){lp(t),t.gracefulify=Bs,t.createReadStream=j,t.createWriteStream=X;var e=t.readFile;t.readFile=r;function r(O,M,G){return typeof M=="function"&&(G=M,M=null),ae(O,M,G);function ae(ce,ie,Q,te){return e(ce,ie,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Kt([ae,[ce,ie,Q],W,te||Date.now(),Date.now()]):typeof Q=="function"&&Q.apply(this,arguments)})}o(ae,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=s;function s(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return n(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$writeFile")}o(s,"writeFile");var i=t.appendFile;i&&(t.appendFile=u);function u(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return i(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$appendFile")}o(u,"appendFile");var a=t.copyFile;a&&(t.copyFile=c);function c(O,M,G,ae){return typeof G=="function"&&(ae=G,G=0),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return a(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$copyFile")}o(c,"copyFile");var f=t.readdir;t.readdir=g;var h=/^v[0-5]\./;function g(O,M,G){typeof M=="function"&&(G=M,M=null);var ae=h.test(process.version)?o(function(Q,te,W,le){return f(Q,ce(Q,te,W,le))},"go$readdir"):o(function(Q,te,W,le){return f(Q,te,ce(Q,te,W,le))},"go$readdir");return ae(O,M,G);function ce(ie,Q,te,W){return function(le,Y){le&&(le.code==="EMFILE"||le.code==="ENFILE")?Kt([ae,[ie,Q,te],le,W||Date.now(),Date.now()]):(Y&&Y.sort&&Y.sort(),typeof te=="function"&&te.call(this,le,Y))}}}if(o(g,"readdir"),process.version.substr(0,4)==="v0.8"){var m=fp(t);C=m.ReadStream,S=m.WriteStream}var y=t.ReadStream;y&&(C.prototype=Object.create(y.prototype),C.prototype.open=T);var F=t.WriteStream;F&&(S.prototype=Object.create(F.prototype),S.prototype.open=P),Object.defineProperty(t,"ReadStream",{get:o(function(){return C},"get"),set:o(function(O){C=O},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return S},"get"),set:o(function(O){S=O},"set"),enumerable:!0,configurable:!0});var D=C;Object.defineProperty(t,"FileReadStream",{get:o(function(){return D},"get"),set:o(function(O){D=O},"set"),enumerable:!0,configurable:!0});var E=S;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(O){E=O},"set"),enumerable:!0,configurable:!0});function C(O,M){return this instanceof C?(y.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}o(C,"ReadStream");function T(){var O=this;je(O.path,O.flags,O.mode,function(M,G){M?(O.autoClose&&O.destroy(),O.emit("error",M)):(O.fd=G,O.emit("open",G),O.read())})}o(T,"ReadStream$open");function S(O,M){return this instanceof S?(F.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}o(S,"WriteStream");function P(){var O=this;je(O.path,O.flags,O.mode,function(M,G){M?(O.destroy(),O.emit("error",M)):(O.fd=G,O.emit("open",G))})}o(P,"WriteStream$open");function j(O,M){return new t.ReadStream(O,M)}o(j,"createReadStream");function X(O,M){return new t.WriteStream(O,M)}o(X,"createWriteStream");var se=t.open;t.open=je;function je(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return se(ie,Q,te,function(Y,RE){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$open")}return o(je,"open"),t}o(Bs,"patch");function Kt(t){kt("ENQUEUE",t[0].name,t[1]),ee[fe].push(t),Rs()}o(Kt,"enqueue");var Fn;function Au(){for(var t=Date.now(),e=0;e<ee[fe].length;++e)ee[fe][e].length>2&&(ee[fe][e][3]=t,ee[fe][e][4]=t);Rs()}o(Au,"resetQueue");function Rs(){if(clearTimeout(Fn),Fn=void 0,ee[fe].length!==0){var t=ee[fe].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kt("TIMEOUT",e.name,r);var u=r.pop();typeof u=="function"&&u.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);a>=f?(kt("RETRY",e.name,r),e.apply(null,r.concat([s]))):ee[fe].push(t)}Fn===void 0&&(Fn=setTimeout(Rs,0))}}o(Rs,"retry")});var ge=w(Ze=>{"use strict";l();var ku=oe().fromCallback,ye=Xt(),Dp=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof ye[t]=="function");Object.assign(Ze,ye);Dp.forEach(t=>{Ze[t]=ku(ye[t])});Ze.exists=function(t,e){return typeof e=="function"?ye.exists(t,e):new Promise(r=>ye.exists(t,r))};Ze.read=function(t,e,r,n,s,i){return typeof i=="function"?ye.read(t,e,r,n,s,i):new Promise((u,a)=>{ye.read(t,e,r,n,s,(c,f,h)=>{if(c)return a(c);u({bytesRead:f,buffer:h})})})};Ze.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.write(t,e,...r):new Promise((n,s)=>{ye.write(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesWritten:u,buffer:a})})})};Ze.readv=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.readv(t,e,...r):new Promise((n,s)=>{ye.readv(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesRead:u,buffers:a})})})};Ze.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.writev(t,e,...r):new Promise((n,s)=>{ye.writev(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesWritten:u,buffers:a})})})};typeof ye.realpath.native=="function"?Ze.realpath.native=ku(ye.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Lu=w((vw,Pu)=>{"use strict";l();var pp=L("path");Pu.exports.checkPath=o(function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(pp.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},"checkPath")});var Nu=w((kw,Is)=>{"use strict";l();var Ou=ge(),{checkPath:Bu}=Lu(),Ru=o(t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode},"getMode");Is.exports.makeDir=async(t,e)=>(Bu(t),Ou.mkdir(t,{mode:Ru(e),recursive:!0}));Is.exports.makeDirSync=(t,e)=>(Bu(t),Ou.mkdirSync(t,{mode:Ru(e),recursive:!0}))});var Re=w((Ow,Iu)=>{"use strict";l();var mp=oe().fromPromise,{makeDir:yp,makeDirSync:js}=Nu(),$s=mp(yp);Iu.exports={mkdirs:$s,mkdirsSync:js,mkdirp:$s,mkdirpSync:js,ensureDir:$s,ensureDirSync:js}});var tt=w((Rw,$u)=>{"use strict";l();var gp=oe().fromPromise,ju=ge();function Fp(t){return ju.access(t).then(()=>!0).catch(()=>!1)}o(Fp,"pathExists");$u.exports={pathExists:gp(Fp),pathExistsSync:ju.existsSync}});var Ms=w((jw,Mu)=>{"use strict";l();var Qt=ge(),Cp=oe().fromPromise;async function Ep(t,e,r){let n=await Qt.open(t,"r+"),s=null;try{await Qt.futimes(n,e,r)}finally{try{await Qt.close(n)}catch(i){s=i}}if(s)throw s}o(Ep,"utimesMillis");function bp(t,e,r){let n=Qt.openSync(t,"r+");return Qt.futimesSync(n,e,r),Qt.closeSync(n)}o(bp,"utimesMillisSync");Mu.exports={utimesMillis:Cp(Ep),utimesMillisSync:bp}});var Pt=w((Uw,Hu)=>{"use strict";l();var er=ge(),ue=L("path"),Uu=oe().fromPromise;function wp(t,e,r){let n=r.dereference?s=>er.stat(s,{bigint:!0}):s=>er.lstat(s,{bigint:!0});return Promise.all([n(t),n(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,i])=>({srcStat:s,destStat:i}))}o(wp,"getStats");function _p(t,e,r){let n,s=r.dereference?u=>er.statSync(u,{bigint:!0}):u=>er.lstatSync(u,{bigint:!0}),i=s(t);try{n=s(e)}catch(u){if(u.code==="ENOENT")return{srcStat:i,destStat:null};throw u}return{srcStat:i,destStat:n}}o(_p,"getStatsSync");async function xp(t,e,r,n){let{srcStat:s,destStat:i}=await wp(t,e,n);if(i){if(Ar(s,i)){let u=ue.basename(t),a=ue.basename(e);if(r==="move"&&u!==a&&u.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&Us(t,e))throw new Error(En(t,e,r));return{srcStat:s,destStat:i}}o(xp,"checkPaths");function Sp(t,e,r,n){let{srcStat:s,destStat:i}=_p(t,e,n);if(i){if(Ar(s,i)){let u=ue.basename(t),a=ue.basename(e);if(r==="move"&&u!==a&&u.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&Us(t,e))throw new Error(En(t,e,r));return{srcStat:s,destStat:i}}o(Sp,"checkPathsSync");async function qu(t,e,r,n){let s=ue.resolve(ue.dirname(t)),i=ue.resolve(ue.dirname(r));if(i===s||i===ue.parse(i).root)return;let u;try{u=await er.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Ar(e,u))throw new Error(En(t,r,n));return qu(t,e,i,n)}o(qu,"checkParentPaths");function Gu(t,e,r,n){let s=ue.resolve(ue.dirname(t)),i=ue.resolve(ue.dirname(r));if(i===s||i===ue.parse(i).root)return;let u;try{u=er.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Ar(e,u))throw new Error(En(t,r,n));return Gu(t,e,i,n)}o(Gu,"checkParentPathsSync");function Ar(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}o(Ar,"areIdentical");function Us(t,e){let r=ue.resolve(t).split(ue.sep).filter(s=>s),n=ue.resolve(e).split(ue.sep).filter(s=>s);return r.every((s,i)=>n[i]===s)}o(Us,"isSrcSubdir");function En(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}o(En,"errMsg");Hu.exports={checkPaths:Uu(xp),checkPathsSync:Sp,checkParentPaths:Uu(qu),checkParentPathsSync:Gu,isSrcSubdir:Us,areIdentical:Ar}});var Yu=w((Hw,Zu)=>{"use strict";l();var pe=ge(),Tr=L("path"),{mkdirs:vp}=Re(),{pathExists:Ap}=tt(),{utimesMillis:Tp}=Ms(),kr=Pt();async function kp(t,e,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
1
+ import{a as o,b as L,d as w,f as we,h as l,p as wd,q as _d}from"./chunk-56W5U2JG.js";var oe=w(Ls=>{"use strict";l();Ls.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{e.push((s,i)=>s!=null?n(s):r(i)),t.apply(this,e)})},"name",{value:t.name})};Ls.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(n=>r(null,n),r)},"name",{value:t.name})}});var bu=w((Dw,Eu)=>{l();var et=L("constants"),ip=process.cwd,yn=null,op=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return yn||(yn=ip.call(process)),yn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Os=process.chdir,process.chdir=function(t){yn=null,Os.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Os));var Os;Eu.exports=up;function up(t){et.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=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(h,g,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(h,g,m,y){y&&process.nextTick(y)},t.lchownSync=function(){}),op==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(h){function g(m,y,F){var D=Date.now(),E=0;h(m,y,o(function C(T){if(T&&(T.code==="EACCES"||T.code==="EPERM"||T.code==="EBUSY")&&Date.now()-D<6e4){setTimeout(function(){t.stat(y,function(S,P){S&&S.code==="ENOENT"?h(m,y,C):F(T)})},E),E<100&&(E+=10);return}F&&F(T)},"CB"))}return o(g,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(g,h),g}(t.rename)),t.read=typeof t.read!="function"?t.read:function(h){function g(m,y,F,D,E,C){var T;if(C&&typeof C=="function"){var S=0;T=o(function(P,j,X){if(P&&P.code==="EAGAIN"&&S<10)return S++,h.call(t,m,y,F,D,E,T);C.apply(this,arguments)},"callback")}return h.call(t,m,y,F,D,E,T)}return o(g,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(g,h),g}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(h){return function(g,m,y,F,D){for(var E=0;;)try{return h.call(t,g,m,y,F,D)}catch(C){if(C.code==="EAGAIN"&&E<10){E++;continue}throw C}}}(t.readSync);function e(h){h.lchmod=function(g,m,y){h.open(g,et.O_WRONLY|et.O_SYMLINK,m,function(F,D){if(F){y&&y(F);return}h.fchmod(D,m,function(E){h.close(D,function(C){y&&y(E||C)})})})},h.lchmodSync=function(g,m){var y=h.openSync(g,et.O_WRONLY|et.O_SYMLINK,m),F=!0,D;try{D=h.fchmodSync(y,m),F=!1}finally{if(F)try{h.closeSync(y)}catch{}else h.closeSync(y)}return D}}o(e,"patchLchmod");function r(h){et.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(g,m,y,F){h.open(g,et.O_SYMLINK,function(D,E){if(D){F&&F(D);return}h.futimes(E,m,y,function(C){h.close(E,function(T){F&&F(C||T)})})})},h.lutimesSync=function(g,m,y){var F=h.openSync(g,et.O_SYMLINK),D,E=!0;try{D=h.futimesSync(F,m,y),E=!1}finally{if(E)try{h.closeSync(F)}catch{}else h.closeSync(F)}return D}):h.futimes&&(h.lutimes=function(g,m,y,F){F&&process.nextTick(F)},h.lutimesSync=function(){})}o(r,"patchLutimes");function n(h){return h&&function(g,m,y){return h.call(t,g,m,function(F){f(F)&&(F=null),y&&y.apply(this,arguments)})}}o(n,"chmodFix");function s(h){return h&&function(g,m){try{return h.call(t,g,m)}catch(y){if(!f(y))throw y}}}o(s,"chmodFixSync");function i(h){return h&&function(g,m,y,F){return h.call(t,g,m,y,function(D){f(D)&&(D=null),F&&F.apply(this,arguments)})}}o(i,"chownFix");function u(h){return h&&function(g,m,y){try{return h.call(t,g,m,y)}catch(F){if(!f(F))throw F}}}o(u,"chownFixSync");function a(h){return h&&function(g,m,y){typeof m=="function"&&(y=m,m=null);function F(D,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),y&&y.apply(this,arguments)}return o(F,"callback"),m?h.call(t,g,m,F):h.call(t,g,F)}}o(a,"statFix");function c(h){return h&&function(g,m){var y=m?h.call(t,g,m):h.call(t,g);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}o(c,"statFixSync");function f(h){if(!h||h.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(h.code==="EINVAL"||h.code==="EPERM"))}o(f,"chownErOk")}o(up,"patch")});var xu=w((yw,_u)=>{l();var wu=L("stream").Stream;_u.exports=ap;function ap(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);wu.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 u=Object.keys(s),a=0,c=u.length;a<c;a++){var f=u[a];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(h,g){if(h){i.emit("error",h),i.readable=!1;return}i.fd=g,i.emit("open",g),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);wu.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),u=0,a=i.length;u<a;u++){var c=i[u];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())}}o(ap,"legacy")});var vu=w((Cw,Su)=>{"use strict";l();Su.exports=lp;var cp=Object.getPrototypeOf||function(t){return t.__proto__};function lp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:cp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o(lp,"clone")});var Xt=w((ww,Ns)=>{l();var ee=L("fs"),fp=bu(),hp=xu(),dp=vu(),gn=L("util"),fe,Cn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(fe=Symbol.for("graceful-fs.queue"),Cn=Symbol.for("graceful-fs.previous")):(fe="___graceful-fs.queue",Cn="___graceful-fs.previous");function Dp(){}o(Dp,"noop");function ku(t,e){Object.defineProperty(t,fe,{get:o(function(){return e},"get")})}o(ku,"publishQueue");var kt=Dp;gn.debuglog?kt=gn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(kt=o(function(){var t=gn.format.apply(gn,arguments);t="GFS4: "+t.split(/\n/).join(`
2
+ GFS4: `),console.error(t)},"debug"));ee[fe]||(Au=global[fe]||[],ku(ee,Au),ee.close=function(t){function e(r,n){return t.call(ee,r,function(s){s||Tu(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,Cn,{value:t}),e}(ee.close),ee.closeSync=function(t){function e(r){t.apply(ee,arguments),Tu()}return o(e,"closeSync"),Object.defineProperty(e,Cn,{value:t}),e}(ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kt(ee[fe]),L("assert").equal(ee[fe].length,0)}));var Au;global[fe]||ku(global,ee[fe]);Ns.exports=Bs(dp(ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ee.__patched&&(Ns.exports=Bs(ee),ee.__patched=!0);function Bs(t){fp(t),t.gracefulify=Bs,t.createReadStream=j,t.createWriteStream=X;var e=t.readFile;t.readFile=r;function r(O,M,G){return typeof M=="function"&&(G=M,M=null),ae(O,M,G);function ae(ce,ie,Q,te){return e(ce,ie,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Kt([ae,[ce,ie,Q],W,te||Date.now(),Date.now()]):typeof Q=="function"&&Q.apply(this,arguments)})}o(ae,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=s;function s(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return n(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$writeFile")}o(s,"writeFile");var i=t.appendFile;i&&(t.appendFile=u);function u(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return i(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$appendFile")}o(u,"appendFile");var a=t.copyFile;a&&(t.copyFile=c);function c(O,M,G,ae){return typeof G=="function"&&(ae=G,G=0),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return a(ie,Q,te,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$copyFile")}o(c,"copyFile");var f=t.readdir;t.readdir=g;var h=/^v[0-5]\./;function g(O,M,G){typeof M=="function"&&(G=M,M=null);var ae=h.test(process.version)?o(function(Q,te,W,le){return f(Q,ce(Q,te,W,le))},"go$readdir"):o(function(Q,te,W,le){return f(Q,te,ce(Q,te,W,le))},"go$readdir");return ae(O,M,G);function ce(ie,Q,te,W){return function(le,Y){le&&(le.code==="EMFILE"||le.code==="ENFILE")?Kt([ae,[ie,Q,te],le,W||Date.now(),Date.now()]):(Y&&Y.sort&&Y.sort(),typeof te=="function"&&te.call(this,le,Y))}}}if(o(g,"readdir"),process.version.substr(0,4)==="v0.8"){var m=hp(t);C=m.ReadStream,S=m.WriteStream}var y=t.ReadStream;y&&(C.prototype=Object.create(y.prototype),C.prototype.open=T);var F=t.WriteStream;F&&(S.prototype=Object.create(F.prototype),S.prototype.open=P),Object.defineProperty(t,"ReadStream",{get:o(function(){return C},"get"),set:o(function(O){C=O},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return S},"get"),set:o(function(O){S=O},"set"),enumerable:!0,configurable:!0});var D=C;Object.defineProperty(t,"FileReadStream",{get:o(function(){return D},"get"),set:o(function(O){D=O},"set"),enumerable:!0,configurable:!0});var E=S;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(O){E=O},"set"),enumerable:!0,configurable:!0});function C(O,M){return this instanceof C?(y.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}o(C,"ReadStream");function T(){var O=this;je(O.path,O.flags,O.mode,function(M,G){M?(O.autoClose&&O.destroy(),O.emit("error",M)):(O.fd=G,O.emit("open",G),O.read())})}o(T,"ReadStream$open");function S(O,M){return this instanceof S?(F.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}o(S,"WriteStream");function P(){var O=this;je(O.path,O.flags,O.mode,function(M,G){M?(O.destroy(),O.emit("error",M)):(O.fd=G,O.emit("open",G))})}o(P,"WriteStream$open");function j(O,M){return new t.ReadStream(O,M)}o(j,"createReadStream");function X(O,M){return new t.WriteStream(O,M)}o(X,"createWriteStream");var se=t.open;t.open=je;function je(O,M,G,ae){return typeof G=="function"&&(ae=G,G=null),ce(O,M,G,ae);function ce(ie,Q,te,W,le){return se(ie,Q,te,function(Y,NE){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Kt([ce,[ie,Q,te,W],Y,le||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}o(ce,"go$open")}return o(je,"open"),t}o(Bs,"patch");function Kt(t){kt("ENQUEUE",t[0].name,t[1]),ee[fe].push(t),Rs()}o(Kt,"enqueue");var Fn;function Tu(){for(var t=Date.now(),e=0;e<ee[fe].length;++e)ee[fe][e].length>2&&(ee[fe][e][3]=t,ee[fe][e][4]=t);Rs()}o(Tu,"resetQueue");function Rs(){if(clearTimeout(Fn),Fn=void 0,ee[fe].length!==0){var t=ee[fe].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kt("TIMEOUT",e.name,r);var u=r.pop();typeof u=="function"&&u.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);a>=f?(kt("RETRY",e.name,r),e.apply(null,r.concat([s]))):ee[fe].push(t)}Fn===void 0&&(Fn=setTimeout(Rs,0))}}o(Rs,"retry")});var ge=w(Ze=>{"use strict";l();var Pu=oe().fromCallback,ye=Xt(),pp=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof ye[t]=="function");Object.assign(Ze,ye);pp.forEach(t=>{Ze[t]=Pu(ye[t])});Ze.exists=function(t,e){return typeof e=="function"?ye.exists(t,e):new Promise(r=>ye.exists(t,r))};Ze.read=function(t,e,r,n,s,i){return typeof i=="function"?ye.read(t,e,r,n,s,i):new Promise((u,a)=>{ye.read(t,e,r,n,s,(c,f,h)=>{if(c)return a(c);u({bytesRead:f,buffer:h})})})};Ze.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.write(t,e,...r):new Promise((n,s)=>{ye.write(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesWritten:u,buffer:a})})})};Ze.readv=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.readv(t,e,...r):new Promise((n,s)=>{ye.readv(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesRead:u,buffers:a})})})};Ze.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.writev(t,e,...r):new Promise((n,s)=>{ye.writev(t,e,...r,(i,u,a)=>{if(i)return s(i);n({bytesWritten:u,buffers:a})})})};typeof ye.realpath.native=="function"?Ze.realpath.native=Pu(ye.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Ou=w((Aw,Lu)=>{"use strict";l();var mp=L("path");Lu.exports.checkPath=o(function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(mp.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},"checkPath")});var Iu=w((Pw,Is)=>{"use strict";l();var Bu=ge(),{checkPath:Ru}=Ou(),Nu=o(t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode},"getMode");Is.exports.makeDir=async(t,e)=>(Ru(t),Bu.mkdir(t,{mode:Nu(e),recursive:!0}));Is.exports.makeDirSync=(t,e)=>(Ru(t),Bu.mkdirSync(t,{mode:Nu(e),recursive:!0}))});var Re=w((Bw,ju)=>{"use strict";l();var yp=oe().fromPromise,{makeDir:gp,makeDirSync:js}=Iu(),$s=yp(gp);ju.exports={mkdirs:$s,mkdirsSync:js,mkdirp:$s,mkdirpSync:js,ensureDir:$s,ensureDirSync:js}});var tt=w((Nw,Mu)=>{"use strict";l();var Fp=oe().fromPromise,$u=ge();function Cp(t){return $u.access(t).then(()=>!0).catch(()=>!1)}o(Cp,"pathExists");Mu.exports={pathExists:Fp(Cp),pathExistsSync:$u.existsSync}});var Ms=w(($w,Uu)=>{"use strict";l();var Qt=ge(),Ep=oe().fromPromise;async function bp(t,e,r){let n=await Qt.open(t,"r+"),s=null;try{await Qt.futimes(n,e,r)}finally{try{await Qt.close(n)}catch(i){s=i}}if(s)throw s}o(bp,"utimesMillis");function wp(t,e,r){let n=Qt.openSync(t,"r+");return Qt.futimesSync(n,e,r),Qt.closeSync(n)}o(wp,"utimesMillisSync");Uu.exports={utimesMillis:Ep(bp),utimesMillisSync:wp}});var Pt=w((qw,zu)=>{"use strict";l();var er=ge(),ue=L("path"),qu=oe().fromPromise;function _p(t,e,r){let n=r.dereference?s=>er.stat(s,{bigint:!0}):s=>er.lstat(s,{bigint:!0});return Promise.all([n(t),n(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,i])=>({srcStat:s,destStat:i}))}o(_p,"getStats");function xp(t,e,r){let n,s=r.dereference?u=>er.statSync(u,{bigint:!0}):u=>er.lstatSync(u,{bigint:!0}),i=s(t);try{n=s(e)}catch(u){if(u.code==="ENOENT")return{srcStat:i,destStat:null};throw u}return{srcStat:i,destStat:n}}o(xp,"getStatsSync");async function Sp(t,e,r,n){let{srcStat:s,destStat:i}=await _p(t,e,n);if(i){if(Ar(s,i)){let u=ue.basename(t),a=ue.basename(e);if(r==="move"&&u!==a&&u.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&Us(t,e))throw new Error(En(t,e,r));return{srcStat:s,destStat:i}}o(Sp,"checkPaths");function vp(t,e,r,n){let{srcStat:s,destStat:i}=xp(t,e,n);if(i){if(Ar(s,i)){let u=ue.basename(t),a=ue.basename(e);if(r==="move"&&u!==a&&u.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&Us(t,e))throw new Error(En(t,e,r));return{srcStat:s,destStat:i}}o(vp,"checkPathsSync");async function Gu(t,e,r,n){let s=ue.resolve(ue.dirname(t)),i=ue.resolve(ue.dirname(r));if(i===s||i===ue.parse(i).root)return;let u;try{u=await er.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Ar(e,u))throw new Error(En(t,r,n));return Gu(t,e,i,n)}o(Gu,"checkParentPaths");function Hu(t,e,r,n){let s=ue.resolve(ue.dirname(t)),i=ue.resolve(ue.dirname(r));if(i===s||i===ue.parse(i).root)return;let u;try{u=er.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Ar(e,u))throw new Error(En(t,r,n));return Hu(t,e,i,n)}o(Hu,"checkParentPathsSync");function Ar(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}o(Ar,"areIdentical");function Us(t,e){let r=ue.resolve(t).split(ue.sep).filter(s=>s),n=ue.resolve(e).split(ue.sep).filter(s=>s);return r.every((s,i)=>n[i]===s)}o(Us,"isSrcSubdir");function En(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}o(En,"errMsg");zu.exports={checkPaths:qu(Sp),checkPathsSync:vp,checkParentPaths:qu(Gu),checkParentPathsSync:Hu,isSrcSubdir:Us,areIdentical:Ar}});var Ju=w((zw,Yu)=>{"use strict";l();var pe=ge(),Tr=L("path"),{mkdirs:Ap}=Re(),{pathExists:Tp}=tt(),{utimesMillis:kp}=Ms(),kr=Pt();async function Pp(t,e,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
3
 
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:s}=await kr.checkPaths(t,e,"copy",r);if(await kr.checkParentPaths(t,n,e,"copy"),!await Wu(t,e,r))return;let u=Tr.dirname(e);await Ap(u)||await vp(u),await Vu(s,t,e,r)}o(kp,"copy");async function Wu(t,e,r){return r.filter?r.filter(t,e):!0}o(Wu,"runFilter");async function Vu(t,e,r,n){let i=await(n.dereference?pe.stat:pe.lstat)(e);if(i.isDirectory())return Bp(i,t,e,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return Pp(i,t,e,r,n);if(i.isSymbolicLink())return Rp(t,e,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(Vu,"getStatsAndPerformCopy");async function Pp(t,e,r,n,s){if(!e)return zu(t,r,n,s);if(s.overwrite)return await pe.unlink(n),zu(t,r,n,s);if(s.errorOnExist)throw new Error(`'${n}' already exists`)}o(Pp,"onFile");async function zu(t,e,r,n){if(await pe.copyFile(e,r),n.preserveTimestamps){Lp(t.mode)&&await Op(r,t.mode);let s=await pe.stat(e);await Tp(r,s.atime,s.mtime)}return pe.chmod(r,t.mode)}o(zu,"copyFile");function Lp(t){return(t&128)===0}o(Lp,"fileIsNotWritable");function Op(t,e){return pe.chmod(t,e|128)}o(Op,"makeFileWritable");async function Bp(t,e,r,n,s){e||await pe.mkdir(n);let i=[];for await(let u of await pe.opendir(r)){let a=Tr.join(r,u.name),c=Tr.join(n,u.name);i.push(Wu(a,c,s).then(f=>{if(f)return kr.checkPaths(a,c,"copy",s).then(({destStat:h})=>Vu(h,a,c,s))}))}await Promise.all(i),e||await pe.chmod(n,t.mode)}o(Bp,"onDir");async function Rp(t,e,r,n){let s=await pe.readlink(e);if(n.dereference&&(s=Tr.resolve(process.cwd(),s)),!t)return pe.symlink(s,r);let i=null;try{i=await pe.readlink(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return pe.symlink(s,r);throw u}if(n.dereference&&(i=Tr.resolve(process.cwd(),i)),kr.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(kr.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return await pe.unlink(r),pe.symlink(s,r)}o(Rp,"onLink");Zu.exports=kp});var ea=w((Vw,Qu)=>{"use strict";l();var Fe=Xt(),Pr=L("path"),Np=Re().mkdirsSync,Ip=Ms().utimesMillisSync,Lr=Pt();function jp(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:s}=await kr.checkPaths(t,e,"copy",r);if(await kr.checkParentPaths(t,n,e,"copy"),!await Vu(t,e,r))return;let u=Tr.dirname(e);await Tp(u)||await Ap(u),await Zu(s,t,e,r)}o(Pp,"copy");async function Vu(t,e,r){return r.filter?r.filter(t,e):!0}o(Vu,"runFilter");async function Zu(t,e,r,n){let i=await(n.dereference?pe.stat:pe.lstat)(e);if(i.isDirectory())return Rp(i,t,e,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return Lp(i,t,e,r,n);if(i.isSymbolicLink())return Np(t,e,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(Zu,"getStatsAndPerformCopy");async function Lp(t,e,r,n,s){if(!e)return Wu(t,r,n,s);if(s.overwrite)return await pe.unlink(n),Wu(t,r,n,s);if(s.errorOnExist)throw new Error(`'${n}' already exists`)}o(Lp,"onFile");async function Wu(t,e,r,n){if(await pe.copyFile(e,r),n.preserveTimestamps){Op(t.mode)&&await Bp(r,t.mode);let s=await pe.stat(e);await kp(r,s.atime,s.mtime)}return pe.chmod(r,t.mode)}o(Wu,"copyFile");function Op(t){return(t&128)===0}o(Op,"fileIsNotWritable");function Bp(t,e){return pe.chmod(t,e|128)}o(Bp,"makeFileWritable");async function Rp(t,e,r,n,s){e||await pe.mkdir(n);let i=[];for await(let u of await pe.opendir(r)){let a=Tr.join(r,u.name),c=Tr.join(n,u.name);i.push(Vu(a,c,s).then(f=>{if(f)return kr.checkPaths(a,c,"copy",s).then(({destStat:h})=>Zu(h,a,c,s))}))}await Promise.all(i),e||await pe.chmod(n,t.mode)}o(Rp,"onDir");async function Np(t,e,r,n){let s=await pe.readlink(e);if(n.dereference&&(s=Tr.resolve(process.cwd(),s)),!t)return pe.symlink(s,r);let i=null;try{i=await pe.readlink(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return pe.symlink(s,r);throw u}if(n.dereference&&(i=Tr.resolve(process.cwd(),i)),kr.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(kr.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return await pe.unlink(r),pe.symlink(s,r)}o(Np,"onLink");Yu.exports=Pp});var ta=w((Zw,ea)=>{"use strict";l();var Fe=Xt(),Pr=L("path"),Ip=Re().mkdirsSync,jp=Ms().utimesMillisSync,Lr=Pt();function $p(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:s}=Lr.checkPathsSync(t,e,"copy",r);if(Lr.checkParentPathsSync(t,n,e,"copy"),r.filter&&!r.filter(t,e))return;let i=Pr.dirname(e);return Fe.existsSync(i)||Np(i),Ju(s,t,e,r)}o(jp,"copySync");function Ju(t,e,r,n){let i=(n.dereference?Fe.statSync:Fe.lstatSync)(e);if(i.isDirectory())return zp(i,t,e,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return $p(i,t,e,r,n);if(i.isSymbolicLink())return Zp(t,e,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(Ju,"getStats");function $p(t,e,r,n,s){return e?Mp(t,r,n,s):Ku(t,r,n,s)}o($p,"onFile");function Mp(t,e,r,n){if(n.overwrite)return Fe.unlinkSync(r),Ku(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}o(Mp,"mayCopyFile");function Ku(t,e,r,n){return Fe.copyFileSync(e,r),n.preserveTimestamps&&Up(t.mode,e,r),qs(r,t.mode)}o(Ku,"copyFile");function Up(t,e,r){return qp(t)&&Gp(r,t),Hp(e,r)}o(Up,"handleTimestamps");function qp(t){return(t&128)===0}o(qp,"fileIsNotWritable");function Gp(t,e){return qs(t,e|128)}o(Gp,"makeFileWritable");function qs(t,e){return Fe.chmodSync(t,e)}o(qs,"setDestMode");function Hp(t,e){let r=Fe.statSync(t);return Ip(e,r.atime,r.mtime)}o(Hp,"setDestTimestamps");function zp(t,e,r,n,s){return e?Xu(r,n,s):Wp(t.mode,r,n,s)}o(zp,"onDir");function Wp(t,e,r,n){return Fe.mkdirSync(r),Xu(e,r,n),qs(r,t)}o(Wp,"mkDirAndCopy");function Xu(t,e,r){let n=Fe.opendirSync(t);try{let s;for(;(s=n.readSync())!==null;)Vp(s.name,t,e,r)}finally{n.closeSync()}}o(Xu,"copyDir");function Vp(t,e,r,n){let s=Pr.join(e,t),i=Pr.join(r,t);if(n.filter&&!n.filter(s,i))return;let{destStat:u}=Lr.checkPathsSync(s,i,"copy",n);return Ju(u,s,i,n)}o(Vp,"copyDirItem");function Zp(t,e,r,n){let s=Fe.readlinkSync(e);if(n.dereference&&(s=Pr.resolve(process.cwd(),s)),t){let i;try{i=Fe.readlinkSync(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return Fe.symlinkSync(s,r);throw u}if(n.dereference&&(i=Pr.resolve(process.cwd(),i)),Lr.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(Lr.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return Yp(s,r)}else return Fe.symlinkSync(s,r)}o(Zp,"onLink");function Yp(t,e){return Fe.unlinkSync(e),Fe.symlinkSync(t,e)}o(Yp,"copyLink");Qu.exports=jp});var bn=w((Jw,ta)=>{"use strict";l();var Jp=oe().fromPromise;ta.exports={copy:Jp(Yu()),copySync:ea()}});var Or=w((Xw,na)=>{"use strict";l();var ra=Xt(),Kp=oe().fromCallback;function Xp(t,e){ra.rm(t,{recursive:!0,force:!0},e)}o(Xp,"remove");function Qp(t){ra.rmSync(t,{recursive:!0,force:!0})}o(Qp,"removeSync");na.exports={remove:Kp(Xp),removeSync:Qp}});var fa=w((t2,la)=>{"use strict";l();var em=oe().fromPromise,oa=ge(),ua=L("path"),aa=Re(),ca=Or(),sa=em(o(async function(e){let r;try{r=await oa.readdir(e)}catch{return aa.mkdirs(e)}return Promise.all(r.map(n=>ca.remove(ua.join(e,n))))},"emptyDir"));function ia(t){let e;try{e=oa.readdirSync(t)}catch{return aa.mkdirsSync(t)}e.forEach(r=>{r=ua.join(t,r),ca.removeSync(r)})}o(ia,"emptyDirSync");la.exports={emptyDirSync:ia,emptydirSync:ia,emptyDir:sa,emptydir:sa}});var pa=w((s2,Da)=>{"use strict";l();var tm=oe().fromPromise,ha=L("path"),Ye=ge(),da=Re();async function rm(t){let e;try{e=await Ye.stat(t)}catch{}if(e&&e.isFile())return;let r=ha.dirname(t),n=null;try{n=await Ye.stat(r)}catch(s){if(s.code==="ENOENT"){await da.mkdirs(r),await Ye.writeFile(t,"");return}else throw s}n.isDirectory()?await Ye.writeFile(t,""):await Ye.readdir(r)}o(rm,"createFile");function nm(t){let e;try{e=Ye.statSync(t)}catch{}if(e&&e.isFile())return;let r=ha.dirname(t);try{Ye.statSync(r).isDirectory()||Ye.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")da.mkdirsSync(r);else throw n}Ye.writeFileSync(t,"")}o(nm,"createFileSync");Da.exports={createFile:tm(rm),createFileSync:nm}});var Ca=w((u2,Fa)=>{"use strict";l();var sm=oe().fromPromise,ma=L("path"),rt=ge(),ya=Re(),{pathExists:im}=tt(),{areIdentical:ga}=Pt();async function om(t,e){let r;try{r=await rt.lstat(e)}catch{}let n;try{n=await rt.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}if(r&&ga(n,r))return;let s=ma.dirname(e);await im(s)||await ya.mkdirs(s),await rt.link(t,e)}o(om,"createLink");function um(t,e){let r;try{r=rt.lstatSync(e)}catch{}try{let i=rt.lstatSync(t);if(r&&ga(i,r))return}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let n=ma.dirname(e);return rt.existsSync(n)||ya.mkdirsSync(n),rt.linkSync(t,e)}o(um,"createLinkSync");Fa.exports={createLink:sm(om),createLinkSync:um}});var ba=w((l2,Ea)=>{"use strict";l();var nt=L("path"),Br=ge(),{pathExists:am}=tt(),cm=oe().fromPromise;async function lm(t,e){if(nt.isAbsolute(t)){try{await Br.lstat(t)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:t,toDst:t}}let r=nt.dirname(e),n=nt.join(r,t);if(await am(n))return{toCwd:n,toDst:t};try{await Br.lstat(t)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:t,toDst:nt.relative(r,t)}}o(lm,"symlinkPaths");function fm(t,e){if(nt.isAbsolute(t)){if(!Br.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let r=nt.dirname(e),n=nt.join(r,t);if(Br.existsSync(n))return{toCwd:n,toDst:t};if(!Br.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:nt.relative(r,t)}}o(fm,"symlinkPathsSync");Ea.exports={symlinkPaths:cm(lm),symlinkPathsSync:fm}});var xa=w((d2,_a)=>{"use strict";l();var wa=ge(),hm=oe().fromPromise;async function dm(t,e){if(e)return e;let r;try{r=await wa.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}o(dm,"symlinkType");function Dm(t,e){if(e)return e;let r;try{r=wa.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}o(Dm,"symlinkTypeSync");_a.exports={symlinkType:hm(dm),symlinkTypeSync:Dm}});var Ta=w((m2,Aa)=>{"use strict";l();var pm=oe().fromPromise,Sa=L("path"),Ue=ge(),{mkdirs:mm,mkdirsSync:ym}=Re(),{symlinkPaths:gm,symlinkPathsSync:Fm}=ba(),{symlinkType:Cm,symlinkTypeSync:Em}=xa(),{pathExists:bm}=tt(),{areIdentical:va}=Pt();async function wm(t,e,r){let n;try{n=await Ue.lstat(e)}catch{}if(n&&n.isSymbolicLink()){let[a,c]=await Promise.all([Ue.stat(t),Ue.stat(e)]);if(va(a,c))return}let s=await gm(t,e);t=s.toDst;let i=await Cm(s.toCwd,r),u=Sa.dirname(e);return await bm(u)||await mm(u),Ue.symlink(t,e,i)}o(wm,"createSymlink");function _m(t,e,r){let n;try{n=Ue.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let a=Ue.statSync(t),c=Ue.statSync(e);if(va(a,c))return}let s=Fm(t,e);t=s.toDst,r=Em(s.toCwd,r);let i=Sa.dirname(e);return Ue.existsSync(i)||ym(i),Ue.symlinkSync(t,e,r)}o(_m,"createSymlinkSync");Aa.exports={createSymlink:pm(wm),createSymlinkSync:_m}});var Ia=w((F2,Na)=>{"use strict";l();var{createFile:ka,createFileSync:Pa}=pa(),{createLink:La,createLinkSync:Oa}=Ca(),{createSymlink:Ba,createSymlinkSync:Ra}=Ta();Na.exports={createFile:ka,createFileSync:Pa,ensureFile:ka,ensureFileSync:Pa,createLink:La,createLinkSync:Oa,ensureLink:La,ensureLinkSync:Oa,createSymlink:Ba,createSymlinkSync:Ra,ensureSymlink:Ba,ensureSymlinkSync:Ra}});var wn=w((E2,ja)=>{l();function xm(t,{EOL:e=`
7
- `,finalEOL:r=!0,replacer:n=null,spaces:s}={}){let i=r?e:"";return JSON.stringify(t,n,s).replace(/\n/g,e)+i}o(xm,"stringify");function Sm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}o(Sm,"stripBom");ja.exports={stringify:xm,stripBom:Sm}});var qa=w((_2,Ua)=>{l();var tr;try{tr=Xt()}catch{tr=L("fs")}var _n=oe(),{stringify:$a,stripBom:Ma}=wn();async function vm(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||tr,n="throws"in e?e.throws:!0,s=await _n.fromCallback(r.readFile)(t,e);s=Ma(s);let i;try{i=JSON.parse(s,e?e.reviver:null)}catch(u){if(n)throw u.message=`${t}: ${u.message}`,u;return null}return i}o(vm,"_readFile");var Am=_n.fromPromise(vm);function Tm(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||tr,n="throws"in e?e.throws:!0;try{let s=r.readFileSync(t,e);return s=Ma(s),JSON.parse(s,e.reviver)}catch(s){if(n)throw s.message=`${t}: ${s.message}`,s;return null}}o(Tm,"readFileSync");async function km(t,e,r={}){let n=r.fs||tr,s=$a(e,r);await _n.fromCallback(n.writeFile)(t,s,r)}o(km,"_writeFile");var Pm=_n.fromPromise(km);function Lm(t,e,r={}){let n=r.fs||tr,s=$a(e,r);return n.writeFileSync(t,s,r)}o(Lm,"writeFileSync");var Om={readFile:Am,readFileSync:Tm,writeFile:Pm,writeFileSync:Lm};Ua.exports=Om});var Ha=w((v2,Ga)=>{"use strict";l();var xn=qa();Ga.exports={readJson:xn.readFile,readJsonSync:xn.readFileSync,writeJson:xn.writeFile,writeJsonSync:xn.writeFileSync}});var Sn=w((T2,Va)=>{"use strict";l();var Bm=oe().fromPromise,Gs=ge(),za=L("path"),Wa=Re(),Rm=tt().pathExists;async function Nm(t,e,r="utf-8"){let n=za.dirname(t);return await Rm(n)||await Wa.mkdirs(n),Gs.writeFile(t,e,r)}o(Nm,"outputFile");function Im(t,...e){let r=za.dirname(t);Gs.existsSync(r)||Wa.mkdirsSync(r),Gs.writeFileSync(t,...e)}o(Im,"outputFileSync");Va.exports={outputFile:Bm(Nm),outputFileSync:Im}});var Ya=w((L2,Za)=>{"use strict";l();var{stringify:jm}=wn(),{outputFile:$m}=Sn();async function Mm(t,e,r={}){let n=jm(e,r);await $m(t,n,r)}o(Mm,"outputJson");Za.exports=Mm});var Ka=w((R2,Ja)=>{"use strict";l();var{stringify:Um}=wn(),{outputFileSync:qm}=Sn();function Gm(t,e,r){let n=Um(e,r);qm(t,n,r)}o(Gm,"outputJsonSync");Ja.exports=Gm});var Qa=w((j2,Xa)=>{"use strict";l();var Hm=oe().fromPromise,Ce=Ha();Ce.outputJson=Hm(Ya());Ce.outputJsonSync=Ka();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;Xa.exports=Ce});var sc=w((M2,nc)=>{"use strict";l();var zm=ge(),ec=L("path"),{copy:Wm}=bn(),{remove:rc}=Or(),{mkdirp:Vm}=Re(),{pathExists:Zm}=tt(),tc=Pt();async function Ym(t,e,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:i=!1}=await tc.checkPaths(t,e,"move",r);await tc.checkParentPaths(t,s,e,"move");let u=ec.dirname(e);return ec.parse(u).root!==u&&await Vm(u),Jm(t,e,n,i)}o(Ym,"move");async function Jm(t,e,r,n){if(!n){if(r)await rc(e);else if(await Zm(e))throw new Error("dest already exists.")}try{await zm.rename(t,e)}catch(s){if(s.code!=="EXDEV")throw s;await Km(t,e,r)}}o(Jm,"doRename");async function Km(t,e,r){return await Wm(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),rc(t)}o(Km,"moveAcrossDevice");nc.exports=Ym});var cc=w((G2,ac)=>{"use strict";l();var oc=Xt(),zs=L("path"),Xm=bn().copySync,uc=Or().removeSync,Qm=Re().mkdirpSync,ic=Pt();function ey(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:i=!1}=ic.checkPathsSync(t,e,"move",r);return ic.checkParentPathsSync(t,s,e,"move"),ty(e)||Qm(zs.dirname(e)),ry(t,e,n,i)}o(ey,"moveSync");function ty(t){let e=zs.dirname(t);return zs.parse(e).root===e}o(ty,"isParentRoot");function ry(t,e,r,n){if(n)return Hs(t,e,r);if(r)return uc(e),Hs(t,e,r);if(oc.existsSync(e))throw new Error("dest already exists.");return Hs(t,e,r)}o(ry,"doRename");function Hs(t,e,r){try{oc.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return ny(t,e,r)}}o(Hs,"rename");function ny(t,e,r){return Xm(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),uc(t)}o(ny,"moveAcrossDevice");ac.exports=ey});var fc=w((W2,lc)=>{"use strict";l();var sy=oe().fromPromise;lc.exports={move:sy(sc()),moveSync:cc()}});var dc=w((Z2,hc)=>{"use strict";l();hc.exports={...ge(),...bn(),...fa(),...Ia(),...Qa(),...Re(),...fc(),...Sn(),...tt(),...Or()}});var Ws=w((J2,iy)=>{iy.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Dc=w((K2,oy)=>{oy.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var pc=w((X2,uy)=>{uy.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var yc=w((Q2,mc)=>{"use strict";l();var ay=[].concat(Ws()).concat(Dc()),cy=pc();mc.exports=function(t){var e=0;function r(){return e<t.length}o(r,"hasMore");function n(F){if(F instanceof RegExp){var D=t.slice(e),E=D.match(F);if(E)return e+=E[0].length,E[0]}else if(t.indexOf(F,e)===e)return e+=F.length,F}o(n,"read");function s(){n(/[ ]*/)}o(s,"skipWhitespace");function i(){for(var F,D=["WITH","AND","OR","(",")",":","+"],E=0;E<D.length&&(F=n(D[E]),!F);E++);if(F==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return F&&{type:"OPERATOR",string:F}}o(i,"operator");function u(){return n(/[A-Za-z0-9-.]+/)}o(u,"idstring");function a(){var F=u();if(!F)throw new Error("Expected idstring at offset "+e);return F}o(a,"expectIdstring");function c(){if(n("DocumentRef-")){var F=a();return{type:"DOCUMENTREF",string:F}}}o(c,"documentRef");function f(){if(n("LicenseRef-")){var F=a();return{type:"LICENSEREF",string:F}}}o(f,"licenseRef");function h(){var F=e,D=u();if(ay.indexOf(D)!==-1)return{type:"LICENSE",string:D};if(cy.indexOf(D)!==-1)return{type:"EXCEPTION",string:D};e=F}o(h,"identifier");function g(){return i()||c()||f()||h()}o(g,"parseToken");for(var m=[];r()&&(s(),!!r());){var y=g();if(!y)throw new Error("Unexpected `"+t[e]+"` at offset "+e);m.push(y)}return m}});var Fc=w((r_,gc)=>{"use strict";l();gc.exports=function(t){var e=0;function r(){return e<t.length}o(r,"hasMore");function n(){return r()?t[e]:null}o(n,"token");function s(){if(!r())throw new Error;e++}o(s,"next");function i(D){var E=n();if(E&&E.type==="OPERATOR"&&D===E.string)return s(),E.string}o(i,"parseOperator");function u(){if(i("WITH")){var D=n();if(D&&D.type==="EXCEPTION")return s(),D.string;throw new Error("Expected exception after `WITH`")}}o(u,"parseWith");function a(){var D=e,E="",C=n();if(C.type==="DOCUMENTREF"&&(s(),E+="DocumentRef-"+C.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(C=n(),C.type==="LICENSEREF")return s(),E+="LicenseRef-"+C.string,{license:E};e=D}o(a,"parseLicenseRef");function c(){var D=n();if(D&&D.type==="LICENSE"){s();var E={license:D.string};i("+")&&(E.plus=!0);var C=u();return C&&(E.exception=C),E}}o(c,"parseLicense");function f(){var D=i("(");if(D){var E=y();if(!i(")"))throw new Error("Expected `)`");return E}}o(f,"parseParenthesizedExpression");function h(){return f()||a()||c()}o(h,"parseAtom");function g(D,E){return o(function C(){var T=E();if(T){if(!i(D))return T;var S=C();if(!S)throw new Error("Expected expression");return{left:T,conjunction:D.toLowerCase(),right:S}}},"parseBinaryOp")}o(g,"makeBinaryOpParser");var m=g("AND",h),y=g("OR",m),F=y();if(!F||r())throw new Error("Syntax error");return F}});var Vs=w((i_,Cc)=>{"use strict";l();var ly=yc(),fy=Fc();Cc.exports=function(t){return fy(ly(t))}});var Tc=w((u_,Ac)=>{l();var hy=Vs(),dy=Ws();function vn(t){try{return hy(t),!0}catch{return!1}}o(vn,"valid");function vc(t,e){var r=e[0].length-t[0].length;return r!==0?r:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}o(vc,"sortTranspositions");var Ec=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(vc),Dy=0,py=1,bc=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Zs=dy.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var r=e[1];return t[r]=t[r]||[],t[r].push(e[0]),t},{}),my=Object.keys(Zs).map(o(function(e){return[e,Zs[e]]},"makeEntries")).filter(o(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"},"identifySoleVersions")).map(o(function(e){return[e[0],e[1][0]]},"createLastResorts"));Zs=void 0;var wc=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(my).sort(vc),yy=0,gy=1,_c=o(function(t){for(var e=0;e<bc.length;e++){var r=bc[e](t).trim();if(r!==t&&vn(r))return r}return null},"validTransformation"),xc=o(function(t){for(var e=t.toUpperCase(),r=0;r<wc.length;r++){var n=wc[r];if(e.indexOf(n[yy])>-1)return n[gy]}return null},"validLastResort"),Sc=o(function(t,e){for(var r=0;r<Ec.length;r++){var n=Ec[r],s=n[Dy];if(t.indexOf(s)>-1){var i=t.replace(s,n[py]),u=e(i);if(u!==null)return u}}return null},"anyCorrection");Ac.exports=function(t,e){e=e||{};var r=e.upgrade===void 0?!0:!!e.upgrade;function n(a){return r?Fy(a):a}o(n,"postprocess");var s=typeof t=="string"&&t.trim().length!==0;if(!s)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),vn(t))return n(t);var i=t.replace(/\+$/,"").trim();if(vn(i))return n(i);var u=_c(t);return u!==null||(u=Sc(t,function(a){return vn(a)?a:_c(a)}),u!==null)||(u=xc(t),u!==null)||(u=Sc(t,xc),u!==null)?n(u):null};function Fy(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}o(Fy,"upgradeGPLs")});var Oc=w((l_,Lc)=>{l();var Cy=Vs(),Ey=Tc(),kc='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',by=/^SEE LICEN[CS]E IN (.+)$/;function Pc(t,e){return e.slice(0,t.length)===t}o(Pc,"startsWith");function Ys(t){if(t.hasOwnProperty("license")){var e=t.license;return Pc("LicenseRef",e)||Pc("DocumentRef",e)}else return Ys(t.left)||Ys(t.right)}o(Ys,"usesLicenseRef");Lc.exports=function(t){var e;try{e=Cy(t)}catch{var r;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=by.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[kc]};if(t.trim().length!==0){var s=Ey(t);s&&n.warnings.push('license is similar to the valid expression "'+s+'"')}return n}return Ys(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[kc]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var jc=w(Tn=>{"use strict";l();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LRUCache=void 0;var rr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Rc=new Set,Js=typeof process=="object"&&process?process:{},Nc=o((t,e,r,n)=>{typeof Js.emitWarning=="function"?Js.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),An=globalThis.AbortController,Bc=globalThis.AbortSignal;if(typeof An>"u"){Bc=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},An=class{static{o(this,"AbortController")}constructor(){e()}signal=new Bc;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=Js.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,Nc("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var wy=o(t=>!Rc.has(t),"shouldWarn"),p_=Symbol("type"),st=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),Ic=o(t=>st(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?nr:null:null,"getUintArray"),nr=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},Ks=class t{static{o(this,"Stack")}heap;length;static#r=!1;static create(e){let r=Ic(e);if(!r)return[];t.#r=!0;let n=new t(e,r);return t.#r=!1,n}constructor(e,r){if(!t.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Xs=class t{static{o(this,"LRUCache")}#r;#n;#e;#a;#w;#g;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#D;#u;#o;#t;#h;#p;#f;#c;#F;#l;#C;#E;#m;#b;#A;#d;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#m,sizes:e.#C,keyMap:e.#u,keyList:e.#o,valList:e.#t,next:e.#h,prev:e.#p,get head(){return e.#f},get tail(){return e.#c},free:e.#F,isBackgroundFetch:o(r=>e.#s(r),"isBackgroundFetch"),backgroundFetch:o((r,n,s,i)=>e.#B(r,n,s,i),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#_(r),"indexes"),rindexes:o(r=>e.#x(r),"rindexes"),isStale:o(r=>e.#y(r),"isStale")}}get max(){return this.#r}get maxSize(){return this.#n}get calculatedSize(){return this.#D}get size(){return this.#i}get fetchMethod(){return this.#w}get memoMethod(){return this.#g}get dispose(){return this.#e}get disposeAfter(){return this.#a}constructor(e){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:u,updateAgeOnHas:a,allowStale:c,dispose:f,disposeAfter:h,noDisposeOnSet:g,noUpdateTTL:m,maxSize:y=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:E,memoMethod:C,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:j,ignoreFetchAbort:X}=e;if(r!==0&&!st(r))throw new TypeError("max option must be a nonnegative integer");let se=r?Ic(r):Array;if(!se)throw new Error("invalid max value: "+r);if(this.#r=r,this.#n=y,this.maxEntrySize=F||this.#n,this.sizeCalculation=D,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#g=C,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=E,this.#A=!!E,this.#u=new Map,this.#o=new Array(r).fill(void 0),this.#t=new Array(r).fill(void 0),this.#h=new se(r),this.#p=new se(r),this.#f=0,this.#c=0,this.#F=Ks.create(r),this.#i=0,this.#D=0,typeof f=="function"&&(this.#e=f),typeof h=="function"?(this.#a=h,this.#l=[]):(this.#a=void 0,this.#l=void 0),this.#b=!!this.#e,this.#d=!!this.#a,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!j,this.ignoreFetchAbort=!!X,this.maxEntrySize!==0){if(this.#n!==0&&!st(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!st(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!u,this.updateAgeOnHas=!!a,this.ttlResolution=st(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!st(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#r===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#n){let je="LRU_CACHE_UNBOUNDED";wy(je)&&(Rc.add(je),Nc("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",je,t))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#R(){let e=new nr(this.#r),r=new nr(this.#r);this.#m=e,this.#E=r,this.#N=(i,u,a=rr.now())=>{if(r[i]=u!==0?a:0,e[i]=u,u!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(i)&&this.#S(this.#o[i],"expire")},u+1);c.unref&&c.unref()}},this.#T=i=>{r[i]=e[i]!==0?rr.now():0},this.#v=(i,u)=>{if(e[u]){let a=e[u],c=r[u];if(!a||!c)return;i.ttl=a,i.start=c,i.now=n||s();let f=i.now-c;i.remainingTTL=a-f}};let n=0,s=o(()=>{let i=rr.now();if(this.ttlResolution>0){n=i;let u=setTimeout(()=>n=0,this.ttlResolution);u.unref&&u.unref()}return i},"getNow");this.getRemainingTTL=i=>{let u=this.#u.get(i);if(u===void 0)return 0;let a=e[u],c=r[u];if(!a||!c)return 1/0;let f=(n||s())-c;return a-f},this.#y=i=>{let u=r[i],a=e[i];return!!a&&!!u&&(n||s())-u>a}}#T=o(()=>{},"#updateItemAge");#v=o(()=>{},"#statusTTL");#N=o(()=>{},"#setItemTTL");#y=o(()=>!1,"#isStale");#U(){let e=new nr(this.#r);this.#D=0,this.#C=e,this.#k=r=>{this.#D-=e[r],e[r]=0},this.#I=(r,n,s,i)=>{if(this.#s(n))return 0;if(!st(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!st(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#L=(r,n,s)=>{if(e[r]=n,this.#n){let i=this.#n-e[r];for(;this.#D>i;)this.#O(!0)}this.#D+=e[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#D)}}#k=o(e=>{},"#removeItemSize");#L=o((e,r,n)=>{},"#addItemSize");#I=o((e,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#_({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#c;!(!this.#j(r)||((e||!this.#y(r))&&(yield r),r===this.#f));)r=this.#p[r]}*#x({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#f;!(!this.#j(r)||((e||!this.#y(r))&&(yield r),r===this.#c));)r=this.#h[r]}#j(e){return e!==void 0&&this.#u.get(this.#o[e])===e}*entries(){for(let e of this.#_())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#s(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*rentries(){for(let e of this.#x())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#s(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*keys(){for(let e of this.#_()){let r=this.#o[e];r!==void 0&&!this.#s(this.#t[e])&&(yield r)}}*rkeys(){for(let e of this.#x()){let r=this.#o[e];r!==void 0&&!this.#s(this.#t[e])&&(yield r)}}*values(){for(let e of this.#_())this.#t[e]!==void 0&&!this.#s(this.#t[e])&&(yield this.#t[e])}*rvalues(){for(let e of this.#x())this.#t[e]!==void 0&&!this.#s(this.#t[e])&&(yield this.#t[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#_()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;if(i!==void 0&&e(i,this.#o[n],this))return this.get(this.#o[n],r)}}forEach(e,r=this){for(let n of this.#_()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#o[n],this)}}rforEach(e,r=this){for(let n of this.#x()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#o[n],this)}}purgeStale(){let e=!1;for(let r of this.#x({allowStale:!0}))this.#y(r)&&(this.#S(this.#o[r],"expire"),e=!0);return e}info(e){let r=this.#u.get(e);if(r===void 0)return;let n=this.#t[r],s=this.#s(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#m&&this.#E){let u=this.#m[r],a=this.#E[r];if(u&&a){let c=u-(rr.now()-a);i.ttl=c,i.start=Date.now()}}return this.#C&&(i.size=this.#C[r]),i}dump(){let e=[];for(let r of this.#_({allowStale:!0})){let n=this.#o[r],s=this.#t[r],i=this.#s(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let u={value:i};if(this.#m&&this.#E){u.ttl=this.#m[r];let a=rr.now()-this.#E[r];u.start=Math.floor(Date.now()-a)}this.#C&&(u.size=this.#C[r]),e.unshift([n,u])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let s=Date.now()-n.start;n.start=rr.now()-s}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,{noUpdateTTL:f=this.noUpdateTTL}=n,h=this.#I(e,r,n.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#S(e,"set"),this;let g=this.#i===0?void 0:this.#u.get(e);if(g===void 0)g=this.#i===0?this.#c:this.#F.length!==0?this.#F.pop():this.#i===this.#r?this.#O(!1):this.#i,this.#o[g]=e,this.#t[g]=r,this.#u.set(e,g),this.#h[this.#c]=g,this.#p[g]=this.#c,this.#c=g,this.#i++,this.#L(g,h,c),c&&(c.set="add"),f=!1;else{this.#P(g);let m=this.#t[g];if(r!==m){if(this.#A&&this.#s(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=m;y!==void 0&&!u&&(this.#b&&this.#e?.(y,e,"set"),this.#d&&this.#l?.push([y,e,"set"]))}else u||(this.#b&&this.#e?.(m,e,"set"),this.#d&&this.#l?.push([m,e,"set"]));if(this.#k(g),this.#L(g,h,c),this.#t[g]=r,c){c.set="replace";let y=m&&this.#s(m)?m.__staleWhileFetching:m;y!==void 0&&(c.oldValue=y)}}else c&&(c.set="update")}if(s!==0&&!this.#m&&this.#R(),this.#m&&(f||this.#N(g,s,i),c&&this.#v(c,g)),!u&&this.#d&&this.#l){let m=this.#l,y;for(;y=m?.shift();)this.#a?.(...y)}return this}pop(){try{for(;this.#i;){let e=this.#t[this.#f];if(this.#O(!0),this.#s(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#l){let e=this.#l,r;for(;r=e?.shift();)this.#a?.(...r)}}}#O(e){let r=this.#f,n=this.#o[r],s=this.#t[r];return this.#A&&this.#s(s)?s.__abortController.abort(new Error("evicted")):(this.#b||this.#d)&&(this.#b&&this.#e?.(s,n,"evict"),this.#d&&this.#l?.push([s,n,"evict"])),this.#k(r),e&&(this.#o[r]=void 0,this.#t[r]=void 0,this.#F.push(r)),this.#i===1?(this.#f=this.#c=0,this.#F.length=0):this.#f=this.#h[r],this.#u.delete(n),this.#i--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#u.get(e);if(i!==void 0){let u=this.#t[i];if(this.#s(u)&&u.__staleWhileFetching===void 0)return!1;if(this.#y(i))s&&(s.has="stale",this.#v(s,i));else return n&&this.#T(i),s&&(s.has="hit",this.#v(s,i)),!0}else s&&(s.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,s=this.#u.get(e);if(s===void 0||!n&&this.#y(s))return;let i=this.#t[s];return this.#s(i)?i.__staleWhileFetching:i}#B(e,r,n,s){let i=r===void 0?void 0:this.#t[r];if(this.#s(i))return i;let u=new An,{signal:a}=n;a?.addEventListener("abort",()=>u.abort(a.reason),{signal:u.signal});let c={signal:u.signal,options:n,context:s},f=o((D,E=!1)=>{let{aborted:C}=u.signal,T=n.ignoreFetchAbort&&D!==void 0;if(n.status&&(C&&!E?(n.status.fetchAborted=!0,n.status.fetchError=u.signal.reason,T&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),C&&!T&&!E)return g(u.signal.reason);let S=y;return this.#t[r]===y&&(D===void 0?S.__staleWhileFetching?this.#t[r]=S.__staleWhileFetching:this.#S(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,D,c.options))),D},"cb"),h=o(D=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=D),g(D)),"eb"),g=o(D=>{let{aborted:E}=u.signal,C=E&&n.allowStaleOnFetchAbort,T=C||n.allowStaleOnFetchRejection,S=T||n.noDeleteOnFetchRejection,P=y;if(this.#t[r]===y&&(!S||P.__staleWhileFetching===void 0?this.#S(e,"fetch"):C||(this.#t[r]=P.__staleWhileFetching)),T)return n.status&&P.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),P.__staleWhileFetching;if(P.__returned===P)throw D},"fetchFail"),m=o((D,E)=>{let C=this.#w?.(e,i,c);C&&C instanceof Promise&&C.then(T=>D(T===void 0?void 0:T),E),u.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(D(void 0),n.allowStaleOnFetchAbort&&(D=o(T=>f(T,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let y=new Promise(m).then(f,h),F=Object.assign(y,{__abortController:u,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(e,F,{...c.options,status:void 0}),r=this.#u.get(e)):this.#t[r]=F,F}#s(e){if(!this.#A)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof An}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:F=this.allowStaleOnFetchAbort,context:D,forceRefresh:E=!1,status:C,signal:T}=r;if(!this.#A)return C&&(C.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:C});let S={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:u,noDisposeOnSet:a,size:c,sizeCalculation:f,noUpdateTTL:h,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:F,ignoreFetchAbort:y,status:C,signal:T},P=this.#u.get(e);if(P===void 0){C&&(C.fetch="miss");let j=this.#B(e,P,S,D);return j.__returned=j}else{let j=this.#t[P];if(this.#s(j)){let M=n&&j.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",M&&(C.returnedStale=!0)),M?j.__staleWhileFetching:j.__returned=j}let X=this.#y(P);if(!E&&!X)return C&&(C.fetch="hit"),this.#P(P),s&&this.#T(P),C&&this.#v(C,P),j;let se=this.#B(e,P,S,D),O=se.__staleWhileFetching!==void 0&&n;return C&&(C.fetch=X?"stale":"refresh",O&&X&&(C.returnedStale=!0)),O?se.__staleWhileFetching:se.__returned=se}}async forceFetch(e,r={}){let n=await this.fetch(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let n=this.#g;if(!n)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:i,...u}=r,a=this.get(e,u);if(!i&&a!==void 0)return a;let c=n(e,a,{options:u,context:s});return this.set(e,c,u),c}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:u}=r,a=this.#u.get(e);if(a!==void 0){let c=this.#t[a],f=this.#s(c);return u&&this.#v(u,a),this.#y(a)?(u&&(u.get="stale"),f?(u&&n&&c.__staleWhileFetching!==void 0&&(u.returnedStale=!0),n?c.__staleWhileFetching:void 0):(i||this.#S(e,"expire"),u&&n&&(u.returnedStale=!0),n?c:void 0)):(u&&(u.get="hit"),f?c.__staleWhileFetching:(this.#P(a),s&&this.#T(a),c))}else u&&(u.get="miss")}#$(e,r){this.#p[r]=e,this.#h[e]=r}#P(e){e!==this.#c&&(e===this.#f?this.#f=this.#h[e]:this.#$(this.#p[e],this.#h[e]),this.#$(this.#c,e),this.#c=e)}delete(e){return this.#S(e,"delete")}#S(e,r){let n=!1;if(this.#i!==0){let s=this.#u.get(e);if(s!==void 0)if(n=!0,this.#i===1)this.#M(r);else{this.#k(s);let i=this.#t[s];if(this.#s(i)?i.__abortController.abort(new Error("deleted")):(this.#b||this.#d)&&(this.#b&&this.#e?.(i,e,r),this.#d&&this.#l?.push([i,e,r])),this.#u.delete(e),this.#o[s]=void 0,this.#t[s]=void 0,s===this.#c)this.#c=this.#p[s];else if(s===this.#f)this.#f=this.#h[s];else{let u=this.#p[s];this.#h[u]=this.#h[s];let a=this.#h[s];this.#p[a]=this.#p[s]}this.#i--,this.#F.push(s)}}if(this.#d&&this.#l?.length){let s=this.#l,i;for(;i=s?.shift();)this.#a?.(...i)}return n}clear(){return this.#M("delete")}#M(e){for(let r of this.#x({allowStale:!0})){let n=this.#t[r];if(this.#s(n))n.__abortController.abort(new Error("deleted"));else{let s=this.#o[r];this.#b&&this.#e?.(n,s,e),this.#d&&this.#l?.push([n,s,e])}}if(this.#u.clear(),this.#t.fill(void 0),this.#o.fill(void 0),this.#m&&this.#E&&(this.#m.fill(0),this.#E.fill(0)),this.#C&&this.#C.fill(0),this.#f=0,this.#c=0,this.#F.length=0,this.#D=0,this.#i=0,this.#d&&this.#l){let r=this.#l,n;for(;n=r?.shift();)this.#a?.(...n)}}};Tn.LRUCache=Xs});var Uc=w((F_,Mc)=>{"use strict";l();var q=o((...t)=>t.every(e=>e)?t.join(""):"","maybeJoin"),ne=o(t=>t?encodeURIComponent(t):"","maybeEncode"),$c=o(t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),"formatHashFragment"),_y={sshtemplate:o(({domain:t,user:e,project:r,committish:n})=>`git@${t}:${e}/${r}.git${q("#",n)}`,"sshtemplate"),sshurltemplate:o(({domain:t,user:e,project:r,committish:n})=>`git+ssh://git@${t}/${e}/${r}.git${q("#",n)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:r,committish:n,editpath:s,path:i})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n||"HEAD"),"/",i)}`,"edittemplate"),browsetemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s,path:i,fragment:u,hashformat:a})=>`https://${t}/${e}/${r}/${s}/${ne(n||"HEAD")}/${i}${q("#",a(u||""))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,user:e,project:r,committish:n,blobpath:s,path:i,fragment:u,hashformat:a})=>`https://${t}/${e}/${r}/${s}/${ne(n||"HEAD")}/${i}${q("#",a(u||""))}`,"browseblobtemplate"),docstemplate:o(({domain:t,user:e,project:r,treepath:n,committish:s})=>`https://${t}/${e}/${r}${q("/",n,"/",ne(s))}#readme`,"docstemplate"),httpstemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git+https://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"httpstemplate"),filetemplate:o(({domain:t,user:e,project:r,committish:n,path:s})=>`https://${t}/${e}/${r}/raw/${ne(n||"HEAD")}/${s}`,"filetemplate"),shortcuttemplate:o(({type:t,user:e,project:r,committish:n})=>`${t}:${e}/${r}${q("#",n)}`,"shortcuttemplate"),pathtemplate:o(({user:t,project:e,committish:r})=>`${t}/${e}${q("#",r)}`,"pathtemplate"),bugstemplate:o(({domain:t,user:e,project:r})=>`https://${t}/${e}/${r}/issues`,"bugstemplate"),hashformat:$c},it={};it.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:o(({auth:t,user:e,project:r,committish:n,path:s})=>`https://${q(t,"@")}raw.githubusercontent.com/${e}/${r}/${ne(n||"HEAD")}/${s}`,"filetemplate"),gittemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"gittemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://codeload.${t}/${e}/${r}/tar.gz/${ne(n||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,r,n,s]=t.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(s=t.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:s}},"extract")};it.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s,path:i,editpath:u})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n||"HEAD"),"/",i,u)}`,"edittemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/get/${ne(n||"HEAD")}.tar.gz`,"tarballtemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}},"extract")};it.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git+https://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"httpstemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/repository/archive.tar.gz?ref=${ne(n||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let r=e.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let s=r.join("/");if(!(!s||!n))return{user:s,project:n,committish:t.hash.slice(1)}},"extract")};it.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:o(({domain:t,project:e,committish:r})=>`git@${t}:${e}.git${q("#",r)}`,"sshtemplate"),sshurltemplate:o(({domain:t,project:e,committish:r})=>`git+ssh://git@${t}/${e}.git${q("#",r)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:r,committish:n,editpath:s})=>`https://${t}/${e}/${r}${q("/",ne(n))}/${s}`,"edittemplate"),browsetemplate:o(({domain:t,project:e,committish:r})=>`https://${t}/${e}${q("/",ne(r))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,project:e,committish:r,path:n,hashformat:s})=>`https://${t}/${e}${q("/",ne(r))}${q("#",s(n))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,project:e,committish:r,path:n,hashformat:s})=>`https://${t}/${e}${q("/",ne(r))}${q("#",s(n))}`,"browseblobtemplate"),docstemplate:o(({domain:t,project:e,committish:r})=>`https://${t}/${e}${q("/",ne(r))}`,"docstemplate"),httpstemplate:o(({domain:t,project:e,committish:r})=>`git+https://${t}/${e}.git${q("#",r)}`,"httpstemplate"),filetemplate:o(({user:t,project:e,committish:r,path:n})=>`https://gist.githubusercontent.com/${t}/${e}/raw${q("/",ne(r))}/${n}`,"filetemplate"),shortcuttemplate:o(({type:t,project:e,committish:r})=>`${t}:${e}${q("#",r)}`,"shortcuttemplate"),pathtemplate:o(({project:t,committish:e})=>`${t}${q("#",e)}`,"pathtemplate"),bugstemplate:o(({domain:t,project:e})=>`https://${t}/${e}`,"bugstemplate"),gittemplate:o(({domain:t,project:e,committish:r})=>`git://${t}/${e}.git${q("#",r)}`,"gittemplate"),tarballtemplate:o(({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${ne(e||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(n!=="raw"){if(!r){if(!e)return;r=e,e=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:e,project:r,committish:t.hash.slice(1)}}},"extract"),hashformat:o(function(t){return t&&"file-"+$c(t)},"hashformat")};it.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:o(({domain:t,user:e,project:r,committish:n,path:s})=>`https://${t}/${e}/${r}/blob/${ne(n)||"HEAD"}/${s}`,"filetemplate"),httpstemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}.git${q("#",n)}`,"httpstemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/archive/${ne(n)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:o(()=>null,"bugstemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}},"extract")};for(let[t,e]of Object.entries(it))it[t]=Object.assign({},_y,e);Mc.exports=it});var ei=w((b_,Gc)=>{l();var xy=L("url"),Qs=o((t,e,r)=>{let n=t.indexOf(r);return t.lastIndexOf(e,n>-1?n:1/0)},"lastIndexOfBefore"),qc=o(t=>{try{return new xy.URL(t)}catch{}},"safeUrl"),Sy=o((t,e)=>{let r=t.indexOf(":"),n=t.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(e,n))return t;let s=t.indexOf("@");return s>-1?s>r?`git+ssh://${t}`:t:t.indexOf("//")===r+1?t:`${t.slice(0,r+1)}//${t.slice(r+1)}`},"correctProtocol"),vy=o(t=>{let e=Qs(t,"@","#"),r=Qs(t,":","#");return r>e&&(t=t.slice(0,r)+"/"+t.slice(r+1)),Qs(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");Gc.exports=(t,e)=>{let r=e?Sy(t,e):t;return qc(r)||qc(vy(r))}});var zc=w((x_,Hc)=>{"use strict";l();var Ay=ei(),Ty=o(t=>{let e=t.indexOf("#"),r=t.indexOf("/"),n=t.indexOf("/",r+1),s=t.indexOf(":"),i=/\s/.exec(t),u=t.indexOf("@"),a=!i||e>-1&&i.index>e,c=u===-1||e>-1&&u>e,f=s===-1||e>-1&&s>e,h=n===-1||e>-1&&n>e,g=r>0,m=e>-1?t[e-1]!=="/":!t.endsWith("/"),y=!t.startsWith(".");return a&&g&&m&&y&&c&&f&&h},"isGitHubShorthand");Hc.exports=(t,e,{gitHosts:r,protocols:n})=>{if(!t)return;let s=Ty(t)?`github:${t}`:t,i=Ay(s,n);if(!i)return;let u=r.byShortcut[i.protocol],a=r.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],c=u||a;if(!c)return;let f=r[u||a],h=null;n[i.protocol]?.auth&&(i.username||i.password)&&(h=`${i.username}${i.password?":"+i.password:""}`);let g=null,m=null,y=null,F=null;try{if(u){let D=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,E=D.indexOf("@");E>-1&&(D=D.slice(E+1));let C=D.lastIndexOf("/");C>-1?(m=decodeURIComponent(D.slice(0,C)),m||(m=null),y=decodeURIComponent(D.slice(C+1))):y=decodeURIComponent(D),y.endsWith(".git")&&(y=y.slice(0,-4)),i.hash&&(g=decodeURIComponent(i.hash.slice(1))),F="shortcut"}else{if(!f.protocols.includes(i.protocol))return;let D=f.extract(i);if(!D)return;m=D.user&&decodeURIComponent(D.user),y=decodeURIComponent(D.project),g=decodeURIComponent(D.committish),F=n[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(D){if(D instanceof URIError)return;throw D}return[c,m,h,y,g,F,e]}});var Vc=w((A_,Wc)=>{"use strict";l();var{LRUCache:ky}=jc(),Py=Uc(),Ly=zc(),Oy=ei(),ti=new ky({max:1e3}),kn=class t{static{o(this,"GitHost")}constructor(e,r,n,s,i,u,a={}){Object.assign(this,t.#r[e],{type:e,user:r,auth:n,project:s,committish:i,default:u,opts:a})}static#r={byShortcut:{},byDomain:{}};static#n={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,r){t.#r[e]=r,t.#r.byDomain[r.domain]=e,t.#r.byShortcut[`${e}:`]=e,t.#n[`${e}:`]={name:e}}static fromUrl(e,r){if(typeof e!="string")return;let n=e+JSON.stringify(r||{});if(!ti.has(n)){let s=Ly(e,r,{gitHosts:t.#r,protocols:t.#n});ti.set(n,s?new t(...s):void 0)}return ti.get(n)}static parseUrl(e){return Oy(e)}#e(e,r){if(typeof e!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let s=e(n);return n.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#e(this.sshtemplate,e)}sshurl(e){return this.#e(this.sshurltemplate,e)}browse(e,...r){return typeof e!="string"?this.#e(this.browsetemplate,e):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:e}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:e})}browseFile(e,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:e}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:e})}docs(e){return this.#e(this.docstemplate,e)}bugs(e){return this.#e(this.bugstemplate,e)}https(e){return this.#e(this.httpstemplate,e)}git(e){return this.#e(this.gittemplate,e)}shortcut(e){return this.#e(this.shortcuttemplate,e)}path(e){return this.#e(this.pathtemplate,e)}tarball(e){return this.#e(this.tarballtemplate,{...e,noCommittish:!1})}file(e,r){return this.#e(this.filetemplate,{...r,path:e})}edit(e,r){return this.#e(this.edittemplate,{...r,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(Py))kn.addHost(t,e);Wc.exports=kn});var Yc=w((P_,Zc)=>{l();Zc.exports=By;function By(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
8
- `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let r=t.length,n=e+1;for(;n<r&&t[n].trim();)n++;return t.slice(e,n).join(" ").trim()}o(By,"extractDescription")});var Jc=w((B_,Ry)=>{Ry.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var el=w((R_,Qc)=>{l();var Ny=bd(),Iy=wd(),jy=Oc(),Pn=Vc(),$y=L("node:module"),My=["dependencies","devDependencies","optionalDependencies"],Uy=Yc(),ri=L("url"),ot=Jc(),Kc=o(t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf("."),"isEmail");Qc.exports={warn:o(function(){},"warn"),fixRepositoryField:o(function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var r=Pn.fromUrl(e);r&&(e=t.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},"fixRepositoryField"),fixTypos:o(function(t){Object.keys(ot.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,ot.topLevel[e])},this)},"fixTypos"),fixScriptsField:o(function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):ot.script[e]&&!t.scripts[ot.script[e]]&&this.warn("typo",e,ot.script[e],"scripts")},this)}},"fixScriptsField"),fixFilesField:o(function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},"fixFilesField"),fixBinField:o(function(t){if(t.bin&&typeof t.bin=="string"){var e={},r;(r=t.name.match(/^@[^/]+[/](.*)$/))?e[r[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},"fixBinField"),fixManField:o(function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},"fixManField"),fixBundleDependenciesField:o(function(t){var e="bundledDependencies",r="bundleDependencies";t[e]&&!t[r]&&(t[r]=t[e],delete t[e]),t[r]&&!Array.isArray(t[r])?(this.warn("nonArrayBundleDependencies"),delete t[r]):t[r]&&(t[r]=t[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),t.dependencies[n]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:o(function(t){Yy(t,this.warn),Vy(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(r){var n=t[e][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete t[e][r]);var s=Pn.fromUrl(t[e][r]);s&&(t[e][r]=s.toString())},this)}},this)},"fixDependencies"),fixModulesField:o(function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},"fixModulesField"),fixKeywordsField:o(function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:o(function(t,e){var r=!e;if(!t.version)return t.version="",!0;if(!Ny(t.version,r))throw new Error('Invalid version: "'+t.version+'"');return t.version=Iy(t.version,r),!0},"fixVersionField"),fixPeople:o(function(t){Xc(t,zy),Xc(t,Wy)},"fixPeople"),fixNameField:o(function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var r=e.strict;if(!t.name&&!r){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");r||(t.name=t.name.trim()),Hy(t.name,r,e.allowLegacyCase),$y.builtinModules.includes(t.name)&&this.warn("conflictingName",t.name)},"fixNameField"),fixDescriptionField:o(function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Uy(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:o(function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:o(function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Pn.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Kc(t.bugs)?t.bugs={email:t.bugs}:ri.parse(t.bugs).protocol?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{Jy(t.bugs,this.warn);var r=t.bugs;t.bugs={},r.url&&(typeof r.url=="string"&&ri.parse(r.url).protocol?t.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Kc(r.email)?t.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:o(function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Pn.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;ri.parse(t.homepage).protocol||(t.homepage="http://"+t.homepage)}},"fixHomepageField"),fixLicenseField:o(function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!jy(e).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function qy(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}o(qy,"isValidScopedPackageName");function Gy(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}o(Gy,"isCorrectlyEncodedName");function Hy(t,e,r){if(t.charAt(0)==="."||!(qy(t)||Gy(t))||e&&!r&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}o(Hy,"ensureValidName");function Xc(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(t[r])&&(t[r]=t[r].map(e))}),t}o(Xc,"modifyPeople");function zy(t){if(typeof t=="string")return t;var e=t.name||"",r=t.url||t.web,n=r?" ("+r+")":"",s=t.email||t.mail,i=s?" <"+s+">":"";return e+i+n}o(zy,"unParsePerson");function Wy(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),s={};return e&&e[0].trim()&&(s.name=e[0].trim()),n&&(s.email=n[1]),r&&(s.url=r[1]),s}o(Wy,"parsePerson");function Vy(t){var e=t.optionalDependencies;if(e){var r=t.dependencies||{};Object.keys(e).forEach(function(n){r[n]=e[n]}),t.dependencies=r}}o(Vy,"addOptionalDepsToDeps");function Zy(t,e,r){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;r("deprecatedArrayDependencies",e);var n={};return t.filter(function(s){return typeof s=="string"}).forEach(function(s){s=s.trim().split(/(:?[@\s><=])/);var i=s.shift(),u=s.join("");u=u.trim(),u=u.replace(/^@/,""),n[i]=u}),n}o(Zy,"depObjectify");function Yy(t,e){My.forEach(function(r){t[r]&&(t[r]=Zy(t[r],r,e))})}o(Yy,"objectifyDeps");function Jy(t,e){t&&Object.keys(t).forEach(function(r){ot.bugs[r]&&(e("typo",r,ot.bugs[r],"bugs"),t[ot.bugs[r]]=t[r],delete t[r])})}o(Jy,"bugsTypos")});var tl=w((j_,Ky)=>{Ky.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var sl=w(($_,nl)=>{l();var rl=L("util"),ni=tl();nl.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return Xy.apply(null,t);var r=ni[e]?ni[e]:e+": '%s'";return t.unshift(r),rl.format.apply(null,t)};function Xy(t,e,r){return r&&(t=r+"['"+t+"']",e=r+"['"+e+"']"),rl.format(ni.typo,t,e)}o(Xy,"makeTypoWarning")});var al=w((q_,ul)=>{l();ul.exports=il;var si=el();il.fixer=si;var Qy=sl(),e0=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],t0=["dependencies","people","typos"],ii=e0.map(function(t){return ol(t)+"Field"});ii=ii.concat(t0);function il(t,e,r){e===!0&&(e=null,r=!0),r||(r=!1),(!e||t.private)&&(e=o(function(){},"warn")),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),si.warn=function(){e(Qy.apply(null,arguments))},ii.forEach(function(n){si["fix"+ol(n)](t,r)}),t._id=t.name+"@"+t.version}o(il,"normalize");function ol(t){return t.charAt(0).toUpperCase()+t.slice(1)}o(ol,"ucFirst")});var Pl=w((NS,kl)=>{l();kl.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Ol=w((cv,k0)=>{k0.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 vi=w((lv,Si)=>{"use strict";l();var Bl=Ol();Si.exports=Bl;Si.exports.default=Bl});var Ml=w((pv,$l)=>{"use strict";l();$l.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 ql=w((yv,Ul)=>{"use strict";l();var I0=Ml();Ul.exports=t=>typeof t=="string"?t.replace(I0(),""):t});var Hl=w((Fv,ki)=>{"use strict";l();var Gl=o(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),"isFullwidthCodePoint");ki.exports=Gl;ki.exports.default=Gl});var Wl=w((bv,zl)=>{"use strict";l();zl.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 Zl=w((_v,Pi)=>{"use strict";l();var j0=ql(),$0=Hl(),M0=Wl(),Vl=o(t=>{if(typeof t!="string"||t.length===0||(t=j0(t),t.length===0))return 0;t=t.replace(M0()," ");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+=$0(n)?2:1)}return e},"stringWidth");Pi.exports=Vl;Pi.exports.default=Vl});var Jl=w((vv,Yl)=>{"use strict";l();var U0=Zl();function Bt(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
9
- `,s=e.pad||" ",i=r!=="right"?q0:G0,u=!1;Array.isArray(t)||(u=!0,t=String(t).split(n));let a,c=0;return t=t.map(function(f){return f=String(f),a=U0(f),c=Math.max(a,c),{str:f,width:a}}).map(function(f){return new Array(i(c,f.width)+1).join(s)+f.str}),u?t.join(n):t}o(Bt,"ansiAlign");Bt.left=o(function(e){return Bt(e,{align:"left"})},"left");Bt.center=o(function(e){return Bt(e,{align:"center"})},"center");Bt.right=o(function(e){return Bt(e,{align:"right"})},"right");Yl.exports=Bt;function q0(t,e){return Math.floor((t-e)/2)}o(q0,"halfDiff");function G0(t,e){return t-e}o(G0,"fullDiff")});var yf=w(Ir=>{"use strict";l();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.dedent=void 0;function mf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var s=n.reduce(function(a,c){var f=c.match(/\n([\t ]+|(?!\s).)/g);return f?a.concat(f.map(function(h){var g,m;return(m=(g=h.match(/[\t ]/g))===null||g===void 0?void 0:g.length)!==null&&m!==void 0?m:0})):a},[]);if(s.length){var i=new RegExp(`
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:s}=Lr.checkPathsSync(t,e,"copy",r);if(Lr.checkParentPathsSync(t,n,e,"copy"),r.filter&&!r.filter(t,e))return;let i=Pr.dirname(e);return Fe.existsSync(i)||Ip(i),Ku(s,t,e,r)}o($p,"copySync");function Ku(t,e,r,n){let i=(n.dereference?Fe.statSync:Fe.lstatSync)(e);if(i.isDirectory())return Wp(i,t,e,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return Mp(i,t,e,r,n);if(i.isSymbolicLink())return Yp(t,e,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(Ku,"getStats");function Mp(t,e,r,n,s){return e?Up(t,r,n,s):Xu(t,r,n,s)}o(Mp,"onFile");function Up(t,e,r,n){if(n.overwrite)return Fe.unlinkSync(r),Xu(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}o(Up,"mayCopyFile");function Xu(t,e,r,n){return Fe.copyFileSync(e,r),n.preserveTimestamps&&qp(t.mode,e,r),qs(r,t.mode)}o(Xu,"copyFile");function qp(t,e,r){return Gp(t)&&Hp(r,t),zp(e,r)}o(qp,"handleTimestamps");function Gp(t){return(t&128)===0}o(Gp,"fileIsNotWritable");function Hp(t,e){return qs(t,e|128)}o(Hp,"makeFileWritable");function qs(t,e){return Fe.chmodSync(t,e)}o(qs,"setDestMode");function zp(t,e){let r=Fe.statSync(t);return jp(e,r.atime,r.mtime)}o(zp,"setDestTimestamps");function Wp(t,e,r,n,s){return e?Qu(r,n,s):Vp(t.mode,r,n,s)}o(Wp,"onDir");function Vp(t,e,r,n){return Fe.mkdirSync(r),Qu(e,r,n),qs(r,t)}o(Vp,"mkDirAndCopy");function Qu(t,e,r){let n=Fe.opendirSync(t);try{let s;for(;(s=n.readSync())!==null;)Zp(s.name,t,e,r)}finally{n.closeSync()}}o(Qu,"copyDir");function Zp(t,e,r,n){let s=Pr.join(e,t),i=Pr.join(r,t);if(n.filter&&!n.filter(s,i))return;let{destStat:u}=Lr.checkPathsSync(s,i,"copy",n);return Ku(u,s,i,n)}o(Zp,"copyDirItem");function Yp(t,e,r,n){let s=Fe.readlinkSync(e);if(n.dereference&&(s=Pr.resolve(process.cwd(),s)),t){let i;try{i=Fe.readlinkSync(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return Fe.symlinkSync(s,r);throw u}if(n.dereference&&(i=Pr.resolve(process.cwd(),i)),Lr.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(Lr.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return Jp(s,r)}else return Fe.symlinkSync(s,r)}o(Yp,"onLink");function Jp(t,e){return Fe.unlinkSync(e),Fe.symlinkSync(t,e)}o(Jp,"copyLink");ea.exports=$p});var bn=w((Kw,ra)=>{"use strict";l();var Kp=oe().fromPromise;ra.exports={copy:Kp(Ju()),copySync:ta()}});var Or=w((Qw,sa)=>{"use strict";l();var na=Xt(),Xp=oe().fromCallback;function Qp(t,e){na.rm(t,{recursive:!0,force:!0},e)}o(Qp,"remove");function em(t){na.rmSync(t,{recursive:!0,force:!0})}o(em,"removeSync");sa.exports={remove:Xp(Qp),removeSync:em}});var ha=w((r2,fa)=>{"use strict";l();var tm=oe().fromPromise,ua=ge(),aa=L("path"),ca=Re(),la=Or(),ia=tm(o(async function(e){let r;try{r=await ua.readdir(e)}catch{return ca.mkdirs(e)}return Promise.all(r.map(n=>la.remove(aa.join(e,n))))},"emptyDir"));function oa(t){let e;try{e=ua.readdirSync(t)}catch{return ca.mkdirsSync(t)}e.forEach(r=>{r=aa.join(t,r),la.removeSync(r)})}o(oa,"emptyDirSync");fa.exports={emptyDirSync:oa,emptydirSync:oa,emptyDir:ia,emptydir:ia}});var ma=w((i2,pa)=>{"use strict";l();var rm=oe().fromPromise,da=L("path"),Ye=ge(),Da=Re();async function nm(t){let e;try{e=await Ye.stat(t)}catch{}if(e&&e.isFile())return;let r=da.dirname(t),n=null;try{n=await Ye.stat(r)}catch(s){if(s.code==="ENOENT"){await Da.mkdirs(r),await Ye.writeFile(t,"");return}else throw s}n.isDirectory()?await Ye.writeFile(t,""):await Ye.readdir(r)}o(nm,"createFile");function sm(t){let e;try{e=Ye.statSync(t)}catch{}if(e&&e.isFile())return;let r=da.dirname(t);try{Ye.statSync(r).isDirectory()||Ye.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Da.mkdirsSync(r);else throw n}Ye.writeFileSync(t,"")}o(sm,"createFileSync");pa.exports={createFile:rm(nm),createFileSync:sm}});var Ea=w((a2,Ca)=>{"use strict";l();var im=oe().fromPromise,ya=L("path"),rt=ge(),ga=Re(),{pathExists:om}=tt(),{areIdentical:Fa}=Pt();async function um(t,e){let r;try{r=await rt.lstat(e)}catch{}let n;try{n=await rt.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}if(r&&Fa(n,r))return;let s=ya.dirname(e);await om(s)||await ga.mkdirs(s),await rt.link(t,e)}o(um,"createLink");function am(t,e){let r;try{r=rt.lstatSync(e)}catch{}try{let i=rt.lstatSync(t);if(r&&Fa(i,r))return}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let n=ya.dirname(e);return rt.existsSync(n)||ga.mkdirsSync(n),rt.linkSync(t,e)}o(am,"createLinkSync");Ca.exports={createLink:im(um),createLinkSync:am}});var wa=w((f2,ba)=>{"use strict";l();var nt=L("path"),Br=ge(),{pathExists:cm}=tt(),lm=oe().fromPromise;async function fm(t,e){if(nt.isAbsolute(t)){try{await Br.lstat(t)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:t,toDst:t}}let r=nt.dirname(e),n=nt.join(r,t);if(await cm(n))return{toCwd:n,toDst:t};try{await Br.lstat(t)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:t,toDst:nt.relative(r,t)}}o(fm,"symlinkPaths");function hm(t,e){if(nt.isAbsolute(t)){if(!Br.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let r=nt.dirname(e),n=nt.join(r,t);if(Br.existsSync(n))return{toCwd:n,toDst:t};if(!Br.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:nt.relative(r,t)}}o(hm,"symlinkPathsSync");ba.exports={symlinkPaths:lm(fm),symlinkPathsSync:hm}});var Sa=w((D2,xa)=>{"use strict";l();var _a=ge(),dm=oe().fromPromise;async function Dm(t,e){if(e)return e;let r;try{r=await _a.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}o(Dm,"symlinkType");function pm(t,e){if(e)return e;let r;try{r=_a.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}o(pm,"symlinkTypeSync");xa.exports={symlinkType:dm(Dm),symlinkTypeSync:pm}});var ka=w((y2,Ta)=>{"use strict";l();var mm=oe().fromPromise,va=L("path"),Ue=ge(),{mkdirs:ym,mkdirsSync:gm}=Re(),{symlinkPaths:Fm,symlinkPathsSync:Cm}=wa(),{symlinkType:Em,symlinkTypeSync:bm}=Sa(),{pathExists:wm}=tt(),{areIdentical:Aa}=Pt();async function _m(t,e,r){let n;try{n=await Ue.lstat(e)}catch{}if(n&&n.isSymbolicLink()){let[a,c]=await Promise.all([Ue.stat(t),Ue.stat(e)]);if(Aa(a,c))return}let s=await Fm(t,e);t=s.toDst;let i=await Em(s.toCwd,r),u=va.dirname(e);return await wm(u)||await ym(u),Ue.symlink(t,e,i)}o(_m,"createSymlink");function xm(t,e,r){let n;try{n=Ue.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let a=Ue.statSync(t),c=Ue.statSync(e);if(Aa(a,c))return}let s=Cm(t,e);t=s.toDst,r=bm(s.toCwd,r);let i=va.dirname(e);return Ue.existsSync(i)||gm(i),Ue.symlinkSync(t,e,r)}o(xm,"createSymlinkSync");Ta.exports={createSymlink:mm(_m),createSymlinkSync:xm}});var ja=w((C2,Ia)=>{"use strict";l();var{createFile:Pa,createFileSync:La}=ma(),{createLink:Oa,createLinkSync:Ba}=Ea(),{createSymlink:Ra,createSymlinkSync:Na}=ka();Ia.exports={createFile:Pa,createFileSync:La,ensureFile:Pa,ensureFileSync:La,createLink:Oa,createLinkSync:Ba,ensureLink:Oa,ensureLinkSync:Ba,createSymlink:Ra,createSymlinkSync:Na,ensureSymlink:Ra,ensureSymlinkSync:Na}});var wn=w((b2,$a)=>{l();function Sm(t,{EOL:e=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:s}={}){let i=r?e:"";return JSON.stringify(t,n,s).replace(/\n/g,e)+i}o(Sm,"stringify");function vm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}o(vm,"stripBom");$a.exports={stringify:Sm,stripBom:vm}});var Ga=w((x2,qa)=>{l();var tr;try{tr=Xt()}catch{tr=L("fs")}var _n=oe(),{stringify:Ma,stripBom:Ua}=wn();async function Am(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||tr,n="throws"in e?e.throws:!0,s=await _n.fromCallback(r.readFile)(t,e);s=Ua(s);let i;try{i=JSON.parse(s,e?e.reviver:null)}catch(u){if(n)throw u.message=`${t}: ${u.message}`,u;return null}return i}o(Am,"_readFile");var Tm=_n.fromPromise(Am);function km(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||tr,n="throws"in e?e.throws:!0;try{let s=r.readFileSync(t,e);return s=Ua(s),JSON.parse(s,e.reviver)}catch(s){if(n)throw s.message=`${t}: ${s.message}`,s;return null}}o(km,"readFileSync");async function Pm(t,e,r={}){let n=r.fs||tr,s=Ma(e,r);await _n.fromCallback(n.writeFile)(t,s,r)}o(Pm,"_writeFile");var Lm=_n.fromPromise(Pm);function Om(t,e,r={}){let n=r.fs||tr,s=Ma(e,r);return n.writeFileSync(t,s,r)}o(Om,"writeFileSync");var Bm={readFile:Tm,readFileSync:km,writeFile:Lm,writeFileSync:Om};qa.exports=Bm});var za=w((A2,Ha)=>{"use strict";l();var xn=Ga();Ha.exports={readJson:xn.readFile,readJsonSync:xn.readFileSync,writeJson:xn.writeFile,writeJsonSync:xn.writeFileSync}});var Sn=w((k2,Za)=>{"use strict";l();var Rm=oe().fromPromise,Gs=ge(),Wa=L("path"),Va=Re(),Nm=tt().pathExists;async function Im(t,e,r="utf-8"){let n=Wa.dirname(t);return await Nm(n)||await Va.mkdirs(n),Gs.writeFile(t,e,r)}o(Im,"outputFile");function jm(t,...e){let r=Wa.dirname(t);Gs.existsSync(r)||Va.mkdirsSync(r),Gs.writeFileSync(t,...e)}o(jm,"outputFileSync");Za.exports={outputFile:Rm(Im),outputFileSync:jm}});var Ja=w((O2,Ya)=>{"use strict";l();var{stringify:$m}=wn(),{outputFile:Mm}=Sn();async function Um(t,e,r={}){let n=$m(e,r);await Mm(t,n,r)}o(Um,"outputJson");Ya.exports=Um});var Xa=w((N2,Ka)=>{"use strict";l();var{stringify:qm}=wn(),{outputFileSync:Gm}=Sn();function Hm(t,e,r){let n=qm(e,r);Gm(t,n,r)}o(Hm,"outputJsonSync");Ka.exports=Hm});var ec=w(($2,Qa)=>{"use strict";l();var zm=oe().fromPromise,Ce=za();Ce.outputJson=zm(Ja());Ce.outputJsonSync=Xa();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;Qa.exports=Ce});var ic=w((U2,sc)=>{"use strict";l();var Wm=ge(),tc=L("path"),{copy:Vm}=bn(),{remove:nc}=Or(),{mkdirp:Zm}=Re(),{pathExists:Ym}=tt(),rc=Pt();async function Jm(t,e,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:i=!1}=await rc.checkPaths(t,e,"move",r);await rc.checkParentPaths(t,s,e,"move");let u=tc.dirname(e);return tc.parse(u).root!==u&&await Zm(u),Km(t,e,n,i)}o(Jm,"move");async function Km(t,e,r,n){if(!n){if(r)await nc(e);else if(await Ym(e))throw new Error("dest already exists.")}try{await Wm.rename(t,e)}catch(s){if(s.code!=="EXDEV")throw s;await Xm(t,e,r)}}o(Km,"doRename");async function Xm(t,e,r){return await Vm(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),nc(t)}o(Xm,"moveAcrossDevice");sc.exports=Jm});var lc=w((H2,cc)=>{"use strict";l();var uc=Xt(),zs=L("path"),Qm=bn().copySync,ac=Or().removeSync,ey=Re().mkdirpSync,oc=Pt();function ty(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:i=!1}=oc.checkPathsSync(t,e,"move",r);return oc.checkParentPathsSync(t,s,e,"move"),ry(e)||ey(zs.dirname(e)),ny(t,e,n,i)}o(ty,"moveSync");function ry(t){let e=zs.dirname(t);return zs.parse(e).root===e}o(ry,"isParentRoot");function ny(t,e,r,n){if(n)return Hs(t,e,r);if(r)return ac(e),Hs(t,e,r);if(uc.existsSync(e))throw new Error("dest already exists.");return Hs(t,e,r)}o(ny,"doRename");function Hs(t,e,r){try{uc.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return sy(t,e,r)}}o(Hs,"rename");function sy(t,e,r){return Qm(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),ac(t)}o(sy,"moveAcrossDevice");cc.exports=ty});var hc=w((V2,fc)=>{"use strict";l();var iy=oe().fromPromise;fc.exports={move:iy(ic()),moveSync:lc()}});var Dc=w((Y2,dc)=>{"use strict";l();dc.exports={...ge(),...bn(),...ha(),...ja(),...ec(),...Re(),...hc(),...Sn(),...tt(),...Or()}});var Ws=w((K2,oy)=>{oy.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var pc=w((X2,uy)=>{uy.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var mc=w((Q2,ay)=>{ay.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var gc=w((e_,yc)=>{"use strict";l();var cy=[].concat(Ws()).concat(pc()),ly=mc();yc.exports=function(t){var e=0;function r(){return e<t.length}o(r,"hasMore");function n(F){if(F instanceof RegExp){var D=t.slice(e),E=D.match(F);if(E)return e+=E[0].length,E[0]}else if(t.indexOf(F,e)===e)return e+=F.length,F}o(n,"read");function s(){n(/[ ]*/)}o(s,"skipWhitespace");function i(){for(var F,D=["WITH","AND","OR","(",")",":","+"],E=0;E<D.length&&(F=n(D[E]),!F);E++);if(F==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return F&&{type:"OPERATOR",string:F}}o(i,"operator");function u(){return n(/[A-Za-z0-9-.]+/)}o(u,"idstring");function a(){var F=u();if(!F)throw new Error("Expected idstring at offset "+e);return F}o(a,"expectIdstring");function c(){if(n("DocumentRef-")){var F=a();return{type:"DOCUMENTREF",string:F}}}o(c,"documentRef");function f(){if(n("LicenseRef-")){var F=a();return{type:"LICENSEREF",string:F}}}o(f,"licenseRef");function h(){var F=e,D=u();if(cy.indexOf(D)!==-1)return{type:"LICENSE",string:D};if(ly.indexOf(D)!==-1)return{type:"EXCEPTION",string:D};e=F}o(h,"identifier");function g(){return i()||c()||f()||h()}o(g,"parseToken");for(var m=[];r()&&(s(),!!r());){var y=g();if(!y)throw new Error("Unexpected `"+t[e]+"` at offset "+e);m.push(y)}return m}});var Cc=w((n_,Fc)=>{"use strict";l();Fc.exports=function(t){var e=0;function r(){return e<t.length}o(r,"hasMore");function n(){return r()?t[e]:null}o(n,"token");function s(){if(!r())throw new Error;e++}o(s,"next");function i(D){var E=n();if(E&&E.type==="OPERATOR"&&D===E.string)return s(),E.string}o(i,"parseOperator");function u(){if(i("WITH")){var D=n();if(D&&D.type==="EXCEPTION")return s(),D.string;throw new Error("Expected exception after `WITH`")}}o(u,"parseWith");function a(){var D=e,E="",C=n();if(C.type==="DOCUMENTREF"&&(s(),E+="DocumentRef-"+C.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(C=n(),C.type==="LICENSEREF")return s(),E+="LicenseRef-"+C.string,{license:E};e=D}o(a,"parseLicenseRef");function c(){var D=n();if(D&&D.type==="LICENSE"){s();var E={license:D.string};i("+")&&(E.plus=!0);var C=u();return C&&(E.exception=C),E}}o(c,"parseLicense");function f(){var D=i("(");if(D){var E=y();if(!i(")"))throw new Error("Expected `)`");return E}}o(f,"parseParenthesizedExpression");function h(){return f()||a()||c()}o(h,"parseAtom");function g(D,E){return o(function C(){var T=E();if(T){if(!i(D))return T;var S=C();if(!S)throw new Error("Expected expression");return{left:T,conjunction:D.toLowerCase(),right:S}}},"parseBinaryOp")}o(g,"makeBinaryOpParser");var m=g("AND",h),y=g("OR",m),F=y();if(!F||r())throw new Error("Syntax error");return F}});var Vs=w((o_,Ec)=>{"use strict";l();var fy=gc(),hy=Cc();Ec.exports=function(t){return hy(fy(t))}});var kc=w((a_,Tc)=>{l();var dy=Vs(),Dy=Ws();function vn(t){try{return dy(t),!0}catch{return!1}}o(vn,"valid");function Ac(t,e){var r=e[0].length-t[0].length;return r!==0?r:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}o(Ac,"sortTranspositions");var bc=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Ac),py=0,my=1,wc=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Zs=Dy.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var r=e[1];return t[r]=t[r]||[],t[r].push(e[0]),t},{}),yy=Object.keys(Zs).map(o(function(e){return[e,Zs[e]]},"makeEntries")).filter(o(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"},"identifySoleVersions")).map(o(function(e){return[e[0],e[1][0]]},"createLastResorts"));Zs=void 0;var _c=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(yy).sort(Ac),gy=0,Fy=1,xc=o(function(t){for(var e=0;e<wc.length;e++){var r=wc[e](t).trim();if(r!==t&&vn(r))return r}return null},"validTransformation"),Sc=o(function(t){for(var e=t.toUpperCase(),r=0;r<_c.length;r++){var n=_c[r];if(e.indexOf(n[gy])>-1)return n[Fy]}return null},"validLastResort"),vc=o(function(t,e){for(var r=0;r<bc.length;r++){var n=bc[r],s=n[py];if(t.indexOf(s)>-1){var i=t.replace(s,n[my]),u=e(i);if(u!==null)return u}}return null},"anyCorrection");Tc.exports=function(t,e){e=e||{};var r=e.upgrade===void 0?!0:!!e.upgrade;function n(a){return r?Cy(a):a}o(n,"postprocess");var s=typeof t=="string"&&t.trim().length!==0;if(!s)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),vn(t))return n(t);var i=t.replace(/\+$/,"").trim();if(vn(i))return n(i);var u=xc(t);return u!==null||(u=vc(t,function(a){return vn(a)?a:xc(a)}),u!==null)||(u=Sc(t),u!==null)||(u=vc(t,Sc),u!==null)?n(u):null};function Cy(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}o(Cy,"upgradeGPLs")});var Bc=w((f_,Oc)=>{l();var Ey=Vs(),by=kc(),Pc='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',wy=/^SEE LICEN[CS]E IN (.+)$/;function Lc(t,e){return e.slice(0,t.length)===t}o(Lc,"startsWith");function Ys(t){if(t.hasOwnProperty("license")){var e=t.license;return Lc("LicenseRef",e)||Lc("DocumentRef",e)}else return Ys(t.left)||Ys(t.right)}o(Ys,"usesLicenseRef");Oc.exports=function(t){var e;try{e=Ey(t)}catch{var r;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=wy.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Pc]};if(t.trim().length!==0){var s=by(t);s&&n.warnings.push('license is similar to the valid expression "'+s+'"')}return n}return Ys(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Pc]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var $c=w(Tn=>{"use strict";l();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LRUCache=void 0;var rr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Nc=new Set,Js=typeof process=="object"&&process?process:{},Ic=o((t,e,r,n)=>{typeof Js.emitWarning=="function"?Js.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),An=globalThis.AbortController,Rc=globalThis.AbortSignal;if(typeof An>"u"){Rc=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},An=class{static{o(this,"AbortController")}constructor(){e()}signal=new Rc;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=Js.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,Ic("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var _y=o(t=>!Nc.has(t),"shouldWarn"),m_=Symbol("type"),st=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),jc=o(t=>st(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?nr:null:null,"getUintArray"),nr=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},Ks=class t{static{o(this,"Stack")}heap;length;static#r=!1;static create(e){let r=jc(e);if(!r)return[];t.#r=!0;let n=new t(e,r);return t.#r=!1,n}constructor(e,r){if(!t.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Xs=class t{static{o(this,"LRUCache")}#r;#n;#e;#a;#w;#g;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#D;#u;#o;#t;#h;#p;#f;#c;#F;#l;#C;#E;#m;#b;#A;#d;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#m,sizes:e.#C,keyMap:e.#u,keyList:e.#o,valList:e.#t,next:e.#h,prev:e.#p,get head(){return e.#f},get tail(){return e.#c},free:e.#F,isBackgroundFetch:o(r=>e.#s(r),"isBackgroundFetch"),backgroundFetch:o((r,n,s,i)=>e.#B(r,n,s,i),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#_(r),"indexes"),rindexes:o(r=>e.#x(r),"rindexes"),isStale:o(r=>e.#y(r),"isStale")}}get max(){return this.#r}get maxSize(){return this.#n}get calculatedSize(){return this.#D}get size(){return this.#i}get fetchMethod(){return this.#w}get memoMethod(){return this.#g}get dispose(){return this.#e}get disposeAfter(){return this.#a}constructor(e){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:u,updateAgeOnHas:a,allowStale:c,dispose:f,disposeAfter:h,noDisposeOnSet:g,noUpdateTTL:m,maxSize:y=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:E,memoMethod:C,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:j,ignoreFetchAbort:X}=e;if(r!==0&&!st(r))throw new TypeError("max option must be a nonnegative integer");let se=r?jc(r):Array;if(!se)throw new Error("invalid max value: "+r);if(this.#r=r,this.#n=y,this.maxEntrySize=F||this.#n,this.sizeCalculation=D,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#g=C,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=E,this.#A=!!E,this.#u=new Map,this.#o=new Array(r).fill(void 0),this.#t=new Array(r).fill(void 0),this.#h=new se(r),this.#p=new se(r),this.#f=0,this.#c=0,this.#F=Ks.create(r),this.#i=0,this.#D=0,typeof f=="function"&&(this.#e=f),typeof h=="function"?(this.#a=h,this.#l=[]):(this.#a=void 0,this.#l=void 0),this.#b=!!this.#e,this.#d=!!this.#a,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!j,this.ignoreFetchAbort=!!X,this.maxEntrySize!==0){if(this.#n!==0&&!st(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!st(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!u,this.updateAgeOnHas=!!a,this.ttlResolution=st(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!st(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#r===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#n){let je="LRU_CACHE_UNBOUNDED";_y(je)&&(Nc.add(je),Ic("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",je,t))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#R(){let e=new nr(this.#r),r=new nr(this.#r);this.#m=e,this.#E=r,this.#N=(i,u,a=rr.now())=>{if(r[i]=u!==0?a:0,e[i]=u,u!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(i)&&this.#S(this.#o[i],"expire")},u+1);c.unref&&c.unref()}},this.#T=i=>{r[i]=e[i]!==0?rr.now():0},this.#v=(i,u)=>{if(e[u]){let a=e[u],c=r[u];if(!a||!c)return;i.ttl=a,i.start=c,i.now=n||s();let f=i.now-c;i.remainingTTL=a-f}};let n=0,s=o(()=>{let i=rr.now();if(this.ttlResolution>0){n=i;let u=setTimeout(()=>n=0,this.ttlResolution);u.unref&&u.unref()}return i},"getNow");this.getRemainingTTL=i=>{let u=this.#u.get(i);if(u===void 0)return 0;let a=e[u],c=r[u];if(!a||!c)return 1/0;let f=(n||s())-c;return a-f},this.#y=i=>{let u=r[i],a=e[i];return!!a&&!!u&&(n||s())-u>a}}#T=o(()=>{},"#updateItemAge");#v=o(()=>{},"#statusTTL");#N=o(()=>{},"#setItemTTL");#y=o(()=>!1,"#isStale");#U(){let e=new nr(this.#r);this.#D=0,this.#C=e,this.#k=r=>{this.#D-=e[r],e[r]=0},this.#I=(r,n,s,i)=>{if(this.#s(n))return 0;if(!st(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!st(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#L=(r,n,s)=>{if(e[r]=n,this.#n){let i=this.#n-e[r];for(;this.#D>i;)this.#O(!0)}this.#D+=e[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#D)}}#k=o(e=>{},"#removeItemSize");#L=o((e,r,n)=>{},"#addItemSize");#I=o((e,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#_({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#c;!(!this.#j(r)||((e||!this.#y(r))&&(yield r),r===this.#f));)r=this.#p[r]}*#x({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#f;!(!this.#j(r)||((e||!this.#y(r))&&(yield r),r===this.#c));)r=this.#h[r]}#j(e){return e!==void 0&&this.#u.get(this.#o[e])===e}*entries(){for(let e of this.#_())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#s(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*rentries(){for(let e of this.#x())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#s(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*keys(){for(let e of this.#_()){let r=this.#o[e];r!==void 0&&!this.#s(this.#t[e])&&(yield r)}}*rkeys(){for(let e of this.#x()){let r=this.#o[e];r!==void 0&&!this.#s(this.#t[e])&&(yield r)}}*values(){for(let e of this.#_())this.#t[e]!==void 0&&!this.#s(this.#t[e])&&(yield this.#t[e])}*rvalues(){for(let e of this.#x())this.#t[e]!==void 0&&!this.#s(this.#t[e])&&(yield this.#t[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#_()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;if(i!==void 0&&e(i,this.#o[n],this))return this.get(this.#o[n],r)}}forEach(e,r=this){for(let n of this.#_()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#o[n],this)}}rforEach(e,r=this){for(let n of this.#x()){let s=this.#t[n],i=this.#s(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#o[n],this)}}purgeStale(){let e=!1;for(let r of this.#x({allowStale:!0}))this.#y(r)&&(this.#S(this.#o[r],"expire"),e=!0);return e}info(e){let r=this.#u.get(e);if(r===void 0)return;let n=this.#t[r],s=this.#s(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#m&&this.#E){let u=this.#m[r],a=this.#E[r];if(u&&a){let c=u-(rr.now()-a);i.ttl=c,i.start=Date.now()}}return this.#C&&(i.size=this.#C[r]),i}dump(){let e=[];for(let r of this.#_({allowStale:!0})){let n=this.#o[r],s=this.#t[r],i=this.#s(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let u={value:i};if(this.#m&&this.#E){u.ttl=this.#m[r];let a=rr.now()-this.#E[r];u.start=Math.floor(Date.now()-a)}this.#C&&(u.size=this.#C[r]),e.unshift([n,u])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let s=Date.now()-n.start;n.start=rr.now()-s}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,{noUpdateTTL:f=this.noUpdateTTL}=n,h=this.#I(e,r,n.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#S(e,"set"),this;let g=this.#i===0?void 0:this.#u.get(e);if(g===void 0)g=this.#i===0?this.#c:this.#F.length!==0?this.#F.pop():this.#i===this.#r?this.#O(!1):this.#i,this.#o[g]=e,this.#t[g]=r,this.#u.set(e,g),this.#h[this.#c]=g,this.#p[g]=this.#c,this.#c=g,this.#i++,this.#L(g,h,c),c&&(c.set="add"),f=!1;else{this.#P(g);let m=this.#t[g];if(r!==m){if(this.#A&&this.#s(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=m;y!==void 0&&!u&&(this.#b&&this.#e?.(y,e,"set"),this.#d&&this.#l?.push([y,e,"set"]))}else u||(this.#b&&this.#e?.(m,e,"set"),this.#d&&this.#l?.push([m,e,"set"]));if(this.#k(g),this.#L(g,h,c),this.#t[g]=r,c){c.set="replace";let y=m&&this.#s(m)?m.__staleWhileFetching:m;y!==void 0&&(c.oldValue=y)}}else c&&(c.set="update")}if(s!==0&&!this.#m&&this.#R(),this.#m&&(f||this.#N(g,s,i),c&&this.#v(c,g)),!u&&this.#d&&this.#l){let m=this.#l,y;for(;y=m?.shift();)this.#a?.(...y)}return this}pop(){try{for(;this.#i;){let e=this.#t[this.#f];if(this.#O(!0),this.#s(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#l){let e=this.#l,r;for(;r=e?.shift();)this.#a?.(...r)}}}#O(e){let r=this.#f,n=this.#o[r],s=this.#t[r];return this.#A&&this.#s(s)?s.__abortController.abort(new Error("evicted")):(this.#b||this.#d)&&(this.#b&&this.#e?.(s,n,"evict"),this.#d&&this.#l?.push([s,n,"evict"])),this.#k(r),e&&(this.#o[r]=void 0,this.#t[r]=void 0,this.#F.push(r)),this.#i===1?(this.#f=this.#c=0,this.#F.length=0):this.#f=this.#h[r],this.#u.delete(n),this.#i--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#u.get(e);if(i!==void 0){let u=this.#t[i];if(this.#s(u)&&u.__staleWhileFetching===void 0)return!1;if(this.#y(i))s&&(s.has="stale",this.#v(s,i));else return n&&this.#T(i),s&&(s.has="hit",this.#v(s,i)),!0}else s&&(s.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,s=this.#u.get(e);if(s===void 0||!n&&this.#y(s))return;let i=this.#t[s];return this.#s(i)?i.__staleWhileFetching:i}#B(e,r,n,s){let i=r===void 0?void 0:this.#t[r];if(this.#s(i))return i;let u=new An,{signal:a}=n;a?.addEventListener("abort",()=>u.abort(a.reason),{signal:u.signal});let c={signal:u.signal,options:n,context:s},f=o((D,E=!1)=>{let{aborted:C}=u.signal,T=n.ignoreFetchAbort&&D!==void 0;if(n.status&&(C&&!E?(n.status.fetchAborted=!0,n.status.fetchError=u.signal.reason,T&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),C&&!T&&!E)return g(u.signal.reason);let S=y;return this.#t[r]===y&&(D===void 0?S.__staleWhileFetching?this.#t[r]=S.__staleWhileFetching:this.#S(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,D,c.options))),D},"cb"),h=o(D=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=D),g(D)),"eb"),g=o(D=>{let{aborted:E}=u.signal,C=E&&n.allowStaleOnFetchAbort,T=C||n.allowStaleOnFetchRejection,S=T||n.noDeleteOnFetchRejection,P=y;if(this.#t[r]===y&&(!S||P.__staleWhileFetching===void 0?this.#S(e,"fetch"):C||(this.#t[r]=P.__staleWhileFetching)),T)return n.status&&P.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),P.__staleWhileFetching;if(P.__returned===P)throw D},"fetchFail"),m=o((D,E)=>{let C=this.#w?.(e,i,c);C&&C instanceof Promise&&C.then(T=>D(T===void 0?void 0:T),E),u.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(D(void 0),n.allowStaleOnFetchAbort&&(D=o(T=>f(T,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let y=new Promise(m).then(f,h),F=Object.assign(y,{__abortController:u,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(e,F,{...c.options,status:void 0}),r=this.#u.get(e)):this.#t[r]=F,F}#s(e){if(!this.#A)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof An}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:F=this.allowStaleOnFetchAbort,context:D,forceRefresh:E=!1,status:C,signal:T}=r;if(!this.#A)return C&&(C.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:C});let S={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:u,noDisposeOnSet:a,size:c,sizeCalculation:f,noUpdateTTL:h,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:F,ignoreFetchAbort:y,status:C,signal:T},P=this.#u.get(e);if(P===void 0){C&&(C.fetch="miss");let j=this.#B(e,P,S,D);return j.__returned=j}else{let j=this.#t[P];if(this.#s(j)){let M=n&&j.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",M&&(C.returnedStale=!0)),M?j.__staleWhileFetching:j.__returned=j}let X=this.#y(P);if(!E&&!X)return C&&(C.fetch="hit"),this.#P(P),s&&this.#T(P),C&&this.#v(C,P),j;let se=this.#B(e,P,S,D),O=se.__staleWhileFetching!==void 0&&n;return C&&(C.fetch=X?"stale":"refresh",O&&X&&(C.returnedStale=!0)),O?se.__staleWhileFetching:se.__returned=se}}async forceFetch(e,r={}){let n=await this.fetch(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let n=this.#g;if(!n)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:i,...u}=r,a=this.get(e,u);if(!i&&a!==void 0)return a;let c=n(e,a,{options:u,context:s});return this.set(e,c,u),c}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:u}=r,a=this.#u.get(e);if(a!==void 0){let c=this.#t[a],f=this.#s(c);return u&&this.#v(u,a),this.#y(a)?(u&&(u.get="stale"),f?(u&&n&&c.__staleWhileFetching!==void 0&&(u.returnedStale=!0),n?c.__staleWhileFetching:void 0):(i||this.#S(e,"expire"),u&&n&&(u.returnedStale=!0),n?c:void 0)):(u&&(u.get="hit"),f?c.__staleWhileFetching:(this.#P(a),s&&this.#T(a),c))}else u&&(u.get="miss")}#$(e,r){this.#p[r]=e,this.#h[e]=r}#P(e){e!==this.#c&&(e===this.#f?this.#f=this.#h[e]:this.#$(this.#p[e],this.#h[e]),this.#$(this.#c,e),this.#c=e)}delete(e){return this.#S(e,"delete")}#S(e,r){let n=!1;if(this.#i!==0){let s=this.#u.get(e);if(s!==void 0)if(n=!0,this.#i===1)this.#M(r);else{this.#k(s);let i=this.#t[s];if(this.#s(i)?i.__abortController.abort(new Error("deleted")):(this.#b||this.#d)&&(this.#b&&this.#e?.(i,e,r),this.#d&&this.#l?.push([i,e,r])),this.#u.delete(e),this.#o[s]=void 0,this.#t[s]=void 0,s===this.#c)this.#c=this.#p[s];else if(s===this.#f)this.#f=this.#h[s];else{let u=this.#p[s];this.#h[u]=this.#h[s];let a=this.#h[s];this.#p[a]=this.#p[s]}this.#i--,this.#F.push(s)}}if(this.#d&&this.#l?.length){let s=this.#l,i;for(;i=s?.shift();)this.#a?.(...i)}return n}clear(){return this.#M("delete")}#M(e){for(let r of this.#x({allowStale:!0})){let n=this.#t[r];if(this.#s(n))n.__abortController.abort(new Error("deleted"));else{let s=this.#o[r];this.#b&&this.#e?.(n,s,e),this.#d&&this.#l?.push([n,s,e])}}if(this.#u.clear(),this.#t.fill(void 0),this.#o.fill(void 0),this.#m&&this.#E&&(this.#m.fill(0),this.#E.fill(0)),this.#C&&this.#C.fill(0),this.#f=0,this.#c=0,this.#F.length=0,this.#D=0,this.#i=0,this.#d&&this.#l){let r=this.#l,n;for(;n=r?.shift();)this.#a?.(...n)}}};Tn.LRUCache=Xs});var qc=w((C_,Uc)=>{"use strict";l();var q=o((...t)=>t.every(e=>e)?t.join(""):"","maybeJoin"),ne=o(t=>t?encodeURIComponent(t):"","maybeEncode"),Mc=o(t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),"formatHashFragment"),xy={sshtemplate:o(({domain:t,user:e,project:r,committish:n})=>`git@${t}:${e}/${r}.git${q("#",n)}`,"sshtemplate"),sshurltemplate:o(({domain:t,user:e,project:r,committish:n})=>`git+ssh://git@${t}/${e}/${r}.git${q("#",n)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:r,committish:n,editpath:s,path:i})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n||"HEAD"),"/",i)}`,"edittemplate"),browsetemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s,path:i,fragment:u,hashformat:a})=>`https://${t}/${e}/${r}/${s}/${ne(n||"HEAD")}/${i}${q("#",a(u||""))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,user:e,project:r,committish:n,blobpath:s,path:i,fragment:u,hashformat:a})=>`https://${t}/${e}/${r}/${s}/${ne(n||"HEAD")}/${i}${q("#",a(u||""))}`,"browseblobtemplate"),docstemplate:o(({domain:t,user:e,project:r,treepath:n,committish:s})=>`https://${t}/${e}/${r}${q("/",n,"/",ne(s))}#readme`,"docstemplate"),httpstemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git+https://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"httpstemplate"),filetemplate:o(({domain:t,user:e,project:r,committish:n,path:s})=>`https://${t}/${e}/${r}/raw/${ne(n||"HEAD")}/${s}`,"filetemplate"),shortcuttemplate:o(({type:t,user:e,project:r,committish:n})=>`${t}:${e}/${r}${q("#",n)}`,"shortcuttemplate"),pathtemplate:o(({user:t,project:e,committish:r})=>`${t}/${e}${q("#",r)}`,"pathtemplate"),bugstemplate:o(({domain:t,user:e,project:r})=>`https://${t}/${e}/${r}/issues`,"bugstemplate"),hashformat:Mc},it={};it.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:o(({auth:t,user:e,project:r,committish:n,path:s})=>`https://${q(t,"@")}raw.githubusercontent.com/${e}/${r}/${ne(n||"HEAD")}/${s}`,"filetemplate"),gittemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"gittemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://codeload.${t}/${e}/${r}/tar.gz/${ne(n||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,r,n,s]=t.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(s=t.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:s}},"extract")};it.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:o(({domain:t,user:e,project:r,committish:n,treepath:s,path:i,editpath:u})=>`https://${t}/${e}/${r}${q("/",s,"/",ne(n||"HEAD"),"/",i,u)}`,"edittemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/get/${ne(n||"HEAD")}.tar.gz`,"tarballtemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}},"extract")};it.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:o(({auth:t,domain:e,user:r,project:n,committish:s})=>`git+https://${q(t,"@")}${e}/${r}/${n}.git${q("#",s)}`,"httpstemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/repository/archive.tar.gz?ref=${ne(n||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let r=e.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let s=r.join("/");if(!(!s||!n))return{user:s,project:n,committish:t.hash.slice(1)}},"extract")};it.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:o(({domain:t,project:e,committish:r})=>`git@${t}:${e}.git${q("#",r)}`,"sshtemplate"),sshurltemplate:o(({domain:t,project:e,committish:r})=>`git+ssh://git@${t}/${e}.git${q("#",r)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:r,committish:n,editpath:s})=>`https://${t}/${e}/${r}${q("/",ne(n))}/${s}`,"edittemplate"),browsetemplate:o(({domain:t,project:e,committish:r})=>`https://${t}/${e}${q("/",ne(r))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,project:e,committish:r,path:n,hashformat:s})=>`https://${t}/${e}${q("/",ne(r))}${q("#",s(n))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,project:e,committish:r,path:n,hashformat:s})=>`https://${t}/${e}${q("/",ne(r))}${q("#",s(n))}`,"browseblobtemplate"),docstemplate:o(({domain:t,project:e,committish:r})=>`https://${t}/${e}${q("/",ne(r))}`,"docstemplate"),httpstemplate:o(({domain:t,project:e,committish:r})=>`git+https://${t}/${e}.git${q("#",r)}`,"httpstemplate"),filetemplate:o(({user:t,project:e,committish:r,path:n})=>`https://gist.githubusercontent.com/${t}/${e}/raw${q("/",ne(r))}/${n}`,"filetemplate"),shortcuttemplate:o(({type:t,project:e,committish:r})=>`${t}:${e}${q("#",r)}`,"shortcuttemplate"),pathtemplate:o(({project:t,committish:e})=>`${t}${q("#",e)}`,"pathtemplate"),bugstemplate:o(({domain:t,project:e})=>`https://${t}/${e}`,"bugstemplate"),gittemplate:o(({domain:t,project:e,committish:r})=>`git://${t}/${e}.git${q("#",r)}`,"gittemplate"),tarballtemplate:o(({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${ne(e||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(n!=="raw"){if(!r){if(!e)return;r=e,e=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:e,project:r,committish:t.hash.slice(1)}}},"extract"),hashformat:o(function(t){return t&&"file-"+Mc(t)},"hashformat")};it.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:o(({domain:t,user:e,project:r,committish:n,path:s})=>`https://${t}/${e}/${r}/blob/${ne(n)||"HEAD"}/${s}`,"filetemplate"),httpstemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}.git${q("#",n)}`,"httpstemplate"),tarballtemplate:o(({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/archive/${ne(n)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:o(()=>null,"bugstemplate"),extract:o(t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}},"extract")};for(let[t,e]of Object.entries(it))it[t]=Object.assign({},xy,e);Uc.exports=it});var ei=w((w_,Hc)=>{l();var Sy=L("url"),Qs=o((t,e,r)=>{let n=t.indexOf(r);return t.lastIndexOf(e,n>-1?n:1/0)},"lastIndexOfBefore"),Gc=o(t=>{try{return new Sy.URL(t)}catch{}},"safeUrl"),vy=o((t,e)=>{let r=t.indexOf(":"),n=t.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(e,n))return t;let s=t.indexOf("@");return s>-1?s>r?`git+ssh://${t}`:t:t.indexOf("//")===r+1?t:`${t.slice(0,r+1)}//${t.slice(r+1)}`},"correctProtocol"),Ay=o(t=>{let e=Qs(t,"@","#"),r=Qs(t,":","#");return r>e&&(t=t.slice(0,r)+"/"+t.slice(r+1)),Qs(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");Hc.exports=(t,e)=>{let r=e?vy(t,e):t;return Gc(r)||Gc(Ay(r))}});var Wc=w((S_,zc)=>{"use strict";l();var Ty=ei(),ky=o(t=>{let e=t.indexOf("#"),r=t.indexOf("/"),n=t.indexOf("/",r+1),s=t.indexOf(":"),i=/\s/.exec(t),u=t.indexOf("@"),a=!i||e>-1&&i.index>e,c=u===-1||e>-1&&u>e,f=s===-1||e>-1&&s>e,h=n===-1||e>-1&&n>e,g=r>0,m=e>-1?t[e-1]!=="/":!t.endsWith("/"),y=!t.startsWith(".");return a&&g&&m&&y&&c&&f&&h},"isGitHubShorthand");zc.exports=(t,e,{gitHosts:r,protocols:n})=>{if(!t)return;let s=ky(t)?`github:${t}`:t,i=Ty(s,n);if(!i)return;let u=r.byShortcut[i.protocol],a=r.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],c=u||a;if(!c)return;let f=r[u||a],h=null;n[i.protocol]?.auth&&(i.username||i.password)&&(h=`${i.username}${i.password?":"+i.password:""}`);let g=null,m=null,y=null,F=null;try{if(u){let D=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,E=D.indexOf("@");E>-1&&(D=D.slice(E+1));let C=D.lastIndexOf("/");C>-1?(m=decodeURIComponent(D.slice(0,C)),m||(m=null),y=decodeURIComponent(D.slice(C+1))):y=decodeURIComponent(D),y.endsWith(".git")&&(y=y.slice(0,-4)),i.hash&&(g=decodeURIComponent(i.hash.slice(1))),F="shortcut"}else{if(!f.protocols.includes(i.protocol))return;let D=f.extract(i);if(!D)return;m=D.user&&decodeURIComponent(D.user),y=decodeURIComponent(D.project),g=decodeURIComponent(D.committish),F=n[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(D){if(D instanceof URIError)return;throw D}return[c,m,h,y,g,F,e]}});var Zc=w((T_,Vc)=>{"use strict";l();var{LRUCache:Py}=$c(),Ly=qc(),Oy=Wc(),By=ei(),ti=new Py({max:1e3}),kn=class t{static{o(this,"GitHost")}constructor(e,r,n,s,i,u,a={}){Object.assign(this,t.#r[e],{type:e,user:r,auth:n,project:s,committish:i,default:u,opts:a})}static#r={byShortcut:{},byDomain:{}};static#n={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,r){t.#r[e]=r,t.#r.byDomain[r.domain]=e,t.#r.byShortcut[`${e}:`]=e,t.#n[`${e}:`]={name:e}}static fromUrl(e,r){if(typeof e!="string")return;let n=e+JSON.stringify(r||{});if(!ti.has(n)){let s=Oy(e,r,{gitHosts:t.#r,protocols:t.#n});ti.set(n,s?new t(...s):void 0)}return ti.get(n)}static parseUrl(e){return By(e)}#e(e,r){if(typeof e!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let s=e(n);return n.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#e(this.sshtemplate,e)}sshurl(e){return this.#e(this.sshurltemplate,e)}browse(e,...r){return typeof e!="string"?this.#e(this.browsetemplate,e):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:e}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:e})}browseFile(e,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:e}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:e})}docs(e){return this.#e(this.docstemplate,e)}bugs(e){return this.#e(this.bugstemplate,e)}https(e){return this.#e(this.httpstemplate,e)}git(e){return this.#e(this.gittemplate,e)}shortcut(e){return this.#e(this.shortcuttemplate,e)}path(e){return this.#e(this.pathtemplate,e)}tarball(e){return this.#e(this.tarballtemplate,{...e,noCommittish:!1})}file(e,r){return this.#e(this.filetemplate,{...r,path:e})}edit(e,r){return this.#e(this.edittemplate,{...r,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(Ly))kn.addHost(t,e);Vc.exports=kn});var Jc=w((L_,Yc)=>{l();Yc.exports=Ry;function Ry(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
8
+ `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let r=t.length,n=e+1;for(;n<r&&t[n].trim();)n++;return t.slice(e,n).join(" ").trim()}o(Ry,"extractDescription")});var Kc=w((R_,Ny)=>{Ny.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var tl=w((N_,el)=>{l();var Iy=wd(),jy=_d(),$y=Bc(),Pn=Zc(),My=L("node:module"),Uy=["dependencies","devDependencies","optionalDependencies"],qy=Jc(),ri=L("url"),ot=Kc(),Xc=o(t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf("."),"isEmail");el.exports={warn:o(function(){},"warn"),fixRepositoryField:o(function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var r=Pn.fromUrl(e);r&&(e=t.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},"fixRepositoryField"),fixTypos:o(function(t){Object.keys(ot.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,ot.topLevel[e])},this)},"fixTypos"),fixScriptsField:o(function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):ot.script[e]&&!t.scripts[ot.script[e]]&&this.warn("typo",e,ot.script[e],"scripts")},this)}},"fixScriptsField"),fixFilesField:o(function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},"fixFilesField"),fixBinField:o(function(t){if(t.bin&&typeof t.bin=="string"){var e={},r;(r=t.name.match(/^@[^/]+[/](.*)$/))?e[r[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},"fixBinField"),fixManField:o(function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},"fixManField"),fixBundleDependenciesField:o(function(t){var e="bundledDependencies",r="bundleDependencies";t[e]&&!t[r]&&(t[r]=t[e],delete t[e]),t[r]&&!Array.isArray(t[r])?(this.warn("nonArrayBundleDependencies"),delete t[r]):t[r]&&(t[r]=t[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),t.dependencies[n]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:o(function(t){Jy(t,this.warn),Zy(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(r){var n=t[e][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete t[e][r]);var s=Pn.fromUrl(t[e][r]);s&&(t[e][r]=s.toString())},this)}},this)},"fixDependencies"),fixModulesField:o(function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},"fixModulesField"),fixKeywordsField:o(function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:o(function(t,e){var r=!e;if(!t.version)return t.version="",!0;if(!Iy(t.version,r))throw new Error('Invalid version: "'+t.version+'"');return t.version=jy(t.version,r),!0},"fixVersionField"),fixPeople:o(function(t){Qc(t,Wy),Qc(t,Vy)},"fixPeople"),fixNameField:o(function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var r=e.strict;if(!t.name&&!r){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");r||(t.name=t.name.trim()),zy(t.name,r,e.allowLegacyCase),My.builtinModules.includes(t.name)&&this.warn("conflictingName",t.name)},"fixNameField"),fixDescriptionField:o(function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=qy(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:o(function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:o(function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Pn.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Xc(t.bugs)?t.bugs={email:t.bugs}:ri.parse(t.bugs).protocol?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{Ky(t.bugs,this.warn);var r=t.bugs;t.bugs={},r.url&&(typeof r.url=="string"&&ri.parse(r.url).protocol?t.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Xc(r.email)?t.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:o(function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Pn.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;ri.parse(t.homepage).protocol||(t.homepage="http://"+t.homepage)}},"fixHomepageField"),fixLicenseField:o(function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!$y(e).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function Gy(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}o(Gy,"isValidScopedPackageName");function Hy(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}o(Hy,"isCorrectlyEncodedName");function zy(t,e,r){if(t.charAt(0)==="."||!(Gy(t)||Hy(t))||e&&!r&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}o(zy,"ensureValidName");function Qc(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(t[r])&&(t[r]=t[r].map(e))}),t}o(Qc,"modifyPeople");function Wy(t){if(typeof t=="string")return t;var e=t.name||"",r=t.url||t.web,n=r?" ("+r+")":"",s=t.email||t.mail,i=s?" <"+s+">":"";return e+i+n}o(Wy,"unParsePerson");function Vy(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),s={};return e&&e[0].trim()&&(s.name=e[0].trim()),n&&(s.email=n[1]),r&&(s.url=r[1]),s}o(Vy,"parsePerson");function Zy(t){var e=t.optionalDependencies;if(e){var r=t.dependencies||{};Object.keys(e).forEach(function(n){r[n]=e[n]}),t.dependencies=r}}o(Zy,"addOptionalDepsToDeps");function Yy(t,e,r){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;r("deprecatedArrayDependencies",e);var n={};return t.filter(function(s){return typeof s=="string"}).forEach(function(s){s=s.trim().split(/(:?[@\s><=])/);var i=s.shift(),u=s.join("");u=u.trim(),u=u.replace(/^@/,""),n[i]=u}),n}o(Yy,"depObjectify");function Jy(t,e){Uy.forEach(function(r){t[r]&&(t[r]=Yy(t[r],r,e))})}o(Jy,"objectifyDeps");function Ky(t,e){t&&Object.keys(t).forEach(function(r){ot.bugs[r]&&(e("typo",r,ot.bugs[r],"bugs"),t[ot.bugs[r]]=t[r],delete t[r])})}o(Ky,"bugsTypos")});var rl=w(($_,Xy)=>{Xy.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var il=w((M_,sl)=>{l();var nl=L("util"),ni=rl();sl.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return Qy.apply(null,t);var r=ni[e]?ni[e]:e+": '%s'";return t.unshift(r),nl.format.apply(null,t)};function Qy(t,e,r){return r&&(t=r+"['"+t+"']",e=r+"['"+e+"']"),nl.format(ni.typo,t,e)}o(Qy,"makeTypoWarning")});var cl=w((G_,al)=>{l();al.exports=ol;var si=tl();ol.fixer=si;var e0=il(),t0=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],r0=["dependencies","people","typos"],ii=t0.map(function(t){return ul(t)+"Field"});ii=ii.concat(r0);function ol(t,e,r){e===!0&&(e=null,r=!0),r||(r=!1),(!e||t.private)&&(e=o(function(){},"warn")),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),si.warn=function(){e(e0.apply(null,arguments))},ii.forEach(function(n){si["fix"+ul(n)](t,r)}),t._id=t.name+"@"+t.version}o(ol,"normalize");function ul(t){return t.charAt(0).toUpperCase()+t.slice(1)}o(ul,"ucFirst")});var Ll=w((IS,Pl)=>{l();Pl.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Bl=w((lv,P0)=>{P0.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 vi=w((fv,Si)=>{"use strict";l();var Rl=Bl();Si.exports=Rl;Si.exports.default=Rl});var Ul=w((mv,Ml)=>{"use strict";l();Ml.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 Gl=w((gv,ql)=>{"use strict";l();var j0=Ul();ql.exports=t=>typeof t=="string"?t.replace(j0(),""):t});var zl=w((Cv,ki)=>{"use strict";l();var Hl=o(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),"isFullwidthCodePoint");ki.exports=Hl;ki.exports.default=Hl});var Vl=w((wv,Wl)=>{"use strict";l();Wl.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 Yl=w((xv,Pi)=>{"use strict";l();var $0=Gl(),M0=zl(),U0=Vl(),Zl=o(t=>{if(typeof t!="string"||t.length===0||(t=$0(t),t.length===0))return 0;t=t.replace(U0()," ");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+=M0(n)?2:1)}return e},"stringWidth");Pi.exports=Zl;Pi.exports.default=Zl});var Kl=w((Av,Jl)=>{"use strict";l();var q0=Yl();function Bt(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
9
+ `,s=e.pad||" ",i=r!=="right"?G0:H0,u=!1;Array.isArray(t)||(u=!0,t=String(t).split(n));let a,c=0;return t=t.map(function(f){return f=String(f),a=q0(f),c=Math.max(a,c),{str:f,width:a}}).map(function(f){return new Array(i(c,f.width)+1).join(s)+f.str}),u?t.join(n):t}o(Bt,"ansiAlign");Bt.left=o(function(e){return Bt(e,{align:"left"})},"left");Bt.center=o(function(e){return Bt(e,{align:"center"})},"center");Bt.right=o(function(e){return Bt(e,{align:"right"})},"right");Jl.exports=Bt;function G0(t,e){return Math.floor((t-e)/2)}o(G0,"halfDiff");function H0(t,e){return t-e}o(H0,"fullDiff")});var gf=w(Ir=>{"use strict";l();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.dedent=void 0;function yf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var s=n.reduce(function(a,c){var f=c.match(/\n([\t ]+|(?!\s).)/g);return f?a.concat(f.map(function(h){var g,m;return(m=(g=h.match(/[\t ]/g))===null||g===void 0?void 0:g.length)!==null&&m!==void 0?m:0})):a},[]);if(s.length){var i=new RegExp(`
10
10
  [ ]{`+Math.min.apply(Math,s)+"}","g");n=n.map(function(a){return a.replace(i,`
11
11
  `)})}n[0]=n[0].replace(/^\r?\n/,"");var u=n[0];return e.forEach(function(a,c){var f=u.match(/(?:^|\n)( *)$/),h=f?f[1]:"",g=a;typeof a=="string"&&a.includes(`
12
12
  `)&&(g=String(a).split(`
13
13
  `).map(function(m,y){return y===0?m:""+h+m}).join(`
14
- `)),u+=g+n[c+1]}),u}o(mf,"dedent");Ir.dedent=mf;Ir.default=mf});var _f=w((qi,Gi)=>{"use strict";l();Object.defineProperty(qi,"__esModule",{value:!0});function Pg(t){return t.encrypted}o(Pg,"isTLSSocket");var Ui=o((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",u=o(()=>{n&&r.connect(),Pg(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)},"onConnect");t.writable&&!t.connecting?u():t.connecting?t.once("connect",u):t.destroyed&&i&&r.close(t._hadError)},"deferToConnect");qi.default=Ui;Gi.exports=Ui;Gi.exports.default=Ui});var Af=w((NA,vf)=>{"use strict";l();var{PassThrough:Mg}=L("stream");vf.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 Mg({objectMode:s});r&&i.setEncoding(r);let u=0,a=[];return i.on("data",c=>{a.push(c),s?u=a.length:u+=c.length}),i.getBufferedValue=()=>e?a:n?Buffer.concat(a,u):a.join(""),i.getBufferedLength=()=>u,i}});var Vi=w((jA,Ur)=>{"use strict";l();var{constants:Ug}=L("buffer"),qg=L("stream"),{promisify:Gg}=L("util"),Hg=Af(),zg=Gg(qg.pipeline),Xn=class extends Error{static{o(this,"MaxBufferError")}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=Hg(e);return await new Promise((s,i)=>{let u=o(a=>{a&&n.getBufferedLength()<=Ug.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),i(a)},"rejectPromise");(async()=>{try{await zg(t,n),s()}catch(a){u(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&u(new Xn)})}),n.getBufferedValue()}o(Wi,"getStream");Ur.exports=Wi;Ur.exports.buffer=(t,e)=>Wi(t,{...e,encoding:"buffer"});Ur.exports.array=(t,e)=>Wi(t,{...e,array:!0});Ur.exports.MaxBufferError=Xn});var kf=w((qA,Tf)=>{"use strict";l();var Wg=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Vg=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Zg=new Set([500,502,503,504]),Yg={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Jg={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Rt(t){let e=parseInt(t,10);return isFinite(e)?e:0}o(Rt,"toNumberOrZero");function Kg(t){return t?Zg.has(t.status):!0}o(Kg,"isErrorResponse");function Zi(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}o(Zi,"parseCacheControl");function Xg(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(", ")}o(Xg,"formatCacheControl");Tf.exports=class{static{o(this,"CachePolicy")}constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:u,_fromObject:a}={}){if(a){this._fromObject(a);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=Zi(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=Zi(e.headers["cache-control"]),u&&"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":Xg(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())&&Vg.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||Wg.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=Zi(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)Yg[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 Rt(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 Rt(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Rt(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+Rt(this._rescc["stale-if-error"]),n=e+Rt(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Rt(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Rt(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()&&Kg(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 u in this._resHeaders)s[u]=u in r.headers&&!Jg[u]?r.headers[u]:this._resHeaders[u];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 Pf=w(Yi=>{l();Yi.stringify=o(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 u=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!u&&(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)},"stringify");Yi.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 Rf=w((r1,Bf)=>{"use strict";l();var eF=L("events"),Lf=Pf(),tF=o(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(L(e[r]))(t)}return new Map},"loadStore"),Of=["sqlite","postgres","mysql","mongo","redis","tiered"],Ji=class extends eF{static{o(this,"Keyv")}constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Lf.stringify,deserialize:Lf.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=tF(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=o(i=>async function*(){for await(let[u,a]of typeof i=="function"?i(this.opts.store.namespace):i){let c=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),c.value]}}},"generateIterator");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 Of.includes(this.opts.store.opts.dialect)||Of.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 u=[];for(let a of i)u.push(Promise.resolve().then(()=>n.get(a)).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(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(u).then(a=>{let c=[];for(let f of a)c.push(f.value);return c})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return s?u.map((a,c)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[c]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof u.expires=="number"&&Date.now()>u.expires?this.delete(e).then(()=>{}):r&&r.raw?u:u.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 u=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:u},this.opts.serialize(r)}).then(u=>i.set(s,u,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 u of s)i.push(r.delete(u));return Promise.allSettled(i).then(u=>u.every(a=>a.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()}};Bf.exports=Ji});var Mf=w((w1,$f)=>{"use strict";l();var lF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];$f.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(lF)),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 qf=w((x1,Uf)=>{"use strict";l();var{Transform:fF,PassThrough:hF}=L("stream"),eo=L("zlib"),dF=Mf();Uf.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof eo.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new fF({transform(a,c,f){n=!1,f(null,a)},flush(a){a()}}),i=new hF({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),u=r?eo.createBrotliDecompress():eo.createUnzip();return u.once("error",a=>{if(n&&!t.readable){i.end();return}i.destroy(a)}),dF(t,i),t.pipe(s).pipe(u).pipe(i),i}});var ho=w((X3,nh)=>{"use strict";l();var fo=class{static{o(this,"QuickLRU")}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)}};nh.exports=fo});var Do=w((tT,sh)=>{"use strict";l();sh.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=o(r=>{Promise.resolve().then(()=>{t.emit("error",r)})},"onError");return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var It=w((sT,lh)=>{"use strict";l();var{URL:ih}=L("url"),BF=L("events"),RF=L("tls"),NF=L("http2"),IF=ho(),jF=Do(),Ee=Symbol("currentStreamCount"),oh=Symbol("request"),be=Symbol("cachedOriginSet"),ht=Symbol("gracefullyClosing"),us=Symbol("length"),uh=["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"],$F=o((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},"getSortedIndex"),MF=o((t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,"compareSessions"),po=o((t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[be].length>0&&n[be].length<e[be].length&&n[be].every(s=>e[be].includes(s))&&n[Ee]+e[Ee]<=e.remoteSettings.maxConcurrentStreams&&ch(n)}},"closeCoveredSessions"),ah=o((t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[be].length>0&&e[be].length<n[be].length&&e[be].every(s=>n[be].includes(s))&&e[Ee]+n[Ee]<=n.remoteSettings.maxConcurrentStreams)return ch(e),!0}return!1},"closeSessionIfCovered"),ch=o(t=>{t[ht]=!0,t[Ee]===0&&t.close()},"gracefullyClose"),dr=class t extends BF{static{o(this,"Agent")}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 IF({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<uh.length;n++){let s=uh[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[Ee]<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 ih(e);else if(!(e instanceof ih))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:h}=r,{hostname:g}=e;if(h&&g!==h)throw new Error(`Origin ${g} differs from servername ${h}`)}}catch(h){for(let g=0;g<n.length;g++)n[g].reject(h);return}let u=this.normalizeOptions(r),a=e.origin;if(u in this.sessions){let h=this.sessions[u],g=-1,m=-1,y;for(let F=0;F<h.length;F++){let D=h[F],E=D.remoteSettings.maxConcurrentStreams;if(E<g)break;if(!D[be].includes(a))continue;let C=D[Ee];C>=E||D[ht]||D.destroyed||(y||(g=E),this._isBetterSession(C,m)&&(y=D,m=C))}if(y){this._accept(y,n,a,r);return}}if(u in this.queue){if(a in this.queue[u]){this.queue[u][a].listeners.push(...n);return}}else this.queue[u]={[us]:0};let c=o(()=>{u in this.queue&&this.queue[u][a]===f&&(delete this.queue[u][a],--this.queue[u][us]===0&&delete this.queue[u])},"removeFromQueue"),f=o(async()=>{this._sessionCount++;let h=`${a}:${u}`,g=!1,m;try{let y={...r};y.settings===void 0&&(y.settings=this.settings),y.session===void 0&&(y.session=this.tlsSessionCache.get(h)),m=await(y.createConnection||this.createConnection).call(this,e,y),y.createConnection=()=>m;let D=NF.connect(e,y);D[Ee]=0,D[ht]=!1;let E=o(()=>{let{socket:S}=D,P;return S.servername===!1?(S.servername=S.remoteAddress,P=D.originSet,S.servername=!1):P=D.originSet,P},"getOriginSet"),C=o(()=>D[Ee]<D.remoteSettings.maxConcurrentStreams,"isFree");D.socket.once("session",S=>{this.tlsSessionCache.set(h,S)}),D.once("error",S=>{for(let P=0;P<n.length;P++)n[P].reject(S);this.tlsSessionCache.delete(h)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(this._sessionCount--,g){this._emptySessionCount--;let S=this.sessions[u];S.length===1?delete this.sessions[u]:S.splice(S.indexOf(D),1)}else{c();let S=new Error("Session closed without receiving a SETTINGS frame");S.code="HTTP2WRAPPER_NOSETTINGS";for(let P=0;P<n.length;P++)n[P].reject(S)}this._processQueue()});let T=o(()=>{let S=this.queue[u];if(!S)return;let P=D[be];for(let j=0;j<P.length;j++){let X=P[j];if(X in S){let{listeners:se,completed:je}=S[X],O=0;for(;O<se.length&&C();)se[O].resolve(D),O++;if(S[X].listeners.splice(0,O),S[X].listeners.length===0&&!je&&(delete S[X],--S[us]===0)){delete this.queue[u];break}if(!C())break}}},"processListeners");D.on("origin",()=>{D[be]=E()||[],D[ht]=!1,ah(this.sessions[u],D),!(D[ht]||!C())&&(T(),C()&&po(this.sessions[u],D))}),D.once("remoteSettings",()=>{if(f.destroyed){let S=new Error("Agent has been destroyed");for(let P=0;P<n.length;P++)n[P].reject(S);D.destroy();return}if(D.setLocalWindowSize&&D.setLocalWindowSize(1024*1024*4),D[be]=E()||[],D.socket.encrypted){let S=D[be][0];if(S!==a){let P=new Error(`Requested origin ${a} does not match server ${S}`);for(let j=0;j<n.length;j++)n[j].reject(P);D.destroy();return}}c();{let S=this.sessions;if(u in S){let P=S[u];P.splice($F(P,D,MF),0,D)}else S[u]=[D]}g=!0,this._emptySessionCount++,this.emit("session",D),this._accept(D,n,a,r),D[Ee]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),D.on("remoteSettings",()=>{C()&&(T(),C()&&po(this.sessions[u],D))})}),D[oh]=D.request,D.request=(S,P)=>{if(D[ht])throw new Error("The session is gracefully closing. No new streams are allowed.");let j=D[oh](S,P);return D.ref(),D[Ee]++===0&&this._emptySessionCount--,j.once("close",()=>{if(--D[Ee]===0&&(this._emptySessionCount++,D.unref(),this._emptySessionCount>this.maxEmptySessions||D[ht])){D.close();return}D.destroyed||D.closed||C()&&!ah(this.sessions[u],D)&&(po(this.sessions[u],D),T(),D[Ee]===0&&this._processQueue())}),j}}catch(y){c(),this._sessionCount--;for(let F=0;F<n.length;F++)n[F].reject(y)}},"entry");f.listeners=n,f.completed=!1,f.destroyed=!1,this.queue[u][a]=f,this.queue[u][us]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,u)=>{this.getSession(e,r,[{reject:u,resolve:o(a=>{try{let c=a.request(n,s);jF(c),i(c)}catch(c){u(c)}},"resolve")}])})}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=RF.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 u=0;u<i.length;u++){let a=i[u];if(a[Ee]===0&&(r++,a.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 u=0;u<i.length;u++)i[u].destroy(e)}for(let s in n){let i=n[s];for(let u in i)i[u].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};dr.kCurrentStreamCount=Ee;dr.kGracefullyClosing=ht;lh.exports={Agent:dr,globalAgent:new dr}});var yo=w((uT,fh)=>{"use strict";l();var{Readable:UF}=L("stream"),mo=class extends UF{static{o(this,"IncomingMessage")}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()}};fh.exports=mo});var dh=w((lT,hh)=>{"use strict";l();hh.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var en=w((dT,Dh)=>{"use strict";l();var jt=o((t,e,r)=>{Dh.exports[e]=class extends t{static{o(this,"NodeError")}constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}},"makeError");jt(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]}`});jt(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);jt(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);jt(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);jt(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);jt(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);jt(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var mh=w((mT,ph)=>{"use strict";l();ph.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var go=w((gT,yh)=>{"use strict";l();var{ERR_INVALID_HTTP_TOKEN:qF}=en(),GF=mh(),HF=/^[\^`\-\w!#$%&*+.|~]+$/;yh.exports=t=>{if(typeof t!="string"||!HF.test(t)&&!GF(t))throw new qF("Header name",t)}});var Fo=w((CT,gh)=>{"use strict";l();var{ERR_HTTP_INVALID_HEADER_VALUE:zF,ERR_INVALID_CHAR:WF}=en(),VF=/[^\t\u0020-\u007E\u0080-\u00FF]/;gh.exports=(t,e)=>{if(typeof e>"u")throw new zF(e,t);if(VF.test(e))throw new WF("header content",t)}});var Eh=w((bT,Ch)=>{"use strict";l();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:Fh}=en(),ZF={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 Fh;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 Fh;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};Ch.exports=ZF});var wo=w((_T,vh)=>{"use strict";l();var{URL:Co,urlToHttpOptions:bh}=L("url"),YF=L("http2"),{Writable:JF}=L("stream"),{Agent:KF,globalAgent:XF}=It(),QF=yo(),eC=dh(),{ERR_INVALID_ARG_TYPE:as,ERR_INVALID_PROTOCOL:tC,ERR_HTTP_HEADERS_SENT:wh}=en(),rC=go(),nC=Fo(),sC=Eh(),{HTTP2_HEADER_STATUS:_h,HTTP2_HEADER_METHOD:xh,HTTP2_HEADER_PATH:Sh,HTTP2_HEADER_AUTHORITY:tn,HTTP2_METHOD_CONNECT:iC}=YF.constants,de=Symbol("headers"),Dr=Symbol("origin"),rn=Symbol("session"),Eo=Symbol("options"),cs=Symbol("flushedHeaders"),pr=Symbol("jobs"),nn=Symbol("pendingAgentPromise"),bo=class extends JF{static{o(this,"ClientRequest")}constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=bh(new Co(e)):e instanceof Co?e=bh(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[rn]=r.h2session,this[rn].destroyed)throw new Error("The session has been closed already");this.protocol=this[rn].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new KF({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=XF;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new as("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 tC(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[de]=Object.create(null),this[pr]=[],this[nn]=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 a in i)this.setHeader(a,i[a]);r.auth&&!("authorization"in this[de])&&(this[de].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Eo]=r,this[Dr]=new Co(`${this.protocol}//${r.servername||r.host}:${r.port}`);let u=r._reuseSocket;u&&(r.createConnection=(...a)=>u.destroyed?this.agent.createConnection(...a):u,this.agent.getSession(this[Dr],this[Eo]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[cs]=!1}get method(){return this[de][xh]}set method(e){e&&(this[de][xh]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?tn:Sh;return this[de][e]}set path(e){if(e){let r=this.method==="CONNECT"?tn:Sh;this[de][r]=e}}get host(){return this[Dr].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=o(()=>this._request.write(e,r,n),"callWrite");this._request?s():this[pr].push(s)}_final(e){this.flushHeaders();let r=o(()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)},"callEnd");this._request?r():this[pr].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[nn]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[cs]||this.destroyed)return;this[cs]=!0;let e=this.method===iC,r=o(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=o((i,u,a)=>{let c=new QF(this.socket,n.readableHighWaterMark);this.res=c,c.url=`${this[Dr].origin}${this.path}`,c.req=this,c.statusCode=i[_h],c.headers=i,c.rawHeaders=a,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())},"onResponse");n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[_h]})),n.once("trailers",(i,u,a)=>{let{res:c}=this;if(c===null){s(i,u,a);return}c.trailers=i,c.rawTrailers=a}),n.once("close",()=>{let{aborted:i,res:u}=this;if(u){i&&(u.aborted=!0,u.emit("aborted"),u.destroy());let a=o(()=>{u.emit("close"),this.destroy(),this.emit("close")},"finish");u.readable?u.once("end",a):a();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,sC);for(let i of this[pr])i();this[pr].length=0,this.emit("socket",this.socket)},"onStream");if(!(tn in this[de])&&!e&&(this[de][tn]=this[Dr].host),this[rn])try{r(this[rn].request(this[de]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Dr],this[Eo],this[de]);this[nn]=n,r(await n),this[nn]=!1}catch(n){this[nn]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[de])}hasHeader(e){if(typeof e!="string")throw new as("name","string",e);return!!this[de][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new as("name","string",e);return this[de][e.toLowerCase()]}get headersSent(){return this[cs]}removeHeader(e){if(typeof e!="string")throw new as("name","string",e);if(this.headersSent)throw new wh("remove");delete this[de][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new wh("set");rC(e),nC(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[de][tn]=r:this[de][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=o(()=>this._request.setTimeout(e,r),"applyTimeout");return this._request?n():this[pr].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};vh.exports=bo});var Th=w((vT,Ah)=>{"use strict";l();var oC=L("tls");Ah.exports=(t={},e=oC.connect)=>new Promise((r,n)=>{let s=!1,i,u=o(async()=>{await c,i.off("timeout",a),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}))},"callback"),a=o(async()=>{s=!0,u()},"onTimeout"),c=(async()=>{try{i=await e(t,u),i.on("error",n),i.once("timeout",a)}catch(f){n(f)}})()})});var Ph=w((kT,kh)=>{"use strict";l();var{isIP:uC}=L("net"),aC=L("assert"),cC=o(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)},"getHost");kh.exports=t=>{let e=cC(t);return uC(e)?"":e}});var $h=w((OT,sn)=>{"use strict";l();var{URL:Lh,urlToHttpOptions:Oh}=L("url"),Bh=L("http"),_o=L("https"),lC=Th(),fC=ho(),{Agent:hC,globalAgent:dC}=It(),DC=wo(),pC=Ph(),Rh=Do(),Nh=new fC({maxSize:100}),mC=new Map,yC=o((t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=o(()=>{t.emit("free",e,r)},"onFree");e.on("free",n);let s=o(()=>{t.removeSocket(e,r)},"onClose");e.on("close",s);let i=o(()=>{let{freeSockets:a}=t;for(let c of Object.values(a))if(c.includes(e)){e.destroy();return}},"onTimeout");e.on("timeout",i);let u=o(()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",u)},"onRemove");e.on("agentRemove",u),t.emit("free",e,r)},"installSocket"),Ih=o((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 u=lC(n,r);e.set(s,u);try{let a=await u;return t.set(s,a.alpnProtocol),e.delete(s),n.path=i,a}catch(a){throw e.delete(s),n.path=i,a}}return{alpnProtocol:t.get(s)}},"createResolveProtocol"),jh=Ih(Nh,mC);sn.exports=async(t,e,r)=>{if(typeof t=="string"?t=Oh(new Lh(t)):t instanceof Lh?t=Oh(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||pC(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?_o.globalAgent:Bh.globalAgent;let s=e.resolveProtocol||jh,{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:u,alpnProtocol:a,timeout:c}=await s(e);if(c){u&&u.destroy();let h=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw h.code="ETIMEDOUT",h.ms=e.timeout,h}u&&e.createConnection&&(u.destroy(),u=void 0),delete e.resolveSocket;let f=a==="h2";if(i&&(i=f?i.http2:i.https,e.agent=i),i===void 0&&(i=f?dC:_o.globalAgent),u)if(i===!1)u.destroy();else{let h=(f?hC:_o.Agent).prototype.createConnection;i.createConnection===h?f?e._reuseSocket=u:yC(i,u,e):u.destroy()}if(f)return Rh(new DC(e,r))}else i&&(e.agent=i.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),Rh(Bh.request(e,r))};sn.exports.protocolCache=Nh;sn.exports.resolveProtocol=jh;sn.exports.createResolveProtocol=Ih});var xo=w((NT,Mh)=>{"use strict";l();var gC=L("stream"),FC=L("tls"),CC=new FC.TLSSocket(new gC.PassThrough)._handle._parentWrap.constructor;Mh.exports=CC});var vo=w((jT,Uh)=>{"use strict";l();var So=class extends Error{static{o(this,"UnexpectedStatusCodeError")}constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};Uh.exports=So});var Gh=w((UT,qh)=>{"use strict";l();var EC=o((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}`)}},"checkType");qh.exports=EC});var Ao=w((HT,zh)=>{"use strict";l();var{URL:Hh}=L("url"),ls=Gh();zh.exports=(t,e)=>{ls("proxyOptions",e,["object"]),ls("proxyOptions.headers",e.headers,["object","undefined"]),ls("proxyOptions.raw",e.raw,["boolean","undefined"]),ls("proxyOptions.url",e.url,[Hh,"string"]);let r=new Hh(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var fs=w((WT,Wh)=>{"use strict";l();Wh.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 Kh=w((ZT,Jh)=>{"use strict";l();var bC=L("tls"),wC=L("http"),Vh=L("https"),_C=xo(),{globalAgent:xC}=It(),SC=vo(),Zh=Ao(),vC=fs(),Yh=o((t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:u}=n,a=await xC.request(s,n,{...vC(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",c=>{let f=c[":status"];if(f!==200){r(new SC(f,""));return}let h=t instanceof Vh.Agent;if(u&&h){e.socket=a;let m=bC.connect(e);m.once("close",()=>{a.destroy()}),r(null,m);return}let g=new _C(a);g.encrypted=!1,g._handle.getpeername=m=>{m.family=void 0,m.address=void 0,m.port=void 0},r(null,g)})}catch(n){r(n)}})()},"createConnection"),To=class extends wC.Agent{static{o(this,"HttpOverHttp2")}constructor(e){super(e),Zh(this,e.proxyOptions)}createConnection(e,r){Yh(this,e,r)}},ko=class extends Vh.Agent{static{o(this,"HttpsOverHttp2")}constructor(e){super(e),Zh(this,e.proxyOptions)}createConnection(e,r){Yh(this,e,r)}};Jh.exports={HttpOverHttp2:To,HttpsOverHttp2:ko}});var Lo=w((KT,Xh)=>{"use strict";l();var{Agent:AC}=It(),TC=xo(),kC=vo(),PC=Ao(),Po=class extends AC{static{o(this,"Http2OverHttpX")}constructor(e){super(e),PC(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,u]=await this._getProxyStream(n);if(i!==200)throw new kC(i,u);if(this.proxyOptions.raw)r.socket=s;else{let a=new TC(s);return a.encrypted=!1,a._handle.getpeername=c=>{c.family=void 0,c.address=void 0,c.port=void 0},a}return super.createConnection(e,r)}};Xh.exports=Po});var ed=w((ek,Qh)=>{"use strict";l();var{globalAgent:LC}=It(),OC=Lo(),BC=fs(),RC=o(t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),"getStatusCode"),Oo=class extends OC{static{o(this,"Http2OverHttp2")}async _getProxyStream(e){let{proxyOptions:r}=this,n={...BC(this),...r.headers,":method":"CONNECT",":authority":e},s=await LC.request(r.url,r,n),i=await RC(s);return[s,i,""]}};Qh.exports=Oo});var rd=w((nk,td)=>{"use strict";l();var NC=L("http"),IC=L("https"),jC=Lo(),$C=fs(),MC=o(t=>new Promise((e,r)=>{let n=o((s,i,u)=>{i.unshift(u),t.off("error",r),e([i,s.statusCode,s.statusMessage])},"onConnect");t.once("error",r),t.once("connect",n)}),"getStream"),hs=class extends jC{static{o(this,"Http2OverHttp")}async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,u=(n.protocol==="https:"?IC:NC).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...$C(this),...s,host:e},method:"CONNECT"}).end();return MC(u)}};td.exports={Http2OverHttp:hs,Http2OverHttps:hs}});var sd=w((ok,nd)=>{"use strict";l();var UC=L("http2"),{Agent:qC,globalAgent:GC}=It(),Bo=wo(),HC=yo(),zC=$h(),{HttpOverHttp2:WC,HttpsOverHttp2:VC}=Kh(),ZC=ed(),{Http2OverHttp:YC,Http2OverHttps:JC}=rd(),KC=go(),XC=Fo(),QC=o((t,e,r)=>new Bo(t,e,r),"request"),eE=o((t,e,r)=>{let n=new Bo(t,e,r);return n.end(),n},"get");nd.exports={...UC,ClientRequest:Bo,IncomingMessage:HC,Agent:qC,globalAgent:GC,request:QC,get:eE,auto:zC,proxies:{HttpOverHttp2:WC,HttpsOverHttp2:VC,Http2OverHttp2:ZC,Http2OverHttp:YC,Http2OverHttps:JC},validateHeaderName:KC,validateHeaderValue:XC}});l();l();var Go=o((t=0)=>e=>`\x1B[${e+t}m`,"wrapAnsi16"),Ho=o((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"wrapAnsi256"),zo=o((t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,"wrapAnsi16m"),J={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]}},NE=Object.keys(J.modifier),_d=Object.keys(J.color),xd=Object.keys(J.bgColor),IE=[..._d,...xd];function Sd(){let t=new Map;for(let[e,r]of Object.entries(J)){for(let[n,s]of Object.entries(r))J[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=J[n],t.set(s[0],s[1]);Object.defineProperty(J,e,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:t,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=Go(),J.color.ansi256=Ho(),J.color.ansi16m=zo(),J.bgColor.ansi=Go(10),J.bgColor.ansi256=Ho(10),J.bgColor.ansi16m=zo(10),Object.defineProperties(J,{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:o(e=>J.rgbToAnsi256(...J.hexToRgb(e)),"value"),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 a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let u=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(u+=60),u},enumerable:!1},rgbToAnsi:{value:o((e,r,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),"value"),enumerable:!1}}),J}o(Sd,"assembleStyles");var vd=Sd(),Oe=vd;l();import Fs from"node:process";import Ad from"node:os";import Wo from"node:tty";function Ae(t,e=globalThis.Deno?globalThis.Deno.args:Fs.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}o(Ae,"hasFlag");var{env:re}=Fs,un;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?un=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(un=1);function Td(){if("FORCE_COLOR"in re)return re.FORCE_COLOR==="true"?1:re.FORCE_COLOR==="false"?0:re.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(re.FORCE_COLOR,10),3)}o(Td,"envForceColor");function kd(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}o(kd,"translateLevel");function Pd(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Td();n!==void 0&&(un=n);let s=r?un:n;if(s===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if("TF_BUILD"in re&&"AGENT_NAME"in re)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(re.TERM==="dumb")return i;if(Fs.platform==="win32"){let u=Ad.release().split(".");return Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in re)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(u=>u in re)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(u=>u in re)||re.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in re)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(re.TEAMCITY_VERSION)?1:0;if(re.COLORTERM==="truecolor"||re.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in re){let u=Number.parseInt((re.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(re.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(re.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(re.TERM)||"COLORTERM"in re?1:i}o(Pd,"_supportsColor");function Vo(t,e={}){let r=Pd(t,{streamIsTTY:t&&t.isTTY,...e});return kd(r)}o(Vo,"createSupportsColor");var Ld={stdout:Vo({isTTY:Wo.isatty(1)}),stderr:Vo({isTTY:Wo.isatty(2)})},Zo=Ld;l();function Yo(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,u="";do u+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return u+=t.slice(i),u}o(Yo,"stringReplaceAll");function Jo(t,e,r,n){let s=0,i="";do{let u=t[n-1]==="\r";i+=t.slice(s,u?n-1:n)+e+(u?`\r
14
+ `)),u+=g+n[c+1]}),u}o(yf,"dedent");Ir.dedent=yf;Ir.default=yf});var xf=w((qi,Gi)=>{"use strict";l();Object.defineProperty(qi,"__esModule",{value:!0});function Lg(t){return t.encrypted}o(Lg,"isTLSSocket");var Ui=o((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",u=o(()=>{n&&r.connect(),Lg(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)},"onConnect");t.writable&&!t.connecting?u():t.connecting?t.once("connect",u):t.destroyed&&i&&r.close(t._hadError)},"deferToConnect");qi.default=Ui;Gi.exports=Ui;Gi.exports.default=Ui});var Tf=w((IA,Af)=>{"use strict";l();var{PassThrough:Ug}=L("stream");Af.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 Ug({objectMode:s});r&&i.setEncoding(r);let u=0,a=[];return i.on("data",c=>{a.push(c),s?u=a.length:u+=c.length}),i.getBufferedValue=()=>e?a:n?Buffer.concat(a,u):a.join(""),i.getBufferedLength=()=>u,i}});var Vi=w(($A,Ur)=>{"use strict";l();var{constants:qg}=L("buffer"),Gg=L("stream"),{promisify:Hg}=L("util"),zg=Tf(),Wg=Hg(Gg.pipeline),Xn=class extends Error{static{o(this,"MaxBufferError")}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=zg(e);return await new Promise((s,i)=>{let u=o(a=>{a&&n.getBufferedLength()<=qg.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),i(a)},"rejectPromise");(async()=>{try{await Wg(t,n),s()}catch(a){u(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&u(new Xn)})}),n.getBufferedValue()}o(Wi,"getStream");Ur.exports=Wi;Ur.exports.buffer=(t,e)=>Wi(t,{...e,encoding:"buffer"});Ur.exports.array=(t,e)=>Wi(t,{...e,array:!0});Ur.exports.MaxBufferError=Xn});var Pf=w((GA,kf)=>{"use strict";l();var Vg=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Zg=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Yg=new Set([500,502,503,504]),Jg={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Kg={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Rt(t){let e=parseInt(t,10);return isFinite(e)?e:0}o(Rt,"toNumberOrZero");function Xg(t){return t?Yg.has(t.status):!0}o(Xg,"isErrorResponse");function Zi(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}o(Zi,"parseCacheControl");function Qg(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(", ")}o(Qg,"formatCacheControl");kf.exports=class{static{o(this,"CachePolicy")}constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:u,_fromObject:a}={}){if(a){this._fromObject(a);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=Zi(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=Zi(e.headers["cache-control"]),u&&"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":Qg(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())&&Zg.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||Vg.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=Zi(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)Jg[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 Rt(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 Rt(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Rt(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+Rt(this._rescc["stale-if-error"]),n=e+Rt(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Rt(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Rt(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()&&Xg(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 u in this._resHeaders)s[u]=u in r.headers&&!Kg[u]?r.headers[u]:this._resHeaders[u];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 Lf=w(Yi=>{l();Yi.stringify=o(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 u=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!u&&(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)},"stringify");Yi.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 Nf=w((n1,Rf)=>{"use strict";l();var tF=L("events"),Of=Lf(),rF=o(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(L(e[r]))(t)}return new Map},"loadStore"),Bf=["sqlite","postgres","mysql","mongo","redis","tiered"],Ji=class extends tF{static{o(this,"Keyv")}constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Of.stringify,deserialize:Of.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=rF(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=o(i=>async function*(){for await(let[u,a]of typeof i=="function"?i(this.opts.store.namespace):i){let c=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),c.value]}}},"generateIterator");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 Bf.includes(this.opts.store.opts.dialect)||Bf.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 u=[];for(let a of i)u.push(Promise.resolve().then(()=>n.get(a)).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(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(u).then(a=>{let c=[];for(let f of a)c.push(f.value);return c})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return s?u.map((a,c)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[c]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof u.expires=="number"&&Date.now()>u.expires?this.delete(e).then(()=>{}):r&&r.raw?u:u.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 u=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:u},this.opts.serialize(r)}).then(u=>i.set(s,u,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 u of s)i.push(r.delete(u));return Promise.allSettled(i).then(u=>u.every(a=>a.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()}};Rf.exports=Ji});var Uf=w((_1,Mf)=>{"use strict";l();var fF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Mf.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(fF)),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 Gf=w((S1,qf)=>{"use strict";l();var{Transform:hF,PassThrough:dF}=L("stream"),eo=L("zlib"),DF=Uf();qf.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof eo.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new hF({transform(a,c,f){n=!1,f(null,a)},flush(a){a()}}),i=new dF({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),u=r?eo.createBrotliDecompress():eo.createUnzip();return u.once("error",a=>{if(n&&!t.readable){i.end();return}i.destroy(a)}),DF(t,i),t.pipe(s).pipe(u).pipe(i),i}});var ho=w((Q3,sh)=>{"use strict";l();var fo=class{static{o(this,"QuickLRU")}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)}};sh.exports=fo});var Do=w((rT,ih)=>{"use strict";l();ih.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=o(r=>{Promise.resolve().then(()=>{t.emit("error",r)})},"onError");return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var It=w((iT,fh)=>{"use strict";l();var{URL:oh}=L("url"),RF=L("events"),NF=L("tls"),IF=L("http2"),jF=ho(),$F=Do(),Ee=Symbol("currentStreamCount"),uh=Symbol("request"),be=Symbol("cachedOriginSet"),ht=Symbol("gracefullyClosing"),us=Symbol("length"),ah=["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"],MF=o((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},"getSortedIndex"),UF=o((t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,"compareSessions"),po=o((t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[be].length>0&&n[be].length<e[be].length&&n[be].every(s=>e[be].includes(s))&&n[Ee]+e[Ee]<=e.remoteSettings.maxConcurrentStreams&&lh(n)}},"closeCoveredSessions"),ch=o((t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[be].length>0&&e[be].length<n[be].length&&e[be].every(s=>n[be].includes(s))&&e[Ee]+n[Ee]<=n.remoteSettings.maxConcurrentStreams)return lh(e),!0}return!1},"closeSessionIfCovered"),lh=o(t=>{t[ht]=!0,t[Ee]===0&&t.close()},"gracefullyClose"),dr=class t extends RF{static{o(this,"Agent")}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 jF({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<ah.length;n++){let s=ah[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[Ee]<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 oh(e);else if(!(e instanceof oh))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:h}=r,{hostname:g}=e;if(h&&g!==h)throw new Error(`Origin ${g} differs from servername ${h}`)}}catch(h){for(let g=0;g<n.length;g++)n[g].reject(h);return}let u=this.normalizeOptions(r),a=e.origin;if(u in this.sessions){let h=this.sessions[u],g=-1,m=-1,y;for(let F=0;F<h.length;F++){let D=h[F],E=D.remoteSettings.maxConcurrentStreams;if(E<g)break;if(!D[be].includes(a))continue;let C=D[Ee];C>=E||D[ht]||D.destroyed||(y||(g=E),this._isBetterSession(C,m)&&(y=D,m=C))}if(y){this._accept(y,n,a,r);return}}if(u in this.queue){if(a in this.queue[u]){this.queue[u][a].listeners.push(...n);return}}else this.queue[u]={[us]:0};let c=o(()=>{u in this.queue&&this.queue[u][a]===f&&(delete this.queue[u][a],--this.queue[u][us]===0&&delete this.queue[u])},"removeFromQueue"),f=o(async()=>{this._sessionCount++;let h=`${a}:${u}`,g=!1,m;try{let y={...r};y.settings===void 0&&(y.settings=this.settings),y.session===void 0&&(y.session=this.tlsSessionCache.get(h)),m=await(y.createConnection||this.createConnection).call(this,e,y),y.createConnection=()=>m;let D=IF.connect(e,y);D[Ee]=0,D[ht]=!1;let E=o(()=>{let{socket:S}=D,P;return S.servername===!1?(S.servername=S.remoteAddress,P=D.originSet,S.servername=!1):P=D.originSet,P},"getOriginSet"),C=o(()=>D[Ee]<D.remoteSettings.maxConcurrentStreams,"isFree");D.socket.once("session",S=>{this.tlsSessionCache.set(h,S)}),D.once("error",S=>{for(let P=0;P<n.length;P++)n[P].reject(S);this.tlsSessionCache.delete(h)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(this._sessionCount--,g){this._emptySessionCount--;let S=this.sessions[u];S.length===1?delete this.sessions[u]:S.splice(S.indexOf(D),1)}else{c();let S=new Error("Session closed without receiving a SETTINGS frame");S.code="HTTP2WRAPPER_NOSETTINGS";for(let P=0;P<n.length;P++)n[P].reject(S)}this._processQueue()});let T=o(()=>{let S=this.queue[u];if(!S)return;let P=D[be];for(let j=0;j<P.length;j++){let X=P[j];if(X in S){let{listeners:se,completed:je}=S[X],O=0;for(;O<se.length&&C();)se[O].resolve(D),O++;if(S[X].listeners.splice(0,O),S[X].listeners.length===0&&!je&&(delete S[X],--S[us]===0)){delete this.queue[u];break}if(!C())break}}},"processListeners");D.on("origin",()=>{D[be]=E()||[],D[ht]=!1,ch(this.sessions[u],D),!(D[ht]||!C())&&(T(),C()&&po(this.sessions[u],D))}),D.once("remoteSettings",()=>{if(f.destroyed){let S=new Error("Agent has been destroyed");for(let P=0;P<n.length;P++)n[P].reject(S);D.destroy();return}if(D.setLocalWindowSize&&D.setLocalWindowSize(1024*1024*4),D[be]=E()||[],D.socket.encrypted){let S=D[be][0];if(S!==a){let P=new Error(`Requested origin ${a} does not match server ${S}`);for(let j=0;j<n.length;j++)n[j].reject(P);D.destroy();return}}c();{let S=this.sessions;if(u in S){let P=S[u];P.splice(MF(P,D,UF),0,D)}else S[u]=[D]}g=!0,this._emptySessionCount++,this.emit("session",D),this._accept(D,n,a,r),D[Ee]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),D.on("remoteSettings",()=>{C()&&(T(),C()&&po(this.sessions[u],D))})}),D[uh]=D.request,D.request=(S,P)=>{if(D[ht])throw new Error("The session is gracefully closing. No new streams are allowed.");let j=D[uh](S,P);return D.ref(),D[Ee]++===0&&this._emptySessionCount--,j.once("close",()=>{if(--D[Ee]===0&&(this._emptySessionCount++,D.unref(),this._emptySessionCount>this.maxEmptySessions||D[ht])){D.close();return}D.destroyed||D.closed||C()&&!ch(this.sessions[u],D)&&(po(this.sessions[u],D),T(),D[Ee]===0&&this._processQueue())}),j}}catch(y){c(),this._sessionCount--;for(let F=0;F<n.length;F++)n[F].reject(y)}},"entry");f.listeners=n,f.completed=!1,f.destroyed=!1,this.queue[u][a]=f,this.queue[u][us]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,u)=>{this.getSession(e,r,[{reject:u,resolve:o(a=>{try{let c=a.request(n,s);$F(c),i(c)}catch(c){u(c)}},"resolve")}])})}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=NF.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 u=0;u<i.length;u++){let a=i[u];if(a[Ee]===0&&(r++,a.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 u=0;u<i.length;u++)i[u].destroy(e)}for(let s in n){let i=n[s];for(let u in i)i[u].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};dr.kCurrentStreamCount=Ee;dr.kGracefullyClosing=ht;fh.exports={Agent:dr,globalAgent:new dr}});var yo=w((aT,hh)=>{"use strict";l();var{Readable:qF}=L("stream"),mo=class extends qF{static{o(this,"IncomingMessage")}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()}};hh.exports=mo});var Dh=w((fT,dh)=>{"use strict";l();dh.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var en=w((DT,ph)=>{"use strict";l();var jt=o((t,e,r)=>{ph.exports[e]=class extends t{static{o(this,"NodeError")}constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}},"makeError");jt(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]}`});jt(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);jt(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);jt(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);jt(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);jt(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);jt(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var yh=w((yT,mh)=>{"use strict";l();mh.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var go=w((FT,gh)=>{"use strict";l();var{ERR_INVALID_HTTP_TOKEN:GF}=en(),HF=yh(),zF=/^[\^`\-\w!#$%&*+.|~]+$/;gh.exports=t=>{if(typeof t!="string"||!zF.test(t)&&!HF(t))throw new GF("Header name",t)}});var Fo=w((ET,Fh)=>{"use strict";l();var{ERR_HTTP_INVALID_HEADER_VALUE:WF,ERR_INVALID_CHAR:VF}=en(),ZF=/[^\t\u0020-\u007E\u0080-\u00FF]/;Fh.exports=(t,e)=>{if(typeof e>"u")throw new WF(e,t);if(ZF.test(e))throw new VF("header content",t)}});var bh=w((wT,Eh)=>{"use strict";l();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:Ch}=en(),YF={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 Ch;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 Ch;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};Eh.exports=YF});var wo=w((xT,Ah)=>{"use strict";l();var{URL:Co,urlToHttpOptions:wh}=L("url"),JF=L("http2"),{Writable:KF}=L("stream"),{Agent:XF,globalAgent:QF}=It(),eC=yo(),tC=Dh(),{ERR_INVALID_ARG_TYPE:as,ERR_INVALID_PROTOCOL:rC,ERR_HTTP_HEADERS_SENT:_h}=en(),nC=go(),sC=Fo(),iC=bh(),{HTTP2_HEADER_STATUS:xh,HTTP2_HEADER_METHOD:Sh,HTTP2_HEADER_PATH:vh,HTTP2_HEADER_AUTHORITY:tn,HTTP2_METHOD_CONNECT:oC}=JF.constants,de=Symbol("headers"),Dr=Symbol("origin"),rn=Symbol("session"),Eo=Symbol("options"),cs=Symbol("flushedHeaders"),pr=Symbol("jobs"),nn=Symbol("pendingAgentPromise"),bo=class extends KF{static{o(this,"ClientRequest")}constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=wh(new Co(e)):e instanceof Co?e=wh(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[rn]=r.h2session,this[rn].destroyed)throw new Error("The session has been closed already");this.protocol=this[rn].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new XF({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=QF;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new as("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 rC(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[de]=Object.create(null),this[pr]=[],this[nn]=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 a in i)this.setHeader(a,i[a]);r.auth&&!("authorization"in this[de])&&(this[de].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Eo]=r,this[Dr]=new Co(`${this.protocol}//${r.servername||r.host}:${r.port}`);let u=r._reuseSocket;u&&(r.createConnection=(...a)=>u.destroyed?this.agent.createConnection(...a):u,this.agent.getSession(this[Dr],this[Eo]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[cs]=!1}get method(){return this[de][Sh]}set method(e){e&&(this[de][Sh]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?tn:vh;return this[de][e]}set path(e){if(e){let r=this.method==="CONNECT"?tn:vh;this[de][r]=e}}get host(){return this[Dr].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=o(()=>this._request.write(e,r,n),"callWrite");this._request?s():this[pr].push(s)}_final(e){this.flushHeaders();let r=o(()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)},"callEnd");this._request?r():this[pr].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[nn]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[cs]||this.destroyed)return;this[cs]=!0;let e=this.method===oC,r=o(n=>{if(this._request=n,this.destroyed){n.destroy();return}e||tC(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=o((i,u,a)=>{let c=new eC(this.socket,n.readableHighWaterMark);this.res=c,c.url=`${this[Dr].origin}${this.path}`,c.req=this,c.statusCode=i[xh],c.headers=i,c.rawHeaders=a,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())},"onResponse");n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[xh]})),n.once("trailers",(i,u,a)=>{let{res:c}=this;if(c===null){s(i,u,a);return}c.trailers=i,c.rawTrailers=a}),n.once("close",()=>{let{aborted:i,res:u}=this;if(u){i&&(u.aborted=!0,u.emit("aborted"),u.destroy());let a=o(()=>{u.emit("close"),this.destroy(),this.emit("close")},"finish");u.readable?u.once("end",a):a();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,iC);for(let i of this[pr])i();this[pr].length=0,this.emit("socket",this.socket)},"onStream");if(!(tn in this[de])&&!e&&(this[de][tn]=this[Dr].host),this[rn])try{r(this[rn].request(this[de]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Dr],this[Eo],this[de]);this[nn]=n,r(await n),this[nn]=!1}catch(n){this[nn]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[de])}hasHeader(e){if(typeof e!="string")throw new as("name","string",e);return!!this[de][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new as("name","string",e);return this[de][e.toLowerCase()]}get headersSent(){return this[cs]}removeHeader(e){if(typeof e!="string")throw new as("name","string",e);if(this.headersSent)throw new _h("remove");delete this[de][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new _h("set");nC(e),sC(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[de][tn]=r:this[de][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=o(()=>this._request.setTimeout(e,r),"applyTimeout");return this._request?n():this[pr].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Ah.exports=bo});var kh=w((AT,Th)=>{"use strict";l();var uC=L("tls");Th.exports=(t={},e=uC.connect)=>new Promise((r,n)=>{let s=!1,i,u=o(async()=>{await c,i.off("timeout",a),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}))},"callback"),a=o(async()=>{s=!0,u()},"onTimeout"),c=(async()=>{try{i=await e(t,u),i.on("error",n),i.once("timeout",a)}catch(f){n(f)}})()})});var Lh=w((PT,Ph)=>{"use strict";l();var{isIP:aC}=L("net"),cC=L("assert"),lC=o(t=>{if(t[0]==="["){let r=t.indexOf("]");return cC(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)},"getHost");Ph.exports=t=>{let e=lC(t);return aC(e)?"":e}});var Mh=w((BT,sn)=>{"use strict";l();var{URL:Oh,urlToHttpOptions:Bh}=L("url"),Rh=L("http"),_o=L("https"),fC=kh(),hC=ho(),{Agent:dC,globalAgent:DC}=It(),pC=wo(),mC=Lh(),Nh=Do(),Ih=new hC({maxSize:100}),yC=new Map,gC=o((t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=o(()=>{t.emit("free",e,r)},"onFree");e.on("free",n);let s=o(()=>{t.removeSocket(e,r)},"onClose");e.on("close",s);let i=o(()=>{let{freeSockets:a}=t;for(let c of Object.values(a))if(c.includes(e)){e.destroy();return}},"onTimeout");e.on("timeout",i);let u=o(()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",u)},"onRemove");e.on("agentRemove",u),t.emit("free",e,r)},"installSocket"),jh=o((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 u=fC(n,r);e.set(s,u);try{let a=await u;return t.set(s,a.alpnProtocol),e.delete(s),n.path=i,a}catch(a){throw e.delete(s),n.path=i,a}}return{alpnProtocol:t.get(s)}},"createResolveProtocol"),$h=jh(Ih,yC);sn.exports=async(t,e,r)=>{if(typeof t=="string"?t=Bh(new Oh(t)):t instanceof Oh?t=Bh(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||mC(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?_o.globalAgent:Rh.globalAgent;let s=e.resolveProtocol||$h,{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:u,alpnProtocol:a,timeout:c}=await s(e);if(c){u&&u.destroy();let h=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw h.code="ETIMEDOUT",h.ms=e.timeout,h}u&&e.createConnection&&(u.destroy(),u=void 0),delete e.resolveSocket;let f=a==="h2";if(i&&(i=f?i.http2:i.https,e.agent=i),i===void 0&&(i=f?DC:_o.globalAgent),u)if(i===!1)u.destroy();else{let h=(f?dC:_o.Agent).prototype.createConnection;i.createConnection===h?f?e._reuseSocket=u:gC(i,u,e):u.destroy()}if(f)return Nh(new pC(e,r))}else i&&(e.agent=i.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),Nh(Rh.request(e,r))};sn.exports.protocolCache=Ih;sn.exports.resolveProtocol=$h;sn.exports.createResolveProtocol=jh});var xo=w((IT,Uh)=>{"use strict";l();var FC=L("stream"),CC=L("tls"),EC=new CC.TLSSocket(new FC.PassThrough)._handle._parentWrap.constructor;Uh.exports=EC});var vo=w(($T,qh)=>{"use strict";l();var So=class extends Error{static{o(this,"UnexpectedStatusCodeError")}constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};qh.exports=So});var Hh=w((qT,Gh)=>{"use strict";l();var bC=o((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}`)}},"checkType");Gh.exports=bC});var Ao=w((zT,Wh)=>{"use strict";l();var{URL:zh}=L("url"),ls=Hh();Wh.exports=(t,e)=>{ls("proxyOptions",e,["object"]),ls("proxyOptions.headers",e.headers,["object","undefined"]),ls("proxyOptions.raw",e.raw,["boolean","undefined"]),ls("proxyOptions.url",e.url,[zh,"string"]);let r=new zh(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var fs=w((VT,Vh)=>{"use strict";l();Vh.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 Xh=w((YT,Kh)=>{"use strict";l();var wC=L("tls"),_C=L("http"),Zh=L("https"),xC=xo(),{globalAgent:SC}=It(),vC=vo(),Yh=Ao(),AC=fs(),Jh=o((t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:u}=n,a=await SC.request(s,n,{...AC(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",c=>{let f=c[":status"];if(f!==200){r(new vC(f,""));return}let h=t instanceof Zh.Agent;if(u&&h){e.socket=a;let m=wC.connect(e);m.once("close",()=>{a.destroy()}),r(null,m);return}let g=new xC(a);g.encrypted=!1,g._handle.getpeername=m=>{m.family=void 0,m.address=void 0,m.port=void 0},r(null,g)})}catch(n){r(n)}})()},"createConnection"),To=class extends _C.Agent{static{o(this,"HttpOverHttp2")}constructor(e){super(e),Yh(this,e.proxyOptions)}createConnection(e,r){Jh(this,e,r)}},ko=class extends Zh.Agent{static{o(this,"HttpsOverHttp2")}constructor(e){super(e),Yh(this,e.proxyOptions)}createConnection(e,r){Jh(this,e,r)}};Kh.exports={HttpOverHttp2:To,HttpsOverHttp2:ko}});var Lo=w((XT,Qh)=>{"use strict";l();var{Agent:TC}=It(),kC=xo(),PC=vo(),LC=Ao(),Po=class extends TC{static{o(this,"Http2OverHttpX")}constructor(e){super(e),LC(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,u]=await this._getProxyStream(n);if(i!==200)throw new PC(i,u);if(this.proxyOptions.raw)r.socket=s;else{let a=new kC(s);return a.encrypted=!1,a._handle.getpeername=c=>{c.family=void 0,c.address=void 0,c.port=void 0},a}return super.createConnection(e,r)}};Qh.exports=Po});var td=w((tk,ed)=>{"use strict";l();var{globalAgent:OC}=It(),BC=Lo(),RC=fs(),NC=o(t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),"getStatusCode"),Oo=class extends BC{static{o(this,"Http2OverHttp2")}async _getProxyStream(e){let{proxyOptions:r}=this,n={...RC(this),...r.headers,":method":"CONNECT",":authority":e},s=await OC.request(r.url,r,n),i=await NC(s);return[s,i,""]}};ed.exports=Oo});var nd=w((sk,rd)=>{"use strict";l();var IC=L("http"),jC=L("https"),$C=Lo(),MC=fs(),UC=o(t=>new Promise((e,r)=>{let n=o((s,i,u)=>{i.unshift(u),t.off("error",r),e([i,s.statusCode,s.statusMessage])},"onConnect");t.once("error",r),t.once("connect",n)}),"getStream"),hs=class extends $C{static{o(this,"Http2OverHttp")}async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,u=(n.protocol==="https:"?jC:IC).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...MC(this),...s,host:e},method:"CONNECT"}).end();return UC(u)}};rd.exports={Http2OverHttp:hs,Http2OverHttps:hs}});var id=w((uk,sd)=>{"use strict";l();var qC=L("http2"),{Agent:GC,globalAgent:HC}=It(),Bo=wo(),zC=yo(),WC=Mh(),{HttpOverHttp2:VC,HttpsOverHttp2:ZC}=Xh(),YC=td(),{Http2OverHttp:JC,Http2OverHttps:KC}=nd(),XC=go(),QC=Fo(),eE=o((t,e,r)=>new Bo(t,e,r),"request"),tE=o((t,e,r)=>{let n=new Bo(t,e,r);return n.end(),n},"get");sd.exports={...qC,ClientRequest:Bo,IncomingMessage:zC,Agent:GC,globalAgent:HC,request:eE,get:tE,auto:WC,proxies:{HttpOverHttp2:VC,HttpsOverHttp2:ZC,Http2OverHttp2:YC,Http2OverHttp:JC,Http2OverHttps:KC},validateHeaderName:XC,validateHeaderValue:QC}});l();l();var Go=o((t=0)=>e=>`\x1B[${e+t}m`,"wrapAnsi16"),Ho=o((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"wrapAnsi256"),zo=o((t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,"wrapAnsi16m"),J={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]}},IE=Object.keys(J.modifier),xd=Object.keys(J.color),Sd=Object.keys(J.bgColor),jE=[...xd,...Sd];function vd(){let t=new Map;for(let[e,r]of Object.entries(J)){for(let[n,s]of Object.entries(r))J[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=J[n],t.set(s[0],s[1]);Object.defineProperty(J,e,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:t,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=Go(),J.color.ansi256=Ho(),J.color.ansi16m=zo(),J.bgColor.ansi=Go(10),J.bgColor.ansi256=Ho(10),J.bgColor.ansi16m=zo(10),Object.defineProperties(J,{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:o(e=>J.rgbToAnsi256(...J.hexToRgb(e)),"value"),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 a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let u=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(u+=60),u},enumerable:!1},rgbToAnsi:{value:o((e,r,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),"value"),enumerable:!1}}),J}o(vd,"assembleStyles");var Ad=vd(),Oe=Ad;l();import Fs from"node:process";import Td from"node:os";import Wo from"node:tty";function Ae(t,e=globalThis.Deno?globalThis.Deno.args:Fs.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}o(Ae,"hasFlag");var{env:re}=Fs,un;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?un=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(un=1);function kd(){if("FORCE_COLOR"in re)return re.FORCE_COLOR==="true"?1:re.FORCE_COLOR==="false"?0:re.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(re.FORCE_COLOR,10),3)}o(kd,"envForceColor");function Pd(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}o(Pd,"translateLevel");function Ld(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=kd();n!==void 0&&(un=n);let s=r?un:n;if(s===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if("TF_BUILD"in re&&"AGENT_NAME"in re)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(re.TERM==="dumb")return i;if(Fs.platform==="win32"){let u=Td.release().split(".");return Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in re)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(u=>u in re)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(u=>u in re)||re.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in re)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(re.TEAMCITY_VERSION)?1:0;if(re.COLORTERM==="truecolor"||re.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in re){let u=Number.parseInt((re.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(re.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(re.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(re.TERM)||"COLORTERM"in re?1:i}o(Ld,"_supportsColor");function Vo(t,e={}){let r=Ld(t,{streamIsTTY:t&&t.isTTY,...e});return Pd(r)}o(Vo,"createSupportsColor");var Od={stdout:Vo({isTTY:Wo.isatty(1)}),stderr:Vo({isTTY:Wo.isatty(2)})},Zo=Od;l();function Yo(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,u="";do u+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return u+=t.slice(i),u}o(Yo,"stringReplaceAll");function Jo(t,e,r,n){let s=0,i="";do{let u=t[n-1]==="\r";i+=t.slice(s,u?n-1:n)+e+(u?`\r
15
15
  `:`
16
16
  `)+r,s=n+1,n=t.indexOf(`
17
- `,s)}while(n!==-1);return i+=t.slice(s),i}o(Jo,"stringEncaseCRLFWithFirstIndex");var{stdout:Ko,stderr:Xo}=Zo,Cs=Symbol("GENERATOR"),Mt=Symbol("STYLER"),gr=Symbol("IS_EMPTY"),Qo=["ansi","ansi","ansi256","ansi16m"],Ut=Object.create(null),Od=o((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=Ko?Ko.level:0;t.level=e.level===void 0?r:e.level},"applyOptions"),eu=class{static{o(this,"Chalk")}constructor(e){return tu(e)}},tu=o(t=>{let e=o((...r)=>r.join(" "),"chalk");return Od(e,t),Object.setPrototypeOf(e,Fr.prototype),e},"chalkFactory");function Fr(t){return tu(t)}o(Fr,"createChalk");Object.setPrototypeOf(Fr.prototype,Function.prototype);for(let[t,e]of Object.entries(Oe))Ut[t]={get(){let r=an(this,bs(e.open,e.close,this[Mt]),this[gr]);return Object.defineProperty(this,t,{value:r}),r}};Ut.visible={get(){let t=an(this,this[Mt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Es=o((t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Oe[r].ansi16m(...n):e==="ansi256"?Oe[r].ansi256(Oe.rgbToAnsi256(...n)):Oe[r].ansi(Oe.rgbToAnsi(...n)):t==="hex"?Es("rgb",e,r,...Oe.hexToRgb(...n)):Oe[r][t](...n),"getModelAnsi"),Bd=["rgb","hex","ansi256"];for(let t of Bd){Ut[t]={get(){let{level:r}=this;return function(...n){let s=bs(Es(t,Qo[r],"color",...n),Oe.color.close,this[Mt]);return an(this,s,this[gr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ut[e]={get(){let{level:r}=this;return function(...n){let s=bs(Es(t,Qo[r],"bgColor",...n),Oe.bgColor.close,this[Mt]);return an(this,s,this[gr])}}}}var Rd=Object.defineProperties(()=>{},{...Ut,level:{enumerable:!0,get(){return this[Cs].level},set(t){this[Cs].level=t}}}),bs=o((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}},"createStyler"),an=o((t,e,r)=>{let n=o((...s)=>Nd(n,s.length===1?""+s[0]:s.join(" ")),"builder");return Object.setPrototypeOf(n,Rd),n[Cs]=t,n[Mt]=e,n[gr]=r,n},"createBuilder"),Nd=o((t,e)=>{if(t.level<=0||!e)return t[gr]?"":e;let r=t[Mt];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Yo(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
18
- `);return i!==-1&&(e=Jo(e,s,n,i)),n+e+s},"applyStyle");Object.defineProperties(Fr.prototype,Ut);var Id=Fr(),ru=Fr({level:Xo?Xo.level:0});var Ge=Id;l();import jd from"node:process";var Cr={get value(){return jd.env.GGT_ENV||"production"},get productionLike(){return!this.developmentOrTestLike},get developmentLike(){return this.value.startsWith("development")},get testLike(){return this.value.startsWith("test")},get developmentOrTestLike(){return this.developmentLike||this.testLike}};l();l();var $;(function(t){t.assertEqual=s=>s;function e(s){}o(e,"assertIs"),t.assertIs=e;function r(s){throw new Error}o(r,"assertNever"),t.assertNever=r,t.arrayToEnum=s=>{let i={};for(let u of s)i[u]=u;return i},t.getValidEnumValues=s=>{let i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),u={};for(let a of i)u[a]=s[a];return t.objectValues(u)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let u in s)Object.prototype.hasOwnProperty.call(s,u)&&i.push(u);return i},t.find=(s,i)=>{for(let u of s)if(i(u))return u},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(u=>typeof u=="string"?`'${u}'`:u).join(i)}o(n,"joinValues"),t.joinValues=n,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})($||($={}));var _s;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(_s||(_s={}));var A=$.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ze=o(t=>{switch(typeof t){case"undefined":return A.undefined;case"string":return A.string;case"number":return isNaN(t)?A.nan:A.number;case"boolean":return A.boolean;case"function":return A.function;case"bigint":return A.bigint;case"symbol":return A.symbol;case"object":return Array.isArray(t)?A.array:t===null?A.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?A.promise:typeof Map<"u"&&t instanceof Map?A.map:typeof Set<"u"&&t instanceof Set?A.set:typeof Date<"u"&&t instanceof Date?A.date:A.object;default:return A.unknown}},"getParsedType"),_=$.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$d=o(t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),xe=class t extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(i){return i.message},n={_errors:[]},s=o(i=>{for(let u of i.issues)if(u.code==="invalid_union")u.unionErrors.map(s);else if(u.code==="invalid_return_type")s(u.returnTypeError);else if(u.code==="invalid_arguments")s(u.argumentsError);else if(u.path.length===0)n._errors.push(r(u));else{let a=n,c=0;for(;c<u.path.length;){let f=u.path[c];c===u.path.length-1?(a[f]=a[f]||{_errors:[]},a[f]._errors.push(r(u))):a[f]=a[f]||{_errors:[]},a=a[f],c++}}},"processError");return s(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(e(s))):n.push(e(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};xe.create=t=>new xe(t);var Ht=o((t,e)=>{let r;switch(t.code){case _.invalid_type:t.received===A.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case _.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,$.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:r=`Unrecognized key(s) in object: ${$.joinValues(t.keys,", ")}`;break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${$.joinValues(t.options)}`;break;case _.invalid_enum_value:r=`Invalid enum value. Expected ${$.joinValues(t.options)}, received '${t.received}'`;break;case _.invalid_arguments:r="Invalid function arguments";break;case _.invalid_return_type:r="Invalid function return type";break;case _.invalid_date:r="Invalid date";break;case _.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:$.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case _.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case _.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case _.custom:r="Invalid input";break;case _.invalid_intersection_types:r="Intersection results could not be merged";break;case _.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case _.not_finite:r="Number must be finite";break;default:r=e.defaultError,$.assertNever(t)}return{message:r}},"errorMap"),iu=Ht;function Md(t){iu=t}o(Md,"setErrorMap");function cn(){return iu}o(cn,"getErrorMap");var ln=o(t=>{let{data:e,path:r,errorMaps:n,issueData:s}=t,i=[...r,...s.path||[]],u={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="",c=n.filter(f=>!!f).slice().reverse();for(let f of c)a=f(u,{data:e,defaultError:a}).message;return{...s,path:i,message:a}},"makeIssue"),Ud=[];function v(t,e){let r=cn(),n=ln({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Ht?void 0:Ht].filter(s=>!!s)});t.common.issues.push(n)}o(v,"addIssueToContext");var De=class t{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let s of r){if(s.status==="aborted")return R;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let s of r){let i=await s.key,u=await s.value;n.push({key:i,value:u})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let s of r){let{key:i,value:u}=s;if(i.status==="aborted"||u.status==="aborted")return R;i.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof u.value<"u"||s.alwaysSet)&&(n[i.value]=u.value)}return{status:e.value,value:n}}},R=Object.freeze({status:"aborted"}),Gt=o(t=>({status:"dirty",value:t}),"DIRTY"),me=o(t=>({status:"valid",value:t}),"OK"),xs=o(t=>t.status==="aborted","isAborted"),Ss=o(t=>t.status==="dirty","isDirty"),dt=o(t=>t.status==="valid","isValid"),wr=o(t=>typeof Promise<"u"&&t instanceof Promise,"isAsync");function fn(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)}o(fn,"__classPrivateFieldGet");function ou(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}o(ou,"__classPrivateFieldSet");var k;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(k||(k={}));var Er,br,ke=class{static{o(this,"ParseInputLazyPath")}constructor(e,r,n,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},nu=o((t,e)=>{if(dt(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new xe(t.common.issues);return this._error=r,this._error}}},"handleResult");function N(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:s}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:o((u,a)=>{var c,f;let{message:h}=t;return u.code==="invalid_enum_value"?{message:h??a.defaultError}:typeof a.data>"u"?{message:(c=h??n)!==null&&c!==void 0?c:a.defaultError}:u.code!=="invalid_type"?{message:a.defaultError}:{message:(f=h??r)!==null&&f!==void 0?f:a.defaultError}},"customMap"),description:s}}o(N,"processCreateParams");var I=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(e){return ze(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ze(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new De,ctx:{common:e.parent.common,data:e.data,parsedType:ze(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(wr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let s={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)},i=this._parseSync({data:e,path:s.path,parent:s});return nu(s,i)}"~validate"(e){var r,n;let s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:s});return dt(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((n=(r=i?.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(i=>dt(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)},s=this._parse({data:e,path:n.path,parent:n}),i=await(wr(s)?s:Promise.resolve(s));return nu(n,i)}refine(e,r){let n=o(s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r,"getIssueProperties");return this._refinement((s,i)=>{let u=e(s),a=o(()=>i.addIssue({code:_.custom,...n(s)}),"setError");return typeof Promise<"u"&&u instanceof Promise?u.then(c=>c?!0:(a(),!1)):u?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(e){return new Se({schema:this,typeName:B.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o(r=>this["~validate"](r),"validate")}}optional(){return Te.create(this,this._def)}nullable(){return Me.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ve.create(this)}promise(){return Qe.create(this,this._def)}or(e){return Ct.create([this,e],this._def)}and(e){return Et.create(this,e,this._def)}transform(e){return new Se({...N(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new St({...N(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new _r({typeName:B.ZodBranded,type:this,...N(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new vt({...N(this._def),innerType:this,catchValue:r,typeName:B.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xr.create(this,e)}readonly(){return At.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qd=/^c[^\s-]{8,}$/i,Gd=/^[0-9a-z]+$/,Hd=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zd=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wd=/^[a-z0-9_-]{21}$/i,Vd=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Zd=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yd=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Jd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ws,Kd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qd=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uu="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nD=new RegExp(`^${uu}$`);function au(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}o(au,"timeRegexSource");function sD(t){return new RegExp(`^${au(t)}$`)}o(sD,"timeRegex");function cu(t){let e=`${uu}T${au(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}o(cu,"datetimeRegex");function iD(t,e){return!!((e==="v4"||!e)&&Kd.test(t)||(e==="v6"||!e)&&Qd.test(t))}o(iD,"isValidIP");function oD(t,e){if(!Vd.test(t))return!1;try{let[r]=t.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}o(oD,"isValidJWT");function uD(t,e){return!!((e==="v4"||!e)&&Xd.test(t)||(e==="v6"||!e)&&eD.test(t))}o(uD,"isValidCidr");var Ke=class t extends I{static{o(this,"ZodString")}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==A.string){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.string,received:i.parsedType}),R}let n=new De,s;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let u=e.data.length>i.value,a=e.data.length<i.value;(u||a)&&(s=this._getOrReturnCtx(e,s),u?v(s,{code:_.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&v(s,{code:_.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Yd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"email",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ws||(ws=new RegExp(Jd,"u")),ws.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"emoji",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")zd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"uuid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Wd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"nanoid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")qd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cuid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Gd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cuid2",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")Hd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"ulid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),v(s,{validation:"url",code:_.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"regex",code:_.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?cu(i).test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?nD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?sD(i).test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?Zd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"duration",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?iD(e.data,i.version)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"ip",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?oD(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"jwt",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?uD(e.data,i.version)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cidr",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?tD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"base64",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?rD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"base64url",code:_.invalid_string,message:i.message}),n.dirty()):$.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(s=>e.test(s),{validation:r,code:_.invalid_string,...k.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...k.errToObj(e)})}url(e){return this._addCheck({kind:"url",...k.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...k.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...k.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...k.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...k.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...k.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...k.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...k.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...k.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...k.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...k.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...k.errToObj(e)})}datetime(e){var r,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,local:(n=e?.local)!==null&&n!==void 0?n:!1,...k.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...k.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...k.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...k.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...k.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...k.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...k.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...k.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...k.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...k.errToObj(r)})}nonempty(e){return this.min(1,k.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Ke.create=t=>{var e;return new Ke({checks:[],typeName:B.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...N(t)})};function aD(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=r>n?r:n,i=parseInt(t.toFixed(s).replace(".","")),u=parseInt(e.toFixed(s).replace(".",""));return i%u/Math.pow(10,s)}o(aD,"floatSafeRemainder");var Dt=class t extends I{static{o(this,"ZodNumber")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==A.number){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.number,received:i.parsedType}),R}let n,s=new De;for(let i of this._def.checks)i.kind==="int"?$.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:_.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?aD(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_finite,message:i.message}),s.dirty()):$.assertNever(i);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,k.toString(r))}gt(e,r){return this.setLimit("min",e,!1,k.toString(r))}lte(e,r){return this.setLimit("max",e,!0,k.toString(r))}lt(e,r){return this.setLimit("max",e,!1,k.toString(r))}setLimit(e,r,n,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:k.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:k.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:k.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&$.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Dt.create=t=>new Dt({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...N(t)});var pt=class t extends I{static{o(this,"ZodBigInt")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==A.bigint)return this._getInvalidInput(e);let n,s=new De;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):$.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return v(r,{code:_.invalid_type,expected:A.bigint,received:r.parsedType}),R}gte(e,r){return this.setLimit("min",e,!0,k.toString(r))}gt(e,r){return this.setLimit("min",e,!1,k.toString(r))}lte(e,r){return this.setLimit("max",e,!0,k.toString(r))}lt(e,r){return this.setLimit("max",e,!1,k.toString(r))}setLimit(e,r,n,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:k.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};pt.create=t=>{var e;return new pt({checks:[],typeName:B.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...N(t)})};var mt=class extends I{static{o(this,"ZodBoolean")}_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==A.boolean){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.boolean,received:n.parsedType}),R}return me(e.data)}};mt.create=t=>new mt({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...N(t)});var yt=class t extends I{static{o(this,"ZodDate")}_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==A.date){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.date,received:i.parsedType}),R}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_date}),R}let n=new De,s;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):$.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:k.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:k.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};yt.create=t=>new yt({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...N(t)});var zt=class extends I{static{o(this,"ZodSymbol")}_parse(e){if(this._getType(e)!==A.symbol){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.symbol,received:n.parsedType}),R}return me(e.data)}};zt.create=t=>new zt({typeName:B.ZodSymbol,...N(t)});var gt=class extends I{static{o(this,"ZodUndefined")}_parse(e){if(this._getType(e)!==A.undefined){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.undefined,received:n.parsedType}),R}return me(e.data)}};gt.create=t=>new gt({typeName:B.ZodUndefined,...N(t)});var Ft=class extends I{static{o(this,"ZodNull")}_parse(e){if(this._getType(e)!==A.null){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.null,received:n.parsedType}),R}return me(e.data)}};Ft.create=t=>new Ft({typeName:B.ZodNull,...N(t)});var Xe=class extends I{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(e){return me(e.data)}};Xe.create=t=>new Xe({typeName:B.ZodAny,...N(t)});var We=class extends I{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(e){return me(e.data)}};We.create=t=>new We({typeName:B.ZodUnknown,...N(t)});var Be=class extends I{static{o(this,"ZodNever")}_parse(e){let r=this._getOrReturnCtx(e);return v(r,{code:_.invalid_type,expected:A.never,received:r.parsedType}),R}};Be.create=t=>new Be({typeName:B.ZodNever,...N(t)});var Wt=class extends I{static{o(this,"ZodVoid")}_parse(e){if(this._getType(e)!==A.undefined){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.void,received:n.parsedType}),R}return me(e.data)}};Wt.create=t=>new Wt({typeName:B.ZodVoid,...N(t)});var Ve=class t extends I{static{o(this,"ZodArray")}_parse(e){let{ctx:r,status:n}=this._processInputParams(e),s=this._def;if(r.parsedType!==A.array)return v(r,{code:_.invalid_type,expected:A.array,received:r.parsedType}),R;if(s.exactLength!==null){let u=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(u||a)&&(v(r,{code:u?_.too_big:_.too_small,minimum:a?s.exactLength.value:void 0,maximum:u?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(v(r,{code:_.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(v(r,{code:_.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((u,a)=>s.type._parseAsync(new ke(r,u,r.path,a)))).then(u=>De.mergeArray(n,u));let i=[...r.data].map((u,a)=>s.type._parseSync(new ke(r,u,r.path,a)));return De.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:k.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:k.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:k.toString(r)}})}nonempty(e){return this.min(1,e)}};Ve.create=(t,e)=>new Ve({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...N(e)});function qt(t){if(t instanceof _e){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Te.create(qt(n))}return new _e({...t._def,shape:o(()=>e,"shape")})}else return t instanceof Ve?new Ve({...t._def,type:qt(t.element)}):t instanceof Te?Te.create(qt(t.unwrap())):t instanceof Me?Me.create(qt(t.unwrap())):t instanceof $e?$e.create(t.items.map(e=>qt(e))):t}o(qt,"deepPartialify");var _e=class t extends I{static{o(this,"ZodObject")}constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=$.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==A.object){let f=this._getOrReturnCtx(e);return v(f,{code:_.invalid_type,expected:A.object,received:f.parsedType}),R}let{status:n,ctx:s}=this._processInputParams(e),{shape:i,keys:u}=this._getCached(),a=[];if(!(this._def.catchall instanceof Be&&this._def.unknownKeys==="strip"))for(let f in s.data)u.includes(f)||a.push(f);let c=[];for(let f of u){let h=i[f],g=s.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new ke(s,g,s.path,f)),alwaysSet:f in s.data})}if(this._def.catchall instanceof Be){let f=this._def.unknownKeys;if(f==="passthrough")for(let h of a)c.push({key:{status:"valid",value:h},value:{status:"valid",value:s.data[h]}});else if(f==="strict")a.length>0&&(v(s,{code:_.unrecognized_keys,keys:a}),n.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let f=this._def.catchall;for(let h of a){let g=s.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new ke(s,g,s.path,h)),alwaysSet:h in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let f=[];for(let h of c){let g=await h.key,m=await h.value;f.push({key:g,value:m,alwaysSet:h.alwaysSet})}return f}).then(f=>De.mergeObjectSync(n,f)):De.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return k.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:o((r,n)=>{var s,i,u,a;let c=(u=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,r,n).message)!==null&&u!==void 0?u:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=k.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}},"errorMap")}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:o(()=>({...this._def.shape(),...e}),"shape")})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:o(()=>({...this._def.shape(),...e._def.shape()}),"shape"),typeName:B.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return $.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new t({...this._def,shape:o(()=>r,"shape")})}omit(e){let r={};return $.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new t({...this._def,shape:o(()=>r,"shape")})}deepPartial(){return qt(this)}partial(e){let r={};return $.objectKeys(this.shape).forEach(n=>{let s=this.shape[n];e&&!e[n]?r[n]=s:r[n]=s.optional()}),new t({...this._def,shape:o(()=>r,"shape")})}required(e){let r={};return $.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Te;)i=i._def.innerType;r[n]=i}}),new t({...this._def,shape:o(()=>r,"shape")})}keyof(){return lu($.objectKeys(this.shape))}};_e.create=(t,e)=>new _e({shape:o(()=>t,"shape"),unknownKeys:"strip",catchall:Be.create(),typeName:B.ZodObject,...N(e)});_e.strictCreate=(t,e)=>new _e({shape:o(()=>t,"shape"),unknownKeys:"strict",catchall:Be.create(),typeName:B.ZodObject,...N(e)});_e.lazycreate=(t,e)=>new _e({shape:t,unknownKeys:"strip",catchall:Be.create(),typeName:B.ZodObject,...N(e)});var Ct=class extends I{static{o(this,"ZodUnion")}_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let u=i.map(a=>new xe(a.ctx.common.issues));return v(r,{code:_.invalid_union,unionErrors:u}),R}if(o(s,"handleResults"),r.common.async)return Promise.all(n.map(async i=>{let u={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:u}),ctx:u}})).then(s);{let i,u=[];for(let c of n){let f={...r,common:{...r.common,issues:[]},parent:null},h=c._parseSync({data:r.data,path:r.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!i&&(i={result:h,ctx:f}),f.common.issues.length&&u.push(f.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=u.map(c=>new xe(c));return v(r,{code:_.invalid_union,unionErrors:a}),R}}get options(){return this._def.options}};Ct.create=(t,e)=>new Ct({options:t,typeName:B.ZodUnion,...N(e)});var He=o(t=>t instanceof bt?He(t.schema):t instanceof Se?He(t.innerType()):t instanceof wt?[t.value]:t instanceof _t?t.options:t instanceof xt?$.objectValues(t.enum):t instanceof St?He(t._def.innerType):t instanceof gt?[void 0]:t instanceof Ft?[null]:t instanceof Te?[void 0,...He(t.unwrap())]:t instanceof Me?[null,...He(t.unwrap())]:t instanceof _r||t instanceof At?He(t.unwrap()):t instanceof vt?He(t._def.innerType):[],"getDiscriminator"),hn=class t extends I{static{o(this,"ZodDiscriminatedUnion")}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.object)return v(r,{code:_.invalid_type,expected:A.object,received:r.parsedType}),R;let n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(v(r,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),R)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let s=new Map;for(let i of r){let u=He(i.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of u){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,i)}}return new t({typeName:B.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:s,...N(n)})}};function vs(t,e){let r=ze(t),n=ze(e);if(t===e)return{valid:!0,data:t};if(r===A.object&&n===A.object){let s=$.objectKeys(e),i=$.objectKeys(t).filter(a=>s.indexOf(a)!==-1),u={...t,...e};for(let a of i){let c=vs(t[a],e[a]);if(!c.valid)return{valid:!1};u[a]=c.data}return{valid:!0,data:u}}else if(r===A.array&&n===A.array){if(t.length!==e.length)return{valid:!1};let s=[];for(let i=0;i<t.length;i++){let u=t[i],a=e[i],c=vs(u,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===A.date&&n===A.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}o(vs,"mergeValues");var Et=class extends I{static{o(this,"ZodIntersection")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),s=o((i,u)=>{if(xs(i)||xs(u))return R;let a=vs(i.value,u.value);return a.valid?((Ss(i)||Ss(u))&&r.dirty(),{status:r.value,value:a.data}):(v(n,{code:_.invalid_intersection_types}),R)},"handleParsed");return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,u])=>s(i,u)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Et.create=(t,e,r)=>new Et({left:t,right:e,typeName:B.ZodIntersection,...N(r)});var $e=class t extends I{static{o(this,"ZodTuple")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.array)return v(n,{code:_.invalid_type,expected:A.array,received:n.parsedType}),R;if(n.data.length<this._def.items.length)return v(n,{code:_.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),R;!this._def.rest&&n.data.length>this._def.items.length&&(v(n,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((u,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ke(n,u,n.path,a)):null}).filter(u=>!!u);return n.common.async?Promise.all(i).then(u=>De.mergeArray(r,u)):De.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};$e.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $e({items:t,typeName:B.ZodTuple,rest:null,...N(e)})};var dn=class t extends I{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.object)return v(n,{code:_.invalid_type,expected:A.object,received:n.parsedType}),R;let s=[],i=this._def.keyType,u=this._def.valueType;for(let a in n.data)s.push({key:i._parse(new ke(n,a,n.path,a)),value:u._parse(new ke(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?De.mergeObjectAsync(r,s):De.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof I?new t({keyType:e,valueType:r,typeName:B.ZodRecord,...N(n)}):new t({keyType:Ke.create(),valueType:e,typeName:B.ZodRecord,...N(r)})}},Vt=class extends I{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.map)return v(n,{code:_.invalid_type,expected:A.map,received:n.parsedType}),R;let s=this._def.keyType,i=this._def.valueType,u=[...n.data.entries()].map(([a,c],f)=>({key:s._parse(new ke(n,a,n.path,[f,"key"])),value:i._parse(new ke(n,c,n.path,[f,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of u){let f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return R;(f.status==="dirty"||h.status==="dirty")&&r.dirty(),a.set(f.value,h.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of u){let f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return R;(f.status==="dirty"||h.status==="dirty")&&r.dirty(),a.set(f.value,h.value)}return{status:r.value,value:a}}}};Vt.create=(t,e,r)=>new Vt({valueType:e,keyType:t,typeName:B.ZodMap,...N(r)});var Zt=class t extends I{static{o(this,"ZodSet")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.set)return v(n,{code:_.invalid_type,expected:A.set,received:n.parsedType}),R;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(v(n,{code:_.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(v(n,{code:_.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let i=this._def.valueType;function u(c){let f=new Set;for(let h of c){if(h.status==="aborted")return R;h.status==="dirty"&&r.dirty(),f.add(h.value)}return{status:r.value,value:f}}o(u,"finalizeSet");let a=[...n.data.values()].map((c,f)=>i._parse(new ke(n,c,n.path,f)));return n.common.async?Promise.all(a).then(c=>u(c)):u(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:k.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:k.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Zt.create=(t,e)=>new Zt({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...N(e)});var Dn=class t extends I{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.function)return v(r,{code:_.invalid_type,expected:A.function,received:r.parsedType}),R;function n(a,c){return ln({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,cn(),Ht].filter(f=>!!f),issueData:{code:_.invalid_arguments,argumentsError:c}})}o(n,"makeArgsIssue");function s(a,c){return ln({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,cn(),Ht].filter(f=>!!f),issueData:{code:_.invalid_return_type,returnTypeError:c}})}o(s,"makeReturnsIssue");let i={errorMap:r.common.contextualErrorMap},u=r.data;if(this._def.returns instanceof Qe){let a=this;return me(async function(...c){let f=new xe([]),h=await a._def.args.parseAsync(c,i).catch(y=>{throw f.addIssue(n(c,y)),f}),g=await Reflect.apply(u,this,h);return await a._def.returns._def.type.parseAsync(g,i).catch(y=>{throw f.addIssue(s(g,y)),f})})}else{let a=this;return me(function(...c){let f=a._def.args.safeParse(c,i);if(!f.success)throw new xe([n(c,f.error)]);let h=Reflect.apply(u,this,f.data),g=a._def.returns.safeParse(h,i);if(!g.success)throw new xe([s(h,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:$e.create(e).rest(We.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||$e.create([]).rest(We.create()),returns:r||We.create(),typeName:B.ZodFunction,...N(n)})}},bt=class extends I{static{o(this,"ZodLazy")}get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};bt.create=(t,e)=>new bt({getter:t,typeName:B.ZodLazy,...N(e)});var wt=class extends I{static{o(this,"ZodLiteral")}_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return v(r,{received:r.data,code:_.invalid_literal,expected:this._def.value}),R}return{status:"valid",value:e.data}}get value(){return this._def.value}};wt.create=(t,e)=>new wt({value:t,typeName:B.ZodLiteral,...N(e)});function lu(t,e){return new _t({values:t,typeName:B.ZodEnum,...N(e)})}o(lu,"createZodEnum");var _t=class t extends I{static{o(this,"ZodEnum")}constructor(){super(...arguments),Er.set(this,void 0)}_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return v(r,{expected:$.joinValues(n),received:r.parsedType,code:_.invalid_type}),R}if(fn(this,Er,"f")||ou(this,Er,new Set(this._def.values),"f"),!fn(this,Er,"f").has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return v(r,{received:r.data,code:_.invalid_enum_value,options:n}),R}return me(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};Er=new WeakMap;_t.create=lu;var xt=class extends I{static{o(this,"ZodNativeEnum")}constructor(){super(...arguments),br.set(this,void 0)}_parse(e){let r=$.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==A.string&&n.parsedType!==A.number){let s=$.objectValues(r);return v(n,{expected:$.joinValues(s),received:n.parsedType,code:_.invalid_type}),R}if(fn(this,br,"f")||ou(this,br,new Set($.getValidEnumValues(this._def.values)),"f"),!fn(this,br,"f").has(e.data)){let s=$.objectValues(r);return v(n,{received:n.data,code:_.invalid_enum_value,options:s}),R}return me(e.data)}get enum(){return this._def.values}};br=new WeakMap;xt.create=(t,e)=>new xt({values:t,typeName:B.ZodNativeEnum,...N(e)});var Qe=class extends I{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.promise&&r.common.async===!1)return v(r,{code:_.invalid_type,expected:A.promise,received:r.parsedType}),R;let n=r.parsedType===A.promise?r.data:Promise.resolve(r.data);return me(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Qe.create=(t,e)=>new Qe({type:t,typeName:B.ZodPromise,...N(e)});var Se=class extends I{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===B.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o(u=>{v(n,u),u.fatal?r.abort():r.dirty()},"addIssue"),get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let u=s.transform(n.data,i);if(n.common.async)return Promise.resolve(u).then(async a=>{if(r.value==="aborted")return R;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?R:c.status==="dirty"||r.value==="dirty"?Gt(c.value):c});{if(r.value==="aborted")return R;let a=this._def.schema._parseSync({data:u,path:n.path,parent:n});return a.status==="aborted"?R:a.status==="dirty"||r.value==="dirty"?Gt(a.value):a}}if(s.type==="refinement"){let u=o(a=>{let c=s.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a},"executeRefinement");if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?R:(a.status==="dirty"&&r.dirty(),u(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?R:(a.status==="dirty"&&r.dirty(),u(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){let u=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!dt(u))return u;let a=s.transform(u.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(u=>dt(u)?Promise.resolve(s.transform(u.value,i)).then(a=>({status:r.value,value:a})):u);$.assertNever(s)}};Se.create=(t,e,r)=>new Se({schema:t,typeName:B.ZodEffects,effect:e,...N(r)});Se.createWithPreprocess=(t,e,r)=>new Se({schema:e,effect:{type:"preprocess",transform:t},typeName:B.ZodEffects,...N(r)});var Te=class extends I{static{o(this,"ZodOptional")}_parse(e){return this._getType(e)===A.undefined?me(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Te.create=(t,e)=>new Te({innerType:t,typeName:B.ZodOptional,...N(e)});var Me=class extends I{static{o(this,"ZodNullable")}_parse(e){return this._getType(e)===A.null?me(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Me.create=(t,e)=>new Me({innerType:t,typeName:B.ZodNullable,...N(e)});var St=class extends I{static{o(this,"ZodDefault")}_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===A.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};St.create=(t,e)=>new St({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...N(e)});var vt=class extends I{static{o(this,"ZodCatch")}_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return wr(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xe(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new xe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};vt.create=(t,e)=>new vt({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...N(e)});var Yt=class extends I{static{o(this,"ZodNaN")}_parse(e){if(this._getType(e)!==A.nan){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.nan,received:n.parsedType}),R}return{status:"valid",value:e.data}}};Yt.create=t=>new Yt({typeName:B.ZodNaN,...N(t)});var cD=Symbol("zod_brand"),_r=class extends I{static{o(this,"ZodBranded")}_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},xr=class t extends I{static{o(this,"ZodPipeline")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return o(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?R:i.status==="dirty"?(r.dirty(),Gt(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})},"handleAsync")();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?R:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:B.ZodPipeline})}},At=class extends I{static{o(this,"ZodReadonly")}_parse(e){let r=this._def.innerType._parse(e),n=o(s=>(dt(s)&&(s.value=Object.freeze(s.value)),s),"freeze");return wr(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}};At.create=(t,e)=>new At({innerType:t,typeName:B.ZodReadonly,...N(e)});function fu(t,e={},r){return t?Xe.create().superRefine((n,s)=>{var i,u;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(u=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&u!==void 0?u:!0,f=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...f,fatal:c})}}):Xe.create()}o(fu,"custom");var lD={object:_e.lazycreate},B;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(B||(B={}));var fD=o((t,e={message:`Input not instance of ${t.name}`})=>fu(r=>r instanceof t,e),"instanceOfType"),hu=Ke.create,du=Dt.create,hD=Yt.create,dD=pt.create,Du=mt.create,DD=yt.create,pD=zt.create,mD=gt.create,yD=Ft.create,gD=Xe.create,FD=We.create,CD=Be.create,ED=Wt.create,bD=Ve.create,wD=_e.create,_D=_e.strictCreate,xD=Ct.create,SD=hn.create,vD=Et.create,AD=$e.create,TD=dn.create,kD=Vt.create,PD=Zt.create,LD=Dn.create,OD=bt.create,BD=wt.create,RD=_t.create,ND=xt.create,ID=Qe.create,su=Se.create,jD=Te.create,$D=Me.create,MD=Se.createWithPreprocess,UD=xr.create,qD=o(()=>hu().optional(),"ostring"),GD=o(()=>du().optional(),"onumber"),HD=o(()=>Du().optional(),"oboolean"),zD={string:o(t=>Ke.create({...t,coerce:!0}),"string"),number:o(t=>Dt.create({...t,coerce:!0}),"number"),boolean:o(t=>mt.create({...t,coerce:!0}),"boolean"),bigint:o(t=>pt.create({...t,coerce:!0}),"bigint"),date:o(t=>yt.create({...t,coerce:!0}),"date")},WD=R,U=Object.freeze({__proto__:null,defaultErrorMap:Ht,setErrorMap:Md,getErrorMap:cn,makeIssue:ln,EMPTY_PATH:Ud,addIssueToContext:v,ParseStatus:De,INVALID:R,DIRTY:Gt,OK:me,isAborted:xs,isDirty:Ss,isValid:dt,isAsync:wr,get util(){return $},get objectUtil(){return _s},ZodParsedType:A,getParsedType:ze,ZodType:I,datetimeRegex:cu,ZodString:Ke,ZodNumber:Dt,ZodBigInt:pt,ZodBoolean:mt,ZodDate:yt,ZodSymbol:zt,ZodUndefined:gt,ZodNull:Ft,ZodAny:Xe,ZodUnknown:We,ZodNever:Be,ZodVoid:Wt,ZodArray:Ve,ZodObject:_e,ZodUnion:Ct,ZodDiscriminatedUnion:hn,ZodIntersection:Et,ZodTuple:$e,ZodRecord:dn,ZodMap:Vt,ZodSet:Zt,ZodFunction:Dn,ZodLazy:bt,ZodLiteral:wt,ZodEnum:_t,ZodNativeEnum:xt,ZodPromise:Qe,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Te,ZodNullable:Me,ZodDefault:St,ZodCatch:vt,ZodNaN:Yt,BRAND:cD,ZodBranded:_r,ZodPipeline:xr,ZodReadonly:At,custom:fu,Schema:I,ZodSchema:I,late:lD,get ZodFirstPartyTypeKind(){return B},coerce:zD,any:gD,array:bD,bigint:dD,boolean:Du,date:DD,discriminatedUnion:SD,effect:su,enum:RD,function:LD,instanceof:fD,intersection:vD,lazy:OD,literal:BD,map:kD,nan:hD,nativeEnum:ND,never:CD,null:yD,nullable:$D,number:du,object:wD,oboolean:HD,onumber:GD,optional:jD,ostring:qD,pipeline:UD,preprocess:MD,promise:ID,record:TD,set:PD,strictObject:_D,string:hu,symbol:pD,transformer:su,tuple:AD,undefined:mD,union:xD,unknown:FD,void:ED,NEVER:WD,ZodIssueCode:_,quotelessJson:$d,ZodError:xe});var cb=o(t=>t==null,"isNil"),Jt=o(t=>typeof t=="string","isString"),Tt=o(t=>typeof t=="object"&&t!==null,"isObject"),pu=Array.isArray,mu=o(t=>typeof t=="function","isFunction"),lb=o(t=>t instanceof Error,"isError"),fb=o(t=>U.object({type:U.string(),code:U.number(),reason:U.string(),wasClean:U.boolean()}).safeParse(t).success,"isCloseEvent"),hb=o(t=>U.object({type:U.string(),message:U.string(),error:U.any()}).safeParse(t).success,"isErrorEvent"),db=o(t=>U.union([U.object({data:U.record(U.unknown())}),U.object({errors:U.array(U.object({message:U.string()}))}),U.object({data:U.record(U.unknown()),errors:U.array(U.object({message:U.string()}))})]).safeParse(t).success,"isGraphQLResult"),Db=o(t=>U.array(U.object({message:U.string(),extensions:U.record(U.unknown()).nullish().transform(e=>e??{})})).min(1).safeParse(t).success,"isGraphQLErrors"),pb=o(t=>{throw new Error(`Unexpected value: ${t}`)},"isNever"),mb=o(t=>t instanceof Error&&t.name==="AbortError"||t instanceof Event&&t.type==="abort","isAbortError"),yb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOENT","isENOENTError"),gb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOTEMPTY","isENOTEMPTYError"),Fb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOTDIR","isENOTDIRError"),Cb=o(t=>Tt(t)&&"code"in t&&t.code==="EEXIST","isEEXISTError"),Eb=o(t=>[".js",".jsx",".cjs",".mjs"].some(e=>t.endsWith(e)),"isJavaScriptFile"),bb=o(t=>[".ts",".tsx",".cts",".mts"].some(e=>t.endsWith(e)&&!t.endsWith(".d.ts")),"isTypeScriptFile"),wb=o(t=>t.endsWith(".gelly"),"isGellyFile");l();l();import vr from"node:path";l();import YD from"node:process";import JD from"node:path";import Ub,{promises as yu}from"node:fs";import{fileURLToPath as KD}from"node:url";l();l();l();var As=class{static{o(this,"Node")}value;next;constructor(e){this.value=e}},Sr=class{static{o(this,"Queue")}#r;#n;#e;constructor(){this.clear()}enqueue(e){let r=new As(e);this.#r?(this.#n.next=r,this.#n=r):(this.#r=r,this.#n=r),this.#e++}dequeue(){let e=this.#r;if(e)return this.#r=this.#r.next,this.#e--,e.value}peek(){if(this.#r)return this.#r.value}clear(){this.#r=void 0,this.#n=void 0,this.#e=0}get size(){return this.#e}*[Symbol.iterator](){let e=this.#r;for(;e;)yield e.value,e=e.next}};function pn(t){if(!((Number.isInteger(t)||t===Number.POSITIVE_INFINITY)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Sr,r=0,n=o(()=>{r--,e.size>0&&e.dequeue()()},"next"),s=o(async(a,c,f)=>{r++;let h=(async()=>a(...f))();c(h);try{await h}catch{}n()},"run"),i=o((a,c,f)=>{e.enqueue(s.bind(void 0,a,c,f)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},"enqueue"),u=o((a,...c)=>new Promise(f=>{i(a,f,c)}),"generator");return Object.defineProperties(u,{activeCount:{get:o(()=>r,"get")},pendingCount:{get:o(()=>e.size,"get")},clearQueue:{value:o(()=>{e.clear()},"value")}}),u}o(pn,"pLimit");var mn=class extends Error{static{o(this,"EndError")}constructor(e){super(),this.value=e}},VD=o(async(t,e)=>e(await t),"testElement"),ZD=o(async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new mn(e[0]);return!1},"finder");async function Ts(t,e,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let s=pn(r),i=[...t].map(a=>[a,s(VD,a,e)]),u=pn(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map(a=>u(ZD,a)))}catch(a){if(a instanceof mn)return a.value;throw a}}o(Ts,"pLocate");var gu={directory:"isDirectory",file:"isFile"};function XD(t){if(!Object.hasOwnProperty.call(gu,t))throw new Error(`Invalid type specified: ${t}`)}o(XD,"checkType");var QD=o((t,e)=>e[gu[t]](),"matchType"),ep=o(t=>t instanceof URL?KD(t):t,"toPath");async function ks(t,{cwd:e=YD.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:s,preserveOrder:i}={}){XD(r),e=ep(e);let u=n?yu.stat:yu.lstat;return Ts(t,async a=>{try{let c=await u(JD.resolve(e,a));return QD(r,c)}catch{return!1}},{concurrency:s,preserveOrder:i})}o(ks,"locatePath");l();import{fileURLToPath as tp}from"node:url";function Ps(t){return t instanceof URL?tp(t):t}o(Ps,"toPath");l();var rp=Symbol("findUpStop");async function np(t,e={}){let r=vr.resolve(Ps(e.cwd)??""),{root:n}=vr.parse(r),s=vr.resolve(r,Ps(e.stopAt??n)),i=e.limit??Number.POSITIVE_INFINITY,u=[t].flat(),a=o(async f=>{if(typeof t!="function")return ks(u,f);let h=await t(f.cwd);return typeof h=="string"?ks([h],f):h},"runMatcher"),c=[];for(;;){let f=await a({...e,cwd:r});if(f===rp||(f&&c.push(vr.resolve(r,f)),r===s||c.length>=i))break;r=vr.dirname(r)}return c}o(np,"findUpMultiple");async function Fu(t,e={}){return(await np(t,{...e,limit:1}))[0]}o(Fu,"findUp");var cl=we(dc(),1),ll=we(al(),1);import r0 from"node:assert";import{fileURLToPath as n0}from"node:url";var oi=await Fu("package.json",{cwd:n0(import.meta.url)});r0(oi!==void 0,"Could not find package.json for the ggt package.");var fl=oi,Ln=await cl.default.readJson(oi);(0,ll.default)(Ln,!0);l();l();var s0=o((t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let s=Object.getOwnPropertyDescriptor(t,r),i=Object.getOwnPropertyDescriptor(e,r);!i0(s,i)&&n||Object.defineProperty(t,r,i)},"copyProperty"),i0=o(function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},"canCopyProperty"),o0=o((t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},"changePrototype"),u0=o((t,e)=>`/* Wrapped ${t}*/
19
- ${e}`,"wrappedToString"),a0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),c0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),l0=o((t,e,r)=>{let n=r===""?"":`with ${r.trim()}() `,s=u0.bind(null,n,e.toString());Object.defineProperty(s,"name",c0);let{writable:i,enumerable:u,configurable:a}=a0;Object.defineProperty(t,"toString",{value:s,writable:i,enumerable:u,configurable:a})},"changeToString");function sr(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:n}=t;for(let s of Reflect.ownKeys(e))s0(t,e,s,r);return o0(t,e),l0(t,e,n),t}o(sr,"mimicFunction");import f0 from"node:assert";l();var h0=new Set;var d0=o((...t)=>String(t[0]),"MemoFirstArg"),dl=o((...t)=>t.map(String).join(":"),"MemoAllArgs");function Dl(t,e){let r;e?r=t:(e=t,r=d0);let n=new Map,s=o((...i)=>{let u=r(...i);if(n.has(u))return n.get(u);f0(e,"fn shouldn't be undefined");let a=e(...i);return n.set(u,a),a},"memoized");return s.clear=n.clear.bind(n),h0.add(s),sr(s,e),s}o(Dl,"memo");var sx=o((t,e)=>{let r,n,s,i=o((...u)=>{n=o(()=>(n=void 0,r=void 0,s?s=s.then(()=>e(...u)).catch(hl).finally(()=>s=void 0):s=e(...u).catch(hl).finally(()=>s=void 0),s),"nextCall"),clearTimeout(r),r=setTimeout(n,t)},"debouncedAsync");return i.flush=async()=>{n&&await n()},sr(i,e),i},"debounceAsync");var On=o((t,...e)=>mu(t)?t(...e):t,"unthunk"),hl=o((...t)=>{},"noop");l();l();import yl from"node:process";import g0 from"node:os";import F0 from"node:fs";l();import m0 from"node:fs";l();import pl from"node:fs";var ui;function D0(){try{return pl.statSync("/.dockerenv"),!0}catch{return!1}}o(D0,"hasDockerEnv");function p0(){try{return pl.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}o(p0,"hasDockerCGroup");function ai(){return ui===void 0&&(ui=D0()||p0()),ui}o(ai,"isDocker");var ci,y0=o(()=>{try{return m0.statSync("/run/.containerenv"),!0}catch{return!1}},"hasContainerEnv");function Bn(){return ci===void 0&&(ci=y0()||ai()),ci}o(Bn,"isInsideContainer");var ml=o(()=>{if(yl.platform!=="linux")return!1;if(g0.release().toLowerCase().includes("microsoft"))return!Bn();try{return F0.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Bn():!1}catch{return!1}},"isWsl"),li=yl.env.__IS_WSL_TEST__?ml:ml();import ir from"node:os";import Ne from"node:path";import H from"node:process";l();import C0 from"node:assert";l();var gl=o((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp");var ut={TRACE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,PRINT:6},Fl=Dl(dl,(t,e)=>{let r=U.enum(["TRACE","DEBUG","INFO","WARN","ERROR"]).transform(n=>ut[n]).safeParse(String(t).toUpperCase());return r.success||(r=U.number().min(ut.TRACE).max(ut.ERROR).safeParse(Number(t))),r.success?r.data:e}),Px=o(t=>(C0(t>0,"verbosity must be greater than 0"),gl(ut.INFO+1-t,ut.TRACE,ut.INFO)),"verbosityToLevel");var Rn={get logLevel(){return Fl(H.env.GGT_LOG_LEVEL,ut.PRINT)},get logFormat(){return H.env.GGT_LOG_FORMAT==="json"?"json":"pretty"},get versionFull(){return`${Ln.name}/${Ln.version} ${this.platform}-${this.arch} node-${H.version}`},get arch(){return ir.arch()==="ia32"?"x86":ir.arch()},get platform(){return li?"wsl":ir.platform()},get windows(){return H.platform==="win32"},get windowsOrWsl(){return this.windows||li},get macos(){return H.platform==="darwin"},get shell(){let t=H.env.SHELL??ir.userInfo().shell?.split(Ne.sep).pop();return t?t.split("/").at(-1):this.windows&&H.env.COMSPEC?H.env.COMSPEC.split(/\\|\//).at(-1):"unknown"},get homeDir(){if(H.env.HOME)return H.env.HOME;if(this.windows){if(H.env.HOMEDRIVE&&H.env.HOMEPATH)return Ne.join(H.env.HOMEDRIVE,H.env.HOMEPATH);if(H.env.USERPROFILE)return H.env.USERPROFILE}return ir.homedir()||ir.tmpdir()},get configDir(){if(H.env.GGT_CONFIG_DIR)return H.env.GGT_CONFIG_DIR;let t=H.env.XDG_CONFIG_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".config");return Ne.join(t,"ggt")},get cacheDir(){if(H.env.GGT_CACHE_DIR)return H.env.GGT_CACHE_DIR;if(this.macos)return Ne.join(this.homeDir,"Library/Caches/ggt");let t=H.env.XDG_CACHE_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".cache");return Ne.join(t,"ggt")},get dataDir(){if(H.env.GGT_DATA_DIR)return H.env.GGT_DATA_DIR;let t=H.env.XDG_DATA_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".local/share");return Ne.join(t,"ggt")},domains:{get app(){return H.env.GGT_GADGET_APP_DOMAIN||(Cr.productionLike?"gadget.app":"ggt.pub")},get services(){return H.env.GGT_GADGET_SERVICES_DOMAIN||(Cr.productionLike?"app.gadget.dev":"app.ggt.dev")}}},qx=o((...t)=>Ne.join(Rn.configDir,...t),"configPath"),Gx=o((...t)=>Ne.join(Rn.homeDir,...t),"homePath");l();l();import xl from"node:process";l();import $n from"node:process";l();var Nn=new WeakMap,Cl=o((t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,s=t.displayName||t.name||"<anonymous>",i=o(function(...u){if(Nn.set(i,++n),n===1)r=t.apply(this,u),t=void 0;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r},"onetime");return sr(i,t),Nn.set(i,n),i},"onetime");Cl.callCount=t=>{if(!Nn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Nn.get(t)};var El=Cl;l();l();var Lt=[];Lt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Lt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Lt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var In=o(t=>!!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","processOk"),fi=Symbol.for("signal-exit emitter"),hi=globalThis,E0=Object.defineProperty.bind(Object),di=class{static{o(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(hi[fi])return hi[fi];E0(hi,fi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,r){this.listeners[e].push(r)}removeListener(e,r){let n=this.listeners[e],s=n.indexOf(r);s!==-1&&(s===0&&n.length===1?n.length=0:n.splice(s,1))}emit(e,r,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let i of this.listeners[e])s=i(r,n)===!0||s;return e==="exit"&&(s=this.emit("afterExit",r,n)||s),s}},jn=class{static{o(this,"SignalExitBase")}},b0=o(t=>({onExit(e,r){return t.onExit(e,r)},load(){return t.load()},unload(){return t.unload()}}),"signalExitWrap"),Di=class extends jn{static{o(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},pi=class extends jn{static{o(this,"SignalExit")}#r=mi.platform==="win32"?"SIGINT":"SIGHUP";#n=new di;#e;#a;#w;#g={};#i=!1;constructor(e){super(),this.#e=e,this.#g={};for(let r of Lt)this.#g[r]=()=>{let n=this.#e.listeners(r),{count:s}=this.#n,i=e;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(s+=i.__signal_exit_emitter__.count),n.length===s){this.unload();let u=this.#n.emit("exit",null,r),a=r==="SIGHUP"?this.#r:r;u||e.kill(e.pid,a)}};this.#w=e.reallyExit,this.#a=e.emit}onExit(e,r){if(!In(this.#e))return()=>{};this.#i===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#n.on(n,e),()=>{this.#n.removeListener(n,e),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let e of Lt)try{let r=this.#g[e];r&&this.#e.on(e,r)}catch{}this.#e.emit=(e,...r)=>this.#u(e,...r),this.#e.reallyExit=e=>this.#D(e)}}unload(){this.#i&&(this.#i=!1,Lt.forEach(e=>{let r=this.#g[e];if(!r)throw new Error("Listener not defined for signal: "+e);try{this.#e.removeListener(e,r)}catch{}}),this.#e.emit=this.#a,this.#e.reallyExit=this.#w,this.#n.count-=1)}#D(e){return In(this.#e)?(this.#e.exitCode=e||0,this.#n.emit("exit",this.#e.exitCode,null),this.#w.call(this.#e,this.#e.exitCode)):0}#u(e,...r){let n=this.#a;if(e==="exit"&&In(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let s=n.call(this.#e,e,...r);return this.#n.emit("exit",this.#e.exitCode,null),s}else return n.call(this.#e,e,...r)}},mi=globalThis.process,{onExit:bl,load:eS,unload:tS}=b0(In(mi)?new pi(mi):new Di);var wl=$n.stderr.isTTY?$n.stderr:$n.stdout.isTTY?$n.stdout:void 0,w0=wl?El(()=>{bl(()=>{wl.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},_l=w0;var Mn=!1,or={};or.show=(t=xl.stderr)=>{t.isTTY&&(Mn=!1,t.write("\x1B[?25h"))};or.hide=(t=xl.stderr)=>{t.isTTY&&(_l(),Mn=!0,t.write("\x1B[?25l"))};or.toggle=(t,e)=>{t!==void 0&&(Mn=t),Mn?or.show(e):or.hide(e)};var yi=or;l();function gi({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}o(gi,"isInteractive");import bi from"node:assert";import Ie from"node:process";l();import qe from"node:process";var _0=3,Fi=class{static{o(this,"StdinDiscarder")}#r=0;start(){this.#r++,this.#r===1&&this.#n()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this.#e()}#n(){qe.platform==="win32"||!qe.stdin.isTTY||(qe.stdin.setRawMode(!0),qe.stdin.on("data",this.#a),qe.stdin.resume())}#e(){qe.stdin.isTTY&&(qe.stdin.off("data",this.#a),qe.stdin.pause(),qe.stdin.setRawMode(!1))}#a(e){e[0]===_0&&qe.emit("SIGINT")}},x0=new Fi,Ci=x0;l();l();l();function Ei({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}o(Ei,"ansiRegex");var S0=Ei();function Ot(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(S0,"")}o(Ot,"stripAnsi");l();l();function Sl(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}o(Sl,"isAmbiguous");function vl(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}o(vl,"isFullWidth");function Al(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9800&&t<=9811||t===9855||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}o(Al,"isWide");function v0(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}o(v0,"validate");function Tl(t,{ambiguousAsWide:e=!1}={}){return v0(t),vl(t)||Al(t)||e&&Sl(t)?2:1}o(Tl,"eastAsianWidth");var Ll=we(Pl(),1);var A0=new Intl.Segmenter,T0=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function he(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(t=Ot(t)),t.length===0)return 0;let s=0,i={ambiguousAsWide:!r};for(let{segment:u}of A0.segment(t)){let a=u.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!T0.test(u)){if((0,Ll.default)().test(u)){s+=2;continue}s+=Tl(a,i)}}return s}o(he,"stringWidth");var Un=!1,wi=class{static{o(this,"Output")}lastPrintedLineWasEmpty=!0;lastStickyLineWasEmpty=!0;_promptText="";_spinnerText="";_footerText="";_stickyTextLinesToClear=0;constructor(){Ie.stdout.on("error",e=>{if(!(Tt(e)&&"code"in e&&e.code==="EPIPE"))throw e}),Ie.stderr.on("error",e=>{if(!(Tt(e)&&"code"in e&&e.code==="EPIPE"))throw e})}get isInteractive(){return!Cr.testLike&&gi({stream:Ie.stdout})}writeStdout(e){this._clearStickyText(),e=this._stripUnnecessaryNewLines(e,this.lastPrintedLineWasEmpty),this._writeStdout(e),this.lastPrintedLineWasEmpty=e===`
17
+ `,s)}while(n!==-1);return i+=t.slice(s),i}o(Jo,"stringEncaseCRLFWithFirstIndex");var{stdout:Ko,stderr:Xo}=Zo,Cs=Symbol("GENERATOR"),Mt=Symbol("STYLER"),gr=Symbol("IS_EMPTY"),Qo=["ansi","ansi","ansi256","ansi16m"],Ut=Object.create(null),Bd=o((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=Ko?Ko.level:0;t.level=e.level===void 0?r:e.level},"applyOptions"),eu=class{static{o(this,"Chalk")}constructor(e){return tu(e)}},tu=o(t=>{let e=o((...r)=>r.join(" "),"chalk");return Bd(e,t),Object.setPrototypeOf(e,Fr.prototype),e},"chalkFactory");function Fr(t){return tu(t)}o(Fr,"createChalk");Object.setPrototypeOf(Fr.prototype,Function.prototype);for(let[t,e]of Object.entries(Oe))Ut[t]={get(){let r=an(this,bs(e.open,e.close,this[Mt]),this[gr]);return Object.defineProperty(this,t,{value:r}),r}};Ut.visible={get(){let t=an(this,this[Mt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Es=o((t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Oe[r].ansi16m(...n):e==="ansi256"?Oe[r].ansi256(Oe.rgbToAnsi256(...n)):Oe[r].ansi(Oe.rgbToAnsi(...n)):t==="hex"?Es("rgb",e,r,...Oe.hexToRgb(...n)):Oe[r][t](...n),"getModelAnsi"),Rd=["rgb","hex","ansi256"];for(let t of Rd){Ut[t]={get(){let{level:r}=this;return function(...n){let s=bs(Es(t,Qo[r],"color",...n),Oe.color.close,this[Mt]);return an(this,s,this[gr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ut[e]={get(){let{level:r}=this;return function(...n){let s=bs(Es(t,Qo[r],"bgColor",...n),Oe.bgColor.close,this[Mt]);return an(this,s,this[gr])}}}}var Nd=Object.defineProperties(()=>{},{...Ut,level:{enumerable:!0,get(){return this[Cs].level},set(t){this[Cs].level=t}}}),bs=o((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}},"createStyler"),an=o((t,e,r)=>{let n=o((...s)=>Id(n,s.length===1?""+s[0]:s.join(" ")),"builder");return Object.setPrototypeOf(n,Nd),n[Cs]=t,n[Mt]=e,n[gr]=r,n},"createBuilder"),Id=o((t,e)=>{if(t.level<=0||!e)return t[gr]?"":e;let r=t[Mt];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Yo(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
18
+ `);return i!==-1&&(e=Jo(e,s,n,i)),n+e+s},"applyStyle");Object.defineProperties(Fr.prototype,Ut);var jd=Fr(),ru=Fr({level:Xo?Xo.level:0});var Ge=jd;l();import $d from"node:process";var Cr={get value(){return $d.env.GGT_ENV||"production"},get productionLike(){return!this.developmentOrTestLike},get developmentLike(){return this.value.startsWith("development")},get testLike(){return this.value.startsWith("test")},get developmentOrTestLike(){return this.developmentLike||this.testLike}};l();l();var $;(function(t){t.assertEqual=s=>s;function e(s){}o(e,"assertIs"),t.assertIs=e;function r(s){throw new Error}o(r,"assertNever"),t.assertNever=r,t.arrayToEnum=s=>{let i={};for(let u of s)i[u]=u;return i},t.getValidEnumValues=s=>{let i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),u={};for(let a of i)u[a]=s[a];return t.objectValues(u)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let u in s)Object.prototype.hasOwnProperty.call(s,u)&&i.push(u);return i},t.find=(s,i)=>{for(let u of s)if(i(u))return u},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(u=>typeof u=="string"?`'${u}'`:u).join(i)}o(n,"joinValues"),t.joinValues=n,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})($||($={}));var _s;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(_s||(_s={}));var A=$.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ze=o(t=>{switch(typeof t){case"undefined":return A.undefined;case"string":return A.string;case"number":return isNaN(t)?A.nan:A.number;case"boolean":return A.boolean;case"function":return A.function;case"bigint":return A.bigint;case"symbol":return A.symbol;case"object":return Array.isArray(t)?A.array:t===null?A.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?A.promise:typeof Map<"u"&&t instanceof Map?A.map:typeof Set<"u"&&t instanceof Set?A.set:typeof Date<"u"&&t instanceof Date?A.date:A.object;default:return A.unknown}},"getParsedType"),_=$.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Md=o(t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),xe=class t extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(i){return i.message},n={_errors:[]},s=o(i=>{for(let u of i.issues)if(u.code==="invalid_union")u.unionErrors.map(s);else if(u.code==="invalid_return_type")s(u.returnTypeError);else if(u.code==="invalid_arguments")s(u.argumentsError);else if(u.path.length===0)n._errors.push(r(u));else{let a=n,c=0;for(;c<u.path.length;){let f=u.path[c];c===u.path.length-1?(a[f]=a[f]||{_errors:[]},a[f]._errors.push(r(u))):a[f]=a[f]||{_errors:[]},a=a[f],c++}}},"processError");return s(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(e(s))):n.push(e(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};xe.create=t=>new xe(t);var Ht=o((t,e)=>{let r;switch(t.code){case _.invalid_type:t.received===A.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case _.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,$.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:r=`Unrecognized key(s) in object: ${$.joinValues(t.keys,", ")}`;break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${$.joinValues(t.options)}`;break;case _.invalid_enum_value:r=`Invalid enum value. Expected ${$.joinValues(t.options)}, received '${t.received}'`;break;case _.invalid_arguments:r="Invalid function arguments";break;case _.invalid_return_type:r="Invalid function return type";break;case _.invalid_date:r="Invalid date";break;case _.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:$.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case _.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case _.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case _.custom:r="Invalid input";break;case _.invalid_intersection_types:r="Intersection results could not be merged";break;case _.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case _.not_finite:r="Number must be finite";break;default:r=e.defaultError,$.assertNever(t)}return{message:r}},"errorMap"),ou=Ht;function Ud(t){ou=t}o(Ud,"setErrorMap");function cn(){return ou}o(cn,"getErrorMap");var ln=o(t=>{let{data:e,path:r,errorMaps:n,issueData:s}=t,i=[...r,...s.path||[]],u={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="",c=n.filter(f=>!!f).slice().reverse();for(let f of c)a=f(u,{data:e,defaultError:a}).message;return{...s,path:i,message:a}},"makeIssue"),qd=[];function v(t,e){let r=cn(),n=ln({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Ht?void 0:Ht].filter(s=>!!s)});t.common.issues.push(n)}o(v,"addIssueToContext");var De=class t{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let s of r){if(s.status==="aborted")return R;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let s of r){let i=await s.key,u=await s.value;n.push({key:i,value:u})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let s of r){let{key:i,value:u}=s;if(i.status==="aborted"||u.status==="aborted")return R;i.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof u.value<"u"||s.alwaysSet)&&(n[i.value]=u.value)}return{status:e.value,value:n}}},R=Object.freeze({status:"aborted"}),Gt=o(t=>({status:"dirty",value:t}),"DIRTY"),me=o(t=>({status:"valid",value:t}),"OK"),xs=o(t=>t.status==="aborted","isAborted"),Ss=o(t=>t.status==="dirty","isDirty"),dt=o(t=>t.status==="valid","isValid"),wr=o(t=>typeof Promise<"u"&&t instanceof Promise,"isAsync");function fn(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)}o(fn,"__classPrivateFieldGet");function uu(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}o(uu,"__classPrivateFieldSet");var k;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(k||(k={}));var Er,br,ke=class{static{o(this,"ParseInputLazyPath")}constructor(e,r,n,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},nu=o((t,e)=>{if(dt(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new xe(t.common.issues);return this._error=r,this._error}}},"handleResult");function N(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:s}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:o((u,a)=>{var c,f;let{message:h}=t;return u.code==="invalid_enum_value"?{message:h??a.defaultError}:typeof a.data>"u"?{message:(c=h??n)!==null&&c!==void 0?c:a.defaultError}:u.code!=="invalid_type"?{message:a.defaultError}:{message:(f=h??r)!==null&&f!==void 0?f:a.defaultError}},"customMap"),description:s}}o(N,"processCreateParams");var I=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(e){return ze(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ze(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new De,ctx:{common:e.parent.common,data:e.data,parsedType:ze(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(wr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let s={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)},i=this._parseSync({data:e,path:s.path,parent:s});return nu(s,i)}"~validate"(e){var r,n;let s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:s});return dt(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((n=(r=i?.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(i=>dt(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ze(e)},s=this._parse({data:e,path:n.path,parent:n}),i=await(wr(s)?s:Promise.resolve(s));return nu(n,i)}refine(e,r){let n=o(s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r,"getIssueProperties");return this._refinement((s,i)=>{let u=e(s),a=o(()=>i.addIssue({code:_.custom,...n(s)}),"setError");return typeof Promise<"u"&&u instanceof Promise?u.then(c=>c?!0:(a(),!1)):u?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(e){return new Se({schema:this,typeName:B.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o(r=>this["~validate"](r),"validate")}}optional(){return Te.create(this,this._def)}nullable(){return Me.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ve.create(this)}promise(){return Qe.create(this,this._def)}or(e){return Ct.create([this,e],this._def)}and(e){return Et.create(this,e,this._def)}transform(e){return new Se({...N(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new St({...N(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new _r({typeName:B.ZodBranded,type:this,...N(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new vt({...N(this._def),innerType:this,catchValue:r,typeName:B.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xr.create(this,e)}readonly(){return At.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Gd=/^c[^\s-]{8,}$/i,Hd=/^[0-9a-z]+$/,zd=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Wd=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Vd=/^[a-z0-9_-]{21}$/i,Zd=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Yd=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Jd=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Kd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ws,Xd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Qd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,au="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",sD=new RegExp(`^${au}$`);function cu(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}o(cu,"timeRegexSource");function iD(t){return new RegExp(`^${cu(t)}$`)}o(iD,"timeRegex");function lu(t){let e=`${au}T${cu(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}o(lu,"datetimeRegex");function oD(t,e){return!!((e==="v4"||!e)&&Xd.test(t)||(e==="v6"||!e)&&eD.test(t))}o(oD,"isValidIP");function uD(t,e){if(!Zd.test(t))return!1;try{let[r]=t.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}o(uD,"isValidJWT");function aD(t,e){return!!((e==="v4"||!e)&&Qd.test(t)||(e==="v6"||!e)&&tD.test(t))}o(aD,"isValidCidr");var Ke=class t extends I{static{o(this,"ZodString")}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==A.string){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.string,received:i.parsedType}),R}let n=new De,s;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let u=e.data.length>i.value,a=e.data.length<i.value;(u||a)&&(s=this._getOrReturnCtx(e,s),u?v(s,{code:_.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&v(s,{code:_.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Jd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"email",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ws||(ws=new RegExp(Kd,"u")),ws.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"emoji",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")Wd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"uuid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Vd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"nanoid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Gd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cuid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Hd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cuid2",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")zd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"ulid",code:_.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),v(s,{validation:"url",code:_.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"regex",code:_.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?lu(i).test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?sD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?iD(i).test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:_.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?Yd.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"duration",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?oD(e.data,i.version)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"ip",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?uD(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"jwt",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?aD(e.data,i.version)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"cidr",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?rD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"base64",code:_.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?nD.test(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{validation:"base64url",code:_.invalid_string,message:i.message}),n.dirty()):$.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(s=>e.test(s),{validation:r,code:_.invalid_string,...k.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...k.errToObj(e)})}url(e){return this._addCheck({kind:"url",...k.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...k.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...k.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...k.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...k.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...k.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...k.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...k.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...k.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...k.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...k.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...k.errToObj(e)})}datetime(e){var r,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,local:(n=e?.local)!==null&&n!==void 0?n:!1,...k.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...k.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...k.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...k.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...k.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...k.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...k.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...k.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...k.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...k.errToObj(r)})}nonempty(e){return this.min(1,k.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Ke.create=t=>{var e;return new Ke({checks:[],typeName:B.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...N(t)})};function cD(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=r>n?r:n,i=parseInt(t.toFixed(s).replace(".","")),u=parseInt(e.toFixed(s).replace(".",""));return i%u/Math.pow(10,s)}o(cD,"floatSafeRemainder");var Dt=class t extends I{static{o(this,"ZodNumber")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==A.number){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.number,received:i.parsedType}),R}let n,s=new De;for(let i of this._def.checks)i.kind==="int"?$.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:_.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?cD(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_finite,message:i.message}),s.dirty()):$.assertNever(i);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,k.toString(r))}gt(e,r){return this.setLimit("min",e,!1,k.toString(r))}lte(e,r){return this.setLimit("max",e,!0,k.toString(r))}lt(e,r){return this.setLimit("max",e,!1,k.toString(r))}setLimit(e,r,n,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:k.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:k.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:k.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&$.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Dt.create=t=>new Dt({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...N(t)});var pt=class t extends I{static{o(this,"ZodBigInt")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==A.bigint)return this._getInvalidInput(e);let n,s=new De;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),v(n,{code:_.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):$.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return v(r,{code:_.invalid_type,expected:A.bigint,received:r.parsedType}),R}gte(e,r){return this.setLimit("min",e,!0,k.toString(r))}gt(e,r){return this.setLimit("min",e,!1,k.toString(r))}lte(e,r){return this.setLimit("max",e,!0,k.toString(r))}lt(e,r){return this.setLimit("max",e,!1,k.toString(r))}setLimit(e,r,n,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:k.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};pt.create=t=>{var e;return new pt({checks:[],typeName:B.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...N(t)})};var mt=class extends I{static{o(this,"ZodBoolean")}_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==A.boolean){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.boolean,received:n.parsedType}),R}return me(e.data)}};mt.create=t=>new mt({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...N(t)});var yt=class t extends I{static{o(this,"ZodDate")}_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==A.date){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_type,expected:A.date,received:i.parsedType}),R}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return v(i,{code:_.invalid_date}),R}let n=new De,s;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),v(s,{code:_.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):$.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:k.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:k.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};yt.create=t=>new yt({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...N(t)});var zt=class extends I{static{o(this,"ZodSymbol")}_parse(e){if(this._getType(e)!==A.symbol){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.symbol,received:n.parsedType}),R}return me(e.data)}};zt.create=t=>new zt({typeName:B.ZodSymbol,...N(t)});var gt=class extends I{static{o(this,"ZodUndefined")}_parse(e){if(this._getType(e)!==A.undefined){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.undefined,received:n.parsedType}),R}return me(e.data)}};gt.create=t=>new gt({typeName:B.ZodUndefined,...N(t)});var Ft=class extends I{static{o(this,"ZodNull")}_parse(e){if(this._getType(e)!==A.null){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.null,received:n.parsedType}),R}return me(e.data)}};Ft.create=t=>new Ft({typeName:B.ZodNull,...N(t)});var Xe=class extends I{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(e){return me(e.data)}};Xe.create=t=>new Xe({typeName:B.ZodAny,...N(t)});var We=class extends I{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(e){return me(e.data)}};We.create=t=>new We({typeName:B.ZodUnknown,...N(t)});var Be=class extends I{static{o(this,"ZodNever")}_parse(e){let r=this._getOrReturnCtx(e);return v(r,{code:_.invalid_type,expected:A.never,received:r.parsedType}),R}};Be.create=t=>new Be({typeName:B.ZodNever,...N(t)});var Wt=class extends I{static{o(this,"ZodVoid")}_parse(e){if(this._getType(e)!==A.undefined){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.void,received:n.parsedType}),R}return me(e.data)}};Wt.create=t=>new Wt({typeName:B.ZodVoid,...N(t)});var Ve=class t extends I{static{o(this,"ZodArray")}_parse(e){let{ctx:r,status:n}=this._processInputParams(e),s=this._def;if(r.parsedType!==A.array)return v(r,{code:_.invalid_type,expected:A.array,received:r.parsedType}),R;if(s.exactLength!==null){let u=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(u||a)&&(v(r,{code:u?_.too_big:_.too_small,minimum:a?s.exactLength.value:void 0,maximum:u?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(v(r,{code:_.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(v(r,{code:_.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((u,a)=>s.type._parseAsync(new ke(r,u,r.path,a)))).then(u=>De.mergeArray(n,u));let i=[...r.data].map((u,a)=>s.type._parseSync(new ke(r,u,r.path,a)));return De.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:k.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:k.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:k.toString(r)}})}nonempty(e){return this.min(1,e)}};Ve.create=(t,e)=>new Ve({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...N(e)});function qt(t){if(t instanceof _e){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Te.create(qt(n))}return new _e({...t._def,shape:o(()=>e,"shape")})}else return t instanceof Ve?new Ve({...t._def,type:qt(t.element)}):t instanceof Te?Te.create(qt(t.unwrap())):t instanceof Me?Me.create(qt(t.unwrap())):t instanceof $e?$e.create(t.items.map(e=>qt(e))):t}o(qt,"deepPartialify");var _e=class t extends I{static{o(this,"ZodObject")}constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=$.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==A.object){let f=this._getOrReturnCtx(e);return v(f,{code:_.invalid_type,expected:A.object,received:f.parsedType}),R}let{status:n,ctx:s}=this._processInputParams(e),{shape:i,keys:u}=this._getCached(),a=[];if(!(this._def.catchall instanceof Be&&this._def.unknownKeys==="strip"))for(let f in s.data)u.includes(f)||a.push(f);let c=[];for(let f of u){let h=i[f],g=s.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new ke(s,g,s.path,f)),alwaysSet:f in s.data})}if(this._def.catchall instanceof Be){let f=this._def.unknownKeys;if(f==="passthrough")for(let h of a)c.push({key:{status:"valid",value:h},value:{status:"valid",value:s.data[h]}});else if(f==="strict")a.length>0&&(v(s,{code:_.unrecognized_keys,keys:a}),n.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let f=this._def.catchall;for(let h of a){let g=s.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new ke(s,g,s.path,h)),alwaysSet:h in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let f=[];for(let h of c){let g=await h.key,m=await h.value;f.push({key:g,value:m,alwaysSet:h.alwaysSet})}return f}).then(f=>De.mergeObjectSync(n,f)):De.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return k.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:o((r,n)=>{var s,i,u,a;let c=(u=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,r,n).message)!==null&&u!==void 0?u:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=k.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}},"errorMap")}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:o(()=>({...this._def.shape(),...e}),"shape")})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:o(()=>({...this._def.shape(),...e._def.shape()}),"shape"),typeName:B.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return $.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new t({...this._def,shape:o(()=>r,"shape")})}omit(e){let r={};return $.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new t({...this._def,shape:o(()=>r,"shape")})}deepPartial(){return qt(this)}partial(e){let r={};return $.objectKeys(this.shape).forEach(n=>{let s=this.shape[n];e&&!e[n]?r[n]=s:r[n]=s.optional()}),new t({...this._def,shape:o(()=>r,"shape")})}required(e){let r={};return $.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Te;)i=i._def.innerType;r[n]=i}}),new t({...this._def,shape:o(()=>r,"shape")})}keyof(){return fu($.objectKeys(this.shape))}};_e.create=(t,e)=>new _e({shape:o(()=>t,"shape"),unknownKeys:"strip",catchall:Be.create(),typeName:B.ZodObject,...N(e)});_e.strictCreate=(t,e)=>new _e({shape:o(()=>t,"shape"),unknownKeys:"strict",catchall:Be.create(),typeName:B.ZodObject,...N(e)});_e.lazycreate=(t,e)=>new _e({shape:t,unknownKeys:"strip",catchall:Be.create(),typeName:B.ZodObject,...N(e)});var Ct=class extends I{static{o(this,"ZodUnion")}_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let u=i.map(a=>new xe(a.ctx.common.issues));return v(r,{code:_.invalid_union,unionErrors:u}),R}if(o(s,"handleResults"),r.common.async)return Promise.all(n.map(async i=>{let u={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:u}),ctx:u}})).then(s);{let i,u=[];for(let c of n){let f={...r,common:{...r.common,issues:[]},parent:null},h=c._parseSync({data:r.data,path:r.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!i&&(i={result:h,ctx:f}),f.common.issues.length&&u.push(f.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=u.map(c=>new xe(c));return v(r,{code:_.invalid_union,unionErrors:a}),R}}get options(){return this._def.options}};Ct.create=(t,e)=>new Ct({options:t,typeName:B.ZodUnion,...N(e)});var He=o(t=>t instanceof bt?He(t.schema):t instanceof Se?He(t.innerType()):t instanceof wt?[t.value]:t instanceof _t?t.options:t instanceof xt?$.objectValues(t.enum):t instanceof St?He(t._def.innerType):t instanceof gt?[void 0]:t instanceof Ft?[null]:t instanceof Te?[void 0,...He(t.unwrap())]:t instanceof Me?[null,...He(t.unwrap())]:t instanceof _r||t instanceof At?He(t.unwrap()):t instanceof vt?He(t._def.innerType):[],"getDiscriminator"),hn=class t extends I{static{o(this,"ZodDiscriminatedUnion")}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.object)return v(r,{code:_.invalid_type,expected:A.object,received:r.parsedType}),R;let n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(v(r,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),R)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let s=new Map;for(let i of r){let u=He(i.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of u){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,i)}}return new t({typeName:B.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:s,...N(n)})}};function vs(t,e){let r=ze(t),n=ze(e);if(t===e)return{valid:!0,data:t};if(r===A.object&&n===A.object){let s=$.objectKeys(e),i=$.objectKeys(t).filter(a=>s.indexOf(a)!==-1),u={...t,...e};for(let a of i){let c=vs(t[a],e[a]);if(!c.valid)return{valid:!1};u[a]=c.data}return{valid:!0,data:u}}else if(r===A.array&&n===A.array){if(t.length!==e.length)return{valid:!1};let s=[];for(let i=0;i<t.length;i++){let u=t[i],a=e[i],c=vs(u,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===A.date&&n===A.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}o(vs,"mergeValues");var Et=class extends I{static{o(this,"ZodIntersection")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),s=o((i,u)=>{if(xs(i)||xs(u))return R;let a=vs(i.value,u.value);return a.valid?((Ss(i)||Ss(u))&&r.dirty(),{status:r.value,value:a.data}):(v(n,{code:_.invalid_intersection_types}),R)},"handleParsed");return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,u])=>s(i,u)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Et.create=(t,e,r)=>new Et({left:t,right:e,typeName:B.ZodIntersection,...N(r)});var $e=class t extends I{static{o(this,"ZodTuple")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.array)return v(n,{code:_.invalid_type,expected:A.array,received:n.parsedType}),R;if(n.data.length<this._def.items.length)return v(n,{code:_.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),R;!this._def.rest&&n.data.length>this._def.items.length&&(v(n,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((u,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ke(n,u,n.path,a)):null}).filter(u=>!!u);return n.common.async?Promise.all(i).then(u=>De.mergeArray(r,u)):De.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};$e.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $e({items:t,typeName:B.ZodTuple,rest:null,...N(e)})};var dn=class t extends I{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.object)return v(n,{code:_.invalid_type,expected:A.object,received:n.parsedType}),R;let s=[],i=this._def.keyType,u=this._def.valueType;for(let a in n.data)s.push({key:i._parse(new ke(n,a,n.path,a)),value:u._parse(new ke(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?De.mergeObjectAsync(r,s):De.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof I?new t({keyType:e,valueType:r,typeName:B.ZodRecord,...N(n)}):new t({keyType:Ke.create(),valueType:e,typeName:B.ZodRecord,...N(r)})}},Vt=class extends I{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.map)return v(n,{code:_.invalid_type,expected:A.map,received:n.parsedType}),R;let s=this._def.keyType,i=this._def.valueType,u=[...n.data.entries()].map(([a,c],f)=>({key:s._parse(new ke(n,a,n.path,[f,"key"])),value:i._parse(new ke(n,c,n.path,[f,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of u){let f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return R;(f.status==="dirty"||h.status==="dirty")&&r.dirty(),a.set(f.value,h.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of u){let f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return R;(f.status==="dirty"||h.status==="dirty")&&r.dirty(),a.set(f.value,h.value)}return{status:r.value,value:a}}}};Vt.create=(t,e,r)=>new Vt({valueType:e,keyType:t,typeName:B.ZodMap,...N(r)});var Zt=class t extends I{static{o(this,"ZodSet")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==A.set)return v(n,{code:_.invalid_type,expected:A.set,received:n.parsedType}),R;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(v(n,{code:_.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(v(n,{code:_.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let i=this._def.valueType;function u(c){let f=new Set;for(let h of c){if(h.status==="aborted")return R;h.status==="dirty"&&r.dirty(),f.add(h.value)}return{status:r.value,value:f}}o(u,"finalizeSet");let a=[...n.data.values()].map((c,f)=>i._parse(new ke(n,c,n.path,f)));return n.common.async?Promise.all(a).then(c=>u(c)):u(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:k.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:k.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Zt.create=(t,e)=>new Zt({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...N(e)});var Dn=class t extends I{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.function)return v(r,{code:_.invalid_type,expected:A.function,received:r.parsedType}),R;function n(a,c){return ln({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,cn(),Ht].filter(f=>!!f),issueData:{code:_.invalid_arguments,argumentsError:c}})}o(n,"makeArgsIssue");function s(a,c){return ln({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,cn(),Ht].filter(f=>!!f),issueData:{code:_.invalid_return_type,returnTypeError:c}})}o(s,"makeReturnsIssue");let i={errorMap:r.common.contextualErrorMap},u=r.data;if(this._def.returns instanceof Qe){let a=this;return me(async function(...c){let f=new xe([]),h=await a._def.args.parseAsync(c,i).catch(y=>{throw f.addIssue(n(c,y)),f}),g=await Reflect.apply(u,this,h);return await a._def.returns._def.type.parseAsync(g,i).catch(y=>{throw f.addIssue(s(g,y)),f})})}else{let a=this;return me(function(...c){let f=a._def.args.safeParse(c,i);if(!f.success)throw new xe([n(c,f.error)]);let h=Reflect.apply(u,this,f.data),g=a._def.returns.safeParse(h,i);if(!g.success)throw new xe([s(h,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:$e.create(e).rest(We.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||$e.create([]).rest(We.create()),returns:r||We.create(),typeName:B.ZodFunction,...N(n)})}},bt=class extends I{static{o(this,"ZodLazy")}get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};bt.create=(t,e)=>new bt({getter:t,typeName:B.ZodLazy,...N(e)});var wt=class extends I{static{o(this,"ZodLiteral")}_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return v(r,{received:r.data,code:_.invalid_literal,expected:this._def.value}),R}return{status:"valid",value:e.data}}get value(){return this._def.value}};wt.create=(t,e)=>new wt({value:t,typeName:B.ZodLiteral,...N(e)});function fu(t,e){return new _t({values:t,typeName:B.ZodEnum,...N(e)})}o(fu,"createZodEnum");var _t=class t extends I{static{o(this,"ZodEnum")}constructor(){super(...arguments),Er.set(this,void 0)}_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return v(r,{expected:$.joinValues(n),received:r.parsedType,code:_.invalid_type}),R}if(fn(this,Er,"f")||uu(this,Er,new Set(this._def.values),"f"),!fn(this,Er,"f").has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return v(r,{received:r.data,code:_.invalid_enum_value,options:n}),R}return me(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};Er=new WeakMap;_t.create=fu;var xt=class extends I{static{o(this,"ZodNativeEnum")}constructor(){super(...arguments),br.set(this,void 0)}_parse(e){let r=$.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==A.string&&n.parsedType!==A.number){let s=$.objectValues(r);return v(n,{expected:$.joinValues(s),received:n.parsedType,code:_.invalid_type}),R}if(fn(this,br,"f")||uu(this,br,new Set($.getValidEnumValues(this._def.values)),"f"),!fn(this,br,"f").has(e.data)){let s=$.objectValues(r);return v(n,{received:n.data,code:_.invalid_enum_value,options:s}),R}return me(e.data)}get enum(){return this._def.values}};br=new WeakMap;xt.create=(t,e)=>new xt({values:t,typeName:B.ZodNativeEnum,...N(e)});var Qe=class extends I{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==A.promise&&r.common.async===!1)return v(r,{code:_.invalid_type,expected:A.promise,received:r.parsedType}),R;let n=r.parsedType===A.promise?r.data:Promise.resolve(r.data);return me(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Qe.create=(t,e)=>new Qe({type:t,typeName:B.ZodPromise,...N(e)});var Se=class extends I{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===B.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o(u=>{v(n,u),u.fatal?r.abort():r.dirty()},"addIssue"),get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let u=s.transform(n.data,i);if(n.common.async)return Promise.resolve(u).then(async a=>{if(r.value==="aborted")return R;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?R:c.status==="dirty"||r.value==="dirty"?Gt(c.value):c});{if(r.value==="aborted")return R;let a=this._def.schema._parseSync({data:u,path:n.path,parent:n});return a.status==="aborted"?R:a.status==="dirty"||r.value==="dirty"?Gt(a.value):a}}if(s.type==="refinement"){let u=o(a=>{let c=s.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a},"executeRefinement");if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?R:(a.status==="dirty"&&r.dirty(),u(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?R:(a.status==="dirty"&&r.dirty(),u(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){let u=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!dt(u))return u;let a=s.transform(u.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(u=>dt(u)?Promise.resolve(s.transform(u.value,i)).then(a=>({status:r.value,value:a})):u);$.assertNever(s)}};Se.create=(t,e,r)=>new Se({schema:t,typeName:B.ZodEffects,effect:e,...N(r)});Se.createWithPreprocess=(t,e,r)=>new Se({schema:e,effect:{type:"preprocess",transform:t},typeName:B.ZodEffects,...N(r)});var Te=class extends I{static{o(this,"ZodOptional")}_parse(e){return this._getType(e)===A.undefined?me(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Te.create=(t,e)=>new Te({innerType:t,typeName:B.ZodOptional,...N(e)});var Me=class extends I{static{o(this,"ZodNullable")}_parse(e){return this._getType(e)===A.null?me(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Me.create=(t,e)=>new Me({innerType:t,typeName:B.ZodNullable,...N(e)});var St=class extends I{static{o(this,"ZodDefault")}_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===A.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};St.create=(t,e)=>new St({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...N(e)});var vt=class extends I{static{o(this,"ZodCatch")}_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return wr(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xe(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new xe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};vt.create=(t,e)=>new vt({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...N(e)});var Yt=class extends I{static{o(this,"ZodNaN")}_parse(e){if(this._getType(e)!==A.nan){let n=this._getOrReturnCtx(e);return v(n,{code:_.invalid_type,expected:A.nan,received:n.parsedType}),R}return{status:"valid",value:e.data}}};Yt.create=t=>new Yt({typeName:B.ZodNaN,...N(t)});var lD=Symbol("zod_brand"),_r=class extends I{static{o(this,"ZodBranded")}_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},xr=class t extends I{static{o(this,"ZodPipeline")}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return o(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?R:i.status==="dirty"?(r.dirty(),Gt(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})},"handleAsync")();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?R:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:B.ZodPipeline})}},At=class extends I{static{o(this,"ZodReadonly")}_parse(e){let r=this._def.innerType._parse(e),n=o(s=>(dt(s)&&(s.value=Object.freeze(s.value)),s),"freeze");return wr(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}};At.create=(t,e)=>new At({innerType:t,typeName:B.ZodReadonly,...N(e)});function su(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}o(su,"cleanParams");function hu(t,e={},r){return t?Xe.create().superRefine((n,s)=>{var i,u;let a=t(n);if(a instanceof Promise)return a.then(c=>{var f,h;if(!c){let g=su(e,n),m=(h=(f=g.fatal)!==null&&f!==void 0?f:r)!==null&&h!==void 0?h:!0;s.addIssue({code:"custom",...g,fatal:m})}});if(!a){let c=su(e,n),f=(u=(i=c.fatal)!==null&&i!==void 0?i:r)!==null&&u!==void 0?u:!0;s.addIssue({code:"custom",...c,fatal:f})}}):Xe.create()}o(hu,"custom");var fD={object:_e.lazycreate},B;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(B||(B={}));var hD=o((t,e={message:`Input not instance of ${t.name}`})=>hu(r=>r instanceof t,e),"instanceOfType"),du=Ke.create,Du=Dt.create,dD=Yt.create,DD=pt.create,pu=mt.create,pD=yt.create,mD=zt.create,yD=gt.create,gD=Ft.create,FD=Xe.create,CD=We.create,ED=Be.create,bD=Wt.create,wD=Ve.create,_D=_e.create,xD=_e.strictCreate,SD=Ct.create,vD=hn.create,AD=Et.create,TD=$e.create,kD=dn.create,PD=Vt.create,LD=Zt.create,OD=Dn.create,BD=bt.create,RD=wt.create,ND=_t.create,ID=xt.create,jD=Qe.create,iu=Se.create,$D=Te.create,MD=Me.create,UD=Se.createWithPreprocess,qD=xr.create,GD=o(()=>du().optional(),"ostring"),HD=o(()=>Du().optional(),"onumber"),zD=o(()=>pu().optional(),"oboolean"),WD={string:o(t=>Ke.create({...t,coerce:!0}),"string"),number:o(t=>Dt.create({...t,coerce:!0}),"number"),boolean:o(t=>mt.create({...t,coerce:!0}),"boolean"),bigint:o(t=>pt.create({...t,coerce:!0}),"bigint"),date:o(t=>yt.create({...t,coerce:!0}),"date")},VD=R,U=Object.freeze({__proto__:null,defaultErrorMap:Ht,setErrorMap:Ud,getErrorMap:cn,makeIssue:ln,EMPTY_PATH:qd,addIssueToContext:v,ParseStatus:De,INVALID:R,DIRTY:Gt,OK:me,isAborted:xs,isDirty:Ss,isValid:dt,isAsync:wr,get util(){return $},get objectUtil(){return _s},ZodParsedType:A,getParsedType:ze,ZodType:I,datetimeRegex:lu,ZodString:Ke,ZodNumber:Dt,ZodBigInt:pt,ZodBoolean:mt,ZodDate:yt,ZodSymbol:zt,ZodUndefined:gt,ZodNull:Ft,ZodAny:Xe,ZodUnknown:We,ZodNever:Be,ZodVoid:Wt,ZodArray:Ve,ZodObject:_e,ZodUnion:Ct,ZodDiscriminatedUnion:hn,ZodIntersection:Et,ZodTuple:$e,ZodRecord:dn,ZodMap:Vt,ZodSet:Zt,ZodFunction:Dn,ZodLazy:bt,ZodLiteral:wt,ZodEnum:_t,ZodNativeEnum:xt,ZodPromise:Qe,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Te,ZodNullable:Me,ZodDefault:St,ZodCatch:vt,ZodNaN:Yt,BRAND:lD,ZodBranded:_r,ZodPipeline:xr,ZodReadonly:At,custom:hu,Schema:I,ZodSchema:I,late:fD,get ZodFirstPartyTypeKind(){return B},coerce:WD,any:FD,array:wD,bigint:DD,boolean:pu,date:pD,discriminatedUnion:vD,effect:iu,enum:ND,function:OD,instanceof:hD,intersection:AD,lazy:BD,literal:RD,map:PD,nan:dD,nativeEnum:ID,never:ED,null:gD,nullable:MD,number:Du,object:_D,oboolean:zD,onumber:HD,optional:$D,ostring:GD,pipeline:qD,preprocess:UD,promise:jD,record:kD,set:LD,strictObject:xD,string:du,symbol:mD,transformer:iu,tuple:TD,undefined:yD,union:SD,unknown:CD,void:bD,NEVER:VD,ZodIssueCode:_,quotelessJson:Md,ZodError:xe});var lb=o(t=>t==null,"isNil"),Jt=o(t=>typeof t=="string","isString"),Tt=o(t=>typeof t=="object"&&t!==null,"isObject"),mu=Array.isArray,yu=o(t=>typeof t=="function","isFunction"),fb=o(t=>t instanceof Error,"isError"),hb=o(t=>U.object({type:U.string(),code:U.number(),reason:U.string(),wasClean:U.boolean()}).safeParse(t).success,"isCloseEvent"),db=o(t=>U.object({type:U.string(),message:U.string(),error:U.any()}).safeParse(t).success,"isErrorEvent"),Db=o(t=>U.union([U.object({data:U.record(U.unknown())}),U.object({errors:U.array(U.object({message:U.string()}))}),U.object({data:U.record(U.unknown()),errors:U.array(U.object({message:U.string()}))})]).safeParse(t).success,"isGraphQLResult"),pb=o(t=>U.array(U.object({message:U.string(),extensions:U.record(U.unknown()).nullish().transform(e=>e??{})})).min(1).safeParse(t).success,"isGraphQLErrors"),mb=o(t=>{throw new Error(`Unexpected value: ${t}`)},"isNever"),yb=o(t=>t instanceof Error&&t.name==="AbortError"||t instanceof Event&&t.type==="abort","isAbortError"),gb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOENT","isENOENTError"),Fb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOTEMPTY","isENOTEMPTYError"),Cb=o(t=>Tt(t)&&"code"in t&&t.code==="ENOTDIR","isENOTDIRError"),Eb=o(t=>Tt(t)&&"code"in t&&t.code==="EEXIST","isEEXISTError"),bb=o(t=>[".js",".jsx",".cjs",".mjs"].some(e=>t.endsWith(e)),"isJavaScriptFile"),wb=o(t=>[".ts",".tsx",".cts",".mts"].some(e=>t.endsWith(e)&&!t.endsWith(".d.ts")),"isTypeScriptFile"),_b=o(t=>t.endsWith(".gelly"),"isGellyFile");l();l();import vr from"node:path";l();import JD from"node:process";import KD from"node:path";import qb,{promises as gu}from"node:fs";import{fileURLToPath as XD}from"node:url";l();l();l();var As=class{static{o(this,"Node")}value;next;constructor(e){this.value=e}},Sr=class{static{o(this,"Queue")}#r;#n;#e;constructor(){this.clear()}enqueue(e){let r=new As(e);this.#r?(this.#n.next=r,this.#n=r):(this.#r=r,this.#n=r),this.#e++}dequeue(){let e=this.#r;if(e)return this.#r=this.#r.next,this.#e--,e.value}peek(){if(this.#r)return this.#r.value}clear(){this.#r=void 0,this.#n=void 0,this.#e=0}get size(){return this.#e}*[Symbol.iterator](){let e=this.#r;for(;e;)yield e.value,e=e.next}};function pn(t){if(!((Number.isInteger(t)||t===Number.POSITIVE_INFINITY)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Sr,r=0,n=o(()=>{r--,e.size>0&&e.dequeue()()},"next"),s=o(async(a,c,f)=>{r++;let h=(async()=>a(...f))();c(h);try{await h}catch{}n()},"run"),i=o((a,c,f)=>{e.enqueue(s.bind(void 0,a,c,f)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},"enqueue"),u=o((a,...c)=>new Promise(f=>{i(a,f,c)}),"generator");return Object.defineProperties(u,{activeCount:{get:o(()=>r,"get")},pendingCount:{get:o(()=>e.size,"get")},clearQueue:{value:o(()=>{e.clear()},"value")}}),u}o(pn,"pLimit");var mn=class extends Error{static{o(this,"EndError")}constructor(e){super(),this.value=e}},ZD=o(async(t,e)=>e(await t),"testElement"),YD=o(async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new mn(e[0]);return!1},"finder");async function Ts(t,e,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let s=pn(r),i=[...t].map(a=>[a,s(ZD,a,e)]),u=pn(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map(a=>u(YD,a)))}catch(a){if(a instanceof mn)return a.value;throw a}}o(Ts,"pLocate");var Fu={directory:"isDirectory",file:"isFile"};function QD(t){if(!Object.hasOwnProperty.call(Fu,t))throw new Error(`Invalid type specified: ${t}`)}o(QD,"checkType");var ep=o((t,e)=>e[Fu[t]](),"matchType"),tp=o(t=>t instanceof URL?XD(t):t,"toPath");async function ks(t,{cwd:e=JD.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:s,preserveOrder:i}={}){QD(r),e=tp(e);let u=n?gu.stat:gu.lstat;return Ts(t,async a=>{try{let c=await u(KD.resolve(e,a));return ep(r,c)}catch{return!1}},{concurrency:s,preserveOrder:i})}o(ks,"locatePath");l();import{fileURLToPath as rp}from"node:url";function Ps(t){return t instanceof URL?rp(t):t}o(Ps,"toPath");l();var np=Symbol("findUpStop");async function sp(t,e={}){let r=vr.resolve(Ps(e.cwd)??""),{root:n}=vr.parse(r),s=vr.resolve(r,Ps(e.stopAt??n)),i=e.limit??Number.POSITIVE_INFINITY,u=[t].flat(),a=o(async f=>{if(typeof t!="function")return ks(u,f);let h=await t(f.cwd);return typeof h=="string"?ks([h],f):h},"runMatcher"),c=[];for(;;){let f=await a({...e,cwd:r});if(f===np||(f&&c.push(vr.resolve(r,f)),r===s||c.length>=i))break;r=vr.dirname(r)}return c}o(sp,"findUpMultiple");async function Cu(t,e={}){return(await sp(t,{...e,limit:1}))[0]}o(Cu,"findUp");var ll=we(Dc(),1),fl=we(cl(),1);import n0 from"node:assert";import{fileURLToPath as s0}from"node:url";var oi=await Cu("package.json",{cwd:s0(import.meta.url)});n0(oi!==void 0,"Could not find package.json for the ggt package.");var hl=oi,Ln=await ll.default.readJson(oi);(0,fl.default)(Ln,!0);l();l();var i0=o((t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let s=Object.getOwnPropertyDescriptor(t,r),i=Object.getOwnPropertyDescriptor(e,r);!o0(s,i)&&n||Object.defineProperty(t,r,i)},"copyProperty"),o0=o(function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},"canCopyProperty"),u0=o((t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},"changePrototype"),a0=o((t,e)=>`/* Wrapped ${t}*/
19
+ ${e}`,"wrappedToString"),c0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),l0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),f0=o((t,e,r)=>{let n=r===""?"":`with ${r.trim()}() `,s=a0.bind(null,n,e.toString());Object.defineProperty(s,"name",l0);let{writable:i,enumerable:u,configurable:a}=c0;Object.defineProperty(t,"toString",{value:s,writable:i,enumerable:u,configurable:a})},"changeToString");function sr(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:n}=t;for(let s of Reflect.ownKeys(e))i0(t,e,s,r);return u0(t,e),f0(t,e,n),t}o(sr,"mimicFunction");import h0 from"node:assert";l();var d0=new Set;var D0=o((...t)=>String(t[0]),"MemoFirstArg"),Dl=o((...t)=>t.map(String).join(":"),"MemoAllArgs");function pl(t,e){let r;e?r=t:(e=t,r=D0);let n=new Map,s=o((...i)=>{let u=r(...i);if(n.has(u))return n.get(u);h0(e,"fn shouldn't be undefined");let a=e(...i);return n.set(u,a),a},"memoized");return s.clear=n.clear.bind(n),d0.add(s),sr(s,e),s}o(pl,"memo");var ix=o((t,e)=>{let r,n,s,i=o((...u)=>{n=o(()=>(n=void 0,r=void 0,s?s=s.then(()=>e(...u)).catch(dl).finally(()=>s=void 0):s=e(...u).catch(dl).finally(()=>s=void 0),s),"nextCall"),clearTimeout(r),r=setTimeout(n,t)},"debouncedAsync");return i.flush=async()=>{n&&await n()},sr(i,e),i},"debounceAsync");var On=o((t,...e)=>yu(t)?t(...e):t,"unthunk"),dl=o((...t)=>{},"noop");l();l();import gl from"node:process";import F0 from"node:os";import C0 from"node:fs";l();import y0 from"node:fs";l();import ml from"node:fs";var ui;function p0(){try{return ml.statSync("/.dockerenv"),!0}catch{return!1}}o(p0,"hasDockerEnv");function m0(){try{return ml.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}o(m0,"hasDockerCGroup");function ai(){return ui===void 0&&(ui=p0()||m0()),ui}o(ai,"isDocker");var ci,g0=o(()=>{try{return y0.statSync("/run/.containerenv"),!0}catch{return!1}},"hasContainerEnv");function Bn(){return ci===void 0&&(ci=g0()||ai()),ci}o(Bn,"isInsideContainer");var yl=o(()=>{if(gl.platform!=="linux")return!1;if(F0.release().toLowerCase().includes("microsoft"))return!Bn();try{return C0.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Bn():!1}catch{return!1}},"isWsl"),li=gl.env.__IS_WSL_TEST__?yl:yl();import ir from"node:os";import Ne from"node:path";import H from"node:process";l();import E0 from"node:assert";l();var Fl=o((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp");var ut={TRACE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,PRINT:6},Cl=pl(Dl,(t,e)=>{let r=U.enum(["TRACE","DEBUG","INFO","WARN","ERROR"]).transform(n=>ut[n]).safeParse(String(t).toUpperCase());return r.success||(r=U.number().min(ut.TRACE).max(ut.ERROR).safeParse(Number(t))),r.success?r.data:e}),Lx=o(t=>(E0(t>0,"verbosity must be greater than 0"),Fl(ut.INFO+1-t,ut.TRACE,ut.INFO)),"verbosityToLevel");var Rn={get logLevel(){return Cl(H.env.GGT_LOG_LEVEL,ut.PRINT)},get logFormat(){return H.env.GGT_LOG_FORMAT==="json"?"json":"pretty"},get versionFull(){return`${Ln.name}/${Ln.version} ${this.platform}-${this.arch} node-${H.version}`},get arch(){return ir.arch()==="ia32"?"x86":ir.arch()},get platform(){return li?"wsl":ir.platform()},get windows(){return H.platform==="win32"},get windowsOrWsl(){return this.windows||li},get macos(){return H.platform==="darwin"},get shell(){let t=H.env.SHELL??ir.userInfo().shell?.split(Ne.sep).pop();return t?t.split("/").at(-1):this.windows&&H.env.COMSPEC?H.env.COMSPEC.split(/\\|\//).at(-1):"unknown"},get homeDir(){if(H.env.HOME)return H.env.HOME;if(this.windows){if(H.env.HOMEDRIVE&&H.env.HOMEPATH)return Ne.join(H.env.HOMEDRIVE,H.env.HOMEPATH);if(H.env.USERPROFILE)return H.env.USERPROFILE}return ir.homedir()||ir.tmpdir()},get configDir(){if(H.env.GGT_CONFIG_DIR)return H.env.GGT_CONFIG_DIR;let t=H.env.XDG_CONFIG_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".config");return Ne.join(t,"ggt")},get cacheDir(){if(H.env.GGT_CACHE_DIR)return H.env.GGT_CACHE_DIR;if(this.macos)return Ne.join(this.homeDir,"Library/Caches/ggt");let t=H.env.XDG_CACHE_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".cache");return Ne.join(t,"ggt")},get dataDir(){if(H.env.GGT_DATA_DIR)return H.env.GGT_DATA_DIR;let t=H.env.XDG_DATA_HOME||this.windows&&H.env.LOCALAPPDATA||Ne.join(this.homeDir,".local/share");return Ne.join(t,"ggt")},domains:{get app(){return H.env.GGT_GADGET_APP_DOMAIN||(Cr.productionLike?"gadget.app":"ggt.pub")},get services(){return H.env.GGT_GADGET_SERVICES_DOMAIN||(Cr.productionLike?"app.gadget.dev":"app.ggt.dev")}}},Gx=o((...t)=>Ne.join(Rn.configDir,...t),"configPath"),Hx=o((...t)=>Ne.join(Rn.homeDir,...t),"homePath");l();l();import Sl from"node:process";l();import $n from"node:process";l();var Nn=new WeakMap,El=o((t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,s=t.displayName||t.name||"<anonymous>",i=o(function(...u){if(Nn.set(i,++n),n===1)r=t.apply(this,u),t=void 0;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r},"onetime");return sr(i,t),Nn.set(i,n),i},"onetime");El.callCount=t=>{if(!Nn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Nn.get(t)};var bl=El;l();l();var Lt=[];Lt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Lt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Lt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var In=o(t=>!!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","processOk"),fi=Symbol.for("signal-exit emitter"),hi=globalThis,b0=Object.defineProperty.bind(Object),di=class{static{o(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(hi[fi])return hi[fi];b0(hi,fi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,r){this.listeners[e].push(r)}removeListener(e,r){let n=this.listeners[e],s=n.indexOf(r);s!==-1&&(s===0&&n.length===1?n.length=0:n.splice(s,1))}emit(e,r,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let i of this.listeners[e])s=i(r,n)===!0||s;return e==="exit"&&(s=this.emit("afterExit",r,n)||s),s}},jn=class{static{o(this,"SignalExitBase")}},w0=o(t=>({onExit(e,r){return t.onExit(e,r)},load(){return t.load()},unload(){return t.unload()}}),"signalExitWrap"),Di=class extends jn{static{o(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},pi=class extends jn{static{o(this,"SignalExit")}#r=mi.platform==="win32"?"SIGINT":"SIGHUP";#n=new di;#e;#a;#w;#g={};#i=!1;constructor(e){super(),this.#e=e,this.#g={};for(let r of Lt)this.#g[r]=()=>{let n=this.#e.listeners(r),{count:s}=this.#n,i=e;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(s+=i.__signal_exit_emitter__.count),n.length===s){this.unload();let u=this.#n.emit("exit",null,r),a=r==="SIGHUP"?this.#r:r;u||e.kill(e.pid,a)}};this.#w=e.reallyExit,this.#a=e.emit}onExit(e,r){if(!In(this.#e))return()=>{};this.#i===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#n.on(n,e),()=>{this.#n.removeListener(n,e),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let e of Lt)try{let r=this.#g[e];r&&this.#e.on(e,r)}catch{}this.#e.emit=(e,...r)=>this.#u(e,...r),this.#e.reallyExit=e=>this.#D(e)}}unload(){this.#i&&(this.#i=!1,Lt.forEach(e=>{let r=this.#g[e];if(!r)throw new Error("Listener not defined for signal: "+e);try{this.#e.removeListener(e,r)}catch{}}),this.#e.emit=this.#a,this.#e.reallyExit=this.#w,this.#n.count-=1)}#D(e){return In(this.#e)?(this.#e.exitCode=e||0,this.#n.emit("exit",this.#e.exitCode,null),this.#w.call(this.#e,this.#e.exitCode)):0}#u(e,...r){let n=this.#a;if(e==="exit"&&In(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let s=n.call(this.#e,e,...r);return this.#n.emit("exit",this.#e.exitCode,null),s}else return n.call(this.#e,e,...r)}},mi=globalThis.process,{onExit:wl,load:tS,unload:rS}=w0(In(mi)?new pi(mi):new Di);var _l=$n.stderr.isTTY?$n.stderr:$n.stdout.isTTY?$n.stdout:void 0,_0=_l?bl(()=>{wl(()=>{_l.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},xl=_0;var Mn=!1,or={};or.show=(t=Sl.stderr)=>{t.isTTY&&(Mn=!1,t.write("\x1B[?25h"))};or.hide=(t=Sl.stderr)=>{t.isTTY&&(xl(),Mn=!0,t.write("\x1B[?25l"))};or.toggle=(t,e)=>{t!==void 0&&(Mn=t),Mn?or.show(e):or.hide(e)};var yi=or;l();function gi({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}o(gi,"isInteractive");import bi from"node:assert";import Ie from"node:process";l();import qe from"node:process";var x0=3,Fi=class{static{o(this,"StdinDiscarder")}#r=0;start(){this.#r++,this.#r===1&&this.#n()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this.#e()}#n(){qe.platform==="win32"||!qe.stdin.isTTY||(qe.stdin.setRawMode(!0),qe.stdin.on("data",this.#a),qe.stdin.resume())}#e(){qe.stdin.isTTY&&(qe.stdin.off("data",this.#a),qe.stdin.pause(),qe.stdin.setRawMode(!1))}#a(e){e[0]===x0&&qe.emit("SIGINT")}},S0=new Fi,Ci=S0;l();l();l();function Ei({onlyFirst:t=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,t?void 0:"g")}o(Ei,"ansiRegex");var v0=Ei();function Ot(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(v0,"")}o(Ot,"stripAnsi");l();l();function vl(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}o(vl,"isAmbiguous");function Al(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}o(Al,"isFullWidth");function Tl(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9800&&t<=9811||t===9855||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}o(Tl,"isWide");function A0(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}o(A0,"validate");function kl(t,{ambiguousAsWide:e=!1}={}){return A0(t),Al(t)||Tl(t)||e&&vl(t)?2:1}o(kl,"eastAsianWidth");var Ol=we(Ll(),1);var T0=new Intl.Segmenter,k0=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function he(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(t=Ot(t)),t.length===0)return 0;let s=0,i={ambiguousAsWide:!r};for(let{segment:u}of T0.segment(t)){let a=u.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!k0.test(u)){if((0,Ol.default)().test(u)){s+=2;continue}s+=kl(a,i)}}return s}o(he,"stringWidth");var Un=!1,wi=class{static{o(this,"Output")}lastPrintedLineWasEmpty=!0;lastStickyLineWasEmpty=!0;_promptText="";_spinnerText="";_footerText="";_stickyTextLinesToClear=0;constructor(){Ie.stdout.on("error",e=>{if(!(Tt(e)&&"code"in e&&e.code==="EPIPE"))throw e}),Ie.stderr.on("error",e=>{if(!(Tt(e)&&"code"in e&&e.code==="EPIPE"))throw e})}get isInteractive(){return!Cr.testLike&&gi({stream:Ie.stdout})}writeStdout(e){this._clearStickyText(),e=this._stripUnnecessaryNewLines(e,this.lastPrintedLineWasEmpty),this._writeStdout(e),this.lastPrintedLineWasEmpty=e===`
20
20
  `||e.endsWith(`
21
21
 
22
22
  `),this.lastStickyLineWasEmpty=this.lastPrintedLineWasEmpty,this._writeStickyText()}writeStderr(e){this._clearStickyText(),e=this._stripUnnecessaryNewLines(e,this.lastPrintedLineWasEmpty),this._writeStderr(e),this.lastPrintedLineWasEmpty=e===`
@@ -36,30 +36,30 @@ ${e}`,"wrappedToString"),a0=Object.getOwnPropertyDescriptor(Function.prototype,"
36
36
 
37
37
  `))!==-1;)e=e.slice(0,n)+e.slice(n+1);if(r)for(;e.startsWith(`
38
38
  `);)e=e.slice(1);return e}},_i=new wi;l();function xi(t,e=1,r={}){let{indent:n=" ",includeEmptyLines:s=!1}=r;if(typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return t;let i=s?/^/gm:/^(?!\s*$)/gm;return t.replace(i,n.repeat(e))}o(xi,"indentString");l();l();import Wn from"node:process";l();function qn(t){let e=0;for(let r of t.split(`
39
- `))e=Math.max(e,he(r));return e}o(qn,"widestLine");var cf=we(vi(),1);l();var P0=/[\p{Lu}]/u,L0=/[\p{Ll}]/u,Rl=/^[\p{Lu}](?![\p{Lu}])/gu,jl=/([\p{Alpha}\p{N}_]|$)/u,Ai=/[_.\- ]+/,O0=new RegExp("^"+Ai.source),Nl=new RegExp(Ai.source+jl.source,"gu"),Il=new RegExp("\\d+"+jl.source,"gu"),B0=o((t,e,r,n)=>{let s=!1,i=!1,u=!1,a=!1;for(let c=0;c<t.length;c++){let f=t[c];a=c>2?t[c-3]==="-":!0,s&&P0.test(f)?(t=t.slice(0,c)+"-"+t.slice(c),s=!1,u=i,i=!0,c++):i&&u&&L0.test(f)&&(!a||n)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),u=i,i=!1,s=!0):(s=e(f)===f&&r(f)!==f,u=i,i=r(f)===f&&e(f)!==f)}return t},"preserveCamelCase"),R0=o((t,e)=>(Rl.lastIndex=0,t.replaceAll(Rl,r=>e(r))),"preserveConsecutiveUppercase"),N0=o((t,e)=>(Nl.lastIndex=0,Il.lastIndex=0,t.replaceAll(Il,(r,n,s)=>["_","-"].includes(t.charAt(s+r.length))?r:e(r)).replaceAll(Nl,(r,n)=>e(n))),"postProcess");function Ti(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?Ai.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=B0(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(O0,""),t=e.preserveConsecutiveUppercase?R0(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),N0(t,n))}o(Ti,"camelCase");var Bi=we(Jl(),1);l();l();var Kl=o((t=0)=>e=>`\x1B[${e+t}m`,"wrapAnsi16"),Xl=o((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"wrapAnsi256"),Ql=o((t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,"wrapAnsi16m"),K={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]}},kv=Object.keys(K.modifier),H0=Object.keys(K.color),z0=Object.keys(K.bgColor),Pv=[...H0,...z0];function W0(){let t=new Map;for(let[e,r]of Object.entries(K)){for(let[n,s]of Object.entries(r))K[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=K[n],t.set(s[0],s[1]);Object.defineProperty(K,e,{value:r,enumerable:!1})}return Object.defineProperty(K,"codes",{value:t,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=Kl(),K.color.ansi256=Xl(),K.color.ansi16m=Ql(),K.bgColor.ansi=Kl(10),K.bgColor.ansi256=Xl(10),K.bgColor.ansi16m=Ql(10),Object.defineProperties(K,{rgbToAnsi256:{value:o((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),"value"),enumerable:!1},hexToRgb:{value:o(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]},"value"),enumerable:!1},hexToAnsi256:{value:o(e=>K.rgbToAnsi256(...K.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:o(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 a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let u=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(u+=60),u},"value"),enumerable:!1},rgbToAnsi:{value:o((e,r,n)=>K.ansi256ToAnsi(K.rgbToAnsi256(e,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>K.ansi256ToAnsi(K.hexToAnsi256(e)),"value"),enumerable:!1}}),K}o(W0,"assembleStyles");var V0=W0(),ef=V0;var Hn=new Set(["\x1B","\x9B"]),Z0=39,Oi="\x07",nf="[",Y0="]",sf="m",Gn=`${Y0}8;;`,tf=o(t=>`${Hn.values().next().value}${nf}${t}${sf}`,"wrapAnsiCode"),rf=o(t=>`${Hn.values().next().value}${Gn}${t}${Oi}`,"wrapAnsiHyperlink"),J0=o(t=>t.split(" ").map(e=>he(e)),"wordLengths"),Li=o((t,e,r)=>{let n=[...e],s=!1,i=!1,u=he(Ot(t.at(-1)));for(let[a,c]of n.entries()){let f=he(c);if(u+f<=r?t[t.length-1]+=c:(t.push(c),u=0),Hn.has(c)&&(s=!0,i=n.slice(a+1,a+1+Gn.length).join("")===Gn),s){i?c===Oi&&(s=!1,i=!1):c===sf&&(s=!1);continue}u+=f,u===r&&a<n.length-1&&(t.push(""),u=0)}!u&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"wrapWord"),K0=o(t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(he(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},"stringVisibleTrimSpacesRight"),X0=o((t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",s,i,u=J0(t),a=[""];for(let[g,m]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let y=he(a.at(-1));if(g!==0&&(y>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),y=0),(y>0||r.trim===!1)&&(a[a.length-1]+=" ",y++)),r.hard&&u[g]>e){let F=e-y,D=1+Math.floor((u[g]-F-1)/e);Math.floor((u[g]-1)/e)<D&&a.push(""),Li(a,m,e);continue}if(y+u[g]>e&&y>0&&u[g]>0){if(r.wordWrap===!1&&y<e){Li(a,m,e);continue}a.push("")}if(y+u[g]>e&&r.wordWrap===!1){Li(a,m,e);continue}a[a.length-1]+=m}r.trim!==!1&&(a=a.map(g=>K0(g)));let c=a.join(`
40
- `),f=[...c],h=0;for(let[g,m]of f.entries()){if(n+=m,Hn.has(m)){let{groups:F}=new RegExp(`(?:\\${nf}(?<code>\\d+)m|\\${Gn}(?<uri>.*)${Oi})`).exec(c.slice(h))||{groups:{}};if(F.code!==void 0){let D=Number.parseFloat(F.code);s=D===Z0?void 0:D}else F.uri!==void 0&&(i=F.uri.length===0?void 0:F.uri)}let y=ef.codes.get(Number(s));f[g+1]===`
41
- `?(i&&(n+=rf("")),s&&y&&(n+=tf(y))):m===`
42
- `&&(s&&y&&(n+=tf(s)),i&&(n+=rf(i))),h+=m.length}return n},"exec");function zn(t,e,r){return String(t).normalize().replaceAll(`\r
39
+ `))e=Math.max(e,he(r));return e}o(qn,"widestLine");var lf=we(vi(),1);l();var L0=/[\p{Lu}]/u,O0=/[\p{Ll}]/u,Nl=/^[\p{Lu}](?![\p{Lu}])/gu,$l=/([\p{Alpha}\p{N}_]|$)/u,Ai=/[_.\- ]+/,B0=new RegExp("^"+Ai.source),Il=new RegExp(Ai.source+$l.source,"gu"),jl=new RegExp("\\d+"+$l.source,"gu"),R0=o((t,e,r,n)=>{let s=!1,i=!1,u=!1,a=!1;for(let c=0;c<t.length;c++){let f=t[c];a=c>2?t[c-3]==="-":!0,s&&L0.test(f)?(t=t.slice(0,c)+"-"+t.slice(c),s=!1,u=i,i=!0,c++):i&&u&&O0.test(f)&&(!a||n)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),u=i,i=!1,s=!0):(s=e(f)===f&&r(f)!==f,u=i,i=r(f)===f&&e(f)!==f)}return t},"preserveCamelCase"),N0=o((t,e)=>(Nl.lastIndex=0,t.replaceAll(Nl,r=>e(r))),"preserveConsecutiveUppercase"),I0=o((t,e)=>(Il.lastIndex=0,jl.lastIndex=0,t.replaceAll(jl,(r,n,s)=>["_","-"].includes(t.charAt(s+r.length))?r:e(r)).replaceAll(Il,(r,n)=>e(n))),"postProcess");function Ti(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?Ai.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=R0(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(B0,""),t=e.preserveConsecutiveUppercase?N0(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),I0(t,n))}o(Ti,"camelCase");var Bi=we(Kl(),1);l();l();var Xl=o((t=0)=>e=>`\x1B[${e+t}m`,"wrapAnsi16"),Ql=o((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"wrapAnsi256"),ef=o((t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,"wrapAnsi16m"),K={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]}},Pv=Object.keys(K.modifier),z0=Object.keys(K.color),W0=Object.keys(K.bgColor),Lv=[...z0,...W0];function V0(){let t=new Map;for(let[e,r]of Object.entries(K)){for(let[n,s]of Object.entries(r))K[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=K[n],t.set(s[0],s[1]);Object.defineProperty(K,e,{value:r,enumerable:!1})}return Object.defineProperty(K,"codes",{value:t,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=Xl(),K.color.ansi256=Ql(),K.color.ansi16m=ef(),K.bgColor.ansi=Xl(10),K.bgColor.ansi256=Ql(10),K.bgColor.ansi16m=ef(10),Object.defineProperties(K,{rgbToAnsi256:{value:o((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),"value"),enumerable:!1},hexToRgb:{value:o(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]},"value"),enumerable:!1},hexToAnsi256:{value:o(e=>K.rgbToAnsi256(...K.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:o(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 a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let u=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(u+=60),u},"value"),enumerable:!1},rgbToAnsi:{value:o((e,r,n)=>K.ansi256ToAnsi(K.rgbToAnsi256(e,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>K.ansi256ToAnsi(K.hexToAnsi256(e)),"value"),enumerable:!1}}),K}o(V0,"assembleStyles");var Z0=V0(),tf=Z0;var Hn=new Set(["\x1B","\x9B"]),Y0=39,Oi="\x07",sf="[",J0="]",of="m",Gn=`${J0}8;;`,rf=o(t=>`${Hn.values().next().value}${sf}${t}${of}`,"wrapAnsiCode"),nf=o(t=>`${Hn.values().next().value}${Gn}${t}${Oi}`,"wrapAnsiHyperlink"),K0=o(t=>t.split(" ").map(e=>he(e)),"wordLengths"),Li=o((t,e,r)=>{let n=[...e],s=!1,i=!1,u=he(Ot(t.at(-1)));for(let[a,c]of n.entries()){let f=he(c);if(u+f<=r?t[t.length-1]+=c:(t.push(c),u=0),Hn.has(c)&&(s=!0,i=n.slice(a+1,a+1+Gn.length).join("")===Gn),s){i?c===Oi&&(s=!1,i=!1):c===of&&(s=!1);continue}u+=f,u===r&&a<n.length-1&&(t.push(""),u=0)}!u&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"wrapWord"),X0=o(t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(he(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},"stringVisibleTrimSpacesRight"),Q0=o((t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",s,i,u=K0(t),a=[""];for(let[g,m]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let y=he(a.at(-1));if(g!==0&&(y>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),y=0),(y>0||r.trim===!1)&&(a[a.length-1]+=" ",y++)),r.hard&&u[g]>e){let F=e-y,D=1+Math.floor((u[g]-F-1)/e);Math.floor((u[g]-1)/e)<D&&a.push(""),Li(a,m,e);continue}if(y+u[g]>e&&y>0&&u[g]>0){if(r.wordWrap===!1&&y<e){Li(a,m,e);continue}a.push("")}if(y+u[g]>e&&r.wordWrap===!1){Li(a,m,e);continue}a[a.length-1]+=m}r.trim!==!1&&(a=a.map(g=>X0(g)));let c=a.join(`
40
+ `),f=[...c],h=0;for(let[g,m]of f.entries()){if(n+=m,Hn.has(m)){let{groups:F}=new RegExp(`(?:\\${sf}(?<code>\\d+)m|\\${Gn}(?<uri>.*)${Oi})`).exec(c.slice(h))||{groups:{}};if(F.code!==void 0){let D=Number.parseFloat(F.code);s=D===Y0?void 0:D}else F.uri!==void 0&&(i=F.uri.length===0?void 0:F.uri)}let y=tf.codes.get(Number(s));f[g+1]===`
41
+ `?(i&&(n+=nf("")),s&&y&&(n+=rf(y))):m===`
42
+ `&&(s&&y&&(n+=rf(s)),i&&(n+=nf(i))),h+=m.length}return n},"exec");function zn(t,e,r){return String(t).normalize().replaceAll(`\r
43
43
  `,`
44
44
  `).split(`
45
- `).map(n=>X0(n,e,r)).join(`
46
- `)}o(zn,"wrapAnsi");var ug=we(vi(),1);var at=`
47
- `,ve=" ",Rr="none",lf=o(()=>{let{env:t,stdout:e,stderr:r}=Wn;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},"terminalColumns"),of=o(t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},"getObject"),Nr=o(t=>t===Rr?0:2,"getBorderWidth"),Q0=o(t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===Rr){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=cf.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},"getBorderChars"),eg=o((t,e,r)=>{let n="",s=he(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},"makeTitle"),tg=o((t,{padding:e,width:r,textAlignment:n,height:s})=>{t=(0,Bi.default)(t,{align:n});let i=t.split(at),u=qn(t),a=r-e.left-e.right;if(u>a){let h=[];for(let g of i){let m=zn(g,a,{hard:!0}),F=(0,Bi.default)(m,{align:n}).split(`
48
- `),D=Math.max(...F.map(E=>he(E)));for(let E of F){let C;switch(n){case"center":{C=ve.repeat((a-D)/2)+E;break}case"right":{C=ve.repeat(a-D)+E;break}default:{C=E;break}}h.push(C)}}i=h}n==="center"&&u<a?i=i.map(h=>ve.repeat((a-u)/2)+h):n==="right"&&u<a&&(i=i.map(h=>ve.repeat(a-u)+h));let c=ve.repeat(e.left),f=ve.repeat(e.right);return i=i.map(h=>{let g=c+h+f;return g+ve.repeat(r-he(g))}),e.top>0&&(i=[...Array.from({length:e.top}).fill(ve.repeat(r)),...i]),e.bottom>0&&(i=[...i,...Array.from({length:e.bottom}).fill(ve.repeat(r))]),s&&i.length>s?i=i.slice(0,s):s&&i.length<s&&(i=[...i,...Array.from({length:s-i.length}).fill(ve.repeat(r))]),i.join(at)},"makeContentText"),rg=o((t,e,r)=>{let n=o(h=>{let g=r.borderColor?ig(r.borderColor)(h):h;return r.dimBorder?Ge.dim(g):g},"colorizeBorder"),s=o(h=>r.backgroundColor?og(r.backgroundColor)(h):h,"colorizeContent"),i=Q0(r.borderStyle),u=lf(),a=ve.repeat(r.margin.left);if(r.float==="center"){let h=Math.max((u-e-Nr(r.borderStyle))/2,0);a=ve.repeat(h)}else if(r.float==="right"){let h=Math.max(u-e-r.margin.right-Nr(r.borderStyle),0);a=ve.repeat(h)}let c="";r.margin.top&&(c+=at.repeat(r.margin.top)),(r.borderStyle!==Rr||r.title)&&(c+=n(a+i.topLeft+(r.title?eg(r.title,i.top.repeat(e),r.titleAlignment):i.top.repeat(e))+i.topRight)+at);let f=t.split(at);return c+=f.map(h=>a+n(i.left)+s(h)+n(i.right)).join(at),r.borderStyle!==Rr&&(c+=at+n(a+i.bottomLeft+i.bottom.repeat(e)+i.bottomRight)),r.margin.bottom&&(c+=at.repeat(r.margin.bottom)),c},"boxContent"),ng=o(t=>{if(t.fullscreen&&Wn?.stdout){let e=[Wn.stdout.columns,Wn.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||=e[0],t.height||=e[1]}return t.width&&=Math.max(1,t.width-Nr(t.borderStyle)),t.height&&=Math.max(1,t.height-Nr(t.borderStyle)),t},"sanitizeOptions"),uf=o((t,e)=>e===Rr?t:` ${t} `,"formatTitle"),sg=o((t,e)=>{e=ng(e);let r=e.width!==void 0,n=lf(),s=Nr(e.borderStyle),i=n-e.margin.left-e.margin.right-s,u=qn(zn(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&&=uf(e.title,e.borderStyle)):e.title&&(e.title=e.title.slice(0,Math.max(0,i-2)),e.title&&(e.title=uf(e.title,e.borderStyle),he(e.title)>u&&(e.width=he(e.title)))),e.width||=u,!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},"determineDimensions"),Ri=o(t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),"isHex"),af=o(t=>typeof t=="string"&&(Ge[t]??Ri(t)),"isColorValid"),ig=o(t=>Ri(t)?Ge.hex(t):Ge[t],"getColorFunction"),og=o(t=>Ri(t)?Ge.bgHex(t):Ge[Ti(["bg",t])],"getBGColorFunction");function Ni(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&&!af(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!af(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=of(e.padding),e.margin=of(e.margin),e=sg(t,e),t=tg(t,e),rg(t,e.width,e)}o(Ni,"boxen");l();var ag=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi,ff=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g,cg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,lg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,fg=new Map([["n",`
49
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function df(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCodePoint(Number.parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(Number.parseInt(t.slice(2,-1),16)):fg.get(t)||t}o(df,"unescape");function hg(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),s;for(let i of n){let u=Number(i);if(!Number.isNaN(u))r.push(u);else if(s=i.match(cg))r.push(s[2].replace(lg,(a,c,f)=>c?df(c):f));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${t}')`)}return r}o(hg,"parseArguments");function hf(t){let e=Number.parseInt(t,16);return[e>>16&255,e>>8&255,e&255]}o(hf,"parseHex");function dg(t){ff.lastIndex=0;let e=[],r;for(;(r=ff.exec(t))!==null;){let n=r[1];r[2]?e.push([n,...hg(n,r[2])]):r[3]||r[4]?(r[3]&&e.push(["rgb",...hf(r[3])]),r[4]&&e.push(["bgRgb",...hf(r[4])])):e.push([n])}return e}o(dg,"parseStyle");function Df(t){function e(n){let s={};for(let u of n)for(let a of u.styles)s[a[0]]=u.inverse?null:a.slice(1);let i=t;for(let[u,a]of Object.entries(s))if(Array.isArray(a)){if(!(u in i))throw new Error(`Unknown Chalk style: ${u}`);i=a.length>0?i[u](...a):i[u]}return i}o(e,"buildStyle");function r(n){let s=[],i=[],u=[];if(n.replace(ag,(a,c,f,h,g,m)=>{if(c)u.push(df(c));else if(h){let y=u.join("");u=[],i.push(s.length===0?y:e(s)(y)),s.push({inverse:f,styles:dg(h)})}else if(g){if(s.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(e(s)(u.join(""))),u=[],s.pop()}else u.push(m)}),i.push(u.join("")),s.length>0)throw new Error(`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`);return i.join("")}return o(r,"template"),r}o(Df,"makeTemplate");function pf(t){function e(r,...n){if(!Array.isArray(r)||!Array.isArray(r.raw))throw new TypeError("A tagged template literal must be provided");let s=[r.raw[0]];for(let i=1;i<r.raw.length;i++)s.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return t(s.join(""))}return o(e,"chalkTemplate"),e}o(pf,"makeChalkTemplate");var Dg=Df(Ge),Ii=pf(Dg),pg=Df(ru),Kv=pf(pg);var Uo=we(yf(),1);l();l();l();function ji(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(ji,"escapeStringRegexp");l();import mg from"node:os";var yg=o(()=>mg.homedir().replace(/\\/g,"/"),"getHomeDirectory"),gf=yg;var Ff=/\s+at.*[(\s](.*)\)?/,Cf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function $i(t,{pretty:e=!1,basePath:r,pathFilter:n}={}){let s=r&&new RegExp(`(file://)?${ji(r.replace(/\\/g,"/"))}/?`,"g"),i=e?gf():"";if(typeof t=="string")return t.replace(/\\/g,"/").split(`
50
- `).filter(u=>{let a=u.match(Ff);if(a===null||!a[1])return!0;let c=a[1];return c.includes(".app/Contents/Resources/electron.asar")||c.includes(".app/Contents/Resources/default_app.asar")||c.includes("node_modules/electron/dist/resources/electron.asar")||c.includes("node_modules/electron/dist/resources/default_app.asar")?!1:n?!Cf.test(c)&&n(c):!Cf.test(c)}).filter(u=>u.trim()!=="").map(u=>(s&&(u=u.replace(s,"")),e&&(u=u.replace(Ff,(a,c)=>a.replace(c,c.replace(i,"~")))),u)).join(`
51
- `)}o($i,"cleanStack");l();l();l();var Ef=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function gg(t){return Ef.includes(t)}o(gg,"isTypedArrayName");var Fg=["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",...Ef];function Cg(t){return Fg.includes(t)}o(Cg,"isObjectTypeName");var Eg=["null","undefined","string","number","bigint","boolean","symbol"];function bg(t){return Eg.includes(t)}o(bg,"isPrimitiveTypeName");function ur(t){return e=>typeof e===t}o(ur,"isOfType");var{toString:wg}=Object.prototype,jr=o(t=>{let e=wg.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&d.domElement(t))return"HTMLElement";if(Cg(e))return e},"getObjectType"),z=o(t=>e=>jr(e)===t,"isObjectOfType");function d(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(d.observable(t))return"Observable";if(d.array(t))return"Array";if(d.buffer(t))return"Buffer";let e=jr(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"}o(d,"is");d.undefined=ur("undefined");d.string=ur("string");var _g=ur("number");d.number=t=>_g(t)&&!d.nan(t);d.positiveNumber=t=>d.number(t)&&t>0;d.negativeNumber=t=>d.number(t)&&t<0;d.bigint=ur("bigint");d.function_=ur("function");d.null_=t=>t===null;d.class_=t=>d.function_(t)&&t.toString().startsWith("class ");d.boolean=t=>t===!0||t===!1;d.symbol=ur("symbol");d.numericString=t=>d.string(t)&&!d.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));d.array=(t,e)=>Array.isArray(t)?d.function_(e)?t.every(r=>e(r)):!0:!1;d.buffer=t=>t?.constructor?.isBuffer?.(t)??!1;d.blob=t=>z("Blob")(t);d.nullOrUndefined=t=>d.null_(t)||d.undefined(t);d.object=t=>!d.null_(t)&&(typeof t=="object"||d.function_(t));d.iterable=t=>d.function_(t?.[Symbol.iterator]);d.asyncIterable=t=>d.function_(t?.[Symbol.asyncIterator]);d.generator=t=>d.iterable(t)&&d.function_(t?.next)&&d.function_(t?.throw);d.asyncGenerator=t=>d.asyncIterable(t)&&d.function_(t.next)&&d.function_(t.throw);d.nativePromise=t=>z("Promise")(t);var xg=o(t=>d.function_(t?.then)&&d.function_(t?.catch),"hasPromiseApi");d.promise=t=>d.nativePromise(t)||xg(t);d.generatorFunction=z("GeneratorFunction");d.asyncGeneratorFunction=t=>jr(t)==="AsyncGeneratorFunction";d.asyncFunction=t=>jr(t)==="AsyncFunction";d.boundFunction=t=>d.function_(t)&&!t.hasOwnProperty("prototype");d.regExp=z("RegExp");d.date=z("Date");d.error=z("Error");d.map=t=>z("Map")(t);d.set=t=>z("Set")(t);d.weakMap=t=>z("WeakMap")(t);d.weakSet=t=>z("WeakSet")(t);d.weakRef=t=>z("WeakRef")(t);d.int8Array=z("Int8Array");d.uint8Array=z("Uint8Array");d.uint8ClampedArray=z("Uint8ClampedArray");d.int16Array=z("Int16Array");d.uint16Array=z("Uint16Array");d.int32Array=z("Int32Array");d.uint32Array=z("Uint32Array");d.float32Array=z("Float32Array");d.float64Array=z("Float64Array");d.bigInt64Array=z("BigInt64Array");d.bigUint64Array=z("BigUint64Array");d.arrayBuffer=z("ArrayBuffer");d.sharedArrayBuffer=z("SharedArrayBuffer");d.dataView=z("DataView");d.enumCase=(t,e)=>Object.values(e).includes(t);d.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;d.urlInstance=t=>z("URL")(t);d.urlString=t=>{if(!d.string(t))return!1;try{return new URL(t),!0}catch{return!1}};d.truthy=t=>!!t;d.falsy=t=>!t;d.nan=t=>Number.isNaN(t);d.primitive=t=>d.null_(t)||bg(typeof t);d.integer=t=>Number.isInteger(t);d.safeInteger=t=>Number.isSafeInteger(t);d.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)};d.typedArray=t=>gg(jr(t));var Sg=o(t=>d.safeInteger(t)&&t>=0,"isValidLength");d.arrayLike=t=>!d.nullOrUndefined(t)&&!d.function_(t)&&Sg(t.length);d.tupleLike=(t,e)=>d.array(e)&&d.array(t)&&e.length===t.length?e.every((r,n)=>r(t[n])):!1;d.inRange=(t,e)=>{if(d.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(d.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var vg=1,Ag=["innerHTML","ownerDocument","style","attributes","nodeValue"];d.domElement=t=>d.object(t)&&t.nodeType===vg&&d.string(t.nodeName)&&!d.plainObject(t)&&Ag.every(e=>e in t);d.observable=t=>t?t===t[Symbol.observable]?.()||t===t["@@observable"]?.():!1;d.nodeStream=t=>d.object(t)&&d.function_(t.pipe)&&!d.observable(t);d.infinite=t=>t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY;var bf=o(t=>e=>d.integer(e)&&Math.abs(e%2)===t,"isAbsoluteMod2");d.evenInteger=bf(0);d.oddInteger=bf(1);d.emptyArray=t=>d.array(t)&&t.length===0;d.nonEmptyArray=t=>d.array(t)&&t.length>0;d.emptyString=t=>d.string(t)&&t.length===0;var Tg=o(t=>d.string(t)&&!/\S/.test(t),"isWhiteSpaceString");d.emptyStringOrWhitespace=t=>d.emptyString(t)||Tg(t);d.nonEmptyString=t=>d.string(t)&&t.length>0;d.nonEmptyStringAndNotWhitespace=t=>d.string(t)&&!d.emptyStringOrWhitespace(t);d.emptyObject=t=>d.object(t)&&!d.map(t)&&!d.set(t)&&Object.keys(t).length===0;d.nonEmptyObject=t=>d.object(t)&&!d.map(t)&&!d.set(t)&&Object.keys(t).length>0;d.emptySet=t=>d.set(t)&&t.size===0;d.nonEmptySet=t=>d.set(t)&&t.size>0;d.emptyMap=t=>d.map(t)&&t.size===0;d.nonEmptyMap=t=>d.map(t)&&t.size>0;d.propertyKey=t=>d.any([d.string,d.number,d.symbol],t);d.formData=t=>z("FormData")(t);d.urlSearchParams=t=>z("URLSearchParams")(t);var wf=o((t,e,r)=>{if(!d.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)},"predicateOnArray");d.any=(t,...e)=>(d.array(t)?t:[t]).some(n=>wf(Array.prototype.some,n,e));d.all=(t,...e)=>wf(Array.prototype.every,t,e);var x=o((t,e,r,n={})=>{if(!t){let{multipleValues:s}=n,i=s?`received values of types ${[...new Set(r.map(u=>`\`${d(u)}\``))].join(", ")}`:`received value of type \`${d(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${i}.`)}},"assertType"),b={undefined:o(t=>x(d.undefined(t),"undefined",t),"undefined"),string:o(t=>x(d.string(t),"string",t),"string"),number:o(t=>x(d.number(t),"number",t),"number"),positiveNumber:o(t=>x(d.positiveNumber(t),"positive number",t),"positiveNumber"),negativeNumber:o(t=>x(d.negativeNumber(t),"negative number",t),"negativeNumber"),bigint:o(t=>x(d.bigint(t),"bigint",t),"bigint"),function_:o(t=>x(d.function_(t),"Function",t),"function_"),null_:o(t=>x(d.null_(t),"null",t),"null_"),class_:o(t=>x(d.class_(t),"Class",t),"class_"),boolean:o(t=>x(d.boolean(t),"boolean",t),"boolean"),symbol:o(t=>x(d.symbol(t),"symbol",t),"symbol"),numericString:o(t=>x(d.numericString(t),"string with a number",t),"numericString"),array:o((t,e)=>{x(d.array(t),"Array",t),e&&t.forEach(e)},"array"),buffer:o(t=>x(d.buffer(t),"Buffer",t),"buffer"),blob:o(t=>x(d.blob(t),"Blob",t),"blob"),nullOrUndefined:o(t=>x(d.nullOrUndefined(t),"null or undefined",t),"nullOrUndefined"),object:o(t=>x(d.object(t),"Object",t),"object"),iterable:o(t=>x(d.iterable(t),"Iterable",t),"iterable"),asyncIterable:o(t=>x(d.asyncIterable(t),"AsyncIterable",t),"asyncIterable"),generator:o(t=>x(d.generator(t),"Generator",t),"generator"),asyncGenerator:o(t=>x(d.asyncGenerator(t),"AsyncGenerator",t),"asyncGenerator"),nativePromise:o(t=>x(d.nativePromise(t),"native Promise",t),"nativePromise"),promise:o(t=>x(d.promise(t),"Promise",t),"promise"),generatorFunction:o(t=>x(d.generatorFunction(t),"GeneratorFunction",t),"generatorFunction"),asyncGeneratorFunction:o(t=>x(d.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),"asyncGeneratorFunction"),asyncFunction:o(t=>x(d.asyncFunction(t),"AsyncFunction",t),"asyncFunction"),boundFunction:o(t=>x(d.boundFunction(t),"Function",t),"boundFunction"),regExp:o(t=>x(d.regExp(t),"RegExp",t),"regExp"),date:o(t=>x(d.date(t),"Date",t),"date"),error:o(t=>x(d.error(t),"Error",t),"error"),map:o(t=>x(d.map(t),"Map",t),"map"),set:o(t=>x(d.set(t),"Set",t),"set"),weakMap:o(t=>x(d.weakMap(t),"WeakMap",t),"weakMap"),weakSet:o(t=>x(d.weakSet(t),"WeakSet",t),"weakSet"),weakRef:o(t=>x(d.weakRef(t),"WeakRef",t),"weakRef"),int8Array:o(t=>x(d.int8Array(t),"Int8Array",t),"int8Array"),uint8Array:o(t=>x(d.uint8Array(t),"Uint8Array",t),"uint8Array"),uint8ClampedArray:o(t=>x(d.uint8ClampedArray(t),"Uint8ClampedArray",t),"uint8ClampedArray"),int16Array:o(t=>x(d.int16Array(t),"Int16Array",t),"int16Array"),uint16Array:o(t=>x(d.uint16Array(t),"Uint16Array",t),"uint16Array"),int32Array:o(t=>x(d.int32Array(t),"Int32Array",t),"int32Array"),uint32Array:o(t=>x(d.uint32Array(t),"Uint32Array",t),"uint32Array"),float32Array:o(t=>x(d.float32Array(t),"Float32Array",t),"float32Array"),float64Array:o(t=>x(d.float64Array(t),"Float64Array",t),"float64Array"),bigInt64Array:o(t=>x(d.bigInt64Array(t),"BigInt64Array",t),"bigInt64Array"),bigUint64Array:o(t=>x(d.bigUint64Array(t),"BigUint64Array",t),"bigUint64Array"),arrayBuffer:o(t=>x(d.arrayBuffer(t),"ArrayBuffer",t),"arrayBuffer"),sharedArrayBuffer:o(t=>x(d.sharedArrayBuffer(t),"SharedArrayBuffer",t),"sharedArrayBuffer"),dataView:o(t=>x(d.dataView(t),"DataView",t),"dataView"),enumCase:o((t,e)=>x(d.enumCase(t,e),"EnumCase",t),"enumCase"),urlInstance:o(t=>x(d.urlInstance(t),"URL",t),"urlInstance"),urlString:o(t=>x(d.urlString(t),"string with a URL",t),"urlString"),truthy:o(t=>x(d.truthy(t),"truthy",t),"truthy"),falsy:o(t=>x(d.falsy(t),"falsy",t),"falsy"),nan:o(t=>x(d.nan(t),"NaN",t),"nan"),primitive:o(t=>x(d.primitive(t),"primitive",t),"primitive"),integer:o(t=>x(d.integer(t),"integer",t),"integer"),safeInteger:o(t=>x(d.safeInteger(t),"integer",t),"safeInteger"),plainObject:o(t=>x(d.plainObject(t),"plain object",t),"plainObject"),typedArray:o(t=>x(d.typedArray(t),"TypedArray",t),"typedArray"),arrayLike:o(t=>x(d.arrayLike(t),"array-like",t),"arrayLike"),tupleLike:o((t,e)=>x(d.tupleLike(t,e),"tuple-like",t),"tupleLike"),domElement:o(t=>x(d.domElement(t),"HTMLElement",t),"domElement"),observable:o(t=>x(d.observable(t),"Observable",t),"observable"),nodeStream:o(t=>x(d.nodeStream(t),"Node.js Stream",t),"nodeStream"),infinite:o(t=>x(d.infinite(t),"infinite number",t),"infinite"),emptyArray:o(t=>x(d.emptyArray(t),"empty array",t),"emptyArray"),nonEmptyArray:o(t=>x(d.nonEmptyArray(t),"non-empty array",t),"nonEmptyArray"),emptyString:o(t=>x(d.emptyString(t),"empty string",t),"emptyString"),emptyStringOrWhitespace:o(t=>x(d.emptyStringOrWhitespace(t),"empty string or whitespace",t),"emptyStringOrWhitespace"),nonEmptyString:o(t=>x(d.nonEmptyString(t),"non-empty string",t),"nonEmptyString"),nonEmptyStringAndNotWhitespace:o(t=>x(d.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),"nonEmptyStringAndNotWhitespace"),emptyObject:o(t=>x(d.emptyObject(t),"empty object",t),"emptyObject"),nonEmptyObject:o(t=>x(d.nonEmptyObject(t),"non-empty object",t),"nonEmptyObject"),emptySet:o(t=>x(d.emptySet(t),"empty set",t),"emptySet"),nonEmptySet:o(t=>x(d.nonEmptySet(t),"non-empty set",t),"nonEmptySet"),emptyMap:o(t=>x(d.emptyMap(t),"empty map",t),"emptyMap"),nonEmptyMap:o(t=>x(d.nonEmptyMap(t),"non-empty map",t),"nonEmptyMap"),propertyKey:o(t=>x(d.propertyKey(t),"PropertyKey",t),"propertyKey"),formData:o(t=>x(d.formData(t),"FormData",t),"formData"),urlSearchParams:o(t=>x(d.urlSearchParams(t),"URLSearchParams",t),"urlSearchParams"),evenInteger:o(t=>x(d.evenInteger(t),"even integer",t),"evenInteger"),oddInteger:o(t=>x(d.oddInteger(t),"odd integer",t),"oddInteger"),directInstanceOf:o((t,e)=>x(d.directInstanceOf(t,e),"T",t),"directInstanceOf"),inRange:o((t,e)=>x(d.inRange(t,e),"in range",t),"inRange"),any:o((t,...e)=>x(d.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),"any"),all:o((t,...e)=>x(d.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0}),"all")};Object.defineProperties(d,{class:{value:d.class_},function:{value:d.function_},null:{value:d.null_}});Object.defineProperties(b,{class:{value:b.class_},function:{value:b.function_},null:{value:b.null_}});var p=d;l();import{EventEmitter as bE}from"node:events";l();var Mi=class extends Error{static{o(this,"CancelError")}constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},ar=class t{static{o(this,"PCancelable")}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=o(a=>{(!this._isCanceled||!u.shouldReject)&&(this._isPending=!1,r(a))},"onResolve"),i=o(a=>{this._isPending=!1,n(a)},"onReject"),u=o(a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)},"onCancel");Object.defineProperties(u,{shouldReject:{get:o(()=>this._rejectOnCancel,"get"),set:o(a=>{this._rejectOnCancel=a},"set")}}),e(s,i,u)})}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 Mi(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(ar.prototype,Promise.prototype);l();function kg(t){return p.object(t)&&"_onResponse"in t}o(kg,"isRequest");var V=class extends Error{static{o(this,"RequestError")}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,kg(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,p.string(r.stack)&&p.string(this.stack)){let s=this.stack.indexOf(this.message)+this.message.length,i=this.stack.slice(s).split(`
45
+ `).map(n=>Q0(n,e,r)).join(`
46
+ `)}o(zn,"wrapAnsi");var ag=we(vi(),1);var at=`
47
+ `,ve=" ",Rr="none",ff=o(()=>{let{env:t,stdout:e,stderr:r}=Wn;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},"terminalColumns"),uf=o(t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},"getObject"),Nr=o(t=>t===Rr?0:2,"getBorderWidth"),eg=o(t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===Rr){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=lf.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},"getBorderChars"),tg=o((t,e,r)=>{let n="",s=he(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},"makeTitle"),rg=o((t,{padding:e,width:r,textAlignment:n,height:s})=>{t=(0,Bi.default)(t,{align:n});let i=t.split(at),u=qn(t),a=r-e.left-e.right;if(u>a){let h=[];for(let g of i){let m=zn(g,a,{hard:!0}),F=(0,Bi.default)(m,{align:n}).split(`
48
+ `),D=Math.max(...F.map(E=>he(E)));for(let E of F){let C;switch(n){case"center":{C=ve.repeat((a-D)/2)+E;break}case"right":{C=ve.repeat(a-D)+E;break}default:{C=E;break}}h.push(C)}}i=h}n==="center"&&u<a?i=i.map(h=>ve.repeat((a-u)/2)+h):n==="right"&&u<a&&(i=i.map(h=>ve.repeat(a-u)+h));let c=ve.repeat(e.left),f=ve.repeat(e.right);return i=i.map(h=>{let g=c+h+f;return g+ve.repeat(r-he(g))}),e.top>0&&(i=[...Array.from({length:e.top}).fill(ve.repeat(r)),...i]),e.bottom>0&&(i=[...i,...Array.from({length:e.bottom}).fill(ve.repeat(r))]),s&&i.length>s?i=i.slice(0,s):s&&i.length<s&&(i=[...i,...Array.from({length:s-i.length}).fill(ve.repeat(r))]),i.join(at)},"makeContentText"),ng=o((t,e,r)=>{let n=o(h=>{let g=r.borderColor?og(r.borderColor)(h):h;return r.dimBorder?Ge.dim(g):g},"colorizeBorder"),s=o(h=>r.backgroundColor?ug(r.backgroundColor)(h):h,"colorizeContent"),i=eg(r.borderStyle),u=ff(),a=ve.repeat(r.margin.left);if(r.float==="center"){let h=Math.max((u-e-Nr(r.borderStyle))/2,0);a=ve.repeat(h)}else if(r.float==="right"){let h=Math.max(u-e-r.margin.right-Nr(r.borderStyle),0);a=ve.repeat(h)}let c="";r.margin.top&&(c+=at.repeat(r.margin.top)),(r.borderStyle!==Rr||r.title)&&(c+=n(a+i.topLeft+(r.title?tg(r.title,i.top.repeat(e),r.titleAlignment):i.top.repeat(e))+i.topRight)+at);let f=t.split(at);return c+=f.map(h=>a+n(i.left)+s(h)+n(i.right)).join(at),r.borderStyle!==Rr&&(c+=at+n(a+i.bottomLeft+i.bottom.repeat(e)+i.bottomRight)),r.margin.bottom&&(c+=at.repeat(r.margin.bottom)),c},"boxContent"),sg=o(t=>{if(t.fullscreen&&Wn?.stdout){let e=[Wn.stdout.columns,Wn.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||=e[0],t.height||=e[1]}return t.width&&=Math.max(1,t.width-Nr(t.borderStyle)),t.height&&=Math.max(1,t.height-Nr(t.borderStyle)),t},"sanitizeOptions"),af=o((t,e)=>e===Rr?t:` ${t} `,"formatTitle"),ig=o((t,e)=>{e=sg(e);let r=e.width!==void 0,n=ff(),s=Nr(e.borderStyle),i=n-e.margin.left-e.margin.right-s,u=qn(zn(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&&=af(e.title,e.borderStyle)):e.title&&(e.title=e.title.slice(0,Math.max(0,i-2)),e.title&&(e.title=af(e.title,e.borderStyle),he(e.title)>u&&(e.width=he(e.title)))),e.width||=u,!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},"determineDimensions"),Ri=o(t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),"isHex"),cf=o(t=>typeof t=="string"&&(Ge[t]??Ri(t)),"isColorValid"),og=o(t=>Ri(t)?Ge.hex(t):Ge[t],"getColorFunction"),ug=o(t=>Ri(t)?Ge.bgHex(t):Ge[Ti(["bg",t])],"getBGColorFunction");function Ni(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&&!cf(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!cf(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=uf(e.padding),e.margin=uf(e.margin),e=ig(t,e),t=rg(t,e),ng(t,e.width,e)}o(Ni,"boxen");l();var cg=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi,hf=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g,lg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,fg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,hg=new Map([["n",`
49
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Df(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCodePoint(Number.parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(Number.parseInt(t.slice(2,-1),16)):hg.get(t)||t}o(Df,"unescape");function dg(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),s;for(let i of n){let u=Number(i);if(!Number.isNaN(u))r.push(u);else if(s=i.match(lg))r.push(s[2].replace(fg,(a,c,f)=>c?Df(c):f));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${t}')`)}return r}o(dg,"parseArguments");function df(t){let e=Number.parseInt(t,16);return[e>>16&255,e>>8&255,e&255]}o(df,"parseHex");function Dg(t){hf.lastIndex=0;let e=[],r;for(;(r=hf.exec(t))!==null;){let n=r[1];r[2]?e.push([n,...dg(n,r[2])]):r[3]||r[4]?(r[3]&&e.push(["rgb",...df(r[3])]),r[4]&&e.push(["bgRgb",...df(r[4])])):e.push([n])}return e}o(Dg,"parseStyle");function pf(t){function e(n){let s={};for(let u of n)for(let a of u.styles)s[a[0]]=u.inverse?null:a.slice(1);let i=t;for(let[u,a]of Object.entries(s))if(Array.isArray(a)){if(!(u in i))throw new Error(`Unknown Chalk style: ${u}`);i=a.length>0?i[u](...a):i[u]}return i}o(e,"buildStyle");function r(n){let s=[],i=[],u=[];if(n.replace(cg,(a,c,f,h,g,m)=>{if(c)u.push(Df(c));else if(h){let y=u.join("");u=[],i.push(s.length===0?y:e(s)(y)),s.push({inverse:f,styles:Dg(h)})}else if(g){if(s.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(e(s)(u.join(""))),u=[],s.pop()}else u.push(m)}),i.push(u.join("")),s.length>0)throw new Error(`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`);return i.join("")}return o(r,"template"),r}o(pf,"makeTemplate");function mf(t){function e(r,...n){if(!Array.isArray(r)||!Array.isArray(r.raw))throw new TypeError("A tagged template literal must be provided");let s=[r.raw[0]];for(let i=1;i<r.raw.length;i++)s.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return t(s.join(""))}return o(e,"chalkTemplate"),e}o(mf,"makeChalkTemplate");var pg=pf(Ge),Ii=mf(pg),mg=pf(ru),Xv=mf(mg);var Uo=we(gf(),1);l();l();l();function ji(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(ji,"escapeStringRegexp");l();import yg from"node:os";var gg=o(()=>yg.homedir().replace(/\\/g,"/"),"getHomeDirectory"),Ff=gg;var Cf=/\s+at.*[(\s](.*)\)?/,Ef=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function $i(t,{pretty:e=!1,basePath:r,pathFilter:n}={}){let s=r&&new RegExp(`(file://)?${ji(r.replace(/\\/g,"/"))}/?`,"g"),i=e?Ff():"";if(typeof t=="string")return t.replace(/\\/g,"/").split(`
50
+ `).filter(u=>{let a=u.match(Cf);if(a===null||!a[1])return!0;let c=a[1];return c.includes(".app/Contents/Resources/electron.asar")||c.includes(".app/Contents/Resources/default_app.asar")||c.includes("node_modules/electron/dist/resources/electron.asar")||c.includes("node_modules/electron/dist/resources/default_app.asar")?!1:n?!Ef.test(c)&&n(c):!Ef.test(c)}).filter(u=>u.trim()!=="").map(u=>(s&&(u=u.replace(s,"")),e&&(u=u.replace(Cf,(a,c)=>a.replace(c,c.replace(i,"~")))),u)).join(`
51
+ `)}o($i,"cleanStack");l();l();l();var bf=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Fg(t){return bf.includes(t)}o(Fg,"isTypedArrayName");var Cg=["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",...bf];function Eg(t){return Cg.includes(t)}o(Eg,"isObjectTypeName");var bg=["null","undefined","string","number","bigint","boolean","symbol"];function wg(t){return bg.includes(t)}o(wg,"isPrimitiveTypeName");function ur(t){return e=>typeof e===t}o(ur,"isOfType");var{toString:_g}=Object.prototype,jr=o(t=>{let e=_g.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&d.domElement(t))return"HTMLElement";if(Eg(e))return e},"getObjectType"),z=o(t=>e=>jr(e)===t,"isObjectOfType");function d(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(d.observable(t))return"Observable";if(d.array(t))return"Array";if(d.buffer(t))return"Buffer";let e=jr(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"}o(d,"is");d.undefined=ur("undefined");d.string=ur("string");var xg=ur("number");d.number=t=>xg(t)&&!d.nan(t);d.positiveNumber=t=>d.number(t)&&t>0;d.negativeNumber=t=>d.number(t)&&t<0;d.bigint=ur("bigint");d.function_=ur("function");d.null_=t=>t===null;d.class_=t=>d.function_(t)&&t.toString().startsWith("class ");d.boolean=t=>t===!0||t===!1;d.symbol=ur("symbol");d.numericString=t=>d.string(t)&&!d.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));d.array=(t,e)=>Array.isArray(t)?d.function_(e)?t.every(r=>e(r)):!0:!1;d.buffer=t=>t?.constructor?.isBuffer?.(t)??!1;d.blob=t=>z("Blob")(t);d.nullOrUndefined=t=>d.null_(t)||d.undefined(t);d.object=t=>!d.null_(t)&&(typeof t=="object"||d.function_(t));d.iterable=t=>d.function_(t?.[Symbol.iterator]);d.asyncIterable=t=>d.function_(t?.[Symbol.asyncIterator]);d.generator=t=>d.iterable(t)&&d.function_(t?.next)&&d.function_(t?.throw);d.asyncGenerator=t=>d.asyncIterable(t)&&d.function_(t.next)&&d.function_(t.throw);d.nativePromise=t=>z("Promise")(t);var Sg=o(t=>d.function_(t?.then)&&d.function_(t?.catch),"hasPromiseApi");d.promise=t=>d.nativePromise(t)||Sg(t);d.generatorFunction=z("GeneratorFunction");d.asyncGeneratorFunction=t=>jr(t)==="AsyncGeneratorFunction";d.asyncFunction=t=>jr(t)==="AsyncFunction";d.boundFunction=t=>d.function_(t)&&!t.hasOwnProperty("prototype");d.regExp=z("RegExp");d.date=z("Date");d.error=z("Error");d.map=t=>z("Map")(t);d.set=t=>z("Set")(t);d.weakMap=t=>z("WeakMap")(t);d.weakSet=t=>z("WeakSet")(t);d.weakRef=t=>z("WeakRef")(t);d.int8Array=z("Int8Array");d.uint8Array=z("Uint8Array");d.uint8ClampedArray=z("Uint8ClampedArray");d.int16Array=z("Int16Array");d.uint16Array=z("Uint16Array");d.int32Array=z("Int32Array");d.uint32Array=z("Uint32Array");d.float32Array=z("Float32Array");d.float64Array=z("Float64Array");d.bigInt64Array=z("BigInt64Array");d.bigUint64Array=z("BigUint64Array");d.arrayBuffer=z("ArrayBuffer");d.sharedArrayBuffer=z("SharedArrayBuffer");d.dataView=z("DataView");d.enumCase=(t,e)=>Object.values(e).includes(t);d.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;d.urlInstance=t=>z("URL")(t);d.urlString=t=>{if(!d.string(t))return!1;try{return new URL(t),!0}catch{return!1}};d.truthy=t=>!!t;d.falsy=t=>!t;d.nan=t=>Number.isNaN(t);d.primitive=t=>d.null_(t)||wg(typeof t);d.integer=t=>Number.isInteger(t);d.safeInteger=t=>Number.isSafeInteger(t);d.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)};d.typedArray=t=>Fg(jr(t));var vg=o(t=>d.safeInteger(t)&&t>=0,"isValidLength");d.arrayLike=t=>!d.nullOrUndefined(t)&&!d.function_(t)&&vg(t.length);d.tupleLike=(t,e)=>d.array(e)&&d.array(t)&&e.length===t.length?e.every((r,n)=>r(t[n])):!1;d.inRange=(t,e)=>{if(d.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(d.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var Ag=1,Tg=["innerHTML","ownerDocument","style","attributes","nodeValue"];d.domElement=t=>d.object(t)&&t.nodeType===Ag&&d.string(t.nodeName)&&!d.plainObject(t)&&Tg.every(e=>e in t);d.observable=t=>t?t===t[Symbol.observable]?.()||t===t["@@observable"]?.():!1;d.nodeStream=t=>d.object(t)&&d.function_(t.pipe)&&!d.observable(t);d.infinite=t=>t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY;var wf=o(t=>e=>d.integer(e)&&Math.abs(e%2)===t,"isAbsoluteMod2");d.evenInteger=wf(0);d.oddInteger=wf(1);d.emptyArray=t=>d.array(t)&&t.length===0;d.nonEmptyArray=t=>d.array(t)&&t.length>0;d.emptyString=t=>d.string(t)&&t.length===0;var kg=o(t=>d.string(t)&&!/\S/.test(t),"isWhiteSpaceString");d.emptyStringOrWhitespace=t=>d.emptyString(t)||kg(t);d.nonEmptyString=t=>d.string(t)&&t.length>0;d.nonEmptyStringAndNotWhitespace=t=>d.string(t)&&!d.emptyStringOrWhitespace(t);d.emptyObject=t=>d.object(t)&&!d.map(t)&&!d.set(t)&&Object.keys(t).length===0;d.nonEmptyObject=t=>d.object(t)&&!d.map(t)&&!d.set(t)&&Object.keys(t).length>0;d.emptySet=t=>d.set(t)&&t.size===0;d.nonEmptySet=t=>d.set(t)&&t.size>0;d.emptyMap=t=>d.map(t)&&t.size===0;d.nonEmptyMap=t=>d.map(t)&&t.size>0;d.propertyKey=t=>d.any([d.string,d.number,d.symbol],t);d.formData=t=>z("FormData")(t);d.urlSearchParams=t=>z("URLSearchParams")(t);var _f=o((t,e,r)=>{if(!d.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)},"predicateOnArray");d.any=(t,...e)=>(d.array(t)?t:[t]).some(n=>_f(Array.prototype.some,n,e));d.all=(t,...e)=>_f(Array.prototype.every,t,e);var x=o((t,e,r,n={})=>{if(!t){let{multipleValues:s}=n,i=s?`received values of types ${[...new Set(r.map(u=>`\`${d(u)}\``))].join(", ")}`:`received value of type \`${d(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${i}.`)}},"assertType"),b={undefined:o(t=>x(d.undefined(t),"undefined",t),"undefined"),string:o(t=>x(d.string(t),"string",t),"string"),number:o(t=>x(d.number(t),"number",t),"number"),positiveNumber:o(t=>x(d.positiveNumber(t),"positive number",t),"positiveNumber"),negativeNumber:o(t=>x(d.negativeNumber(t),"negative number",t),"negativeNumber"),bigint:o(t=>x(d.bigint(t),"bigint",t),"bigint"),function_:o(t=>x(d.function_(t),"Function",t),"function_"),null_:o(t=>x(d.null_(t),"null",t),"null_"),class_:o(t=>x(d.class_(t),"Class",t),"class_"),boolean:o(t=>x(d.boolean(t),"boolean",t),"boolean"),symbol:o(t=>x(d.symbol(t),"symbol",t),"symbol"),numericString:o(t=>x(d.numericString(t),"string with a number",t),"numericString"),array:o((t,e)=>{x(d.array(t),"Array",t),e&&t.forEach(e)},"array"),buffer:o(t=>x(d.buffer(t),"Buffer",t),"buffer"),blob:o(t=>x(d.blob(t),"Blob",t),"blob"),nullOrUndefined:o(t=>x(d.nullOrUndefined(t),"null or undefined",t),"nullOrUndefined"),object:o(t=>x(d.object(t),"Object",t),"object"),iterable:o(t=>x(d.iterable(t),"Iterable",t),"iterable"),asyncIterable:o(t=>x(d.asyncIterable(t),"AsyncIterable",t),"asyncIterable"),generator:o(t=>x(d.generator(t),"Generator",t),"generator"),asyncGenerator:o(t=>x(d.asyncGenerator(t),"AsyncGenerator",t),"asyncGenerator"),nativePromise:o(t=>x(d.nativePromise(t),"native Promise",t),"nativePromise"),promise:o(t=>x(d.promise(t),"Promise",t),"promise"),generatorFunction:o(t=>x(d.generatorFunction(t),"GeneratorFunction",t),"generatorFunction"),asyncGeneratorFunction:o(t=>x(d.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),"asyncGeneratorFunction"),asyncFunction:o(t=>x(d.asyncFunction(t),"AsyncFunction",t),"asyncFunction"),boundFunction:o(t=>x(d.boundFunction(t),"Function",t),"boundFunction"),regExp:o(t=>x(d.regExp(t),"RegExp",t),"regExp"),date:o(t=>x(d.date(t),"Date",t),"date"),error:o(t=>x(d.error(t),"Error",t),"error"),map:o(t=>x(d.map(t),"Map",t),"map"),set:o(t=>x(d.set(t),"Set",t),"set"),weakMap:o(t=>x(d.weakMap(t),"WeakMap",t),"weakMap"),weakSet:o(t=>x(d.weakSet(t),"WeakSet",t),"weakSet"),weakRef:o(t=>x(d.weakRef(t),"WeakRef",t),"weakRef"),int8Array:o(t=>x(d.int8Array(t),"Int8Array",t),"int8Array"),uint8Array:o(t=>x(d.uint8Array(t),"Uint8Array",t),"uint8Array"),uint8ClampedArray:o(t=>x(d.uint8ClampedArray(t),"Uint8ClampedArray",t),"uint8ClampedArray"),int16Array:o(t=>x(d.int16Array(t),"Int16Array",t),"int16Array"),uint16Array:o(t=>x(d.uint16Array(t),"Uint16Array",t),"uint16Array"),int32Array:o(t=>x(d.int32Array(t),"Int32Array",t),"int32Array"),uint32Array:o(t=>x(d.uint32Array(t),"Uint32Array",t),"uint32Array"),float32Array:o(t=>x(d.float32Array(t),"Float32Array",t),"float32Array"),float64Array:o(t=>x(d.float64Array(t),"Float64Array",t),"float64Array"),bigInt64Array:o(t=>x(d.bigInt64Array(t),"BigInt64Array",t),"bigInt64Array"),bigUint64Array:o(t=>x(d.bigUint64Array(t),"BigUint64Array",t),"bigUint64Array"),arrayBuffer:o(t=>x(d.arrayBuffer(t),"ArrayBuffer",t),"arrayBuffer"),sharedArrayBuffer:o(t=>x(d.sharedArrayBuffer(t),"SharedArrayBuffer",t),"sharedArrayBuffer"),dataView:o(t=>x(d.dataView(t),"DataView",t),"dataView"),enumCase:o((t,e)=>x(d.enumCase(t,e),"EnumCase",t),"enumCase"),urlInstance:o(t=>x(d.urlInstance(t),"URL",t),"urlInstance"),urlString:o(t=>x(d.urlString(t),"string with a URL",t),"urlString"),truthy:o(t=>x(d.truthy(t),"truthy",t),"truthy"),falsy:o(t=>x(d.falsy(t),"falsy",t),"falsy"),nan:o(t=>x(d.nan(t),"NaN",t),"nan"),primitive:o(t=>x(d.primitive(t),"primitive",t),"primitive"),integer:o(t=>x(d.integer(t),"integer",t),"integer"),safeInteger:o(t=>x(d.safeInteger(t),"integer",t),"safeInteger"),plainObject:o(t=>x(d.plainObject(t),"plain object",t),"plainObject"),typedArray:o(t=>x(d.typedArray(t),"TypedArray",t),"typedArray"),arrayLike:o(t=>x(d.arrayLike(t),"array-like",t),"arrayLike"),tupleLike:o((t,e)=>x(d.tupleLike(t,e),"tuple-like",t),"tupleLike"),domElement:o(t=>x(d.domElement(t),"HTMLElement",t),"domElement"),observable:o(t=>x(d.observable(t),"Observable",t),"observable"),nodeStream:o(t=>x(d.nodeStream(t),"Node.js Stream",t),"nodeStream"),infinite:o(t=>x(d.infinite(t),"infinite number",t),"infinite"),emptyArray:o(t=>x(d.emptyArray(t),"empty array",t),"emptyArray"),nonEmptyArray:o(t=>x(d.nonEmptyArray(t),"non-empty array",t),"nonEmptyArray"),emptyString:o(t=>x(d.emptyString(t),"empty string",t),"emptyString"),emptyStringOrWhitespace:o(t=>x(d.emptyStringOrWhitespace(t),"empty string or whitespace",t),"emptyStringOrWhitespace"),nonEmptyString:o(t=>x(d.nonEmptyString(t),"non-empty string",t),"nonEmptyString"),nonEmptyStringAndNotWhitespace:o(t=>x(d.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),"nonEmptyStringAndNotWhitespace"),emptyObject:o(t=>x(d.emptyObject(t),"empty object",t),"emptyObject"),nonEmptyObject:o(t=>x(d.nonEmptyObject(t),"non-empty object",t),"nonEmptyObject"),emptySet:o(t=>x(d.emptySet(t),"empty set",t),"emptySet"),nonEmptySet:o(t=>x(d.nonEmptySet(t),"non-empty set",t),"nonEmptySet"),emptyMap:o(t=>x(d.emptyMap(t),"empty map",t),"emptyMap"),nonEmptyMap:o(t=>x(d.nonEmptyMap(t),"non-empty map",t),"nonEmptyMap"),propertyKey:o(t=>x(d.propertyKey(t),"PropertyKey",t),"propertyKey"),formData:o(t=>x(d.formData(t),"FormData",t),"formData"),urlSearchParams:o(t=>x(d.urlSearchParams(t),"URLSearchParams",t),"urlSearchParams"),evenInteger:o(t=>x(d.evenInteger(t),"even integer",t),"evenInteger"),oddInteger:o(t=>x(d.oddInteger(t),"odd integer",t),"oddInteger"),directInstanceOf:o((t,e)=>x(d.directInstanceOf(t,e),"T",t),"directInstanceOf"),inRange:o((t,e)=>x(d.inRange(t,e),"in range",t),"inRange"),any:o((t,...e)=>x(d.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),"any"),all:o((t,...e)=>x(d.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0}),"all")};Object.defineProperties(d,{class:{value:d.class_},function:{value:d.function_},null:{value:d.null_}});Object.defineProperties(b,{class:{value:b.class_},function:{value:b.function_},null:{value:b.null_}});var p=d;l();import{EventEmitter as wE}from"node:events";l();var Mi=class extends Error{static{o(this,"CancelError")}constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},ar=class t{static{o(this,"PCancelable")}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=o(a=>{(!this._isCanceled||!u.shouldReject)&&(this._isPending=!1,r(a))},"onResolve"),i=o(a=>{this._isPending=!1,n(a)},"onReject"),u=o(a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)},"onCancel");Object.defineProperties(u,{shouldReject:{get:o(()=>this._rejectOnCancel,"get"),set:o(a=>{this._rejectOnCancel=a},"set")}}),e(s,i,u)})}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 Mi(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(ar.prototype,Promise.prototype);l();function Pg(t){return p.object(t)&&"_onResponse"in t}o(Pg,"isRequest");var V=class extends Error{static{o(this,"RequestError")}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,Pg(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,p.string(r.stack)&&p.string(this.stack)){let s=this.stack.indexOf(this.message)+this.message.length,i=this.stack.slice(s).split(`
52
52
  `).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
53
53
  `).reverse();for(;u.length>0&&u[0]===i[0];)i.shift();this.stack=`${this.stack.slice(0,s)}${i.reverse().join(`
54
54
  `)}${u.reverse().join(`
55
- `)}`}}},Vn=class extends V{static{o(this,"MaxRedirectsError")}constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},ct=class extends V{static{o(this,"HTTPError")}constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},Zn=class extends V{static{o(this,"CacheError")}constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},$r=class extends V{static{o(this,"UploadError")}constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},Yn=class extends V{static{o(this,"TimeoutError")}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}},Mr=class extends V{static{o(this,"ReadError")}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}},Jn=class extends V{static{o(this,"RetryError")}constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Kn=class extends V{static{o(this,"AbortError")}constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}};l();import fd from"node:process";import{Buffer as Io}from"node:buffer";import{Duplex as pE}from"node:stream";import mE,{ServerResponse as ld}from"node:http";l();var xf=we(_f(),1);import{errorMonitor as Lg}from"events";import{types as Og}from"util";var Bg=o(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(u=>{u.once(Lg,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})},"handleError");r(t);let n=o(()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start},"onAbort");t.prependOnceListener("abort",n);let s=o(u=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,Og.isProxy(u))return;let a=o(()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket},"lookupListener");u.prependOnceListener("lookup",a),(0,xf.default)(u,{connect:o(()=>{e.connect=Date.now(),e.lookup===void 0&&(u.removeListener("lookup",a),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},"connect"),secureConnect:o(()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect},"secureConnect")})},"onSocket");t.socket?s(t.socket):t.prependOnceListener("socket",s);let i=o(()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)},"onUpload");return t.writableFinished?i():t.prependOnceListener("finish",i),t.prependOnceListener("response",u=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,u.timings=e,r(u),u.prependOnceListener("end",()=>{t.off("abort",n),u.off("aborted",n),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),u.prependOnceListener("aborted",n)}),e},"timer"),Sf=Bg;l();import nF from"node:events";import es from"node:url";import sF from"node:crypto";import iF,{PassThrough as oF}from"node:stream";l();var Rg="text/plain",Ng="us-ascii",Hi=o((t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),"testParameter"),Ig=new Set(["https:","http:","file:"]),jg=o(t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!e.includes(".")&&!Ig.has(e)}catch{return!1}},"hasCustomProtocol"),$g=o((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,u=n.split(";");i=e?"":i;let a=!1;u[u.length-1]==="base64"&&(u.pop(),a=!0);let c=u.shift()?.toLowerCase()??"",h=[...u.map(g=>{let[m,y=""]=g.split("=").map(F=>F.trim());return m==="charset"&&(y=y.toLowerCase(),y===Ng)?"":`${m}${y?`=${y}`:""}`}).filter(Boolean)];return a&&h.push("base64"),(h.length>0||c&&c!==Rg)&&h.unshift(c),`data:${h.join(";")},${a?s.trim():s}${i?`#${i}`:""}`},"normalizeDataURL");function zi(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 $g(t,e);if(jg(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 u=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,c="";for(;;){let h=u.exec(s.pathname);if(!h)break;let g=h[0],m=h.index,y=s.pathname.slice(a,m);c+=y.replace(/\/{2,}/g,"/"),c+=g,a=m+g.length}let f=s.pathname.slice(a,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 u=s.pathname.split("/"),a=u[u.length-1];Hi(a,e.removeDirectoryIndex)&&(u=u.slice(0,-1),s.pathname=u.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 u of[...s.searchParams.keys()])Hi(u,e.removeQueryParameters)&&s.searchParams.delete(u);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(s.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let u of[...s.searchParams.keys()])Hi(u,e.keepQueryParameters)||s.searchParams.delete(u);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}o(zi,"normalizeUrl");var If=we(Vi(),1),ts=we(kf(),1);l();import{Readable as Qg}from"node:stream";l();function cr(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLowerCase(),r]))}o(cr,"lowercaseKeys");var lr=class extends Qg{static{o(this,"Response")}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=cr(r),this.body=n,this.url=s}};var qr=we(Rf(),1);l();var rF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function Ki(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),...rF]),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}o(Ki,"mimicResponse");l();var Qn=class extends Error{static{o(this,"RequestError")}constructor(e){super(e.message),Object.assign(this,e)}},Je=class extends Error{static{o(this,"CacheError")}constructor(e){super(e.message),Object.assign(this,e)}};var Qi=class{static{o(this,"CacheableRequest")}constructor(e,r){this.hooks=new Map,this.request=()=>(n,s)=>{let i;if(typeof n=="string")i=Xi(es.parse(n)),n={};else if(n instanceof es.URL)i=Xi(es.parse(n.toString())),n={};else{let[m,...y]=(n.path??"").split("?"),F=y.length>0?`?${y.join("?")}`:"";i=Xi({...n,pathname:m,search:F})}n={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...n,...cF(i)},n.headers=Object.fromEntries(uF(n.headers).map(([m,y])=>[m.toLowerCase(),y]));let u=new nF,a=zi(es.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${n.method}:${a}`;n.body&&n.method!==void 0&&["POST","PATCH","PUT"].includes(n.method)&&(n.body instanceof iF.Readable?n.cache=!1:c+=`:${sF.createHash("md5").update(n.body).digest("hex")}`);let f=!1,h=!1,g=o(m=>{h=!0;let y=!1,F=o(()=>{},"requestErrorCallback"),D=new Promise(C=>{F=o(()=>{y||(y=!0,C())},"requestErrorCallback")}),E=o(async C=>{if(f){C.status=C.statusCode;let S=ts.default.fromObject(f.cachePolicy).revalidatedPolicy(m,C);if(!S.modified){C.resume(),await new Promise(j=>{C.once("end",j)});let P=Nf(S.policy.responseHeaders());C=new lr({statusCode:f.statusCode,headers:P,body:f.body,url:f.url}),C.cachePolicy=S.policy,C.fromCache=!0}}C.fromCache||(C.cachePolicy=new ts.default(m,C,m),C.fromCache=!1);let T;m.cache&&C.cachePolicy.storable()?(T=aF(C),(async()=>{try{let S=If.default.buffer(C);await Promise.race([D,new Promise(se=>C.once("end",se)),new Promise(se=>C.once("close",se))]);let P=await S,j={url:C.url,statusCode:C.fromCache?f.statusCode:C.statusCode,body:P,cachePolicy:C.cachePolicy.toObject()},X=m.strictTtl?C.cachePolicy.timeToLive():void 0;if(m.maxTtl&&(X=X?Math.min(X,m.maxTtl):m.maxTtl),this.hooks.size>0)for(let se of this.hooks.keys())j=await this.runHook(se,j,C);await this.cache.set(c,j,X)}catch(S){u.emit("error",new Je(S))}})()):m.cache&&f&&(async()=>{try{await this.cache.delete(c)}catch(S){u.emit("error",new Je(S))}})(),u.emit("response",T??C),typeof s=="function"&&s(T??C)},"handler");try{let C=this.cacheRequest(m,E);C.once("error",F),C.once("abort",F),C.once("destroy",F),u.emit("request",C)}catch(C){u.emit("error",new Qn(C))}},"makeRequest");return(async()=>{let m=o(async F=>{await Promise.resolve();let D=F.cache?await this.cache.get(c):void 0;if(D===void 0&&!F.forceRefresh){g(F);return}let E=ts.default.fromObject(D.cachePolicy);if(E.satisfiesWithoutRevalidation(F)&&!F.forceRefresh){let C=Nf(E.responseHeaders()),T=new lr({statusCode:D.statusCode,headers:C,body:D.body,url:D.url});T.cachePolicy=E,T.fromCache=!0,u.emit("response",T),typeof s=="function"&&s(T)}else E.satisfiesWithoutRevalidation(F)&&Date.now()>=E.timeToLive()&&F.forceRefresh?(await this.cache.delete(c),F.headers=E.revalidationHeaders(F),g(F)):(f=D,F.headers=E.revalidationHeaders(F),g(F))},"get"),y=o(F=>u.emit("error",new Je(F)),"errorHandler");if(this.cache instanceof qr.default){let F=this.cache;F.once("error",y),u.on("error",()=>F.removeListener("error",y)),u.on("response",()=>F.removeListener("error",y))}try{await m(n)}catch(F){n.automaticFailover&&!h&&g(n),u.emit("error",new Je(F))}})(),u},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 qr.default?this.cache=r:typeof r=="string"?this.cache=new qr.default({uri:r,namespace:"cacheable-request"}):this.cache=new qr.default({store:r,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},uF=Object.entries,aF=o(t=>{let e=new oF({autoDestroy:!1});return Ki(t,e),t.pipe(e)},"cloneResponse"),cF=o(t=>{let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e},"urlObjectToRequestOptions"),Xi=o(t=>({protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}),"normalizeUrlObject"),Nf=o(t=>{let e=[];for(let r of Object.keys(t))e[r.toLowerCase()]=t[r];return e},"convertHeaders"),jf=Qi;var hd=we(qf(),1);var dd=we(Vi(),1);l();l();l();var Pe=o(t=>typeof t=="function","isFunction");var DF=o(t=>Pe(t[Symbol.asyncIterator]),"isAsyncIterable");async function*pF(t){let e=t.getReader();for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}o(pF,"readStream");var Gf=o(t=>{if(DF(t))return t;if(Pe(t.getReader))return pF(t);throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")},"getStreamIterator");l();var Hf="abcdefghijklmnopqrstuvwxyz0123456789";function zf(){let t=16,e="";for(;t--;)e+=Hf[Math.random()*Hf.length<<0];return e}o(zf,"createBoundary");l();var to=o(t=>String(t).replace(/\r|\n/g,(e,r,n)=>e==="\r"&&n[r+1]!==`
55
+ `)}`}}},Vn=class extends V{static{o(this,"MaxRedirectsError")}constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},ct=class extends V{static{o(this,"HTTPError")}constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},Zn=class extends V{static{o(this,"CacheError")}constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},$r=class extends V{static{o(this,"UploadError")}constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},Yn=class extends V{static{o(this,"TimeoutError")}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}},Mr=class extends V{static{o(this,"ReadError")}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}},Jn=class extends V{static{o(this,"RetryError")}constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Kn=class extends V{static{o(this,"AbortError")}constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}};l();import hd from"node:process";import{Buffer as Io}from"node:buffer";import{Duplex as mE}from"node:stream";import yE,{ServerResponse as fd}from"node:http";l();var Sf=we(xf(),1);import{errorMonitor as Og}from"events";import{types as Bg}from"util";var Rg=o(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(u=>{u.once(Og,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})},"handleError");r(t);let n=o(()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start},"onAbort");t.prependOnceListener("abort",n);let s=o(u=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,Bg.isProxy(u))return;let a=o(()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket},"lookupListener");u.prependOnceListener("lookup",a),(0,Sf.default)(u,{connect:o(()=>{e.connect=Date.now(),e.lookup===void 0&&(u.removeListener("lookup",a),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},"connect"),secureConnect:o(()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect},"secureConnect")})},"onSocket");t.socket?s(t.socket):t.prependOnceListener("socket",s);let i=o(()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)},"onUpload");return t.writableFinished?i():t.prependOnceListener("finish",i),t.prependOnceListener("response",u=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,u.timings=e,r(u),u.prependOnceListener("end",()=>{t.off("abort",n),u.off("aborted",n),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),u.prependOnceListener("aborted",n)}),e},"timer"),vf=Rg;l();import sF from"node:events";import es from"node:url";import iF from"node:crypto";import oF,{PassThrough as uF}from"node:stream";l();var Ng="text/plain",Ig="us-ascii",Hi=o((t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),"testParameter"),jg=new Set(["https:","http:","file:"]),$g=o(t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!e.includes(".")&&!jg.has(e)}catch{return!1}},"hasCustomProtocol"),Mg=o((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,u=n.split(";");i=e?"":i;let a=!1;u[u.length-1]==="base64"&&(u.pop(),a=!0);let c=u.shift()?.toLowerCase()??"",h=[...u.map(g=>{let[m,y=""]=g.split("=").map(F=>F.trim());return m==="charset"&&(y=y.toLowerCase(),y===Ig)?"":`${m}${y?`=${y}`:""}`}).filter(Boolean)];return a&&h.push("base64"),(h.length>0||c&&c!==Ng)&&h.unshift(c),`data:${h.join(";")},${a?s.trim():s}${i?`#${i}`:""}`},"normalizeDataURL");function zi(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 Mg(t,e);if($g(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 u=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,c="";for(;;){let h=u.exec(s.pathname);if(!h)break;let g=h[0],m=h.index,y=s.pathname.slice(a,m);c+=y.replace(/\/{2,}/g,"/"),c+=g,a=m+g.length}let f=s.pathname.slice(a,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 u=s.pathname.split("/"),a=u[u.length-1];Hi(a,e.removeDirectoryIndex)&&(u=u.slice(0,-1),s.pathname=u.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 u of[...s.searchParams.keys()])Hi(u,e.removeQueryParameters)&&s.searchParams.delete(u);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(s.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let u of[...s.searchParams.keys()])Hi(u,e.keepQueryParameters)||s.searchParams.delete(u);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}o(zi,"normalizeUrl");var jf=we(Vi(),1),ts=we(Pf(),1);l();import{Readable as eF}from"node:stream";l();function cr(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLowerCase(),r]))}o(cr,"lowercaseKeys");var lr=class extends eF{static{o(this,"Response")}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=cr(r),this.body=n,this.url=s}};var qr=we(Nf(),1);l();var nF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function Ki(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),...nF]),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}o(Ki,"mimicResponse");l();var Qn=class extends Error{static{o(this,"RequestError")}constructor(e){super(e.message),Object.assign(this,e)}},Je=class extends Error{static{o(this,"CacheError")}constructor(e){super(e.message),Object.assign(this,e)}};var Qi=class{static{o(this,"CacheableRequest")}constructor(e,r){this.hooks=new Map,this.request=()=>(n,s)=>{let i;if(typeof n=="string")i=Xi(es.parse(n)),n={};else if(n instanceof es.URL)i=Xi(es.parse(n.toString())),n={};else{let[m,...y]=(n.path??"").split("?"),F=y.length>0?`?${y.join("?")}`:"";i=Xi({...n,pathname:m,search:F})}n={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...n,...lF(i)},n.headers=Object.fromEntries(aF(n.headers).map(([m,y])=>[m.toLowerCase(),y]));let u=new sF,a=zi(es.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${n.method}:${a}`;n.body&&n.method!==void 0&&["POST","PATCH","PUT"].includes(n.method)&&(n.body instanceof oF.Readable?n.cache=!1:c+=`:${iF.createHash("md5").update(n.body).digest("hex")}`);let f=!1,h=!1,g=o(m=>{h=!0;let y=!1,F=o(()=>{},"requestErrorCallback"),D=new Promise(C=>{F=o(()=>{y||(y=!0,C())},"requestErrorCallback")}),E=o(async C=>{if(f){C.status=C.statusCode;let S=ts.default.fromObject(f.cachePolicy).revalidatedPolicy(m,C);if(!S.modified){C.resume(),await new Promise(j=>{C.once("end",j)});let P=If(S.policy.responseHeaders());C=new lr({statusCode:f.statusCode,headers:P,body:f.body,url:f.url}),C.cachePolicy=S.policy,C.fromCache=!0}}C.fromCache||(C.cachePolicy=new ts.default(m,C,m),C.fromCache=!1);let T;m.cache&&C.cachePolicy.storable()?(T=cF(C),(async()=>{try{let S=jf.default.buffer(C);await Promise.race([D,new Promise(se=>C.once("end",se)),new Promise(se=>C.once("close",se))]);let P=await S,j={url:C.url,statusCode:C.fromCache?f.statusCode:C.statusCode,body:P,cachePolicy:C.cachePolicy.toObject()},X=m.strictTtl?C.cachePolicy.timeToLive():void 0;if(m.maxTtl&&(X=X?Math.min(X,m.maxTtl):m.maxTtl),this.hooks.size>0)for(let se of this.hooks.keys())j=await this.runHook(se,j,C);await this.cache.set(c,j,X)}catch(S){u.emit("error",new Je(S))}})()):m.cache&&f&&(async()=>{try{await this.cache.delete(c)}catch(S){u.emit("error",new Je(S))}})(),u.emit("response",T??C),typeof s=="function"&&s(T??C)},"handler");try{let C=this.cacheRequest(m,E);C.once("error",F),C.once("abort",F),C.once("destroy",F),u.emit("request",C)}catch(C){u.emit("error",new Qn(C))}},"makeRequest");return(async()=>{let m=o(async F=>{await Promise.resolve();let D=F.cache?await this.cache.get(c):void 0;if(D===void 0&&!F.forceRefresh){g(F);return}let E=ts.default.fromObject(D.cachePolicy);if(E.satisfiesWithoutRevalidation(F)&&!F.forceRefresh){let C=If(E.responseHeaders()),T=new lr({statusCode:D.statusCode,headers:C,body:D.body,url:D.url});T.cachePolicy=E,T.fromCache=!0,u.emit("response",T),typeof s=="function"&&s(T)}else E.satisfiesWithoutRevalidation(F)&&Date.now()>=E.timeToLive()&&F.forceRefresh?(await this.cache.delete(c),F.headers=E.revalidationHeaders(F),g(F)):(f=D,F.headers=E.revalidationHeaders(F),g(F))},"get"),y=o(F=>u.emit("error",new Je(F)),"errorHandler");if(this.cache instanceof qr.default){let F=this.cache;F.once("error",y),u.on("error",()=>F.removeListener("error",y)),u.on("response",()=>F.removeListener("error",y))}try{await m(n)}catch(F){n.automaticFailover&&!h&&g(n),u.emit("error",new Je(F))}})(),u},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 qr.default?this.cache=r:typeof r=="string"?this.cache=new qr.default({uri:r,namespace:"cacheable-request"}):this.cache=new qr.default({store:r,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},aF=Object.entries,cF=o(t=>{let e=new uF({autoDestroy:!1});return Ki(t,e),t.pipe(e)},"cloneResponse"),lF=o(t=>{let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e},"urlObjectToRequestOptions"),Xi=o(t=>({protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}),"normalizeUrlObject"),If=o(t=>{let e=[];for(let r of Object.keys(t))e[r.toLowerCase()]=t[r];return e},"convertHeaders"),$f=Qi;var dd=we(Gf(),1);var Dd=we(Vi(),1);l();l();l();var Pe=o(t=>typeof t=="function","isFunction");var pF=o(t=>Pe(t[Symbol.asyncIterator]),"isAsyncIterable");async function*mF(t){let e=t.getReader();for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}o(mF,"readStream");var Hf=o(t=>{if(pF(t))return t;if(Pe(t.getReader))return mF(t);throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")},"getStreamIterator");l();var zf="abcdefghijklmnopqrstuvwxyz0123456789";function Wf(){let t=16,e="";for(;t--;)e+=zf[Math.random()*zf.length<<0];return e}o(Wf,"createBoundary");l();var to=o(t=>String(t).replace(/\r|\n/g,(e,r,n)=>e==="\r"&&n[r+1]!==`
56
56
  `||e===`
57
57
  `&&n[r-1]!=="\r"?`\r
58
- `:e),"normalizeValue");l();var mF=o(t=>Object.prototype.toString.call(t).slice(8,-1).toLowerCase(),"getType");function ro(t){if(mF(t)!=="object")return!1;let e=Object.getPrototypeOf(t);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}o(ro,"isPlainObject");l();function Wf(t,e){if(typeof e=="string"){for(let[r,n]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return n}}o(Wf,"getProperty");var Vf=o(t=>new Proxy(t,{get:o((e,r)=>Wf(e,r),"get"),has:o((e,r)=>Wf(e,r)!==void 0,"has")}),"proxyHeaders");l();var fr=o(t=>!!(t&&Pe(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&Pe(t.append)&&Pe(t.getAll)&&Pe(t.entries)&&Pe(t[Symbol.iterator])),"isFormData");l();var no=o(t=>String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22"),"escapeName");l();var lt=o(t=>!!(t&&typeof t=="object"&&Pe(t.constructor)&&t[Symbol.toStringTag]==="File"&&Pe(t.stream)&&t.name!=null),"isFile");var Gr=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},Z=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)},Hr,ft,zr,rs,Wr,Nt,Vr,Zr,ns,so,Zf,yF={enableAdditionalHeaders:!1},ss={writable:!1,configurable:!1},is=class{static{o(this,"FormDataEncoder")}constructor(e,r,n){if(Hr.add(this),ft.set(this,`\r
59
- `),zr.set(this,void 0),rs.set(this,void 0),Wr.set(this,"-".repeat(2)),Nt.set(this,new TextEncoder),Vr.set(this,void 0),Zr.set(this,void 0),ns.set(this,void 0),!fr(e))throw new TypeError("Expected first argument to be a FormData instance.");let s;if(ro(r)?n=r:s=r,s||(s=zf()),typeof s!="string")throw new TypeError("Expected boundary argument to be a string.");if(n&&!ro(n))throw new TypeError("Expected options argument to be an object.");Gr(this,Zr,Array.from(e.entries()),"f"),Gr(this,ns,{...yF,...n},"f"),Gr(this,zr,Z(this,Nt,"f").encode(Z(this,ft,"f")),"f"),Gr(this,rs,Z(this,zr,"f").byteLength,"f"),this.boundary=`form-data-boundary-${s}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Gr(this,Vr,Z(this,Nt,"f").encode(`${Z(this,Wr,"f")}${this.boundary}${Z(this,Wr,"f")}${Z(this,ft,"f").repeat(2)}`),"f");let i={"Content-Type":this.contentType},u=Z(this,Hr,"m",Zf).call(this);u&&(this.contentLength=u,i["Content-Length"]=u),this.headers=Vf(Object.freeze(i)),Object.defineProperties(this,{boundary:ss,contentType:ss,contentLength:ss,headers:ss})}getContentLength(){return this.contentLength==null?void 0:Number(this.contentLength)}*values(){for(let[e,r]of Z(this,Zr,"f")){let n=lt(r)?r:Z(this,Nt,"f").encode(to(r));yield Z(this,Hr,"m",so).call(this,e,n),yield n,yield Z(this,zr,"f")}yield Z(this,Vr,"f")}async*encode(){for(let e of this.values())lt(e)?yield*Gf(e.stream()):yield e}[(ft=new WeakMap,zr=new WeakMap,rs=new WeakMap,Wr=new WeakMap,Nt=new WeakMap,Vr=new WeakMap,Zr=new WeakMap,ns=new WeakMap,Hr=new WeakSet,so=o(function(r,n){let s="";s+=`${Z(this,Wr,"f")}${this.boundary}${Z(this,ft,"f")}`,s+=`Content-Disposition: form-data; name="${no(r)}"`,lt(n)&&(s+=`; filename="${no(n.name)}"${Z(this,ft,"f")}`,s+=`Content-Type: ${n.type||"application/octet-stream"}`);let i=lt(n)?n.size:n.byteLength;return Z(this,ns,"f").enableAdditionalHeaders===!0&&i!=null&&!isNaN(i)&&(s+=`${Z(this,ft,"f")}Content-Length: ${lt(n)?n.size:n.byteLength}`),Z(this,Nt,"f").encode(`${s}${Z(this,ft,"f").repeat(2)}`)},"_FormDataEncoder_getFieldHeader"),Zf=o(function(){let r=0;for(let[n,s]of Z(this,Zr,"f")){let i=lt(s)?s:Z(this,Nt,"f").encode(to(s)),u=lt(i)?i.size:i.byteLength;if(u==null||isNaN(u))return;r+=Z(this,Hr,"m",so).call(this,n,i).byteLength,r+=u,r+=Z(this,rs,"f")}return String(r+Z(this,Vr,"f").byteLength)},"_FormDataEncoder_getContentLength"),Symbol.iterator)](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};l();import{Buffer as gF}from"node:buffer";import{promisify as FF}from"node:util";l();function Yr(t){return p.nodeStream(t)&&p.function_(t.getBoundary)}o(Yr,"isFormData");async function io(t,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(p.string(t))return gF.byteLength(t);if(p.buffer(t))return t.length;if(Yr(t))return FF(t.getLength.bind(t))()}o(io,"getBodySize");l();function Jr(t,e,r){let n={};for(let s of r){let i=o((...u)=>{e.emit(s,...u)},"eventFunction");n[s]=i,t.on(s,i)}return()=>{for(let[s,i]of Object.entries(n))t.off(s,i)}}o(Jr,"proxyEvents");l();import CF from"node:net";l();function oo(){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}}}o(oo,"unhandle");var Yf=Symbol("reentry"),EF=o(()=>{},"noop"),Kr=class extends Error{static{o(this,"TimeoutError")}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 uo(t,e,r){if(Yf in t)return EF;t[Yf]=!0;let n=[],{once:s,unhandleAll:i}=oo(),u=o((D,E,C)=>{let T=setTimeout(E,D,D,C);T.unref?.();let S=o(()=>{clearTimeout(T)},"cancel");return n.push(S),S},"addTimeout"),{host:a,hostname:c}=r,f=o((D,E)=>{t.destroy(new Kr(D,E))},"timeoutHandler"),h=o(()=>{for(let D of n)D();i()},"cancelTimeouts");if(t.once("error",D=>{if(h(),t.listenerCount("error")===0)throw D}),e.request!==void 0){let D=u(e.request,f,"request");s(t,"response",E=>{s(E,"end",D)})}if(e.socket!==void 0){let{socket:D}=e,E=o(()=>{f(D,"socket")},"socketTimeoutHandler");t.setTimeout(D,E),n.push(()=>{t.removeListener("timeout",E)})}let g=e.lookup!==void 0,m=e.connect!==void 0,y=e.secureConnect!==void 0,F=e.send!==void 0;return(g||m||y||F)&&s(t,"socket",D=>{let{socketPath:E}=t;if(D.connecting){let C=!!(E??CF.isIP(c??a??"")!==0);if(g&&!C&&D.address().address===void 0){let T=u(e.lookup,f,"lookup");s(D,"lookup",T)}if(m){let T=o(()=>u(e.connect,f,"connect"),"timeConnect");C?s(D,"connect",T()):s(D,"lookup",S=>{S===null&&s(D,"connect",T())})}y&&r.protocol==="https:"&&s(D,"connect",()=>{let T=u(e.secureConnect,f,"secureConnect");s(D,"secureConnect",T)})}if(F){let C=o(()=>u(e.send,f,"send"),"timeRequest");D.connecting?s(D,"connect",()=>{s(t,"upload-complete",C())}):s(t,"upload-complete",C())}}),e.response!==void 0&&s(t,"upload-complete",()=>{let D=u(e.response,f,"response");s(t,"response",D)}),e.read!==void 0&&s(t,"response",D=>{let E=u(e.read,f,"read");s(D,"end",E)}),h}o(uo,"timedOut");l();function ao(t){t=t;let e={protocol:t.protocol,hostname:p.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 p.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}o(ao,"urlToOptions");l();var Xr=class{static{o(this,"WeakableMap")}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)}};l();var bF=o(({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),u=e.errorCodes.includes(r.code),a=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!u&&!a)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},"calculateRetryDelay"),Jf=bF;l();import tE from"node:process";import{promisify as id,inspect as rE}from"node:util";import{checkServerIdentity as nE}from"node:tls";import sE from"node:http";import iE from"node:https";l();import{V4MAPPED as wF,ADDRCONFIG as _F,ALL as rh,promises as xF,lookup as SF}from"node:dns";import{promisify as co}from"node:util";import vF from"node:os";var{Resolver:Kf}=xF,hr=Symbol("cacheableLookupCreateConnection"),lo=Symbol("cacheableLookupInstance"),Xf=Symbol("expires"),AF=typeof rh=="number",Qf=o(t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},"verifyAgent"),TF=o(t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},"map4to6"),eh=o(()=>{let t=!1,e=!1;for(let r of Object.values(vF.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}},"getIfaceInfo"),kF=o(t=>Symbol.iterator in t,"isIterable"),os=o(t=>t.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),"ignoreNoResultErrors"),th={ttl:!0},PF={all:!0},LF={all:!0,family:4},OF={all:!0,family:6},Qr=class{static{o(this,"CacheableLookup")}constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:s=.15,resolver:i=new Kf,lookup:u=SF}={}){if(this.maxTtl=r,this.errorTtl=s,this._cache=e,this._resolver=i,this._dnsLookup=u&&co(u),this.stats={cache:0,query:0},this._resolver instanceof Kf?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=co(this._resolver.resolve4.bind(this._resolver)),this._resolve6=co(this._resolver.resolve6.bind(this._resolver))),this._iface=eh(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=n,n>0){let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref(),this._fallbackInterval=a}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&wF&&(AF&&r.hints&rh||s.length===0)?TF(n):n=s}else r.family===4&&(n=n.filter(s=>s.family===4));if(r.hints&_F){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([os(this._resolve4(e,th)),os(this._resolve6(e,th))]),s=0,i=0,u=0,a=Date.now();for(let c of r)c.family=4,c.expires=a+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=a+c.ttl*1e3,i=Math.max(i,c.ttl);return r.length>0?n.length>0?u=Math.min(s,i):u=s:u=i,{entries:[...r,...n],cacheTtl:u}}async _lookup(e){try{let[r,n]=await Promise.all([os(this._dnsLookup(e,LF)),os(this._dnsLookup(e,OF))]);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[Xf]=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}}kF(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,PF);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,u]of this._cache){let a=u[Xf];s>=a?this._cache.delete(i):a<n&&(n=a)}n!==1/0&&this._tick(n-s)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(Qf(e),hr in e)throw new Error("CacheableLookup has been already installed");e[hr]=e.createConnection,e[lo]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[hr](r,n))}uninstall(e){if(Qf(e),e[hr]){if(e[lo]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[hr],delete e[hr],delete e[lo]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=eh(),(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 ad=we(sd(),1);l();function Ro(t){let e=[],r=t.split(",");for(let n of r){let[s,...i]=n.split(";"),u=s.trim();if(u[0]!=="<"||u[u.length-1]!==">")throw new Error(`Invalid format of the Link header reference: ${u}`);let a=u.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 h=f.trim(),g=h.indexOf("=");if(g===-1)throw new Error(`Failed to parse Link header: ${t}`);let m=h.slice(0,g).trim(),y=h.slice(g+1).trim();c[m]=y}e.push({reference:a,parameters:c})}return e}o(Ro,"parseLinkHeader");var[od,oE]=tE.versions.node.split(".").map(Number);function uE(t){for(let e in t){let r=t[e];b.any([p.string,p.number,p.boolean,p.null_,p.undefined],r)}}o(uE,"validateSearchParameters");var aE=new Map,ds,cE=o(()=>ds||(ds=new Qr,ds),"getGlobalDnsCache"),lE={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:o(({computedValue:t})=>t,"calculateDelay"),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=Ro(e).find(s=>s.parameters.rel==="next"||s.parameters.rel==='"next"');return n?{url:new URL(n.reference,t.url)}:!1},filter:o(()=>!0,"filter"),shouldContinue:o(()=>!0,"shouldContinue"),countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!1},fE=o(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 URLSearchParams(t.searchParams):void 0,pagination:{...t.pagination}};return n.url!==void 0&&(n.prefixUrl=""),n},"cloneInternals"),hE=o(t=>{let{hooks:e,retry:r}=t,n={...t};return p.object(t.context)&&(n.context={...t.context}),p.object(t.cacheOptions)&&(n.cacheOptions={...t.cacheOptions}),p.object(t.https)&&(n.https={...t.https}),p.object(t.cacheOptions)&&(n.cacheOptions={...n.cacheOptions}),p.object(t.agent)&&(n.agent={...t.agent}),p.object(t.headers)&&(n.headers={...t.headers}),p.object(r)&&(n.retry={...r},p.array(r.errorCodes)&&(n.retry.errorCodes=[...r.errorCodes]),p.array(r.methods)&&(n.retry.methods=[...r.methods]),p.array(r.statusCodes)&&(n.retry.statusCodes=[...r.statusCodes])),p.object(t.timeout)&&(n.timeout={...t.timeout}),p.object(e)&&(n.hooks={...e},p.array(e.init)&&(n.hooks.init=[...e.init]),p.array(e.beforeRequest)&&(n.hooks.beforeRequest=[...e.beforeRequest]),p.array(e.beforeError)&&(n.hooks.beforeError=[...e.beforeError]),p.array(e.beforeRedirect)&&(n.hooks.beforeRedirect=[...e.beforeRedirect]),p.array(e.beforeRetry)&&(n.hooks.beforeRetry=[...e.beforeRetry]),p.array(e.afterResponse)&&(n.hooks.afterResponse=[...e.afterResponse])),p.object(t.pagination)&&(n.pagination={...t.pagination}),n},"cloneRaw"),dE=o(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)},"getHttp2TimeoutOption"),ud=o((t,e,r)=>{let n=t.hooks?.init;if(n)for(let s of n)s(e,r)},"init"),Le=class t{static{o(this,"Options")}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}),b.any([p.string,p.urlInstance,p.object,p.undefined],e),b.any([p.object,p.undefined],r),b.any([p.object,p.undefined],n),e instanceof t||r instanceof t)throw new TypeError("The defaults must be passed as the third argument");this._internals=fE(n?._internals??n??lE),this._init=[...n?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(p.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=hE(e),ud(this,e,this),ud(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")continue;if(!(n in this))throw new Error(`Unexpected option: ${n}`);let s=e[n];s!==void 0&&(this[n]=s,r=!0)}r&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){b.any([p.function_,p.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){b.plainObject(e);for(let r in e){if(!(r in this._internals.agent))throw new TypeError(`Unexpected agent option: ${r}`);b.any([p.object,p.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){b.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){b.plainObject(e);for(let r in e){if(!(r in this._internals.timeout))throw new Error(`Unexpected timeout option: ${r}`);b.any([p.number,p.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(b.any([p.string,p.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){b.any([p.string,p.buffer,p.nodeStream,p.generator,p.asyncGenerator,fr,p.undefined],e),p.nodeStream(e)&&b.truthy(e.readable),e!==void 0&&(b.undefined(this._internals.form),b.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){b.any([p.plainObject,p.undefined],e),e!==void 0&&(b.undefined(this._internals.body),b.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(b.undefined(this._internals.body),b.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(b.any([p.string,p.urlInstance,p.undefined],e),e===void 0){this._internals.url=void 0;return}if(p.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let r=`${this.prefixUrl}${e.toString()}`,n=new URL(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:u}=s.groups;this._unixOptions={socketPath:i,path:u,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(b.any([p.object,p.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:r,getCookieString:n}=e;b.function_(r),b.function_(n),r.length===4&&n.length===0?(r=id(r.bind(e)),n=id(n.bind(e)),this._internals.cookieJar={setCookie:r,getCookieString:n}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){b.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){b.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 URLSearchParams),this._internals.searchParams)}set searchParams(e){b.any([p.string,p.object,p.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(p.string(e))s=new URLSearchParams(e);else if(e instanceof URLSearchParams)s=e;else{uE(e),s=new URLSearchParams;for(let i in e){let u=e[i];u===null?s.append(i,""):u===void 0?n.delete(i):s.append(i,u)}}if(this._merging){for(let i of s.keys())n.delete(i);for(let[i,u]of s)n.append(i,u)}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){b.any([p.function_,p.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){b.any([p.object,p.boolean,p.undefined],e),e===!0?this._internals.dnsCache=cE():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){b.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){b.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(b.any([p.array,p.undefined],s),s)for(let i of s)b.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){b.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){b.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){b.any([p.object,p.string,p.boolean,p.undefined],e),e===!0?this._internals.cache=aE:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){b.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){b.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){b.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){b.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){b.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){b.plainObject(e),this._merging?Object.assign(this._internals.headers,cr(e)):this._internals.headers=cr(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){b.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){b.function_(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){b.function_(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(b.plainObject(e),b.any([p.function_,p.undefined],e.calculateDelay),b.any([p.number,p.undefined],e.maxRetryAfter),b.any([p.number,p.undefined],e.limit),b.any([p.array,p.undefined],e.methods),b.any([p.array,p.undefined],e.statusCodes),b.any([p.array,p.undefined],e.errorCodes),b.any([p.number,p.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){b.any([p.string,p.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){b.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){b.any([p.function_,p.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){b.plainObject(e),b.any([p.boolean,p.undefined],e.shared),b.any([p.number,p.undefined],e.cacheHeuristic),b.any([p.number,p.undefined],e.immutableMinTimeToLive),b.any([p.boolean,p.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){b.plainObject(e),b.any([p.boolean,p.undefined],e.rejectUnauthorized),b.any([p.function_,p.undefined],e.checkServerIdentity),b.any([p.string,p.object,p.array,p.undefined],e.certificateAuthority),b.any([p.string,p.object,p.array,p.undefined],e.key),b.any([p.string,p.object,p.array,p.undefined],e.certificate),b.any([p.string,p.undefined],e.passphrase),b.any([p.string,p.buffer,p.array,p.undefined],e.pfx),b.any([p.array,p.undefined],e.alpnProtocols),b.any([p.string,p.undefined],e.ciphers),b.any([p.string,p.buffer,p.undefined],e.dhparam),b.any([p.string,p.undefined],e.signatureAlgorithms),b.any([p.string,p.undefined],e.minVersion),b.any([p.string,p.undefined],e.maxVersion),b.any([p.boolean,p.undefined],e.honorCipherOrder),b.any([p.number,p.undefined],e.tlsSessionLifetime),b.any([p.string,p.undefined],e.ecdhCurve),b.any([p.string,p.buffer,p.array,p.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");b.any([p.string,p.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){b.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){b.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){b.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){b.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){b.any([p.number,p.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){b.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,r){return rE(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 p.array(i)&&p.plainObject(i[0])&&(i=i.map(u=>({buf:u.buffer,passphrase:u.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??nE,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?dE(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(od<15||od===15&&oE<10){let r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw r.code="EUNSUPPORTED",r}return ad.default.auto}return iE.request}return sE.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)}};l();var mr=o(t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304},"isResponseOk"),Ds=class extends V{static{o(this,"ParseError")}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"}},No=o((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 Ds(i,t)}throw new Ds({message:`Unknown body type '${e}'`,name:"Error"},t)},"parseBody");l();function DE(t){return t.writable&&!t.writableEnded}o(DE,"isClientRequest");var cd=DE;l();function ps(t){return t.protocol==="unix:"||t.hostname==="unix"}o(ps,"isUnixSocketURL");var{buffer:yE}=dd.default,gE=p.string(fd.versions.brotli),FE=new Set(["GET","HEAD"]),jo=new Xr,CE=new Set([300,301,302,303,304,307,308]),EE=["socket","connect","continue","information","upgrade"],ms=o(()=>{},"noop"),$t=class t extends pE{static{o(this,"Request")}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=ms,this._triggerRead=!1,this._cancelTimeouts=ms,this._removeListeners=ms,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=ms,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:u}=i;u&&(this.options=u),this.flush=async()=>{this.flush=async()=>{},this.destroy(i)};return}let{body:s}=this.options;if(p.nodeStream(s)&&s.once("error",i=>{this._flushed?this._beforeError(new $r(i,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new $r(i,this))}}),this.options.signal){let i=o(()=>{this.destroy(new Kn(this))},"abort");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 V||(e=new V(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 u;try{let a;r&&"retry-after"in r.headers&&(a=Number(r.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(r.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3);let c=n.retry;u=await c.calculateDelay({attemptCount:s,retryOptions:c,error:i,retryAfter:a,computedValue:Jf({attemptCount:s,retryOptions:c,error:i,retryAfter:a,computedValue:c.maxRetryAfter??n.timeout.request??Number.POSITIVE_INFINITY})})}catch(a){this._error(new V(a.message,a,this));return}if(u){if(await new Promise(a=>{let c=setTimeout(a,u);this._stopRetry=()=>{clearTimeout(c),a()}}),this.destroyed)return;try{for(let a of this.options.hooks.beforeRetry)await a(i,this.retryCount+1)}catch(a){this._error(new V(a.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,a=>{let c=new t(n.url,a,n);return c.retryCount=this.retryCount+1,fd.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=o(()=>{this._writeRequest(e,r,n)},"write");this._requestInitialized?s():this._jobs.push(s)}_final(e){let r=o(()=>{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))})},"endRequest");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;p.nodeStream(n)&&n.destroy()}this._request&&this._request.destroy(),e!==null&&!p.undefined(e)&&!(e instanceof V)&&(e=new V(e.message,e,this)),r(e)}pipe(e,r){return e instanceof ld&&this._pipedServerResponses.add(e),super.pipe(e,r)}unpipe(e){return e instanceof ld&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!p.undefined(e.form),s=!p.undefined(e.json),i=!p.undefined(e.body),u=FE.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=u,n||s||i){if(u)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let a=!p.string(r["content-type"]);if(i){if(fr(e.body)){let f=new is(e.body);a&&(r["content-type"]=f.headers["Content-Type"]),"Content-Length"in f.headers&&(r["content-length"]=f.headers["Content-Length"]),e.body=f.encode()}Yr(e.body)&&a&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(n){a&&(r["content-type"]="application/x-www-form-urlencoded");let{form:f}=e;e.form=void 0,e.body=new URLSearchParams(f).toString()}else{a&&(r["content-type"]="application/json");let{json:f}=e;e.json=void 0,e.body=e.stringifyJson(f)}let c=await io(e.body,e.headers);p.undefined(r["content-length"])&&p.undefined(r["transfer-encoding"])&&!u&&!p.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,hd.default)(e));let s=e.statusCode,i=e;i.statusMessage=i.statusMessage??mE.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=mr(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",a=>{this._aborted=!0,e.destroy(),this._beforeError(new Mr(a,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new Mr({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let u=e.headers["set-cookie"];if(p.object(r.cookieJar)&&u){let a=u.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>{try{await c}catch{}}));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(!this.isAborted){if(r.followRedirect&&e.headers.location&&CE.has(s)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=r.maxRedirects){this._beforeError(new Vn(this));return}this._request=void 0;let a=new Le(void 0,void 0,this.options),c=s===303&&a.method!=="GET"&&a.method!=="HEAD",f=s!==307&&s!==308,h=a.methodRewriting&&f;(c||h)&&(a.method="GET",a.body=void 0,a.json=void 0,a.form=void 0,delete a.headers["content-length"]);try{let g=Io.from(e.headers.location,"binary").toString(),m=new URL(g,n);if(!ps(n)&&ps(m)){this._beforeError(new V("Cannot redirect to UNIX socket",{},this));return}m.hostname!==n.hostname||m.port!==n.port?("host"in a.headers&&delete a.headers.host,"cookie"in a.headers&&delete a.headers.cookie,"authorization"in a.headers&&delete a.headers.authorization,(a.username||a.password)&&(a.username="",a.password="")):(m.username=a.username,m.password=a.password),this.redirectUrls.push(m),a.prefixUrl="",a.url=m;for(let y of a.hooks.beforeRedirect)await y(a,i);this.emit("redirect",a,i),this.options=a,await this._makeRequest()}catch(g){this._beforeError(g);return}return}if(r.isStream&&r.throwHttpErrors&&!mr(i)){this._beforeError(new ct(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 a of this._pipedServerResponses)if(!a.headersSent){for(let c in e.headers){let f=r.decompress?c!=="content-encoding":!0,h=e.headers[c];f&&a.setHeader(c,h)}a.statusCode=s}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let r=await yE(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;Sf(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=uo(e,n,s);let i=r.cache?"cacheableResponse":"response";e.once(i,u=>{this._onResponse(u)}),e.once("error",u=>{this._aborted=!0,e.destroy(),u=u instanceof Kr?new Yn(u,this.timings,this):new V(u.message,u,this),this._beforeError(u)}),this._unproxyEvents=Jr(e,this,EE),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;p.nodeStream(e)?e.pipe(r):p.generator(e)||p.asyncGenerator(e)?(async()=>{try{for await(let n of e)await this._asyncWrite(n);super.end()}catch(n){this._beforeError(n)}})():p.undefined(e)?(this._cannotHaveBody||this._noPipe)&&r.end():(this._writeRequest(e,void 0,()=>{}),r.end())}_prepareCache(e){if(!jo.has(e)){let r=new jf((n,s)=>{let i=n._request(n,s);return p.promise(i)&&(i.once=(u,a)=>{if(u==="error")(async()=>{try{await i}catch(c){a(c)}})();else if(u==="abort")(async()=>{try{(await i).once("abort",a)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${u}`);return i}),i},e);jo.set(e,r.request())}}async _createCacheableRequest(e,r){return new Promise((n,s)=>{Object.assign(r,ao(e));let i,u=jo.get(r.cache)(r,async a=>{if(a._readableState.autoDestroy=!1,i){let c=o(()=>{a.req&&(a.complete=a.req.res.complete)},"fix");a.prependOnceListener("end",c),c(),(await i).emit("cacheableResponse",a)}n(a)});u.once("error",s),u.once("request",async a=>{i=a,n(i)})})}async _makeRequest(){let{options:e}=this,{headers:r,username:n,password:s}=e,i=e.cookieJar;for(let f in r)if(p.undefined(r[f]))delete r[f];else if(p.null_(r[f]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${f}\` header`);if(e.decompress&&p.undefined(r["accept-encoding"])&&(r["accept-encoding"]=gE?"gzip, deflate, br":"gzip, deflate"),n||s){let f=Io.from(`${n}:${s}`).toString("base64");r.authorization=`Basic ${f}`}if(i){let f=await i.getCookieString(e.url.toString());p.nonEmptyString(f)&&(r.cookie=f)}e.prefixUrl="";let u;for(let f of e.hooks.beforeRequest){let h=await f(e);if(!p.undefined(h)){u=o(()=>h,"request");break}}u||(u=e.getRequestFunction());let a=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=u,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let c=e.cache?this._createCacheableRequest:u;try{let f=c(a,this._requestOptions);p.promise(f)&&(f=await f),p.undefined(f)&&(f=e.getFallbackRequestFunction()(a,this._requestOptions),p.promise(f)&&(f=await f)),cd(f)?this._onRequest(f):this.writable?(this.once("finish",()=>{this._onResponse(f)}),this._sendBody()):this._onResponse(f)}catch(f){throw f instanceof Je?new Zn(f,this):f}}async _error(e){try{if(!(e instanceof ct&&!this.options.throwHttpErrors))for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new V(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+=Io.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}};l();var ys=class extends V{static{o(this,"CancelError")}constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};var wE=["request","response","redirect","uploadProgress","downloadProgress"];function gs(t){let e,r,n,s=new bE,i=new ar((a,c,f)=>{f(()=>{e.destroy()}),f.shouldReject=!1,f(()=>{c(new ys(e))});let h=o(g=>{f(()=>{});let m=t??new $t(void 0,void 0,n);m.retryCount=g,m._noPipe=!0,e=m,m.once("response",async D=>{let E=(D.headers["content-encoding"]??"").toLowerCase(),C=E==="gzip"||E==="deflate"||E==="br",{options:T}=m;if(C&&!T.decompress)D.body=D.rawBody;else try{D.body=No(D,T.responseType,T.parseJson,T.encoding)}catch(S){if(D.body=D.rawBody.toString(),mr(D)){m._beforeError(S);return}}try{let S=T.hooks.afterResponse;for(let[P,j]of S.entries())if(D=await j(D,async X=>{throw T.merge(X),T.prefixUrl="",X.url&&(T.url=X.url),T.hooks.afterResponse=T.hooks.afterResponse.slice(0,P),new Jn(m)}),!(p.object(D)&&p.number(D.statusCode)&&!p.nullOrUndefined(D.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(S){m._beforeError(S);return}if(r=D,!mr(D)){m._beforeError(new ct(D));return}m.destroy(),a(m.options.resolveBodyOnly?D.body:D)});let y=o(D=>{if(i.isCanceled)return;let{options:E}=m;if(D instanceof ct&&!E.throwHttpErrors){let{response:C}=D;m.destroy(),a(m.options.resolveBodyOnly?C.body:C);return}c(D)},"onError");m.once("error",y);let F=m.options?.body;m.once("retry",(D,E)=>{t=void 0;let C=m.options.body;if(F===C&&p.nodeStream(C)){E.message="Cannot retry with consumed body stream",y(E);return}n=m.options,h(D)}),Jr(m,s,wE),p.undefined(t)&&m.flush()},"makeRequest");h(0)});i.on=(a,c)=>(s.on(a,c),i),i.off=(a,c)=>(s.off(a,c),i);let u=o(a=>{let c=(async()=>{await i;let{options:f}=r.request;return No(r,a,f.parseJson,f.encoding)})();return Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)),c},"shortcut");return i.json=()=>{if(e.options){let{headers:a}=e.options;!e.writableFinished&&!("accept"in a)&&(a.accept="application/json")}return u("json")},i.buffer=()=>u("buffer"),i.text=()=>u("text"),i}o(gs,"asPromise");var _E=o(async t=>new Promise(e=>{setTimeout(e,t)}),"delay"),xE=o(t=>p.function_(t),"isGotInstance"),SE=["get","post","put","patch","head","delete"],Dd=o(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=o((n,s,i=t.options)=>{let u=new $t(n,s,i),a,c=o(g=>(u.options=g,u._noPipe=!g.isStream,u.flush(),g.isStream?u:(a||(a=gs(u)),a)),"lastHandler"),f=0,h=o(g=>{let y=(t.handlers[f++]??c)(g,h);if(p.promise(y)&&!u.options.isStream&&(a||(a=gs(u)),y!==a)){let F=Object.getOwnPropertyDescriptors(a);for(let D in F)D in y&&delete F[D];Object.defineProperties(y,F),y.cancel=a.cancel}return y},"iterateHandlers");return h(u.options)},"got");e.extend=(...n)=>{let s=new Le(void 0,void 0,t.options),i=[...t.handlers],u;for(let a of n)xE(a)?(s.merge(a.defaults.options),i.push(...a.defaults.handlers),u=a.defaults.mutableDefaults):(s.merge(a),a.handlers&&i.push(...a.handlers),u=a.mutableDefaults);return Dd({options:s,handlers:i,mutableDefaults:!!u})};let r=o(async function*(n,s){let i=new Le(n,s,t.options);i.resolveBodyOnly=!1;let{pagination:u}=i;b.function_(u.transform),b.function_(u.shouldContinue),b.function_(u.filter),b.function_(u.paginate),b.number(u.countLimit),b.number(u.requestLimit),b.number(u.backoff);let a=[],{countLimit:c}=u,f=0;for(;f<u.requestLimit;){f!==0&&await _E(u.backoff);let h=await e(void 0,void 0,i),g=await u.transform(h),m=[];b.array(g);for(let F of g)if(u.filter({item:F,currentItems:m,allItems:a})&&(!u.shouldContinue({item:F,currentItems:m,allItems:a})||(yield F,u.stackAllItems&&a.push(F),m.push(F),--c<=0)))return;let y=u.paginate({response:h,currentItems:m,allItems:a});if(y===!1)return;y===h.request.options?i=h.request.options:(i.merge(y),b.any([p.urlInstance,p.undefined],y.url),y.url!==void 0&&(i.prefixUrl="",i.url=y.url)),f++}},"paginateEach");e.paginate=r,e.paginate.all=async(n,s)=>{let i=[];for await(let u of r(n,s))i.push(u);return i},e.paginate.each=r,e.stream=(n,s)=>e(n,{...s,isStream:!0});for(let n of SE)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},"create"),pd=Dd;var vE={options:new Le,handlers:[],mutableDefaults:!1},AP=pd(vE);import{inspect as BE}from"node:util";l();l();var AE=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(t=>[t.name,t]),TE=new Map(AE),md=TE;var kE=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1}],$o=new WeakSet,PE=o(t=>{$o.add(t);let e=t.toJSON();return $o.delete(t),e},"toJSON"),LE=o(t=>md.get(t)??Error,"getErrorConstructor"),gd=o(({from:t,seen:e,to:r,forceEnumerable:n,maxDepth:s,depth:i,useToJSON:u,serialize:a})=>{if(!r)if(Array.isArray(t))r=[];else if(!a&&yd(t)){let f=LE(t.name);r=new f}else r={};if(e.push(t),i>=s)return r;if(u&&typeof t.toJSON=="function"&&!$o.has(t))return PE(t);let c=o(f=>gd({from:f,seen:[...e],forceEnumerable:n,maxDepth:s,depth:i,useToJSON:u,serialize:a}),"continueDestroyCircular");for(let[f,h]of Object.entries(t)){if(h&&h instanceof Uint8Array&&h.constructor.name==="Buffer"){r[f]="[object Buffer]";continue}if(h!==null&&typeof h=="object"&&typeof h.pipe=="function"){r[f]="[object Stream]";continue}if(typeof h!="function"){if(!h||typeof h!="object"){try{r[f]=h}catch{}continue}if(!e.includes(t[f])){i++,r[f]=c(t[f]);continue}r[f]="[Circular]"}}for(let{property:f,enumerable:h}of kE)typeof t[f]<"u"&&t[f]!==null&&Object.defineProperty(r,f,{value:yd(t[f])?c(t[f]):t[f],enumerable:n?!0:h,configurable:!0,writable:!0});return r},"destroyCircular");function Fd(t,e={}){let{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:n=!0}=e;return typeof t=="object"&&t!==null?gd({from:t,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:n,serialize:!0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t}o(Fd,"serializeError");function yd(t){return!!t&&typeof t=="object"&&"name"in t&&"message"in t&&"stack"in t}o(yd,"isErrorLike");l();import Cd from"node:path";var Mo=Cd.dirname(fl),OE=o((...t)=>Cd.join(Mo,...t),"workspacePath"),zP=o((...t)=>OE("assets",...t),"assetsPath");var eL=o((t,e)=>{let r={...t};for(let[n,s]of Object.entries(e))r[n]||(r[n]=s);return r},"defaults");var Ed=o((t,e)=>{let r={...t};for(let n of e)delete r[n];return r},"omit");var tL=o(t=>{Array.isArray(t)&&(t=t[0]);let e=Fd(t);return typeof e=="string"&&(e={message:e}),e.stack&&(e.stack=$i(e.stack,{pretty:!0,basePath:Mo}).replaceAll(/file:\/\/\//g,"")),t instanceof V&&(e.timings=void 0,e.options={method:t.options.method,url:t.options.url instanceof URL?t.options.url.toJSON():t.options.url},e.responseBody=BE(t.response?.body)),e},"serializeError");var on=o(t=>!Jt(t)&&!pu(t),"isSprintOptions"),yr=o((t,...e)=>{let r,n={ensureNewLine:!1,ensureEmptyLineAbove:!1,indent:0};return on(t)?(r=t.content,n={...n,...Ed(t,["content"])}):Jt(t)?r=t:r=(0,Uo.dedent)(Ii(t,...e)),n.ensureEmptyLineAbove&&!r.startsWith(`
58
+ `:e),"normalizeValue");l();var yF=o(t=>Object.prototype.toString.call(t).slice(8,-1).toLowerCase(),"getType");function ro(t){if(yF(t)!=="object")return!1;let e=Object.getPrototypeOf(t);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}o(ro,"isPlainObject");l();function Vf(t,e){if(typeof e=="string"){for(let[r,n]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return n}}o(Vf,"getProperty");var Zf=o(t=>new Proxy(t,{get:o((e,r)=>Vf(e,r),"get"),has:o((e,r)=>Vf(e,r)!==void 0,"has")}),"proxyHeaders");l();var fr=o(t=>!!(t&&Pe(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&Pe(t.append)&&Pe(t.getAll)&&Pe(t.entries)&&Pe(t[Symbol.iterator])),"isFormData");l();var no=o(t=>String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22"),"escapeName");l();var lt=o(t=>!!(t&&typeof t=="object"&&Pe(t.constructor)&&t[Symbol.toStringTag]==="File"&&Pe(t.stream)&&t.name!=null),"isFile");var Gr=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},Z=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)},Hr,ft,zr,rs,Wr,Nt,Vr,Zr,ns,so,Yf,gF={enableAdditionalHeaders:!1},ss={writable:!1,configurable:!1},is=class{static{o(this,"FormDataEncoder")}constructor(e,r,n){if(Hr.add(this),ft.set(this,`\r
59
+ `),zr.set(this,void 0),rs.set(this,void 0),Wr.set(this,"-".repeat(2)),Nt.set(this,new TextEncoder),Vr.set(this,void 0),Zr.set(this,void 0),ns.set(this,void 0),!fr(e))throw new TypeError("Expected first argument to be a FormData instance.");let s;if(ro(r)?n=r:s=r,s||(s=Wf()),typeof s!="string")throw new TypeError("Expected boundary argument to be a string.");if(n&&!ro(n))throw new TypeError("Expected options argument to be an object.");Gr(this,Zr,Array.from(e.entries()),"f"),Gr(this,ns,{...gF,...n},"f"),Gr(this,zr,Z(this,Nt,"f").encode(Z(this,ft,"f")),"f"),Gr(this,rs,Z(this,zr,"f").byteLength,"f"),this.boundary=`form-data-boundary-${s}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Gr(this,Vr,Z(this,Nt,"f").encode(`${Z(this,Wr,"f")}${this.boundary}${Z(this,Wr,"f")}${Z(this,ft,"f").repeat(2)}`),"f");let i={"Content-Type":this.contentType},u=Z(this,Hr,"m",Yf).call(this);u&&(this.contentLength=u,i["Content-Length"]=u),this.headers=Zf(Object.freeze(i)),Object.defineProperties(this,{boundary:ss,contentType:ss,contentLength:ss,headers:ss})}getContentLength(){return this.contentLength==null?void 0:Number(this.contentLength)}*values(){for(let[e,r]of Z(this,Zr,"f")){let n=lt(r)?r:Z(this,Nt,"f").encode(to(r));yield Z(this,Hr,"m",so).call(this,e,n),yield n,yield Z(this,zr,"f")}yield Z(this,Vr,"f")}async*encode(){for(let e of this.values())lt(e)?yield*Hf(e.stream()):yield e}[(ft=new WeakMap,zr=new WeakMap,rs=new WeakMap,Wr=new WeakMap,Nt=new WeakMap,Vr=new WeakMap,Zr=new WeakMap,ns=new WeakMap,Hr=new WeakSet,so=o(function(r,n){let s="";s+=`${Z(this,Wr,"f")}${this.boundary}${Z(this,ft,"f")}`,s+=`Content-Disposition: form-data; name="${no(r)}"`,lt(n)&&(s+=`; filename="${no(n.name)}"${Z(this,ft,"f")}`,s+=`Content-Type: ${n.type||"application/octet-stream"}`);let i=lt(n)?n.size:n.byteLength;return Z(this,ns,"f").enableAdditionalHeaders===!0&&i!=null&&!isNaN(i)&&(s+=`${Z(this,ft,"f")}Content-Length: ${lt(n)?n.size:n.byteLength}`),Z(this,Nt,"f").encode(`${s}${Z(this,ft,"f").repeat(2)}`)},"_FormDataEncoder_getFieldHeader"),Yf=o(function(){let r=0;for(let[n,s]of Z(this,Zr,"f")){let i=lt(s)?s:Z(this,Nt,"f").encode(to(s)),u=lt(i)?i.size:i.byteLength;if(u==null||isNaN(u))return;r+=Z(this,Hr,"m",so).call(this,n,i).byteLength,r+=u,r+=Z(this,rs,"f")}return String(r+Z(this,Vr,"f").byteLength)},"_FormDataEncoder_getContentLength"),Symbol.iterator)](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};l();import{Buffer as FF}from"node:buffer";import{promisify as CF}from"node:util";l();function Yr(t){return p.nodeStream(t)&&p.function_(t.getBoundary)}o(Yr,"isFormData");async function io(t,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(p.string(t))return FF.byteLength(t);if(p.buffer(t))return t.length;if(Yr(t))return CF(t.getLength.bind(t))()}o(io,"getBodySize");l();function Jr(t,e,r){let n={};for(let s of r){let i=o((...u)=>{e.emit(s,...u)},"eventFunction");n[s]=i,t.on(s,i)}return()=>{for(let[s,i]of Object.entries(n))t.off(s,i)}}o(Jr,"proxyEvents");l();import EF from"node:net";l();function oo(){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}}}o(oo,"unhandle");var Jf=Symbol("reentry"),bF=o(()=>{},"noop"),Kr=class extends Error{static{o(this,"TimeoutError")}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 uo(t,e,r){if(Jf in t)return bF;t[Jf]=!0;let n=[],{once:s,unhandleAll:i}=oo(),u=o((D,E,C)=>{let T=setTimeout(E,D,D,C);T.unref?.();let S=o(()=>{clearTimeout(T)},"cancel");return n.push(S),S},"addTimeout"),{host:a,hostname:c}=r,f=o((D,E)=>{t.destroy(new Kr(D,E))},"timeoutHandler"),h=o(()=>{for(let D of n)D();i()},"cancelTimeouts");if(t.once("error",D=>{if(h(),t.listenerCount("error")===0)throw D}),e.request!==void 0){let D=u(e.request,f,"request");s(t,"response",E=>{s(E,"end",D)})}if(e.socket!==void 0){let{socket:D}=e,E=o(()=>{f(D,"socket")},"socketTimeoutHandler");t.setTimeout(D,E),n.push(()=>{t.removeListener("timeout",E)})}let g=e.lookup!==void 0,m=e.connect!==void 0,y=e.secureConnect!==void 0,F=e.send!==void 0;return(g||m||y||F)&&s(t,"socket",D=>{let{socketPath:E}=t;if(D.connecting){let C=!!(E??EF.isIP(c??a??"")!==0);if(g&&!C&&D.address().address===void 0){let T=u(e.lookup,f,"lookup");s(D,"lookup",T)}if(m){let T=o(()=>u(e.connect,f,"connect"),"timeConnect");C?s(D,"connect",T()):s(D,"lookup",S=>{S===null&&s(D,"connect",T())})}y&&r.protocol==="https:"&&s(D,"connect",()=>{let T=u(e.secureConnect,f,"secureConnect");s(D,"secureConnect",T)})}if(F){let C=o(()=>u(e.send,f,"send"),"timeRequest");D.connecting?s(D,"connect",()=>{s(t,"upload-complete",C())}):s(t,"upload-complete",C())}}),e.response!==void 0&&s(t,"upload-complete",()=>{let D=u(e.response,f,"response");s(t,"response",D)}),e.read!==void 0&&s(t,"response",D=>{let E=u(e.read,f,"read");s(D,"end",E)}),h}o(uo,"timedOut");l();function ao(t){t=t;let e={protocol:t.protocol,hostname:p.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 p.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}o(ao,"urlToOptions");l();var Xr=class{static{o(this,"WeakableMap")}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)}};l();var wF=o(({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),u=e.errorCodes.includes(r.code),a=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!u&&!a)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},"calculateRetryDelay"),Kf=wF;l();import rE from"node:process";import{promisify as od,inspect as nE}from"node:util";import{checkServerIdentity as sE}from"node:tls";import iE from"node:http";import oE from"node:https";l();import{V4MAPPED as _F,ADDRCONFIG as xF,ALL as nh,promises as SF,lookup as vF}from"node:dns";import{promisify as co}from"node:util";import AF from"node:os";var{Resolver:Xf}=SF,hr=Symbol("cacheableLookupCreateConnection"),lo=Symbol("cacheableLookupInstance"),Qf=Symbol("expires"),TF=typeof nh=="number",eh=o(t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},"verifyAgent"),kF=o(t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},"map4to6"),th=o(()=>{let t=!1,e=!1;for(let r of Object.values(AF.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}},"getIfaceInfo"),PF=o(t=>Symbol.iterator in t,"isIterable"),os=o(t=>t.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),"ignoreNoResultErrors"),rh={ttl:!0},LF={all:!0},OF={all:!0,family:4},BF={all:!0,family:6},Qr=class{static{o(this,"CacheableLookup")}constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:s=.15,resolver:i=new Xf,lookup:u=vF}={}){if(this.maxTtl=r,this.errorTtl=s,this._cache=e,this._resolver=i,this._dnsLookup=u&&co(u),this.stats={cache:0,query:0},this._resolver instanceof Xf?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=co(this._resolver.resolve4.bind(this._resolver)),this._resolve6=co(this._resolver.resolve6.bind(this._resolver))),this._iface=th(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=n,n>0){let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref(),this._fallbackInterval=a}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&_F&&(TF&&r.hints&nh||s.length===0)?kF(n):n=s}else r.family===4&&(n=n.filter(s=>s.family===4));if(r.hints&xF){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([os(this._resolve4(e,rh)),os(this._resolve6(e,rh))]),s=0,i=0,u=0,a=Date.now();for(let c of r)c.family=4,c.expires=a+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=a+c.ttl*1e3,i=Math.max(i,c.ttl);return r.length>0?n.length>0?u=Math.min(s,i):u=s:u=i,{entries:[...r,...n],cacheTtl:u}}async _lookup(e){try{let[r,n]=await Promise.all([os(this._dnsLookup(e,OF)),os(this._dnsLookup(e,BF))]);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[Qf]=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}}PF(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,LF);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,u]of this._cache){let a=u[Qf];s>=a?this._cache.delete(i):a<n&&(n=a)}n!==1/0&&this._tick(n-s)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(eh(e),hr in e)throw new Error("CacheableLookup has been already installed");e[hr]=e.createConnection,e[lo]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[hr](r,n))}uninstall(e){if(eh(e),e[hr]){if(e[lo]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[hr],delete e[hr],delete e[lo]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=th(),(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 cd=we(id(),1);l();function Ro(t){let e=[],r=t.split(",");for(let n of r){let[s,...i]=n.split(";"),u=s.trim();if(u[0]!=="<"||u[u.length-1]!==">")throw new Error(`Invalid format of the Link header reference: ${u}`);let a=u.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 h=f.trim(),g=h.indexOf("=");if(g===-1)throw new Error(`Failed to parse Link header: ${t}`);let m=h.slice(0,g).trim(),y=h.slice(g+1).trim();c[m]=y}e.push({reference:a,parameters:c})}return e}o(Ro,"parseLinkHeader");var[ud,uE]=rE.versions.node.split(".").map(Number);function aE(t){for(let e in t){let r=t[e];b.any([p.string,p.number,p.boolean,p.null_,p.undefined],r)}}o(aE,"validateSearchParameters");var cE=new Map,ds,lE=o(()=>ds||(ds=new Qr,ds),"getGlobalDnsCache"),fE={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:o(({computedValue:t})=>t,"calculateDelay"),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=Ro(e).find(s=>s.parameters.rel==="next"||s.parameters.rel==='"next"');return n?{url:new URL(n.reference,t.url)}:!1},filter:o(()=>!0,"filter"),shouldContinue:o(()=>!0,"shouldContinue"),countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!1},hE=o(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 URLSearchParams(t.searchParams):void 0,pagination:{...t.pagination}};return n.url!==void 0&&(n.prefixUrl=""),n},"cloneInternals"),dE=o(t=>{let{hooks:e,retry:r}=t,n={...t};return p.object(t.context)&&(n.context={...t.context}),p.object(t.cacheOptions)&&(n.cacheOptions={...t.cacheOptions}),p.object(t.https)&&(n.https={...t.https}),p.object(t.cacheOptions)&&(n.cacheOptions={...n.cacheOptions}),p.object(t.agent)&&(n.agent={...t.agent}),p.object(t.headers)&&(n.headers={...t.headers}),p.object(r)&&(n.retry={...r},p.array(r.errorCodes)&&(n.retry.errorCodes=[...r.errorCodes]),p.array(r.methods)&&(n.retry.methods=[...r.methods]),p.array(r.statusCodes)&&(n.retry.statusCodes=[...r.statusCodes])),p.object(t.timeout)&&(n.timeout={...t.timeout}),p.object(e)&&(n.hooks={...e},p.array(e.init)&&(n.hooks.init=[...e.init]),p.array(e.beforeRequest)&&(n.hooks.beforeRequest=[...e.beforeRequest]),p.array(e.beforeError)&&(n.hooks.beforeError=[...e.beforeError]),p.array(e.beforeRedirect)&&(n.hooks.beforeRedirect=[...e.beforeRedirect]),p.array(e.beforeRetry)&&(n.hooks.beforeRetry=[...e.beforeRetry]),p.array(e.afterResponse)&&(n.hooks.afterResponse=[...e.afterResponse])),p.object(t.pagination)&&(n.pagination={...t.pagination}),n},"cloneRaw"),DE=o(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)},"getHttp2TimeoutOption"),ad=o((t,e,r)=>{let n=t.hooks?.init;if(n)for(let s of n)s(e,r)},"init"),Le=class t{static{o(this,"Options")}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}),b.any([p.string,p.urlInstance,p.object,p.undefined],e),b.any([p.object,p.undefined],r),b.any([p.object,p.undefined],n),e instanceof t||r instanceof t)throw new TypeError("The defaults must be passed as the third argument");this._internals=hE(n?._internals??n??fE),this._init=[...n?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(p.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=dE(e),ad(this,e,this),ad(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")continue;if(!(n in this))throw new Error(`Unexpected option: ${n}`);let s=e[n];s!==void 0&&(this[n]=s,r=!0)}r&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){b.any([p.function_,p.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){b.plainObject(e);for(let r in e){if(!(r in this._internals.agent))throw new TypeError(`Unexpected agent option: ${r}`);b.any([p.object,p.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){b.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){b.plainObject(e);for(let r in e){if(!(r in this._internals.timeout))throw new Error(`Unexpected timeout option: ${r}`);b.any([p.number,p.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(b.any([p.string,p.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){b.any([p.string,p.buffer,p.nodeStream,p.generator,p.asyncGenerator,fr,p.undefined],e),p.nodeStream(e)&&b.truthy(e.readable),e!==void 0&&(b.undefined(this._internals.form),b.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){b.any([p.plainObject,p.undefined],e),e!==void 0&&(b.undefined(this._internals.body),b.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(b.undefined(this._internals.body),b.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(b.any([p.string,p.urlInstance,p.undefined],e),e===void 0){this._internals.url=void 0;return}if(p.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let r=`${this.prefixUrl}${e.toString()}`,n=new URL(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:u}=s.groups;this._unixOptions={socketPath:i,path:u,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(b.any([p.object,p.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:r,getCookieString:n}=e;b.function_(r),b.function_(n),r.length===4&&n.length===0?(r=od(r.bind(e)),n=od(n.bind(e)),this._internals.cookieJar={setCookie:r,getCookieString:n}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){b.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){b.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 URLSearchParams),this._internals.searchParams)}set searchParams(e){b.any([p.string,p.object,p.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(p.string(e))s=new URLSearchParams(e);else if(e instanceof URLSearchParams)s=e;else{aE(e),s=new URLSearchParams;for(let i in e){let u=e[i];u===null?s.append(i,""):u===void 0?n.delete(i):s.append(i,u)}}if(this._merging){for(let i of s.keys())n.delete(i);for(let[i,u]of s)n.append(i,u)}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){b.any([p.function_,p.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){b.any([p.object,p.boolean,p.undefined],e),e===!0?this._internals.dnsCache=lE():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){b.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){b.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(b.any([p.array,p.undefined],s),s)for(let i of s)b.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){b.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){b.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){b.any([p.object,p.string,p.boolean,p.undefined],e),e===!0?this._internals.cache=cE:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){b.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){b.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){b.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){b.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){b.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){b.plainObject(e),this._merging?Object.assign(this._internals.headers,cr(e)):this._internals.headers=cr(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){b.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){b.function_(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){b.function_(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(b.plainObject(e),b.any([p.function_,p.undefined],e.calculateDelay),b.any([p.number,p.undefined],e.maxRetryAfter),b.any([p.number,p.undefined],e.limit),b.any([p.array,p.undefined],e.methods),b.any([p.array,p.undefined],e.statusCodes),b.any([p.array,p.undefined],e.errorCodes),b.any([p.number,p.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){b.any([p.string,p.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){b.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){b.any([p.function_,p.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){b.plainObject(e),b.any([p.boolean,p.undefined],e.shared),b.any([p.number,p.undefined],e.cacheHeuristic),b.any([p.number,p.undefined],e.immutableMinTimeToLive),b.any([p.boolean,p.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){b.plainObject(e),b.any([p.boolean,p.undefined],e.rejectUnauthorized),b.any([p.function_,p.undefined],e.checkServerIdentity),b.any([p.string,p.object,p.array,p.undefined],e.certificateAuthority),b.any([p.string,p.object,p.array,p.undefined],e.key),b.any([p.string,p.object,p.array,p.undefined],e.certificate),b.any([p.string,p.undefined],e.passphrase),b.any([p.string,p.buffer,p.array,p.undefined],e.pfx),b.any([p.array,p.undefined],e.alpnProtocols),b.any([p.string,p.undefined],e.ciphers),b.any([p.string,p.buffer,p.undefined],e.dhparam),b.any([p.string,p.undefined],e.signatureAlgorithms),b.any([p.string,p.undefined],e.minVersion),b.any([p.string,p.undefined],e.maxVersion),b.any([p.boolean,p.undefined],e.honorCipherOrder),b.any([p.number,p.undefined],e.tlsSessionLifetime),b.any([p.string,p.undefined],e.ecdhCurve),b.any([p.string,p.buffer,p.array,p.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");b.any([p.string,p.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){b.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){b.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){b.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){b.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){b.any([p.number,p.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){b.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,r){return nE(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 p.array(i)&&p.plainObject(i[0])&&(i=i.map(u=>({buf:u.buffer,passphrase:u.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??sE,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?DE(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(ud<15||ud===15&&uE<10){let r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw r.code="EUNSUPPORTED",r}return cd.default.auto}return oE.request}return iE.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)}};l();var mr=o(t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304},"isResponseOk"),Ds=class extends V{static{o(this,"ParseError")}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"}},No=o((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 Ds(i,t)}throw new Ds({message:`Unknown body type '${e}'`,name:"Error"},t)},"parseBody");l();function pE(t){return t.writable&&!t.writableEnded}o(pE,"isClientRequest");var ld=pE;l();function ps(t){return t.protocol==="unix:"||t.hostname==="unix"}o(ps,"isUnixSocketURL");var{buffer:gE}=Dd.default,FE=p.string(hd.versions.brotli),CE=new Set(["GET","HEAD"]),jo=new Xr,EE=new Set([300,301,302,303,304,307,308]),bE=["socket","connect","continue","information","upgrade"],ms=o(()=>{},"noop"),$t=class t extends mE{static{o(this,"Request")}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=ms,this._triggerRead=!1,this._cancelTimeouts=ms,this._removeListeners=ms,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=ms,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:u}=i;u&&(this.options=u),this.flush=async()=>{this.flush=async()=>{},this.destroy(i)};return}let{body:s}=this.options;if(p.nodeStream(s)&&s.once("error",i=>{this._flushed?this._beforeError(new $r(i,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new $r(i,this))}}),this.options.signal){let i=o(()=>{this.destroy(new Kn(this))},"abort");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 V||(e=new V(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 u;try{let a;r&&"retry-after"in r.headers&&(a=Number(r.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(r.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3);let c=n.retry;u=await c.calculateDelay({attemptCount:s,retryOptions:c,error:i,retryAfter:a,computedValue:Kf({attemptCount:s,retryOptions:c,error:i,retryAfter:a,computedValue:c.maxRetryAfter??n.timeout.request??Number.POSITIVE_INFINITY})})}catch(a){this._error(new V(a.message,a,this));return}if(u){if(await new Promise(a=>{let c=setTimeout(a,u);this._stopRetry=()=>{clearTimeout(c),a()}}),this.destroyed)return;try{for(let a of this.options.hooks.beforeRetry)await a(i,this.retryCount+1)}catch(a){this._error(new V(a.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,a=>{let c=new t(n.url,a,n);return c.retryCount=this.retryCount+1,hd.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=o(()=>{this._writeRequest(e,r,n)},"write");this._requestInitialized?s():this._jobs.push(s)}_final(e){let r=o(()=>{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))})},"endRequest");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;p.nodeStream(n)&&n.destroy()}this._request&&this._request.destroy(),e!==null&&!p.undefined(e)&&!(e instanceof V)&&(e=new V(e.message,e,this)),r(e)}pipe(e,r){return e instanceof fd&&this._pipedServerResponses.add(e),super.pipe(e,r)}unpipe(e){return e instanceof fd&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!p.undefined(e.form),s=!p.undefined(e.json),i=!p.undefined(e.body),u=CE.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=u,n||s||i){if(u)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let a=!p.string(r["content-type"]);if(i){if(fr(e.body)){let f=new is(e.body);a&&(r["content-type"]=f.headers["Content-Type"]),"Content-Length"in f.headers&&(r["content-length"]=f.headers["Content-Length"]),e.body=f.encode()}Yr(e.body)&&a&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(n){a&&(r["content-type"]="application/x-www-form-urlencoded");let{form:f}=e;e.form=void 0,e.body=new URLSearchParams(f).toString()}else{a&&(r["content-type"]="application/json");let{json:f}=e;e.json=void 0,e.body=e.stringifyJson(f)}let c=await io(e.body,e.headers);p.undefined(r["content-length"])&&p.undefined(r["transfer-encoding"])&&!u&&!p.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,dd.default)(e));let s=e.statusCode,i=e;i.statusMessage=i.statusMessage??yE.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=mr(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",a=>{this._aborted=!0,e.destroy(),this._beforeError(new Mr(a,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new Mr({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let u=e.headers["set-cookie"];if(p.object(r.cookieJar)&&u){let a=u.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>{try{await c}catch{}}));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(!this.isAborted){if(r.followRedirect&&e.headers.location&&EE.has(s)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=r.maxRedirects){this._beforeError(new Vn(this));return}this._request=void 0;let a=new Le(void 0,void 0,this.options),c=s===303&&a.method!=="GET"&&a.method!=="HEAD",f=s!==307&&s!==308,h=a.methodRewriting&&f;(c||h)&&(a.method="GET",a.body=void 0,a.json=void 0,a.form=void 0,delete a.headers["content-length"]);try{let g=Io.from(e.headers.location,"binary").toString(),m=new URL(g,n);if(!ps(n)&&ps(m)){this._beforeError(new V("Cannot redirect to UNIX socket",{},this));return}m.hostname!==n.hostname||m.port!==n.port?("host"in a.headers&&delete a.headers.host,"cookie"in a.headers&&delete a.headers.cookie,"authorization"in a.headers&&delete a.headers.authorization,(a.username||a.password)&&(a.username="",a.password="")):(m.username=a.username,m.password=a.password),this.redirectUrls.push(m),a.prefixUrl="",a.url=m;for(let y of a.hooks.beforeRedirect)await y(a,i);this.emit("redirect",a,i),this.options=a,await this._makeRequest()}catch(g){this._beforeError(g);return}return}if(r.isStream&&r.throwHttpErrors&&!mr(i)){this._beforeError(new ct(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 a of this._pipedServerResponses)if(!a.headersSent){for(let c in e.headers){let f=r.decompress?c!=="content-encoding":!0,h=e.headers[c];f&&a.setHeader(c,h)}a.statusCode=s}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let r=await gE(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;vf(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=uo(e,n,s);let i=r.cache?"cacheableResponse":"response";e.once(i,u=>{this._onResponse(u)}),e.once("error",u=>{this._aborted=!0,e.destroy(),u=u instanceof Kr?new Yn(u,this.timings,this):new V(u.message,u,this),this._beforeError(u)}),this._unproxyEvents=Jr(e,this,bE),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;p.nodeStream(e)?e.pipe(r):p.generator(e)||p.asyncGenerator(e)?(async()=>{try{for await(let n of e)await this._asyncWrite(n);super.end()}catch(n){this._beforeError(n)}})():p.undefined(e)?(this._cannotHaveBody||this._noPipe)&&r.end():(this._writeRequest(e,void 0,()=>{}),r.end())}_prepareCache(e){if(!jo.has(e)){let r=new $f((n,s)=>{let i=n._request(n,s);return p.promise(i)&&(i.once=(u,a)=>{if(u==="error")(async()=>{try{await i}catch(c){a(c)}})();else if(u==="abort")(async()=>{try{(await i).once("abort",a)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${u}`);return i}),i},e);jo.set(e,r.request())}}async _createCacheableRequest(e,r){return new Promise((n,s)=>{Object.assign(r,ao(e));let i,u=jo.get(r.cache)(r,async a=>{if(a._readableState.autoDestroy=!1,i){let c=o(()=>{a.req&&(a.complete=a.req.res.complete)},"fix");a.prependOnceListener("end",c),c(),(await i).emit("cacheableResponse",a)}n(a)});u.once("error",s),u.once("request",async a=>{i=a,n(i)})})}async _makeRequest(){let{options:e}=this,{headers:r,username:n,password:s}=e,i=e.cookieJar;for(let f in r)if(p.undefined(r[f]))delete r[f];else if(p.null_(r[f]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${f}\` header`);if(e.decompress&&p.undefined(r["accept-encoding"])&&(r["accept-encoding"]=FE?"gzip, deflate, br":"gzip, deflate"),n||s){let f=Io.from(`${n}:${s}`).toString("base64");r.authorization=`Basic ${f}`}if(i){let f=await i.getCookieString(e.url.toString());p.nonEmptyString(f)&&(r.cookie=f)}e.prefixUrl="";let u;for(let f of e.hooks.beforeRequest){let h=await f(e);if(!p.undefined(h)){u=o(()=>h,"request");break}}u||(u=e.getRequestFunction());let a=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=u,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let c=e.cache?this._createCacheableRequest:u;try{let f=c(a,this._requestOptions);p.promise(f)&&(f=await f),p.undefined(f)&&(f=e.getFallbackRequestFunction()(a,this._requestOptions),p.promise(f)&&(f=await f)),ld(f)?this._onRequest(f):this.writable?(this.once("finish",()=>{this._onResponse(f)}),this._sendBody()):this._onResponse(f)}catch(f){throw f instanceof Je?new Zn(f,this):f}}async _error(e){try{if(!(e instanceof ct&&!this.options.throwHttpErrors))for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new V(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+=Io.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}};l();var ys=class extends V{static{o(this,"CancelError")}constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};var _E=["request","response","redirect","uploadProgress","downloadProgress"];function gs(t){let e,r,n,s=new wE,i=new ar((a,c,f)=>{f(()=>{e.destroy()}),f.shouldReject=!1,f(()=>{c(new ys(e))});let h=o(g=>{f(()=>{});let m=t??new $t(void 0,void 0,n);m.retryCount=g,m._noPipe=!0,e=m,m.once("response",async D=>{let E=(D.headers["content-encoding"]??"").toLowerCase(),C=E==="gzip"||E==="deflate"||E==="br",{options:T}=m;if(C&&!T.decompress)D.body=D.rawBody;else try{D.body=No(D,T.responseType,T.parseJson,T.encoding)}catch(S){if(D.body=D.rawBody.toString(),mr(D)){m._beforeError(S);return}}try{let S=T.hooks.afterResponse;for(let[P,j]of S.entries())if(D=await j(D,async X=>{throw T.merge(X),T.prefixUrl="",X.url&&(T.url=X.url),T.hooks.afterResponse=T.hooks.afterResponse.slice(0,P),new Jn(m)}),!(p.object(D)&&p.number(D.statusCode)&&!p.nullOrUndefined(D.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(S){m._beforeError(S);return}if(r=D,!mr(D)){m._beforeError(new ct(D));return}m.destroy(),a(m.options.resolveBodyOnly?D.body:D)});let y=o(D=>{if(i.isCanceled)return;let{options:E}=m;if(D instanceof ct&&!E.throwHttpErrors){let{response:C}=D;m.destroy(),a(m.options.resolveBodyOnly?C.body:C);return}c(D)},"onError");m.once("error",y);let F=m.options?.body;m.once("retry",(D,E)=>{t=void 0;let C=m.options.body;if(F===C&&p.nodeStream(C)){E.message="Cannot retry with consumed body stream",y(E);return}n=m.options,h(D)}),Jr(m,s,_E),p.undefined(t)&&m.flush()},"makeRequest");h(0)});i.on=(a,c)=>(s.on(a,c),i),i.off=(a,c)=>(s.off(a,c),i);let u=o(a=>{let c=(async()=>{await i;let{options:f}=r.request;return No(r,a,f.parseJson,f.encoding)})();return Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)),c},"shortcut");return i.json=()=>{if(e.options){let{headers:a}=e.options;!e.writableFinished&&!("accept"in a)&&(a.accept="application/json")}return u("json")},i.buffer=()=>u("buffer"),i.text=()=>u("text"),i}o(gs,"asPromise");var xE=o(async t=>new Promise(e=>{setTimeout(e,t)}),"delay"),SE=o(t=>p.function_(t),"isGotInstance"),vE=["get","post","put","patch","head","delete"],pd=o(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=o((n,s,i=t.options)=>{let u=new $t(n,s,i),a,c=o(g=>(u.options=g,u._noPipe=!g.isStream,u.flush(),g.isStream?u:(a||(a=gs(u)),a)),"lastHandler"),f=0,h=o(g=>{let y=(t.handlers[f++]??c)(g,h);if(p.promise(y)&&!u.options.isStream&&(a||(a=gs(u)),y!==a)){let F=Object.getOwnPropertyDescriptors(a);for(let D in F)D in y&&delete F[D];Object.defineProperties(y,F),y.cancel=a.cancel}return y},"iterateHandlers");return h(u.options)},"got");e.extend=(...n)=>{let s=new Le(void 0,void 0,t.options),i=[...t.handlers],u;for(let a of n)SE(a)?(s.merge(a.defaults.options),i.push(...a.defaults.handlers),u=a.defaults.mutableDefaults):(s.merge(a),a.handlers&&i.push(...a.handlers),u=a.mutableDefaults);return pd({options:s,handlers:i,mutableDefaults:!!u})};let r=o(async function*(n,s){let i=new Le(n,s,t.options);i.resolveBodyOnly=!1;let{pagination:u}=i;b.function_(u.transform),b.function_(u.shouldContinue),b.function_(u.filter),b.function_(u.paginate),b.number(u.countLimit),b.number(u.requestLimit),b.number(u.backoff);let a=[],{countLimit:c}=u,f=0;for(;f<u.requestLimit;){f!==0&&await xE(u.backoff);let h=await e(void 0,void 0,i),g=await u.transform(h),m=[];b.array(g);for(let F of g)if(u.filter({item:F,currentItems:m,allItems:a})&&(!u.shouldContinue({item:F,currentItems:m,allItems:a})||(yield F,u.stackAllItems&&a.push(F),m.push(F),--c<=0)))return;let y=u.paginate({response:h,currentItems:m,allItems:a});if(y===!1)return;y===h.request.options?i=h.request.options:(i.merge(y),b.any([p.urlInstance,p.undefined],y.url),y.url!==void 0&&(i.prefixUrl="",i.url=y.url)),f++}},"paginateEach");e.paginate=r,e.paginate.all=async(n,s)=>{let i=[];for await(let u of r(n,s))i.push(u);return i},e.paginate.each=r,e.stream=(n,s)=>e(n,{...s,isStream:!0});for(let n of vE)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},"create"),md=pd;var AE={options:new Le,handlers:[],mutableDefaults:!1},TP=md(AE);import{inspect as RE}from"node:util";l();l();var TE=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(t=>[t.name,t]),kE=new Map(TE),yd=kE;var PE=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1}],$o=new WeakSet,LE=o(t=>{$o.add(t);let e=t.toJSON();return $o.delete(t),e},"toJSON"),OE=o(t=>yd.get(t)??Error,"getErrorConstructor"),Fd=o(({from:t,seen:e,to:r,forceEnumerable:n,maxDepth:s,depth:i,useToJSON:u,serialize:a})=>{if(!r)if(Array.isArray(t))r=[];else if(!a&&gd(t)){let f=OE(t.name);r=new f}else r={};if(e.push(t),i>=s)return r;if(u&&typeof t.toJSON=="function"&&!$o.has(t))return LE(t);let c=o(f=>Fd({from:f,seen:[...e],forceEnumerable:n,maxDepth:s,depth:i,useToJSON:u,serialize:a}),"continueDestroyCircular");for(let[f,h]of Object.entries(t)){if(h&&h instanceof Uint8Array&&h.constructor.name==="Buffer"){r[f]="[object Buffer]";continue}if(h!==null&&typeof h=="object"&&typeof h.pipe=="function"){r[f]="[object Stream]";continue}if(typeof h!="function"){if(!h||typeof h!="object"){try{r[f]=h}catch{}continue}if(!e.includes(t[f])){i++,r[f]=c(t[f]);continue}r[f]="[Circular]"}}for(let{property:f,enumerable:h}of PE)typeof t[f]<"u"&&t[f]!==null&&Object.defineProperty(r,f,{value:gd(t[f])?c(t[f]):t[f],enumerable:n?!0:h,configurable:!0,writable:!0});return r},"destroyCircular");function Cd(t,e={}){let{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:n=!0}=e;return typeof t=="object"&&t!==null?Fd({from:t,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:n,serialize:!0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t}o(Cd,"serializeError");function gd(t){return!!t&&typeof t=="object"&&"name"in t&&"message"in t&&"stack"in t}o(gd,"isErrorLike");l();import Ed from"node:path";var Mo=Ed.dirname(hl),BE=o((...t)=>Ed.join(Mo,...t),"workspacePath"),WP=o((...t)=>BE("assets",...t),"assetsPath");var tL=o((t,e)=>{let r={...t};for(let[n,s]of Object.entries(e))r[n]||(r[n]=s);return r},"defaults");var bd=o((t,e)=>{let r={...t};for(let n of e)delete r[n];return r},"omit");var rL=o(t=>{Array.isArray(t)&&(t=t[0]);let e=Cd(t);return typeof e=="string"&&(e={message:e}),e.stack&&(e.stack=$i(e.stack,{pretty:!0,basePath:Mo}).replaceAll(/file:\/\/\//g,"")),t instanceof V&&(e.timings=void 0,e.options={method:t.options.method,url:t.options.url instanceof URL?t.options.url.toJSON():t.options.url},e.responseBody=RE(t.response?.body)),e},"serializeError");var on=o(t=>!Jt(t)&&!mu(t),"isSprintOptions"),yr=o((t,...e)=>{let r,n={ensureNewLine:!1,ensureEmptyLineAbove:!1,indent:0};return on(t)?(r=t.content,n={...n,...bd(t,["content"])}):Jt(t)?r=t:r=(0,Uo.dedent)(Ii(t,...e)),n.ensureEmptyLineAbove&&!r.startsWith(`
60
60
  `)&&(r=`
61
61
  `+r),n.ensureNewLine&&!r.endsWith(`
62
62
  `)&&(r+=`
63
- `),n.boxen&&(r=Ni(r,n.boxen)),n.indent&&n.indent>0&&(r=xi(r,n.indent)),r},"sprint"),lL=o((t,...e)=>on(t)?yr({ensureNewLine:!0,...t}):Jt(t)?yr({ensureNewLine:!0,content:t}):yr({ensureNewLine:!0,content:(0,Uo.dedent)(Ii(t,...e))}),"sprintln");l();var qo=o((t,...e)=>{if(Rn.logFormat==="json"){on(t)&&t.json&&_i.writeStdout(JSON.stringify(t.json)+`
64
- `);return}let r=yr(t,...e);_i.writeStdout(r)},"print"),gL=o((t,...e)=>{on(t)?qo({ensureNewLine:!0,...t}):Jt(t)?qo({ensureNewLine:!0,content:t}):qo({ensureNewLine:!0,content:yr(t,...e)})},"println");export{eu as a,Ge as b,$i as c,Cr as d,U as e,cb as f,Jt as g,Tt as h,lb as i,fb as j,hb as k,db as l,Db as m,pb as n,mb as o,yb as p,gb as q,Fb as r,Cb as s,Eb as t,bb as u,wb as v,ct as w,AP as x,Fu as y,dc as z,Ln as A,Mo as B,zP as C,eL as D,tL as E,Bn as F,li as G,d0 as H,Dl as I,sx as J,On as K,hl as L,ut as M,Fl as N,Px as O,Rn as P,qx as Q,Gx as R,bl as S,Ot as T,_i as U,Zl as V,Ni as W,xi as X,yf as Y,yr as Z,lL as _,gL as $};
65
- //# sourceMappingURL=chunk-KXSKHE3X.js.map
63
+ `),n.boxen&&(r=Ni(r,n.boxen)),n.indent&&n.indent>0&&(r=xi(r,n.indent)),r},"sprint"),fL=o((t,...e)=>on(t)?yr({ensureNewLine:!0,...t}):Jt(t)?yr({ensureNewLine:!0,content:t}):yr({ensureNewLine:!0,content:(0,Uo.dedent)(Ii(t,...e))}),"sprintln");l();var qo=o((t,...e)=>{if(Rn.logFormat==="json"){on(t)&&t.json&&_i.writeStdout(JSON.stringify(t.json)+`
64
+ `);return}let r=yr(t,...e);_i.writeStdout(r)},"print"),FL=o((t,...e)=>{on(t)?qo({ensureNewLine:!0,...t}):Jt(t)?qo({ensureNewLine:!0,content:t}):qo({ensureNewLine:!0,content:yr(t,...e)})},"println");export{eu as a,Ge as b,$i as c,Cr as d,U as e,lb as f,Jt as g,Tt as h,fb as i,hb as j,db as k,Db as l,pb as m,mb as n,yb as o,gb as p,Fb as q,Cb as r,Eb as s,bb as t,wb as u,_b as v,ct as w,TP as x,Cu as y,Dc as z,Ln as A,Mo as B,WP as C,tL as D,rL as E,Bn as F,li as G,D0 as H,pl as I,ix as J,On as K,dl as L,ut as M,Cl as N,Lx as O,Rn as P,Gx as Q,Hx as R,wl as S,Ot as T,_i as U,Yl as V,Ni as W,xi as X,gf as Y,yr as Z,fL as _,FL as $};
65
+ //# sourceMappingURL=chunk-HVJWUXJL.js.map