updates 16.6.1 → 16.6.4

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.
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  #!/usr/bin/env node
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
- import { dirname as Ar, resolve as Be, basename as He, join as _r } from "node:path";
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";
2
+ import { argv as zi, env as be, stdout as Br, stderr as Yi, platform as wr, versions as Qi, exit as Ji, cwd as Zi } from "node:process";
3
+ import { dirname as _r, resolve as Be, basename as He, join as Or } from "node:path";
4
+ import { readFileSync as Hr, lstatSync as Gr, truncateSync as es, writeFileSync as ts, accessSync as rs } from "node:fs";
5
+ import { styleText as ns, stripVTControlCharacters as is } from "node:util";
6
+ import { execFileSync as ss } from "node:child_process";
7
7
  import Ce from "fs";
8
8
  import me from "path";
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
- var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function Ue(e) {
9
+ import os from "constants";
10
+ import Pi from "stream";
11
+ import as from "util";
12
+ import us from "assert";
13
+ import cs from "events";
14
+ import Di from "url";
15
+ import ls from "http";
16
+ import fs from "os";
17
+ import { rootCertificates as ps } from "node:tls";
18
+ var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ function ke(e) {
20
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21
21
  }
22
- var tt, Mr;
23
- function Pi() {
24
- if (Mr) return tt;
22
+ var rt, Mr;
23
+ function ji() {
24
+ if (Mr) return rt;
25
25
  Mr = 1;
26
26
  function e(o, c) {
27
27
  var r = o;
@@ -37,7 +37,7 @@ function Pi() {
37
37
  function s(o, c) {
38
38
  return c === "constructor" && typeof o[c] == "function" || c === "__proto__";
39
39
  }
40
- return tt = function(o, c) {
40
+ return rt = function(o, c) {
41
41
  c || (c = {});
42
42
  var r = {
43
43
  bools: {},
@@ -135,20 +135,20 @@ function Pi() {
135
135
  }), c["--"] ? a["--"] = h.slice() : h.forEach(function(x) {
136
136
  a._.push(x);
137
137
  }), a;
138
- }, tt;
138
+ }, rt;
139
139
  }
140
- var fs = Pi();
141
- const ps = /* @__PURE__ */ Ue(fs);
142
- class hs extends Error {
140
+ var hs = ji();
141
+ const ds = /* @__PURE__ */ ke(hs);
142
+ class gs extends Error {
143
143
  constructor(i) {
144
144
  super(), this.name = "AbortError", this.message = i;
145
145
  }
146
146
  }
147
- const Ur = (e) => globalThis.DOMException === void 0 ? new hs(e) : new DOMException(e), kr = (e) => {
147
+ const Ur = (e) => globalThis.DOMException === void 0 ? new gs(e) : new DOMException(e), kr = (e) => {
148
148
  const i = e.reason === void 0 ? Ur("This operation was aborted.") : e.reason;
149
149
  return i instanceof Error ? i : Ur(i);
150
150
  };
151
- async function ds(e, i, {
151
+ async function ms(e, i, {
152
152
  concurrency: s = Number.POSITIVE_INFINITY,
153
153
  stopOnError: o = !0,
154
154
  signal: c
@@ -226,11 +226,11 @@ async function ds(e, i, {
226
226
  }
227
227
  const Vr = Symbol("skip");
228
228
  async function Xr(e, i) {
229
- return ds(e, (s) => s(), i);
229
+ return ms(e, (s) => s(), i);
230
230
  }
231
- var rt = {}, nt, Kr;
232
- function ke() {
233
- if (Kr) return nt;
231
+ var nt = {}, it, Kr;
232
+ function Ve() {
233
+ if (Kr) return it;
234
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,
@@ -279,7 +279,7 @@ function ke() {
279
279
  word: "A-Za-z0-9_",
280
280
  xdigit: "A-Fa-f0-9"
281
281
  };
282
- return nt = {
282
+ return it = {
283
283
  MAX_LENGTH: 1024 * 64,
284
284
  POSIX_REGEX_SOURCE: m,
285
285
  // regular expressions
@@ -403,17 +403,17 @@ function ke() {
403
403
  globChars(b) {
404
404
  return b === !0 ? v : A;
405
405
  }
406
- }, nt;
406
+ }, it;
407
407
  }
408
408
  var Wr;
409
- function Ve() {
410
- return Wr || (Wr = 1, function(e) {
409
+ function Xe() {
410
+ return Wr || (Wr = 1, (function(e) {
411
411
  const {
412
412
  REGEX_BACKSLASH: i,
413
413
  REGEX_REMOVE_BACKSLASH: s,
414
414
  REGEX_SPECIAL_CHARS: o,
415
415
  REGEX_SPECIAL_CHARS_GLOBAL: c
416
- } = /* @__PURE__ */ ke();
416
+ } = /* @__PURE__ */ Ve();
417
417
  e.isObject = (r) => r !== null && typeof r == "object" && !Array.isArray(r), e.hasRegexChars = (r) => o.test(r), e.isRegexChar = (r) => r.length === 1 && e.hasRegexChars(r), e.escapeRegex = (r) => r.replace(c, "\\$1"), e.toPosixSlashes = (r) => r.replace(i, "/"), e.isWindows = () => {
418
418
  if (typeof navigator < "u" && navigator.platform) {
419
419
  const r = navigator.platform.toLowerCase();
@@ -434,13 +434,13 @@ function Ve() {
434
434
  const n = r.split(t ? /[\\/]/ : "/"), u = n[n.length - 1];
435
435
  return u === "" ? n[n.length - 2] : u;
436
436
  };
437
- }(rt)), rt;
437
+ })(nt)), nt;
438
438
  }
439
- var it, zr;
440
- function gs() {
441
- if (zr) return it;
439
+ var st, zr;
440
+ function vs() {
441
+ if (zr) return st;
442
442
  zr = 1;
443
- const e = /* @__PURE__ */ Ve(), {
443
+ const e = /* @__PURE__ */ Xe(), {
444
444
  CHAR_ASTERISK: i,
445
445
  /* * */
446
446
  CHAR_AT: s,
@@ -471,10 +471,10 @@ function gs() {
471
471
  /* ) */
472
472
  CHAR_RIGHT_SQUARE_BRACKET: y
473
473
  /* ] */
474
- } = /* @__PURE__ */ ke(), p = (v) => v === n || v === o, E = (v) => {
474
+ } = /* @__PURE__ */ Ve(), p = (v) => v === n || v === o, E = (v) => {
475
475
  v.isPrefix !== !0 && (v.depth = v.isGlobstar ? 1 / 0 : 1);
476
476
  };
477
- return it = (v, m) => {
477
+ return st = (v, m) => {
478
478
  const b = m || {}, $ = v.length - 1, x = b.parts === !0 || b.scanToEnd === !0, F = [], G = [], M = [];
479
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
480
  const Q = () => _ >= $, te = () => T.charCodeAt(_ + 1), W = () => (V = N, T.charCodeAt(++_));
@@ -620,13 +620,13 @@ function gs() {
620
620
  q.slashes = F, q.parts = M;
621
621
  }
622
622
  return q;
623
- }, it;
623
+ }, st;
624
624
  }
625
- var st, Yr;
626
- function ms() {
627
- if (Yr) return st;
625
+ var ot, Yr;
626
+ function ys() {
627
+ if (Yr) return ot;
628
628
  Yr = 1;
629
- const e = /* @__PURE__ */ ke(), i = /* @__PURE__ */ Ve(), {
629
+ const e = /* @__PURE__ */ Ve(), i = /* @__PURE__ */ Xe(), {
630
630
  MAX_LENGTH: s,
631
631
  POSIX_REGEX_SOURCE: o,
632
632
  REGEX_NON_SPECIAL_CHARS: c,
@@ -728,7 +728,7 @@ function ms() {
728
728
  q({ type: "paren", extglob: !0, value: R, output: re }), ee("parens");
729
729
  };
730
730
  if (f.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(l)) {
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}`);
731
+ let j = !1, re = l.replace(r, (P, z, ie, ce, se, et) => ce === "\\" ? (j = !0, P) : ce === "?" ? z ? z + ce + (se ? _.repeat(se.length) : "") : et === 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
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(); ) {
@@ -962,8 +962,8 @@ function ms() {
962
962
  q({ type: "star", value: R, output: "" });
963
963
  continue;
964
964
  }
965
- const se = w.braces > 0 && (P.type === "comma" || P.type === "brace"), Ze = X.length && (P.type === "pipe" || P.type === "paren");
966
- if (!ie && P.type !== "paren" && !se && !Ze) {
965
+ const se = w.braces > 0 && (P.type === "comma" || P.type === "brace"), et = X.length && (P.type === "pipe" || P.type === "paren");
966
+ if (!ie && P.type !== "paren" && !se && !et) {
967
967
  q({ type: "star", value: R, output: "" });
968
968
  continue;
969
969
  }
@@ -1069,13 +1069,13 @@ function ms() {
1069
1069
  }, H = i.removePrefix(l, T);
1070
1070
  let O = B(H);
1071
1071
  return O && f.strictSlashes !== !0 && (O += `${p}?`), O;
1072
- }, st = a, st;
1072
+ }, ot = a, ot;
1073
1073
  }
1074
- var ot, Qr;
1075
- function vs() {
1076
- if (Qr) return ot;
1074
+ var at, Qr;
1075
+ function Es() {
1076
+ if (Qr) return at;
1077
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) => {
1078
+ const e = /* @__PURE__ */ vs(), i = /* @__PURE__ */ ys(), s = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ Ve(), 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) => {
@@ -1131,24 +1131,24 @@ function vs() {
1131
1131
  if (n && n.debug === !0) throw u;
1132
1132
  return /$^/;
1133
1133
  }
1134
- }, r.constants = o, ot = r, ot;
1134
+ }, r.constants = o, at = r, at;
1135
1135
  }
1136
- var at, Jr;
1137
- function ys() {
1138
- if (Jr) return at;
1136
+ var ut, Jr;
1137
+ function Rs() {
1138
+ if (Jr) return ut;
1139
1139
  Jr = 1;
1140
- const e = /* @__PURE__ */ vs(), i = /* @__PURE__ */ Ve();
1140
+ const e = /* @__PURE__ */ Es(), i = /* @__PURE__ */ Xe();
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
- return Object.assign(s, e), at = s, at;
1144
+ return Object.assign(s, e), ut = s, ut;
1145
1145
  }
1146
- var Es = /* @__PURE__ */ ys();
1147
- const Zr = /* @__PURE__ */ Ue(Es), Rs = "16.6.1", ws = {
1148
- version: Rs
1146
+ var ws = /* @__PURE__ */ Rs();
1147
+ const Zr = /* @__PURE__ */ ke(ws), $s = "16.6.4", Ss = {
1148
+ version: $s
1149
1149
  };
1150
1150
  var ye = {}, ge = {}, en;
1151
- function Di() {
1151
+ function qi() {
1152
1152
  if (en) return ge;
1153
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
@@ -1253,9 +1253,9 @@ function Di() {
1253
1253
  }
1254
1254
  return ge;
1255
1255
  }
1256
- var ut, tn;
1257
- function $s() {
1258
- if (tn) return ut;
1256
+ var ct, tn;
1257
+ function bs() {
1258
+ if (tn) return ct;
1259
1259
  tn = 1;
1260
1260
  var e = 1, i = 2;
1261
1261
  function s() {
@@ -1264,7 +1264,7 @@ function $s() {
1264
1264
  function o(c, r, t) {
1265
1265
  return c.slice(r, t).replace(/\S/g, " ");
1266
1266
  }
1267
- return ut = function(c, r) {
1267
+ return ct = function(c, r) {
1268
1268
  r = r || {};
1269
1269
  for (var t, n, u = !1, a = !1, l = 0, d = "", f = r.whitespace === !1 ? s : o, h = 0; h < c.length; h++) {
1270
1270
  if (t = c[h], n = c[h + 1], !a && t === '"') {
@@ -1291,13 +1291,13 @@ function $s() {
1291
1291
  }
1292
1292
  }
1293
1293
  return d + (a ? f(c.substr(l)) : c.substr(l));
1294
- }, ut;
1294
+ }, ct;
1295
1295
  }
1296
1296
  var rn;
1297
- function Ss() {
1297
+ function As() {
1298
1298
  if (rn) return ye;
1299
1299
  rn = 1;
1300
- var e = Ce, i = Di(), s = me, o = $s(), c = ye.parse = function(t) {
1300
+ var e = Ce, i = qi(), s = me, o = bs(), 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) {
@@ -1343,10 +1343,10 @@ function Ss() {
1343
1343
  return n(process.cwd(), t);
1344
1344
  }, ye;
1345
1345
  }
1346
- var ct = { exports: {} };
1346
+ var lt = { exports: {} };
1347
1347
  var nn;
1348
- function bs() {
1349
- if (nn) return ct.exports;
1348
+ function _s() {
1349
+ if (nn) return lt.exports;
1350
1350
  nn = 1;
1351
1351
  function e(r) {
1352
1352
  return r instanceof Buffer || r instanceof Date || r instanceof RegExp;
@@ -1372,7 +1372,7 @@ function bs() {
1372
1372
  function o(r, t) {
1373
1373
  return t === "__proto__" ? void 0 : r[t];
1374
1374
  }
1375
- var c = ct.exports = function() {
1375
+ var c = lt.exports = function() {
1376
1376
  if (arguments.length < 1 || typeof arguments[0] != "object")
1377
1377
  return !1;
1378
1378
  if (arguments.length < 2)
@@ -1400,17 +1400,17 @@ function bs() {
1400
1400
  });
1401
1401
  }), r;
1402
1402
  };
1403
- return ct.exports;
1403
+ return lt.exports;
1404
1404
  }
1405
- var lt, sn;
1406
- function As() {
1407
- if (sn) return lt;
1405
+ var ft, sn;
1406
+ function Os() {
1407
+ if (sn) return ft;
1408
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
- return lt = function(t, n, u, a) {
1409
+ var e = As(), i = me.join, s = _s(), o = "/etc", c = process.platform === "win32", r = c ? process.env.USERPROFILE : process.env.HOME;
1410
+ return ft = 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 = Pi()(process.argv.slice(2))), n = (typeof n == "string" ? e.json(n) : n) || {}, a = a || e.parse;
1413
+ u || (u = ji()(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)) {
@@ -1431,15 +1431,15 @@ function As() {
1431
1431
  u,
1432
1432
  f.length ? { configs: f, config: f[f.length - 1] } : void 0
1433
1433
  ]));
1434
- }, lt;
1434
+ }, ft;
1435
1435
  }
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;
1436
+ var xs = Os();
1437
+ const Ts = /* @__PURE__ */ ke(xs);
1438
+ var pt = { exports: {} }, Ee = {}, Re = {}, ht, on;
1439
+ function Is() {
1440
+ if (on) return ht;
1441
1441
  on = 1;
1442
- var e = is, i = process.cwd, s = null, o = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1442
+ var e = os, 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
  };
@@ -1453,7 +1453,7 @@ function xs() {
1453
1453
  s = null, c.call(process, t);
1454
1454
  }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, c);
1455
1455
  }
1456
- pt = r;
1456
+ ht = r;
1457
1457
  function r(t) {
1458
1458
  e.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && n(t), t.lutimes || u(t), t.chown = d(t.chown), t.fchown = d(t.fchown), t.lchown = d(t.lchown), t.chmod = a(t.chmod), t.fchmod = a(t.fchmod), t.lchmod = a(t.lchmod), t.chownSync = f(t.chownSync), t.fchownSync = f(t.fchownSync), t.lchownSync = f(t.lchownSync), t.chmodSync = l(t.chmodSync), t.fchmodSync = l(t.fchmodSync), t.lchmodSync = l(t.lchmodSync), t.stat = h(t.stat), t.fstat = h(t.fstat), t.lstat = h(t.lstat), t.statSync = g(t.statSync), t.fstatSync = g(t.fstatSync), t.lstatSync = g(t.lstatSync), t.chmod && !t.lchmod && (t.lchmod = function(p, E, A) {
1459
1459
  A && process.nextTick(A);
@@ -1461,7 +1461,7 @@ function xs() {
1461
1461
  }), t.chown && !t.lchown && (t.lchown = function(p, E, A, v) {
1462
1462
  v && process.nextTick(v);
1463
1463
  }, t.lchownSync = function() {
1464
- }), o === "win32" && (t.rename = typeof t.rename != "function" ? t.rename : function(p) {
1464
+ }), o === "win32" && (t.rename = typeof t.rename != "function" ? t.rename : (function(p) {
1465
1465
  function E(A, v, m) {
1466
1466
  var b = Date.now(), $ = 0;
1467
1467
  p(A, v, function x(F) {
@@ -1477,7 +1477,7 @@ function xs() {
1477
1477
  });
1478
1478
  }
1479
1479
  return Object.setPrototypeOf && Object.setPrototypeOf(E, p), E;
1480
- }(t.rename)), t.read = typeof t.read != "function" ? t.read : function(p) {
1480
+ })(t.rename)), t.read = typeof t.read != "function" ? t.read : (function(p) {
1481
1481
  function E(A, v, m, b, $, x) {
1482
1482
  var F;
1483
1483
  if (x && typeof x == "function") {
@@ -1491,7 +1491,7 @@ function xs() {
1491
1491
  return p.call(t, A, v, m, b, $, F);
1492
1492
  }
1493
1493
  return Object.setPrototypeOf && Object.setPrototypeOf(E, p), E;
1494
- }(t.read), t.readSync = typeof t.readSync != "function" ? t.readSync : /* @__PURE__ */ function(p) {
1494
+ })(t.read), t.readSync = typeof t.readSync != "function" ? t.readSync : /* @__PURE__ */ (function(p) {
1495
1495
  return function(E, A, v, m, b) {
1496
1496
  for (var $ = 0; ; )
1497
1497
  try {
@@ -1504,7 +1504,7 @@ function xs() {
1504
1504
  throw x;
1505
1505
  }
1506
1506
  };
1507
- }(t.readSync);
1507
+ })(t.readSync);
1508
1508
  function n(p) {
1509
1509
  p.lchmod = function(E, A, v) {
1510
1510
  p.open(
@@ -1625,14 +1625,14 @@ function xs() {
1625
1625
  return !!(E && (p.code === "EINVAL" || p.code === "EPERM"));
1626
1626
  }
1627
1627
  }
1628
- return pt;
1628
+ return ht;
1629
1629
  }
1630
- var ht, an;
1631
- function Ts() {
1632
- if (an) return ht;
1630
+ var dt, an;
1631
+ function Ns() {
1632
+ if (an) return dt;
1633
1633
  an = 1;
1634
- var e = Li.Stream;
1635
- ht = i;
1634
+ var e = Pi.Stream;
1635
+ dt = i;
1636
1636
  function i(s) {
1637
1637
  return {
1638
1638
  ReadStream: o,
@@ -1689,12 +1689,12 @@ function Ts() {
1689
1689
  this.busy = !1, this._queue = [], this.fd === null && (this._open = s.open, this._queue.push([this._open, this.path, this.flags, this.mode, void 0]), this.flush());
1690
1690
  }
1691
1691
  }
1692
- return ht;
1692
+ return dt;
1693
1693
  }
1694
- var dt, un;
1695
- function Is() {
1696
- if (un) return dt;
1697
- un = 1, dt = i;
1694
+ var gt, un;
1695
+ function Ls() {
1696
+ if (un) return gt;
1697
+ un = 1, gt = i;
1698
1698
  var e = Object.getPrototypeOf || function(s) {
1699
1699
  return s.__proto__;
1700
1700
  };
@@ -1709,13 +1709,13 @@ function Is() {
1709
1709
  Object.defineProperty(o, c, Object.getOwnPropertyDescriptor(s, c));
1710
1710
  }), o;
1711
1711
  }
1712
- return dt;
1712
+ return gt;
1713
1713
  }
1714
1714
  var qe, cn;
1715
- function Ns() {
1715
+ function Cs() {
1716
1716
  if (cn) return qe;
1717
1717
  cn = 1;
1718
- var e = Ce, i = xs(), s = Ts(), o = Is(), c = ss, r, t;
1718
+ var e = Ce, i = Is(), s = Ns(), o = Ls(), c = as, 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
  }
@@ -1732,8 +1732,8 @@ function Ns() {
1732
1732
  p = "GFS4: " + p.split(/\n/).join(`
1733
1733
  GFS4: `), console.error(p);
1734
1734
  }), !e[r]) {
1735
- var l = et[r] || [];
1736
- u(e, l), e.close = function(p) {
1735
+ var l = tt[r] || [];
1736
+ u(e, l), e.close = (function(p) {
1737
1737
  function E(A, v) {
1738
1738
  return p.call(e, A, function(m) {
1739
1739
  m || g(), typeof v == "function" && v.apply(this, arguments);
@@ -1742,18 +1742,18 @@ GFS4: `), console.error(p);
1742
1742
  return Object.defineProperty(E, t, {
1743
1743
  value: p
1744
1744
  }), E;
1745
- }(e.close), e.closeSync = function(p) {
1745
+ })(e.close), e.closeSync = (function(p) {
1746
1746
  function E(A) {
1747
1747
  p.apply(e, arguments), g();
1748
1748
  }
1749
1749
  return Object.defineProperty(E, t, {
1750
1750
  value: p
1751
1751
  }), E;
1752
- }(e.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
1753
- a(e[r]), os.equal(e[r].length, 0);
1752
+ })(e.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
1753
+ a(e[r]), us.equal(e[r].length, 0);
1754
1754
  });
1755
1755
  }
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);
1756
+ tt[r] || u(tt, e[r]), qe = d(o(e)), process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !e.__patched && (qe = d(e), e.__patched = !0);
1757
1757
  function d(p) {
1758
1758
  i(p), p.gracefulify = d, p.createReadStream = X, p.createWriteStream = k;
1759
1759
  var E = p.readFile;
@@ -1941,14 +1941,14 @@ GFS4: `), console.error(p);
1941
1941
  return qe;
1942
1942
  }
1943
1943
  var ln;
1944
- function Ls() {
1944
+ function Ps() {
1945
1945
  if (ln) return Re;
1946
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(Ns());
1951
+ const i = e(Cs());
1952
1952
  function s(o) {
1953
1953
  try {
1954
1954
  const c = i.default.readFileSync(o, "utf8"), r = "-----END CERTIFICATE-----";
@@ -1962,26 +1962,26 @@ function Ls() {
1962
1962
  return Re.readCAFileSync = s, Re;
1963
1963
  }
1964
1964
  var fn;
1965
- function Cs() {
1966
- return fn || (fn = 1, function(e) {
1967
- var i = Ee && Ee.__createBinding || (Object.create ? function(o, c, r, t) {
1965
+ function Ds() {
1966
+ return fn || (fn = 1, (function(e) {
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);
1970
1970
  (!n || ("get" in n ? !c.__esModule : n.writable || n.configurable)) && (n = { enumerable: !0, get: function() {
1971
1971
  return c[r];
1972
1972
  } }), Object.defineProperty(o, t, n);
1973
- } : function(o, c, r, t) {
1973
+ }) : (function(o, c, r, t) {
1974
1974
  t === void 0 && (t = r), o[t] = c[r];
1975
- }), s = Ee && Ee.__exportStar || function(o, c) {
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(Ls(), e);
1979
- }(Ee)), Ee;
1978
+ Object.defineProperty(e, "__esModule", { value: !0 }), s(Ps(), e);
1979
+ })(Ee)), Ee;
1980
1980
  }
1981
- var gt = { exports: {} }, mt, pn;
1982
- function Ps() {
1983
- if (pn) return mt;
1984
- pn = 1, mt = i;
1981
+ var mt = { exports: {} }, vt, pn;
1982
+ function js() {
1983
+ if (pn) return vt;
1984
+ pn = 1, vt = i;
1985
1985
  function e(s, o) {
1986
1986
  if (typeof Object.setPrototypeOf == "function")
1987
1987
  return Object.setPrototypeOf(s, o);
@@ -2048,13 +2048,13 @@ function Ps() {
2048
2048
  e(this.list[o], this.list[o + 1] || this.root);
2049
2049
  return s;
2050
2050
  }
2051
- }, mt;
2051
+ }, vt;
2052
2052
  }
2053
2053
  var hn;
2054
- function Ds() {
2055
- if (hn) return gt.exports;
2054
+ function qs() {
2055
+ if (hn) return mt.exports;
2056
2056
  hn = 1;
2057
- var e = Ps(), i = me, s = Ce, o = Di(), c = as.EventEmitter, r = Ci, t = us, n = gt.exports = function() {
2057
+ var e = js(), i = me, s = Ce, o = qi(), c = cs.EventEmitter, r = Di, t = ls, n = mt.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);
@@ -2191,12 +2191,12 @@ function Ds() {
2191
2191
  this._awaiting++;
2192
2192
  }, l.prototype._resolve = function() {
2193
2193
  this._awaiting--, this._awaiting === 0 && this.emit("load", this);
2194
- }, gt.exports;
2194
+ }, mt.exports;
2195
2195
  }
2196
- var vt, dn;
2197
- function js() {
2198
- if (dn) return vt;
2199
- dn = 1, vt = function(i) {
2196
+ var yt, dn;
2197
+ function Fs() {
2198
+ if (dn) return yt;
2199
+ dn = 1, yt = function(i) {
2200
2200
  const s = i.indexOf(":");
2201
2201
  if (s === -1)
2202
2202
  return e(i);
@@ -2210,10 +2210,10 @@ function js() {
2210
2210
  s += i[o] === "_" ? "-" : i[o];
2211
2211
  return s;
2212
2212
  }
2213
- return vt;
2213
+ return yt;
2214
2214
  }
2215
- var $e = {}, yt = {}, Ie = {}, gn;
2216
- function qs() {
2215
+ var $e = {}, Et = {}, Ie = {}, gn;
2216
+ function Bs() {
2217
2217
  if (gn) return Ie;
2218
2218
  gn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.envReplace = void 0;
2219
2219
  const e = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
@@ -2240,20 +2240,20 @@ function qs() {
2240
2240
  return Ie;
2241
2241
  }
2242
2242
  var mn;
2243
- function Fs() {
2244
- return mn || (mn = 1, function(e) {
2243
+ function Hs() {
2244
+ return mn || (mn = 1, (function(e) {
2245
2245
  Object.defineProperty(e, "__esModule", { value: !0 }), e.envReplace = void 0;
2246
- var i = qs();
2246
+ var i = Bs();
2247
2247
  Object.defineProperty(e, "envReplace", { enumerable: !0, get: function() {
2248
2248
  return i.envReplace;
2249
2249
  } });
2250
- }(yt)), yt;
2250
+ })(Et)), Et;
2251
2251
  }
2252
2252
  var vn;
2253
- function Bs() {
2253
+ function Gs() {
2254
2254
  if (vn) return $e;
2255
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) => {
2256
+ const e = Ce, i = me, { envReplace: s } = Hs(), 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,14 +2307,14 @@ function Bs() {
2307
2307
  };
2308
2308
  return $e.envReplace = s, $e.findPrefix = r, $e.parseField = c, $e.parseKey = o, $e;
2309
2309
  }
2310
- var Et = {}, yn;
2311
- function Hs() {
2312
- if (yn) return Et;
2310
+ var Rt = {}, yn;
2311
+ function Ms() {
2312
+ if (yn) return Rt;
2313
2313
  yn = 1;
2314
- const e = me, i = Li.Stream, s = Ci, o = () => {
2314
+ const e = me, i = Pi.Stream, s = Di, o = () => {
2315
2315
  }, c = () => [], r = () => {
2316
2316
  };
2317
- return Et.types = {
2317
+ return Rt.types = {
2318
2318
  access: [null, "restricted", "public"],
2319
2319
  "allow-same-version": Boolean,
2320
2320
  "always-auth": Boolean,
@@ -2437,17 +2437,17 @@ function Hs() {
2437
2437
  versions: Boolean,
2438
2438
  viewer: String,
2439
2439
  _exit: Boolean
2440
- }, Et;
2440
+ }, Rt;
2441
2441
  }
2442
- var Rt, En;
2443
- function Gs() {
2444
- if (En) return Rt;
2442
+ var wt, En;
2443
+ function Us() {
2444
+ if (En) return wt;
2445
2445
  En = 1;
2446
- const { readCAFileSync: e } = Cs(), i = Ce, s = me, { ConfigChain: o } = Ds(), c = js(), r = Bs();
2446
+ const { readCAFileSync: e } = Ds(), i = Ce, s = me, { ConfigChain: o } = qs(), c = Fs(), r = Gs();
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 || Hs());
2450
+ super(a), this.root = a, this._parseField = r.parseField.bind(null, l || Ms());
2451
2451
  }
2452
2452
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
2453
2453
  add(a, l) {
@@ -2563,12 +2563,12 @@ function Gs() {
2563
2563
  }
2564
2564
  return a;
2565
2565
  }
2566
- return Rt = t, Rt;
2566
+ return wt = t, wt;
2567
2567
  }
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 = {
2568
+ var $t = {}, Rn;
2569
+ function ks() {
2570
+ return Rn || (Rn = 1, (function(e) {
2571
+ const i = fs, 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 = {
@@ -2703,12 +2703,12 @@ function Ms() {
2703
2703
  }, h);
2704
2704
  }
2705
2705
  });
2706
- }(wt)), wt;
2706
+ })($t)), $t;
2707
2707
  }
2708
2708
  var wn;
2709
- function Us() {
2710
- return wn || (wn = 1, function(e) {
2711
- const i = me, s = Gs(), o = Ms();
2709
+ function Vs() {
2710
+ return wn || (wn = 1, (function(e) {
2711
+ const i = me, s = Us(), o = ks();
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");
@@ -2747,14 +2747,14 @@ function Us() {
2747
2747
  },
2748
2748
  enumerable: !0
2749
2749
  });
2750
- }(ft)), ft.exports;
2750
+ })(pt)), pt.exports;
2751
2751
  }
2752
- var $t, $n;
2753
- function ks() {
2754
- if ($n) return $t;
2752
+ var St, $n;
2753
+ function Xs() {
2754
+ if ($n) return St;
2755
2755
  $n = 1;
2756
- const e = Us(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2757
- $t = function() {
2756
+ const e = Vs(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2757
+ St = 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 || {};
2760
2760
  const E = p.npmrc;
@@ -2823,15 +2823,15 @@ function ks() {
2823
2823
  function h(g) {
2824
2824
  return g ? { token: l(g), type: "Basic" } : void 0;
2825
2825
  }
2826
- return $t;
2826
+ return St;
2827
2827
  }
2828
- var Vs = ks();
2829
- const St = /* @__PURE__ */ Ue(Vs);
2830
- function Xs(e, i) {
2828
+ var Ks = Xs();
2829
+ const bt = /* @__PURE__ */ ke(Ks);
2830
+ function Ws(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 Ks(e, i, s) {
2834
+ function zs(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,18 +2846,24 @@ class Y extends Error {
2846
2846
  column;
2847
2847
  codeblock;
2848
2848
  constructor(i, s) {
2849
- const [o, c] = Xs(s.toml, s.ptr), r = Ks(s.toml, o, c);
2849
+ const [o, c] = Ws(s.toml, s.ptr), r = zs(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;
2853
2853
  }
2854
2854
  }
2855
+ function Ys(e, i) {
2856
+ let s = 0;
2857
+ for (; e[i - ++s] === "\\"; )
2858
+ ;
2859
+ return --s && s % 2;
2860
+ }
2855
2861
  function Me(e, i = 0, s = e.length) {
2856
2862
  let o = e.indexOf(`
2857
2863
  `, i);
2858
2864
  return e[o - 1] === "\r" && o--, o <= s ? o : -1;
2859
2865
  }
2860
- function Or(e, i) {
2866
+ function xr(e, i) {
2861
2867
  for (let s = i; s < e.length; s++) {
2862
2868
  let o = e[s];
2863
2869
  if (o === `
@@ -2880,7 +2886,7 @@ function de(e, i, s, o) {
2880
2886
  ` || c === "\r" && e[i + 1] === `
2881
2887
  `); )
2882
2888
  i++;
2883
- return o || c !== "#" ? i : de(e, Or(e, i), s);
2889
+ return o || c !== "#" ? i : de(e, xr(e, i), s);
2884
2890
  }
2885
2891
  function Sn(e, i, s, o, c = !1) {
2886
2892
  if (!o)
@@ -2903,15 +2909,15 @@ function Sn(e, i, s, o, c = !1) {
2903
2909
  ptr: i
2904
2910
  });
2905
2911
  }
2906
- function ji(e, i) {
2912
+ function Fi(e, i) {
2907
2913
  let s = e[i], o = s === e[i + 1] && e[i + 1] === e[i + 2] ? e.slice(i, i + 3) : s;
2908
2914
  i += o.length - 1;
2909
2915
  do
2910
2916
  i = e.indexOf(o, ++i);
2911
- while (i > -1 && s !== "'" && e[i - 1] === "\\" && (e[i - 2] !== "\\" || e[i - 3] === "\\"));
2917
+ while (i > -1 && s !== "'" && Ys(e, i));
2912
2918
  return i > -1 && (i += o.length, o.length > 1 && (e[i] === s && i++, e[i] === s && i++)), i;
2913
2919
  }
2914
- let Ws = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2920
+ let Qs = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2915
2921
  class Ae extends Date {
2916
2922
  #t = !1;
2917
2923
  #r = !1;
@@ -2919,7 +2925,7 @@ class Ae extends Date {
2919
2925
  constructor(i) {
2920
2926
  let s = !0, o = !0, c = "Z";
2921
2927
  if (typeof i == "string") {
2922
- let r = i.match(Ws);
2928
+ let r = i.match(Qs);
2923
2929
  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
2930
  }
2925
2931
  super(i), isNaN(this.getTime()) || (this.#t = s, this.#r = o, this.#e = c);
@@ -2969,7 +2975,7 @@ class Ae extends Date {
2969
2975
  return s.#t = !1, s.#e = null, s;
2970
2976
  }
2971
2977
  }
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 = {
2978
+ let Js = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Zs = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, eo = /^[+-]?0[0-9_]/, to = /^[0-9a-f]{4,8}$/i, bn = {
2973
2979
  b: "\b",
2974
2980
  t: " ",
2975
2981
  n: `
@@ -2979,7 +2985,7 @@ let zs = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Ys = /^
2979
2985
  '"': '"',
2980
2986
  "\\": "\\"
2981
2987
  };
2982
- function qi(e, i = 0, s = e.length) {
2988
+ function Bi(e, i = 0, s = e.length) {
2983
2989
  let o = e[i] === "'", c = e[i++] === e[i] && e[i] === e[i + 1];
2984
2990
  c && (s -= 2, e[i += 2] === "\r" && i++, e[i] === `
2985
2991
  ` && i++);
@@ -3002,7 +3008,7 @@ function qi(e, i = 0, s = e.length) {
3002
3008
  if (t) {
3003
3009
  if (t = !1, a === "u" || a === "U") {
3004
3010
  let l = e.slice(i, i += a === "u" ? 4 : 8);
3005
- if (!Js.test(l))
3011
+ if (!to.test(l))
3006
3012
  throw new Y("invalid unicode escape", {
3007
3013
  toml: e,
3008
3014
  ptr: r
@@ -3036,7 +3042,7 @@ function qi(e, i = 0, s = e.length) {
3036
3042
  }
3037
3043
  return n + e.slice(u, s - 1);
3038
3044
  }
3039
- function Zs(e, i, s, o) {
3045
+ function ro(e, i, s, o) {
3040
3046
  if (e === "true")
3041
3047
  return !0;
3042
3048
  if (e === "false")
@@ -3049,9 +3055,9 @@ function Zs(e, i, s, o) {
3049
3055
  return NaN;
3050
3056
  if (e === "-0")
3051
3057
  return o ? 0n : 0;
3052
- let c = zs.test(e);
3053
- if (c || Ys.test(e)) {
3054
- if (Qs.test(e))
3058
+ let c = Js.test(e);
3059
+ if (c || Zs.test(e)) {
3060
+ if (eo.test(e))
3055
3061
  throw new Y("leading zeroes are not allowed", {
3056
3062
  toml: i,
3057
3063
  ptr: s
@@ -3081,9 +3087,9 @@ function Zs(e, i, s, o) {
3081
3087
  });
3082
3088
  return r;
3083
3089
  }
3084
- function eo(e, i, s, o) {
3090
+ function no(e, i, s, o) {
3085
3091
  let c = e.slice(i, s), r = c.indexOf("#");
3086
- r > -1 && (Or(e, r), c = c.slice(0, r));
3092
+ r > -1 && (xr(e, r), c = c.slice(0, r));
3087
3093
  let t = c.trimEnd();
3088
3094
  if (!o) {
3089
3095
  let n = c.indexOf(`
@@ -3096,7 +3102,7 @@ function eo(e, i, s, o) {
3096
3102
  }
3097
3103
  return [t, r];
3098
3104
  }
3099
- function xr(e, i, s, o, c) {
3105
+ function Tr(e, i, s, o, c) {
3100
3106
  if (o === 0)
3101
3107
  throw new Y("document contains excessively nested structures. aborting.", {
3102
3108
  toml: e,
@@ -3104,7 +3110,7 @@ function xr(e, i, s, o, c) {
3104
3110
  });
3105
3111
  let r = e[i];
3106
3112
  if (r === "[" || r === "{") {
3107
- let [u, a] = r === "[" ? no(e, i, o, c) : ro(e, i, o, c), l = s ? Sn(e, a, ",", s) : a;
3113
+ let [u, a] = r === "[" ? oo(e, i, o, c) : so(e, i, o, c), l = s ? Sn(e, a, ",", s) : a;
3108
3114
  if (a - l && s === "}") {
3109
3115
  let d = Me(e, a, l);
3110
3116
  if (d > -1)
@@ -3117,8 +3123,8 @@ function xr(e, i, s, o, c) {
3117
3123
  }
3118
3124
  let t;
3119
3125
  if (r === '"' || r === "'") {
3120
- t = ji(e, i);
3121
- let u = qi(e, i, t);
3126
+ t = Fi(e, i);
3127
+ let u = Bi(e, i, t);
3122
3128
  if (s) {
3123
3129
  if (t = de(e, t, s !== "]"), e[t] && e[t] !== "," && e[t] !== s && e[t] !== `
3124
3130
  ` && e[t] !== "\r")
@@ -3131,19 +3137,19 @@ function xr(e, i, s, o, c) {
3131
3137
  return [u, t];
3132
3138
  }
3133
3139
  t = Sn(e, i, ",", s);
3134
- let n = eo(e, i, t - +(e[t - 1] === ","), s === "]");
3140
+ let n = no(e, i, t - +(e[t - 1] === ","), s === "]");
3135
3141
  if (!n[0])
3136
3142
  throw new Y("incomplete key-value declaration: no value specified", {
3137
3143
  toml: e,
3138
3144
  ptr: i
3139
3145
  });
3140
3146
  return s && n[1] > -1 && (t = de(e, i + n[1]), t += +(e[t] === ",")), [
3141
- Zs(n[0], e, i, c),
3147
+ ro(n[0], e, i, c),
3142
3148
  t
3143
3149
  ];
3144
3150
  }
3145
- let to = /^[a-zA-Z0-9-_]+[ \t]*$/;
3146
- function wr(e, i, s = "=") {
3151
+ let io = /^[a-zA-Z0-9-_]+[ \t]*$/;
3152
+ function $r(e, i, s = "=") {
3147
3153
  let o = i - 1, c = [], r = e.indexOf(s, i);
3148
3154
  if (r < 0)
3149
3155
  throw new Y("incomplete key-value: cannot find end of key", {
@@ -3159,7 +3165,7 @@ function wr(e, i, s = "=") {
3159
3165
  toml: e,
3160
3166
  ptr: i
3161
3167
  });
3162
- let n = ji(e, i);
3168
+ let n = Fi(e, i);
3163
3169
  if (n < 0)
3164
3170
  throw new Y("unfinished string encountered", {
3165
3171
  toml: e,
@@ -3182,11 +3188,11 @@ function wr(e, i, s = "=") {
3182
3188
  toml: e,
3183
3189
  ptr: i
3184
3190
  });
3185
- c.push(qi(e, i, n));
3191
+ c.push(Bi(e, i, n));
3186
3192
  } else {
3187
3193
  o = e.indexOf(".", i);
3188
3194
  let n = e.slice(i, o < 0 || o > r ? r : o);
3189
- if (!to.test(n))
3195
+ if (!io.test(n))
3190
3196
  throw new Y("only letter, numbers, dashes and underscores are allowed in keys", {
3191
3197
  toml: e,
3192
3198
  ptr: i
@@ -3196,7 +3202,7 @@ function wr(e, i, s = "=") {
3196
3202
  } while (o + 1 && o < r);
3197
3203
  return [c, de(e, r + 1, !0, !0)];
3198
3204
  }
3199
- function ro(e, i, s, o) {
3205
+ function so(e, i, s, o) {
3200
3206
  let c = {}, r = /* @__PURE__ */ new Set(), t, n = 0;
3201
3207
  for (i++; (t = e[i++]) !== "}" && t; ) {
3202
3208
  let u = { toml: e, ptr: i - 1 };
@@ -3208,7 +3214,7 @@ function ro(e, i, s, o) {
3208
3214
  if (t === ",")
3209
3215
  throw new Y("expected key-value, found comma", u);
3210
3216
  if (t !== " " && t !== " ") {
3211
- let a, l = c, d = !1, [f, h] = wr(e, i - 1);
3217
+ let a, l = c, d = !1, [f, h] = $r(e, i - 1);
3212
3218
  for (let p = 0; p < f.length; p++) {
3213
3219
  if (p && (l = d ? l[a] : l[a] = {}), a = f[p], (d = Object.hasOwn(l, a)) && (typeof l[a] != "object" || r.has(l[a])))
3214
3220
  throw new Y("trying to redefine an already defined value", {
@@ -3222,7 +3228,7 @@ function ro(e, i, s, o) {
3222
3228
  toml: e,
3223
3229
  ptr: i
3224
3230
  });
3225
- let [g, y] = xr(e, h, "}", s - 1, o);
3231
+ let [g, y] = Tr(e, h, "}", s - 1, o);
3226
3232
  r.add(g), l[a] = g, i = y, n = e[i - 1] === "," ? i - 1 : 0;
3227
3233
  }
3228
3234
  }
@@ -3238,7 +3244,7 @@ function ro(e, i, s, o) {
3238
3244
  });
3239
3245
  return [c, i];
3240
3246
  }
3241
- function no(e, i, s, o) {
3247
+ function oo(e, i, s, o) {
3242
3248
  let c = [], r;
3243
3249
  for (i++; (r = e[i++]) !== "]" && r; ) {
3244
3250
  if (r === ",")
@@ -3247,10 +3253,10 @@ function no(e, i, s, o) {
3247
3253
  ptr: i - 1
3248
3254
  });
3249
3255
  if (r === "#")
3250
- i = Or(e, i);
3256
+ i = xr(e, i);
3251
3257
  else if (r !== " " && r !== " " && r !== `
3252
3258
  ` && r !== "\r") {
3253
- let t = xr(e, i - 1, "]", s - 1, o);
3259
+ let t = Tr(e, i - 1, "]", s - 1, o);
3254
3260
  c.push(t[0]), i = t[1];
3255
3261
  }
3256
3262
  }
@@ -3289,11 +3295,11 @@ function An(e, i, s, o) {
3289
3295
  return null;
3290
3296
  return [t, c, u.c];
3291
3297
  }
3292
- function io(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3298
+ function ao(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3293
3299
  let o = {}, c = {}, r = o, t = c;
3294
3300
  for (let n = de(e, 0); n < e.length; ) {
3295
3301
  if (e[n] === "[") {
3296
- let u = e[++n] === "[", a = wr(e, n += +u, "]");
3302
+ let u = e[++n] === "[", a = $r(e, n += +u, "]");
3297
3303
  if (u) {
3298
3304
  if (e[a[1] - 1] !== "]")
3299
3305
  throw new Y("expected end of table declaration", {
@@ -3316,7 +3322,7 @@ function io(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3316
3322
  });
3317
3323
  t = l[2], r = l[1], n = a[1];
3318
3324
  } else {
3319
- let u = wr(e, n), a = An(
3325
+ let u = $r(e, n), a = An(
3320
3326
  u[0],
3321
3327
  r,
3322
3328
  t,
@@ -3328,7 +3334,7 @@ function io(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3328
3334
  toml: e,
3329
3335
  ptr: n
3330
3336
  });
3331
- let l = xr(e, u[1], void 0, i, s);
3337
+ let l = Tr(e, u[1], void 0, i, s);
3332
3338
  a[1][a[0]] = l[0], n = l[1];
3333
3339
  }
3334
3340
  if (n = de(e, n, !0), e[n] && e[n] !== `
@@ -3341,28 +3347,28 @@ function io(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3341
3347
  }
3342
3348
  return o;
3343
3349
  }
3344
- var Fe = { exports: {} }, bt, _n;
3345
- function Xe() {
3346
- if (_n) return bt;
3350
+ var Fe = { exports: {} }, At, _n;
3351
+ function Ke() {
3352
+ if (_n) return At;
3347
3353
  _n = 1;
3348
3354
  const e = "2.0.0", i = 256, s = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
3349
3355
  9007199254740991;
3350
- return bt = {
3356
+ return At = {
3351
3357
  SEMVER_SPEC_VERSION: e,
3352
3358
  MAX_LENGTH: i,
3353
3359
  MAX_SAFE_INTEGER: s,
3354
3360
  MAX_SAFE_COMPONENT_LENGTH: 16
3355
- }, bt;
3361
+ }, At;
3356
3362
  }
3357
- var At, On;
3358
- function Ke() {
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
- }), At;
3363
+ var _t, On;
3364
+ function We() {
3365
+ return On || (On = 1, _t = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...i) => console.error("SEMVER", ...i) : () => {
3366
+ }), _t;
3361
3367
  }
3362
3368
  var xn;
3363
3369
  function xe() {
3364
- return xn || (xn = 1, function(e, i) {
3365
- const { MAX_SAFE_COMPONENT_LENGTH: s } = Xe(), o = Ke();
3370
+ return xn || (xn = 1, (function(e, i) {
3371
+ const { MAX_SAFE_COMPONENT_LENGTH: s } = Ke(), o = We();
3366
3372
  i = e.exports = {};
3367
3373
  const c = i.re = [], r = i.src = [], t = i.t = {};
3368
3374
  let n = 0;
@@ -3371,33 +3377,33 @@ function xe() {
3371
3377
  o(a, f, l), t[a] = f, r[f] = l, c[f] = new RegExp(l, d ? "g" : void 0);
3372
3378
  };
3373
3379
  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
- }(Fe, Fe.exports)), Fe.exports;
3380
+ })(Fe, Fe.exports)), Fe.exports;
3375
3381
  }
3376
- var _t, Tn;
3377
- function We() {
3378
- if (Tn) return _t;
3382
+ var Ot, Tn;
3383
+ function ze() {
3384
+ if (Tn) return Ot;
3379
3385
  Tn = 1;
3380
3386
  const e = ["includePrerelease", "loose", "rtl"];
3381
- return _t = (s) => s ? typeof s != "object" ? { loose: !0 } : e.filter((o) => s[o]).reduce((o, c) => (o[c] = !0, o), {}) : {}, _t;
3387
+ return Ot = (s) => s ? typeof s != "object" ? { loose: !0 } : e.filter((o) => s[o]).reduce((o, c) => (o[c] = !0, o), {}) : {}, Ot;
3382
3388
  }
3383
- var Ot, In;
3384
- function Fi() {
3385
- if (In) return Ot;
3389
+ var xt, In;
3390
+ function Hi() {
3391
+ if (In) return xt;
3386
3392
  In = 1;
3387
3393
  const e = /^[0-9]+$/, i = (o, c) => {
3388
3394
  const r = e.test(o), t = e.test(c);
3389
3395
  return r && t && (o = +o, c = +c), o === c ? 0 : r && !t ? -1 : t && !r ? 1 : o < c ? -1 : 1;
3390
3396
  };
3391
- return Ot = {
3397
+ return xt = {
3392
3398
  compareIdentifiers: i,
3393
3399
  rcompareIdentifiers: (o, c) => i(c, o)
3394
- }, Ot;
3400
+ }, xt;
3395
3401
  }
3396
- var xt, Nn;
3402
+ var Tt, Nn;
3397
3403
  function le() {
3398
- if (Nn) return xt;
3404
+ if (Nn) return Tt;
3399
3405
  Nn = 1;
3400
- const e = Ke(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Xe(), { re: o, t: c } = xe(), r = We(), { compareIdentifiers: t } = Fi();
3406
+ const e = We(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Ke(), { re: o, t: c } = xe(), r = ze(), { compareIdentifiers: t } = Hi();
3401
3407
  class n {
3402
3408
  constructor(a, l) {
3403
3409
  if (l = r(l), a instanceof n) {
@@ -3529,14 +3535,14 @@ function le() {
3529
3535
  return this.format(), this.raw = this.version, this;
3530
3536
  }
3531
3537
  }
3532
- return xt = n, xt;
3538
+ return Tt = n, Tt;
3533
3539
  }
3534
- var Tt, Ln;
3540
+ var It, Ln;
3535
3541
  function Te() {
3536
- if (Ln) return Tt;
3542
+ if (Ln) return It;
3537
3543
  Ln = 1;
3538
- const { MAX_LENGTH: e } = Xe(), { re: i, t: s } = xe(), o = le(), c = We();
3539
- return Tt = (t, n) => {
3544
+ const { MAX_LENGTH: e } = Ke(), { re: i, t: s } = xe(), o = le(), c = ze();
3545
+ return It = (t, n) => {
3540
3546
  if (n = c(n), t instanceof o)
3541
3547
  return t;
3542
3548
  if (typeof t != "string" || t.length > e || !(n.loose ? i[s.LOOSE] : i[s.FULL]).test(t))
@@ -3546,34 +3552,34 @@ function Te() {
3546
3552
  } catch {
3547
3553
  return null;
3548
3554
  }
3549
- }, Tt;
3555
+ }, It;
3550
3556
  }
3551
- var It, Cn;
3552
- function so() {
3553
- if (Cn) return It;
3557
+ var Nt, Cn;
3558
+ function uo() {
3559
+ if (Cn) return Nt;
3554
3560
  Cn = 1;
3555
3561
  const e = Te();
3556
- return It = (s, o) => {
3562
+ return Nt = (s, o) => {
3557
3563
  const c = e(s, o);
3558
3564
  return c ? c.version : null;
3559
- }, It;
3565
+ }, Nt;
3560
3566
  }
3561
- var Nt, Pn;
3562
- function oo() {
3563
- if (Pn) return Nt;
3567
+ var Lt, Pn;
3568
+ function co() {
3569
+ if (Pn) return Lt;
3564
3570
  Pn = 1;
3565
3571
  const e = Te();
3566
- return Nt = (s, o) => {
3572
+ return Lt = (s, o) => {
3567
3573
  const c = e(s.trim().replace(/^[=v]+/, ""), o);
3568
3574
  return c ? c.version : null;
3569
- }, Nt;
3575
+ }, Lt;
3570
3576
  }
3571
- var Lt, Dn;
3572
- function ao() {
3573
- if (Dn) return Lt;
3577
+ var Ct, Dn;
3578
+ function lo() {
3579
+ if (Dn) return Ct;
3574
3580
  Dn = 1;
3575
3581
  const e = le();
3576
- return Lt = (s, o, c, r) => {
3582
+ return Ct = (s, o, c, r) => {
3577
3583
  typeof c == "string" && (r = c, c = void 0);
3578
3584
  try {
3579
3585
  return new e(
@@ -3583,28 +3589,28 @@ function ao() {
3583
3589
  } catch {
3584
3590
  return null;
3585
3591
  }
3586
- }, Lt;
3592
+ }, Ct;
3587
3593
  }
3588
- var Ct, jn;
3594
+ var Pt, jn;
3589
3595
  function pe() {
3590
- if (jn) return Ct;
3596
+ if (jn) return Pt;
3591
3597
  jn = 1;
3592
3598
  const e = le();
3593
- return Ct = (s, o, c) => new e(s, c).compare(new e(o, c)), Ct;
3599
+ return Pt = (s, o, c) => new e(s, c).compare(new e(o, c)), Pt;
3594
3600
  }
3595
- var Pt, qn;
3596
- function Tr() {
3597
- if (qn) return Pt;
3601
+ var Dt, qn;
3602
+ function Ir() {
3603
+ if (qn) return Dt;
3598
3604
  qn = 1;
3599
3605
  const e = pe();
3600
- return Pt = (s, o, c) => e(s, o, c) === 0, Pt;
3606
+ return Dt = (s, o, c) => e(s, o, c) === 0, Dt;
3601
3607
  }
3602
- var Dt, Fn;
3603
- function uo() {
3604
- if (Fn) return Dt;
3608
+ var jt, Fn;
3609
+ function fo() {
3610
+ if (Fn) return jt;
3605
3611
  Fn = 1;
3606
- const e = Te(), i = Tr();
3607
- return Dt = (o, c) => {
3612
+ const e = Te(), i = Ir();
3613
+ return jt = (o, c) => {
3608
3614
  if (i(o, c))
3609
3615
  return null;
3610
3616
  {
@@ -3614,118 +3620,118 @@ function uo() {
3614
3620
  return u + l;
3615
3621
  return a;
3616
3622
  }
3617
- }, Dt;
3623
+ }, jt;
3618
3624
  }
3619
- var jt, Bn;
3620
- function co() {
3621
- if (Bn) return jt;
3625
+ var qt, Bn;
3626
+ function po() {
3627
+ if (Bn) return qt;
3622
3628
  Bn = 1;
3623
3629
  const e = le();
3624
- return jt = (s, o) => new e(s, o).major, jt;
3630
+ return qt = (s, o) => new e(s, o).major, qt;
3625
3631
  }
3626
- var qt, Hn;
3627
- function lo() {
3628
- if (Hn) return qt;
3632
+ var Ft, Hn;
3633
+ function ho() {
3634
+ if (Hn) return Ft;
3629
3635
  Hn = 1;
3630
3636
  const e = le();
3631
- return qt = (s, o) => new e(s, o).minor, qt;
3637
+ return Ft = (s, o) => new e(s, o).minor, Ft;
3632
3638
  }
3633
- var Ft, Gn;
3634
- function fo() {
3635
- if (Gn) return Ft;
3639
+ var Bt, Gn;
3640
+ function go() {
3641
+ if (Gn) return Bt;
3636
3642
  Gn = 1;
3637
3643
  const e = le();
3638
- return Ft = (s, o) => new e(s, o).patch, Ft;
3644
+ return Bt = (s, o) => new e(s, o).patch, Bt;
3639
3645
  }
3640
- var Bt, Mn;
3641
- function po() {
3642
- if (Mn) return Bt;
3646
+ var Ht, Mn;
3647
+ function mo() {
3648
+ if (Mn) return Ht;
3643
3649
  Mn = 1;
3644
3650
  const e = Te();
3645
- return Bt = (s, o) => {
3651
+ return Ht = (s, o) => {
3646
3652
  const c = e(s, o);
3647
3653
  return c && c.prerelease.length ? c.prerelease : null;
3648
- }, Bt;
3654
+ }, Ht;
3649
3655
  }
3650
- var Ht, Un;
3651
- function ho() {
3652
- if (Un) return Ht;
3656
+ var Gt, Un;
3657
+ function vo() {
3658
+ if (Un) return Gt;
3653
3659
  Un = 1;
3654
3660
  const e = pe();
3655
- return Ht = (s, o, c) => e(o, s, c), Ht;
3661
+ return Gt = (s, o, c) => e(o, s, c), Gt;
3656
3662
  }
3657
- var Gt, kn;
3658
- function go() {
3659
- if (kn) return Gt;
3663
+ var Mt, kn;
3664
+ function yo() {
3665
+ if (kn) return Mt;
3660
3666
  kn = 1;
3661
3667
  const e = pe();
3662
- return Gt = (s, o) => e(s, o, !0), Gt;
3668
+ return Mt = (s, o) => e(s, o, !0), Mt;
3663
3669
  }
3664
- var Mt, Vn;
3665
- function Ir() {
3666
- if (Vn) return Mt;
3670
+ var Ut, Vn;
3671
+ function Nr() {
3672
+ if (Vn) return Ut;
3667
3673
  Vn = 1;
3668
3674
  const e = le();
3669
- return Mt = (s, o, c) => {
3675
+ return Ut = (s, o, c) => {
3670
3676
  const r = new e(s, c), t = new e(o, c);
3671
3677
  return r.compare(t) || r.compareBuild(t);
3672
- }, Mt;
3678
+ }, Ut;
3673
3679
  }
3674
- var Ut, Xn;
3675
- function mo() {
3676
- if (Xn) return Ut;
3680
+ var kt, Xn;
3681
+ function Eo() {
3682
+ if (Xn) return kt;
3677
3683
  Xn = 1;
3678
- const e = Ir();
3679
- return Ut = (s, o) => s.sort((c, r) => e(c, r, o)), Ut;
3684
+ const e = Nr();
3685
+ return kt = (s, o) => s.sort((c, r) => e(c, r, o)), kt;
3680
3686
  }
3681
- var kt, Kn;
3682
- function vo() {
3683
- if (Kn) return kt;
3687
+ var Vt, Kn;
3688
+ function Ro() {
3689
+ if (Kn) return Vt;
3684
3690
  Kn = 1;
3685
- const e = Ir();
3686
- return kt = (s, o) => s.sort((c, r) => e(r, c, o)), kt;
3691
+ const e = Nr();
3692
+ return Vt = (s, o) => s.sort((c, r) => e(r, c, o)), Vt;
3687
3693
  }
3688
- var Vt, Wn;
3689
- function ze() {
3690
- if (Wn) return Vt;
3694
+ var Xt, Wn;
3695
+ function Ye() {
3696
+ if (Wn) return Xt;
3691
3697
  Wn = 1;
3692
3698
  const e = pe();
3693
- return Vt = (s, o, c) => e(s, o, c) > 0, Vt;
3699
+ return Xt = (s, o, c) => e(s, o, c) > 0, Xt;
3694
3700
  }
3695
- var Xt, zn;
3696
- function Nr() {
3697
- if (zn) return Xt;
3701
+ var Kt, zn;
3702
+ function Lr() {
3703
+ if (zn) return Kt;
3698
3704
  zn = 1;
3699
3705
  const e = pe();
3700
- return Xt = (s, o, c) => e(s, o, c) < 0, Xt;
3706
+ return Kt = (s, o, c) => e(s, o, c) < 0, Kt;
3701
3707
  }
3702
- var Kt, Yn;
3703
- function Bi() {
3704
- if (Yn) return Kt;
3708
+ var Wt, Yn;
3709
+ function Gi() {
3710
+ if (Yn) return Wt;
3705
3711
  Yn = 1;
3706
3712
  const e = pe();
3707
- return Kt = (s, o, c) => e(s, o, c) !== 0, Kt;
3713
+ return Wt = (s, o, c) => e(s, o, c) !== 0, Wt;
3708
3714
  }
3709
- var Wt, Qn;
3710
- function Lr() {
3711
- if (Qn) return Wt;
3715
+ var zt, Qn;
3716
+ function Cr() {
3717
+ if (Qn) return zt;
3712
3718
  Qn = 1;
3713
3719
  const e = pe();
3714
- return Wt = (s, o, c) => e(s, o, c) >= 0, Wt;
3720
+ return zt = (s, o, c) => e(s, o, c) >= 0, zt;
3715
3721
  }
3716
- var zt, Jn;
3717
- function Cr() {
3718
- if (Jn) return zt;
3722
+ var Yt, Jn;
3723
+ function Pr() {
3724
+ if (Jn) return Yt;
3719
3725
  Jn = 1;
3720
3726
  const e = pe();
3721
- return zt = (s, o, c) => e(s, o, c) <= 0, zt;
3727
+ return Yt = (s, o, c) => e(s, o, c) <= 0, Yt;
3722
3728
  }
3723
- var Yt, Zn;
3724
- function Hi() {
3725
- if (Zn) return Yt;
3729
+ var Qt, Zn;
3730
+ function Mi() {
3731
+ if (Zn) return Qt;
3726
3732
  Zn = 1;
3727
- const e = Tr(), i = Bi(), s = ze(), o = Lr(), c = Nr(), r = Cr();
3728
- return Yt = (n, u, a, l) => {
3733
+ const e = Ir(), i = Gi(), s = Ye(), o = Cr(), c = Lr(), r = Pr();
3734
+ return Qt = (n, u, a, l) => {
3729
3735
  switch (u) {
3730
3736
  case "===":
3731
3737
  return typeof n == "object" && (n = n.version), typeof a == "object" && (a = a.version), n === a;
@@ -3748,14 +3754,14 @@ function Hi() {
3748
3754
  default:
3749
3755
  throw new TypeError(`Invalid operator: ${u}`);
3750
3756
  }
3751
- }, Yt;
3757
+ }, Qt;
3752
3758
  }
3753
- var Qt, ei;
3754
- function yo() {
3755
- if (ei) return Qt;
3759
+ var Jt, ei;
3760
+ function wo() {
3761
+ if (ei) return Jt;
3756
3762
  ei = 1;
3757
3763
  const e = le(), i = Te(), { re: s, t: o } = xe();
3758
- return Qt = (r, t) => {
3764
+ return Jt = (r, t) => {
3759
3765
  if (r instanceof e)
3760
3766
  return r;
3761
3767
  if (typeof r == "number" && (r = String(r)), typeof r != "string")
@@ -3771,21 +3777,21 @@ function yo() {
3771
3777
  s[o.COERCERTL].lastIndex = -1;
3772
3778
  }
3773
3779
  return n === null ? null : i(`${n[2]}.${n[3] || "0"}.${n[4] || "0"}`, t);
3774
- }, Qt;
3780
+ }, Jt;
3775
3781
  }
3776
- var Jt, ti;
3777
- function Eo() {
3778
- return ti || (ti = 1, Jt = function(e) {
3782
+ var Zt, ti;
3783
+ function $o() {
3784
+ return ti || (ti = 1, Zt = function(e) {
3779
3785
  e.prototype[Symbol.iterator] = function* () {
3780
3786
  for (let i = this.head; i; i = i.next)
3781
3787
  yield i.value;
3782
3788
  };
3783
- }), Jt;
3789
+ }), Zt;
3784
3790
  }
3785
- var Zt, ri;
3786
- function Ro() {
3787
- if (ri) return Zt;
3788
- ri = 1, Zt = e, e.Node = c, e.create = e;
3791
+ var er, ri;
3792
+ function So() {
3793
+ if (ri) return er;
3794
+ ri = 1, er = e, e.Node = c, e.create = e;
3789
3795
  function e(r) {
3790
3796
  var t = this;
3791
3797
  if (t instanceof e || (t = new e()), t.tail = null, t.head = null, t.length = 0, r && typeof r.forEach == "function")
@@ -3945,16 +3951,16 @@ function Ro() {
3945
3951
  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
3952
  }
3947
3953
  try {
3948
- Eo()(e);
3954
+ $o()(e);
3949
3955
  } catch {
3950
3956
  }
3951
- return Zt;
3957
+ return er;
3952
3958
  }
3953
- var er, ni;
3954
- function wo() {
3955
- if (ni) return er;
3959
+ var tr, ni;
3960
+ function bo() {
3961
+ if (ni) return tr;
3956
3962
  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;
3963
+ const e = So(), 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
3964
  class f {
3959
3965
  constructor(m) {
3960
3966
  if (typeof m == "number" && (m = { max: m }), m || (m = {}), m.max && (typeof m.max != "number" || m.max < 0))
@@ -4121,11 +4127,11 @@ function wo() {
4121
4127
  let x = b.value;
4122
4128
  g(v, x) && (p(v, b), v[c] || (x = void 0)), x && m.call($, x.value, x.key, v);
4123
4129
  };
4124
- return er = f, er;
4130
+ return tr = f, tr;
4125
4131
  }
4126
- var tr, ii;
4132
+ var rr, ii;
4127
4133
  function he() {
4128
- if (ii) return tr;
4134
+ if (ii) return rr;
4129
4135
  ii = 1;
4130
4136
  class e {
4131
4137
  constructor(_, L) {
@@ -4195,8 +4201,8 @@ function he() {
4195
4201
  return !1;
4196
4202
  }
4197
4203
  }
4198
- tr = e;
4199
- const i = wo(), s = new i({ max: 1e3 }), o = We(), c = Ye(), r = Ke(), t = le(), {
4204
+ rr = e;
4205
+ const i = bo(), s = new i({ max: 1e3 }), o = ze(), c = Qe(), r = We(), t = le(), {
4200
4206
  re: n,
4201
4207
  t: u,
4202
4208
  comparatorTrimReplace: a,
@@ -4247,11 +4253,11 @@ function he() {
4247
4253
  }
4248
4254
  return !0;
4249
4255
  };
4250
- return tr;
4256
+ return rr;
4251
4257
  }
4252
- var rr, si;
4253
- function Ye() {
4254
- if (si) return rr;
4258
+ var nr, si;
4259
+ function Qe() {
4260
+ if (si) return nr;
4255
4261
  si = 1;
4256
4262
  const e = Symbol("SemVer ANY");
4257
4263
  class i {
@@ -4300,37 +4306,37 @@ function Ye() {
4300
4306
  return f || h || g && y || p || E;
4301
4307
  }
4302
4308
  }
4303
- rr = i;
4304
- const s = We(), { re: o, t: c } = xe(), r = Hi(), t = Ke(), n = le(), u = he();
4305
- return rr;
4309
+ nr = i;
4310
+ const s = ze(), { re: o, t: c } = xe(), r = Mi(), t = We(), n = le(), u = he();
4311
+ return nr;
4306
4312
  }
4307
- var nr, oi;
4308
- function Qe() {
4309
- if (oi) return nr;
4313
+ var ir, oi;
4314
+ function Je() {
4315
+ if (oi) return ir;
4310
4316
  oi = 1;
4311
4317
  const e = he();
4312
- return nr = (s, o, c) => {
4318
+ return ir = (s, o, c) => {
4313
4319
  try {
4314
4320
  o = new e(o, c);
4315
4321
  } catch {
4316
4322
  return !1;
4317
4323
  }
4318
4324
  return o.test(s);
4319
- }, nr;
4325
+ }, ir;
4320
4326
  }
4321
- var ir, ai;
4322
- function $o() {
4323
- if (ai) return ir;
4327
+ var sr, ai;
4328
+ function Ao() {
4329
+ if (ai) return sr;
4324
4330
  ai = 1;
4325
4331
  const e = he();
4326
- return ir = (s, o) => new e(s, o).set.map((c) => c.map((r) => r.value).join(" ").trim().split(" ")), ir;
4332
+ return sr = (s, o) => new e(s, o).set.map((c) => c.map((r) => r.value).join(" ").trim().split(" ")), sr;
4327
4333
  }
4328
- var sr, ui;
4329
- function So() {
4330
- if (ui) return sr;
4334
+ var or, ui;
4335
+ function _o() {
4336
+ if (ui) return or;
4331
4337
  ui = 1;
4332
4338
  const e = le(), i = he();
4333
- return sr = (o, c, r) => {
4339
+ return or = (o, c, r) => {
4334
4340
  let t = null, n = null, u = null;
4335
4341
  try {
4336
4342
  u = new i(c, r);
@@ -4340,14 +4346,14 @@ function So() {
4340
4346
  return o.forEach((a) => {
4341
4347
  u.test(a) && (!t || n.compare(a) === -1) && (t = a, n = new e(t, r));
4342
4348
  }), t;
4343
- }, sr;
4349
+ }, or;
4344
4350
  }
4345
- var or, ci;
4346
- function bo() {
4347
- if (ci) return or;
4351
+ var ar, ci;
4352
+ function Oo() {
4353
+ if (ci) return ar;
4348
4354
  ci = 1;
4349
4355
  const e = le(), i = he();
4350
- return or = (o, c, r) => {
4356
+ return ar = (o, c, r) => {
4351
4357
  let t = null, n = null, u = null;
4352
4358
  try {
4353
4359
  u = new i(c, r);
@@ -4357,14 +4363,14 @@ function bo() {
4357
4363
  return o.forEach((a) => {
4358
4364
  u.test(a) && (!t || n.compare(a) === 1) && (t = a, n = new e(t, r));
4359
4365
  }), t;
4360
- }, or;
4366
+ }, ar;
4361
4367
  }
4362
- var ar, li;
4363
- function Ao() {
4364
- if (li) return ar;
4368
+ var ur, li;
4369
+ function xo() {
4370
+ if (li) return ur;
4365
4371
  li = 1;
4366
- const e = le(), i = he(), s = ze();
4367
- return ar = (c, r) => {
4372
+ const e = le(), i = he(), s = Ye();
4373
+ return ur = (c, r) => {
4368
4374
  c = new i(c, r);
4369
4375
  let t = new e("0.0.0");
4370
4376
  if (c.test(t) || (t = new e("0.0.0-0"), c.test(t)))
@@ -4393,27 +4399,27 @@ function Ao() {
4393
4399
  }), a && (!t || s(t, a)) && (t = a);
4394
4400
  }
4395
4401
  return t && c.test(t) ? t : null;
4396
- }, ar;
4402
+ }, ur;
4397
4403
  }
4398
- var ur, fi;
4399
- function _o() {
4400
- if (fi) return ur;
4404
+ var cr, fi;
4405
+ function To() {
4406
+ if (fi) return cr;
4401
4407
  fi = 1;
4402
4408
  const e = he();
4403
- return ur = (s, o) => {
4409
+ return cr = (s, o) => {
4404
4410
  try {
4405
4411
  return new e(s, o).range || "*";
4406
4412
  } catch {
4407
4413
  return null;
4408
4414
  }
4409
- }, ur;
4415
+ }, cr;
4410
4416
  }
4411
- var cr, pi;
4412
- function Pr() {
4413
- if (pi) return cr;
4417
+ var lr, pi;
4418
+ function Dr() {
4419
+ if (pi) return lr;
4414
4420
  pi = 1;
4415
- const e = le(), i = Ye(), { ANY: s } = i, o = he(), c = Qe(), r = ze(), t = Nr(), n = Cr(), u = Lr();
4416
- return cr = (l, d, f, h) => {
4421
+ const e = le(), i = Qe(), { ANY: s } = i, o = he(), c = Je(), r = Ye(), t = Lr(), n = Pr(), u = Cr();
4422
+ return lr = (l, d, f, h) => {
4417
4423
  l = new e(l, h), d = new o(d, h);
4418
4424
  let g, y, p, E, A;
4419
4425
  switch (f) {
@@ -4439,35 +4445,35 @@ function Pr() {
4439
4445
  return !1;
4440
4446
  }
4441
4447
  return !0;
4442
- }, cr;
4448
+ }, lr;
4443
4449
  }
4444
- var lr, hi;
4445
- function Oo() {
4446
- if (hi) return lr;
4450
+ var fr, hi;
4451
+ function Io() {
4452
+ if (hi) return fr;
4447
4453
  hi = 1;
4448
- const e = Pr();
4449
- return lr = (s, o, c) => e(s, o, ">", c), lr;
4454
+ const e = Dr();
4455
+ return fr = (s, o, c) => e(s, o, ">", c), fr;
4450
4456
  }
4451
- var fr, di;
4452
- function xo() {
4453
- if (di) return fr;
4457
+ var pr, di;
4458
+ function No() {
4459
+ if (di) return pr;
4454
4460
  di = 1;
4455
- const e = Pr();
4456
- return fr = (s, o, c) => e(s, o, "<", c), fr;
4461
+ const e = Dr();
4462
+ return pr = (s, o, c) => e(s, o, "<", c), pr;
4457
4463
  }
4458
- var pr, gi;
4459
- function To() {
4460
- if (gi) return pr;
4464
+ var hr, gi;
4465
+ function Lo() {
4466
+ if (gi) return hr;
4461
4467
  gi = 1;
4462
4468
  const e = he();
4463
- return pr = (s, o, c) => (s = new e(s, c), o = new e(o, c), s.intersects(o)), pr;
4469
+ return hr = (s, o, c) => (s = new e(s, c), o = new e(o, c), s.intersects(o)), hr;
4464
4470
  }
4465
- var hr, mi;
4466
- function Io() {
4467
- if (mi) return hr;
4471
+ var dr, mi;
4472
+ function Co() {
4473
+ if (mi) return dr;
4468
4474
  mi = 1;
4469
- const e = Qe(), i = pe();
4470
- return hr = (s, o, c) => {
4475
+ const e = Je(), i = pe();
4476
+ return dr = (s, o, c) => {
4471
4477
  const r = [];
4472
4478
  let t = null, n = null;
4473
4479
  const u = s.sort((f, h) => i(f, h, c));
@@ -4479,13 +4485,13 @@ function Io() {
4479
4485
  f === h ? a.push(f) : !h && f === u[0] ? a.push("*") : h ? f === u[0] ? a.push(`<=${h}`) : a.push(`${f} - ${h}`) : a.push(`>=${f}`);
4480
4486
  const l = a.join(" || "), d = typeof o.raw == "string" ? o.raw : String(o);
4481
4487
  return l.length < d.length ? l : o;
4482
- }, hr;
4488
+ }, dr;
4483
4489
  }
4484
- var dr, vi;
4485
- function No() {
4486
- if (vi) return dr;
4490
+ var gr, vi;
4491
+ function Po() {
4492
+ if (vi) return gr;
4487
4493
  vi = 1;
4488
- const e = he(), i = Ye(), { ANY: s } = i, o = Qe(), c = pe(), r = (a, l, d = {}) => {
4494
+ const e = he(), i = Qe(), { ANY: s } = i, o = Je(), c = pe(), r = (a, l, d = {}) => {
4489
4495
  if (a === l)
4490
4496
  return !0;
4491
4497
  a = new e(a, d), l = new e(l, d);
@@ -4566,14 +4572,14 @@ function No() {
4566
4572
  const f = c(a.semver, l.semver, d);
4567
4573
  return f < 0 ? a : f > 0 || l.operator === "<" && a.operator === "<=" ? l : a;
4568
4574
  };
4569
- return dr = r, dr;
4575
+ return gr = r, gr;
4570
4576
  }
4571
- var gr, yi;
4572
- function Lo() {
4573
- if (yi) return gr;
4577
+ var mr, yi;
4578
+ function Do() {
4579
+ if (yi) return mr;
4574
4580
  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
- return gr = {
4581
+ const e = xe(), i = Ke(), s = le(), o = Hi(), c = Te(), r = uo(), t = co(), n = lo(), u = fo(), a = po(), l = ho(), d = go(), f = mo(), h = pe(), g = vo(), y = yo(), p = Nr(), E = Eo(), A = Ro(), v = Ye(), m = Lr(), b = Ir(), $ = Gi(), x = Cr(), F = Pr(), G = Mi(), M = wo(), T = Qe(), _ = he(), L = Je(), B = Ao(), H = _o(), O = Oo(), I = xo(), D = To(), C = Dr(), w = Io(), X = No(), k = Lo(), ne = Co(), S = Po();
4582
+ return mr = {
4577
4583
  parse: c,
4578
4584
  valid: r,
4579
4585
  clean: t,
@@ -4618,10 +4624,10 @@ function Lo() {
4618
4624
  SEMVER_SPEC_VERSION: i.SEMVER_SPEC_VERSION,
4619
4625
  compareIdentifiers: o.compareIdentifiers,
4620
4626
  rcompareIdentifiers: o.rcompareIdentifiers
4621
- }, gr;
4627
+ }, mr;
4622
4628
  }
4623
- var oe = Lo();
4624
- const Co = [
4629
+ var oe = Do();
4630
+ const jo = [
4625
4631
  [1e3, 6e4, "sec"],
4626
4632
  [6e4, 36e5, "min"],
4627
4633
  [36e5, 864e5, "hour"],
@@ -4629,7 +4635,7 @@ const Co = [
4629
4635
  [6048e5, 2628e6, "week"],
4630
4636
  [2628e6, 31536e6, "month"],
4631
4637
  [31536e6, 1 / 0, "year"]
4632
- ], Po = {
4638
+ ], qo = {
4633
4639
  "1 day ago": "yesterday",
4634
4640
  "1 week ago": "last week",
4635
4641
  "1 month ago": "last month",
@@ -4638,14 +4644,14 @@ const Co = [
4638
4644
  "in 1 week": "next week",
4639
4645
  "in 1 month": "next month",
4640
4646
  "in 1 year": "next year"
4641
- }, Do = {
4647
+ }, Fo = {
4642
4648
  sec: "second",
4643
4649
  min: "minute"
4644
4650
  };
4645
4651
  function Ei(e) {
4646
4652
  return e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : e;
4647
4653
  }
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 } = {}) {
4654
+ function Ri(e, { now: i, noAffix: s = !1, times: o = jo, nowThreshold: c = 2e3, nowString: r = "now", unknownString: t = "", aliases: n = !1, aliasesMap: u = qo, longUnits: a = !1 } = {}) {
4649
4655
  const l = Ei(e);
4650
4656
  if (i = i !== void 0 ? Ei(i) : Date.now(), Number.isNaN(l)) return t || String(e);
4651
4657
  let d = !1, f = i - l;
@@ -4654,44 +4660,46 @@ function Ri(e, { now: i, noAffix: s = !1, times: o = Co, nowThreshold: c = 2e3,
4654
4660
  for (let p = 0, E = o.length; p < E; p++) {
4655
4661
  const A = o[p];
4656
4662
  if (!(f >= A[1])) {
4657
- h = Math.floor(f / A[0]), g = (a && Do[A[2]] || A[2]) + (h > 1 ? "s" : "");
4663
+ h = Math.floor(f / A[0]), g = (a && Fo[A[2]] || A[2]) + (h > 1 ? "s" : "");
4658
4664
  break;
4659
4665
  }
4660
4666
  }
4661
4667
  const y = `${d && !s ? "in " : ""}${h} ${g}${!d && !s ? " ago" : ""}`;
4662
4668
  return n ? u[y] ?? y : y;
4663
4669
  }
4664
- function jo(e) {
4670
+ function Bo(e) {
4665
4671
  const i = [];
4666
4672
  for (const s of e) {
4667
4673
  const [o, c] = s.replaceAll(/\s+/g, "").split(/[<>=~]+/);
4668
- o && /^[0-9.]+$/.test(c) && i.push({ name: o, version: c });
4674
+ o && /^[0-9.a-z]+$/.test(c) && i.push({ name: o, version: c });
4669
4675
  }
4670
4676
  return i;
4671
4677
  }
4672
- const qo = [
4678
+ const Ho = [
4673
4679
  "dependencies",
4674
4680
  "devDependencies",
4675
4681
  "peerDependencies",
4676
4682
  "optionalDependencies",
4677
4683
  "resolutions"
4678
- ], Fo = [
4684
+ ], Go = [
4679
4685
  "tool.poetry.dependencies",
4680
4686
  "tool.poetry.dev-dependencies",
4681
4687
  "tool.poetry.test-dependencies",
4682
4688
  "tool.poetry.group.dev.dependencies",
4683
4689
  "tool.poetry.group.test.dependencies"
4684
- ], Bo = [
4690
+ ], Mo = [
4685
4691
  "project.dependencies",
4686
4692
  "project.optional-dependencies",
4687
4693
  "dependency-groups.dev",
4688
4694
  "dependency-groups.lint",
4689
4695
  "dependency-groups.test"
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 = {
4696
+ ], wi = [
4697
+ "deps"
4698
+ ], Uo = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, ko = /^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i, Sr = /^[0-9a-f]{7,}$/i, $i = /[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g, Vo = /[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g, _e = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&"), Pe = (e) => e.endsWith("/") ? e.substring(0, e.length - 1) : e, Ui = Ss.version, fe = "\0", br = {
4691
4699
  "package.json": "npm",
4692
4700
  "pyproject.toml": "pypi",
4693
4701
  "go.mod": "go"
4694
- }, Z = ps(Ki.slice(2), {
4702
+ }, Z = ds(zi.slice(2), {
4695
4703
  boolean: [
4696
4704
  "E",
4697
4705
  "error-on-outdated",
@@ -4762,88 +4770,118 @@ const qo = [
4762
4770
  v: "version",
4763
4771
  V: "verbose"
4764
4772
  }
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/, "");
4773
+ }), [Xo, Ue, jr] = ["magenta", "red", "green"].map((e) => Z["no-color"] ? String : (i) => ns(e, String(i))), Se = De(ve(Z.greatest)), vr = De(ve(Z.prerelease)), yr = De(ve(Z.release)), Si = De(ve(Z.patch)), bi = De(ve(Z.minor)), Ai = ve(Z["allow-downgrade"]), Ko = ve(Z.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), ki = Z.githubapi ? Pe(Z.githubapi) : "https://api.github.com", _i = Z.pypiapi ? Pe(Z.pypiapi) : "https://pypi.org", Wo = "https://proxy.golang.org", Vi = Z.goproxy ? [Pe(Z.goproxy)] : Yo(), Oe = (e) => e.replace(/^v/, "");
4766
4774
  function we(e, i) {
4767
4775
  for (const s of i instanceof Set ? i : [])
4768
4776
  if (s.test(e)) return !0;
4769
4777
  return !1;
4770
4778
  }
4771
- function Xo(e, i) {
4779
+ function zo(e, i) {
4772
4780
  const s = i[`${e}:registry`] || i.registry;
4773
4781
  return s.endsWith("/") ? s : `${s}/`;
4774
4782
  }
4775
- function Ko() {
4776
- return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Vo];
4783
+ function Yo() {
4784
+ return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Wo];
4777
4785
  }
4778
- function Wo(e, i) {
4786
+ function Qo(e, i) {
4779
4787
  return i.split(".").reduce((s, o) => s?.[o] ?? null, e);
4780
4788
  }
4781
4789
  function Ge(e) {
4782
4790
  return e.split(",").filter(Boolean);
4783
4791
  }
4784
- function ki(e, i) {
4785
- const s = _r(i, e);
4792
+ function Xi(e, i) {
4793
+ const s = Or(i, e);
4786
4794
  try {
4787
- return es(s), s;
4795
+ return rs(s), s;
4788
4796
  } catch {
4789
4797
  }
4790
- const o = Ar(i);
4791
- return o === i ? null : ki(e, o);
4798
+ const o = _r(i);
4799
+ return o === i ? null : Xi(e, o);
4792
4800
  }
4793
- function zo(e, i, s, o) {
4801
+ function Jo(e, i, s, o) {
4794
4802
  if (e.startsWith("@")) {
4795
- const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(Xo(c, o));
4803
+ const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(zo(c, o));
4796
4804
  if (r !== i)
4797
4805
  try {
4798
- const t = St(r, s);
4806
+ const t = bt(r, s);
4799
4807
  if (t?.token) return { auth: t, registry: r };
4800
4808
  } catch {
4801
4809
  }
4802
- return { auth: St(i, s), registry: i };
4810
+ return { auth: bt(i, s), registry: i };
4803
4811
  } else
4804
- return { auth: St(i, s), registry: i };
4812
+ return { auth: bt(i, s), registry: i };
4805
4813
  }
4806
4814
  function qr(e, i, s) {
4807
4815
  return {
4808
4816
  ...Object.keys(e).length && { agentOpts: e },
4809
4817
  headers: {
4810
- "user-agent": `updates/${Gi}`,
4818
+ "user-agent": `updates/${Ui}`,
4811
4819
  ...s && { Authorization: `${i} ${s}` }
4812
4820
  }
4813
4821
  };
4814
4822
  }
4815
- async function Je(e, i) {
4816
- Z.verbose && console.error(`${Uo("fetch")} ${e}`);
4823
+ function Zo() {
4824
+ const e = /* @__PURE__ */ new Date();
4825
+ return [
4826
+ e.getFullYear(),
4827
+ "-",
4828
+ String(e.getMonth() + 1).padStart(2, "0"),
4829
+ "-",
4830
+ String(e.getDate()).padStart(2, "0"),
4831
+ " ",
4832
+ String(e.getHours()).padStart(2, "0"),
4833
+ ":",
4834
+ String(e.getMinutes()).padStart(2, "0"),
4835
+ ":",
4836
+ String(e.getSeconds()).padStart(2, "0")
4837
+ ].join("");
4838
+ }
4839
+ function Oi(e) {
4840
+ console.error(`${Zo()} ${e}`);
4841
+ }
4842
+ async function Ze(e, i) {
4843
+ Z.verbose && Oi(`${Xo("fetch")} ${e}`);
4817
4844
  const s = await fetch(e, i);
4818
- return Z.verbose && console.error(`${s.ok ? jr(s.status) : Dr(s.status)} ${e}`), s;
4845
+ return Z.verbose && Oi(`${s.ok ? jr(s.status) : Ue(s.status)} ${e}`), s;
4819
4846
  }
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));
4847
+ async function ea(e, i, s, o, c, r) {
4848
+ const { auth: t, registry: n } = Jo(e, s, c, r), u = i === "resolutions" ? He(e) : e, a = `${n}/${u.replace(/\//g, "%2f")}`, l = await Ze(a, qr(o, t?.type, t?.token));
4822
4849
  if (l?.ok)
4823
4850
  return [await l.json(), i, n, e];
4824
4851
  throw l?.status && l?.statusText ? new Error(`Received ${l.status} ${l.statusText} from ${a}`) : new Error(`Unable to fetch ${e} from ${n}`);
4825
4852
  }
4826
- async function Qo(e, i, s) {
4827
- const o = `${Ai}/pypi/${e}/json`, c = await Je(o, qr(s));
4853
+ async function ta(e, i, s) {
4854
+ const o = `${_i}/pypi/${e}/json`, c = await Ze(o, qr(s));
4828
4855
  if (c?.ok)
4829
4856
  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 ${Ai}`);
4857
+ throw c?.status && c?.statusText ? new Error(`Received ${c.status} ${c.statusText} from ${o}`) : new Error(`Unable to fetch ${e} from ${_i}`);
4831
4858
  }
4832
- function Jo(e) {
4859
+ function ra(e) {
4833
4860
  return e.split(/\r?\n/).map((i) => i.trim()).filter(Boolean);
4834
4861
  }
4835
- async function Fr(e, i, s, o, c = {}) {
4836
- const r = o.shift();
4837
- if (!r)
4862
+ async function Fr(e, i, s, o) {
4863
+ const c = o.shift();
4864
+ if (!c)
4838
4865
  throw new Error("No more go proxies available");
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) {
4866
+ const r = `${c}/${e.toLowerCase()}/@latest`;
4867
+ let t = null, n = !1;
4868
+ try {
4869
+ if (t = await Ze(r, {
4870
+ ...qr(s),
4871
+ // proxy.golang.org takes 5+ seconds to answer requests for unknown packages with an error. If it
4872
+ // takes longer, it's likely going to fail. Subsequent requests are faster apparently as it caches.
4873
+ signal: AbortSignal.timeout(1e4)
4874
+ }), t?.ok)
4875
+ return await t.json();
4876
+ n = [404, 410].includes(t.status) && !!o.length;
4877
+ } catch (u) {
4878
+ u.name === "TimeoutError" && (n = !!o.length);
4879
+ }
4880
+ if (n)
4881
+ return Fr(e, i, s, o);
4882
+ throw t?.status && t?.statusText ? new Error(`Received ${t.status} ${t.statusText} from ${r}`) : new Error(`Unable to fetch ${e} from ${c}`);
4883
+ }
4884
+ async function na(e, i) {
4847
4885
  let s = null, o = e;
4848
4886
  for (; ; ) {
4849
4887
  if (/\/v[0-9]+$/.test(o)) {
@@ -4852,12 +4890,10 @@ async function Zo(e, i) {
4852
4890
  } else
4853
4891
  o = `${o}/v2`;
4854
4892
  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) {
4893
+ const c = await Fr(o, "latest", i, Array.from(Vi));
4894
+ if (c === null)
4895
+ break;
4896
+ if (c?.Version) {
4861
4897
  s = c;
4862
4898
  continue;
4863
4899
  }
@@ -4867,34 +4903,34 @@ async function Zo(e, i) {
4867
4903
  }
4868
4904
  return s;
4869
4905
  }
4870
- function ea(e) {
4906
+ function ia(e) {
4871
4907
  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;
4872
4908
  }
4873
- function ta(e) {
4909
+ function sa(e) {
4874
4910
  return e.startsWith("https://bitbucket.org") ? "src/HEAD" : "tree/HEAD";
4875
4911
  }
4876
- function _i({ repository: e, homepage: i, info: s }, o, c) {
4912
+ function xi({ repository: e, homepage: i, info: s }, o, c) {
4877
4913
  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}/`);
4878
4914
  let r = "";
4879
4915
  if (o === "https://npm.pkg.github.com")
4880
4916
  return `https://github.com/${c.replace(/^@/, "")}`;
4881
4917
  if (e) {
4882
4918
  const t = typeof e == "string" ? e : e.url;
4883
- r = ea(t), r && typeof e != "string" && e.directory && (r = `${r}/${ta(r)}/${e.directory}`);
4919
+ r = ia(t), r && typeof e != "string" && e.directory && (r = `${r}/${sa(r)}/${e.directory}`);
4884
4920
  }
4885
4921
  return r || i || "";
4886
4922
  }
4887
- async function Oi(e) {
4923
+ async function Ti(e) {
4888
4924
  console.info(Z.json ? JSON.stringify({ message: e }) : e), await Ne();
4889
4925
  }
4890
4926
  async function Ne(e, i) {
4891
4927
  if (e) {
4892
- const s = e.stack ?? e.message;
4893
- console.info(Z.json ? JSON.stringify({ error: s }) : Dr(s));
4928
+ const s = e.stack ?? e.message, o = e.cause;
4929
+ Z.json ? console.info(JSON.stringify({ error: s, cause: o })) : (console.info(Ue(s)), o && console.info(Ue(`Caused by: ${o}`)));
4894
4930
  }
4895
- Rr === "win32" && Number(zi?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), Yi(i || e ? 1 : 0);
4931
+ wr === "win32" && Number(Qi?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), Ji(i || e ? 1 : 0);
4896
4932
  }
4897
- function ra(e = {}) {
4933
+ function oa(e = {}) {
4898
4934
  for (const s of Object.keys(e))
4899
4935
  for (const o of Object.values(e[s]))
4900
4936
  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);
@@ -4909,13 +4945,13 @@ function ra(e = {}) {
4909
4945
  s.results[o] || (s.results[o] = {}), s.results[o][t] || (s.results[o][t] = {}), s.results[o][t][n] = r;
4910
4946
  }
4911
4947
  console.info(JSON.stringify(s));
4912
- } else i && console.info(oa(e));
4948
+ } else i && console.info(la(e));
4913
4949
  return Z["error-on-outdated"] ? i ? 2 : 0 : Z["error-on-unchanged"] ? i ? 0 : 2 : 0;
4914
4950
  }
4915
- function na(e, i) {
4916
- Rr === "win32" && Ji(e, 0), Zi(e, i, Rr === "win32" ? { flag: "r+" } : void 0);
4951
+ function aa(e, i) {
4952
+ wr === "win32" && es(e, 0), ts(e, i, wr === "win32" ? { flag: "r+" } : void 0);
4917
4953
  }
4918
- function xi(e, i, s) {
4954
+ function Ii(e, i, s) {
4919
4955
  if (e === i) return e;
4920
4956
  const o = e.split(/\./), c = i.split(/\./), r = /^[0-9a-zA-Z-.]+$/;
4921
4957
  let t = "";
@@ -4927,19 +4963,19 @@ function xi(e, i, s) {
4927
4963
  t += `${o[n]}.`;
4928
4964
  return t.replace(/\.$/, "");
4929
4965
  }
4930
- const Ti = (e) => rs(e).length;
4931
- function ia(e, i = " ") {
4966
+ const Ni = (e) => is(e).length;
4967
+ function ua(e, i = " ") {
4932
4968
  let s = "";
4933
4969
  const o = new Array(e[0].length).fill(0);
4934
4970
  for (const c of e)
4935
4971
  for (const [r, t] of c.entries()) {
4936
- const n = Ti(t);
4972
+ const n = Ni(t);
4937
4973
  n > o[r] && (o[r] = n);
4938
4974
  }
4939
4975
  for (const [c, r] of e.entries()) {
4940
4976
  for (const [t, n] of r.entries()) {
4941
4977
  t > 0 && (s += i);
4942
- const u = " ".repeat(o[t] - Ti(n));
4978
+ const u = " ".repeat(o[t] - Ni(n));
4943
4979
  s += n + (t === r.length - 1 ? "" : u);
4944
4980
  }
4945
4981
  c < e.length - 1 && (s += `
@@ -4947,25 +4983,25 @@ function ia(e, i = " ") {
4947
4983
  }
4948
4984
  return s;
4949
4985
  }
4950
- function sa(e) {
4951
- return /\/v[0-9]$/.test(e) && (e = Ar(e)), e;
4986
+ function ca(e) {
4987
+ return /\/v[0-9]$/.test(e) && (e = _r(e)), e;
4952
4988
  }
4953
- function oa(e) {
4989
+ function la(e) {
4954
4990
  const i = [["NAME", "OLD", "NEW", "AGE", "INFO"]], s = /* @__PURE__ */ new Set();
4955
4991
  for (const o of Object.keys(e))
4956
4992
  for (const [c, r] of Object.entries(e[o])) {
4957
4993
  const t = c.split(fe)[1], n = `${o}|${t}`;
4958
4994
  s.has(n) || (s.add(n), i.push([
4959
- o === "go" ? sa(t) : t,
4960
- xi(r.old, r.new, Dr),
4961
- xi(r.new, r.old, jr),
4995
+ o === "go" ? ca(t) : t,
4996
+ Ii(r.old, r.new, Ue),
4997
+ Ii(r.new, r.old, jr),
4962
4998
  r.age || "",
4963
4999
  r.info || ""
4964
5000
  ]));
4965
5001
  }
4966
- return ia(i);
5002
+ return ua(i);
4967
5003
  }
4968
- function aa(e, i) {
5004
+ function fa(e, i) {
4969
5005
  let s = e;
4970
5006
  for (const o of Object.keys(i)) {
4971
5007
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old, t = new RegExp(`"${_e(c)}": *"${_e(r)}"`, "g");
@@ -4973,7 +5009,7 @@ function aa(e, i) {
4973
5009
  }
4974
5010
  return s;
4975
5011
  }
4976
- function ua(e, i) {
5012
+ function pa(e, i) {
4977
5013
  let s = e;
4978
5014
  for (const o of Object.keys(i)) {
4979
5015
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old;
@@ -4989,19 +5025,19 @@ function ua(e, i) {
4989
5025
  }
4990
5026
  return s;
4991
5027
  }
4992
- function ca(e, i, s) {
4993
- let o = e.replace(Mo, i);
5028
+ function ha(e, i, s) {
5029
+ let o = e.replace(Vo, i);
4994
5030
  if (s && s !== e && /^[\^~]/.test(o)) {
4995
5031
  const c = s.substring(1).split("."), r = o.substring(1).split(".");
4996
5032
  c.length !== r.length && (o = `${o[0]}${r.slice(0, c.length).join(".")}`);
4997
5033
  }
4998
5034
  return o;
4999
5035
  }
5000
- function yr(e) {
5036
+ function Er(e) {
5001
5037
  const i = oe.parse(e);
5002
5038
  return i ? !!i.prerelease.length : !1;
5003
5039
  }
5004
- function Vi(e) {
5040
+ function Ki(e) {
5005
5041
  return /[0-9]+\.[0-9]+\.[0-9]+-.+/.test(e);
5006
5042
  }
5007
5043
  function Le(e) {
@@ -5011,9 +5047,9 @@ function Le(e) {
5011
5047
  return "";
5012
5048
  }
5013
5049
  }
5014
- function la(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
5050
+ function da(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
5015
5051
  let n = Le(s), u = 0;
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"));
5052
+ 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"));
5017
5053
  for (const a of i) {
5018
5054
  const l = oe.parse(a);
5019
5055
  if (!l || !n || l.prerelease.length && (!c || r)) continue;
@@ -5028,43 +5064,43 @@ function la(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }
5028
5064
  }
5029
5065
  return n || null;
5030
5066
  }
5031
- function fa(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
5067
+ function ga(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
5032
5068
  if (i === "go")
5033
5069
  return oe.gt(Oe(e.Version), Oe(s)) ? e.Version : null;
5034
5070
  if (s === "*" || s.includes("||")) return null;
5035
5071
  let n = [];
5036
5072
  i === "pypi" ? n = Object.keys(e.releases).filter((a) => oe.valid(a)) : i === "npm" && (n = Object.keys(e.versions).filter((a) => oe.valid(a)));
5037
- const u = la(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
5073
+ const u = da(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
5038
5074
  if (!u) return null;
5039
5075
  if (o)
5040
5076
  return u;
5041
5077
  {
5042
5078
  let a = "", l = "";
5043
5079
  i === "pypi" ? (l = e.info.version, a = Le(e.info.version)) : a = e["dist-tags"].latest;
5044
- const d = Le(s), f = Vi(s), h = yr(u), g = yr(a), y = oe.gt(u, d);
5080
+ const d = Le(s), f = Ki(s), h = Er(u), g = Er(a), y = oe.gt(u, d);
5045
5081
  if (!c && r || f && h || c && !y && f && !h || f && !h && y)
5046
5082
  return u;
5047
5083
  if (f && !h && !y)
5048
5084
  return null;
5049
5085
  const p = oe.diff(d, 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;
5086
+ return p && p !== "prerelease" && !t.has(p.replace(/^pre/, "")) || c && Er(a) ? u : oe.lt(a, d) && !g ? Ai === !0 || we(e.name, Ai) ? a : null : l || a;
5051
5087
  }
5052
5088
  }
5053
- function Xi(e) {
5089
+ function Wi(e) {
5054
5090
  const i = {}, s = be.UPDATES_GITHUB_API_TOKEN || be.GITHUB_API_TOKEN || be.GH_TOKEN || be.HOMEBREW_GITHUB_API_TOKEN;
5055
- return s && (i.headers = { Authorization: `Bearer ${s}` }), Je(e, i);
5091
+ return s && (i.headers = { Authorization: `Bearer ${s}` }), Ze(e, i);
5056
5092
  }
5057
- async function pa(e, i) {
5058
- const s = `${Mi}/repos/${e}/${i}/commits`, o = await Xi(s);
5093
+ async function ma(e, i) {
5094
+ const s = `${ki}/repos/${e}/${i}/commits`, o = await Wi(s);
5059
5095
  if (!o?.ok) return { hash: "", commit: {} };
5060
5096
  const c = await o.json(), { sha: r, commit: t } = c[0];
5061
5097
  return { hash: r, commit: t };
5062
5098
  }
5063
- async function ha(e, i) {
5064
- const s = await Xi(`${Mi}/repos/${e}/${i}/git/refs/tags`);
5099
+ async function va(e, i) {
5100
+ const s = await Wi(`${ki}/repos/${e}/${i}/git/refs/tags`);
5065
5101
  return s?.ok ? (await s.json()).map((r) => r.ref.replace(/^refs\/tags\//, "")) : [];
5066
5102
  }
5067
- function da(e, i, s) {
5103
+ function ya(e, i, s) {
5068
5104
  const o = Oe(i);
5069
5105
  if (oe.valid(o))
5070
5106
  if (s) {
@@ -5084,11 +5120,11 @@ function da(e, i, s) {
5084
5120
  return c;
5085
5121
  }
5086
5122
  }
5087
- async function ga(e, i, s) {
5088
- const o = i.old.replace(Ho, ""), [c, r, t, n] = Go.exec(o) || [];
5123
+ async function Ea(e, i, s) {
5124
+ const o = i.old.replace(Uo, ""), [c, r, t, n] = ko.exec(o) || [];
5089
5125
  if (!(!r || !t || !n))
5090
- if ($r.test(n)) {
5091
- const { hash: u, commit: a } = await pa(r, t);
5126
+ if (Sr.test(n)) {
5127
+ const { hash: u, commit: a } = await ma(r, t);
5092
5128
  if (!u) return;
5093
5129
  const l = a?.committer?.date ?? a?.author?.date, d = u.substring(0, n.length);
5094
5130
  if (n !== d) {
@@ -5096,48 +5132,48 @@ async function ga(e, i, s) {
5096
5132
  return { key: e, newRange: f, user: r, repo: t, oldRef: n, newRef: d, newDate: l };
5097
5133
  }
5098
5134
  } else {
5099
- const u = await ha(r, t), a = da(u, n, s);
5135
+ const u = await va(r, t), a = ya(u, n, s);
5100
5136
  if (a)
5101
5137
  return { key: e, newRange: a, user: r, repo: t, oldRef: n, newRef: a };
5102
5138
  }
5103
5139
  }
5104
- function ma(e) {
5140
+ function Ra(e) {
5105
5141
  return e.replace(/-.*/, "");
5106
5142
  }
5107
- function Ii(e) {
5108
- const i = e.match(wi);
5109
- return i?.length !== 1 ? e : e.replace(wi, Le(i[0]));
5143
+ function Li(e) {
5144
+ const i = e.match($i);
5145
+ return i?.length !== 1 ? e : e.replace($i, Le(i[0]));
5110
5146
  }
5111
5147
  function ve(e) {
5112
5148
  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;
5113
5149
  }
5114
- function va(e) {
5150
+ function wa(e) {
5115
5151
  return Array.from(e.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g), (i) => i[0]);
5116
5152
  }
5117
- function ya(e) {
5153
+ function $a(e) {
5118
5154
  return Array.from(e.matchAll(/(----BEGIN [^]+?PRIVATE KEY----)/g), (i) => i[0]);
5119
5155
  }
5120
- function br(e, i, s) {
5156
+ function Ar(e, i, s) {
5121
5157
  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 });
5122
5158
  }
5123
5159
  function De(e) {
5124
5160
  if (e instanceof Set) {
5125
5161
  const i = /* @__PURE__ */ new Set();
5126
5162
  for (const s of e)
5127
- i.add(br(s, !0, !1));
5163
+ i.add(Ar(s, !0, !1));
5128
5164
  return i;
5129
5165
  }
5130
5166
  return e;
5131
5167
  }
5132
- function Ni(e, i) {
5168
+ function Ci(e, i) {
5133
5169
  const s = /* @__PURE__ */ new Set();
5134
5170
  for (const o of e || [])
5135
- s.add(br(o, !0, !0));
5171
+ s.add(Ar(o, !0, !0));
5136
5172
  for (const o of i || [])
5137
- s.add(br(o, !1, !0));
5173
+ s.add(Ar(o, !1, !0));
5138
5174
  return s;
5139
5175
  }
5140
- function Er(e, i, s, o) {
5176
+ function Rr(e, i, s, o) {
5141
5177
  if (i === "pypi" && e === "python") return !1;
5142
5178
  if (!s.size && !o.size) return !0;
5143
5179
  for (const c of o)
@@ -5146,7 +5182,7 @@ function Er(e, i, s, o) {
5146
5182
  if (c.test(e)) return !0;
5147
5183
  return !s.size;
5148
5184
  }
5149
- function Ea(e) {
5185
+ function Sa(e) {
5150
5186
  const i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
5151
5187
  if (e)
5152
5188
  for (const o of e) {
@@ -5160,8 +5196,8 @@ function Ea(e) {
5160
5196
  const r = Be(o);
5161
5197
  i.add(r), s.add(r);
5162
5198
  } else if (c?.isDirectory())
5163
- for (const r of Object.keys(Sr)) {
5164
- const t = _r(o, r);
5199
+ for (const r of Object.keys(br)) {
5200
+ const t = Or(o, r);
5165
5201
  let n = null;
5166
5202
  try {
5167
5203
  n = Gr(t);
@@ -5173,26 +5209,26 @@ function Ea(e) {
5173
5209
  throw new Error(`${o} is neither a file nor directory`);
5174
5210
  }
5175
5211
  else
5176
- for (const o of Object.keys(Sr)) {
5177
- const c = ki(o, Qi());
5212
+ for (const o of Object.keys(br)) {
5213
+ const c = Xi(o, Zi());
5178
5214
  c && i.add(Be(c));
5179
5215
  }
5180
5216
  return [i, s];
5181
5217
  }
5182
- async function Ra(e) {
5218
+ async function ba(e) {
5183
5219
  const i = [];
5184
5220
  for (const o of ["", ".config/"])
5185
5221
  for (const c of ["js", "ts", "mjs", "mts"])
5186
5222
  i.push(`${o}updates${o ? "" : ".config"}.${c}`);
5187
5223
  let s = {};
5188
5224
  try {
5189
- ({ default: s } = await Promise.any(i.map((o) => import(_r(e, ...o.split("/"))))));
5225
+ ({ default: s } = await Promise.any(i.map((o) => import(Or(e, ...o.split("/"))))));
5190
5226
  } catch {
5191
5227
  }
5192
5228
  return s;
5193
5229
  }
5194
- async function wa() {
5195
- for (const p of [Br, Wi])
5230
+ async function Aa() {
5231
+ for (const p of [Br, Yi])
5196
5232
  p?._handle?.setBlocking?.(!0);
5197
5233
  const e = 96, i = typeof Z.sockets == "number" ? Z.sockets : e, { help: s, version: o, file: c, types: r, update: t } = Z;
5198
5234
  s && (Br.write(`usage: updates [options]
@@ -5227,31 +5263,31 @@ async function wa() {
5227
5263
  $ updates -e '/^react-(dom)?/'
5228
5264
  $ updates -f package.json
5229
5265
  $ updates -f pyproject.toml
5230
- `), await Ne()), o && (console.info(Gi), await Ne());
5266
+ `), await Ne()), o && (console.info(Ui), await Ne());
5231
5267
  const n = {}, u = {}, a = {}, l = {};
5232
5268
  let d = 0;
5233
- const [f, h] = Ea(ve(c));
5269
+ const [f, h] = Sa(ve(c));
5234
5270
  for (const p of f) {
5235
- const E = Ar(Be(p)), A = He(p), v = Sr[A];
5236
- if (!ko.has(v) && !h.has(p)) continue;
5271
+ const E = _r(Be(p)), A = He(p), v = br[A];
5272
+ if (!Ko.has(v) && !h.has(p)) continue;
5237
5273
  l[v] = p, n[v] || (n[v] = {});
5238
- const m = await Ra(E);
5274
+ const m = await ba(E);
5239
5275
  let b = [], $ = [];
5240
5276
  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 };
5277
+ const x = Ci(b, m?.include ?? []), F = Ci($, m?.exclude ?? []), G = {}, M = Ts("npm", { registry: "https://registry.npmjs.org" }) || {}, T = { npmrc: M, recursive: !0 };
5242
5278
  if (v === "npm") {
5243
5279
  M["strict-ssl"] === !1 && (G.rejectUnauthorized = !1);
5244
5280
  for (const O of ["cert", "ca", "key"]) {
5245
- const I = O === "key" ? ya : va;
5281
+ const I = O === "key" ? $a : wa;
5246
5282
  let 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);
5283
+ 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" ? [...ps, ...D] : D);
5248
5284
  }
5249
5285
  }
5250
5286
  let _ = [];
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"]);
5287
+ r ? _ = Array.isArray(r) ? r : Ge(r) : "types" in m && Array.isArray(m.types) ? _ = m.types : v === "npm" ? _ = Ho : v === "pypi" ? _ = [...Mo, ...Go] : v === "go" && (_ = [...wi]);
5252
5288
  let L = {};
5253
5289
  if (v === "go")
5254
- a[v] = ns("go", [
5290
+ a[v] = ss("go", [
5255
5291
  "list",
5256
5292
  "-m",
5257
5293
  "-f",
@@ -5268,10 +5304,10 @@ async function wa() {
5268
5304
  if (v === "npm")
5269
5305
  L = JSON.parse(a[v]);
5270
5306
  else if (v === "pypi")
5271
- L = io(a[v]);
5307
+ L = ao(a[v]);
5272
5308
  else {
5273
5309
  L.deps = {};
5274
- for (const O of Jo(a[v])) {
5310
+ for (const O of ra(a[v])) {
5275
5311
  const [I, D] = O.split("@");
5276
5312
  D && (L.deps[I] = D);
5277
5313
  }
@@ -5281,21 +5317,21 @@ async function wa() {
5281
5317
  }
5282
5318
  for (const O of _) {
5283
5319
  let 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))
5286
- Er(D, v, x, F) && (n[v][`${O}${fe}${D}`] = {
5287
- old: Ii(C),
5320
+ if (v === "npm" || v === "go" ? I = L[O] || {} : I = Qo(L, O) || {}, Array.isArray(I) && v === "pypi")
5321
+ for (const { name: D, version: C } of Bo(I))
5322
+ Rr(D, v, x, F) && (n[v][`${O}${fe}${D}`] = {
5323
+ old: Li(C),
5288
5324
  oldOriginal: C
5289
5325
  });
5290
5326
  else
5291
5327
  for (const [D, C] of Object.entries(I))
5292
- v !== "go" && oe.validRange(C) && Er(D, v, x, F) ? n[v][`${O}${fe}${D}`] = {
5293
- old: Ii(C),
5328
+ v !== "go" && oe.validRange(C) && Rr(D, v, x, F) ? n[v][`${O}${fe}${D}`] = {
5329
+ old: Li(C),
5294
5330
  oldOriginal: C
5295
- } : v === "npm" && Er(D, v, x, F) ? u[`${O}${fe}${D}`] = {
5331
+ } : v === "npm" && Rr(D, v, x, F) ? u[`${O}${fe}${D}`] = {
5296
5332
  old: C
5297
5333
  } : v === "go" && (n[v][`${O}${fe}${D}`] = {
5298
- old: ma(C),
5334
+ old: Ra(C),
5299
5335
  oldOriginal: C
5300
5336
  });
5301
5337
  }
@@ -5305,21 +5341,21 @@ async function wa() {
5305
5341
  const H = await Xr(Object.keys(n[v]).map((O) => async () => {
5306
5342
  const [I, D] = O.split(fe);
5307
5343
  if (v === "npm")
5308
- return Yo(D, I, B, G, T, M);
5344
+ return ea(D, I, B, G, T, M);
5309
5345
  if (v === "pypi")
5310
- return Qo(D, I, G);
5346
+ return ta(D, I, G);
5311
5347
  {
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];
5348
+ let C = await Fr(D, "latest", G, Array.from(Vi));
5349
+ const w = await na(D, G);
5350
+ return w && C && oe.gt(w.Version.substring(1), C.Version.substring(1)) && (C = w), [C, wi[0], null, D];
5315
5351
  }
5316
5352
  }), { concurrency: i });
5317
5353
  for (const [O, I, D, C] of H) {
5318
5354
  if (O?.error) throw new Error(O.error);
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);
5355
+ const w = typeof Se == "boolean" ? Se : we(O.name, Se), X = typeof vr == "boolean" ? vr : we(O.name, vr), k = typeof yr == "boolean" ? yr : we(O.name, yr);
5320
5356
  let ne;
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, {
5357
+ Si === !0 || we(O.name, Si) ? ne = /* @__PURE__ */ new Set(["patch"]) : bi === !0 || we(O.name, bi) ? ne = /* @__PURE__ */ new Set(["patch", "minor"]) : ne = /* @__PURE__ */ new Set(["patch", "minor", "major"]);
5358
+ const S = `${I}${fe}${C}`, R = n[v][S].old, V = n[v][S].oldOriginal, N = ga(O, {
5323
5359
  usePre: X,
5324
5360
  useRel: k,
5325
5361
  useGreatest: w,
@@ -5328,10 +5364,10 @@ async function wa() {
5328
5364
  mode: v
5329
5365
  });
5330
5366
  let U = "";
5331
- if (["go", "pypi"].includes(v) && N ? U = N : N && (U = ca(R, N, V)), !N || V && V === U)
5367
+ if (["go", "pypi"].includes(v) && N ? U = N : N && (U = ha(R, N, V)), !N || V && V === U)
5332
5368
  delete n[v][S];
5333
5369
  else {
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}`;
5370
+ n[v][S].new = U, v === "npm" ? n[v][S].info = xi(O?.versions?.[N], D, O.name) : v === "pypi" ? n[v][S].info = xi(O, D, O.info.name) : n[v][S].info = O?.Origin?.URL ?? `https://${C}`;
5335
5371
  let Q = "";
5336
5372
  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 }));
5337
5373
  }
@@ -5339,33 +5375,33 @@ async function wa() {
5339
5375
  if (Object.keys(u).length) {
5340
5376
  const O = (await Xr(Object.entries(u).map(([I, D]) => () => {
5341
5377
  const C = I.split(fe)[1], w = typeof Se == "boolean" ? Se : we(C, Se);
5342
- return ga(I, D, w);
5378
+ return Ea(I, D, w);
5343
5379
  }), { concurrency: i })).filter((I) => I !== void 0);
5344
5380
  for (const I of O) {
5345
5381
  const { key: D, newRange: C, user: w, repo: X, oldRef: k, newRef: ne, newDate: S } = I;
5346
5382
  n[v][D] = {
5347
5383
  old: u[D].old,
5348
5384
  new: C,
5349
- oldPrint: $r.test(k) ? k.substring(0, 7) : k,
5350
- newPrint: $r.test(ne) ? ne.substring(0, 7) : ne,
5385
+ oldPrint: Sr.test(k) ? k.substring(0, 7) : k,
5386
+ newPrint: Sr.test(ne) ? ne.substring(0, 7) : ne,
5351
5387
  info: `https://github.com/${w}/${X}`,
5352
5388
  ...S ? { age: Ri(S, { noAffix: !0 }) } : {}
5353
5389
  };
5354
5390
  }
5355
5391
  }
5356
5392
  }
5357
- d === 0 && Oi("No dependencies found, nothing to do.");
5393
+ d === 0 && Ti("No dependencies found, nothing to do.");
5358
5394
  let g = 0;
5359
5395
  for (const p of Object.keys(n))
5360
5396
  g += Object.keys(n[p]).length;
5361
- g || Oi("All dependencies are up to date.");
5362
- const y = ra(n);
5397
+ g || Ti("All dependencies are up to date.");
5398
+ const y = oa(n);
5363
5399
  if (t) {
5364
5400
  for (const p of Object.keys(n))
5365
5401
  if (Object.keys(n[p]).length) {
5366
5402
  try {
5367
- const E = p === "npm" ? aa : ua;
5368
- na(l[p], E(a[p], n[p]));
5403
+ const E = p === "npm" ? fa : pa;
5404
+ aa(l[p], E(a[p], n[p]));
5369
5405
  } catch (E) {
5370
5406
  throw new Error(`Error writing ${He(l[p])}: ${E.message}`);
5371
5407
  }
@@ -5375,7 +5411,7 @@ async function wa() {
5375
5411
  await Ne(void 0, y);
5376
5412
  }
5377
5413
  try {
5378
- await wa();
5414
+ await Aa();
5379
5415
  } catch (e) {
5380
5416
  await Ne(e);
5381
5417
  }