@gadgetinc/ggt 1.0.5 → 1.0.6

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 (56) hide show
  1. package/dist/{add-4ME2KTJQ.js → add-JIIVAOWH.js} +2 -2
  2. package/dist/chunk-APHXRHNI.js +8 -0
  3. package/dist/{chunk-QEVWPU3D.js.map → chunk-APHXRHNI.js.map} +1 -1
  4. package/dist/{chunk-GA7AL463.js → chunk-AQRCAWW4.js} +2 -2
  5. package/dist/{chunk-G3VNV5Z6.js → chunk-BOQUW6DS.js} +3 -3
  6. package/dist/{chunk-G3VNV5Z6.js.map → chunk-BOQUW6DS.js.map} +3 -3
  7. package/dist/{chunk-KGSSHEEC.js → chunk-CKSTMUDN.js} +2 -2
  8. package/dist/{chunk-5DLLJX5F.js → chunk-ERYUXLYS.js} +2 -2
  9. package/dist/{chunk-IKJVXTZK.js → chunk-GACF5GYF.js} +2 -2
  10. package/dist/chunk-GBCD37US.js +57 -0
  11. package/dist/chunk-GBCD37US.js.map +7 -0
  12. package/dist/chunk-P2XPMNL6.js +183 -0
  13. package/dist/{chunk-KXK37C5D.js.map → chunk-P2XPMNL6.js.map} +4 -4
  14. package/dist/{chunk-NJIDVM2C.js → chunk-PSRZ5JH5.js} +2 -2
  15. package/dist/{chunk-YRP2UZ2I.js → chunk-RJOIQTYZ.js} +3 -3
  16. package/dist/{chunk-YRP2UZ2I.js.map → chunk-RJOIQTYZ.js.map} +2 -2
  17. package/dist/chunk-XCHCCJJZ.js +2 -0
  18. package/dist/deploy-KMGAGIDE.js +30 -0
  19. package/dist/{deploy-6HOBYPE6.js.map → deploy-KMGAGIDE.js.map} +2 -2
  20. package/dist/{dev-M3WDGK4D.js → dev-VHJ52BEA.js} +2 -2
  21. package/dist/{list-725RHWD5.js → list-5E3R22IC.js} +2 -2
  22. package/dist/login-3DL45WY7.js +2 -0
  23. package/dist/{logout-UZBACOIX.js → logout-HX6MM4S6.js} +2 -2
  24. package/dist/main.js +1 -1
  25. package/dist/{open-GWKGQQG3.js → open-GEEWPSF4.js} +2 -2
  26. package/dist/{pull-7C5A65KB.js → pull-T2Q4M4UN.js} +2 -2
  27. package/dist/push-LUW25FYF.js +2 -0
  28. package/dist/{status-DFKKSRVB.js → status-5VZH3KXH.js} +2 -2
  29. package/dist/{version-JD42JXWY.js → version-OF4TQ2K6.js} +2 -2
  30. package/dist/{whoami-I23R6HOG.js → whoami-V3XD27QH.js} +2 -2
  31. package/package.json +3 -3
  32. package/dist/chunk-BZY2AIPV.js +0 -57
  33. package/dist/chunk-BZY2AIPV.js.map +0 -7
  34. package/dist/chunk-KXK37C5D.js +0 -183
  35. package/dist/chunk-QEVWPU3D.js +0 -8
  36. package/dist/chunk-X36GM74C.js +0 -2
  37. package/dist/deploy-6HOBYPE6.js +0 -30
  38. package/dist/login-I4RGMDLE.js +0 -2
  39. package/dist/push-LPUIR4EO.js +0 -2
  40. /package/dist/{add-4ME2KTJQ.js.map → add-JIIVAOWH.js.map} +0 -0
  41. /package/dist/{chunk-GA7AL463.js.map → chunk-AQRCAWW4.js.map} +0 -0
  42. /package/dist/{chunk-KGSSHEEC.js.map → chunk-CKSTMUDN.js.map} +0 -0
  43. /package/dist/{chunk-5DLLJX5F.js.map → chunk-ERYUXLYS.js.map} +0 -0
  44. /package/dist/{chunk-IKJVXTZK.js.map → chunk-GACF5GYF.js.map} +0 -0
  45. /package/dist/{chunk-NJIDVM2C.js.map → chunk-PSRZ5JH5.js.map} +0 -0
  46. /package/dist/{chunk-X36GM74C.js.map → chunk-XCHCCJJZ.js.map} +0 -0
  47. /package/dist/{dev-M3WDGK4D.js.map → dev-VHJ52BEA.js.map} +0 -0
  48. /package/dist/{list-725RHWD5.js.map → list-5E3R22IC.js.map} +0 -0
  49. /package/dist/{login-I4RGMDLE.js.map → login-3DL45WY7.js.map} +0 -0
  50. /package/dist/{logout-UZBACOIX.js.map → logout-HX6MM4S6.js.map} +0 -0
  51. /package/dist/{open-GWKGQQG3.js.map → open-GEEWPSF4.js.map} +0 -0
  52. /package/dist/{pull-7C5A65KB.js.map → pull-T2Q4M4UN.js.map} +0 -0
  53. /package/dist/{push-LPUIR4EO.js.map → push-LUW25FYF.js.map} +0 -0
  54. /package/dist/{status-DFKKSRVB.js.map → status-5VZH3KXH.js.map} +0 -0
  55. /package/dist/{version-JD42JXWY.js.map → version-OF4TQ2K6.js.map} +0 -0
  56. /package/dist/{whoami-I23R6HOG.js.map → whoami-V3XD27QH.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{B as W,E as _s,F as ws,G as ke,H as ie,I as ee,J as Fe,L as Qt,M as Es,a as ms,b as ys,g as gs,h as bt,x as bs,z as ue}from"./chunk-BZY2AIPV.js";import{a as H,c as L,e as X,g as u}from"./chunk-5WC5D4WL.js";var xs=L((_u,Ss)=>{u();var Ce=1e3,Pe=Ce*60,Ae=Pe*60,ge=Ae*24,no=ge*7,io=ge*365.25;Ss.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return oo(t);if(r==="number"&&isFinite(t))return e.long?co(t):ao(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function oo(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*io;case"weeks":case"week":case"w":return r*no;case"days":case"day":case"d":return r*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ae;case"minutes":case"minute":case"mins":case"min":case"m":return r*Pe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ce;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ao(t){var e=Math.abs(t);return e>=ge?Math.round(t/ge)+"d":e>=Ae?Math.round(t/Ae)+"h":e>=Pe?Math.round(t/Pe)+"m":e>=Ce?Math.round(t/Ce)+"s":t+"ms"}function co(t){var e=Math.abs(t);return e>=ge?_t(t,e,ge,"day"):e>=Ae?_t(t,e,Ae,"hour"):e>=Pe?_t(t,e,Pe,"minute"):e>=Ce?_t(t,e,Ce,"second"):t+" ms"}function _t(t,e,r,s){var n=e>=r*1.5;return Math.round(t/r)+" "+s+(n?"s":"")}});var Rs=L((Xt,Zt)=>{u();(function(t,e){typeof Xt=="object"&&typeof Zt<"u"?Zt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Xt,function(){"use strict";var t=1e3,e=6e4,r=36e5,s="millisecond",n="second",i="minute",o="hour",a="day",l="week",d="month",y="quarter",R="year",g="date",S="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var E=["th","st","nd","rd"],b=k%100;return"["+k+(E[(b-20)%10]||E[b]||E[0])+"]"}},_=function(k,E,b){var T=String(k);return!T||T.length>=E?k:""+Array(E+1-T.length).join(b)+k},j={s:_,z:function(k){var E=-k.utcOffset(),b=Math.abs(E),T=Math.floor(b/60),w=b%60;return(E<=0?"+":"-")+_(T,2,"0")+":"+_(w,2,"0")},m:function k(E,b){if(E.date()<b.date())return-k(b,E);var T=12*(b.year()-E.year())+(b.month()-E.month()),w=E.clone().add(T,d),C=b-w<0,P=E.clone().add(T+(C?-1:1),d);return+(-(T+(b-w)/(C?w-P:P-w))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:R,w:l,d:a,D:g,h:o,m:i,s:n,ms:s,Q:y}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},x="en",D={};D[x]=A;var U="$isDayjsObject",z=function(k){return k instanceof yt||!(!k||!k[U])},Q=function k(E,b,T){var w;if(!E)return x;if(typeof E=="string"){var C=E.toLowerCase();D[C]&&(w=C),b&&(D[C]=b,w=C);var P=E.split("-");if(!w&&P.length>1)return k(P[0])}else{var I=E.name;D[I]=E,w=I}return!T&&w&&(x=w),w||!T&&x},M=function(k,E){if(z(k))return k.clone();var b=typeof E=="object"?E:{};return b.date=k,b.args=arguments,new yt(b)},v=j;v.l=Q,v.i=z,v.w=function(k,E){return M(k,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var yt=function(){function k(b){this.$L=Q(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[U]=!0}var E=k.prototype;return E.parse=function(b){this.$d=function(T){var w=T.date,C=T.utc;if(w===null)return new Date(NaN);if(v.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var P=w.match(O);if(P){var I=P[2]-1||0,B=(P[7]||"0").substring(0,3);return C?new Date(Date.UTC(P[1],I,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)):new Date(P[1],I,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)}}return new Date(w)}(b),this.init()},E.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},E.$utils=function(){return v},E.isValid=function(){return this.$d.toString()!==S},E.isSame=function(b,T){var w=M(b);return this.startOf(T)<=w&&w<=this.endOf(T)},E.isAfter=function(b,T){return M(b)<this.startOf(T)},E.isBefore=function(b,T){return this.endOf(T)<M(b)},E.$g=function(b,T,w){return v.u(b)?this[T]:this.set(w,b)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(b,T){var w=this,C=!!v.u(T)||T,P=v.p(b),I=function(ye,Y){var he=v.w(w.$u?Date.UTC(w.$y,Y,ye):new Date(w.$y,Y,ye),w);return C?he:he.endOf(a)},B=function(ye,Y){return v.w(w.toDate()[ye].apply(w.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(Y)),w)},F=this.$W,G=this.$M,Z=this.$D,Te="set"+(this.$u?"UTC":"");switch(P){case R:return C?I(1,0):I(31,11);case d:return C?I(1,G):I(0,G+1);case l:var me=this.$locale().weekStart||0,Me=(F<me?F+7:F)-me;return I(C?Z-Me:Z+(6-Me),G);case a:case g:return B(Te+"Hours",0);case o:return B(Te+"Minutes",1);case i:return B(Te+"Seconds",2);case n:return B(Te+"Milliseconds",3);default:return this.clone()}},E.endOf=function(b){return this.startOf(b,!1)},E.$set=function(b,T){var w,C=v.p(b),P="set"+(this.$u?"UTC":""),I=(w={},w[a]=P+"Date",w[g]=P+"Date",w[d]=P+"Month",w[R]=P+"FullYear",w[o]=P+"Hours",w[i]=P+"Minutes",w[n]=P+"Seconds",w[s]=P+"Milliseconds",w)[C],B=C===a?this.$D+(T-this.$W):T;if(C===d||C===R){var F=this.clone().set(g,1);F.$d[I](B),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else I&&this.$d[I](B);return this.init(),this},E.set=function(b,T){return this.clone().$set(b,T)},E.get=function(b){return this[v.p(b)]()},E.add=function(b,T){var w,C=this;b=Number(b);var P=v.p(T),I=function(G){var Z=M(C);return v.w(Z.date(Z.date()+Math.round(G*b)),C)};if(P===d)return this.set(d,this.$M+b);if(P===R)return this.set(R,this.$y+b);if(P===a)return I(1);if(P===l)return I(7);var B=(w={},w[i]=e,w[o]=r,w[n]=t,w)[P]||1,F=this.$d.getTime()+b*B;return v.w(F,this)},E.subtract=function(b,T){return this.add(-1*b,T)},E.format=function(b){var T=this,w=this.$locale();if(!this.isValid())return w.invalidDate||S;var C=b||"YYYY-MM-DDTHH:mm:ssZ",P=v.z(this),I=this.$H,B=this.$m,F=this.$M,G=w.weekdays,Z=w.months,Te=w.meridiem,me=function(Y,he,ze,gt){return Y&&(Y[he]||Y(T,C))||ze[he].slice(0,gt)},Me=function(Y){return v.s(I%12||12,Y,"0")},ye=Te||function(Y,he,ze){var gt=Y<12?"AM":"PM";return ze?gt.toLowerCase():gt};return C.replace(f,function(Y,he){return he||function(ze){switch(ze){case"YY":return String(T.$y).slice(-2);case"YYYY":return v.s(T.$y,4,"0");case"M":return F+1;case"MM":return v.s(F+1,2,"0");case"MMM":return me(w.monthsShort,F,Z,3);case"MMMM":return me(Z,F);case"D":return T.$D;case"DD":return v.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return me(w.weekdaysMin,T.$W,G,2);case"ddd":return me(w.weekdaysShort,T.$W,G,3);case"dddd":return G[T.$W];case"H":return String(I);case"HH":return v.s(I,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return ye(I,B,!0);case"A":return ye(I,B,!1);case"m":return String(B);case"mm":return v.s(B,2,"0");case"s":return String(T.$s);case"ss":return v.s(T.$s,2,"0");case"SSS":return v.s(T.$ms,3,"0");case"Z":return P}return null}(Y)||P.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(b,T,w){var C,P=this,I=v.p(T),B=M(b),F=(B.utcOffset()-this.utcOffset())*e,G=this-B,Z=function(){return v.m(P,B)};switch(I){case R:C=Z()/12;break;case d:C=Z();break;case y:C=Z()/3;break;case l:C=(G-F)/6048e5;break;case a:C=(G-F)/864e5;break;case o:C=G/r;break;case i:C=G/e;break;case n:C=G/t;break;default:C=G}return w?C:v.a(C)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return D[this.$L]},E.locale=function(b,T){if(!b)return this.$L;var w=this.clone(),C=Q(b,T,!0);return C&&(w.$L=C),w},E.clone=function(){return v.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},k}(),ps=yt.prototype;return M.prototype=ps,[["$ms",s],["$s",n],["$m",i],["$H",o],["$W",a],["$M",d],["$y",R],["$D",g]].forEach(function(k){ps[k[1]]=function(E){return this.$g(E,k[0],k[1])}}),M.extend=function(k,E){return k.$i||(k(E,yt,M),k.$i=!0),M},M.locale=Q,M.isDayjs=z,M.unix=function(k){return M(1e3*k)},M.en=D[x],M.Ls=D,M.p={},M})});var $s=L((Hu,Hs)=>{u();function Cs(t){return Array.isArray(t)?t:[t]}var nr="",Ps=" ",rr="\\",po=/^\s+$/,mo=/(?:[^\\]|^)\\$/,yo=/^\\!/,go=/^\\#/,bo=/\r?\n/g,_o=/^\.*\/|^\.+$/,sr="/",Ls="node-ignore";typeof Symbol<"u"&&(Ls=Symbol.for("node-ignore"));var As=Ls,wo=(t,e,r)=>Object.defineProperty(t,e,{value:r}),Eo=/([0-z])-([0-z])/g,js=()=>!1,So=t=>t.replace(Eo,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:nr),xo=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Ro=[[/^\uFEFF/,()=>nr],[/\\?\s+$/,t=>t.indexOf("\\")===0?Ps:nr],[/\\\s/g,()=>Ps],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let s=r.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>rr],[/\\\\/g,()=>rr],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,n)=>e===rr?`\\[${r}${xo(s)}${n}`:n==="]"&&s.length%2===0?`[${So(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Ds=Object.create(null),Oo=(t,e)=>{let r=Ds[t];return r||(r=Ro.reduce((s,n)=>s.replace(n[0],n[1].bind(t)),t),Ds[t]=r),e?new RegExp(r,"i"):new RegExp(r)},ar=t=>typeof t=="string",To=t=>t&&ar(t)&&!po.test(t)&&!mo.test(t)&&t.indexOf("#")!==0,ko=t=>t.split(bo),ir=class{constructor(e,r,s,n){this.origin=e,this.pattern=r,this.negative=s,this.regex=n}},Co=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(yo,"!").replace(go,"#");let n=Oo(t,e);return new ir(r,t,s,n)},Po=(t,e)=>{throw new e(t)},oe=(t,e,r)=>ar(t)?t?oe.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),vs=t=>_o.test(t);oe.isNotRelative=vs;oe.convert=t=>t;var or=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){wo(this,As,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[As]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(To(e)){let r=Co(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,Cs(ar(e)?ko(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let s=!1,n=!1;return this._rules.forEach(i=>{let{negative:o}=i;if(n===o&&s!==n||o&&!s&&!n&&!r)return;i.regex.test(e)&&(s=!o,n=o)}),{ignored:s,unignored:n}}_test(e,r,s,n){let i=e&&oe.convert(e);return oe(i,e,this._allowRelativePaths?js:Po),this._t(i,r,s,n)}_t(e,r,s,n){if(e in r)return r[e];if(n||(n=e.split(sr)),n.pop(),!n.length)return r[e]=this._testOne(e,s);let i=this._t(n.join(sr)+sr,r,s,n);return r[e]=i.ignored?i:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return Cs(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},wt=t=>new or(t),Ao=t=>oe(t&&oe.convert(t),t,js);wt.isPathValid=Ao;wt.default=wt;Hs.exports=wt;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");oe.convert=t;let e=/^[a-z]:\//i;oe.isNotRelative=r=>e.test(r)||vs(r)}});var Ns=L((Iu,Is)=>{u();Is.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var i=t.split(/[/\\]+/);return e!==!1&&i[i.length-1]===""&&i.pop(),s+i.join("/")}});var Ws=L((fr,pr)=>{"use strict";u();Object.defineProperty(fr,"__esModule",{value:!0});function ea(t){return t.encrypted}var dr=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let s=typeof r.connect=="function",n=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{s&&r.connect(),ea(t)&&n&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};fr.default=dr;pr.exports=dr;pr.exports.default=dr});var Qs=L((ml,Ys)=>{"use strict";u();var{PassThrough:ha}=H("stream");Ys.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,s=r==="buffer",n=!1;e?n=!(r||s):r=r||"utf8",s&&(r=null);let i=new ha({objectMode:n});r&&i.setEncoding(r);let o=0,a=[];return i.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),i.getBufferedValue=()=>e?a:s?Buffer.concat(a,o):a.join(""),i.getBufferedLength=()=>o,i}});var br=L((gl,Ye)=>{"use strict";u();var{constants:ua}=H("buffer"),la=H("stream"),{promisify:da}=H("util"),fa=Qs(),pa=da(la.pipeline),kt=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function gr(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,s=fa(e);return await new Promise((n,i)=>{let o=a=>{a&&s.getBufferedLength()<=ua.MAX_LENGTH&&(a.bufferedData=s.getBufferedValue()),i(a)};(async()=>{try{await pa(t,s),n()}catch(a){o(a)}})(),s.on("data",()=>{s.getBufferedLength()>r&&o(new kt)})}),s.getBufferedValue()}Ye.exports=gr;Ye.exports.buffer=(t,e)=>gr(t,{...e,encoding:"buffer"});Ye.exports.array=(t,e)=>gr(t,{...e,array:!0});Ye.exports.MaxBufferError=kt});var Zs=L((wl,Xs)=>{"use strict";u();var ma=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),ya=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),ga=new Set([500,502,503,504]),ba={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},_a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function be(t){let e=parseInt(t,10);return isFinite(e)?e:0}function wa(t){return t?ga.has(t.status):!0}function _r(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let s of r){let[n,i]=s.split(/=/,2);e[n.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function Ea(t){let e=[];for(let r in t){let s=t[r];e.push(s===!0?r:r+"="+s)}if(e.length)return e.join(", ")}Xs.exports=class{constructor(e,r,{shared:s,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:o,_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=s!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=_r(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=_r(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Ea(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())&&ya.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||ma.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=_r(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 s of r)if(e.headers[s]!==this._reqHeaders[s])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let s in e)ba[s]||(r[s]=e[s]);if(e.connection){let s=e.connection.trim().split(/\s*,\s*/);for(let n of s)delete r[n]}if(r.warning){let s=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));s.length?r.warning=s.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 be(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 be(this._rescc["s-maxage"])}if(this._rescc["max-age"])return be(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let s=Date.parse(this._resHeaders.expires);return Number.isNaN(s)||s<r?0:Math.max(e,(s-r)/1e3)}if(this._resHeaders["last-modified"]){let s=Date.parse(this._resHeaders["last-modified"]);if(isFinite(s)&&r>s)return Math.max(e,(r-s)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+be(this._rescc["stale-if-error"]),s=e+be(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,s)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+be(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+be(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 n=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));n.length?r["if-none-match"]=n.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()&&wa(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let s=!1;if(r.status!==void 0&&r.status!=304?s=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?s=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?s=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?s=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(s=!0),!s)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!_a[o]?r.headers[o]:this._resHeaders[o];let i=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var en=L(wr=>{u();wr.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",s=Array.isArray(e);r=s?"[":"{";var n=!0;for(var i in e){var o=typeof e[i]=="function"||!s&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(n||(r+=","),n=!1,s?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=s?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};wr.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 nn=L((Al,sn)=>{"use strict";u();var xa=H("events"),tn=en(),Ra=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(H(e[r]))(t)}return new Map},rn=["sqlite","postgres","mysql","mongo","redis","tiered"],Er=class extends xa{constructor(e,{emitErrors:r=!0,...s}={}){if(super(),this.opts={namespace:"keyv",serialize:tn.stringify,deserialize:tn.parse,...typeof e=="string"?{uri:e}:e,...s},!this.opts.store){let i={...this.opts};this.opts.store=Ra(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 n=i=>async function*(){for await(let[o,a]of typeof i=="function"?i(this.opts.store.namespace):i){let l=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof l.expires=="number"&&Date.now()>l.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),l.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return rn.includes(this.opts.store.opts.dialect)||rn.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:s}=this.opts,n=Array.isArray(e),i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&s.getMany===void 0){let o=[];for(let a of i)o.push(Promise.resolve().then(()=>s.get(a)).then(l=>typeof l=="string"?this.opts.deserialize(l):this.opts.compression?this.opts.deserialize(l):l).then(l=>{if(l!=null)return typeof l.expires=="number"&&Date.now()>l.expires?this.delete(a).then(()=>{}):r&&r.raw?l:l.value}));return Promise.allSettled(o).then(a=>{let l=[];for(let d of a)l.push(d.value);return l})}return Promise.resolve().then(()=>n?s.getMany(i):s.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return n?o.map((a,l)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[l]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,s){let n=this._getKeyPrefix(e);typeof s>"u"&&(s=this.opts.ttl),s===0&&(s=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof s=="number"?Date.now()+s:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(n,o,s)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of n)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let s=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(s))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:s}=this.opts;return Promise.resolve().then(async()=>typeof s.has=="function"?s.has(r):await s.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};sn.exports=Er});var un=L((Jl,hn)=>{"use strict";u();var ja=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];hn.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(ja)),s={};for(let n of r)n in e||(s[n]={get(){let i=t[n];return typeof i=="function"?i.bind(t):i},set(i){t[n]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,s),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 dn=L((Yl,ln)=>{"use strict";u();var{Transform:va,PassThrough:Ha}=H("stream"),Or=H("zlib"),$a=un();ln.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Or.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let s=!0,n=new va({transform(a,l,d){s=!1,d(null,a)},flush(a){a()}}),i=new Ha({autoDestroy:!1,destroy(a,l){t.destroy(),l(a)}}),o=r?Or.createBrotliDecompress():Or.createUnzip();return o.once("error",a=>{if(s&&!t.readable){i.end();return}i.destroy(a)}),$a(t,i),t.pipe(n).pipe(o).pipe(i),i}});var Ir=L((nf,kn)=>{"use strict";u();var $r=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[s,n]of this.oldCache.entries())this.onEviction(s,n);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)}};kn.exports=$r});var Nr=L((af,Cn)=>{"use strict";u();Cn.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let s=r.pop();t.__destroy(...r,async n=>{await Promise.resolve(),s(n)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var we=L((hf,vn)=>{"use strict";u();var{URL:Pn}=H("url"),sc=H("events"),nc=H("tls"),ic=H("http2"),oc=Ir(),ac=Nr(),J=Symbol("currentStreamCount"),An=Symbol("request"),K=Symbol("cachedOriginSet"),pe=Symbol("gracefullyClosing"),$t=Symbol("length"),Dn=["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"],cc=(t,e,r)=>{let s=0,n=t.length;for(;s<n;){let i=s+n>>>1;r(t[i],e)?s=i+1:n=i}return s},hc=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,qr=(t,e)=>{for(let r=0;r<t.length;r++){let s=t[r];s[K].length>0&&s[K].length<e[K].length&&s[K].every(n=>e[K].includes(n))&&s[J]+e[J]<=e.remoteSettings.maxConcurrentStreams&&jn(s)}},Ln=(t,e)=>{for(let r=0;r<t.length;r++){let s=t[r];if(e[K].length>0&&e[K].length<s[K].length&&e[K].every(n=>s[K].includes(n))&&e[J]+s[J]<=s.remoteSettings.maxConcurrentStreams)return jn(e),!0}return!1},jn=t=>{t[pe]=!0,t[J]===0&&t.close()},Ne=class t extends sc{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:s=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=s,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new oc({maxSize:n})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let s=0;s<Dn.length;s++){let n=Dn[s];r+=":",e&&e[n]!==void 0&&(r+=e[n])}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 s=this.queue[e][r];s.completed||(s.completed=!0,s())}}_isBetterSession(e,r){return e>r}_accept(e,r,s,n){let i=0;for(;i<r.length&&e[J]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(s,n,r),r.length=0)}getSession(e,r,s){return new Promise((n,i)=>{Array.isArray(s)&&s.length>0?(s=[...s],n()):s=[{resolve:n,reject:i}];try{if(typeof e=="string")e=new Pn(e);else if(!(e instanceof Pn))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:y}=r,{hostname:R}=e;if(y&&R!==y)throw new Error(`Origin ${R} differs from servername ${y}`)}}catch(y){for(let R=0;R<s.length;R++)s[R].reject(y);return}let o=this.normalizeOptions(r),a=e.origin;if(o in this.sessions){let y=this.sessions[o],R=-1,g=-1,S;for(let O=0;O<y.length;O++){let f=y[O],A=f.remoteSettings.maxConcurrentStreams;if(A<R)break;if(!f[K].includes(a))continue;let _=f[J];_>=A||f[pe]||f.destroyed||(S||(R=A),this._isBetterSession(_,g)&&(S=f,g=_))}if(S){this._accept(S,s,a,r);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...s);return}}else this.queue[o]={[$t]:0};let l=()=>{o in this.queue&&this.queue[o][a]===d&&(delete this.queue[o][a],--this.queue[o][$t]===0&&delete this.queue[o])},d=async()=>{this._sessionCount++;let y=`${a}:${o}`,R=!1,g;try{let S={...r};S.settings===void 0&&(S.settings=this.settings),S.session===void 0&&(S.session=this.tlsSessionCache.get(y)),g=await(S.createConnection||this.createConnection).call(this,e,S),S.createConnection=()=>g;let f=ic.connect(e,S);f[J]=0,f[pe]=!1;let A=()=>{let{socket:x}=f,D;return x.servername===!1?(x.servername=x.remoteAddress,D=f.originSet,x.servername=!1):D=f.originSet,D},_=()=>f[J]<f.remoteSettings.maxConcurrentStreams;f.socket.once("session",x=>{this.tlsSessionCache.set(y,x)}),f.once("error",x=>{for(let D=0;D<s.length;D++)s[D].reject(x);this.tlsSessionCache.delete(y)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(this._sessionCount--,R){this._emptySessionCount--;let x=this.sessions[o];x.length===1?delete this.sessions[o]:x.splice(x.indexOf(f),1)}else{l();let x=new Error("Session closed without receiving a SETTINGS frame");x.code="HTTP2WRAPPER_NOSETTINGS";for(let D=0;D<s.length;D++)s[D].reject(x)}this._processQueue()});let j=()=>{let x=this.queue[o];if(!x)return;let D=f[K];for(let U=0;U<D.length;U++){let z=D[U];if(z in x){let{listeners:Q,completed:M}=x[z],v=0;for(;v<Q.length&&_();)Q[v].resolve(f),v++;if(x[z].listeners.splice(0,v),x[z].listeners.length===0&&!M&&(delete x[z],--x[$t]===0)){delete this.queue[o];break}if(!_())break}}};f.on("origin",()=>{f[K]=A()||[],f[pe]=!1,Ln(this.sessions[o],f),!(f[pe]||!_())&&(j(),_()&&qr(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(d.destroyed){let x=new Error("Agent has been destroyed");for(let D=0;D<s.length;D++)s[D].reject(x);f.destroy();return}if(f.setLocalWindowSize&&f.setLocalWindowSize(1024*1024*4),f[K]=A()||[],f.socket.encrypted){let x=f[K][0];if(x!==a){let D=new Error(`Requested origin ${a} does not match server ${x}`);for(let U=0;U<s.length;U++)s[U].reject(D);f.destroy();return}}l();{let x=this.sessions;if(o in x){let D=x[o];D.splice(cc(D,f,hc),0,f)}else x[o]=[f]}R=!0,this._emptySessionCount++,this.emit("session",f),this._accept(f,s,a,r),f[J]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),f.on("remoteSettings",()=>{_()&&(j(),_()&&qr(this.sessions[o],f))})}),f[An]=f.request,f.request=(x,D)=>{if(f[pe])throw new Error("The session is gracefully closing. No new streams are allowed.");let U=f[An](x,D);return f.ref(),f[J]++===0&&this._emptySessionCount--,U.once("close",()=>{if(--f[J]===0&&(this._emptySessionCount++,f.unref(),this._emptySessionCount>this.maxEmptySessions||f[pe])){f.close();return}f.destroyed||f.closed||_()&&!Ln(this.sessions[o],f)&&(qr(this.sessions[o],f),j(),f[J]===0&&this._processQueue())}),U}}catch(S){l(),this._sessionCount--;for(let O=0;O<s.length;O++)s[O].reject(S)}};d.listeners=s,d.completed=!1,d.destroyed=!1,this.queue[o][a]=d,this.queue[o][$t]++,this._processQueue()})}request(e,r,s,n){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{let l=a.request(s,n);ac(l),i(l)}catch(l){o(l)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let s=e.port||443,n=e.hostname;typeof r.servername>"u"&&(r.servername=n);let i=nc.connect(s,n,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:s}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:s}=this;for(let n in s){let i=s[n];for(let o=0;o<i.length;o++){let a=i[o];if(a[J]===0&&(r++,a.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:s}=this;for(let n in r){let i=r[n];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let n in s){let i=s[n];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Ne.kCurrentStreamCount=J;Ne.kGracefullyClosing=pe;vn.exports={Agent:Ne,globalAgent:new Ne}});var Br=L((lf,Hn)=>{"use strict";u();var{Readable:uc}=H("stream"),Ur=class extends uc{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()}};Hn.exports=Ur});var In=L((ff,$n)=>{"use strict";u();$n.exports=(t,e,r)=>{for(let s of r)t.on(s,(...n)=>e.emit(s,...n))}});var ht=L((yf,Nn)=>{"use strict";u();var Ee=(t,e,r)=>{Nn.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Ee(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],s=Array.isArray(r);return s&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${s?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ee(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ee(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ee(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ee(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ee(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);Ee(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var Un=L((bf,qn)=>{"use strict";u();qn.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Mr=L((wf,Bn)=>{"use strict";u();var{ERR_INVALID_HTTP_TOKEN:lc}=ht(),dc=Un(),fc=/^[\^`\-\w!#$%&*+.|~]+$/;Bn.exports=t=>{if(typeof t!="string"||!fc.test(t)&&!dc(t))throw new lc("Header name",t)}});var zr=L((Sf,Mn)=>{"use strict";u();var{ERR_HTTP_INVALID_HEADER_VALUE:pc,ERR_INVALID_CHAR:mc}=ht(),yc=/[^\t\u0020-\u007E\u0080-\u00FF]/;Mn.exports=(t,e)=>{if(typeof e>"u")throw new pc(e,t);if(yc.test(e))throw new mc("header content",t)}});var Vn=L((Rf,Fn)=>{"use strict";u();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:zn}=ht(),gc={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 zn;default:{let r=t.session===void 0?t:t.session.socket,s=r[e];return typeof s=="function"?s.bind(r):s}}},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:s}=t;return s===void 0?t.setTimeout=r:s.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new zn;default:{let s=t.session===void 0?t:t.session.socket;return s[e]=r,!0}}}};Fn.exports=gc});var Wr=L((Tf,Qn)=>{"use strict";u();var{URL:Fr,urlToHttpOptions:Gn}=H("url"),bc=H("http2"),{Writable:_c}=H("stream"),{Agent:wc,globalAgent:Ec}=we(),Sc=Br(),xc=In(),{ERR_INVALID_ARG_TYPE:It,ERR_INVALID_PROTOCOL:Rc,ERR_HTTP_HEADERS_SENT:Wn}=ht(),Oc=Mr(),Tc=zr(),kc=Vn(),{HTTP2_HEADER_STATUS:Jn,HTTP2_HEADER_METHOD:Kn,HTTP2_HEADER_PATH:Yn,HTTP2_HEADER_AUTHORITY:ut,HTTP2_METHOD_CONNECT:Cc}=bc.constants,V=Symbol("headers"),qe=Symbol("origin"),lt=Symbol("session"),Vr=Symbol("options"),Nt=Symbol("flushedHeaders"),Ue=Symbol("jobs"),dt=Symbol("pendingAgentPromise"),Gr=class extends _c{constructor(e,r,s){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=Gn(new Fr(e)):e instanceof Fr?e=Gn(e):e={...e},typeof r=="function"||r===void 0?(s=r,r=e):r=Object.assign(e,r),r.h2session){if(this[lt]=r.h2session,this[lt].destroyed)throw new Error("The session has been closed already");this.protocol=this[lt].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new wc({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=Ec;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new It("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:n}=r;r.timeout=void 0,this[V]=Object.create(null),this[Ue]=[],this[dt]=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[V])&&(this[V].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Vr]=r,this[qe]=new Fr(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...a)=>o.destroyed?this.agent.createConnection(...a):o,this.agent.getSession(this[qe],this[Vr]).catch(()=>{})),n&&this.setTimeout(n),s&&this.once("response",s),this[Nt]=!1}get method(){return this[V][Kn]}set method(e){e&&(this[V][Kn]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?ut:Yn;return this[V][e]}set path(e){if(e){let r=this.method==="CONNECT"?ut:Yn;this[V][r]=e}}get host(){return this[qe].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,s){if(this._mustNotHaveABody){s(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,s);this._request?n():this[Ue].push(n)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Ue].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[dt]}catch(s){this.aborted&&(e=s)}r(e)}async flushHeaders(){if(this[Nt]||this.destroyed)return;this[Nt]=!0;let e=this.method===Cc,r=s=>{if(this._request=s,this.destroyed){s.destroy();return}e||xc(s,this,["timeout","continue"]),s.once("error",i=>{this.destroy(i)}),s.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 n=(i,o,a)=>{let l=new Sc(this.socket,s.readableHighWaterMark);this.res=l,l.url=`${this[qe].origin}${this.path}`,l.req=this,l.statusCode=i[Jn],l.headers=i,l.rawHeaders=a,l.once("end",()=>{l.complete=!0,l.socket=null,l.connection=null}),e?(l.upgrade=!0,this.emit("connect",l,s,Buffer.alloc(0))?this.emit("close"):s.destroy()):(s.on("data",d=>{!l._dumped&&!l.push(d)&&s.pause()}),s.once("end",()=>{this.aborted||l.push(null)}),this.emit("response",l)||l._dump())};s.once("response",n),s.once("headers",i=>this.emit("information",{statusCode:i[Jn]})),s.once("trailers",(i,o,a)=>{let{res:l}=this;if(l===null){n(i,o,a);return}l.trailers=i,l.rawTrailers=a}),s.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let a=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.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(s,kc);for(let i of this[Ue])i();this[Ue].length=0,this.emit("socket",this.socket)};if(!(ut in this[V])&&!e&&(this[V][ut]=this[qe].host),this[lt])try{r(this[lt].request(this[V]))}catch(s){this.destroy(s)}else{this.reusedSocket=!0;try{let s=this.agent.request(this[qe],this[Vr],this[V]);this[dt]=s,r(await s),this[dt]=!1}catch(s){this[dt]=!1,this.destroy(s)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[V])}hasHeader(e){if(typeof e!="string")throw new It("name","string",e);return!!this[V][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new It("name","string",e);return this[V][e.toLowerCase()]}get headersSent(){return this[Nt]}removeHeader(e){if(typeof e!="string")throw new It("name","string",e);if(this.headersSent)throw new Wn("remove");delete this[V][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new Wn("set");Oc(e),Tc(e,r);let s=e.toLowerCase();if(s==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}s==="host"&&this.method==="CONNECT"?this[V][ut]=r:this[V][s]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let s=()=>this._request.setTimeout(e,r);return this._request?s():this[Ue].push(s),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Qn.exports=Gr});var Zn=L((Cf,Xn)=>{"use strict";u();var Pc=H("tls");Xn.exports=(t={},e=Pc.connect)=>new Promise((r,s)=>{let n=!1,i,o=async()=>{await l,i.off("timeout",a),i.off("error",s),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:n}),n&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},l=(async()=>{try{i=await e(t,o),i.on("error",s),i.once("timeout",a)}catch(d){s(d)}})()})});var ti=L((Af,ei)=>{"use strict";u();var{isIP:Ac}=H("net"),Dc=H("assert"),Lc=t=>{if(t[0]==="["){let r=t.indexOf("]");return Dc(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};ei.exports=t=>{let e=Lc(t);return Ac(e)?"":e}});var hi=L((Lf,ft)=>{"use strict";u();var{URL:ri,urlToHttpOptions:si}=H("url"),ni=H("http"),Jr=H("https"),jc=Zn(),vc=Ir(),{Agent:Hc,globalAgent:$c}=we(),Ic=Wr(),Nc=ti(),ii=Nr(),oi=new vc({maxSize:100}),qc=new Map,Uc=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let s=()=>{t.emit("free",e,r)};e.on("free",s);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let i=()=>{let{freeSockets:a}=t;for(let l of Object.values(a))if(l.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",s),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},ai=(t,e=new Map,r=void 0)=>async s=>{let n=`${s.host}:${s.port}:${s.ALPNProtocols.sort()}`;if(!t.has(n)){if(e.has(n))return{alpnProtocol:(await e.get(n)).alpnProtocol};let{path:i}=s;s.path=s.socketPath;let o=jc(s,r);e.set(n,o);try{let a=await o;return t.set(n,a.alpnProtocol),e.delete(n),s.path=i,a}catch(a){throw e.delete(n),s.path=i,a}}return{alpnProtocol:t.get(n)}},ci=ai(oi,qc);ft.exports=async(t,e,r)=>{if(typeof t=="string"?t=si(new ri(t)):t instanceof ri?t=si(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 s=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||Nc(e.headers&&e.headers.host||e.host),e.port=e.port||(s?443:80),e._defaultAgent=s?Jr.globalAgent:ni.globalAgent;let n=e.resolveProtocol||ci,{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(s){e.resolveSocket=!0;let{socket:o,alpnProtocol:a,timeout:l}=await n(e);if(l){o&&o.destroy();let y=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw y.code="ETIMEDOUT",y.ms=e.timeout,y}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let d=a==="h2";if(i&&(i=d?i.http2:i.https,e.agent=i),i===void 0&&(i=d?$c:Jr.globalAgent),o)if(i===!1)o.destroy();else{let y=(d?Hc:Jr.Agent).prototype.createConnection;i.createConnection===y?d?e._reuseSocket=o:Uc(i,o,e):o.destroy()}if(d)return ii(new Ic(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"]),ii(ni.request(e,r))};ft.exports.protocolCache=oi;ft.exports.resolveProtocol=ci;ft.exports.createResolveProtocol=ai});var Kr=L((vf,ui)=>{"use strict";u();var Bc=H("stream"),Mc=H("tls"),zc=new Mc.TLSSocket(new Bc.PassThrough)._handle._parentWrap.constructor;ui.exports=zc});var Qr=L(($f,li)=>{"use strict";u();var Yr=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};li.exports=Yr});var fi=L((Nf,di)=>{"use strict";u();var Fc=(t,e,r)=>{if(!r.some(n=>typeof n==="string"?typeof e===n:e instanceof n)){let n=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${n.join(" or ")}, got ${typeof e}`)}};di.exports=Fc});var Xr=L((Uf,mi)=>{"use strict";u();var{URL:pi}=H("url"),qt=fi();mi.exports=(t,e)=>{qt("proxyOptions",e,["object"]),qt("proxyOptions.headers",e.headers,["object","undefined"]),qt("proxyOptions.raw",e.raw,["boolean","undefined"]),qt("proxyOptions.url",e.url,[pi,"string"]);let r=new pi(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var Ut=L((Mf,yi)=>{"use strict";u();yi.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let s=`${e}:${r}`,n=`Basic ${Buffer.from(s).toString("base64")}`;return{"proxy-authorization":n,authorization:n}}return{}}});var Ei=L((Ff,wi)=>{"use strict";u();var Vc=H("tls"),Gc=H("http"),gi=H("https"),Wc=Kr(),{globalAgent:Jc}=we(),Kc=Qr(),bi=Xr(),Yc=Ut(),_i=(t,e,r)=>{(async()=>{try{let{proxyOptions:s}=t,{url:n,headers:i,raw:o}=s,a=await Jc.request(n,s,{...Yc(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",l=>{let d=l[":status"];if(d!==200){r(new Kc(d,""));return}let y=t instanceof gi.Agent;if(o&&y){e.socket=a;let g=Vc.connect(e);g.once("close",()=>{a.destroy()}),r(null,g);return}let R=new Wc(a);R.encrypted=!1,R._handle.getpeername=g=>{g.family=void 0,g.address=void 0,g.port=void 0},r(null,R)})}catch(s){r(s)}})()},Zr=class extends Gc.Agent{constructor(e){super(e),bi(this,e.proxyOptions)}createConnection(e,r){_i(this,e,r)}},es=class extends gi.Agent{constructor(e){super(e),bi(this,e.proxyOptions)}createConnection(e,r){_i(this,e,r)}};wi.exports={HttpOverHttp2:Zr,HttpsOverHttp2:es}});var rs=L((Gf,Si)=>{"use strict";u();var{Agent:Qc}=we(),Xc=Kr(),Zc=Qr(),eh=Xr(),ts=class extends Qc{constructor(e){super(e),eh(this,e.proxyOptions)}async createConnection(e,r){let s=`${e.hostname}:${e.port||443}`,[n,i,o]=await this._getProxyStream(s);if(i!==200)throw new Zc(i,o);if(this.proxyOptions.raw)r.socket=n;else{let a=new Xc(n);return a.encrypted=!1,a._handle.getpeername=l=>{l.family=void 0,l.address=void 0,l.port=void 0},a}return super.createConnection(e,r)}};Si.exports=ts});var Ri=L((Jf,xi)=>{"use strict";u();var{globalAgent:th}=we(),rh=rs(),sh=Ut(),nh=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",s=>{t.off("error",r),e(s[":status"])})}),ss=class extends rh{async _getProxyStream(e){let{proxyOptions:r}=this,s={...sh(this),...r.headers,":method":"CONNECT",":authority":e},n=await th.request(r.url,r,s),i=await nh(n);return[n,i,""]}};xi.exports=ss});var Ti=L((Yf,Oi)=>{"use strict";u();var ih=H("http"),oh=H("https"),ah=rs(),ch=Ut(),hh=t=>new Promise((e,r)=>{let s=(n,i,o)=>{i.unshift(o),t.off("error",r),e([i,n.statusCode,n.statusMessage])};t.once("error",r),t.once("connect",s)}),Bt=class extends ah{async _getProxyStream(e){let{proxyOptions:r}=this,{url:s,headers:n}=this.proxyOptions,o=(s.protocol==="https:"?oh:ih).request({...r,hostname:s.hostname,port:s.port,path:e,headers:{...ch(this),...n,host:e},method:"CONNECT"}).end();return hh(o)}};Oi.exports={Http2OverHttp:Bt,Http2OverHttps:Bt}});var Ci=L((Xf,ki)=>{"use strict";u();var uh=H("http2"),{Agent:lh,globalAgent:dh}=we(),ns=Wr(),fh=Br(),ph=hi(),{HttpOverHttp2:mh,HttpsOverHttp2:yh}=Ei(),gh=Ri(),{Http2OverHttp:bh,Http2OverHttps:_h}=Ti(),wh=Mr(),Eh=zr(),Sh=(t,e,r)=>new ns(t,e,r),xh=(t,e,r)=>{let s=new ns(t,e,r);return s.end(),s};ki.exports={...uh,ClientRequest:ns,IncomingMessage:fh,Agent:lh,globalAgent:dh,request:Sh,get:xh,auto:ph,proxies:{HttpOverHttp2:mh,HttpsOverHttp2:yh,Http2OverHttp2:gh,Http2OverHttp:bh,Http2OverHttps:_h},validateHeaderName:wh,validateHeaderValue:Eh}});u();u();u();import ne from"node:process";function Ve(){return ne.platform!=="win32"?ne.env.TERM!=="linux":!!ne.env.WT_SESSION||!!ne.env.TERMINUS_SUBLIME||ne.env.ConEmuTask==="{cmd::Cmder}"||ne.env.TERM_PROGRAM==="Terminus-Sublime"||ne.env.TERM_PROGRAM==="vscode"||ne.env.TERM==="xterm-256color"||ne.env.TERM==="alacritty"||ne.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Os={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Ts={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ho={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},er={...Os,...Ts},uo={...Os,...ho},lo=Ve(),fo=lo?er:uo,ks=fo,Tu=Object.entries(Ts);var tr={...ie.testLike?er:ks};if(Ve()&&ee.windowsOrWsl)for(let t of["tick","cross"])tr[t]+=" ";u();var Yt=X(_s(),1);u();var Ge=X(_s(),1),Us=X($s(),1),cr=X(Ns(),1);import Do from"node:assert";import{createHash as Lo}from"node:crypto";import De from"node:path";import{Transform as jo}from"node:stream";import{pipeline as vo}from"node:stream/promises";var Ho=[".DS_Store","node_modules",".git"],$o=[".gadget/sync.json",".gadget/backup","yarn-error.log"],qs=class t{constructor(e){this.path=e}_ignorer;_isHashing=!1;static async init(e){let r=new t(e);return await r.loadIgnoreFile(),r}relative(e){return De.isAbsolute(e)?De.relative(this.path,e):e}absolute(...e){let r=De.resolve(this.path,...e);return Do(r.startsWith(this.path),`expected ${r} to be within ${this.path}`),r}normalize(e,r){return De.isAbsolute(e)&&(e=this.relative(e)),e=(0,cr.default)(e,!0),r&&(e+="/"),e}async loadIgnoreFile(){this._ignorer=Us.default.default(),this._ignorer.add(Ho);try{let e=await Ge.default.readFile(this.absolute(".ignore"),"utf8");this._ignorer.add(e)}catch(e){Et(e)}}ignores(e){return e=this.relative(e),e===""?!1:e.startsWith("..")||(e=(0,cr.default)(e,!1),this._isHashing&&$o.some(r=>e.startsWith(r)))?!0:this._ignorer.ignores(e)}async*walk({dir:e=this.path}={}){e!==this.path&&(yield this.normalize(e,!0));for await(let r of await Ge.default.opendir(e)){let s=De.join(e,r.name);this.ignores(s)||(r.isDirectory()?yield*this.walk({dir:s}):r.isFile()&&(yield this.normalize(s,!1)))}}async hashes(){try{this._isHashing=!0;let e={};for await(let r of this.walk()){let s=this.absolute(r);e[r]=await No(s)}return e}finally{this._isHashing=!1}}async hasFiles(){return!await this.isEmptyOrNonExistent()}async isEmptyOrNonExistent(){let e=!0;try{for await(let r of this.walk()){e=!1;break}}catch(r){Et(r)}return e}},Io=process.platform==="linux"||process.platform==="darwin",No=async t=>{let e=Lo("sha1");e.update(De.basename(t));let r=await Ge.default.stat(t),s;if(Io&&(s=r.mode&511),r.isDirectory())return{sha1:e.digest("hex"),permissions:s};let n=new jo({transform(i,o,a){if(!i.includes(13)){a(void 0,i);return}let l=Buffer.alloc(i.length),d=0;for(let y of i)y!==13&&(l[d++]=y);a(void 0,l.slice(0,d))}});return await vo(Ge.default.createReadStream(t),n,e),{sha1:e.digest("hex"),permissions:s}},Et=t=>{if(!(t&&typeof t=="object"&&"code"in t&&t.code==="ENOENT"))throw t};u();u();u();u();u();function hr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}u();import qo from"node:os";var Uo=()=>qo.homedir().replace(/\\/g,"/"),Bs=Uo;var Ms=/\s+at.*[(\s](.*)\)?/,zs=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function ur(t,{pretty:e=!1,basePath:r,pathFilter:s}={}){let n=r&&new RegExp(`(file://)?${hr(r.replace(/\\/g,"/"))}/?`,"g"),i=e?Bs():"";if(typeof t=="string")return t.replace(/\\/g,"/").split(`
1
+ import{B as W,E as _s,F as ws,G as ke,H as ie,I as ee,J as Fe,M as Qt,N as Es,a as ms,b as ys,g as gs,h as bt,x as bs,z as ue}from"./chunk-GBCD37US.js";import{a as H,c as L,e as X,g as u}from"./chunk-5WC5D4WL.js";var xs=L((_u,Ss)=>{u();var Ce=1e3,Pe=Ce*60,Ae=Pe*60,ge=Ae*24,no=ge*7,io=ge*365.25;Ss.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return oo(t);if(r==="number"&&isFinite(t))return e.long?co(t):ao(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function oo(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*io;case"weeks":case"week":case"w":return r*no;case"days":case"day":case"d":return r*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ae;case"minutes":case"minute":case"mins":case"min":case"m":return r*Pe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ce;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ao(t){var e=Math.abs(t);return e>=ge?Math.round(t/ge)+"d":e>=Ae?Math.round(t/Ae)+"h":e>=Pe?Math.round(t/Pe)+"m":e>=Ce?Math.round(t/Ce)+"s":t+"ms"}function co(t){var e=Math.abs(t);return e>=ge?_t(t,e,ge,"day"):e>=Ae?_t(t,e,Ae,"hour"):e>=Pe?_t(t,e,Pe,"minute"):e>=Ce?_t(t,e,Ce,"second"):t+" ms"}function _t(t,e,r,s){var n=e>=r*1.5;return Math.round(t/r)+" "+s+(n?"s":"")}});var Rs=L((Xt,Zt)=>{u();(function(t,e){typeof Xt=="object"&&typeof Zt<"u"?Zt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Xt,function(){"use strict";var t=1e3,e=6e4,r=36e5,s="millisecond",n="second",i="minute",o="hour",a="day",l="week",d="month",y="quarter",R="year",g="date",S="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var E=["th","st","nd","rd"],b=k%100;return"["+k+(E[(b-20)%10]||E[b]||E[0])+"]"}},_=function(k,E,b){var T=String(k);return!T||T.length>=E?k:""+Array(E+1-T.length).join(b)+k},j={s:_,z:function(k){var E=-k.utcOffset(),b=Math.abs(E),T=Math.floor(b/60),w=b%60;return(E<=0?"+":"-")+_(T,2,"0")+":"+_(w,2,"0")},m:function k(E,b){if(E.date()<b.date())return-k(b,E);var T=12*(b.year()-E.year())+(b.month()-E.month()),w=E.clone().add(T,d),C=b-w<0,P=E.clone().add(T+(C?-1:1),d);return+(-(T+(b-w)/(C?w-P:P-w))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:R,w:l,d:a,D:g,h:o,m:i,s:n,ms:s,Q:y}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},x="en",D={};D[x]=A;var U="$isDayjsObject",z=function(k){return k instanceof yt||!(!k||!k[U])},Q=function k(E,b,T){var w;if(!E)return x;if(typeof E=="string"){var C=E.toLowerCase();D[C]&&(w=C),b&&(D[C]=b,w=C);var P=E.split("-");if(!w&&P.length>1)return k(P[0])}else{var I=E.name;D[I]=E,w=I}return!T&&w&&(x=w),w||!T&&x},M=function(k,E){if(z(k))return k.clone();var b=typeof E=="object"?E:{};return b.date=k,b.args=arguments,new yt(b)},v=j;v.l=Q,v.i=z,v.w=function(k,E){return M(k,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var yt=function(){function k(b){this.$L=Q(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[U]=!0}var E=k.prototype;return E.parse=function(b){this.$d=function(T){var w=T.date,C=T.utc;if(w===null)return new Date(NaN);if(v.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var P=w.match(O);if(P){var I=P[2]-1||0,B=(P[7]||"0").substring(0,3);return C?new Date(Date.UTC(P[1],I,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)):new Date(P[1],I,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)}}return new Date(w)}(b),this.init()},E.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},E.$utils=function(){return v},E.isValid=function(){return this.$d.toString()!==S},E.isSame=function(b,T){var w=M(b);return this.startOf(T)<=w&&w<=this.endOf(T)},E.isAfter=function(b,T){return M(b)<this.startOf(T)},E.isBefore=function(b,T){return this.endOf(T)<M(b)},E.$g=function(b,T,w){return v.u(b)?this[T]:this.set(w,b)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(b,T){var w=this,C=!!v.u(T)||T,P=v.p(b),I=function(ye,Y){var he=v.w(w.$u?Date.UTC(w.$y,Y,ye):new Date(w.$y,Y,ye),w);return C?he:he.endOf(a)},B=function(ye,Y){return v.w(w.toDate()[ye].apply(w.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(Y)),w)},F=this.$W,G=this.$M,Z=this.$D,Te="set"+(this.$u?"UTC":"");switch(P){case R:return C?I(1,0):I(31,11);case d:return C?I(1,G):I(0,G+1);case l:var me=this.$locale().weekStart||0,Me=(F<me?F+7:F)-me;return I(C?Z-Me:Z+(6-Me),G);case a:case g:return B(Te+"Hours",0);case o:return B(Te+"Minutes",1);case i:return B(Te+"Seconds",2);case n:return B(Te+"Milliseconds",3);default:return this.clone()}},E.endOf=function(b){return this.startOf(b,!1)},E.$set=function(b,T){var w,C=v.p(b),P="set"+(this.$u?"UTC":""),I=(w={},w[a]=P+"Date",w[g]=P+"Date",w[d]=P+"Month",w[R]=P+"FullYear",w[o]=P+"Hours",w[i]=P+"Minutes",w[n]=P+"Seconds",w[s]=P+"Milliseconds",w)[C],B=C===a?this.$D+(T-this.$W):T;if(C===d||C===R){var F=this.clone().set(g,1);F.$d[I](B),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else I&&this.$d[I](B);return this.init(),this},E.set=function(b,T){return this.clone().$set(b,T)},E.get=function(b){return this[v.p(b)]()},E.add=function(b,T){var w,C=this;b=Number(b);var P=v.p(T),I=function(G){var Z=M(C);return v.w(Z.date(Z.date()+Math.round(G*b)),C)};if(P===d)return this.set(d,this.$M+b);if(P===R)return this.set(R,this.$y+b);if(P===a)return I(1);if(P===l)return I(7);var B=(w={},w[i]=e,w[o]=r,w[n]=t,w)[P]||1,F=this.$d.getTime()+b*B;return v.w(F,this)},E.subtract=function(b,T){return this.add(-1*b,T)},E.format=function(b){var T=this,w=this.$locale();if(!this.isValid())return w.invalidDate||S;var C=b||"YYYY-MM-DDTHH:mm:ssZ",P=v.z(this),I=this.$H,B=this.$m,F=this.$M,G=w.weekdays,Z=w.months,Te=w.meridiem,me=function(Y,he,ze,gt){return Y&&(Y[he]||Y(T,C))||ze[he].slice(0,gt)},Me=function(Y){return v.s(I%12||12,Y,"0")},ye=Te||function(Y,he,ze){var gt=Y<12?"AM":"PM";return ze?gt.toLowerCase():gt};return C.replace(f,function(Y,he){return he||function(ze){switch(ze){case"YY":return String(T.$y).slice(-2);case"YYYY":return v.s(T.$y,4,"0");case"M":return F+1;case"MM":return v.s(F+1,2,"0");case"MMM":return me(w.monthsShort,F,Z,3);case"MMMM":return me(Z,F);case"D":return T.$D;case"DD":return v.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return me(w.weekdaysMin,T.$W,G,2);case"ddd":return me(w.weekdaysShort,T.$W,G,3);case"dddd":return G[T.$W];case"H":return String(I);case"HH":return v.s(I,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return ye(I,B,!0);case"A":return ye(I,B,!1);case"m":return String(B);case"mm":return v.s(B,2,"0");case"s":return String(T.$s);case"ss":return v.s(T.$s,2,"0");case"SSS":return v.s(T.$ms,3,"0");case"Z":return P}return null}(Y)||P.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(b,T,w){var C,P=this,I=v.p(T),B=M(b),F=(B.utcOffset()-this.utcOffset())*e,G=this-B,Z=function(){return v.m(P,B)};switch(I){case R:C=Z()/12;break;case d:C=Z();break;case y:C=Z()/3;break;case l:C=(G-F)/6048e5;break;case a:C=(G-F)/864e5;break;case o:C=G/r;break;case i:C=G/e;break;case n:C=G/t;break;default:C=G}return w?C:v.a(C)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return D[this.$L]},E.locale=function(b,T){if(!b)return this.$L;var w=this.clone(),C=Q(b,T,!0);return C&&(w.$L=C),w},E.clone=function(){return v.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},k}(),ps=yt.prototype;return M.prototype=ps,[["$ms",s],["$s",n],["$m",i],["$H",o],["$W",a],["$M",d],["$y",R],["$D",g]].forEach(function(k){ps[k[1]]=function(E){return this.$g(E,k[0],k[1])}}),M.extend=function(k,E){return k.$i||(k(E,yt,M),k.$i=!0),M},M.locale=Q,M.isDayjs=z,M.unix=function(k){return M(1e3*k)},M.en=D[x],M.Ls=D,M.p={},M})});var $s=L((Hu,Hs)=>{u();function Cs(t){return Array.isArray(t)?t:[t]}var nr="",Ps=" ",rr="\\",po=/^\s+$/,mo=/(?:[^\\]|^)\\$/,yo=/^\\!/,go=/^\\#/,bo=/\r?\n/g,_o=/^\.*\/|^\.+$/,sr="/",Ls="node-ignore";typeof Symbol<"u"&&(Ls=Symbol.for("node-ignore"));var As=Ls,wo=(t,e,r)=>Object.defineProperty(t,e,{value:r}),Eo=/([0-z])-([0-z])/g,js=()=>!1,So=t=>t.replace(Eo,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:nr),xo=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Ro=[[/^\uFEFF/,()=>nr],[/\\?\s+$/,t=>t.indexOf("\\")===0?Ps:nr],[/\\\s/g,()=>Ps],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let s=r.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>rr],[/\\\\/g,()=>rr],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,n)=>e===rr?`\\[${r}${xo(s)}${n}`:n==="]"&&s.length%2===0?`[${So(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Ds=Object.create(null),Oo=(t,e)=>{let r=Ds[t];return r||(r=Ro.reduce((s,n)=>s.replace(n[0],n[1].bind(t)),t),Ds[t]=r),e?new RegExp(r,"i"):new RegExp(r)},ar=t=>typeof t=="string",To=t=>t&&ar(t)&&!po.test(t)&&!mo.test(t)&&t.indexOf("#")!==0,ko=t=>t.split(bo),ir=class{constructor(e,r,s,n){this.origin=e,this.pattern=r,this.negative=s,this.regex=n}},Co=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(yo,"!").replace(go,"#");let n=Oo(t,e);return new ir(r,t,s,n)},Po=(t,e)=>{throw new e(t)},oe=(t,e,r)=>ar(t)?t?oe.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),vs=t=>_o.test(t);oe.isNotRelative=vs;oe.convert=t=>t;var or=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){wo(this,As,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[As]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(To(e)){let r=Co(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,Cs(ar(e)?ko(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let s=!1,n=!1;return this._rules.forEach(i=>{let{negative:o}=i;if(n===o&&s!==n||o&&!s&&!n&&!r)return;i.regex.test(e)&&(s=!o,n=o)}),{ignored:s,unignored:n}}_test(e,r,s,n){let i=e&&oe.convert(e);return oe(i,e,this._allowRelativePaths?js:Po),this._t(i,r,s,n)}_t(e,r,s,n){if(e in r)return r[e];if(n||(n=e.split(sr)),n.pop(),!n.length)return r[e]=this._testOne(e,s);let i=this._t(n.join(sr)+sr,r,s,n);return r[e]=i.ignored?i:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return Cs(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},wt=t=>new or(t),Ao=t=>oe(t&&oe.convert(t),t,js);wt.isPathValid=Ao;wt.default=wt;Hs.exports=wt;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");oe.convert=t;let e=/^[a-z]:\//i;oe.isNotRelative=r=>e.test(r)||vs(r)}});var Ns=L((Iu,Is)=>{u();Is.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var i=t.split(/[/\\]+/);return e!==!1&&i[i.length-1]===""&&i.pop(),s+i.join("/")}});var Ws=L((fr,pr)=>{"use strict";u();Object.defineProperty(fr,"__esModule",{value:!0});function ea(t){return t.encrypted}var dr=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let s=typeof r.connect=="function",n=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{s&&r.connect(),ea(t)&&n&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};fr.default=dr;pr.exports=dr;pr.exports.default=dr});var Qs=L((ml,Ys)=>{"use strict";u();var{PassThrough:ha}=H("stream");Ys.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,s=r==="buffer",n=!1;e?n=!(r||s):r=r||"utf8",s&&(r=null);let i=new ha({objectMode:n});r&&i.setEncoding(r);let o=0,a=[];return i.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),i.getBufferedValue=()=>e?a:s?Buffer.concat(a,o):a.join(""),i.getBufferedLength=()=>o,i}});var br=L((gl,Ye)=>{"use strict";u();var{constants:ua}=H("buffer"),la=H("stream"),{promisify:da}=H("util"),fa=Qs(),pa=da(la.pipeline),kt=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function gr(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,s=fa(e);return await new Promise((n,i)=>{let o=a=>{a&&s.getBufferedLength()<=ua.MAX_LENGTH&&(a.bufferedData=s.getBufferedValue()),i(a)};(async()=>{try{await pa(t,s),n()}catch(a){o(a)}})(),s.on("data",()=>{s.getBufferedLength()>r&&o(new kt)})}),s.getBufferedValue()}Ye.exports=gr;Ye.exports.buffer=(t,e)=>gr(t,{...e,encoding:"buffer"});Ye.exports.array=(t,e)=>gr(t,{...e,array:!0});Ye.exports.MaxBufferError=kt});var Zs=L((wl,Xs)=>{"use strict";u();var ma=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),ya=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),ga=new Set([500,502,503,504]),ba={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},_a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function be(t){let e=parseInt(t,10);return isFinite(e)?e:0}function wa(t){return t?ga.has(t.status):!0}function _r(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let s of r){let[n,i]=s.split(/=/,2);e[n.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function Ea(t){let e=[];for(let r in t){let s=t[r];e.push(s===!0?r:r+"="+s)}if(e.length)return e.join(", ")}Xs.exports=class{constructor(e,r,{shared:s,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:o,_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=s!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=_r(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=_r(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Ea(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())&&ya.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||ma.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=_r(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 s of r)if(e.headers[s]!==this._reqHeaders[s])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let s in e)ba[s]||(r[s]=e[s]);if(e.connection){let s=e.connection.trim().split(/\s*,\s*/);for(let n of s)delete r[n]}if(r.warning){let s=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));s.length?r.warning=s.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 be(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 be(this._rescc["s-maxage"])}if(this._rescc["max-age"])return be(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let s=Date.parse(this._resHeaders.expires);return Number.isNaN(s)||s<r?0:Math.max(e,(s-r)/1e3)}if(this._resHeaders["last-modified"]){let s=Date.parse(this._resHeaders["last-modified"]);if(isFinite(s)&&r>s)return Math.max(e,(r-s)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+be(this._rescc["stale-if-error"]),s=e+be(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,s)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+be(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+be(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 n=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));n.length?r["if-none-match"]=n.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()&&wa(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let s=!1;if(r.status!==void 0&&r.status!=304?s=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?s=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?s=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?s=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(s=!0),!s)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!_a[o]?r.headers[o]:this._resHeaders[o];let i=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var en=L(wr=>{u();wr.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",s=Array.isArray(e);r=s?"[":"{";var n=!0;for(var i in e){var o=typeof e[i]=="function"||!s&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(n||(r+=","),n=!1,s?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=s?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};wr.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 nn=L((Al,sn)=>{"use strict";u();var xa=H("events"),tn=en(),Ra=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(H(e[r]))(t)}return new Map},rn=["sqlite","postgres","mysql","mongo","redis","tiered"],Er=class extends xa{constructor(e,{emitErrors:r=!0,...s}={}){if(super(),this.opts={namespace:"keyv",serialize:tn.stringify,deserialize:tn.parse,...typeof e=="string"?{uri:e}:e,...s},!this.opts.store){let i={...this.opts};this.opts.store=Ra(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 n=i=>async function*(){for await(let[o,a]of typeof i=="function"?i(this.opts.store.namespace):i){let l=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof l.expires=="number"&&Date.now()>l.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),l.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return rn.includes(this.opts.store.opts.dialect)||rn.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:s}=this.opts,n=Array.isArray(e),i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&s.getMany===void 0){let o=[];for(let a of i)o.push(Promise.resolve().then(()=>s.get(a)).then(l=>typeof l=="string"?this.opts.deserialize(l):this.opts.compression?this.opts.deserialize(l):l).then(l=>{if(l!=null)return typeof l.expires=="number"&&Date.now()>l.expires?this.delete(a).then(()=>{}):r&&r.raw?l:l.value}));return Promise.allSettled(o).then(a=>{let l=[];for(let d of a)l.push(d.value);return l})}return Promise.resolve().then(()=>n?s.getMany(i):s.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return n?o.map((a,l)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[l]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,s){let n=this._getKeyPrefix(e);typeof s>"u"&&(s=this.opts.ttl),s===0&&(s=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof s=="number"?Date.now()+s:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(n,o,s)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of n)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let s=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(s))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:s}=this.opts;return Promise.resolve().then(async()=>typeof s.has=="function"?s.has(r):await s.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};sn.exports=Er});var un=L((Jl,hn)=>{"use strict";u();var ja=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];hn.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(ja)),s={};for(let n of r)n in e||(s[n]={get(){let i=t[n];return typeof i=="function"?i.bind(t):i},set(i){t[n]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,s),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 dn=L((Yl,ln)=>{"use strict";u();var{Transform:va,PassThrough:Ha}=H("stream"),Or=H("zlib"),$a=un();ln.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Or.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let s=!0,n=new va({transform(a,l,d){s=!1,d(null,a)},flush(a){a()}}),i=new Ha({autoDestroy:!1,destroy(a,l){t.destroy(),l(a)}}),o=r?Or.createBrotliDecompress():Or.createUnzip();return o.once("error",a=>{if(s&&!t.readable){i.end();return}i.destroy(a)}),$a(t,i),t.pipe(n).pipe(o).pipe(i),i}});var Ir=L((nf,kn)=>{"use strict";u();var $r=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[s,n]of this.oldCache.entries())this.onEviction(s,n);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)}};kn.exports=$r});var Nr=L((af,Cn)=>{"use strict";u();Cn.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let s=r.pop();t.__destroy(...r,async n=>{await Promise.resolve(),s(n)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var we=L((hf,vn)=>{"use strict";u();var{URL:Pn}=H("url"),sc=H("events"),nc=H("tls"),ic=H("http2"),oc=Ir(),ac=Nr(),J=Symbol("currentStreamCount"),An=Symbol("request"),K=Symbol("cachedOriginSet"),pe=Symbol("gracefullyClosing"),$t=Symbol("length"),Dn=["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"],cc=(t,e,r)=>{let s=0,n=t.length;for(;s<n;){let i=s+n>>>1;r(t[i],e)?s=i+1:n=i}return s},hc=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,qr=(t,e)=>{for(let r=0;r<t.length;r++){let s=t[r];s[K].length>0&&s[K].length<e[K].length&&s[K].every(n=>e[K].includes(n))&&s[J]+e[J]<=e.remoteSettings.maxConcurrentStreams&&jn(s)}},Ln=(t,e)=>{for(let r=0;r<t.length;r++){let s=t[r];if(e[K].length>0&&e[K].length<s[K].length&&e[K].every(n=>s[K].includes(n))&&e[J]+s[J]<=s.remoteSettings.maxConcurrentStreams)return jn(e),!0}return!1},jn=t=>{t[pe]=!0,t[J]===0&&t.close()},Ne=class t extends sc{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:s=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=s,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new oc({maxSize:n})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let s=0;s<Dn.length;s++){let n=Dn[s];r+=":",e&&e[n]!==void 0&&(r+=e[n])}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 s=this.queue[e][r];s.completed||(s.completed=!0,s())}}_isBetterSession(e,r){return e>r}_accept(e,r,s,n){let i=0;for(;i<r.length&&e[J]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(s,n,r),r.length=0)}getSession(e,r,s){return new Promise((n,i)=>{Array.isArray(s)&&s.length>0?(s=[...s],n()):s=[{resolve:n,reject:i}];try{if(typeof e=="string")e=new Pn(e);else if(!(e instanceof Pn))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:y}=r,{hostname:R}=e;if(y&&R!==y)throw new Error(`Origin ${R} differs from servername ${y}`)}}catch(y){for(let R=0;R<s.length;R++)s[R].reject(y);return}let o=this.normalizeOptions(r),a=e.origin;if(o in this.sessions){let y=this.sessions[o],R=-1,g=-1,S;for(let O=0;O<y.length;O++){let f=y[O],A=f.remoteSettings.maxConcurrentStreams;if(A<R)break;if(!f[K].includes(a))continue;let _=f[J];_>=A||f[pe]||f.destroyed||(S||(R=A),this._isBetterSession(_,g)&&(S=f,g=_))}if(S){this._accept(S,s,a,r);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...s);return}}else this.queue[o]={[$t]:0};let l=()=>{o in this.queue&&this.queue[o][a]===d&&(delete this.queue[o][a],--this.queue[o][$t]===0&&delete this.queue[o])},d=async()=>{this._sessionCount++;let y=`${a}:${o}`,R=!1,g;try{let S={...r};S.settings===void 0&&(S.settings=this.settings),S.session===void 0&&(S.session=this.tlsSessionCache.get(y)),g=await(S.createConnection||this.createConnection).call(this,e,S),S.createConnection=()=>g;let f=ic.connect(e,S);f[J]=0,f[pe]=!1;let A=()=>{let{socket:x}=f,D;return x.servername===!1?(x.servername=x.remoteAddress,D=f.originSet,x.servername=!1):D=f.originSet,D},_=()=>f[J]<f.remoteSettings.maxConcurrentStreams;f.socket.once("session",x=>{this.tlsSessionCache.set(y,x)}),f.once("error",x=>{for(let D=0;D<s.length;D++)s[D].reject(x);this.tlsSessionCache.delete(y)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(this._sessionCount--,R){this._emptySessionCount--;let x=this.sessions[o];x.length===1?delete this.sessions[o]:x.splice(x.indexOf(f),1)}else{l();let x=new Error("Session closed without receiving a SETTINGS frame");x.code="HTTP2WRAPPER_NOSETTINGS";for(let D=0;D<s.length;D++)s[D].reject(x)}this._processQueue()});let j=()=>{let x=this.queue[o];if(!x)return;let D=f[K];for(let U=0;U<D.length;U++){let z=D[U];if(z in x){let{listeners:Q,completed:M}=x[z],v=0;for(;v<Q.length&&_();)Q[v].resolve(f),v++;if(x[z].listeners.splice(0,v),x[z].listeners.length===0&&!M&&(delete x[z],--x[$t]===0)){delete this.queue[o];break}if(!_())break}}};f.on("origin",()=>{f[K]=A()||[],f[pe]=!1,Ln(this.sessions[o],f),!(f[pe]||!_())&&(j(),_()&&qr(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(d.destroyed){let x=new Error("Agent has been destroyed");for(let D=0;D<s.length;D++)s[D].reject(x);f.destroy();return}if(f.setLocalWindowSize&&f.setLocalWindowSize(1024*1024*4),f[K]=A()||[],f.socket.encrypted){let x=f[K][0];if(x!==a){let D=new Error(`Requested origin ${a} does not match server ${x}`);for(let U=0;U<s.length;U++)s[U].reject(D);f.destroy();return}}l();{let x=this.sessions;if(o in x){let D=x[o];D.splice(cc(D,f,hc),0,f)}else x[o]=[f]}R=!0,this._emptySessionCount++,this.emit("session",f),this._accept(f,s,a,r),f[J]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),f.on("remoteSettings",()=>{_()&&(j(),_()&&qr(this.sessions[o],f))})}),f[An]=f.request,f.request=(x,D)=>{if(f[pe])throw new Error("The session is gracefully closing. No new streams are allowed.");let U=f[An](x,D);return f.ref(),f[J]++===0&&this._emptySessionCount--,U.once("close",()=>{if(--f[J]===0&&(this._emptySessionCount++,f.unref(),this._emptySessionCount>this.maxEmptySessions||f[pe])){f.close();return}f.destroyed||f.closed||_()&&!Ln(this.sessions[o],f)&&(qr(this.sessions[o],f),j(),f[J]===0&&this._processQueue())}),U}}catch(S){l(),this._sessionCount--;for(let O=0;O<s.length;O++)s[O].reject(S)}};d.listeners=s,d.completed=!1,d.destroyed=!1,this.queue[o][a]=d,this.queue[o][$t]++,this._processQueue()})}request(e,r,s,n){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{let l=a.request(s,n);ac(l),i(l)}catch(l){o(l)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let s=e.port||443,n=e.hostname;typeof r.servername>"u"&&(r.servername=n);let i=nc.connect(s,n,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:s}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:s}=this;for(let n in s){let i=s[n];for(let o=0;o<i.length;o++){let a=i[o];if(a[J]===0&&(r++,a.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:s}=this;for(let n in r){let i=r[n];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let n in s){let i=s[n];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Ne.kCurrentStreamCount=J;Ne.kGracefullyClosing=pe;vn.exports={Agent:Ne,globalAgent:new Ne}});var Br=L((lf,Hn)=>{"use strict";u();var{Readable:uc}=H("stream"),Ur=class extends uc{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()}};Hn.exports=Ur});var In=L((ff,$n)=>{"use strict";u();$n.exports=(t,e,r)=>{for(let s of r)t.on(s,(...n)=>e.emit(s,...n))}});var ht=L((yf,Nn)=>{"use strict";u();var Ee=(t,e,r)=>{Nn.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Ee(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],s=Array.isArray(r);return s&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${s?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ee(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ee(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ee(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ee(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ee(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);Ee(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var Un=L((bf,qn)=>{"use strict";u();qn.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Mr=L((wf,Bn)=>{"use strict";u();var{ERR_INVALID_HTTP_TOKEN:lc}=ht(),dc=Un(),fc=/^[\^`\-\w!#$%&*+.|~]+$/;Bn.exports=t=>{if(typeof t!="string"||!fc.test(t)&&!dc(t))throw new lc("Header name",t)}});var zr=L((Sf,Mn)=>{"use strict";u();var{ERR_HTTP_INVALID_HEADER_VALUE:pc,ERR_INVALID_CHAR:mc}=ht(),yc=/[^\t\u0020-\u007E\u0080-\u00FF]/;Mn.exports=(t,e)=>{if(typeof e>"u")throw new pc(e,t);if(yc.test(e))throw new mc("header content",t)}});var Vn=L((Rf,Fn)=>{"use strict";u();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:zn}=ht(),gc={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 zn;default:{let r=t.session===void 0?t:t.session.socket,s=r[e];return typeof s=="function"?s.bind(r):s}}},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:s}=t;return s===void 0?t.setTimeout=r:s.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new zn;default:{let s=t.session===void 0?t:t.session.socket;return s[e]=r,!0}}}};Fn.exports=gc});var Wr=L((Tf,Qn)=>{"use strict";u();var{URL:Fr,urlToHttpOptions:Gn}=H("url"),bc=H("http2"),{Writable:_c}=H("stream"),{Agent:wc,globalAgent:Ec}=we(),Sc=Br(),xc=In(),{ERR_INVALID_ARG_TYPE:It,ERR_INVALID_PROTOCOL:Rc,ERR_HTTP_HEADERS_SENT:Wn}=ht(),Oc=Mr(),Tc=zr(),kc=Vn(),{HTTP2_HEADER_STATUS:Jn,HTTP2_HEADER_METHOD:Kn,HTTP2_HEADER_PATH:Yn,HTTP2_HEADER_AUTHORITY:ut,HTTP2_METHOD_CONNECT:Cc}=bc.constants,V=Symbol("headers"),qe=Symbol("origin"),lt=Symbol("session"),Vr=Symbol("options"),Nt=Symbol("flushedHeaders"),Ue=Symbol("jobs"),dt=Symbol("pendingAgentPromise"),Gr=class extends _c{constructor(e,r,s){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=Gn(new Fr(e)):e instanceof Fr?e=Gn(e):e={...e},typeof r=="function"||r===void 0?(s=r,r=e):r=Object.assign(e,r),r.h2session){if(this[lt]=r.h2session,this[lt].destroyed)throw new Error("The session has been closed already");this.protocol=this[lt].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new wc({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=Ec;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new It("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:n}=r;r.timeout=void 0,this[V]=Object.create(null),this[Ue]=[],this[dt]=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[V])&&(this[V].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Vr]=r,this[qe]=new Fr(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...a)=>o.destroyed?this.agent.createConnection(...a):o,this.agent.getSession(this[qe],this[Vr]).catch(()=>{})),n&&this.setTimeout(n),s&&this.once("response",s),this[Nt]=!1}get method(){return this[V][Kn]}set method(e){e&&(this[V][Kn]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?ut:Yn;return this[V][e]}set path(e){if(e){let r=this.method==="CONNECT"?ut:Yn;this[V][r]=e}}get host(){return this[qe].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,s){if(this._mustNotHaveABody){s(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,s);this._request?n():this[Ue].push(n)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Ue].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[dt]}catch(s){this.aborted&&(e=s)}r(e)}async flushHeaders(){if(this[Nt]||this.destroyed)return;this[Nt]=!0;let e=this.method===Cc,r=s=>{if(this._request=s,this.destroyed){s.destroy();return}e||xc(s,this,["timeout","continue"]),s.once("error",i=>{this.destroy(i)}),s.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 n=(i,o,a)=>{let l=new Sc(this.socket,s.readableHighWaterMark);this.res=l,l.url=`${this[qe].origin}${this.path}`,l.req=this,l.statusCode=i[Jn],l.headers=i,l.rawHeaders=a,l.once("end",()=>{l.complete=!0,l.socket=null,l.connection=null}),e?(l.upgrade=!0,this.emit("connect",l,s,Buffer.alloc(0))?this.emit("close"):s.destroy()):(s.on("data",d=>{!l._dumped&&!l.push(d)&&s.pause()}),s.once("end",()=>{this.aborted||l.push(null)}),this.emit("response",l)||l._dump())};s.once("response",n),s.once("headers",i=>this.emit("information",{statusCode:i[Jn]})),s.once("trailers",(i,o,a)=>{let{res:l}=this;if(l===null){n(i,o,a);return}l.trailers=i,l.rawTrailers=a}),s.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let a=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.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(s,kc);for(let i of this[Ue])i();this[Ue].length=0,this.emit("socket",this.socket)};if(!(ut in this[V])&&!e&&(this[V][ut]=this[qe].host),this[lt])try{r(this[lt].request(this[V]))}catch(s){this.destroy(s)}else{this.reusedSocket=!0;try{let s=this.agent.request(this[qe],this[Vr],this[V]);this[dt]=s,r(await s),this[dt]=!1}catch(s){this[dt]=!1,this.destroy(s)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[V])}hasHeader(e){if(typeof e!="string")throw new It("name","string",e);return!!this[V][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new It("name","string",e);return this[V][e.toLowerCase()]}get headersSent(){return this[Nt]}removeHeader(e){if(typeof e!="string")throw new It("name","string",e);if(this.headersSent)throw new Wn("remove");delete this[V][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new Wn("set");Oc(e),Tc(e,r);let s=e.toLowerCase();if(s==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}s==="host"&&this.method==="CONNECT"?this[V][ut]=r:this[V][s]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let s=()=>this._request.setTimeout(e,r);return this._request?s():this[Ue].push(s),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Qn.exports=Gr});var Zn=L((Cf,Xn)=>{"use strict";u();var Pc=H("tls");Xn.exports=(t={},e=Pc.connect)=>new Promise((r,s)=>{let n=!1,i,o=async()=>{await l,i.off("timeout",a),i.off("error",s),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:n}),n&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},l=(async()=>{try{i=await e(t,o),i.on("error",s),i.once("timeout",a)}catch(d){s(d)}})()})});var ti=L((Af,ei)=>{"use strict";u();var{isIP:Ac}=H("net"),Dc=H("assert"),Lc=t=>{if(t[0]==="["){let r=t.indexOf("]");return Dc(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};ei.exports=t=>{let e=Lc(t);return Ac(e)?"":e}});var hi=L((Lf,ft)=>{"use strict";u();var{URL:ri,urlToHttpOptions:si}=H("url"),ni=H("http"),Jr=H("https"),jc=Zn(),vc=Ir(),{Agent:Hc,globalAgent:$c}=we(),Ic=Wr(),Nc=ti(),ii=Nr(),oi=new vc({maxSize:100}),qc=new Map,Uc=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let s=()=>{t.emit("free",e,r)};e.on("free",s);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let i=()=>{let{freeSockets:a}=t;for(let l of Object.values(a))if(l.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",s),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},ai=(t,e=new Map,r=void 0)=>async s=>{let n=`${s.host}:${s.port}:${s.ALPNProtocols.sort()}`;if(!t.has(n)){if(e.has(n))return{alpnProtocol:(await e.get(n)).alpnProtocol};let{path:i}=s;s.path=s.socketPath;let o=jc(s,r);e.set(n,o);try{let a=await o;return t.set(n,a.alpnProtocol),e.delete(n),s.path=i,a}catch(a){throw e.delete(n),s.path=i,a}}return{alpnProtocol:t.get(n)}},ci=ai(oi,qc);ft.exports=async(t,e,r)=>{if(typeof t=="string"?t=si(new ri(t)):t instanceof ri?t=si(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 s=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||Nc(e.headers&&e.headers.host||e.host),e.port=e.port||(s?443:80),e._defaultAgent=s?Jr.globalAgent:ni.globalAgent;let n=e.resolveProtocol||ci,{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(s){e.resolveSocket=!0;let{socket:o,alpnProtocol:a,timeout:l}=await n(e);if(l){o&&o.destroy();let y=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw y.code="ETIMEDOUT",y.ms=e.timeout,y}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let d=a==="h2";if(i&&(i=d?i.http2:i.https,e.agent=i),i===void 0&&(i=d?$c:Jr.globalAgent),o)if(i===!1)o.destroy();else{let y=(d?Hc:Jr.Agent).prototype.createConnection;i.createConnection===y?d?e._reuseSocket=o:Uc(i,o,e):o.destroy()}if(d)return ii(new Ic(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"]),ii(ni.request(e,r))};ft.exports.protocolCache=oi;ft.exports.resolveProtocol=ci;ft.exports.createResolveProtocol=ai});var Kr=L((vf,ui)=>{"use strict";u();var Bc=H("stream"),Mc=H("tls"),zc=new Mc.TLSSocket(new Bc.PassThrough)._handle._parentWrap.constructor;ui.exports=zc});var Qr=L(($f,li)=>{"use strict";u();var Yr=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};li.exports=Yr});var fi=L((Nf,di)=>{"use strict";u();var Fc=(t,e,r)=>{if(!r.some(n=>typeof n==="string"?typeof e===n:e instanceof n)){let n=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${n.join(" or ")}, got ${typeof e}`)}};di.exports=Fc});var Xr=L((Uf,mi)=>{"use strict";u();var{URL:pi}=H("url"),qt=fi();mi.exports=(t,e)=>{qt("proxyOptions",e,["object"]),qt("proxyOptions.headers",e.headers,["object","undefined"]),qt("proxyOptions.raw",e.raw,["boolean","undefined"]),qt("proxyOptions.url",e.url,[pi,"string"]);let r=new pi(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var Ut=L((Mf,yi)=>{"use strict";u();yi.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let s=`${e}:${r}`,n=`Basic ${Buffer.from(s).toString("base64")}`;return{"proxy-authorization":n,authorization:n}}return{}}});var Ei=L((Ff,wi)=>{"use strict";u();var Vc=H("tls"),Gc=H("http"),gi=H("https"),Wc=Kr(),{globalAgent:Jc}=we(),Kc=Qr(),bi=Xr(),Yc=Ut(),_i=(t,e,r)=>{(async()=>{try{let{proxyOptions:s}=t,{url:n,headers:i,raw:o}=s,a=await Jc.request(n,s,{...Yc(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",l=>{let d=l[":status"];if(d!==200){r(new Kc(d,""));return}let y=t instanceof gi.Agent;if(o&&y){e.socket=a;let g=Vc.connect(e);g.once("close",()=>{a.destroy()}),r(null,g);return}let R=new Wc(a);R.encrypted=!1,R._handle.getpeername=g=>{g.family=void 0,g.address=void 0,g.port=void 0},r(null,R)})}catch(s){r(s)}})()},Zr=class extends Gc.Agent{constructor(e){super(e),bi(this,e.proxyOptions)}createConnection(e,r){_i(this,e,r)}},es=class extends gi.Agent{constructor(e){super(e),bi(this,e.proxyOptions)}createConnection(e,r){_i(this,e,r)}};wi.exports={HttpOverHttp2:Zr,HttpsOverHttp2:es}});var rs=L((Gf,Si)=>{"use strict";u();var{Agent:Qc}=we(),Xc=Kr(),Zc=Qr(),eh=Xr(),ts=class extends Qc{constructor(e){super(e),eh(this,e.proxyOptions)}async createConnection(e,r){let s=`${e.hostname}:${e.port||443}`,[n,i,o]=await this._getProxyStream(s);if(i!==200)throw new Zc(i,o);if(this.proxyOptions.raw)r.socket=n;else{let a=new Xc(n);return a.encrypted=!1,a._handle.getpeername=l=>{l.family=void 0,l.address=void 0,l.port=void 0},a}return super.createConnection(e,r)}};Si.exports=ts});var Ri=L((Jf,xi)=>{"use strict";u();var{globalAgent:th}=we(),rh=rs(),sh=Ut(),nh=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",s=>{t.off("error",r),e(s[":status"])})}),ss=class extends rh{async _getProxyStream(e){let{proxyOptions:r}=this,s={...sh(this),...r.headers,":method":"CONNECT",":authority":e},n=await th.request(r.url,r,s),i=await nh(n);return[n,i,""]}};xi.exports=ss});var Ti=L((Yf,Oi)=>{"use strict";u();var ih=H("http"),oh=H("https"),ah=rs(),ch=Ut(),hh=t=>new Promise((e,r)=>{let s=(n,i,o)=>{i.unshift(o),t.off("error",r),e([i,n.statusCode,n.statusMessage])};t.once("error",r),t.once("connect",s)}),Bt=class extends ah{async _getProxyStream(e){let{proxyOptions:r}=this,{url:s,headers:n}=this.proxyOptions,o=(s.protocol==="https:"?oh:ih).request({...r,hostname:s.hostname,port:s.port,path:e,headers:{...ch(this),...n,host:e},method:"CONNECT"}).end();return hh(o)}};Oi.exports={Http2OverHttp:Bt,Http2OverHttps:Bt}});var Ci=L((Xf,ki)=>{"use strict";u();var uh=H("http2"),{Agent:lh,globalAgent:dh}=we(),ns=Wr(),fh=Br(),ph=hi(),{HttpOverHttp2:mh,HttpsOverHttp2:yh}=Ei(),gh=Ri(),{Http2OverHttp:bh,Http2OverHttps:_h}=Ti(),wh=Mr(),Eh=zr(),Sh=(t,e,r)=>new ns(t,e,r),xh=(t,e,r)=>{let s=new ns(t,e,r);return s.end(),s};ki.exports={...uh,ClientRequest:ns,IncomingMessage:fh,Agent:lh,globalAgent:dh,request:Sh,get:xh,auto:ph,proxies:{HttpOverHttp2:mh,HttpsOverHttp2:yh,Http2OverHttp2:gh,Http2OverHttp:bh,Http2OverHttps:_h},validateHeaderName:wh,validateHeaderValue:Eh}});u();u();u();import ne from"node:process";function Ve(){return ne.platform!=="win32"?ne.env.TERM!=="linux":!!ne.env.WT_SESSION||!!ne.env.TERMINUS_SUBLIME||ne.env.ConEmuTask==="{cmd::Cmder}"||ne.env.TERM_PROGRAM==="Terminus-Sublime"||ne.env.TERM_PROGRAM==="vscode"||ne.env.TERM==="xterm-256color"||ne.env.TERM==="alacritty"||ne.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Os={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Ts={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ho={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},er={...Os,...Ts},uo={...Os,...ho},lo=Ve(),fo=lo?er:uo,ks=fo,Tu=Object.entries(Ts);var tr={...ie.testLike?er:ks};if(Ve()&&ee.windowsOrWsl)for(let t of["tick","cross"])tr[t]+=" ";u();var Yt=X(_s(),1);u();var Ge=X(_s(),1),Us=X($s(),1),cr=X(Ns(),1);import Do from"node:assert";import{createHash as Lo}from"node:crypto";import De from"node:path";import{Transform as jo}from"node:stream";import{pipeline as vo}from"node:stream/promises";var Ho=[".DS_Store","node_modules",".git"],$o=[".gadget/sync.json",".gadget/backup","yarn-error.log"],qs=class t{constructor(e){this.path=e}_ignorer;_isHashing=!1;static async init(e){let r=new t(e);return await r.loadIgnoreFile(),r}relative(e){return De.isAbsolute(e)?De.relative(this.path,e):e}absolute(...e){let r=De.resolve(this.path,...e);return Do(r.startsWith(this.path),`expected ${r} to be within ${this.path}`),r}normalize(e,r){return De.isAbsolute(e)&&(e=this.relative(e)),e=(0,cr.default)(e,!0),r&&(e+="/"),e}async loadIgnoreFile(){this._ignorer=Us.default.default(),this._ignorer.add(Ho);try{let e=await Ge.default.readFile(this.absolute(".ignore"),"utf8");this._ignorer.add(e)}catch(e){Et(e)}}ignores(e){return e=this.relative(e),e===""?!1:e.startsWith("..")||(e=(0,cr.default)(e,!1),this._isHashing&&$o.some(r=>e.startsWith(r)))?!0:this._ignorer.ignores(e)}async*walk({dir:e=this.path}={}){e!==this.path&&(yield this.normalize(e,!0));for await(let r of await Ge.default.opendir(e)){let s=De.join(e,r.name);this.ignores(s)||(r.isDirectory()?yield*this.walk({dir:s}):r.isFile()&&(yield this.normalize(s,!1)))}}async hashes(){try{this._isHashing=!0;let e={};for await(let r of this.walk()){let s=this.absolute(r);e[r]=await No(s)}return e}finally{this._isHashing=!1}}async hasFiles(){return!await this.isEmptyOrNonExistent()}async isEmptyOrNonExistent(){let e=!0;try{for await(let r of this.walk()){e=!1;break}}catch(r){Et(r)}return e}},Io=process.platform==="linux"||process.platform==="darwin",No=async t=>{let e=Lo("sha1");e.update(De.basename(t));let r=await Ge.default.stat(t),s;if(Io&&(s=r.mode&511),r.isDirectory())return{sha1:e.digest("hex"),permissions:s};let n=new jo({transform(i,o,a){if(!i.includes(13)){a(void 0,i);return}let l=Buffer.alloc(i.length),d=0;for(let y of i)y!==13&&(l[d++]=y);a(void 0,l.slice(0,d))}});return await vo(Ge.default.createReadStream(t),n,e),{sha1:e.digest("hex"),permissions:s}},Et=t=>{if(!(t&&typeof t=="object"&&"code"in t&&t.code==="ENOENT"))throw t};u();u();u();u();u();function hr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}u();import qo from"node:os";var Uo=()=>qo.homedir().replace(/\\/g,"/"),Bs=Uo;var Ms=/\s+at.*[(\s](.*)\)?/,zs=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function ur(t,{pretty:e=!1,basePath:r,pathFilter:s}={}){let n=r&&new RegExp(`(file://)?${hr(r.replace(/\\/g,"/"))}/?`,"g"),i=e?Bs():"";if(typeof t=="string")return t.replace(/\\/g,"/").split(`
2
2
  `).filter(o=>{let a=o.match(Ms);if(a===null||!a[1])return!0;let l=a[1];return l.includes(".app/Contents/Resources/electron.asar")||l.includes(".app/Contents/Resources/default_app.asar")||l.includes("node_modules/electron/dist/resources/electron.asar")||l.includes("node_modules/electron/dist/resources/default_app.asar")?!1:s?!zs.test(l)&&s(l):!zs.test(l)}).filter(o=>o.trim()!=="").map(o=>(n&&(o=o.replace(n,"")),e&&(o=o.replace(Ms,(a,l)=>a.replace(l,l.replace(i,"~")))),o)).join(`
3
3
  `)}u();u();u();var Fs=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Bo(t){return Fs.includes(t)}var Mo=["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",...Fs];function zo(t){return Mo.includes(t)}var Fo=["null","undefined","string","number","bigint","boolean","symbol"];function Vo(t){return Fo.includes(t)}function Le(t){return e=>typeof e===t}var{toString:Go}=Object.prototype,We=t=>{let e=Go.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&c.domElement(t))return"HTMLElement";if(zo(e))return e},$=t=>e=>We(e)===t;function c(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(c.observable(t))return"Observable";if(c.array(t))return"Array";if(c.buffer(t))return"Buffer";let e=We(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"}c.undefined=Le("undefined");c.string=Le("string");var Wo=Le("number");c.number=t=>Wo(t)&&!c.nan(t);c.positiveNumber=t=>c.number(t)&&t>0;c.negativeNumber=t=>c.number(t)&&t<0;c.bigint=Le("bigint");c.function_=Le("function");c.null_=t=>t===null;c.class_=t=>c.function_(t)&&t.toString().startsWith("class ");c.boolean=t=>t===!0||t===!1;c.symbol=Le("symbol");c.numericString=t=>c.string(t)&&!c.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));c.array=(t,e)=>Array.isArray(t)?c.function_(e)?t.every(r=>e(r)):!0:!1;c.buffer=t=>t?.constructor?.isBuffer?.(t)??!1;c.blob=t=>$("Blob")(t);c.nullOrUndefined=t=>c.null_(t)||c.undefined(t);c.object=t=>!c.null_(t)&&(typeof t=="object"||c.function_(t));c.iterable=t=>c.function_(t?.[Symbol.iterator]);c.asyncIterable=t=>c.function_(t?.[Symbol.asyncIterator]);c.generator=t=>c.iterable(t)&&c.function_(t?.next)&&c.function_(t?.throw);c.asyncGenerator=t=>c.asyncIterable(t)&&c.function_(t.next)&&c.function_(t.throw);c.nativePromise=t=>$("Promise")(t);var Jo=t=>c.function_(t?.then)&&c.function_(t?.catch);c.promise=t=>c.nativePromise(t)||Jo(t);c.generatorFunction=$("GeneratorFunction");c.asyncGeneratorFunction=t=>We(t)==="AsyncGeneratorFunction";c.asyncFunction=t=>We(t)==="AsyncFunction";c.boundFunction=t=>c.function_(t)&&!t.hasOwnProperty("prototype");c.regExp=$("RegExp");c.date=$("Date");c.error=$("Error");c.map=t=>$("Map")(t);c.set=t=>$("Set")(t);c.weakMap=t=>$("WeakMap")(t);c.weakSet=t=>$("WeakSet")(t);c.weakRef=t=>$("WeakRef")(t);c.int8Array=$("Int8Array");c.uint8Array=$("Uint8Array");c.uint8ClampedArray=$("Uint8ClampedArray");c.int16Array=$("Int16Array");c.uint16Array=$("Uint16Array");c.int32Array=$("Int32Array");c.uint32Array=$("Uint32Array");c.float32Array=$("Float32Array");c.float64Array=$("Float64Array");c.bigInt64Array=$("BigInt64Array");c.bigUint64Array=$("BigUint64Array");c.arrayBuffer=$("ArrayBuffer");c.sharedArrayBuffer=$("SharedArrayBuffer");c.dataView=$("DataView");c.enumCase=(t,e)=>Object.values(e).includes(t);c.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;c.urlInstance=t=>$("URL")(t);c.urlString=t=>{if(!c.string(t))return!1;try{return new URL(t),!0}catch{return!1}};c.truthy=t=>!!t;c.falsy=t=>!t;c.nan=t=>Number.isNaN(t);c.primitive=t=>c.null_(t)||Vo(typeof t);c.integer=t=>Number.isInteger(t);c.safeInteger=t=>Number.isSafeInteger(t);c.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)};c.typedArray=t=>Bo(We(t));var Ko=t=>c.safeInteger(t)&&t>=0;c.arrayLike=t=>!c.nullOrUndefined(t)&&!c.function_(t)&&Ko(t.length);c.tupleLike=(t,e)=>c.array(e)&&c.array(t)&&e.length===t.length?e.every((r,s)=>r(t[s])):!1;c.inRange=(t,e)=>{if(c.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(c.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var Yo=1,Qo=["innerHTML","ownerDocument","style","attributes","nodeValue"];c.domElement=t=>c.object(t)&&t.nodeType===Yo&&c.string(t.nodeName)&&!c.plainObject(t)&&Qo.every(e=>e in t);c.observable=t=>t?t===t[Symbol.observable]?.()||t===t["@@observable"]?.():!1;c.nodeStream=t=>c.object(t)&&c.function_(t.pipe)&&!c.observable(t);c.infinite=t=>t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY;var Vs=t=>e=>c.integer(e)&&Math.abs(e%2)===t;c.evenInteger=Vs(0);c.oddInteger=Vs(1);c.emptyArray=t=>c.array(t)&&t.length===0;c.nonEmptyArray=t=>c.array(t)&&t.length>0;c.emptyString=t=>c.string(t)&&t.length===0;var Xo=t=>c.string(t)&&!/\S/.test(t);c.emptyStringOrWhitespace=t=>c.emptyString(t)||Xo(t);c.nonEmptyString=t=>c.string(t)&&t.length>0;c.nonEmptyStringAndNotWhitespace=t=>c.string(t)&&!c.emptyStringOrWhitespace(t);c.emptyObject=t=>c.object(t)&&!c.map(t)&&!c.set(t)&&Object.keys(t).length===0;c.nonEmptyObject=t=>c.object(t)&&!c.map(t)&&!c.set(t)&&Object.keys(t).length>0;c.emptySet=t=>c.set(t)&&t.size===0;c.nonEmptySet=t=>c.set(t)&&t.size>0;c.emptyMap=t=>c.map(t)&&t.size===0;c.nonEmptyMap=t=>c.map(t)&&t.size>0;c.propertyKey=t=>c.any([c.string,c.number,c.symbol],t);c.formData=t=>$("FormData")(t);c.urlSearchParams=t=>$("URLSearchParams")(t);var Gs=(t,e,r)=>{if(!c.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)};c.any=(t,...e)=>(c.array(t)?t:[t]).some(s=>Gs(Array.prototype.some,s,e));c.all=(t,...e)=>Gs(Array.prototype.every,t,e);var m=(t,e,r,s={})=>{if(!t){let{multipleValues:n}=s,i=n?`received values of types ${[...new Set(r.map(o=>`\`${c(o)}\``))].join(", ")}`:`received value of type \`${c(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${i}.`)}},p={undefined:t=>m(c.undefined(t),"undefined",t),string:t=>m(c.string(t),"string",t),number:t=>m(c.number(t),"number",t),positiveNumber:t=>m(c.positiveNumber(t),"positive number",t),negativeNumber:t=>m(c.negativeNumber(t),"negative number",t),bigint:t=>m(c.bigint(t),"bigint",t),function_:t=>m(c.function_(t),"Function",t),null_:t=>m(c.null_(t),"null",t),class_:t=>m(c.class_(t),"Class",t),boolean:t=>m(c.boolean(t),"boolean",t),symbol:t=>m(c.symbol(t),"symbol",t),numericString:t=>m(c.numericString(t),"string with a number",t),array:(t,e)=>{m(c.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>m(c.buffer(t),"Buffer",t),blob:t=>m(c.blob(t),"Blob",t),nullOrUndefined:t=>m(c.nullOrUndefined(t),"null or undefined",t),object:t=>m(c.object(t),"Object",t),iterable:t=>m(c.iterable(t),"Iterable",t),asyncIterable:t=>m(c.asyncIterable(t),"AsyncIterable",t),generator:t=>m(c.generator(t),"Generator",t),asyncGenerator:t=>m(c.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>m(c.nativePromise(t),"native Promise",t),promise:t=>m(c.promise(t),"Promise",t),generatorFunction:t=>m(c.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>m(c.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>m(c.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>m(c.boundFunction(t),"Function",t),regExp:t=>m(c.regExp(t),"RegExp",t),date:t=>m(c.date(t),"Date",t),error:t=>m(c.error(t),"Error",t),map:t=>m(c.map(t),"Map",t),set:t=>m(c.set(t),"Set",t),weakMap:t=>m(c.weakMap(t),"WeakMap",t),weakSet:t=>m(c.weakSet(t),"WeakSet",t),weakRef:t=>m(c.weakRef(t),"WeakRef",t),int8Array:t=>m(c.int8Array(t),"Int8Array",t),uint8Array:t=>m(c.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>m(c.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>m(c.int16Array(t),"Int16Array",t),uint16Array:t=>m(c.uint16Array(t),"Uint16Array",t),int32Array:t=>m(c.int32Array(t),"Int32Array",t),uint32Array:t=>m(c.uint32Array(t),"Uint32Array",t),float32Array:t=>m(c.float32Array(t),"Float32Array",t),float64Array:t=>m(c.float64Array(t),"Float64Array",t),bigInt64Array:t=>m(c.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>m(c.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>m(c.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>m(c.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>m(c.dataView(t),"DataView",t),enumCase:(t,e)=>m(c.enumCase(t,e),"EnumCase",t),urlInstance:t=>m(c.urlInstance(t),"URL",t),urlString:t=>m(c.urlString(t),"string with a URL",t),truthy:t=>m(c.truthy(t),"truthy",t),falsy:t=>m(c.falsy(t),"falsy",t),nan:t=>m(c.nan(t),"NaN",t),primitive:t=>m(c.primitive(t),"primitive",t),integer:t=>m(c.integer(t),"integer",t),safeInteger:t=>m(c.safeInteger(t),"integer",t),plainObject:t=>m(c.plainObject(t),"plain object",t),typedArray:t=>m(c.typedArray(t),"TypedArray",t),arrayLike:t=>m(c.arrayLike(t),"array-like",t),tupleLike:(t,e)=>m(c.tupleLike(t,e),"tuple-like",t),domElement:t=>m(c.domElement(t),"HTMLElement",t),observable:t=>m(c.observable(t),"Observable",t),nodeStream:t=>m(c.nodeStream(t),"Node.js Stream",t),infinite:t=>m(c.infinite(t),"infinite number",t),emptyArray:t=>m(c.emptyArray(t),"empty array",t),nonEmptyArray:t=>m(c.nonEmptyArray(t),"non-empty array",t),emptyString:t=>m(c.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>m(c.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>m(c.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>m(c.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>m(c.emptyObject(t),"empty object",t),nonEmptyObject:t=>m(c.nonEmptyObject(t),"non-empty object",t),emptySet:t=>m(c.emptySet(t),"empty set",t),nonEmptySet:t=>m(c.nonEmptySet(t),"non-empty set",t),emptyMap:t=>m(c.emptyMap(t),"empty map",t),nonEmptyMap:t=>m(c.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>m(c.propertyKey(t),"PropertyKey",t),formData:t=>m(c.formData(t),"FormData",t),urlSearchParams:t=>m(c.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>m(c.evenInteger(t),"even integer",t),oddInteger:t=>m(c.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>m(c.directInstanceOf(t,e),"T",t),inRange:(t,e)=>m(c.inRange(t,e),"in range",t),any:(t,...e)=>m(c.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>m(c.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(c,{class:{value:c.class_},function:{value:c.function_},null:{value:c.null_}});Object.defineProperties(p,{class:{value:p.class_},function:{value:p.function_},null:{value:p.null_}});var h=c;u();import{EventEmitter as Vh}from"node:events";u();var lr=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},je=class t{static fn(e){return(...r)=>new t((s,n,i)=>{r.push(i),e(...r).then(s,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,s)=>{this._reject=s;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},i=a=>{this._isPending=!1,s(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(n,i,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new lr(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(je.prototype,Promise.prototype);u();function Zo(t){return h.object(t)&&"_onResponse"in t}var N=class extends Error{constructor(e,r,s){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,Zo(s)?(Object.defineProperty(this,"request",{enumerable:!1,value:s}),Object.defineProperty(this,"response",{enumerable:!1,value:s.response}),this.options=s.options):this.options=s,this.timings=this.request?.timings,h.string(r.stack)&&h.string(this.stack)){let n=this.stack.indexOf(this.message)+this.message.length,i=this.stack.slice(n).split(`
4
4
  `).reverse(),o=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
@@ -21,4 +21,4 @@ normalize-path/index.js:
21
21
  * Released under the MIT License.
22
22
  *)
23
23
  */
24
- //# sourceMappingURL=chunk-GA7AL463.js.map
24
+ //# sourceMappingURL=chunk-AQRCAWW4.js.map