@base44-preview/cli 0.0.9-pr.75.1247e76 → 0.0.9-pr.75.b644c97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli/index.js +281 -288
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from "node:module";
3
3
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
4
4
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
5
- import nodePath, { basename, dirname, join, posix, resolve, win32 } from "node:path";
5
+ import path, { basename, dirname, join, posix, resolve, win32 } from "node:path";
6
6
  import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
7
7
  import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
8
8
  import os, { constants, homedir, tmpdir } from "node:os";
@@ -13,7 +13,7 @@ import O from "node:readline";
13
13
  import Stream, { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
14
14
  import { fileURLToPath } from "node:url";
15
15
  import fs$1 from "fs";
16
- import path, { dirname as dirname$1, parse } from "path";
16
+ import path$1, { dirname as dirname$1, parse } from "path";
17
17
  import { finished } from "node:stream/promises";
18
18
  import EE, { EventEmitter as EventEmitter$1 } from "events";
19
19
  import fsPromises, { access, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/promises";
@@ -892,7 +892,7 @@ var require_suggestSimilar = /* @__PURE__ */ __commonJSMin(((exports) => {
892
892
  var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
893
893
  const EventEmitter$2 = __require("node:events").EventEmitter;
894
894
  const childProcess = __require("node:child_process");
895
- const path$15 = __require("node:path");
895
+ const path$16 = __require("node:path");
896
896
  const fs$10 = __require("node:fs");
897
897
  const process$3 = __require("node:process");
898
898
  const { Argument, humanReadableArgName } = require_argument();
@@ -1740,9 +1740,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
1740
1740
  ".cjs"
1741
1741
  ];
1742
1742
  function findFile(baseDir, baseName) {
1743
- const localBin = path$15.resolve(baseDir, baseName);
1743
+ const localBin = path$16.resolve(baseDir, baseName);
1744
1744
  if (fs$10.existsSync(localBin)) return localBin;
1745
- if (sourceExt.includes(path$15.extname(baseName))) return void 0;
1745
+ if (sourceExt.includes(path$16.extname(baseName))) return void 0;
1746
1746
  const foundExt = sourceExt.find((ext) => fs$10.existsSync(`${localBin}${ext}`));
1747
1747
  if (foundExt) return `${localBin}${foundExt}`;
1748
1748
  }
@@ -1757,17 +1757,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
1757
1757
  } catch (err) {
1758
1758
  resolvedScriptPath = this._scriptPath;
1759
1759
  }
1760
- executableDir = path$15.resolve(path$15.dirname(resolvedScriptPath), executableDir);
1760
+ executableDir = path$16.resolve(path$16.dirname(resolvedScriptPath), executableDir);
1761
1761
  }
1762
1762
  if (executableDir) {
1763
1763
  let localFile = findFile(executableDir, executableFile);
1764
1764
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
1765
- const legacyName = path$15.basename(this._scriptPath, path$15.extname(this._scriptPath));
1765
+ const legacyName = path$16.basename(this._scriptPath, path$16.extname(this._scriptPath));
1766
1766
  if (legacyName !== this._name) localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
1767
1767
  }
1768
1768
  executableFile = localFile || executableFile;
1769
1769
  }
1770
- launchWithNode = sourceExt.includes(path$15.extname(executableFile));
1770
+ launchWithNode = sourceExt.includes(path$16.extname(executableFile));
1771
1771
  let proc$1;
1772
1772
  if (process$3.platform !== "win32") if (launchWithNode) {
1773
1773
  args.unshift(executableFile);
@@ -2473,7 +2473,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2473
2473
  * @return {Command}
2474
2474
  */
2475
2475
  nameFromFilename(filename) {
2476
- this._name = path$15.basename(filename, path$15.extname(filename));
2476
+ this._name = path$16.basename(filename, path$16.extname(filename));
2477
2477
  return this;
2478
2478
  }
2479
2479
  /**
@@ -2487,9 +2487,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2487
2487
  * @param {string} [path]
2488
2488
  * @return {(string|null|Command)}
2489
2489
  */
2490
- executableDir(path$16) {
2491
- if (path$16 === void 0) return this._executableDir;
2492
- this._executableDir = path$16;
2490
+ executableDir(path$17) {
2491
+ if (path$17 === void 0) return this._executableDir;
2492
+ this._executableDir = path$17;
2493
2493
  return this;
2494
2494
  }
2495
2495
  /**
@@ -4701,11 +4701,11 @@ function aborted$1(x$2, startIndex = 0) {
4701
4701
  for (let i$1 = startIndex; i$1 < x$2.issues.length; i$1++) if (x$2.issues[i$1]?.continue !== true) return true;
4702
4702
  return false;
4703
4703
  }
4704
- function prefixIssues(path$16, issues) {
4704
+ function prefixIssues(path$17, issues) {
4705
4705
  return issues.map((iss) => {
4706
4706
  var _a$1;
4707
4707
  (_a$1 = iss).path ?? (_a$1.path = []);
4708
- iss.path.unshift(path$16);
4708
+ iss.path.unshift(path$17);
4709
4709
  return iss;
4710
4710
  });
4711
4711
  }
@@ -9180,7 +9180,7 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9180
9180
  //#region node_modules/dotenv/lib/main.js
9181
9181
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9182
9182
  const fs$9 = __require("fs");
9183
- const path$14 = __require("path");
9183
+ const path$15 = __require("path");
9184
9184
  const os$3 = __require("os");
9185
9185
  const crypto = __require("crypto");
9186
9186
  const version = require_package$1().version;
@@ -9318,12 +9318,12 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9318
9318
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
9319
9319
  for (const filepath of options.path) if (fs$9.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
9320
9320
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
9321
- else possibleVaultPath = path$14.resolve(process.cwd(), ".env.vault");
9321
+ else possibleVaultPath = path$15.resolve(process.cwd(), ".env.vault");
9322
9322
  if (fs$9.existsSync(possibleVaultPath)) return possibleVaultPath;
9323
9323
  return null;
9324
9324
  }
9325
9325
  function _resolveHome(envPath) {
9326
- return envPath[0] === "~" ? path$14.join(os$3.homedir(), envPath.slice(1)) : envPath;
9326
+ return envPath[0] === "~" ? path$15.join(os$3.homedir(), envPath.slice(1)) : envPath;
9327
9327
  }
9328
9328
  function _configVault(options) {
9329
9329
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -9336,7 +9336,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9336
9336
  return { parsed };
9337
9337
  }
9338
9338
  function configDotenv(options) {
9339
- const dotenvPath = path$14.resolve(process.cwd(), ".env");
9339
+ const dotenvPath = path$15.resolve(process.cwd(), ".env");
9340
9340
  let encoding = "utf8";
9341
9341
  let processEnv = process.env;
9342
9342
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -9352,11 +9352,11 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9352
9352
  }
9353
9353
  let lastError;
9354
9354
  const parsedAll = {};
9355
- for (const path$16 of optionPaths) try {
9356
- const parsed = DotenvModule.parse(fs$9.readFileSync(path$16, { encoding }));
9355
+ for (const path$17 of optionPaths) try {
9356
+ const parsed = DotenvModule.parse(fs$9.readFileSync(path$17, { encoding }));
9357
9357
  DotenvModule.populate(parsedAll, parsed, options);
9358
9358
  } catch (e$1) {
9359
- if (debug) _debug(`Failed to load ${path$16} ${e$1.message}`);
9359
+ if (debug) _debug(`Failed to load ${path$17} ${e$1.message}`);
9360
9360
  lastError = e$1;
9361
9361
  }
9362
9362
  const populated = DotenvModule.populate(processEnv, parsedAll, options);
@@ -9366,7 +9366,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9366
9366
  const keysCount = Object.keys(populated).length;
9367
9367
  const shortPaths = [];
9368
9368
  for (const filePath of optionPaths) try {
9369
- const relative = path$14.relative(process.cwd(), filePath);
9369
+ const relative = path$15.relative(process.cwd(), filePath);
9370
9370
  shortPaths.push(relative);
9371
9371
  } catch (e$1) {
9372
9372
  if (debug) _debug(`Failed to load ${filePath} ${e$1.message}`);
@@ -9684,7 +9684,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9684
9684
  Object.defineProperty(exports, "__esModule", { value: true });
9685
9685
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
9686
9686
  const os$2 = __require("os");
9687
- const path$13 = __require("path");
9687
+ const path$14 = __require("path");
9688
9688
  const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
9689
9689
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
9690
9690
  /**
@@ -9713,7 +9713,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9713
9713
  }
9714
9714
  exports.unixify = unixify;
9715
9715
  function makeAbsolute(cwd, filepath) {
9716
- return path$13.resolve(cwd, filepath);
9716
+ return path$14.resolve(cwd, filepath);
9717
9717
  }
9718
9718
  exports.makeAbsolute = makeAbsolute;
9719
9719
  function removeLeadingDotSegment(entry) {
@@ -10979,7 +10979,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10979
10979
  //#endregion
10980
10980
  //#region node_modules/micromatch/node_modules/picomatch/lib/constants.js
10981
10981
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10982
- const path$12 = __require("path");
10982
+ const path$13 = __require("path");
10983
10983
  const WIN_SLASH = "\\\\/";
10984
10984
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
10985
10985
  /**
@@ -11104,7 +11104,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11104
11104
  CHAR_UNDERSCORE: 95,
11105
11105
  CHAR_VERTICAL_LINE: 124,
11106
11106
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
11107
- SEP: path$12.sep,
11107
+ SEP: path$13.sep,
11108
11108
  extglobChars(chars) {
11109
11109
  return {
11110
11110
  "!": {
@@ -11143,7 +11143,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11143
11143
  //#endregion
11144
11144
  //#region node_modules/micromatch/node_modules/picomatch/lib/utils.js
11145
11145
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
11146
- const path$11 = __require("path");
11146
+ const path$12 = __require("path");
11147
11147
  const win32 = process.platform === "win32";
11148
11148
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
11149
11149
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -11163,7 +11163,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
11163
11163
  };
11164
11164
  exports.isWindows = (options) => {
11165
11165
  if (options && typeof options.windows === "boolean") return options.windows;
11166
- return win32 === true || path$11.sep === "\\";
11166
+ return win32 === true || path$12.sep === "\\";
11167
11167
  };
11168
11168
  exports.escapeLast = (input, char, lastIdx) => {
11169
11169
  const idx = input.lastIndexOf(char, lastIdx);
@@ -12339,7 +12339,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12339
12339
  //#endregion
12340
12340
  //#region node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
12341
12341
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12342
- const path$10 = __require("path");
12342
+ const path$11 = __require("path");
12343
12343
  const scan = require_scan();
12344
12344
  const parse = require_parse$2();
12345
12345
  const utils = require_utils$3();
@@ -12478,7 +12478,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12478
12478
  * @api public
12479
12479
  */
12480
12480
  picomatch.matchBase = (input, glob, options, posix$1 = utils.isWindows(options)) => {
12481
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$10.basename(input));
12481
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$11.basename(input));
12482
12482
  };
12483
12483
  /**
12484
12484
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -13036,7 +13036,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13036
13036
  var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
13037
13037
  Object.defineProperty(exports, "__esModule", { value: true });
13038
13038
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
13039
- const path$9 = __require("path");
13039
+ const path$10 = __require("path");
13040
13040
  const globParent = require_glob_parent();
13041
13041
  const micromatch = require_micromatch();
13042
13042
  const GLOBSTAR = "**";
@@ -13144,7 +13144,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
13144
13144
  }
13145
13145
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
13146
13146
  function isAffectDepthOfReadingPattern(pattern) {
13147
- const basename$1 = path$9.basename(pattern);
13147
+ const basename$1 = path$10.basename(pattern);
13148
13148
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename$1);
13149
13149
  }
13150
13150
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -13218,7 +13218,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
13218
13218
  }
13219
13219
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
13220
13220
  function isAbsolute(pattern) {
13221
- return path$9.isAbsolute(pattern);
13221
+ return path$10.isAbsolute(pattern);
13222
13222
  }
13223
13223
  exports.isAbsolute = isAbsolute;
13224
13224
  }));
@@ -13461,8 +13461,8 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
13461
13461
  var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13462
13462
  Object.defineProperty(exports, "__esModule", { value: true });
13463
13463
  exports.read = void 0;
13464
- function read(path$16, settings, callback) {
13465
- settings.fs.lstat(path$16, (lstatError, lstat) => {
13464
+ function read(path$17, settings, callback) {
13465
+ settings.fs.lstat(path$17, (lstatError, lstat) => {
13466
13466
  if (lstatError !== null) {
13467
13467
  callFailureCallback(callback, lstatError);
13468
13468
  return;
@@ -13471,7 +13471,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13471
13471
  callSuccessCallback(callback, lstat);
13472
13472
  return;
13473
13473
  }
13474
- settings.fs.stat(path$16, (statError, stat) => {
13474
+ settings.fs.stat(path$17, (statError, stat) => {
13475
13475
  if (statError !== null) {
13476
13476
  if (settings.throwErrorOnBrokenSymbolicLink) {
13477
13477
  callFailureCallback(callback, statError);
@@ -13499,11 +13499,11 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13499
13499
  var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13500
13500
  Object.defineProperty(exports, "__esModule", { value: true });
13501
13501
  exports.read = void 0;
13502
- function read(path$16, settings) {
13503
- const lstat = settings.fs.lstatSync(path$16);
13502
+ function read(path$17, settings) {
13503
+ const lstat = settings.fs.lstatSync(path$17);
13504
13504
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
13505
13505
  try {
13506
- const stat = settings.fs.statSync(path$16);
13506
+ const stat = settings.fs.statSync(path$17);
13507
13507
  if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
13508
13508
  return stat;
13509
13509
  } catch (error) {
@@ -13562,17 +13562,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
13562
13562
  const sync = require_sync$5();
13563
13563
  const settings_1 = require_settings$3();
13564
13564
  exports.Settings = settings_1.default;
13565
- function stat(path$16, optionsOrSettingsOrCallback, callback) {
13565
+ function stat(path$17, optionsOrSettingsOrCallback, callback) {
13566
13566
  if (typeof optionsOrSettingsOrCallback === "function") {
13567
- async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13567
+ async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13568
13568
  return;
13569
13569
  }
13570
- async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13570
+ async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13571
13571
  }
13572
13572
  exports.stat = stat;
13573
- function statSync(path$16, optionsOrSettings) {
13573
+ function statSync(path$17, optionsOrSettings) {
13574
13574
  const settings = getSettings(optionsOrSettings);
13575
- return sync.read(path$16, settings);
13575
+ return sync.read(path$17, settings);
13576
13576
  }
13577
13577
  exports.statSync = statSync;
13578
13578
  function getSettings(settingsOrOptions = {}) {
@@ -13771,16 +13771,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
13771
13771
  return;
13772
13772
  }
13773
13773
  rpl(names.map((name$1) => {
13774
- const path$16 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13774
+ const path$17 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13775
13775
  return (done) => {
13776
- fsStat.stat(path$16, settings.fsStatSettings, (error, stats) => {
13776
+ fsStat.stat(path$17, settings.fsStatSettings, (error, stats) => {
13777
13777
  if (error !== null) {
13778
13778
  done(error);
13779
13779
  return;
13780
13780
  }
13781
13781
  const entry = {
13782
13782
  name: name$1,
13783
- path: path$16,
13783
+ path: path$17,
13784
13784
  dirent: utils.fs.createDirentFromStats(name$1, stats)
13785
13785
  };
13786
13786
  if (settings.stats) entry.stats = stats;
@@ -13877,7 +13877,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
13877
13877
  //#region node_modules/@nodelib/fs.scandir/out/settings.js
13878
13878
  var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13879
13879
  Object.defineProperty(exports, "__esModule", { value: true });
13880
- const path$8 = __require("path");
13880
+ const path$9 = __require("path");
13881
13881
  const fsStat = require_out$3();
13882
13882
  const fs = require_fs();
13883
13883
  var Settings = class {
@@ -13885,7 +13885,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13885
13885
  this._options = _options;
13886
13886
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
13887
13887
  this.fs = fs.createFileSystemAdapter(this._options.fs);
13888
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
13888
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$9.sep);
13889
13889
  this.stats = this._getValue(this._options.stats, false);
13890
13890
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
13891
13891
  this.fsStatSettings = new fsStat.Settings({
@@ -13910,17 +13910,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13910
13910
  const sync = require_sync$4();
13911
13911
  const settings_1 = require_settings$2();
13912
13912
  exports.Settings = settings_1.default;
13913
- function scandir(path$16, optionsOrSettingsOrCallback, callback) {
13913
+ function scandir(path$17, optionsOrSettingsOrCallback, callback) {
13914
13914
  if (typeof optionsOrSettingsOrCallback === "function") {
13915
- async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13915
+ async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13916
13916
  return;
13917
13917
  }
13918
- async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13918
+ async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13919
13919
  }
13920
13920
  exports.scandir = scandir;
13921
- function scandirSync(path$16, optionsOrSettings) {
13921
+ function scandirSync(path$17, optionsOrSettings) {
13922
13922
  const settings = getSettings(optionsOrSettings);
13923
- return sync.read(path$16, settings);
13923
+ return sync.read(path$17, settings);
13924
13924
  }
13925
13925
  exports.scandirSync = scandirSync;
13926
13926
  function getSettings(settingsOrOptions = {}) {
@@ -14490,7 +14490,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
14490
14490
  //#region node_modules/@nodelib/fs.walk/out/settings.js
14491
14491
  var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14492
14492
  Object.defineProperty(exports, "__esModule", { value: true });
14493
- const path$7 = __require("path");
14493
+ const path$8 = __require("path");
14494
14494
  const fsScandir = require_out$2();
14495
14495
  var Settings = class {
14496
14496
  constructor(_options = {}) {
@@ -14500,7 +14500,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14500
14500
  this.deepFilter = this._getValue(this._options.deepFilter, null);
14501
14501
  this.entryFilter = this._getValue(this._options.entryFilter, null);
14502
14502
  this.errorFilter = this._getValue(this._options.errorFilter, null);
14503
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$7.sep);
14503
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
14504
14504
  this.fsScandirSettings = new fsScandir.Settings({
14505
14505
  followSymbolicLinks: this._options.followSymbolicLinks,
14506
14506
  fs: this._options.fs,
@@ -14554,7 +14554,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14554
14554
  //#region node_modules/fast-glob/out/readers/reader.js
14555
14555
  var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14556
14556
  Object.defineProperty(exports, "__esModule", { value: true });
14557
- const path$6 = __require("path");
14557
+ const path$7 = __require("path");
14558
14558
  const fsStat = require_out$3();
14559
14559
  const utils = require_utils$2();
14560
14560
  var Reader = class {
@@ -14567,7 +14567,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14567
14567
  });
14568
14568
  }
14569
14569
  _getFullEntryPath(filepath) {
14570
- return path$6.resolve(this._settings.cwd, filepath);
14570
+ return path$7.resolve(this._settings.cwd, filepath);
14571
14571
  }
14572
14572
  _makeEntry(stats, pattern) {
14573
14573
  const entry = {
@@ -14911,7 +14911,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
14911
14911
  //#region node_modules/fast-glob/out/providers/provider.js
14912
14912
  var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14913
14913
  Object.defineProperty(exports, "__esModule", { value: true });
14914
- const path$5 = __require("path");
14914
+ const path$6 = __require("path");
14915
14915
  const deep_1 = require_deep();
14916
14916
  const entry_1 = require_entry$1();
14917
14917
  const error_1 = require_error();
@@ -14925,7 +14925,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14925
14925
  this.entryTransformer = new entry_2.default(this._settings);
14926
14926
  }
14927
14927
  _getRootDirectory(task) {
14928
- return path$5.resolve(this._settings.cwd, task.base);
14928
+ return path$6.resolve(this._settings.cwd, task.base);
14929
14929
  }
14930
14930
  _getReaderOptions(task) {
14931
14931
  const basePath = task.base === "." ? "" : task.base;
@@ -15378,14 +15378,14 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15378
15378
  makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
15379
15379
  return this._added;
15380
15380
  }
15381
- test(path$16, checkUnignored, mode) {
15381
+ test(path$17, checkUnignored, mode) {
15382
15382
  let ignored = false;
15383
15383
  let unignored = false;
15384
15384
  let matchedRule;
15385
15385
  this._rules.forEach((rule) => {
15386
15386
  const { negative } = rule;
15387
15387
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
15388
- if (!rule[mode].test(path$16)) return;
15388
+ if (!rule[mode].test(path$17)) return;
15389
15389
  ignored = !negative;
15390
15390
  unignored = negative;
15391
15391
  matchedRule = negative ? UNDEFINED : rule;
@@ -15401,13 +15401,13 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15401
15401
  const throwError = (message, Ctor) => {
15402
15402
  throw new Ctor(message);
15403
15403
  };
15404
- const checkPath = (path$16, originalPath, doThrow) => {
15405
- if (!isString(path$16)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
15406
- if (!path$16) return doThrow(`path must not be empty`, TypeError);
15407
- if (checkPath.isNotRelative(path$16)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
15404
+ const checkPath = (path$17, originalPath, doThrow) => {
15405
+ if (!isString(path$17)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
15406
+ if (!path$17) return doThrow(`path must not be empty`, TypeError);
15407
+ if (checkPath.isNotRelative(path$17)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
15408
15408
  return true;
15409
15409
  };
15410
- const isNotRelative = (path$16) => REGEX_TEST_INVALID_PATH.test(path$16);
15410
+ const isNotRelative = (path$17) => REGEX_TEST_INVALID_PATH.test(path$17);
15411
15411
  checkPath.isNotRelative = isNotRelative;
15412
15412
  /* istanbul ignore next */
15413
15413
  checkPath.convert = (p$1) => p$1;
@@ -15430,49 +15430,49 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15430
15430
  return this.add(pattern);
15431
15431
  }
15432
15432
  _test(originalPath, cache$1, checkUnignored, slices) {
15433
- const path$16 = originalPath && checkPath.convert(originalPath);
15434
- checkPath(path$16, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15435
- return this._t(path$16, cache$1, checkUnignored, slices);
15433
+ const path$17 = originalPath && checkPath.convert(originalPath);
15434
+ checkPath(path$17, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15435
+ return this._t(path$17, cache$1, checkUnignored, slices);
15436
15436
  }
15437
- checkIgnore(path$16) {
15438
- if (!REGEX_TEST_TRAILING_SLASH.test(path$16)) return this.test(path$16);
15439
- const slices = path$16.split(SLASH).filter(Boolean);
15437
+ checkIgnore(path$17) {
15438
+ if (!REGEX_TEST_TRAILING_SLASH.test(path$17)) return this.test(path$17);
15439
+ const slices = path$17.split(SLASH).filter(Boolean);
15440
15440
  slices.pop();
15441
15441
  if (slices.length) {
15442
15442
  const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
15443
15443
  if (parent.ignored) return parent;
15444
15444
  }
15445
- return this._rules.test(path$16, false, MODE_CHECK_IGNORE);
15445
+ return this._rules.test(path$17, false, MODE_CHECK_IGNORE);
15446
15446
  }
15447
- _t(path$16, cache$1, checkUnignored, slices) {
15448
- if (path$16 in cache$1) return cache$1[path$16];
15449
- if (!slices) slices = path$16.split(SLASH).filter(Boolean);
15447
+ _t(path$17, cache$1, checkUnignored, slices) {
15448
+ if (path$17 in cache$1) return cache$1[path$17];
15449
+ if (!slices) slices = path$17.split(SLASH).filter(Boolean);
15450
15450
  slices.pop();
15451
- if (!slices.length) return cache$1[path$16] = this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15451
+ if (!slices.length) return cache$1[path$17] = this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15452
15452
  const parent = this._t(slices.join(SLASH) + SLASH, cache$1, checkUnignored, slices);
15453
- return cache$1[path$16] = parent.ignored ? parent : this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15453
+ return cache$1[path$17] = parent.ignored ? parent : this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15454
15454
  }
15455
- ignores(path$16) {
15456
- return this._test(path$16, this._ignoreCache, false).ignored;
15455
+ ignores(path$17) {
15456
+ return this._test(path$17, this._ignoreCache, false).ignored;
15457
15457
  }
15458
15458
  createFilter() {
15459
- return (path$16) => !this.ignores(path$16);
15459
+ return (path$17) => !this.ignores(path$17);
15460
15460
  }
15461
15461
  filter(paths) {
15462
15462
  return makeArray(paths).filter(this.createFilter());
15463
15463
  }
15464
- test(path$16) {
15465
- return this._test(path$16, this._testCache, true);
15464
+ test(path$17) {
15465
+ return this._test(path$17, this._testCache, true);
15466
15466
  }
15467
15467
  };
15468
15468
  const factory = (options) => new Ignore(options);
15469
- const isPathValid = (path$16) => checkPath(path$16 && checkPath.convert(path$16), path$16, RETURN_FALSE);
15469
+ const isPathValid = (path$17) => checkPath(path$17 && checkPath.convert(path$17), path$17, RETURN_FALSE);
15470
15470
  /* istanbul ignore next */
15471
15471
  const setupWindows = () => {
15472
15472
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
15473
15473
  checkPath.convert = makePosix;
15474
15474
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
15475
- checkPath.isNotRelative = (path$16) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$16) || isNotRelative(path$16);
15475
+ checkPath.isNotRelative = (path$17) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$17) || isNotRelative(path$17);
15476
15476
  };
15477
15477
  /* istanbul ignore next */
15478
15478
  if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
@@ -15486,15 +15486,15 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15486
15486
  //#region node_modules/is-path-inside/index.js
15487
15487
  var import_ignore = /* @__PURE__ */ __toESM(require_ignore(), 1);
15488
15488
  function isPathInside(childPath, parentPath) {
15489
- const relation = nodePath.relative(parentPath, childPath);
15490
- return Boolean(relation && relation !== ".." && !relation.startsWith(`..${nodePath.sep}`) && relation !== nodePath.resolve(childPath));
15489
+ const relation = path.relative(parentPath, childPath);
15490
+ return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
15491
15491
  }
15492
15492
 
15493
15493
  //#endregion
15494
15494
  //#region node_modules/slash/index.js
15495
- function slash(path$16) {
15496
- if (path$16.startsWith("\\\\?\\")) return path$16;
15497
- return path$16.replace(/\\/g, "/");
15495
+ function slash(path$17) {
15496
+ if (path$17.startsWith("\\\\?\\")) return path$17;
15497
+ return path$17.replace(/\\/g, "/");
15498
15498
  }
15499
15499
 
15500
15500
  //#endregion
@@ -15580,7 +15580,7 @@ const buildPathChain = (startPath, rootPath) => {
15580
15580
  let currentPath = startPath;
15581
15581
  chain.push(currentPath);
15582
15582
  while (currentPath !== rootPath) {
15583
- const parentPath = nodePath.dirname(currentPath);
15583
+ const parentPath = path.dirname(currentPath);
15584
15584
  if (parentPath === currentPath) break;
15585
15585
  currentPath = parentPath;
15586
15586
  chain.push(currentPath);
@@ -15589,7 +15589,7 @@ const buildPathChain = (startPath, rootPath) => {
15589
15589
  };
15590
15590
  const findGitRootInChain = async (paths, statMethod) => {
15591
15591
  for (const directory of paths) {
15592
- const gitPath = nodePath.join(directory, ".git");
15592
+ const gitPath = path.join(directory, ".git");
15593
15593
  try {
15594
15594
  if (pathHasGitDirectory(await statMethod(gitPath))) return directory;
15595
15595
  } catch {}
@@ -15598,11 +15598,11 @@ const findGitRootInChain = async (paths, statMethod) => {
15598
15598
  const findGitRootSyncUncached = (cwd, fsImplementation) => {
15599
15599
  const statSyncMethod = getStatSyncMethod$1(fsImplementation);
15600
15600
  if (!statSyncMethod) return;
15601
- const currentPath = nodePath.resolve(cwd);
15602
- const { root } = nodePath.parse(currentPath);
15601
+ const currentPath = path.resolve(cwd);
15602
+ const { root } = path.parse(currentPath);
15603
15603
  const chain = buildPathChain(currentPath, root);
15604
15604
  for (const directory of chain) {
15605
- const gitPath = nodePath.join(directory, ".git");
15605
+ const gitPath = path.join(directory, ".git");
15606
15606
  try {
15607
15607
  if (pathHasGitDirectory(statSyncMethod(gitPath))) return directory;
15608
15608
  } catch {}
@@ -15615,8 +15615,8 @@ const findGitRootSync = (cwd, fsImplementation) => {
15615
15615
  const findGitRootAsyncUncached = async (cwd, fsImplementation) => {
15616
15616
  const statMethod = getAsyncStatMethod(fsImplementation);
15617
15617
  if (!statMethod) return findGitRootSync(cwd, fsImplementation);
15618
- const currentPath = nodePath.resolve(cwd);
15619
- const { root } = nodePath.parse(currentPath);
15618
+ const currentPath = path.resolve(cwd);
15619
+ const { root } = path.parse(currentPath);
15620
15620
  return findGitRootInChain(buildPathChain(currentPath, root), statMethod);
15621
15621
  };
15622
15622
  const findGitRoot = async (cwd, fsImplementation) => {
@@ -15631,8 +15631,8 @@ Get paths to all .gitignore files from git root to cwd (inclusive).
15631
15631
  @returns {string[]} Array of .gitignore file paths to search for.
15632
15632
  */
15633
15633
  const isWithinGitRoot = (gitRoot, cwd) => {
15634
- const resolvedGitRoot = nodePath.resolve(gitRoot);
15635
- const resolvedCwd = nodePath.resolve(cwd);
15634
+ const resolvedGitRoot = path.resolve(gitRoot);
15635
+ const resolvedCwd = path.resolve(cwd);
15636
15636
  return resolvedCwd === resolvedGitRoot || isPathInside(resolvedCwd, resolvedGitRoot);
15637
15637
  };
15638
15638
  const getParentGitignorePaths = (gitRoot, cwd) => {
@@ -15640,7 +15640,7 @@ const getParentGitignorePaths = (gitRoot, cwd) => {
15640
15640
  if (typeof cwd !== "string") throw new TypeError("cwd must be a string");
15641
15641
  if (!gitRoot) return [];
15642
15642
  if (!isWithinGitRoot(gitRoot, cwd)) return [];
15643
- return [...buildPathChain(nodePath.resolve(cwd), nodePath.resolve(gitRoot))].reverse().map((directory) => nodePath.join(directory, ".gitignore"));
15643
+ return [...buildPathChain(path.resolve(cwd), path.resolve(gitRoot))].reverse().map((directory) => path.join(directory, ".gitignore"));
15644
15644
  };
15645
15645
  /**
15646
15646
  Convert ignore patterns to fast-glob compatible format.
@@ -15747,18 +15747,18 @@ const applyBaseToPattern = (pattern, base) => {
15747
15747
  const slashIndex = cleanPattern.indexOf("/");
15748
15748
  const hasNonTrailingSlash = slashIndex !== -1 && slashIndex !== cleanPattern.length - 1;
15749
15749
  let result;
15750
- if (!hasNonTrailingSlash) result = nodePath.posix.join(base, "**", cleanPattern);
15751
- else if (cleanPattern.startsWith("/")) result = nodePath.posix.join(base, cleanPattern.slice(1));
15752
- else result = nodePath.posix.join(base, cleanPattern);
15750
+ if (!hasNonTrailingSlash) result = path.posix.join(base, "**", cleanPattern);
15751
+ else if (cleanPattern.startsWith("/")) result = path.posix.join(base, cleanPattern.slice(1));
15752
+ else result = path.posix.join(base, cleanPattern);
15753
15753
  return isNegative ? "!" + result : result;
15754
15754
  };
15755
15755
  const parseIgnoreFile = (file, cwd) => {
15756
- const base = slash(nodePath.relative(cwd, nodePath.dirname(file.filePath)));
15756
+ const base = slash(path.relative(cwd, path.dirname(file.filePath)));
15757
15757
  return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
15758
15758
  };
15759
15759
  const toRelativePath = (fileOrDirectory, cwd) => {
15760
- if (nodePath.isAbsolute(fileOrDirectory)) {
15761
- const relativePath = nodePath.relative(cwd, fileOrDirectory);
15760
+ if (path.isAbsolute(fileOrDirectory)) {
15761
+ const relativePath = path.relative(cwd, fileOrDirectory);
15762
15762
  if (relativePath && !isPathInside(fileOrDirectory, cwd)) return;
15763
15763
  return relativePath;
15764
15764
  }
@@ -15768,11 +15768,11 @@ const toRelativePath = (fileOrDirectory, cwd) => {
15768
15768
  };
15769
15769
  const createIgnorePredicate = (patterns, cwd, baseDir) => {
15770
15770
  const ignores = (0, import_ignore.default)().add(patterns);
15771
- const resolvedCwd = nodePath.normalize(nodePath.resolve(cwd));
15772
- const resolvedBaseDir = nodePath.normalize(nodePath.resolve(baseDir));
15771
+ const resolvedCwd = path.normalize(path.resolve(cwd));
15772
+ const resolvedBaseDir = path.normalize(path.resolve(baseDir));
15773
15773
  return (fileOrDirectory) => {
15774
15774
  fileOrDirectory = toPath$1(fileOrDirectory);
15775
- if (nodePath.normalize(nodePath.resolve(fileOrDirectory)) === resolvedCwd) return false;
15775
+ if (path.normalize(path.resolve(fileOrDirectory)) === resolvedCwd) return false;
15776
15776
  const relativePath = toRelativePath(fileOrDirectory, resolvedBaseDir);
15777
15777
  if (relativePath === void 0) return false;
15778
15778
  return relativePath ? ignores.ignores(slash(relativePath)) : false;
@@ -15847,35 +15847,35 @@ const assertPatternsInput = (patterns) => {
15847
15847
  };
15848
15848
  const getStatMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "stat") ?? bindFsMethod(fs.promises, "stat") ?? promisifyFsMethod(fsImplementation, "stat");
15849
15849
  const getStatSyncMethod = (fsImplementation) => bindFsMethod(fsImplementation, "statSync") ?? bindFsMethod(fs, "statSync");
15850
- const isDirectory = async (path$16, fsImplementation) => {
15850
+ const isDirectory = async (path$17, fsImplementation) => {
15851
15851
  try {
15852
- return (await getStatMethod(fsImplementation)(path$16)).isDirectory();
15852
+ return (await getStatMethod(fsImplementation)(path$17)).isDirectory();
15853
15853
  } catch {
15854
15854
  return false;
15855
15855
  }
15856
15856
  };
15857
- const isDirectorySync = (path$16, fsImplementation) => {
15857
+ const isDirectorySync = (path$17, fsImplementation) => {
15858
15858
  try {
15859
- return getStatSyncMethod(fsImplementation)(path$16).isDirectory();
15859
+ return getStatSyncMethod(fsImplementation)(path$17).isDirectory();
15860
15860
  } catch {
15861
15861
  return false;
15862
15862
  }
15863
15863
  };
15864
15864
  const normalizePathForDirectoryGlob = (filePath, cwd) => {
15865
- const path$16 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15866
- return nodePath.isAbsolute(path$16) ? path$16 : nodePath.join(cwd, path$16);
15865
+ const path$17 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15866
+ return path.isAbsolute(path$17) ? path$17 : path.join(cwd, path$17);
15867
15867
  };
15868
15868
  const shouldExpandGlobstarDirectory = (pattern) => {
15869
15869
  const match = pattern?.match(/\*\*\/([^/]+)$/);
15870
15870
  if (!match) return false;
15871
15871
  const dirname$2 = match[1];
15872
15872
  const hasWildcards = /[*?[\]{}]/.test(dirname$2);
15873
- const hasExtension = nodePath.extname(dirname$2) && !dirname$2.startsWith(".");
15873
+ const hasExtension = path.extname(dirname$2) && !dirname$2.startsWith(".");
15874
15874
  return !hasWildcards && !hasExtension;
15875
15875
  };
15876
15876
  const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
15877
15877
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
15878
- return files ? files.map((file) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file) ? file : `${file}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15878
+ return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15879
15879
  };
15880
15880
  const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
15881
15881
  return (await Promise.all(directoryPaths.map(async (directoryPath) => {
@@ -15990,12 +15990,12 @@ const createFilterFunction = (isIgnored, cwd) => {
15990
15990
  const basePath = cwd || y.cwd();
15991
15991
  const pathCache = /* @__PURE__ */ new Map();
15992
15992
  return (fastGlobResult) => {
15993
- const pathKey$1 = nodePath.normalize(fastGlobResult.path ?? fastGlobResult);
15993
+ const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
15994
15994
  if (seen.has(pathKey$1)) return false;
15995
15995
  if (isIgnored) {
15996
15996
  let absolutePath = pathCache.get(pathKey$1);
15997
15997
  if (absolutePath === void 0) {
15998
- absolutePath = nodePath.isAbsolute(pathKey$1) ? pathKey$1 : nodePath.resolve(basePath, pathKey$1);
15998
+ absolutePath = path.isAbsolute(pathKey$1) ? pathKey$1 : path.resolve(basePath, pathKey$1);
15999
15999
  pathCache.set(pathKey$1, absolutePath);
16000
16000
  if (pathCache.size > 1e4) pathCache.clear();
16001
16001
  }
@@ -17068,9 +17068,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17068
17068
  //#endregion
17069
17069
  //#region src/core/utils/fs.ts
17070
17070
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
17071
- async function pathExists(path$16) {
17071
+ async function pathExists(path$17) {
17072
17072
  try {
17073
- await access(path$16);
17073
+ await access(path$17);
17074
17074
  return true;
17075
17075
  } catch {
17076
17076
  return false;
@@ -17239,14 +17239,7 @@ function toDeployPayloadItem(fn) {
17239
17239
  async function deployFunctions(functions) {
17240
17240
  const appClient = getAppClient();
17241
17241
  const payload = { functions: functions.map(toDeployPayloadItem) };
17242
- const response = await appClient.put("backend-functions/deploy", {
17243
- json: payload,
17244
- throwHttpErrors: false
17245
- });
17246
- if (!response.ok) {
17247
- const errorJson = await response.json();
17248
- throw new Error(`Failed to deploy functions: ${errorJson}`);
17249
- }
17242
+ const response = await appClient.put("backend-functions", { json: payload });
17250
17243
  return DeployFunctionsResponseSchema.parse(await response.json());
17251
17244
  }
17252
17245
 
@@ -17621,7 +17614,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17621
17614
  * @public
17622
17615
  */
17623
17616
  var fs$5 = __require("fs");
17624
- var path$4 = __require("path");
17617
+ var path$5 = __require("path");
17625
17618
  var utils = require_utils();
17626
17619
  var scopeOptionWarned = false;
17627
17620
  /** @type {string} */
@@ -17691,9 +17684,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17691
17684
  * @return {String}
17692
17685
  */
17693
17686
  exports.resolveInclude = function(name$1, filename, isDir) {
17694
- var dirname$2 = path$4.dirname;
17695
- var extname = path$4.extname;
17696
- var resolve$1 = path$4.resolve;
17687
+ var dirname$2 = path$5.dirname;
17688
+ var extname = path$5.extname;
17689
+ var resolve$1 = path$5.resolve;
17697
17690
  var includePath = resolve$1(isDir ? filename : dirname$2(filename), name$1);
17698
17691
  if (!extname(name$1)) includePath += ".ejs";
17699
17692
  return includePath;
@@ -17719,22 +17712,22 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17719
17712
  * @param {Options} options compilation options
17720
17713
  * @return {String}
17721
17714
  */
17722
- function getIncludePath(path$16, options) {
17715
+ function getIncludePath(path$17, options) {
17723
17716
  var includePath;
17724
17717
  var filePath;
17725
17718
  var views = options.views;
17726
- var match = /^[A-Za-z]+:\\|^\//.exec(path$16);
17719
+ var match = /^[A-Za-z]+:\\|^\//.exec(path$17);
17727
17720
  if (match && match.length) {
17728
- path$16 = path$16.replace(/^\/*/, "");
17729
- if (Array.isArray(options.root)) includePath = resolvePaths(path$16, options.root);
17730
- else includePath = exports.resolveInclude(path$16, options.root || "/", true);
17721
+ path$17 = path$17.replace(/^\/*/, "");
17722
+ if (Array.isArray(options.root)) includePath = resolvePaths(path$17, options.root);
17723
+ else includePath = exports.resolveInclude(path$17, options.root || "/", true);
17731
17724
  } else {
17732
17725
  if (options.filename) {
17733
- filePath = exports.resolveInclude(path$16, options.filename);
17726
+ filePath = exports.resolveInclude(path$17, options.filename);
17734
17727
  if (fs$5.existsSync(filePath)) includePath = filePath;
17735
17728
  }
17736
- if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$16, views);
17737
- if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$16) + "\"");
17729
+ if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$17, views);
17730
+ if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$17) + "\"");
17738
17731
  }
17739
17732
  return includePath;
17740
17733
  }
@@ -17826,11 +17819,11 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17826
17819
  * Depending on the value of `options.client`, either type might be returned
17827
17820
  * @static
17828
17821
  */
17829
- function includeFile(path$16, options) {
17822
+ function includeFile(path$17, options) {
17830
17823
  var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
17831
- opts.filename = getIncludePath(path$16, opts);
17824
+ opts.filename = getIncludePath(path$17, opts);
17832
17825
  if (typeof options.includer === "function") {
17833
- var includerResult = options.includer(path$16, opts.filename);
17826
+ var includerResult = options.includer(path$17, opts.filename);
17834
17827
  if (includerResult) {
17835
17828
  if (includerResult.filename) opts.filename = includerResult.filename;
17836
17829
  if (includerResult.template) return handleCache(opts, includerResult.template);
@@ -18081,10 +18074,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
18081
18074
  throw e$1;
18082
18075
  }
18083
18076
  var returnedFn = opts.client ? fn : function anonymous(data) {
18084
- var include = function(path$16, includeData) {
18077
+ var include = function(path$17, includeData) {
18085
18078
  var d$2 = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
18086
18079
  if (includeData) d$2 = utils.shallowCopy(d$2, includeData);
18087
- return includeFile(path$16, opts)(d$2);
18080
+ return includeFile(path$17, opts)(d$2);
18088
18081
  };
18089
18082
  return fn.apply(opts.context, [
18090
18083
  data || utils.createNullProtoObjWherePossible(),
@@ -18095,7 +18088,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
18095
18088
  };
18096
18089
  if (opts.filename && typeof Object.defineProperty === "function") {
18097
18090
  var filename = opts.filename;
18098
- var basename$1 = path$4.basename(filename, path$4.extname(filename));
18091
+ var basename$1 = path$5.basename(filename, path$5.extname(filename));
18099
18092
  try {
18100
18093
  Object.defineProperty(returnedFn, "name", {
18101
18094
  value: basename$1,
@@ -27400,15 +27393,15 @@ var ReadStream = class extends Minipass {
27400
27393
  [_size];
27401
27394
  [_remain];
27402
27395
  [_autoClose];
27403
- constructor(path$16, opt) {
27396
+ constructor(path$17, opt) {
27404
27397
  opt = opt || {};
27405
27398
  super(opt);
27406
27399
  this.readable = true;
27407
27400
  this.writable = false;
27408
- if (typeof path$16 !== "string") throw new TypeError("path must be a string");
27401
+ if (typeof path$17 !== "string") throw new TypeError("path must be a string");
27409
27402
  this[_errored] = false;
27410
27403
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27411
- this[_path] = path$16;
27404
+ this[_path] = path$17;
27412
27405
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
27413
27406
  this[_reading] = false;
27414
27407
  this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -27550,10 +27543,10 @@ var WriteStream = class extends EE {
27550
27543
  [_flags];
27551
27544
  [_finished] = false;
27552
27545
  [_pos];
27553
- constructor(path$16, opt) {
27546
+ constructor(path$17, opt) {
27554
27547
  opt = opt || {};
27555
27548
  super(opt);
27556
- this[_path] = path$16;
27549
+ this[_path] = path$17;
27557
27550
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27558
27551
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
27559
27552
  this[_pos] = typeof opt.start === "number" ? opt.start : void 0;
@@ -28312,10 +28305,10 @@ var Header = class {
28312
28305
  if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
28313
28306
  const prefixSize = this.ctime || this.atime ? 130 : 155;
28314
28307
  const split = splitPrefix(this.path || "", prefixSize);
28315
- const path$16 = split[0];
28308
+ const path$17 = split[0];
28316
28309
  const prefix = split[1];
28317
28310
  this.needPax = !!split[2];
28318
- this.needPax = encString(buf, off, 100, path$16) || this.needPax;
28311
+ this.needPax = encString(buf, off, 100, path$17) || this.needPax;
28319
28312
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
28320
28313
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
28321
28314
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -29154,16 +29147,16 @@ const modeFix = (mode, isDir, portable) => {
29154
29147
  //#endregion
29155
29148
  //#region node_modules/tar/dist/esm/strip-absolute-path.js
29156
29149
  const { isAbsolute, parse: parse$1 } = win32;
29157
- const stripAbsolutePath = (path$16) => {
29150
+ const stripAbsolutePath = (path$17) => {
29158
29151
  let r$1 = "";
29159
- let parsed = parse$1(path$16);
29160
- while (isAbsolute(path$16) || parsed.root) {
29161
- const root = path$16.charAt(0) === "/" && path$16.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29162
- path$16 = path$16.slice(root.length);
29152
+ let parsed = parse$1(path$17);
29153
+ while (isAbsolute(path$17) || parsed.root) {
29154
+ const root = path$17.charAt(0) === "/" && path$17.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29155
+ path$17 = path$17.slice(root.length);
29163
29156
  r$1 += root;
29164
- parsed = parse$1(path$16);
29157
+ parsed = parse$1(path$17);
29165
29158
  }
29166
- return [r$1, path$16];
29159
+ return [r$1, path$17];
29167
29160
  };
29168
29161
 
29169
29162
  //#endregion
@@ -29183,10 +29176,10 @@ const decode = (s) => win.reduce((s$1, c$1) => s$1.split(c$1).join(toRaw.get(c$1
29183
29176
 
29184
29177
  //#endregion
29185
29178
  //#region node_modules/tar/dist/esm/write-entry.js
29186
- const prefixPath = (path$16, prefix) => {
29187
- if (!prefix) return normalizeWindowsPath(path$16);
29188
- path$16 = normalizeWindowsPath(path$16).replace(/^\.(\/|$)/, "");
29189
- return stripTrailingSlashes(prefix) + "/" + path$16;
29179
+ const prefixPath = (path$17, prefix) => {
29180
+ if (!prefix) return normalizeWindowsPath(path$17);
29181
+ path$17 = normalizeWindowsPath(path$17).replace(/^\.(\/|$)/, "");
29182
+ return stripTrailingSlashes(prefix) + "/" + path$17;
29190
29183
  };
29191
29184
  const maxReadSize = 16 * 1024 * 1024;
29192
29185
  const PROCESS$1 = Symbol("process");
@@ -29268,7 +29261,7 @@ var WriteEntry = class extends Minipass {
29268
29261
  this.path = decode(this.path.replace(/\\/g, "/"));
29269
29262
  p$1 = p$1.replace(/\\/g, "/");
29270
29263
  }
29271
- this.absolute = normalizeWindowsPath(opt.absolute || path.resolve(this.cwd, p$1));
29264
+ this.absolute = normalizeWindowsPath(opt.absolute || path$1.resolve(this.cwd, p$1));
29272
29265
  if (this.path === "") this.path = "./";
29273
29266
  if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
29274
29267
  entry: this,
@@ -29310,8 +29303,8 @@ var WriteEntry = class extends Minipass {
29310
29303
  [MODE](mode) {
29311
29304
  return modeFix(mode, this.type === "Directory", this.portable);
29312
29305
  }
29313
- [PREFIX](path$16) {
29314
- return prefixPath(path$16, this.prefix);
29306
+ [PREFIX](path$17) {
29307
+ return prefixPath(path$17, this.prefix);
29315
29308
  }
29316
29309
  [HEADER]() {
29317
29310
  /* c8 ignore start */
@@ -29377,7 +29370,7 @@ var WriteEntry = class extends Minipass {
29377
29370
  if (!this.stat) throw new Error("cannot create link entry without stat");
29378
29371
  /* c8 ignore stop */
29379
29372
  this.type = "Link";
29380
- this.linkpath = normalizeWindowsPath(path.relative(this.cwd, linkpath));
29373
+ this.linkpath = normalizeWindowsPath(path$1.relative(this.cwd, linkpath));
29381
29374
  this.stat.size = 0;
29382
29375
  this[HEADER]();
29383
29376
  this.end();
@@ -29643,8 +29636,8 @@ var WriteEntryTar = class extends Minipass {
29643
29636
  super.write(b$2);
29644
29637
  readEntry.pipe(this);
29645
29638
  }
29646
- [PREFIX](path$16) {
29647
- return prefixPath(path$16, this.prefix);
29639
+ [PREFIX](path$17) {
29640
+ return prefixPath(path$17, this.prefix);
29648
29641
  }
29649
29642
  [MODE](mode) {
29650
29643
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -29953,8 +29946,8 @@ var PackJob = class {
29953
29946
  pending = false;
29954
29947
  ignore = false;
29955
29948
  piped = false;
29956
- constructor(path$16, absolute) {
29957
- this.path = path$16 || "./";
29949
+ constructor(path$17, absolute) {
29950
+ this.path = path$17 || "./";
29958
29951
  this.absolute = absolute;
29959
29952
  }
29960
29953
  };
@@ -30059,36 +30052,36 @@ var Pack = class extends Minipass {
30059
30052
  [WRITE](chunk) {
30060
30053
  return super.write(chunk);
30061
30054
  }
30062
- add(path$16) {
30063
- this.write(path$16);
30055
+ add(path$17) {
30056
+ this.write(path$17);
30064
30057
  return this;
30065
30058
  }
30066
- end(path$16, encoding, cb) {
30059
+ end(path$17, encoding, cb) {
30067
30060
  /* c8 ignore start */
30068
- if (typeof path$16 === "function") {
30069
- cb = path$16;
30070
- path$16 = void 0;
30061
+ if (typeof path$17 === "function") {
30062
+ cb = path$17;
30063
+ path$17 = void 0;
30071
30064
  }
30072
30065
  if (typeof encoding === "function") {
30073
30066
  cb = encoding;
30074
30067
  encoding = void 0;
30075
30068
  }
30076
30069
  /* c8 ignore stop */
30077
- if (path$16) this.add(path$16);
30070
+ if (path$17) this.add(path$17);
30078
30071
  this[ENDED$1] = true;
30079
30072
  this[PROCESS]();
30080
30073
  /* c8 ignore next */
30081
30074
  if (cb) cb();
30082
30075
  return this;
30083
30076
  }
30084
- write(path$16) {
30077
+ write(path$17) {
30085
30078
  if (this[ENDED$1]) throw new Error("write after end");
30086
- if (path$16 instanceof ReadEntry) this[ADDTARENTRY](path$16);
30087
- else this[ADDFSENTRY](path$16);
30079
+ if (path$17 instanceof ReadEntry) this[ADDTARENTRY](path$17);
30080
+ else this[ADDFSENTRY](path$17);
30088
30081
  return this.flowing;
30089
30082
  }
30090
30083
  [ADDTARENTRY](p$1) {
30091
- const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1.path));
30084
+ const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1.path));
30092
30085
  if (!this.filter(p$1.path, p$1)) p$1.resume();
30093
30086
  else {
30094
30087
  const job = new PackJob(p$1.path, absolute);
@@ -30100,7 +30093,7 @@ var Pack = class extends Minipass {
30100
30093
  this[PROCESS]();
30101
30094
  }
30102
30095
  [ADDFSENTRY](p$1) {
30103
- const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1));
30096
+ const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1));
30104
30097
  this[QUEUE].push(new PackJob(p$1, absolute));
30105
30098
  this[PROCESS]();
30106
30099
  }
@@ -30301,7 +30294,7 @@ const createFile = (opt, files) => {
30301
30294
  const addFilesSync$1 = (p$1, files) => {
30302
30295
  files.forEach((file) => {
30303
30296
  if (file.charAt(0) === "@") list({
30304
- file: nodePath.resolve(p$1.cwd, file.slice(1)),
30297
+ file: path.resolve(p$1.cwd, file.slice(1)),
30305
30298
  sync: true,
30306
30299
  noResume: true,
30307
30300
  onReadEntry: (entry) => p$1.add(entry)
@@ -30314,7 +30307,7 @@ const addFilesAsync$1 = async (p$1, files) => {
30314
30307
  for (let i$1 = 0; i$1 < files.length; i$1++) {
30315
30308
  const file = String(files[i$1]);
30316
30309
  if (file.charAt(0) === "@") await list({
30317
- file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
30310
+ file: path.resolve(String(p$1.cwd), file.slice(1)),
30318
30311
  noResume: true,
30319
30312
  onReadEntry: (entry) => {
30320
30313
  p$1.add(entry);
@@ -30352,9 +30345,9 @@ const getWriteFlag = !fMapEnabled ? () => "w" : (size) => size < fMapLimit ? fMa
30352
30345
 
30353
30346
  //#endregion
30354
30347
  //#region node_modules/chownr/dist/esm/index.js
30355
- const lchownSync = (path$16, uid, gid) => {
30348
+ const lchownSync = (path$17, uid, gid) => {
30356
30349
  try {
30357
- return fs.lchownSync(path$16, uid, gid);
30350
+ return fs.lchownSync(path$17, uid, gid);
30358
30351
  } catch (er) {
30359
30352
  if (er?.code !== "ENOENT") throw er;
30360
30353
  }
@@ -30365,11 +30358,11 @@ const chown = (cpath, uid, gid, cb) => {
30365
30358
  });
30366
30359
  };
30367
30360
  const chownrKid = (p$1, child, uid, gid, cb) => {
30368
- if (child.isDirectory()) chownr(nodePath.resolve(p$1, child.name), uid, gid, (er) => {
30361
+ if (child.isDirectory()) chownr(path.resolve(p$1, child.name), uid, gid, (er) => {
30369
30362
  if (er) return cb(er);
30370
- chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30363
+ chown(path.resolve(p$1, child.name), uid, gid, cb);
30371
30364
  });
30372
- else chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30365
+ else chown(path.resolve(p$1, child.name), uid, gid, cb);
30373
30366
  };
30374
30367
  const chownr = (p$1, uid, gid, cb) => {
30375
30368
  fs.readdir(p$1, { withFileTypes: true }, (er, children) => {
@@ -30391,8 +30384,8 @@ const chownr = (p$1, uid, gid, cb) => {
30391
30384
  });
30392
30385
  };
30393
30386
  const chownrKidSync = (p$1, child, uid, gid) => {
30394
- if (child.isDirectory()) chownrSync(nodePath.resolve(p$1, child.name), uid, gid);
30395
- lchownSync(nodePath.resolve(p$1, child.name), uid, gid);
30387
+ if (child.isDirectory()) chownrSync(path.resolve(p$1, child.name), uid, gid);
30388
+ lchownSync(path.resolve(p$1, child.name), uid, gid);
30396
30389
  };
30397
30390
  const chownrSync = (p$1, uid, gid) => {
30398
30391
  let children;
@@ -30414,9 +30407,9 @@ var CwdError = class extends Error {
30414
30407
  path;
30415
30408
  code;
30416
30409
  syscall = "chdir";
30417
- constructor(path$16, code$1) {
30418
- super(`${code$1}: Cannot cd into '${path$16}'`);
30419
- this.path = path$16;
30410
+ constructor(path$17, code$1) {
30411
+ super(`${code$1}: Cannot cd into '${path$17}'`);
30412
+ this.path = path$17;
30420
30413
  this.code = code$1;
30421
30414
  }
30422
30415
  get name() {
@@ -30431,10 +30424,10 @@ var SymlinkError = class extends Error {
30431
30424
  symlink;
30432
30425
  syscall = "symlink";
30433
30426
  code = "TAR_SYMLINK_ERROR";
30434
- constructor(symlink, path$16) {
30427
+ constructor(symlink, path$17) {
30435
30428
  super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");
30436
30429
  this.symlink = symlink;
30437
- this.path = path$16;
30430
+ this.path = path$17;
30438
30431
  }
30439
30432
  get name() {
30440
30433
  return "SymlinkError";
@@ -30480,12 +30473,12 @@ const mkdir$1 = (dir, opt, cb) => {
30480
30473
  mode,
30481
30474
  recursive: true
30482
30475
  }).then((made) => done(null, made ?? void 0), done);
30483
- mkdir_(cwd, normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30476
+ mkdir_(cwd, normalizeWindowsPath(path.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30484
30477
  };
30485
30478
  const mkdir_ = (base, parts, mode, unlink$1, cwd, created, cb) => {
30486
30479
  if (!parts.length) return cb(null, created);
30487
30480
  const p$1 = parts.shift();
30488
- const part = normalizeWindowsPath(nodePath.resolve(base + "/" + p$1));
30481
+ const part = normalizeWindowsPath(path.resolve(base + "/" + p$1));
30489
30482
  fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink$1, cwd, created, cb));
30490
30483
  };
30491
30484
  const onmkdir = (part, parts, mode, unlink$1, cwd, created, cb) => (er) => {
@@ -30541,10 +30534,10 @@ const mkdirSync = (dir, opt) => {
30541
30534
  mode,
30542
30535
  recursive: true
30543
30536
  }) ?? void 0);
30544
- const parts = normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/");
30537
+ const parts = normalizeWindowsPath(path.relative(cwd, dir)).split("/");
30545
30538
  let created = void 0;
30546
30539
  for (let p$1 = parts.shift(), part = cwd; p$1 && (part += "/" + p$1); p$1 = parts.shift()) {
30547
- part = normalizeWindowsPath(nodePath.resolve(part));
30540
+ part = normalizeWindowsPath(path.resolve(part));
30548
30541
  try {
30549
30542
  fs.mkdirSync(part, mode);
30550
30543
  created = created || part;
@@ -30584,11 +30577,11 @@ const normalizeUnicode = (s) => {
30584
30577
  //#endregion
30585
30578
  //#region node_modules/tar/dist/esm/path-reservations.js
30586
30579
  const isWindows$1 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30587
- const getDirs = (path$16) => {
30588
- return path$16.split("/").slice(0, -1).reduce((set, path$17) => {
30580
+ const getDirs = (path$17) => {
30581
+ return path$17.split("/").slice(0, -1).reduce((set, path$18) => {
30589
30582
  const s = set[set.length - 1];
30590
- if (s !== void 0) path$17 = join(s, path$17);
30591
- set.push(path$17 || "/");
30583
+ if (s !== void 0) path$18 = join(s, path$18);
30584
+ set.push(path$18 || "/");
30592
30585
  return set;
30593
30586
  }, []);
30594
30587
  };
@@ -30600,7 +30593,7 @@ var PathReservations = class {
30600
30593
  paths = isWindows$1 ? ["win32 parallelization disabled"] : paths.map((p$1) => {
30601
30594
  return stripTrailingSlashes(join(normalizeUnicode(p$1))).toLowerCase();
30602
30595
  });
30603
- const dirs = new Set(paths.map((path$16) => getDirs(path$16)).reduce((a$1, b$2) => a$1.concat(b$2)));
30596
+ const dirs = new Set(paths.map((path$17) => getDirs(path$17)).reduce((a$1, b$2) => a$1.concat(b$2)));
30604
30597
  this.#reservations.set(fn, {
30605
30598
  dirs,
30606
30599
  paths
@@ -30627,8 +30620,8 @@ var PathReservations = class {
30627
30620
  if (!res) throw new Error("function does not have any path reservations");
30628
30621
  /* c8 ignore stop */
30629
30622
  return {
30630
- paths: res.paths.map((path$16) => this.#queues.get(path$16)),
30631
- dirs: [...res.dirs].map((path$16) => this.#queues.get(path$16))
30623
+ paths: res.paths.map((path$17) => this.#queues.get(path$17)),
30624
+ dirs: [...res.dirs].map((path$17) => this.#queues.get(path$17))
30632
30625
  };
30633
30626
  }
30634
30627
  check(fn) {
@@ -30649,14 +30642,14 @@ var PathReservations = class {
30649
30642
  /* c8 ignore stop */
30650
30643
  const { paths, dirs } = res;
30651
30644
  const next = /* @__PURE__ */ new Set();
30652
- for (const path$16 of paths) {
30653
- const q$2 = this.#queues.get(path$16);
30645
+ for (const path$17 of paths) {
30646
+ const q$2 = this.#queues.get(path$17);
30654
30647
  /* c8 ignore start */
30655
30648
  if (!q$2 || q$2?.[0] !== fn) continue;
30656
30649
  /* c8 ignore stop */
30657
30650
  const q0 = q$2[1];
30658
30651
  if (!q0) {
30659
- this.#queues.delete(path$16);
30652
+ this.#queues.delete(path$17);
30660
30653
  continue;
30661
30654
  }
30662
30655
  q$2.shift();
@@ -30713,20 +30706,20 @@ const CHECKED_CWD = Symbol("checkedCwd");
30713
30706
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30714
30707
  const DEFAULT_MAX_DEPTH = 1024;
30715
30708
  /* c8 ignore start */
30716
- const unlinkFile = (path$16, cb) => {
30717
- if (!isWindows) return fs.unlink(path$16, cb);
30718
- const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30719
- fs.rename(path$16, name$1, (er) => {
30709
+ const unlinkFile = (path$17, cb) => {
30710
+ if (!isWindows) return fs.unlink(path$17, cb);
30711
+ const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30712
+ fs.rename(path$17, name$1, (er) => {
30720
30713
  if (er) return cb(er);
30721
30714
  fs.unlink(name$1, cb);
30722
30715
  });
30723
30716
  };
30724
30717
  /* c8 ignore stop */
30725
30718
  /* c8 ignore start */
30726
- const unlinkFileSync = (path$16) => {
30727
- if (!isWindows) return fs.unlinkSync(path$16);
30728
- const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30729
- fs.renameSync(path$16, name$1);
30719
+ const unlinkFileSync = (path$17) => {
30720
+ if (!isWindows) return fs.unlinkSync(path$17);
30721
+ const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30722
+ fs.renameSync(path$17, name$1);
30730
30723
  fs.unlinkSync(name$1);
30731
30724
  };
30732
30725
  /* c8 ignore stop */
@@ -30791,7 +30784,7 @@ var Unpack = class extends Parser {
30791
30784
  this.noMtime = !!opt.noMtime;
30792
30785
  this.preservePaths = !!opt.preservePaths;
30793
30786
  this.unlink = !!opt.unlink;
30794
- this.cwd = normalizeWindowsPath(nodePath.resolve(opt.cwd || process.cwd()));
30787
+ this.cwd = normalizeWindowsPath(path.resolve(opt.cwd || process.cwd()));
30795
30788
  this.strip = Number(opt.strip) || 0;
30796
30789
  this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
30797
30790
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -30811,22 +30804,22 @@ var Unpack = class extends Parser {
30811
30804
  }
30812
30805
  }
30813
30806
  [STRIPABSOLUTEPATH](entry, field) {
30814
- const path$16 = entry[field];
30815
- if (!path$16 || this.preservePaths) return true;
30816
- const parts = path$16.split("/");
30807
+ const path$17 = entry[field];
30808
+ if (!path$17 || this.preservePaths) return true;
30809
+ const parts = path$17.split("/");
30817
30810
  if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
30818
30811
  this.warn("TAR_ENTRY_ERROR", `${field} contains '..'`, {
30819
30812
  entry,
30820
- [field]: path$16
30813
+ [field]: path$17
30821
30814
  });
30822
30815
  return false;
30823
30816
  }
30824
- const [root, stripped] = stripAbsolutePath(path$16);
30817
+ const [root, stripped] = stripAbsolutePath(path$17);
30825
30818
  if (root) {
30826
30819
  entry[field] = String(stripped);
30827
30820
  this.warn("TAR_ENTRY_INFO", `stripping ${root} from absolute ${field}`, {
30828
30821
  entry,
30829
- [field]: path$16
30822
+ [field]: path$17
30830
30823
  });
30831
30824
  }
30832
30825
  return true;
@@ -30854,8 +30847,8 @@ var Unpack = class extends Parser {
30854
30847
  return false;
30855
30848
  }
30856
30849
  if (!this[STRIPABSOLUTEPATH](entry, "path") || !this[STRIPABSOLUTEPATH](entry, "linkpath")) return false;
30857
- if (nodePath.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(nodePath.resolve(entry.path));
30858
- else entry.absolute = normalizeWindowsPath(nodePath.resolve(this.cwd, entry.path));
30850
+ if (path.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(path.resolve(entry.path));
30851
+ else entry.absolute = normalizeWindowsPath(path.resolve(this.cwd, entry.path));
30859
30852
  /* c8 ignore start - defense in depth */
30860
30853
  if (!this.preservePaths && typeof entry.absolute === "string" && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
30861
30854
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -30869,9 +30862,9 @@ var Unpack = class extends Parser {
30869
30862
  /* c8 ignore stop */
30870
30863
  if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
30871
30864
  if (this.win32) {
30872
- const { root: aRoot } = nodePath.win32.parse(String(entry.absolute));
30865
+ const { root: aRoot } = path.win32.parse(String(entry.absolute));
30873
30866
  entry.absolute = aRoot + encode(String(entry.absolute).slice(aRoot.length));
30874
- const { root: pRoot } = nodePath.win32.parse(entry.path);
30867
+ const { root: pRoot } = path.win32.parse(entry.path);
30875
30868
  entry.path = pRoot + encode(entry.path.slice(pRoot.length));
30876
30869
  }
30877
30870
  return true;
@@ -31017,7 +31010,7 @@ var Unpack = class extends Parser {
31017
31010
  this[LINK](entry, String(entry.linkpath), "symlink", done);
31018
31011
  }
31019
31012
  [HARDLINK](entry, done) {
31020
- const linkpath = normalizeWindowsPath(nodePath.resolve(this.cwd, String(entry.linkpath)));
31013
+ const linkpath = normalizeWindowsPath(path.resolve(this.cwd, String(entry.linkpath)));
31021
31014
  this[LINK](entry, linkpath, "link", done);
31022
31015
  }
31023
31016
  [PEND]() {
@@ -31057,7 +31050,7 @@ var Unpack = class extends Parser {
31057
31050
  };
31058
31051
  const start = () => {
31059
31052
  if (entry.absolute !== this.cwd) {
31060
- const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31053
+ const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31061
31054
  if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
31062
31055
  if (er) {
31063
31056
  this[ONERROR](er, entry);
@@ -31139,7 +31132,7 @@ var UnpackSync = class extends Unpack {
31139
31132
  this[CHECKED_CWD] = true;
31140
31133
  }
31141
31134
  if (entry.absolute !== this.cwd) {
31142
- const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31135
+ const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31143
31136
  if (parent !== this.cwd) {
31144
31137
  const mkParent = this[MKDIR](parent, this.dmode);
31145
31138
  if (mkParent) return this[ONERROR](mkParent, entry);
@@ -31411,7 +31404,7 @@ const replaceAsync = (opt, files) => {
31411
31404
  const addFilesSync = (p$1, files) => {
31412
31405
  files.forEach((file) => {
31413
31406
  if (file.charAt(0) === "@") list({
31414
- file: nodePath.resolve(p$1.cwd, file.slice(1)),
31407
+ file: path.resolve(p$1.cwd, file.slice(1)),
31415
31408
  sync: true,
31416
31409
  noResume: true,
31417
31410
  onReadEntry: (entry) => p$1.add(entry)
@@ -31424,7 +31417,7 @@ const addFilesAsync = async (p$1, files) => {
31424
31417
  for (let i$1 = 0; i$1 < files.length; i$1++) {
31425
31418
  const file = String(files[i$1]);
31426
31419
  if (file.charAt(0) === "@") await list({
31427
- file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
31420
+ file: path.resolve(String(p$1.cwd), file.slice(1)),
31428
31421
  noResume: true,
31429
31422
  onReadEntry: (entry) => p$1.add(entry)
31430
31423
  });
@@ -31459,7 +31452,7 @@ const update = makeCommand(replace.syncFile, replace.asyncFile, replace.syncNoFi
31459
31452
  const mtimeFilter = (opt) => {
31460
31453
  const filter = opt.filter;
31461
31454
  if (!opt.mtimeCache) opt.mtimeCache = /* @__PURE__ */ new Map();
31462
- opt.filter = filter ? (path$16, stat) => filter(path$16, stat) && !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path$16, stat) => !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
31455
+ opt.filter = filter ? (path$17, stat) => filter(path$17, stat) && !((opt.mtimeCache?.get(path$17) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path$17, stat) => !((opt.mtimeCache?.get(path$17) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
31463
31456
  };
31464
31457
 
31465
31458
  //#endregion
@@ -32321,28 +32314,28 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32321
32314
  module.exports = isexe;
32322
32315
  isexe.sync = sync;
32323
32316
  var fs$4 = __require("fs");
32324
- function checkPathExt(path$16, options) {
32317
+ function checkPathExt(path$17, options) {
32325
32318
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
32326
32319
  if (!pathext) return true;
32327
32320
  pathext = pathext.split(";");
32328
32321
  if (pathext.indexOf("") !== -1) return true;
32329
32322
  for (var i$1 = 0; i$1 < pathext.length; i$1++) {
32330
32323
  var p$1 = pathext[i$1].toLowerCase();
32331
- if (p$1 && path$16.substr(-p$1.length).toLowerCase() === p$1) return true;
32324
+ if (p$1 && path$17.substr(-p$1.length).toLowerCase() === p$1) return true;
32332
32325
  }
32333
32326
  return false;
32334
32327
  }
32335
- function checkStat(stat, path$16, options) {
32328
+ function checkStat(stat, path$17, options) {
32336
32329
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
32337
- return checkPathExt(path$16, options);
32330
+ return checkPathExt(path$17, options);
32338
32331
  }
32339
- function isexe(path$16, options, cb) {
32340
- fs$4.stat(path$16, function(er, stat) {
32341
- cb(er, er ? false : checkStat(stat, path$16, options));
32332
+ function isexe(path$17, options, cb) {
32333
+ fs$4.stat(path$17, function(er, stat) {
32334
+ cb(er, er ? false : checkStat(stat, path$17, options));
32342
32335
  });
32343
32336
  }
32344
- function sync(path$16, options) {
32345
- return checkStat(fs$4.statSync(path$16), path$16, options);
32337
+ function sync(path$17, options) {
32338
+ return checkStat(fs$4.statSync(path$17), path$17, options);
32346
32339
  }
32347
32340
  }));
32348
32341
 
@@ -32352,13 +32345,13 @@ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32352
32345
  module.exports = isexe;
32353
32346
  isexe.sync = sync;
32354
32347
  var fs$3 = __require("fs");
32355
- function isexe(path$16, options, cb) {
32356
- fs$3.stat(path$16, function(er, stat) {
32348
+ function isexe(path$17, options, cb) {
32349
+ fs$3.stat(path$17, function(er, stat) {
32357
32350
  cb(er, er ? false : checkStat(stat, options));
32358
32351
  });
32359
32352
  }
32360
- function sync(path$16, options) {
32361
- return checkStat(fs$3.statSync(path$16), options);
32353
+ function sync(path$17, options) {
32354
+ return checkStat(fs$3.statSync(path$17), options);
32362
32355
  }
32363
32356
  function checkStat(stat, options) {
32364
32357
  return stat.isFile() && checkMode(stat, options);
@@ -32386,7 +32379,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32386
32379
  else core = require_mode();
32387
32380
  module.exports = isexe;
32388
32381
  isexe.sync = sync;
32389
- function isexe(path$16, options, cb) {
32382
+ function isexe(path$17, options, cb) {
32390
32383
  if (typeof options === "function") {
32391
32384
  cb = options;
32392
32385
  options = {};
@@ -32394,13 +32387,13 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32394
32387
  if (!cb) {
32395
32388
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
32396
32389
  return new Promise(function(resolve$1, reject) {
32397
- isexe(path$16, options || {}, function(er, is) {
32390
+ isexe(path$17, options || {}, function(er, is) {
32398
32391
  if (er) reject(er);
32399
32392
  else resolve$1(is);
32400
32393
  });
32401
32394
  });
32402
32395
  }
32403
- core(path$16, options || {}, function(er, is) {
32396
+ core(path$17, options || {}, function(er, is) {
32404
32397
  if (er) {
32405
32398
  if (er.code === "EACCES" || options && options.ignoreErrors) {
32406
32399
  er = null;
@@ -32410,9 +32403,9 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32410
32403
  cb(er, is);
32411
32404
  });
32412
32405
  }
32413
- function sync(path$16, options) {
32406
+ function sync(path$17, options) {
32414
32407
  try {
32415
- return core.sync(path$16, options || {});
32408
+ return core.sync(path$17, options || {});
32416
32409
  } catch (er) {
32417
32410
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
32418
32411
  else throw er;
@@ -32424,7 +32417,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32424
32417
  //#region node_modules/which/which.js
32425
32418
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32426
32419
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
32427
- const path$3 = __require("path");
32420
+ const path$4 = __require("path");
32428
32421
  const COLON = isWindows ? ";" : ":";
32429
32422
  const isexe = require_isexe();
32430
32423
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -32454,7 +32447,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32454
32447
  if (i$1 === pathEnv.length) return opt.all && found.length ? resolve$1(found) : reject(getNotFoundError(cmd));
32455
32448
  const ppRaw = pathEnv[i$1];
32456
32449
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32457
- const pCmd = path$3.join(pathPart, cmd);
32450
+ const pCmd = path$4.join(pathPart, cmd);
32458
32451
  resolve$1(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
32459
32452
  });
32460
32453
  const subStep = (p$1, i$1, ii) => new Promise((resolve$1, reject) => {
@@ -32475,7 +32468,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32475
32468
  for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
32476
32469
  const ppRaw = pathEnv[i$1];
32477
32470
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32478
- const pCmd = path$3.join(pathPart, cmd);
32471
+ const pCmd = path$4.join(pathPart, cmd);
32479
32472
  const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
32480
32473
  for (let j = 0; j < pathExt.length; j++) {
32481
32474
  const cur = p$1 + pathExt[j];
@@ -32508,7 +32501,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32508
32501
  //#endregion
32509
32502
  //#region node_modules/cross-spawn/lib/util/resolveCommand.js
32510
32503
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32511
- const path$2 = __require("path");
32504
+ const path$3 = __require("path");
32512
32505
  const which = require_which();
32513
32506
  const getPathKey = require_path_key();
32514
32507
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -32523,12 +32516,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
32523
32516
  try {
32524
32517
  resolved = which.sync(parsed.command, {
32525
32518
  path: env$1[getPathKey({ env: env$1 })],
32526
- pathExt: withoutPathExt ? path$2.delimiter : void 0
32519
+ pathExt: withoutPathExt ? path$3.delimiter : void 0
32527
32520
  });
32528
32521
  } catch (e$1) {} finally {
32529
32522
  if (shouldSwitchCwd) process.chdir(cwd);
32530
32523
  }
32531
- if (resolved) resolved = path$2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32524
+ if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32532
32525
  return resolved;
32533
32526
  }
32534
32527
  function resolveCommand(parsed) {
@@ -32571,8 +32564,8 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
32571
32564
  module.exports = (string$2 = "") => {
32572
32565
  const match = string$2.match(shebangRegex);
32573
32566
  if (!match) return null;
32574
- const [path$16, argument] = match[0].replace(/#! ?/, "").split(" ");
32575
- const binary = path$16.split("/").pop();
32567
+ const [path$17, argument] = match[0].replace(/#! ?/, "").split(" ");
32568
+ const binary = path$17.split("/").pop();
32576
32569
  if (binary === "env") return argument;
32577
32570
  return argument ? `${binary} ${argument}` : binary;
32578
32571
  };
@@ -32600,7 +32593,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32600
32593
  //#endregion
32601
32594
  //#region node_modules/cross-spawn/lib/parse.js
32602
32595
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32603
- const path$1 = __require("path");
32596
+ const path$2 = __require("path");
32604
32597
  const resolveCommand = require_resolveCommand();
32605
32598
  const escape = require_escape();
32606
32599
  const readShebang = require_readShebang();
@@ -32623,7 +32616,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32623
32616
  const needsShell = !isExecutableRegExp.test(commandFile);
32624
32617
  if (parsed.options.forceShell || needsShell) {
32625
32618
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
32626
- parsed.command = path$1.normalize(parsed.command);
32619
+ parsed.command = path$2.normalize(parsed.command);
32627
32620
  parsed.command = escape.command(parsed.command);
32628
32621
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
32629
32622
  parsed.args = [
@@ -32741,12 +32734,12 @@ function toPath(urlOrPath) {
32741
32734
  }
32742
32735
  function traversePathUp(startPath) {
32743
32736
  return { *[Symbol.iterator]() {
32744
- let currentPath = nodePath.resolve(toPath(startPath));
32737
+ let currentPath = path.resolve(toPath(startPath));
32745
32738
  let previousPath;
32746
32739
  while (previousPath !== currentPath) {
32747
32740
  yield currentPath;
32748
32741
  previousPath = currentPath;
32749
- currentPath = nodePath.resolve(currentPath, "..");
32742
+ currentPath = path.resolve(currentPath, "..");
32750
32743
  }
32751
32744
  } };
32752
32745
  }
@@ -32755,21 +32748,21 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
32755
32748
  //#endregion
32756
32749
  //#region node_modules/npm-run-path/index.js
32757
32750
  const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
32758
- const cwdPath = nodePath.resolve(toPath(cwd));
32751
+ const cwdPath = path.resolve(toPath(cwd));
32759
32752
  const result = [];
32760
- const pathParts = pathOption.split(nodePath.delimiter);
32753
+ const pathParts = pathOption.split(path.delimiter);
32761
32754
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
32762
32755
  if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
32763
- return pathOption === "" || pathOption === nodePath.delimiter ? `${result.join(nodePath.delimiter)}${pathOption}` : [...result, pathOption].join(nodePath.delimiter);
32756
+ return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
32764
32757
  };
32765
32758
  const applyPreferLocal = (result, pathParts, cwdPath) => {
32766
32759
  for (const directory of traversePathUp(cwdPath)) {
32767
- const pathPart = nodePath.join(directory, "node_modules/.bin");
32760
+ const pathPart = path.join(directory, "node_modules/.bin");
32768
32761
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32769
32762
  }
32770
32763
  };
32771
32764
  const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
32772
- const pathPart = nodePath.resolve(cwdPath, toPath(execPath$1), "..");
32765
+ const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
32773
32766
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32774
32767
  };
32775
32768
  const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
@@ -33801,10 +33794,10 @@ const mapNode = ({ options }) => {
33801
33794
  node: true
33802
33795
  } };
33803
33796
  };
33804
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath: nodePath$1 = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33797
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33805
33798
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
33806
- const normalizedNodePath = safeNormalizeFileUrl(nodePath$1, "The \"nodePath\" option");
33807
- const resolvedNodePath = nodePath.resolve(cwd, normalizedNodePath);
33799
+ const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
33800
+ const resolvedNodePath = path.resolve(cwd, normalizedNodePath);
33808
33801
  const newOptions = {
33809
33802
  ...options,
33810
33803
  nodePath: resolvedNodePath,
@@ -33816,7 +33809,7 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
33816
33809
  commandArguments,
33817
33810
  newOptions
33818
33811
  ];
33819
- if (nodePath.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33812
+ if (path.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33820
33813
  return [
33821
33814
  resolvedNodePath,
33822
33815
  [
@@ -33903,7 +33896,7 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
33903
33896
  //#region node_modules/execa/lib/arguments/cwd.js
33904
33897
  const normalizeCwd = (cwd = getDefaultCwd()) => {
33905
33898
  const cwdString = safeNormalizeFileUrl(cwd, "The \"cwd\" option");
33906
- return nodePath.resolve(cwdString);
33899
+ return path.resolve(cwdString);
33907
33900
  };
33908
33901
  const getDefaultCwd = () => {
33909
33902
  try {
@@ -33942,7 +33935,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
33942
33935
  options.killSignal = normalizeKillSignal(options.killSignal);
33943
33936
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
33944
33937
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
33945
- if (y.platform === "win32" && nodePath.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33938
+ if (y.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33946
33939
  return {
33947
33940
  file,
33948
33941
  commandArguments,
@@ -33967,7 +33960,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
33967
33960
  ipc,
33968
33961
  serialization
33969
33962
  });
33970
- const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath$1 }) => {
33963
+ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
33971
33964
  const env$1 = extendEnv ? {
33972
33965
  ...y.env,
33973
33966
  ...envOption
@@ -33975,7 +33968,7 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
33975
33968
  if (preferLocal || node) return npmRunPathEnv({
33976
33969
  env: env$1,
33977
33970
  cwd: localDirectory,
33978
- execPath: nodePath$1,
33971
+ execPath: nodePath,
33979
33972
  preferLocal,
33980
33973
  addExecPath: node
33981
33974
  });
@@ -35720,12 +35713,12 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
35720
35713
  }
35721
35714
  };
35722
35715
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
35723
- for (const { path: path$16, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35724
- const pathString = typeof path$16 === "string" ? path$16 : path$16.toString();
35725
- if (append || outputFiles.has(pathString)) appendFileSync(path$16, serializedResult);
35716
+ for (const { path: path$17, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35717
+ const pathString = typeof path$17 === "string" ? path$17 : path$17.toString();
35718
+ if (append || outputFiles.has(pathString)) appendFileSync(path$17, serializedResult);
35726
35719
  else {
35727
35720
  outputFiles.add(pathString);
35728
- writeFileSync(path$16, serializedResult);
35721
+ writeFileSync(path$17, serializedResult);
35729
35722
  }
35730
35723
  }
35731
35724
  };
@@ -38205,8 +38198,8 @@ async function getDefaultTemplate() {
38205
38198
  return template;
38206
38199
  }
38207
38200
  function validateNonInteractiveFlags(command) {
38208
- const { name: name$1, path: path$16 } = command.opts();
38209
- const providedCount = [name$1, path$16].filter(Boolean).length;
38201
+ const { name: name$1, path: path$17 } = command.opts();
38202
+ const providedCount = [name$1, path$17].filter(Boolean).length;
38210
38203
  if (providedCount > 0 && providedCount < 2) command.error("Non-interactive mode requires all flags: --name, --path");
38211
38204
  }
38212
38205
  async function chooseCreate(options) {