@base44-preview/cli 0.0.11-pr.78.84de648 → 0.0.11-pr.79.74a806c

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 +345 -328
  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 path, { basename, dirname, join, posix, resolve, win32 } from "node:path";
5
+ import nodePath, { 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 { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
@@ -12,7 +12,7 @@ import Stream, { Duplex, PassThrough, Readable, Transform, Writable, getDefaultH
12
12
  import os, { constants, homedir, tmpdir } from "node:os";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import fs$1 from "fs";
15
- import path$1, { dirname as dirname$1, parse } from "path";
15
+ import path, { dirname as dirname$1, parse } from "path";
16
16
  import { finished } from "node:stream/promises";
17
17
  import EE, { EventEmitter as EventEmitter$1 } from "events";
18
18
  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$16 = __require("node:path");
895
+ const path$15 = __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$16.resolve(baseDir, baseName);
1743
+ const localBin = path$15.resolve(baseDir, baseName);
1744
1744
  if (fs$10.existsSync(localBin)) return localBin;
1745
- if (sourceExt.includes(path$16.extname(baseName))) return void 0;
1745
+ if (sourceExt.includes(path$15.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$16.resolve(path$16.dirname(resolvedScriptPath), executableDir);
1760
+ executableDir = path$15.resolve(path$15.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$16.basename(this._scriptPath, path$16.extname(this._scriptPath));
1765
+ const legacyName = path$15.basename(this._scriptPath, path$15.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$16.extname(executableFile));
1770
+ launchWithNode = sourceExt.includes(path$15.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$16.basename(filename, path$16.extname(filename));
2476
+ this._name = path$15.basename(filename, path$15.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$17) {
2491
- if (path$17 === void 0) return this._executableDir;
2492
- this._executableDir = path$17;
2490
+ executableDir(path$16) {
2491
+ if (path$16 === void 0) return this._executableDir;
2492
+ this._executableDir = path$16;
2493
2493
  return this;
2494
2494
  }
2495
2495
  /**
@@ -4292,11 +4292,11 @@ function aborted$1(x$2, startIndex = 0) {
4292
4292
  for (let i$1 = startIndex; i$1 < x$2.issues.length; i$1++) if (x$2.issues[i$1]?.continue !== true) return true;
4293
4293
  return false;
4294
4294
  }
4295
- function prefixIssues(path$17, issues) {
4295
+ function prefixIssues(path$16, issues) {
4296
4296
  return issues.map((iss) => {
4297
4297
  var _a$1;
4298
4298
  (_a$1 = iss).path ?? (_a$1.path = []);
4299
- iss.path.unshift(path$17);
4299
+ iss.path.unshift(path$16);
4300
4300
  return iss;
4301
4301
  });
4302
4302
  }
@@ -8771,7 +8771,7 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8771
8771
  //#region node_modules/dotenv/lib/main.js
8772
8772
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8773
8773
  const fs$9 = __require("fs");
8774
- const path$15 = __require("path");
8774
+ const path$14 = __require("path");
8775
8775
  const os$3 = __require("os");
8776
8776
  const crypto = __require("crypto");
8777
8777
  const version = require_package$1().version;
@@ -8909,12 +8909,12 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8909
8909
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
8910
8910
  for (const filepath of options.path) if (fs$9.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
8911
8911
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
8912
- else possibleVaultPath = path$15.resolve(process.cwd(), ".env.vault");
8912
+ else possibleVaultPath = path$14.resolve(process.cwd(), ".env.vault");
8913
8913
  if (fs$9.existsSync(possibleVaultPath)) return possibleVaultPath;
8914
8914
  return null;
8915
8915
  }
8916
8916
  function _resolveHome(envPath) {
8917
- return envPath[0] === "~" ? path$15.join(os$3.homedir(), envPath.slice(1)) : envPath;
8917
+ return envPath[0] === "~" ? path$14.join(os$3.homedir(), envPath.slice(1)) : envPath;
8918
8918
  }
8919
8919
  function _configVault(options) {
8920
8920
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -8927,7 +8927,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8927
8927
  return { parsed };
8928
8928
  }
8929
8929
  function configDotenv(options) {
8930
- const dotenvPath = path$15.resolve(process.cwd(), ".env");
8930
+ const dotenvPath = path$14.resolve(process.cwd(), ".env");
8931
8931
  let encoding = "utf8";
8932
8932
  let processEnv = process.env;
8933
8933
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -8943,11 +8943,11 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8943
8943
  }
8944
8944
  let lastError;
8945
8945
  const parsedAll = {};
8946
- for (const path$17 of optionPaths) try {
8947
- const parsed = DotenvModule.parse(fs$9.readFileSync(path$17, { encoding }));
8946
+ for (const path$16 of optionPaths) try {
8947
+ const parsed = DotenvModule.parse(fs$9.readFileSync(path$16, { encoding }));
8948
8948
  DotenvModule.populate(parsedAll, parsed, options);
8949
8949
  } catch (e$1) {
8950
- if (debug) _debug(`Failed to load ${path$17} ${e$1.message}`);
8950
+ if (debug) _debug(`Failed to load ${path$16} ${e$1.message}`);
8951
8951
  lastError = e$1;
8952
8952
  }
8953
8953
  const populated = DotenvModule.populate(processEnv, parsedAll, options);
@@ -8957,7 +8957,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8957
8957
  const keysCount = Object.keys(populated).length;
8958
8958
  const shortPaths = [];
8959
8959
  for (const filePath of optionPaths) try {
8960
- const relative = path$15.relative(process.cwd(), filePath);
8960
+ const relative = path$14.relative(process.cwd(), filePath);
8961
8961
  shortPaths.push(relative);
8962
8962
  } catch (e$1) {
8963
8963
  if (debug) _debug(`Failed to load ${filePath} ${e$1.message}`);
@@ -9275,7 +9275,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9275
9275
  Object.defineProperty(exports, "__esModule", { value: true });
9276
9276
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
9277
9277
  const os$2 = __require("os");
9278
- const path$14 = __require("path");
9278
+ const path$13 = __require("path");
9279
9279
  const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
9280
9280
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
9281
9281
  /**
@@ -9304,7 +9304,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9304
9304
  }
9305
9305
  exports.unixify = unixify;
9306
9306
  function makeAbsolute(cwd, filepath) {
9307
- return path$14.resolve(cwd, filepath);
9307
+ return path$13.resolve(cwd, filepath);
9308
9308
  }
9309
9309
  exports.makeAbsolute = makeAbsolute;
9310
9310
  function removeLeadingDotSegment(entry) {
@@ -10570,7 +10570,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10570
10570
  //#endregion
10571
10571
  //#region node_modules/micromatch/node_modules/picomatch/lib/constants.js
10572
10572
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10573
- const path$13 = __require("path");
10573
+ const path$12 = __require("path");
10574
10574
  const WIN_SLASH = "\\\\/";
10575
10575
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
10576
10576
  /**
@@ -10695,7 +10695,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10695
10695
  CHAR_UNDERSCORE: 95,
10696
10696
  CHAR_VERTICAL_LINE: 124,
10697
10697
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
10698
- SEP: path$13.sep,
10698
+ SEP: path$12.sep,
10699
10699
  extglobChars(chars) {
10700
10700
  return {
10701
10701
  "!": {
@@ -10734,7 +10734,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10734
10734
  //#endregion
10735
10735
  //#region node_modules/micromatch/node_modules/picomatch/lib/utils.js
10736
10736
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10737
- const path$12 = __require("path");
10737
+ const path$11 = __require("path");
10738
10738
  const win32 = process.platform === "win32";
10739
10739
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
10740
10740
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -10754,7 +10754,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10754
10754
  };
10755
10755
  exports.isWindows = (options) => {
10756
10756
  if (options && typeof options.windows === "boolean") return options.windows;
10757
- return win32 === true || path$12.sep === "\\";
10757
+ return win32 === true || path$11.sep === "\\";
10758
10758
  };
10759
10759
  exports.escapeLast = (input, char, lastIdx) => {
10760
10760
  const idx = input.lastIndexOf(char, lastIdx);
@@ -11930,7 +11930,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11930
11930
  //#endregion
11931
11931
  //#region node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
11932
11932
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11933
- const path$11 = __require("path");
11933
+ const path$10 = __require("path");
11934
11934
  const scan = require_scan();
11935
11935
  const parse = require_parse$2();
11936
11936
  const utils = require_utils$3();
@@ -12069,7 +12069,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12069
12069
  * @api public
12070
12070
  */
12071
12071
  picomatch.matchBase = (input, glob, options, posix$1 = utils.isWindows(options)) => {
12072
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$11.basename(input));
12072
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$10.basename(input));
12073
12073
  };
12074
12074
  /**
12075
12075
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -12627,7 +12627,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12627
12627
  var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12628
12628
  Object.defineProperty(exports, "__esModule", { value: true });
12629
12629
  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;
12630
- const path$10 = __require("path");
12630
+ const path$9 = __require("path");
12631
12631
  const globParent = require_glob_parent();
12632
12632
  const micromatch = require_micromatch();
12633
12633
  const GLOBSTAR = "**";
@@ -12735,7 +12735,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12735
12735
  }
12736
12736
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
12737
12737
  function isAffectDepthOfReadingPattern(pattern) {
12738
- const basename$1 = path$10.basename(pattern);
12738
+ const basename$1 = path$9.basename(pattern);
12739
12739
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename$1);
12740
12740
  }
12741
12741
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -12809,7 +12809,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12809
12809
  }
12810
12810
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
12811
12811
  function isAbsolute(pattern) {
12812
- return path$10.isAbsolute(pattern);
12812
+ return path$9.isAbsolute(pattern);
12813
12813
  }
12814
12814
  exports.isAbsolute = isAbsolute;
12815
12815
  }));
@@ -13052,8 +13052,8 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
13052
13052
  var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13053
13053
  Object.defineProperty(exports, "__esModule", { value: true });
13054
13054
  exports.read = void 0;
13055
- function read(path$17, settings, callback) {
13056
- settings.fs.lstat(path$17, (lstatError, lstat) => {
13055
+ function read(path$16, settings, callback) {
13056
+ settings.fs.lstat(path$16, (lstatError, lstat) => {
13057
13057
  if (lstatError !== null) {
13058
13058
  callFailureCallback(callback, lstatError);
13059
13059
  return;
@@ -13062,7 +13062,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13062
13062
  callSuccessCallback(callback, lstat);
13063
13063
  return;
13064
13064
  }
13065
- settings.fs.stat(path$17, (statError, stat) => {
13065
+ settings.fs.stat(path$16, (statError, stat) => {
13066
13066
  if (statError !== null) {
13067
13067
  if (settings.throwErrorOnBrokenSymbolicLink) {
13068
13068
  callFailureCallback(callback, statError);
@@ -13090,11 +13090,11 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13090
13090
  var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13091
13091
  Object.defineProperty(exports, "__esModule", { value: true });
13092
13092
  exports.read = void 0;
13093
- function read(path$17, settings) {
13094
- const lstat = settings.fs.lstatSync(path$17);
13093
+ function read(path$16, settings) {
13094
+ const lstat = settings.fs.lstatSync(path$16);
13095
13095
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
13096
13096
  try {
13097
- const stat = settings.fs.statSync(path$17);
13097
+ const stat = settings.fs.statSync(path$16);
13098
13098
  if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
13099
13099
  return stat;
13100
13100
  } catch (error) {
@@ -13153,17 +13153,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
13153
13153
  const sync = require_sync$5();
13154
13154
  const settings_1 = require_settings$3();
13155
13155
  exports.Settings = settings_1.default;
13156
- function stat(path$17, optionsOrSettingsOrCallback, callback) {
13156
+ function stat(path$16, optionsOrSettingsOrCallback, callback) {
13157
13157
  if (typeof optionsOrSettingsOrCallback === "function") {
13158
- async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13158
+ async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13159
13159
  return;
13160
13160
  }
13161
- async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13161
+ async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13162
13162
  }
13163
13163
  exports.stat = stat;
13164
- function statSync(path$17, optionsOrSettings) {
13164
+ function statSync(path$16, optionsOrSettings) {
13165
13165
  const settings = getSettings(optionsOrSettings);
13166
- return sync.read(path$17, settings);
13166
+ return sync.read(path$16, settings);
13167
13167
  }
13168
13168
  exports.statSync = statSync;
13169
13169
  function getSettings(settingsOrOptions = {}) {
@@ -13362,16 +13362,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
13362
13362
  return;
13363
13363
  }
13364
13364
  rpl(names.map((name$1) => {
13365
- const path$17 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13365
+ const path$16 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13366
13366
  return (done) => {
13367
- fsStat.stat(path$17, settings.fsStatSettings, (error, stats) => {
13367
+ fsStat.stat(path$16, settings.fsStatSettings, (error, stats) => {
13368
13368
  if (error !== null) {
13369
13369
  done(error);
13370
13370
  return;
13371
13371
  }
13372
13372
  const entry = {
13373
13373
  name: name$1,
13374
- path: path$17,
13374
+ path: path$16,
13375
13375
  dirent: utils.fs.createDirentFromStats(name$1, stats)
13376
13376
  };
13377
13377
  if (settings.stats) entry.stats = stats;
@@ -13468,7 +13468,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
13468
13468
  //#region node_modules/@nodelib/fs.scandir/out/settings.js
13469
13469
  var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13470
13470
  Object.defineProperty(exports, "__esModule", { value: true });
13471
- const path$9 = __require("path");
13471
+ const path$8 = __require("path");
13472
13472
  const fsStat = require_out$3();
13473
13473
  const fs = require_fs();
13474
13474
  var Settings = class {
@@ -13476,7 +13476,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13476
13476
  this._options = _options;
13477
13477
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
13478
13478
  this.fs = fs.createFileSystemAdapter(this._options.fs);
13479
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$9.sep);
13479
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
13480
13480
  this.stats = this._getValue(this._options.stats, false);
13481
13481
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
13482
13482
  this.fsStatSettings = new fsStat.Settings({
@@ -13501,17 +13501,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13501
13501
  const sync = require_sync$4();
13502
13502
  const settings_1 = require_settings$2();
13503
13503
  exports.Settings = settings_1.default;
13504
- function scandir(path$17, optionsOrSettingsOrCallback, callback) {
13504
+ function scandir(path$16, optionsOrSettingsOrCallback, callback) {
13505
13505
  if (typeof optionsOrSettingsOrCallback === "function") {
13506
- async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13506
+ async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13507
13507
  return;
13508
13508
  }
13509
- async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13509
+ async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13510
13510
  }
13511
13511
  exports.scandir = scandir;
13512
- function scandirSync(path$17, optionsOrSettings) {
13512
+ function scandirSync(path$16, optionsOrSettings) {
13513
13513
  const settings = getSettings(optionsOrSettings);
13514
- return sync.read(path$17, settings);
13514
+ return sync.read(path$16, settings);
13515
13515
  }
13516
13516
  exports.scandirSync = scandirSync;
13517
13517
  function getSettings(settingsOrOptions = {}) {
@@ -14081,7 +14081,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
14081
14081
  //#region node_modules/@nodelib/fs.walk/out/settings.js
14082
14082
  var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14083
14083
  Object.defineProperty(exports, "__esModule", { value: true });
14084
- const path$8 = __require("path");
14084
+ const path$7 = __require("path");
14085
14085
  const fsScandir = require_out$2();
14086
14086
  var Settings = class {
14087
14087
  constructor(_options = {}) {
@@ -14091,7 +14091,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14091
14091
  this.deepFilter = this._getValue(this._options.deepFilter, null);
14092
14092
  this.entryFilter = this._getValue(this._options.entryFilter, null);
14093
14093
  this.errorFilter = this._getValue(this._options.errorFilter, null);
14094
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
14094
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$7.sep);
14095
14095
  this.fsScandirSettings = new fsScandir.Settings({
14096
14096
  followSymbolicLinks: this._options.followSymbolicLinks,
14097
14097
  fs: this._options.fs,
@@ -14145,7 +14145,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14145
14145
  //#region node_modules/fast-glob/out/readers/reader.js
14146
14146
  var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14147
14147
  Object.defineProperty(exports, "__esModule", { value: true });
14148
- const path$7 = __require("path");
14148
+ const path$6 = __require("path");
14149
14149
  const fsStat = require_out$3();
14150
14150
  const utils = require_utils$2();
14151
14151
  var Reader = class {
@@ -14158,7 +14158,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14158
14158
  });
14159
14159
  }
14160
14160
  _getFullEntryPath(filepath) {
14161
- return path$7.resolve(this._settings.cwd, filepath);
14161
+ return path$6.resolve(this._settings.cwd, filepath);
14162
14162
  }
14163
14163
  _makeEntry(stats, pattern) {
14164
14164
  const entry = {
@@ -14502,7 +14502,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
14502
14502
  //#region node_modules/fast-glob/out/providers/provider.js
14503
14503
  var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14504
14504
  Object.defineProperty(exports, "__esModule", { value: true });
14505
- const path$6 = __require("path");
14505
+ const path$5 = __require("path");
14506
14506
  const deep_1 = require_deep();
14507
14507
  const entry_1 = require_entry$1();
14508
14508
  const error_1 = require_error();
@@ -14516,7 +14516,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14516
14516
  this.entryTransformer = new entry_2.default(this._settings);
14517
14517
  }
14518
14518
  _getRootDirectory(task) {
14519
- return path$6.resolve(this._settings.cwd, task.base);
14519
+ return path$5.resolve(this._settings.cwd, task.base);
14520
14520
  }
14521
14521
  _getReaderOptions(task) {
14522
14522
  const basePath = task.base === "." ? "" : task.base;
@@ -14969,14 +14969,14 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14969
14969
  makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
14970
14970
  return this._added;
14971
14971
  }
14972
- test(path$17, checkUnignored, mode) {
14972
+ test(path$16, checkUnignored, mode) {
14973
14973
  let ignored = false;
14974
14974
  let unignored = false;
14975
14975
  let matchedRule;
14976
14976
  this._rules.forEach((rule) => {
14977
14977
  const { negative } = rule;
14978
14978
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
14979
- if (!rule[mode].test(path$17)) return;
14979
+ if (!rule[mode].test(path$16)) return;
14980
14980
  ignored = !negative;
14981
14981
  unignored = negative;
14982
14982
  matchedRule = negative ? UNDEFINED : rule;
@@ -14992,13 +14992,13 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14992
14992
  const throwError = (message, Ctor) => {
14993
14993
  throw new Ctor(message);
14994
14994
  };
14995
- const checkPath = (path$17, originalPath, doThrow) => {
14996
- if (!isString(path$17)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
14997
- if (!path$17) return doThrow(`path must not be empty`, TypeError);
14998
- if (checkPath.isNotRelative(path$17)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
14995
+ const checkPath = (path$16, originalPath, doThrow) => {
14996
+ if (!isString(path$16)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
14997
+ if (!path$16) return doThrow(`path must not be empty`, TypeError);
14998
+ if (checkPath.isNotRelative(path$16)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
14999
14999
  return true;
15000
15000
  };
15001
- const isNotRelative = (path$17) => REGEX_TEST_INVALID_PATH.test(path$17);
15001
+ const isNotRelative = (path$16) => REGEX_TEST_INVALID_PATH.test(path$16);
15002
15002
  checkPath.isNotRelative = isNotRelative;
15003
15003
  /* istanbul ignore next */
15004
15004
  checkPath.convert = (p$1) => p$1;
@@ -15021,49 +15021,49 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15021
15021
  return this.add(pattern);
15022
15022
  }
15023
15023
  _test(originalPath, cache$1, checkUnignored, slices) {
15024
- const path$17 = originalPath && checkPath.convert(originalPath);
15025
- checkPath(path$17, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15026
- return this._t(path$17, cache$1, checkUnignored, slices);
15024
+ const path$16 = originalPath && checkPath.convert(originalPath);
15025
+ checkPath(path$16, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15026
+ return this._t(path$16, cache$1, checkUnignored, slices);
15027
15027
  }
15028
- checkIgnore(path$17) {
15029
- if (!REGEX_TEST_TRAILING_SLASH.test(path$17)) return this.test(path$17);
15030
- const slices = path$17.split(SLASH).filter(Boolean);
15028
+ checkIgnore(path$16) {
15029
+ if (!REGEX_TEST_TRAILING_SLASH.test(path$16)) return this.test(path$16);
15030
+ const slices = path$16.split(SLASH).filter(Boolean);
15031
15031
  slices.pop();
15032
15032
  if (slices.length) {
15033
15033
  const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
15034
15034
  if (parent.ignored) return parent;
15035
15035
  }
15036
- return this._rules.test(path$17, false, MODE_CHECK_IGNORE);
15036
+ return this._rules.test(path$16, false, MODE_CHECK_IGNORE);
15037
15037
  }
15038
- _t(path$17, cache$1, checkUnignored, slices) {
15039
- if (path$17 in cache$1) return cache$1[path$17];
15040
- if (!slices) slices = path$17.split(SLASH).filter(Boolean);
15038
+ _t(path$16, cache$1, checkUnignored, slices) {
15039
+ if (path$16 in cache$1) return cache$1[path$16];
15040
+ if (!slices) slices = path$16.split(SLASH).filter(Boolean);
15041
15041
  slices.pop();
15042
- if (!slices.length) return cache$1[path$17] = this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15042
+ if (!slices.length) return cache$1[path$16] = this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15043
15043
  const parent = this._t(slices.join(SLASH) + SLASH, cache$1, checkUnignored, slices);
15044
- return cache$1[path$17] = parent.ignored ? parent : this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15044
+ return cache$1[path$16] = parent.ignored ? parent : this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15045
15045
  }
15046
- ignores(path$17) {
15047
- return this._test(path$17, this._ignoreCache, false).ignored;
15046
+ ignores(path$16) {
15047
+ return this._test(path$16, this._ignoreCache, false).ignored;
15048
15048
  }
15049
15049
  createFilter() {
15050
- return (path$17) => !this.ignores(path$17);
15050
+ return (path$16) => !this.ignores(path$16);
15051
15051
  }
15052
15052
  filter(paths) {
15053
15053
  return makeArray(paths).filter(this.createFilter());
15054
15054
  }
15055
- test(path$17) {
15056
- return this._test(path$17, this._testCache, true);
15055
+ test(path$16) {
15056
+ return this._test(path$16, this._testCache, true);
15057
15057
  }
15058
15058
  };
15059
15059
  const factory = (options) => new Ignore(options);
15060
- const isPathValid = (path$17) => checkPath(path$17 && checkPath.convert(path$17), path$17, RETURN_FALSE);
15060
+ const isPathValid = (path$16) => checkPath(path$16 && checkPath.convert(path$16), path$16, RETURN_FALSE);
15061
15061
  /* istanbul ignore next */
15062
15062
  const setupWindows = () => {
15063
15063
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
15064
15064
  checkPath.convert = makePosix;
15065
15065
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
15066
- checkPath.isNotRelative = (path$17) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$17) || isNotRelative(path$17);
15066
+ checkPath.isNotRelative = (path$16) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$16) || isNotRelative(path$16);
15067
15067
  };
15068
15068
  /* istanbul ignore next */
15069
15069
  if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
@@ -15077,15 +15077,15 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15077
15077
  //#region node_modules/is-path-inside/index.js
15078
15078
  var import_ignore = /* @__PURE__ */ __toESM(require_ignore(), 1);
15079
15079
  function isPathInside(childPath, parentPath) {
15080
- const relation = path.relative(parentPath, childPath);
15081
- return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
15080
+ const relation = nodePath.relative(parentPath, childPath);
15081
+ return Boolean(relation && relation !== ".." && !relation.startsWith(`..${nodePath.sep}`) && relation !== nodePath.resolve(childPath));
15082
15082
  }
15083
15083
 
15084
15084
  //#endregion
15085
15085
  //#region node_modules/slash/index.js
15086
- function slash(path$17) {
15087
- if (path$17.startsWith("\\\\?\\")) return path$17;
15088
- return path$17.replace(/\\/g, "/");
15086
+ function slash(path$16) {
15087
+ if (path$16.startsWith("\\\\?\\")) return path$16;
15088
+ return path$16.replace(/\\/g, "/");
15089
15089
  }
15090
15090
 
15091
15091
  //#endregion
@@ -15171,7 +15171,7 @@ const buildPathChain = (startPath, rootPath) => {
15171
15171
  let currentPath = startPath;
15172
15172
  chain.push(currentPath);
15173
15173
  while (currentPath !== rootPath) {
15174
- const parentPath = path.dirname(currentPath);
15174
+ const parentPath = nodePath.dirname(currentPath);
15175
15175
  if (parentPath === currentPath) break;
15176
15176
  currentPath = parentPath;
15177
15177
  chain.push(currentPath);
@@ -15180,7 +15180,7 @@ const buildPathChain = (startPath, rootPath) => {
15180
15180
  };
15181
15181
  const findGitRootInChain = async (paths, statMethod) => {
15182
15182
  for (const directory of paths) {
15183
- const gitPath = path.join(directory, ".git");
15183
+ const gitPath = nodePath.join(directory, ".git");
15184
15184
  try {
15185
15185
  if (pathHasGitDirectory(await statMethod(gitPath))) return directory;
15186
15186
  } catch {}
@@ -15189,11 +15189,11 @@ const findGitRootInChain = async (paths, statMethod) => {
15189
15189
  const findGitRootSyncUncached = (cwd, fsImplementation) => {
15190
15190
  const statSyncMethod = getStatSyncMethod$1(fsImplementation);
15191
15191
  if (!statSyncMethod) return;
15192
- const currentPath = path.resolve(cwd);
15193
- const { root } = path.parse(currentPath);
15192
+ const currentPath = nodePath.resolve(cwd);
15193
+ const { root } = nodePath.parse(currentPath);
15194
15194
  const chain = buildPathChain(currentPath, root);
15195
15195
  for (const directory of chain) {
15196
- const gitPath = path.join(directory, ".git");
15196
+ const gitPath = nodePath.join(directory, ".git");
15197
15197
  try {
15198
15198
  if (pathHasGitDirectory(statSyncMethod(gitPath))) return directory;
15199
15199
  } catch {}
@@ -15206,8 +15206,8 @@ const findGitRootSync = (cwd, fsImplementation) => {
15206
15206
  const findGitRootAsyncUncached = async (cwd, fsImplementation) => {
15207
15207
  const statMethod = getAsyncStatMethod(fsImplementation);
15208
15208
  if (!statMethod) return findGitRootSync(cwd, fsImplementation);
15209
- const currentPath = path.resolve(cwd);
15210
- const { root } = path.parse(currentPath);
15209
+ const currentPath = nodePath.resolve(cwd);
15210
+ const { root } = nodePath.parse(currentPath);
15211
15211
  return findGitRootInChain(buildPathChain(currentPath, root), statMethod);
15212
15212
  };
15213
15213
  const findGitRoot = async (cwd, fsImplementation) => {
@@ -15222,8 +15222,8 @@ Get paths to all .gitignore files from git root to cwd (inclusive).
15222
15222
  @returns {string[]} Array of .gitignore file paths to search for.
15223
15223
  */
15224
15224
  const isWithinGitRoot = (gitRoot, cwd) => {
15225
- const resolvedGitRoot = path.resolve(gitRoot);
15226
- const resolvedCwd = path.resolve(cwd);
15225
+ const resolvedGitRoot = nodePath.resolve(gitRoot);
15226
+ const resolvedCwd = nodePath.resolve(cwd);
15227
15227
  return resolvedCwd === resolvedGitRoot || isPathInside(resolvedCwd, resolvedGitRoot);
15228
15228
  };
15229
15229
  const getParentGitignorePaths = (gitRoot, cwd) => {
@@ -15231,7 +15231,7 @@ const getParentGitignorePaths = (gitRoot, cwd) => {
15231
15231
  if (typeof cwd !== "string") throw new TypeError("cwd must be a string");
15232
15232
  if (!gitRoot) return [];
15233
15233
  if (!isWithinGitRoot(gitRoot, cwd)) return [];
15234
- return [...buildPathChain(path.resolve(cwd), path.resolve(gitRoot))].reverse().map((directory) => path.join(directory, ".gitignore"));
15234
+ return [...buildPathChain(nodePath.resolve(cwd), nodePath.resolve(gitRoot))].reverse().map((directory) => nodePath.join(directory, ".gitignore"));
15235
15235
  };
15236
15236
  /**
15237
15237
  Convert ignore patterns to fast-glob compatible format.
@@ -15338,18 +15338,18 @@ const applyBaseToPattern = (pattern, base) => {
15338
15338
  const slashIndex = cleanPattern.indexOf("/");
15339
15339
  const hasNonTrailingSlash = slashIndex !== -1 && slashIndex !== cleanPattern.length - 1;
15340
15340
  let result;
15341
- if (!hasNonTrailingSlash) result = path.posix.join(base, "**", cleanPattern);
15342
- else if (cleanPattern.startsWith("/")) result = path.posix.join(base, cleanPattern.slice(1));
15343
- else result = path.posix.join(base, cleanPattern);
15341
+ if (!hasNonTrailingSlash) result = nodePath.posix.join(base, "**", cleanPattern);
15342
+ else if (cleanPattern.startsWith("/")) result = nodePath.posix.join(base, cleanPattern.slice(1));
15343
+ else result = nodePath.posix.join(base, cleanPattern);
15344
15344
  return isNegative ? "!" + result : result;
15345
15345
  };
15346
15346
  const parseIgnoreFile = (file, cwd) => {
15347
- const base = slash(path.relative(cwd, path.dirname(file.filePath)));
15347
+ const base = slash(nodePath.relative(cwd, nodePath.dirname(file.filePath)));
15348
15348
  return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
15349
15349
  };
15350
15350
  const toRelativePath = (fileOrDirectory, cwd) => {
15351
- if (path.isAbsolute(fileOrDirectory)) {
15352
- const relativePath = path.relative(cwd, fileOrDirectory);
15351
+ if (nodePath.isAbsolute(fileOrDirectory)) {
15352
+ const relativePath = nodePath.relative(cwd, fileOrDirectory);
15353
15353
  if (relativePath && !isPathInside(fileOrDirectory, cwd)) return;
15354
15354
  return relativePath;
15355
15355
  }
@@ -15359,11 +15359,11 @@ const toRelativePath = (fileOrDirectory, cwd) => {
15359
15359
  };
15360
15360
  const createIgnorePredicate = (patterns, cwd, baseDir) => {
15361
15361
  const ignores = (0, import_ignore.default)().add(patterns);
15362
- const resolvedCwd = path.normalize(path.resolve(cwd));
15363
- const resolvedBaseDir = path.normalize(path.resolve(baseDir));
15362
+ const resolvedCwd = nodePath.normalize(nodePath.resolve(cwd));
15363
+ const resolvedBaseDir = nodePath.normalize(nodePath.resolve(baseDir));
15364
15364
  return (fileOrDirectory) => {
15365
15365
  fileOrDirectory = toPath$1(fileOrDirectory);
15366
- if (path.normalize(path.resolve(fileOrDirectory)) === resolvedCwd) return false;
15366
+ if (nodePath.normalize(nodePath.resolve(fileOrDirectory)) === resolvedCwd) return false;
15367
15367
  const relativePath = toRelativePath(fileOrDirectory, resolvedBaseDir);
15368
15368
  if (relativePath === void 0) return false;
15369
15369
  return relativePath ? ignores.ignores(slash(relativePath)) : false;
@@ -15438,35 +15438,35 @@ const assertPatternsInput = (patterns) => {
15438
15438
  };
15439
15439
  const getStatMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "stat") ?? bindFsMethod(fs.promises, "stat") ?? promisifyFsMethod(fsImplementation, "stat");
15440
15440
  const getStatSyncMethod = (fsImplementation) => bindFsMethod(fsImplementation, "statSync") ?? bindFsMethod(fs, "statSync");
15441
- const isDirectory = async (path$17, fsImplementation) => {
15441
+ const isDirectory = async (path$16, fsImplementation) => {
15442
15442
  try {
15443
- return (await getStatMethod(fsImplementation)(path$17)).isDirectory();
15443
+ return (await getStatMethod(fsImplementation)(path$16)).isDirectory();
15444
15444
  } catch {
15445
15445
  return false;
15446
15446
  }
15447
15447
  };
15448
- const isDirectorySync = (path$17, fsImplementation) => {
15448
+ const isDirectorySync = (path$16, fsImplementation) => {
15449
15449
  try {
15450
- return getStatSyncMethod(fsImplementation)(path$17).isDirectory();
15450
+ return getStatSyncMethod(fsImplementation)(path$16).isDirectory();
15451
15451
  } catch {
15452
15452
  return false;
15453
15453
  }
15454
15454
  };
15455
15455
  const normalizePathForDirectoryGlob = (filePath, cwd) => {
15456
- const path$17 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15457
- return path.isAbsolute(path$17) ? path$17 : path.join(cwd, path$17);
15456
+ const path$16 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15457
+ return nodePath.isAbsolute(path$16) ? path$16 : nodePath.join(cwd, path$16);
15458
15458
  };
15459
15459
  const shouldExpandGlobstarDirectory = (pattern) => {
15460
15460
  const match = pattern?.match(/\*\*\/([^/]+)$/);
15461
15461
  if (!match) return false;
15462
15462
  const dirname$2 = match[1];
15463
15463
  const hasWildcards = /[*?[\]{}]/.test(dirname$2);
15464
- const hasExtension = path.extname(dirname$2) && !dirname$2.startsWith(".");
15464
+ const hasExtension = nodePath.extname(dirname$2) && !dirname$2.startsWith(".");
15465
15465
  return !hasWildcards && !hasExtension;
15466
15466
  };
15467
15467
  const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
15468
15468
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
15469
- return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15469
+ return files ? files.map((file) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file) ? file : `${file}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15470
15470
  };
15471
15471
  const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
15472
15472
  return (await Promise.all(directoryPaths.map(async (directoryPath) => {
@@ -15581,12 +15581,12 @@ const createFilterFunction = (isIgnored, cwd) => {
15581
15581
  const basePath = cwd || y.cwd();
15582
15582
  const pathCache = /* @__PURE__ */ new Map();
15583
15583
  return (fastGlobResult) => {
15584
- const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
15584
+ const pathKey$1 = nodePath.normalize(fastGlobResult.path ?? fastGlobResult);
15585
15585
  if (seen.has(pathKey$1)) return false;
15586
15586
  if (isIgnored) {
15587
15587
  let absolutePath = pathCache.get(pathKey$1);
15588
15588
  if (absolutePath === void 0) {
15589
- absolutePath = path.isAbsolute(pathKey$1) ? pathKey$1 : path.resolve(basePath, pathKey$1);
15589
+ absolutePath = nodePath.isAbsolute(pathKey$1) ? pathKey$1 : nodePath.resolve(basePath, pathKey$1);
15590
15590
  pathCache.set(pathKey$1, absolutePath);
15591
15591
  if (pathCache.size > 1e4) pathCache.clear();
15592
15592
  }
@@ -16659,9 +16659,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16659
16659
  //#endregion
16660
16660
  //#region src/core/utils/fs.ts
16661
16661
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
16662
- async function pathExists(path$17) {
16662
+ async function pathExists(path$16) {
16663
16663
  try {
16664
- await access(path$17);
16664
+ await access(path$16);
16665
16665
  return true;
16666
16666
  } catch {
16667
16667
  return false;
@@ -17208,7 +17208,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17208
17208
  * @public
17209
17209
  */
17210
17210
  var fs$5 = __require("fs");
17211
- var path$5 = __require("path");
17211
+ var path$4 = __require("path");
17212
17212
  var utils = require_utils();
17213
17213
  var scopeOptionWarned = false;
17214
17214
  /** @type {string} */
@@ -17278,9 +17278,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17278
17278
  * @return {String}
17279
17279
  */
17280
17280
  exports.resolveInclude = function(name$1, filename, isDir) {
17281
- var dirname$2 = path$5.dirname;
17282
- var extname = path$5.extname;
17283
- var resolve$1 = path$5.resolve;
17281
+ var dirname$2 = path$4.dirname;
17282
+ var extname = path$4.extname;
17283
+ var resolve$1 = path$4.resolve;
17284
17284
  var includePath = resolve$1(isDir ? filename : dirname$2(filename), name$1);
17285
17285
  if (!extname(name$1)) includePath += ".ejs";
17286
17286
  return includePath;
@@ -17306,22 +17306,22 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17306
17306
  * @param {Options} options compilation options
17307
17307
  * @return {String}
17308
17308
  */
17309
- function getIncludePath(path$17, options) {
17309
+ function getIncludePath(path$16, options) {
17310
17310
  var includePath;
17311
17311
  var filePath;
17312
17312
  var views = options.views;
17313
- var match = /^[A-Za-z]+:\\|^\//.exec(path$17);
17313
+ var match = /^[A-Za-z]+:\\|^\//.exec(path$16);
17314
17314
  if (match && match.length) {
17315
- path$17 = path$17.replace(/^\/*/, "");
17316
- if (Array.isArray(options.root)) includePath = resolvePaths(path$17, options.root);
17317
- else includePath = exports.resolveInclude(path$17, options.root || "/", true);
17315
+ path$16 = path$16.replace(/^\/*/, "");
17316
+ if (Array.isArray(options.root)) includePath = resolvePaths(path$16, options.root);
17317
+ else includePath = exports.resolveInclude(path$16, options.root || "/", true);
17318
17318
  } else {
17319
17319
  if (options.filename) {
17320
- filePath = exports.resolveInclude(path$17, options.filename);
17320
+ filePath = exports.resolveInclude(path$16, options.filename);
17321
17321
  if (fs$5.existsSync(filePath)) includePath = filePath;
17322
17322
  }
17323
- if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$17, views);
17324
- if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$17) + "\"");
17323
+ if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$16, views);
17324
+ if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$16) + "\"");
17325
17325
  }
17326
17326
  return includePath;
17327
17327
  }
@@ -17413,11 +17413,11 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17413
17413
  * Depending on the value of `options.client`, either type might be returned
17414
17414
  * @static
17415
17415
  */
17416
- function includeFile(path$17, options) {
17416
+ function includeFile(path$16, options) {
17417
17417
  var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
17418
- opts.filename = getIncludePath(path$17, opts);
17418
+ opts.filename = getIncludePath(path$16, opts);
17419
17419
  if (typeof options.includer === "function") {
17420
- var includerResult = options.includer(path$17, opts.filename);
17420
+ var includerResult = options.includer(path$16, opts.filename);
17421
17421
  if (includerResult) {
17422
17422
  if (includerResult.filename) opts.filename = includerResult.filename;
17423
17423
  if (includerResult.template) return handleCache(opts, includerResult.template);
@@ -17668,10 +17668,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17668
17668
  throw e$1;
17669
17669
  }
17670
17670
  var returnedFn = opts.client ? fn : function anonymous(data) {
17671
- var include = function(path$17, includeData) {
17671
+ var include = function(path$16, includeData) {
17672
17672
  var d$2 = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
17673
17673
  if (includeData) d$2 = utils.shallowCopy(d$2, includeData);
17674
- return includeFile(path$17, opts)(d$2);
17674
+ return includeFile(path$16, opts)(d$2);
17675
17675
  };
17676
17676
  return fn.apply(opts.context, [
17677
17677
  data || utils.createNullProtoObjWherePossible(),
@@ -17682,7 +17682,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17682
17682
  };
17683
17683
  if (opts.filename && typeof Object.defineProperty === "function") {
17684
17684
  var filename = opts.filename;
17685
- var basename$1 = path$5.basename(filename, path$5.extname(filename));
17685
+ var basename$1 = path$4.basename(filename, path$4.extname(filename));
17686
17686
  try {
17687
17687
  Object.defineProperty(returnedFn, "name", {
17688
17688
  value: basename$1,
@@ -27411,15 +27411,15 @@ var ReadStream = class extends Minipass {
27411
27411
  [_size];
27412
27412
  [_remain];
27413
27413
  [_autoClose];
27414
- constructor(path$17, opt) {
27414
+ constructor(path$16, opt) {
27415
27415
  opt = opt || {};
27416
27416
  super(opt);
27417
27417
  this.readable = true;
27418
27418
  this.writable = false;
27419
- if (typeof path$17 !== "string") throw new TypeError("path must be a string");
27419
+ if (typeof path$16 !== "string") throw new TypeError("path must be a string");
27420
27420
  this[_errored] = false;
27421
27421
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27422
- this[_path] = path$17;
27422
+ this[_path] = path$16;
27423
27423
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
27424
27424
  this[_reading] = false;
27425
27425
  this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -27561,10 +27561,10 @@ var WriteStream = class extends EE {
27561
27561
  [_flags];
27562
27562
  [_finished] = false;
27563
27563
  [_pos];
27564
- constructor(path$17, opt) {
27564
+ constructor(path$16, opt) {
27565
27565
  opt = opt || {};
27566
27566
  super(opt);
27567
- this[_path] = path$17;
27567
+ this[_path] = path$16;
27568
27568
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27569
27569
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
27570
27570
  this[_pos] = typeof opt.start === "number" ? opt.start : void 0;
@@ -28323,10 +28323,10 @@ var Header = class {
28323
28323
  if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
28324
28324
  const prefixSize = this.ctime || this.atime ? 130 : 155;
28325
28325
  const split = splitPrefix(this.path || "", prefixSize);
28326
- const path$17 = split[0];
28326
+ const path$16 = split[0];
28327
28327
  const prefix = split[1];
28328
28328
  this.needPax = !!split[2];
28329
- this.needPax = encString(buf, off, 100, path$17) || this.needPax;
28329
+ this.needPax = encString(buf, off, 100, path$16) || this.needPax;
28330
28330
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
28331
28331
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
28332
28332
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -29165,16 +29165,16 @@ const modeFix = (mode, isDir, portable) => {
29165
29165
  //#endregion
29166
29166
  //#region node_modules/tar/dist/esm/strip-absolute-path.js
29167
29167
  const { isAbsolute, parse: parse$1 } = win32;
29168
- const stripAbsolutePath = (path$17) => {
29168
+ const stripAbsolutePath = (path$16) => {
29169
29169
  let r$1 = "";
29170
- let parsed = parse$1(path$17);
29171
- while (isAbsolute(path$17) || parsed.root) {
29172
- const root = path$17.charAt(0) === "/" && path$17.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29173
- path$17 = path$17.slice(root.length);
29170
+ let parsed = parse$1(path$16);
29171
+ while (isAbsolute(path$16) || parsed.root) {
29172
+ const root = path$16.charAt(0) === "/" && path$16.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29173
+ path$16 = path$16.slice(root.length);
29174
29174
  r$1 += root;
29175
- parsed = parse$1(path$17);
29175
+ parsed = parse$1(path$16);
29176
29176
  }
29177
- return [r$1, path$17];
29177
+ return [r$1, path$16];
29178
29178
  };
29179
29179
 
29180
29180
  //#endregion
@@ -29194,10 +29194,10 @@ const decode = (s) => win.reduce((s$1, c$1) => s$1.split(c$1).join(toRaw.get(c$1
29194
29194
 
29195
29195
  //#endregion
29196
29196
  //#region node_modules/tar/dist/esm/write-entry.js
29197
- const prefixPath = (path$17, prefix) => {
29198
- if (!prefix) return normalizeWindowsPath(path$17);
29199
- path$17 = normalizeWindowsPath(path$17).replace(/^\.(\/|$)/, "");
29200
- return stripTrailingSlashes(prefix) + "/" + path$17;
29197
+ const prefixPath = (path$16, prefix) => {
29198
+ if (!prefix) return normalizeWindowsPath(path$16);
29199
+ path$16 = normalizeWindowsPath(path$16).replace(/^\.(\/|$)/, "");
29200
+ return stripTrailingSlashes(prefix) + "/" + path$16;
29201
29201
  };
29202
29202
  const maxReadSize = 16 * 1024 * 1024;
29203
29203
  const PROCESS$1 = Symbol("process");
@@ -29279,7 +29279,7 @@ var WriteEntry = class extends Minipass {
29279
29279
  this.path = decode(this.path.replace(/\\/g, "/"));
29280
29280
  p$1 = p$1.replace(/\\/g, "/");
29281
29281
  }
29282
- this.absolute = normalizeWindowsPath(opt.absolute || path$1.resolve(this.cwd, p$1));
29282
+ this.absolute = normalizeWindowsPath(opt.absolute || path.resolve(this.cwd, p$1));
29283
29283
  if (this.path === "") this.path = "./";
29284
29284
  if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
29285
29285
  entry: this,
@@ -29321,8 +29321,8 @@ var WriteEntry = class extends Minipass {
29321
29321
  [MODE](mode) {
29322
29322
  return modeFix(mode, this.type === "Directory", this.portable);
29323
29323
  }
29324
- [PREFIX](path$17) {
29325
- return prefixPath(path$17, this.prefix);
29324
+ [PREFIX](path$16) {
29325
+ return prefixPath(path$16, this.prefix);
29326
29326
  }
29327
29327
  [HEADER]() {
29328
29328
  /* c8 ignore start */
@@ -29388,7 +29388,7 @@ var WriteEntry = class extends Minipass {
29388
29388
  if (!this.stat) throw new Error("cannot create link entry without stat");
29389
29389
  /* c8 ignore stop */
29390
29390
  this.type = "Link";
29391
- this.linkpath = normalizeWindowsPath(path$1.relative(this.cwd, linkpath));
29391
+ this.linkpath = normalizeWindowsPath(path.relative(this.cwd, linkpath));
29392
29392
  this.stat.size = 0;
29393
29393
  this[HEADER]();
29394
29394
  this.end();
@@ -29654,8 +29654,8 @@ var WriteEntryTar = class extends Minipass {
29654
29654
  super.write(b$2);
29655
29655
  readEntry.pipe(this);
29656
29656
  }
29657
- [PREFIX](path$17) {
29658
- return prefixPath(path$17, this.prefix);
29657
+ [PREFIX](path$16) {
29658
+ return prefixPath(path$16, this.prefix);
29659
29659
  }
29660
29660
  [MODE](mode) {
29661
29661
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -29964,8 +29964,8 @@ var PackJob = class {
29964
29964
  pending = false;
29965
29965
  ignore = false;
29966
29966
  piped = false;
29967
- constructor(path$17, absolute) {
29968
- this.path = path$17 || "./";
29967
+ constructor(path$16, absolute) {
29968
+ this.path = path$16 || "./";
29969
29969
  this.absolute = absolute;
29970
29970
  }
29971
29971
  };
@@ -30070,36 +30070,36 @@ var Pack = class extends Minipass {
30070
30070
  [WRITE](chunk) {
30071
30071
  return super.write(chunk);
30072
30072
  }
30073
- add(path$17) {
30074
- this.write(path$17);
30073
+ add(path$16) {
30074
+ this.write(path$16);
30075
30075
  return this;
30076
30076
  }
30077
- end(path$17, encoding, cb) {
30077
+ end(path$16, encoding, cb) {
30078
30078
  /* c8 ignore start */
30079
- if (typeof path$17 === "function") {
30080
- cb = path$17;
30081
- path$17 = void 0;
30079
+ if (typeof path$16 === "function") {
30080
+ cb = path$16;
30081
+ path$16 = void 0;
30082
30082
  }
30083
30083
  if (typeof encoding === "function") {
30084
30084
  cb = encoding;
30085
30085
  encoding = void 0;
30086
30086
  }
30087
30087
  /* c8 ignore stop */
30088
- if (path$17) this.add(path$17);
30088
+ if (path$16) this.add(path$16);
30089
30089
  this[ENDED$1] = true;
30090
30090
  this[PROCESS]();
30091
30091
  /* c8 ignore next */
30092
30092
  if (cb) cb();
30093
30093
  return this;
30094
30094
  }
30095
- write(path$17) {
30095
+ write(path$16) {
30096
30096
  if (this[ENDED$1]) throw new Error("write after end");
30097
- if (path$17 instanceof ReadEntry) this[ADDTARENTRY](path$17);
30098
- else this[ADDFSENTRY](path$17);
30097
+ if (path$16 instanceof ReadEntry) this[ADDTARENTRY](path$16);
30098
+ else this[ADDFSENTRY](path$16);
30099
30099
  return this.flowing;
30100
30100
  }
30101
30101
  [ADDTARENTRY](p$1) {
30102
- const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1.path));
30102
+ const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1.path));
30103
30103
  if (!this.filter(p$1.path, p$1)) p$1.resume();
30104
30104
  else {
30105
30105
  const job = new PackJob(p$1.path, absolute);
@@ -30111,7 +30111,7 @@ var Pack = class extends Minipass {
30111
30111
  this[PROCESS]();
30112
30112
  }
30113
30113
  [ADDFSENTRY](p$1) {
30114
- const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1));
30114
+ const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1));
30115
30115
  this[QUEUE].push(new PackJob(p$1, absolute));
30116
30116
  this[PROCESS]();
30117
30117
  }
@@ -30312,7 +30312,7 @@ const createFile = (opt, files) => {
30312
30312
  const addFilesSync$1 = (p$1, files) => {
30313
30313
  files.forEach((file) => {
30314
30314
  if (file.charAt(0) === "@") list({
30315
- file: path.resolve(p$1.cwd, file.slice(1)),
30315
+ file: nodePath.resolve(p$1.cwd, file.slice(1)),
30316
30316
  sync: true,
30317
30317
  noResume: true,
30318
30318
  onReadEntry: (entry) => p$1.add(entry)
@@ -30325,7 +30325,7 @@ const addFilesAsync$1 = async (p$1, files) => {
30325
30325
  for (let i$1 = 0; i$1 < files.length; i$1++) {
30326
30326
  const file = String(files[i$1]);
30327
30327
  if (file.charAt(0) === "@") await list({
30328
- file: path.resolve(String(p$1.cwd), file.slice(1)),
30328
+ file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
30329
30329
  noResume: true,
30330
30330
  onReadEntry: (entry) => {
30331
30331
  p$1.add(entry);
@@ -30363,9 +30363,9 @@ const getWriteFlag = !fMapEnabled ? () => "w" : (size) => size < fMapLimit ? fMa
30363
30363
 
30364
30364
  //#endregion
30365
30365
  //#region node_modules/chownr/dist/esm/index.js
30366
- const lchownSync = (path$17, uid, gid) => {
30366
+ const lchownSync = (path$16, uid, gid) => {
30367
30367
  try {
30368
- return fs.lchownSync(path$17, uid, gid);
30368
+ return fs.lchownSync(path$16, uid, gid);
30369
30369
  } catch (er) {
30370
30370
  if (er?.code !== "ENOENT") throw er;
30371
30371
  }
@@ -30376,11 +30376,11 @@ const chown = (cpath, uid, gid, cb) => {
30376
30376
  });
30377
30377
  };
30378
30378
  const chownrKid = (p$1, child, uid, gid, cb) => {
30379
- if (child.isDirectory()) chownr(path.resolve(p$1, child.name), uid, gid, (er) => {
30379
+ if (child.isDirectory()) chownr(nodePath.resolve(p$1, child.name), uid, gid, (er) => {
30380
30380
  if (er) return cb(er);
30381
- chown(path.resolve(p$1, child.name), uid, gid, cb);
30381
+ chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30382
30382
  });
30383
- else chown(path.resolve(p$1, child.name), uid, gid, cb);
30383
+ else chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30384
30384
  };
30385
30385
  const chownr = (p$1, uid, gid, cb) => {
30386
30386
  fs.readdir(p$1, { withFileTypes: true }, (er, children) => {
@@ -30402,8 +30402,8 @@ const chownr = (p$1, uid, gid, cb) => {
30402
30402
  });
30403
30403
  };
30404
30404
  const chownrKidSync = (p$1, child, uid, gid) => {
30405
- if (child.isDirectory()) chownrSync(path.resolve(p$1, child.name), uid, gid);
30406
- lchownSync(path.resolve(p$1, child.name), uid, gid);
30405
+ if (child.isDirectory()) chownrSync(nodePath.resolve(p$1, child.name), uid, gid);
30406
+ lchownSync(nodePath.resolve(p$1, child.name), uid, gid);
30407
30407
  };
30408
30408
  const chownrSync = (p$1, uid, gid) => {
30409
30409
  let children;
@@ -30425,9 +30425,9 @@ var CwdError = class extends Error {
30425
30425
  path;
30426
30426
  code;
30427
30427
  syscall = "chdir";
30428
- constructor(path$17, code$1) {
30429
- super(`${code$1}: Cannot cd into '${path$17}'`);
30430
- this.path = path$17;
30428
+ constructor(path$16, code$1) {
30429
+ super(`${code$1}: Cannot cd into '${path$16}'`);
30430
+ this.path = path$16;
30431
30431
  this.code = code$1;
30432
30432
  }
30433
30433
  get name() {
@@ -30442,10 +30442,10 @@ var SymlinkError = class extends Error {
30442
30442
  symlink;
30443
30443
  syscall = "symlink";
30444
30444
  code = "TAR_SYMLINK_ERROR";
30445
- constructor(symlink, path$17) {
30445
+ constructor(symlink, path$16) {
30446
30446
  super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");
30447
30447
  this.symlink = symlink;
30448
- this.path = path$17;
30448
+ this.path = path$16;
30449
30449
  }
30450
30450
  get name() {
30451
30451
  return "SymlinkError";
@@ -30491,12 +30491,12 @@ const mkdir$1 = (dir, opt, cb) => {
30491
30491
  mode,
30492
30492
  recursive: true
30493
30493
  }).then((made) => done(null, made ?? void 0), done);
30494
- mkdir_(cwd, normalizeWindowsPath(path.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30494
+ mkdir_(cwd, normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30495
30495
  };
30496
30496
  const mkdir_ = (base, parts, mode, unlink$1, cwd, created, cb) => {
30497
30497
  if (!parts.length) return cb(null, created);
30498
30498
  const p$1 = parts.shift();
30499
- const part = normalizeWindowsPath(path.resolve(base + "/" + p$1));
30499
+ const part = normalizeWindowsPath(nodePath.resolve(base + "/" + p$1));
30500
30500
  fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink$1, cwd, created, cb));
30501
30501
  };
30502
30502
  const onmkdir = (part, parts, mode, unlink$1, cwd, created, cb) => (er) => {
@@ -30552,10 +30552,10 @@ const mkdirSync = (dir, opt) => {
30552
30552
  mode,
30553
30553
  recursive: true
30554
30554
  }) ?? void 0);
30555
- const parts = normalizeWindowsPath(path.relative(cwd, dir)).split("/");
30555
+ const parts = normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/");
30556
30556
  let created = void 0;
30557
30557
  for (let p$1 = parts.shift(), part = cwd; p$1 && (part += "/" + p$1); p$1 = parts.shift()) {
30558
- part = normalizeWindowsPath(path.resolve(part));
30558
+ part = normalizeWindowsPath(nodePath.resolve(part));
30559
30559
  try {
30560
30560
  fs.mkdirSync(part, mode);
30561
30561
  created = created || part;
@@ -30595,11 +30595,11 @@ const normalizeUnicode = (s) => {
30595
30595
  //#endregion
30596
30596
  //#region node_modules/tar/dist/esm/path-reservations.js
30597
30597
  const isWindows$1 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30598
- const getDirs = (path$17) => {
30599
- return path$17.split("/").slice(0, -1).reduce((set, path$18) => {
30598
+ const getDirs = (path$16) => {
30599
+ return path$16.split("/").slice(0, -1).reduce((set, path$17) => {
30600
30600
  const s = set[set.length - 1];
30601
- if (s !== void 0) path$18 = join(s, path$18);
30602
- set.push(path$18 || "/");
30601
+ if (s !== void 0) path$17 = join(s, path$17);
30602
+ set.push(path$17 || "/");
30603
30603
  return set;
30604
30604
  }, []);
30605
30605
  };
@@ -30611,7 +30611,7 @@ var PathReservations = class {
30611
30611
  paths = isWindows$1 ? ["win32 parallelization disabled"] : paths.map((p$1) => {
30612
30612
  return stripTrailingSlashes(join(normalizeUnicode(p$1))).toLowerCase();
30613
30613
  });
30614
- const dirs = new Set(paths.map((path$17) => getDirs(path$17)).reduce((a$1, b$2) => a$1.concat(b$2)));
30614
+ const dirs = new Set(paths.map((path$16) => getDirs(path$16)).reduce((a$1, b$2) => a$1.concat(b$2)));
30615
30615
  this.#reservations.set(fn, {
30616
30616
  dirs,
30617
30617
  paths
@@ -30638,8 +30638,8 @@ var PathReservations = class {
30638
30638
  if (!res) throw new Error("function does not have any path reservations");
30639
30639
  /* c8 ignore stop */
30640
30640
  return {
30641
- paths: res.paths.map((path$17) => this.#queues.get(path$17)),
30642
- dirs: [...res.dirs].map((path$17) => this.#queues.get(path$17))
30641
+ paths: res.paths.map((path$16) => this.#queues.get(path$16)),
30642
+ dirs: [...res.dirs].map((path$16) => this.#queues.get(path$16))
30643
30643
  };
30644
30644
  }
30645
30645
  check(fn) {
@@ -30660,14 +30660,14 @@ var PathReservations = class {
30660
30660
  /* c8 ignore stop */
30661
30661
  const { paths, dirs } = res;
30662
30662
  const next = /* @__PURE__ */ new Set();
30663
- for (const path$17 of paths) {
30664
- const q$2 = this.#queues.get(path$17);
30663
+ for (const path$16 of paths) {
30664
+ const q$2 = this.#queues.get(path$16);
30665
30665
  /* c8 ignore start */
30666
30666
  if (!q$2 || q$2?.[0] !== fn) continue;
30667
30667
  /* c8 ignore stop */
30668
30668
  const q0 = q$2[1];
30669
30669
  if (!q0) {
30670
- this.#queues.delete(path$17);
30670
+ this.#queues.delete(path$16);
30671
30671
  continue;
30672
30672
  }
30673
30673
  q$2.shift();
@@ -30724,20 +30724,20 @@ const CHECKED_CWD = Symbol("checkedCwd");
30724
30724
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30725
30725
  const DEFAULT_MAX_DEPTH = 1024;
30726
30726
  /* c8 ignore start */
30727
- const unlinkFile = (path$17, cb) => {
30728
- if (!isWindows) return fs.unlink(path$17, cb);
30729
- const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30730
- fs.rename(path$17, name$1, (er) => {
30727
+ const unlinkFile = (path$16, cb) => {
30728
+ if (!isWindows) return fs.unlink(path$16, cb);
30729
+ const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30730
+ fs.rename(path$16, name$1, (er) => {
30731
30731
  if (er) return cb(er);
30732
30732
  fs.unlink(name$1, cb);
30733
30733
  });
30734
30734
  };
30735
30735
  /* c8 ignore stop */
30736
30736
  /* c8 ignore start */
30737
- const unlinkFileSync = (path$17) => {
30738
- if (!isWindows) return fs.unlinkSync(path$17);
30739
- const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30740
- fs.renameSync(path$17, name$1);
30737
+ const unlinkFileSync = (path$16) => {
30738
+ if (!isWindows) return fs.unlinkSync(path$16);
30739
+ const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30740
+ fs.renameSync(path$16, name$1);
30741
30741
  fs.unlinkSync(name$1);
30742
30742
  };
30743
30743
  /* c8 ignore stop */
@@ -30802,7 +30802,7 @@ var Unpack = class extends Parser {
30802
30802
  this.noMtime = !!opt.noMtime;
30803
30803
  this.preservePaths = !!opt.preservePaths;
30804
30804
  this.unlink = !!opt.unlink;
30805
- this.cwd = normalizeWindowsPath(path.resolve(opt.cwd || process.cwd()));
30805
+ this.cwd = normalizeWindowsPath(nodePath.resolve(opt.cwd || process.cwd()));
30806
30806
  this.strip = Number(opt.strip) || 0;
30807
30807
  this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
30808
30808
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -30822,22 +30822,22 @@ var Unpack = class extends Parser {
30822
30822
  }
30823
30823
  }
30824
30824
  [STRIPABSOLUTEPATH](entry, field) {
30825
- const path$17 = entry[field];
30826
- if (!path$17 || this.preservePaths) return true;
30827
- const parts = path$17.split("/");
30825
+ const path$16 = entry[field];
30826
+ if (!path$16 || this.preservePaths) return true;
30827
+ const parts = path$16.split("/");
30828
30828
  if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
30829
30829
  this.warn("TAR_ENTRY_ERROR", `${field} contains '..'`, {
30830
30830
  entry,
30831
- [field]: path$17
30831
+ [field]: path$16
30832
30832
  });
30833
30833
  return false;
30834
30834
  }
30835
- const [root, stripped] = stripAbsolutePath(path$17);
30835
+ const [root, stripped] = stripAbsolutePath(path$16);
30836
30836
  if (root) {
30837
30837
  entry[field] = String(stripped);
30838
30838
  this.warn("TAR_ENTRY_INFO", `stripping ${root} from absolute ${field}`, {
30839
30839
  entry,
30840
- [field]: path$17
30840
+ [field]: path$16
30841
30841
  });
30842
30842
  }
30843
30843
  return true;
@@ -30865,8 +30865,8 @@ var Unpack = class extends Parser {
30865
30865
  return false;
30866
30866
  }
30867
30867
  if (!this[STRIPABSOLUTEPATH](entry, "path") || !this[STRIPABSOLUTEPATH](entry, "linkpath")) return false;
30868
- if (path.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(path.resolve(entry.path));
30869
- else entry.absolute = normalizeWindowsPath(path.resolve(this.cwd, entry.path));
30868
+ if (nodePath.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(nodePath.resolve(entry.path));
30869
+ else entry.absolute = normalizeWindowsPath(nodePath.resolve(this.cwd, entry.path));
30870
30870
  /* c8 ignore start - defense in depth */
30871
30871
  if (!this.preservePaths && typeof entry.absolute === "string" && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
30872
30872
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -30880,9 +30880,9 @@ var Unpack = class extends Parser {
30880
30880
  /* c8 ignore stop */
30881
30881
  if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
30882
30882
  if (this.win32) {
30883
- const { root: aRoot } = path.win32.parse(String(entry.absolute));
30883
+ const { root: aRoot } = nodePath.win32.parse(String(entry.absolute));
30884
30884
  entry.absolute = aRoot + encode(String(entry.absolute).slice(aRoot.length));
30885
- const { root: pRoot } = path.win32.parse(entry.path);
30885
+ const { root: pRoot } = nodePath.win32.parse(entry.path);
30886
30886
  entry.path = pRoot + encode(entry.path.slice(pRoot.length));
30887
30887
  }
30888
30888
  return true;
@@ -31028,7 +31028,7 @@ var Unpack = class extends Parser {
31028
31028
  this[LINK](entry, String(entry.linkpath), "symlink", done);
31029
31029
  }
31030
31030
  [HARDLINK](entry, done) {
31031
- const linkpath = normalizeWindowsPath(path.resolve(this.cwd, String(entry.linkpath)));
31031
+ const linkpath = normalizeWindowsPath(nodePath.resolve(this.cwd, String(entry.linkpath)));
31032
31032
  this[LINK](entry, linkpath, "link", done);
31033
31033
  }
31034
31034
  [PEND]() {
@@ -31068,7 +31068,7 @@ var Unpack = class extends Parser {
31068
31068
  };
31069
31069
  const start = () => {
31070
31070
  if (entry.absolute !== this.cwd) {
31071
- const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31071
+ const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31072
31072
  if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
31073
31073
  if (er) {
31074
31074
  this[ONERROR](er, entry);
@@ -31150,7 +31150,7 @@ var UnpackSync = class extends Unpack {
31150
31150
  this[CHECKED_CWD] = true;
31151
31151
  }
31152
31152
  if (entry.absolute !== this.cwd) {
31153
- const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31153
+ const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31154
31154
  if (parent !== this.cwd) {
31155
31155
  const mkParent = this[MKDIR](parent, this.dmode);
31156
31156
  if (mkParent) return this[ONERROR](mkParent, entry);
@@ -31422,7 +31422,7 @@ const replaceAsync = (opt, files) => {
31422
31422
  const addFilesSync = (p$1, files) => {
31423
31423
  files.forEach((file) => {
31424
31424
  if (file.charAt(0) === "@") list({
31425
- file: path.resolve(p$1.cwd, file.slice(1)),
31425
+ file: nodePath.resolve(p$1.cwd, file.slice(1)),
31426
31426
  sync: true,
31427
31427
  noResume: true,
31428
31428
  onReadEntry: (entry) => p$1.add(entry)
@@ -31435,7 +31435,7 @@ const addFilesAsync = async (p$1, files) => {
31435
31435
  for (let i$1 = 0; i$1 < files.length; i$1++) {
31436
31436
  const file = String(files[i$1]);
31437
31437
  if (file.charAt(0) === "@") await list({
31438
- file: path.resolve(String(p$1.cwd), file.slice(1)),
31438
+ file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
31439
31439
  noResume: true,
31440
31440
  onReadEntry: (entry) => p$1.add(entry)
31441
31441
  });
@@ -31470,7 +31470,7 @@ const update = makeCommand(replace.syncFile, replace.asyncFile, replace.syncNoFi
31470
31470
  const mtimeFilter = (opt) => {
31471
31471
  const filter = opt.filter;
31472
31472
  if (!opt.mtimeCache) opt.mtimeCache = /* @__PURE__ */ new Map();
31473
- 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));
31473
+ 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));
31474
31474
  };
31475
31475
 
31476
31476
  //#endregion
@@ -32332,28 +32332,28 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32332
32332
  module.exports = isexe;
32333
32333
  isexe.sync = sync;
32334
32334
  var fs$4 = __require("fs");
32335
- function checkPathExt(path$17, options) {
32335
+ function checkPathExt(path$16, options) {
32336
32336
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
32337
32337
  if (!pathext) return true;
32338
32338
  pathext = pathext.split(";");
32339
32339
  if (pathext.indexOf("") !== -1) return true;
32340
32340
  for (var i$1 = 0; i$1 < pathext.length; i$1++) {
32341
32341
  var p$1 = pathext[i$1].toLowerCase();
32342
- if (p$1 && path$17.substr(-p$1.length).toLowerCase() === p$1) return true;
32342
+ if (p$1 && path$16.substr(-p$1.length).toLowerCase() === p$1) return true;
32343
32343
  }
32344
32344
  return false;
32345
32345
  }
32346
- function checkStat(stat, path$17, options) {
32346
+ function checkStat(stat, path$16, options) {
32347
32347
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
32348
- return checkPathExt(path$17, options);
32348
+ return checkPathExt(path$16, options);
32349
32349
  }
32350
- function isexe(path$17, options, cb) {
32351
- fs$4.stat(path$17, function(er, stat) {
32352
- cb(er, er ? false : checkStat(stat, path$17, options));
32350
+ function isexe(path$16, options, cb) {
32351
+ fs$4.stat(path$16, function(er, stat) {
32352
+ cb(er, er ? false : checkStat(stat, path$16, options));
32353
32353
  });
32354
32354
  }
32355
- function sync(path$17, options) {
32356
- return checkStat(fs$4.statSync(path$17), path$17, options);
32355
+ function sync(path$16, options) {
32356
+ return checkStat(fs$4.statSync(path$16), path$16, options);
32357
32357
  }
32358
32358
  }));
32359
32359
 
@@ -32363,13 +32363,13 @@ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32363
32363
  module.exports = isexe;
32364
32364
  isexe.sync = sync;
32365
32365
  var fs$3 = __require("fs");
32366
- function isexe(path$17, options, cb) {
32367
- fs$3.stat(path$17, function(er, stat) {
32366
+ function isexe(path$16, options, cb) {
32367
+ fs$3.stat(path$16, function(er, stat) {
32368
32368
  cb(er, er ? false : checkStat(stat, options));
32369
32369
  });
32370
32370
  }
32371
- function sync(path$17, options) {
32372
- return checkStat(fs$3.statSync(path$17), options);
32371
+ function sync(path$16, options) {
32372
+ return checkStat(fs$3.statSync(path$16), options);
32373
32373
  }
32374
32374
  function checkStat(stat, options) {
32375
32375
  return stat.isFile() && checkMode(stat, options);
@@ -32397,7 +32397,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32397
32397
  else core = require_mode();
32398
32398
  module.exports = isexe;
32399
32399
  isexe.sync = sync;
32400
- function isexe(path$17, options, cb) {
32400
+ function isexe(path$16, options, cb) {
32401
32401
  if (typeof options === "function") {
32402
32402
  cb = options;
32403
32403
  options = {};
@@ -32405,13 +32405,13 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32405
32405
  if (!cb) {
32406
32406
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
32407
32407
  return new Promise(function(resolve$1, reject) {
32408
- isexe(path$17, options || {}, function(er, is) {
32408
+ isexe(path$16, options || {}, function(er, is) {
32409
32409
  if (er) reject(er);
32410
32410
  else resolve$1(is);
32411
32411
  });
32412
32412
  });
32413
32413
  }
32414
- core(path$17, options || {}, function(er, is) {
32414
+ core(path$16, options || {}, function(er, is) {
32415
32415
  if (er) {
32416
32416
  if (er.code === "EACCES" || options && options.ignoreErrors) {
32417
32417
  er = null;
@@ -32421,9 +32421,9 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32421
32421
  cb(er, is);
32422
32422
  });
32423
32423
  }
32424
- function sync(path$17, options) {
32424
+ function sync(path$16, options) {
32425
32425
  try {
32426
- return core.sync(path$17, options || {});
32426
+ return core.sync(path$16, options || {});
32427
32427
  } catch (er) {
32428
32428
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
32429
32429
  else throw er;
@@ -32435,7 +32435,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32435
32435
  //#region node_modules/which/which.js
32436
32436
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32437
32437
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
32438
- const path$4 = __require("path");
32438
+ const path$3 = __require("path");
32439
32439
  const COLON = isWindows ? ";" : ":";
32440
32440
  const isexe = require_isexe();
32441
32441
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -32465,7 +32465,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32465
32465
  if (i$1 === pathEnv.length) return opt.all && found.length ? resolve$1(found) : reject(getNotFoundError(cmd));
32466
32466
  const ppRaw = pathEnv[i$1];
32467
32467
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32468
- const pCmd = path$4.join(pathPart, cmd);
32468
+ const pCmd = path$3.join(pathPart, cmd);
32469
32469
  resolve$1(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
32470
32470
  });
32471
32471
  const subStep = (p$1, i$1, ii) => new Promise((resolve$1, reject) => {
@@ -32486,7 +32486,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32486
32486
  for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
32487
32487
  const ppRaw = pathEnv[i$1];
32488
32488
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32489
- const pCmd = path$4.join(pathPart, cmd);
32489
+ const pCmd = path$3.join(pathPart, cmd);
32490
32490
  const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
32491
32491
  for (let j = 0; j < pathExt.length; j++) {
32492
32492
  const cur = p$1 + pathExt[j];
@@ -32519,7 +32519,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32519
32519
  //#endregion
32520
32520
  //#region node_modules/cross-spawn/lib/util/resolveCommand.js
32521
32521
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32522
- const path$3 = __require("path");
32522
+ const path$2 = __require("path");
32523
32523
  const which = require_which();
32524
32524
  const getPathKey = require_path_key();
32525
32525
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -32534,12 +32534,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
32534
32534
  try {
32535
32535
  resolved = which.sync(parsed.command, {
32536
32536
  path: env$1[getPathKey({ env: env$1 })],
32537
- pathExt: withoutPathExt ? path$3.delimiter : void 0
32537
+ pathExt: withoutPathExt ? path$2.delimiter : void 0
32538
32538
  });
32539
32539
  } catch (e$1) {} finally {
32540
32540
  if (shouldSwitchCwd) process.chdir(cwd);
32541
32541
  }
32542
- if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32542
+ if (resolved) resolved = path$2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32543
32543
  return resolved;
32544
32544
  }
32545
32545
  function resolveCommand(parsed) {
@@ -32582,8 +32582,8 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
32582
32582
  module.exports = (string$2 = "") => {
32583
32583
  const match = string$2.match(shebangRegex);
32584
32584
  if (!match) return null;
32585
- const [path$17, argument] = match[0].replace(/#! ?/, "").split(" ");
32586
- const binary = path$17.split("/").pop();
32585
+ const [path$16, argument] = match[0].replace(/#! ?/, "").split(" ");
32586
+ const binary = path$16.split("/").pop();
32587
32587
  if (binary === "env") return argument;
32588
32588
  return argument ? `${binary} ${argument}` : binary;
32589
32589
  };
@@ -32611,7 +32611,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32611
32611
  //#endregion
32612
32612
  //#region node_modules/cross-spawn/lib/parse.js
32613
32613
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32614
- const path$2 = __require("path");
32614
+ const path$1 = __require("path");
32615
32615
  const resolveCommand = require_resolveCommand();
32616
32616
  const escape = require_escape();
32617
32617
  const readShebang = require_readShebang();
@@ -32634,7 +32634,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32634
32634
  const needsShell = !isExecutableRegExp.test(commandFile);
32635
32635
  if (parsed.options.forceShell || needsShell) {
32636
32636
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
32637
- parsed.command = path$2.normalize(parsed.command);
32637
+ parsed.command = path$1.normalize(parsed.command);
32638
32638
  parsed.command = escape.command(parsed.command);
32639
32639
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
32640
32640
  parsed.args = [
@@ -32752,12 +32752,12 @@ function toPath(urlOrPath) {
32752
32752
  }
32753
32753
  function traversePathUp(startPath) {
32754
32754
  return { *[Symbol.iterator]() {
32755
- let currentPath = path.resolve(toPath(startPath));
32755
+ let currentPath = nodePath.resolve(toPath(startPath));
32756
32756
  let previousPath;
32757
32757
  while (previousPath !== currentPath) {
32758
32758
  yield currentPath;
32759
32759
  previousPath = currentPath;
32760
- currentPath = path.resolve(currentPath, "..");
32760
+ currentPath = nodePath.resolve(currentPath, "..");
32761
32761
  }
32762
32762
  } };
32763
32763
  }
@@ -32766,21 +32766,21 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
32766
32766
  //#endregion
32767
32767
  //#region node_modules/npm-run-path/index.js
32768
32768
  const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
32769
- const cwdPath = path.resolve(toPath(cwd));
32769
+ const cwdPath = nodePath.resolve(toPath(cwd));
32770
32770
  const result = [];
32771
- const pathParts = pathOption.split(path.delimiter);
32771
+ const pathParts = pathOption.split(nodePath.delimiter);
32772
32772
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
32773
32773
  if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
32774
- return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
32774
+ return pathOption === "" || pathOption === nodePath.delimiter ? `${result.join(nodePath.delimiter)}${pathOption}` : [...result, pathOption].join(nodePath.delimiter);
32775
32775
  };
32776
32776
  const applyPreferLocal = (result, pathParts, cwdPath) => {
32777
32777
  for (const directory of traversePathUp(cwdPath)) {
32778
- const pathPart = path.join(directory, "node_modules/.bin");
32778
+ const pathPart = nodePath.join(directory, "node_modules/.bin");
32779
32779
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32780
32780
  }
32781
32781
  };
32782
32782
  const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
32783
- const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
32783
+ const pathPart = nodePath.resolve(cwdPath, toPath(execPath$1), "..");
32784
32784
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32785
32785
  };
32786
32786
  const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
@@ -33812,10 +33812,10 @@ const mapNode = ({ options }) => {
33812
33812
  node: true
33813
33813
  } };
33814
33814
  };
33815
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33815
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath: nodePath$1 = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33816
33816
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
33817
- const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
33818
- const resolvedNodePath = path.resolve(cwd, normalizedNodePath);
33817
+ const normalizedNodePath = safeNormalizeFileUrl(nodePath$1, "The \"nodePath\" option");
33818
+ const resolvedNodePath = nodePath.resolve(cwd, normalizedNodePath);
33819
33819
  const newOptions = {
33820
33820
  ...options,
33821
33821
  nodePath: resolvedNodePath,
@@ -33827,7 +33827,7 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
33827
33827
  commandArguments,
33828
33828
  newOptions
33829
33829
  ];
33830
- if (path.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33830
+ if (nodePath.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33831
33831
  return [
33832
33832
  resolvedNodePath,
33833
33833
  [
@@ -33914,7 +33914,7 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
33914
33914
  //#region node_modules/execa/lib/arguments/cwd.js
33915
33915
  const normalizeCwd = (cwd = getDefaultCwd()) => {
33916
33916
  const cwdString = safeNormalizeFileUrl(cwd, "The \"cwd\" option");
33917
- return path.resolve(cwdString);
33917
+ return nodePath.resolve(cwdString);
33918
33918
  };
33919
33919
  const getDefaultCwd = () => {
33920
33920
  try {
@@ -33953,7 +33953,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
33953
33953
  options.killSignal = normalizeKillSignal(options.killSignal);
33954
33954
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
33955
33955
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
33956
- if (y.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33956
+ if (y.platform === "win32" && nodePath.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33957
33957
  return {
33958
33958
  file,
33959
33959
  commandArguments,
@@ -33978,7 +33978,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
33978
33978
  ipc,
33979
33979
  serialization
33980
33980
  });
33981
- const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
33981
+ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath$1 }) => {
33982
33982
  const env$1 = extendEnv ? {
33983
33983
  ...y.env,
33984
33984
  ...envOption
@@ -33986,7 +33986,7 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
33986
33986
  if (preferLocal || node) return npmRunPathEnv({
33987
33987
  env: env$1,
33988
33988
  cwd: localDirectory,
33989
- execPath: nodePath,
33989
+ execPath: nodePath$1,
33990
33990
  preferLocal,
33991
33991
  addExecPath: node
33992
33992
  });
@@ -35731,12 +35731,12 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
35731
35731
  }
35732
35732
  };
35733
35733
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
35734
- for (const { path: path$17, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35735
- const pathString = typeof path$17 === "string" ? path$17 : path$17.toString();
35736
- if (append || outputFiles.has(pathString)) appendFileSync(path$17, serializedResult);
35734
+ for (const { path: path$16, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35735
+ const pathString = typeof path$16 === "string" ? path$16 : path$16.toString();
35736
+ if (append || outputFiles.has(pathString)) appendFileSync(path$16, serializedResult);
35737
35737
  else {
35738
35738
  outputFiles.add(pathString);
35739
- writeFileSync(path$17, serializedResult);
35739
+ writeFileSync(path$16, serializedResult);
35740
35740
  }
35741
35741
  }
35742
35742
  };
@@ -38214,8 +38214,8 @@ async function getDefaultTemplate() {
38214
38214
  return template;
38215
38215
  }
38216
38216
  function validateNonInteractiveFlags(command) {
38217
- const { name: name$1, path: path$17 } = command.opts();
38218
- const providedCount = [name$1, path$17].filter(Boolean).length;
38217
+ const { name: name$1, path: path$16 } = command.opts();
38218
+ const providedCount = [name$1, path$16].filter(Boolean).length;
38219
38219
  if (providedCount > 0 && providedCount < 2) command.error("Non-interactive mode requires all flags: --name, --path");
38220
38220
  }
38221
38221
  async function chooseCreate(options) {
@@ -38292,57 +38292,74 @@ async function executeCreate({ template, name: rawName, description, projectPath
38292
38292
  await loadProjectEnv(resolvedPath);
38293
38293
  const { project, entities, functions } = await readProjectConfig(resolvedPath);
38294
38294
  let finalAppUrl;
38295
- if (entities.length > 0) {
38296
- let shouldPushEntities;
38297
- if (isInteractive) {
38298
- const result = await ye({ message: "Set up the backend data now? (This pushes the data models used by the template to Base44)" });
38299
- shouldPushEntities = !pD(result) && result;
38300
- } else shouldPushEntities = !!deploy;
38301
- if (shouldPushEntities) await runTask(`Pushing ${entities.length} data models to Base44...`, async () => {
38302
- await pushEntities(entities);
38303
- }, {
38304
- successMessage: theme.colors.base44Orange("Data models pushed successfully"),
38305
- errorMessage: "Failed to push data models"
38306
- });
38307
- }
38308
- if (functions.length > 0) {
38309
- let shouldPushFunctions;
38295
+ const hasBackend = entities.length > 0 || functions.length > 0;
38296
+ const hasSite = !!project.site;
38297
+ if (hasBackend || hasSite) {
38298
+ let deploymentChoice = "none";
38310
38299
  if (isInteractive) {
38311
- const result = await ye({ message: "Deploy backend functions now? (This pushes the functions used by the template to Base44)" });
38312
- shouldPushFunctions = !pD(result) && result;
38313
- } else shouldPushFunctions = !!deploy;
38314
- if (shouldPushFunctions) await runTask(`Deploying ${functions.length} backend ${functions.length === 1 ? "function" : "functions"} to Base44...`, async () => {
38315
- await pushFunctions(functions);
38316
- }, {
38317
- successMessage: theme.colors.base44Orange("Functions deployed successfully"),
38318
- errorMessage: "Failed to deploy functions"
38319
- });
38320
- }
38321
- if (project.site) {
38322
- const { installCommand, buildCommand, outputDirectory } = project.site;
38323
- let shouldDeploy;
38324
- if (isInteractive) {
38325
- const result = await ye({ message: "Would you like to deploy the site now? (Hosted on Base44)" });
38326
- shouldDeploy = !pD(result) && result;
38327
- } else shouldDeploy = !!deploy;
38328
- if (shouldDeploy && installCommand && buildCommand && outputDirectory) {
38329
- const { appUrl } = await runTask("Installing dependencies...", async (updateMessage) => {
38330
- await execa({
38331
- cwd: resolvedPath,
38332
- shell: true
38333
- })`${installCommand}`;
38334
- updateMessage("Building project...");
38335
- await execa({
38336
- cwd: resolvedPath,
38337
- shell: true
38338
- })`${buildCommand}`;
38339
- updateMessage("Deploying site...");
38340
- return await deploySite(join(resolvedPath, outputDirectory));
38300
+ const options = [];
38301
+ if (hasBackend) options.push({
38302
+ value: "backend",
38303
+ label: "Deploy backend",
38304
+ hint: "Deploy entities and functions only"
38305
+ });
38306
+ if (hasBackend && hasSite) options.push({
38307
+ value: "backend+client",
38308
+ label: "Deploy backend+client",
38309
+ hint: "Deploy entities, functions, and site"
38310
+ });
38311
+ else if (hasSite) options.push({
38312
+ value: "backend+client",
38313
+ label: "Deploy site",
38314
+ hint: "Deploy the site to Base44"
38315
+ });
38316
+ if (options.length > 0) {
38317
+ const result = await ve({
38318
+ message: "What would you like to deploy?",
38319
+ options: [...options, {
38320
+ value: "none",
38321
+ label: "Skip deployment",
38322
+ hint: "You can deploy later"
38323
+ }]
38324
+ });
38325
+ if (!pD(result)) deploymentChoice = result;
38326
+ }
38327
+ } else deploymentChoice = deploy ? "backend+client" : "none";
38328
+ if (deploymentChoice === "backend" || deploymentChoice === "backend+client") {
38329
+ if (entities.length > 0) await runTask(`Pushing ${entities.length} ${entities.length === 1 ? "entity" : "entities"} to Base44...`, async () => {
38330
+ await pushEntities(entities);
38331
+ }, {
38332
+ successMessage: theme.colors.base44Orange(`${entities.length === 1 ? "Entity" : "Entities"} pushed successfully`),
38333
+ errorMessage: "Failed to push entities"
38334
+ });
38335
+ if (functions.length > 0) await runTask(`Pushing ${functions.length} ${functions.length === 1 ? "function" : "functions"} to Base44...`, async () => {
38336
+ await pushFunctions(functions);
38341
38337
  }, {
38342
- successMessage: theme.colors.base44Orange("Site deployed successfully"),
38343
- errorMessage: "Failed to deploy site"
38338
+ successMessage: theme.colors.base44Orange(`${functions.length === 1 ? "Function" : "Functions"} pushed successfully`),
38339
+ errorMessage: "Failed to push functions"
38344
38340
  });
38345
- finalAppUrl = appUrl;
38341
+ }
38342
+ if (deploymentChoice === "backend+client" && project.site) {
38343
+ const { installCommand, buildCommand, outputDirectory } = project.site;
38344
+ if (installCommand && buildCommand && outputDirectory) {
38345
+ const { appUrl } = await runTask("Installing dependencies...", async (updateMessage) => {
38346
+ await execa({
38347
+ cwd: resolvedPath,
38348
+ shell: true
38349
+ })`${installCommand}`;
38350
+ updateMessage("Building project...");
38351
+ await execa({
38352
+ cwd: resolvedPath,
38353
+ shell: true
38354
+ })`${buildCommand}`;
38355
+ updateMessage("Deploying site...");
38356
+ return await deploySite(join(resolvedPath, outputDirectory));
38357
+ }, {
38358
+ successMessage: theme.colors.base44Orange("Site deployed successfully"),
38359
+ errorMessage: "Failed to deploy site"
38360
+ });
38361
+ finalAppUrl = appUrl;
38362
+ }
38346
38363
  }
38347
38364
  }
38348
38365
  const dashboardUrl = `${getBase44ApiUrl()}/apps/${projectId}/editor/preview`;