npm-check-updates 22.2.6 → 22.2.7

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/build/index.js CHANGED
@@ -1296,7 +1296,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : n.gray("Enter someth
1296
1296
  t.exports = be();
1297
1297
  })))(), 1), Se = {
1298
1298
  name: "npm-check-updates",
1299
- version: "22.2.6",
1299
+ version: "22.2.7",
1300
1300
  author: "Tomas Junnonen <tomas1@gmail.com>",
1301
1301
  license: "Apache-2.0",
1302
1302
  contributors: ["Raine Revere (https://github.com/raineorshine)", "Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],
@@ -1417,7 +1417,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : n.gray("Enter someth
1417
1417
  "fp-and-or": "^1.0.2",
1418
1418
  globals: "^17.6.0",
1419
1419
  "hosted-git-info": "^9.0.3",
1420
- ini: "^7.0.0",
1420
+ ini: "^6.0.0",
1421
1421
  "jsonc-parser": "^3.3.1",
1422
1422
  jsonlines: "^0.1.1",
1423
1423
  lilconfig: "^3.1.3",
@@ -1450,28 +1450,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : n.gray("Enter someth
1450
1450
  yarn: "^1.22.22",
1451
1451
  zod: "^4.4.3"
1452
1452
  },
1453
- files: ["build", "!**/test/**"],
1454
- "lockfile-lint": {
1455
- "allowed-schemes": ["https:", "git+ssh:"],
1456
- "allowed-hosts": ["npm", "github.com"],
1457
- "empty-hostname": !1,
1458
- type: "npm ",
1459
- path: "package-lock.json"
1460
- },
1461
- mocha: {
1462
- "check-leaks": !0,
1463
- extension: ["test.ts"],
1464
- "node-option": [
1465
- "import=tsx",
1466
- "enable-source-maps",
1467
- "trace-deprecation",
1468
- "trace-warnings",
1469
- "no-warnings=TimeoutNaNWarning"
1470
- ],
1471
- timeout: 6e4,
1472
- recursive: !0,
1473
- exit: !0
1474
- }
1453
+ files: ["build", "!**/test/**"]
1475
1454
  }, Ce = /* @__PURE__ */ O(((e, t) => {
1476
1455
  var n = [], r = 0, i = (e, t) => {
1477
1456
  r >= t && n.push(e);
@@ -5186,7 +5165,7 @@ async function ri({ skippedByCooldown: e, pkgFile: t, options: n }) {
5186
5165
  for (let t of Object.values(e)) {
5187
5166
  let { name: e, version: n, currentVersion: r, fallbackVersion: s, time: c } = t;
5188
5167
  if (!er(r) || !n) continue;
5189
- let l = fr.includes(r[0]) ? r[0] : "", u = l + Jr(s ?? r), d = l + Jr(n || "");
5168
+ let l = fr.includes(r[0]) ? r[0] : "", u = l + Jr(s ?? r), d = l + Jr(n);
5190
5169
  i[e] = u, a[e] = wr(u, d), o[e] = c || "";
5191
5170
  }
5192
5171
  if (!Object.keys(i).length) return !1;
@@ -13897,7 +13876,7 @@ while (this[m](this[S]()));
13897
13876
  function S(e) {
13898
13877
  let t = E(e), n = new l({ objectMode: !0 });
13899
13878
  return Promise.resolve().then(async () => {
13900
- let { default: r } = await Promise.resolve().then(() => (Yx(), Kx));
13879
+ let { default: r } = await Promise.resolve().then(() => (qx(), Wx));
13901
13880
  return await r(await P(t), async (i) => {
13902
13881
  let a = u.join(t, i);
13903
13882
  await r(await P(a), async (t) => {
@@ -17861,7 +17840,7 @@ while (this[m](this[w]()) && this[b].length);
17861
17840
  }
17862
17841
  async function b(e, t) {
17863
17842
  t.log.silly("verify", "garbage collecting content");
17864
- let { default: n } = await Promise.resolve().then(() => (Yx(), Kx)), r = d.lsStream(e), o = /* @__PURE__ */ new Set();
17843
+ let { default: n } = await Promise.resolve().then(() => (qx(), Wx)), r = d.lsStream(e), o = /* @__PURE__ */ new Set();
17865
17844
  r.on("data", (e) => {
17866
17845
  if (t.filter && !t.filter(e)) return;
17867
17846
  let n = p.parse(e.integrity);
@@ -17916,7 +17895,7 @@ while (this[m](this[w]()) && this[b].length);
17916
17895
  }
17917
17896
  async function S(e, t) {
17918
17897
  t.log.silly("verify", "rebuilding index");
17919
- let { default: n } = await Promise.resolve().then(() => (Yx(), Kx)), r = await d.ls(e), i = {
17898
+ let { default: n } = await Promise.resolve().then(() => (qx(), Wx)), r = await d.ls(e), i = {
17920
17899
  missingContent: 0,
17921
17900
  rejectedEntries: 0,
17922
17901
  totalEntries: 0
@@ -22031,7 +22010,6 @@ var Eu = /* @__PURE__ */ k({
22031
22010
  if (i.write(e), l) throw l;
22032
22011
  if (o) break;
22033
22012
  }
22034
- if (l) throw l;
22035
22013
  return a;
22036
22014
  }
22037
22015
  } catch (a) {
@@ -29993,23 +29971,20 @@ var xy = {
29993
29971
  }, wy = (e) => (e ? typeof e == "string" ? e.split(",") : e : ki.dep.default).map((e) => Cy[e] || e);
29994
29972
  //#endregion
29995
29973
  //#region src/lib/upgradeJsonCatalogDependencies.ts
29996
- function Ty(e) {
29997
- return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
29998
- }
29999
- async function Ey(e, t, n) {
29974
+ async function Ty(e, t, n) {
30000
29975
  let r = await a.readFile(e, "utf-8");
30001
29976
  return Object.entries(n).filter(([e]) => t[e]).reduce((e, [n, r]) => {
30002
- let i = t[n], a = `("${Ty(n)}"\\s*:\\s*")(${Ty(i)})(")`, o = new RegExp(a, "g");
29977
+ let i = t[n], a = `("${or(n)}"\\s*:\\s*")(${or(i)})(")`, o = new RegExp(a, "g");
30003
29978
  return e.replace(o, `$1${r}$3`);
30004
29979
  }, r);
30005
29980
  }
30006
29981
  //#endregion
30007
29982
  //#region src/lib/upgradeYamlCatalogDependencies.ts
30008
- function Dy(e, { options: t, filePath: n }) {
29983
+ function Ey(e, { options: t, filePath: n }) {
30009
29984
  let r = e instanceof Error ? e.message : String(e), i = `Invalid YAML syntax${n ? ` in ${n}` : ""}. Unable to read catalog dependencies.\n${r}`;
30010
29985
  throw t && gp(t, i), Error(i);
30011
29986
  }
30012
- function Oy(e, t, { newName: n, newValue: r }) {
29987
+ function Dy(e, t, { newName: n, newValue: r }) {
30013
29988
  let i = t.slice(0, -1), a = t.at(-1), o = e.getIn(i);
30014
29989
  if (!o || !(0, Cf.isCollection)(o)) return !1;
30015
29990
  let s = o.items.find((e) => (0, Cf.isPair)(e) && (0, Cf.isScalar)(e.key) && e.key.value === a);
@@ -30020,19 +29995,19 @@ function Oy(e, t, { newName: n, newValue: r }) {
30020
29995
  }
30021
29996
  return !0;
30022
29997
  }
30023
- function ky({ fileContent: e, upgrade: t, options: n, filePath: r }) {
29998
+ function Oy({ fileContent: e, upgrade: t, options: n, filePath: r }) {
30024
29999
  let { path: i } = t;
30025
30000
  if (!(i.length > 1) && i[0] !== "catalog" && i[0] !== "catalogs") return null;
30026
30001
  let { newValue: a } = t, o, s;
30027
30002
  try {
30028
30003
  o = (0, Cf.parseDocument)(e, { keepSourceTokens: !0 });
30029
30004
  } catch (e) {
30030
- Dy(e, {
30005
+ Ey(e, {
30031
30006
  options: n,
30032
30007
  filePath: r
30033
30008
  });
30034
30009
  }
30035
- o.errors.length > 0 && Dy(o.errors[0], {
30010
+ o.errors.length > 0 && Ey(o.errors[0], {
30036
30011
  options: n,
30037
30012
  filePath: r
30038
30013
  });
@@ -30042,22 +30017,19 @@ function ky({ fileContent: e, upgrade: t, options: n, filePath: r }) {
30042
30017
  return null;
30043
30018
  }
30044
30019
  let c = s.workspaces && !Array.isArray(s.workspaces) ? s.workspaces : void 0;
30045
- return (i[0] === "catalog" ? s.catalog?.[i[1]] : i[0] === "catalogs" ? s.catalogs?.[i[1]]?.[i[2]] : i[0] === "workspaces" && i[1] === "catalog" ? c?.catalog?.[i[2]] : i[0] === "workspaces" && i[1] === "catalogs" ? c?.catalogs?.[i[2]]?.[i[3]] : void 0) === a ? e : Oy(o, i, {
30020
+ return (i[0] === "catalog" ? s.catalog?.[i[1]] : i[0] === "catalogs" ? s.catalogs?.[i[1]]?.[i[2]] : i[0] === "workspaces" && i[1] === "catalog" ? c?.catalog?.[i[2]] : i[0] === "workspaces" && i[1] === "catalogs" ? c?.catalogs?.[i[2]]?.[i[3]] : void 0) === a ? e : Dy(o, i, {
30046
30021
  newValue: a,
30047
30022
  newName: t.path.at(-1)
30048
30023
  }) ? Cf.CST.stringify(o.contents.srcToken) : null;
30049
30024
  }
30050
30025
  //#endregion
30051
30026
  //#region src/lib/upgradePackageData.ts
30052
- function Ay(e) {
30053
- return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
30054
- }
30055
- async function jy(e, n, r, i, o) {
30027
+ async function ky(e, n, r, i, o) {
30056
30028
  if (o) {
30057
30029
  let s = t.basename(o), c = t.extname(o);
30058
30030
  if (o.includes("#catalog")) {
30059
30031
  let e = o.replace("#catalog", "");
30060
- if (t.extname(e) === ".json") return Ey(e, n, r);
30032
+ if (t.extname(e) === ".json") return Ty(e, n, r);
30061
30033
  }
30062
30034
  if (s === "pnpm-workspace.yaml" || s === ".yarnrc.yml") {
30063
30035
  let e = await a.readFile(o, "utf-8"), t = Sy.parse((0, Cf.parseDocument)(e).toJSON()), n = [];
@@ -30095,7 +30067,7 @@ async function jy(e, n, r, i, o) {
30095
30067
  }
30096
30068
  let c = e;
30097
30069
  for (let e of n) {
30098
- let t = ky({
30070
+ let t = Oy({
30099
30071
  fileContent: c,
30100
30072
  upgrade: e,
30101
30073
  options: i,
@@ -30107,11 +30079,11 @@ async function jy(e, n, r, i, o) {
30107
30079
  }
30108
30080
  if (c === ".json") {
30109
30081
  let t = JSON.parse(e), i = t.catalog || t.catalogs, a = t.workspaces && !Array.isArray(t.workspaces) && (t.workspaces.catalog || t.workspaces.catalogs);
30110
- if (i || a) return Ey(o, n, r);
30082
+ if (i || a) return Ty(o, n, r);
30111
30083
  }
30112
30084
  }
30113
30085
  let s = [...wy(i.dep), "overrides"], c = RegExp(`"(${s.join("|")})"s*:[^}]*`, "g"), l = e.replace(c, (e) => Object.entries(r).reduce((e, [t]) => {
30114
- let i = `"${t}"\\s*:\\s*("|{\\s*"."\\s*:\\s*")(${Ay(n[t])})"`, a = new RegExp(i, "g");
30086
+ let i = `"${or(t)}"\\s*:\\s*("|{\\s*"."\\s*:\\s*")(${or(n[t])})"`, a = new RegExp(i, "g");
30115
30087
  return e.replace(a, (e, n) => `"${t}${n ? `": ${n}` : ": "}${r[t]}"`);
30116
30088
  }, e));
30117
30089
  if (s.includes("packageManager")) {
@@ -30125,7 +30097,7 @@ async function jy(e, n, r, i, o) {
30125
30097
  }
30126
30098
  //#endregion
30127
30099
  //#region src/lib/doctor.ts
30128
- var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30100
+ var Ay = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30129
30101
  n && console.log(J.blue([t.packageManager, ...e].join(" ")));
30130
30102
  let a = {
30131
30103
  cwd: t.cwd || process.cwd(),
@@ -30141,7 +30113,7 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30141
30113
  ...t.prefix ? { prefix: t.prefix } : null
30142
30114
  };
30143
30115
  return (t.packageManager === "pnpm" ? Bf : t.packageManager === "yarn" ? tp : t.packageManager === "bun" ? ed : Vu)(e, o, i, a);
30144
- }, Ny = async (e) => {
30116
+ }, jy = async (e) => {
30145
30117
  (e.packageData || e.packageFile) && (console.error("--packageData and --packageFile are not allowed with --doctor. You must execute \"ncu --doctor\" in a directory with a package file so it can install dependencies and test them."), process.exit(1));
30146
30118
  let t;
30147
30119
  try {
@@ -30150,9 +30122,9 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30150
30122
  console.error("Missing or invalid package.json"), process.exit(1);
30151
30123
  }
30152
30124
  return !e.doctorTest && !t.pkg.scripts?.test && (console.error("No npm \"test\" script defined. You must define a \"test\" script in the \"scripts\" section of your package.json to use --doctor."), process.exit(1)), t;
30153
- }, Py = async (e, t) => {
30154
- await Rn();
30155
- let n = t.packageManager === "yarn" ? "yarn.lock" : t.packageManager === "pnpm" ? "pnpm-lock.yaml" : t.packageManager === "bun" ? "bun.lock" : "package-lock.json", { pkg: r, pkgFile: i } = await Ny(t), o = {
30125
+ }, My = async (e, t) => {
30126
+ Rn();
30127
+ let n = t.packageManager === "yarn" ? "yarn.lock" : t.packageManager === "pnpm" ? "pnpm-lock.yaml" : t.packageManager === "bun" ? "bun.lock" : "package-lock.json", { pkg: r, pkgFile: i } = await jy(t), o = {
30156
30128
  ...r.dependencies,
30157
30129
  ...r.devDependencies,
30158
30130
  ...r.optionalDependencies
@@ -30160,7 +30132,7 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30160
30132
  if (t.doctorInstall) {
30161
30133
  let [e, ...n] = t.doctorInstall.split(" ");
30162
30134
  console.log(J.blue(t.doctorInstall)), await (0, Xi.default)(e, n);
30163
- } else await My(["install"], { packageManager: t.packageManager }, !0);
30135
+ } else await Ay(["install"], { packageManager: t.packageManager }, !0);
30164
30136
  }, c = async () => {
30165
30137
  let e = {
30166
30138
  stderr: (e) => {
@@ -30175,7 +30147,7 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30175
30147
  for (let e of n) r = [...r, e[2] || e[1] || e[0]];
30176
30148
  let [i, ...a] = r;
30177
30149
  console.log(J.blue(t.doctorTest)), await (0, Xi.default)(i, a, e);
30178
- } else await My(["run", "test"], { packageManager: t.packageManager }, !0, { spawnPleaseOptions: e });
30150
+ } else await Ay(["run", "test"], { packageManager: t.packageManager }, !0, { spawnPleaseOptions: e });
30179
30151
  };
30180
30152
  console.log("Running tests before upgrading"), await s();
30181
30153
  let l = "";
@@ -30225,12 +30197,12 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30225
30197
  }
30226
30198
  let f, p;
30227
30199
  for ([f, p] of Object.entries(u)) try {
30228
- if (await My([...t.packageManager === "yarn" || t.packageManager === "pnpm" || t.packageManager === "bun" ? ["add"] : ["install", "--no-save"], `${f}@${p}`], { packageManager: t.packageManager }, !0), r.scripts?.prepare) try {
30229
- await My(["run", "prepare"], { packageManager: t.packageManager }, !0);
30200
+ if (await Ay([...t.packageManager === "yarn" || t.packageManager === "pnpm" || t.packageManager === "bun" ? ["add"] : ["install", "--no-save"], `${f}@${p}`], { packageManager: t.packageManager }, !0), r.scripts?.prepare) try {
30201
+ await Ay(["run", "prepare"], { packageManager: t.packageManager }, !0);
30230
30202
  } catch (e) {
30231
30203
  throw console.error(J.red("Prepare script failed")), e;
30232
30204
  }
30233
- await c(), console.log(` ${J.green("✓")} ${f} ${o[f]} → ${p}`), e = await jy(e, { [f]: o[f] }, { [f]: p }, t), l = await a.readFile(n, "utf-8");
30205
+ await c(), console.log(` ${J.green("✓")} ${f} ${o[f]} → ${p}`), e = await ky(e, { [f]: o[f] }, { [f]: p }, t), l = await a.readFile(n, "utf-8");
30234
30206
  } catch (r) {
30235
30207
  console.error(` ${J.red("✗")} ${f} ${o[f]} → ${p}\n`), console.error(J.red(r)), await a.writeFile(n, l), (t.packageManager === "yarn" || t.packageManager === "pnpm" || t.packageManager === "bun") && await a.writeFile("package.json", e);
30236
30208
  }
@@ -30239,7 +30211,7 @@ var My = (e, t, n, { spawnOptions: r, spawnPleaseOptions: i } = {}) => {
30239
30211
  };
30240
30212
  //#endregion
30241
30213
  //#region src/lib/findPackage.ts
30242
- async function Fy(e) {
30214
+ async function Ny(e) {
30243
30215
  let n, r = null, i = e.packageFile || "package.json";
30244
30216
  async function o(n, r) {
30245
30217
  if (n != null) {
@@ -30257,7 +30229,7 @@ async function Fy(e) {
30257
30229
  else if (e.stdin) {
30258
30230
  Y(e, "Waiting for package data on stdin", "verbose");
30259
30231
  let t = await b(process.stdin), a = t.trim().length > 0 ? t : null;
30260
- r = a || !i ? null : await iu(i), n = a || o(await r, i);
30232
+ r = a || !i ? null : await iu(i), n = a || o(r, i);
30261
30233
  } else r = i ? await iu(!e.packageFile && e.packageManager === "deno" ? ["deno.json", "deno.jsonc"] : i, { cwd: e.cwd || process.cwd() }) : null, n = o(r, i);
30262
30234
  return {
30263
30235
  pkgData: await n,
@@ -30267,7 +30239,7 @@ async function Fy(e) {
30267
30239
  }
30268
30240
  //#endregion
30269
30241
  //#region node_modules/fast-glob/out/utils/array.js
30270
- var Iy = /* @__PURE__ */ O(((e) => {
30242
+ var Py = /* @__PURE__ */ O(((e) => {
30271
30243
  Object.defineProperty(e, "__esModule", { value: !0 }), e.splitWhen = e.flatten = void 0;
30272
30244
  function t(e) {
30273
30245
  return e.reduce((e, t) => [].concat(e, t), []);
@@ -30279,13 +30251,13 @@ var Iy = /* @__PURE__ */ O(((e) => {
30279
30251
  return n;
30280
30252
  }
30281
30253
  e.splitWhen = n;
30282
- })), Ly = /* @__PURE__ */ O(((e) => {
30254
+ })), Fy = /* @__PURE__ */ O(((e) => {
30283
30255
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEnoentCodeError = void 0;
30284
30256
  function t(e) {
30285
30257
  return e.code === "ENOENT";
30286
30258
  }
30287
30259
  e.isEnoentCodeError = t;
30288
- })), Ry = /* @__PURE__ */ O(((e) => {
30260
+ })), Iy = /* @__PURE__ */ O(((e) => {
30289
30261
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createDirentFromStats = void 0;
30290
30262
  var t = class {
30291
30263
  constructor(e, t) {
@@ -30296,7 +30268,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
30296
30268
  return new t(e, n);
30297
30269
  }
30298
30270
  e.createDirentFromStats = n;
30299
- })), zy = /* @__PURE__ */ O(((e) => {
30271
+ })), Ly = /* @__PURE__ */ O(((e) => {
30300
30272
  Object.defineProperty(e, "__esModule", { value: !0 }), e.convertPosixPathToPattern = e.convertWindowsPathToPattern = e.convertPathToPattern = e.escapePosixPath = e.escapeWindowsPath = e.escape = e.removeLeadingDotSegment = e.makeAbsolute = e.unixify = void 0;
30301
30273
  var t = N("os"), n = N("path"), r = t.platform() === "win32", i = 2, a = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, o = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, s = /^\\\\([.?])/, c = /\\(?![!()+@[\]{}])/g;
30302
30274
  function l(e) {
@@ -30331,7 +30303,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
30331
30303
  return p(e);
30332
30304
  }
30333
30305
  e.convertPosixPathToPattern = h;
30334
- })), By = /* @__PURE__ */ O(((e, t) => {
30306
+ })), Ry = /* @__PURE__ */ O(((e, t) => {
30335
30307
  t.exports = function(e) {
30336
30308
  if (typeof e != "string" || e === "") return !1;
30337
30309
  for (var t; t = /(\\).|([@?!+*]\(.*\))/g.exec(e);) {
@@ -30340,8 +30312,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30340
30312
  }
30341
30313
  return !1;
30342
30314
  };
30343
- })), Vy = /* @__PURE__ */ O(((e, t) => {
30344
- var n = By(), r = {
30315
+ })), zy = /* @__PURE__ */ O(((e, t) => {
30316
+ var n = Ry(), r = {
30345
30317
  "{": "}",
30346
30318
  "(": ")",
30347
30319
  "[": "]"
@@ -30384,8 +30356,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30384
30356
  var r = i;
30385
30357
  return t && t.strict === !1 && (r = a), r(e);
30386
30358
  };
30387
- })), Hy = /* @__PURE__ */ O(((e, t) => {
30388
- var n = Vy(), r = N("path").posix.dirname, i = N("os").platform() === "win32", a = "/", o = /\\/g, s = /[\{\[].*[\}\]]$/, c = /(^|[^\\])([\{\[]|\([^\)]+$)/, l = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
30359
+ })), By = /* @__PURE__ */ O(((e, t) => {
30360
+ var n = zy(), r = N("path").posix.dirname, i = N("os").platform() === "win32", a = "/", o = /\\/g, s = /[\{\[].*[\}\]]$/, c = /(^|[^\\])([\{\[]|\([^\)]+$)/, l = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
30389
30361
  t.exports = function(e, t) {
30390
30362
  Object.assign({ flipBackslashes: !0 }, t).flipBackslashes && i && e.indexOf(a) < 0 && (e = e.replace(o, a)), s.test(e) && (e += a), e += "a";
30391
30363
  do
@@ -30393,7 +30365,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
30393
30365
  while (n(e) || c.test(e));
30394
30366
  return e.replace(l, "$1");
30395
30367
  };
30396
- })), Uy = /* @__PURE__ */ O(((e) => {
30368
+ })), Vy = /* @__PURE__ */ O(((e) => {
30397
30369
  e.isInteger = (e) => typeof e == "number" ? Number.isInteger(e) : typeof e == "string" && e.trim() !== "" ? Number.isInteger(Number(e)) : !1, e.find = (e, t) => e.nodes.find((e) => e.type === t), e.exceedsLimit = (t, n, r = 1, i) => i === !1 || !e.isInteger(t) || !e.isInteger(n) ? !1 : (Number(n) - Number(t)) / Number(r) >= i, e.escapeNode = (e, t = 0, n) => {
30398
30370
  let r = e.nodes[t];
30399
30371
  r && (n && r.type === n || r.type === "open" || r.type === "close") && r.escaped !== !0 && (r.value = "\\" + r.value, r.escaped = !0);
@@ -30411,8 +30383,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30411
30383
  };
30412
30384
  return n(e), t;
30413
30385
  };
30414
- })), Wy = /* @__PURE__ */ O(((e, t) => {
30415
- var n = Uy();
30386
+ })), Hy = /* @__PURE__ */ O(((e, t) => {
30387
+ var n = Vy();
30416
30388
  t.exports = (e, t = {}) => {
30417
30389
  let r = (e, i = {}) => {
30418
30390
  let a = t.escapeInvalid && n.isInvalidBrace(i), o = e.invalid === !0 && t.escapeInvalid === !0, s = "";
@@ -30423,12 +30395,12 @@ var Iy = /* @__PURE__ */ O(((e) => {
30423
30395
  };
30424
30396
  return r(e);
30425
30397
  };
30426
- })), Gy = /* @__PURE__ */ O(((e, t) => {
30398
+ })), Uy = /* @__PURE__ */ O(((e, t) => {
30427
30399
  t.exports = function(e) {
30428
30400
  return typeof e == "number" ? e - e === 0 : typeof e == "string" && e.trim() !== "" ? Number.isFinite ? Number.isFinite(+e) : isFinite(+e) : !1;
30429
30401
  };
30430
- })), Ky = /* @__PURE__ */ O(((e, t) => {
30431
- var n = Gy(), r = (e, t, a) => {
30402
+ })), Wy = /* @__PURE__ */ O(((e, t) => {
30403
+ var n = Uy(), r = (e, t, a) => {
30432
30404
  if (n(e) === !1) throw TypeError("toRegexRange: expected the first argument to be a number");
30433
30405
  if (t === void 0 || e === t) return String(e);
30434
30406
  if (n(t) === !1) throw TypeError("toRegexRange: expected the second argument to be a number.");
@@ -30537,8 +30509,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30537
30509
  }
30538
30510
  }
30539
30511
  r.cache = {}, r.clearCache = () => r.cache = {}, t.exports = r;
30540
- })), qy = /* @__PURE__ */ O(((e, t) => {
30541
- var n = N("util"), r = Ky(), i = (e) => typeof e == "object" && !!e && !Array.isArray(e), a = (e) => (t) => e === !0 ? Number(t) : String(t), o = (e) => typeof e == "number" || typeof e == "string" && e !== "", s = (e) => Number.isInteger(+e), c = (e) => {
30512
+ })), Gy = /* @__PURE__ */ O(((e, t) => {
30513
+ var n = N("util"), r = Wy(), i = (e) => typeof e == "object" && !!e && !Array.isArray(e), a = (e) => (t) => e === !0 ? Number(t) : String(t), o = (e) => typeof e == "number" || typeof e == "string" && e !== "", s = (e) => Number.isInteger(+e), c = (e) => {
30542
30514
  let t = `${e}`, n = -1;
30543
30515
  if (t[0] === "-" && (t = t.slice(1)), t === "0") return !1;
30544
30516
  for (; t[++n] === "0";);
@@ -30615,8 +30587,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30615
30587
  return a.capture === !0 && (a.wrap = !0), n = n || a.step || 1, s(n) ? s(e) && s(t) ? v(e, t, n, a) : y(e, t, Math.max(Math.abs(n), 1), a) : n != null && !i(n) ? _(n, a) : b(e, t, 1, n);
30616
30588
  };
30617
30589
  t.exports = b;
30618
- })), Jy = /* @__PURE__ */ O(((e, t) => {
30619
- var n = qy(), r = Uy();
30590
+ })), Ky = /* @__PURE__ */ O(((e, t) => {
30591
+ var n = Gy(), r = Vy();
30620
30592
  t.exports = (e, t = {}) => {
30621
30593
  let i = (e, a = {}) => {
30622
30594
  let o = r.isInvalidBrace(a), s = e.invalid === !0 && t.escapeInvalid === !0, c = o === !0 || s === !0, l = t.escapeInvalid === !0 ? "\\" : "", u = "";
@@ -30640,8 +30612,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30640
30612
  };
30641
30613
  return i(e);
30642
30614
  };
30643
- })), Yy = /* @__PURE__ */ O(((e, t) => {
30644
- var n = qy(), r = Wy(), i = Uy(), a = (e = "", t = "", n = !1) => {
30615
+ })), qy = /* @__PURE__ */ O(((e, t) => {
30616
+ var n = Gy(), r = Hy(), i = Vy(), a = (e = "", t = "", n = !1) => {
30645
30617
  let r = [];
30646
30618
  if (e = [].concat(e), t = [].concat(t), !t.length) return e;
30647
30619
  if (!e.length) return n ? i.flatten(t).map((e) => `{${e}}`) : t;
@@ -30691,7 +30663,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
30691
30663
  };
30692
30664
  return i.flatten(s(e));
30693
30665
  };
30694
- })), Xy = /* @__PURE__ */ O(((e, t) => {
30666
+ })), Jy = /* @__PURE__ */ O(((e, t) => {
30695
30667
  t.exports = {
30696
30668
  MAX_LENGTH: 1e4,
30697
30669
  CHAR_0: "0",
@@ -30739,8 +30711,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30739
30711
  CHAR_VERTICAL_LINE: "|",
30740
30712
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
30741
30713
  };
30742
- })), Zy = /* @__PURE__ */ O(((e, t) => {
30743
- var n = Wy(), { MAX_LENGTH: r, CHAR_BACKSLASH: i, CHAR_BACKTICK: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_LEFT_PARENTHESES: c, CHAR_RIGHT_PARENTHESES: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_RIGHT_CURLY_BRACE: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_RIGHT_SQUARE_BRACKET: p, CHAR_DOUBLE_QUOTE: m, CHAR_SINGLE_QUOTE: h, CHAR_NO_BREAK_SPACE: g, CHAR_ZERO_WIDTH_NOBREAK_SPACE: _ } = Xy();
30714
+ })), Yy = /* @__PURE__ */ O(((e, t) => {
30715
+ var n = Hy(), { MAX_LENGTH: r, CHAR_BACKSLASH: i, CHAR_BACKTICK: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_LEFT_PARENTHESES: c, CHAR_RIGHT_PARENTHESES: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_RIGHT_CURLY_BRACE: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_RIGHT_SQUARE_BRACKET: p, CHAR_DOUBLE_QUOTE: m, CHAR_SINGLE_QUOTE: h, CHAR_NO_BREAK_SPACE: g, CHAR_ZERO_WIDTH_NOBREAK_SPACE: _ } = Jy();
30744
30716
  t.exports = (e, t = {}) => {
30745
30717
  if (typeof e != "string") throw TypeError("Expected a string");
30746
30718
  let v = t || {}, y = typeof v.maxLength == "number" ? Math.min(r, v.maxLength) : r;
@@ -30924,8 +30896,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
30924
30896
  while (x.length > 0);
30925
30897
  return A({ type: "eos" }), b;
30926
30898
  };
30927
- })), Qy = /* @__PURE__ */ O(((e, t) => {
30928
- var n = Wy(), r = Jy(), i = Yy(), a = Zy(), o = (e, t = {}) => {
30899
+ })), Xy = /* @__PURE__ */ O(((e, t) => {
30900
+ var n = Hy(), r = Ky(), i = qy(), a = Yy(), o = (e, t = {}) => {
30929
30901
  let n = [];
30930
30902
  if (Array.isArray(e)) for (let r of e) {
30931
30903
  let e = o.create(r, t);
@@ -30939,7 +30911,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
30939
30911
  let n = i(e, t);
30940
30912
  return t.noempty === !0 && (n = n.filter(Boolean)), t.nodupes === !0 && (n = [...new Set(n)]), n;
30941
30913
  }, o.create = (e, t = {}) => e === "" || e.length < 3 ? [e] : t.expand === !0 ? o.expand(e, t) : o.compile(e, t), t.exports = o;
30942
- })), $y = /* @__PURE__ */ O(((e, t) => {
30914
+ })), Zy = /* @__PURE__ */ O(((e, t) => {
30943
30915
  var n = N("path"), r = "\\\\/", i = `[^${r}]`, a = 0, o = "\\.", s = "\\+", c = "\\?", l = "\\/", u = "(?=.)", d = "[^/]", f = `(?:${l}|$)`, p = `(?:^|${l})`, m = `${o}{1,2}${f}`, h = {
30944
30916
  DOT_LITERAL: o,
30945
30917
  PLUS_LITERAL: s,
@@ -31079,8 +31051,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
31079
31051
  return e === !0 ? g : h;
31080
31052
  }
31081
31053
  };
31082
- })), eb = /* @__PURE__ */ O(((e) => {
31083
- var t = N("path"), n = process.platform === "win32", { REGEX_BACKSLASH: r, REGEX_REMOVE_BACKSLASH: i, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: o } = $y();
31054
+ })), Qy = /* @__PURE__ */ O(((e) => {
31055
+ var t = N("path"), n = process.platform === "win32", { REGEX_BACKSLASH: r, REGEX_REMOVE_BACKSLASH: i, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: o } = Zy();
31084
31056
  e.isObject = (e) => typeof e == "object" && !!e && !Array.isArray(e), e.hasRegexChars = (e) => a.test(e), e.isRegexChar = (t) => t.length === 1 && e.hasRegexChars(t), e.escapeRegex = (e) => e.replace(o, "\\$1"), e.toPosixSlashes = (e) => e.replace(r, "/"), e.removeBackslashes = (e) => e.replace(i, (e) => e === "\\" ? "" : e), e.supportsLookbehinds = () => {
31085
31057
  let e = process.version.slice(1).split(".").map(Number);
31086
31058
  return e.length === 3 && e[0] >= 9 || e[0] === 8 && e[1] >= 10;
@@ -31094,8 +31066,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
31094
31066
  let r = `${n.contains ? "" : "^"}(?:${e})${n.contains ? "" : "$"}`;
31095
31067
  return t.negated === !0 && (r = `(?:^(?!${r}).*$)`), r;
31096
31068
  };
31097
- })), tb = /* @__PURE__ */ O(((e, t) => {
31098
- var n = eb(), { CHAR_ASTERISK: r, CHAR_AT: i, CHAR_BACKWARD_SLASH: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_PLUS: p, CHAR_QUESTION_MARK: m, CHAR_RIGHT_CURLY_BRACE: h, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: _ } = $y(), v = (e) => e === l || e === a, y = (e) => {
31069
+ })), $y = /* @__PURE__ */ O(((e, t) => {
31070
+ var n = Qy(), { CHAR_ASTERISK: r, CHAR_AT: i, CHAR_BACKWARD_SLASH: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_PLUS: p, CHAR_QUESTION_MARK: m, CHAR_RIGHT_CURLY_BRACE: h, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: _ } = Zy(), v = (e) => e === l || e === a, y = (e) => {
31099
31071
  e.isPrefix !== !0 && (e.depth = e.isGlobstar ? Infinity : 1);
31100
31072
  };
31101
31073
  t.exports = (e, t) => {
@@ -31244,8 +31216,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
31244
31216
  }
31245
31217
  return ie;
31246
31218
  };
31247
- })), nb = /* @__PURE__ */ O(((e, t) => {
31248
- var n = $y(), r = eb(), { MAX_LENGTH: i, POSIX_REGEX_SOURCE: a, REGEX_NON_SPECIAL_CHARS: o, REGEX_SPECIAL_CHARS_BACKREF: s, REPLACEMENTS: c } = n, l = (e, t) => {
31219
+ })), eb = /* @__PURE__ */ O(((e, t) => {
31220
+ var n = Zy(), r = Qy(), { MAX_LENGTH: i, POSIX_REGEX_SOURCE: a, REGEX_NON_SPECIAL_CHARS: o, REGEX_SPECIAL_CHARS_BACKREF: s, REPLACEMENTS: c } = n, l = (e, t) => {
31249
31221
  if (typeof t.expandRange == "function") return t.expandRange(...e, t);
31250
31222
  e.sort();
31251
31223
  let n = `[${e.join("-")}]`;
@@ -31899,8 +31871,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
31899
31871
  }, E = T(r.removePrefix(e, S));
31900
31872
  return E && a.strictSlashes !== !0 && (E += `${d}?`), E;
31901
31873
  }, t.exports = y;
31902
- })), rb = /* @__PURE__ */ O(((e, t) => {
31903
- var n = N("path"), r = tb(), i = nb(), a = eb(), o = $y(), s = (e) => e && typeof e == "object" && !Array.isArray(e), c = (e, t, n = !1) => {
31874
+ })), tb = /* @__PURE__ */ O(((e, t) => {
31875
+ var n = N("path"), r = $y(), i = eb(), a = Qy(), o = Zy(), s = (e) => e && typeof e == "object" && !Array.isArray(e), c = (e, t, n = !1) => {
31904
31876
  if (Array.isArray(e)) {
31905
31877
  let r = e.map((e) => c(e, t, n));
31906
31878
  return (e) => {
@@ -31980,10 +31952,10 @@ var Iy = /* @__PURE__ */ O(((e) => {
31980
31952
  return /$^/;
31981
31953
  }
31982
31954
  }, c.constants = o, t.exports = c;
31983
- })), ib = /* @__PURE__ */ O(((e, t) => {
31984
- t.exports = rb();
31985
- })), ab = /* @__PURE__ */ O(((e, t) => {
31986
- var n = N("util"), r = Qy(), i = ib(), a = eb(), o = (e) => e === "" || e === "./", s = (e) => {
31955
+ })), nb = /* @__PURE__ */ O(((e, t) => {
31956
+ t.exports = tb();
31957
+ })), rb = /* @__PURE__ */ O(((e, t) => {
31958
+ var n = N("util"), r = Xy(), i = nb(), a = Qy(), o = (e) => e === "" || e === "./", s = (e) => {
31987
31959
  let t = e.indexOf("{");
31988
31960
  return t > -1 && e.indexOf("}", t) > -1;
31989
31961
  }, c = (e, t, n) => {
@@ -32072,9 +32044,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32072
32044
  expand: !0
32073
32045
  });
32074
32046
  }, c.hasBraces = s, t.exports = c;
32075
- })), ob = /* @__PURE__ */ O(((e) => {
32047
+ })), ib = /* @__PURE__ */ O(((e) => {
32076
32048
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isAbsolute = e.partitionAbsoluteAndRelative = e.removeDuplicateSlashes = e.matchAny = e.convertPatternsToRe = e.makeRe = e.getPatternParts = e.expandBraceExpansion = e.expandPatternsWithBraceExpansion = e.isAffectDepthOfReadingPattern = e.endsWithSlashGlobStar = e.hasGlobStar = e.getBaseDirectory = e.isPatternRelatedToParentDirectory = e.getPatternsOutsideCurrentDirectory = e.getPatternsInsideCurrentDirectory = e.getPositivePatterns = e.getNegativePatterns = e.isPositivePattern = e.isNegativePattern = e.convertToNegativePattern = e.convertToPositivePattern = e.isDynamicPattern = e.isStaticPattern = void 0;
32077
- var t = N("path"), n = Hy(), r = ab(), i = "**", a = "\\", o = /[*?]|^!/, s = /\[[^[]*]/, c = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, l = /[!*+?@]\([^(]*\)/, u = /,|\.\./, d = /(?!^)\/{2,}/g;
32049
+ var t = N("path"), n = By(), r = rb(), i = "**", a = "\\", o = /[*?]|^!/, s = /\[[^[]*]/, c = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, l = /[!*+?@]\([^(]*\)/, u = /,|\.\./, d = /(?!^)\/{2,}/g;
32078
32050
  function f(e, t = {}) {
32079
32051
  return !p(e, t);
32080
32052
  }
@@ -32188,7 +32160,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32188
32160
  return t.isAbsolute(e);
32189
32161
  }
32190
32162
  e.isAbsolute = I;
32191
- })), sb = /* @__PURE__ */ O(((e, t) => {
32163
+ })), ab = /* @__PURE__ */ O(((e, t) => {
32192
32164
  var n = N("stream").PassThrough, r = Array.prototype.slice;
32193
32165
  t.exports = i;
32194
32166
  function i() {
@@ -32242,9 +32214,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32242
32214
  }
32243
32215
  return e;
32244
32216
  }
32245
- })), cb = /* @__PURE__ */ O(((e) => {
32217
+ })), ob = /* @__PURE__ */ O(((e) => {
32246
32218
  Object.defineProperty(e, "__esModule", { value: !0 }), e.merge = void 0;
32247
- var t = sb();
32219
+ var t = ab();
32248
32220
  function n(e) {
32249
32221
  let n = t(e);
32250
32222
  return e.forEach((e) => {
@@ -32255,7 +32227,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32255
32227
  function r(e) {
32256
32228
  e.forEach((e) => e.emit("close"));
32257
32229
  }
32258
- })), lb = /* @__PURE__ */ O(((e) => {
32230
+ })), sb = /* @__PURE__ */ O(((e) => {
32259
32231
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEmpty = e.isString = void 0;
32260
32232
  function t(e) {
32261
32233
  return typeof e == "string";
@@ -32265,11 +32237,11 @@ var Iy = /* @__PURE__ */ O(((e) => {
32265
32237
  return e === "";
32266
32238
  }
32267
32239
  e.isEmpty = n;
32268
- })), ub = /* @__PURE__ */ O(((e) => {
32269
- Object.defineProperty(e, "__esModule", { value: !0 }), e.string = e.stream = e.pattern = e.path = e.fs = e.errno = e.array = void 0, e.array = Iy(), e.errno = Ly(), e.fs = Ry(), e.path = zy(), e.pattern = ob(), e.stream = cb(), e.string = lb();
32270
- })), db = /* @__PURE__ */ O(((e) => {
32240
+ })), cb = /* @__PURE__ */ O(((e) => {
32241
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.string = e.stream = e.pattern = e.path = e.fs = e.errno = e.array = void 0, e.array = Py(), e.errno = Fy(), e.fs = Iy(), e.path = Ly(), e.pattern = ib(), e.stream = ob(), e.string = sb();
32242
+ })), lb = /* @__PURE__ */ O(((e) => {
32271
32243
  Object.defineProperty(e, "__esModule", { value: !0 }), e.convertPatternGroupToTask = e.convertPatternGroupsToTasks = e.groupPatternsByBaseDirectory = e.getNegativePatternsAsPositive = e.getPositivePatterns = e.convertPatternsToTasks = e.generate = void 0;
32272
- var t = ub();
32244
+ var t = cb();
32273
32245
  function n(e, n) {
32274
32246
  let s = r(e, n), c = r(n.ignore, n), l = a(s), u = o(s, c), d = l.filter((e) => t.pattern.isStaticPattern(e, n)), f = l.filter((e) => t.pattern.isDynamicPattern(e, n)), p = i(d, u, !1), m = i(f, u, !0);
32275
32247
  return p.concat(m);
@@ -32313,7 +32285,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32313
32285
  };
32314
32286
  }
32315
32287
  e.convertPatternGroupToTask = l;
32316
- })), fb = /* @__PURE__ */ O(((e) => {
32288
+ })), ub = /* @__PURE__ */ O(((e) => {
32317
32289
  Object.defineProperty(e, "__esModule", { value: !0 }), e.read = void 0;
32318
32290
  function t(e, t, i) {
32319
32291
  t.fs.lstat(e, (a, o) => {
@@ -32345,7 +32317,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32345
32317
  function r(e, t) {
32346
32318
  e(null, t);
32347
32319
  }
32348
- })), pb = /* @__PURE__ */ O(((e) => {
32320
+ })), db = /* @__PURE__ */ O(((e) => {
32349
32321
  Object.defineProperty(e, "__esModule", { value: !0 }), e.read = void 0;
32350
32322
  function t(e, t) {
32351
32323
  let n = t.fs.lstatSync(e);
@@ -32359,7 +32331,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32359
32331
  }
32360
32332
  }
32361
32333
  e.read = t;
32362
- })), mb = /* @__PURE__ */ O(((e) => {
32334
+ })), fb = /* @__PURE__ */ O(((e) => {
32363
32335
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
32364
32336
  var t = N("fs");
32365
32337
  e.FILE_SYSTEM_ADAPTER = {
@@ -32372,9 +32344,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32372
32344
  return t === void 0 ? e.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
32373
32345
  }
32374
32346
  e.createFileSystemAdapter = n;
32375
- })), hb = /* @__PURE__ */ O(((e) => {
32347
+ })), pb = /* @__PURE__ */ O(((e) => {
32376
32348
  Object.defineProperty(e, "__esModule", { value: !0 });
32377
- var t = mb();
32349
+ var t = fb();
32378
32350
  e.default = class {
32379
32351
  constructor(e = {}) {
32380
32352
  this._options = e, this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, !0), this.fs = t.createFileSystemAdapter(this._options.fs), this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0);
@@ -32383,9 +32355,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32383
32355
  return e ?? t;
32384
32356
  }
32385
32357
  };
32386
- })), gb = /* @__PURE__ */ O(((e) => {
32358
+ })), mb = /* @__PURE__ */ O(((e) => {
32387
32359
  Object.defineProperty(e, "__esModule", { value: !0 }), e.statSync = e.stat = e.Settings = void 0;
32388
- var t = fb(), n = pb(), r = hb();
32360
+ var t = ub(), n = db(), r = pb();
32389
32361
  e.Settings = r.default;
32390
32362
  function i(e, n, r) {
32391
32363
  if (typeof n == "function") {
@@ -32403,14 +32375,14 @@ var Iy = /* @__PURE__ */ O(((e) => {
32403
32375
  function o(e = {}) {
32404
32376
  return e instanceof r.default ? e : new r.default(e);
32405
32377
  }
32406
- })), _b = /* @__PURE__ */ O(((e, t) => {
32378
+ })), hb = /* @__PURE__ */ O(((e, t) => {
32407
32379
  var n;
32408
32380
  t.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : global) : (e) => (n ||= Promise.resolve()).then(e).catch((e) => setTimeout(() => {
32409
32381
  throw e;
32410
32382
  }, 0));
32411
- })), vb = /* @__PURE__ */ O(((e, t) => {
32383
+ })), gb = /* @__PURE__ */ O(((e, t) => {
32412
32384
  t.exports = r;
32413
- var n = _b();
32385
+ var n = hb();
32414
32386
  function r(e, t) {
32415
32387
  let r, i, a, o = !0;
32416
32388
  Array.isArray(e) ? (r = [], i = e.length) : (a = Object.keys(e), r = {}, i = a.length);
@@ -32433,13 +32405,13 @@ var Iy = /* @__PURE__ */ O(((e) => {
32433
32405
  });
32434
32406
  }) : s(null), o = !1;
32435
32407
  }
32436
- })), yb = /* @__PURE__ */ O(((e) => {
32408
+ })), _b = /* @__PURE__ */ O(((e) => {
32437
32409
  Object.defineProperty(e, "__esModule", { value: !0 }), e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
32438
32410
  var t = process.versions.node.split(".");
32439
32411
  if (t[0] === void 0 || t[1] === void 0) throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
32440
32412
  var n = Number.parseInt(t[0], 10), r = Number.parseInt(t[1], 10), i = 10;
32441
32413
  e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = n > i || n === i && r >= 10;
32442
- })), bb = /* @__PURE__ */ O(((e) => {
32414
+ })), vb = /* @__PURE__ */ O(((e) => {
32443
32415
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createDirentFromStats = void 0;
32444
32416
  var t = class {
32445
32417
  constructor(e, t) {
@@ -32450,17 +32422,17 @@ var Iy = /* @__PURE__ */ O(((e) => {
32450
32422
  return new t(e, n);
32451
32423
  }
32452
32424
  e.createDirentFromStats = n;
32453
- })), xb = /* @__PURE__ */ O(((e) => {
32454
- Object.defineProperty(e, "__esModule", { value: !0 }), e.fs = void 0, e.fs = bb();
32455
- })), Sb = /* @__PURE__ */ O(((e) => {
32425
+ })), yb = /* @__PURE__ */ O(((e) => {
32426
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.fs = void 0, e.fs = vb();
32427
+ })), bb = /* @__PURE__ */ O(((e) => {
32456
32428
  Object.defineProperty(e, "__esModule", { value: !0 }), e.joinPathSegments = void 0;
32457
32429
  function t(e, t, n) {
32458
32430
  return e.endsWith(n) ? e + t : e + n + t;
32459
32431
  }
32460
32432
  e.joinPathSegments = t;
32461
- })), Cb = /* @__PURE__ */ O(((e) => {
32433
+ })), xb = /* @__PURE__ */ O(((e) => {
32462
32434
  Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
32463
- var t = gb(), n = vb(), r = yb(), i = xb(), a = Sb();
32435
+ var t = mb(), n = gb(), r = _b(), i = yb(), a = bb();
32464
32436
  function o(e, t, n) {
32465
32437
  if (!t.stats && r.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
32466
32438
  s(e, t, n);
@@ -32551,9 +32523,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32551
32523
  function d(e, t) {
32552
32524
  e(null, t);
32553
32525
  }
32554
- })), wb = /* @__PURE__ */ O(((e) => {
32526
+ })), Sb = /* @__PURE__ */ O(((e) => {
32555
32527
  Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
32556
- var t = gb(), n = yb(), r = xb(), i = Sb();
32528
+ var t = mb(), n = _b(), r = yb(), i = bb();
32557
32529
  function a(e, t) {
32558
32530
  return !t.stats && n.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? o(e, t) : s(e, t);
32559
32531
  }
@@ -32586,7 +32558,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32586
32558
  });
32587
32559
  }
32588
32560
  e.readdir = s;
32589
- })), Tb = /* @__PURE__ */ O(((e) => {
32561
+ })), Cb = /* @__PURE__ */ O(((e) => {
32590
32562
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
32591
32563
  var t = N("fs");
32592
32564
  e.FILE_SYSTEM_ADAPTER = {
@@ -32601,9 +32573,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32601
32573
  return t === void 0 ? e.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
32602
32574
  }
32603
32575
  e.createFileSystemAdapter = n;
32604
- })), Eb = /* @__PURE__ */ O(((e) => {
32576
+ })), wb = /* @__PURE__ */ O(((e) => {
32605
32577
  Object.defineProperty(e, "__esModule", { value: !0 });
32606
- var t = N("path"), n = gb(), r = Tb();
32578
+ var t = N("path"), n = mb(), r = Cb();
32607
32579
  e.default = class {
32608
32580
  constructor(e = {}) {
32609
32581
  this._options = e, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = r.createFileSystemAdapter(this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, t.sep), this.stats = this._getValue(this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.fsStatSettings = new n.Settings({
@@ -32616,9 +32588,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32616
32588
  return e ?? t;
32617
32589
  }
32618
32590
  };
32619
- })), Db = /* @__PURE__ */ O(((e) => {
32591
+ })), Tb = /* @__PURE__ */ O(((e) => {
32620
32592
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Settings = e.scandirSync = e.scandir = void 0;
32621
- var t = Cb(), n = wb(), r = Eb();
32593
+ var t = xb(), n = Sb(), r = wb();
32622
32594
  e.Settings = r.default;
32623
32595
  function i(e, n, r) {
32624
32596
  if (typeof n == "function") {
@@ -32636,7 +32608,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32636
32608
  function o(e = {}) {
32637
32609
  return e instanceof r.default ? e : new r.default(e);
32638
32610
  }
32639
- })), Ob = /* @__PURE__ */ O(((e, t) => {
32611
+ })), Eb = /* @__PURE__ */ O(((e, t) => {
32640
32612
  function n(e) {
32641
32613
  var t = new e(), n = t;
32642
32614
  function r() {
@@ -32652,8 +32624,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
32652
32624
  };
32653
32625
  }
32654
32626
  t.exports = n;
32655
- })), kb = /* @__PURE__ */ O(((e, t) => {
32656
- var n = Ob();
32627
+ })), Db = /* @__PURE__ */ O(((e, t) => {
32628
+ var n = Eb();
32657
32629
  function r(e, t, r) {
32658
32630
  if (typeof e == "function" && (r = t, t = e, e = null), !(r >= 1)) throw Error("fastqueue concurrency must be equal to or greater than 1");
32659
32631
  var o = n(a), s = null, c = null, l = 0, u = null, d = {
@@ -32796,7 +32768,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
32796
32768
  }
32797
32769
  }
32798
32770
  t.exports = r, t.exports.promise = o;
32799
- })), Ab = /* @__PURE__ */ O(((e) => {
32771
+ })), Ob = /* @__PURE__ */ O(((e) => {
32800
32772
  Object.defineProperty(e, "__esModule", { value: !0 }), e.joinPathSegments = e.replacePathSegmentSeparator = e.isAppliedFilter = e.isFatalError = void 0;
32801
32773
  function t(e, t) {
32802
32774
  return e.errorFilter === null ? !0 : !e.errorFilter(t);
@@ -32814,17 +32786,17 @@ var Iy = /* @__PURE__ */ O(((e) => {
32814
32786
  return e === "" ? t : e.endsWith(n) ? e + t : e + n + t;
32815
32787
  }
32816
32788
  e.joinPathSegments = i;
32817
- })), jb = /* @__PURE__ */ O(((e) => {
32789
+ })), kb = /* @__PURE__ */ O(((e) => {
32818
32790
  Object.defineProperty(e, "__esModule", { value: !0 });
32819
- var t = Ab();
32791
+ var t = Ob();
32820
32792
  e.default = class {
32821
32793
  constructor(e, n) {
32822
32794
  this._root = e, this._settings = n, this._root = t.replacePathSegmentSeparator(e, n.pathSegmentSeparator);
32823
32795
  }
32824
32796
  };
32825
- })), Mb = /* @__PURE__ */ O(((e) => {
32797
+ })), Ab = /* @__PURE__ */ O(((e) => {
32826
32798
  Object.defineProperty(e, "__esModule", { value: !0 });
32827
- var t = N("events"), n = Db(), r = kb(), i = Ab(), a = jb();
32799
+ var t = N("events"), n = Tb(), r = Db(), i = Ob(), a = kb();
32828
32800
  e.default = class extends a.default {
32829
32801
  constructor(e, i) {
32830
32802
  super(e, i), this._settings = i, this._scandir = n.scandir, this._emitter = new t.EventEmitter(), this._queue = r(this._worker.bind(this), this._settings.concurrency), this._isFatalError = !1, this._isDestroyed = !1, this._queue.drain = () => {
@@ -32883,9 +32855,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32883
32855
  this._emitter.emit("entry", e);
32884
32856
  }
32885
32857
  };
32886
- })), Nb = /* @__PURE__ */ O(((e) => {
32858
+ })), jb = /* @__PURE__ */ O(((e) => {
32887
32859
  Object.defineProperty(e, "__esModule", { value: !0 });
32888
- var t = Mb();
32860
+ var t = Ab();
32889
32861
  e.default = class {
32890
32862
  constructor(e, n) {
32891
32863
  this._root = e, this._settings = n, this._reader = new t.default(this._root, this._settings), this._storage = [];
@@ -32906,9 +32878,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32906
32878
  function r(e, t) {
32907
32879
  e(null, t);
32908
32880
  }
32909
- })), Pb = /* @__PURE__ */ O(((e) => {
32881
+ })), Mb = /* @__PURE__ */ O(((e) => {
32910
32882
  Object.defineProperty(e, "__esModule", { value: !0 });
32911
- var t = N("stream"), n = Mb();
32883
+ var t = N("stream"), n = Ab();
32912
32884
  e.default = class {
32913
32885
  constructor(e, r) {
32914
32886
  this._root = e, this._settings = r, this._reader = new n.default(this._root, this._settings), this._stream = new t.Readable({
@@ -32929,9 +32901,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32929
32901
  }), this._reader.read(), this._stream;
32930
32902
  }
32931
32903
  };
32932
- })), Fb = /* @__PURE__ */ O(((e) => {
32904
+ })), Nb = /* @__PURE__ */ O(((e) => {
32933
32905
  Object.defineProperty(e, "__esModule", { value: !0 });
32934
- var t = Db(), n = Ab(), r = jb();
32906
+ var t = Tb(), n = Ob(), r = kb();
32935
32907
  e.default = class extends r.default {
32936
32908
  constructor() {
32937
32909
  super(...arguments), this._scandir = t.scandirSync, this._storage = [], this._queue = /* @__PURE__ */ new Set();
@@ -32967,9 +32939,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32967
32939
  this._storage.push(e);
32968
32940
  }
32969
32941
  };
32970
- })), Ib = /* @__PURE__ */ O(((e) => {
32942
+ })), Pb = /* @__PURE__ */ O(((e) => {
32971
32943
  Object.defineProperty(e, "__esModule", { value: !0 });
32972
- var t = Fb();
32944
+ var t = Nb();
32973
32945
  e.default = class {
32974
32946
  constructor(e, n) {
32975
32947
  this._root = e, this._settings = n, this._reader = new t.default(this._root, this._settings);
@@ -32978,9 +32950,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32978
32950
  return this._reader.read();
32979
32951
  }
32980
32952
  };
32981
- })), Lb = /* @__PURE__ */ O(((e) => {
32953
+ })), Fb = /* @__PURE__ */ O(((e) => {
32982
32954
  Object.defineProperty(e, "__esModule", { value: !0 });
32983
- var t = N("path"), n = Db();
32955
+ var t = N("path"), n = Tb();
32984
32956
  e.default = class {
32985
32957
  constructor(e = {}) {
32986
32958
  this._options = e, this.basePath = this._getValue(this._options.basePath, void 0), this.concurrency = this._getValue(this._options.concurrency, Infinity), this.deepFilter = this._getValue(this._options.deepFilter, null), this.entryFilter = this._getValue(this._options.entryFilter, null), this.errorFilter = this._getValue(this._options.errorFilter, null), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, t.sep), this.fsScandirSettings = new n.Settings({
@@ -32995,9 +32967,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
32995
32967
  return e ?? t;
32996
32968
  }
32997
32969
  };
32998
- })), Rb = /* @__PURE__ */ O(((e) => {
32970
+ })), Ib = /* @__PURE__ */ O(((e) => {
32999
32971
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Settings = e.walkStream = e.walkSync = e.walk = void 0;
33000
- var t = Nb(), n = Pb(), r = Ib(), i = Lb();
32972
+ var t = jb(), n = Mb(), r = Pb(), i = Fb();
33001
32973
  e.Settings = i.default;
33002
32974
  function a(e, n, r) {
33003
32975
  if (typeof n == "function") {
@@ -33020,9 +32992,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33020
32992
  function c(e = {}) {
33021
32993
  return e instanceof i.default ? e : new i.default(e);
33022
32994
  }
33023
- })), zb = /* @__PURE__ */ O(((e) => {
32995
+ })), Lb = /* @__PURE__ */ O(((e) => {
33024
32996
  Object.defineProperty(e, "__esModule", { value: !0 });
33025
- var t = N("path"), n = gb(), r = ub();
32997
+ var t = N("path"), n = mb(), r = cb();
33026
32998
  e.default = class {
33027
32999
  constructor(e) {
33028
33000
  this._settings = e, this._fsStatSettings = new n.Settings({
@@ -33046,9 +33018,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33046
33018
  return !r.errno.isEnoentCodeError(e) && !this._settings.suppressErrors;
33047
33019
  }
33048
33020
  };
33049
- })), Bb = /* @__PURE__ */ O(((e) => {
33021
+ })), Rb = /* @__PURE__ */ O(((e) => {
33050
33022
  Object.defineProperty(e, "__esModule", { value: !0 });
33051
- var t = N("stream"), n = gb(), r = Rb(), i = zb();
33023
+ var t = N("stream"), n = mb(), r = Ib(), i = Lb();
33052
33024
  e.default = class extends i.default {
33053
33025
  constructor() {
33054
33026
  super(...arguments), this._walkStream = r.walkStream, this._stat = n.stat;
@@ -33076,9 +33048,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33076
33048
  });
33077
33049
  }
33078
33050
  };
33079
- })), Vb = /* @__PURE__ */ O(((e) => {
33051
+ })), zb = /* @__PURE__ */ O(((e) => {
33080
33052
  Object.defineProperty(e, "__esModule", { value: !0 });
33081
- var t = Rb(), n = zb(), r = Bb();
33053
+ var t = Ib(), n = Lb(), r = Rb();
33082
33054
  e.default = class extends n.default {
33083
33055
  constructor() {
33084
33056
  super(...arguments), this._walkAsync = t.walk, this._readerStream = new r.default(this._settings);
@@ -33097,9 +33069,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33097
33069
  });
33098
33070
  }
33099
33071
  };
33100
- })), Hb = /* @__PURE__ */ O(((e) => {
33072
+ })), Bb = /* @__PURE__ */ O(((e) => {
33101
33073
  Object.defineProperty(e, "__esModule", { value: !0 });
33102
- var t = ub();
33074
+ var t = cb();
33103
33075
  e.default = class {
33104
33076
  constructor(e, t, n) {
33105
33077
  this._patterns = e, this._settings = t, this._micromatchOptions = n, this._storage = [], this._fillStorage();
@@ -33129,9 +33101,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33129
33101
  return t.array.splitWhen(e, (e) => e.dynamic && t.pattern.hasGlobStar(e.pattern));
33130
33102
  }
33131
33103
  };
33132
- })), Ub = /* @__PURE__ */ O(((e) => {
33104
+ })), Vb = /* @__PURE__ */ O(((e) => {
33133
33105
  Object.defineProperty(e, "__esModule", { value: !0 });
33134
- var t = Hb();
33106
+ var t = Bb();
33135
33107
  e.default = class extends t.default {
33136
33108
  match(e) {
33137
33109
  let t = e.split("/"), n = t.length, r = this._storage.filter((e) => !e.complete || e.segments.length > n);
@@ -33145,9 +33117,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33145
33117
  return !1;
33146
33118
  }
33147
33119
  };
33148
- })), Wb = /* @__PURE__ */ O(((e) => {
33120
+ })), Hb = /* @__PURE__ */ O(((e) => {
33149
33121
  Object.defineProperty(e, "__esModule", { value: !0 });
33150
- var t = ub(), n = Ub();
33122
+ var t = cb(), n = Vb();
33151
33123
  e.default = class {
33152
33124
  constructor(e, t) {
33153
33125
  this._settings = e, this._micromatchOptions = t;
@@ -33185,9 +33157,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33185
33157
  return !t.pattern.matchAny(e, n);
33186
33158
  }
33187
33159
  };
33188
- })), Gb = /* @__PURE__ */ O(((e) => {
33160
+ })), Ub = /* @__PURE__ */ O(((e) => {
33189
33161
  Object.defineProperty(e, "__esModule", { value: !0 });
33190
- var t = ub();
33162
+ var t = cb();
33191
33163
  e.default = class {
33192
33164
  constructor(e, t) {
33193
33165
  this._settings = e, this._micromatchOptions = t, this.index = /* @__PURE__ */ new Map();
@@ -33234,9 +33206,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33234
33206
  return !i && r ? t.pattern.matchAny(e + "/", n) : i;
33235
33207
  }
33236
33208
  };
33237
- })), Kb = /* @__PURE__ */ O(((e) => {
33209
+ })), Wb = /* @__PURE__ */ O(((e) => {
33238
33210
  Object.defineProperty(e, "__esModule", { value: !0 });
33239
- var t = ub();
33211
+ var t = cb();
33240
33212
  e.default = class {
33241
33213
  constructor(e) {
33242
33214
  this._settings = e;
@@ -33248,9 +33220,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33248
33220
  return t.errno.isEnoentCodeError(e) || this._settings.suppressErrors;
33249
33221
  }
33250
33222
  };
33251
- })), qb = /* @__PURE__ */ O(((e) => {
33223
+ })), Gb = /* @__PURE__ */ O(((e) => {
33252
33224
  Object.defineProperty(e, "__esModule", { value: !0 });
33253
- var t = ub();
33225
+ var t = cb();
33254
33226
  e.default = class {
33255
33227
  constructor(e) {
33256
33228
  this._settings = e;
@@ -33263,9 +33235,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33263
33235
  return this._settings.absolute && (n = t.path.makeAbsolute(this._settings.cwd, n), n = t.path.unixify(n)), this._settings.markDirectories && e.dirent.isDirectory() && (n += "/"), this._settings.objectMode ? Object.assign(Object.assign({}, e), { path: n }) : n;
33264
33236
  }
33265
33237
  };
33266
- })), Jb = /* @__PURE__ */ O(((e) => {
33238
+ })), Kb = /* @__PURE__ */ O(((e) => {
33267
33239
  Object.defineProperty(e, "__esModule", { value: !0 });
33268
- var t = N("path"), n = Wb(), r = Gb(), i = Kb(), a = qb();
33240
+ var t = N("path"), n = Hb(), r = Ub(), i = Wb(), a = Gb();
33269
33241
  e.default = class {
33270
33242
  constructor(e) {
33271
33243
  this._settings = e, this.errorFilter = new i.default(this._settings), this.entryFilter = new r.default(this._settings, this._getMicromatchOptions()), this.deepFilter = new n.default(this._settings, this._getMicromatchOptions()), this.entryTransformer = new a.default(this._settings);
@@ -33302,9 +33274,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33302
33274
  };
33303
33275
  }
33304
33276
  };
33305
- })), Yb = /* @__PURE__ */ O(((e) => {
33277
+ })), qb = /* @__PURE__ */ O(((e) => {
33306
33278
  Object.defineProperty(e, "__esModule", { value: !0 });
33307
- var t = Vb(), n = Jb();
33279
+ var t = zb(), n = Kb();
33308
33280
  e.default = class extends n.default {
33309
33281
  constructor() {
33310
33282
  super(...arguments), this._reader = new t.default(this._settings);
@@ -33317,9 +33289,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33317
33289
  return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
33318
33290
  }
33319
33291
  };
33320
- })), Xb = /* @__PURE__ */ O(((e) => {
33292
+ })), Jb = /* @__PURE__ */ O(((e) => {
33321
33293
  Object.defineProperty(e, "__esModule", { value: !0 });
33322
- var t = N("stream"), n = Bb(), r = Jb();
33294
+ var t = N("stream"), n = Rb(), r = Kb();
33323
33295
  e.default = class extends r.default {
33324
33296
  constructor() {
33325
33297
  super(...arguments), this._reader = new n.default(this._settings);
@@ -33335,9 +33307,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33335
33307
  return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
33336
33308
  }
33337
33309
  };
33338
- })), Zb = /* @__PURE__ */ O(((e) => {
33310
+ })), Yb = /* @__PURE__ */ O(((e) => {
33339
33311
  Object.defineProperty(e, "__esModule", { value: !0 });
33340
- var t = gb(), n = Rb(), r = zb();
33312
+ var t = mb(), n = Ib(), r = Lb();
33341
33313
  e.default = class extends r.default {
33342
33314
  constructor() {
33343
33315
  super(...arguments), this._walkSync = n.walkSync, this._statSync = t.statSync;
@@ -33366,9 +33338,9 @@ var Iy = /* @__PURE__ */ O(((e) => {
33366
33338
  return this._statSync(e, this._fsStatSettings);
33367
33339
  }
33368
33340
  };
33369
- })), Qb = /* @__PURE__ */ O(((e) => {
33341
+ })), Xb = /* @__PURE__ */ O(((e) => {
33370
33342
  Object.defineProperty(e, "__esModule", { value: !0 });
33371
- var t = Zb(), n = Jb();
33343
+ var t = Yb(), n = Kb();
33372
33344
  e.default = class extends n.default {
33373
33345
  constructor() {
33374
33346
  super(...arguments), this._reader = new t.default(this._settings);
@@ -33381,7 +33353,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
33381
33353
  return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
33382
33354
  }
33383
33355
  };
33384
- })), $b = /* @__PURE__ */ O(((e) => {
33356
+ })), Zb = /* @__PURE__ */ O(((e) => {
33385
33357
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
33386
33358
  var t = N("fs"), n = N("os"), r = Math.max(n.cpus().length, 1);
33387
33359
  e.DEFAULT_FILE_SYSTEM_ADAPTER = {
@@ -33402,8 +33374,8 @@ var Iy = /* @__PURE__ */ O(((e) => {
33402
33374
  return Object.assign(Object.assign({}, e.DEFAULT_FILE_SYSTEM_ADAPTER), t);
33403
33375
  }
33404
33376
  };
33405
- })), ex = /* @__PURE__ */ j((/* @__PURE__ */ O(((e, t) => {
33406
- var n = db(), r = Yb(), i = Xb(), a = Qb(), o = $b(), s = ub();
33377
+ })), Qb = /* @__PURE__ */ j((/* @__PURE__ */ O(((e, t) => {
33378
+ var n = lb(), r = qb(), i = Jb(), a = Xb(), o = Zb(), s = cb();
33407
33379
  async function c(e, t) {
33408
33380
  u(e);
33409
33381
  let n = l(e, r.default, t), i = await Promise.all(n);
@@ -33470,7 +33442,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
33470
33442
  if (![].concat(e).every((e) => s.string.isString(e) && !s.string.isEmpty(e))) throw TypeError("Patterns must be a string (non empty) or an array of strings");
33471
33443
  }
33472
33444
  t.exports = c;
33473
- })))(), 1), tx = { ignore: ["**/node_modules/**", "**/.pnpm-store/**"] }, nx = async (e) => {
33445
+ })))(), 1), $b = { ignore: ["**/node_modules/**", "**/.pnpm-store/**"] }, ex = async (e) => {
33474
33446
  let n = t.join(t.dirname(e), "pnpm-workspace.yaml"), r;
33475
33447
  try {
33476
33448
  r = await a.readFile(n, "utf-8");
@@ -33478,7 +33450,7 @@ var Iy = /* @__PURE__ */ O(((e) => {
33478
33450
  return null;
33479
33451
  }
33480
33452
  return (0, Cf.parse)(r);
33481
- }, rx = async (e) => {
33453
+ }, tx = async (e) => {
33482
33454
  let n = t.join(t.dirname(e), ".yarnrc.yml"), r;
33483
33455
  try {
33484
33456
  r = await a.readFile(n, "utf-8");
@@ -33486,35 +33458,35 @@ var Iy = /* @__PURE__ */ O(((e) => {
33486
33458
  return null;
33487
33459
  }
33488
33460
  return (0, Cf.parse)(r);
33489
- }, ix = async (e, t) => {
33461
+ }, nx = async (e, t) => {
33490
33462
  let n = {};
33491
33463
  if (e.packageManager === "pnpm") {
33492
- let e = await nx(t);
33464
+ let e = await ex(t);
33493
33465
  e && !Array.isArray(e) && (e.catalog && Object.assign(n, e.catalog), e.catalogs && Object.assign(n, ...Object.values(e.catalogs)), e.workspaces && !Array.isArray(e.workspaces) && (e.workspaces.catalog && Object.assign(n, e.workspaces.catalog), e.workspaces.catalogs && Object.assign(n, ...Object.values(e.workspaces.catalogs))));
33494
33466
  }
33495
33467
  if (e.packageManager === "yarn") {
33496
- let e = await rx(t);
33468
+ let e = await tx(t);
33497
33469
  e && (e.catalog && Object.assign(n, e.catalog), e.catalogs && Object.assign(n, ...Object.values(e.catalogs)));
33498
33470
  }
33499
33471
  let r = JSON.parse(await a.readFile(t, "utf-8"));
33500
33472
  return Object.assign(n, r.catalog, ...Object.values(r.catalogs ?? {})), r.workspaces && !Array.isArray(r.workspaces) && Object.assign(n, r.workspaces.catalog, ...Object.values(r.workspaces.catalogs ?? {})), Object.keys(n).length > 0 ? n : null;
33501
33473
  };
33502
- async function ax(e, n, r, i) {
33503
- let { pkgData: a, pkgPath: o } = await Fy({
33474
+ async function rx(e, n, r, i) {
33475
+ let { pkgData: a, pkgPath: o } = await Ny({
33504
33476
  ...e,
33505
33477
  packageFile: r,
33506
33478
  loglevel: "silent"
33507
- }), s = (typeof a == "string" ? JSON.parse(a) : a).workspaces || await nx(o || ""), c = Array.isArray(s) ? s : s?.packages;
33479
+ }), s = (typeof a == "string" ? JSON.parse(a) : a).workspaces || await ex(o || ""), c = Array.isArray(s) ? s : s?.packages;
33508
33480
  c || gp(e, `workspaces property missing from package.json. --workspace${e.workspaces ? "s" : ""} only works when you specify a "workspaces" property in your package.json.`);
33509
- let l = e.packageFile ? t.dirname(t.resolve(e.packageFile)) : i, u = (c || []).map((e) => t.join(l, e, "package.json").replace(/\\/g, "/")), d = ex.default.sync(u, tx), f = await Promise.all(d.map(async (t) => {
33481
+ let l = e.packageFile ? t.dirname(t.resolve(e.packageFile)) : i, u = (c || []).map((e) => t.join(l, e, "package.json").replace(/\\/g, "/")), d = Qb.default.sync(u, $b), f = await Promise.all(d.map(async (t) => {
33510
33482
  let n = await _p(e, t);
33511
33483
  return n.name = n.pkg.name || t.split("/").slice(-2)[0], n;
33512
33484
  })), p = f.map((e) => e.name || "");
33513
33485
  return e.workspaces === !0 ? [f, p] : [f.filter((r) => e.workspace?.some((e) => c?.some((i) => r.name === e || r.filepath === t.join(l, t.dirname(i), e, n).replace(/\\/g, "/")))), p];
33514
33486
  }
33515
- async function ox(e, n) {
33487
+ async function ix(e, n) {
33516
33488
  if (!n) return null;
33517
- let r = await ix(e, n);
33489
+ let r = await nx(e, n);
33518
33490
  if (!r) return null;
33519
33491
  let i = {
33520
33492
  name: "catalog-dependencies",
@@ -33528,28 +33500,28 @@ async function ox(e, n) {
33528
33500
  name: "catalogs"
33529
33501
  };
33530
33502
  }
33531
- async function sx(e) {
33503
+ async function ax(e) {
33532
33504
  let n = e.packageFile || "package.json", r = e.cwd ? Bl(e.cwd) : "./", i = e.packageFile || (e.cwd ? t.join(r, "package.json") : "package.json"), a = e.workspaces === !0 || e.workspace !== void 0 && e.workspace.length !== 0, o = [];
33533
33505
  if (!a || e.root === !0) {
33534
- let t = i.replace(/\\/g, "/"), n = ex.default.sync(t, tx), r = await Promise.all(n.map(async (t) => await _p(e, t)));
33506
+ let t = i.replace(/\\/g, "/"), n = Qb.default.sync(t, $b), r = await Promise.all(n.map(async (t) => await _p(e, t)));
33535
33507
  o = [...o, ...r];
33536
33508
  }
33537
33509
  if (!a) return [o, []];
33538
33510
  let s = null;
33539
33511
  if (a) {
33540
- let { pkgPath: t } = await Fy({
33512
+ let { pkgPath: t } = await Ny({
33541
33513
  ...e,
33542
33514
  packageFile: i,
33543
33515
  loglevel: "silent"
33544
33516
  });
33545
- t && (s = await ox(e, t));
33517
+ t && (s = await ix(e, t));
33546
33518
  }
33547
- let [c, l] = await ax(e, n, i, r);
33519
+ let [c, l] = await rx(e, n, i, r);
33548
33520
  return o = [...o, ...c], s && (o = [...o, s]), [o, l];
33549
33521
  }
33550
33522
  //#endregion
33551
33523
  //#region src/lib/getNcuRc.ts
33552
- var cx = (/* @__PURE__ */ O(((e, t) => {
33524
+ var ox = (/* @__PURE__ */ O(((e, t) => {
33553
33525
  var n = N("path"), r = N("fs"), i = N("os"), a = N("url"), o = r.promises.readFile;
33554
33526
  function s(e, t) {
33555
33527
  return [
@@ -33793,19 +33765,19 @@ var cx = (/* @__PURE__ */ O(((e, t) => {
33793
33765
  }
33794
33766
  };
33795
33767
  };
33796
- })))(), lx = (e, t) => {
33768
+ })))(), sx = (e, t) => {
33797
33769
  try {
33798
33770
  return (0, Cf.parse)(t);
33799
33771
  } catch (t) {
33800
33772
  throw Error(`YAML Error in ${e}:\n${t.message}`, { cause: t });
33801
33773
  }
33802
33774
  };
33803
- function ux(e, n) {
33775
+ function cx(e, n) {
33804
33776
  let r = t.basename(n), i = e.includes("__filename is not defined") || e.includes("__dirname is not defined") || e.includes("require is not defined") || e.includes("module is not defined") || e.includes("exports is not defined"), a = e.includes("Cannot use import statement outside a module") || e.includes("Unexpected token 'export'") || e.includes("Unexpected token 'import'") || e.includes("SyntaxError: export ") || e.includes("SyntaxError") && e.includes("import"), o = n.endsWith(".js") && !n.endsWith(".cjs") && !n.endsWith(".mjs");
33805
33777
  return i && o ? `${r} uses CommonJS syntax (require/module.exports) but your package.json has "type": "module".\n\nRecommended: Convert to ESM syntax:\n import { ... } from '...'\n export default { ... }\n\nAlternative: Rename to ${r.replace(".js", ".cjs")} to keep CommonJS syntax.` : a && o ? `${r} uses ESM syntax (import/export) but your package.json has "type": "commonjs".\n\nRecommended: Add "type": "module" to your package.json to use ESM throughout your project.\n\nAlternative: Rename to ${r.replace(".js", ".mjs")} to keep CommonJS in package.json.` : null;
33806
33778
  }
33807
- async function dx({ configFileName: e, configFilePath: n, packageFile: i, global: a, options: o }) {
33808
- let s = Ln(o?.color), c = (0, cx.lilconfig)("ncu", {
33779
+ async function lx({ configFileName: e, configFilePath: n, packageFile: i, global: a, options: o }) {
33780
+ let s = Ln(o?.color), c = (0, ox.lilconfig)("ncu", {
33809
33781
  searchPlaces: [
33810
33782
  ".ncurc",
33811
33783
  ".ncurc.json",
@@ -33816,17 +33788,17 @@ async function dx({ configFileName: e, configFilePath: n, packageFile: i, global
33816
33788
  ".ncurc.js"
33817
33789
  ],
33818
33790
  loaders: {
33819
- noExt: lx,
33820
- ".yaml": lx,
33821
- ".yml": lx
33791
+ noExt: sx,
33792
+ ".yaml": sx,
33793
+ ".yml": sx
33822
33794
  }
33823
33795
  }), l = n || (a ? r.homedir() : i ? t.dirname(i) : process.cwd()), u = null, d;
33824
33796
  try {
33825
- e ? (d = t.isAbsolute(e) ? e : t.join(l, e), u = await c.load(d)) : (u = await c.search(l), d = u?.filepath);
33797
+ e ? (d = t.isAbsolute(e) ? e : t.join(l, e), u = await c.load(d)) : u = await c.search(l);
33826
33798
  } catch (t) {
33827
33799
  let n = t.message || "", r = d || e || ".ncurc.js";
33828
33800
  e && (t.code === "ENOENT" || n.includes("no such file or directory")) && gp(o, `Config file ${e} not found in ${l}`);
33829
- let i = ux(n, r);
33801
+ let i = cx(n, r);
33830
33802
  i && gp(o, i), gp(o, `Config file error: ${n}`);
33831
33803
  }
33832
33804
  let f = u?.filepath, { $schema: p, ...m } = u?.config || {}, h = m || {};
@@ -33840,7 +33812,7 @@ async function dx({ configFileName: e, configFilePath: n, packageFile: i, global
33840
33812
  }
33841
33813
  //#endregion
33842
33814
  //#region node_modules/picomatch/lib/constants.js
33843
- var fx = /* @__PURE__ */ O(((e, t) => {
33815
+ var ux = /* @__PURE__ */ O(((e, t) => {
33844
33816
  var n = "\\\\/", r = `[^${n}]`, i = 0, a = "\\.", o = "\\+", s = "\\?", c = "\\/", l = "(?=.)", u = "[^/]", d = `(?:${c}|$)`, f = `(?:^|${c})`, p = `${a}{1,2}${d}`, m = {
33845
33817
  DOT_LITERAL: a,
33846
33818
  PLUS_LITERAL: o,
@@ -33981,8 +33953,8 @@ var fx = /* @__PURE__ */ O(((e, t) => {
33981
33953
  return e === !0 ? h : m;
33982
33954
  }
33983
33955
  };
33984
- })), px = /* @__PURE__ */ O(((e) => {
33985
- var { REGEX_BACKSLASH: t, REGEX_REMOVE_BACKSLASH: n, REGEX_SPECIAL_CHARS: r, REGEX_SPECIAL_CHARS_GLOBAL: i } = fx();
33956
+ })), dx = /* @__PURE__ */ O(((e) => {
33957
+ var { REGEX_BACKSLASH: t, REGEX_REMOVE_BACKSLASH: n, REGEX_SPECIAL_CHARS: r, REGEX_SPECIAL_CHARS_GLOBAL: i } = ux();
33986
33958
  e.isObject = (e) => typeof e == "object" && !!e && !Array.isArray(e), e.hasRegexChars = (e) => r.test(e), e.isRegexChar = (t) => t.length === 1 && e.hasRegexChars(t), e.escapeRegex = (e) => e.replace(i, "\\$1"), e.toPosixSlashes = (e) => e.replace(t, "/"), e.isWindows = () => {
33987
33959
  if (typeof navigator < "u" && navigator.platform) {
33988
33960
  let e = navigator.platform.toLowerCase();
@@ -34002,8 +33974,8 @@ var fx = /* @__PURE__ */ O(((e, t) => {
34002
33974
  let n = e.split(t ? /[\\/]/ : "/"), r = n[n.length - 1];
34003
33975
  return r === "" ? n[n.length - 2] : r;
34004
33976
  };
34005
- })), mx = /* @__PURE__ */ O(((e, t) => {
34006
- var n = px(), { CHAR_ASTERISK: r, CHAR_AT: i, CHAR_BACKWARD_SLASH: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_PLUS: p, CHAR_QUESTION_MARK: m, CHAR_RIGHT_CURLY_BRACE: h, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: _ } = fx(), v = (e) => e === l || e === a, y = (e) => {
33977
+ })), fx = /* @__PURE__ */ O(((e, t) => {
33978
+ var n = dx(), { CHAR_ASTERISK: r, CHAR_AT: i, CHAR_BACKWARD_SLASH: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_PLUS: p, CHAR_QUESTION_MARK: m, CHAR_RIGHT_CURLY_BRACE: h, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: _ } = ux(), v = (e) => e === l || e === a, y = (e) => {
34007
33979
  e.isPrefix !== !0 && (e.depth = e.isGlobstar ? Infinity : 1);
34008
33980
  };
34009
33981
  t.exports = (e, t) => {
@@ -34152,8 +34124,8 @@ var fx = /* @__PURE__ */ O(((e, t) => {
34152
34124
  }
34153
34125
  return ie;
34154
34126
  };
34155
- })), hx = /* @__PURE__ */ O(((e, t) => {
34156
- var n = fx(), r = px(), { MAX_LENGTH: i, POSIX_REGEX_SOURCE: a, REGEX_NON_SPECIAL_CHARS: o, REGEX_SPECIAL_CHARS_BACKREF: s, REPLACEMENTS: c } = n, l = (e, t) => {
34127
+ })), px = /* @__PURE__ */ O(((e, t) => {
34128
+ var n = ux(), r = dx(), { MAX_LENGTH: i, POSIX_REGEX_SOURCE: a, REGEX_NON_SPECIAL_CHARS: o, REGEX_SPECIAL_CHARS_BACKREF: s, REPLACEMENTS: c } = n, l = (e, t) => {
34157
34129
  if (typeof t.expandRange == "function") return t.expandRange(...e, t);
34158
34130
  e.sort();
34159
34131
  let n = `[${e.join("-")}]`;
@@ -34806,8 +34778,8 @@ var fx = /* @__PURE__ */ O(((e, t) => {
34806
34778
  }, T = w(r.removePrefix(e, x));
34807
34779
  return T && a.strictSlashes !== !0 && (T += `${u}?`), T;
34808
34780
  }, t.exports = y;
34809
- })), gx = /* @__PURE__ */ O(((e, t) => {
34810
- var n = mx(), r = hx(), i = px(), a = fx(), o = (e) => e && typeof e == "object" && !Array.isArray(e), s = (e, t, n = !1) => {
34781
+ })), mx = /* @__PURE__ */ O(((e, t) => {
34782
+ var n = fx(), r = px(), i = dx(), a = ux(), o = (e) => e && typeof e == "object" && !Array.isArray(e), s = (e, t, n = !1) => {
34811
34783
  if (Array.isArray(e)) {
34812
34784
  let r = e.map((e) => s(e, t, n));
34813
34785
  return (e) => {
@@ -34887,8 +34859,8 @@ var fx = /* @__PURE__ */ O(((e, t) => {
34887
34859
  return /$^/;
34888
34860
  }
34889
34861
  }, s.constants = a, t.exports = s;
34890
- })), _x = /* @__PURE__ */ j((/* @__PURE__ */ O(((e, t) => {
34891
- var n = gx(), r = px();
34862
+ })), hx = /* @__PURE__ */ j((/* @__PURE__ */ O(((e, t) => {
34863
+ var n = mx(), r = dx();
34892
34864
  function i(e, t, i = !1) {
34893
34865
  return t && (t.windows === null || t.windows === void 0) && (t = {
34894
34866
  ...t,
@@ -34896,17 +34868,17 @@ var fx = /* @__PURE__ */ O(((e, t) => {
34896
34868
  }), n(e, t, i);
34897
34869
  }
34898
34870
  Object.assign(i, n), t.exports = i;
34899
- })))(), 1), vx = /* @__PURE__ */ k({
34900
- greatest: () => Cx,
34901
- greatestLevel: () => wx,
34902
- latest: () => Sx,
34903
- minor: () => Tx,
34904
- newest: () => Ox,
34905
- patch: () => Ex,
34906
- semver: () => Dx
34907
- }), yx = m(v.execFile);
34908
- async function bx(e) {
34909
- let t = (await yx("git", [
34871
+ })))(), 1), gx = /* @__PURE__ */ k({
34872
+ greatest: () => xx,
34873
+ greatestLevel: () => Sx,
34874
+ latest: () => bx,
34875
+ minor: () => Cx,
34876
+ newest: () => Ex,
34877
+ patch: () => wx,
34878
+ semver: () => Tx
34879
+ }), _x = m(v.execFile);
34880
+ async function vx(e) {
34881
+ let t = (await _x("git", [
34910
34882
  "ls-remote",
34911
34883
  "--tags",
34912
34884
  e
@@ -34917,15 +34889,15 @@ async function bx(e) {
34917
34889
  }
34918
34890
  return n;
34919
34891
  }
34920
- async function xx(e, t, n) {
34892
+ async function yx(e, t, n) {
34921
34893
  t = t.replace(/^github:/, "");
34922
34894
  let { auth: r, protocol: i, host: a, path: o } = (0, ir.default)(t), s;
34923
34895
  try {
34924
- if (i !== null) s = await bx(`${i ? i.replace("git+", "") : "https:"}//${r ? r + "@" : ""}${a}/${o?.replace(/^:/, "")}`);
34896
+ if (i !== null) s = await vx(`${i ? i.replace("git+", "") : "https:"}//${r ? r + "@" : ""}${a}/${o?.replace(/^:/, "")}`);
34925
34897
  else try {
34926
- s = await bx(`ssh://git@${a}/${o?.replace(/^:/, "")}`);
34898
+ s = await vx(`ssh://git@${a}/${o?.replace(/^:/, "")}`);
34927
34899
  } catch {
34928
- s = await bx(`https://${r ? r + "@" : ""}${a}/${o}`);
34900
+ s = await vx(`https://${r ? r + "@" : ""}${a}/${o}`);
34929
34901
  }
34930
34902
  } catch {
34931
34903
  Y(n ?? {}, `Invalid, private repo, or no tags for ${e}: ${t}`, "verbose");
@@ -34933,56 +34905,56 @@ async function xx(e, t, n) {
34933
34905
  }
34934
34906
  return Object.keys(s).map(Lr).filter((e) => (0, q.valid)(e)).sort(Dr);
34935
34907
  }
34936
- var Sx = async (e, t, n) => {
34937
- let r = await xx(e, t, n);
34908
+ var bx = async (e, t, n) => {
34909
+ let r = await yx(e, t, n);
34938
34910
  if (!r) return { version: null };
34939
34911
  let i = n?.pre ? r : r.filter((e) => !jr(e)), a = i[i.length - 1];
34940
34912
  return { version: a ? qr(t, a) : null };
34941
- }, Cx = async (e, t, n) => {
34942
- let r = await xx(e, t, n);
34913
+ }, xx = async (e, t, n) => {
34914
+ let r = await yx(e, t, n);
34943
34915
  if (!r) return { version: null };
34944
34916
  let i = r[r.length - 1];
34945
34917
  return { version: i ? qr(t, i) : null };
34946
- }, wx = (e) => async (t, n, r = {}) => {
34947
- let i = decodeURIComponent((0, ir.default)(n).branch).replace(/^semver:/, ""), a = await xx(t, n, r);
34918
+ }, Sx = (e) => async (t, n, r = {}) => {
34919
+ let i = decodeURIComponent((0, ir.default)(n).branch).replace(/^semver:/, ""), a = await yx(t, n, r);
34948
34920
  if (!a) return { version: null };
34949
34921
  let o = Or(a.map((e) => e.replace(/^v/, "")), i, e);
34950
34922
  return { version: o ? qr(n, o) : null };
34951
- }, Tx = wx("minor"), Ex = wx("patch"), Dx = async (e, t, n) => ({ version: null }), Ox = Cx, kx = /* @__PURE__ */ k({ latest: () => Mx }), Ax = (e) => e && e.startsWith("http://") || e.startsWith("https://"), jx = (0, Fl.default)(async (e) => {
34923
+ }, Cx = Sx("minor"), wx = Sx("patch"), Tx = async (e, t, n) => ({ version: null }), Ex = xx, Dx = /* @__PURE__ */ k({ latest: () => Ax }), Ox = (e) => e && e.startsWith("http://") || e.startsWith("https://"), kx = (0, Fl.default)(async (e) => {
34952
34924
  let t = e.registry, n;
34953
- if (Ax(t)) n = await (await fetch(t)).text();
34925
+ if (Ox(t)) n = await (await fetch(t)).text();
34954
34926
  else try {
34955
34927
  n = await a.readFile(t, "utf8");
34956
34928
  } catch {
34957
34929
  gp(e, `\nThe specified static registry file does not exist: ${e.registry}`);
34958
34930
  }
34959
34931
  return JSON.parse(n);
34960
- }), Mx = async (e, t, n) => ({ version: (await jx(n || {}))[e] || null }), Nx = {
34932
+ }), Ax = async (e, t, n) => ({ version: (await kx(n || {}))[e] || null }), jx = {
34961
34933
  npm: Eu,
34962
34934
  pnpm: Sf,
34963
34935
  yarn: Gf,
34964
34936
  bun: $u,
34965
- gitTags: vx,
34966
- staticRegistry: kx
34937
+ gitTags: gx,
34938
+ staticRegistry: Dx
34967
34939
  };
34968
34940
  //#endregion
34969
34941
  //#region src/lib/initOptions.ts
34970
- function Px(e) {
34942
+ function Mx(e) {
34971
34943
  if (typeof e == "string") return e.trim();
34972
34944
  if (Array.isArray(e) && (e.length === 0 || typeof e[0] == "string")) {
34973
34945
  let t = e.map((e) => typeof e == "string" ? e.trim() : e).filter((e) => e);
34974
34946
  return t.length > 0 ? t : void 0;
34975
34947
  } else return e;
34976
34948
  }
34977
- function Fx(e) {
34949
+ function Nx(e) {
34978
34950
  try {
34979
34951
  return new URL(e), !0;
34980
34952
  } catch {
34981
34953
  return !1;
34982
34954
  }
34983
34955
  }
34984
- var Ix = (e, t = Math.round(e * 10) / 10) => `${t} day${t === 1 ? "" : "s"}`;
34985
- async function Lx(e, { cli: t } = {}) {
34956
+ var Px = (e, t = Math.round(e * 10) / 10) => `${t} day${t === 1 ? "" : "s"}`;
34957
+ async function Fx(e, { cli: t } = {}) {
34986
34958
  let n = Ln(e.color), r;
34987
34959
  if (!t) {
34988
34960
  r = { ...e };
@@ -35021,8 +34993,8 @@ async function Lx(e, { cli: t } = {}) {
35021
34993
  r.length !== 0 && r.every((e) => !t.includes(e)) && gp(i, `Invalid option value: --${e} ${n}. Valid values are: ${t.join(", ")}.`);
35022
34994
  }
35023
34995
  i.cwd && !await Vn(i.cwd) && gp(i, `No such directory: ${i.cwd}`);
35024
- let c = Px(i.args), l = Px(i.filter), u = Px(i.filterVersion), d = Px(i.reject), f = Px(i.rejectVersion), p = i.registryType || (i.registry?.endsWith(".json") ? "json" : "npm");
35025
- i.filter && c && c.join(" ") !== (Array.isArray(l) ? l.join(" ") : l) ? gp(i, "Cannot specify a filter using both --filter and args. Did you forget to quote an argument?\nSee: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297") : i.packageFile && i.deep ? gp(i, "Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'") : i.format?.includes("lines") && i.jsonUpgraded ? gp(i, "Cannot specify both --format lines and --jsonUpgraded.") : i.format?.includes("lines") && i.jsonAll ? gp(i, "Cannot specify both --format lines and --jsonAll.") : i.format?.includes("lines") && i.format.length > 1 ? gp(i, "Cannot use --format lines with other formatting options.") : i.workspace?.length && i.workspaces ? gp(i, "Cannot specify both --workspace and --workspaces.") : i.deep && (i.workspace?.length || i.workspaces) ? gp(i, `Cannot specify both --deep and --workspace${i.workspaces ? "s" : ""}.`) : i.doctor && (i.workspace?.length || i.workspaces) ? gp(i, `Doctor mode is not currently supported with --workspace${i.workspaces ? "s" : ""}.`) : i.packageManager === "staticRegistry" && !i.registry ? gp(i, "When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry.") : i.registryType === "json" && !i.registry ? gp(i, "When --registryType json is specified, you must provide the path for the registry file with --registry. Run \"ncu --help registryType\" for details.") : p !== "json" && i.registry && !Fx(i.registry) && gp(i, `--registry must be a valid URL. Invalid value: "${i.registry}"`);
34996
+ let c = Mx(i.args), l = Mx(i.filter), u = Mx(i.filterVersion), d = Mx(i.reject), f = Mx(i.rejectVersion), p = i.registryType || (i.registry?.endsWith(".json") ? "json" : "npm");
34997
+ i.filter && c && c.join(" ") !== (Array.isArray(l) ? l.join(" ") : l) ? gp(i, "Cannot specify a filter using both --filter and args. Did you forget to quote an argument?\nSee: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297") : i.packageFile && i.deep ? gp(i, "Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'") : i.format?.includes("lines") && i.jsonUpgraded ? gp(i, "Cannot specify both --format lines and --jsonUpgraded.") : i.format?.includes("lines") && i.jsonAll ? gp(i, "Cannot specify both --format lines and --jsonAll.") : i.format?.includes("lines") && i.format.length > 1 ? gp(i, "Cannot use --format lines with other formatting options.") : i.workspace?.length && i.workspaces ? gp(i, "Cannot specify both --workspace and --workspaces.") : i.deep && (i.workspace?.length || i.workspaces) ? gp(i, `Cannot specify both --deep and --workspace${i.workspaces ? "s" : ""}.`) : i.doctor && (i.workspace?.length || i.workspaces) ? gp(i, `Doctor mode is not currently supported with --workspace${i.workspaces ? "s" : ""}.`) : i.packageManager === "staticRegistry" && !i.registry ? gp(i, "When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry.") : i.registryType === "json" && !i.registry ? gp(i, "When --registryType json is specified, you must provide the path for the registry file with --registry. Run \"ncu --help registryType\" for details.") : p !== "json" && i.registry && !Nx(i.registry) && gp(i, `--registry must be a valid URL. Invalid value: "${i.registry}"`);
35026
34998
  let m = await Ii(i);
35027
34999
  if (i.cooldown != null) {
35028
35000
  if (typeof i.cooldown == "string") {
@@ -35040,7 +35012,7 @@ async function Lx(e, { cli: t } = {}) {
35040
35012
  if (r.length > 0) {
35041
35013
  let e = r.map((e) => ({
35042
35014
  pattern: e,
35043
- match: (0, _x.default)(e, {
35015
+ match: (0, hx.default)(e, {
35044
35016
  nonegate: !0,
35045
35017
  noext: !0
35046
35018
  })
@@ -35048,33 +35020,33 @@ async function Lx(e, { cli: t } = {}) {
35048
35020
  i.cooldown = (t) => e.some(({ pattern: e, match: n }) => t === e || n(t)) ? null : n, Y({
35049
35021
  ...i,
35050
35022
  json: o
35051
- }, `Using min-release-age from .npmrc: ${Ix(n)} (${r.length} excluded pattern${r.length === 1 ? "" : "s"})`);
35023
+ }, `Using min-release-age from .npmrc: ${Px(n)} (${r.length} excluded pattern${r.length === 1 ? "" : "s"})`);
35052
35024
  } else i.cooldown = n, Y({
35053
35025
  ...i,
35054
35026
  json: o
35055
- }, `Using min-release-age from .npmrc: ${Ix(n)}`);
35027
+ }, `Using min-release-age from .npmrc: ${Px(n)}`);
35056
35028
  }
35057
35029
  } else if (m === "pnpm") {
35058
35030
  let e = await Vf.getPnpmWorkspaceMinimumReleaseAge();
35059
35031
  if (e != null) {
35060
35032
  let { minimumReleaseAge: t, minimumReleaseAgeExclude: n } = e, r = t / 1440;
35061
35033
  if (n.length > 0) {
35062
- let e = n.map((e) => (0, _x.default)(e));
35034
+ let e = n.map((e) => (0, hx.default)(e));
35063
35035
  i.cooldown = (t) => e.some((e) => e(t)) ? null : r, Y({
35064
35036
  ...i,
35065
35037
  json: o
35066
- }, `Using minimumReleaseAge from pnpm-workspace.yaml: ${Ix(r)} (${n.length} excluded pattern${n.length === 1 ? "" : "s"})`);
35038
+ }, `Using minimumReleaseAge from pnpm-workspace.yaml: ${Px(r)} (${n.length} excluded pattern${n.length === 1 ? "" : "s"})`);
35067
35039
  } else i.cooldown = r, Y({
35068
35040
  ...i,
35069
35041
  json: o
35070
- }, `Using minimumReleaseAge from pnpm-workspace.yaml: ${Ix(r)}`);
35042
+ }, `Using minimumReleaseAge from pnpm-workspace.yaml: ${Px(r)}`);
35071
35043
  }
35072
35044
  } else if (m === "yarn") {
35073
35045
  let e = await hp.getYarnMinimalAgeGate(i);
35074
35046
  if (e != null) {
35075
35047
  let { npmMinimalAgeGate: t, npmPreapprovedPackages: n } = e, r = t / 1440;
35076
35048
  if (n.length > 0) {
35077
- let e = n.map((e) => (0, _x.default)(e));
35049
+ let e = n.map((e) => (0, hx.default)(e));
35078
35050
  i.cooldown = (t) => e.some((e) => e(t)) ? null : r, Y({
35079
35051
  ...i,
35080
35052
  json: o
@@ -35082,7 +35054,7 @@ async function Lx(e, { cli: t } = {}) {
35082
35054
  } else i.cooldown = r, Y({
35083
35055
  ...i,
35084
35056
  json: o
35085
- }, `Using npmMinimalAgeGate from .yarnrc.yml: ${Ix(r)}`);
35057
+ }, `Using npmMinimalAgeGate from .yarnrc.yml: ${Px(r)}`);
35086
35058
  }
35087
35059
  }
35088
35060
  }
@@ -35102,7 +35074,7 @@ async function Lx(e, { cli: t } = {}) {
35102
35074
  target: h,
35103
35075
  ...i.interactive && i.upgrade === void 0 ? { upgrade: !o } : null,
35104
35076
  packageManager: m,
35105
- ...i.prefix ? { prefix: await (Nx[m || ""]?.defaultPrefix || Nx.npm.defaultPrefix)(i) } : null,
35077
+ ...i.prefix ? { prefix: await (jx[m || ""]?.defaultPrefix || jx.npm.defaultPrefix)(i) } : null,
35106
35078
  registryType: p
35107
35079
  };
35108
35080
  _.cacher = await hi(_);
@@ -35111,27 +35083,27 @@ async function Lx(e, { cli: t } = {}) {
35111
35083
  }
35112
35084
  //#endregion
35113
35085
  //#region src/lib/mergeOptions.ts
35114
- function Rx(e, t) {
35086
+ function Ix(e, t) {
35115
35087
  return Array.from(new Set([...e || [], ...t || []]));
35116
35088
  }
35117
- function zx(e, t) {
35089
+ function Lx(e, t) {
35118
35090
  let n = e || {}, r = t || {}, i = {
35119
35091
  ...n,
35120
35092
  ...r
35121
35093
  };
35122
- for (let e of Object.keys(i)) Array.isArray(n[e]) && Array.isArray(r[e]) && (i[e] = Rx(n[e], r[e]));
35094
+ for (let e of Object.keys(i)) Array.isArray(n[e]) && Array.isArray(r[e]) && (i[e] = Ix(n[e], r[e]));
35123
35095
  return i;
35124
35096
  }
35125
35097
  //#endregion
35126
35098
  //#region src/lib/filterAndReject.ts
35127
- var Bx = (/* @__PURE__ */ O(((e, t) => {
35099
+ var Rx = (/* @__PURE__ */ O(((e, t) => {
35128
35100
  var n = (e) => typeof e == "function" ? e : () => e, r = (...e) => (...t) => e.length === 0 || !!n(e[0])(...t) && r(...e.slice(1))(...t), i = (...e) => (...t) => e.length > 0 && (!!n(e[0])(...t) || i(...e.slice(1))(...t));
35129
35101
  t.exports = {
35130
35102
  and: r,
35131
35103
  or: i
35132
35104
  };
35133
35105
  })))();
35134
- function Vx(e) {
35106
+ function zx(e) {
35135
35107
  let t;
35136
35108
  if (!e) t = () => !0;
35137
35109
  else if (typeof e == "string") if (e[0] === "/" && e.at(-1) === "/") {
@@ -35139,32 +35111,32 @@ function Vx(e) {
35139
35111
  t = (e) => n.test(e);
35140
35112
  } else {
35141
35113
  let n = e.split(/[\s,]+/);
35142
- t = (e) => n.some((0, Bx.or)((t) => (0, _x.default)(t)(e), (t) => !t.includes("/") && e.includes("/") && (0, _x.default)(t)(e.replace(/\//g, "_"))));
35114
+ t = (e) => n.some((0, Rx.or)((t) => (0, hx.default)(t)(e), (t) => !t.includes("/") && e.includes("/") && (0, hx.default)(t)(e.replace(/\//g, "_"))));
35143
35115
  }
35144
- else if (Array.isArray(e)) t = (t, n) => e.some((e) => Vx(e)(t, n));
35116
+ else if (Array.isArray(e)) t = (t, n) => e.some((e) => zx(e)(t, n));
35145
35117
  else if (e instanceof RegExp) t = (t) => e.test(t);
35146
35118
  else if (typeof e == "function") t = (t, n) => e(t, (0, ar.parseRange)(n ?? t));
35147
35119
  else throw TypeError("Invalid filter. Must be a RegExp, array, or comma-or-space-delimited list.");
35148
35120
  return t;
35149
35121
  }
35150
- function Hx(e, t, n, r) {
35151
- return (0, Bx.and)((n, r) => (0, Bx.and)(e ? Vx(e) : !0, t ? (...e) => !Vx(t)(...e) : !0)(n, r), (e, t) => (0, Bx.and)(n ? Vx(n) : !0, r ? (...e) => !Vx(r)(...e) : !0)(t));
35122
+ function Bx(e, t, n, r) {
35123
+ return (0, Rx.and)((n, r) => (0, Rx.and)(e ? zx(e) : !0, t ? (...e) => !zx(t)(...e) : !0)(n, r), (e, t) => (0, Rx.and)(n ? zx(n) : !0, r ? (...e) => !zx(r)(...e) : !0)(t));
35152
35124
  }
35153
35125
  //#endregion
35154
35126
  //#region src/lib/getPackageManager.ts
35155
- function Ux(e, t) {
35156
- return !t || t === "deno" ? Nx.npm : e.registryType === "json" ? Nx.staticRegistry : (Nx[t] || gp(e, `Invalid package manager: ${t}`), Nx[t]);
35127
+ function Vx(e, t) {
35128
+ return !t || t === "deno" ? jx.npm : e.registryType === "json" ? jx.staticRegistry : (jx[t] || gp(e, `Invalid package manager: ${t}`), jx[t]);
35157
35129
  }
35158
35130
  //#endregion
35159
35131
  //#region src/lib/getInstalledPackages.ts
35160
- async function Wx(e = {}) {
35161
- let t = await Ux(e, e.packageManager).list?.({
35132
+ async function Hx(e = {}) {
35133
+ let t = await Vx(e, e.packageManager).list?.({
35162
35134
  cwd: e.cwd,
35163
35135
  prefix: e.prefix,
35164
35136
  global: e.global
35165
35137
  });
35166
35138
  t || gp(e, "Unable to retrieve package list");
35167
- let n = Hx(e.filter, e.reject, e.filterVersion, e.rejectVersion), r = {};
35139
+ let n = Bx(e.filter, e.reject, e.filterVersion, e.rejectVersion), r = {};
35168
35140
  try {
35169
35141
  r = Bn(t, (e, t) => !!t && !xr(t) && n(e, t));
35170
35142
  } catch (t) {
@@ -35174,11 +35146,11 @@ async function Wx(e = {}) {
35174
35146
  }
35175
35147
  //#endregion
35176
35148
  //#region src/lib/quoteGlobalPackageSpec.ts
35177
- var Gx = (e) => /^@[^/]*\./.test(e) ? `"${e}"` : e, Kx = /* @__PURE__ */ k({
35178
- default: () => qx,
35179
- pMapSkip: () => Jx
35149
+ var Ux = (e) => /^@[^/]*\./.test(e) ? `"${e}"` : e, Wx = /* @__PURE__ */ k({
35150
+ default: () => Gx,
35151
+ pMapSkip: () => Kx
35180
35152
  });
35181
- async function qx(e, t, { concurrency: n = Infinity, stopOnError: r = !0, signal: i } = {}) {
35153
+ async function Gx(e, t, { concurrency: n = Infinity, stopOnError: r = !0, signal: i } = {}) {
35182
35154
  return new Promise((a, o) => {
35183
35155
  if (e[Symbol.iterator] === void 0 && e[Symbol.asyncIterator] === void 0) throw TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);
35184
35156
  if (typeof t != "function") throw TypeError("Mapper function is required");
@@ -35207,7 +35179,7 @@ async function qx(e, t, { concurrency: n = Infinity, stopOnError: r = !0, signal
35207
35179
  return;
35208
35180
  }
35209
35181
  let e = [];
35210
- for (let [t, n] of s.entries()) l.get(t) !== Jx && e.push(n);
35182
+ for (let [t, n] of s.entries()) l.get(t) !== Kx && e.push(n);
35211
35183
  v(e);
35212
35184
  }
35213
35185
  return;
@@ -35217,7 +35189,7 @@ async function qx(e, t, { concurrency: n = Infinity, stopOnError: r = !0, signal
35217
35189
  let r = await e.value;
35218
35190
  if (d) return;
35219
35191
  let i = await t(r, n);
35220
- i === Jx && l.set(n, i), s[n] = i, p--, await b();
35192
+ i === Kx && l.set(n, i), s[n] = i, p--, await b();
35221
35193
  } catch (e) {
35222
35194
  if (r) y(e);
35223
35195
  else {
@@ -35244,9 +35216,9 @@ async function qx(e, t, { concurrency: n = Infinity, stopOnError: r = !0, signal
35244
35216
  })();
35245
35217
  });
35246
35218
  }
35247
- var Jx, Yx = D((() => {
35248
- Jx = Symbol("skip");
35249
- })), Xx = /* @__PURE__ */ O(((e, t) => {
35219
+ var Kx, qx = D((() => {
35220
+ Kx = Symbol("skip");
35221
+ })), Jx = /* @__PURE__ */ O(((e, t) => {
35250
35222
  e = t.exports = n;
35251
35223
  function n(e, t) {
35252
35224
  if (this.stream = t.stream || process.stderr, typeof t == "number") {
@@ -35289,40 +35261,43 @@ var Jx, Yx = D((() => {
35289
35261
  }, n.prototype.terminate = function() {
35290
35262
  this.clear ? this.stream.clearLine && (this.stream.clearLine(), this.stream.cursorTo(0)) : this.stream.write("\n");
35291
35263
  };
35292
- })), Zx = /* @__PURE__ */ O(((e, t) => {
35293
- t.exports = Xx();
35264
+ })), Yx = /* @__PURE__ */ O(((e, t) => {
35265
+ t.exports = Jx();
35294
35266
  }));
35295
35267
  //#endregion
35296
35268
  //#region src/lib/getPeerDependenciesFromRegistry.ts
35297
- Yx();
35298
- var Qx = /* @__PURE__ */ j(Zx(), 1);
35299
- function $x(e, t) {
35300
- let n = [[t]];
35301
- for (; n.length > 0;) {
35269
+ qx();
35270
+ var Xx = /* @__PURE__ */ j(Yx(), 1);
35271
+ function Zx(e, t) {
35272
+ let n = /* @__PURE__ */ new Set(), r = [[t]];
35273
+ for (; r.length > 0;) {
35302
35274
  let t = [];
35303
- for (let r of n) {
35304
- let n = Object.keys(e[r[0]] ?? {});
35305
- for (let e of n) {
35306
- if (e === r.at(-1)) return {
35275
+ for (let i of r) {
35276
+ let r = i[0];
35277
+ if (n.has(r)) continue;
35278
+ n.add(r);
35279
+ let a = Object.keys(e[r] ?? {});
35280
+ for (let e of a) {
35281
+ if (e === i.at(-1)) return {
35307
35282
  isCircular: !0,
35308
- offendingPackage: r[0]
35283
+ offendingPackage: r
35309
35284
  };
35310
- t.push([e, ...r]);
35285
+ t.push([e, ...i]);
35311
35286
  }
35312
35287
  }
35313
- n = t;
35288
+ r = t;
35314
35289
  }
35315
35290
  return { isCircular: !1 };
35316
35291
  }
35317
- async function eS(e, t) {
35318
- let n = Ux(t, t.packageManager);
35292
+ async function Qx(e, t) {
35293
+ let n = Vx(t, t.packageManager);
35319
35294
  if (!n.getPeerDependencies) return {};
35320
35295
  let r = Object.keys(e).length, i;
35321
- !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r > 0 && (i = new Qx.default("[:bar] :current/:total :percent", {
35296
+ !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r > 0 && (i = new Xx.default("[:bar] :current/:total :percent", {
35322
35297
  total: r,
35323
35298
  width: 20
35324
35299
  }), i.render());
35325
- let a = await qx(Object.entries(e), async ([e, r]) => {
35300
+ let a = await Gx(Object.entries(e), async ([e, r]) => {
35326
35301
  let a, o = t.cacher?.getPeers(e, r);
35327
35302
  return o ? a = o : (a = await n.getPeerDependencies(e, r, { cwd: t.cwd }), t.cacher?.setPeers(e, r, a)), i && i.tick(), {
35328
35303
  pkg: e,
@@ -35331,19 +35306,19 @@ async function eS(e, t) {
35331
35306
  }, { concurrency: t.concurrency }), o = {};
35332
35307
  for (let { pkg: e, dependencies: t } of a) {
35333
35308
  o[e] = t;
35334
- let n = $x(o, e);
35309
+ let n = Zx(o, e);
35335
35310
  n.isCircular && delete o[e][n.offendingPackage];
35336
35311
  }
35337
35312
  return await t.cacher?.save(), t.cacher?.log(!0), o;
35338
35313
  }
35339
35314
  //#endregion
35340
35315
  //#region src/lib/pick.ts
35341
- function tS(e, t) {
35316
+ function $x(e, t) {
35342
35317
  let n = {};
35343
35318
  for (let r of t) n[r] = e[r];
35344
35319
  return n;
35345
35320
  }
35346
- function nS(e, t) {
35321
+ function eS(e, t) {
35347
35322
  let n = {};
35348
35323
  for (let [r, i] of Object.entries(e ?? {})) {
35349
35324
  let e = r;
@@ -35353,7 +35328,7 @@ function nS(e, t) {
35353
35328
  }
35354
35329
  //#endregion
35355
35330
  //#region src/types/Target.ts
35356
- var rS = [
35331
+ var tS = [
35357
35332
  "latest",
35358
35333
  "newest",
35359
35334
  "greatest",
@@ -35363,10 +35338,10 @@ var rS = [
35363
35338
  ];
35364
35339
  //#endregion
35365
35340
  //#region src/lib/queryVersions.ts
35366
- Yx();
35367
- async function iS(e, t = {}) {
35368
- let n = Ln(t.color), r = Object.keys(e), i = Ux(t, t.packageManager), a;
35369
- !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r.length > 0 && (a = new Qx.default("[:bar] :current/:total :percent", {
35341
+ qx();
35342
+ async function nS(e, t = {}) {
35343
+ let n = Ln(t.color), r = Object.keys(e), i = Vx(t, t.packageManager), a;
35344
+ !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r.length > 0 && (a = new Xx.default("[:bar] :current/:total :percent", {
35370
35345
  total: r.length,
35371
35346
  width: 20
35372
35347
  }), a.render());
@@ -35378,9 +35353,9 @@ async function iS(e, t = {}) {
35378
35353
  let e = t.cacher?.get(s, d);
35379
35354
  if (e?.version && (e?.time || !t.format?.includes("time"))) return a?.tick(), e;
35380
35355
  }
35381
- let p, m = Ur(e[r]), h = m ? Nx.gitTags : i, g = m ? "github urls" : t.packageManager || "npm", _ = h[d];
35356
+ let p, m = Ur(e[r]), h = m ? jx.gitTags : i, g = m ? "github urls" : t.packageManager || "npm", _ = h[d];
35382
35357
  if (!_) {
35383
- let e = rS.filter((e) => e in h);
35358
+ let e = tS.filter((e) => e in h);
35384
35359
  gp(t, n.red(`\nUnsupported target "${d}" using ${g}`) + "\nSupported version targets are: " + e.join(", ") + (m ? "" : ", and tags (e.g. @next)"), { color: !1 });
35385
35360
  }
35386
35361
  try {
@@ -35404,12 +35379,12 @@ async function iS(e, t = {}) {
35404
35379
  }
35405
35380
  return a?.tick(), p.version && t.cacher?.set(s, d, p.version, p.time), p;
35406
35381
  }
35407
- let s = await qx(r, o, { concurrency: t.concurrency });
35382
+ let s = await Gx(r, o, { concurrency: t.concurrency });
35408
35383
  return await t.cacher?.save(), t.cacher?.log(), Nn(s, (e, t) => e.version || e.error || e.cooldownInfo ? { [r[t]]: e } : null);
35409
35384
  }
35410
35385
  //#endregion
35411
35386
  //#region src/lib/getPreferredWildcard.ts
35412
- function aS(e) {
35387
+ function rS(e) {
35413
35388
  if (Object.keys(e).length === 0) return null;
35414
35389
  let t = Object.values(e).reduce((e, t) => {
35415
35390
  let n = fr.find((e) => t && t.includes(e));
@@ -35422,7 +35397,7 @@ function aS(e) {
35422
35397
  }
35423
35398
  //#endregion
35424
35399
  //#region src/lib/isUpgradeable.ts
35425
- function oS(e, t, { downgrade: n } = {}) {
35400
+ function iS(e, t, { downgrade: n } = {}) {
35426
35401
  if (!q.validRange(e) || br(e)) return !1;
35427
35402
  let [r] = ar.default.parseRange(e);
35428
35403
  if (!r) throw Error(`"${e}" could not be parsed by semver-utils. This is probably a bug. Please file an issue at https://github.com/raineorshine/npm-check-updates.`);
@@ -35431,15 +35406,15 @@ function oS(e, t, { downgrade: n } = {}) {
35431
35406
  }
35432
35407
  //#endregion
35433
35408
  //#region src/lib/upgradeDependencies.ts
35434
- function sS(e, t, n = {}) {
35409
+ function aS(e, t, n = {}) {
35435
35410
  let r = n.target || "latest";
35436
35411
  e = Bn(e, (e, t) => !!t);
35437
- let i = aS(e) || "^", a = (e, t) => Gr(e, t, {
35412
+ let i = rS(e) || "^", a = (e, t) => Gr(e, t, {
35438
35413
  wildcard: i,
35439
35414
  removeRange: n.removeRange
35440
35415
  });
35441
35416
  return [
35442
- (e) => nS(e, (e, n) => n in t),
35417
+ (e) => eS(e, (e, n) => n in t),
35443
35418
  (e) => Object.entries(e).reduce((e, [n, r]) => {
35444
35419
  let i = t[n], a = null, o = null;
35445
35420
  if (Vr(r) && (a = Br(r)[1]), Vr(i) && (o = Br(i)[1]), Ur(r)) {
@@ -35457,9 +35432,9 @@ function sS(e, t, n = {}) {
35457
35432
  latestParsed: o
35458
35433
  }, e;
35459
35434
  }, {}),
35460
- (e) => nS(e, ({ current: e, currentParsed: t, latest: n, latestParsed: i }, a) => {
35435
+ (e) => eS(e, ({ current: e, currentParsed: t, latest: n, latestParsed: i }, a) => {
35461
35436
  let o = jr(e) && (typeof r == "string" ? r : r(a, (0, ar.parseRange)(e))).startsWith("@");
35462
- return oS(t || e, i || n, { downgrade: o });
35437
+ return iS(t || e, i || n, { downgrade: o });
35463
35438
  }),
35464
35439
  (e) => Object.entries(e).reduce((e, [t, { current: n, currentParsed: r, latest: i, latestParsed: o }]) => {
35465
35440
  let s = a(r || n, o || i);
@@ -35469,39 +35444,39 @@ function sS(e, t, n = {}) {
35469
35444
  }
35470
35445
  //#endregion
35471
35446
  //#region src/lib/upgradePackageDefinitions.ts
35472
- var cS = (e, t, n) => {
35447
+ var oS = (e, t, n) => {
35473
35448
  let r = {
35474
35449
  ...e,
35475
35450
  ...t
35476
- }, i = nS(t, (e, t) => {
35451
+ }, i = eS(t, (e, t) => {
35477
35452
  let i = n[t];
35478
35453
  return i ? Object.entries(i).every(([e, t]) => r[e] === void 0 || !(0, q.validRange)(t) || !(0, q.validRange)(r[e]) || (0, q.intersects)(r[e], t)) : !0;
35479
35454
  }), a = Object.keys(t).length > Object.keys(i).length, o = n;
35480
- return a && (o = nS(n, (e, n) => i[n] || !t[n])), {
35455
+ return a && (o = eS(n, (e, n) => i[n] || !t[n])), {
35481
35456
  violated: a,
35482
35457
  filteredUpgradedDependencies: i,
35483
35458
  upgradedPeerDependencies: o
35484
35459
  };
35485
35460
  };
35486
- async function lS(e, t) {
35487
- let n = await iS(e, t), r = Nn(n, (n, r) => r?.version && (!t.filterResults || t.filterResults(n, {
35461
+ async function sS(e, t) {
35462
+ let n = await nS(e, t), r = Nn(n, (n, r) => r?.version && (!t.filterResults || t.filterResults(n, {
35488
35463
  currentVersion: e[n],
35489
35464
  currentVersionSemver: (0, ar.parseRange)(e[n]),
35490
35465
  upgradedVersion: r.version,
35491
35466
  upgradedVersionSemver: (0, ar.parse)(r.version)
35492
- })) ? { [n]: r.version } : null), i = nS(sS(e, r, t), (n, i) => !t.jsonUpgraded || !t.minimal || !(0, q.satisfies)(r[i], e[i])), a = nS(r, (e, t) => i[t]), o = [
35467
+ })) ? { [n]: r.version } : null), i = eS(aS(e, r, t), (n, i) => !t.jsonUpgraded || !t.minimal || !(0, q.satisfies)(r[i], e[i])), a = eS(r, (e, t) => i[t]), o = [
35493
35468
  i,
35494
35469
  n,
35495
35470
  t.peerDependencies
35496
35471
  ];
35497
35472
  if (!t.peer || Object.keys(a).length === 0) return o;
35498
35473
  if (t.peer && Object.keys(a).length > 0) {
35499
- let r = await eS(a, t), s;
35474
+ let r = await Qx(a, t), s;
35500
35475
  if (p(t.peerDependencies, {
35501
35476
  ...t.peerDependencies,
35502
35477
  ...r
35503
35478
  })) {
35504
- if (s = cS(e, i, t.peerDependencies), !s.violated) return o;
35479
+ if (s = oS(e, i, t.peerDependencies), !s.violated) return o;
35505
35480
  } else s = {
35506
35481
  violated: !1,
35507
35482
  filteredUpgradedDependencies: i,
@@ -35519,7 +35494,7 @@ async function lS(e, t) {
35519
35494
  n,
35520
35495
  t.peerDependencies
35521
35496
  ];
35522
- let [i, a, l] = await lS({
35497
+ let [i, a, l] = await sS({
35523
35498
  ...e,
35524
35499
  ...s.filteredUpgradedDependencies
35525
35500
  }, {
@@ -35537,19 +35512,19 @@ async function lS(e, t) {
35537
35512
  ...a
35538
35513
  },
35539
35514
  l
35540
- ], s = cS(e, o[0], o[2]);
35515
+ ], s = oS(e, o[0], o[2]);
35541
35516
  } while (s.violated);
35542
35517
  }
35543
35518
  return o;
35544
35519
  }
35545
35520
  //#endregion
35546
35521
  //#region src/lib/runGlobal.ts
35547
- async function uS(e) {
35522
+ async function cS(e) {
35548
35523
  Y(e, "\nOptions:", "verbose"), Qr(e, e, "verbose"), Y(e, "\nGetting installed packages", "verbose");
35549
35524
  let t = {};
35550
35525
  try {
35551
35526
  let { cli: n, cwd: r, filter: i, filterVersion: a, global: o, packageManager: s, prefix: c, reject: l, rejectVersion: u } = e;
35552
- t = await Wx({
35527
+ t = await Hx({
35553
35528
  cli: n,
35554
35529
  cwd: r,
35555
35530
  filter: i,
@@ -35564,7 +35539,7 @@ async function uS(e) {
35564
35539
  gp(e, t.message);
35565
35540
  }
35566
35541
  Y(e, "globalPackages:", "verbose"), Y(e, t, "verbose"), Y(e, "", "verbose"), Y(e, `Fetching ${e.target} versions`, "verbose");
35567
- let [n, r] = await lS(t, e);
35542
+ let [n, r] = await sS(t, e);
35568
35543
  Y(e, r, "verbose");
35569
35544
  let i = Nn(r, (e, t) => {
35570
35545
  let n = t.time ?? t.cooldownInfo?.currentVersionTime;
@@ -35579,7 +35554,7 @@ async function uS(e) {
35579
35554
  total: s.length,
35580
35555
  time: i
35581
35556
  });
35582
- let c = n ? s.map((e) => Gx(e + "@" + n[e])).join(" ") : "[package]";
35557
+ let c = n ? s.map((e) => Ux(e + "@" + n[e])).join(" ") : "[package]";
35583
35558
  if (e.json) Xr(e, n);
35584
35559
  else if (c.length) {
35585
35560
  let t = e.packageManager === "yarn" ? "yarn global upgrade" : e.packageManager === "pnpm" ? "pnpm -g add" : e.packageManager === "bun" ? "bun add -g" : "npm -g install";
@@ -35589,18 +35564,18 @@ async function uS(e) {
35589
35564
  }
35590
35565
  //#endregion
35591
35566
  //#region src/lib/getCurrentDependencies.ts
35592
- var dS = (e, t) => q.validRange(e) && q.validRange(t) && q.gt(q.minVersion(e), q.minVersion(t)), fS = (e) => {
35567
+ var lS = (e, t) => q.validRange(e) && q.validRange(t) && q.gt(q.minVersion(e), q.minVersion(t)), uS = (e) => {
35593
35568
  if (!e.packageManager) return {};
35594
35569
  let [t, n] = e.packageManager.split("@");
35595
35570
  return { [t]: n };
35596
35571
  };
35597
- function pS(e = {}, t = {}) {
35572
+ function dS(e = {}, t = {}) {
35598
35573
  let n = wy(t.dep).reduce((t, n) => ({
35599
35574
  ...t,
35600
- ...n === "packageManager" ? fS(e) : Bn(e[n] || {}, (e, n) => !dS(n, t[e]))
35575
+ ...n === "packageManager" ? uS(e) : Bn(e[n] || {}, (e, n) => !lS(n, t[e]))
35601
35576
  }), {}), r = Nn(t.workspacePackages || []), i = {};
35602
35577
  try {
35603
- i = Bn(Bn(n, (e) => !r[e]), Hx(t.filter || null, t.reject || null, t.filterVersion || null, t.rejectVersion || null));
35578
+ i = Bn(Bn(n, (e) => !r[e]), Bx(t.filter || null, t.reject || null, t.filterVersion || null, t.rejectVersion || null));
35604
35579
  } catch (e) {
35605
35580
  gp(t, "Invalid filter: " + e.message || e);
35606
35581
  }
@@ -35608,80 +35583,72 @@ function pS(e = {}, t = {}) {
35608
35583
  }
35609
35584
  //#endregion
35610
35585
  //#region src/lib/getEnginesNodeFromRegistry.ts
35611
- async function mS(e, t) {
35612
- let n = Ux(t, t.packageManager);
35586
+ async function fS(e, t) {
35587
+ let n = Vx(t, t.packageManager);
35613
35588
  if (!n.getEngines) return {};
35614
35589
  let r = Object.keys(e).length, i;
35615
- return !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r > 0 && (i = new Qx.default("[:bar] :current/:total :percent", {
35590
+ !t.json && t.loglevel !== "silent" && t.loglevel !== "verbose" && r > 0 && (i = new Xx.default("[:bar] :current/:total :percent", {
35616
35591
  total: r,
35617
35592
  width: 20
35618
- }), i.render()), Object.entries(e).reduce(async (e, [r, a]) => {
35619
- let o = (await n.getEngines(r, a, t)).node;
35620
- return i && i.tick(), {
35621
- ...await e,
35622
- [r]: o
35623
- };
35624
- }, Promise.resolve({}));
35593
+ }), i.render());
35594
+ let a = {};
35595
+ for (let [r, o] of Object.entries(e)) {
35596
+ let e = (await n.getEngines(r, o, t)).node;
35597
+ i && i.tick(), a[r] = e;
35598
+ }
35599
+ return a;
35625
35600
  }
35626
35601
  //#endregion
35627
35602
  //#region src/lib/getIgnoredUpgradesDueToEnginesNode.ts
35628
- var hS = (e, t) => !e || (0, q.satisfies)(t, e);
35629
- async function gS(e, t, n = {}) {
35603
+ var pS = (e, t) => !e || (0, q.satisfies)(t, e);
35604
+ async function mS(e, t, n = {}) {
35630
35605
  if (!n.nodeEngineVersion) return {};
35631
35606
  let r = (0, q.minVersion)(n.nodeEngineVersion)?.version;
35632
35607
  if (!r) return {};
35633
- let [i, a] = await lS(e, {
35608
+ let [i, a] = await sS(e, {
35634
35609
  ...n,
35635
35610
  enginesNode: !1,
35636
35611
  nodeEngineVersion: void 0,
35637
35612
  loglevel: "silent"
35638
- }), o = await mS(Nn(a, (e, t) => i[e] && t?.version ? { [e]: t.version } : null), n);
35639
- return Object.entries(i).filter(([e, n]) => t[e] !== n && !hS(o[e], r)).reduce((t, [n, r]) => ({
35640
- ...t,
35641
- [n]: {
35642
- from: e[n],
35643
- to: r,
35644
- enginesNode: o[n]
35645
- }
35646
- }), {});
35613
+ }), o = await fS(Nn(a, (e, t) => i[e] && t?.version ? { [e]: t.version } : null), n), s = {};
35614
+ for (let [n, a] of Object.entries(i)) t[n] === a || pS(o[n], r) || (s[n] = {
35615
+ from: e[n],
35616
+ to: a,
35617
+ enginesNode: o[n]
35618
+ });
35619
+ return s;
35647
35620
  }
35648
35621
  //#endregion
35649
35622
  //#region src/lib/getIgnoredUpgradesDueToPeerDeps.ts
35650
- async function _S(e, t, n, r = {}) {
35623
+ async function hS(e, t, n, r = {}) {
35651
35624
  let i = {
35652
35625
  ...e,
35653
35626
  ...t
35654
- }, [a, o] = await lS(e, {
35627
+ }, [a, o] = await sS(e, {
35655
35628
  ...r,
35656
35629
  peer: !1,
35657
35630
  peerDependencies: void 0,
35658
35631
  loglevel: "silent"
35659
- }), s = await eS(Object.fromEntries(Object.entries(a).map(([e, t]) => [e, (0, q.validRange)(t) ? (0, q.minVersion)(t)?.version ?? t : t])), r);
35660
- return Object.entries(a).filter(([e, n]) => t[e] !== n).reduce((t, [r, a]) => {
35661
- let c = Object.entries(n).filter(([, e]) => e[r] !== void 0 && o[r]?.version && !(0, q.satisfies)(o[r].version, e[r])).reduce((e, [t, n]) => ({
35662
- ...e,
35663
- [t]: (0, q.validRange)(n[r]) ? n[r] : `a range that semver does not understand: ${n[r]}. This range does not work with semver.satisfies or semver.intersects, which npm-check-updates relies on to determine peer dependency compatibility. Either this is a mistake in ${t}, or it relies on a new syntax that is not compatible with the semver package.`
35664
- }), {});
35665
- if (Object.keys(c).length === 0) {
35632
+ }), s = await Qx(Object.fromEntries(Object.entries(a).map(([e, t]) => [e, (0, q.validRange)(t) ? (0, q.minVersion)(t)?.version ?? t : t])), r), c = {};
35633
+ for (let [r, l] of Object.entries(a)) {
35634
+ if (t[r] === l) continue;
35635
+ let a = {};
35636
+ for (let [e, t] of Object.entries(n)) t[r] !== void 0 && o[r]?.version && !(0, q.satisfies)(o[r].version, t[r]) && (a[e] = (0, q.validRange)(t[r]) ? t[r] : `a range that semver does not understand: ${t[r]}. This range does not work with semver.satisfies or semver.intersects, which npm-check-updates relies on to determine peer dependency compatibility. Either this is a mistake in ${e}, or it relies on a new syntax that is not compatible with the semver package.`);
35637
+ if (Object.keys(a).length === 0) {
35666
35638
  let e = s?.[r] || {};
35667
- c = Object.entries(e).filter(([e, t]) => i[e] && !!(0, q.validRange)(i[e]) && !(!(0, q.validRange)(t) || (0, q.intersects)(i[e], t))).reduce((e, [t, n]) => ({
35668
- ...e,
35669
- [r]: `${t} ${n}`
35670
- }), {});
35639
+ for (let [t, n] of Object.entries(e)) i[t] && (0, q.validRange)(i[t]) && !(!(0, q.validRange)(n) || (0, q.intersects)(i[t], n)) && (a[r] = `${t} ${n}`);
35671
35640
  }
35672
- return {
35673
- ...t,
35674
- [r]: {
35675
- from: e[r],
35676
- to: a,
35677
- reason: c
35678
- }
35641
+ c[r] = {
35642
+ from: e[r],
35643
+ to: l,
35644
+ reason: a
35679
35645
  };
35680
- }, {});
35646
+ }
35647
+ return c;
35681
35648
  }
35682
35649
  //#endregion
35683
35650
  //#region node_modules/jsonc-parser/lib/esm/impl/scanner.js
35684
- function vS(e, t = !1) {
35651
+ function gS(e, t = !1) {
35685
35652
  let n = e.length, r = 0, i = "", a = 0, o = 16, s = 0, c = 0, l = 0, u = 0, d = 0;
35686
35653
  function f(t, n) {
35687
35654
  let i = 0, a = 0;
@@ -35701,12 +35668,12 @@ function vS(e, t = !1) {
35701
35668
  function m() {
35702
35669
  let t = r;
35703
35670
  if (e.charCodeAt(r) === 48) r++;
35704
- else for (r++; r < e.length && xS(e.charCodeAt(r));) r++;
35705
- if (r < e.length && e.charCodeAt(r) === 46) if (r++, r < e.length && xS(e.charCodeAt(r))) for (r++; r < e.length && xS(e.charCodeAt(r));) r++;
35671
+ else for (r++; r < e.length && yS(e.charCodeAt(r));) r++;
35672
+ if (r < e.length && e.charCodeAt(r) === 46) if (r++, r < e.length && yS(e.charCodeAt(r))) for (r++; r < e.length && yS(e.charCodeAt(r));) r++;
35706
35673
  else return d = 3, e.substring(t, r);
35707
35674
  let n = r;
35708
- if (r < e.length && (e.charCodeAt(r) === 69 || e.charCodeAt(r) === 101)) if (r++, (r < e.length && e.charCodeAt(r) === 43 || e.charCodeAt(r) === 45) && r++, r < e.length && xS(e.charCodeAt(r))) {
35709
- for (r++; r < e.length && xS(e.charCodeAt(r));) r++;
35675
+ if (r < e.length && (e.charCodeAt(r) === 69 || e.charCodeAt(r) === 101)) if (r++, (r < e.length && e.charCodeAt(r) === 43 || e.charCodeAt(r) === 45) && r++, r < e.length && yS(e.charCodeAt(r))) {
35676
+ for (r++; r < e.length && yS(e.charCodeAt(r));) r++;
35710
35677
  n = r;
35711
35678
  } else d = 3;
35712
35679
  return e.substring(t, n);
@@ -35762,7 +35729,7 @@ function vS(e, t = !1) {
35762
35729
  i = r;
35763
35730
  continue;
35764
35731
  }
35765
- if (a >= 0 && a <= 31) if (bS(a)) {
35732
+ if (a >= 0 && a <= 31) if (vS(a)) {
35766
35733
  t += e.substring(i, r), d = 2;
35767
35734
  break;
35768
35735
  } else d = 6;
@@ -35773,13 +35740,13 @@ function vS(e, t = !1) {
35773
35740
  function g() {
35774
35741
  if (i = "", d = 0, a = r, c = s, u = l, r >= n) return a = n, o = 17;
35775
35742
  let t = e.charCodeAt(r);
35776
- if (yS(t)) {
35743
+ if (_S(t)) {
35777
35744
  do
35778
35745
  r++, i += String.fromCharCode(t), t = e.charCodeAt(r);
35779
- while (yS(t));
35746
+ while (_S(t));
35780
35747
  return o = 15;
35781
35748
  }
35782
- if (bS(t)) return r++, i += String.fromCharCode(t), t === 13 && e.charCodeAt(r) === 10 && (r++, i += "\n"), s++, l = r, o = 14;
35749
+ if (vS(t)) return r++, i += String.fromCharCode(t), t === 13 && e.charCodeAt(r) === 10 && (r++, i += "\n"), s++, l = r, o = 14;
35783
35750
  switch (t) {
35784
35751
  case 123: return r++, o = 1;
35785
35752
  case 125: return r++, o = 2;
@@ -35791,7 +35758,7 @@ function vS(e, t = !1) {
35791
35758
  case 47:
35792
35759
  let c = r - 1;
35793
35760
  if (e.charCodeAt(r + 1) === 47) {
35794
- for (r += 2; r < n && !bS(e.charCodeAt(r));) r++;
35761
+ for (r += 2; r < n && !vS(e.charCodeAt(r));) r++;
35795
35762
  return i = e.substring(c, r), o = 12;
35796
35763
  }
35797
35764
  if (e.charCodeAt(r + 1) === 42) {
@@ -35803,12 +35770,12 @@ function vS(e, t = !1) {
35803
35770
  r += 2, a = !0;
35804
35771
  break;
35805
35772
  }
35806
- r++, bS(t) && (t === 13 && e.charCodeAt(r) === 10 && r++, s++, l = r);
35773
+ r++, vS(t) && (t === 13 && e.charCodeAt(r) === 10 && r++, s++, l = r);
35807
35774
  }
35808
35775
  return a || (r++, d = 1), i = e.substring(c, r), o = 13;
35809
35776
  }
35810
35777
  return i += String.fromCharCode(t), r++, o = 16;
35811
- case 45: if (i += String.fromCharCode(t), r++, r === n || !xS(e.charCodeAt(r))) return o = 16;
35778
+ case 45: if (i += String.fromCharCode(t), r++, r === n || !yS(e.charCodeAt(r))) return o = 16;
35812
35779
  case 48:
35813
35780
  case 49:
35814
35781
  case 50:
@@ -35833,7 +35800,7 @@ function vS(e, t = !1) {
35833
35800
  }
35834
35801
  }
35835
35802
  function _(e) {
35836
- if (yS(e) || bS(e)) return !1;
35803
+ if (_S(e) || vS(e)) return !1;
35837
35804
  switch (e) {
35838
35805
  case 125:
35839
35806
  case 93:
@@ -35866,33 +35833,33 @@ function vS(e, t = !1) {
35866
35833
  getTokenError: () => d
35867
35834
  };
35868
35835
  }
35869
- function yS(e) {
35836
+ function _S(e) {
35870
35837
  return e === 32 || e === 9;
35871
35838
  }
35872
- function bS(e) {
35839
+ function vS(e) {
35873
35840
  return e === 10 || e === 13;
35874
35841
  }
35875
- function xS(e) {
35842
+ function yS(e) {
35876
35843
  return e >= 48 && e <= 57;
35877
35844
  }
35878
- var SS;
35845
+ var bS;
35879
35846
  (function(e) {
35880
35847
  e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
35881
- })(SS ||= {}), Array(20).fill(0).map((e, t) => " ".repeat(t));
35882
- var CS = 200;
35883
- Array(CS).fill(0).map((e, t) => "\n" + " ".repeat(t)), Array(CS).fill(0).map((e, t) => "\r" + " ".repeat(t)), Array(CS).fill(0).map((e, t) => "\r\n" + " ".repeat(t)), Array(CS).fill(0).map((e, t) => "\n" + " ".repeat(t)), Array(CS).fill(0).map((e, t) => "\r" + " ".repeat(t)), Array(CS).fill(0).map((e, t) => "\r\n" + " ".repeat(t));
35848
+ })(bS ||= {}), Array(20).fill(0).map((e, t) => " ".repeat(t));
35849
+ var xS = 200;
35850
+ Array(xS).fill(0).map((e, t) => "\n" + " ".repeat(t)), Array(xS).fill(0).map((e, t) => "\r" + " ".repeat(t)), Array(xS).fill(0).map((e, t) => "\r\n" + " ".repeat(t)), Array(xS).fill(0).map((e, t) => "\n" + " ".repeat(t)), Array(xS).fill(0).map((e, t) => "\r" + " ".repeat(t)), Array(xS).fill(0).map((e, t) => "\r\n" + " ".repeat(t));
35884
35851
  //#endregion
35885
35852
  //#region node_modules/jsonc-parser/lib/esm/impl/parser.js
35886
- var wS;
35853
+ var SS;
35887
35854
  (function(e) {
35888
35855
  e.DEFAULT = { allowTrailingComma: !1 };
35889
- })(wS ||= {});
35890
- function TS(e, t = [], n = wS.DEFAULT) {
35856
+ })(SS ||= {});
35857
+ function CS(e, t = [], n = SS.DEFAULT) {
35891
35858
  let r = null, i = [], a = [];
35892
35859
  function o(e) {
35893
35860
  Array.isArray(i) ? i.push(e) : r !== null && (i[r] = e);
35894
35861
  }
35895
- return ES(e, {
35862
+ return wS(e, {
35896
35863
  onObjectBegin: () => {
35897
35864
  let e = {};
35898
35865
  o(e), a.push(i), i = e, r = null;
@@ -35920,8 +35887,8 @@ function TS(e, t = [], n = wS.DEFAULT) {
35920
35887
  }
35921
35888
  }, n), i[0];
35922
35889
  }
35923
- function ES(e, t, n = wS.DEFAULT) {
35924
- let r = vS(e, !1), i = [], a = 0;
35890
+ function wS(e, t, n = SS.DEFAULT) {
35891
+ let r = gS(e, !1), i = [], a = 0;
35925
35892
  function o(e) {
35926
35893
  return e ? () => a === 0 && e(r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter()) : () => !0;
35927
35894
  }
@@ -36049,8 +36016,8 @@ function ES(e, t, n = wS.DEFAULT) {
36049
36016
  }
36050
36017
  return S(), r.getToken() === 17 ? n.allowEmptyContent ? !0 : (C(4, [], []), !1) : k() ? (r.getToken() !== 17 && C(9, [], []), !0) : (C(4, [], []), !1);
36051
36018
  }
36052
- function DS(e, t) {
36053
- let n = vS(e), r = [], i, a = 0, o;
36019
+ function TS(e, t) {
36020
+ let n = gS(e), r = [], i, a = 0, o;
36054
36021
  do
36055
36022
  switch (o = n.getPosition(), i = n.scan(), i) {
36056
36023
  case 12:
@@ -36064,41 +36031,41 @@ function DS(e, t) {
36064
36031
  }
36065
36032
  //#endregion
36066
36033
  //#region node_modules/jsonc-parser/lib/esm/main.js
36067
- var OS;
36034
+ var ES;
36068
36035
  (function(e) {
36069
36036
  e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
36070
- })(OS ||= {});
36071
- var kS;
36037
+ })(ES ||= {});
36038
+ var DS;
36072
36039
  (function(e) {
36073
36040
  e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
36074
- })(kS ||= {});
36075
- var AS = TS, jS = DS, MS;
36041
+ })(DS ||= {});
36042
+ var OS = CS, kS = TS, AS;
36076
36043
  (function(e) {
36077
36044
  e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
36078
- })(MS ||= {});
36045
+ })(AS ||= {});
36079
36046
  //#endregion
36080
36047
  //#region src/lib/utils/parseJson.ts
36081
- var NS = process.stdout.columns || 80;
36082
- function PS(e) {
36083
- return `${e.length ? e.slice(0, Math.min(e.length, NS)) : "<empty>"}\n`;
36048
+ var jS = process.stdout.columns || 80;
36049
+ function MS(e) {
36050
+ return `${e.length ? e.slice(0, Math.min(e.length, jS)) : "<empty>"}\n`;
36084
36051
  }
36085
- function FS(e) {
36086
- return e > NS ? "" : `${" ".repeat(e - 1)}^\n`;
36052
+ function NS(e) {
36053
+ return e > jS ? "" : `${" ".repeat(e - 1)}^\n`;
36087
36054
  }
36088
- function IS(e, t, n) {
36055
+ function PS(e, t, n) {
36089
36056
  let r = e.length;
36090
36057
  if (r === 0) return "<empty>";
36091
- if (r === 1) return `${PS(e[0])}${FS(n)}`;
36058
+ if (r === 1) return `${MS(e[0])}${NS(n)}`;
36092
36059
  let i = Math.min(t + 2, r), a = "";
36093
- for (let r = Math.max(t - 2, 1); r <= i; r++) a += PS(e[r - 1]), r === t && (a += FS(n));
36060
+ for (let r = Math.max(t - 2, 1); r <= i; r++) a += MS(e[r - 1]), r === t && (a += NS(n));
36094
36061
  return `${a}\n`;
36095
36062
  }
36096
- function LS(e) {
36097
- e = jS(e);
36063
+ function FS(e) {
36064
+ e = kS(e);
36098
36065
  try {
36099
36066
  return JSON.parse(e);
36100
36067
  } catch {
36101
- let t = [], n = AS(e, t);
36068
+ let t = [], n = OS(e, t);
36102
36069
  if (t.length === 0) return n;
36103
36070
  let r = "", i = e.split("\n");
36104
36071
  for (let e of t) {
@@ -36110,29 +36077,27 @@ function LS(e) {
36110
36077
  }
36111
36078
  o += e.length + 1, n++;
36112
36079
  }
36113
- r += `Error at line ${n}, column ${a}: ${MS[e.error]}\n${IS(i, n, a)}\n`;
36080
+ r += `Error at line ${n}, column ${a}: ${AS[e.error]}\n${PS(i, n, a)}\n`;
36114
36081
  }
36115
36082
  throw SyntaxError(r);
36116
36083
  }
36117
36084
  }
36118
36085
  //#endregion
36119
36086
  //#region src/lib/runLocal.ts
36120
- var RS = "\n ↑/↓: Select a package\n Space: Toggle selection\n a: Toggle all\n Enter: Upgrade";
36121
- function zS(e, t) {
36122
- let n = e ? RS.split("\n").length : 0;
36087
+ var IS = "\n ↑/↓: Select a package\n Space: Toggle selection\n a: Toggle all\n Enter: Upgrade";
36088
+ function LS(e, t) {
36089
+ let n = e ? IS.split("\n").length : 0;
36123
36090
  return process.stdout.rows ? Math.max(3, process.stdout.rows - n - 1 - (t?.length ?? 0) * 2) : 50;
36124
36091
  }
36125
- async function BS(e, t, n) {
36126
- let r = Ux(n, n.packageManager);
36127
- return await Object.keys(t).reduce(async (i, a) => {
36128
- let o = e[a] || null, s = t[a] || null, c = await r.packageAuthorChanged(a, o, s, n);
36129
- return {
36130
- ...await i,
36131
- [a]: c
36132
- };
36133
- }, {});
36092
+ async function RS(e, t, n) {
36093
+ let r = Vx(n, n.packageManager), i = {};
36094
+ for (let a of Object.keys(t)) {
36095
+ let o = e[a] || null, s = t[a] || null;
36096
+ i[a] = await r.packageAuthorChanged(a, o, s, n);
36097
+ }
36098
+ return i;
36134
36099
  }
36135
- var VS = async (e, t, n, r, i, a) => {
36100
+ var zS = async (e, t, n, r, i, a) => {
36136
36101
  let o = [], s = process.stdout.rows > 18, c = Nn((await ni({
36137
36102
  from: e,
36138
36103
  to: t,
@@ -36155,11 +36120,11 @@ var VS = async (e, t, n, r, i, a) => {
36155
36120
  title: " ",
36156
36121
  heading: !0
36157
36122
  }],
36158
- hint: s && RS,
36123
+ hint: s && IS,
36159
36124
  instructions: !1,
36160
36125
  message: "Choose which packages to update",
36161
36126
  name: "value",
36162
- optionsPerPage: zS(s, n),
36127
+ optionsPerPage: LS(s, n),
36163
36128
  type: "multiselect",
36164
36129
  onState: (e) => {
36165
36130
  e.aborted && process.nextTick(() => process.exit(1));
@@ -36174,11 +36139,11 @@ var VS = async (e, t, n, r, i, a) => {
36174
36139
  title: " ",
36175
36140
  heading: !0
36176
36141
  }],
36177
- hint: s && RS + "\n",
36142
+ hint: s && IS + "\n",
36178
36143
  instructions: !1,
36179
36144
  message: "Choose which packages to update",
36180
36145
  name: "value",
36181
- optionsPerPage: zS(s),
36146
+ optionsPerPage: LS(s),
36182
36147
  type: "multiselect",
36183
36148
  onState: (e) => {
36184
36149
  e.aborted && process.nextTick(() => process.exit(1));
@@ -36186,22 +36151,22 @@ var VS = async (e, t, n, r, i, a) => {
36186
36151
  })).value;
36187
36152
  return Nn(o, (e) => ({ [e]: t[e] }));
36188
36153
  };
36189
- async function HS(e, t, n) {
36154
+ async function BS(e, t, n) {
36190
36155
  Y(e, "\nOptions:", "verbose"), Qr(e, e, "verbose");
36191
36156
  let r;
36192
36157
  try {
36193
- t ? r = LS(t) : gp(e, "Missing package data");
36158
+ t ? r = FS(t) : gp(e, "Missing package data");
36194
36159
  } catch (t) {
36195
36160
  gp(e, `Invalid package file${n ? `: ${n}` : " from stdin"}. Error details:\n${t.message}`);
36196
36161
  }
36197
- let i = pS(r, e);
36198
- Y(e, "\nCurrent versions:", "verbose"), Y(e, i, "verbose"), e.enginesNode && (e.nodeEngineVersion = r?.engines?.node), e.peer && (e.peerDependencies = await eS(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, q.default.validRange(t) ? q.default.minVersion(t)?.version ?? t : t])), e));
36199
- let [o, s, c] = await lS(i, e), l = Nn(s, (e, t) => t.version ? { [e]: t.version } : null), u = Nn(s, (e, t) => t.error ? { [e]: t.error } : null), d = Nn(s, (e, t) => {
36162
+ let i = dS(r, e);
36163
+ Y(e, "\nCurrent versions:", "verbose"), Y(e, i, "verbose"), e.enginesNode && (e.nodeEngineVersion = r?.engines?.node), e.peer && (e.peerDependencies = await Qx(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, q.default.validRange(t) ? q.default.minVersion(t)?.version ?? t : t])), e));
36164
+ let [o, s, c] = await sS(i, e), l = Nn(s, (e, t) => t.version ? { [e]: t.version } : null), u = Nn(s, (e, t) => t.error ? { [e]: t.error } : null), d = Nn(s, (e, t) => {
36200
36165
  let n = t.time ?? t.cooldownInfo?.currentVersionTime;
36201
36166
  return n ? { [e]: n } : null;
36202
36167
  }), f = Nn(s, (e, t) => t.cooldownInfo ? { [e]: t.cooldownInfo } : null), p = Object.values(f).length;
36203
36168
  e.peer && (Y(e, "\nupgradedPeerDependencies:", "verbose"), Y(e, c, "verbose")), Y(e, `\n${typeof e.target == "string" ? `${e.target[0].toUpperCase()}${e.target.slice(1)}` : "Fetched"} versions:`, "verbose"), Y(e, l, "verbose"), Y(e, "\nUpgraded versions:", "verbose"), Y(e, o, "verbose");
36204
- let m = e.minimal ? Nn(o, (e, t) => q.default.satisfies(l[e], i[e]) ? null : { [e]: t }) : o, h = (e.format || []).includes("ownerChanged") ? await BS(i, m, e) : void 0, g = e.interactive ? await VS(i, m, f, d, n, e) : m;
36169
+ let m = e.minimal ? Nn(o, (e, t) => q.default.satisfies(l[e], i[e]) ? null : { [e]: t }) : o, h = (e.format || []).includes("ownerChanged") ? await RS(i, m, e) : void 0, g = e.interactive ? await zS(i, m, f, d, n, e) : m;
36205
36170
  if (!e.json || e.deep) {
36206
36171
  if (await oi(e.interactive ? {
36207
36172
  ...e,
@@ -36218,15 +36183,15 @@ async function HS(e, t, n) {
36218
36183
  errors: u,
36219
36184
  time: d
36220
36185
  }), e.peer) {
36221
- let t = await _S(i, o, c, e);
36186
+ let t = await hS(i, o, c, e);
36222
36187
  Object.keys(t).length > 0 && si(e, t);
36223
36188
  }
36224
36189
  if (e.enginesNode) {
36225
- let t = await gS(i, o, e);
36190
+ let t = await mS(i, o, e);
36226
36191
  Object.keys(t).length > 0 && ci(e, t);
36227
36192
  }
36228
36193
  }
36229
- let _ = await jy(t, i, g, e, n || void 0), v = e.jsonAll ? n?.endsWith(".yaml") || n?.endsWith(".yml") ? (0, Cf.parseDocument)(_).toJSON() : LS(_) : e.jsonDeps && n?.endsWith(".json") ? tS(LS(_), wy(e.dep)) : g, y;
36194
+ let _ = await ky(t, i, g, e, n || void 0), v = e.jsonAll ? n?.endsWith(".yaml") || n?.endsWith(".yml") ? (0, Cf.parseDocument)(_).toJSON() : FS(_) : e.jsonDeps && n?.endsWith(".json") ? $x(FS(_), wy(e.dep)) : g, y;
36230
36195
  if (e.json && !e.deep && Xr(e, v), Object.keys(m).length > 0 && n) if (e.upgrade) y = a.writeFile(n.replace("#catalog", ""), _);
36231
36196
  else {
36232
36197
  let t = process.env.npm_lifecycle_event === "npx" ? "npx npm-check-updates" : "ncu", n = process.argv.slice(2).map((e) => e.includes(" ") ? `"${e}"` : e).join(" "), r = n && " " + n;
@@ -36236,21 +36201,21 @@ async function HS(e, t, n) {
36236
36201
  }
36237
36202
  //#endregion
36238
36203
  //#region src/lib/defineConfig.ts
36239
- function US(e) {
36204
+ function VS(e) {
36240
36205
  return e;
36241
36206
  }
36242
36207
  //#endregion
36243
36208
  //#region src/index.ts
36244
36209
  process.env.INJECT_PROMPTS && xe.default.inject(JSON.parse(process.env.INJECT_PROMPTS));
36245
- var WS = !1, GS = null;
36210
+ var HS = !1, US = null;
36246
36211
  process.on("unhandledRejection", (e) => {
36247
- console.error(e), WS = !0;
36212
+ console.error(e), HS = !0;
36248
36213
  }), process.on("exit", () => {
36249
- WS && GS && gp(GS, `Unhandled Rejection! This is a bug and should be reported: ${Se.bugs.url}`);
36214
+ HS && US && gp(US, `Unhandled Rejection! This is a bug and should be reported: ${Se.bugs.url}`);
36250
36215
  });
36251
- var KS = (e) => {
36216
+ var WS = (e) => {
36252
36217
  e.global && (process.env.VOLTA_HOME || process.env.PATH?.includes("\\Volta")) && (Y(e, "It appears you are using Volta. `npm-check-updates --global` cannot be used with Volta because Volta has its own system for managing global packages which circumvents npm.\n\nIf you are still receiving this message after uninstalling Volta, ensure your PATH does not contain an entry for Volta and your shell profile does not define VOLTA_HOME. You may need to reboot for changes to your shell profile to take effect.", "error"), process.exit(1));
36253
- }, qS = async (e, n) => {
36218
+ }, GS = async (e, n) => {
36254
36219
  let r = {
36255
36220
  ...e,
36256
36221
  cwd: e.cwd || t.resolve(n, ".."),
@@ -36260,16 +36225,16 @@ var KS = (e) => {
36260
36225
  ...r,
36261
36226
  packageManager: void 0
36262
36227
  }) : e.packageManager && e.packageManager !== "npm" ? e.packageManager : await Ii(r);
36263
- }, JS = (e, t, n) => {
36228
+ }, KS = (e, t, n) => {
36264
36229
  let r = !n.deep && !n.workspaces && !n.workspace ? { [e[0]]: t } : t;
36265
36230
  return Object.values(r).some((e) => Object.keys(e).length > 0);
36266
- }, YS = async (e, n, r) => {
36231
+ }, qS = async (e, n, r) => {
36267
36232
  if (r.install === "never") {
36268
36233
  Y(r, "");
36269
36234
  return;
36270
36235
  }
36271
- if (!JS(e, n, r)) return;
36272
- let i = await qS(r, e[0]), a = `Run ${J.cyan(i + " install")}${e.length > 1 && !r.workspace && !r.workspaces ? " in each project directory" : ""} to install new versions`, o = r.interactive && (process.env.NCU_TESTS || !process.env.NCU_DOCTOR), s;
36236
+ if (!KS(e, n, r)) return;
36237
+ let i = await GS(r, e[0]), a = `Run ${J.cyan(i + " install")}${e.length > 1 && !r.workspace && !r.workspaces ? " in each project directory" : ""} to install new versions`, o = r.interactive && (process.env.NCU_TESTS || !process.env.NCU_DOCTOR), s;
36273
36238
  if (o && r.install === "prompt" && (Y(r, ""), s = await (0, xe.default)({
36274
36239
  type: "confirm",
36275
36240
  name: "value",
@@ -36281,8 +36246,8 @@ var KS = (e) => {
36281
36246
  })), r.install === "always" || o && s.value) {
36282
36247
  r.install === "always" && Y(r, ""), Y(r, "Installing dependencies...");
36283
36248
  let n = r.workspaces || r.workspace?.length ? ["package.json"] : e;
36284
- for await (let e of n) {
36285
- let n = await qS(r, e), i = r.cwd || t.resolve(e, ".."), a = "";
36249
+ for (let e of n) {
36250
+ let n = await GS(r, e), i = r.cwd || t.resolve(e, ".."), a = "";
36286
36251
  try {
36287
36252
  await yu(n, ["install"], {
36288
36253
  stdout: (e) => {
@@ -36305,21 +36270,21 @@ var KS = (e) => {
36305
36270
  }
36306
36271
  } else o || Y(r, `\n${a}.`);
36307
36272
  };
36308
- async function XS(e, n) {
36309
- let [r, i] = await sx(e), a = r.map((e) => e.filepath), o = e.workspaces || !!e.workspace?.length;
36273
+ async function JS(e, n) {
36274
+ let [r, i] = await ax(e), a = r.map((e) => e.filepath), o = e.workspaces || !!e.workspace?.length;
36310
36275
  e.deep = e.deep || o || r.length > 1;
36311
36276
  let s;
36312
36277
  if (e.global) {
36313
- let t = await uS(e);
36278
+ let t = await cS(e);
36314
36279
  return clearTimeout(n), t;
36315
36280
  } else if (e.deep) {
36316
36281
  let n = {};
36317
36282
  for (let [a, o] of r.entries()) {
36318
- let r = a > 0, s = (await dx({
36283
+ let r = a > 0, s = (await lx({
36319
36284
  packageFile: o.filepath,
36320
36285
  options: e
36321
36286
  })).config;
36322
- e.mergeConfig && Object.keys(s).length && (s = zx(e, s));
36287
+ e.mergeConfig && Object.keys(s).length && (s = Lx(e, s));
36323
36288
  let c = {
36324
36289
  ...e,
36325
36290
  ...s,
@@ -36332,24 +36297,24 @@ async function XS(e, n) {
36332
36297
  r && Y(c, ""), Y(c, `${c.upgrade ? "Upgrading" : "Checking"} ${e} catalog dependencies`);
36333
36298
  } else {
36334
36299
  r && Y(c, "");
36335
- let e = await Fy(c);
36300
+ let e = await Ny(c);
36336
36301
  l = e.pkgData, u = e.pkgFile || o.filepath, d = u;
36337
36302
  }
36338
36303
  let f = c.cwd ? t.relative(t.resolve(c.cwd), d).replace(/\\/g, "/") : d;
36339
- n[f] = await HS(c, l, u);
36304
+ n[f] = await BS(c, l, u);
36340
36305
  }
36341
36306
  s = n, e.json && Xr(e, s);
36342
36307
  } else {
36343
36308
  r.length === 1 && r[0].filepath !== (e.packageFile || "package.json") && (e.packageFile = r[0].filepath);
36344
- let { pkgData: t, pkgFile: n } = await Fy(e);
36345
- a.length === 0 && n && (a = [n]), s = await HS(e, t, n);
36309
+ let { pkgData: t, pkgFile: n } = await Ny(e);
36310
+ a.length === 0 && n && (a = [n]), s = await BS(e, t, n);
36346
36311
  }
36347
- return clearTimeout(n), e.errorLevel === 2 && JS(a, s, e) && gp(e, "\nDependencies not up-to-date"), e.upgrade && (e.packageManager === "deno" ? Y(e, "") : await YS(a, s, e)), s;
36312
+ return clearTimeout(n), e.errorLevel === 2 && KS(a, s, e) && gp(e, "\nDependencies not up-to-date"), e.upgrade && (e.packageManager === "deno" ? Y(e, "") : await qS(a, s, e)), s;
36348
36313
  }
36349
- async function ZS(e = {}, { cli: t } = {}) {
36350
- WS = !1;
36351
- let n = await Lx(e, { cli: t });
36352
- GS = n, await Rn(n.color), KS(n), Y(n, "Initializing", "verbose"), n.cacheClear && await mi(n);
36314
+ async function YS(e = {}, { cli: t } = {}) {
36315
+ HS = !1;
36316
+ let n = await Fx(e, { cli: t });
36317
+ US = n, Rn(n.color), WS(n), Y(n, "Initializing", "verbose"), n.cacheClear && await mi(n);
36353
36318
  let r, i = new Promise(() => null);
36354
36319
  if (n.timeout) {
36355
36320
  let e = typeof n.timeout == "string" ? Number.parseInt(n.timeout, 10) : n.timeout;
@@ -36364,11 +36329,11 @@ async function ZS(e = {}, { cli: t } = {}) {
36364
36329
  });
36365
36330
  }
36366
36331
  if (n.doctor) {
36367
- if (n.upgrade) return Promise.race([i, Py(ZS, n)]);
36332
+ if (n.upgrade) return Promise.race([i, My(YS, n)]);
36368
36333
  Y(n, `Usage: ncu --doctor\n\n${typeof ki.doctor.help == "function" ? ki.doctor.help({}) : ki.doctor.help}`, "warn");
36369
- } else return Promise.race([i, XS(n, r)]);
36334
+ } else return Promise.race([i, JS(n, r)]);
36370
36335
  }
36371
36336
  //#endregion
36372
- export { N as _, Di as a, Mn as c, tt as d, ZS as default, ZS as run, US as defineConfig, Ee as f, k as g, D as h, Ai as i, It as l, O as m, dx as n, Rn as o, Se as p, ki as r, Ln as s, nS as t, ft as u, M as v, j as y };
36337
+ export { N as _, Di as a, Mn as c, tt as d, YS as default, YS as run, VS as defineConfig, Ee as f, k as g, D as h, Ai as i, It as l, O as m, lx as n, Rn as o, Se as p, ki as r, Ln as s, eS as t, ft as u, M as v, j as y };
36373
36338
 
36374
36339
  //# sourceMappingURL=index.js.map