updates 16.5.4 → 16.6.1

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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +743 -718
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  #!/usr/bin/env node
2
- import { argv as Xi, env as be, stdout as Fr, stderr as Ki, platform as Rr, versions as Wi, exit as zi, cwd as Yi } from "node:process";
2
+ import { argv as Ki, env as be, stdout as Br, stderr as Wi, platform as Rr, versions as zi, exit as Yi, cwd as Qi } from "node:process";
3
3
  import { dirname as Ar, resolve as Be, basename as He, join as _r } from "node:path";
4
- import { readFileSync as Br, lstatSync as Hr, truncateSync as Qi, writeFileSync as Ji, accessSync as Zi } from "node:fs";
5
- import { styleText as es, stripVTControlCharacters as ts } from "node:util";
6
- import { execFileSync as rs } from "node:child_process";
4
+ import { readFileSync as Hr, lstatSync as Gr, truncateSync as Ji, writeFileSync as Zi, accessSync as es } from "node:fs";
5
+ import { styleText as ts, stripVTControlCharacters as rs } from "node:util";
6
+ import { execFileSync as ns } from "node:child_process";
7
7
  import Ce from "fs";
8
8
  import me from "path";
9
- import ns from "constants";
10
- import Ni from "stream";
11
- import is from "util";
12
- import ss from "assert";
13
- import os from "events";
14
- import Li from "url";
15
- import as from "http";
16
- import us from "os";
17
- import { rootCertificates as cs } from "node:tls";
9
+ import is from "constants";
10
+ import Li from "stream";
11
+ import ss from "util";
12
+ import os from "assert";
13
+ import as from "events";
14
+ import Ci from "url";
15
+ import us from "http";
16
+ import cs from "os";
17
+ import { rootCertificates as ls } from "node:tls";
18
18
  var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
19
  function Ue(e) {
20
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21
21
  }
22
- var tt, Gr;
23
- function Ci() {
24
- if (Gr) return tt;
25
- Gr = 1;
22
+ var tt, Mr;
23
+ function Pi() {
24
+ if (Mr) return tt;
25
+ Mr = 1;
26
26
  function e(o, c) {
27
27
  var r = o;
28
28
  c.slice(0, -1).forEach(function(n) {
@@ -55,8 +55,8 @@ function Ci() {
55
55
  }
56
56
  Object.keys(c.alias || {}).forEach(function(x) {
57
57
  t[x] = [].concat(c.alias[x]), t[x].forEach(function(F) {
58
- t[F] = [x].concat(t[x].filter(function(M) {
59
- return F !== M;
58
+ t[F] = [x].concat(t[x].filter(function(G) {
59
+ return F !== G;
60
60
  }));
61
61
  });
62
62
  }), [].concat(c.string).filter(Boolean).forEach(function(x) {
@@ -68,21 +68,21 @@ function Ci() {
68
68
  function l(x, F) {
69
69
  return r.allBools && /^--[^=]+$/.test(F) || r.strings[x] || r.bools[x] || t[x];
70
70
  }
71
- function d(x, F, M) {
72
- for (var G = x, T = 0; T < F.length - 1; T++) {
71
+ function d(x, F, G) {
72
+ for (var M = x, T = 0; T < F.length - 1; T++) {
73
73
  var _ = F[T];
74
- if (s(G, _))
74
+ if (s(M, _))
75
75
  return;
76
- G[_] === void 0 && (G[_] = {}), (G[_] === Object.prototype || G[_] === Number.prototype || G[_] === String.prototype) && (G[_] = {}), G[_] === Array.prototype && (G[_] = []), G = G[_];
76
+ M[_] === void 0 && (M[_] = {}), (M[_] === Object.prototype || M[_] === Number.prototype || M[_] === String.prototype) && (M[_] = {}), M[_] === Array.prototype && (M[_] = []), M = M[_];
77
77
  }
78
78
  var L = F[F.length - 1];
79
- s(G, L) || ((G === Object.prototype || G === Number.prototype || G === String.prototype) && (G = {}), G === Array.prototype && (G = []), G[L] === void 0 || r.bools[L] || typeof G[L] == "boolean" ? G[L] = M : Array.isArray(G[L]) ? G[L].push(M) : G[L] = [G[L], M]);
79
+ s(M, L) || ((M === Object.prototype || M === Number.prototype || M === String.prototype) && (M = {}), M === Array.prototype && (M = []), M[L] === void 0 || r.bools[L] || typeof M[L] == "boolean" ? M[L] = G : Array.isArray(M[L]) ? M[L].push(G) : M[L] = [M[L], G]);
80
80
  }
81
- function f(x, F, M) {
82
- if (!(M && r.unknownFn && !l(x, M) && r.unknownFn(M) === !1)) {
83
- var G = !r.strings[x] && i(F) ? Number(F) : F;
84
- d(a, x.split("."), G), (t[x] || []).forEach(function(T) {
85
- d(a, T.split("."), G);
81
+ function f(x, F, G) {
82
+ if (!(G && r.unknownFn && !l(x, G) && r.unknownFn(G) === !1)) {
83
+ var M = !r.strings[x] && i(F) ? Number(F) : F;
84
+ d(a, x.split("."), M), (t[x] || []).forEach(function(T) {
85
+ d(a, T.split("."), M);
86
86
  });
87
87
  }
88
88
  }
@@ -103,24 +103,24 @@ function Ci() {
103
103
  else if (/^--.+/.test(y))
104
104
  p = y.match(/^--(.+)/)[1], E = o[g + 1], E !== void 0 && !/^(-|--)[^-]/.test(E) && !r.bools[p] && !r.allBools && (!t[p] || !n(p)) ? (f(p, E, y), g += 1) : /^(true|false)$/.test(E) ? (f(p, E === "true", y), g += 1) : f(p, r.strings[p] ? "" : !0, y);
105
105
  else if (/^-[^-]+/.test(y)) {
106
- for (var m = y.slice(1, -1).split(""), b = !1, w = 0; w < m.length; w++) {
107
- if (E = y.slice(w + 2), E === "-") {
108
- f(m[w], E, y);
106
+ for (var m = y.slice(1, -1).split(""), b = !1, $ = 0; $ < m.length; $++) {
107
+ if (E = y.slice($ + 2), E === "-") {
108
+ f(m[$], E, y);
109
109
  continue;
110
110
  }
111
- if (/[A-Za-z]/.test(m[w]) && E[0] === "=") {
112
- f(m[w], E.slice(1), y), b = !0;
111
+ if (/[A-Za-z]/.test(m[$]) && E[0] === "=") {
112
+ f(m[$], E.slice(1), y), b = !0;
113
113
  break;
114
114
  }
115
- if (/[A-Za-z]/.test(m[w]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(E)) {
116
- f(m[w], E, y), b = !0;
115
+ if (/[A-Za-z]/.test(m[$]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(E)) {
116
+ f(m[$], E, y), b = !0;
117
117
  break;
118
118
  }
119
- if (m[w + 1] && m[w + 1].match(/\W/)) {
120
- f(m[w], y.slice(w + 2), y), b = !0;
119
+ if (m[$ + 1] && m[$ + 1].match(/\W/)) {
120
+ f(m[$], y.slice($ + 2), y), b = !0;
121
121
  break;
122
122
  } else
123
- f(m[w], r.strings[m[w]] ? "" : !0, y);
123
+ f(m[$], r.strings[m[$]] ? "" : !0, y);
124
124
  }
125
125
  p = y.slice(-1)[0], !b && p !== "-" && (o[g + 1] && !/^(-|--)[^-]/.test(o[g + 1]) && !r.bools[p] && (!t[p] || !n(p)) ? (f(p, o[g + 1], y), g += 1) : o[g + 1] && /^(true|false)$/.test(o[g + 1]) ? (f(p, o[g + 1] === "true", y), g += 1) : f(p, r.strings[p] ? "" : !0, y));
126
126
  } else if ((!r.unknownFn || r.unknownFn(y) !== !1) && a._.push(r.strings._ || !i(y) ? y : Number(y)), c.stopEarly) {
@@ -137,18 +137,18 @@ function Ci() {
137
137
  }), a;
138
138
  }, tt;
139
139
  }
140
- var ls = Ci();
141
- const fs = /* @__PURE__ */ Ue(ls);
142
- class ps extends Error {
140
+ var fs = Pi();
141
+ const ps = /* @__PURE__ */ Ue(fs);
142
+ class hs extends Error {
143
143
  constructor(i) {
144
144
  super(), this.name = "AbortError", this.message = i;
145
145
  }
146
146
  }
147
- const Mr = (e) => globalThis.DOMException === void 0 ? new ps(e) : new DOMException(e), Ur = (e) => {
148
- const i = e.reason === void 0 ? Mr("This operation was aborted.") : e.reason;
149
- return i instanceof Error ? i : Mr(i);
147
+ const Ur = (e) => globalThis.DOMException === void 0 ? new hs(e) : new DOMException(e), kr = (e) => {
148
+ const i = e.reason === void 0 ? Ur("This operation was aborted.") : e.reason;
149
+ return i instanceof Error ? i : Ur(i);
150
150
  };
151
- async function hs(e, i, {
151
+ async function ds(e, i, {
152
152
  concurrency: s = Number.POSITIVE_INFINITY,
153
153
  stopOnError: o = !0,
154
154
  signal: c
@@ -165,8 +165,8 @@ async function hs(e, i, {
165
165
  const y = e[Symbol.iterator] === void 0 ? e[Symbol.asyncIterator]() : e[Symbol.iterator](), p = (A) => {
166
166
  l = !0, d = !0, t(A);
167
167
  };
168
- c && (c.aborted && p(Ur(c)), c.addEventListener("abort", () => {
169
- p(Ur(c));
168
+ c && (c.aborted && p(kr(c)), c.addEventListener("abort", () => {
169
+ p(kr(c));
170
170
  }));
171
171
  const E = async () => {
172
172
  if (d)
@@ -183,8 +183,8 @@ async function hs(e, i, {
183
183
  return;
184
184
  }
185
185
  const m = [];
186
- for (const [b, w] of n.entries())
187
- a.get(b) !== kr && m.push(w);
186
+ for (const [b, $] of n.entries())
187
+ a.get(b) !== Vr && m.push($);
188
188
  r(m);
189
189
  }
190
190
  return;
@@ -195,7 +195,7 @@ async function hs(e, i, {
195
195
  if (d)
196
196
  return;
197
197
  const b = await i(m, v);
198
- b === kr && a.set(v, b), n[v] = b, h--, await E();
198
+ b === Vr && a.set(v, b), n[v] = b, h--, await E();
199
199
  } catch (m) {
200
200
  if (o)
201
201
  p(m);
@@ -224,14 +224,14 @@ async function hs(e, i, {
224
224
  })();
225
225
  });
226
226
  }
227
- const kr = Symbol("skip");
228
- async function Vr(e, i) {
229
- return hs(e, (s) => s(), i);
227
+ const Vr = Symbol("skip");
228
+ async function Xr(e, i) {
229
+ return ds(e, (s) => s(), i);
230
230
  }
231
- var rt = {}, nt, Xr;
231
+ var rt = {}, nt, Kr;
232
232
  function ke() {
233
- if (Xr) return nt;
234
- Xr = 1;
233
+ if (Kr) return nt;
234
+ Kr = 1;
235
235
  const e = "\\\\/", i = `[^${e}]`, s = "\\.", o = "\\+", c = "\\?", r = "\\/", t = "(?=.)", n = "[^/]", u = `(?:${r}|$)`, a = `(?:^|${r})`, l = `${s}{1,2}${u}`, d = `(?!${s})`, f = `(?!${a}${l})`, h = `(?!${s}{0,1}${u})`, g = `(?!${l})`, y = `[^.${r}]`, p = `${n}*?`, A = {
236
236
  DOT_LITERAL: s,
237
237
  PLUS_LITERAL: o,
@@ -405,9 +405,9 @@ function ke() {
405
405
  }
406
406
  }, nt;
407
407
  }
408
- var Kr;
408
+ var Wr;
409
409
  function Ve() {
410
- return Kr || (Kr = 1, function(e) {
410
+ return Wr || (Wr = 1, function(e) {
411
411
  const {
412
412
  REGEX_BACKSLASH: i,
413
413
  REGEX_REMOVE_BACKSLASH: s,
@@ -436,10 +436,10 @@ function Ve() {
436
436
  };
437
437
  }(rt)), rt;
438
438
  }
439
- var it, Wr;
440
- function ds() {
441
- if (Wr) return it;
442
- Wr = 1;
439
+ var it, zr;
440
+ function gs() {
441
+ if (zr) return it;
442
+ zr = 1;
443
443
  const e = /* @__PURE__ */ Ve(), {
444
444
  CHAR_ASTERISK: i,
445
445
  /* * */
@@ -475,17 +475,17 @@ function ds() {
475
475
  v.isPrefix !== !0 && (v.depth = v.isGlobstar ? 1 / 0 : 1);
476
476
  };
477
477
  return it = (v, m) => {
478
- const b = m || {}, w = v.length - 1, x = b.parts === !0 || b.scanToEnd === !0, F = [], M = [], G = [];
479
- let T = v, _ = -1, L = 0, B = 0, H = !1, O = !1, I = !1, D = !1, C = !1, $ = !1, X = !1, k = !1, ne = !1, S = !1, R = 0, V, N, U = { value: "", depth: 0, isGlob: !1 };
480
- const Q = () => _ >= w, te = () => T.charCodeAt(_ + 1), W = () => (V = N, T.charCodeAt(++_));
481
- for (; _ < w; ) {
478
+ const b = m || {}, $ = v.length - 1, x = b.parts === !0 || b.scanToEnd === !0, F = [], G = [], M = [];
479
+ let T = v, _ = -1, L = 0, B = 0, H = !1, O = !1, I = !1, D = !1, C = !1, w = !1, X = !1, k = !1, ne = !1, S = !1, R = 0, V, N, U = { value: "", depth: 0, isGlob: !1 };
480
+ const Q = () => _ >= $, te = () => T.charCodeAt(_ + 1), W = () => (V = N, T.charCodeAt(++_));
481
+ for (; _ < $; ) {
482
482
  N = W();
483
483
  let ae;
484
484
  if (N === o) {
485
- X = U.backslashes = !0, N = W(), N === u && ($ = !0);
485
+ X = U.backslashes = !0, N = W(), N === u && (w = !0);
486
486
  continue;
487
487
  }
488
- if ($ === !0 || N === u) {
488
+ if (w === !0 || N === u) {
489
489
  for (R++; Q() !== !0 && (N = W()); ) {
490
490
  if (N === o) {
491
491
  X = U.backslashes = !0, W();
@@ -495,18 +495,18 @@ function ds() {
495
495
  R++;
496
496
  continue;
497
497
  }
498
- if ($ !== !0 && N === r && (N = W()) === r) {
498
+ if (w !== !0 && N === r && (N = W()) === r) {
499
499
  if (H = U.isBrace = !0, I = U.isGlob = !0, S = !0, x === !0)
500
500
  continue;
501
501
  break;
502
502
  }
503
- if ($ !== !0 && N === c) {
503
+ if (w !== !0 && N === c) {
504
504
  if (H = U.isBrace = !0, I = U.isGlob = !0, S = !0, x === !0)
505
505
  continue;
506
506
  break;
507
507
  }
508
508
  if (N === h && (R--, R === 0)) {
509
- $ = !1, H = U.isBrace = !0, S = !0;
509
+ w = !1, H = U.isBrace = !0, S = !0;
510
510
  break;
511
511
  }
512
512
  }
@@ -515,7 +515,7 @@ function ds() {
515
515
  break;
516
516
  }
517
517
  if (N === n) {
518
- if (F.push(_), M.push(U), U = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
518
+ if (F.push(_), G.push(U), U = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
519
519
  if (V === r && _ === L + 1) {
520
520
  L += 2;
521
521
  continue;
@@ -607,25 +607,25 @@ function ds() {
607
607
  negated: k,
608
608
  negatedExtglob: ne
609
609
  };
610
- if (b.tokens === !0 && (q.maxDepth = 0, p(N) || M.push(U), q.tokens = M), b.parts === !0 || b.tokens === !0) {
610
+ if (b.tokens === !0 && (q.maxDepth = 0, p(N) || G.push(U), q.tokens = G), b.parts === !0 || b.tokens === !0) {
611
611
  let ae;
612
612
  for (let ue = 0; ue < F.length; ue++) {
613
613
  const j = ae ? ae + 1 : L, re = F[ue], P = v.slice(j, re);
614
- b.tokens && (ue === 0 && L !== 0 ? (M[ue].isPrefix = !0, M[ue].value = J) : M[ue].value = P, E(M[ue]), q.maxDepth += M[ue].depth), (ue !== 0 || P !== "") && G.push(P), ae = re;
614
+ b.tokens && (ue === 0 && L !== 0 ? (G[ue].isPrefix = !0, G[ue].value = J) : G[ue].value = P, E(G[ue]), q.maxDepth += G[ue].depth), (ue !== 0 || P !== "") && M.push(P), ae = re;
615
615
  }
616
616
  if (ae && ae + 1 < v.length) {
617
617
  const ue = v.slice(ae + 1);
618
- G.push(ue), b.tokens && (M[M.length - 1].value = ue, E(M[M.length - 1]), q.maxDepth += M[M.length - 1].depth);
618
+ M.push(ue), b.tokens && (G[G.length - 1].value = ue, E(G[G.length - 1]), q.maxDepth += G[G.length - 1].depth);
619
619
  }
620
- q.slashes = F, q.parts = G;
620
+ q.slashes = F, q.parts = M;
621
621
  }
622
622
  return q;
623
623
  }, it;
624
624
  }
625
- var st, zr;
626
- function gs() {
627
- if (zr) return st;
628
- zr = 1;
625
+ var st, Yr;
626
+ function ms() {
627
+ if (Yr) return st;
628
+ Yr = 1;
629
629
  const e = /* @__PURE__ */ ke(), i = /* @__PURE__ */ Ve(), {
630
630
  MAX_LENGTH: s,
631
631
  POSIX_REGEX_SOURCE: o,
@@ -654,20 +654,20 @@ function gs() {
654
654
  const y = { type: "bos", value: "", output: f.prepend || "" }, p = [y], E = f.capture ? "" : "?:", A = e.globChars(f.windows), v = e.extglobChars(A), {
655
655
  DOT_LITERAL: m,
656
656
  PLUS_LITERAL: b,
657
- SLASH_LITERAL: w,
657
+ SLASH_LITERAL: $,
658
658
  ONE_CHAR: x,
659
659
  DOTS_SLASH: F,
660
- NO_DOT: M,
661
- NO_DOT_SLASH: G,
660
+ NO_DOT: G,
661
+ NO_DOT_SLASH: M,
662
662
  NO_DOTS_SLASH: T,
663
663
  QMARK: _,
664
664
  QMARK_NO_DOT: L,
665
665
  STAR: B,
666
666
  START_ANCHOR: H
667
- } = A, O = (j) => `(${E}(?:(?!${H}${j.dot ? F : m}).)*?)`, I = f.dot ? "" : M, D = f.dot ? _ : L;
667
+ } = A, O = (j) => `(${E}(?:(?!${H}${j.dot ? F : m}).)*?)`, I = f.dot ? "" : G, D = f.dot ? _ : L;
668
668
  let C = f.bash === !0 ? O(f) : B;
669
669
  f.capture && (C = `(${C})`), typeof f.noext == "boolean" && (f.noextglob = f.noext);
670
- const $ = {
670
+ const w = {
671
671
  input: l,
672
672
  index: -1,
673
673
  start: 0,
@@ -684,26 +684,26 @@ function gs() {
684
684
  globstar: !1,
685
685
  tokens: p
686
686
  };
687
- l = i.removePrefix(l, $), g = l.length;
687
+ l = i.removePrefix(l, w), g = l.length;
688
688
  const X = [], k = [], ne = [];
689
689
  let S = y, R;
690
- const V = () => $.index === g - 1, N = $.peek = (j = 1) => l[$.index + j], U = $.advance = () => l[++$.index] || "", Q = () => l.slice($.index + 1), te = (j = "", re = 0) => {
691
- $.consumed += j, $.index += re;
690
+ const V = () => w.index === g - 1, N = w.peek = (j = 1) => l[w.index + j], U = w.advance = () => l[++w.index] || "", Q = () => l.slice(w.index + 1), te = (j = "", re = 0) => {
691
+ w.consumed += j, w.index += re;
692
692
  }, W = (j) => {
693
- $.output += j.output != null ? j.output : j.value, te(j.value);
693
+ w.output += j.output != null ? j.output : j.value, te(j.value);
694
694
  }, K = () => {
695
695
  let j = 1;
696
696
  for (; N() === "!" && (N(2) !== "(" || N(3) === "?"); )
697
- U(), $.start++, j++;
698
- return j % 2 === 0 ? !1 : ($.negated = !0, $.start++, !0);
697
+ U(), w.start++, j++;
698
+ return j % 2 === 0 ? !1 : (w.negated = !0, w.start++, !0);
699
699
  }, J = (j) => {
700
- $[j]++, ne.push(j);
700
+ w[j]++, ne.push(j);
701
701
  }, ee = (j) => {
702
- $[j]--, ne.pop();
702
+ w[j]--, ne.pop();
703
703
  }, q = (j) => {
704
704
  if (S.type === "globstar") {
705
- const re = $.braces > 0 && (j.type === "comma" || j.type === "brace"), P = j.extglob === !0 || X.length && (j.type === "pipe" || j.type === "paren");
706
- j.type !== "slash" && j.type !== "paren" && !re && !P && ($.output = $.output.slice(0, -S.output.length), S.type = "star", S.value = "*", S.output = C, $.output += S.output);
705
+ const re = w.braces > 0 && (j.type === "comma" || j.type === "brace"), P = j.extglob === !0 || X.length && (j.type === "pipe" || j.type === "paren");
706
+ j.type !== "slash" && j.type !== "paren" && !re && !P && (w.output = w.output.slice(0, -S.output.length), S.type = "star", S.value = "*", S.output = C, w.output += S.output);
707
707
  }
708
708
  if (X.length && j.type !== "paren" && (X[X.length - 1].inner += j.value), (j.value || j.output) && W(j), S && S.type === "text" && j.type === "text") {
709
709
  S.output = (S.output || S.value) + j.value, S.value += j.value;
@@ -712,9 +712,9 @@ function gs() {
712
712
  j.prev = S, p.push(j), S = j;
713
713
  }, ae = (j, re) => {
714
714
  const P = { ...v[re], conditions: 1, inner: "" };
715
- P.prev = S, P.parens = $.parens, P.output = $.output;
715
+ P.prev = S, P.parens = w.parens, P.output = w.output;
716
716
  const z = (f.capture ? "(" : "") + P.open;
717
- J("parens"), q({ type: j, value: re, output: $.output ? "" : x }), q({ type: "paren", extglob: !0, value: U(), output: z }), X.push(P);
717
+ J("parens"), q({ type: j, value: re, output: w.output ? "" : x }), q({ type: "paren", extglob: !0, value: U(), output: z }), X.push(P);
718
718
  }, ue = (j) => {
719
719
  let re = j.close + (f.capture ? ")" : ""), P;
720
720
  if (j.type === "negate") {
@@ -723,13 +723,13 @@ function gs() {
723
723
  const ie = a(P, { ...d, fastpaths: !1 }).output;
724
724
  re = j.close = `)${ie})${z})`;
725
725
  }
726
- j.prev.type === "bos" && ($.negatedExtglob = !0);
726
+ j.prev.type === "bos" && (w.negatedExtglob = !0);
727
727
  }
728
728
  q({ type: "paren", extglob: !0, value: R, output: re }), ee("parens");
729
729
  };
730
730
  if (f.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(l)) {
731
731
  let j = !1, re = l.replace(r, (P, z, ie, ce, se, Ze) => ce === "\\" ? (j = !0, P) : ce === "?" ? z ? z + ce + (se ? _.repeat(se.length) : "") : Ze === 0 ? D + (se ? _.repeat(se.length) : "") : _.repeat(ie.length) : ce === "." ? m.repeat(ie.length) : ce === "*" ? z ? z + ce + (se ? C : "") : C : z ? P : `\\${P}`);
732
- return j === !0 && (f.unescape === !0 ? re = re.replace(/\\/g, "") : re = re.replace(/\\+/g, (P) => P.length % 2 === 0 ? "\\\\" : P ? "\\" : "")), re === l && f.contains === !0 ? ($.output = l, $) : ($.output = i.wrapOutput(re, $, d), $);
732
+ return j === !0 && (f.unescape === !0 ? re = re.replace(/\\/g, "") : re = re.replace(/\\+/g, (P) => P.length % 2 === 0 ? "\\\\" : P ? "\\" : "")), re === l && f.contains === !0 ? (w.output = l, w) : (w.output = i.wrapOutput(re, w, d), w);
733
733
  }
734
734
  for (; !V(); ) {
735
735
  if (R = U(), R === "\0")
@@ -744,18 +744,18 @@ function gs() {
744
744
  }
745
745
  const z = /^\\+/.exec(Q());
746
746
  let ie = 0;
747
- if (z && z[0].length > 2 && (ie = z[0].length, $.index += ie, ie % 2 !== 0 && (R += "\\")), f.unescape === !0 ? R = U() : R += U(), $.brackets === 0) {
747
+ if (z && z[0].length > 2 && (ie = z[0].length, w.index += ie, ie % 2 !== 0 && (R += "\\")), f.unescape === !0 ? R = U() : R += U(), w.brackets === 0) {
748
748
  q({ type: "text", value: R });
749
749
  continue;
750
750
  }
751
751
  }
752
- if ($.brackets > 0 && (R !== "]" || S.value === "[" || S.value === "[^")) {
752
+ if (w.brackets > 0 && (R !== "]" || S.value === "[" || S.value === "[^")) {
753
753
  if (f.posix !== !1 && R === ":") {
754
754
  const P = S.value.slice(1);
755
755
  if (P.includes("[") && (S.posix = !0, P.includes(":"))) {
756
756
  const z = S.value.lastIndexOf("["), ie = S.value.slice(0, z), ce = S.value.slice(z + 2), se = o[ce];
757
757
  if (se) {
758
- S.value = ie + se, $.backtrack = !0, U(), !y.output && p.indexOf(S) === 1 && (y.output = x);
758
+ S.value = ie + se, w.backtrack = !0, U(), !y.output && p.indexOf(S) === 1 && (y.output = x);
759
759
  continue;
760
760
  }
761
761
  }
@@ -763,12 +763,12 @@ function gs() {
763
763
  (R === "[" && N() !== ":" || R === "-" && N() === "]") && (R = `\\${R}`), R === "]" && (S.value === "[" || S.value === "[^") && (R = `\\${R}`), f.posix === !0 && R === "!" && S.value === "[" && (R = "^"), S.value += R, W({ value: R });
764
764
  continue;
765
765
  }
766
- if ($.quotes === 1 && R !== '"') {
766
+ if (w.quotes === 1 && R !== '"') {
767
767
  R = i.escapeRegex(R), S.value += R, W({ value: R });
768
768
  continue;
769
769
  }
770
770
  if (R === '"') {
771
- $.quotes = $.quotes === 1 ? 0 : 1, f.keepQuotes === !0 && q({ type: "text", value: R });
771
+ w.quotes = w.quotes === 1 ? 0 : 1, f.keepQuotes === !0 && q({ type: "text", value: R });
772
772
  continue;
773
773
  }
774
774
  if (R === "(") {
@@ -776,14 +776,14 @@ function gs() {
776
776
  continue;
777
777
  }
778
778
  if (R === ")") {
779
- if ($.parens === 0 && f.strictBrackets === !0)
779
+ if (w.parens === 0 && f.strictBrackets === !0)
780
780
  throw new SyntaxError(u("opening", "("));
781
781
  const P = X[X.length - 1];
782
- if (P && $.parens === P.parens + 1) {
782
+ if (P && w.parens === P.parens + 1) {
783
783
  ue(X.pop());
784
784
  continue;
785
785
  }
786
- q({ type: "paren", value: R, output: $.parens ? ")" : "\\)" }), ee("parens");
786
+ q({ type: "paren", value: R, output: w.parens ? ")" : "\\)" }), ee("parens");
787
787
  continue;
788
788
  }
789
789
  if (R === "[") {
@@ -801,7 +801,7 @@ function gs() {
801
801
  q({ type: "text", value: R, output: `\\${R}` });
802
802
  continue;
803
803
  }
804
- if ($.brackets === 0) {
804
+ if (w.brackets === 0) {
805
805
  if (f.strictBrackets === !0)
806
806
  throw new SyntaxError(u("opening", "["));
807
807
  q({ type: "text", value: R, output: `\\${R}` });
@@ -812,11 +812,11 @@ function gs() {
812
812
  if (S.posix !== !0 && P[0] === "^" && !P.includes("/") && (R = `/${R}`), S.value += R, W({ value: R }), f.literalBrackets === !1 || i.hasRegexChars(P))
813
813
  continue;
814
814
  const z = i.escapeRegex(S.value);
815
- if ($.output = $.output.slice(0, -S.value.length), f.literalBrackets === !0) {
816
- $.output += z, S.value = z;
815
+ if (w.output = w.output.slice(0, -S.value.length), f.literalBrackets === !0) {
816
+ w.output += z, S.value = z;
817
817
  continue;
818
818
  }
819
- S.value = `(${E}${z}|${S.value})`, $.output += S.value;
819
+ S.value = `(${E}${z}|${S.value})`, w.output += S.value;
820
820
  continue;
821
821
  }
822
822
  if (R === "{" && f.nobrace !== !0) {
@@ -825,8 +825,8 @@ function gs() {
825
825
  type: "brace",
826
826
  value: R,
827
827
  output: "(",
828
- outputIndex: $.output.length,
829
- tokensIndex: $.tokens.length
828
+ outputIndex: w.output.length,
829
+ tokensIndex: w.tokens.length
830
830
  };
831
831
  k.push(P), q(P);
832
832
  continue;
@@ -842,13 +842,13 @@ function gs() {
842
842
  const ie = p.slice(), ce = [];
843
843
  for (let se = ie.length - 1; se >= 0 && (p.pop(), ie[se].type !== "brace"); se--)
844
844
  ie[se].type !== "dots" && ce.unshift(ie[se].value);
845
- z = n(ce, f), $.backtrack = !0;
845
+ z = n(ce, f), w.backtrack = !0;
846
846
  }
847
847
  if (P.comma !== !0 && P.dots !== !0) {
848
- const ie = $.output.slice(0, P.outputIndex), ce = $.tokens.slice(P.tokensIndex);
849
- P.value = P.output = "\\{", R = z = "\\}", $.output = ie;
848
+ const ie = w.output.slice(0, P.outputIndex), ce = w.tokens.slice(P.tokensIndex);
849
+ P.value = P.output = "\\{", R = z = "\\}", w.output = ie;
850
850
  for (const se of ce)
851
- $.output += se.output || se.value;
851
+ w.output += se.output || se.value;
852
852
  }
853
853
  q({ type: "brace", value: R, output: z }), ee("braces"), k.pop();
854
854
  continue;
@@ -864,21 +864,21 @@ function gs() {
864
864
  continue;
865
865
  }
866
866
  if (R === "/") {
867
- if (S.type === "dot" && $.index === $.start + 1) {
868
- $.start = $.index + 1, $.consumed = "", $.output = "", p.pop(), S = y;
867
+ if (S.type === "dot" && w.index === w.start + 1) {
868
+ w.start = w.index + 1, w.consumed = "", w.output = "", p.pop(), S = y;
869
869
  continue;
870
870
  }
871
- q({ type: "slash", value: R, output: w });
871
+ q({ type: "slash", value: R, output: $ });
872
872
  continue;
873
873
  }
874
874
  if (R === ".") {
875
- if ($.braces > 0 && S.type === "dot") {
875
+ if (w.braces > 0 && S.type === "dot") {
876
876
  S.value === "." && (S.output = m);
877
877
  const P = k[k.length - 1];
878
878
  S.type = "dots", S.output += R, S.value += R, P.dots = !0;
879
879
  continue;
880
880
  }
881
- if ($.braces + $.parens === 0 && S.type !== "bos" && S.type !== "slash") {
881
+ if (w.braces + w.parens === 0 && S.type !== "bos" && S.type !== "slash") {
882
882
  q({ type: "text", value: R, output: m });
883
883
  continue;
884
884
  }
@@ -908,7 +908,7 @@ function gs() {
908
908
  ae("negate", R);
909
909
  continue;
910
910
  }
911
- if (f.nonegate !== !0 && $.index === 0) {
911
+ if (f.nonegate !== !0 && w.index === 0) {
912
912
  K();
913
913
  continue;
914
914
  }
@@ -922,7 +922,7 @@ function gs() {
922
922
  q({ type: "plus", value: R, output: b });
923
923
  continue;
924
924
  }
925
- if (S && (S.type === "bracket" || S.type === "paren" || S.type === "brace") || $.parens > 0) {
925
+ if (S && (S.type === "bracket" || S.type === "paren" || S.type === "brace") || w.parens > 0) {
926
926
  q({ type: "plus", value: R });
927
927
  continue;
928
928
  }
@@ -940,11 +940,11 @@ function gs() {
940
940
  if (R !== "*") {
941
941
  (R === "$" || R === "^") && (R = `\\${R}`);
942
942
  const P = c.exec(Q());
943
- P && (R += P[0], $.index += P[0].length), q({ type: "text", value: R });
943
+ P && (R += P[0], w.index += P[0].length), q({ type: "text", value: R });
944
944
  continue;
945
945
  }
946
946
  if (S && (S.type === "globstar" || S.star === !0)) {
947
- S.type = "star", S.star = !0, S.value += R, S.output = C, $.backtrack = !0, $.globstar = !0, te(R);
947
+ S.type = "star", S.star = !0, S.value += R, S.output = C, w.backtrack = !0, w.globstar = !0, te(R);
948
948
  continue;
949
949
  }
950
950
  let j = Q();
@@ -962,35 +962,35 @@ function gs() {
962
962
  q({ type: "star", value: R, output: "" });
963
963
  continue;
964
964
  }
965
- const se = $.braces > 0 && (P.type === "comma" || P.type === "brace"), Ze = X.length && (P.type === "pipe" || P.type === "paren");
965
+ const se = w.braces > 0 && (P.type === "comma" || P.type === "brace"), Ze = X.length && (P.type === "pipe" || P.type === "paren");
966
966
  if (!ie && P.type !== "paren" && !se && !Ze) {
967
967
  q({ type: "star", value: R, output: "" });
968
968
  continue;
969
969
  }
970
970
  for (; j.slice(0, 3) === "/**"; ) {
971
- const je = l[$.index + 4];
971
+ const je = l[w.index + 4];
972
972
  if (je && je !== "/")
973
973
  break;
974
974
  j = j.slice(3), te("/**", 3);
975
975
  }
976
976
  if (P.type === "bos" && V()) {
977
- S.type = "globstar", S.value += R, S.output = O(f), $.output = S.output, $.globstar = !0, te(R);
977
+ S.type = "globstar", S.value += R, S.output = O(f), w.output = S.output, w.globstar = !0, te(R);
978
978
  continue;
979
979
  }
980
980
  if (P.type === "slash" && P.prev.type !== "bos" && !ce && V()) {
981
- $.output = $.output.slice(0, -(P.output + S.output).length), P.output = `(?:${P.output}`, S.type = "globstar", S.output = O(f) + (f.strictSlashes ? ")" : "|$)"), S.value += R, $.globstar = !0, $.output += P.output + S.output, te(R);
981
+ w.output = w.output.slice(0, -(P.output + S.output).length), P.output = `(?:${P.output}`, S.type = "globstar", S.output = O(f) + (f.strictSlashes ? ")" : "|$)"), S.value += R, w.globstar = !0, w.output += P.output + S.output, te(R);
982
982
  continue;
983
983
  }
984
984
  if (P.type === "slash" && P.prev.type !== "bos" && j[0] === "/") {
985
985
  const je = j[1] !== void 0 ? "|$" : "";
986
- $.output = $.output.slice(0, -(P.output + S.output).length), P.output = `(?:${P.output}`, S.type = "globstar", S.output = `${O(f)}${w}|${w}${je})`, S.value += R, $.output += P.output + S.output, $.globstar = !0, te(R + U()), q({ type: "slash", value: "/", output: "" });
986
+ w.output = w.output.slice(0, -(P.output + S.output).length), P.output = `(?:${P.output}`, S.type = "globstar", S.output = `${O(f)}${$}|${$}${je})`, S.value += R, w.output += P.output + S.output, w.globstar = !0, te(R + U()), q({ type: "slash", value: "/", output: "" });
987
987
  continue;
988
988
  }
989
989
  if (P.type === "bos" && j[0] === "/") {
990
- S.type = "globstar", S.value += R, S.output = `(?:^|${w}|${O(f)}${w})`, $.output = S.output, $.globstar = !0, te(R + U()), q({ type: "slash", value: "/", output: "" });
990
+ S.type = "globstar", S.value += R, S.output = `(?:^|${$}|${O(f)}${$})`, w.output = S.output, w.globstar = !0, te(R + U()), q({ type: "slash", value: "/", output: "" });
991
991
  continue;
992
992
  }
993
- $.output = $.output.slice(0, -S.output.length), S.type = "globstar", S.output = O(f), S.value += R, $.output += S.output, $.globstar = !0, te(R);
993
+ w.output = w.output.slice(0, -S.output.length), S.type = "globstar", S.output = O(f), S.value += R, w.output += S.output, w.globstar = !0, te(R);
994
994
  continue;
995
995
  }
996
996
  const re = { type: "star", value: R, output: C };
@@ -1002,26 +1002,26 @@ function gs() {
1002
1002
  re.output = R, q(re);
1003
1003
  continue;
1004
1004
  }
1005
- ($.index === $.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? ($.output += G, S.output += G) : f.dot === !0 ? ($.output += T, S.output += T) : ($.output += I, S.output += I), N() !== "*" && ($.output += x, S.output += x)), q(re);
1005
+ (w.index === w.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (w.output += M, S.output += M) : f.dot === !0 ? (w.output += T, S.output += T) : (w.output += I, S.output += I), N() !== "*" && (w.output += x, S.output += x)), q(re);
1006
1006
  }
1007
- for (; $.brackets > 0; ) {
1007
+ for (; w.brackets > 0; ) {
1008
1008
  if (f.strictBrackets === !0) throw new SyntaxError(u("closing", "]"));
1009
- $.output = i.escapeLast($.output, "["), ee("brackets");
1009
+ w.output = i.escapeLast(w.output, "["), ee("brackets");
1010
1010
  }
1011
- for (; $.parens > 0; ) {
1011
+ for (; w.parens > 0; ) {
1012
1012
  if (f.strictBrackets === !0) throw new SyntaxError(u("closing", ")"));
1013
- $.output = i.escapeLast($.output, "("), ee("parens");
1013
+ w.output = i.escapeLast(w.output, "("), ee("parens");
1014
1014
  }
1015
- for (; $.braces > 0; ) {
1015
+ for (; w.braces > 0; ) {
1016
1016
  if (f.strictBrackets === !0) throw new SyntaxError(u("closing", "}"));
1017
- $.output = i.escapeLast($.output, "{"), ee("braces");
1017
+ w.output = i.escapeLast(w.output, "{"), ee("braces");
1018
1018
  }
1019
- if (f.strictSlashes !== !0 && (S.type === "star" || S.type === "bracket") && q({ type: "maybe_slash", value: "", output: `${w}?` }), $.backtrack === !0) {
1020
- $.output = "";
1021
- for (const j of $.tokens)
1022
- $.output += j.output != null ? j.output : j.value, j.suffix && ($.output += j.suffix);
1019
+ if (f.strictSlashes !== !0 && (S.type === "star" || S.type === "bracket") && q({ type: "maybe_slash", value: "", output: `${$}?` }), w.backtrack === !0) {
1020
+ w.output = "";
1021
+ for (const j of w.tokens)
1022
+ w.output += j.output != null ? j.output : j.value, j.suffix && (w.output += j.suffix);
1023
1023
  }
1024
- return $;
1024
+ return w;
1025
1025
  };
1026
1026
  return a.fastpaths = (l, d) => {
1027
1027
  const f = { ...d }, h = typeof f.maxLength == "number" ? Math.min(s, f.maxLength) : s, g = l.length;
@@ -1036,12 +1036,12 @@ function gs() {
1036
1036
  NO_DOT: v,
1037
1037
  NO_DOTS: m,
1038
1038
  NO_DOTS_SLASH: b,
1039
- STAR: w,
1039
+ STAR: $,
1040
1040
  START_ANCHOR: x
1041
- } = e.globChars(f.windows), F = f.dot ? m : v, M = f.dot ? b : v, G = f.capture ? "" : "?:", T = { negated: !1, prefix: "" };
1042
- let _ = f.bash === !0 ? ".*?" : w;
1041
+ } = e.globChars(f.windows), F = f.dot ? m : v, G = f.dot ? b : v, M = f.capture ? "" : "?:", T = { negated: !1, prefix: "" };
1042
+ let _ = f.bash === !0 ? ".*?" : $;
1043
1043
  f.capture && (_ = `(${_})`);
1044
- const L = (I) => I.noglobstar === !0 ? _ : `(${G}(?:(?!${x}${I.dot ? A : y}).)*?)`, B = (I) => {
1044
+ const L = (I) => I.noglobstar === !0 ? _ : `(${M}(?:(?!${x}${I.dot ? A : y}).)*?)`, B = (I) => {
1045
1045
  switch (I) {
1046
1046
  case "*":
1047
1047
  return `${F}${E}${_}`;
@@ -1050,13 +1050,13 @@ function gs() {
1050
1050
  case "*.*":
1051
1051
  return `${F}${_}${y}${E}${_}`;
1052
1052
  case "*/*":
1053
- return `${F}${_}${p}${E}${M}${_}`;
1053
+ return `${F}${_}${p}${E}${G}${_}`;
1054
1054
  case "**":
1055
1055
  return F + L(f);
1056
1056
  case "**/*":
1057
- return `(?:${F}${L(f)}${p})?${M}${E}${_}`;
1057
+ return `(?:${F}${L(f)}${p})?${G}${E}${_}`;
1058
1058
  case "**/*.*":
1059
- return `(?:${F}${L(f)}${p})?${M}${_}${y}${E}${_}`;
1059
+ return `(?:${F}${L(f)}${p})?${G}${_}${y}${E}${_}`;
1060
1060
  case "**/.*":
1061
1061
  return `(?:${F}${L(f)}${p})?${y}${E}${_}`;
1062
1062
  default: {
@@ -1071,11 +1071,11 @@ function gs() {
1071
1071
  return O && f.strictSlashes !== !0 && (O += `${p}?`), O;
1072
1072
  }, st = a, st;
1073
1073
  }
1074
- var ot, Yr;
1075
- function ms() {
1076
- if (Yr) return ot;
1077
- Yr = 1;
1078
- const e = /* @__PURE__ */ ds(), i = /* @__PURE__ */ gs(), s = /* @__PURE__ */ Ve(), o = /* @__PURE__ */ ke(), c = (t) => t && typeof t == "object" && !Array.isArray(t), r = (t, n, u = !1) => {
1074
+ var ot, Qr;
1075
+ function vs() {
1076
+ if (Qr) return ot;
1077
+ Qr = 1;
1078
+ const e = /* @__PURE__ */ gs(), i = /* @__PURE__ */ ms(), s = /* @__PURE__ */ Ve(), o = /* @__PURE__ */ ke(), c = (t) => t && typeof t == "object" && !Array.isArray(t), r = (t, n, u = !1) => {
1079
1079
  if (Array.isArray(t)) {
1080
1080
  const p = t.map((A) => r(A, n, u));
1081
1081
  return (A) => {
@@ -1133,24 +1133,24 @@ function ms() {
1133
1133
  }
1134
1134
  }, r.constants = o, ot = r, ot;
1135
1135
  }
1136
- var at, Qr;
1137
- function vs() {
1138
- if (Qr) return at;
1139
- Qr = 1;
1140
- const e = /* @__PURE__ */ ms(), i = /* @__PURE__ */ Ve();
1136
+ var at, Jr;
1137
+ function ys() {
1138
+ if (Jr) return at;
1139
+ Jr = 1;
1140
+ const e = /* @__PURE__ */ vs(), i = /* @__PURE__ */ Ve();
1141
1141
  function s(o, c, r = !1) {
1142
1142
  return c && (c.windows === null || c.windows === void 0) && (c = { ...c, windows: i.isWindows() }), e(o, c, r);
1143
1143
  }
1144
1144
  return Object.assign(s, e), at = s, at;
1145
1145
  }
1146
- var ys = /* @__PURE__ */ vs();
1147
- const Jr = /* @__PURE__ */ Ue(ys), Es = "16.5.4", Rs = {
1148
- version: Es
1146
+ var Es = /* @__PURE__ */ ys();
1147
+ const Zr = /* @__PURE__ */ Ue(Es), Rs = "16.6.1", ws = {
1148
+ version: Rs
1149
1149
  };
1150
- var ye = {}, ge = {}, Zr;
1151
- function Pi() {
1152
- if (Zr) return ge;
1153
- Zr = 1, ge.parse = ge.decode = o, ge.stringify = ge.encode = i, ge.safe = r, ge.unsafe = t;
1150
+ var ye = {}, ge = {}, en;
1151
+ function Di() {
1152
+ if (en) return ge;
1153
+ en = 1, ge.parse = ge.decode = o, ge.stringify = ge.encode = i, ge.safe = r, ge.unsafe = t;
1154
1154
  var e = typeof process < "u" && process.platform === "win32" ? `\r
1155
1155
  ` : `
1156
1156
  `;
@@ -1216,7 +1216,7 @@ function Pi() {
1216
1216
  if (!u[h] || typeof u[h] != "object" || Array.isArray(u[h]))
1217
1217
  return !1;
1218
1218
  var p = s(h), E = u, A = p.pop(), v = A.replace(/\\\./g, ".");
1219
- return p.forEach(function(m, b, w) {
1219
+ return p.forEach(function(m, b, $) {
1220
1220
  m !== "__proto__" && ((!E[m] || typeof E[m] != "object") && (E[m] = {}), E = E[m]);
1221
1221
  }), E === u && v === A ? !1 : (E[v] = u[h], !0);
1222
1222
  }).forEach(function(h, g, y) {
@@ -1253,10 +1253,10 @@ function Pi() {
1253
1253
  }
1254
1254
  return ge;
1255
1255
  }
1256
- var ut, en;
1257
- function ws() {
1258
- if (en) return ut;
1259
- en = 1;
1256
+ var ut, tn;
1257
+ function $s() {
1258
+ if (tn) return ut;
1259
+ tn = 1;
1260
1260
  var e = 1, i = 2;
1261
1261
  function s() {
1262
1262
  return "";
@@ -1293,11 +1293,11 @@ function ws() {
1293
1293
  return d + (a ? f(c.substr(l)) : c.substr(l));
1294
1294
  }, ut;
1295
1295
  }
1296
- var tn;
1297
- function $s() {
1298
- if (tn) return ye;
1299
- tn = 1;
1300
- var e = Ce, i = Pi(), s = me, o = ws(), c = ye.parse = function(t) {
1296
+ var rn;
1297
+ function Ss() {
1298
+ if (rn) return ye;
1299
+ rn = 1;
1300
+ var e = Ce, i = Di(), s = me, o = $s(), c = ye.parse = function(t) {
1301
1301
  return /^\s*{/.test(t) ? JSON.parse(o(t)) : i.parse(t);
1302
1302
  }, r = ye.file = function() {
1303
1303
  var t = [].slice.call(arguments).filter(function(a) {
@@ -1344,10 +1344,10 @@ function $s() {
1344
1344
  }, ye;
1345
1345
  }
1346
1346
  var ct = { exports: {} };
1347
- var rn;
1348
- function Ss() {
1349
- if (rn) return ct.exports;
1350
- rn = 1;
1347
+ var nn;
1348
+ function bs() {
1349
+ if (nn) return ct.exports;
1350
+ nn = 1;
1351
1351
  function e(r) {
1352
1352
  return r instanceof Buffer || r instanceof Date || r instanceof RegExp;
1353
1353
  }
@@ -1402,15 +1402,15 @@ function Ss() {
1402
1402
  };
1403
1403
  return ct.exports;
1404
1404
  }
1405
- var lt, nn;
1406
- function bs() {
1407
- if (nn) return lt;
1408
- nn = 1;
1409
- var e = $s(), i = me.join, s = Ss(), o = "/etc", c = process.platform === "win32", r = c ? process.env.USERPROFILE : process.env.HOME;
1405
+ var lt, sn;
1406
+ function As() {
1407
+ if (sn) return lt;
1408
+ sn = 1;
1409
+ var e = Ss(), i = me.join, s = bs(), o = "/etc", c = process.platform === "win32", r = c ? process.env.USERPROFILE : process.env.HOME;
1410
1410
  return lt = function(t, n, u, a) {
1411
1411
  if (typeof t != "string")
1412
1412
  throw new Error("rc(name): name *must* be string");
1413
- u || (u = Ci()(process.argv.slice(2))), n = (typeof n == "string" ? e.json(n) : n) || {}, a = a || e.parse;
1413
+ u || (u = Pi()(process.argv.slice(2))), n = (typeof n == "string" ? e.json(n) : n) || {}, a = a || e.parse;
1414
1414
  var l = e.env(t + "_"), d = [n], f = [];
1415
1415
  function h(g) {
1416
1416
  if (!(f.indexOf(g) >= 0)) {
@@ -1433,13 +1433,13 @@ function bs() {
1433
1433
  ]));
1434
1434
  }, lt;
1435
1435
  }
1436
- var As = bs();
1437
- const _s = /* @__PURE__ */ Ue(As);
1438
- var ft = { exports: {} }, Ee = {}, Re = {}, pt, sn;
1439
- function Os() {
1440
- if (sn) return pt;
1441
- sn = 1;
1442
- var e = ns, i = process.cwd, s = null, o = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1436
+ var _s = As();
1437
+ const Os = /* @__PURE__ */ Ue(_s);
1438
+ var ft = { exports: {} }, Ee = {}, Re = {}, pt, on;
1439
+ function xs() {
1440
+ if (on) return pt;
1441
+ on = 1;
1442
+ var e = is, i = process.cwd, s = null, o = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1443
1443
  process.cwd = function() {
1444
1444
  return s || (s = i.call(process)), s;
1445
1445
  };
@@ -1463,14 +1463,14 @@ function Os() {
1463
1463
  }, t.lchownSync = function() {
1464
1464
  }), o === "win32" && (t.rename = typeof t.rename != "function" ? t.rename : function(p) {
1465
1465
  function E(A, v, m) {
1466
- var b = Date.now(), w = 0;
1466
+ var b = Date.now(), $ = 0;
1467
1467
  p(A, v, function x(F) {
1468
1468
  if (F && (F.code === "EACCES" || F.code === "EPERM") && Date.now() - b < 6e4) {
1469
1469
  setTimeout(function() {
1470
- t.stat(v, function(M, G) {
1471
- M && M.code === "ENOENT" ? p(A, v, x) : m(F);
1470
+ t.stat(v, function(G, M) {
1471
+ G && G.code === "ENOENT" ? p(A, v, x) : m(F);
1472
1472
  });
1473
- }, w), w < 100 && (w += 10);
1473
+ }, $), $ < 100 && ($ += 10);
1474
1474
  return;
1475
1475
  }
1476
1476
  m && m(F);
@@ -1478,27 +1478,27 @@ function Os() {
1478
1478
  }
1479
1479
  return Object.setPrototypeOf && Object.setPrototypeOf(E, p), E;
1480
1480
  }(t.rename)), t.read = typeof t.read != "function" ? t.read : function(p) {
1481
- function E(A, v, m, b, w, x) {
1481
+ function E(A, v, m, b, $, x) {
1482
1482
  var F;
1483
1483
  if (x && typeof x == "function") {
1484
- var M = 0;
1485
- F = function(G, T, _) {
1486
- if (G && G.code === "EAGAIN" && M < 10)
1487
- return M++, p.call(t, A, v, m, b, w, F);
1484
+ var G = 0;
1485
+ F = function(M, T, _) {
1486
+ if (M && M.code === "EAGAIN" && G < 10)
1487
+ return G++, p.call(t, A, v, m, b, $, F);
1488
1488
  x.apply(this, arguments);
1489
1489
  };
1490
1490
  }
1491
- return p.call(t, A, v, m, b, w, F);
1491
+ return p.call(t, A, v, m, b, $, F);
1492
1492
  }
1493
1493
  return Object.setPrototypeOf && Object.setPrototypeOf(E, p), E;
1494
1494
  }(t.read), t.readSync = typeof t.readSync != "function" ? t.readSync : /* @__PURE__ */ function(p) {
1495
1495
  return function(E, A, v, m, b) {
1496
- for (var w = 0; ; )
1496
+ for (var $ = 0; ; )
1497
1497
  try {
1498
1498
  return p.call(t, E, A, v, m, b);
1499
1499
  } catch (x) {
1500
- if (x.code === "EAGAIN" && w < 10) {
1501
- w++;
1500
+ if (x.code === "EAGAIN" && $ < 10) {
1501
+ $++;
1502
1502
  continue;
1503
1503
  }
1504
1504
  throw x;
@@ -1516,9 +1516,9 @@ function Os() {
1516
1516
  v && v(m);
1517
1517
  return;
1518
1518
  }
1519
- p.fchmod(b, A, function(w) {
1519
+ p.fchmod(b, A, function($) {
1520
1520
  p.close(b, function(x) {
1521
- v && v(w || x);
1521
+ v && v($ || x);
1522
1522
  });
1523
1523
  });
1524
1524
  }
@@ -1541,23 +1541,23 @@ function Os() {
1541
1541
  }
1542
1542
  function u(p) {
1543
1543
  e.hasOwnProperty("O_SYMLINK") && p.futimes ? (p.lutimes = function(E, A, v, m) {
1544
- p.open(E, e.O_SYMLINK, function(b, w) {
1544
+ p.open(E, e.O_SYMLINK, function(b, $) {
1545
1545
  if (b) {
1546
1546
  m && m(b);
1547
1547
  return;
1548
1548
  }
1549
- p.futimes(w, A, v, function(x) {
1550
- p.close(w, function(F) {
1549
+ p.futimes($, A, v, function(x) {
1550
+ p.close($, function(F) {
1551
1551
  m && m(x || F);
1552
1552
  });
1553
1553
  });
1554
1554
  });
1555
1555
  }, p.lutimesSync = function(E, A, v) {
1556
- var m = p.openSync(E, e.O_SYMLINK), b, w = !0;
1556
+ var m = p.openSync(E, e.O_SYMLINK), b, $ = !0;
1557
1557
  try {
1558
- b = p.futimesSync(m, A, v), w = !1;
1558
+ b = p.futimesSync(m, A, v), $ = !1;
1559
1559
  } finally {
1560
- if (w)
1560
+ if ($)
1561
1561
  try {
1562
1562
  p.closeSync(m);
1563
1563
  } catch {
@@ -1606,8 +1606,8 @@ function Os() {
1606
1606
  function h(p) {
1607
1607
  return p && function(E, A, v) {
1608
1608
  typeof A == "function" && (v = A, A = null);
1609
- function m(b, w) {
1610
- w && (w.uid < 0 && (w.uid += 4294967296), w.gid < 0 && (w.gid += 4294967296)), v && v.apply(this, arguments);
1609
+ function m(b, $) {
1610
+ $ && ($.uid < 0 && ($.uid += 4294967296), $.gid < 0 && ($.gid += 4294967296)), v && v.apply(this, arguments);
1611
1611
  }
1612
1612
  return A ? p.call(t, E, A, m) : p.call(t, E, m);
1613
1613
  };
@@ -1627,11 +1627,11 @@ function Os() {
1627
1627
  }
1628
1628
  return pt;
1629
1629
  }
1630
- var ht, on;
1631
- function xs() {
1632
- if (on) return ht;
1633
- on = 1;
1634
- var e = Ni.Stream;
1630
+ var ht, an;
1631
+ function Ts() {
1632
+ if (an) return ht;
1633
+ an = 1;
1634
+ var e = Li.Stream;
1635
1635
  ht = i;
1636
1636
  function i(s) {
1637
1637
  return {
@@ -1691,10 +1691,10 @@ function xs() {
1691
1691
  }
1692
1692
  return ht;
1693
1693
  }
1694
- var dt, an;
1695
- function Ts() {
1696
- if (an) return dt;
1697
- an = 1, dt = i;
1694
+ var dt, un;
1695
+ function Is() {
1696
+ if (un) return dt;
1697
+ un = 1, dt = i;
1698
1698
  var e = Object.getPrototypeOf || function(s) {
1699
1699
  return s.__proto__;
1700
1700
  };
@@ -1711,11 +1711,11 @@ function Ts() {
1711
1711
  }
1712
1712
  return dt;
1713
1713
  }
1714
- var qe, un;
1715
- function Is() {
1716
- if (un) return qe;
1717
- un = 1;
1718
- var e = Ce, i = Os(), s = xs(), o = Ts(), c = is, r, t;
1714
+ var qe, cn;
1715
+ function Ns() {
1716
+ if (cn) return qe;
1717
+ cn = 1;
1718
+ var e = Ce, i = xs(), s = Ts(), o = Is(), c = ss, r, t;
1719
1719
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (r = Symbol.for("graceful-fs.queue"), t = Symbol.for("graceful-fs.previous")) : (r = "___graceful-fs.queue", t = "___graceful-fs.previous");
1720
1720
  function n() {
1721
1721
  }
@@ -1750,7 +1750,7 @@ GFS4: `), console.error(p);
1750
1750
  value: p
1751
1751
  }), E;
1752
1752
  }(e.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
1753
- a(e[r]), ss.equal(e[r].length, 0);
1753
+ a(e[r]), os.equal(e[r].length, 0);
1754
1754
  });
1755
1755
  }
1756
1756
  et[r] || u(et, e[r]), qe = d(o(e)), process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !e.__patched && (qe = d(e), e.__patched = !0);
@@ -1777,8 +1777,8 @@ GFS4: `), console.error(p);
1777
1777
  }
1778
1778
  }
1779
1779
  var b = p.appendFile;
1780
- b && (p.appendFile = w);
1781
- function w(R, V, N, U) {
1780
+ b && (p.appendFile = $);
1781
+ function $(R, V, N, U) {
1782
1782
  return typeof N == "function" && (U = N, N = null), Q(R, V, N, U);
1783
1783
  function Q(te, W, K, J, ee) {
1784
1784
  return b(te, W, K, function(q) {
@@ -1796,20 +1796,20 @@ GFS4: `), console.error(p);
1796
1796
  });
1797
1797
  }
1798
1798
  }
1799
- var M = p.readdir;
1799
+ var G = p.readdir;
1800
1800
  p.readdir = T;
1801
- var G = /^v[0-5]\./;
1801
+ var M = /^v[0-5]\./;
1802
1802
  function T(R, V, N) {
1803
1803
  typeof V == "function" && (N = V, V = null);
1804
- var U = G.test(process.version) ? function(W, K, J, ee) {
1805
- return M(W, Q(
1804
+ var U = M.test(process.version) ? function(W, K, J, ee) {
1805
+ return G(W, Q(
1806
1806
  W,
1807
1807
  K,
1808
1808
  J,
1809
1809
  ee
1810
1810
  ));
1811
1811
  } : function(W, K, J, ee) {
1812
- return M(W, K, Q(
1812
+ return G(W, K, Q(
1813
1813
  W,
1814
1814
  K,
1815
1815
  J,
@@ -1836,7 +1836,7 @@ GFS4: `), console.error(p);
1836
1836
  var L = p.ReadStream;
1837
1837
  L && (I.prototype = Object.create(L.prototype), I.prototype.open = D);
1838
1838
  var B = p.WriteStream;
1839
- B && (C.prototype = Object.create(B.prototype), C.prototype.open = $), Object.defineProperty(p, "ReadStream", {
1839
+ B && (C.prototype = Object.create(B.prototype), C.prototype.open = w), Object.defineProperty(p, "ReadStream", {
1840
1840
  get: function() {
1841
1841
  return I;
1842
1842
  },
@@ -1889,7 +1889,7 @@ GFS4: `), console.error(p);
1889
1889
  function C(R, V) {
1890
1890
  return this instanceof C ? (B.apply(this, arguments), this) : C.apply(Object.create(C.prototype), arguments);
1891
1891
  }
1892
- function $() {
1892
+ function w() {
1893
1893
  var R = this;
1894
1894
  S(R.path, R.flags, R.mode, function(V, N) {
1895
1895
  V ? (R.destroy(), R.emit("error", V)) : (R.fd = N, R.emit("open", N));
@@ -1929,26 +1929,26 @@ GFS4: `), console.error(p);
1929
1929
  a("RETRY", E.name, A), E.apply(null, A);
1930
1930
  else if (Date.now() - m >= 6e4) {
1931
1931
  a("TIMEOUT", E.name, A);
1932
- var w = A.pop();
1933
- typeof w == "function" && w.call(null, v);
1932
+ var $ = A.pop();
1933
+ typeof $ == "function" && $.call(null, v);
1934
1934
  } else {
1935
- var x = Date.now() - b, F = Math.max(b - m, 1), M = Math.min(F * 1.2, 100);
1936
- x >= M ? (a("RETRY", E.name, A), E.apply(null, A.concat([m]))) : e[r].push(p);
1935
+ var x = Date.now() - b, F = Math.max(b - m, 1), G = Math.min(F * 1.2, 100);
1936
+ x >= G ? (a("RETRY", E.name, A), E.apply(null, A.concat([m]))) : e[r].push(p);
1937
1937
  }
1938
1938
  h === void 0 && (h = setTimeout(y, 0));
1939
1939
  }
1940
1940
  }
1941
1941
  return qe;
1942
1942
  }
1943
- var cn;
1944
- function Ns() {
1945
- if (cn) return Re;
1946
- cn = 1;
1943
+ var ln;
1944
+ function Ls() {
1945
+ if (ln) return Re;
1946
+ ln = 1;
1947
1947
  var e = Re && Re.__importDefault || function(o) {
1948
1948
  return o && o.__esModule ? o : { default: o };
1949
1949
  };
1950
1950
  Object.defineProperty(Re, "__esModule", { value: !0 }), Re.readCAFileSync = void 0;
1951
- const i = e(Is());
1951
+ const i = e(Ns());
1952
1952
  function s(o) {
1953
1953
  try {
1954
1954
  const c = i.default.readFileSync(o, "utf8"), r = "-----END CERTIFICATE-----";
@@ -1961,9 +1961,9 @@ function Ns() {
1961
1961
  }
1962
1962
  return Re.readCAFileSync = s, Re;
1963
1963
  }
1964
- var ln;
1965
- function Ls() {
1966
- return ln || (ln = 1, function(e) {
1964
+ var fn;
1965
+ function Cs() {
1966
+ return fn || (fn = 1, function(e) {
1967
1967
  var i = Ee && Ee.__createBinding || (Object.create ? function(o, c, r, t) {
1968
1968
  t === void 0 && (t = r);
1969
1969
  var n = Object.getOwnPropertyDescriptor(c, r);
@@ -1975,13 +1975,13 @@ function Ls() {
1975
1975
  }), s = Ee && Ee.__exportStar || function(o, c) {
1976
1976
  for (var r in o) r !== "default" && !Object.prototype.hasOwnProperty.call(c, r) && i(c, o, r);
1977
1977
  };
1978
- Object.defineProperty(e, "__esModule", { value: !0 }), s(Ns(), e);
1978
+ Object.defineProperty(e, "__esModule", { value: !0 }), s(Ls(), e);
1979
1979
  }(Ee)), Ee;
1980
1980
  }
1981
- var gt = { exports: {} }, mt, fn;
1982
- function Cs() {
1983
- if (fn) return mt;
1984
- fn = 1, mt = i;
1981
+ var gt = { exports: {} }, mt, pn;
1982
+ function Ps() {
1983
+ if (pn) return mt;
1984
+ pn = 1, mt = i;
1985
1985
  function e(s, o) {
1986
1986
  if (typeof Object.setPrototypeOf == "function")
1987
1987
  return Object.setPrototypeOf(s, o);
@@ -2050,11 +2050,11 @@ function Cs() {
2050
2050
  }
2051
2051
  }, mt;
2052
2052
  }
2053
- var pn;
2054
- function Ps() {
2055
- if (pn) return gt.exports;
2056
- pn = 1;
2057
- var e = Cs(), i = me, s = Ce, o = Pi(), c = os.EventEmitter, r = Li, t = as, n = gt.exports = function() {
2053
+ var hn;
2054
+ function Ds() {
2055
+ if (hn) return gt.exports;
2056
+ hn = 1;
2057
+ var e = Ps(), i = me, s = Ce, o = Di(), c = as.EventEmitter, r = Ci, t = us, n = gt.exports = function() {
2058
2058
  for (var f = [].slice.call(arguments), h = new l(); f.length; ) {
2059
2059
  var g = f.shift();
2060
2060
  g && h.push(typeof g == "string" ? a(g) : g);
@@ -2193,10 +2193,10 @@ function Ps() {
2193
2193
  this._awaiting--, this._awaiting === 0 && this.emit("load", this);
2194
2194
  }, gt.exports;
2195
2195
  }
2196
- var vt, hn;
2197
- function Ds() {
2198
- if (hn) return vt;
2199
- hn = 1, vt = function(i) {
2196
+ var vt, dn;
2197
+ function js() {
2198
+ if (dn) return vt;
2199
+ dn = 1, vt = function(i) {
2200
2200
  const s = i.indexOf(":");
2201
2201
  if (s === -1)
2202
2202
  return e(i);
@@ -2212,10 +2212,10 @@ function Ds() {
2212
2212
  }
2213
2213
  return vt;
2214
2214
  }
2215
- var $e = {}, yt = {}, Ie = {}, dn;
2216
- function js() {
2217
- if (dn) return Ie;
2218
- dn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.envReplace = void 0;
2215
+ var $e = {}, yt = {}, Ie = {}, gn;
2216
+ function qs() {
2217
+ if (gn) return Ie;
2218
+ gn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.envReplace = void 0;
2219
2219
  const e = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
2220
2220
  function i(r, t) {
2221
2221
  return r.replace(e, s.bind(null, t));
@@ -2239,21 +2239,21 @@ function js() {
2239
2239
  }
2240
2240
  return Ie;
2241
2241
  }
2242
- var gn;
2243
- function qs() {
2244
- return gn || (gn = 1, function(e) {
2242
+ var mn;
2243
+ function Fs() {
2244
+ return mn || (mn = 1, function(e) {
2245
2245
  Object.defineProperty(e, "__esModule", { value: !0 }), e.envReplace = void 0;
2246
- var i = js();
2246
+ var i = qs();
2247
2247
  Object.defineProperty(e, "envReplace", { enumerable: !0, get: function() {
2248
2248
  return i.envReplace;
2249
2249
  } });
2250
2250
  }(yt)), yt;
2251
2251
  }
2252
- var mn;
2253
- function Fs() {
2254
- if (mn) return $e;
2255
- mn = 1;
2256
- const e = Ce, i = me, { envReplace: s } = qs(), o = (t) => typeof t != "string" ? t : s(t, process.env), c = (t, n, u) => {
2252
+ var vn;
2253
+ function Bs() {
2254
+ if (vn) return $e;
2255
+ vn = 1;
2256
+ const e = Ce, i = me, { envReplace: s } = Fs(), o = (t) => typeof t != "string" ? t : s(t, process.env), c = (t, n, u) => {
2257
2257
  if (typeof n != "string")
2258
2258
  return n;
2259
2259
  const a = [].concat(t[u]), l = a.indexOf(i) !== -1, d = a.indexOf(Boolean) !== -1, f = a.indexOf(String) !== -1, h = a.indexOf(Number) !== -1;
@@ -2307,11 +2307,11 @@ function Fs() {
2307
2307
  };
2308
2308
  return $e.envReplace = s, $e.findPrefix = r, $e.parseField = c, $e.parseKey = o, $e;
2309
2309
  }
2310
- var Et = {}, vn;
2311
- function Bs() {
2312
- if (vn) return Et;
2313
- vn = 1;
2314
- const e = me, i = Ni.Stream, s = Li, o = () => {
2310
+ var Et = {}, yn;
2311
+ function Hs() {
2312
+ if (yn) return Et;
2313
+ yn = 1;
2314
+ const e = me, i = Li.Stream, s = Ci, o = () => {
2315
2315
  }, c = () => [], r = () => {
2316
2316
  };
2317
2317
  return Et.types = {
@@ -2439,15 +2439,15 @@ function Bs() {
2439
2439
  _exit: Boolean
2440
2440
  }, Et;
2441
2441
  }
2442
- var Rt, yn;
2443
- function Hs() {
2444
- if (yn) return Rt;
2445
- yn = 1;
2446
- const { readCAFileSync: e } = Ls(), i = Ce, s = me, { ConfigChain: o } = Ps(), c = Ds(), r = Fs();
2442
+ var Rt, En;
2443
+ function Gs() {
2444
+ if (En) return Rt;
2445
+ En = 1;
2446
+ const { readCAFileSync: e } = Cs(), i = Ce, s = me, { ConfigChain: o } = Ds(), c = js(), r = Bs();
2447
2447
  class t extends o {
2448
2448
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
2449
2449
  constructor(a, l) {
2450
- super(a), this.root = a, this._parseField = r.parseField.bind(null, l || Bs());
2450
+ super(a), this.root = a, this._parseField = r.parseField.bind(null, l || Hs());
2451
2451
  }
2452
2452
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
2453
2453
  add(a, l) {
@@ -2565,10 +2565,10 @@ function Hs() {
2565
2565
  }
2566
2566
  return Rt = t, Rt;
2567
2567
  }
2568
- var wt = {}, En;
2569
- function Gs() {
2570
- return En || (En = 1, function(e) {
2571
- const i = us, s = me, o = i.tmpdir(), c = process.getuid ? process.getuid() : process.pid, r = () => !0, t = process.platform === "win32", n = {
2568
+ var wt = {}, Rn;
2569
+ function Ms() {
2570
+ return Rn || (Rn = 1, function(e) {
2571
+ const i = cs, s = me, o = i.tmpdir(), c = process.getuid ? process.getuid() : process.pid, r = () => !0, t = process.platform === "win32", n = {
2572
2572
  editor: () => process.env.EDITOR || process.env.VISUAL || (t ? "notepad.exe" : "vi"),
2573
2573
  shell: () => t ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
2574
2574
  }, u = {
@@ -2705,10 +2705,10 @@ function Gs() {
2705
2705
  });
2706
2706
  }(wt)), wt;
2707
2707
  }
2708
- var Rn;
2709
- function Ms() {
2710
- return Rn || (Rn = 1, function(e) {
2711
- const i = me, s = Hs(), o = Gs();
2708
+ var wn;
2709
+ function Us() {
2710
+ return wn || (wn = 1, function(e) {
2711
+ const i = me, s = Gs(), o = Ms();
2712
2712
  e.exports = (c, r, t) => {
2713
2713
  const n = new s(Object.assign({}, o.defaults, t), r);
2714
2714
  n.add(Object.assign({}, c), "cli");
@@ -2749,11 +2749,11 @@ function Ms() {
2749
2749
  });
2750
2750
  }(ft)), ft.exports;
2751
2751
  }
2752
- var $t, wn;
2753
- function Us() {
2754
- if (wn) return $t;
2755
- wn = 1;
2756
- const e = Ms(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2752
+ var $t, $n;
2753
+ function ks() {
2754
+ if ($n) return $t;
2755
+ $n = 1;
2756
+ const e = Us(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2757
2757
  $t = function() {
2758
2758
  let y, p;
2759
2759
  arguments.length >= 2 ? (y = arguments[0], p = Object.assign({}, arguments[1])) : typeof arguments[0] == "string" ? y = arguments[0] : p = Object.assign({}, arguments[0]), p = p || {};
@@ -2825,13 +2825,13 @@ function Us() {
2825
2825
  }
2826
2826
  return $t;
2827
2827
  }
2828
- var ks = Us();
2829
- const St = /* @__PURE__ */ Ue(ks);
2830
- function Vs(e, i) {
2828
+ var Vs = ks();
2829
+ const St = /* @__PURE__ */ Ue(Vs);
2830
+ function Xs(e, i) {
2831
2831
  let s = e.slice(0, i).split(/\r\n|\n|\r/g);
2832
2832
  return [s.length, s.pop().length + 1];
2833
2833
  }
2834
- function Xs(e, i, s) {
2834
+ function Ks(e, i, s) {
2835
2835
  let o = e.split(/\r\n|\n|\r/g), c = "", r = (Math.log10(i + 1) | 0) + 1;
2836
2836
  for (let t = i - 1; t <= i + 1; t++) {
2837
2837
  let n = o[t - 1];
@@ -2846,7 +2846,7 @@ class Y extends Error {
2846
2846
  column;
2847
2847
  codeblock;
2848
2848
  constructor(i, s) {
2849
- const [o, c] = Vs(s.toml, s.ptr), r = Xs(s.toml, o, c);
2849
+ const [o, c] = Xs(s.toml, s.ptr), r = Ks(s.toml, o, c);
2850
2850
  super(`Invalid TOML document: ${i}
2851
2851
 
2852
2852
  ${r}`, s), this.line = o, this.column = c, this.codeblock = r;
@@ -2882,7 +2882,7 @@ function de(e, i, s, o) {
2882
2882
  i++;
2883
2883
  return o || c !== "#" ? i : de(e, Or(e, i), s);
2884
2884
  }
2885
- function $n(e, i, s, o, c = !1) {
2885
+ function Sn(e, i, s, o, c = !1) {
2886
2886
  if (!o)
2887
2887
  return i = Me(e, i), i < 0 ? e.length : i;
2888
2888
  for (let r = i; r < e.length; r++) {
@@ -2903,7 +2903,7 @@ function $n(e, i, s, o, c = !1) {
2903
2903
  ptr: i
2904
2904
  });
2905
2905
  }
2906
- function Di(e, i) {
2906
+ function ji(e, i) {
2907
2907
  let s = e[i], o = s === e[i + 1] && e[i + 1] === e[i + 2] ? e.slice(i, i + 3) : s;
2908
2908
  i += o.length - 1;
2909
2909
  do
@@ -2911,7 +2911,7 @@ function Di(e, i) {
2911
2911
  while (i > -1 && s !== "'" && e[i - 1] === "\\" && (e[i - 2] !== "\\" || e[i - 3] === "\\"));
2912
2912
  return i > -1 && (i += o.length, o.length > 1 && (e[i] === s && i++, e[i] === s && i++)), i;
2913
2913
  }
2914
- let Ks = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2914
+ let Ws = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2915
2915
  class Ae extends Date {
2916
2916
  #t = !1;
2917
2917
  #r = !1;
@@ -2919,7 +2919,7 @@ class Ae extends Date {
2919
2919
  constructor(i) {
2920
2920
  let s = !0, o = !0, c = "Z";
2921
2921
  if (typeof i == "string") {
2922
- let r = i.match(Ks);
2922
+ let r = i.match(Ws);
2923
2923
  r ? (r[1] || (s = !1, i = `0000-01-01T${i}`), o = !!r[2], o && i[10] === " " && (i = i.replace(" ", "T")), r[2] && +r[2] > 23 ? i = "" : (c = r[3] || null, i = i.toUpperCase(), !c && o && (i += "Z"))) : i = "";
2924
2924
  }
2925
2925
  super(i), isNaN(this.getTime()) || (this.#t = s, this.#r = o, this.#e = c);
@@ -2969,7 +2969,7 @@ class Ae extends Date {
2969
2969
  return s.#t = !1, s.#e = null, s;
2970
2970
  }
2971
2971
  }
2972
- let Ws = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, zs = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, Ys = /^[+-]?0[0-9_]/, Qs = /^[0-9a-f]{4,8}$/i, Sn = {
2972
+ let zs = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Ys = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, Qs = /^[+-]?0[0-9_]/, Js = /^[0-9a-f]{4,8}$/i, bn = {
2973
2973
  b: "\b",
2974
2974
  t: " ",
2975
2975
  n: `
@@ -2979,7 +2979,7 @@ let Ws = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, zs = /^
2979
2979
  '"': '"',
2980
2980
  "\\": "\\"
2981
2981
  };
2982
- function ji(e, i = 0, s = e.length) {
2982
+ function qi(e, i = 0, s = e.length) {
2983
2983
  let o = e[i] === "'", c = e[i++] === e[i] && e[i] === e[i + 1];
2984
2984
  c && (s -= 2, e[i += 2] === "\r" && i++, e[i] === `
2985
2985
  ` && i++);
@@ -3002,7 +3002,7 @@ function ji(e, i = 0, s = e.length) {
3002
3002
  if (t) {
3003
3003
  if (t = !1, a === "u" || a === "U") {
3004
3004
  let l = e.slice(i, i += a === "u" ? 4 : 8);
3005
- if (!Qs.test(l))
3005
+ if (!Js.test(l))
3006
3006
  throw new Y("invalid unicode escape", {
3007
3007
  toml: e,
3008
3008
  ptr: r
@@ -3024,8 +3024,8 @@ function ji(e, i = 0, s = e.length) {
3024
3024
  ptr: r
3025
3025
  });
3026
3026
  i = de(e, i);
3027
- } else if (a in Sn)
3028
- n += Sn[a];
3027
+ } else if (a in bn)
3028
+ n += bn[a];
3029
3029
  else
3030
3030
  throw new Y("unrecognized escape sequence", {
3031
3031
  toml: e,
@@ -3036,7 +3036,7 @@ function ji(e, i = 0, s = e.length) {
3036
3036
  }
3037
3037
  return n + e.slice(u, s - 1);
3038
3038
  }
3039
- function Js(e, i, s, o) {
3039
+ function Zs(e, i, s, o) {
3040
3040
  if (e === "true")
3041
3041
  return !0;
3042
3042
  if (e === "false")
@@ -3049,9 +3049,9 @@ function Js(e, i, s, o) {
3049
3049
  return NaN;
3050
3050
  if (e === "-0")
3051
3051
  return o ? 0n : 0;
3052
- let c = Ws.test(e);
3053
- if (c || zs.test(e)) {
3054
- if (Ys.test(e))
3052
+ let c = zs.test(e);
3053
+ if (c || Ys.test(e)) {
3054
+ if (Qs.test(e))
3055
3055
  throw new Y("leading zeroes are not allowed", {
3056
3056
  toml: i,
3057
3057
  ptr: s
@@ -3081,7 +3081,7 @@ function Js(e, i, s, o) {
3081
3081
  });
3082
3082
  return r;
3083
3083
  }
3084
- function Zs(e, i, s, o) {
3084
+ function eo(e, i, s, o) {
3085
3085
  let c = e.slice(i, s), r = c.indexOf("#");
3086
3086
  r > -1 && (Or(e, r), c = c.slice(0, r));
3087
3087
  let t = c.trimEnd();
@@ -3104,7 +3104,7 @@ function xr(e, i, s, o, c) {
3104
3104
  });
3105
3105
  let r = e[i];
3106
3106
  if (r === "[" || r === "{") {
3107
- let [u, a] = r === "[" ? ro(e, i, o, c) : to(e, i, o, c), l = s ? $n(e, a, ",", s) : a;
3107
+ let [u, a] = r === "[" ? no(e, i, o, c) : ro(e, i, o, c), l = s ? Sn(e, a, ",", s) : a;
3108
3108
  if (a - l && s === "}") {
3109
3109
  let d = Me(e, a, l);
3110
3110
  if (d > -1)
@@ -3117,8 +3117,8 @@ function xr(e, i, s, o, c) {
3117
3117
  }
3118
3118
  let t;
3119
3119
  if (r === '"' || r === "'") {
3120
- t = Di(e, i);
3121
- let u = ji(e, i, t);
3120
+ t = ji(e, i);
3121
+ let u = qi(e, i, t);
3122
3122
  if (s) {
3123
3123
  if (t = de(e, t, s !== "]"), e[t] && e[t] !== "," && e[t] !== s && e[t] !== `
3124
3124
  ` && e[t] !== "\r")
@@ -3130,19 +3130,19 @@ function xr(e, i, s, o, c) {
3130
3130
  }
3131
3131
  return [u, t];
3132
3132
  }
3133
- t = $n(e, i, ",", s);
3134
- let n = Zs(e, i, t - +(e[t - 1] === ","), s === "]");
3133
+ t = Sn(e, i, ",", s);
3134
+ let n = eo(e, i, t - +(e[t - 1] === ","), s === "]");
3135
3135
  if (!n[0])
3136
3136
  throw new Y("incomplete key-value declaration: no value specified", {
3137
3137
  toml: e,
3138
3138
  ptr: i
3139
3139
  });
3140
3140
  return s && n[1] > -1 && (t = de(e, i + n[1]), t += +(e[t] === ",")), [
3141
- Js(n[0], e, i, c),
3141
+ Zs(n[0], e, i, c),
3142
3142
  t
3143
3143
  ];
3144
3144
  }
3145
- let eo = /^[a-zA-Z0-9-_]+[ \t]*$/;
3145
+ let to = /^[a-zA-Z0-9-_]+[ \t]*$/;
3146
3146
  function wr(e, i, s = "=") {
3147
3147
  let o = i - 1, c = [], r = e.indexOf(s, i);
3148
3148
  if (r < 0)
@@ -3159,7 +3159,7 @@ function wr(e, i, s = "=") {
3159
3159
  toml: e,
3160
3160
  ptr: i
3161
3161
  });
3162
- let n = Di(e, i);
3162
+ let n = ji(e, i);
3163
3163
  if (n < 0)
3164
3164
  throw new Y("unfinished string encountered", {
3165
3165
  toml: e,
@@ -3182,11 +3182,11 @@ function wr(e, i, s = "=") {
3182
3182
  toml: e,
3183
3183
  ptr: i
3184
3184
  });
3185
- c.push(ji(e, i, n));
3185
+ c.push(qi(e, i, n));
3186
3186
  } else {
3187
3187
  o = e.indexOf(".", i);
3188
3188
  let n = e.slice(i, o < 0 || o > r ? r : o);
3189
- if (!eo.test(n))
3189
+ if (!to.test(n))
3190
3190
  throw new Y("only letter, numbers, dashes and underscores are allowed in keys", {
3191
3191
  toml: e,
3192
3192
  ptr: i
@@ -3196,7 +3196,7 @@ function wr(e, i, s = "=") {
3196
3196
  } while (o + 1 && o < r);
3197
3197
  return [c, de(e, r + 1, !0, !0)];
3198
3198
  }
3199
- function to(e, i, s, o) {
3199
+ function ro(e, i, s, o) {
3200
3200
  let c = {}, r = /* @__PURE__ */ new Set(), t, n = 0;
3201
3201
  for (i++; (t = e[i++]) !== "}" && t; ) {
3202
3202
  let u = { toml: e, ptr: i - 1 };
@@ -3238,7 +3238,7 @@ function to(e, i, s, o) {
3238
3238
  });
3239
3239
  return [c, i];
3240
3240
  }
3241
- function ro(e, i, s, o) {
3241
+ function no(e, i, s, o) {
3242
3242
  let c = [], r;
3243
3243
  for (i++; (r = e[i++]) !== "]" && r; ) {
3244
3244
  if (r === ",")
@@ -3261,7 +3261,7 @@ function ro(e, i, s, o) {
3261
3261
  });
3262
3262
  return [c, i];
3263
3263
  }
3264
- function bn(e, i, s, o) {
3264
+ function An(e, i, s, o) {
3265
3265
  let c = i, r = s, t, n = !1, u;
3266
3266
  for (let a = 0; a < e.length; a++) {
3267
3267
  if (a) {
@@ -3289,7 +3289,7 @@ function bn(e, i, s, o) {
3289
3289
  return null;
3290
3290
  return [t, c, u.c];
3291
3291
  }
3292
- function no(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3292
+ function io(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3293
3293
  let o = {}, c = {}, r = o, t = c;
3294
3294
  for (let n = de(e, 0); n < e.length; ) {
3295
3295
  if (e[n] === "[") {
@@ -3302,7 +3302,7 @@ function no(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3302
3302
  });
3303
3303
  a[1]++;
3304
3304
  }
3305
- let l = bn(
3305
+ let l = An(
3306
3306
  a[0],
3307
3307
  o,
3308
3308
  c,
@@ -3316,7 +3316,7 @@ function no(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3316
3316
  });
3317
3317
  t = l[2], r = l[1], n = a[1];
3318
3318
  } else {
3319
- let u = wr(e, n), a = bn(
3319
+ let u = wr(e, n), a = An(
3320
3320
  u[0],
3321
3321
  r,
3322
3322
  t,
@@ -3341,10 +3341,10 @@ function no(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3341
3341
  }
3342
3342
  return o;
3343
3343
  }
3344
- var Fe = { exports: {} }, bt, An;
3344
+ var Fe = { exports: {} }, bt, _n;
3345
3345
  function Xe() {
3346
- if (An) return bt;
3347
- An = 1;
3346
+ if (_n) return bt;
3347
+ _n = 1;
3348
3348
  const e = "2.0.0", i = 256, s = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
3349
3349
  9007199254740991;
3350
3350
  return bt = {
@@ -3354,14 +3354,14 @@ function Xe() {
3354
3354
  MAX_SAFE_COMPONENT_LENGTH: 16
3355
3355
  }, bt;
3356
3356
  }
3357
- var At, _n;
3357
+ var At, On;
3358
3358
  function Ke() {
3359
- return _n || (_n = 1, At = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...i) => console.error("SEMVER", ...i) : () => {
3359
+ return On || (On = 1, At = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...i) => console.error("SEMVER", ...i) : () => {
3360
3360
  }), At;
3361
3361
  }
3362
- var On;
3362
+ var xn;
3363
3363
  function xe() {
3364
- return On || (On = 1, function(e, i) {
3364
+ return xn || (xn = 1, function(e, i) {
3365
3365
  const { MAX_SAFE_COMPONENT_LENGTH: s } = Xe(), o = Ke();
3366
3366
  i = e.exports = {};
3367
3367
  const c = i.re = [], r = i.src = [], t = i.t = {};
@@ -3373,17 +3373,17 @@ function xe() {
3373
3373
  u("NUMERICIDENTIFIER", "0|[1-9]\\d*"), u("NUMERICIDENTIFIERLOOSE", "[0-9]+"), u("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"), u("MAINVERSION", `(${r[t.NUMERICIDENTIFIER]})\\.(${r[t.NUMERICIDENTIFIER]})\\.(${r[t.NUMERICIDENTIFIER]})`), u("MAINVERSIONLOOSE", `(${r[t.NUMERICIDENTIFIERLOOSE]})\\.(${r[t.NUMERICIDENTIFIERLOOSE]})\\.(${r[t.NUMERICIDENTIFIERLOOSE]})`), u("PRERELEASEIDENTIFIER", `(?:${r[t.NUMERICIDENTIFIER]}|${r[t.NONNUMERICIDENTIFIER]})`), u("PRERELEASEIDENTIFIERLOOSE", `(?:${r[t.NUMERICIDENTIFIERLOOSE]}|${r[t.NONNUMERICIDENTIFIER]})`), u("PRERELEASE", `(?:-(${r[t.PRERELEASEIDENTIFIER]}(?:\\.${r[t.PRERELEASEIDENTIFIER]})*))`), u("PRERELEASELOOSE", `(?:-?(${r[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[t.PRERELEASEIDENTIFIERLOOSE]})*))`), u("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), u("BUILD", `(?:\\+(${r[t.BUILDIDENTIFIER]}(?:\\.${r[t.BUILDIDENTIFIER]})*))`), u("FULLPLAIN", `v?${r[t.MAINVERSION]}${r[t.PRERELEASE]}?${r[t.BUILD]}?`), u("FULL", `^${r[t.FULLPLAIN]}$`), u("LOOSEPLAIN", `[v=\\s]*${r[t.MAINVERSIONLOOSE]}${r[t.PRERELEASELOOSE]}?${r[t.BUILD]}?`), u("LOOSE", `^${r[t.LOOSEPLAIN]}$`), u("GTLT", "((?:<|>)?=?)"), u("XRANGEIDENTIFIERLOOSE", `${r[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), u("XRANGEIDENTIFIER", `${r[t.NUMERICIDENTIFIER]}|x|X|\\*`), u("XRANGEPLAIN", `[v=\\s]*(${r[t.XRANGEIDENTIFIER]})(?:\\.(${r[t.XRANGEIDENTIFIER]})(?:\\.(${r[t.XRANGEIDENTIFIER]})(?:${r[t.PRERELEASE]})?${r[t.BUILD]}?)?)?`), u("XRANGEPLAINLOOSE", `[v=\\s]*(${r[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[t.XRANGEIDENTIFIERLOOSE]})(?:${r[t.PRERELEASELOOSE]})?${r[t.BUILD]}?)?)?`), u("XRANGE", `^${r[t.GTLT]}\\s*${r[t.XRANGEPLAIN]}$`), u("XRANGELOOSE", `^${r[t.GTLT]}\\s*${r[t.XRANGEPLAINLOOSE]}$`), u("COERCE", `(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`), u("COERCERTL", r[t.COERCE], !0), u("LONETILDE", "(?:~>?)"), u("TILDETRIM", `(\\s*)${r[t.LONETILDE]}\\s+`, !0), i.tildeTrimReplace = "$1~", u("TILDE", `^${r[t.LONETILDE]}${r[t.XRANGEPLAIN]}$`), u("TILDELOOSE", `^${r[t.LONETILDE]}${r[t.XRANGEPLAINLOOSE]}$`), u("LONECARET", "(?:\\^)"), u("CARETTRIM", `(\\s*)${r[t.LONECARET]}\\s+`, !0), i.caretTrimReplace = "$1^", u("CARET", `^${r[t.LONECARET]}${r[t.XRANGEPLAIN]}$`), u("CARETLOOSE", `^${r[t.LONECARET]}${r[t.XRANGEPLAINLOOSE]}$`), u("COMPARATORLOOSE", `^${r[t.GTLT]}\\s*(${r[t.LOOSEPLAIN]})$|^$`), u("COMPARATOR", `^${r[t.GTLT]}\\s*(${r[t.FULLPLAIN]})$|^$`), u("COMPARATORTRIM", `(\\s*)${r[t.GTLT]}\\s*(${r[t.LOOSEPLAIN]}|${r[t.XRANGEPLAIN]})`, !0), i.comparatorTrimReplace = "$1$2$3", u("HYPHENRANGE", `^\\s*(${r[t.XRANGEPLAIN]})\\s+-\\s+(${r[t.XRANGEPLAIN]})\\s*$`), u("HYPHENRANGELOOSE", `^\\s*(${r[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[t.XRANGEPLAINLOOSE]})\\s*$`), u("STAR", "(<|>)?=?\\s*\\*"), u("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), u("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
3374
3374
  }(Fe, Fe.exports)), Fe.exports;
3375
3375
  }
3376
- var _t, xn;
3376
+ var _t, Tn;
3377
3377
  function We() {
3378
- if (xn) return _t;
3379
- xn = 1;
3378
+ if (Tn) return _t;
3379
+ Tn = 1;
3380
3380
  const e = ["includePrerelease", "loose", "rtl"];
3381
3381
  return _t = (s) => s ? typeof s != "object" ? { loose: !0 } : e.filter((o) => s[o]).reduce((o, c) => (o[c] = !0, o), {}) : {}, _t;
3382
3382
  }
3383
- var Ot, Tn;
3384
- function qi() {
3385
- if (Tn) return Ot;
3386
- Tn = 1;
3383
+ var Ot, In;
3384
+ function Fi() {
3385
+ if (In) return Ot;
3386
+ In = 1;
3387
3387
  const e = /^[0-9]+$/, i = (o, c) => {
3388
3388
  const r = e.test(o), t = e.test(c);
3389
3389
  return r && t && (o = +o, c = +c), o === c ? 0 : r && !t ? -1 : t && !r ? 1 : o < c ? -1 : 1;
@@ -3393,11 +3393,11 @@ function qi() {
3393
3393
  rcompareIdentifiers: (o, c) => i(c, o)
3394
3394
  }, Ot;
3395
3395
  }
3396
- var xt, In;
3396
+ var xt, Nn;
3397
3397
  function le() {
3398
- if (In) return xt;
3399
- In = 1;
3400
- const e = Ke(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Xe(), { re: o, t: c } = xe(), r = We(), { compareIdentifiers: t } = qi();
3398
+ if (Nn) return xt;
3399
+ Nn = 1;
3400
+ const e = Ke(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Xe(), { re: o, t: c } = xe(), r = We(), { compareIdentifiers: t } = Fi();
3401
3401
  class n {
3402
3402
  constructor(a, l) {
3403
3403
  if (l = r(l), a instanceof n) {
@@ -3531,10 +3531,10 @@ function le() {
3531
3531
  }
3532
3532
  return xt = n, xt;
3533
3533
  }
3534
- var Tt, Nn;
3534
+ var Tt, Ln;
3535
3535
  function Te() {
3536
- if (Nn) return Tt;
3537
- Nn = 1;
3536
+ if (Ln) return Tt;
3537
+ Ln = 1;
3538
3538
  const { MAX_LENGTH: e } = Xe(), { re: i, t: s } = xe(), o = le(), c = We();
3539
3539
  return Tt = (t, n) => {
3540
3540
  if (n = c(n), t instanceof o)
@@ -3548,30 +3548,30 @@ function Te() {
3548
3548
  }
3549
3549
  }, Tt;
3550
3550
  }
3551
- var It, Ln;
3552
- function io() {
3553
- if (Ln) return It;
3554
- Ln = 1;
3551
+ var It, Cn;
3552
+ function so() {
3553
+ if (Cn) return It;
3554
+ Cn = 1;
3555
3555
  const e = Te();
3556
3556
  return It = (s, o) => {
3557
3557
  const c = e(s, o);
3558
3558
  return c ? c.version : null;
3559
3559
  }, It;
3560
3560
  }
3561
- var Nt, Cn;
3562
- function so() {
3563
- if (Cn) return Nt;
3564
- Cn = 1;
3561
+ var Nt, Pn;
3562
+ function oo() {
3563
+ if (Pn) return Nt;
3564
+ Pn = 1;
3565
3565
  const e = Te();
3566
3566
  return Nt = (s, o) => {
3567
3567
  const c = e(s.trim().replace(/^[=v]+/, ""), o);
3568
3568
  return c ? c.version : null;
3569
3569
  }, Nt;
3570
3570
  }
3571
- var Lt, Pn;
3572
- function oo() {
3573
- if (Pn) return Lt;
3574
- Pn = 1;
3571
+ var Lt, Dn;
3572
+ function ao() {
3573
+ if (Dn) return Lt;
3574
+ Dn = 1;
3575
3575
  const e = le();
3576
3576
  return Lt = (s, o, c, r) => {
3577
3577
  typeof c == "string" && (r = c, c = void 0);
@@ -3585,24 +3585,24 @@ function oo() {
3585
3585
  }
3586
3586
  }, Lt;
3587
3587
  }
3588
- var Ct, Dn;
3588
+ var Ct, jn;
3589
3589
  function pe() {
3590
- if (Dn) return Ct;
3591
- Dn = 1;
3590
+ if (jn) return Ct;
3591
+ jn = 1;
3592
3592
  const e = le();
3593
3593
  return Ct = (s, o, c) => new e(s, c).compare(new e(o, c)), Ct;
3594
3594
  }
3595
- var Pt, jn;
3595
+ var Pt, qn;
3596
3596
  function Tr() {
3597
- if (jn) return Pt;
3598
- jn = 1;
3597
+ if (qn) return Pt;
3598
+ qn = 1;
3599
3599
  const e = pe();
3600
3600
  return Pt = (s, o, c) => e(s, o, c) === 0, Pt;
3601
3601
  }
3602
- var Dt, qn;
3603
- function ao() {
3604
- if (qn) return Dt;
3605
- qn = 1;
3602
+ var Dt, Fn;
3603
+ function uo() {
3604
+ if (Fn) return Dt;
3605
+ Fn = 1;
3606
3606
  const e = Te(), i = Tr();
3607
3607
  return Dt = (o, c) => {
3608
3608
  if (i(o, c))
@@ -3616,115 +3616,115 @@ function ao() {
3616
3616
  }
3617
3617
  }, Dt;
3618
3618
  }
3619
- var jt, Fn;
3620
- function uo() {
3621
- if (Fn) return jt;
3622
- Fn = 1;
3623
- const e = le();
3624
- return jt = (s, o) => new e(s, o).major, jt;
3625
- }
3626
- var qt, Bn;
3619
+ var jt, Bn;
3627
3620
  function co() {
3628
- if (Bn) return qt;
3621
+ if (Bn) return jt;
3629
3622
  Bn = 1;
3630
3623
  const e = le();
3631
- return qt = (s, o) => new e(s, o).minor, qt;
3624
+ return jt = (s, o) => new e(s, o).major, jt;
3632
3625
  }
3633
- var Ft, Hn;
3626
+ var qt, Hn;
3634
3627
  function lo() {
3635
- if (Hn) return Ft;
3628
+ if (Hn) return qt;
3636
3629
  Hn = 1;
3637
3630
  const e = le();
3638
- return Ft = (s, o) => new e(s, o).patch, Ft;
3631
+ return qt = (s, o) => new e(s, o).minor, qt;
3639
3632
  }
3640
- var Bt, Gn;
3633
+ var Ft, Gn;
3641
3634
  function fo() {
3642
- if (Gn) return Bt;
3635
+ if (Gn) return Ft;
3643
3636
  Gn = 1;
3637
+ const e = le();
3638
+ return Ft = (s, o) => new e(s, o).patch, Ft;
3639
+ }
3640
+ var Bt, Mn;
3641
+ function po() {
3642
+ if (Mn) return Bt;
3643
+ Mn = 1;
3644
3644
  const e = Te();
3645
3645
  return Bt = (s, o) => {
3646
3646
  const c = e(s, o);
3647
3647
  return c && c.prerelease.length ? c.prerelease : null;
3648
3648
  }, Bt;
3649
3649
  }
3650
- var Ht, Mn;
3651
- function po() {
3652
- if (Mn) return Ht;
3653
- Mn = 1;
3650
+ var Ht, Un;
3651
+ function ho() {
3652
+ if (Un) return Ht;
3653
+ Un = 1;
3654
3654
  const e = pe();
3655
3655
  return Ht = (s, o, c) => e(o, s, c), Ht;
3656
3656
  }
3657
- var Gt, Un;
3658
- function ho() {
3659
- if (Un) return Gt;
3660
- Un = 1;
3657
+ var Gt, kn;
3658
+ function go() {
3659
+ if (kn) return Gt;
3660
+ kn = 1;
3661
3661
  const e = pe();
3662
3662
  return Gt = (s, o) => e(s, o, !0), Gt;
3663
3663
  }
3664
- var Mt, kn;
3664
+ var Mt, Vn;
3665
3665
  function Ir() {
3666
- if (kn) return Mt;
3667
- kn = 1;
3666
+ if (Vn) return Mt;
3667
+ Vn = 1;
3668
3668
  const e = le();
3669
3669
  return Mt = (s, o, c) => {
3670
3670
  const r = new e(s, c), t = new e(o, c);
3671
3671
  return r.compare(t) || r.compareBuild(t);
3672
3672
  }, Mt;
3673
3673
  }
3674
- var Ut, Vn;
3675
- function go() {
3676
- if (Vn) return Ut;
3677
- Vn = 1;
3674
+ var Ut, Xn;
3675
+ function mo() {
3676
+ if (Xn) return Ut;
3677
+ Xn = 1;
3678
3678
  const e = Ir();
3679
3679
  return Ut = (s, o) => s.sort((c, r) => e(c, r, o)), Ut;
3680
3680
  }
3681
- var kt, Xn;
3682
- function mo() {
3683
- if (Xn) return kt;
3684
- Xn = 1;
3681
+ var kt, Kn;
3682
+ function vo() {
3683
+ if (Kn) return kt;
3684
+ Kn = 1;
3685
3685
  const e = Ir();
3686
3686
  return kt = (s, o) => s.sort((c, r) => e(r, c, o)), kt;
3687
3687
  }
3688
- var Vt, Kn;
3688
+ var Vt, Wn;
3689
3689
  function ze() {
3690
- if (Kn) return Vt;
3691
- Kn = 1;
3690
+ if (Wn) return Vt;
3691
+ Wn = 1;
3692
3692
  const e = pe();
3693
3693
  return Vt = (s, o, c) => e(s, o, c) > 0, Vt;
3694
3694
  }
3695
- var Xt, Wn;
3695
+ var Xt, zn;
3696
3696
  function Nr() {
3697
- if (Wn) return Xt;
3698
- Wn = 1;
3697
+ if (zn) return Xt;
3698
+ zn = 1;
3699
3699
  const e = pe();
3700
3700
  return Xt = (s, o, c) => e(s, o, c) < 0, Xt;
3701
3701
  }
3702
- var Kt, zn;
3703
- function Fi() {
3704
- if (zn) return Kt;
3705
- zn = 1;
3702
+ var Kt, Yn;
3703
+ function Bi() {
3704
+ if (Yn) return Kt;
3705
+ Yn = 1;
3706
3706
  const e = pe();
3707
3707
  return Kt = (s, o, c) => e(s, o, c) !== 0, Kt;
3708
3708
  }
3709
- var Wt, Yn;
3709
+ var Wt, Qn;
3710
3710
  function Lr() {
3711
- if (Yn) return Wt;
3712
- Yn = 1;
3711
+ if (Qn) return Wt;
3712
+ Qn = 1;
3713
3713
  const e = pe();
3714
3714
  return Wt = (s, o, c) => e(s, o, c) >= 0, Wt;
3715
3715
  }
3716
- var zt, Qn;
3716
+ var zt, Jn;
3717
3717
  function Cr() {
3718
- if (Qn) return zt;
3719
- Qn = 1;
3718
+ if (Jn) return zt;
3719
+ Jn = 1;
3720
3720
  const e = pe();
3721
3721
  return zt = (s, o, c) => e(s, o, c) <= 0, zt;
3722
3722
  }
3723
- var Yt, Jn;
3724
- function Bi() {
3725
- if (Jn) return Yt;
3726
- Jn = 1;
3727
- const e = Tr(), i = Fi(), s = ze(), o = Lr(), c = Nr(), r = Cr();
3723
+ var Yt, Zn;
3724
+ function Hi() {
3725
+ if (Zn) return Yt;
3726
+ Zn = 1;
3727
+ const e = Tr(), i = Bi(), s = ze(), o = Lr(), c = Nr(), r = Cr();
3728
3728
  return Yt = (n, u, a, l) => {
3729
3729
  switch (u) {
3730
3730
  case "===":
@@ -3750,10 +3750,10 @@ function Bi() {
3750
3750
  }
3751
3751
  }, Yt;
3752
3752
  }
3753
- var Qt, Zn;
3754
- function vo() {
3755
- if (Zn) return Qt;
3756
- Zn = 1;
3753
+ var Qt, ei;
3754
+ function yo() {
3755
+ if (ei) return Qt;
3756
+ ei = 1;
3757
3757
  const e = le(), i = Te(), { re: s, t: o } = xe();
3758
3758
  return Qt = (r, t) => {
3759
3759
  if (r instanceof e)
@@ -3773,19 +3773,19 @@ function vo() {
3773
3773
  return n === null ? null : i(`${n[2]}.${n[3] || "0"}.${n[4] || "0"}`, t);
3774
3774
  }, Qt;
3775
3775
  }
3776
- var Jt, ei;
3777
- function yo() {
3778
- return ei || (ei = 1, Jt = function(e) {
3776
+ var Jt, ti;
3777
+ function Eo() {
3778
+ return ti || (ti = 1, Jt = function(e) {
3779
3779
  e.prototype[Symbol.iterator] = function* () {
3780
3780
  for (let i = this.head; i; i = i.next)
3781
3781
  yield i.value;
3782
3782
  };
3783
3783
  }), Jt;
3784
3784
  }
3785
- var Zt, ti;
3786
- function Eo() {
3787
- if (ti) return Zt;
3788
- ti = 1, Zt = e, e.Node = c, e.create = e;
3785
+ var Zt, ri;
3786
+ function Ro() {
3787
+ if (ri) return Zt;
3788
+ ri = 1, Zt = e, e.Node = c, e.create = e;
3789
3789
  function e(r) {
3790
3790
  var t = this;
3791
3791
  if (t instanceof e || (t = new e()), t.tail = null, t.head = null, t.length = 0, r && typeof r.forEach == "function")
@@ -3945,16 +3945,16 @@ function Eo() {
3945
3945
  this.list = u, this.value = r, t ? (t.next = this, this.prev = t) : this.prev = null, n ? (n.prev = this, this.next = n) : this.next = null;
3946
3946
  }
3947
3947
  try {
3948
- yo()(e);
3948
+ Eo()(e);
3949
3949
  } catch {
3950
3950
  }
3951
3951
  return Zt;
3952
3952
  }
3953
- var er, ri;
3954
- function Ro() {
3955
- if (ri) return er;
3956
- ri = 1;
3957
- const e = Eo(), i = Symbol("max"), s = Symbol("length"), o = Symbol("lengthCalculator"), c = Symbol("allowStale"), r = Symbol("maxAge"), t = Symbol("dispose"), n = Symbol("noDisposeOnSet"), u = Symbol("lruList"), a = Symbol("cache"), l = Symbol("updateAgeOnGet"), d = () => 1;
3953
+ var er, ni;
3954
+ function wo() {
3955
+ if (ni) return er;
3956
+ ni = 1;
3957
+ const e = Ro(), i = Symbol("max"), s = Symbol("length"), o = Symbol("lengthCalculator"), c = Symbol("allowStale"), r = Symbol("maxAge"), t = Symbol("dispose"), n = Symbol("noDisposeOnSet"), u = Symbol("lruList"), a = Symbol("cache"), l = Symbol("updateAgeOnGet"), d = () => 1;
3958
3958
  class f {
3959
3959
  constructor(m) {
3960
3960
  if (typeof m == "number" && (m = { max: m }), m || (m = {}), m.max && (typeof m.max != "number" || m.max < 0))
@@ -4005,16 +4005,16 @@ function Ro() {
4005
4005
  }
4006
4006
  rforEach(m, b) {
4007
4007
  b = b || this;
4008
- for (let w = this[u].tail; w !== null; ) {
4009
- const x = w.prev;
4010
- A(this, m, w, b), w = x;
4008
+ for (let $ = this[u].tail; $ !== null; ) {
4009
+ const x = $.prev;
4010
+ A(this, m, $, b), $ = x;
4011
4011
  }
4012
4012
  }
4013
4013
  forEach(m, b) {
4014
4014
  b = b || this;
4015
- for (let w = this[u].head; w !== null; ) {
4016
- const x = w.next;
4017
- A(this, m, w, b), w = x;
4015
+ for (let $ = this[u].head; $ !== null; ) {
4016
+ const x = $.next;
4017
+ A(this, m, $, b), $ = x;
4018
4018
  }
4019
4019
  }
4020
4020
  keys() {
@@ -4036,18 +4036,18 @@ function Ro() {
4036
4036
  dumpLru() {
4037
4037
  return this[u];
4038
4038
  }
4039
- set(m, b, w) {
4040
- if (w = w || this[r], w && typeof w != "number")
4039
+ set(m, b, $) {
4040
+ if ($ = $ || this[r], $ && typeof $ != "number")
4041
4041
  throw new TypeError("maxAge must be a number");
4042
- const x = w ? Date.now() : 0, F = this[o](b, m);
4042
+ const x = $ ? Date.now() : 0, F = this[o](b, m);
4043
4043
  if (this[a].has(m)) {
4044
4044
  if (F > this[i])
4045
4045
  return p(this, this[a].get(m)), !1;
4046
4046
  const T = this[a].get(m).value;
4047
- return this[t] && (this[n] || this[t](m, T.value)), T.now = x, T.maxAge = w, T.value = b, this[s] += F - T.length, T.length = F, this.get(m), y(this), !0;
4047
+ return this[t] && (this[n] || this[t](m, T.value)), T.now = x, T.maxAge = $, T.value = b, this[s] += F - T.length, T.length = F, this.get(m), y(this), !0;
4048
4048
  }
4049
- const M = new E(m, b, F, x, w);
4050
- return M.length > this[i] ? (this[t] && this[t](m, b), !1) : (this[s] += M.length, this[u].unshift(M), this[a].set(m, this[u].head), y(this), !0);
4049
+ const G = new E(m, b, F, x, $);
4050
+ return G.length > this[i] ? (this[t] && this[t](m, b), !1) : (this[s] += G.length, this[u].unshift(G), this[a].set(m, this[u].head), y(this), !0);
4051
4051
  }
4052
4052
  has(m) {
4053
4053
  if (!this[a].has(m)) return !1;
@@ -4070,13 +4070,13 @@ function Ro() {
4070
4070
  load(m) {
4071
4071
  this.reset();
4072
4072
  const b = Date.now();
4073
- for (let w = m.length - 1; w >= 0; w--) {
4074
- const x = m[w], F = x.e || 0;
4073
+ for (let $ = m.length - 1; $ >= 0; $--) {
4074
+ const x = m[$], F = x.e || 0;
4075
4075
  if (F === 0)
4076
4076
  this.set(x.k, x.v);
4077
4077
  else {
4078
- const M = F - b;
4079
- M > 0 && this.set(x.k, x.v, M);
4078
+ const G = F - b;
4079
+ G > 0 && this.set(x.k, x.v, G);
4080
4080
  }
4081
4081
  }
4082
4082
  }
@@ -4085,14 +4085,14 @@ function Ro() {
4085
4085
  }
4086
4086
  }
4087
4087
  const h = (v, m, b) => {
4088
- const w = v[a].get(m);
4089
- if (w) {
4090
- const x = w.value;
4088
+ const $ = v[a].get(m);
4089
+ if ($) {
4090
+ const x = $.value;
4091
4091
  if (g(v, x)) {
4092
- if (p(v, w), !v[c])
4092
+ if (p(v, $), !v[c])
4093
4093
  return;
4094
4094
  } else
4095
- b && (v[l] && (w.value.now = Date.now()), v[u].unshiftNode(w));
4095
+ b && (v[l] && ($.value.now = Date.now()), v[u].unshiftNode($));
4096
4096
  return x.value;
4097
4097
  }
4098
4098
  }, g = (v, m) => {
@@ -4113,20 +4113,20 @@ function Ro() {
4113
4113
  }
4114
4114
  };
4115
4115
  class E {
4116
- constructor(m, b, w, x, F) {
4117
- this.key = m, this.value = b, this.length = w, this.now = x, this.maxAge = F || 0;
4116
+ constructor(m, b, $, x, F) {
4117
+ this.key = m, this.value = b, this.length = $, this.now = x, this.maxAge = F || 0;
4118
4118
  }
4119
4119
  }
4120
- const A = (v, m, b, w) => {
4120
+ const A = (v, m, b, $) => {
4121
4121
  let x = b.value;
4122
- g(v, x) && (p(v, b), v[c] || (x = void 0)), x && m.call(w, x.value, x.key, v);
4122
+ g(v, x) && (p(v, b), v[c] || (x = void 0)), x && m.call($, x.value, x.key, v);
4123
4123
  };
4124
4124
  return er = f, er;
4125
4125
  }
4126
- var tr, ni;
4126
+ var tr, ii;
4127
4127
  function he() {
4128
- if (ni) return tr;
4129
- ni = 1;
4128
+ if (ii) return tr;
4129
+ ii = 1;
4130
4130
  class e {
4131
4131
  constructor(_, L) {
4132
4132
  if (L = o(L), _ instanceof e)
@@ -4161,11 +4161,11 @@ function he() {
4161
4161
  if (H)
4162
4162
  return H;
4163
4163
  const O = this.options.loose, I = O ? n[u.HYPHENRANGELOOSE] : n[u.HYPHENRANGE];
4164
- _ = _.replace(I, M(this.options.includePrerelease)), r("hyphen replace", _), _ = _.replace(n[u.COMPARATORTRIM], a), r("comparator trim", _), _ = _.replace(n[u.TILDETRIM], l), _ = _.replace(n[u.CARETTRIM], d), _ = _.split(/\s+/).join(" ");
4164
+ _ = _.replace(I, G(this.options.includePrerelease)), r("hyphen replace", _), _ = _.replace(n[u.COMPARATORTRIM], a), r("comparator trim", _), _ = _.replace(n[u.TILDETRIM], l), _ = _.replace(n[u.CARETTRIM], d), _ = _.split(/\s+/).join(" ");
4165
4165
  let D = _.split(" ").map((k) => y(k, this.options)).join(" ").split(/\s+/).map((k) => F(k, this.options));
4166
4166
  O && (D = D.filter((k) => (r("loose invalid filter", k, this.options), !!k.match(n[u.COMPARATORLOOSE])))), r("range list", D);
4167
- const C = /* @__PURE__ */ new Map(), $ = D.map((k) => new c(k, this.options));
4168
- for (const k of $) {
4167
+ const C = /* @__PURE__ */ new Map(), w = D.map((k) => new c(k, this.options));
4168
+ for (const k of w) {
4169
4169
  if (f(k))
4170
4170
  return [k];
4171
4171
  C.set(k.value, k);
@@ -4190,13 +4190,13 @@ function he() {
4190
4190
  return !1;
4191
4191
  }
4192
4192
  for (let L = 0; L < this.set.length; L++)
4193
- if (G(this.set[L], _, this.options))
4193
+ if (M(this.set[L], _, this.options))
4194
4194
  return !0;
4195
4195
  return !1;
4196
4196
  }
4197
4197
  }
4198
4198
  tr = e;
4199
- const i = Ro(), s = new i({ max: 1e3 }), o = We(), c = Ye(), r = Ke(), t = le(), {
4199
+ const i = wo(), s = new i({ max: 1e3 }), o = We(), c = Ye(), r = Ke(), t = le(), {
4200
4200
  re: n,
4201
4201
  t: u,
4202
4202
  comparatorTrimReplace: a,
@@ -4221,18 +4221,18 @@ function he() {
4221
4221
  const L = _.loose ? n[u.CARETLOOSE] : n[u.CARET], B = _.includePrerelease ? "-0" : "";
4222
4222
  return T.replace(L, (H, O, I, D, C) => {
4223
4223
  r("caret", T, H, O, I, D, C);
4224
- let $;
4225
- return p(O) ? $ = "" : p(I) ? $ = `>=${O}.0.0${B} <${+O + 1}.0.0-0` : p(D) ? O === "0" ? $ = `>=${O}.${I}.0${B} <${O}.${+I + 1}.0-0` : $ = `>=${O}.${I}.0${B} <${+O + 1}.0.0-0` : C ? (r("replaceCaret pr", C), O === "0" ? I === "0" ? $ = `>=${O}.${I}.${D}-${C} <${O}.${I}.${+D + 1}-0` : $ = `>=${O}.${I}.${D}-${C} <${O}.${+I + 1}.0-0` : $ = `>=${O}.${I}.${D}-${C} <${+O + 1}.0.0-0`) : (r("no pr"), O === "0" ? I === "0" ? $ = `>=${O}.${I}.${D}${B} <${O}.${I}.${+D + 1}-0` : $ = `>=${O}.${I}.${D}${B} <${O}.${+I + 1}.0-0` : $ = `>=${O}.${I}.${D} <${+O + 1}.0.0-0`), r("caret return", $), $;
4224
+ let w;
4225
+ return p(O) ? w = "" : p(I) ? w = `>=${O}.0.0${B} <${+O + 1}.0.0-0` : p(D) ? O === "0" ? w = `>=${O}.${I}.0${B} <${O}.${+I + 1}.0-0` : w = `>=${O}.${I}.0${B} <${+O + 1}.0.0-0` : C ? (r("replaceCaret pr", C), O === "0" ? I === "0" ? w = `>=${O}.${I}.${D}-${C} <${O}.${I}.${+D + 1}-0` : w = `>=${O}.${I}.${D}-${C} <${O}.${+I + 1}.0-0` : w = `>=${O}.${I}.${D}-${C} <${+O + 1}.0.0-0`) : (r("no pr"), O === "0" ? I === "0" ? w = `>=${O}.${I}.${D}${B} <${O}.${I}.${+D + 1}-0` : w = `>=${O}.${I}.${D}${B} <${O}.${+I + 1}.0-0` : w = `>=${O}.${I}.${D} <${+O + 1}.0.0-0`), r("caret return", w), w;
4226
4226
  });
4227
- }, b = (T, _) => (r("replaceXRanges", T, _), T.split(/\s+/).map((L) => w(L, _)).join(" ")), w = (T, _) => {
4227
+ }, b = (T, _) => (r("replaceXRanges", T, _), T.split(/\s+/).map((L) => $(L, _)).join(" ")), $ = (T, _) => {
4228
4228
  T = T.trim();
4229
4229
  const L = _.loose ? n[u.XRANGELOOSE] : n[u.XRANGE];
4230
4230
  return T.replace(L, (B, H, O, I, D, C) => {
4231
4231
  r("xRange", T, B, H, O, I, D, C);
4232
- const $ = p(O), X = $ || p(I), k = X || p(D), ne = k;
4233
- return H === "=" && ne && (H = ""), C = _.includePrerelease ? "-0" : "", $ ? H === ">" || H === "<" ? B = "<0.0.0-0" : B = "*" : H && ne ? (X && (I = 0), D = 0, H === ">" ? (H = ">=", X ? (O = +O + 1, I = 0, D = 0) : (I = +I + 1, D = 0)) : H === "<=" && (H = "<", X ? O = +O + 1 : I = +I + 1), H === "<" && (C = "-0"), B = `${H + O}.${I}.${D}${C}`) : X ? B = `>=${O}.0.0${C} <${+O + 1}.0.0-0` : k && (B = `>=${O}.${I}.0${C} <${O}.${+I + 1}.0-0`), r("xRange return", B), B;
4232
+ const w = p(O), X = w || p(I), k = X || p(D), ne = k;
4233
+ return H === "=" && ne && (H = ""), C = _.includePrerelease ? "-0" : "", w ? H === ">" || H === "<" ? B = "<0.0.0-0" : B = "*" : H && ne ? (X && (I = 0), D = 0, H === ">" ? (H = ">=", X ? (O = +O + 1, I = 0, D = 0) : (I = +I + 1, D = 0)) : H === "<=" && (H = "<", X ? O = +O + 1 : I = +I + 1), H === "<" && (C = "-0"), B = `${H + O}.${I}.${D}${C}`) : X ? B = `>=${O}.0.0${C} <${+O + 1}.0.0-0` : k && (B = `>=${O}.${I}.0${C} <${O}.${+I + 1}.0-0`), r("xRange return", B), B;
4234
4234
  });
4235
- }, x = (T, _) => (r("replaceStars", T, _), T.trim().replace(n[u.STAR], "")), F = (T, _) => (r("replaceGTE0", T, _), T.trim().replace(n[_.includePrerelease ? u.GTE0PRE : u.GTE0], "")), M = (T) => (_, L, B, H, O, I, D, C, $, X, k, ne, S) => (p(B) ? L = "" : p(H) ? L = `>=${B}.0.0${T ? "-0" : ""}` : p(O) ? L = `>=${B}.${H}.0${T ? "-0" : ""}` : I ? L = `>=${L}` : L = `>=${L}${T ? "-0" : ""}`, p($) ? C = "" : p(X) ? C = `<${+$ + 1}.0.0-0` : p(k) ? C = `<${$}.${+X + 1}.0-0` : ne ? C = `<=${$}.${X}.${k}-${ne}` : T ? C = `<${$}.${X}.${+k + 1}-0` : C = `<=${C}`, `${L} ${C}`.trim()), G = (T, _, L) => {
4235
+ }, x = (T, _) => (r("replaceStars", T, _), T.trim().replace(n[u.STAR], "")), F = (T, _) => (r("replaceGTE0", T, _), T.trim().replace(n[_.includePrerelease ? u.GTE0PRE : u.GTE0], "")), G = (T) => (_, L, B, H, O, I, D, C, w, X, k, ne, S) => (p(B) ? L = "" : p(H) ? L = `>=${B}.0.0${T ? "-0" : ""}` : p(O) ? L = `>=${B}.${H}.0${T ? "-0" : ""}` : I ? L = `>=${L}` : L = `>=${L}${T ? "-0" : ""}`, p(w) ? C = "" : p(X) ? C = `<${+w + 1}.0.0-0` : p(k) ? C = `<${w}.${+X + 1}.0-0` : ne ? C = `<=${w}.${X}.${k}-${ne}` : T ? C = `<${w}.${X}.${+k + 1}-0` : C = `<=${C}`, `${L} ${C}`.trim()), M = (T, _, L) => {
4236
4236
  for (let B = 0; B < T.length; B++)
4237
4237
  if (!T[B].test(_))
4238
4238
  return !1;
@@ -4249,10 +4249,10 @@ function he() {
4249
4249
  };
4250
4250
  return tr;
4251
4251
  }
4252
- var rr, ii;
4252
+ var rr, si;
4253
4253
  function Ye() {
4254
- if (ii) return rr;
4255
- ii = 1;
4254
+ if (si) return rr;
4255
+ si = 1;
4256
4256
  const e = Symbol("SemVer ANY");
4257
4257
  class i {
4258
4258
  static get ANY() {
@@ -4301,13 +4301,13 @@ function Ye() {
4301
4301
  }
4302
4302
  }
4303
4303
  rr = i;
4304
- const s = We(), { re: o, t: c } = xe(), r = Bi(), t = Ke(), n = le(), u = he();
4304
+ const s = We(), { re: o, t: c } = xe(), r = Hi(), t = Ke(), n = le(), u = he();
4305
4305
  return rr;
4306
4306
  }
4307
- var nr, si;
4307
+ var nr, oi;
4308
4308
  function Qe() {
4309
- if (si) return nr;
4310
- si = 1;
4309
+ if (oi) return nr;
4310
+ oi = 1;
4311
4311
  const e = he();
4312
4312
  return nr = (s, o, c) => {
4313
4313
  try {
@@ -4318,17 +4318,17 @@ function Qe() {
4318
4318
  return o.test(s);
4319
4319
  }, nr;
4320
4320
  }
4321
- var ir, oi;
4322
- function wo() {
4323
- if (oi) return ir;
4324
- oi = 1;
4321
+ var ir, ai;
4322
+ function $o() {
4323
+ if (ai) return ir;
4324
+ ai = 1;
4325
4325
  const e = he();
4326
4326
  return ir = (s, o) => new e(s, o).set.map((c) => c.map((r) => r.value).join(" ").trim().split(" ")), ir;
4327
4327
  }
4328
- var sr, ai;
4329
- function $o() {
4330
- if (ai) return sr;
4331
- ai = 1;
4328
+ var sr, ui;
4329
+ function So() {
4330
+ if (ui) return sr;
4331
+ ui = 1;
4332
4332
  const e = le(), i = he();
4333
4333
  return sr = (o, c, r) => {
4334
4334
  let t = null, n = null, u = null;
@@ -4342,10 +4342,10 @@ function $o() {
4342
4342
  }), t;
4343
4343
  }, sr;
4344
4344
  }
4345
- var or, ui;
4346
- function So() {
4347
- if (ui) return or;
4348
- ui = 1;
4345
+ var or, ci;
4346
+ function bo() {
4347
+ if (ci) return or;
4348
+ ci = 1;
4349
4349
  const e = le(), i = he();
4350
4350
  return or = (o, c, r) => {
4351
4351
  let t = null, n = null, u = null;
@@ -4359,10 +4359,10 @@ function So() {
4359
4359
  }), t;
4360
4360
  }, or;
4361
4361
  }
4362
- var ar, ci;
4363
- function bo() {
4364
- if (ci) return ar;
4365
- ci = 1;
4362
+ var ar, li;
4363
+ function Ao() {
4364
+ if (li) return ar;
4365
+ li = 1;
4366
4366
  const e = le(), i = he(), s = ze();
4367
4367
  return ar = (c, r) => {
4368
4368
  c = new i(c, r);
@@ -4395,10 +4395,10 @@ function bo() {
4395
4395
  return t && c.test(t) ? t : null;
4396
4396
  }, ar;
4397
4397
  }
4398
- var ur, li;
4399
- function Ao() {
4400
- if (li) return ur;
4401
- li = 1;
4398
+ var ur, fi;
4399
+ function _o() {
4400
+ if (fi) return ur;
4401
+ fi = 1;
4402
4402
  const e = he();
4403
4403
  return ur = (s, o) => {
4404
4404
  try {
@@ -4408,10 +4408,10 @@ function Ao() {
4408
4408
  }
4409
4409
  }, ur;
4410
4410
  }
4411
- var cr, fi;
4411
+ var cr, pi;
4412
4412
  function Pr() {
4413
- if (fi) return cr;
4414
- fi = 1;
4413
+ if (pi) return cr;
4414
+ pi = 1;
4415
4415
  const e = le(), i = Ye(), { ANY: s } = i, o = he(), c = Qe(), r = ze(), t = Nr(), n = Cr(), u = Lr();
4416
4416
  return cr = (l, d, f, h) => {
4417
4417
  l = new e(l, h), d = new o(d, h);
@@ -4430,42 +4430,42 @@ function Pr() {
4430
4430
  return !1;
4431
4431
  for (let v = 0; v < d.set.length; ++v) {
4432
4432
  const m = d.set[v];
4433
- let b = null, w = null;
4433
+ let b = null, $ = null;
4434
4434
  if (m.forEach((x) => {
4435
- x.semver === s && (x = new i(">=0.0.0")), b = b || x, w = w || x, g(x.semver, b.semver, h) ? b = x : p(x.semver, w.semver, h) && (w = x);
4436
- }), b.operator === E || b.operator === A || (!w.operator || w.operator === E) && y(l, w.semver))
4435
+ x.semver === s && (x = new i(">=0.0.0")), b = b || x, $ = $ || x, g(x.semver, b.semver, h) ? b = x : p(x.semver, $.semver, h) && ($ = x);
4436
+ }), b.operator === E || b.operator === A || (!$.operator || $.operator === E) && y(l, $.semver))
4437
4437
  return !1;
4438
- if (w.operator === A && p(l, w.semver))
4438
+ if ($.operator === A && p(l, $.semver))
4439
4439
  return !1;
4440
4440
  }
4441
4441
  return !0;
4442
4442
  }, cr;
4443
4443
  }
4444
- var lr, pi;
4445
- function _o() {
4446
- if (pi) return lr;
4447
- pi = 1;
4448
- const e = Pr();
4449
- return lr = (s, o, c) => e(s, o, ">", c), lr;
4450
- }
4451
- var fr, hi;
4444
+ var lr, hi;
4452
4445
  function Oo() {
4453
- if (hi) return fr;
4446
+ if (hi) return lr;
4454
4447
  hi = 1;
4455
4448
  const e = Pr();
4456
- return fr = (s, o, c) => e(s, o, "<", c), fr;
4449
+ return lr = (s, o, c) => e(s, o, ">", c), lr;
4457
4450
  }
4458
- var pr, di;
4451
+ var fr, di;
4459
4452
  function xo() {
4460
- if (di) return pr;
4453
+ if (di) return fr;
4461
4454
  di = 1;
4462
- const e = he();
4463
- return pr = (s, o, c) => (s = new e(s, c), o = new e(o, c), s.intersects(o)), pr;
4455
+ const e = Pr();
4456
+ return fr = (s, o, c) => e(s, o, "<", c), fr;
4464
4457
  }
4465
- var hr, gi;
4458
+ var pr, gi;
4466
4459
  function To() {
4467
- if (gi) return hr;
4460
+ if (gi) return pr;
4468
4461
  gi = 1;
4462
+ const e = he();
4463
+ return pr = (s, o, c) => (s = new e(s, c), o = new e(o, c), s.intersects(o)), pr;
4464
+ }
4465
+ var hr, mi;
4466
+ function Io() {
4467
+ if (mi) return hr;
4468
+ mi = 1;
4469
4469
  const e = Qe(), i = pe();
4470
4470
  return hr = (s, o, c) => {
4471
4471
  const r = [];
@@ -4481,10 +4481,10 @@ function To() {
4481
4481
  return l.length < d.length ? l : o;
4482
4482
  }, hr;
4483
4483
  }
4484
- var dr, mi;
4485
- function Io() {
4486
- if (mi) return dr;
4487
- mi = 1;
4484
+ var dr, vi;
4485
+ function No() {
4486
+ if (vi) return dr;
4487
+ vi = 1;
4488
4488
  const e = he(), i = Ye(), { ANY: s } = i, o = Qe(), c = pe(), r = (a, l, d = {}) => {
4489
4489
  if (a === l)
4490
4490
  return !0;
@@ -4515,8 +4515,8 @@ function Io() {
4515
4515
  }
4516
4516
  const f = /* @__PURE__ */ new Set();
4517
4517
  let h, g;
4518
- for (const w of a)
4519
- w.operator === ">" || w.operator === ">=" ? h = n(h, w, d) : w.operator === "<" || w.operator === "<=" ? g = u(g, w, d) : f.add(w.semver);
4518
+ for (const $ of a)
4519
+ $.operator === ">" || $.operator === ">=" ? h = n(h, $, d) : $.operator === "<" || $.operator === "<=" ? g = u(g, $, d) : f.add($.semver);
4520
4520
  if (f.size > 1)
4521
4521
  return null;
4522
4522
  let y;
@@ -4526,32 +4526,32 @@ function Io() {
4526
4526
  if (y === 0 && (h.operator !== ">=" || g.operator !== "<="))
4527
4527
  return null;
4528
4528
  }
4529
- for (const w of f) {
4530
- if (h && !o(w, String(h), d) || g && !o(w, String(g), d))
4529
+ for (const $ of f) {
4530
+ if (h && !o($, String(h), d) || g && !o($, String(g), d))
4531
4531
  return null;
4532
4532
  for (const x of l)
4533
- if (!o(w, String(x), d))
4533
+ if (!o($, String(x), d))
4534
4534
  return !1;
4535
4535
  return !0;
4536
4536
  }
4537
4537
  let p, E, A, v, m = g && !d.includePrerelease && g.semver.prerelease.length ? g.semver : !1, b = h && !d.includePrerelease && h.semver.prerelease.length ? h.semver : !1;
4538
4538
  m && m.prerelease.length === 1 && g.operator === "<" && m.prerelease[0] === 0 && (m = !1);
4539
- for (const w of l) {
4540
- if (v = v || w.operator === ">" || w.operator === ">=", A = A || w.operator === "<" || w.operator === "<=", h) {
4541
- if (b && w.semver.prerelease && w.semver.prerelease.length && w.semver.major === b.major && w.semver.minor === b.minor && w.semver.patch === b.patch && (b = !1), w.operator === ">" || w.operator === ">=") {
4542
- if (p = n(h, w, d), p === w && p !== h)
4539
+ for (const $ of l) {
4540
+ if (v = v || $.operator === ">" || $.operator === ">=", A = A || $.operator === "<" || $.operator === "<=", h) {
4541
+ if (b && $.semver.prerelease && $.semver.prerelease.length && $.semver.major === b.major && $.semver.minor === b.minor && $.semver.patch === b.patch && (b = !1), $.operator === ">" || $.operator === ">=") {
4542
+ if (p = n(h, $, d), p === $ && p !== h)
4543
4543
  return !1;
4544
- } else if (h.operator === ">=" && !o(h.semver, String(w), d))
4544
+ } else if (h.operator === ">=" && !o(h.semver, String($), d))
4545
4545
  return !1;
4546
4546
  }
4547
4547
  if (g) {
4548
- if (m && w.semver.prerelease && w.semver.prerelease.length && w.semver.major === m.major && w.semver.minor === m.minor && w.semver.patch === m.patch && (m = !1), w.operator === "<" || w.operator === "<=") {
4549
- if (E = u(g, w, d), E === w && E !== g)
4548
+ if (m && $.semver.prerelease && $.semver.prerelease.length && $.semver.major === m.major && $.semver.minor === m.minor && $.semver.patch === m.patch && (m = !1), $.operator === "<" || $.operator === "<=") {
4549
+ if (E = u(g, $, d), E === $ && E !== g)
4550
4550
  return !1;
4551
- } else if (g.operator === "<=" && !o(g.semver, String(w), d))
4551
+ } else if (g.operator === "<=" && !o(g.semver, String($), d))
4552
4552
  return !1;
4553
4553
  }
4554
- if (!w.operator && (g || h) && y !== 0)
4554
+ if (!$.operator && (g || h) && y !== 0)
4555
4555
  return !1;
4556
4556
  }
4557
4557
  return !(h && A && !g && y !== 0 || g && v && !h && y !== 0 || b || m);
@@ -4568,11 +4568,11 @@ function Io() {
4568
4568
  };
4569
4569
  return dr = r, dr;
4570
4570
  }
4571
- var gr, vi;
4572
- function No() {
4573
- if (vi) return gr;
4574
- vi = 1;
4575
- const e = xe(), i = Xe(), s = le(), o = qi(), c = Te(), r = io(), t = so(), n = oo(), u = ao(), a = uo(), l = co(), d = lo(), f = fo(), h = pe(), g = po(), y = ho(), p = Ir(), E = go(), A = mo(), v = ze(), m = Nr(), b = Tr(), w = Fi(), x = Lr(), F = Cr(), M = Bi(), G = vo(), T = Ye(), _ = he(), L = Qe(), B = wo(), H = $o(), O = So(), I = bo(), D = Ao(), C = Pr(), $ = _o(), X = Oo(), k = xo(), ne = To(), S = Io();
4571
+ var gr, yi;
4572
+ function Lo() {
4573
+ if (yi) return gr;
4574
+ yi = 1;
4575
+ const e = xe(), i = Xe(), s = le(), o = Fi(), c = Te(), r = so(), t = oo(), n = ao(), u = uo(), a = co(), l = lo(), d = fo(), f = po(), h = pe(), g = ho(), y = go(), p = Ir(), E = mo(), A = vo(), v = ze(), m = Nr(), b = Tr(), $ = Bi(), x = Lr(), F = Cr(), G = Hi(), M = yo(), T = Ye(), _ = he(), L = Qe(), B = $o(), H = So(), O = bo(), I = Ao(), D = _o(), C = Pr(), w = Oo(), X = xo(), k = To(), ne = Io(), S = No();
4576
4576
  return gr = {
4577
4577
  parse: c,
4578
4578
  valid: r,
@@ -4592,11 +4592,11 @@ function No() {
4592
4592
  gt: v,
4593
4593
  lt: m,
4594
4594
  eq: b,
4595
- neq: w,
4595
+ neq: $,
4596
4596
  gte: x,
4597
4597
  lte: F,
4598
- cmp: M,
4599
- coerce: G,
4598
+ cmp: G,
4599
+ coerce: M,
4600
4600
  Comparator: T,
4601
4601
  Range: _,
4602
4602
  satisfies: L,
@@ -4606,7 +4606,7 @@ function No() {
4606
4606
  minVersion: I,
4607
4607
  validRange: D,
4608
4608
  outside: C,
4609
- gtr: $,
4609
+ gtr: w,
4610
4610
  ltr: X,
4611
4611
  intersects: k,
4612
4612
  simplifyRange: ne,
@@ -4620,8 +4620,8 @@ function No() {
4620
4620
  rcompareIdentifiers: o.rcompareIdentifiers
4621
4621
  }, gr;
4622
4622
  }
4623
- var oe = No();
4624
- const Lo = [
4623
+ var oe = Lo();
4624
+ const Co = [
4625
4625
  [1e3, 6e4, "sec"],
4626
4626
  [6e4, 36e5, "min"],
4627
4627
  [36e5, 864e5, "hour"],
@@ -4629,7 +4629,7 @@ const Lo = [
4629
4629
  [6048e5, 2628e6, "week"],
4630
4630
  [2628e6, 31536e6, "month"],
4631
4631
  [31536e6, 1 / 0, "year"]
4632
- ], Co = {
4632
+ ], Po = {
4633
4633
  "1 day ago": "yesterday",
4634
4634
  "1 week ago": "last week",
4635
4635
  "1 month ago": "last month",
@@ -4638,30 +4638,30 @@ const Lo = [
4638
4638
  "in 1 week": "next week",
4639
4639
  "in 1 month": "next month",
4640
4640
  "in 1 year": "next year"
4641
- }, Po = {
4641
+ }, Do = {
4642
4642
  sec: "second",
4643
4643
  min: "minute"
4644
4644
  };
4645
- function yi(e) {
4645
+ function Ei(e) {
4646
4646
  return e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : e;
4647
4647
  }
4648
- function Ei(e, { now: i, noAffix: s = !1, times: o = Lo, nowThreshold: c = 2e3, nowString: r = "now", unknownString: t = "", aliases: n = !1, aliasesMap: u = Co, longUnits: a = !1 } = {}) {
4649
- const l = yi(e);
4650
- if (i = i !== void 0 ? yi(i) : Date.now(), Number.isNaN(l)) return t || String(e);
4648
+ function Ri(e, { now: i, noAffix: s = !1, times: o = Co, nowThreshold: c = 2e3, nowString: r = "now", unknownString: t = "", aliases: n = !1, aliasesMap: u = Po, longUnits: a = !1 } = {}) {
4649
+ const l = Ei(e);
4650
+ if (i = i !== void 0 ? Ei(i) : Date.now(), Number.isNaN(l)) return t || String(e);
4651
4651
  let d = !1, f = i - l;
4652
4652
  if (f < 0 && (d = !0, f = Math.abs(f)), f < c) return r;
4653
4653
  let h = 0, g = "";
4654
4654
  for (let p = 0, E = o.length; p < E; p++) {
4655
4655
  const A = o[p];
4656
4656
  if (!(f >= A[1])) {
4657
- h = Math.floor(f / A[0]), g = (a && Po[A[2]] || A[2]) + (h > 1 ? "s" : "");
4657
+ h = Math.floor(f / A[0]), g = (a && Do[A[2]] || A[2]) + (h > 1 ? "s" : "");
4658
4658
  break;
4659
4659
  }
4660
4660
  }
4661
4661
  const y = `${d && !s ? "in " : ""}${h} ${g}${!d && !s ? " ago" : ""}`;
4662
4662
  return n ? u[y] ?? y : y;
4663
4663
  }
4664
- function Do(e) {
4664
+ function jo(e) {
4665
4665
  const i = [];
4666
4666
  for (const s of e) {
4667
4667
  const [o, c] = s.replaceAll(/\s+/g, "").split(/[<>=~]+/);
@@ -4669,29 +4669,29 @@ function Do(e) {
4669
4669
  }
4670
4670
  return i;
4671
4671
  }
4672
- const jo = [
4672
+ const qo = [
4673
4673
  "dependencies",
4674
4674
  "devDependencies",
4675
4675
  "peerDependencies",
4676
4676
  "optionalDependencies",
4677
4677
  "resolutions"
4678
- ], qo = [
4678
+ ], Fo = [
4679
4679
  "tool.poetry.dependencies",
4680
4680
  "tool.poetry.dev-dependencies",
4681
4681
  "tool.poetry.test-dependencies",
4682
4682
  "tool.poetry.group.dev.dependencies",
4683
4683
  "tool.poetry.group.test.dependencies"
4684
- ], Fo = [
4684
+ ], Bo = [
4685
4685
  "project.dependencies",
4686
4686
  "project.optional-dependencies",
4687
4687
  "dependency-groups.dev",
4688
4688
  "dependency-groups.lint",
4689
4689
  "dependency-groups.test"
4690
- ], Bo = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, Ho = /^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i, $r = /^[0-9a-f]{7,}$/i, Ri = /[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g, _e = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&"), Pe = (e) => e.endsWith("/") ? e.substring(0, e.length - 1) : e, Hi = Rs.version, fe = "\0", Sr = {
4690
+ ], Ho = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, Go = /^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i, $r = /^[0-9a-f]{7,}$/i, wi = /[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g, Mo = /[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g, _e = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&"), Pe = (e) => e.endsWith("/") ? e.substring(0, e.length - 1) : e, Gi = ws.version, fe = "\0", Sr = {
4691
4691
  "package.json": "npm",
4692
4692
  "pyproject.toml": "pypi",
4693
4693
  "go.mod": "go"
4694
- }, Z = fs(Xi.slice(2), {
4694
+ }, Z = ps(Ki.slice(2), {
4695
4695
  boolean: [
4696
4696
  "E",
4697
4697
  "error-on-outdated",
@@ -4762,37 +4762,37 @@ const jo = [
4762
4762
  v: "version",
4763
4763
  V: "verbose"
4764
4764
  }
4765
- }), [Go, Dr, jr] = ["magenta", "red", "green"].map((e) => Z["no-color"] ? String : (i) => es(e, String(i))), Se = De(ve(Z.greatest)), mr = De(ve(Z.prerelease)), vr = De(ve(Z.release)), wi = De(ve(Z.patch)), $i = De(ve(Z.minor)), Si = ve(Z["allow-downgrade"]), Mo = ve(Z.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), Gi = Z.githubapi ? Pe(Z.githubapi) : "https://api.github.com", bi = Z.pypiapi ? Pe(Z.pypiapi) : "https://pypi.org", Uo = "https://proxy.golang.org", ko = Z.goproxy ? Pe(Z.goproxy) : Xo(), Oe = (e) => e.replace(/^v/, "");
4765
+ }), [Uo, Dr, jr] = ["magenta", "red", "green"].map((e) => Z["no-color"] ? String : (i) => ts(e, String(i))), Se = De(ve(Z.greatest)), mr = De(ve(Z.prerelease)), vr = De(ve(Z.release)), $i = De(ve(Z.patch)), Si = De(ve(Z.minor)), bi = ve(Z["allow-downgrade"]), ko = ve(Z.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), Mi = Z.githubapi ? Pe(Z.githubapi) : "https://api.github.com", Ai = Z.pypiapi ? Pe(Z.pypiapi) : "https://pypi.org", Vo = "https://proxy.golang.org", Ui = Z.goproxy ? [Pe(Z.goproxy)] : Ko(), Oe = (e) => e.replace(/^v/, "");
4766
4766
  function we(e, i) {
4767
4767
  for (const s of i instanceof Set ? i : [])
4768
4768
  if (s.test(e)) return !0;
4769
4769
  return !1;
4770
4770
  }
4771
- function Vo(e, i) {
4771
+ function Xo(e, i) {
4772
4772
  const s = i[`${e}:registry`] || i.registry;
4773
4773
  return s.endsWith("/") ? s : `${s}/`;
4774
4774
  }
4775
- function Xo() {
4776
- return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Uo];
4775
+ function Ko() {
4776
+ return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Vo];
4777
4777
  }
4778
- function Ko(e, i) {
4778
+ function Wo(e, i) {
4779
4779
  return i.split(".").reduce((s, o) => s?.[o] ?? null, e);
4780
4780
  }
4781
4781
  function Ge(e) {
4782
4782
  return e.split(",").filter(Boolean);
4783
4783
  }
4784
- function Mi(e, i) {
4784
+ function ki(e, i) {
4785
4785
  const s = _r(i, e);
4786
4786
  try {
4787
- return Zi(s), s;
4787
+ return es(s), s;
4788
4788
  } catch {
4789
4789
  }
4790
4790
  const o = Ar(i);
4791
- return o === i ? null : Mi(e, o);
4791
+ return o === i ? null : ki(e, o);
4792
4792
  }
4793
- function Wo(e, i, s, o) {
4793
+ function zo(e, i, s, o) {
4794
4794
  if (e.startsWith("@")) {
4795
- const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(Vo(c, o));
4795
+ const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(Xo(c, o));
4796
4796
  if (r !== i)
4797
4797
  try {
4798
4798
  const t = St(r, s);
@@ -4807,60 +4807,84 @@ function qr(e, i, s) {
4807
4807
  return {
4808
4808
  ...Object.keys(e).length && { agentOpts: e },
4809
4809
  headers: {
4810
- "user-agent": `updates/${Hi}`,
4810
+ "user-agent": `updates/${Gi}`,
4811
4811
  ...s && { Authorization: `${i} ${s}` }
4812
4812
  }
4813
4813
  };
4814
4814
  }
4815
4815
  async function Je(e, i) {
4816
- Z.verbose && console.error(`${Go("fetch")} ${e}`);
4816
+ Z.verbose && console.error(`${Uo("fetch")} ${e}`);
4817
4817
  const s = await fetch(e, i);
4818
4818
  return Z.verbose && console.error(`${s.ok ? jr(s.status) : Dr(s.status)} ${e}`), s;
4819
4819
  }
4820
- async function zo(e, i, s, o, c, r) {
4821
- const { auth: t, registry: n } = Wo(e, s, c, r), u = i === "resolutions" ? He(e) : e, a = `${n}/${u.replace(/\//g, "%2f")}`, l = await Je(a, qr(o, t?.type, t?.token));
4820
+ async function Yo(e, i, s, o, c, r) {
4821
+ const { auth: t, registry: n } = zo(e, s, c, r), u = i === "resolutions" ? He(e) : e, a = `${n}/${u.replace(/\//g, "%2f")}`, l = await Je(a, qr(o, t?.type, t?.token));
4822
4822
  if (l?.ok)
4823
4823
  return [await l.json(), i, n, e];
4824
4824
  throw l?.status && l?.statusText ? new Error(`Received ${l.status} ${l.statusText} from ${a}`) : new Error(`Unable to fetch ${e} from ${n}`);
4825
4825
  }
4826
- async function Yo(e, i, s) {
4827
- const o = `${bi}/pypi/${e}/json`, c = await Je(o, qr(s));
4826
+ async function Qo(e, i, s) {
4827
+ const o = `${Ai}/pypi/${e}/json`, c = await Je(o, qr(s));
4828
4828
  if (c?.ok)
4829
4829
  return [await c.json(), i, null, e];
4830
- throw c?.status && c?.statusText ? new Error(`Received ${c.status} ${c.statusText} from ${o}`) : new Error(`Unable to fetch ${e} from ${bi}`);
4830
+ throw c?.status && c?.statusText ? new Error(`Received ${c.status} ${c.statusText} from ${o}`) : new Error(`Unable to fetch ${e} from ${Ai}`);
4831
4831
  }
4832
- function Qo(e) {
4832
+ function Jo(e) {
4833
4833
  return e.split(/\r?\n/).map((i) => i.trim()).filter(Boolean);
4834
4834
  }
4835
- async function Ui(e, i, s, o) {
4836
- const c = o.shift();
4837
- if (!c)
4835
+ async function Fr(e, i, s, o, c = {}) {
4836
+ const r = o.shift();
4837
+ if (!r)
4838
4838
  throw new Error("No more go proxies available");
4839
- const r = `${c}/${e.toLowerCase()}/@latest`, t = await Je(r, qr(s));
4840
- if ([404, 410].includes(t.status) && o.length)
4841
- return Ui(e, i, s, o);
4842
- if (t?.ok)
4843
- return t.json();
4844
- throw t?.status && t?.statusText ? new Error(`Received ${t.status} ${t.statusText} from ${r}`) : new Error(`Unable to fetch ${e} from ${c}`);
4839
+ const t = `${r}/${e.toLowerCase()}/@latest`, n = await Je(t, { ...qr(s), ...c });
4840
+ if ([404, 410].includes(n.status) && o.length)
4841
+ return Fr(e, i, s, o, c);
4842
+ if (n?.ok)
4843
+ return await n.json();
4844
+ throw n?.status && n?.statusText ? new Error(`Received ${n.status} ${n.statusText} from ${t}`) : new Error(`Unable to fetch ${e} from ${r}`);
4845
+ }
4846
+ async function Zo(e, i) {
4847
+ let s = null, o = e;
4848
+ for (; ; ) {
4849
+ if (/\/v[0-9]+$/.test(o)) {
4850
+ const c = Number(o.split("/").at(-1).substring(1)) + 1;
4851
+ o = o.replace(/\/v[0-9]+$/, `/${`v${c}`}`);
4852
+ } else
4853
+ o = `${o}/v2`;
4854
+ try {
4855
+ const c = await Fr(o, "latest", i, Array.from(Ui), {
4856
+ // proxy.golang.org takes 5+ seconds to answer requests for unknown packages with an error. If it
4857
+ // takes that long, it's likely going to fail. Subsequent requests are faster apparently as it caches.
4858
+ signal: AbortSignal.timeout(1e3)
4859
+ });
4860
+ if (c.Version) {
4861
+ s = c;
4862
+ continue;
4863
+ }
4864
+ } catch {
4865
+ break;
4866
+ }
4867
+ }
4868
+ return s;
4845
4869
  }
4846
- function Jo(e) {
4870
+ function ea(e) {
4847
4871
  return e = e.replace("git@", "").replace(/.+?\/\//, "https://").replace(/\.git$/, ""), /^[a-z]+:[a-z0-9-]\/[a-z0-9-]$/.test(e) ? e.replace(/^(.+?):/, (i, s) => `https://${s}.com/`) : /^[a-z0-9-]\/[a-z0-9-]$/.test(e) ? `https://github.com/${e}` : e;
4848
4872
  }
4849
- function Zo(e) {
4873
+ function ta(e) {
4850
4874
  return e.startsWith("https://bitbucket.org") ? "src/HEAD" : "tree/HEAD";
4851
4875
  }
4852
- function Ai({ repository: e, homepage: i, info: s }, o, c) {
4876
+ function _i({ repository: e, homepage: i, info: s }, o, c) {
4853
4877
  s && (e = s.project_urls.repository || s.project_urls.Repository || s.project_urls.repo || s.project_urls.Repo || s.project_urls.source || s.project_urls.Source || s.project_urls["source code"] || s.project_urls["Source code"] || s.project_urls["Source Code"] || s.project_urls.homepage || s.project_urls.Homepage || `https://pypi.org/project/${c}/`);
4854
4878
  let r = "";
4855
4879
  if (o === "https://npm.pkg.github.com")
4856
4880
  return `https://github.com/${c.replace(/^@/, "")}`;
4857
4881
  if (e) {
4858
4882
  const t = typeof e == "string" ? e : e.url;
4859
- r = Jo(t), r && typeof e != "string" && e.directory && (r = `${r}/${Zo(r)}/${e.directory}`);
4883
+ r = ea(t), r && typeof e != "string" && e.directory && (r = `${r}/${ta(r)}/${e.directory}`);
4860
4884
  }
4861
4885
  return r || i || "";
4862
4886
  }
4863
- async function _i(e) {
4887
+ async function Oi(e) {
4864
4888
  console.info(Z.json ? JSON.stringify({ message: e }) : e), await Ne();
4865
4889
  }
4866
4890
  async function Ne(e, i) {
@@ -4868,9 +4892,9 @@ async function Ne(e, i) {
4868
4892
  const s = e.stack ?? e.message;
4869
4893
  console.info(Z.json ? JSON.stringify({ error: s }) : Dr(s));
4870
4894
  }
4871
- Rr === "win32" && Number(Wi?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), zi(i || e ? 1 : 0);
4895
+ Rr === "win32" && Number(zi?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), Yi(i || e ? 1 : 0);
4872
4896
  }
4873
- function ea(e = {}) {
4897
+ function ra(e = {}) {
4874
4898
  for (const s of Object.keys(e))
4875
4899
  for (const o of Object.values(e[s]))
4876
4900
  typeof o.oldPrint == "string" && (o.old = o.oldPrint, delete o.oldPrint), typeof o.newPrint == "string" && (o.new = o.newPrint, delete o.newPrint), typeof o.oldOriginal == "string" && (o.old = o.oldOriginal, delete o.oldOriginal);
@@ -4885,13 +4909,13 @@ function ea(e = {}) {
4885
4909
  s.results[o] || (s.results[o] = {}), s.results[o][t] || (s.results[o][t] = {}), s.results[o][t][n] = r;
4886
4910
  }
4887
4911
  console.info(JSON.stringify(s));
4888
- } else i && console.info(ia(e));
4912
+ } else i && console.info(oa(e));
4889
4913
  return Z["error-on-outdated"] ? i ? 2 : 0 : Z["error-on-unchanged"] ? i ? 0 : 2 : 0;
4890
4914
  }
4891
- function ta(e, i) {
4892
- Rr === "win32" && Qi(e, 0), Ji(e, i, Rr === "win32" ? { flag: "r+" } : void 0);
4915
+ function na(e, i) {
4916
+ Rr === "win32" && Ji(e, 0), Zi(e, i, Rr === "win32" ? { flag: "r+" } : void 0);
4893
4917
  }
4894
- function Oi(e, i, s) {
4918
+ function xi(e, i, s) {
4895
4919
  if (e === i) return e;
4896
4920
  const o = e.split(/\./), c = i.split(/\./), r = /^[0-9a-zA-Z-.]+$/;
4897
4921
  let t = "";
@@ -4903,19 +4927,19 @@ function Oi(e, i, s) {
4903
4927
  t += `${o[n]}.`;
4904
4928
  return t.replace(/\.$/, "");
4905
4929
  }
4906
- const xi = (e) => ts(e).length;
4907
- function ra(e, i = " ") {
4930
+ const Ti = (e) => rs(e).length;
4931
+ function ia(e, i = " ") {
4908
4932
  let s = "";
4909
4933
  const o = new Array(e[0].length).fill(0);
4910
4934
  for (const c of e)
4911
4935
  for (const [r, t] of c.entries()) {
4912
- const n = xi(t);
4936
+ const n = Ti(t);
4913
4937
  n > o[r] && (o[r] = n);
4914
4938
  }
4915
4939
  for (const [c, r] of e.entries()) {
4916
4940
  for (const [t, n] of r.entries()) {
4917
4941
  t > 0 && (s += i);
4918
- const u = " ".repeat(o[t] - xi(n));
4942
+ const u = " ".repeat(o[t] - Ti(n));
4919
4943
  s += n + (t === r.length - 1 ? "" : u);
4920
4944
  }
4921
4945
  c < e.length - 1 && (s += `
@@ -4923,25 +4947,25 @@ function ra(e, i = " ") {
4923
4947
  }
4924
4948
  return s;
4925
4949
  }
4926
- function na(e) {
4950
+ function sa(e) {
4927
4951
  return /\/v[0-9]$/.test(e) && (e = Ar(e)), e;
4928
4952
  }
4929
- function ia(e) {
4953
+ function oa(e) {
4930
4954
  const i = [["NAME", "OLD", "NEW", "AGE", "INFO"]], s = /* @__PURE__ */ new Set();
4931
4955
  for (const o of Object.keys(e))
4932
4956
  for (const [c, r] of Object.entries(e[o])) {
4933
4957
  const t = c.split(fe)[1], n = `${o}|${t}`;
4934
4958
  s.has(n) || (s.add(n), i.push([
4935
- o === "go" ? na(t) : t,
4936
- Oi(r.old, r.new, Dr),
4937
- Oi(r.new, r.old, jr),
4959
+ o === "go" ? sa(t) : t,
4960
+ xi(r.old, r.new, Dr),
4961
+ xi(r.new, r.old, jr),
4938
4962
  r.age || "",
4939
4963
  r.info || ""
4940
4964
  ]));
4941
4965
  }
4942
- return ra(i);
4966
+ return ia(i);
4943
4967
  }
4944
- function sa(e, i) {
4968
+ function aa(e, i) {
4945
4969
  let s = e;
4946
4970
  for (const o of Object.keys(i)) {
4947
4971
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old, t = new RegExp(`"${_e(c)}": *"${_e(r)}"`, "g");
@@ -4949,7 +4973,7 @@ function sa(e, i) {
4949
4973
  }
4950
4974
  return s;
4951
4975
  }
4952
- function oa(e, i) {
4976
+ function ua(e, i) {
4953
4977
  let s = e;
4954
4978
  for (const o of Object.keys(i)) {
4955
4979
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old;
@@ -4965,8 +4989,8 @@ function oa(e, i) {
4965
4989
  }
4966
4990
  return s;
4967
4991
  }
4968
- function aa(e, i, s) {
4969
- let o = e.replace(/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g, i);
4992
+ function ca(e, i, s) {
4993
+ let o = e.replace(Mo, i);
4970
4994
  if (s && s !== e && /^[\^~]/.test(o)) {
4971
4995
  const c = s.substring(1).split("."), r = o.substring(1).split(".");
4972
4996
  c.length !== r.length && (o = `${o[0]}${r.slice(0, c.length).join(".")}`);
@@ -4977,7 +5001,7 @@ function yr(e) {
4977
5001
  const i = oe.parse(e);
4978
5002
  return i ? !!i.prerelease.length : !1;
4979
5003
  }
4980
- function ki(e) {
5004
+ function Vi(e) {
4981
5005
  return /[0-9]+\.[0-9]+\.[0-9]+-.+/.test(e);
4982
5006
  }
4983
5007
  function Le(e) {
@@ -4987,9 +5011,9 @@ function Le(e) {
4987
5011
  return "";
4988
5012
  }
4989
5013
  }
4990
- function ua(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
5014
+ function la(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
4991
5015
  let n = Le(s), u = 0;
4992
- c = ki(s) || c, c && (o.add("prerelease"), o.has("patch") && o.add("prepatch"), o.has("minor") && o.add("preminor"), o.has("major") && o.add("premajor"));
5016
+ c = Vi(s) || c, c && (o.add("prerelease"), o.has("patch") && o.add("prepatch"), o.has("minor") && o.add("preminor"), o.has("major") && o.add("premajor"));
4993
5017
  for (const a of i) {
4994
5018
  const l = oe.parse(a);
4995
5019
  if (!l || !n || l.prerelease.length && (!c || r)) continue;
@@ -5004,43 +5028,43 @@ function ua(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }
5004
5028
  }
5005
5029
  return n || null;
5006
5030
  }
5007
- function ca(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
5031
+ function fa(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
5008
5032
  if (i === "go")
5009
5033
  return oe.gt(Oe(e.Version), Oe(s)) ? e.Version : null;
5010
5034
  if (s === "*" || s.includes("||")) return null;
5011
5035
  let n = [];
5012
5036
  i === "pypi" ? n = Object.keys(e.releases).filter((a) => oe.valid(a)) : i === "npm" && (n = Object.keys(e.versions).filter((a) => oe.valid(a)));
5013
- const u = ua(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
5037
+ const u = la(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
5014
5038
  if (!u) return null;
5015
5039
  if (o)
5016
5040
  return u;
5017
5041
  {
5018
5042
  let a = "", l = "";
5019
5043
  i === "pypi" ? (l = e.info.version, a = Le(e.info.version)) : a = e["dist-tags"].latest;
5020
- const d = Le(s), f = ki(s), h = yr(u), g = yr(a), y = oe.gt(u, d);
5044
+ const d = Le(s), f = Vi(s), h = yr(u), g = yr(a), y = oe.gt(u, d);
5021
5045
  if (!c && r || f && h || c && !y && f && !h || f && !h && y)
5022
5046
  return u;
5023
5047
  if (f && !h && !y)
5024
5048
  return null;
5025
5049
  const p = oe.diff(d, a);
5026
- return p && p !== "prerelease" && !t.has(p.replace(/^pre/, "")) || c && yr(a) ? u : oe.lt(a, d) && !g ? Si === !0 || we(e.name, Si) ? a : null : l || a;
5050
+ return p && p !== "prerelease" && !t.has(p.replace(/^pre/, "")) || c && yr(a) ? u : oe.lt(a, d) && !g ? bi === !0 || we(e.name, bi) ? a : null : l || a;
5027
5051
  }
5028
5052
  }
5029
- function Vi(e) {
5053
+ function Xi(e) {
5030
5054
  const i = {}, s = be.UPDATES_GITHUB_API_TOKEN || be.GITHUB_API_TOKEN || be.GH_TOKEN || be.HOMEBREW_GITHUB_API_TOKEN;
5031
5055
  return s && (i.headers = { Authorization: `Bearer ${s}` }), Je(e, i);
5032
5056
  }
5033
- async function la(e, i) {
5034
- const s = `${Gi}/repos/${e}/${i}/commits`, o = await Vi(s);
5057
+ async function pa(e, i) {
5058
+ const s = `${Mi}/repos/${e}/${i}/commits`, o = await Xi(s);
5035
5059
  if (!o?.ok) return { hash: "", commit: {} };
5036
5060
  const c = await o.json(), { sha: r, commit: t } = c[0];
5037
5061
  return { hash: r, commit: t };
5038
5062
  }
5039
- async function fa(e, i) {
5040
- const s = await Vi(`${Gi}/repos/${e}/${i}/git/refs/tags`);
5063
+ async function ha(e, i) {
5064
+ const s = await Xi(`${Mi}/repos/${e}/${i}/git/refs/tags`);
5041
5065
  return s?.ok ? (await s.json()).map((r) => r.ref.replace(/^refs\/tags\//, "")) : [];
5042
5066
  }
5043
- function pa(e, i, s) {
5067
+ function da(e, i, s) {
5044
5068
  const o = Oe(i);
5045
5069
  if (oe.valid(o))
5046
5070
  if (s) {
@@ -5060,11 +5084,11 @@ function pa(e, i, s) {
5060
5084
  return c;
5061
5085
  }
5062
5086
  }
5063
- async function ha(e, i, s) {
5064
- const o = i.old.replace(Bo, ""), [c, r, t, n] = Ho.exec(o) || [];
5087
+ async function ga(e, i, s) {
5088
+ const o = i.old.replace(Ho, ""), [c, r, t, n] = Go.exec(o) || [];
5065
5089
  if (!(!r || !t || !n))
5066
5090
  if ($r.test(n)) {
5067
- const { hash: u, commit: a } = await la(r, t);
5091
+ const { hash: u, commit: a } = await pa(r, t);
5068
5092
  if (!u) return;
5069
5093
  const l = a?.committer?.date ?? a?.author?.date, d = u.substring(0, n.length);
5070
5094
  if (n !== d) {
@@ -5072,29 +5096,29 @@ async function ha(e, i, s) {
5072
5096
  return { key: e, newRange: f, user: r, repo: t, oldRef: n, newRef: d, newDate: l };
5073
5097
  }
5074
5098
  } else {
5075
- const u = await fa(r, t), a = pa(u, n, s);
5099
+ const u = await ha(r, t), a = da(u, n, s);
5076
5100
  if (a)
5077
5101
  return { key: e, newRange: a, user: r, repo: t, oldRef: n, newRef: a };
5078
5102
  }
5079
5103
  }
5080
- function da(e) {
5104
+ function ma(e) {
5081
5105
  return e.replace(/-.*/, "");
5082
5106
  }
5083
- function Ti(e) {
5084
- const i = e.match(Ri);
5085
- return i?.length !== 1 ? e : e.replace(Ri, Le(i[0]));
5107
+ function Ii(e) {
5108
+ const i = e.match(wi);
5109
+ return i?.length !== 1 ? e : e.replace(wi, Le(i[0]));
5086
5110
  }
5087
5111
  function ve(e) {
5088
5112
  return e === void 0 ? !1 : e === "" ? !0 : typeof e == "string" ? e.includes(",") ? new Set(Ge(e)) : /* @__PURE__ */ new Set([e]) : Array.isArray(e) ? new Set(e) : !1;
5089
5113
  }
5090
- function ga(e) {
5114
+ function va(e) {
5091
5115
  return Array.from(e.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g), (i) => i[0]);
5092
5116
  }
5093
- function ma(e) {
5117
+ function ya(e) {
5094
5118
  return Array.from(e.matchAll(/(----BEGIN [^]+?PRIVATE KEY----)/g), (i) => i[0]);
5095
5119
  }
5096
5120
  function br(e, i, s) {
5097
- return i && typeof e == "string" ? /\/.+\//.test(e) ? new RegExp(e.slice(1, -1)) : Jr.makeRe(e, { nocase: s }) : e instanceof RegExp ? e : Jr.makeRe(e, { nocase: s });
5121
+ return i && typeof e == "string" ? /\/.+\//.test(e) ? new RegExp(e.slice(1, -1)) : Zr.makeRe(e, { nocase: s }) : e instanceof RegExp ? e : Zr.makeRe(e, { nocase: s });
5098
5122
  }
5099
5123
  function De(e) {
5100
5124
  if (e instanceof Set) {
@@ -5105,7 +5129,7 @@ function De(e) {
5105
5129
  }
5106
5130
  return e;
5107
5131
  }
5108
- function Ii(e, i) {
5132
+ function Ni(e, i) {
5109
5133
  const s = /* @__PURE__ */ new Set();
5110
5134
  for (const o of e || [])
5111
5135
  s.add(br(o, !0, !0));
@@ -5122,13 +5146,13 @@ function Er(e, i, s, o) {
5122
5146
  if (c.test(e)) return !0;
5123
5147
  return !s.size;
5124
5148
  }
5125
- function va(e) {
5149
+ function Ea(e) {
5126
5150
  const i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
5127
5151
  if (e)
5128
5152
  for (const o of e) {
5129
5153
  let c;
5130
5154
  try {
5131
- c = Hr(o);
5155
+ c = Gr(o);
5132
5156
  } catch (r) {
5133
5157
  throw new Error(`Unable to open ${o}: ${r.message}`);
5134
5158
  }
@@ -5140,7 +5164,7 @@ function va(e) {
5140
5164
  const t = _r(o, r);
5141
5165
  let n = null;
5142
5166
  try {
5143
- n = Hr(t);
5167
+ n = Gr(t);
5144
5168
  } catch {
5145
5169
  }
5146
5170
  n?.isFile() && i.add(Be(t));
@@ -5150,12 +5174,12 @@ function va(e) {
5150
5174
  }
5151
5175
  else
5152
5176
  for (const o of Object.keys(Sr)) {
5153
- const c = Mi(o, Yi());
5177
+ const c = ki(o, Qi());
5154
5178
  c && i.add(Be(c));
5155
5179
  }
5156
5180
  return [i, s];
5157
5181
  }
5158
- async function ya(e) {
5182
+ async function Ra(e) {
5159
5183
  const i = [];
5160
5184
  for (const o of ["", ".config/"])
5161
5185
  for (const c of ["js", "ts", "mjs", "mts"])
@@ -5167,11 +5191,11 @@ async function ya(e) {
5167
5191
  }
5168
5192
  return s;
5169
5193
  }
5170
- async function Ea() {
5171
- for (const p of [Fr, Ki])
5194
+ async function wa() {
5195
+ for (const p of [Br, Wi])
5172
5196
  p?._handle?.setBlocking?.(!0);
5173
5197
  const e = 96, i = typeof Z.sockets == "number" ? Z.sockets : e, { help: s, version: o, file: c, types: r, update: t } = Z;
5174
- s && (Fr.write(`usage: updates [options]
5198
+ s && (Br.write(`usage: updates [options]
5175
5199
 
5176
5200
  Options:
5177
5201
  -u, --update Update versions and write package file
@@ -5203,31 +5227,31 @@ async function Ea() {
5203
5227
  $ updates -e '/^react-(dom)?/'
5204
5228
  $ updates -f package.json
5205
5229
  $ updates -f pyproject.toml
5206
- `), await Ne()), o && (console.info(Hi), await Ne());
5230
+ `), await Ne()), o && (console.info(Gi), await Ne());
5207
5231
  const n = {}, u = {}, a = {}, l = {};
5208
5232
  let d = 0;
5209
- const [f, h] = va(ve(c));
5233
+ const [f, h] = Ea(ve(c));
5210
5234
  for (const p of f) {
5211
5235
  const E = Ar(Be(p)), A = He(p), v = Sr[A];
5212
- if (!Mo.has(v) && !h.has(p)) continue;
5236
+ if (!ko.has(v) && !h.has(p)) continue;
5213
5237
  l[v] = p, n[v] || (n[v] = {});
5214
- const m = await ya(E);
5215
- let b = [], w = [];
5216
- Z.include && Z.include !== !0 && (b = (Array.isArray(Z.include) ? Z.include : [Z.include]).flatMap((O) => Ge(O))), Z.exclude && Z.exclude !== !0 && (w = (Array.isArray(Z.exclude) ? Z.exclude : [Z.exclude]).flatMap((O) => Ge(O)));
5217
- const x = Ii(b, m?.include ?? []), F = Ii(w, m?.exclude ?? []), M = {}, G = _s("npm", { registry: "https://registry.npmjs.org" }) || {}, T = { npmrc: G, recursive: !0 };
5238
+ const m = await Ra(E);
5239
+ let b = [], $ = [];
5240
+ Z.include && Z.include !== !0 && (b = (Array.isArray(Z.include) ? Z.include : [Z.include]).flatMap((O) => Ge(O))), Z.exclude && Z.exclude !== !0 && ($ = (Array.isArray(Z.exclude) ? Z.exclude : [Z.exclude]).flatMap((O) => Ge(O)));
5241
+ const x = Ni(b, m?.include ?? []), F = Ni($, m?.exclude ?? []), G = {}, M = Os("npm", { registry: "https://registry.npmjs.org" }) || {}, T = { npmrc: M, recursive: !0 };
5218
5242
  if (v === "npm") {
5219
- G["strict-ssl"] === !1 && (M.rejectUnauthorized = !1);
5243
+ M["strict-ssl"] === !1 && (G.rejectUnauthorized = !1);
5220
5244
  for (const O of ["cert", "ca", "key"]) {
5221
- const I = O === "key" ? ma : ga;
5245
+ const I = O === "key" ? ya : va;
5222
5246
  let D = [];
5223
- G[O] && (D = (Array.isArray(G[O]) ? G[O] : [G[O]]).flatMap((C) => I(C))), G[`${O}file`] && (D = Array.from(I(Br(G[`opt${p}`], "utf8")))), D.length && (M[O] = O === "ca" ? [...cs, ...D] : D);
5247
+ M[O] && (D = (Array.isArray(M[O]) ? M[O] : [M[O]]).flatMap((C) => I(C))), M[`${O}file`] && (D = Array.from(I(Hr(M[`opt${p}`], "utf8")))), D.length && (G[O] = O === "ca" ? [...ls, ...D] : D);
5224
5248
  }
5225
5249
  }
5226
5250
  let _ = [];
5227
- r ? _ = Array.isArray(r) ? r : Ge(r) : "types" in m && Array.isArray(m.types) ? _ = m.types : v === "npm" ? _ = jo : v === "pypi" ? _ = [...Fo, ...qo] : v === "go" && (_ = ["deps"]);
5251
+ r ? _ = Array.isArray(r) ? r : Ge(r) : "types" in m && Array.isArray(m.types) ? _ = m.types : v === "npm" ? _ = qo : v === "pypi" ? _ = [...Bo, ...Fo] : v === "go" && (_ = ["deps"]);
5228
5252
  let L = {};
5229
5253
  if (v === "go")
5230
- a[v] = rs("go", [
5254
+ a[v] = ns("go", [
5231
5255
  "list",
5232
5256
  "-m",
5233
5257
  "-f",
@@ -5236,7 +5260,7 @@ async function Ea() {
5236
5260
  ], { stdio: "pipe", encoding: "utf8", cwd: E });
5237
5261
  else
5238
5262
  try {
5239
- a[v] = Br(p, "utf8");
5263
+ a[v] = Hr(p, "utf8");
5240
5264
  } catch (O) {
5241
5265
  throw new Error(`Unable to open ${p}: ${O.message}`);
5242
5266
  }
@@ -5244,10 +5268,10 @@ async function Ea() {
5244
5268
  if (v === "npm")
5245
5269
  L = JSON.parse(a[v]);
5246
5270
  else if (v === "pypi")
5247
- L = no(a[v]);
5271
+ L = io(a[v]);
5248
5272
  else {
5249
5273
  L.deps = {};
5250
- for (const O of Qo(a[v])) {
5274
+ for (const O of Jo(a[v])) {
5251
5275
  const [I, D] = O.split("@");
5252
5276
  D && (L.deps[I] = D);
5253
5277
  }
@@ -5257,90 +5281,91 @@ async function Ea() {
5257
5281
  }
5258
5282
  for (const O of _) {
5259
5283
  let I;
5260
- if (v === "npm" || v === "go" ? I = L[O] || {} : I = Ko(L, O) || {}, Array.isArray(I) && v === "pypi")
5261
- for (const { name: D, version: C } of Do(I))
5284
+ if (v === "npm" || v === "go" ? I = L[O] || {} : I = Wo(L, O) || {}, Array.isArray(I) && v === "pypi")
5285
+ for (const { name: D, version: C } of jo(I))
5262
5286
  Er(D, v, x, F) && (n[v][`${O}${fe}${D}`] = {
5263
- old: Ti(C),
5287
+ old: Ii(C),
5264
5288
  oldOriginal: C
5265
5289
  });
5266
5290
  else
5267
5291
  for (const [D, C] of Object.entries(I))
5268
5292
  v !== "go" && oe.validRange(C) && Er(D, v, x, F) ? n[v][`${O}${fe}${D}`] = {
5269
- old: Ti(C),
5293
+ old: Ii(C),
5270
5294
  oldOriginal: C
5271
5295
  } : v === "npm" && Er(D, v, x, F) ? u[`${O}${fe}${D}`] = {
5272
5296
  old: C
5273
5297
  } : v === "go" && (n[v][`${O}${fe}${D}`] = {
5274
- old: da(C),
5298
+ old: ma(C),
5275
5299
  oldOriginal: C
5276
5300
  });
5277
5301
  }
5278
5302
  if (d += Object.keys(n[v]).length + Object.keys(u).length, !d) continue;
5279
5303
  let B;
5280
- v === "npm" && (B = Pe(Z.registry || m.registry || G.registry));
5281
- const H = await Vr(Object.keys(n[v]).map((O) => async () => {
5304
+ v === "npm" && (B = Pe(Z.registry || m.registry || M.registry));
5305
+ const H = await Xr(Object.keys(n[v]).map((O) => async () => {
5282
5306
  const [I, D] = O.split(fe);
5283
5307
  if (v === "npm")
5284
- return zo(D, I, B, M, T, G);
5308
+ return Yo(D, I, B, G, T, M);
5285
5309
  if (v === "pypi")
5286
- return Yo(D, I, M);
5310
+ return Qo(D, I, G);
5287
5311
  {
5288
- const C = Array.from(ko);
5289
- return [await Ui(D, "latest", M, C), "deps", null, D];
5312
+ let C = await Fr(D, "latest", G, Array.from(Ui));
5313
+ const w = await Zo(D, G);
5314
+ return w && C && oe.gt(w.Version.substring(1), C.Version.substring(1)) && (C = w), [C, "deps", null, D];
5290
5315
  }
5291
5316
  }), { concurrency: i });
5292
5317
  for (const [O, I, D, C] of H) {
5293
5318
  if (O?.error) throw new Error(O.error);
5294
- const $ = typeof Se == "boolean" ? Se : we(O.name, Se), X = typeof mr == "boolean" ? mr : we(O.name, mr), k = typeof vr == "boolean" ? vr : we(O.name, vr);
5319
+ const w = typeof Se == "boolean" ? Se : we(O.name, Se), X = typeof mr == "boolean" ? mr : we(O.name, mr), k = typeof vr == "boolean" ? vr : we(O.name, vr);
5295
5320
  let ne;
5296
- wi === !0 || we(O.name, wi) ? ne = /* @__PURE__ */ new Set(["patch"]) : $i === !0 || we(O.name, $i) ? ne = /* @__PURE__ */ new Set(["patch", "minor"]) : ne = /* @__PURE__ */ new Set(["patch", "minor", "major"]);
5297
- const S = `${I}${fe}${C}`, R = n[v][S].old, V = n[v][S].oldOriginal, N = ca(O, {
5321
+ $i === !0 || we(O.name, $i) ? ne = /* @__PURE__ */ new Set(["patch"]) : Si === !0 || we(O.name, Si) ? ne = /* @__PURE__ */ new Set(["patch", "minor"]) : ne = /* @__PURE__ */ new Set(["patch", "minor", "major"]);
5322
+ const S = `${I}${fe}${C}`, R = n[v][S].old, V = n[v][S].oldOriginal, N = fa(O, {
5298
5323
  usePre: X,
5299
5324
  useRel: k,
5300
- useGreatest: $,
5325
+ useGreatest: w,
5301
5326
  semvers: ne,
5302
5327
  range: R,
5303
5328
  mode: v
5304
5329
  });
5305
5330
  let U = "";
5306
- if (["go", "pypi"].includes(v) && N ? U = N : N && (U = aa(R, N, V)), !N || V && V === U)
5331
+ if (["go", "pypi"].includes(v) && N ? U = N : N && (U = ca(R, N, V)), !N || V && V === U)
5307
5332
  delete n[v][S];
5308
5333
  else {
5309
- n[v][S].new = U, v === "npm" ? n[v][S].info = Ai(O?.versions?.[N], D, O.name) : v === "pypi" ? n[v][S].info = Ai(O, D, O.info.name) : n[v][S].info = O?.Origin?.URL ?? `https://${C}`;
5334
+ n[v][S].new = U, v === "npm" ? n[v][S].info = _i(O?.versions?.[N], D, O.name) : v === "pypi" ? n[v][S].info = _i(O, D, O.info.name) : n[v][S].info = O?.Origin?.URL ?? `https://${C}`;
5310
5335
  let Q = "";
5311
- v === "npm" && O.time?.[N] ? Q = O.time[N] : v === "pypi" && O.releases?.[N]?.[0]?.upload_time_iso_8601 ? Q = O.releases[N][0].upload_time_iso_8601 : v === "go" && O.Time && (Q = O.Time), Q && (n[v][S].age = Ei(Q, { noAffix: !0 }));
5336
+ v === "npm" && O.time?.[N] ? Q = O.time[N] : v === "pypi" && O.releases?.[N]?.[0]?.upload_time_iso_8601 ? Q = O.releases[N][0].upload_time_iso_8601 : v === "go" && O.Time && (Q = O.Time), Q && (n[v][S].age = Ri(Q, { noAffix: !0 }));
5312
5337
  }
5313
5338
  }
5314
5339
  if (Object.keys(u).length) {
5315
- const O = (await Vr(Object.entries(u).map(([I, D]) => () => {
5316
- const C = I.split(fe)[1], $ = typeof Se == "boolean" ? Se : we(C, Se);
5317
- return ha(I, D, $);
5340
+ const O = (await Xr(Object.entries(u).map(([I, D]) => () => {
5341
+ const C = I.split(fe)[1], w = typeof Se == "boolean" ? Se : we(C, Se);
5342
+ return ga(I, D, w);
5318
5343
  }), { concurrency: i })).filter((I) => I !== void 0);
5319
5344
  for (const I of O) {
5320
- const { key: D, newRange: C, user: $, repo: X, oldRef: k, newRef: ne, newDate: S } = I;
5345
+ const { key: D, newRange: C, user: w, repo: X, oldRef: k, newRef: ne, newDate: S } = I;
5321
5346
  n[v][D] = {
5322
5347
  old: u[D].old,
5323
5348
  new: C,
5324
5349
  oldPrint: $r.test(k) ? k.substring(0, 7) : k,
5325
5350
  newPrint: $r.test(ne) ? ne.substring(0, 7) : ne,
5326
- info: `https://github.com/${$}/${X}`,
5327
- ...S ? { age: Ei(S, { noAffix: !0 }) } : {}
5351
+ info: `https://github.com/${w}/${X}`,
5352
+ ...S ? { age: Ri(S, { noAffix: !0 }) } : {}
5328
5353
  };
5329
5354
  }
5330
5355
  }
5331
5356
  }
5332
- d === 0 && _i("No dependencies found, nothing to do.");
5357
+ d === 0 && Oi("No dependencies found, nothing to do.");
5333
5358
  let g = 0;
5334
5359
  for (const p of Object.keys(n))
5335
5360
  g += Object.keys(n[p]).length;
5336
- g || _i("All dependencies are up to date.");
5337
- const y = ea(n);
5361
+ g || Oi("All dependencies are up to date.");
5362
+ const y = ra(n);
5338
5363
  if (t) {
5339
5364
  for (const p of Object.keys(n))
5340
5365
  if (Object.keys(n[p]).length) {
5341
5366
  try {
5342
- const E = p === "npm" ? sa : oa;
5343
- ta(l[p], E(a[p], n[p]));
5367
+ const E = p === "npm" ? aa : ua;
5368
+ na(l[p], E(a[p], n[p]));
5344
5369
  } catch (E) {
5345
5370
  throw new Error(`Error writing ${He(l[p])}: ${E.message}`);
5346
5371
  }
@@ -5350,7 +5375,7 @@ async function Ea() {
5350
5375
  await Ne(void 0, y);
5351
5376
  }
5352
5377
  try {
5353
- await Ea();
5378
+ await wa();
5354
5379
  } catch (e) {
5355
5380
  await Ne(e);
5356
5381
  }