@pipelab/plugin-discord 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
@@ -2104,7 +2104,7 @@ const settingsMigratorInternal = createMigrator();
2104
2104
  const defaultAppSettings = settingsMigratorInternal.createDefault({
2105
2105
  locale: "en-US",
2106
2106
  theme: "light",
2107
- version: "8.0.0",
2107
+ version: "7.0.0",
2108
2108
  autosave: true,
2109
2109
  agents: [],
2110
2110
  tours: {
@@ -2117,11 +2117,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2117
2117
  completed: false
2118
2118
  }
2119
2119
  },
2120
- buildHistory: { retentionPolicy: {
2121
- enabled: false,
2122
- maxEntries: 50,
2123
- maxAge: 30
2124
- } },
2125
2120
  plugins: DEFAULT_PLUGINS,
2126
2121
  isInternalMigrationBannerClosed: false
2127
2122
  });
@@ -2178,18 +2173,13 @@ settingsMigratorInternal.createMigrations({
2178
2173
  return {
2179
2174
  ...rest,
2180
2175
  agents: [],
2181
- buildHistory: { retentionPolicy: {
2182
- enabled: false,
2183
- maxEntries: 50,
2184
- maxAge: 30
2185
- } },
2186
2176
  plugins: DEFAULT_PLUGINS,
2187
2177
  isInternalMigrationBannerClosed: false
2188
2178
  };
2189
2179
  }
2190
2180
  }),
2191
2181
  createMigration({
2192
- version: "8.0.0",
2182
+ version: "7.0.0",
2193
2183
  up: finalVersion
2194
2184
  })
2195
2185
  ]
@@ -2208,7 +2198,7 @@ connectionsMigratorInternal.createMigrations({
2208
2198
  });
2209
2199
  const fileRepoMigratorInternal = createMigrator();
2210
2200
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2211
- version: "2.0.0",
2201
+ version: "3.0.0",
2212
2202
  projects: [{
2213
2203
  id: "main",
2214
2204
  name: "Default project",
@@ -2218,30 +2208,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2218
2208
  });
2219
2209
  fileRepoMigratorInternal.createMigrations({
2220
2210
  defaultValue: defaultFileRepo,
2221
- migrations: [createMigration({
2222
- version: "1.0.0",
2223
- up: (state) => {
2224
- const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2211
+ migrations: [
2212
+ createMigration({
2213
+ version: "1.0.0",
2214
+ up: (state) => {
2215
+ const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2216
+ return {
2217
+ ...file,
2218
+ id,
2219
+ project: "main"
2220
+ };
2221
+ });
2225
2222
  return {
2226
- ...file,
2227
- id,
2228
- project: "main"
2223
+ ...state,
2224
+ projects: [{
2225
+ id: "main",
2226
+ name: "Default project",
2227
+ description: "The initial default project"
2228
+ }],
2229
+ pipelines
2229
2230
  };
2230
- });
2231
- return {
2232
- ...state,
2233
- projects: [{
2234
- id: "main",
2235
- name: "Default project",
2236
- description: "The initial default project"
2237
- }],
2238
- pipelines
2239
- };
2240
- }
2241
- }), createMigration({
2242
- version: "2.0.0",
2243
- up: finalVersion
2244
- })]
2231
+ }
2232
+ }),
2233
+ createMigration({
2234
+ version: "2.0.0",
2235
+ up: (state) => {
2236
+ return { ...state };
2237
+ }
2238
+ }),
2239
+ createMigration({
2240
+ version: "3.0.0",
2241
+ up: finalVersion
2242
+ })
2243
+ ]
2245
2244
  });
2246
2245
  const savedFileMigratorInternal = createMigrator();
2247
2246
  const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
@@ -2402,14 +2401,19 @@ object({
2402
2401
  version: literal("1.0.0"),
2403
2402
  data: optional(record(string(), SaveLocationValidator), {})
2404
2403
  });
2405
- const FileRepoProjectValidatorV2$1 = object({
2404
+ const FileRepoProjectValidatorV2 = object({
2406
2405
  id: string(),
2407
2406
  name: string(),
2408
2407
  description: string()
2409
2408
  });
2410
2409
  object({
2411
2410
  version: literal("2.0.0"),
2412
- projects: array(FileRepoProjectValidatorV2$1),
2411
+ projects: array(FileRepoProjectValidatorV2),
2412
+ pipelines: optional(array(SaveLocationValidator), [])
2413
+ });
2414
+ object({
2415
+ version: literal("3.0.0"),
2416
+ projects: array(FileRepoProjectValidatorV2),
2413
2417
  pipelines: optional(array(SaveLocationValidator), [])
2414
2418
  });
2415
2419
  object({
@@ -2518,44 +2522,6 @@ object({
2518
2522
  name: string(),
2519
2523
  url: string()
2520
2524
  })),
2521
- buildHistory: object({ retentionPolicy: object({
2522
- enabled: boolean(),
2523
- maxEntries: number(),
2524
- maxAge: number()
2525
- }) })
2526
- });
2527
- object({
2528
- theme: union([literal("light"), literal("dark")]),
2529
- version: literal("8.0.0"),
2530
- locale: union([
2531
- literal("en-US"),
2532
- literal("fr-FR"),
2533
- literal("pt-BR"),
2534
- literal("zh-CN"),
2535
- literal("es-ES"),
2536
- literal("de-DE")
2537
- ]),
2538
- tours: object({
2539
- dashboard: object({
2540
- step: number(),
2541
- completed: boolean()
2542
- }),
2543
- editor: object({
2544
- step: number(),
2545
- completed: boolean()
2546
- })
2547
- }),
2548
- autosave: boolean(),
2549
- agents: array(object({
2550
- id: string(),
2551
- name: string(),
2552
- url: string()
2553
- })),
2554
- buildHistory: object({ retentionPolicy: object({
2555
- enabled: boolean(),
2556
- maxEntries: number(),
2557
- maxAge: number()
2558
- }) }),
2559
2525
  plugins: array(object({
2560
2526
  name: string(),
2561
2527
  enabled: boolean(),
@@ -45419,20 +45385,6 @@ var WebSocketError = class extends Error {
45419
45385
  const isWebSocketRequestMessage = (message) => {
45420
45386
  return message && typeof message.channel === "string" && message.requestId;
45421
45387
  };
45422
- object({
45423
- version: literal("1.0.0"),
45424
- data: optional(record(string(), SaveLocationValidator), {})
45425
- });
45426
- const FileRepoProjectValidatorV2 = object({
45427
- id: string(),
45428
- name: string(),
45429
- description: string()
45430
- });
45431
- object({
45432
- version: literal("2.0.0"),
45433
- projects: array(FileRepoProjectValidatorV2),
45434
- pipelines: optional(array(SaveLocationValidator), [])
45435
- });
45436
45388
  //#endregion
45437
45389
  //#region ../../packages/constants/src/index.ts
45438
45390
  const websocketPort = 33753;
@@ -45455,6 +45407,11 @@ function findProjectRoot(startDir) {
45455
45407
  return null;
45456
45408
  }
45457
45409
  const projectRoot = findProjectRoot(_dirname);
45410
+ const CacheFolder = {
45411
+ Actions: "actions",
45412
+ Pipelines: "pipelines",
45413
+ Pacote: "pacote"
45414
+ };
45458
45415
  //#endregion
45459
45416
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45460
45417
  var require_constants$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
@@ -49974,7 +49931,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
49974
49931
  var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
49975
49932
  module.exports = isexe;
49976
49933
  isexe.sync = sync;
49977
- var fs$38 = require("fs");
49934
+ var fs$37 = require("fs");
49978
49935
  function checkPathExt(path, options) {
49979
49936
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
49980
49937
  if (!pathext) return true;
@@ -49991,12 +49948,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
49991
49948
  return checkPathExt(path, options);
49992
49949
  }
49993
49950
  function isexe(path, options, cb) {
49994
- fs$38.stat(path, function(er, stat) {
49951
+ fs$37.stat(path, function(er, stat) {
49995
49952
  cb(er, er ? false : checkStat(stat, path, options));
49996
49953
  });
49997
49954
  }
49998
49955
  function sync(path, options) {
49999
- return checkStat(fs$38.statSync(path), path, options);
49956
+ return checkStat(fs$37.statSync(path), path, options);
50000
49957
  }
50001
49958
  }));
50002
49959
  //#endregion
@@ -50004,14 +49961,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50004
49961
  var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50005
49962
  module.exports = isexe;
50006
49963
  isexe.sync = sync;
50007
- var fs$37 = require("fs");
49964
+ var fs$36 = require("fs");
50008
49965
  function isexe(path, options, cb) {
50009
- fs$37.stat(path, function(er, stat) {
49966
+ fs$36.stat(path, function(er, stat) {
50010
49967
  cb(er, er ? false : checkStat(stat, options));
50011
49968
  });
50012
49969
  }
50013
49970
  function sync(path, options) {
50014
- return checkStat(fs$37.statSync(path), options);
49971
+ return checkStat(fs$36.statSync(path), options);
50015
49972
  }
50016
49973
  function checkStat(stat, options) {
50017
49974
  return stat.isFile() && checkMode(stat, options);
@@ -50075,7 +50032,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
50075
50032
  //#region ../../node_modules/which/which.js
50076
50033
  var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50077
50034
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
50078
- const path$43 = require("path");
50035
+ const path$42 = require("path");
50079
50036
  const COLON = isWindows ? ";" : ":";
50080
50037
  const isexe = require_isexe();
50081
50038
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -50105,7 +50062,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50105
50062
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
50106
50063
  const ppRaw = pathEnv[i];
50107
50064
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
50108
- const pCmd = path$43.join(pathPart, cmd);
50065
+ const pCmd = path$42.join(pathPart, cmd);
50109
50066
  resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
50110
50067
  });
50111
50068
  const subStep = (p, i, ii) => new Promise((resolve, reject) => {
@@ -50126,7 +50083,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50126
50083
  for (let i = 0; i < pathEnv.length; i++) {
50127
50084
  const ppRaw = pathEnv[i];
50128
50085
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
50129
- const pCmd = path$43.join(pathPart, cmd);
50086
+ const pCmd = path$42.join(pathPart, cmd);
50130
50087
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
50131
50088
  for (let j = 0; j < pathExt.length; j++) {
50132
50089
  const cur = p + pathExt[j];
@@ -50157,7 +50114,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
50157
50114
  //#endregion
50158
50115
  //#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
50159
50116
  var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50160
- const path$42 = require("path");
50117
+ const path$41 = require("path");
50161
50118
  const which = require_which$1();
50162
50119
  const getPathKey = require_path_key();
50163
50120
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -50172,12 +50129,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
50172
50129
  try {
50173
50130
  resolved = which.sync(parsed.command, {
50174
50131
  path: env[getPathKey({ env })],
50175
- pathExt: withoutPathExt ? path$42.delimiter : void 0
50132
+ pathExt: withoutPathExt ? path$41.delimiter : void 0
50176
50133
  });
50177
50134
  } catch (e) {} finally {
50178
50135
  if (shouldSwitchCwd) process.chdir(cwd);
50179
50136
  }
50180
- if (resolved) resolved = path$42.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
50137
+ if (resolved) resolved = path$41.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
50181
50138
  return resolved;
50182
50139
  }
50183
50140
  function resolveCommand(parsed) {
@@ -50226,16 +50183,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
50226
50183
  //#endregion
50227
50184
  //#region ../../node_modules/cross-spawn/lib/util/readShebang.js
50228
50185
  var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50229
- const fs$36 = require("fs");
50186
+ const fs$35 = require("fs");
50230
50187
  const shebangCommand = require_shebang_command();
50231
50188
  function readShebang(command) {
50232
50189
  const size = 150;
50233
50190
  const buffer = Buffer.alloc(size);
50234
50191
  let fd;
50235
50192
  try {
50236
- fd = fs$36.openSync(command, "r");
50237
- fs$36.readSync(fd, buffer, 0, size, 0);
50238
- fs$36.closeSync(fd);
50193
+ fd = fs$35.openSync(command, "r");
50194
+ fs$35.readSync(fd, buffer, 0, size, 0);
50195
+ fs$35.closeSync(fd);
50239
50196
  } catch (e) {}
50240
50197
  return shebangCommand(buffer.toString());
50241
50198
  }
@@ -50244,7 +50201,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
50244
50201
  //#endregion
50245
50202
  //#region ../../node_modules/cross-spawn/lib/parse.js
50246
50203
  var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
50247
- const path$41 = require("path");
50204
+ const path$40 = require("path");
50248
50205
  const resolveCommand = require_resolveCommand();
50249
50206
  const escape = require_escape$4();
50250
50207
  const readShebang = require_readShebang();
@@ -50267,7 +50224,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
50267
50224
  const needsShell = !isExecutableRegExp.test(commandFile);
50268
50225
  if (parsed.options.forceShell || needsShell) {
50269
50226
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
50270
- parsed.command = path$41.normalize(parsed.command);
50227
+ parsed.command = path$40.normalize(parsed.command);
50271
50228
  parsed.command = escape.command(parsed.command);
50272
50229
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
50273
50230
  parsed.args = [
@@ -56923,10 +56880,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
56923
56880
  if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
56924
56881
  const prefixSize = this.ctime || this.atime ? 130 : 155;
56925
56882
  const split = splitPrefix(this.path || "", prefixSize);
56926
- const path$94 = split[0];
56883
+ const path$93 = split[0];
56927
56884
  const prefix = split[1];
56928
56885
  this.needPax = split[2];
56929
- this.needPax = encString(buf, off, 100, path$94) || this.needPax;
56886
+ this.needPax = encString(buf, off, 100, path$93) || this.needPax;
56930
56887
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
56931
56888
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
56932
56889
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -57029,7 +56986,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57029
56986
  //#region ../../node_modules/tar/lib/pax.js
57030
56987
  var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57031
56988
  const Header = require_header();
57032
- const path$35 = require("path");
56989
+ const path$34 = require("path");
57033
56990
  var Pax = class {
57034
56991
  constructor(obj, global) {
57035
56992
  this.atime = obj.atime || null;
@@ -57057,7 +57014,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
57057
57014
  const buf = Buffer.allocUnsafe(bufLen);
57058
57015
  for (let i = 0; i < 512; i++) buf[i] = 0;
57059
57016
  new Header({
57060
- path: ("PaxHeader/" + path$35.basename(this.path)).slice(0, 99),
57017
+ path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
57061
57018
  mode: this.mode || 420,
57062
57019
  uid: this.uid || null,
57063
57020
  gid: this.gid || null,
@@ -57160,16 +57117,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
57160
57117
  //#region ../../node_modules/tar/lib/strip-absolute-path.js
57161
57118
  var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57162
57119
  const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
57163
- module.exports = (path$93) => {
57120
+ module.exports = (path$92) => {
57164
57121
  let r = "";
57165
- let parsed = parse$3(path$93);
57166
- while (isAbsolute$3(path$93) || parsed.root) {
57167
- const root = path$93.charAt(0) === "/" && path$93.slice(0, 4) !== "//?/" ? "/" : parsed.root;
57168
- path$93 = path$93.slice(root.length);
57122
+ let parsed = parse$3(path$92);
57123
+ while (isAbsolute$3(path$92) || parsed.root) {
57124
+ const root = path$92.charAt(0) === "/" && path$92.slice(0, 4) !== "//?/" ? "/" : parsed.root;
57125
+ path$92 = path$92.slice(root.length);
57169
57126
  r += root;
57170
- parsed = parse$3(path$93);
57127
+ parsed = parse$3(path$92);
57171
57128
  }
57172
- return [r, path$93];
57129
+ return [r, path$92];
57173
57130
  };
57174
57131
  }));
57175
57132
  //#endregion
@@ -57192,14 +57149,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57192
57149
  const { Minipass } = require_minipass$4();
57193
57150
  const Pax = require_pax();
57194
57151
  const Header = require_header();
57195
- const fs$35 = require("fs");
57196
- const path$34 = require("path");
57152
+ const fs$34 = require("fs");
57153
+ const path$33 = require("path");
57197
57154
  const normPath = require_normalize_windows_path();
57198
57155
  const stripSlash = require_strip_trailing_slashes();
57199
- const prefixPath = (path$90, prefix) => {
57200
- if (!prefix) return normPath(path$90);
57201
- path$90 = normPath(path$90).replace(/^\.(\/|$)/, "");
57202
- return stripSlash(prefix) + "/" + path$90;
57156
+ const prefixPath = (path$89, prefix) => {
57157
+ if (!prefix) return normPath(path$89);
57158
+ path$89 = normPath(path$89).replace(/^\.(\/|$)/, "");
57159
+ return stripSlash(prefix) + "/" + path$89;
57203
57160
  };
57204
57161
  const maxReadSize = 16 * 1024 * 1024;
57205
57162
  const PROCESS = Symbol("process");
@@ -57266,7 +57223,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57266
57223
  this.path = winchars.decode(this.path.replace(/\\/g, "/"));
57267
57224
  p = p.replace(/\\/g, "/");
57268
57225
  }
57269
- this.absolute = normPath(opt.absolute || path$34.resolve(this.cwd, p));
57226
+ this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
57270
57227
  if (this.path === "") this.path = "./";
57271
57228
  if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
57272
57229
  entry: this,
@@ -57280,7 +57237,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57280
57237
  return super.emit(ev, ...data);
57281
57238
  }
57282
57239
  [LSTAT]() {
57283
- fs$35.lstat(this.absolute, (er, stat) => {
57240
+ fs$34.lstat(this.absolute, (er, stat) => {
57284
57241
  if (er) return this.emit("error", er);
57285
57242
  this[ONLSTAT](stat);
57286
57243
  });
@@ -57304,8 +57261,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57304
57261
  [MODE](mode) {
57305
57262
  return modeFix(mode, this.type === "Directory", this.portable);
57306
57263
  }
57307
- [PREFIX](path$91) {
57308
- return prefixPath(path$91, this.prefix);
57264
+ [PREFIX](path$90) {
57265
+ return prefixPath(path$90, this.prefix);
57309
57266
  }
57310
57267
  [HEADER]() {
57311
57268
  if (this.type === "Directory" && this.portable) this.noMtime = true;
@@ -57345,7 +57302,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57345
57302
  this.end();
57346
57303
  }
57347
57304
  [SYMLINK]() {
57348
- fs$35.readlink(this.absolute, (er, linkpath) => {
57305
+ fs$34.readlink(this.absolute, (er, linkpath) => {
57349
57306
  if (er) return this.emit("error", er);
57350
57307
  this[ONREADLINK](linkpath);
57351
57308
  });
@@ -57357,7 +57314,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57357
57314
  }
57358
57315
  [HARDLINK](linkpath) {
57359
57316
  this.type = "Link";
57360
- this.linkpath = normPath(path$34.relative(this.cwd, linkpath));
57317
+ this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
57361
57318
  this.stat.size = 0;
57362
57319
  this[HEADER]();
57363
57320
  this.end();
@@ -57376,7 +57333,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57376
57333
  this[OPENFILE]();
57377
57334
  }
57378
57335
  [OPENFILE]() {
57379
- fs$35.open(this.absolute, "r", (er, fd) => {
57336
+ fs$34.open(this.absolute, "r", (er, fd) => {
57380
57337
  if (er) return this.emit("error", er);
57381
57338
  this[ONOPENFILE](fd);
57382
57339
  });
@@ -57396,13 +57353,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57396
57353
  }
57397
57354
  [READ]() {
57398
57355
  const { fd, buf, offset, length, pos } = this;
57399
- fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
57356
+ fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
57400
57357
  if (er) return this[CLOSE](() => this.emit("error", er));
57401
57358
  this[ONREAD](bytesRead);
57402
57359
  });
57403
57360
  }
57404
57361
  [CLOSE](cb) {
57405
- fs$35.close(this.fd, cb);
57362
+ fs$34.close(this.fd, cb);
57406
57363
  }
57407
57364
  [ONREAD](bytesRead) {
57408
57365
  if (bytesRead <= 0 && this.remain > 0) {
@@ -57458,19 +57415,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57458
57415
  });
57459
57416
  var WriteEntrySync = class extends WriteEntry {
57460
57417
  [LSTAT]() {
57461
- this[ONLSTAT](fs$35.lstatSync(this.absolute));
57418
+ this[ONLSTAT](fs$34.lstatSync(this.absolute));
57462
57419
  }
57463
57420
  [SYMLINK]() {
57464
- this[ONREADLINK](fs$35.readlinkSync(this.absolute));
57421
+ this[ONREADLINK](fs$34.readlinkSync(this.absolute));
57465
57422
  }
57466
57423
  [OPENFILE]() {
57467
- this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
57424
+ this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
57468
57425
  }
57469
57426
  [READ]() {
57470
57427
  let threw = true;
57471
57428
  try {
57472
57429
  const { fd, buf, offset, length, pos } = this;
57473
- const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
57430
+ const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
57474
57431
  this[ONREAD](bytesRead);
57475
57432
  threw = false;
57476
57433
  } finally {
@@ -57483,7 +57440,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57483
57440
  cb();
57484
57441
  }
57485
57442
  [CLOSE](cb) {
57486
- fs$35.closeSync(this.fd);
57443
+ fs$34.closeSync(this.fd);
57487
57444
  cb();
57488
57445
  }
57489
57446
  };
@@ -57556,8 +57513,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
57556
57513
  super.write(this.header.block);
57557
57514
  readEntry.pipe(this);
57558
57515
  }
57559
- [PREFIX](path$92) {
57560
- return prefixPath(path$92, this.prefix);
57516
+ [PREFIX](path$91) {
57517
+ return prefixPath(path$91, this.prefix);
57561
57518
  }
57562
57519
  [MODE](mode) {
57563
57520
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -57841,8 +57798,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
57841
57798
  //#region ../../node_modules/tar/lib/pack.js
57842
57799
  var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
57843
57800
  var PackJob = class {
57844
- constructor(path$86, absolute) {
57845
- this.path = path$86 || "./";
57801
+ constructor(path$85, absolute) {
57802
+ this.path = path$85 || "./";
57846
57803
  this.absolute = absolute;
57847
57804
  this.entry = null;
57848
57805
  this.stat = null;
@@ -57880,8 +57837,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57880
57837
  const WRITEENTRYCLASS = Symbol("writeEntryClass");
57881
57838
  const WRITE = Symbol("write");
57882
57839
  const ONDRAIN = Symbol("ondrain");
57883
- const fs$34 = require("fs");
57884
- const path$33 = require("path");
57840
+ const fs$33 = require("fs");
57841
+ const path$32 = require("path");
57885
57842
  const warner = require_warn_mixin();
57886
57843
  const normPath = require_normalize_windows_path();
57887
57844
  const Pack = warner(class Pack extends Minipass {
@@ -57933,24 +57890,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57933
57890
  [WRITE](chunk) {
57934
57891
  return super.write(chunk);
57935
57892
  }
57936
- add(path$87) {
57937
- this.write(path$87);
57893
+ add(path$86) {
57894
+ this.write(path$86);
57938
57895
  return this;
57939
57896
  }
57940
- end(path$88) {
57941
- if (path$88) this.write(path$88);
57897
+ end(path$87) {
57898
+ if (path$87) this.write(path$87);
57942
57899
  this[ENDED] = true;
57943
57900
  this[PROCESS]();
57944
57901
  return this;
57945
57902
  }
57946
- write(path$89) {
57903
+ write(path$88) {
57947
57904
  if (this[ENDED]) throw new Error("write after end");
57948
- if (path$89 instanceof ReadEntry) this[ADDTARENTRY](path$89);
57949
- else this[ADDFSENTRY](path$89);
57905
+ if (path$88 instanceof ReadEntry) this[ADDTARENTRY](path$88);
57906
+ else this[ADDFSENTRY](path$88);
57950
57907
  return this.flowing;
57951
57908
  }
57952
57909
  [ADDTARENTRY](p) {
57953
- const absolute = normPath(path$33.resolve(this.cwd, p.path));
57910
+ const absolute = normPath(path$32.resolve(this.cwd, p.path));
57954
57911
  if (!this.filter(p.path, p)) p.resume();
57955
57912
  else {
57956
57913
  const job = new PackJob(p.path, absolute, false);
@@ -57962,14 +57919,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57962
57919
  this[PROCESS]();
57963
57920
  }
57964
57921
  [ADDFSENTRY](p) {
57965
- const absolute = normPath(path$33.resolve(this.cwd, p));
57922
+ const absolute = normPath(path$32.resolve(this.cwd, p));
57966
57923
  this[QUEUE].push(new PackJob(p, absolute));
57967
57924
  this[PROCESS]();
57968
57925
  }
57969
57926
  [STAT](job) {
57970
57927
  job.pending = true;
57971
57928
  this[JOBS] += 1;
57972
- fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
57929
+ fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
57973
57930
  job.pending = false;
57974
57931
  this[JOBS] -= 1;
57975
57932
  if (er) this.emit("error", er);
@@ -57985,7 +57942,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
57985
57942
  [READDIR](job) {
57986
57943
  job.pending = true;
57987
57944
  this[JOBS] += 1;
57988
- fs$34.readdir(job.absolute, (er, entries) => {
57945
+ fs$33.readdir(job.absolute, (er, entries) => {
57989
57946
  job.pending = false;
57990
57947
  this[JOBS] -= 1;
57991
57948
  if (er) return this.emit("error", er);
@@ -58103,10 +58060,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
58103
58060
  resume() {}
58104
58061
  [STAT](job) {
58105
58062
  const stat = this.follow ? "statSync" : "lstatSync";
58106
- this[ONSTAT](job, fs$34[stat](job.absolute));
58063
+ this[ONSTAT](job, fs$33[stat](job.absolute));
58107
58064
  }
58108
58065
  [READDIR](job, stat) {
58109
- this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
58066
+ this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
58110
58067
  }
58111
58068
  [PIPE](job) {
58112
58069
  const source = job.entry;
@@ -58562,8 +58519,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
58562
58519
  var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
58563
58520
  const MiniPass = require_minipass$2();
58564
58521
  const EE$11 = require("events").EventEmitter;
58565
- const fs$33 = require("fs");
58566
- let writev = fs$33.writev;
58522
+ const fs$32 = require("fs");
58523
+ let writev = fs$32.writev;
58567
58524
  /* istanbul ignore next */
58568
58525
  if (!writev) {
58569
58526
  const binding = process.binding("fs");
@@ -58634,7 +58591,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58634
58591
  throw new TypeError("this is a readable stream");
58635
58592
  }
58636
58593
  [_open]() {
58637
- fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
58594
+ fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
58638
58595
  }
58639
58596
  [_onopen](er, fd) {
58640
58597
  if (er) this[_onerror](er);
@@ -58653,7 +58610,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58653
58610
  const buf = this[_makeBuf]();
58654
58611
  /* istanbul ignore if */
58655
58612
  if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
58656
- fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
58613
+ fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
58657
58614
  }
58658
58615
  }
58659
58616
  [_onread](er, br, buf) {
@@ -58665,7 +58622,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58665
58622
  if (this[_autoClose] && typeof this[_fd] === "number") {
58666
58623
  const fd = this[_fd];
58667
58624
  this[_fd] = null;
58668
- fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58625
+ fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58669
58626
  }
58670
58627
  }
58671
58628
  [_onerror](er) {
@@ -58703,7 +58660,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58703
58660
  [_open]() {
58704
58661
  let threw = true;
58705
58662
  try {
58706
- this[_onopen](null, fs$33.openSync(this[_path], "r"));
58663
+ this[_onopen](null, fs$32.openSync(this[_path], "r"));
58707
58664
  threw = false;
58708
58665
  } finally {
58709
58666
  if (threw) this[_close]();
@@ -58717,7 +58674,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58717
58674
  do {
58718
58675
  const buf = this[_makeBuf]();
58719
58676
  /* istanbul ignore next */
58720
- const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
58677
+ const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
58721
58678
  if (!this[_handleChunk](br, buf)) break;
58722
58679
  } while (true);
58723
58680
  this[_reading] = false;
@@ -58731,7 +58688,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58731
58688
  if (this[_autoClose] && typeof this[_fd] === "number") {
58732
58689
  const fd = this[_fd];
58733
58690
  this[_fd] = null;
58734
- fs$33.closeSync(fd);
58691
+ fs$32.closeSync(fd);
58735
58692
  this.emit("close");
58736
58693
  }
58737
58694
  }
@@ -58776,7 +58733,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58776
58733
  this.emit("error", er);
58777
58734
  }
58778
58735
  [_open]() {
58779
- fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
58736
+ fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
58780
58737
  }
58781
58738
  [_onopen](er, fd) {
58782
58739
  if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
@@ -58811,7 +58768,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58811
58768
  return true;
58812
58769
  }
58813
58770
  [_write](buf) {
58814
- fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
58771
+ fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
58815
58772
  }
58816
58773
  [_onwrite](er, bw) {
58817
58774
  if (er) this[_onerror](er);
@@ -58845,7 +58802,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58845
58802
  if (this[_autoClose] && typeof this[_fd] === "number") {
58846
58803
  const fd = this[_fd];
58847
58804
  this[_fd] = null;
58848
- fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58805
+ fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
58849
58806
  }
58850
58807
  }
58851
58808
  };
@@ -58853,28 +58810,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
58853
58810
  [_open]() {
58854
58811
  let fd;
58855
58812
  if (this[_defaultFlag] && this[_flags] === "r+") try {
58856
- fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
58813
+ fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
58857
58814
  } catch (er) {
58858
58815
  if (er.code === "ENOENT") {
58859
58816
  this[_flags] = "w";
58860
58817
  return this[_open]();
58861
58818
  } else throw er;
58862
58819
  }
58863
- else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
58820
+ else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
58864
58821
  this[_onopen](null, fd);
58865
58822
  }
58866
58823
  [_close]() {
58867
58824
  if (this[_autoClose] && typeof this[_fd] === "number") {
58868
58825
  const fd = this[_fd];
58869
58826
  this[_fd] = null;
58870
- fs$33.closeSync(fd);
58827
+ fs$32.closeSync(fd);
58871
58828
  this.emit("close");
58872
58829
  }
58873
58830
  }
58874
58831
  [_write](buf) {
58875
58832
  let threw = true;
58876
58833
  try {
58877
- this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
58834
+ this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
58878
58835
  threw = false;
58879
58836
  } finally {
58880
58837
  if (threw) try {
@@ -59239,9 +59196,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
59239
59196
  var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59240
59197
  const hlo = require_high_level_opt();
59241
59198
  const Parser = require_parse$4();
59242
- const fs$32 = require("fs");
59199
+ const fs$31 = require("fs");
59243
59200
  const fsm = require_fs_minipass();
59244
- const path$32 = require("path");
59201
+ const path$31 = require("path");
59245
59202
  const stripSlash = require_strip_trailing_slashes();
59246
59203
  module.exports = (opt_, files, cb) => {
59247
59204
  if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
@@ -59267,8 +59224,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59267
59224
  const map = new Map(files.map((f) => [stripSlash(f), true]));
59268
59225
  const filter = opt.filter;
59269
59226
  const mapHas = (file, r) => {
59270
- const root = r || path$32.parse(file).root || ".";
59271
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$32.dirname(file), root);
59227
+ const root = r || path$31.parse(file).root || ".";
59228
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
59272
59229
  map.set(file, ret);
59273
59230
  return ret;
59274
59231
  };
@@ -59280,15 +59237,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59280
59237
  let threw = true;
59281
59238
  let fd;
59282
59239
  try {
59283
- const stat = fs$32.statSync(file);
59240
+ const stat = fs$31.statSync(file);
59284
59241
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
59285
- if (stat.size < readSize) p.end(fs$32.readFileSync(file));
59242
+ if (stat.size < readSize) p.end(fs$31.readFileSync(file));
59286
59243
  else {
59287
59244
  let pos = 0;
59288
59245
  const buf = Buffer.allocUnsafe(readSize);
59289
- fd = fs$32.openSync(file, "r");
59246
+ fd = fs$31.openSync(file, "r");
59290
59247
  while (pos < stat.size) {
59291
- const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
59248
+ const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
59292
59249
  pos += bytesRead;
59293
59250
  p.write(buf.slice(0, bytesRead));
59294
59251
  }
@@ -59297,7 +59254,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59297
59254
  threw = false;
59298
59255
  } finally {
59299
59256
  if (threw && fd) try {
59300
- fs$32.closeSync(fd);
59257
+ fs$31.closeSync(fd);
59301
59258
  } catch (er) {}
59302
59259
  }
59303
59260
  };
@@ -59308,7 +59265,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
59308
59265
  const p = new Promise((resolve, reject) => {
59309
59266
  parse.on("error", reject);
59310
59267
  parse.on("end", resolve);
59311
- fs$32.stat(file, (er, stat) => {
59268
+ fs$31.stat(file, (er, stat) => {
59312
59269
  if (er) reject(er);
59313
59270
  else {
59314
59271
  const stream = new fsm.ReadStream(file, {
@@ -59331,7 +59288,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59331
59288
  const Pack = require_pack$1();
59332
59289
  const fsm = require_fs_minipass();
59333
59290
  const t = require_list();
59334
- const path$31 = require("path");
59291
+ const path$30 = require("path");
59335
59292
  module.exports = (opt_, files, cb) => {
59336
59293
  if (typeof files === "function") cb = files;
59337
59294
  if (Array.isArray(opt_)) files = opt_, opt_ = {};
@@ -59363,7 +59320,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59363
59320
  const addFilesSync = (p, files) => {
59364
59321
  files.forEach((file) => {
59365
59322
  if (file.charAt(0) === "@") t({
59366
- file: path$31.resolve(p.cwd, file.slice(1)),
59323
+ file: path$30.resolve(p.cwd, file.slice(1)),
59367
59324
  sync: true,
59368
59325
  noResume: true,
59369
59326
  onentry: (entry) => p.add(entry)
@@ -59376,7 +59333,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59376
59333
  while (files.length) {
59377
59334
  const file = files.shift();
59378
59335
  if (file.charAt(0) === "@") return t({
59379
- file: path$31.resolve(p.cwd, file.slice(1)),
59336
+ file: path$30.resolve(p.cwd, file.slice(1)),
59380
59337
  noResume: true,
59381
59338
  onentry: (entry) => p.add(entry)
59382
59339
  }).then((_) => addFilesAsync(p, files));
@@ -59400,10 +59357,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59400
59357
  var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59401
59358
  const hlo = require_high_level_opt();
59402
59359
  const Pack = require_pack$1();
59403
- const fs$31 = require("fs");
59360
+ const fs$30 = require("fs");
59404
59361
  const fsm = require_fs_minipass();
59405
59362
  const t = require_list();
59406
- const path$30 = require("path");
59363
+ const path$29 = require("path");
59407
59364
  const Header = require_header();
59408
59365
  module.exports = (opt_, files, cb) => {
59409
59366
  const opt = hlo(opt_);
@@ -59420,16 +59377,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59420
59377
  let position;
59421
59378
  try {
59422
59379
  try {
59423
- fd = fs$31.openSync(opt.file, "r+");
59380
+ fd = fs$30.openSync(opt.file, "r+");
59424
59381
  } catch (er) {
59425
- if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
59382
+ if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
59426
59383
  else throw er;
59427
59384
  }
59428
- const st = fs$31.fstatSync(fd);
59385
+ const st = fs$30.fstatSync(fd);
59429
59386
  const headBuf = Buffer.alloc(512);
59430
59387
  POSITION: for (position = 0; position < st.size; position += 512) {
59431
59388
  for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
59432
- bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
59389
+ bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
59433
59390
  if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
59434
59391
  if (!bytes) break POSITION;
59435
59392
  }
@@ -59444,7 +59401,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59444
59401
  streamSync(opt, p, position, fd, files);
59445
59402
  } finally {
59446
59403
  if (threw) try {
59447
- fs$31.closeSync(fd);
59404
+ fs$30.closeSync(fd);
59448
59405
  } catch (er) {}
59449
59406
  }
59450
59407
  };
@@ -59461,7 +59418,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59461
59418
  const p = new Pack(opt);
59462
59419
  const getPos = (fd, size, cb_) => {
59463
59420
  const cb = (er, pos) => {
59464
- if (er) fs$31.close(fd, (_) => cb_(er));
59421
+ if (er) fs$30.close(fd, (_) => cb_(er));
59465
59422
  else cb_(null, pos);
59466
59423
  };
59467
59424
  let position = 0;
@@ -59471,7 +59428,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59471
59428
  const onread = (er, bytes) => {
59472
59429
  if (er) return cb(er);
59473
59430
  bufPos += bytes;
59474
- if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
59431
+ if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
59475
59432
  if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
59476
59433
  if (bufPos < 512) return cb(null, position);
59477
59434
  const h = new Header(headBuf);
@@ -59482,9 +59439,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59482
59439
  if (position >= size) return cb(null, position);
59483
59440
  if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
59484
59441
  bufPos = 0;
59485
- fs$31.read(fd, headBuf, 0, 512, position, onread);
59442
+ fs$30.read(fd, headBuf, 0, 512, position, onread);
59486
59443
  };
59487
- fs$31.read(fd, headBuf, 0, 512, position, onread);
59444
+ fs$30.read(fd, headBuf, 0, 512, position, onread);
59488
59445
  };
59489
59446
  const promise = new Promise((resolve, reject) => {
59490
59447
  p.on("error", reject);
@@ -59492,11 +59449,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59492
59449
  const onopen = (er, fd) => {
59493
59450
  if (er && er.code === "ENOENT" && flag === "r+") {
59494
59451
  flag = "w+";
59495
- return fs$31.open(opt.file, flag, onopen);
59452
+ return fs$30.open(opt.file, flag, onopen);
59496
59453
  }
59497
59454
  if (er) return reject(er);
59498
- fs$31.fstat(fd, (er, st) => {
59499
- if (er) return fs$31.close(fd, () => reject(er));
59455
+ fs$30.fstat(fd, (er, st) => {
59456
+ if (er) return fs$30.close(fd, () => reject(er));
59500
59457
  getPos(fd, st.size, (er, position) => {
59501
59458
  if (er) return reject(er);
59502
59459
  const stream = new fsm.WriteStream(opt.file, {
@@ -59510,14 +59467,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59510
59467
  });
59511
59468
  });
59512
59469
  };
59513
- fs$31.open(opt.file, flag, onopen);
59470
+ fs$30.open(opt.file, flag, onopen);
59514
59471
  });
59515
59472
  return cb ? promise.then(cb, cb) : promise;
59516
59473
  };
59517
59474
  const addFilesSync = (p, files) => {
59518
59475
  files.forEach((file) => {
59519
59476
  if (file.charAt(0) === "@") t({
59520
- file: path$30.resolve(p.cwd, file.slice(1)),
59477
+ file: path$29.resolve(p.cwd, file.slice(1)),
59521
59478
  sync: true,
59522
59479
  noResume: true,
59523
59480
  onentry: (entry) => p.add(entry)
@@ -59530,7 +59487,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
59530
59487
  while (files.length) {
59531
59488
  const file = files.shift();
59532
59489
  if (file.charAt(0) === "@") return t({
59533
- file: path$30.resolve(p.cwd, file.slice(1)),
59490
+ file: path$29.resolve(p.cwd, file.slice(1)),
59534
59491
  noResume: true,
59535
59492
  onentry: (entry) => p.add(entry)
59536
59493
  }).then((_) => addFilesAsync(p, files));
@@ -59563,32 +59520,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59563
59520
  //#region ../../node_modules/mkdirp/lib/opts-arg.js
59564
59521
  var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59565
59522
  const { promisify: promisify$1 } = require("util");
59566
- const fs$30 = require("fs");
59523
+ const fs$29 = require("fs");
59567
59524
  const optsArg = (opts) => {
59568
59525
  if (!opts) opts = {
59569
59526
  mode: 511,
59570
- fs: fs$30
59527
+ fs: fs$29
59571
59528
  };
59572
59529
  else if (typeof opts === "object") opts = {
59573
59530
  mode: 511,
59574
- fs: fs$30,
59531
+ fs: fs$29,
59575
59532
  ...opts
59576
59533
  };
59577
59534
  else if (typeof opts === "number") opts = {
59578
59535
  mode: opts,
59579
- fs: fs$30
59536
+ fs: fs$29
59580
59537
  };
59581
59538
  else if (typeof opts === "string") opts = {
59582
59539
  mode: parseInt(opts, 8),
59583
- fs: fs$30
59540
+ fs: fs$29
59584
59541
  };
59585
59542
  else throw new TypeError("invalid options argument");
59586
- opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
59543
+ opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
59587
59544
  opts.mkdirAsync = promisify$1(opts.mkdir);
59588
- opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
59545
+ opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
59589
59546
  opts.statAsync = promisify$1(opts.stat);
59590
- opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
59591
- opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
59547
+ opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
59548
+ opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
59592
59549
  return opts;
59593
59550
  };
59594
59551
  module.exports = optsArg;
@@ -59598,21 +59555,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
59598
59555
  var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59599
59556
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
59600
59557
  const { resolve: resolve$13, parse: parse$2 } = require("path");
59601
- const pathArg = (path$85) => {
59602
- if (/\0/.test(path$85)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59603
- path: path$85,
59558
+ const pathArg = (path$84) => {
59559
+ if (/\0/.test(path$84)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59560
+ path: path$84,
59604
59561
  code: "ERR_INVALID_ARG_VALUE"
59605
59562
  });
59606
- path$85 = resolve$13(path$85);
59563
+ path$84 = resolve$13(path$84);
59607
59564
  if (platform === "win32") {
59608
59565
  const badWinChars = /[*|"<>?:]/;
59609
- const { root } = parse$2(path$85);
59610
- if (badWinChars.test(path$85.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
59611
- path: path$85,
59566
+ const { root } = parse$2(path$84);
59567
+ if (badWinChars.test(path$84.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
59568
+ path: path$84,
59612
59569
  code: "EINVAL"
59613
59570
  });
59614
59571
  }
59615
- return path$85;
59572
+ return path$84;
59616
59573
  };
59617
59574
  module.exports = pathArg;
59618
59575
  }));
@@ -59620,14 +59577,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
59620
59577
  //#region ../../node_modules/mkdirp/lib/find-made.js
59621
59578
  var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59622
59579
  const { dirname: dirname$13 } = require("path");
59623
- const findMade = (opts, parent, path$83 = void 0) => {
59624
- if (path$83 === parent) return Promise.resolve();
59625
- return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$13(parent), parent) : void 0);
59580
+ const findMade = (opts, parent, path$82 = void 0) => {
59581
+ if (path$82 === parent) return Promise.resolve();
59582
+ return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$13(parent), parent) : void 0);
59626
59583
  };
59627
- const findMadeSync = (opts, parent, path$84 = void 0) => {
59628
- if (path$84 === parent) return void 0;
59584
+ const findMadeSync = (opts, parent, path$83 = void 0) => {
59585
+ if (path$83 === parent) return void 0;
59629
59586
  try {
59630
- return opts.statSync(parent).isDirectory() ? path$84 : void 0;
59587
+ return opts.statSync(parent).isDirectory() ? path$83 : void 0;
59631
59588
  } catch (er) {
59632
59589
  return er.code === "ENOENT" ? findMadeSync(opts, dirname$13(parent), parent) : void 0;
59633
59590
  }
@@ -59641,16 +59598,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
59641
59598
  //#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
59642
59599
  var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59643
59600
  const { dirname: dirname$12 } = require("path");
59644
- const mkdirpManual = (path$81, opts, made) => {
59601
+ const mkdirpManual = (path$80, opts, made) => {
59645
59602
  opts.recursive = false;
59646
- const parent = dirname$12(path$81);
59647
- if (parent === path$81) return opts.mkdirAsync(path$81, opts).catch((er) => {
59603
+ const parent = dirname$12(path$80);
59604
+ if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
59648
59605
  if (er.code !== "EISDIR") throw er;
59649
59606
  });
59650
- return opts.mkdirAsync(path$81, opts).then(() => made || path$81, (er) => {
59651
- if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$81, opts, made));
59607
+ return opts.mkdirAsync(path$80, opts).then(() => made || path$80, (er) => {
59608
+ if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$80, opts, made));
59652
59609
  if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
59653
- return opts.statAsync(path$81).then((st) => {
59610
+ return opts.statAsync(path$80).then((st) => {
59654
59611
  if (st.isDirectory()) return made;
59655
59612
  else throw er;
59656
59613
  }, () => {
@@ -59658,23 +59615,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59658
59615
  });
59659
59616
  });
59660
59617
  };
59661
- const mkdirpManualSync = (path$82, opts, made) => {
59662
- const parent = dirname$12(path$82);
59618
+ const mkdirpManualSync = (path$81, opts, made) => {
59619
+ const parent = dirname$12(path$81);
59663
59620
  opts.recursive = false;
59664
- if (parent === path$82) try {
59665
- return opts.mkdirSync(path$82, opts);
59621
+ if (parent === path$81) try {
59622
+ return opts.mkdirSync(path$81, opts);
59666
59623
  } catch (er) {
59667
59624
  if (er.code !== "EISDIR") throw er;
59668
59625
  else return;
59669
59626
  }
59670
59627
  try {
59671
- opts.mkdirSync(path$82, opts);
59672
- return made || path$82;
59628
+ opts.mkdirSync(path$81, opts);
59629
+ return made || path$81;
59673
59630
  } catch (er) {
59674
- if (er.code === "ENOENT") return mkdirpManualSync(path$82, opts, mkdirpManualSync(parent, opts, made));
59631
+ if (er.code === "ENOENT") return mkdirpManualSync(path$81, opts, mkdirpManualSync(parent, opts, made));
59675
59632
  if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
59676
59633
  try {
59677
- if (!opts.statSync(path$82).isDirectory()) throw er;
59634
+ if (!opts.statSync(path$81).isDirectory()) throw er;
59678
59635
  } catch (_) {
59679
59636
  throw er;
59680
59637
  }
@@ -59691,23 +59648,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59691
59648
  const { dirname: dirname$11 } = require("path");
59692
59649
  const { findMade, findMadeSync } = require_find_made();
59693
59650
  const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
59694
- const mkdirpNative = (path$79, opts) => {
59651
+ const mkdirpNative = (path$78, opts) => {
59695
59652
  opts.recursive = true;
59696
- if (dirname$11(path$79) === path$79) return opts.mkdirAsync(path$79, opts);
59697
- return findMade(opts, path$79).then((made) => opts.mkdirAsync(path$79, opts).then(() => made).catch((er) => {
59698
- if (er.code === "ENOENT") return mkdirpManual(path$79, opts);
59653
+ if (dirname$11(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
59654
+ return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
59655
+ if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
59699
59656
  else throw er;
59700
59657
  }));
59701
59658
  };
59702
- const mkdirpNativeSync = (path$80, opts) => {
59659
+ const mkdirpNativeSync = (path$79, opts) => {
59703
59660
  opts.recursive = true;
59704
- if (dirname$11(path$80) === path$80) return opts.mkdirSync(path$80, opts);
59705
- const made = findMadeSync(opts, path$80);
59661
+ if (dirname$11(path$79) === path$79) return opts.mkdirSync(path$79, opts);
59662
+ const made = findMadeSync(opts, path$79);
59706
59663
  try {
59707
- opts.mkdirSync(path$80, opts);
59664
+ opts.mkdirSync(path$79, opts);
59708
59665
  return made;
59709
59666
  } catch (er) {
59710
- if (er.code === "ENOENT") return mkdirpManualSync(path$80, opts);
59667
+ if (er.code === "ENOENT") return mkdirpManualSync(path$79, opts);
59711
59668
  else throw er;
59712
59669
  }
59713
59670
  };
@@ -59719,12 +59676,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
59719
59676
  //#endregion
59720
59677
  //#region ../../node_modules/mkdirp/lib/use-native.js
59721
59678
  var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59722
- const fs$29 = require("fs");
59679
+ const fs$28 = require("fs");
59723
59680
  const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
59724
59681
  const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
59725
59682
  module.exports = {
59726
- useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
59727
- useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
59683
+ useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
59684
+ useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
59728
59685
  };
59729
59686
  }));
59730
59687
  //#endregion
@@ -59755,64 +59712,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59755
59712
  //#endregion
59756
59713
  //#region ../../node_modules/chownr/chownr.js
59757
59714
  var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59758
- const fs$28 = require("fs");
59759
- const path$29 = require("path");
59715
+ const fs$27 = require("fs");
59716
+ const path$28 = require("path");
59760
59717
  /* istanbul ignore next */
59761
- const LCHOWN = fs$28.lchown ? "lchown" : "chown";
59718
+ const LCHOWN = fs$27.lchown ? "lchown" : "chown";
59762
59719
  /* istanbul ignore next */
59763
- const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
59720
+ const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
59764
59721
  /* istanbul ignore next */
59765
- const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
59766
- const lchownSync = (path$71, uid, gid) => {
59722
+ const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
59723
+ const lchownSync = (path$70, uid, gid) => {
59767
59724
  try {
59768
- return fs$28[LCHOWNSYNC](path$71, uid, gid);
59725
+ return fs$27[LCHOWNSYNC](path$70, uid, gid);
59769
59726
  } catch (er) {
59770
59727
  if (er.code !== "ENOENT") throw er;
59771
59728
  }
59772
59729
  };
59773
59730
  /* istanbul ignore next */
59774
- const chownSync = (path$72, uid, gid) => {
59731
+ const chownSync = (path$71, uid, gid) => {
59775
59732
  try {
59776
- return fs$28.chownSync(path$72, uid, gid);
59733
+ return fs$27.chownSync(path$71, uid, gid);
59777
59734
  } catch (er) {
59778
59735
  if (er.code !== "ENOENT") throw er;
59779
59736
  }
59780
59737
  };
59781
59738
  /* istanbul ignore next */
59782
- const handleEISDIR = needEISDIRHandled ? (path$73, uid, gid, cb) => (er) => {
59739
+ const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
59783
59740
  if (!er || er.code !== "EISDIR") cb(er);
59784
- else fs$28.chown(path$73, uid, gid, cb);
59741
+ else fs$27.chown(path$72, uid, gid, cb);
59785
59742
  } : (_, __, ___, cb) => cb;
59786
59743
  /* istanbul ignore next */
59787
- const handleEISDirSync = needEISDIRHandled ? (path$74, uid, gid) => {
59744
+ const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
59788
59745
  try {
59789
- return lchownSync(path$74, uid, gid);
59746
+ return lchownSync(path$73, uid, gid);
59790
59747
  } catch (er) {
59791
59748
  if (er.code !== "EISDIR") throw er;
59792
- chownSync(path$74, uid, gid);
59749
+ chownSync(path$73, uid, gid);
59793
59750
  }
59794
- } : (path$75, uid, gid) => lchownSync(path$75, uid, gid);
59751
+ } : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
59795
59752
  const nodeVersion = process.version;
59796
- let readdir = (path$76, options, cb) => fs$28.readdir(path$76, options, cb);
59797
- let readdirSync = (path$77, options) => fs$28.readdirSync(path$77, options);
59753
+ let readdir = (path$75, options, cb) => fs$27.readdir(path$75, options, cb);
59754
+ let readdirSync = (path$76, options) => fs$27.readdirSync(path$76, options);
59798
59755
  /* istanbul ignore next */
59799
- if (/^v4\./.test(nodeVersion)) readdir = (path$78, options, cb) => fs$28.readdir(path$78, cb);
59756
+ if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$27.readdir(path$77, cb);
59800
59757
  const chown = (cpath, uid, gid, cb) => {
59801
- fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
59758
+ fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
59802
59759
  cb(er && er.code !== "ENOENT" ? er : null);
59803
59760
  }));
59804
59761
  };
59805
59762
  const chownrKid = (p, child, uid, gid, cb) => {
59806
- if (typeof child === "string") return fs$28.lstat(path$29.resolve(p, child), (er, stats) => {
59763
+ if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
59807
59764
  if (er) return cb(er.code !== "ENOENT" ? er : null);
59808
59765
  stats.name = child;
59809
59766
  chownrKid(p, stats, uid, gid, cb);
59810
59767
  });
59811
- if (child.isDirectory()) chownr(path$29.resolve(p, child.name), uid, gid, (er) => {
59768
+ if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
59812
59769
  if (er) return cb(er);
59813
- chown(path$29.resolve(p, child.name), uid, gid, cb);
59770
+ chown(path$28.resolve(p, child.name), uid, gid, cb);
59814
59771
  });
59815
- else chown(path$29.resolve(p, child.name), uid, gid, cb);
59772
+ else chown(path$28.resolve(p, child.name), uid, gid, cb);
59816
59773
  };
59817
59774
  const chownr = (p, uid, gid, cb) => {
59818
59775
  readdir(p, { withFileTypes: true }, (er, children) => {
@@ -59833,15 +59790,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59833
59790
  };
59834
59791
  const chownrKidSync = (p, child, uid, gid) => {
59835
59792
  if (typeof child === "string") try {
59836
- const stats = fs$28.lstatSync(path$29.resolve(p, child));
59793
+ const stats = fs$27.lstatSync(path$28.resolve(p, child));
59837
59794
  stats.name = child;
59838
59795
  child = stats;
59839
59796
  } catch (er) {
59840
59797
  if (er.code === "ENOENT") return;
59841
59798
  else throw er;
59842
59799
  }
59843
- if (child.isDirectory()) chownrSync(path$29.resolve(p, child.name), uid, gid);
59844
- handleEISDirSync(path$29.resolve(p, child.name), uid, gid);
59800
+ if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
59801
+ handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
59845
59802
  };
59846
59803
  const chownrSync = (p, uid, gid) => {
59847
59804
  let children;
@@ -59862,14 +59819,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
59862
59819
  //#region ../../node_modules/tar/lib/mkdir.js
59863
59820
  var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
59864
59821
  const mkdirp = require_mkdirp();
59865
- const fs$27 = require("fs");
59866
- const path$28 = require("path");
59822
+ const fs$26 = require("fs");
59823
+ const path$27 = require("path");
59867
59824
  const chownr = require_chownr();
59868
59825
  const normPath = require_normalize_windows_path();
59869
59826
  var SymlinkError = class extends Error {
59870
- constructor(symlink, path$69) {
59827
+ constructor(symlink, path$68) {
59871
59828
  super("Cannot extract through symbolic link");
59872
- this.path = path$69;
59829
+ this.path = path$68;
59873
59830
  this.symlink = symlink;
59874
59831
  }
59875
59832
  get name() {
@@ -59877,9 +59834,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59877
59834
  }
59878
59835
  };
59879
59836
  var CwdError = class extends Error {
59880
- constructor(path$70, code) {
59881
- super(code + ": Cannot cd into '" + path$70 + "'");
59882
- this.path = path$70;
59837
+ constructor(path$69, code) {
59838
+ super(code + ": Cannot cd into '" + path$69 + "'");
59839
+ this.path = path$69;
59883
59840
  this.code = code;
59884
59841
  }
59885
59842
  get name() {
@@ -59889,7 +59846,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59889
59846
  const cGet = (cache, key) => cache.get(normPath(key));
59890
59847
  const cSet = (cache, key, val) => cache.set(normPath(key), val);
59891
59848
  const checkCwd = (dir, cb) => {
59892
- fs$27.stat(dir, (er, st) => {
59849
+ fs$26.stat(dir, (er, st) => {
59893
59850
  if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
59894
59851
  cb(er);
59895
59852
  });
@@ -59911,31 +59868,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59911
59868
  else {
59912
59869
  cSet(cache, dir, true);
59913
59870
  if (created && doChown) chownr(created, uid, gid, (er) => done(er));
59914
- else if (needChmod) fs$27.chmod(dir, mode, cb);
59871
+ else if (needChmod) fs$26.chmod(dir, mode, cb);
59915
59872
  else cb();
59916
59873
  }
59917
59874
  };
59918
59875
  if (cache && cGet(cache, dir) === true) return done();
59919
59876
  if (dir === cwd) return checkCwd(dir, done);
59920
59877
  if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
59921
- mkdir_(cwd, normPath(path$28.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
59878
+ mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
59922
59879
  };
59923
59880
  const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
59924
59881
  if (!parts.length) return cb(null, created);
59925
59882
  const p = parts.shift();
59926
- const part = normPath(path$28.resolve(base + "/" + p));
59883
+ const part = normPath(path$27.resolve(base + "/" + p));
59927
59884
  if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
59928
- fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59885
+ fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59929
59886
  };
59930
59887
  const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
59931
- if (er) fs$27.lstat(part, (statEr, st) => {
59888
+ if (er) fs$26.lstat(part, (statEr, st) => {
59932
59889
  if (statEr) {
59933
59890
  statEr.path = statEr.path && normPath(statEr.path);
59934
59891
  cb(statEr);
59935
59892
  } else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
59936
- else if (unlink) fs$27.unlink(part, (er) => {
59893
+ else if (unlink) fs$26.unlink(part, (er) => {
59937
59894
  if (er) return cb(er);
59938
- fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59895
+ fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
59939
59896
  });
59940
59897
  else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
59941
59898
  else cb(er);
@@ -59949,7 +59906,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59949
59906
  let ok = false;
59950
59907
  let code = "ENOTDIR";
59951
59908
  try {
59952
- ok = fs$27.statSync(dir).isDirectory();
59909
+ ok = fs$26.statSync(dir).isDirectory();
59953
59910
  } catch (er) {
59954
59911
  code = er.code;
59955
59912
  } finally {
@@ -59971,7 +59928,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59971
59928
  const done = (created) => {
59972
59929
  cSet(cache, dir, true);
59973
59930
  if (created && doChown) chownr.sync(created, uid, gid);
59974
- if (needChmod) fs$27.chmodSync(dir, mode);
59931
+ if (needChmod) fs$26.chmodSync(dir, mode);
59975
59932
  };
59976
59933
  if (cache && cGet(cache, dir) === true) return done();
59977
59934
  if (dir === cwd) {
@@ -59979,23 +59936,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
59979
59936
  return done();
59980
59937
  }
59981
59938
  if (preserve) return done(mkdirp.sync(dir, mode));
59982
- const parts = normPath(path$28.relative(cwd, dir)).split("/");
59939
+ const parts = normPath(path$27.relative(cwd, dir)).split("/");
59983
59940
  let created = null;
59984
59941
  for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
59985
- part = normPath(path$28.resolve(part));
59942
+ part = normPath(path$27.resolve(part));
59986
59943
  if (cGet(cache, part)) continue;
59987
59944
  try {
59988
- fs$27.mkdirSync(part, mode);
59945
+ fs$26.mkdirSync(part, mode);
59989
59946
  created = created || part;
59990
59947
  cSet(cache, part, true);
59991
59948
  } catch (er) {
59992
- const st = fs$27.lstatSync(part);
59949
+ const st = fs$26.lstatSync(part);
59993
59950
  if (st.isDirectory()) {
59994
59951
  cSet(cache, part, true);
59995
59952
  continue;
59996
59953
  } else if (unlink) {
59997
- fs$27.unlinkSync(part);
59998
- fs$27.mkdirSync(part, mode);
59954
+ fs$26.unlinkSync(part);
59955
+ fs$26.mkdirSync(part, mode);
59999
59956
  created = created || part;
60000
59957
  cSet(cache, part, true);
60001
59958
  continue;
@@ -60021,15 +59978,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60021
59978
  const assert$1 = require("assert");
60022
59979
  const normalize = require_normalize_unicode();
60023
59980
  const stripSlashes = require_strip_trailing_slashes();
60024
- const { join: join$20 } = require("path");
59981
+ const { join: join$18 } = require("path");
60025
59982
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
60026
59983
  module.exports = () => {
60027
59984
  const queues = /* @__PURE__ */ new Map();
60028
59985
  const reservations = /* @__PURE__ */ new Map();
60029
- const getDirs = (path$62) => {
60030
- return path$62.split("/").slice(0, -1).reduce((set, path$63) => {
60031
- if (set.length) path$63 = join$20(set[set.length - 1], path$63);
60032
- set.push(path$63 || "/");
59986
+ const getDirs = (path$61) => {
59987
+ return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
59988
+ if (set.length) path$62 = join$18(set[set.length - 1], path$62);
59989
+ set.push(path$62 || "/");
60033
59990
  return set;
60034
59991
  }, []);
60035
59992
  };
@@ -60039,8 +59996,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60039
59996
  /* istanbul ignore if - unpossible */
60040
59997
  if (!res) throw new Error("function does not have any path reservations");
60041
59998
  return {
60042
- paths: res.paths.map((path$64) => queues.get(path$64)),
60043
- dirs: [...res.dirs].map((path$65) => queues.get(path$65))
59999
+ paths: res.paths.map((path$63) => queues.get(path$63)),
60000
+ dirs: [...res.dirs].map((path$64) => queues.get(path$64))
60044
60001
  };
60045
60002
  };
60046
60003
  const check = (fn) => {
@@ -60057,10 +60014,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60057
60014
  if (!running.has(fn)) return false;
60058
60015
  const { paths, dirs } = reservations.get(fn);
60059
60016
  const next = /* @__PURE__ */ new Set();
60060
- paths.forEach((path$66) => {
60061
- const q = queues.get(path$66);
60017
+ paths.forEach((path$65) => {
60018
+ const q = queues.get(path$65);
60062
60019
  assert$1.equal(q[0], fn);
60063
- if (q.length === 1) queues.delete(path$66);
60020
+ if (q.length === 1) queues.delete(path$65);
60064
60021
  else {
60065
60022
  q.shift();
60066
60023
  if (typeof q[0] === "function") next.add(q[0]);
@@ -60082,16 +60039,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
60082
60039
  };
60083
60040
  const reserve = (paths, fn) => {
60084
60041
  paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
60085
- return stripSlashes(join$20(normalize(p))).toLowerCase();
60042
+ return stripSlashes(join$18(normalize(p))).toLowerCase();
60086
60043
  });
60087
- const dirs = new Set(paths.map((path$67) => getDirs(path$67)).reduce((a, b) => a.concat(b)));
60044
+ const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
60088
60045
  reservations.set(fn, {
60089
60046
  dirs,
60090
60047
  paths
60091
60048
  });
60092
- paths.forEach((path$68) => {
60093
- const q = queues.get(path$68);
60094
- if (!q) queues.set(path$68, [fn]);
60049
+ paths.forEach((path$67) => {
60050
+ const q = queues.get(path$67);
60051
+ if (!q) queues.set(path$67, [fn]);
60095
60052
  else q.push(fn);
60096
60053
  });
60097
60054
  dirs.forEach((dir) => {
@@ -60124,9 +60081,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
60124
60081
  var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
60125
60082
  const assert = require("assert");
60126
60083
  const Parser = require_parse$4();
60127
- const fs$26 = require("fs");
60084
+ const fs$25 = require("fs");
60128
60085
  const fsm = require_fs_minipass();
60129
- const path$27 = require("path");
60086
+ const path$26 = require("path");
60130
60087
  const mkdir = require_mkdir();
60131
60088
  const wc = require_winchars();
60132
60089
  const pathReservations = require_path_reservations();
@@ -60164,28 +60121,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60164
60121
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
60165
60122
  const DEFAULT_MAX_DEPTH = 1024;
60166
60123
  /* istanbul ignore next */
60167
- const unlinkFile = (path$58, cb) => {
60168
- if (!isWindows) return fs$26.unlink(path$58, cb);
60169
- const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60170
- fs$26.rename(path$58, name, (er) => {
60124
+ const unlinkFile = (path$57, cb) => {
60125
+ if (!isWindows) return fs$25.unlink(path$57, cb);
60126
+ const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60127
+ fs$25.rename(path$57, name, (er) => {
60171
60128
  if (er) return cb(er);
60172
- fs$26.unlink(name, cb);
60129
+ fs$25.unlink(name, cb);
60173
60130
  });
60174
60131
  };
60175
60132
  /* istanbul ignore next */
60176
- const unlinkFileSync = (path$59) => {
60177
- if (!isWindows) return fs$26.unlinkSync(path$59);
60178
- const name = path$59 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60179
- fs$26.renameSync(path$59, name);
60180
- fs$26.unlinkSync(name);
60133
+ const unlinkFileSync = (path$58) => {
60134
+ if (!isWindows) return fs$25.unlinkSync(path$58);
60135
+ const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
60136
+ fs$25.renameSync(path$58, name);
60137
+ fs$25.unlinkSync(name);
60181
60138
  };
60182
60139
  const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
60183
- const cacheKeyNormalize = (path$60) => stripSlash(normPath(normalize(path$60))).toLowerCase();
60140
+ const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
60184
60141
  const pruneCache = (cache, abs) => {
60185
60142
  abs = cacheKeyNormalize(abs);
60186
- for (const path$61 of cache.keys()) {
60187
- const pnorm = cacheKeyNormalize(path$61);
60188
- if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$61);
60143
+ for (const path$60 of cache.keys()) {
60144
+ const pnorm = cacheKeyNormalize(path$60);
60145
+ if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$60);
60189
60146
  }
60190
60147
  };
60191
60148
  const dropCache = (cache) => {
@@ -60230,7 +60187,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60230
60187
  this.noMtime = !!opt.noMtime;
60231
60188
  this.preservePaths = !!opt.preservePaths;
60232
60189
  this.unlink = !!opt.unlink;
60233
- this.cwd = normPath(path$27.resolve(opt.cwd || process.cwd()));
60190
+ this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
60234
60191
  this.strip = +opt.strip || 0;
60235
60192
  this.processUmask = opt.noChmod ? 0 : process.umask();
60236
60193
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -60288,8 +60245,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60288
60245
  });
60289
60246
  }
60290
60247
  }
60291
- if (path$27.isAbsolute(entry.path)) entry.absolute = normPath(path$27.resolve(entry.path));
60292
- else entry.absolute = normPath(path$27.resolve(this.cwd, entry.path));
60248
+ if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
60249
+ else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
60293
60250
  /* istanbul ignore if - defense in depth */
60294
60251
  if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
60295
60252
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -60302,9 +60259,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60302
60259
  }
60303
60260
  if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
60304
60261
  if (this.win32) {
60305
- const { root: aRoot } = path$27.win32.parse(entry.absolute);
60262
+ const { root: aRoot } = path$26.win32.parse(entry.absolute);
60306
60263
  entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
60307
- const { root: pRoot } = path$27.win32.parse(entry.path);
60264
+ const { root: pRoot } = path$26.win32.parse(entry.path);
60308
60265
  entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
60309
60266
  }
60310
60267
  return true;
@@ -60363,7 +60320,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60363
60320
  autoClose: false
60364
60321
  });
60365
60322
  stream.on("error", (er) => {
60366
- if (stream.fd) fs$26.close(stream.fd, () => {});
60323
+ if (stream.fd) fs$25.close(stream.fd, () => {});
60367
60324
  stream.write = () => true;
60368
60325
  this[ONERROR](er, entry);
60369
60326
  fullyDone();
@@ -60372,12 +60329,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60372
60329
  const done = (er) => {
60373
60330
  if (er) {
60374
60331
  /* istanbul ignore else - we should always have a fd by now */
60375
- if (stream.fd) fs$26.close(stream.fd, () => {});
60332
+ if (stream.fd) fs$25.close(stream.fd, () => {});
60376
60333
  this[ONERROR](er, entry);
60377
60334
  fullyDone();
60378
60335
  return;
60379
60336
  }
60380
- if (--actions === 0) fs$26.close(stream.fd, (er) => {
60337
+ if (--actions === 0) fs$25.close(stream.fd, (er) => {
60381
60338
  if (er) this[ONERROR](er, entry);
60382
60339
  else this[UNPEND]();
60383
60340
  fullyDone();
@@ -60390,13 +60347,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60390
60347
  actions++;
60391
60348
  const atime = entry.atime || /* @__PURE__ */ new Date();
60392
60349
  const mtime = entry.mtime;
60393
- fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
60350
+ fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
60394
60351
  }
60395
60352
  if (this[DOCHOWN](entry)) {
60396
60353
  actions++;
60397
60354
  const uid = this[UID](entry);
60398
60355
  const gid = this[GID](entry);
60399
- fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
60356
+ fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
60400
60357
  }
60401
60358
  done();
60402
60359
  });
@@ -60428,11 +60385,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60428
60385
  };
60429
60386
  if (entry.mtime && !this.noMtime) {
60430
60387
  actions++;
60431
- fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
60388
+ fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
60432
60389
  }
60433
60390
  if (this[DOCHOWN](entry)) {
60434
60391
  actions++;
60435
- fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
60392
+ fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
60436
60393
  }
60437
60394
  done();
60438
60395
  });
@@ -60446,7 +60403,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60446
60403
  this[LINK](entry, entry.linkpath, "symlink", done);
60447
60404
  }
60448
60405
  [HARDLINK](entry, done) {
60449
- const linkpath = normPath(path$27.resolve(this.cwd, entry.linkpath));
60406
+ const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
60450
60407
  this[LINK](entry, linkpath, "link", done);
60451
60408
  }
60452
60409
  [PEND]() {
@@ -60492,7 +60449,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60492
60449
  };
60493
60450
  const start = () => {
60494
60451
  if (entry.absolute !== this.cwd) {
60495
- const parent = normPath(path$27.dirname(entry.absolute));
60452
+ const parent = normPath(path$26.dirname(entry.absolute));
60496
60453
  if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
60497
60454
  if (er) {
60498
60455
  this[ONERROR](er, entry);
@@ -60505,7 +60462,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60505
60462
  afterMakeParent();
60506
60463
  };
60507
60464
  const afterMakeParent = () => {
60508
- fs$26.lstat(entry.absolute, (lstatEr, st) => {
60465
+ fs$25.lstat(entry.absolute, (lstatEr, st) => {
60509
60466
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
60510
60467
  this[SKIP](entry);
60511
60468
  done();
@@ -60517,9 +60474,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60517
60474
  const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
60518
60475
  const afterChmod = (er) => this[MAKEFS](er, entry, done);
60519
60476
  if (!needChmod) return afterChmod();
60520
- return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
60477
+ return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
60521
60478
  }
60522
- if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
60479
+ if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
60523
60480
  }
60524
60481
  if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
60525
60482
  unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
@@ -60545,7 +60502,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60545
60502
  }
60546
60503
  }
60547
60504
  [LINK](entry, linkpath, link, done) {
60548
- fs$26[link](linkpath, entry.absolute, (er) => {
60505
+ fs$25[link](linkpath, entry.absolute, (er) => {
60549
60506
  if (er) this[ONERROR](er, entry);
60550
60507
  else {
60551
60508
  this[UNPEND]();
@@ -60574,23 +60531,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60574
60531
  this[CHECKED_CWD] = true;
60575
60532
  }
60576
60533
  if (entry.absolute !== this.cwd) {
60577
- const parent = normPath(path$27.dirname(entry.absolute));
60534
+ const parent = normPath(path$26.dirname(entry.absolute));
60578
60535
  if (parent !== this.cwd) {
60579
60536
  const mkParent = this[MKDIR](parent, this.dmode);
60580
60537
  if (mkParent) return this[ONERROR](mkParent, entry);
60581
60538
  }
60582
60539
  }
60583
- const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
60540
+ const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
60584
60541
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
60585
60542
  if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
60586
60543
  if (st.isDirectory()) {
60587
60544
  if (entry.type === "Directory") {
60588
60545
  const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
60589
- fs$26.chmodSync(entry.absolute, entry.mode);
60546
+ fs$25.chmodSync(entry.absolute, entry.mode);
60590
60547
  }) : [];
60591
60548
  return this[MAKEFS](er, entry);
60592
60549
  }
60593
- const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
60550
+ const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
60594
60551
  this[MAKEFS](er, entry);
60595
60552
  }
60596
60553
  const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
@@ -60601,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60601
60558
  const oner = (er) => {
60602
60559
  let closeError;
60603
60560
  try {
60604
- fs$26.closeSync(fd);
60561
+ fs$25.closeSync(fd);
60605
60562
  } catch (e) {
60606
60563
  closeError = e;
60607
60564
  }
@@ -60610,7 +60567,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60610
60567
  };
60611
60568
  let fd;
60612
60569
  try {
60613
- fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
60570
+ fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
60614
60571
  } catch (er) {
60615
60572
  return oner(er);
60616
60573
  }
@@ -60621,7 +60578,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60621
60578
  }
60622
60579
  tx.on("data", (chunk) => {
60623
60580
  try {
60624
- fs$26.writeSync(fd, chunk, 0, chunk.length);
60581
+ fs$25.writeSync(fd, chunk, 0, chunk.length);
60625
60582
  } catch (er) {
60626
60583
  oner(er);
60627
60584
  }
@@ -60632,10 +60589,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60632
60589
  const atime = entry.atime || /* @__PURE__ */ new Date();
60633
60590
  const mtime = entry.mtime;
60634
60591
  try {
60635
- fs$26.futimesSync(fd, atime, mtime);
60592
+ fs$25.futimesSync(fd, atime, mtime);
60636
60593
  } catch (futimeser) {
60637
60594
  try {
60638
- fs$26.utimesSync(entry.absolute, atime, mtime);
60595
+ fs$25.utimesSync(entry.absolute, atime, mtime);
60639
60596
  } catch (utimeser) {
60640
60597
  er = futimeser;
60641
60598
  }
@@ -60645,10 +60602,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60645
60602
  const uid = this[UID](entry);
60646
60603
  const gid = this[GID](entry);
60647
60604
  try {
60648
- fs$26.fchownSync(fd, uid, gid);
60605
+ fs$25.fchownSync(fd, uid, gid);
60649
60606
  } catch (fchowner) {
60650
60607
  try {
60651
- fs$26.chownSync(entry.absolute, uid, gid);
60608
+ fs$25.chownSync(entry.absolute, uid, gid);
60652
60609
  } catch (chowner) {
60653
60610
  er = er || fchowner;
60654
60611
  }
@@ -60666,10 +60623,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60666
60623
  return;
60667
60624
  }
60668
60625
  if (entry.mtime && !this.noMtime) try {
60669
- fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
60626
+ fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
60670
60627
  } catch (er) {}
60671
60628
  if (this[DOCHOWN](entry)) try {
60672
- fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
60629
+ fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
60673
60630
  } catch (er) {}
60674
60631
  done();
60675
60632
  entry.resume();
@@ -60694,7 +60651,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60694
60651
  }
60695
60652
  [LINK](entry, linkpath, link, done) {
60696
60653
  try {
60697
- fs$26[link + "Sync"](linkpath, entry.absolute);
60654
+ fs$25[link + "Sync"](linkpath, entry.absolute);
60698
60655
  done();
60699
60656
  entry.resume();
60700
60657
  } catch (er) {
@@ -60710,9 +60667,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
60710
60667
  var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
60711
60668
  const hlo = require_high_level_opt();
60712
60669
  const Unpack = require_unpack();
60713
- const fs$25 = require("fs");
60670
+ const fs$24 = require("fs");
60714
60671
  const fsm = require_fs_minipass();
60715
- const path$26 = require("path");
60672
+ const path$25 = require("path");
60716
60673
  const stripSlash = require_strip_trailing_slashes();
60717
60674
  module.exports = (opt_, files, cb) => {
60718
60675
  if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
@@ -60730,8 +60687,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60730
60687
  const map = new Map(files.map((f) => [stripSlash(f), true]));
60731
60688
  const filter = opt.filter;
60732
60689
  const mapHas = (file, r) => {
60733
- const root = r || path$26.parse(file).root || ".";
60734
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$26.dirname(file), root);
60690
+ const root = r || path$25.parse(file).root || ".";
60691
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
60735
60692
  map.set(file, ret);
60736
60693
  return ret;
60737
60694
  };
@@ -60740,7 +60697,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60740
60697
  const extractFileSync = (opt) => {
60741
60698
  const u = new Unpack.Sync(opt);
60742
60699
  const file = opt.file;
60743
- const stat = fs$25.statSync(file);
60700
+ const stat = fs$24.statSync(file);
60744
60701
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
60745
60702
  new fsm.ReadStreamSync(file, {
60746
60703
  readSize,
@@ -60754,7 +60711,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
60754
60711
  const p = new Promise((resolve, reject) => {
60755
60712
  u.on("error", reject);
60756
60713
  u.on("close", resolve);
60757
- fs$25.stat(file, (er, stat) => {
60714
+ fs$24.stat(file, (er, stat) => {
60758
60715
  if (er) reject(er);
60759
60716
  else {
60760
60717
  const stream = new fsm.ReadStream(file, {
@@ -60837,7 +60794,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
60837
60794
  //#endregion
60838
60795
  //#region ../../node_modules/fd-slicer/index.js
60839
60796
  var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
60840
- var fs$24 = require("fs");
60797
+ var fs$23 = require("fs");
60841
60798
  var util$9 = require("util");
60842
60799
  var stream$1 = require("stream");
60843
60800
  var Readable = stream$1.Readable;
@@ -60862,7 +60819,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60862
60819
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
60863
60820
  var self = this;
60864
60821
  self.pend.go(function(cb) {
60865
- fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
60822
+ fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
60866
60823
  cb();
60867
60824
  callback(err, bytesRead, buffer);
60868
60825
  });
@@ -60871,7 +60828,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60871
60828
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
60872
60829
  var self = this;
60873
60830
  self.pend.go(function(cb) {
60874
- fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
60831
+ fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
60875
60832
  cb();
60876
60833
  callback(err, written, buffer);
60877
60834
  });
@@ -60891,7 +60848,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60891
60848
  self.refCount -= 1;
60892
60849
  if (self.refCount > 0) return;
60893
60850
  if (self.refCount < 0) throw new Error("invalid unref");
60894
- if (self.autoClose) fs$24.close(self.fd, onCloseDone);
60851
+ if (self.autoClose) fs$23.close(self.fd, onCloseDone);
60895
60852
  function onCloseDone(err) {
60896
60853
  if (err) self.emit("error", err);
60897
60854
  else self.emit("close");
@@ -60922,7 +60879,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60922
60879
  self.context.pend.go(function(cb) {
60923
60880
  if (self.destroyed) return cb();
60924
60881
  var buffer = new Buffer(toRead);
60925
- fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
60882
+ fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
60926
60883
  if (err) self.destroy(err);
60927
60884
  else if (bytesRead === 0) {
60928
60885
  self.destroyed = true;
@@ -60968,7 +60925,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
60968
60925
  }
60969
60926
  self.context.pend.go(function(cb) {
60970
60927
  if (self.destroyed) return cb();
60971
- fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
60928
+ fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
60972
60929
  if (err) {
60973
60930
  self.destroy();
60974
60931
  cb();
@@ -61375,7 +61332,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
61375
61332
  //#endregion
61376
61333
  //#region ../../node_modules/yauzl/index.js
61377
61334
  var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61378
- var fs$23 = require("fs");
61335
+ var fs$22 = require("fs");
61379
61336
  var zlib$1 = require("zlib");
61380
61337
  var fd_slicer = require_fd_slicer();
61381
61338
  var crc32 = require_buffer_crc32();
@@ -61397,10 +61354,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61397
61354
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
61398
61355
  if (options.strictFileNames == null) options.strictFileNames = false;
61399
61356
  if (callback == null) callback = defaultCallback;
61400
- fs$23.open(path, "r", function(err, fd) {
61357
+ fs$22.open(path, "r", function(err, fd) {
61401
61358
  if (err) return callback(err);
61402
61359
  fromFd(fd, options, function(err, zipfile) {
61403
- if (err) fs$23.close(fd, defaultCallback);
61360
+ if (err) fs$22.close(fd, defaultCallback);
61404
61361
  callback(err, zipfile);
61405
61362
  });
61406
61363
  });
@@ -61417,7 +61374,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
61417
61374
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
61418
61375
  if (options.strictFileNames == null) options.strictFileNames = false;
61419
61376
  if (callback == null) callback = defaultCallback;
61420
- fs$23.fstat(fd, function(err, stats) {
61377
+ fs$22.fstat(fd, function(err, stats) {
61421
61378
  if (err) return callback(err);
61422
61379
  fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
61423
61380
  });
@@ -62645,13 +62602,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
62645
62602
  //#region ../../node_modules/readdir-glob/index.js
62646
62603
  var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
62647
62604
  module.exports = readdirGlob;
62648
- const fs$22 = require("fs");
62605
+ const fs$21 = require("fs");
62649
62606
  const { EventEmitter } = require("events");
62650
62607
  const { Minimatch } = require_minimatch$1();
62651
62608
  const { resolve: resolve$12 } = require("path");
62652
62609
  function readdir(dir, strict) {
62653
62610
  return new Promise((resolve, reject) => {
62654
- fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
62611
+ fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
62655
62612
  if (err) switch (err.code) {
62656
62613
  case "ENOTDIR":
62657
62614
  if (strict) reject(err);
@@ -62673,7 +62630,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62673
62630
  }
62674
62631
  function stat(file, followSymlinks) {
62675
62632
  return new Promise((resolve, reject) => {
62676
- (followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
62633
+ (followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
62677
62634
  if (err) switch (err.code) {
62678
62635
  case "ENOENT":
62679
62636
  if (followSymlinks) resolve(stat(file, false));
@@ -62687,8 +62644,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62687
62644
  });
62688
62645
  });
62689
62646
  }
62690
- async function* exploreWalkAsync(dir, path$56, followSymlinks, useStat, shouldSkip, strict) {
62691
- let files = await readdir(path$56 + dir, strict);
62647
+ async function* exploreWalkAsync(dir, path$55, followSymlinks, useStat, shouldSkip, strict) {
62648
+ let files = await readdir(path$55 + dir, strict);
62692
62649
  for (const file of files) {
62693
62650
  let name = file.name;
62694
62651
  if (name === void 0) {
@@ -62697,7 +62654,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62697
62654
  }
62698
62655
  const filename = dir + "/" + name;
62699
62656
  const relative = filename.slice(1);
62700
- const absolute = path$56 + "/" + relative;
62657
+ const absolute = path$55 + "/" + relative;
62701
62658
  let stats = null;
62702
62659
  if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
62703
62660
  if (!stats && file.name !== void 0) stats = file;
@@ -62709,7 +62666,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62709
62666
  absolute,
62710
62667
  stats
62711
62668
  };
62712
- yield* exploreWalkAsync(filename, path$56, followSymlinks, useStat, shouldSkip, false);
62669
+ yield* exploreWalkAsync(filename, path$55, followSymlinks, useStat, shouldSkip, false);
62713
62670
  }
62714
62671
  } else yield {
62715
62672
  relative,
@@ -62718,8 +62675,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
62718
62675
  };
62719
62676
  }
62720
62677
  }
62721
- async function* explore(path$57, followSymlinks, useStat, shouldSkip) {
62722
- yield* exploreWalkAsync("", path$57, followSymlinks, useStat, shouldSkip, true);
62678
+ async function* explore(path$56, followSymlinks, useStat, shouldSkip) {
62679
+ yield* exploreWalkAsync("", path$56, followSymlinks, useStat, shouldSkip, true);
62723
62680
  }
62724
62681
  function readOptions(options) {
62725
62682
  return {
@@ -68712,7 +68669,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
68712
68669
  //#endregion
68713
68670
  //#region ../../node_modules/graceful-fs/graceful-fs.js
68714
68671
  var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
68715
- var fs$21 = require("fs");
68672
+ var fs$20 = require("fs");
68716
68673
  var polyfills = require_polyfills();
68717
68674
  var legacy = require_legacy_streams();
68718
68675
  var clone = require_clone$1();
@@ -68741,36 +68698,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
68741
68698
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
68742
68699
  console.error(m);
68743
68700
  };
68744
- if (!fs$21[gracefulQueue]) {
68745
- publishQueue(fs$21, global[gracefulQueue] || []);
68746
- fs$21.close = (function(fs$close) {
68701
+ if (!fs$20[gracefulQueue]) {
68702
+ publishQueue(fs$20, global[gracefulQueue] || []);
68703
+ fs$20.close = (function(fs$close) {
68747
68704
  function close(fd, cb) {
68748
- return fs$close.call(fs$21, fd, function(err) {
68705
+ return fs$close.call(fs$20, fd, function(err) {
68749
68706
  if (!err) resetQueue();
68750
68707
  if (typeof cb === "function") cb.apply(this, arguments);
68751
68708
  });
68752
68709
  }
68753
68710
  Object.defineProperty(close, previousSymbol, { value: fs$close });
68754
68711
  return close;
68755
- })(fs$21.close);
68756
- fs$21.closeSync = (function(fs$closeSync) {
68712
+ })(fs$20.close);
68713
+ fs$20.closeSync = (function(fs$closeSync) {
68757
68714
  function closeSync(fd) {
68758
- fs$closeSync.apply(fs$21, arguments);
68715
+ fs$closeSync.apply(fs$20, arguments);
68759
68716
  resetQueue();
68760
68717
  }
68761
68718
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
68762
68719
  return closeSync;
68763
- })(fs$21.closeSync);
68720
+ })(fs$20.closeSync);
68764
68721
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
68765
- debug(fs$21[gracefulQueue]);
68766
- require("assert").equal(fs$21[gracefulQueue].length, 0);
68722
+ debug(fs$20[gracefulQueue]);
68723
+ require("assert").equal(fs$20[gracefulQueue].length, 0);
68767
68724
  });
68768
68725
  }
68769
- if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
68770
- module.exports = patch(clone(fs$21));
68771
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
68772
- module.exports = patch(fs$21);
68773
- fs$21.__patched = true;
68726
+ if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
68727
+ module.exports = patch(clone(fs$20));
68728
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
68729
+ module.exports = patch(fs$20);
68730
+ fs$20.__patched = true;
68774
68731
  }
68775
68732
  function patch(fs) {
68776
68733
  polyfills(fs);
@@ -69025,23 +68982,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
69025
68982
  }
69026
68983
  function enqueue(elem) {
69027
68984
  debug("ENQUEUE", elem[0].name, elem[1]);
69028
- fs$21[gracefulQueue].push(elem);
68985
+ fs$20[gracefulQueue].push(elem);
69029
68986
  retry();
69030
68987
  }
69031
68988
  var retryTimer;
69032
68989
  function resetQueue() {
69033
68990
  var now = Date.now();
69034
- for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
69035
- fs$21[gracefulQueue][i][3] = now;
69036
- fs$21[gracefulQueue][i][4] = now;
68991
+ for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
68992
+ fs$20[gracefulQueue][i][3] = now;
68993
+ fs$20[gracefulQueue][i][4] = now;
69037
68994
  }
69038
68995
  retry();
69039
68996
  }
69040
68997
  function retry() {
69041
68998
  clearTimeout(retryTimer);
69042
68999
  retryTimer = void 0;
69043
- if (fs$21[gracefulQueue].length === 0) return;
69044
- var elem = fs$21[gracefulQueue].shift();
69000
+ if (fs$20[gracefulQueue].length === 0) return;
69001
+ var elem = fs$20[gracefulQueue].shift();
69045
69002
  var fn = elem[0];
69046
69003
  var args = elem[1];
69047
69004
  var err = elem[2];
@@ -69060,7 +69017,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
69060
69017
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
69061
69018
  debug("RETRY", fn.name, args);
69062
69019
  fn.apply(null, args.concat([startTime]));
69063
- } else fs$21[gracefulQueue].push(elem);
69020
+ } else fs$20[gracefulQueue].push(elem);
69064
69021
  }
69065
69022
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
69066
69023
  }
@@ -84186,7 +84143,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84186
84143
  * https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
84187
84144
  */
84188
84145
  var fs = require_graceful_fs();
84189
- var path$25 = require("path");
84146
+ var path$24 = require("path");
84190
84147
  var flatten = require_flatten();
84191
84148
  var difference = require_difference();
84192
84149
  var union = require_union();
@@ -84206,7 +84163,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84206
84163
  return result;
84207
84164
  };
84208
84165
  file.exists = function() {
84209
- var filepath = path$25.join.apply(path$25, arguments);
84166
+ var filepath = path$24.join.apply(path$24, arguments);
84210
84167
  return fs.existsSync(filepath);
84211
84168
  };
84212
84169
  file.expand = function(...args) {
@@ -84217,7 +84174,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84217
84174
  return glob.sync(pattern, options);
84218
84175
  });
84219
84176
  if (options.filter) matches = matches.filter(function(filepath) {
84220
- filepath = path$25.join(options.cwd || "", filepath);
84177
+ filepath = path$24.join(options.cwd || "", filepath);
84221
84178
  try {
84222
84179
  if (typeof options.filter === "function") return options.filter(filepath);
84223
84180
  else return fs.statSync(filepath)[options.filter]();
@@ -84229,16 +84186,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
84229
84186
  };
84230
84187
  file.expandMapping = function(patterns, destBase, options) {
84231
84188
  options = Object.assign({ rename: function(destBase, destPath) {
84232
- return path$25.join(destBase || "", destPath);
84189
+ return path$24.join(destBase || "", destPath);
84233
84190
  } }, options);
84234
84191
  var files = [];
84235
84192
  var fileByDest = {};
84236
84193
  file.expand(options, patterns).forEach(function(src) {
84237
84194
  var destPath = src;
84238
- if (options.flatten) destPath = path$25.basename(destPath);
84195
+ if (options.flatten) destPath = path$24.basename(destPath);
84239
84196
  if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
84240
84197
  var dest = options.rename(destBase, destPath, options);
84241
- if (options.cwd) src = path$25.join(options.cwd, src);
84198
+ if (options.cwd) src = path$24.join(options.cwd, src);
84242
84199
  dest = dest.replace(pathSeparatorRe, "/");
84243
84200
  src = src.replace(pathSeparatorRe, "/");
84244
84201
  if (fileByDest[dest]) fileByDest[dest].src.push(src);
@@ -84313,7 +84270,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
84313
84270
  * https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
84314
84271
  */
84315
84272
  var fs = require_graceful_fs();
84316
- var path$24 = require("path");
84273
+ var path$23 = require("path");
84317
84274
  var isStream = require_is_stream$1();
84318
84275
  var lazystream = require_lazystream();
84319
84276
  var normalizePath = require_normalize_path();
@@ -84389,11 +84346,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
84389
84346
  (function next() {
84390
84347
  file = list[i++];
84391
84348
  if (!file) return callback(null, results);
84392
- filepath = path$24.join(dirpath, file);
84349
+ filepath = path$23.join(dirpath, file);
84393
84350
  fs.stat(filepath, function(err, stats) {
84394
84351
  results.push({
84395
84352
  path: filepath,
84396
- relative: path$24.relative(base, filepath).replace(/\\/g, "/"),
84353
+ relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
84397
84354
  stats
84398
84355
  });
84399
84356
  if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
@@ -84457,10 +84414,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84457
84414
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
84458
84415
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
84459
84416
  */
84460
- var fs$20 = require("fs");
84417
+ var fs$19 = require("fs");
84461
84418
  var glob = require_readdir_glob();
84462
84419
  var async = require_async();
84463
- var path$23 = require("path");
84420
+ var path$22 = require("path");
84464
84421
  var util = require_archiver_utils();
84465
84422
  var inherits$5 = require("util").inherits;
84466
84423
  var ArchiverError = require_error$10();
@@ -84534,7 +84491,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84534
84491
  data.sourcePath = filepath;
84535
84492
  task.data = data;
84536
84493
  this._entriesCount++;
84537
- if (data.stats && data.stats instanceof fs$20.Stats) {
84494
+ if (data.stats && data.stats instanceof fs$19.Stats) {
84538
84495
  task = this._updateQueueTaskWithStats(task, data.stats);
84539
84496
  if (task) {
84540
84497
  if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
@@ -84764,7 +84721,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84764
84721
  callback();
84765
84722
  return;
84766
84723
  }
84767
- fs$20.lstat(task.filepath, function(err, stats) {
84724
+ fs$19.lstat(task.filepath, function(err, stats) {
84768
84725
  if (this._state.aborted) {
84769
84726
  setImmediate(callback);
84770
84727
  return;
@@ -84830,10 +84787,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
84830
84787
  task.data.sourceType = "buffer";
84831
84788
  task.source = Buffer.concat([]);
84832
84789
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
84833
- var linkPath = fs$20.readlinkSync(task.filepath);
84834
- var dirName = path$23.dirname(task.filepath);
84790
+ var linkPath = fs$19.readlinkSync(task.filepath);
84791
+ var dirName = path$22.dirname(task.filepath);
84835
84792
  task.data.type = "symlink";
84836
- task.data.linkname = path$23.relative(dirName, path$23.resolve(dirName, linkPath));
84793
+ task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
84837
84794
  task.data.sourceType = "buffer";
84838
84795
  task.source = Buffer.concat([]);
84839
84796
  } else {
@@ -95889,7 +95846,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
95889
95846
  //#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
95890
95847
  var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
95891
95848
  const { isexe, sync: isexeSync } = require_index_min$3();
95892
- const { join: join$17, delimiter: delimiter$3, sep: sep$5, posix: posix$1 } = require("path");
95849
+ const { join: join$15, delimiter: delimiter$3, sep: sep$5, posix: posix$1 } = require("path");
95893
95850
  const isWindows = process.platform === "win32";
95894
95851
  /* istanbul ignore next */
95895
95852
  const rSlash = new RegExp(`[${posix$1.sep}${sep$5 === posix$1.sep ? "" : sep$5}]`.replace(/(\\)/g, "\\$1"));
@@ -95919,7 +95876,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
95919
95876
  };
95920
95877
  const getPathPart = (raw, cmd) => {
95921
95878
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
95922
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$17(pathPart, cmd);
95879
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
95923
95880
  };
95924
95881
  const which = async (cmd, opt = {}) => {
95925
95882
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -96668,7 +96625,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
96668
96625
  //#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
96669
96626
  var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
96670
96627
  const { isexe, sync: isexeSync } = require_index_min$2();
96671
- const { join: join$16, delimiter: delimiter$2, sep: sep$4, posix } = require("path");
96628
+ const { join: join$14, delimiter: delimiter$2, sep: sep$4, posix } = require("path");
96672
96629
  const isWindows = process.platform === "win32";
96673
96630
  /* istanbul ignore next */
96674
96631
  const rSlash = new RegExp(`[${posix.sep}${sep$4 === posix.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
@@ -96698,7 +96655,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
96698
96655
  };
96699
96656
  const getPathPart = (raw, cmd) => {
96700
96657
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
96701
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
96658
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
96702
96659
  };
96703
96660
  const which = async (cmd, opt = {}) => {
96704
96661
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -98596,7 +98553,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
98596
98553
  //#endregion
98597
98554
  //#region ../../node_modules/npm-normalize-package-bin/lib/index.js
98598
98555
  var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
98599
- const { join: join$15, basename: basename$6 } = require("path");
98556
+ const { join: join$13, basename: basename$6 } = require("path");
98600
98557
  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);
98601
98558
  const normalizeString = (pkg) => {
98602
98559
  if (!pkg.name) return removeBin(pkg);
@@ -98619,9 +98576,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
98619
98576
  const clean = {};
98620
98577
  let hasBins = false;
98621
98578
  Object.keys(orig).forEach((binKey) => {
98622
- const base = join$15("/", basename$6(binKey.replace(/\\|:/g, "/"))).slice(1);
98579
+ const base = join$13("/", basename$6(binKey.replace(/\\|:/g, "/"))).slice(1);
98623
98580
  if (typeof orig[binKey] !== "string" || !base) return;
98624
- const binTarget = join$15("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
98581
+ const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
98625
98582
  if (!binTarget) return;
98626
98583
  clean[base] = binTarget;
98627
98584
  hasBins = true;
@@ -100694,7 +100651,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100694
100651
  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();
100695
100652
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
100696
100653
  const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
100697
- const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$14, parse, resolve: resolve$10, sep: sep$3, toNamespacedPath } = require("path");
100654
+ const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$3, toNamespacedPath } = require("path");
100698
100655
  const { fileURLToPath } = require("url");
100699
100656
  const defaultOptions = {
100700
100657
  dereference: false,
@@ -100801,7 +100758,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100801
100758
  });
100802
100759
  return checkParentPaths(src, srcStat, destParent);
100803
100760
  }
100804
- const normalizePathToArray = (path$55) => resolve$10(path$55).split(sep$3).filter(Boolean);
100761
+ const normalizePathToArray = (path$54) => resolve$10(path$54).split(sep$3).filter(Boolean);
100805
100762
  function isSrcSubdir(src, dest) {
100806
100763
  const srcArr = normalizePathToArray(src);
100807
100764
  const destArr = normalizePathToArray(dest);
@@ -100903,8 +100860,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
100903
100860
  const dir = await readdir$6(src);
100904
100861
  for (let i = 0; i < dir.length; i++) {
100905
100862
  const item = dir[i];
100906
- const srcItem = join$14(src, item);
100907
- const destItem = join$14(dest, item);
100863
+ const srcItem = join$12(src, item);
100864
+ const destItem = join$12(dest, item);
100908
100865
  const { destStat } = await checkPaths(srcItem, destItem, opts);
100909
100866
  await startCopy(destStat, srcItem, destItem, opts);
100910
100867
  }
@@ -100968,13 +100925,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
100968
100925
  //#endregion
100969
100926
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
100970
100927
  var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
100971
- const { join: join$13, sep: sep$2 } = require("path");
100928
+ const { join: join$11, sep: sep$2 } = require("path");
100972
100929
  const getOptions = require_get_options();
100973
- const { mkdir: mkdir$6, mkdtemp, rm: rm$7 } = require("fs/promises");
100930
+ const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
100974
100931
  const withTempDir = async (root, fn, opts) => {
100975
100932
  const options = getOptions(opts, { copy: ["tmpPrefix"] });
100976
100933
  await mkdir$6(root, { recursive: true });
100977
- const target = await mkdtemp(join$13(`${root}${sep$2}`, options.tmpPrefix || ""));
100934
+ const target = await mkdtemp(join$11(`${root}${sep$2}`, options.tmpPrefix || ""));
100978
100935
  let err;
100979
100936
  let result;
100980
100937
  try {
@@ -100983,7 +100940,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
100983
100940
  err = _err;
100984
100941
  }
100985
100942
  try {
100986
- await rm$7(target, {
100943
+ await rm$8(target, {
100987
100944
  force: true,
100988
100945
  recursive: true
100989
100946
  });
@@ -100997,10 +100954,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
100997
100954
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
100998
100955
  var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
100999
100956
  const { readdir: readdir$5 } = require("fs/promises");
101000
- const { join: join$12 } = require("path");
100957
+ const { join: join$10 } = require("path");
101001
100958
  const readdirScoped = async (dir) => {
101002
100959
  const results = [];
101003
- for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$12(dir, item))) results.push(join$12(item, scopedItem));
100960
+ for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
101004
100961
  else results.push(item);
101005
100962
  return results;
101006
100963
  };
@@ -101009,11 +100966,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
101009
100966
  //#endregion
101010
100967
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
101011
100968
  var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101012
- const { dirname: dirname$7, join: join$11, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
100969
+ const { dirname: dirname$7, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
101013
100970
  const fs$12 = require("fs/promises");
101014
- const pathExists = async (path$54) => {
100971
+ const pathExists = async (path$53) => {
101015
100972
  try {
101016
- await fs$12.access(path$54);
100973
+ await fs$12.access(path$53);
101017
100974
  return true;
101018
100975
  } catch (er) {
101019
100976
  return er.code !== "ENOENT";
@@ -101034,7 +100991,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
101034
100991
  const sourceStat = await fs$12.lstat(source);
101035
100992
  if (sourceStat.isDirectory()) {
101036
100993
  const files = await fs$12.readdir(source);
101037
- await Promise.all(files.map((file) => moveFile(join$11(source, file), join$11(destination, file), options, false, symlinks)));
100994
+ await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
101038
100995
  } else if (sourceStat.isSymbolicLink()) symlinks.push({
101039
100996
  source,
101040
100997
  destination
@@ -101210,7 +101167,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
101210
101167
  //#region ../../node_modules/cacache/lib/entry-index.js
101211
101168
  var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
101212
101169
  const crypto$1 = require("crypto");
101213
- const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$4, rm: rm$6, writeFile: writeFile$3 } = require("fs/promises");
101170
+ const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$4, rm: rm$7, writeFile: writeFile$3 } = require("fs/promises");
101214
101171
  const { Minipass } = require_commonjs$10();
101215
101172
  const path$14 = require("path");
101216
101173
  const ssri = require_lib$17();
@@ -101251,7 +101208,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
101251
101208
  };
101252
101209
  };
101253
101210
  const teardown = async (tmp) => {
101254
- if (!tmp.moved) return rm$6(tmp.target, {
101211
+ if (!tmp.moved) return rm$7(tmp.target, {
101255
101212
  recursive: true,
101256
101213
  force: true
101257
101214
  });
@@ -101307,7 +101264,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
101307
101264
  module.exports.delete = del;
101308
101265
  function del(cache, key, opts = {}) {
101309
101266
  if (!opts.removeFully) return insert(cache, key, null, opts);
101310
- return rm$6(bucketPath(cache, key), {
101267
+ return rm$7(bucketPath(cache, key), {
101311
101268
  recursive: true,
101312
101269
  force: true
101313
101270
  });
@@ -106069,7 +106026,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
106069
106026
  const { glob } = require_index_min$1();
106070
106027
  const path$12 = require("path");
106071
106028
  const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
106072
- module.exports = (path$53, options) => glob(globify(path$53), options);
106029
+ module.exports = (path$52, options) => glob(globify(path$52), options);
106073
106030
  }));
106074
106031
  //#endregion
106075
106032
  //#region ../../node_modules/cacache/lib/content/rm.js
@@ -106092,7 +106049,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
106092
106049
  //#endregion
106093
106050
  //#region ../../node_modules/cacache/lib/rm.js
106094
106051
  var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
106095
- const { rm: rm$5 } = require("fs/promises");
106052
+ const { rm: rm$6 } = require("fs/promises");
106096
106053
  const glob = require_glob();
106097
106054
  const index = require_entry_index();
106098
106055
  const memo = require_memoization();
@@ -106116,7 +106073,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
106116
106073
  silent: true,
106117
106074
  nosort: true
106118
106075
  });
106119
- return Promise.all(paths.map((p) => rm$5(p, {
106076
+ return Promise.all(paths.map((p) => rm$6(p, {
106120
106077
  recursive: true,
106121
106078
  force: true
106122
106079
  })));
@@ -106125,7 +106082,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
106125
106082
  //#endregion
106126
106083
  //#region ../../node_modules/cacache/lib/verify.js
106127
106084
  var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
106128
- const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$4, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
106085
+ const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
106129
106086
  const contentPath = require_path();
106130
106087
  const fsm = require_lib$15();
106131
106088
  const glob = require_glob();
@@ -106222,7 +106179,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106222
106179
  } else {
106223
106180
  stats.reclaimedCount++;
106224
106181
  const s = await stat$4(f);
106225
- await rm$4(f, {
106182
+ await rm$5(f, {
106226
106183
  recursive: true,
106227
106184
  force: true
106228
106185
  });
@@ -106245,7 +106202,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106245
106202
  valid: false
106246
106203
  };
106247
106204
  if (err.code !== "EINTEGRITY") throw err;
106248
- await rm$4(filepath, {
106205
+ await rm$5(filepath, {
106249
106206
  recursive: true,
106250
106207
  force: true
106251
106208
  });
@@ -106306,7 +106263,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
106306
106263
  }
106307
106264
  function cleanTmp(cache, opts) {
106308
106265
  opts.log.silly("verify", "cleaning tmp directory");
106309
- return rm$4(path$10.join(cache, "tmp"), {
106266
+ return rm$5(path$10.join(cache, "tmp"), {
106310
106267
  recursive: true,
106311
106268
  force: true
106312
106269
  });
@@ -106867,14 +106824,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106867
106824
  const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
106868
106825
  const { resolve: resolve$8, basename: basename$5, dirname: dirname$6 } = require("path");
106869
106826
  const normalizePackageBin = require_lib$21();
106870
- const readPackage = ({ path: path$49, packageJsonCache }) => packageJsonCache.has(path$49) ? Promise.resolve(packageJsonCache.get(path$49)) : readFile$5(path$49).then((json) => {
106827
+ const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
106871
106828
  const pkg = normalizePackageBin(JSON.parse(json));
106872
- packageJsonCache.set(path$49, pkg);
106829
+ packageJsonCache.set(path$48, pkg);
106873
106830
  return pkg;
106874
106831
  }).catch(() => null);
106875
106832
  const normalized = Symbol("package data has been normalized");
106876
- const rpj = ({ path: path$50, packageJsonCache }) => readPackage({
106877
- path: path$50,
106833
+ const rpj = ({ path: path$49, packageJsonCache }) => readPackage({
106834
+ path: path$49,
106878
106835
  packageJsonCache
106879
106836
  }).then((pkg) => {
106880
106837
  if (!pkg || pkg[normalized]) return pkg;
@@ -106888,14 +106845,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106888
106845
  pkg[normalized] = true;
106889
106846
  return pkg;
106890
106847
  });
106891
- const pkgContents = async ({ path: path$51, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
106848
+ const pkgContents = async ({ path: path$50, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
106892
106849
  if (!result) result = /* @__PURE__ */ new Set();
106893
106850
  if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
106894
106851
  if (pkg === true) return rpj({
106895
- path: path$51 + "/package.json",
106852
+ path: path$50 + "/package.json",
106896
106853
  packageJsonCache
106897
106854
  }).then((p) => pkgContents({
106898
- path: path$51,
106855
+ path: path$50,
106899
106856
  depth,
106900
106857
  currentDepth,
106901
106858
  pkg: p,
@@ -106904,7 +106861,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106904
106861
  }));
106905
106862
  if (pkg) {
106906
106863
  if (pkg.bin) {
106907
- const dir = dirname$6(path$51);
106864
+ const dir = dirname$6(path$50);
106908
106865
  const scope = basename$5(dir);
106909
106866
  const nm = /^@.+/.test(scope) ? dirname$6(dir) : dir;
106910
106867
  const binFiles = [];
@@ -106916,21 +106873,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106916
106873
  }
106917
106874
  }
106918
106875
  if (currentDepth >= depth) {
106919
- result.add(path$51);
106876
+ result.add(path$50);
106920
106877
  return result;
106921
106878
  }
106922
- const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$51, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
106923
- path: path$51,
106879
+ const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$50, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
106880
+ path: path$50,
106924
106881
  packageJsonCache
106925
106882
  }) : null]).catch(() => []);
106926
106883
  if (!dirEntries) return result;
106927
106884
  if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
106928
- result.add(path$51);
106885
+ result.add(path$50);
106929
106886
  return result;
106930
106887
  }
106931
106888
  const recursePromises = [];
106932
106889
  for (const entry of dirEntries) {
106933
- const p = resolve$8(path$51, entry.name);
106890
+ const p = resolve$8(path$50, entry.name);
106934
106891
  if (entry.isDirectory() === false) {
106935
106892
  result.add(p);
106936
106893
  continue;
@@ -106949,7 +106906,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106949
106906
  }
106950
106907
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
106951
106908
  return pkgContents({
106952
- path: resolve$8(path$51, "node_modules", dep),
106909
+ path: resolve$8(path$50, "node_modules", dep),
106953
106910
  packageJsonCache,
106954
106911
  pkg: true,
106955
106912
  depth,
@@ -106960,8 +106917,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
106960
106917
  if (recursePromises.length) await Promise.all(recursePromises);
106961
106918
  return result;
106962
106919
  };
106963
- module.exports = ({ path: path$52, ...opts }) => pkgContents({
106964
- path: resolve$8(path$52),
106920
+ module.exports = ({ path: path$51, ...opts }) => pkgContents({
106921
+ path: resolve$8(path$51),
106965
106922
  ...opts,
106966
106923
  pkg: true
106967
106924
  }).then((results) => [...results]);
@@ -112397,7 +112354,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
112397
112354
  var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
112398
112355
  const { Walker: IgnoreWalker } = require_lib$10();
112399
112356
  const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
112400
- const { basename: basename$4, dirname: dirname$5, extname: extname$1, join: join$10, relative, resolve: resolve$6, sep: sep$1 } = require("path");
112357
+ const { basename: basename$4, dirname: dirname$5, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep: sep$1 } = require("path");
112401
112358
  const { log } = require_lib$29();
112402
112359
  const defaultRules = Symbol("npm-packlist.rules.default");
112403
112360
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -112427,10 +112384,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112427
112384
  "/archived-packages/**"
112428
112385
  ];
112429
112386
  const strictDefaults = ["/.git"];
112430
- const normalizePath = (path$46) => path$46.split("\\").join("/");
112387
+ const normalizePath = (path$45) => path$45.split("\\").join("/");
112431
112388
  const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
112432
112389
  for (const file of [".npmignore", ".gitignore"]) try {
112433
- const ignoreContent = readFile$4(join$10(root, file), { encoding: "utf8" });
112390
+ const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
112434
112391
  result.push(ignoreContent);
112435
112392
  break;
112436
112393
  } catch (err) {
@@ -112439,8 +112396,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112439
112396
  }
112440
112397
  if (!rel) return result;
112441
112398
  const firstRel = rel.split(sep$1, 1)[0];
112442
- const newRoot = join$10(root, firstRel);
112443
- return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$10(root, rel)), result);
112399
+ const newRoot = join$8(root, firstRel);
112400
+ return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
112444
112401
  };
112445
112402
  var PackWalker = class PackWalker extends IgnoreWalker {
112446
112403
  constructor(tree, opts) {
@@ -112464,14 +112421,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112464
112421
  this.requiredFiles = options.requiredFiles || [];
112465
112422
  const additionalDefaults = [];
112466
112423
  if (options.prefix && options.workspaces) {
112467
- const path$47 = normalizePath(options.path);
112424
+ const path$46 = normalizePath(options.path);
112468
112425
  const prefix = normalizePath(options.prefix);
112469
112426
  const workspaces = options.workspaces.map((ws) => normalizePath(ws));
112470
112427
  // istanbul ignore else - this does nothing unless we need it to
112471
- if (path$47 !== prefix && workspaces.includes(path$47)) {
112428
+ if (path$46 !== prefix && workspaces.includes(path$46)) {
112472
112429
  const relpath = relative(options.prefix, dirname$5(options.path));
112473
112430
  additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
112474
- } else if (path$47 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
112431
+ } else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
112475
112432
  }
112476
112433
  this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
112477
112434
  if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
@@ -112507,7 +112464,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112507
112464
  let ignoreFiles = null;
112508
112465
  if (this.tree.workspaces) {
112509
112466
  const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
112510
- const entryPath = join$10(this.path, entry).replace(/\\/g, "/");
112467
+ const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
112511
112468
  if (workspaceDirs.includes(entryPath)) ignoreFiles = [
112512
112469
  defaultRules,
112513
112470
  "package.json",
@@ -112567,7 +112524,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112567
112524
  if (file.endsWith("/*")) file += "*";
112568
112525
  const inverse = `!${file}`;
112569
112526
  try {
112570
- const stat = lstat$1(join$10(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
112527
+ const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
112571
112528
  if (stat.isFile()) {
112572
112529
  strict.unshift(inverse);
112573
112530
  this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
@@ -112602,10 +112559,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112602
112559
  if (!edge || edge.peer || edge.dev) continue;
112603
112560
  const node = this.tree.edgesOut.get(dep).to;
112604
112561
  if (!node) continue;
112605
- const path$48 = node.path;
112562
+ const path$47 = node.path;
112606
112563
  const tree = node.target;
112607
112564
  const walkerOpts = {
112608
- path: path$48,
112565
+ path: path$47,
112609
112566
  isPackage: true,
112610
112567
  ignoreFiles: [],
112611
112568
  seen: this.seen
@@ -112624,7 +112581,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
112624
112581
  walker.start();
112625
112582
  });
112626
112583
  const relativeFrom = relative(this.root, walker.path);
112627
- for (const file of bundled) this.result.add(join$10(relativeFrom, file).replace(/\\/g, "/"));
112584
+ for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
112628
112585
  }
112629
112586
  }
112630
112587
  };
@@ -112682,7 +112639,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
112682
112639
  const { resolve: resolve$4 } = require("path");
112683
112640
  let npm_config_node_gyp;
112684
112641
  const makeSpawnArgs = (options) => {
112685
- const { args, binPaths, cmd, env, event, nodeGyp, path: path$45, scriptShell = true, stdio, stdioString } = options;
112642
+ const { args, binPaths, cmd, env, event, nodeGyp, path: path$44, scriptShell = true, stdio, stdioString } = options;
112686
112643
  if (nodeGyp) npm_config_node_gyp = nodeGyp;
112687
112644
  else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
112688
112645
  else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
@@ -112690,17 +112647,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
112690
112647
  cmd,
112691
112648
  args,
112692
112649
  {
112693
- env: setPATH(path$45, binPaths, {
112650
+ env: setPATH(path$44, binPaths, {
112694
112651
  ...process.env,
112695
112652
  ...env,
112696
- npm_package_json: resolve$4(path$45, "package.json"),
112653
+ npm_package_json: resolve$4(path$44, "package.json"),
112697
112654
  npm_lifecycle_event: event,
112698
112655
  npm_lifecycle_script: cmd,
112699
112656
  npm_config_node_gyp
112700
112657
  }),
112701
112658
  stdioString,
112702
112659
  stdio,
112703
- cwd: path$45,
112660
+ cwd: path$44,
112704
112661
  shell: scriptShell
112705
112662
  }
112706
112663
  ];
@@ -142018,7 +141975,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
142018
141975
  //#region ../../node_modules/pacote/lib/fetcher.js
142019
141976
  var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
142020
141977
  const { basename: basename$3, dirname: dirname$3 } = require("node:path");
142021
- const { rm: rm$3, mkdir: mkdir$3 } = require("node:fs/promises");
141978
+ const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
142022
141979
  const PackageJson = require_lib$18();
142023
141980
  const cacache = require_lib$14();
142024
141981
  const fsm = require_lib$13();
@@ -142195,7 +142152,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
142195
142152
  return getContents({
142196
142153
  path,
142197
142154
  depth: 1
142198
- }).then((contents) => Promise.all(contents.map((entry) => rm$3(entry, {
142155
+ }).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
142199
142156
  recursive: true,
142200
142157
  force: true
142201
142158
  }))));
@@ -149992,9 +149949,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
149992
149949
  * @param {string} path
149993
149950
  * @return {boolean|string}
149994
149951
  */
149995
- function lookup(path$44) {
149996
- if (!path$44 || typeof path$44 !== "string") return false;
149997
- var extension = extname("x." + path$44).toLowerCase().substr(1);
149952
+ function lookup(path$43) {
149953
+ if (!path$43 || typeof path$43 !== "string") return false;
149954
+ var extension = extname("x." + path$43).toLowerCase().substr(1);
149998
149955
  if (!extension) return false;
149999
149956
  return exports.types[extension] || false;
150000
149957
  }
@@ -151198,7 +151155,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151198
151155
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151199
151156
  } else throw new Error(`Offline and no local fallback version available for ${packageName}`);
151200
151157
  } else try {
151201
- const cachePath = (0, node_path.join)(ctx.userDataPath, "cache", "pacote");
151158
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151202
151159
  let packumentPromise = packumentRequests.get(packageName);
151203
151160
  if (!packumentPromise) {
151204
151161
  packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
@@ -151229,7 +151186,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151229
151186
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151230
151187
  } else throw error;
151231
151188
  }
151232
- const cachePath = (0, node_path.join)(ctx.userDataPath, "cache", "pacote");
151189
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151233
151190
  const packageDir = (0, node_path.join)(baseDir, resolvedVersion);
151234
151191
  const checkStart = Date.now();
151235
151192
  const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
@@ -151306,7 +151263,7 @@ async function runPnpm(cwd, options) {
151306
151263
  ...process.env,
151307
151264
  NODE_ENV: "production",
151308
151265
  PATH: nodePath ? `${(0, node_path.dirname)(nodePath)}${node_path.delimiter}${process.env.PATH}` : process.env.PATH,
151309
- PNPM_HOME: (0, node_path.join)(ctx.userDataPath, "pnpm"),
151266
+ PNPM_HOME: ctx.getPnpmPath(),
151310
151267
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
151311
151268
  ...extraEnv
151312
151269
  }
@@ -151541,7 +151498,7 @@ async function resolveEntryPoint(packageDir, packageName) {
151541
151498
  }
151542
151499
  //#endregion
151543
151500
  //#region ../../packages/core-node/src/handler-func.ts
151544
- const { join: join$8 } = node_path.default;
151501
+ const { join: join$6 } = node_path.default;
151545
151502
  //#endregion
151546
151503
  //#region ../../packages/core-node/src/handlers/plugins.ts
151547
151504
  const localPluginsMap = /* @__PURE__ */ new Map();