@pipelab/plugin-electron 1.0.0-beta.18 → 1.0.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2103,7 +2103,7 @@ const settingsMigratorInternal = createMigrator();
2103
2103
  const defaultAppSettings = settingsMigratorInternal.createDefault({
2104
2104
  locale: "en-US",
2105
2105
  theme: "light",
2106
- version: "8.0.0",
2106
+ version: "7.0.0",
2107
2107
  autosave: true,
2108
2108
  agents: [],
2109
2109
  tours: {
@@ -2116,11 +2116,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2116
2116
  completed: false
2117
2117
  }
2118
2118
  },
2119
- buildHistory: { retentionPolicy: {
2120
- enabled: false,
2121
- maxEntries: 50,
2122
- maxAge: 30
2123
- } },
2124
2119
  plugins: DEFAULT_PLUGINS,
2125
2120
  isInternalMigrationBannerClosed: false
2126
2121
  });
@@ -2177,18 +2172,13 @@ settingsMigratorInternal.createMigrations({
2177
2172
  return {
2178
2173
  ...rest,
2179
2174
  agents: [],
2180
- buildHistory: { retentionPolicy: {
2181
- enabled: false,
2182
- maxEntries: 50,
2183
- maxAge: 30
2184
- } },
2185
2175
  plugins: DEFAULT_PLUGINS,
2186
2176
  isInternalMigrationBannerClosed: false
2187
2177
  };
2188
2178
  }
2189
2179
  }),
2190
2180
  createMigration({
2191
- version: "8.0.0",
2181
+ version: "7.0.0",
2192
2182
  up: finalVersion
2193
2183
  })
2194
2184
  ]
@@ -2207,7 +2197,7 @@ connectionsMigratorInternal.createMigrations({
2207
2197
  });
2208
2198
  const fileRepoMigratorInternal = createMigrator();
2209
2199
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2210
- version: "2.0.0",
2200
+ version: "3.0.0",
2211
2201
  projects: [{
2212
2202
  id: "main",
2213
2203
  name: "Default project",
@@ -2217,30 +2207,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2217
2207
  });
2218
2208
  fileRepoMigratorInternal.createMigrations({
2219
2209
  defaultValue: defaultFileRepo,
2220
- migrations: [createMigration({
2221
- version: "1.0.0",
2222
- up: (state) => {
2223
- const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2210
+ migrations: [
2211
+ createMigration({
2212
+ version: "1.0.0",
2213
+ up: (state) => {
2214
+ const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2215
+ return {
2216
+ ...file,
2217
+ id,
2218
+ project: "main"
2219
+ };
2220
+ });
2224
2221
  return {
2225
- ...file,
2226
- id,
2227
- project: "main"
2222
+ ...state,
2223
+ projects: [{
2224
+ id: "main",
2225
+ name: "Default project",
2226
+ description: "The initial default project"
2227
+ }],
2228
+ pipelines
2228
2229
  };
2229
- });
2230
- return {
2231
- ...state,
2232
- projects: [{
2233
- id: "main",
2234
- name: "Default project",
2235
- description: "The initial default project"
2236
- }],
2237
- pipelines
2238
- };
2239
- }
2240
- }), createMigration({
2241
- version: "2.0.0",
2242
- up: finalVersion
2243
- })]
2230
+ }
2231
+ }),
2232
+ createMigration({
2233
+ version: "2.0.0",
2234
+ up: (state) => {
2235
+ return { ...state };
2236
+ }
2237
+ }),
2238
+ createMigration({
2239
+ version: "3.0.0",
2240
+ up: finalVersion
2241
+ })
2242
+ ]
2244
2243
  });
2245
2244
  const savedFileMigratorInternal = createMigrator();
2246
2245
  const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
@@ -2401,14 +2400,19 @@ object({
2401
2400
  version: literal("1.0.0"),
2402
2401
  data: optional(record(string(), SaveLocationValidator), {})
2403
2402
  });
2404
- const FileRepoProjectValidatorV2$1 = object({
2403
+ const FileRepoProjectValidatorV2 = object({
2405
2404
  id: string(),
2406
2405
  name: string(),
2407
2406
  description: string()
2408
2407
  });
2409
2408
  object({
2410
2409
  version: literal("2.0.0"),
2411
- projects: array(FileRepoProjectValidatorV2$1),
2410
+ projects: array(FileRepoProjectValidatorV2),
2411
+ pipelines: optional(array(SaveLocationValidator), [])
2412
+ });
2413
+ object({
2414
+ version: literal("3.0.0"),
2415
+ projects: array(FileRepoProjectValidatorV2),
2412
2416
  pipelines: optional(array(SaveLocationValidator), [])
2413
2417
  });
2414
2418
  object({
@@ -2517,44 +2521,6 @@ object({
2517
2521
  name: string(),
2518
2522
  url: string()
2519
2523
  })),
2520
- buildHistory: object({ retentionPolicy: object({
2521
- enabled: boolean(),
2522
- maxEntries: number(),
2523
- maxAge: number()
2524
- }) })
2525
- });
2526
- object({
2527
- theme: union([literal("light"), literal("dark")]),
2528
- version: literal("8.0.0"),
2529
- locale: union([
2530
- literal("en-US"),
2531
- literal("fr-FR"),
2532
- literal("pt-BR"),
2533
- literal("zh-CN"),
2534
- literal("es-ES"),
2535
- literal("de-DE")
2536
- ]),
2537
- tours: object({
2538
- dashboard: object({
2539
- step: number(),
2540
- completed: boolean()
2541
- }),
2542
- editor: object({
2543
- step: number(),
2544
- completed: boolean()
2545
- })
2546
- }),
2547
- autosave: boolean(),
2548
- agents: array(object({
2549
- id: string(),
2550
- name: string(),
2551
- url: string()
2552
- })),
2553
- buildHistory: object({ retentionPolicy: object({
2554
- enabled: boolean(),
2555
- maxEntries: number(),
2556
- maxAge: number()
2557
- }) }),
2558
2524
  plugins: array(object({
2559
2525
  name: string(),
2560
2526
  enabled: boolean(),
@@ -45448,20 +45414,6 @@ var WebSocketError = class extends Error {
45448
45414
  const isWebSocketRequestMessage = (message) => {
45449
45415
  return message && typeof message.channel === "string" && message.requestId;
45450
45416
  };
45451
- object({
45452
- version: literal("1.0.0"),
45453
- data: optional(record(string(), SaveLocationValidator), {})
45454
- });
45455
- const FileRepoProjectValidatorV2 = object({
45456
- id: string(),
45457
- name: string(),
45458
- description: string()
45459
- });
45460
- object({
45461
- version: literal("2.0.0"),
45462
- projects: array(FileRepoProjectValidatorV2),
45463
- pipelines: optional(array(SaveLocationValidator), [])
45464
- });
45465
45417
  //#endregion
45466
45418
  //#region ../../packages/constants/src/index.ts
45467
45419
  const outFolderName = (binName, platform, arch) => {
@@ -45511,6 +45463,11 @@ function findProjectRoot(startDir) {
45511
45463
  return null;
45512
45464
  }
45513
45465
  const projectRoot = findProjectRoot(_dirname);
45466
+ const CacheFolder = {
45467
+ Actions: "actions",
45468
+ Pipelines: "pipelines",
45469
+ Pacote: "pacote"
45470
+ };
45514
45471
  //#endregion
45515
45472
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45516
45473
  var require_constants$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
@@ -50030,7 +49987,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
50030
49987
  var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50031
49988
  module.exports = isexe;
50032
49989
  isexe.sync = sync;
50033
- var fs$38 = require("fs");
49990
+ var fs$37 = require("fs");
50034
49991
  function checkPathExt(path, options) {
50035
49992
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
50036
49993
  if (!pathext) return true;
@@ -50047,12 +50004,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50047
50004
  return checkPathExt(path, options);
50048
50005
  }
50049
50006
  function isexe(path, options, cb) {
50050
- fs$38.stat(path, function(er, stat) {
50007
+ fs$37.stat(path, function(er, stat) {
50051
50008
  cb(er, er ? false : checkStat(stat, path, options));
50052
50009
  });
50053
50010
  }
50054
50011
  function sync(path, options) {
50055
- return checkStat(fs$38.statSync(path), path, options);
50012
+ return checkStat(fs$37.statSync(path), path, options);
50056
50013
  }
50057
50014
  }));
50058
50015
  //#endregion
@@ -50060,14 +50017,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50060
50017
  var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50061
50018
  module.exports = isexe;
50062
50019
  isexe.sync = sync;
50063
- var fs$37 = require("fs");
50020
+ var fs$36 = require("fs");
50064
50021
  function isexe(path, options, cb) {
50065
- fs$37.stat(path, function(er, stat) {
50022
+ fs$36.stat(path, function(er, stat) {
50066
50023
  cb(er, er ? false : checkStat(stat, options));
50067
50024
  });
50068
50025
  }
50069
50026
  function sync(path, options) {
50070
- return checkStat(fs$37.statSync(path), options);
50027
+ return checkStat(fs$36.statSync(path), options);
50071
50028
  }
50072
50029
  function checkStat(stat, options) {
50073
50030
  return stat.isFile() && checkMode(stat, options);
@@ -50131,7 +50088,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
50131
50088
  //#region ../../node_modules/which/which.js
50132
50089
  var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50133
50090
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
50134
- const path$43 = require("path");
50091
+ const path$42 = require("path");
50135
50092
  const COLON = isWindows ? ";" : ":";
50136
50093
  const isexe = require_isexe();
50137
50094
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -50161,7 +50118,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50161
50118
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
50162
50119
  const ppRaw = pathEnv[i];
50163
50120
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
50164
- const pCmd = path$43.join(pathPart, cmd);
50121
+ const pCmd = path$42.join(pathPart, cmd);
50165
50122
  resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
50166
50123
  });
50167
50124
  const subStep = (p, i, ii) => new Promise((resolve, reject) => {
@@ -50182,7 +50139,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50182
50139
  for (let i = 0; i < pathEnv.length; i++) {
50183
50140
  const ppRaw = pathEnv[i];
50184
50141
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
50185
- const pCmd = path$43.join(pathPart, cmd);
50142
+ const pCmd = path$42.join(pathPart, cmd);
50186
50143
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
50187
50144
  for (let j = 0; j < pathExt.length; j++) {
50188
50145
  const cur = p + pathExt[j];
@@ -50213,7 +50170,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
50213
50170
  //#endregion
50214
50171
  //#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
50215
50172
  var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50216
- const path$42 = require("path");
50173
+ const path$41 = require("path");
50217
50174
  const which = require_which$1();
50218
50175
  const getPathKey = require_path_key();
50219
50176
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -50228,12 +50185,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
50228
50185
  try {
50229
50186
  resolved = which.sync(parsed.command, {
50230
50187
  path: env[getPathKey({ env })],
50231
- pathExt: withoutPathExt ? path$42.delimiter : void 0
50188
+ pathExt: withoutPathExt ? path$41.delimiter : void 0
50232
50189
  });
50233
50190
  } catch (e) {} finally {
50234
50191
  if (shouldSwitchCwd) process.chdir(cwd);
50235
50192
  }
50236
- if (resolved) resolved = path$42.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
50193
+ if (resolved) resolved = path$41.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
50237
50194
  return resolved;
50238
50195
  }
50239
50196
  function resolveCommand(parsed) {
@@ -50282,16 +50239,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
50282
50239
  //#endregion
50283
50240
  //#region ../../node_modules/cross-spawn/lib/util/readShebang.js
50284
50241
  var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50285
- const fs$36 = require("fs");
50242
+ const fs$35 = require("fs");
50286
50243
  const shebangCommand = require_shebang_command();
50287
50244
  function readShebang(command) {
50288
50245
  const size = 150;
50289
50246
  const buffer = Buffer.alloc(size);
50290
50247
  let fd;
50291
50248
  try {
50292
- fd = fs$36.openSync(command, "r");
50293
- fs$36.readSync(fd, buffer, 0, size, 0);
50294
- fs$36.closeSync(fd);
50249
+ fd = fs$35.openSync(command, "r");
50250
+ fs$35.readSync(fd, buffer, 0, size, 0);
50251
+ fs$35.closeSync(fd);
50295
50252
  } catch (e) {}
50296
50253
  return shebangCommand(buffer.toString());
50297
50254
  }
@@ -50300,7 +50257,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
50300
50257
  //#endregion
50301
50258
  //#region ../../node_modules/cross-spawn/lib/parse.js
50302
50259
  var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50303
- const path$41 = require("path");
50260
+ const path$40 = require("path");
50304
50261
  const resolveCommand = require_resolveCommand();
50305
50262
  const escape = require_escape$4();
50306
50263
  const readShebang = require_readShebang();
@@ -50323,7 +50280,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50323
50280
  const needsShell = !isExecutableRegExp.test(commandFile);
50324
50281
  if (parsed.options.forceShell || needsShell) {
50325
50282
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
50326
- parsed.command = path$41.normalize(parsed.command);
50283
+ parsed.command = path$40.normalize(parsed.command);
50327
50284
  parsed.command = escape.command(parsed.command);
50328
50285
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
50329
50286
  parsed.args = [
@@ -56979,10 +56936,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
56979
56936
  if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
56980
56937
  const prefixSize = this.ctime || this.atime ? 130 : 155;
56981
56938
  const split = splitPrefix(this.path || "", prefixSize);
56982
- const path$94 = split[0];
56939
+ const path$93 = split[0];
56983
56940
  const prefix = split[1];
56984
56941
  this.needPax = split[2];
56985
- this.needPax = encString(buf, off, 100, path$94) || this.needPax;
56942
+ this.needPax = encString(buf, off, 100, path$93) || this.needPax;
56986
56943
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
56987
56944
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
56988
56945
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -57085,7 +57042,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57085
57042
  //#region ../../node_modules/tar/lib/pax.js
57086
57043
  var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57087
57044
  const Header = require_header();
57088
- const path$35 = require("path");
57045
+ const path$34 = require("path");
57089
57046
  var Pax = class {
57090
57047
  constructor(obj, global) {
57091
57048
  this.atime = obj.atime || null;
@@ -57113,7 +57070,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
57113
57070
  const buf = Buffer.allocUnsafe(bufLen);
57114
57071
  for (let i = 0; i < 512; i++) buf[i] = 0;
57115
57072
  new Header({
57116
- path: ("PaxHeader/" + path$35.basename(this.path)).slice(0, 99),
57073
+ path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
57117
57074
  mode: this.mode || 420,
57118
57075
  uid: this.uid || null,
57119
57076
  gid: this.gid || null,
@@ -57216,16 +57173,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
57216
57173
  //#region ../../node_modules/tar/lib/strip-absolute-path.js
57217
57174
  var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57218
57175
  const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
57219
- module.exports = (path$93) => {
57176
+ module.exports = (path$92) => {
57220
57177
  let r = "";
57221
- let parsed = parse$3(path$93);
57222
- while (isAbsolute$3(path$93) || parsed.root) {
57223
- const root = path$93.charAt(0) === "/" && path$93.slice(0, 4) !== "//?/" ? "/" : parsed.root;
57224
- path$93 = path$93.slice(root.length);
57178
+ let parsed = parse$3(path$92);
57179
+ while (isAbsolute$3(path$92) || parsed.root) {
57180
+ const root = path$92.charAt(0) === "/" && path$92.slice(0, 4) !== "//?/" ? "/" : parsed.root;
57181
+ path$92 = path$92.slice(root.length);
57225
57182
  r += root;
57226
- parsed = parse$3(path$93);
57183
+ parsed = parse$3(path$92);
57227
57184
  }
57228
- return [r, path$93];
57185
+ return [r, path$92];
57229
57186
  };
57230
57187
  }));
57231
57188
  //#endregion
@@ -57248,14 +57205,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57248
57205
  const { Minipass } = require_minipass$4();
57249
57206
  const Pax = require_pax();
57250
57207
  const Header = require_header();
57251
- const fs$35 = require("fs");
57252
- const path$34 = require("path");
57208
+ const fs$34 = require("fs");
57209
+ const path$33 = require("path");
57253
57210
  const normPath = require_normalize_windows_path();
57254
57211
  const stripSlash = require_strip_trailing_slashes();
57255
- const prefixPath = (path$90, prefix) => {
57256
- if (!prefix) return normPath(path$90);
57257
- path$90 = normPath(path$90).replace(/^\.(\/|$)/, "");
57258
- return stripSlash(prefix) + "/" + path$90;
57212
+ const prefixPath = (path$89, prefix) => {
57213
+ if (!prefix) return normPath(path$89);
57214
+ path$89 = normPath(path$89).replace(/^\.(\/|$)/, "");
57215
+ return stripSlash(prefix) + "/" + path$89;
57259
57216
  };
57260
57217
  const maxReadSize = 16 * 1024 * 1024;
57261
57218
  const PROCESS = Symbol("process");
@@ -57322,7 +57279,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57322
57279
  this.path = winchars.decode(this.path.replace(/\\/g, "/"));
57323
57280
  p = p.replace(/\\/g, "/");
57324
57281
  }
57325
- this.absolute = normPath(opt.absolute || path$34.resolve(this.cwd, p));
57282
+ this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
57326
57283
  if (this.path === "") this.path = "./";
57327
57284
  if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
57328
57285
  entry: this,
@@ -57336,7 +57293,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57336
57293
  return super.emit(ev, ...data);
57337
57294
  }
57338
57295
  [LSTAT]() {
57339
- fs$35.lstat(this.absolute, (er, stat) => {
57296
+ fs$34.lstat(this.absolute, (er, stat) => {
57340
57297
  if (er) return this.emit("error", er);
57341
57298
  this[ONLSTAT](stat);
57342
57299
  });
@@ -57360,8 +57317,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57360
57317
  [MODE](mode) {
57361
57318
  return modeFix(mode, this.type === "Directory", this.portable);
57362
57319
  }
57363
- [PREFIX](path$91) {
57364
- return prefixPath(path$91, this.prefix);
57320
+ [PREFIX](path$90) {
57321
+ return prefixPath(path$90, this.prefix);
57365
57322
  }
57366
57323
  [HEADER]() {
57367
57324
  if (this.type === "Directory" && this.portable) this.noMtime = true;
@@ -57401,7 +57358,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57401
57358
  this.end();
57402
57359
  }
57403
57360
  [SYMLINK]() {
57404
- fs$35.readlink(this.absolute, (er, linkpath) => {
57361
+ fs$34.readlink(this.absolute, (er, linkpath) => {
57405
57362
  if (er) return this.emit("error", er);
57406
57363
  this[ONREADLINK](linkpath);
57407
57364
  });
@@ -57413,7 +57370,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57413
57370
  }
57414
57371
  [HARDLINK](linkpath) {
57415
57372
  this.type = "Link";
57416
- this.linkpath = normPath(path$34.relative(this.cwd, linkpath));
57373
+ this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
57417
57374
  this.stat.size = 0;
57418
57375
  this[HEADER]();
57419
57376
  this.end();
@@ -57432,7 +57389,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57432
57389
  this[OPENFILE]();
57433
57390
  }
57434
57391
  [OPENFILE]() {
57435
- fs$35.open(this.absolute, "r", (er, fd) => {
57392
+ fs$34.open(this.absolute, "r", (er, fd) => {
57436
57393
  if (er) return this.emit("error", er);
57437
57394
  this[ONOPENFILE](fd);
57438
57395
  });
@@ -57452,13 +57409,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57452
57409
  }
57453
57410
  [READ]() {
57454
57411
  const { fd, buf, offset, length, pos } = this;
57455
- fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
57412
+ fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
57456
57413
  if (er) return this[CLOSE](() => this.emit("error", er));
57457
57414
  this[ONREAD](bytesRead);
57458
57415
  });
57459
57416
  }
57460
57417
  [CLOSE](cb) {
57461
- fs$35.close(this.fd, cb);
57418
+ fs$34.close(this.fd, cb);
57462
57419
  }
57463
57420
  [ONREAD](bytesRead) {
57464
57421
  if (bytesRead <= 0 && this.remain > 0) {
@@ -57514,19 +57471,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57514
57471
  });
57515
57472
  var WriteEntrySync = class extends WriteEntry {
57516
57473
  [LSTAT]() {
57517
- this[ONLSTAT](fs$35.lstatSync(this.absolute));
57474
+ this[ONLSTAT](fs$34.lstatSync(this.absolute));
57518
57475
  }
57519
57476
  [SYMLINK]() {
57520
- this[ONREADLINK](fs$35.readlinkSync(this.absolute));
57477
+ this[ONREADLINK](fs$34.readlinkSync(this.absolute));
57521
57478
  }
57522
57479
  [OPENFILE]() {
57523
- this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
57480
+ this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
57524
57481
  }
57525
57482
  [READ]() {
57526
57483
  let threw = true;
57527
57484
  try {
57528
57485
  const { fd, buf, offset, length, pos } = this;
57529
- const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
57486
+ const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
57530
57487
  this[ONREAD](bytesRead);
57531
57488
  threw = false;
57532
57489
  } finally {
@@ -57539,7 +57496,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57539
57496
  cb();
57540
57497
  }
57541
57498
  [CLOSE](cb) {
57542
- fs$35.closeSync(this.fd);
57499
+ fs$34.closeSync(this.fd);
57543
57500
  cb();
57544
57501
  }
57545
57502
  };
@@ -57612,8 +57569,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57612
57569
  super.write(this.header.block);
57613
57570
  readEntry.pipe(this);
57614
57571
  }
57615
- [PREFIX](path$92) {
57616
- return prefixPath(path$92, this.prefix);
57572
+ [PREFIX](path$91) {
57573
+ return prefixPath(path$91, this.prefix);
57617
57574
  }
57618
57575
  [MODE](mode) {
57619
57576
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -57897,8 +57854,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
57897
57854
  //#region ../../node_modules/tar/lib/pack.js
57898
57855
  var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57899
57856
  var PackJob = class {
57900
- constructor(path$86, absolute) {
57901
- this.path = path$86 || "./";
57857
+ constructor(path$85, absolute) {
57858
+ this.path = path$85 || "./";
57902
57859
  this.absolute = absolute;
57903
57860
  this.entry = null;
57904
57861
  this.stat = null;
@@ -57936,8 +57893,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57936
57893
  const WRITEENTRYCLASS = Symbol("writeEntryClass");
57937
57894
  const WRITE = Symbol("write");
57938
57895
  const ONDRAIN = Symbol("ondrain");
57939
- const fs$34 = require("fs");
57940
- const path$33 = require("path");
57896
+ const fs$33 = require("fs");
57897
+ const path$32 = require("path");
57941
57898
  const warner = require_warn_mixin();
57942
57899
  const normPath = require_normalize_windows_path();
57943
57900
  const Pack = warner(class Pack extends Minipass {
@@ -57989,24 +57946,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57989
57946
  [WRITE](chunk) {
57990
57947
  return super.write(chunk);
57991
57948
  }
57992
- add(path$87) {
57993
- this.write(path$87);
57949
+ add(path$86) {
57950
+ this.write(path$86);
57994
57951
  return this;
57995
57952
  }
57996
- end(path$88) {
57997
- if (path$88) this.write(path$88);
57953
+ end(path$87) {
57954
+ if (path$87) this.write(path$87);
57998
57955
  this[ENDED] = true;
57999
57956
  this[PROCESS]();
58000
57957
  return this;
58001
57958
  }
58002
- write(path$89) {
57959
+ write(path$88) {
58003
57960
  if (this[ENDED]) throw new Error("write after end");
58004
- if (path$89 instanceof ReadEntry) this[ADDTARENTRY](path$89);
58005
- else this[ADDFSENTRY](path$89);
57961
+ if (path$88 instanceof ReadEntry) this[ADDTARENTRY](path$88);
57962
+ else this[ADDFSENTRY](path$88);
58006
57963
  return this.flowing;
58007
57964
  }
58008
57965
  [ADDTARENTRY](p) {
58009
- const absolute = normPath(path$33.resolve(this.cwd, p.path));
57966
+ const absolute = normPath(path$32.resolve(this.cwd, p.path));
58010
57967
  if (!this.filter(p.path, p)) p.resume();
58011
57968
  else {
58012
57969
  const job = new PackJob(p.path, absolute, false);
@@ -58018,14 +57975,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
58018
57975
  this[PROCESS]();
58019
57976
  }
58020
57977
  [ADDFSENTRY](p) {
58021
- const absolute = normPath(path$33.resolve(this.cwd, p));
57978
+ const absolute = normPath(path$32.resolve(this.cwd, p));
58022
57979
  this[QUEUE].push(new PackJob(p, absolute));
58023
57980
  this[PROCESS]();
58024
57981
  }
58025
57982
  [STAT](job) {
58026
57983
  job.pending = true;
58027
57984
  this[JOBS] += 1;
58028
- fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
57985
+ fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
58029
57986
  job.pending = false;
58030
57987
  this[JOBS] -= 1;
58031
57988
  if (er) this.emit("error", er);
@@ -58041,7 +57998,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
58041
57998
  [READDIR](job) {
58042
57999
  job.pending = true;
58043
58000
  this[JOBS] += 1;
58044
- fs$34.readdir(job.absolute, (er, entries) => {
58001
+ fs$33.readdir(job.absolute, (er, entries) => {
58045
58002
  job.pending = false;
58046
58003
  this[JOBS] -= 1;
58047
58004
  if (er) return this.emit("error", er);
@@ -58159,10 +58116,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
58159
58116
  resume() {}
58160
58117
  [STAT](job) {
58161
58118
  const stat = this.follow ? "statSync" : "lstatSync";
58162
- this[ONSTAT](job, fs$34[stat](job.absolute));
58119
+ this[ONSTAT](job, fs$33[stat](job.absolute));
58163
58120
  }
58164
58121
  [READDIR](job, stat) {
58165
- this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
58122
+ this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
58166
58123
  }
58167
58124
  [PIPE](job) {
58168
58125
  const source = job.entry;
@@ -58618,8 +58575,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
58618
58575
  var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
58619
58576
  const MiniPass = require_minipass$2();
58620
58577
  const EE$11 = require("events").EventEmitter;
58621
- const fs$33 = require("fs");
58622
- let writev = fs$33.writev;
58578
+ const fs$32 = require("fs");
58579
+ let writev = fs$32.writev;
58623
58580
  /* istanbul ignore next */
58624
58581
  if (!writev) {
58625
58582
  const binding = process.binding("fs");
@@ -58690,7 +58647,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58690
58647
  throw new TypeError("this is a readable stream");
58691
58648
  }
58692
58649
  [_open]() {
58693
- fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
58650
+ fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
58694
58651
  }
58695
58652
  [_onopen](er, fd) {
58696
58653
  if (er) this[_onerror](er);
@@ -58709,7 +58666,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58709
58666
  const buf = this[_makeBuf]();
58710
58667
  /* istanbul ignore if */
58711
58668
  if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
58712
- fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
58669
+ fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
58713
58670
  }
58714
58671
  }
58715
58672
  [_onread](er, br, buf) {
@@ -58721,7 +58678,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58721
58678
  if (this[_autoClose] && typeof this[_fd] === "number") {
58722
58679
  const fd = this[_fd];
58723
58680
  this[_fd] = null;
58724
- fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58681
+ fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58725
58682
  }
58726
58683
  }
58727
58684
  [_onerror](er) {
@@ -58759,7 +58716,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58759
58716
  [_open]() {
58760
58717
  let threw = true;
58761
58718
  try {
58762
- this[_onopen](null, fs$33.openSync(this[_path], "r"));
58719
+ this[_onopen](null, fs$32.openSync(this[_path], "r"));
58763
58720
  threw = false;
58764
58721
  } finally {
58765
58722
  if (threw) this[_close]();
@@ -58773,7 +58730,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58773
58730
  do {
58774
58731
  const buf = this[_makeBuf]();
58775
58732
  /* istanbul ignore next */
58776
- const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
58733
+ const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
58777
58734
  if (!this[_handleChunk](br, buf)) break;
58778
58735
  } while (true);
58779
58736
  this[_reading] = false;
@@ -58787,7 +58744,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58787
58744
  if (this[_autoClose] && typeof this[_fd] === "number") {
58788
58745
  const fd = this[_fd];
58789
58746
  this[_fd] = null;
58790
- fs$33.closeSync(fd);
58747
+ fs$32.closeSync(fd);
58791
58748
  this.emit("close");
58792
58749
  }
58793
58750
  }
@@ -58832,7 +58789,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58832
58789
  this.emit("error", er);
58833
58790
  }
58834
58791
  [_open]() {
58835
- fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
58792
+ fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
58836
58793
  }
58837
58794
  [_onopen](er, fd) {
58838
58795
  if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
@@ -58867,7 +58824,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58867
58824
  return true;
58868
58825
  }
58869
58826
  [_write](buf) {
58870
- fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
58827
+ fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
58871
58828
  }
58872
58829
  [_onwrite](er, bw) {
58873
58830
  if (er) this[_onerror](er);
@@ -58901,7 +58858,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58901
58858
  if (this[_autoClose] && typeof this[_fd] === "number") {
58902
58859
  const fd = this[_fd];
58903
58860
  this[_fd] = null;
58904
- fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58861
+ fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58905
58862
  }
58906
58863
  }
58907
58864
  };
@@ -58909,28 +58866,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58909
58866
  [_open]() {
58910
58867
  let fd;
58911
58868
  if (this[_defaultFlag] && this[_flags] === "r+") try {
58912
- fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
58869
+ fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
58913
58870
  } catch (er) {
58914
58871
  if (er.code === "ENOENT") {
58915
58872
  this[_flags] = "w";
58916
58873
  return this[_open]();
58917
58874
  } else throw er;
58918
58875
  }
58919
- else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
58876
+ else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
58920
58877
  this[_onopen](null, fd);
58921
58878
  }
58922
58879
  [_close]() {
58923
58880
  if (this[_autoClose] && typeof this[_fd] === "number") {
58924
58881
  const fd = this[_fd];
58925
58882
  this[_fd] = null;
58926
- fs$33.closeSync(fd);
58883
+ fs$32.closeSync(fd);
58927
58884
  this.emit("close");
58928
58885
  }
58929
58886
  }
58930
58887
  [_write](buf) {
58931
58888
  let threw = true;
58932
58889
  try {
58933
- this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
58890
+ this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
58934
58891
  threw = false;
58935
58892
  } finally {
58936
58893
  if (threw) try {
@@ -59295,9 +59252,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
59295
59252
  var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59296
59253
  const hlo = require_high_level_opt();
59297
59254
  const Parser = require_parse$4();
59298
- const fs$32 = require("fs");
59255
+ const fs$31 = require("fs");
59299
59256
  const fsm = require_fs_minipass();
59300
- const path$32 = require("path");
59257
+ const path$31 = require("path");
59301
59258
  const stripSlash = require_strip_trailing_slashes();
59302
59259
  module.exports = (opt_, files, cb) => {
59303
59260
  if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
@@ -59323,8 +59280,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59323
59280
  const map = new Map(files.map((f) => [stripSlash(f), true]));
59324
59281
  const filter = opt.filter;
59325
59282
  const mapHas = (file, r) => {
59326
- const root = r || path$32.parse(file).root || ".";
59327
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$32.dirname(file), root);
59283
+ const root = r || path$31.parse(file).root || ".";
59284
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
59328
59285
  map.set(file, ret);
59329
59286
  return ret;
59330
59287
  };
@@ -59336,15 +59293,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59336
59293
  let threw = true;
59337
59294
  let fd;
59338
59295
  try {
59339
- const stat = fs$32.statSync(file);
59296
+ const stat = fs$31.statSync(file);
59340
59297
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
59341
- if (stat.size < readSize) p.end(fs$32.readFileSync(file));
59298
+ if (stat.size < readSize) p.end(fs$31.readFileSync(file));
59342
59299
  else {
59343
59300
  let pos = 0;
59344
59301
  const buf = Buffer.allocUnsafe(readSize);
59345
- fd = fs$32.openSync(file, "r");
59302
+ fd = fs$31.openSync(file, "r");
59346
59303
  while (pos < stat.size) {
59347
- const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
59304
+ const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
59348
59305
  pos += bytesRead;
59349
59306
  p.write(buf.slice(0, bytesRead));
59350
59307
  }
@@ -59353,7 +59310,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59353
59310
  threw = false;
59354
59311
  } finally {
59355
59312
  if (threw && fd) try {
59356
- fs$32.closeSync(fd);
59313
+ fs$31.closeSync(fd);
59357
59314
  } catch (er) {}
59358
59315
  }
59359
59316
  };
@@ -59364,7 +59321,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59364
59321
  const p = new Promise((resolve, reject) => {
59365
59322
  parse.on("error", reject);
59366
59323
  parse.on("end", resolve);
59367
- fs$32.stat(file, (er, stat) => {
59324
+ fs$31.stat(file, (er, stat) => {
59368
59325
  if (er) reject(er);
59369
59326
  else {
59370
59327
  const stream = new fsm.ReadStream(file, {
@@ -59387,7 +59344,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59387
59344
  const Pack = require_pack$1();
59388
59345
  const fsm = require_fs_minipass();
59389
59346
  const t = require_list();
59390
- const path$31 = require("path");
59347
+ const path$30 = require("path");
59391
59348
  module.exports = (opt_, files, cb) => {
59392
59349
  if (typeof files === "function") cb = files;
59393
59350
  if (Array.isArray(opt_)) files = opt_, opt_ = {};
@@ -59419,7 +59376,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59419
59376
  const addFilesSync = (p, files) => {
59420
59377
  files.forEach((file) => {
59421
59378
  if (file.charAt(0) === "@") t({
59422
- file: path$31.resolve(p.cwd, file.slice(1)),
59379
+ file: path$30.resolve(p.cwd, file.slice(1)),
59423
59380
  sync: true,
59424
59381
  noResume: true,
59425
59382
  onentry: (entry) => p.add(entry)
@@ -59432,7 +59389,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59432
59389
  while (files.length) {
59433
59390
  const file = files.shift();
59434
59391
  if (file.charAt(0) === "@") return t({
59435
- file: path$31.resolve(p.cwd, file.slice(1)),
59392
+ file: path$30.resolve(p.cwd, file.slice(1)),
59436
59393
  noResume: true,
59437
59394
  onentry: (entry) => p.add(entry)
59438
59395
  }).then((_) => addFilesAsync(p, files));
@@ -59456,10 +59413,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59456
59413
  var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59457
59414
  const hlo = require_high_level_opt();
59458
59415
  const Pack = require_pack$1();
59459
- const fs$31 = require("fs");
59416
+ const fs$30 = require("fs");
59460
59417
  const fsm = require_fs_minipass();
59461
59418
  const t = require_list();
59462
- const path$30 = require("path");
59419
+ const path$29 = require("path");
59463
59420
  const Header = require_header();
59464
59421
  module.exports = (opt_, files, cb) => {
59465
59422
  const opt = hlo(opt_);
@@ -59476,16 +59433,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59476
59433
  let position;
59477
59434
  try {
59478
59435
  try {
59479
- fd = fs$31.openSync(opt.file, "r+");
59436
+ fd = fs$30.openSync(opt.file, "r+");
59480
59437
  } catch (er) {
59481
- if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
59438
+ if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
59482
59439
  else throw er;
59483
59440
  }
59484
- const st = fs$31.fstatSync(fd);
59441
+ const st = fs$30.fstatSync(fd);
59485
59442
  const headBuf = Buffer.alloc(512);
59486
59443
  POSITION: for (position = 0; position < st.size; position += 512) {
59487
59444
  for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
59488
- bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
59445
+ bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
59489
59446
  if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
59490
59447
  if (!bytes) break POSITION;
59491
59448
  }
@@ -59500,7 +59457,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59500
59457
  streamSync(opt, p, position, fd, files);
59501
59458
  } finally {
59502
59459
  if (threw) try {
59503
- fs$31.closeSync(fd);
59460
+ fs$30.closeSync(fd);
59504
59461
  } catch (er) {}
59505
59462
  }
59506
59463
  };
@@ -59517,7 +59474,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59517
59474
  const p = new Pack(opt);
59518
59475
  const getPos = (fd, size, cb_) => {
59519
59476
  const cb = (er, pos) => {
59520
- if (er) fs$31.close(fd, (_) => cb_(er));
59477
+ if (er) fs$30.close(fd, (_) => cb_(er));
59521
59478
  else cb_(null, pos);
59522
59479
  };
59523
59480
  let position = 0;
@@ -59527,7 +59484,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59527
59484
  const onread = (er, bytes) => {
59528
59485
  if (er) return cb(er);
59529
59486
  bufPos += bytes;
59530
- if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
59487
+ if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
59531
59488
  if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
59532
59489
  if (bufPos < 512) return cb(null, position);
59533
59490
  const h = new Header(headBuf);
@@ -59538,9 +59495,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59538
59495
  if (position >= size) return cb(null, position);
59539
59496
  if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
59540
59497
  bufPos = 0;
59541
- fs$31.read(fd, headBuf, 0, 512, position, onread);
59498
+ fs$30.read(fd, headBuf, 0, 512, position, onread);
59542
59499
  };
59543
- fs$31.read(fd, headBuf, 0, 512, position, onread);
59500
+ fs$30.read(fd, headBuf, 0, 512, position, onread);
59544
59501
  };
59545
59502
  const promise = new Promise((resolve, reject) => {
59546
59503
  p.on("error", reject);
@@ -59548,11 +59505,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59548
59505
  const onopen = (er, fd) => {
59549
59506
  if (er && er.code === "ENOENT" && flag === "r+") {
59550
59507
  flag = "w+";
59551
- return fs$31.open(opt.file, flag, onopen);
59508
+ return fs$30.open(opt.file, flag, onopen);
59552
59509
  }
59553
59510
  if (er) return reject(er);
59554
- fs$31.fstat(fd, (er, st) => {
59555
- if (er) return fs$31.close(fd, () => reject(er));
59511
+ fs$30.fstat(fd, (er, st) => {
59512
+ if (er) return fs$30.close(fd, () => reject(er));
59556
59513
  getPos(fd, st.size, (er, position) => {
59557
59514
  if (er) return reject(er);
59558
59515
  const stream = new fsm.WriteStream(opt.file, {
@@ -59566,14 +59523,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59566
59523
  });
59567
59524
  });
59568
59525
  };
59569
- fs$31.open(opt.file, flag, onopen);
59526
+ fs$30.open(opt.file, flag, onopen);
59570
59527
  });
59571
59528
  return cb ? promise.then(cb, cb) : promise;
59572
59529
  };
59573
59530
  const addFilesSync = (p, files) => {
59574
59531
  files.forEach((file) => {
59575
59532
  if (file.charAt(0) === "@") t({
59576
- file: path$30.resolve(p.cwd, file.slice(1)),
59533
+ file: path$29.resolve(p.cwd, file.slice(1)),
59577
59534
  sync: true,
59578
59535
  noResume: true,
59579
59536
  onentry: (entry) => p.add(entry)
@@ -59586,7 +59543,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59586
59543
  while (files.length) {
59587
59544
  const file = files.shift();
59588
59545
  if (file.charAt(0) === "@") return t({
59589
- file: path$30.resolve(p.cwd, file.slice(1)),
59546
+ file: path$29.resolve(p.cwd, file.slice(1)),
59590
59547
  noResume: true,
59591
59548
  onentry: (entry) => p.add(entry)
59592
59549
  }).then((_) => addFilesAsync(p, files));
@@ -59619,32 +59576,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59619
59576
  //#region ../../node_modules/mkdirp/lib/opts-arg.js
59620
59577
  var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59621
59578
  const { promisify: promisify$1 } = require("util");
59622
- const fs$30 = require("fs");
59579
+ const fs$29 = require("fs");
59623
59580
  const optsArg = (opts) => {
59624
59581
  if (!opts) opts = {
59625
59582
  mode: 511,
59626
- fs: fs$30
59583
+ fs: fs$29
59627
59584
  };
59628
59585
  else if (typeof opts === "object") opts = {
59629
59586
  mode: 511,
59630
- fs: fs$30,
59587
+ fs: fs$29,
59631
59588
  ...opts
59632
59589
  };
59633
59590
  else if (typeof opts === "number") opts = {
59634
59591
  mode: opts,
59635
- fs: fs$30
59592
+ fs: fs$29
59636
59593
  };
59637
59594
  else if (typeof opts === "string") opts = {
59638
59595
  mode: parseInt(opts, 8),
59639
- fs: fs$30
59596
+ fs: fs$29
59640
59597
  };
59641
59598
  else throw new TypeError("invalid options argument");
59642
- opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
59599
+ opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
59643
59600
  opts.mkdirAsync = promisify$1(opts.mkdir);
59644
- opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
59601
+ opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
59645
59602
  opts.statAsync = promisify$1(opts.stat);
59646
- opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
59647
- opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
59603
+ opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
59604
+ opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
59648
59605
  return opts;
59649
59606
  };
59650
59607
  module.exports = optsArg;
@@ -59654,21 +59611,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
59654
59611
  var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59655
59612
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
59656
59613
  const { resolve: resolve$13, parse: parse$2 } = require("path");
59657
- const pathArg = (path$85) => {
59658
- if (/\0/.test(path$85)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59659
- path: path$85,
59614
+ const pathArg = (path$84) => {
59615
+ if (/\0/.test(path$84)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59616
+ path: path$84,
59660
59617
  code: "ERR_INVALID_ARG_VALUE"
59661
59618
  });
59662
- path$85 = resolve$13(path$85);
59619
+ path$84 = resolve$13(path$84);
59663
59620
  if (platform === "win32") {
59664
59621
  const badWinChars = /[*|"<>?:]/;
59665
- const { root } = parse$2(path$85);
59666
- if (badWinChars.test(path$85.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
59667
- path: path$85,
59622
+ const { root } = parse$2(path$84);
59623
+ if (badWinChars.test(path$84.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
59624
+ path: path$84,
59668
59625
  code: "EINVAL"
59669
59626
  });
59670
59627
  }
59671
- return path$85;
59628
+ return path$84;
59672
59629
  };
59673
59630
  module.exports = pathArg;
59674
59631
  }));
@@ -59676,14 +59633,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
59676
59633
  //#region ../../node_modules/mkdirp/lib/find-made.js
59677
59634
  var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59678
59635
  const { dirname: dirname$14 } = require("path");
59679
- const findMade = (opts, parent, path$83 = void 0) => {
59680
- if (path$83 === parent) return Promise.resolve();
59681
- return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
59636
+ const findMade = (opts, parent, path$82 = void 0) => {
59637
+ if (path$82 === parent) return Promise.resolve();
59638
+ return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
59682
59639
  };
59683
- const findMadeSync = (opts, parent, path$84 = void 0) => {
59684
- if (path$84 === parent) return void 0;
59640
+ const findMadeSync = (opts, parent, path$83 = void 0) => {
59641
+ if (path$83 === parent) return void 0;
59685
59642
  try {
59686
- return opts.statSync(parent).isDirectory() ? path$84 : void 0;
59643
+ return opts.statSync(parent).isDirectory() ? path$83 : void 0;
59687
59644
  } catch (er) {
59688
59645
  return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
59689
59646
  }
@@ -59697,16 +59654,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
59697
59654
  //#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
59698
59655
  var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59699
59656
  const { dirname: dirname$13 } = require("path");
59700
- const mkdirpManual = (path$81, opts, made) => {
59657
+ const mkdirpManual = (path$80, opts, made) => {
59701
59658
  opts.recursive = false;
59702
- const parent = dirname$13(path$81);
59703
- if (parent === path$81) return opts.mkdirAsync(path$81, opts).catch((er) => {
59659
+ const parent = dirname$13(path$80);
59660
+ if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
59704
59661
  if (er.code !== "EISDIR") throw er;
59705
59662
  });
59706
- return opts.mkdirAsync(path$81, opts).then(() => made || path$81, (er) => {
59707
- if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$81, opts, made));
59663
+ return opts.mkdirAsync(path$80, opts).then(() => made || path$80, (er) => {
59664
+ if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$80, opts, made));
59708
59665
  if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
59709
- return opts.statAsync(path$81).then((st) => {
59666
+ return opts.statAsync(path$80).then((st) => {
59710
59667
  if (st.isDirectory()) return made;
59711
59668
  else throw er;
59712
59669
  }, () => {
@@ -59714,23 +59671,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59714
59671
  });
59715
59672
  });
59716
59673
  };
59717
- const mkdirpManualSync = (path$82, opts, made) => {
59718
- const parent = dirname$13(path$82);
59674
+ const mkdirpManualSync = (path$81, opts, made) => {
59675
+ const parent = dirname$13(path$81);
59719
59676
  opts.recursive = false;
59720
- if (parent === path$82) try {
59721
- return opts.mkdirSync(path$82, opts);
59677
+ if (parent === path$81) try {
59678
+ return opts.mkdirSync(path$81, opts);
59722
59679
  } catch (er) {
59723
59680
  if (er.code !== "EISDIR") throw er;
59724
59681
  else return;
59725
59682
  }
59726
59683
  try {
59727
- opts.mkdirSync(path$82, opts);
59728
- return made || path$82;
59684
+ opts.mkdirSync(path$81, opts);
59685
+ return made || path$81;
59729
59686
  } catch (er) {
59730
- if (er.code === "ENOENT") return mkdirpManualSync(path$82, opts, mkdirpManualSync(parent, opts, made));
59687
+ if (er.code === "ENOENT") return mkdirpManualSync(path$81, opts, mkdirpManualSync(parent, opts, made));
59731
59688
  if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
59732
59689
  try {
59733
- if (!opts.statSync(path$82).isDirectory()) throw er;
59690
+ if (!opts.statSync(path$81).isDirectory()) throw er;
59734
59691
  } catch (_) {
59735
59692
  throw er;
59736
59693
  }
@@ -59747,23 +59704,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59747
59704
  const { dirname: dirname$12 } = require("path");
59748
59705
  const { findMade, findMadeSync } = require_find_made();
59749
59706
  const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
59750
- const mkdirpNative = (path$79, opts) => {
59707
+ const mkdirpNative = (path$78, opts) => {
59751
59708
  opts.recursive = true;
59752
- if (dirname$12(path$79) === path$79) return opts.mkdirAsync(path$79, opts);
59753
- return findMade(opts, path$79).then((made) => opts.mkdirAsync(path$79, opts).then(() => made).catch((er) => {
59754
- if (er.code === "ENOENT") return mkdirpManual(path$79, opts);
59709
+ if (dirname$12(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
59710
+ return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
59711
+ if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
59755
59712
  else throw er;
59756
59713
  }));
59757
59714
  };
59758
- const mkdirpNativeSync = (path$80, opts) => {
59715
+ const mkdirpNativeSync = (path$79, opts) => {
59759
59716
  opts.recursive = true;
59760
- if (dirname$12(path$80) === path$80) return opts.mkdirSync(path$80, opts);
59761
- const made = findMadeSync(opts, path$80);
59717
+ if (dirname$12(path$79) === path$79) return opts.mkdirSync(path$79, opts);
59718
+ const made = findMadeSync(opts, path$79);
59762
59719
  try {
59763
- opts.mkdirSync(path$80, opts);
59720
+ opts.mkdirSync(path$79, opts);
59764
59721
  return made;
59765
59722
  } catch (er) {
59766
- if (er.code === "ENOENT") return mkdirpManualSync(path$80, opts);
59723
+ if (er.code === "ENOENT") return mkdirpManualSync(path$79, opts);
59767
59724
  else throw er;
59768
59725
  }
59769
59726
  };
@@ -59775,12 +59732,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59775
59732
  //#endregion
59776
59733
  //#region ../../node_modules/mkdirp/lib/use-native.js
59777
59734
  var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59778
- const fs$29 = require("fs");
59735
+ const fs$28 = require("fs");
59779
59736
  const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
59780
59737
  const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
59781
59738
  module.exports = {
59782
- useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
59783
- useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
59739
+ useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
59740
+ useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
59784
59741
  };
59785
59742
  }));
59786
59743
  //#endregion
@@ -59811,64 +59768,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59811
59768
  //#endregion
59812
59769
  //#region ../../node_modules/chownr/chownr.js
59813
59770
  var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59814
- const fs$28 = require("fs");
59815
- const path$29 = require("path");
59771
+ const fs$27 = require("fs");
59772
+ const path$28 = require("path");
59816
59773
  /* istanbul ignore next */
59817
- const LCHOWN = fs$28.lchown ? "lchown" : "chown";
59774
+ const LCHOWN = fs$27.lchown ? "lchown" : "chown";
59818
59775
  /* istanbul ignore next */
59819
- const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
59776
+ const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
59820
59777
  /* istanbul ignore next */
59821
- const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
59822
- const lchownSync = (path$71, uid, gid) => {
59778
+ const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
59779
+ const lchownSync = (path$70, uid, gid) => {
59823
59780
  try {
59824
- return fs$28[LCHOWNSYNC](path$71, uid, gid);
59781
+ return fs$27[LCHOWNSYNC](path$70, uid, gid);
59825
59782
  } catch (er) {
59826
59783
  if (er.code !== "ENOENT") throw er;
59827
59784
  }
59828
59785
  };
59829
59786
  /* istanbul ignore next */
59830
- const chownSync = (path$72, uid, gid) => {
59787
+ const chownSync = (path$71, uid, gid) => {
59831
59788
  try {
59832
- return fs$28.chownSync(path$72, uid, gid);
59789
+ return fs$27.chownSync(path$71, uid, gid);
59833
59790
  } catch (er) {
59834
59791
  if (er.code !== "ENOENT") throw er;
59835
59792
  }
59836
59793
  };
59837
59794
  /* istanbul ignore next */
59838
- const handleEISDIR = needEISDIRHandled ? (path$73, uid, gid, cb) => (er) => {
59795
+ const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
59839
59796
  if (!er || er.code !== "EISDIR") cb(er);
59840
- else fs$28.chown(path$73, uid, gid, cb);
59797
+ else fs$27.chown(path$72, uid, gid, cb);
59841
59798
  } : (_, __, ___, cb) => cb;
59842
59799
  /* istanbul ignore next */
59843
- const handleEISDirSync = needEISDIRHandled ? (path$74, uid, gid) => {
59800
+ const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
59844
59801
  try {
59845
- return lchownSync(path$74, uid, gid);
59802
+ return lchownSync(path$73, uid, gid);
59846
59803
  } catch (er) {
59847
59804
  if (er.code !== "EISDIR") throw er;
59848
- chownSync(path$74, uid, gid);
59805
+ chownSync(path$73, uid, gid);
59849
59806
  }
59850
- } : (path$75, uid, gid) => lchownSync(path$75, uid, gid);
59807
+ } : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
59851
59808
  const nodeVersion = process.version;
59852
- let readdir = (path$76, options, cb) => fs$28.readdir(path$76, options, cb);
59853
- let readdirSync = (path$77, options) => fs$28.readdirSync(path$77, options);
59809
+ let readdir = (path$75, options, cb) => fs$27.readdir(path$75, options, cb);
59810
+ let readdirSync = (path$76, options) => fs$27.readdirSync(path$76, options);
59854
59811
  /* istanbul ignore next */
59855
- if (/^v4\./.test(nodeVersion)) readdir = (path$78, options, cb) => fs$28.readdir(path$78, cb);
59812
+ if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$27.readdir(path$77, cb);
59856
59813
  const chown = (cpath, uid, gid, cb) => {
59857
- fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
59814
+ fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
59858
59815
  cb(er && er.code !== "ENOENT" ? er : null);
59859
59816
  }));
59860
59817
  };
59861
59818
  const chownrKid = (p, child, uid, gid, cb) => {
59862
- if (typeof child === "string") return fs$28.lstat(path$29.resolve(p, child), (er, stats) => {
59819
+ if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
59863
59820
  if (er) return cb(er.code !== "ENOENT" ? er : null);
59864
59821
  stats.name = child;
59865
59822
  chownrKid(p, stats, uid, gid, cb);
59866
59823
  });
59867
- if (child.isDirectory()) chownr(path$29.resolve(p, child.name), uid, gid, (er) => {
59824
+ if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
59868
59825
  if (er) return cb(er);
59869
- chown(path$29.resolve(p, child.name), uid, gid, cb);
59826
+ chown(path$28.resolve(p, child.name), uid, gid, cb);
59870
59827
  });
59871
- else chown(path$29.resolve(p, child.name), uid, gid, cb);
59828
+ else chown(path$28.resolve(p, child.name), uid, gid, cb);
59872
59829
  };
59873
59830
  const chownr = (p, uid, gid, cb) => {
59874
59831
  readdir(p, { withFileTypes: true }, (er, children) => {
@@ -59889,15 +59846,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59889
59846
  };
59890
59847
  const chownrKidSync = (p, child, uid, gid) => {
59891
59848
  if (typeof child === "string") try {
59892
- const stats = fs$28.lstatSync(path$29.resolve(p, child));
59849
+ const stats = fs$27.lstatSync(path$28.resolve(p, child));
59893
59850
  stats.name = child;
59894
59851
  child = stats;
59895
59852
  } catch (er) {
59896
59853
  if (er.code === "ENOENT") return;
59897
59854
  else throw er;
59898
59855
  }
59899
- if (child.isDirectory()) chownrSync(path$29.resolve(p, child.name), uid, gid);
59900
- handleEISDirSync(path$29.resolve(p, child.name), uid, gid);
59856
+ if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
59857
+ handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
59901
59858
  };
59902
59859
  const chownrSync = (p, uid, gid) => {
59903
59860
  let children;
@@ -59918,14 +59875,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59918
59875
  //#region ../../node_modules/tar/lib/mkdir.js
59919
59876
  var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59920
59877
  const mkdirp = require_mkdirp();
59921
- const fs$27 = require("fs");
59922
- const path$28 = require("path");
59878
+ const fs$26 = require("fs");
59879
+ const path$27 = require("path");
59923
59880
  const chownr = require_chownr();
59924
59881
  const normPath = require_normalize_windows_path();
59925
59882
  var SymlinkError = class extends Error {
59926
- constructor(symlink, path$69) {
59883
+ constructor(symlink, path$68) {
59927
59884
  super("Cannot extract through symbolic link");
59928
- this.path = path$69;
59885
+ this.path = path$68;
59929
59886
  this.symlink = symlink;
59930
59887
  }
59931
59888
  get name() {
@@ -59933,9 +59890,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59933
59890
  }
59934
59891
  };
59935
59892
  var CwdError = class extends Error {
59936
- constructor(path$70, code) {
59937
- super(code + ": Cannot cd into '" + path$70 + "'");
59938
- this.path = path$70;
59893
+ constructor(path$69, code) {
59894
+ super(code + ": Cannot cd into '" + path$69 + "'");
59895
+ this.path = path$69;
59939
59896
  this.code = code;
59940
59897
  }
59941
59898
  get name() {
@@ -59945,7 +59902,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59945
59902
  const cGet = (cache, key) => cache.get(normPath(key));
59946
59903
  const cSet = (cache, key, val) => cache.set(normPath(key), val);
59947
59904
  const checkCwd = (dir, cb) => {
59948
- fs$27.stat(dir, (er, st) => {
59905
+ fs$26.stat(dir, (er, st) => {
59949
59906
  if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
59950
59907
  cb(er);
59951
59908
  });
@@ -59967,31 +59924,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59967
59924
  else {
59968
59925
  cSet(cache, dir, true);
59969
59926
  if (created && doChown) chownr(created, uid, gid, (er) => done(er));
59970
- else if (needChmod) fs$27.chmod(dir, mode, cb);
59927
+ else if (needChmod) fs$26.chmod(dir, mode, cb);
59971
59928
  else cb();
59972
59929
  }
59973
59930
  };
59974
59931
  if (cache && cGet(cache, dir) === true) return done();
59975
59932
  if (dir === cwd) return checkCwd(dir, done);
59976
59933
  if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
59977
- mkdir_(cwd, normPath(path$28.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
59934
+ mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
59978
59935
  };
59979
59936
  const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
59980
59937
  if (!parts.length) return cb(null, created);
59981
59938
  const p = parts.shift();
59982
- const part = normPath(path$28.resolve(base + "/" + p));
59939
+ const part = normPath(path$27.resolve(base + "/" + p));
59983
59940
  if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
59984
- fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59941
+ fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59985
59942
  };
59986
59943
  const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
59987
- if (er) fs$27.lstat(part, (statEr, st) => {
59944
+ if (er) fs$26.lstat(part, (statEr, st) => {
59988
59945
  if (statEr) {
59989
59946
  statEr.path = statEr.path && normPath(statEr.path);
59990
59947
  cb(statEr);
59991
59948
  } else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
59992
- else if (unlink) fs$27.unlink(part, (er) => {
59949
+ else if (unlink) fs$26.unlink(part, (er) => {
59993
59950
  if (er) return cb(er);
59994
- fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59951
+ fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59995
59952
  });
59996
59953
  else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
59997
59954
  else cb(er);
@@ -60005,7 +59962,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
60005
59962
  let ok = false;
60006
59963
  let code = "ENOTDIR";
60007
59964
  try {
60008
- ok = fs$27.statSync(dir).isDirectory();
59965
+ ok = fs$26.statSync(dir).isDirectory();
60009
59966
  } catch (er) {
60010
59967
  code = er.code;
60011
59968
  } finally {
@@ -60027,7 +59984,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
60027
59984
  const done = (created) => {
60028
59985
  cSet(cache, dir, true);
60029
59986
  if (created && doChown) chownr.sync(created, uid, gid);
60030
- if (needChmod) fs$27.chmodSync(dir, mode);
59987
+ if (needChmod) fs$26.chmodSync(dir, mode);
60031
59988
  };
60032
59989
  if (cache && cGet(cache, dir) === true) return done();
60033
59990
  if (dir === cwd) {
@@ -60035,23 +59992,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
60035
59992
  return done();
60036
59993
  }
60037
59994
  if (preserve) return done(mkdirp.sync(dir, mode));
60038
- const parts = normPath(path$28.relative(cwd, dir)).split("/");
59995
+ const parts = normPath(path$27.relative(cwd, dir)).split("/");
60039
59996
  let created = null;
60040
59997
  for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
60041
- part = normPath(path$28.resolve(part));
59998
+ part = normPath(path$27.resolve(part));
60042
59999
  if (cGet(cache, part)) continue;
60043
60000
  try {
60044
- fs$27.mkdirSync(part, mode);
60001
+ fs$26.mkdirSync(part, mode);
60045
60002
  created = created || part;
60046
60003
  cSet(cache, part, true);
60047
60004
  } catch (er) {
60048
- const st = fs$27.lstatSync(part);
60005
+ const st = fs$26.lstatSync(part);
60049
60006
  if (st.isDirectory()) {
60050
60007
  cSet(cache, part, true);
60051
60008
  continue;
60052
60009
  } else if (unlink) {
60053
- fs$27.unlinkSync(part);
60054
- fs$27.mkdirSync(part, mode);
60010
+ fs$26.unlinkSync(part);
60011
+ fs$26.mkdirSync(part, mode);
60055
60012
  created = created || part;
60056
60013
  cSet(cache, part, true);
60057
60014
  continue;
@@ -60077,15 +60034,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60077
60034
  const assert$1 = require("assert");
60078
60035
  const normalize = require_normalize_unicode();
60079
60036
  const stripSlashes = require_strip_trailing_slashes();
60080
- const { join: join$19 } = require("path");
60037
+ const { join: join$17 } = require("path");
60081
60038
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
60082
60039
  module.exports = () => {
60083
60040
  const queues = /* @__PURE__ */ new Map();
60084
60041
  const reservations = /* @__PURE__ */ new Map();
60085
- const getDirs = (path$62) => {
60086
- return path$62.split("/").slice(0, -1).reduce((set, path$63) => {
60087
- if (set.length) path$63 = join$19(set[set.length - 1], path$63);
60088
- set.push(path$63 || "/");
60042
+ const getDirs = (path$61) => {
60043
+ return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
60044
+ if (set.length) path$62 = join$17(set[set.length - 1], path$62);
60045
+ set.push(path$62 || "/");
60089
60046
  return set;
60090
60047
  }, []);
60091
60048
  };
@@ -60095,8 +60052,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60095
60052
  /* istanbul ignore if - unpossible */
60096
60053
  if (!res) throw new Error("function does not have any path reservations");
60097
60054
  return {
60098
- paths: res.paths.map((path$64) => queues.get(path$64)),
60099
- dirs: [...res.dirs].map((path$65) => queues.get(path$65))
60055
+ paths: res.paths.map((path$63) => queues.get(path$63)),
60056
+ dirs: [...res.dirs].map((path$64) => queues.get(path$64))
60100
60057
  };
60101
60058
  };
60102
60059
  const check = (fn) => {
@@ -60113,10 +60070,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60113
60070
  if (!running.has(fn)) return false;
60114
60071
  const { paths, dirs } = reservations.get(fn);
60115
60072
  const next = /* @__PURE__ */ new Set();
60116
- paths.forEach((path$66) => {
60117
- const q = queues.get(path$66);
60073
+ paths.forEach((path$65) => {
60074
+ const q = queues.get(path$65);
60118
60075
  assert$1.equal(q[0], fn);
60119
- if (q.length === 1) queues.delete(path$66);
60076
+ if (q.length === 1) queues.delete(path$65);
60120
60077
  else {
60121
60078
  q.shift();
60122
60079
  if (typeof q[0] === "function") next.add(q[0]);
@@ -60138,16 +60095,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60138
60095
  };
60139
60096
  const reserve = (paths, fn) => {
60140
60097
  paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
60141
- return stripSlashes(join$19(normalize(p))).toLowerCase();
60098
+ return stripSlashes(join$17(normalize(p))).toLowerCase();
60142
60099
  });
60143
- const dirs = new Set(paths.map((path$67) => getDirs(path$67)).reduce((a, b) => a.concat(b)));
60100
+ const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
60144
60101
  reservations.set(fn, {
60145
60102
  dirs,
60146
60103
  paths
60147
60104
  });
60148
- paths.forEach((path$68) => {
60149
- const q = queues.get(path$68);
60150
- if (!q) queues.set(path$68, [fn]);
60105
+ paths.forEach((path$67) => {
60106
+ const q = queues.get(path$67);
60107
+ if (!q) queues.set(path$67, [fn]);
60151
60108
  else q.push(fn);
60152
60109
  });
60153
60110
  dirs.forEach((dir) => {
@@ -60180,9 +60137,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
60180
60137
  var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
60181
60138
  const assert = require("assert");
60182
60139
  const Parser = require_parse$4();
60183
- const fs$26 = require("fs");
60140
+ const fs$25 = require("fs");
60184
60141
  const fsm = require_fs_minipass();
60185
- const path$27 = require("path");
60142
+ const path$26 = require("path");
60186
60143
  const mkdir = require_mkdir();
60187
60144
  const wc = require_winchars();
60188
60145
  const pathReservations = require_path_reservations();
@@ -60220,28 +60177,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60220
60177
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
60221
60178
  const DEFAULT_MAX_DEPTH = 1024;
60222
60179
  /* istanbul ignore next */
60223
- const unlinkFile = (path$58, cb) => {
60224
- if (!isWindows) return fs$26.unlink(path$58, cb);
60225
- const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60226
- fs$26.rename(path$58, name, (er) => {
60180
+ const unlinkFile = (path$57, cb) => {
60181
+ if (!isWindows) return fs$25.unlink(path$57, cb);
60182
+ const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60183
+ fs$25.rename(path$57, name, (er) => {
60227
60184
  if (er) return cb(er);
60228
- fs$26.unlink(name, cb);
60185
+ fs$25.unlink(name, cb);
60229
60186
  });
60230
60187
  };
60231
60188
  /* istanbul ignore next */
60232
- const unlinkFileSync = (path$59) => {
60233
- if (!isWindows) return fs$26.unlinkSync(path$59);
60234
- const name = path$59 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60235
- fs$26.renameSync(path$59, name);
60236
- fs$26.unlinkSync(name);
60189
+ const unlinkFileSync = (path$58) => {
60190
+ if (!isWindows) return fs$25.unlinkSync(path$58);
60191
+ const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60192
+ fs$25.renameSync(path$58, name);
60193
+ fs$25.unlinkSync(name);
60237
60194
  };
60238
60195
  const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
60239
- const cacheKeyNormalize = (path$60) => stripSlash(normPath(normalize(path$60))).toLowerCase();
60196
+ const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
60240
60197
  const pruneCache = (cache, abs) => {
60241
60198
  abs = cacheKeyNormalize(abs);
60242
- for (const path$61 of cache.keys()) {
60243
- const pnorm = cacheKeyNormalize(path$61);
60244
- if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$61);
60199
+ for (const path$60 of cache.keys()) {
60200
+ const pnorm = cacheKeyNormalize(path$60);
60201
+ if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$60);
60245
60202
  }
60246
60203
  };
60247
60204
  const dropCache = (cache) => {
@@ -60286,7 +60243,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60286
60243
  this.noMtime = !!opt.noMtime;
60287
60244
  this.preservePaths = !!opt.preservePaths;
60288
60245
  this.unlink = !!opt.unlink;
60289
- this.cwd = normPath(path$27.resolve(opt.cwd || process.cwd()));
60246
+ this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
60290
60247
  this.strip = +opt.strip || 0;
60291
60248
  this.processUmask = opt.noChmod ? 0 : process.umask();
60292
60249
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -60344,8 +60301,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60344
60301
  });
60345
60302
  }
60346
60303
  }
60347
- if (path$27.isAbsolute(entry.path)) entry.absolute = normPath(path$27.resolve(entry.path));
60348
- else entry.absolute = normPath(path$27.resolve(this.cwd, entry.path));
60304
+ if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
60305
+ else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
60349
60306
  /* istanbul ignore if - defense in depth */
60350
60307
  if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
60351
60308
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -60358,9 +60315,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60358
60315
  }
60359
60316
  if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
60360
60317
  if (this.win32) {
60361
- const { root: aRoot } = path$27.win32.parse(entry.absolute);
60318
+ const { root: aRoot } = path$26.win32.parse(entry.absolute);
60362
60319
  entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
60363
- const { root: pRoot } = path$27.win32.parse(entry.path);
60320
+ const { root: pRoot } = path$26.win32.parse(entry.path);
60364
60321
  entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
60365
60322
  }
60366
60323
  return true;
@@ -60419,7 +60376,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60419
60376
  autoClose: false
60420
60377
  });
60421
60378
  stream.on("error", (er) => {
60422
- if (stream.fd) fs$26.close(stream.fd, () => {});
60379
+ if (stream.fd) fs$25.close(stream.fd, () => {});
60423
60380
  stream.write = () => true;
60424
60381
  this[ONERROR](er, entry);
60425
60382
  fullyDone();
@@ -60428,12 +60385,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60428
60385
  const done = (er) => {
60429
60386
  if (er) {
60430
60387
  /* istanbul ignore else - we should always have a fd by now */
60431
- if (stream.fd) fs$26.close(stream.fd, () => {});
60388
+ if (stream.fd) fs$25.close(stream.fd, () => {});
60432
60389
  this[ONERROR](er, entry);
60433
60390
  fullyDone();
60434
60391
  return;
60435
60392
  }
60436
- if (--actions === 0) fs$26.close(stream.fd, (er) => {
60393
+ if (--actions === 0) fs$25.close(stream.fd, (er) => {
60437
60394
  if (er) this[ONERROR](er, entry);
60438
60395
  else this[UNPEND]();
60439
60396
  fullyDone();
@@ -60446,13 +60403,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60446
60403
  actions++;
60447
60404
  const atime = entry.atime || /* @__PURE__ */ new Date();
60448
60405
  const mtime = entry.mtime;
60449
- fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
60406
+ fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
60450
60407
  }
60451
60408
  if (this[DOCHOWN](entry)) {
60452
60409
  actions++;
60453
60410
  const uid = this[UID](entry);
60454
60411
  const gid = this[GID](entry);
60455
- fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
60412
+ fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
60456
60413
  }
60457
60414
  done();
60458
60415
  });
@@ -60484,11 +60441,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60484
60441
  };
60485
60442
  if (entry.mtime && !this.noMtime) {
60486
60443
  actions++;
60487
- fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
60444
+ fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
60488
60445
  }
60489
60446
  if (this[DOCHOWN](entry)) {
60490
60447
  actions++;
60491
- fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
60448
+ fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
60492
60449
  }
60493
60450
  done();
60494
60451
  });
@@ -60502,7 +60459,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60502
60459
  this[LINK](entry, entry.linkpath, "symlink", done);
60503
60460
  }
60504
60461
  [HARDLINK](entry, done) {
60505
- const linkpath = normPath(path$27.resolve(this.cwd, entry.linkpath));
60462
+ const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
60506
60463
  this[LINK](entry, linkpath, "link", done);
60507
60464
  }
60508
60465
  [PEND]() {
@@ -60548,7 +60505,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60548
60505
  };
60549
60506
  const start = () => {
60550
60507
  if (entry.absolute !== this.cwd) {
60551
- const parent = normPath(path$27.dirname(entry.absolute));
60508
+ const parent = normPath(path$26.dirname(entry.absolute));
60552
60509
  if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
60553
60510
  if (er) {
60554
60511
  this[ONERROR](er, entry);
@@ -60561,7 +60518,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60561
60518
  afterMakeParent();
60562
60519
  };
60563
60520
  const afterMakeParent = () => {
60564
- fs$26.lstat(entry.absolute, (lstatEr, st) => {
60521
+ fs$25.lstat(entry.absolute, (lstatEr, st) => {
60565
60522
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
60566
60523
  this[SKIP](entry);
60567
60524
  done();
@@ -60573,9 +60530,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60573
60530
  const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
60574
60531
  const afterChmod = (er) => this[MAKEFS](er, entry, done);
60575
60532
  if (!needChmod) return afterChmod();
60576
- return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
60533
+ return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
60577
60534
  }
60578
- if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
60535
+ if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
60579
60536
  }
60580
60537
  if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
60581
60538
  unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
@@ -60601,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60601
60558
  }
60602
60559
  }
60603
60560
  [LINK](entry, linkpath, link, done) {
60604
- fs$26[link](linkpath, entry.absolute, (er) => {
60561
+ fs$25[link](linkpath, entry.absolute, (er) => {
60605
60562
  if (er) this[ONERROR](er, entry);
60606
60563
  else {
60607
60564
  this[UNPEND]();
@@ -60630,23 +60587,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60630
60587
  this[CHECKED_CWD] = true;
60631
60588
  }
60632
60589
  if (entry.absolute !== this.cwd) {
60633
- const parent = normPath(path$27.dirname(entry.absolute));
60590
+ const parent = normPath(path$26.dirname(entry.absolute));
60634
60591
  if (parent !== this.cwd) {
60635
60592
  const mkParent = this[MKDIR](parent, this.dmode);
60636
60593
  if (mkParent) return this[ONERROR](mkParent, entry);
60637
60594
  }
60638
60595
  }
60639
- const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
60596
+ const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
60640
60597
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
60641
60598
  if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
60642
60599
  if (st.isDirectory()) {
60643
60600
  if (entry.type === "Directory") {
60644
60601
  const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
60645
- fs$26.chmodSync(entry.absolute, entry.mode);
60602
+ fs$25.chmodSync(entry.absolute, entry.mode);
60646
60603
  }) : [];
60647
60604
  return this[MAKEFS](er, entry);
60648
60605
  }
60649
- const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
60606
+ const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
60650
60607
  this[MAKEFS](er, entry);
60651
60608
  }
60652
60609
  const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
@@ -60657,7 +60614,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60657
60614
  const oner = (er) => {
60658
60615
  let closeError;
60659
60616
  try {
60660
- fs$26.closeSync(fd);
60617
+ fs$25.closeSync(fd);
60661
60618
  } catch (e) {
60662
60619
  closeError = e;
60663
60620
  }
@@ -60666,7 +60623,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60666
60623
  };
60667
60624
  let fd;
60668
60625
  try {
60669
- fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
60626
+ fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
60670
60627
  } catch (er) {
60671
60628
  return oner(er);
60672
60629
  }
@@ -60677,7 +60634,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60677
60634
  }
60678
60635
  tx.on("data", (chunk) => {
60679
60636
  try {
60680
- fs$26.writeSync(fd, chunk, 0, chunk.length);
60637
+ fs$25.writeSync(fd, chunk, 0, chunk.length);
60681
60638
  } catch (er) {
60682
60639
  oner(er);
60683
60640
  }
@@ -60688,10 +60645,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60688
60645
  const atime = entry.atime || /* @__PURE__ */ new Date();
60689
60646
  const mtime = entry.mtime;
60690
60647
  try {
60691
- fs$26.futimesSync(fd, atime, mtime);
60648
+ fs$25.futimesSync(fd, atime, mtime);
60692
60649
  } catch (futimeser) {
60693
60650
  try {
60694
- fs$26.utimesSync(entry.absolute, atime, mtime);
60651
+ fs$25.utimesSync(entry.absolute, atime, mtime);
60695
60652
  } catch (utimeser) {
60696
60653
  er = futimeser;
60697
60654
  }
@@ -60701,10 +60658,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60701
60658
  const uid = this[UID](entry);
60702
60659
  const gid = this[GID](entry);
60703
60660
  try {
60704
- fs$26.fchownSync(fd, uid, gid);
60661
+ fs$25.fchownSync(fd, uid, gid);
60705
60662
  } catch (fchowner) {
60706
60663
  try {
60707
- fs$26.chownSync(entry.absolute, uid, gid);
60664
+ fs$25.chownSync(entry.absolute, uid, gid);
60708
60665
  } catch (chowner) {
60709
60666
  er = er || fchowner;
60710
60667
  }
@@ -60722,10 +60679,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60722
60679
  return;
60723
60680
  }
60724
60681
  if (entry.mtime && !this.noMtime) try {
60725
- fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
60682
+ fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
60726
60683
  } catch (er) {}
60727
60684
  if (this[DOCHOWN](entry)) try {
60728
- fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
60685
+ fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
60729
60686
  } catch (er) {}
60730
60687
  done();
60731
60688
  entry.resume();
@@ -60750,7 +60707,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60750
60707
  }
60751
60708
  [LINK](entry, linkpath, link, done) {
60752
60709
  try {
60753
- fs$26[link + "Sync"](linkpath, entry.absolute);
60710
+ fs$25[link + "Sync"](linkpath, entry.absolute);
60754
60711
  done();
60755
60712
  entry.resume();
60756
60713
  } catch (er) {
@@ -60766,9 +60723,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60766
60723
  var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
60767
60724
  const hlo = require_high_level_opt();
60768
60725
  const Unpack = require_unpack();
60769
- const fs$25 = require("fs");
60726
+ const fs$24 = require("fs");
60770
60727
  const fsm = require_fs_minipass();
60771
- const path$26 = require("path");
60728
+ const path$25 = require("path");
60772
60729
  const stripSlash = require_strip_trailing_slashes();
60773
60730
  module.exports = (opt_, files, cb) => {
60774
60731
  if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
@@ -60786,8 +60743,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60786
60743
  const map = new Map(files.map((f) => [stripSlash(f), true]));
60787
60744
  const filter = opt.filter;
60788
60745
  const mapHas = (file, r) => {
60789
- const root = r || path$26.parse(file).root || ".";
60790
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$26.dirname(file), root);
60746
+ const root = r || path$25.parse(file).root || ".";
60747
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
60791
60748
  map.set(file, ret);
60792
60749
  return ret;
60793
60750
  };
@@ -60796,7 +60753,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60796
60753
  const extractFileSync = (opt) => {
60797
60754
  const u = new Unpack.Sync(opt);
60798
60755
  const file = opt.file;
60799
- const stat = fs$25.statSync(file);
60756
+ const stat = fs$24.statSync(file);
60800
60757
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
60801
60758
  new fsm.ReadStreamSync(file, {
60802
60759
  readSize,
@@ -60810,7 +60767,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60810
60767
  const p = new Promise((resolve, reject) => {
60811
60768
  u.on("error", reject);
60812
60769
  u.on("close", resolve);
60813
- fs$25.stat(file, (er, stat) => {
60770
+ fs$24.stat(file, (er, stat) => {
60814
60771
  if (er) reject(er);
60815
60772
  else {
60816
60773
  const stream = new fsm.ReadStream(file, {
@@ -60893,7 +60850,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
60893
60850
  //#endregion
60894
60851
  //#region ../../node_modules/fd-slicer/index.js
60895
60852
  var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
60896
- var fs$24 = require("fs");
60853
+ var fs$23 = require("fs");
60897
60854
  var util$9 = require("util");
60898
60855
  var stream$1 = require("stream");
60899
60856
  var Readable = stream$1.Readable;
@@ -60918,7 +60875,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60918
60875
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
60919
60876
  var self = this;
60920
60877
  self.pend.go(function(cb) {
60921
- fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
60878
+ fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
60922
60879
  cb();
60923
60880
  callback(err, bytesRead, buffer);
60924
60881
  });
@@ -60927,7 +60884,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60927
60884
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
60928
60885
  var self = this;
60929
60886
  self.pend.go(function(cb) {
60930
- fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
60887
+ fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
60931
60888
  cb();
60932
60889
  callback(err, written, buffer);
60933
60890
  });
@@ -60947,7 +60904,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60947
60904
  self.refCount -= 1;
60948
60905
  if (self.refCount > 0) return;
60949
60906
  if (self.refCount < 0) throw new Error("invalid unref");
60950
- if (self.autoClose) fs$24.close(self.fd, onCloseDone);
60907
+ if (self.autoClose) fs$23.close(self.fd, onCloseDone);
60951
60908
  function onCloseDone(err) {
60952
60909
  if (err) self.emit("error", err);
60953
60910
  else self.emit("close");
@@ -60978,7 +60935,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60978
60935
  self.context.pend.go(function(cb) {
60979
60936
  if (self.destroyed) return cb();
60980
60937
  var buffer = new Buffer(toRead);
60981
- fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
60938
+ fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
60982
60939
  if (err) self.destroy(err);
60983
60940
  else if (bytesRead === 0) {
60984
60941
  self.destroyed = true;
@@ -61024,7 +60981,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
61024
60981
  }
61025
60982
  self.context.pend.go(function(cb) {
61026
60983
  if (self.destroyed) return cb();
61027
- fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
60984
+ fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
61028
60985
  if (err) {
61029
60986
  self.destroy();
61030
60987
  cb();
@@ -61431,7 +61388,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
61431
61388
  //#endregion
61432
61389
  //#region ../../node_modules/yauzl/index.js
61433
61390
  var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61434
- var fs$23 = require("fs");
61391
+ var fs$22 = require("fs");
61435
61392
  var zlib$1 = require("zlib");
61436
61393
  var fd_slicer = require_fd_slicer();
61437
61394
  var crc32 = require_buffer_crc32();
@@ -61453,10 +61410,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61453
61410
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
61454
61411
  if (options.strictFileNames == null) options.strictFileNames = false;
61455
61412
  if (callback == null) callback = defaultCallback;
61456
- fs$23.open(path, "r", function(err, fd) {
61413
+ fs$22.open(path, "r", function(err, fd) {
61457
61414
  if (err) return callback(err);
61458
61415
  fromFd(fd, options, function(err, zipfile) {
61459
- if (err) fs$23.close(fd, defaultCallback);
61416
+ if (err) fs$22.close(fd, defaultCallback);
61460
61417
  callback(err, zipfile);
61461
61418
  });
61462
61419
  });
@@ -61473,7 +61430,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61473
61430
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
61474
61431
  if (options.strictFileNames == null) options.strictFileNames = false;
61475
61432
  if (callback == null) callback = defaultCallback;
61476
- fs$23.fstat(fd, function(err, stats) {
61433
+ fs$22.fstat(fd, function(err, stats) {
61477
61434
  if (err) return callback(err);
61478
61435
  fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
61479
61436
  });
@@ -62701,13 +62658,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
62701
62658
  //#region ../../node_modules/readdir-glob/index.js
62702
62659
  var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
62703
62660
  module.exports = readdirGlob;
62704
- const fs$22 = require("fs");
62661
+ const fs$21 = require("fs");
62705
62662
  const { EventEmitter } = require("events");
62706
62663
  const { Minimatch } = require_minimatch$1();
62707
62664
  const { resolve: resolve$12 } = require("path");
62708
62665
  function readdir(dir, strict) {
62709
62666
  return new Promise((resolve, reject) => {
62710
- fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
62667
+ fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
62711
62668
  if (err) switch (err.code) {
62712
62669
  case "ENOTDIR":
62713
62670
  if (strict) reject(err);
@@ -62729,7 +62686,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62729
62686
  }
62730
62687
  function stat(file, followSymlinks) {
62731
62688
  return new Promise((resolve, reject) => {
62732
- (followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
62689
+ (followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
62733
62690
  if (err) switch (err.code) {
62734
62691
  case "ENOENT":
62735
62692
  if (followSymlinks) resolve(stat(file, false));
@@ -62743,8 +62700,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62743
62700
  });
62744
62701
  });
62745
62702
  }
62746
- async function* exploreWalkAsync(dir, path$56, followSymlinks, useStat, shouldSkip, strict) {
62747
- let files = await readdir(path$56 + dir, strict);
62703
+ async function* exploreWalkAsync(dir, path$55, followSymlinks, useStat, shouldSkip, strict) {
62704
+ let files = await readdir(path$55 + dir, strict);
62748
62705
  for (const file of files) {
62749
62706
  let name = file.name;
62750
62707
  if (name === void 0) {
@@ -62753,7 +62710,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62753
62710
  }
62754
62711
  const filename = dir + "/" + name;
62755
62712
  const relative = filename.slice(1);
62756
- const absolute = path$56 + "/" + relative;
62713
+ const absolute = path$55 + "/" + relative;
62757
62714
  let stats = null;
62758
62715
  if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
62759
62716
  if (!stats && file.name !== void 0) stats = file;
@@ -62765,7 +62722,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62765
62722
  absolute,
62766
62723
  stats
62767
62724
  };
62768
- yield* exploreWalkAsync(filename, path$56, followSymlinks, useStat, shouldSkip, false);
62725
+ yield* exploreWalkAsync(filename, path$55, followSymlinks, useStat, shouldSkip, false);
62769
62726
  }
62770
62727
  } else yield {
62771
62728
  relative,
@@ -62774,8 +62731,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62774
62731
  };
62775
62732
  }
62776
62733
  }
62777
- async function* explore(path$57, followSymlinks, useStat, shouldSkip) {
62778
- yield* exploreWalkAsync("", path$57, followSymlinks, useStat, shouldSkip, true);
62734
+ async function* explore(path$56, followSymlinks, useStat, shouldSkip) {
62735
+ yield* exploreWalkAsync("", path$56, followSymlinks, useStat, shouldSkip, true);
62779
62736
  }
62780
62737
  function readOptions(options) {
62781
62738
  return {
@@ -68768,7 +68725,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
68768
68725
  //#endregion
68769
68726
  //#region ../../node_modules/graceful-fs/graceful-fs.js
68770
68727
  var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
68771
- var fs$21 = require("fs");
68728
+ var fs$20 = require("fs");
68772
68729
  var polyfills = require_polyfills();
68773
68730
  var legacy = require_legacy_streams();
68774
68731
  var clone = require_clone$1();
@@ -68797,36 +68754,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
68797
68754
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
68798
68755
  console.error(m);
68799
68756
  };
68800
- if (!fs$21[gracefulQueue]) {
68801
- publishQueue(fs$21, global[gracefulQueue] || []);
68802
- fs$21.close = (function(fs$close) {
68757
+ if (!fs$20[gracefulQueue]) {
68758
+ publishQueue(fs$20, global[gracefulQueue] || []);
68759
+ fs$20.close = (function(fs$close) {
68803
68760
  function close(fd, cb) {
68804
- return fs$close.call(fs$21, fd, function(err) {
68761
+ return fs$close.call(fs$20, fd, function(err) {
68805
68762
  if (!err) resetQueue();
68806
68763
  if (typeof cb === "function") cb.apply(this, arguments);
68807
68764
  });
68808
68765
  }
68809
68766
  Object.defineProperty(close, previousSymbol, { value: fs$close });
68810
68767
  return close;
68811
- })(fs$21.close);
68812
- fs$21.closeSync = (function(fs$closeSync) {
68768
+ })(fs$20.close);
68769
+ fs$20.closeSync = (function(fs$closeSync) {
68813
68770
  function closeSync(fd) {
68814
- fs$closeSync.apply(fs$21, arguments);
68771
+ fs$closeSync.apply(fs$20, arguments);
68815
68772
  resetQueue();
68816
68773
  }
68817
68774
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
68818
68775
  return closeSync;
68819
- })(fs$21.closeSync);
68776
+ })(fs$20.closeSync);
68820
68777
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
68821
- debug(fs$21[gracefulQueue]);
68822
- require("assert").equal(fs$21[gracefulQueue].length, 0);
68778
+ debug(fs$20[gracefulQueue]);
68779
+ require("assert").equal(fs$20[gracefulQueue].length, 0);
68823
68780
  });
68824
68781
  }
68825
- if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
68826
- module.exports = patch(clone(fs$21));
68827
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
68828
- module.exports = patch(fs$21);
68829
- fs$21.__patched = true;
68782
+ if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
68783
+ module.exports = patch(clone(fs$20));
68784
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
68785
+ module.exports = patch(fs$20);
68786
+ fs$20.__patched = true;
68830
68787
  }
68831
68788
  function patch(fs) {
68832
68789
  polyfills(fs);
@@ -69081,23 +69038,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
69081
69038
  }
69082
69039
  function enqueue(elem) {
69083
69040
  debug("ENQUEUE", elem[0].name, elem[1]);
69084
- fs$21[gracefulQueue].push(elem);
69041
+ fs$20[gracefulQueue].push(elem);
69085
69042
  retry();
69086
69043
  }
69087
69044
  var retryTimer;
69088
69045
  function resetQueue() {
69089
69046
  var now = Date.now();
69090
- for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
69091
- fs$21[gracefulQueue][i][3] = now;
69092
- fs$21[gracefulQueue][i][4] = now;
69047
+ for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
69048
+ fs$20[gracefulQueue][i][3] = now;
69049
+ fs$20[gracefulQueue][i][4] = now;
69093
69050
  }
69094
69051
  retry();
69095
69052
  }
69096
69053
  function retry() {
69097
69054
  clearTimeout(retryTimer);
69098
69055
  retryTimer = void 0;
69099
- if (fs$21[gracefulQueue].length === 0) return;
69100
- var elem = fs$21[gracefulQueue].shift();
69056
+ if (fs$20[gracefulQueue].length === 0) return;
69057
+ var elem = fs$20[gracefulQueue].shift();
69101
69058
  var fn = elem[0];
69102
69059
  var args = elem[1];
69103
69060
  var err = elem[2];
@@ -69116,7 +69073,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
69116
69073
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
69117
69074
  debug("RETRY", fn.name, args);
69118
69075
  fn.apply(null, args.concat([startTime]));
69119
- } else fs$21[gracefulQueue].push(elem);
69076
+ } else fs$20[gracefulQueue].push(elem);
69120
69077
  }
69121
69078
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
69122
69079
  }
@@ -84242,7 +84199,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84242
84199
  * https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
84243
84200
  */
84244
84201
  var fs = require_graceful_fs();
84245
- var path$25 = require("path");
84202
+ var path$24 = require("path");
84246
84203
  var flatten = require_flatten();
84247
84204
  var difference = require_difference();
84248
84205
  var union = require_union();
@@ -84262,7 +84219,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84262
84219
  return result;
84263
84220
  };
84264
84221
  file.exists = function() {
84265
- var filepath = path$25.join.apply(path$25, arguments);
84222
+ var filepath = path$24.join.apply(path$24, arguments);
84266
84223
  return fs.existsSync(filepath);
84267
84224
  };
84268
84225
  file.expand = function(...args) {
@@ -84273,7 +84230,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84273
84230
  return glob.sync(pattern, options);
84274
84231
  });
84275
84232
  if (options.filter) matches = matches.filter(function(filepath) {
84276
- filepath = path$25.join(options.cwd || "", filepath);
84233
+ filepath = path$24.join(options.cwd || "", filepath);
84277
84234
  try {
84278
84235
  if (typeof options.filter === "function") return options.filter(filepath);
84279
84236
  else return fs.statSync(filepath)[options.filter]();
@@ -84285,16 +84242,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84285
84242
  };
84286
84243
  file.expandMapping = function(patterns, destBase, options) {
84287
84244
  options = Object.assign({ rename: function(destBase, destPath) {
84288
- return path$25.join(destBase || "", destPath);
84245
+ return path$24.join(destBase || "", destPath);
84289
84246
  } }, options);
84290
84247
  var files = [];
84291
84248
  var fileByDest = {};
84292
84249
  file.expand(options, patterns).forEach(function(src) {
84293
84250
  var destPath = src;
84294
- if (options.flatten) destPath = path$25.basename(destPath);
84251
+ if (options.flatten) destPath = path$24.basename(destPath);
84295
84252
  if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
84296
84253
  var dest = options.rename(destBase, destPath, options);
84297
- if (options.cwd) src = path$25.join(options.cwd, src);
84254
+ if (options.cwd) src = path$24.join(options.cwd, src);
84298
84255
  dest = dest.replace(pathSeparatorRe, "/");
84299
84256
  src = src.replace(pathSeparatorRe, "/");
84300
84257
  if (fileByDest[dest]) fileByDest[dest].src.push(src);
@@ -84369,7 +84326,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
84369
84326
  * https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
84370
84327
  */
84371
84328
  var fs = require_graceful_fs();
84372
- var path$24 = require("path");
84329
+ var path$23 = require("path");
84373
84330
  var isStream = require_is_stream$1();
84374
84331
  var lazystream = require_lazystream();
84375
84332
  var normalizePath = require_normalize_path();
@@ -84445,11 +84402,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
84445
84402
  (function next() {
84446
84403
  file = list[i++];
84447
84404
  if (!file) return callback(null, results);
84448
- filepath = path$24.join(dirpath, file);
84405
+ filepath = path$23.join(dirpath, file);
84449
84406
  fs.stat(filepath, function(err, stats) {
84450
84407
  results.push({
84451
84408
  path: filepath,
84452
- relative: path$24.relative(base, filepath).replace(/\\/g, "/"),
84409
+ relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
84453
84410
  stats
84454
84411
  });
84455
84412
  if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
@@ -84513,10 +84470,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84513
84470
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
84514
84471
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
84515
84472
  */
84516
- var fs$20 = require("fs");
84473
+ var fs$19 = require("fs");
84517
84474
  var glob = require_readdir_glob();
84518
84475
  var async = require_async();
84519
- var path$23 = require("path");
84476
+ var path$22 = require("path");
84520
84477
  var util = require_archiver_utils();
84521
84478
  var inherits$5 = require("util").inherits;
84522
84479
  var ArchiverError = require_error$10();
@@ -84590,7 +84547,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84590
84547
  data.sourcePath = filepath;
84591
84548
  task.data = data;
84592
84549
  this._entriesCount++;
84593
- if (data.stats && data.stats instanceof fs$20.Stats) {
84550
+ if (data.stats && data.stats instanceof fs$19.Stats) {
84594
84551
  task = this._updateQueueTaskWithStats(task, data.stats);
84595
84552
  if (task) {
84596
84553
  if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
@@ -84820,7 +84777,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84820
84777
  callback();
84821
84778
  return;
84822
84779
  }
84823
- fs$20.lstat(task.filepath, function(err, stats) {
84780
+ fs$19.lstat(task.filepath, function(err, stats) {
84824
84781
  if (this._state.aborted) {
84825
84782
  setImmediate(callback);
84826
84783
  return;
@@ -84886,10 +84843,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84886
84843
  task.data.sourceType = "buffer";
84887
84844
  task.source = Buffer.concat([]);
84888
84845
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
84889
- var linkPath = fs$20.readlinkSync(task.filepath);
84890
- var dirName = path$23.dirname(task.filepath);
84846
+ var linkPath = fs$19.readlinkSync(task.filepath);
84847
+ var dirName = path$22.dirname(task.filepath);
84891
84848
  task.data.type = "symlink";
84892
- task.data.linkname = path$23.relative(dirName, path$23.resolve(dirName, linkPath));
84849
+ task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
84893
84850
  task.data.sourceType = "buffer";
84894
84851
  task.source = Buffer.concat([]);
84895
84852
  } else {
@@ -95975,7 +95932,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
95975
95932
  //#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
95976
95933
  var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
95977
95934
  const { isexe, sync: isexeSync } = require_index_min$3();
95978
- const { join: join$16, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
95935
+ const { join: join$14, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
95979
95936
  const isWindows = process.platform === "win32";
95980
95937
  /* istanbul ignore next */
95981
95938
  const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
@@ -96005,7 +95962,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
96005
95962
  };
96006
95963
  const getPathPart = (raw, cmd) => {
96007
95964
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
96008
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
95965
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
96009
95966
  };
96010
95967
  const which = async (cmd, opt = {}) => {
96011
95968
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -96754,7 +96711,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
96754
96711
  //#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
96755
96712
  var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
96756
96713
  const { isexe, sync: isexeSync } = require_index_min$2();
96757
- const { join: join$15, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
96714
+ const { join: join$13, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
96758
96715
  const isWindows = process.platform === "win32";
96759
96716
  /* istanbul ignore next */
96760
96717
  const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
@@ -96784,7 +96741,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
96784
96741
  };
96785
96742
  const getPathPart = (raw, cmd) => {
96786
96743
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
96787
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
96744
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
96788
96745
  };
96789
96746
  const which = async (cmd, opt = {}) => {
96790
96747
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -98682,7 +98639,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
98682
98639
  //#endregion
98683
98640
  //#region ../../node_modules/npm-normalize-package-bin/lib/index.js
98684
98641
  var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
98685
- const { join: join$14, basename: basename$5 } = require("path");
98642
+ const { join: join$12, basename: basename$5 } = require("path");
98686
98643
  const normalize = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
98687
98644
  const normalizeString = (pkg) => {
98688
98645
  if (!pkg.name) return removeBin(pkg);
@@ -98705,9 +98662,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
98705
98662
  const clean = {};
98706
98663
  let hasBins = false;
98707
98664
  Object.keys(orig).forEach((binKey) => {
98708
- const base = join$14("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
98665
+ const base = join$12("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
98709
98666
  if (typeof orig[binKey] !== "string" || !base) return;
98710
- const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
98667
+ const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
98711
98668
  if (!binTarget) return;
98712
98669
  clean[base] = binTarget;
98713
98670
  hasBins = true;
@@ -100780,7 +100737,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100780
100737
  const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
100781
100738
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
100782
100739
  const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
100783
- const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
100740
+ const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
100784
100741
  const { fileURLToPath } = require("url");
100785
100742
  const defaultOptions = {
100786
100743
  dereference: false,
@@ -100887,7 +100844,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100887
100844
  });
100888
100845
  return checkParentPaths(src, srcStat, destParent);
100889
100846
  }
100890
- const normalizePathToArray = (path$55) => resolve$10(path$55).split(sep$2).filter(Boolean);
100847
+ const normalizePathToArray = (path$54) => resolve$10(path$54).split(sep$2).filter(Boolean);
100891
100848
  function isSrcSubdir(src, dest) {
100892
100849
  const srcArr = normalizePathToArray(src);
100893
100850
  const destArr = normalizePathToArray(dest);
@@ -100989,8 +100946,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100989
100946
  const dir = await readdir$6(src);
100990
100947
  for (let i = 0; i < dir.length; i++) {
100991
100948
  const item = dir[i];
100992
- const srcItem = join$13(src, item);
100993
- const destItem = join$13(dest, item);
100949
+ const srcItem = join$11(src, item);
100950
+ const destItem = join$11(dest, item);
100994
100951
  const { destStat } = await checkPaths(srcItem, destItem, opts);
100995
100952
  await startCopy(destStat, srcItem, destItem, opts);
100996
100953
  }
@@ -101054,13 +101011,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
101054
101011
  //#endregion
101055
101012
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
101056
101013
  var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101057
- const { join: join$12, sep: sep$1 } = require("path");
101014
+ const { join: join$10, sep: sep$1 } = require("path");
101058
101015
  const getOptions = require_get_options();
101059
- const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
101016
+ const { mkdir: mkdir$6, mkdtemp, rm: rm$9 } = require("fs/promises");
101060
101017
  const withTempDir = async (root, fn, opts) => {
101061
101018
  const options = getOptions(opts, { copy: ["tmpPrefix"] });
101062
101019
  await mkdir$6(root, { recursive: true });
101063
- const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
101020
+ const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
101064
101021
  let err;
101065
101022
  let result;
101066
101023
  try {
@@ -101069,7 +101026,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
101069
101026
  err = _err;
101070
101027
  }
101071
101028
  try {
101072
- await rm$8(target, {
101029
+ await rm$9(target, {
101073
101030
  force: true,
101074
101031
  recursive: true
101075
101032
  });
@@ -101083,10 +101040,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
101083
101040
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
101084
101041
  var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101085
101042
  const { readdir: readdir$5 } = require("fs/promises");
101086
- const { join: join$11 } = require("path");
101043
+ const { join: join$9 } = require("path");
101087
101044
  const readdirScoped = async (dir) => {
101088
101045
  const results = [];
101089
- for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$11(dir, item))) results.push(join$11(item, scopedItem));
101046
+ for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$9(dir, item))) results.push(join$9(item, scopedItem));
101090
101047
  else results.push(item);
101091
101048
  return results;
101092
101049
  };
@@ -101095,11 +101052,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
101095
101052
  //#endregion
101096
101053
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
101097
101054
  var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101098
- const { dirname: dirname$8, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
101055
+ const { dirname: dirname$8, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
101099
101056
  const fs$12 = require("fs/promises");
101100
- const pathExists = async (path$54) => {
101057
+ const pathExists = async (path$53) => {
101101
101058
  try {
101102
- await fs$12.access(path$54);
101059
+ await fs$12.access(path$53);
101103
101060
  return true;
101104
101061
  } catch (er) {
101105
101062
  return er.code !== "ENOENT";
@@ -101120,7 +101077,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
101120
101077
  const sourceStat = await fs$12.lstat(source);
101121
101078
  if (sourceStat.isDirectory()) {
101122
101079
  const files = await fs$12.readdir(source);
101123
- await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
101080
+ await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
101124
101081
  } else if (sourceStat.isSymbolicLink()) symlinks.push({
101125
101082
  source,
101126
101083
  destination
@@ -101296,7 +101253,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
101296
101253
  //#region ../../node_modules/cacache/lib/entry-index.js
101297
101254
  var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101298
101255
  const crypto$1 = require("crypto");
101299
- const { appendFile, mkdir: mkdir$5, readFile: readFile$8, readdir: readdir$4, rm: rm$7, writeFile: writeFile$3 } = require("fs/promises");
101256
+ const { appendFile, mkdir: mkdir$5, readFile: readFile$8, readdir: readdir$4, rm: rm$8, writeFile: writeFile$3 } = require("fs/promises");
101300
101257
  const { Minipass } = require_commonjs$10();
101301
101258
  const path$14 = require("path");
101302
101259
  const ssri = require_lib$17();
@@ -101337,7 +101294,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
101337
101294
  };
101338
101295
  };
101339
101296
  const teardown = async (tmp) => {
101340
- if (!tmp.moved) return rm$7(tmp.target, {
101297
+ if (!tmp.moved) return rm$8(tmp.target, {
101341
101298
  recursive: true,
101342
101299
  force: true
101343
101300
  });
@@ -101393,7 +101350,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
101393
101350
  module.exports.delete = del;
101394
101351
  function del(cache, key, opts = {}) {
101395
101352
  if (!opts.removeFully) return insert(cache, key, null, opts);
101396
- return rm$7(bucketPath(cache, key), {
101353
+ return rm$8(bucketPath(cache, key), {
101397
101354
  recursive: true,
101398
101355
  force: true
101399
101356
  });
@@ -106155,7 +106112,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
106155
106112
  const { glob } = require_index_min$1();
106156
106113
  const path$12 = require("path");
106157
106114
  const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
106158
- module.exports = (path$53, options) => glob(globify(path$53), options);
106115
+ module.exports = (path$52, options) => glob(globify(path$52), options);
106159
106116
  }));
106160
106117
  //#endregion
106161
106118
  //#region ../../node_modules/cacache/lib/content/rm.js
@@ -106178,7 +106135,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
106178
106135
  //#endregion
106179
106136
  //#region ../../node_modules/cacache/lib/rm.js
106180
106137
  var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
106181
- const { rm: rm$6 } = require("fs/promises");
106138
+ const { rm: rm$7 } = require("fs/promises");
106182
106139
  const glob = require_glob();
106183
106140
  const index = require_entry_index();
106184
106141
  const memo = require_memoization();
@@ -106202,7 +106159,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
106202
106159
  silent: true,
106203
106160
  nosort: true
106204
106161
  });
106205
- return Promise.all(paths.map((p) => rm$6(p, {
106162
+ return Promise.all(paths.map((p) => rm$7(p, {
106206
106163
  recursive: true,
106207
106164
  force: true
106208
106165
  })));
@@ -106211,7 +106168,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
106211
106168
  //#endregion
106212
106169
  //#region ../../node_modules/cacache/lib/verify.js
106213
106170
  var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
106214
- const { mkdir: mkdir$4, readFile: readFile$7, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
106171
+ const { mkdir: mkdir$4, readFile: readFile$7, rm: rm$6, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
106215
106172
  const contentPath = require_path();
106216
106173
  const fsm = require_lib$15();
106217
106174
  const glob = require_glob();
@@ -106308,7 +106265,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106308
106265
  } else {
106309
106266
  stats.reclaimedCount++;
106310
106267
  const s = await stat$4(f);
106311
- await rm$5(f, {
106268
+ await rm$6(f, {
106312
106269
  recursive: true,
106313
106270
  force: true
106314
106271
  });
@@ -106331,7 +106288,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106331
106288
  valid: false
106332
106289
  };
106333
106290
  if (err.code !== "EINTEGRITY") throw err;
106334
- await rm$5(filepath, {
106291
+ await rm$6(filepath, {
106335
106292
  recursive: true,
106336
106293
  force: true
106337
106294
  });
@@ -106392,7 +106349,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106392
106349
  }
106393
106350
  function cleanTmp(cache, opts) {
106394
106351
  opts.log.silly("verify", "cleaning tmp directory");
106395
- return rm$5(path$10.join(cache, "tmp"), {
106352
+ return rm$6(path$10.join(cache, "tmp"), {
106396
106353
  recursive: true,
106397
106354
  force: true
106398
106355
  });
@@ -106953,14 +106910,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106953
106910
  const { readFile: readFile$6, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
106954
106911
  const { resolve: resolve$8, basename: basename$4, dirname: dirname$7 } = require("path");
106955
106912
  const normalizePackageBin = require_lib$21();
106956
- const readPackage = ({ path: path$49, packageJsonCache }) => packageJsonCache.has(path$49) ? Promise.resolve(packageJsonCache.get(path$49)) : readFile$6(path$49).then((json) => {
106913
+ const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$6(path$48).then((json) => {
106957
106914
  const pkg = normalizePackageBin(JSON.parse(json));
106958
- packageJsonCache.set(path$49, pkg);
106915
+ packageJsonCache.set(path$48, pkg);
106959
106916
  return pkg;
106960
106917
  }).catch(() => null);
106961
106918
  const normalized = Symbol("package data has been normalized");
106962
- const rpj = ({ path: path$50, packageJsonCache }) => readPackage({
106963
- path: path$50,
106919
+ const rpj = ({ path: path$49, packageJsonCache }) => readPackage({
106920
+ path: path$49,
106964
106921
  packageJsonCache
106965
106922
  }).then((pkg) => {
106966
106923
  if (!pkg || pkg[normalized]) return pkg;
@@ -106974,14 +106931,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106974
106931
  pkg[normalized] = true;
106975
106932
  return pkg;
106976
106933
  });
106977
- const pkgContents = async ({ path: path$51, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
106934
+ const pkgContents = async ({ path: path$50, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
106978
106935
  if (!result) result = /* @__PURE__ */ new Set();
106979
106936
  if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
106980
106937
  if (pkg === true) return rpj({
106981
- path: path$51 + "/package.json",
106938
+ path: path$50 + "/package.json",
106982
106939
  packageJsonCache
106983
106940
  }).then((p) => pkgContents({
106984
- path: path$51,
106941
+ path: path$50,
106985
106942
  depth,
106986
106943
  currentDepth,
106987
106944
  pkg: p,
@@ -106990,7 +106947,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106990
106947
  }));
106991
106948
  if (pkg) {
106992
106949
  if (pkg.bin) {
106993
- const dir = dirname$7(path$51);
106950
+ const dir = dirname$7(path$50);
106994
106951
  const scope = basename$4(dir);
106995
106952
  const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
106996
106953
  const binFiles = [];
@@ -107002,21 +106959,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
107002
106959
  }
107003
106960
  }
107004
106961
  if (currentDepth >= depth) {
107005
- result.add(path$51);
106962
+ result.add(path$50);
107006
106963
  return result;
107007
106964
  }
107008
- const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$51, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
107009
- path: path$51,
106965
+ const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$50, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
106966
+ path: path$50,
107010
106967
  packageJsonCache
107011
106968
  }) : null]).catch(() => []);
107012
106969
  if (!dirEntries) return result;
107013
106970
  if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
107014
- result.add(path$51);
106971
+ result.add(path$50);
107015
106972
  return result;
107016
106973
  }
107017
106974
  const recursePromises = [];
107018
106975
  for (const entry of dirEntries) {
107019
- const p = resolve$8(path$51, entry.name);
106976
+ const p = resolve$8(path$50, entry.name);
107020
106977
  if (entry.isDirectory() === false) {
107021
106978
  result.add(p);
107022
106979
  continue;
@@ -107035,7 +106992,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
107035
106992
  }
107036
106993
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
107037
106994
  return pkgContents({
107038
- path: resolve$8(path$51, "node_modules", dep),
106995
+ path: resolve$8(path$50, "node_modules", dep),
107039
106996
  packageJsonCache,
107040
106997
  pkg: true,
107041
106998
  depth,
@@ -107046,8 +107003,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
107046
107003
  if (recursePromises.length) await Promise.all(recursePromises);
107047
107004
  return result;
107048
107005
  };
107049
- module.exports = ({ path: path$52, ...opts }) => pkgContents({
107050
- path: resolve$8(path$52),
107006
+ module.exports = ({ path: path$51, ...opts }) => pkgContents({
107007
+ path: resolve$8(path$51),
107051
107008
  ...opts,
107052
107009
  pkg: true
107053
107010
  }).then((results) => [...results]);
@@ -112483,7 +112440,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
112483
112440
  var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
112484
112441
  const { Walker: IgnoreWalker } = require_lib$10();
112485
112442
  const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
112486
- const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep } = require("path");
112443
+ const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
112487
112444
  const { log } = require_lib$29();
112488
112445
  const defaultRules = Symbol("npm-packlist.rules.default");
112489
112446
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -112513,10 +112470,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112513
112470
  "/archived-packages/**"
112514
112471
  ];
112515
112472
  const strictDefaults = ["/.git"];
112516
- const normalizePath = (path$46) => path$46.split("\\").join("/");
112473
+ const normalizePath = (path$45) => path$45.split("\\").join("/");
112517
112474
  const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
112518
112475
  for (const file of [".npmignore", ".gitignore"]) try {
112519
- const ignoreContent = readFile$5(join$9(root, file), { encoding: "utf8" });
112476
+ const ignoreContent = readFile$5(join$7(root, file), { encoding: "utf8" });
112520
112477
  result.push(ignoreContent);
112521
112478
  break;
112522
112479
  } catch (err) {
@@ -112525,8 +112482,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112525
112482
  }
112526
112483
  if (!rel) return result;
112527
112484
  const firstRel = rel.split(sep, 1)[0];
112528
- const newRoot = join$9(root, firstRel);
112529
- return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
112485
+ const newRoot = join$7(root, firstRel);
112486
+ return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
112530
112487
  };
112531
112488
  var PackWalker = class PackWalker extends IgnoreWalker {
112532
112489
  constructor(tree, opts) {
@@ -112550,14 +112507,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112550
112507
  this.requiredFiles = options.requiredFiles || [];
112551
112508
  const additionalDefaults = [];
112552
112509
  if (options.prefix && options.workspaces) {
112553
- const path$47 = normalizePath(options.path);
112510
+ const path$46 = normalizePath(options.path);
112554
112511
  const prefix = normalizePath(options.prefix);
112555
112512
  const workspaces = options.workspaces.map((ws) => normalizePath(ws));
112556
112513
  // istanbul ignore else - this does nothing unless we need it to
112557
- if (path$47 !== prefix && workspaces.includes(path$47)) {
112514
+ if (path$46 !== prefix && workspaces.includes(path$46)) {
112558
112515
  const relpath = relative(options.prefix, dirname$6(options.path));
112559
112516
  additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
112560
- } else if (path$47 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
112517
+ } else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
112561
112518
  }
112562
112519
  this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
112563
112520
  if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
@@ -112593,7 +112550,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112593
112550
  let ignoreFiles = null;
112594
112551
  if (this.tree.workspaces) {
112595
112552
  const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
112596
- const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
112553
+ const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
112597
112554
  if (workspaceDirs.includes(entryPath)) ignoreFiles = [
112598
112555
  defaultRules,
112599
112556
  "package.json",
@@ -112653,7 +112610,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112653
112610
  if (file.endsWith("/*")) file += "*";
112654
112611
  const inverse = `!${file}`;
112655
112612
  try {
112656
- const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
112613
+ const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
112657
112614
  if (stat.isFile()) {
112658
112615
  strict.unshift(inverse);
112659
112616
  this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
@@ -112688,10 +112645,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112688
112645
  if (!edge || edge.peer || edge.dev) continue;
112689
112646
  const node = this.tree.edgesOut.get(dep).to;
112690
112647
  if (!node) continue;
112691
- const path$48 = node.path;
112648
+ const path$47 = node.path;
112692
112649
  const tree = node.target;
112693
112650
  const walkerOpts = {
112694
- path: path$48,
112651
+ path: path$47,
112695
112652
  isPackage: true,
112696
112653
  ignoreFiles: [],
112697
112654
  seen: this.seen
@@ -112710,7 +112667,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112710
112667
  walker.start();
112711
112668
  });
112712
112669
  const relativeFrom = relative(this.root, walker.path);
112713
- for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
112670
+ for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
112714
112671
  }
112715
112672
  }
112716
112673
  };
@@ -112768,7 +112725,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
112768
112725
  const { resolve: resolve$4 } = require("path");
112769
112726
  let npm_config_node_gyp;
112770
112727
  const makeSpawnArgs = (options) => {
112771
- const { args, binPaths, cmd, env, event, nodeGyp, path: path$45, scriptShell = true, stdio, stdioString } = options;
112728
+ const { args, binPaths, cmd, env, event, nodeGyp, path: path$44, scriptShell = true, stdio, stdioString } = options;
112772
112729
  if (nodeGyp) npm_config_node_gyp = nodeGyp;
112773
112730
  else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
112774
112731
  else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
@@ -112776,17 +112733,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
112776
112733
  cmd,
112777
112734
  args,
112778
112735
  {
112779
- env: setPATH(path$45, binPaths, {
112736
+ env: setPATH(path$44, binPaths, {
112780
112737
  ...process.env,
112781
112738
  ...env,
112782
- npm_package_json: resolve$4(path$45, "package.json"),
112739
+ npm_package_json: resolve$4(path$44, "package.json"),
112783
112740
  npm_lifecycle_event: event,
112784
112741
  npm_lifecycle_script: cmd,
112785
112742
  npm_config_node_gyp
112786
112743
  }),
112787
112744
  stdioString,
112788
112745
  stdio,
112789
- cwd: path$45,
112746
+ cwd: path$44,
112790
112747
  shell: scriptShell
112791
112748
  }
112792
112749
  ];
@@ -142104,7 +142061,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
142104
142061
  //#region ../../node_modules/pacote/lib/fetcher.js
142105
142062
  var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
142106
142063
  const { basename: basename$2, dirname: dirname$4 } = require("node:path");
142107
- const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
142064
+ const { rm: rm$5, mkdir: mkdir$3 } = require("node:fs/promises");
142108
142065
  const PackageJson = require_lib$18();
142109
142066
  const cacache = require_lib$14();
142110
142067
  const fsm = require_lib$13();
@@ -142281,7 +142238,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
142281
142238
  return getContents({
142282
142239
  path,
142283
142240
  depth: 1
142284
- }).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
142241
+ }).then((contents) => Promise.all(contents.map((entry) => rm$5(entry, {
142285
142242
  recursive: true,
142286
142243
  force: true
142287
142244
  }))));
@@ -150078,9 +150035,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
150078
150035
  * @param {string} path
150079
150036
  * @return {boolean|string}
150080
150037
  */
150081
- function lookup(path$44) {
150082
- if (!path$44 || typeof path$44 !== "string") return false;
150083
- var extension = extname("x." + path$44).toLowerCase().substr(1);
150038
+ function lookup(path$43) {
150039
+ if (!path$43 || typeof path$43 !== "string") return false;
150040
+ var extension = extname("x." + path$43).toLowerCase().substr(1);
150084
150041
  if (!extension) return false;
150085
150042
  return exports.types[extension] || false;
150086
150043
  }
@@ -151284,7 +151241,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151284
151241
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151285
151242
  } else throw new Error(`Offline and no local fallback version available for ${packageName}`);
151286
151243
  } else try {
151287
- const cachePath = (0, node_path.join)(ctx.userDataPath, "cache", "pacote");
151244
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151288
151245
  let packumentPromise = packumentRequests.get(packageName);
151289
151246
  if (!packumentPromise) {
151290
151247
  packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
@@ -151315,7 +151272,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151315
151272
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151316
151273
  } else throw error;
151317
151274
  }
151318
- const cachePath = (0, node_path.join)(ctx.userDataPath, "cache", "pacote");
151275
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151319
151276
  const packageDir = (0, node_path.join)(baseDir, resolvedVersion);
151320
151277
  const checkStart = Date.now();
151321
151278
  const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
@@ -151392,7 +151349,7 @@ async function runPnpm(cwd, options) {
151392
151349
  ...process.env,
151393
151350
  NODE_ENV: "production",
151394
151351
  PATH: nodePath ? `${(0, node_path.dirname)(nodePath)}${node_path.delimiter}${process.env.PATH}` : process.env.PATH,
151395
- PNPM_HOME: (0, node_path.join)(ctx.userDataPath, "pnpm"),
151352
+ PNPM_HOME: ctx.getPnpmPath(),
151396
151353
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
151397
151354
  ...extraEnv
151398
151355
  }
@@ -151627,7 +151584,7 @@ async function resolveEntryPoint(packageDir, packageName) {
151627
151584
  }
151628
151585
  //#endregion
151629
151586
  //#region ../../packages/core-node/src/handler-func.ts
151630
- const { join: join$7 } = node_path.default;
151587
+ const { join: join$5 } = node_path.default;
151631
151588
  //#endregion
151632
151589
  //#region ../../packages/core-node/src/handlers/plugins.ts
151633
151590
  const localPluginsMap = /* @__PURE__ */ new Map();