pnpm 6.24.3 → 6.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/pnpm.cjs +630 -551
  2. package/dist/pnpx.cjs +14 -13
  3. package/package.json +28 -29
package/dist/pnpm.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -6,18 +7,18 @@ var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
9
  var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
11
  };
11
- var __reExport = (target, module2, desc) => {
12
+ var __reExport = (target, module2, copyDefault, desc) => {
12
13
  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
13
14
  for (let key of __getOwnPropNames(module2))
14
- if (!__hasOwnProp.call(target, key) && key !== "default")
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
15
16
  __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
16
17
  }
17
18
  return target;
18
19
  };
19
- var __toModule = (module2) => {
20
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
21
22
  };
22
23
 
23
24
  // ../../node_modules/.pnpm/graceful-fs@4.2.8/node_modules/graceful-fs/polyfills.js
@@ -2334,7 +2335,7 @@ var require_ansi_styles = __commonJS({
2334
2335
  return `[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
2335
2336
  };
2336
2337
  function assembleStyles() {
2337
- const codes = new Map();
2338
+ const codes = /* @__PURE__ */ new Map();
2338
2339
  const styles = {
2339
2340
  modifier: {
2340
2341
  reset: [0, 0],
@@ -2573,7 +2574,7 @@ var require_templates = __commonJS({
2573
2574
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
2574
2575
  var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
2575
2576
  var ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;
2576
- var ESCAPES = new Map([
2577
+ var ESCAPES = /* @__PURE__ */ new Map([
2577
2578
  ["n", "\n"],
2578
2579
  ["r", "\r"],
2579
2580
  ["t", " "],
@@ -2686,7 +2687,7 @@ var require_chalk = __commonJS({
2686
2687
  var template = require_templates();
2687
2688
  var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
2688
2689
  var levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"];
2689
- var skipModels = new Set(["gray"]);
2690
+ var skipModels = /* @__PURE__ */ new Set(["gray"]);
2690
2691
  var styles = Object.create(null);
2691
2692
  function applyOptions(obj, options) {
2692
2693
  options = options || {};
@@ -2856,7 +2857,7 @@ var require_lib2 = __commonJS({
2856
2857
  var _jsTokens = require_js_tokens();
2857
2858
  var _helperValidatorIdentifier = require_lib();
2858
2859
  var _chalk = require_chalk();
2859
- var sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
2860
+ var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
2860
2861
  function getDefs(chalk) {
2861
2862
  return {
2862
2863
  keyword: chalk.cyan,
@@ -3167,7 +3168,7 @@ var require_lib4 = __commonJS({
3167
3168
  var load_json_file_1 = __importDefault(require_load_json_file());
3168
3169
  var defaultManifest = {
3169
3170
  name: "pnpm" != null && true ? "pnpm" : "pnpm",
3170
- version: "6.24.3" != null && true ? "6.24.3" : "0.0.0"
3171
+ version: "6.24.4" != null && true ? "6.24.4" : "0.0.0"
3171
3172
  };
3172
3173
  var pkgJson;
3173
3174
  if (require.main == null) {
@@ -3323,7 +3324,7 @@ var require_ansi_colors = __commonJS({
3323
3324
  let nl = str.includes("\n");
3324
3325
  let n = stack2.length;
3325
3326
  if (n > 0 && stack2.includes("unstyle")) {
3326
- stack2 = [...new Set(["unstyle", ...stack2])].reverse();
3327
+ stack2 = [.../* @__PURE__ */ new Set(["unstyle", ...stack2])].reverse();
3327
3328
  }
3328
3329
  while (n-- > 0)
3329
3330
  str = wrap(colors.styles[stack2[n]], str, nl);
@@ -4018,7 +4019,7 @@ var require_state = __commonJS({
4018
4019
  this.message = this.message || this.name;
4019
4020
  this.symbols = prompt.symbols;
4020
4021
  this.styles = prompt.styles;
4021
- this.required = new Set();
4022
+ this.required = /* @__PURE__ */ new Set();
4022
4023
  this.cancelled = false;
4023
4024
  this.submitted = false;
4024
4025
  }
@@ -6811,7 +6812,7 @@ var require_interpolate = __commonJS({
6811
6812
  }
6812
6813
  };
6813
6814
  var tokenize = async (options = {}, defaults2 = {}, fn2 = (token) => token) => {
6814
- let unique = new Set();
6815
+ let unique = /* @__PURE__ */ new Set();
6815
6816
  let fields = options.fields || [];
6816
6817
  let input = options.template;
6817
6818
  let tabstops = [];
@@ -7029,8 +7030,8 @@ var require_snippet = __commonJS({
7029
7030
  }
7030
7031
  async reset(first2) {
7031
7032
  this.state.keys = [];
7032
- this.state.invalid = new Map();
7033
- this.state.missing = new Set();
7033
+ this.state.invalid = /* @__PURE__ */ new Map();
7034
+ this.state.missing = /* @__PURE__ */ new Set();
7034
7035
  this.state.completed = 0;
7035
7036
  this.state.values = {};
7036
7037
  if (first2 !== true) {
@@ -12931,7 +12932,7 @@ var require_lib9 = __commonJS({
12931
12932
  }
12932
12933
  return noWriteAccessDirs[0];
12933
12934
  }
12934
- var NODE_RELATED_COMMANDS = new Set(["pnpm", "npm", "node"]);
12935
+ var NODE_RELATED_COMMANDS = /* @__PURE__ */ new Set(["pnpm", "npm", "node"]);
12935
12936
  function dirHasNodeRelatedCommand(dir) {
12936
12937
  try {
12937
12938
  return fs_1.default.readdirSync(dir, { withFileTypes: true }).filter((entry) => !entry.isDirectory()).map(({ name }) => name.toLowerCase()).some((file) => NODE_RELATED_COMMANDS.has(file.split(".")[0]));
@@ -14352,7 +14353,7 @@ var require_ansi_styles2 = __commonJS({
14352
14353
  return styles;
14353
14354
  };
14354
14355
  function assembleStyles() {
14355
- const codes = new Map();
14356
+ const codes = /* @__PURE__ */ new Map();
14356
14357
  const styles = {
14357
14358
  modifier: {
14358
14359
  reset: [0, 0],
@@ -14602,7 +14603,7 @@ var require_templates2 = __commonJS({
14602
14603
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
14603
14604
  var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
14604
14605
  var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
14605
- var ESCAPES = new Map([
14606
+ var ESCAPES = /* @__PURE__ */ new Map([
14606
14607
  ["n", "\n"],
14607
14608
  ["r", "\r"],
14608
14609
  ["t", " "],
@@ -19438,7 +19439,7 @@ var require_detect_indent = __commonJS({
19438
19439
  var INDENT_TYPE_SPACE = "space";
19439
19440
  var INDENT_TYPE_TAB = "tab";
19440
19441
  function makeIndentsMap(string, ignoreSingleSpaces) {
19441
- const indents = new Map();
19442
+ const indents = /* @__PURE__ */ new Map();
19442
19443
  let previousSize = 0;
19443
19444
  let previousIndentType;
19444
19445
  let key;
@@ -19927,7 +19928,7 @@ in ${filePath}`;
19927
19928
  return Promise.resolve(void 0);
19928
19929
  };
19929
19930
  }
19930
- var dependencyKeys = new Set([
19931
+ var dependencyKeys = /* @__PURE__ */ new Set([
19931
19932
  "dependencies",
19932
19933
  "devDependencies",
19933
19934
  "optionalDependencies",
@@ -28385,7 +28386,7 @@ var require_distinct = __commonJS({
28385
28386
  var noop_1 = require_noop();
28386
28387
  function distinct(keySelector, flushes) {
28387
28388
  return lift_1.operate(function(source, subscriber) {
28388
- var distinctKeys = new Set();
28389
+ var distinctKeys = /* @__PURE__ */ new Set();
28389
28390
  source.subscribe(new OperatorSubscriber_1.OperatorSubscriber(subscriber, function(value) {
28390
28391
  var key = keySelector ? keySelector(value) : value;
28391
28392
  if (!distinctKeys.has(key)) {
@@ -28820,7 +28821,7 @@ var require_groupBy = __commonJS({
28820
28821
  } else {
28821
28822
  duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector;
28822
28823
  }
28823
- var groups = new Map();
28824
+ var groups = /* @__PURE__ */ new Map();
28824
28825
  var notify = function(cb) {
28825
28826
  groups.forEach(cb);
28826
28827
  cb(subscriber);
@@ -33377,7 +33378,7 @@ var require_reportLifecycleScripts = __commonJS({
33377
33378
  var ANSI_ESCAPES_LENGTH_OF_PREFIX = (0, outputConstants_1.hlValue)(" ").length - 1;
33378
33379
  function createStreamLifecycleOutput(cwd) {
33379
33380
  currentColor = 0;
33380
- const colorByPrefix = new Map();
33381
+ const colorByPrefix = /* @__PURE__ */ new Map();
33381
33382
  return streamLifecycleOutput.bind(null, colorByPrefix, cwd);
33382
33383
  }
33383
33384
  function streamLifecycleOutput(colorByPkg, cwd, logObj) {
@@ -33611,8 +33612,11 @@ var require_lib17 = __commonJS({
33611
33612
  }
33612
33613
  }
33613
33614
  for (const [peerName, issues] of Object.entries(bad)) {
33614
- for (const { parents, foundVersion, wantedRange } of issues) {
33615
- createTree(projects[projectId], parents, `${chalk_1.default.red("\u2715 unmet peer")} ${formatNameAndRange(peerName, wantedRange)}: found ${foundVersion}`);
33615
+ for (const issue of issues) {
33616
+ createTree(projects[projectId], issue.parents, formatUnmetPeerMessage({
33617
+ peerName,
33618
+ ...issue
33619
+ }));
33616
33620
  }
33617
33621
  }
33618
33622
  }
@@ -33632,10 +33636,21 @@ var require_lib17 = __commonJS({
33632
33636
  ${(0, cli_columns_1.default)(Object.entries(intersections).map(([name, version]) => formatNameAndRange(name, version)), cliColumnsOptions)}`);
33633
33637
  }
33634
33638
  const title = chalk_1.default.white(projectKey);
33635
- return `${(0, archy_1.default)(toArchyData(title, project))}${summaries.join("\n")}`;
33636
- }).join("\n\n");
33639
+ let summariesConcatenated = summaries.join("\n");
33640
+ if (summariesConcatenated) {
33641
+ summariesConcatenated += "\n";
33642
+ }
33643
+ return `${(0, archy_1.default)(toArchyData(title, project))}${summariesConcatenated}`;
33644
+ }).join("\n");
33637
33645
  }
33638
33646
  exports2.default = default_1;
33647
+ function formatUnmetPeerMessage({ foundVersion, peerName, wantedRange, resolvedFrom }) {
33648
+ const nameAndRange = formatNameAndRange(peerName, wantedRange);
33649
+ if (resolvedFrom && resolvedFrom.length > 0) {
33650
+ return `\u2715 unmet peer ${nameAndRange}: found ${foundVersion} in ${resolvedFrom[resolvedFrom.length - 1].name}`;
33651
+ }
33652
+ return `${chalk_1.default.yellowBright("\u2715 unmet peer")} ${nameAndRange}: found ${foundVersion}`;
33653
+ }
33639
33654
  function formatNameAndRange(name, range) {
33640
33655
  if (range.includes(" ") || range === "*") {
33641
33656
  return `${name}@"${range}"`;
@@ -34387,7 +34402,7 @@ var require_array_set = __commonJS({
34387
34402
  var hasNativeMap = typeof Map !== "undefined";
34388
34403
  function ArraySet() {
34389
34404
  this._array = [];
34390
- this._set = hasNativeMap ? new Map() : Object.create(null);
34405
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
34391
34406
  }
34392
34407
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
34393
34408
  var set = new ArraySet();
@@ -37020,7 +37035,7 @@ var require_reportScope = __commonJS({
37020
37035
  Object.defineProperty(exports2, "__esModule", { value: true });
37021
37036
  var Rx = __importStar2(require_cjs());
37022
37037
  var operators_1 = require_operators();
37023
- var COMMANDS_THAT_REPORT_SCOPE = new Set([
37038
+ var COMMANDS_THAT_REPORT_SCOPE = /* @__PURE__ */ new Set([
37024
37039
  "install",
37025
37040
  "link",
37026
37041
  "prune",
@@ -38538,7 +38553,7 @@ var require_lru_cache = __commonJS({
38538
38553
  if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
38539
38554
  this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
38540
38555
  }
38541
- this[CACHE] = new Map();
38556
+ this[CACHE] = /* @__PURE__ */ new Map();
38542
38557
  this[LRU_LIST] = new Yallist();
38543
38558
  this[LENGTH] = 0;
38544
38559
  }
@@ -38769,7 +38784,7 @@ var require_range2 = __commonJS({
38769
38784
  const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
38770
38785
  const rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)).filter(this.options.loose ? (comp) => !!comp.match(compRe) : () => true).map((comp) => new Comparator(comp, this.options));
38771
38786
  const l = rangeList.length;
38772
- const rangeMap = new Map();
38787
+ const rangeMap = /* @__PURE__ */ new Map();
38773
38788
  for (const comp of rangeList) {
38774
38789
  if (isNullSet(comp))
38775
38790
  return [comp];
@@ -39488,7 +39503,7 @@ var require_subset = __commonJS({
39488
39503
  else
39489
39504
  dom = [new Comparator(">=0.0.0")];
39490
39505
  }
39491
- const eqSet = new Set();
39506
+ const eqSet = /* @__PURE__ */ new Set();
39492
39507
  let gt, lt;
39493
39508
  for (const c of sub) {
39494
39509
  if (c.operator === ">" || c.operator === ">=")
@@ -39745,7 +39760,7 @@ var require_Set = __commonJS({
39745
39760
  var _includes = require_includes();
39746
39761
  var _Set = /* @__PURE__ */ function() {
39747
39762
  function _Set2() {
39748
- this._nativeSet = typeof Set === "function" ? new Set() : null;
39763
+ this._nativeSet = typeof Set === "function" ? /* @__PURE__ */ new Set() : null;
39749
39764
  this._items = {};
39750
39765
  }
39751
39766
  _Set2.prototype.add = function(item) {
@@ -39957,7 +39972,7 @@ var require_pkgsDiff = __commonJS({
39957
39972
  const deprecationSet$ = log$.deprecation.pipe((0, operators_1.filter)((log2) => log2.prefix === opts.prefix), (0, operators_1.scan)((acc, log2) => {
39958
39973
  acc.add(log2.pkgId);
39959
39974
  return acc;
39960
- }, new Set()), (0, operators_1.startWith)(new Set()));
39975
+ }, /* @__PURE__ */ new Set()), (0, operators_1.startWith)(/* @__PURE__ */ new Set()));
39961
39976
  const filterPrefix = (0, operators_1.filter)((log2) => log2.prefix === opts.prefix);
39962
39977
  const pkgsDiff$ = Rx.combineLatest(log$.root.pipe(filterPrefix), deprecationSet$).pipe((0, operators_1.scan)((pkgsDiff, args2) => {
39963
39978
  const rootLog = args2[0];
@@ -40291,7 +40306,7 @@ var require_wrap_ansi = __commonJS({
40291
40306
  var stringWidth = require_string_width();
40292
40307
  var stripAnsi = require_strip_ansi();
40293
40308
  var ansiStyles = require_ansi_styles2();
40294
- var ESCAPES = new Set([
40309
+ var ESCAPES = /* @__PURE__ */ new Set([
40295
40310
  "",
40296
40311
  "\x9B"
40297
40312
  ]);
@@ -41375,9 +41390,9 @@ var require_dist2 = __commonJS({
41375
41390
  "use strict";
41376
41391
  var mimicFn = require_mimic_fn();
41377
41392
  var mapAgeCleaner = require_dist();
41378
- var decoratorInstanceMap = new WeakMap();
41379
- var cacheStore = new WeakMap();
41380
- var mem = (fn2, { cacheKey, cache = new Map(), maxAge } = {}) => {
41393
+ var decoratorInstanceMap = /* @__PURE__ */ new WeakMap();
41394
+ var cacheStore = /* @__PURE__ */ new WeakMap();
41395
+ var mem = (fn2, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAge } = {}) => {
41381
41396
  if (typeof maxAge === "number") {
41382
41397
  mapAgeCleaner(cache);
41383
41398
  }
@@ -41873,7 +41888,7 @@ var require_onetime = __commonJS({
41873
41888
  "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) {
41874
41889
  "use strict";
41875
41890
  var mimicFn = require_mimic_fn2();
41876
- var calledFunctions = new WeakMap();
41891
+ var calledFunctions = /* @__PURE__ */ new WeakMap();
41877
41892
  var onetime = (function_, options = {}) => {
41878
41893
  if (typeof function_ !== "function") {
41879
41894
  throw new TypeError("Expected a function");
@@ -43065,7 +43080,7 @@ var require_lib19 = __commonJS({
43065
43080
  var which_1 = __importDefault(require_which2());
43066
43081
  var execa_1 = __importDefault(require_execa());
43067
43082
  var path_name_1 = __importDefault(require_path_name());
43068
- var pathCache = new Map();
43083
+ var pathCache = /* @__PURE__ */ new Map();
43069
43084
  function sync(file, args2, options) {
43070
43085
  const fileAbsolutePath = getCommandAbsolutePathSync(file, options);
43071
43086
  return execa_1.default.sync(fileAbsolutePath, args2, options);
@@ -44157,7 +44172,7 @@ var require_to_regex_range = __commonJS({
44157
44172
  let nines = 1;
44158
44173
  let zeros = 1;
44159
44174
  let stop = countNines(min, nines);
44160
- let stops = new Set([max]);
44175
+ let stops = /* @__PURE__ */ new Set([max]);
44161
44176
  while (min <= stop && stop <= max) {
44162
44177
  stops.add(stop);
44163
44178
  nines += 1;
@@ -46463,9 +46478,9 @@ var require_micromatch = __commonJS({
46463
46478
  var micromatch = (list, patterns, options) => {
46464
46479
  patterns = [].concat(patterns);
46465
46480
  list = [].concat(list);
46466
- let omit = new Set();
46467
- let keep = new Set();
46468
- let items = new Set();
46481
+ let omit = /* @__PURE__ */ new Set();
46482
+ let keep = /* @__PURE__ */ new Set();
46483
+ let items = /* @__PURE__ */ new Set();
46469
46484
  let negatives = 0;
46470
46485
  let onResult = (state) => {
46471
46486
  items.add(state.output);
@@ -46509,7 +46524,7 @@ var require_micromatch = __commonJS({
46509
46524
  micromatch.any = micromatch.isMatch;
46510
46525
  micromatch.not = (list, patterns, options = {}) => {
46511
46526
  patterns = [].concat(patterns).map(String);
46512
- let result2 = new Set();
46527
+ let result2 = /* @__PURE__ */ new Set();
46513
46528
  let items = [];
46514
46529
  let onResult = (state) => {
46515
46530
  if (options.onResult)
@@ -48050,7 +48065,7 @@ var require_sync3 = __commonJS({
48050
48065
  super(...arguments);
48051
48066
  this._scandir = fsScandir.scandirSync;
48052
48067
  this._storage = [];
48053
- this._queue = new Set();
48068
+ this._queue = /* @__PURE__ */ new Set();
48054
48069
  }
48055
48070
  read() {
48056
48071
  this._pushToQueue(this._root, this._settings.basePath);
@@ -48453,7 +48468,7 @@ var require_entry = __commonJS({
48453
48468
  constructor(_settings, _micromatchOptions) {
48454
48469
  this._settings = _settings;
48455
48470
  this._micromatchOptions = _micromatchOptions;
48456
- this.index = new Map();
48471
+ this.index = /* @__PURE__ */ new Map();
48457
48472
  }
48458
48473
  getFilter(positive, negative) {
48459
48474
  const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
@@ -51088,7 +51103,7 @@ var require_getChangedPackages = __commonJS({
51088
51103
  var _a, _b, _c;
51089
51104
  const repoRoot = path_1.default.resolve((_a = await (0, find_up_1.default)(".git", { cwd: opts.workspaceDir, type: "directory" })) !== null && _a !== void 0 ? _a : opts.workspaceDir, "..");
51090
51105
  const changedDirs = (await getChangedDirsSinceCommit(commit, opts.workspaceDir, (_b = opts.testPattern) !== null && _b !== void 0 ? _b : [], (_c = opts.changedFilesIgnorePattern) !== null && _c !== void 0 ? _c : [])).map((changedDir) => ({ ...changedDir, dir: path_1.default.join(repoRoot, changedDir.dir) }));
51091
- const pkgChangeTypes = new Map();
51106
+ const pkgChangeTypes = /* @__PURE__ */ new Map();
51092
51107
  for (const pkgDir of packageDirs) {
51093
51108
  pkgChangeTypes.set(pkgDir, void 0);
51094
51109
  }
@@ -51132,7 +51147,7 @@ var require_getChangedPackages = __commonJS({
51132
51147
  } catch (err) {
51133
51148
  throw new error_1.default("FILTER_CHANGED", `Filtering by changed packages failed. ${err.stderr}`);
51134
51149
  }
51135
- const changedDirs = new Map();
51150
+ const changedDirs = /* @__PURE__ */ new Map();
51136
51151
  if (!diff) {
51137
51152
  return [];
51138
51153
  }
@@ -51338,9 +51353,9 @@ var require_lib29 = __commonJS({
51338
51353
  async function _filterGraph(pkgGraph, opts, packageSelectors) {
51339
51354
  var _a;
51340
51355
  const cherryPickedPackages = [];
51341
- const walkedDependencies = new Set();
51342
- const walkedDependents = new Set();
51343
- const walkedDependentsDependencies = new Set();
51356
+ const walkedDependencies = /* @__PURE__ */ new Set();
51357
+ const walkedDependents = /* @__PURE__ */ new Set();
51358
+ const walkedDependentsDependencies = /* @__PURE__ */ new Set();
51344
51359
  const graph = pkgGraphToGraph(pkgGraph);
51345
51360
  const unmatchedFilters = [];
51346
51361
  let reversedGraph;
@@ -51377,7 +51392,7 @@ var require_lib29 = __commonJS({
51377
51392
  }
51378
51393
  selectEntries(selector, entryPackages);
51379
51394
  }
51380
- const walked = new Set([...walkedDependencies, ...walkedDependents, ...walkedDependentsDependencies]);
51395
+ const walked = /* @__PURE__ */ new Set([...walkedDependencies, ...walkedDependents, ...walkedDependentsDependencies]);
51381
51396
  cherryPickedPackages.forEach((cherryPickedPackage) => walked.add(cherryPickedPackage));
51382
51397
  return {
51383
51398
  selected: Array.from(walked),
@@ -51625,7 +51640,7 @@ var require_src2 = __commonJS({
51625
51640
  var require_fetch_blob = __commonJS({
51626
51641
  "../../node_modules/.pnpm/fetch-blob@2.1.2/node_modules/fetch-blob/index.js"(exports2, module2) {
51627
51642
  var { Readable } = require("stream");
51628
- var wm = new WeakMap();
51643
+ var wm = /* @__PURE__ */ new WeakMap();
51629
51644
  async function* read(parts) {
51630
51645
  for (const part of parts) {
51631
51646
  if ("stream" in part) {
@@ -52174,7 +52189,7 @@ var require_dist3 = __commonJS({
52174
52189
  }
52175
52190
  }));
52176
52191
  }
52177
- var redirectStatus = new Set([301, 302, 303, 307, 308]);
52192
+ var redirectStatus = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
52178
52193
  var isRedirect = (code) => {
52179
52194
  return redirectStatus.has(code);
52180
52195
  };
@@ -52398,7 +52413,7 @@ var require_dist3 = __commonJS({
52398
52413
  super(message2, type);
52399
52414
  }
52400
52415
  };
52401
- var supportedSchemas = new Set(["data:", "http:", "https:"]);
52416
+ var supportedSchemas = /* @__PURE__ */ new Set(["data:", "http:", "https:"]);
52402
52417
  async function fetch(url2, options_) {
52403
52418
  return new Promise((resolve, reject2) => {
52404
52419
  const request = new Request(url2, options_);
@@ -56480,7 +56495,7 @@ var require_cmd_shim = __commonJS({
56480
56495
  createCmdFile: isWindows(),
56481
56496
  fs: require("fs")
56482
56497
  };
56483
- var extensionToProgramMap = new Map([
56498
+ var extensionToProgramMap = /* @__PURE__ */ new Map([
56484
56499
  [".js", "node"],
56485
56500
  [".cjs", "node"],
56486
56501
  [".mjs", "node"],
@@ -60203,7 +60218,7 @@ var require_validateConfig = __commonJS({
60203
60218
  dataPath: (dataPath || "") + "",
60204
60219
  schemaPath: "#/additionalProperties",
60205
60220
  params: {
60206
- additionalProperty: "" + key0 + ""
60221
+ additionalProperty: "" + key0
60207
60222
  },
60208
60223
  message: "should NOT have additional properties"
60209
60224
  };
@@ -60505,7 +60520,7 @@ var require_validateConfig = __commonJS({
60505
60520
  dataPath: (dataPath || "") + "",
60506
60521
  schemaPath: "#/additionalProperties",
60507
60522
  params: {
60508
- additionalProperty: "" + key0 + ""
60523
+ additionalProperty: "" + key0
60509
60524
  },
60510
60525
  message: "should NOT have additional properties"
60511
60526
  };
@@ -60580,7 +60595,7 @@ var require_validateConfig = __commonJS({
60580
60595
  dataPath: (dataPath || "") + "",
60581
60596
  schemaPath: "#/additionalProperties",
60582
60597
  params: {
60583
- additionalProperty: "" + key0 + ""
60598
+ additionalProperty: "" + key0
60584
60599
  },
60585
60600
  message: "should NOT have additional properties"
60586
60601
  };
@@ -60801,7 +60816,7 @@ var require_validateConfig = __commonJS({
60801
60816
  dataPath: (dataPath || "") + "",
60802
60817
  schemaPath: "#/additionalProperties",
60803
60818
  params: {
60804
- additionalProperty: "" + key0 + ""
60819
+ additionalProperty: "" + key0
60805
60820
  },
60806
60821
  message: "should NOT have additional properties"
60807
60822
  };
@@ -68628,7 +68643,7 @@ var require_writeFile = __commonJS({
68628
68643
  var fs_1 = require("fs");
68629
68644
  var path_1 = __importDefault(require("path"));
68630
68645
  var graceful_fs_1 = __importDefault(require_lib14());
68631
- var dirs = new Set();
68646
+ var dirs = /* @__PURE__ */ new Set();
68632
68647
  async function default_1(fileDest, buffer, mode) {
68633
68648
  await makeDirForFile(fileDest);
68634
68649
  await graceful_fs_1.default.writeFile(fileDest, buffer, { mode });
@@ -68698,7 +68713,7 @@ var require_lib33 = __commonJS({
68698
68713
  } });
68699
68714
  var writeFile_1 = __importDefault(require_writeFile());
68700
68715
  function createCafs(cafsDir, ignore) {
68701
- const locker = new Map();
68716
+ const locker = /* @__PURE__ */ new Map();
68702
68717
  const _writeBufferToCafs = writeBufferToCafs.bind(null, locker, cafsDir);
68703
68718
  const addStream = addStreamToCafs.bind(null, _writeBufferToCafs);
68704
68719
  const addBuffer = addBufferToCafs.bind(null, _writeBufferToCafs);
@@ -71675,7 +71690,7 @@ var require_packageRequester = __commonJS({
71675
71690
  const fetchPackageToStore = fetchToStore.bind(null, {
71676
71691
  checkFilesIntegrity: cafs_1.checkFilesIntegrity.bind(null, cafsDir),
71677
71692
  fetch,
71678
- fetchingLocker: new Map(),
71693
+ fetchingLocker: /* @__PURE__ */ new Map(),
71679
71694
  getFilePathByModeInCafs: cafs_1.getFilePathByModeInCafs.bind(null, cafsDir),
71680
71695
  getFilePathInCafs,
71681
71696
  requestsQueue,
@@ -73555,7 +73570,7 @@ var require_importIndexedDir = __commonJS({
73555
73570
  }
73556
73571
  async function tryImportIndexedDir(importFile, newDir, filenames) {
73557
73572
  await (0, make_empty_dir_1.default)(newDir, { recursive: true });
73558
- const alldirs = new Set();
73573
+ const alldirs = /* @__PURE__ */ new Set();
73559
73574
  Object.keys(filenames).forEach((f) => {
73560
73575
  const dir = path_1.default.dirname(f);
73561
73576
  if (dir === ".")
@@ -73569,7 +73584,7 @@ var require_importIndexedDir = __commonJS({
73569
73584
  }));
73570
73585
  }
73571
73586
  function getUniqueFileMap(fileMap) {
73572
- const lowercaseFiles = new Map();
73587
+ const lowercaseFiles = /* @__PURE__ */ new Map();
73573
73588
  const conflictingFileNames = {};
73574
73589
  const uniqueFileMap = {};
73575
73590
  for (const filename of Object.keys(fileMap).sort()) {
@@ -73732,7 +73747,7 @@ var require_prune = __commonJS({
73732
73747
  await (0, rimraf_1.default)(path_1.default.join(storeDir, "tmp"));
73733
73748
  (0, logger_1.globalInfo)("Removed all cached metadata files");
73734
73749
  const pkgIndexFiles = [];
73735
- const removedHashes = new Set();
73750
+ const removedHashes = /* @__PURE__ */ new Set();
73736
73751
  const dirs = (await fs_1.promises.readdir(cafsDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((dir) => dir.name);
73737
73752
  let fileCounter = 0;
73738
73753
  for (const dir of dirs) {
@@ -80141,7 +80156,7 @@ var require_adm_zip = __commonJS({
80141
80156
  const getPath = (entry) => sanitize(targetPath, pth.normalize(canonical(entry.entryName.toString())));
80142
80157
  const getError = (msg, file) => new Error(msg + ': "' + file + '"');
80143
80158
  const dirEntries = [];
80144
- const fileEntries = new Set();
80159
+ const fileEntries = /* @__PURE__ */ new Set();
80145
80160
  _zip.entries.forEach((e) => {
80146
80161
  if (e.isDirectory) {
80147
80162
  dirEntries.push(e);
@@ -80762,7 +80777,7 @@ var require_stream_utils = __commonJS({
80762
80777
  var UniqueStream = class extends ObjectTransform {
80763
80778
  constructor() {
80764
80779
  super();
80765
- this._pushed = new Set();
80780
+ this._pushed = /* @__PURE__ */ new Set();
80766
80781
  }
80767
80782
  _transform(data, encoding, callback) {
80768
80783
  if (!this._pushed.has(data)) {
@@ -84514,7 +84529,7 @@ var require_parsePref = __commonJS({
84514
84529
  var fetch_1 = __importDefault(require_lib31());
84515
84530
  var graceful_git_1 = __importDefault(require_graceful_git());
84516
84531
  var hosted_git_info_1 = __importDefault(require_hosted_git_info());
84517
- var gitProtocols = new Set([
84532
+ var gitProtocols = /* @__PURE__ */ new Set([
84518
84533
  "git",
84519
84534
  "git+http",
84520
84535
  "git+https",
@@ -84898,10 +84913,10 @@ var require_mem = __commonJS({
84898
84913
  "use strict";
84899
84914
  var mimicFn = require_mimic_fn();
84900
84915
  var mapAgeCleaner = require_dist();
84901
- var cacheStore = new WeakMap();
84916
+ var cacheStore = /* @__PURE__ */ new WeakMap();
84902
84917
  var mem = (fn2, {
84903
84918
  cacheKey,
84904
- cache = new Map(),
84919
+ cache = /* @__PURE__ */ new Map(),
84905
84920
  maxAge
84906
84921
  } = {}) => {
84907
84922
  if (typeof maxAge === "number") {
@@ -84946,9 +84961,9 @@ var require_p_memoize = __commonJS({
84946
84961
  "use strict";
84947
84962
  var mem = require_mem();
84948
84963
  var mimicFn = require_mimic_fn();
84949
- var memoizedFunctions = new WeakMap();
84964
+ var memoizedFunctions = /* @__PURE__ */ new WeakMap();
84950
84965
  var pMemoize = (fn2, { cachePromiseRejection = false, ...options } = {}) => {
84951
- const cache = options.cache || new Map();
84966
+ const cache = options.cache || /* @__PURE__ */ new Map();
84952
84967
  const cacheKey = options.cacheKey || (([firstArgument]) => firstArgument);
84953
84968
  const memoized = mem(fn2, {
84954
84969
  ...options,
@@ -85186,7 +85201,7 @@ var require_pickPackage = __commonJS({
85186
85201
  return null;
85187
85202
  }
85188
85203
  }
85189
- var createdDirs = new Set();
85204
+ var createdDirs = /* @__PURE__ */ new Set();
85190
85205
  async function saveMeta(pkgMirror, meta) {
85191
85206
  const dir = path_1.default.dirname(pkgMirror);
85192
85207
  if (!createdDirs.has(dir)) {
@@ -85745,7 +85760,7 @@ var require_lib48 = __commonJS({
85745
85760
  };
85746
85761
  }
85747
85762
  exports2.default = resolveTarball;
85748
- var GIT_HOSTERS = new Set([
85763
+ var GIT_HOSTERS = /* @__PURE__ */ new Set([
85749
85764
  "github.com",
85750
85765
  "gitlab.com",
85751
85766
  "bitbucket.org"
@@ -85859,11 +85874,11 @@ var require_npm_bundled = __commonJS({
85859
85874
  this.root = this.parent.root;
85860
85875
  this.packageJsonCache = this.parent.packageJsonCache;
85861
85876
  } else {
85862
- this.result = new Set();
85877
+ this.result = /* @__PURE__ */ new Set();
85863
85878
  this.root = this.path;
85864
- this.packageJsonCache = opt.packageJsonCache || new Map();
85879
+ this.packageJsonCache = opt.packageJsonCache || /* @__PURE__ */ new Map();
85865
85880
  }
85866
- this.seen = new Set();
85881
+ this.seen = /* @__PURE__ */ new Set();
85867
85882
  this.didDone = false;
85868
85883
  this.children = 0;
85869
85884
  this.node_modules = [];
@@ -86061,7 +86076,7 @@ var require_ignore_walk = __commonJS({
86061
86076
  this.includeEmpty = !!opts.includeEmpty;
86062
86077
  this.root = this.parent ? this.parent.root : this.path;
86063
86078
  this.follow = !!opts.follow;
86064
- this.result = this.parent ? this.parent.result : new Set();
86079
+ this.result = this.parent ? this.parent.result : /* @__PURE__ */ new Set();
86065
86080
  this.entries = null;
86066
86081
  this.sawError = false;
86067
86082
  }
@@ -86310,7 +86325,7 @@ var require_npm_packlist = __commonJS({
86310
86325
  this.bundled = opt.bundled || [];
86311
86326
  this.bundledScopes = Array.from(new Set(this.bundled.filter((f) => /^@/.test(f)).map((f) => f.split("/")[0])));
86312
86327
  const rules = defaultRules.join("\n") + "\n";
86313
- this.packageJsonCache = opt.packageJsonCache || new Map();
86328
+ this.packageJsonCache = opt.packageJsonCache || /* @__PURE__ */ new Map();
86314
86329
  super.onReadIgnoreFile(rootBuiltinRules, rules, (_) => _);
86315
86330
  } else {
86316
86331
  this.bundled = [];
@@ -86375,8 +86390,8 @@ var require_npm_packlist = __commonJS({
86375
86390
  return set2;
86376
86391
  }, []);
86377
86392
  let n = patterns.length;
86378
- const set = new Set();
86379
- const negates = new Set();
86393
+ const set = /* @__PURE__ */ new Set();
86394
+ const negates = /* @__PURE__ */ new Set();
86380
86395
  const results = [];
86381
86396
  const then = (pattern, negate, er, fileList, i) => {
86382
86397
  if (er)
@@ -87762,7 +87777,7 @@ var require_lib59 = __commonJS({
87762
87777
  importers: {},
87763
87778
  lockfileVersion: semver_12.default.gt((0, comver_to_semver_1.default)(theirs.lockfileVersion.toString()), (0, comver_to_semver_1.default)(ours.lockfileVersion.toString())) ? theirs.lockfileVersion : ours.lockfileVersion
87764
87779
  };
87765
- for (const importerId of Array.from(new Set([...Object.keys(ours.importers), ...Object.keys(theirs.importers)]))) {
87780
+ for (const importerId of Array.from(/* @__PURE__ */ new Set([...Object.keys(ours.importers), ...Object.keys(theirs.importers)]))) {
87766
87781
  newLockfile.importers[importerId] = {
87767
87782
  specifiers: {}
87768
87783
  };
@@ -87775,7 +87790,7 @@ var require_lib59 = __commonJS({
87775
87790
  newLockfile.importers[importerId].specifiers = mergeDict((_f = (_e = ours.importers[importerId]) === null || _e === void 0 ? void 0 : _e.specifiers) !== null && _f !== void 0 ? _f : {}, (_h = (_g = theirs.importers[importerId]) === null || _g === void 0 ? void 0 : _g.specifiers) !== null && _h !== void 0 ? _h : {}, takeChangedValue);
87776
87791
  }
87777
87792
  const packages = {};
87778
- for (const depPath of Array.from(new Set([...Object.keys((_j = ours.packages) !== null && _j !== void 0 ? _j : {}), ...Object.keys((_k = theirs.packages) !== null && _k !== void 0 ? _k : {})]))) {
87793
+ for (const depPath of Array.from(/* @__PURE__ */ new Set([...Object.keys((_j = ours.packages) !== null && _j !== void 0 ? _j : {}), ...Object.keys((_k = theirs.packages) !== null && _k !== void 0 ? _k : {})]))) {
87779
87794
  const ourPkg = (_l = ours.packages) === null || _l === void 0 ? void 0 : _l[depPath];
87780
87795
  const theirPkg = (_m = theirs.packages) === null || _m === void 0 ? void 0 : _m[depPath];
87781
87796
  const pkg = {
@@ -88899,7 +88914,7 @@ var require_validateConfig2 = __commonJS({
88899
88914
  dataPath: (dataPath || "") + "",
88900
88915
  schemaPath: "#/additionalProperties",
88901
88916
  params: {
88902
- additionalProperty: "" + key0 + ""
88917
+ additionalProperty: "" + key0
88903
88918
  },
88904
88919
  message: "should NOT have additional properties"
88905
88920
  };
@@ -89201,7 +89216,7 @@ var require_validateConfig2 = __commonJS({
89201
89216
  dataPath: (dataPath || "") + "",
89202
89217
  schemaPath: "#/additionalProperties",
89203
89218
  params: {
89204
- additionalProperty: "" + key0 + ""
89219
+ additionalProperty: "" + key0
89205
89220
  },
89206
89221
  message: "should NOT have additional properties"
89207
89222
  };
@@ -89276,7 +89291,7 @@ var require_validateConfig2 = __commonJS({
89276
89291
  dataPath: (dataPath || "") + "",
89277
89292
  schemaPath: "#/additionalProperties",
89278
89293
  params: {
89279
- additionalProperty: "" + key0 + ""
89294
+ additionalProperty: "" + key0
89280
89295
  },
89281
89296
  message: "should NOT have additional properties"
89282
89297
  };
@@ -89497,7 +89512,7 @@ var require_validateConfig2 = __commonJS({
89497
89512
  dataPath: (dataPath || "") + "",
89498
89513
  schemaPath: "#/additionalProperties",
89499
89514
  params: {
89500
- additionalProperty: "" + key0 + ""
89515
+ additionalProperty: "" + key0
89501
89516
  },
89502
89517
  message: "should NOT have additional properties"
89503
89518
  };
@@ -92654,7 +92669,7 @@ var require_copyPromise = __commonJS({
92654
92669
  }
92655
92670
  return updated;
92656
92671
  }
92657
- var isCloneSupportedCache = new WeakMap();
92672
+ var isCloneSupportedCache = /* @__PURE__ */ new WeakMap();
92658
92673
  function makeLinkOperation(opFs, destination, source, sourceStat, linkStrategy) {
92659
92674
  return async () => {
92660
92675
  await opFs.linkPromise(source, destination);
@@ -93646,7 +93661,7 @@ var require_CustomStatWatcher = __commonJS({
93646
93661
  constructor(fakeFs, path2, { bigint = false } = {}) {
93647
93662
  super();
93648
93663
  this.status = Status.Ready;
93649
- this.changeListeners = new Map();
93664
+ this.changeListeners = /* @__PURE__ */ new Map();
93650
93665
  this.startTimeout = null;
93651
93666
  this.fakeFs = fakeFs;
93652
93667
  this.path = path2;
@@ -93737,7 +93752,7 @@ var require_watchFile = __commonJS({
93737
93752
  Object.defineProperty(exports2, "__esModule", { value: true });
93738
93753
  exports2.unwatchAllFiles = exports2.unwatchFile = exports2.watchFile = void 0;
93739
93754
  var CustomStatWatcher_1 = require_CustomStatWatcher();
93740
- var statWatchersByFakeFS = new WeakMap();
93755
+ var statWatchersByFakeFS = /* @__PURE__ */ new WeakMap();
93741
93756
  function watchFile(fakeFs, path2, a, b) {
93742
93757
  let bigint;
93743
93758
  let persistent;
@@ -93765,7 +93780,7 @@ var require_watchFile = __commonJS({
93765
93780
  }
93766
93781
  let statWatchers = statWatchersByFakeFS.get(fakeFs);
93767
93782
  if (typeof statWatchers === `undefined`)
93768
- statWatchersByFakeFS.set(fakeFs, statWatchers = new Map());
93783
+ statWatchersByFakeFS.set(fakeFs, statWatchers = /* @__PURE__ */ new Map());
93769
93784
  let statWatcher = statWatchers.get(path2);
93770
93785
  if (typeof statWatcher === `undefined`) {
93771
93786
  statWatcher = CustomStatWatcher_1.CustomStatWatcher.create(fakeFs, path2, { bigint });
@@ -93869,10 +93884,10 @@ var require_ZipFS = __commonJS({
93869
93884
  constructor(source, opts) {
93870
93885
  super();
93871
93886
  this.lzSource = null;
93872
- this.listings = new Map();
93873
- this.entries = new Map();
93874
- this.fileSources = new Map();
93875
- this.fds = new Map();
93887
+ this.listings = /* @__PURE__ */ new Map();
93888
+ this.entries = /* @__PURE__ */ new Map();
93889
+ this.fileSources = /* @__PURE__ */ new Map();
93890
+ this.fds = /* @__PURE__ */ new Map();
93876
93891
  this.nextFd = 0;
93877
93892
  this.ready = false;
93878
93893
  this.readOnly = false;
@@ -93934,7 +93949,7 @@ var require_ZipFS = __commonJS({
93934
93949
  } finally {
93935
93950
  this.libzip.free(errPtr);
93936
93951
  }
93937
- this.listings.set(path_1.PortablePath.root, new Set());
93952
+ this.listings.set(path_1.PortablePath.root, /* @__PURE__ */ new Set());
93938
93953
  const entryCount = this.libzip.getNumEntries(this.zip, 0);
93939
93954
  for (let t = 0; t < entryCount; ++t) {
93940
93955
  const raw = this.libzip.getName(this.zip, t, 0);
@@ -94324,7 +94339,7 @@ var require_ZipFS = __commonJS({
94324
94339
  if (listing)
94325
94340
  return listing;
94326
94341
  const parentListing = this.registerListing(path_1.ppath.dirname(p));
94327
- listing = new Set();
94342
+ listing = /* @__PURE__ */ new Set();
94328
94343
  parentListing.add(path_1.ppath.basename(p));
94329
94344
  this.listings.set(p, listing);
94330
94345
  return listing;
@@ -95628,15 +95643,15 @@ var require_ZipOpenFS = __commonJS({
95628
95643
  var ZipOpenFS = class extends FakeFS_1.BasePortableFakeFS {
95629
95644
  constructor({ libzip, baseFs = new NodeFS_1.NodeFS(), filter: filter2 = null, maxOpenFiles = Infinity, readOnlyArchives = false, useCache = true, maxAge = 5e3, fileExtensions = null }) {
95630
95645
  super();
95631
- this.fdMap = new Map();
95646
+ this.fdMap = /* @__PURE__ */ new Map();
95632
95647
  this.nextFd = 3;
95633
- this.isZip = new Set();
95634
- this.notZip = new Set();
95635
- this.realPaths = new Map();
95648
+ this.isZip = /* @__PURE__ */ new Set();
95649
+ this.notZip = /* @__PURE__ */ new Set();
95650
+ this.realPaths = /* @__PURE__ */ new Map();
95636
95651
  this.limitOpenFilesTimeout = null;
95637
95652
  this.libzipFactory = typeof libzip !== `function` ? () => libzip : libzip;
95638
95653
  this.baseFs = baseFs;
95639
- this.zipInstances = useCache ? new Map() : null;
95654
+ this.zipInstances = useCache ? /* @__PURE__ */ new Map() : null;
95640
95655
  this.filter = filter2;
95641
95656
  this.maxOpenFiles = maxOpenFiles;
95642
95657
  this.readOnlyArchives = readOnlyArchives;
@@ -96442,7 +96457,7 @@ var require_patchFs = __commonJS({
96442
96457
  exports2.extendFs = exports2.patchFs = void 0;
96443
96458
  var util_1 = require("util");
96444
96459
  var URLFS_1 = require_URLFS();
96445
- var SYNC_IMPLEMENTATIONS = new Set([
96460
+ var SYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
96446
96461
  `accessSync`,
96447
96462
  `appendFileSync`,
96448
96463
  `createReadStream`,
@@ -96477,7 +96492,7 @@ var require_patchFs = __commonJS({
96477
96492
  `writeFileSync`,
96478
96493
  `writeSync`
96479
96494
  ]);
96480
- var ASYNC_IMPLEMENTATIONS = new Set([
96495
+ var ASYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
96481
96496
  `accessPromise`,
96482
96497
  `appendFilePromise`,
96483
96498
  `chmodPromise`,
@@ -96506,7 +96521,7 @@ var require_patchFs = __commonJS({
96506
96521
  `writeFilePromise`,
96507
96522
  `writeSync`
96508
96523
  ]);
96509
- var FILEHANDLE_IMPLEMENTATIONS = new Set([
96524
+ var FILEHANDLE_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
96510
96525
  `appendFilePromise`,
96511
96526
  `chmodPromise`,
96512
96527
  `chownPromise`,
@@ -96669,7 +96684,7 @@ var require_xfs = __commonJS({
96669
96684
  const hash = Math.ceil(Math.random() * 4294967296).toString(16).padStart(8, `0`);
96670
96685
  return path_1.ppath.join(tmpdir, `${prefix}${hash}`);
96671
96686
  }
96672
- var tmpdirs = new Set();
96687
+ var tmpdirs = /* @__PURE__ */ new Set();
96673
96688
  var cleanExitRegistered = false;
96674
96689
  function registerCleanExit() {
96675
96690
  if (cleanExitRegistered)
@@ -102489,7 +102504,7 @@ var require_lib69 = __commonJS({
102489
102504
  newState.variables = { ...state.variables, ...mergeWith.variables };
102490
102505
  return newState;
102491
102506
  }
102492
- var BUILTINS = new Map([
102507
+ var BUILTINS = /* @__PURE__ */ new Map([
102493
102508
  [`cd`, async ([target = os_1.homedir(), ...rest], opts, state) => {
102494
102509
  const resolvedTarget = fslib_12.ppath.resolve(state.cwd, fslib_12.npath.toPortablePath(target));
102495
102510
  const stat = await opts.baseFs.statPromise(resolvedTarget);
@@ -102765,7 +102780,7 @@ var require_lib69 = __commonJS({
102765
102780
  }
102766
102781
  }
102767
102782
  async function interpolateArguments(commandArgs, opts, state) {
102768
- const redirections = new Map();
102783
+ const redirections = /* @__PURE__ */ new Map();
102769
102784
  const interpolated = [];
102770
102785
  let interpolatedSegments = [];
102771
102786
  const push = (segment) => {
@@ -103634,7 +103649,7 @@ var require_npm_lifecycle = __commonJS({
103634
103649
  DEFAULT_NODE_GYP_PATH = resolveFrom(__dirname, "node-gyp/bin/node-gyp");
103635
103650
  } catch (err) {
103636
103651
  }
103637
- var hookStatCache = new Map();
103652
+ var hookStatCache = /* @__PURE__ */ new Map();
103638
103653
  var PATH = "PATH";
103639
103654
  if (process.platform === "win32") {
103640
103655
  PATH = "Path";
@@ -104131,7 +104146,7 @@ var require_runLifecycleHooksConcurrently = __commonJS({
104131
104146
  var run_groups_1 = __importDefault(require_lib70());
104132
104147
  var runLifecycleHook_1 = __importDefault(require_runLifecycleHook());
104133
104148
  async function runLifecycleHooksConcurrently(stages, importers, childConcurrency, opts) {
104134
- const importersByBuildIndex = new Map();
104149
+ const importersByBuildIndex = /* @__PURE__ */ new Map();
104135
104150
  for (const importer of importers) {
104136
104151
  if (!importersByBuildIndex.has(importer.buildIndex)) {
104137
104152
  importersByBuildIndex.set(importer.buildIndex, [importer]);
@@ -104844,15 +104859,15 @@ var require_lib74 = __commonJS({
104844
104859
  }
104845
104860
  async function linkBin(cmd, binsDir, opts) {
104846
104861
  const externalBinPath = path_1.default.join(binsDir, cmd.name);
104847
- let nodePath;
104848
- if ((opts === null || opts === void 0 ? void 0 : opts.extendNodePath) !== false) {
104849
- nodePath = await getBinNodePaths(cmd.path);
104850
- const binsParentDir = path_1.default.dirname(binsDir);
104851
- if (path_1.default.relative(cmd.path, binsParentDir) !== "") {
104852
- nodePath = (0, union_1.default)(nodePath, await getBinNodePaths(binsParentDir));
104853
- }
104854
- }
104855
104862
  try {
104863
+ let nodePath;
104864
+ if ((opts === null || opts === void 0 ? void 0 : opts.extendNodePath) !== false) {
104865
+ nodePath = await getBinNodePaths(cmd.path);
104866
+ const binsParentDir = path_1.default.dirname(binsDir);
104867
+ if (path_1.default.relative(cmd.path, binsParentDir) !== "") {
104868
+ nodePath = (0, union_1.default)(nodePath, await getBinNodePaths(binsParentDir));
104869
+ }
104870
+ }
104856
104871
  await (0, cmd_shim_1.default)(cmd.path, externalBinPath, {
104857
104872
  createPwshFile: cmd.makePowerShellShim,
104858
104873
  nodePath,
@@ -106193,7 +106208,7 @@ var require_get_intrinsic = __commonJS({
106193
106208
  "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
106194
106209
  "%JSON%": typeof JSON === "object" ? JSON : undefined2,
106195
106210
  "%Map%": typeof Map === "undefined" ? undefined2 : Map,
106196
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto(new Map()[Symbol.iterator]()),
106211
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
106197
106212
  "%Math%": Math,
106198
106213
  "%Number%": Number,
106199
106214
  "%Object%": Object,
@@ -106206,7 +106221,7 @@ var require_get_intrinsic = __commonJS({
106206
106221
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
106207
106222
  "%RegExp%": RegExp,
106208
106223
  "%Set%": typeof Set === "undefined" ? undefined2 : Set,
106209
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto(new Set()[Symbol.iterator]()),
106224
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
106210
106225
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
106211
106226
  "%String%": String,
106212
106227
  "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
@@ -107217,12 +107232,12 @@ var require_graph_sequencer = __commonJS({
107217
107232
  let cycles = [];
107218
107233
  let safe = true;
107219
107234
  let queue = graphItems;
107220
- let chunked = new Set();
107221
- let visited = new Map();
107235
+ let chunked = /* @__PURE__ */ new Set();
107236
+ let visited = /* @__PURE__ */ new Map();
107222
107237
  while (queue.length) {
107223
107238
  let nextQueue = [];
107224
107239
  let chunk = [];
107225
- let currDepsMap = new Map();
107240
+ let currDepsMap = /* @__PURE__ */ new Map();
107226
107241
  for (let i = 0; i < queue.length; i++) {
107227
107242
  let item = queue[i];
107228
107243
  let deps = graph.get(item);
@@ -107536,10 +107551,10 @@ var require_implementation4 = __commonJS({
107536
107551
  var limitLinking = (0, p_limit_1.default)(16);
107537
107552
  async function _rebuild(ctx, opts) {
107538
107553
  var _a;
107539
- const pkgsThatWereRebuilt = new Set();
107540
- const graph = new Map();
107554
+ const pkgsThatWereRebuilt = /* @__PURE__ */ new Set();
107555
+ const graph = /* @__PURE__ */ new Map();
107541
107556
  const pkgSnapshots = (_a = ctx.currentLockfile.packages) !== null && _a !== void 0 ? _a : {};
107542
- const nodesToBuildAndTransitive = new Set();
107557
+ const nodesToBuildAndTransitive = /* @__PURE__ */ new Set();
107543
107558
  getSubgraphToBuild((0, lockfile_walker_1.default)(ctx.currentLockfile, ctx.projects.map(({ id }) => id), {
107544
107559
  include: {
107545
107560
  dependencies: opts.production,
@@ -108101,7 +108116,7 @@ var require_prune2 = __commonJS({
108101
108116
  const currentPkgs = Object.entries(mergeDependencies(currentImporter));
108102
108117
  const wantedPkgs = Object.entries(mergeDependencies(wantedLockfile.importers[id]));
108103
108118
  const allCurrentPackages = new Set(pruneDirectDependencies === true || (removePackages === null || removePackages === void 0 ? void 0 : removePackages.length) ? (_a2 = await (0, read_modules_dir_1.default)(modulesDir)) !== null && _a2 !== void 0 ? _a2 : [] : []);
108104
- const depsToRemove = new Set([
108119
+ const depsToRemove = /* @__PURE__ */ new Set([
108105
108120
  ...(removePackages !== null && removePackages !== void 0 ? removePackages : []).filter((removePackage) => allCurrentPackages.has(removePackage)),
108106
108121
  ...(0, difference_1.default)(currentPkgs, wantedPkgs).map(([depName]) => depName)
108107
108122
  ]);
@@ -108164,7 +108179,7 @@ var require_prune2 = __commonJS({
108164
108179
  if (opts.pruneVirtualStore !== false) {
108165
108180
  const _tryRemovePkg = tryRemovePkg.bind(null, opts.lockfileDir, opts.virtualStoreDir);
108166
108181
  await Promise.all(orphanDepPaths.map((orphanDepPath) => (0, dependency_path_1.depPathToFilename)(orphanDepPath, opts.lockfileDir)).map(async (orphanDepPath) => _tryRemovePkg(orphanDepPath)));
108167
- const neededPkgs = new Set();
108182
+ const neededPkgs = /* @__PURE__ */ new Set();
108168
108183
  for (const depPath of Object.keys((_c = opts.wantedLockfile.packages) !== null && _c !== void 0 ? _c : {})) {
108169
108184
  if (opts.skipped.has(depPath))
108170
108185
  continue;
@@ -108376,10 +108391,10 @@ var require_lib83 = __commonJS({
108376
108391
  const copiedSnapshots = {};
108377
108392
  const ctx = {
108378
108393
  copiedSnapshots,
108379
- nonOptional: new Set(),
108380
- notProdOnly: new Set(),
108394
+ nonOptional: /* @__PURE__ */ new Set(),
108395
+ notProdOnly: /* @__PURE__ */ new Set(),
108381
108396
  originalPackages,
108382
- walked: new Set(),
108397
+ walked: /* @__PURE__ */ new Set(),
108383
108398
  warn: opts.warn
108384
108399
  };
108385
108400
  copyDependencySubGraph(ctx, opts.devDepPaths, {
@@ -108936,8 +108951,8 @@ var require_lib85 = __commonJS({
108936
108951
  exports2.default = async (depGraph, rootDepPaths, opts) => {
108937
108952
  var _a;
108938
108953
  const warn = (message2) => logger_1.default.warn({ message: message2, prefix: opts.lockfileDir });
108939
- const nodesToBuild = new Set();
108940
- getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, new Set());
108954
+ const nodesToBuild = /* @__PURE__ */ new Set();
108955
+ getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
108941
108956
  const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
108942
108957
  const nodesToBuildArray = Array.from(nodesToBuild);
108943
108958
  const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
@@ -109473,7 +109488,7 @@ var require_lib87 = __commonJS({
109473
109488
  });
109474
109489
  }
109475
109490
  function generateFallbackExclusionList(settings) {
109476
- const fallbackExclusionList = new Map();
109491
+ const fallbackExclusionList = /* @__PURE__ */ new Map();
109477
109492
  const sortedData = sortMap2(settings.fallbackExclusionList || [], [({
109478
109493
  name,
109479
109494
  reference
@@ -109487,7 +109502,7 @@ var require_lib87 = __commonJS({
109487
109502
  } of sortedData) {
109488
109503
  let references = fallbackExclusionList.get(name);
109489
109504
  if (typeof references === `undefined`)
109490
- fallbackExclusionList.set(name, references = new Set());
109505
+ fallbackExclusionList.set(name, references = /* @__PURE__ */ new Set());
109491
109506
  references.add(reference);
109492
109507
  }
109493
109508
  return Array.from(fallbackExclusionList).map(([name, references]) => {
@@ -109691,8 +109706,8 @@ var require_lib87 = __commonJS({
109691
109706
  }];
109692
109707
  }))];
109693
109708
  }));
109694
- const packageLocatorsByLocations = new Map();
109695
- const packageLocationLengths = new Set();
109709
+ const packageLocatorsByLocations = /* @__PURE__ */ new Map();
109710
+ const packageLocationLengths = /* @__PURE__ */ new Set();
109696
109711
  for (const [packageName, storeData] of data.packageRegistryData) {
109697
109712
  for (const [packageReference, packageInformationData] of storeData) {
109698
109713
  if (packageName === null !== (packageReference === null))
@@ -110948,7 +110963,7 @@ var require_lib87 = __commonJS({
110948
110963
  ErrorCode2["UNDECLARED_DEPENDENCY"] = "UNDECLARED_DEPENDENCY";
110949
110964
  ErrorCode2["UNSUPPORTED"] = "UNSUPPORTED";
110950
110965
  })(ErrorCode || (ErrorCode = {}));
110951
- const MODULE_NOT_FOUND_ERRORS = new Set([ErrorCode.BLACKLISTED, ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED, ErrorCode.MISSING_DEPENDENCY, ErrorCode.MISSING_PEER_DEPENDENCY, ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED, ErrorCode.UNDECLARED_DEPENDENCY]);
110966
+ const MODULE_NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([ErrorCode.BLACKLISTED, ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED, ErrorCode.MISSING_DEPENDENCY, ErrorCode.MISSING_PEER_DEPENDENCY, ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED, ErrorCode.UNDECLARED_DEPENDENCY]);
110952
110967
  function internalTools_makeError(pnpCode, message2, data = {}) {
110953
110968
  const code = MODULE_NOT_FOUND_ERRORS.has(pnpCode) ? `MODULE_NOT_FOUND` : pnpCode;
110954
110969
  const propertySpec = {
@@ -110992,7 +111007,7 @@ var require_lib87 = __commonJS({
110992
111007
  reference: null
110993
111008
  };
110994
111009
  const fallbackLocators = [];
110995
- const emittedWarnings = new Set();
111010
+ const emittedWarnings = /* @__PURE__ */ new Set();
110996
111011
  if (runtimeState.enableTopLevelFallback === true)
110997
111012
  fallbackLocators.push(topLevelLocator);
110998
111013
  if (opts.compatibilityMode !== false) {
@@ -111193,8 +111208,8 @@ var require_lib87 = __commonJS({
111193
111208
  return dependents;
111194
111209
  }
111195
111210
  function findBrokenPeerDependencies(dependency, initialPackage) {
111196
- const brokenPackages = new Map();
111197
- const alreadyVisited = new Set();
111211
+ const brokenPackages = /* @__PURE__ */ new Map();
111212
+ const alreadyVisited = /* @__PURE__ */ new Set();
111198
111213
  const traversal = (currentPackage) => {
111199
111214
  const identifier = JSON.stringify(currentPackage.name);
111200
111215
  if (alreadyVisited.has(identifier))
@@ -111208,7 +111223,7 @@ var require_lib87 = __commonJS({
111208
111223
  } else {
111209
111224
  let brokenSet = brokenPackages.get(dependent.name);
111210
111225
  if (typeof brokenSet === `undefined`)
111211
- brokenPackages.set(dependent.name, brokenSet = new Set());
111226
+ brokenPackages.set(dependent.name, brokenSet = /* @__PURE__ */ new Set());
111212
111227
  brokenSet.add(dependent.reference);
111213
111228
  }
111214
111229
  }
@@ -111748,11 +111763,11 @@ var require_lib88 = __commonJS({
111748
111763
  exports2.writePnpFile = writePnpFile;
111749
111764
  function lockfileToPackageRegistry(lockfile, opts) {
111750
111765
  var _a;
111751
- const packageRegistry = new Map();
111766
+ const packageRegistry = /* @__PURE__ */ new Map();
111752
111767
  for (const importerId of Object.keys(lockfile.importers)) {
111753
111768
  const importer = lockfile.importers[importerId];
111754
111769
  if (importerId === ".") {
111755
- const packageStore = new Map([
111770
+ const packageStore = /* @__PURE__ */ new Map([
111756
111771
  [
111757
111772
  null,
111758
111773
  {
@@ -111768,7 +111783,7 @@ var require_lib88 = __commonJS({
111768
111783
  packageRegistry.set(null, packageStore);
111769
111784
  } else {
111770
111785
  const name = opts.importerNames[importerId];
111771
- const packageStore = new Map([
111786
+ const packageStore = /* @__PURE__ */ new Map([
111772
111787
  [
111773
111788
  importerId,
111774
111789
  {
@@ -111790,7 +111805,7 @@ var require_lib88 = __commonJS({
111790
111805
  const pnpVersion = toPnPVersion(version, peersSuffix);
111791
111806
  let packageStore = packageRegistry.get(name);
111792
111807
  if (!packageStore) {
111793
- packageStore = new Map();
111808
+ packageStore = /* @__PURE__ */ new Map();
111794
111809
  packageRegistry.set(name, packageStore);
111795
111810
  }
111796
111811
  let packageLocation = (0, normalize_path_1.default)(path_1.default.relative(opts.lockfileDir, path_1.default.join(opts.virtualStoreDir, (0, dependency_path_1.depPathToFilename)(relDepPath, opts.lockfileDir), "node_modules", name)));
@@ -111831,6 +111846,206 @@ var require_lib88 = __commonJS({
111831
111846
  }
111832
111847
  });
111833
111848
 
111849
+ // ../headless/lib/lockfileToDepGraph.js
111850
+ var require_lockfileToDepGraph = __commonJS({
111851
+ "../headless/lib/lockfileToDepGraph.js"(exports2) {
111852
+ "use strict";
111853
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
111854
+ if (k2 === void 0)
111855
+ k2 = k;
111856
+ Object.defineProperty(o, k2, { enumerable: true, get: function() {
111857
+ return m[k];
111858
+ } });
111859
+ } : function(o, m, k, k2) {
111860
+ if (k2 === void 0)
111861
+ k2 = k;
111862
+ o[k2] = m[k];
111863
+ });
111864
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
111865
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
111866
+ } : function(o, v) {
111867
+ o["default"] = v;
111868
+ });
111869
+ var __importStar2 = exports2 && exports2.__importStar || function(mod) {
111870
+ if (mod && mod.__esModule)
111871
+ return mod;
111872
+ var result2 = {};
111873
+ if (mod != null) {
111874
+ for (var k in mod)
111875
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
111876
+ __createBinding2(result2, mod, k);
111877
+ }
111878
+ __setModuleDefault2(result2, mod);
111879
+ return result2;
111880
+ };
111881
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
111882
+ return mod && mod.__esModule ? mod : { "default": mod };
111883
+ };
111884
+ Object.defineProperty(exports2, "__esModule", { value: true });
111885
+ var path_1 = __importDefault(require("path"));
111886
+ var constants_1 = require_lib7();
111887
+ var core_loggers_1 = require_lib10();
111888
+ var lockfile_utils_1 = require_lib56();
111889
+ var logger_1 = __importDefault(require_lib6());
111890
+ var package_is_installable_1 = __importDefault(require_lib20());
111891
+ var dp = __importStar2(require_lib35());
111892
+ var path_exists_1 = __importDefault(require_path_exists());
111893
+ var equals_1 = __importDefault(require_equals2());
111894
+ var brokenModulesLogger = (0, logger_1.default)("_broken_node_modules");
111895
+ async function lockfileToDepGraph(lockfile, currentLockfile, opts) {
111896
+ var _a;
111897
+ const currentPackages = (_a = currentLockfile === null || currentLockfile === void 0 ? void 0 : currentLockfile.packages) !== null && _a !== void 0 ? _a : {};
111898
+ const graph = {};
111899
+ const directDependenciesByImporterId = {};
111900
+ if (lockfile.packages != null) {
111901
+ const pkgSnapshotByLocation = {};
111902
+ await Promise.all(Object.keys(lockfile.packages).map(async (depPath) => {
111903
+ var _a2;
111904
+ if (opts.skipped.has(depPath))
111905
+ return;
111906
+ const pkgSnapshot = lockfile.packages[depPath];
111907
+ const { name: pkgName, version: pkgVersion } = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
111908
+ const modules = path_1.default.join(opts.virtualStoreDir, dp.depPathToFilename(depPath, opts.lockfileDir), "node_modules");
111909
+ const packageId = (0, lockfile_utils_1.packageIdFromSnapshot)(depPath, pkgSnapshot, opts.registries);
111910
+ const pkg = {
111911
+ name: pkgName,
111912
+ version: pkgVersion,
111913
+ engines: pkgSnapshot.engines,
111914
+ cpu: pkgSnapshot.cpu,
111915
+ os: pkgSnapshot.os
111916
+ };
111917
+ if (!opts.force && (0, package_is_installable_1.default)(packageId, pkg, {
111918
+ engineStrict: opts.engineStrict,
111919
+ lockfileDir: opts.lockfileDir,
111920
+ nodeVersion: opts.nodeVersion,
111921
+ optional: pkgSnapshot.optional === true,
111922
+ pnpmVersion: opts.pnpmVersion
111923
+ }) === false) {
111924
+ opts.skipped.add(depPath);
111925
+ return;
111926
+ }
111927
+ const dir = path_1.default.join(modules, pkgName);
111928
+ if (currentPackages[depPath] && (0, equals_1.default)(currentPackages[depPath].dependencies, lockfile.packages[depPath].dependencies) && (0, equals_1.default)(currentPackages[depPath].optionalDependencies, lockfile.packages[depPath].optionalDependencies)) {
111929
+ if (await (0, path_exists_1.default)(dir)) {
111930
+ return;
111931
+ }
111932
+ brokenModulesLogger.debug({
111933
+ missing: dir
111934
+ });
111935
+ }
111936
+ const resolution = (0, lockfile_utils_1.pkgSnapshotToResolution)(depPath, pkgSnapshot, opts.registries);
111937
+ core_loggers_1.progressLogger.debug({
111938
+ packageId,
111939
+ requester: opts.lockfileDir,
111940
+ status: "resolved"
111941
+ });
111942
+ let fetchResponse;
111943
+ try {
111944
+ fetchResponse = opts.storeController.fetchPackage({
111945
+ force: false,
111946
+ lockfileDir: opts.lockfileDir,
111947
+ pkg: {
111948
+ name: pkgName,
111949
+ version: pkgVersion,
111950
+ id: packageId,
111951
+ resolution
111952
+ }
111953
+ });
111954
+ if (fetchResponse instanceof Promise)
111955
+ fetchResponse = await fetchResponse;
111956
+ } catch (err) {
111957
+ if (pkgSnapshot.optional)
111958
+ return;
111959
+ throw err;
111960
+ }
111961
+ fetchResponse.files().then(({ fromStore }) => {
111962
+ core_loggers_1.progressLogger.debug({
111963
+ packageId,
111964
+ requester: opts.lockfileDir,
111965
+ status: fromStore ? "found_in_store" : "fetched"
111966
+ });
111967
+ }).catch(() => {
111968
+ });
111969
+ graph[dir] = {
111970
+ children: {},
111971
+ depPath,
111972
+ dir,
111973
+ fetchingFiles: fetchResponse.files,
111974
+ filesIndexFile: fetchResponse.filesIndexFile,
111975
+ finishing: fetchResponse.finishing,
111976
+ hasBin: pkgSnapshot.hasBin === true,
111977
+ hasBundledDependencies: pkgSnapshot.bundledDependencies != null,
111978
+ modules,
111979
+ name: pkgName,
111980
+ optional: !!pkgSnapshot.optional,
111981
+ optionalDependencies: new Set(Object.keys((_a2 = pkgSnapshot.optionalDependencies) !== null && _a2 !== void 0 ? _a2 : {})),
111982
+ prepare: pkgSnapshot.prepare === true,
111983
+ requiresBuild: pkgSnapshot.requiresBuild === true
111984
+ };
111985
+ pkgSnapshotByLocation[dir] = pkgSnapshot;
111986
+ }));
111987
+ const ctx = {
111988
+ force: opts.force,
111989
+ graph,
111990
+ lockfileDir: opts.lockfileDir,
111991
+ pkgSnapshotsByDepPaths: lockfile.packages,
111992
+ registries: opts.registries,
111993
+ sideEffectsCacheRead: opts.sideEffectsCacheRead,
111994
+ skipped: opts.skipped,
111995
+ storeController: opts.storeController,
111996
+ storeDir: opts.storeDir,
111997
+ virtualStoreDir: opts.virtualStoreDir
111998
+ };
111999
+ for (const dir of Object.keys(graph)) {
112000
+ const pkgSnapshot = pkgSnapshotByLocation[dir];
112001
+ const allDeps = {
112002
+ ...pkgSnapshot.dependencies,
112003
+ ...opts.include.optionalDependencies ? pkgSnapshot.optionalDependencies : {}
112004
+ };
112005
+ const peerDeps = pkgSnapshot.peerDependencies ? new Set(Object.keys(pkgSnapshot.peerDependencies)) : null;
112006
+ graph[dir].children = await getChildrenPaths(ctx, allDeps, peerDeps, ".");
112007
+ }
112008
+ for (const importerId of opts.importerIds) {
112009
+ const projectSnapshot = lockfile.importers[importerId];
112010
+ const rootDeps = {
112011
+ ...opts.include.devDependencies ? projectSnapshot.devDependencies : {},
112012
+ ...opts.include.dependencies ? projectSnapshot.dependencies : {},
112013
+ ...opts.include.optionalDependencies ? projectSnapshot.optionalDependencies : {}
112014
+ };
112015
+ directDependenciesByImporterId[importerId] = await getChildrenPaths(ctx, rootDeps, null, importerId);
112016
+ }
112017
+ }
112018
+ return { graph, directDependenciesByImporterId };
112019
+ }
112020
+ exports2.default = lockfileToDepGraph;
112021
+ async function getChildrenPaths(ctx, allDeps, peerDeps, importerId) {
112022
+ const children = {};
112023
+ for (const alias of Object.keys(allDeps)) {
112024
+ const childDepPath = dp.refToAbsolute(allDeps[alias], alias, ctx.registries);
112025
+ if (childDepPath === null) {
112026
+ children[alias] = path_1.default.resolve(ctx.lockfileDir, importerId, allDeps[alias].substr(5));
112027
+ continue;
112028
+ }
112029
+ const childRelDepPath = dp.refToRelative(allDeps[alias], alias);
112030
+ const childPkgSnapshot = ctx.pkgSnapshotsByDepPaths[childRelDepPath];
112031
+ if (ctx.graph[childRelDepPath]) {
112032
+ children[alias] = ctx.graph[childRelDepPath].dir;
112033
+ } else if (childPkgSnapshot) {
112034
+ if (ctx.skipped.has(childRelDepPath))
112035
+ continue;
112036
+ const pkgName = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(childRelDepPath, childPkgSnapshot).name;
112037
+ children[alias] = path_1.default.join(ctx.virtualStoreDir, dp.depPathToFilename(childRelDepPath, ctx.lockfileDir), "node_modules", pkgName);
112038
+ } else if (allDeps[alias].indexOf("file:") === 0) {
112039
+ children[alias] = path_1.default.resolve(ctx.lockfileDir, allDeps[alias].substr(5));
112040
+ } else if (!ctx.skipped.has(childRelDepPath) && (peerDeps == null || !peerDeps.has(alias))) {
112041
+ throw new Error(`${childRelDepPath} not found in ${constants_1.WANTED_LOCKFILE}`);
112042
+ }
112043
+ }
112044
+ return children;
112045
+ }
112046
+ }
112047
+ });
112048
+
111834
112049
  // ../headless/lib/index.js
111835
112050
  var require_lib89 = __commonJS({
111836
112051
  "../headless/lib/index.js"(exports2) {
@@ -111883,20 +112098,18 @@ var require_lib89 = __commonJS({
111883
112098
  var logger_1 = __importStar2(require_lib6());
111884
112099
  var modules_cleaner_1 = require_lib82();
111885
112100
  var modules_yaml_1 = require_lib63();
111886
- var package_is_installable_1 = __importDefault(require_lib20());
111887
112101
  var read_package_json_1 = require_lib34();
111888
112102
  var read_project_manifest_1 = require_lib15();
111889
112103
  var symlink_dependency_1 = __importStar2(require_lib84());
111890
112104
  var dp = __importStar2(require_lib35());
111891
112105
  var p_limit_1 = __importDefault(require_p_limit());
111892
112106
  var path_absolute_1 = __importDefault(require_path_absolute());
111893
- var path_exists_1 = __importDefault(require_path_exists());
111894
112107
  var equals_1 = __importDefault(require_equals2());
111895
112108
  var fromPairs_1 = __importDefault(require_fromPairs());
111896
112109
  var omit_1 = __importDefault(require_omit());
111897
112110
  var props_1 = __importDefault(require_props());
111898
112111
  var realpath_missing_1 = __importDefault(require_realpath_missing());
111899
- var brokenModulesLogger = (0, logger_1.default)("_broken_node_modules");
112112
+ var lockfileToDepGraph_1 = __importDefault(require_lockfileToDepGraph());
111900
112113
  exports2.default = async (opts) => {
111901
112114
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
111902
112115
  const reporter = opts.reporter;
@@ -111934,7 +112147,7 @@ var require_lib89 = __commonJS({
111934
112147
  storeController: opts.storeController,
111935
112148
  unsafePerm: opts.unsafePerm || false
111936
112149
  };
111937
- const skipped = opts.skipped || new Set();
112150
+ const skipped = opts.skipped || /* @__PURE__ */ new Set();
111938
112151
  if (currentLockfile != null && !opts.ignorePackageManifest) {
111939
112152
  await (0, modules_cleaner_1.prune)(opts.projects, {
111940
112153
  currentLockfile,
@@ -111976,7 +112189,7 @@ var require_lib89 = __commonJS({
111976
112189
  includeIncompatiblePackages: opts.force,
111977
112190
  lockfileDir
111978
112191
  });
111979
- const { directDependenciesByImporterId, graph } = await lockfileToDepGraph(filteredLockfile, opts.force ? null : currentLockfile, {
112192
+ const { directDependenciesByImporterId, graph } = await (0, lockfileToDepGraph_1.default)(filteredLockfile, opts.force ? null : currentLockfile, {
111980
112193
  ...opts,
111981
112194
  importerIds,
111982
112195
  lockfileDir,
@@ -112077,7 +112290,7 @@ var require_lib89 = __commonJS({
112077
112290
  }
112078
112291
  opts.pendingBuilds = opts.pendingBuilds.concat(depNodes.filter(({ requiresBuild }) => requiresBuild).map(({ depPath }) => depPath));
112079
112292
  } else {
112080
- const directNodes = new Set();
112293
+ const directNodes = /* @__PURE__ */ new Set();
112081
112294
  for (const id of importerIds) {
112082
112295
  Object.values(directDependenciesByImporterId[id]).filter((loc) => graph[loc]).forEach((loc) => {
112083
112296
  directNodes.add(loc);
@@ -112229,156 +112442,6 @@ var require_lib89 = __commonJS({
112229
112442
  });
112230
112443
  }));
112231
112444
  }
112232
- async function lockfileToDepGraph(lockfile, currentLockfile, opts) {
112233
- var _a;
112234
- const currentPackages = (_a = currentLockfile === null || currentLockfile === void 0 ? void 0 : currentLockfile.packages) !== null && _a !== void 0 ? _a : {};
112235
- const graph = {};
112236
- const directDependenciesByImporterId = {};
112237
- if (lockfile.packages != null) {
112238
- const pkgSnapshotByLocation = {};
112239
- await Promise.all(Object.keys(lockfile.packages).map(async (depPath) => {
112240
- var _a2;
112241
- if (opts.skipped.has(depPath))
112242
- return;
112243
- const pkgSnapshot = lockfile.packages[depPath];
112244
- const { name: pkgName, version: pkgVersion } = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
112245
- const modules = path_1.default.join(opts.virtualStoreDir, dp.depPathToFilename(depPath, opts.lockfileDir), "node_modules");
112246
- const packageId = (0, lockfile_utils_1.packageIdFromSnapshot)(depPath, pkgSnapshot, opts.registries);
112247
- const pkg = {
112248
- name: pkgName,
112249
- version: pkgVersion,
112250
- engines: pkgSnapshot.engines,
112251
- cpu: pkgSnapshot.cpu,
112252
- os: pkgSnapshot.os
112253
- };
112254
- if (!opts.force && (0, package_is_installable_1.default)(packageId, pkg, {
112255
- engineStrict: opts.engineStrict,
112256
- lockfileDir: opts.lockfileDir,
112257
- nodeVersion: opts.nodeVersion,
112258
- optional: pkgSnapshot.optional === true,
112259
- pnpmVersion: opts.pnpmVersion
112260
- }) === false) {
112261
- opts.skipped.add(depPath);
112262
- return;
112263
- }
112264
- const dir = path_1.default.join(modules, pkgName);
112265
- if (currentPackages[depPath] && (0, equals_1.default)(currentPackages[depPath].dependencies, lockfile.packages[depPath].dependencies) && (0, equals_1.default)(currentPackages[depPath].optionalDependencies, lockfile.packages[depPath].optionalDependencies)) {
112266
- if (await (0, path_exists_1.default)(dir)) {
112267
- return;
112268
- }
112269
- brokenModulesLogger.debug({
112270
- missing: dir
112271
- });
112272
- }
112273
- const resolution = (0, lockfile_utils_1.pkgSnapshotToResolution)(depPath, pkgSnapshot, opts.registries);
112274
- core_loggers_1.progressLogger.debug({
112275
- packageId,
112276
- requester: opts.lockfileDir,
112277
- status: "resolved"
112278
- });
112279
- let fetchResponse;
112280
- try {
112281
- fetchResponse = opts.storeController.fetchPackage({
112282
- force: false,
112283
- lockfileDir: opts.lockfileDir,
112284
- pkg: {
112285
- name: pkgName,
112286
- version: pkgVersion,
112287
- id: packageId,
112288
- resolution
112289
- }
112290
- });
112291
- if (fetchResponse instanceof Promise)
112292
- fetchResponse = await fetchResponse;
112293
- } catch (err) {
112294
- if (pkgSnapshot.optional)
112295
- return;
112296
- throw err;
112297
- }
112298
- fetchResponse.files().then(({ fromStore }) => {
112299
- core_loggers_1.progressLogger.debug({
112300
- packageId,
112301
- requester: opts.lockfileDir,
112302
- status: fromStore ? "found_in_store" : "fetched"
112303
- });
112304
- }).catch(() => {
112305
- });
112306
- graph[dir] = {
112307
- children: {},
112308
- depPath,
112309
- dir,
112310
- fetchingFiles: fetchResponse.files,
112311
- filesIndexFile: fetchResponse.filesIndexFile,
112312
- finishing: fetchResponse.finishing,
112313
- hasBin: pkgSnapshot.hasBin === true,
112314
- hasBundledDependencies: pkgSnapshot.bundledDependencies != null,
112315
- modules,
112316
- name: pkgName,
112317
- optional: !!pkgSnapshot.optional,
112318
- optionalDependencies: new Set(Object.keys((_a2 = pkgSnapshot.optionalDependencies) !== null && _a2 !== void 0 ? _a2 : {})),
112319
- prepare: pkgSnapshot.prepare === true,
112320
- requiresBuild: pkgSnapshot.requiresBuild === true
112321
- };
112322
- pkgSnapshotByLocation[dir] = pkgSnapshot;
112323
- }));
112324
- const ctx = {
112325
- force: opts.force,
112326
- graph,
112327
- lockfileDir: opts.lockfileDir,
112328
- pkgSnapshotsByDepPaths: lockfile.packages,
112329
- registries: opts.registries,
112330
- sideEffectsCacheRead: opts.sideEffectsCacheRead,
112331
- skipped: opts.skipped,
112332
- storeController: opts.storeController,
112333
- storeDir: opts.storeDir,
112334
- virtualStoreDir: opts.virtualStoreDir
112335
- };
112336
- for (const dir of Object.keys(graph)) {
112337
- const pkgSnapshot = pkgSnapshotByLocation[dir];
112338
- const allDeps = {
112339
- ...pkgSnapshot.dependencies,
112340
- ...opts.include.optionalDependencies ? pkgSnapshot.optionalDependencies : {}
112341
- };
112342
- const peerDeps = pkgSnapshot.peerDependencies ? new Set(Object.keys(pkgSnapshot.peerDependencies)) : null;
112343
- graph[dir].children = await getChildrenPaths(ctx, allDeps, peerDeps, ".");
112344
- }
112345
- for (const importerId of opts.importerIds) {
112346
- const projectSnapshot = lockfile.importers[importerId];
112347
- const rootDeps = {
112348
- ...opts.include.devDependencies ? projectSnapshot.devDependencies : {},
112349
- ...opts.include.dependencies ? projectSnapshot.dependencies : {},
112350
- ...opts.include.optionalDependencies ? projectSnapshot.optionalDependencies : {}
112351
- };
112352
- directDependenciesByImporterId[importerId] = await getChildrenPaths(ctx, rootDeps, null, importerId);
112353
- }
112354
- }
112355
- return { graph, directDependenciesByImporterId };
112356
- }
112357
- async function getChildrenPaths(ctx, allDeps, peerDeps, importerId) {
112358
- const children = {};
112359
- for (const alias of Object.keys(allDeps)) {
112360
- const childDepPath = dp.refToAbsolute(allDeps[alias], alias, ctx.registries);
112361
- if (childDepPath === null) {
112362
- children[alias] = path_1.default.resolve(ctx.lockfileDir, importerId, allDeps[alias].substr(5));
112363
- continue;
112364
- }
112365
- const childRelDepPath = dp.refToRelative(allDeps[alias], alias);
112366
- const childPkgSnapshot = ctx.pkgSnapshotsByDepPaths[childRelDepPath];
112367
- if (ctx.graph[childRelDepPath]) {
112368
- children[alias] = ctx.graph[childRelDepPath].dir;
112369
- } else if (childPkgSnapshot) {
112370
- if (ctx.skipped.has(childRelDepPath))
112371
- continue;
112372
- const pkgName = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(childRelDepPath, childPkgSnapshot).name;
112373
- children[alias] = path_1.default.join(ctx.virtualStoreDir, dp.depPathToFilename(childRelDepPath, ctx.lockfileDir), "node_modules", pkgName);
112374
- } else if (allDeps[alias].indexOf("file:") === 0) {
112375
- children[alias] = path_1.default.resolve(ctx.lockfileDir, allDeps[alias].substr(5));
112376
- } else if (!ctx.skipped.has(childRelDepPath) && (peerDeps == null || !peerDeps.has(alias))) {
112377
- throw new Error(`${childRelDepPath} not found in ${constants_1.WANTED_LOCKFILE}`);
112378
- }
112379
- }
112380
- return children;
112381
- }
112382
112445
  var limitLinking = (0, p_limit_1.default)(16);
112383
112446
  async function linkAllPkgs(storeController, depNodes, opts) {
112384
112447
  return Promise.all(depNodes.map(async (depNode) => {
@@ -112567,26 +112630,31 @@ var require_getNonDevWantedDependencies = __commonJS({
112567
112630
  "use strict";
112568
112631
  Object.defineProperty(exports2, "__esModule", { value: true });
112569
112632
  function getNonDevWantedDependencies(pkg) {
112570
- var _a, _b;
112633
+ var _a, _b, _c;
112571
112634
  const bd = (_a = pkg.bundleDependencies) !== null && _a !== void 0 ? _a : pkg.bundleDependencies;
112572
112635
  const bundledDeps = new Set(Array.isArray(bd) ? bd : []);
112573
112636
  bundledDeps.add(pkg.name);
112574
112637
  const filterDeps = getNotBundledDeps.bind(null, bundledDeps);
112575
112638
  return getWantedDependenciesFromGivenSet(filterDeps({ ...pkg.optionalDependencies, ...pkg.dependencies }), {
112639
+ dependenciesMeta: (_b = pkg.dependenciesMeta) !== null && _b !== void 0 ? _b : {},
112576
112640
  devDependencies: {},
112577
- optionalDependencies: (_b = pkg.optionalDependencies) !== null && _b !== void 0 ? _b : {}
112641
+ optionalDependencies: (_c = pkg.optionalDependencies) !== null && _c !== void 0 ? _c : {}
112578
112642
  });
112579
112643
  }
112580
112644
  exports2.default = getNonDevWantedDependencies;
112581
112645
  function getWantedDependenciesFromGivenSet(deps, opts) {
112582
112646
  if (!deps)
112583
112647
  return [];
112584
- return Object.keys(deps).map((alias) => ({
112585
- alias,
112586
- dev: !!opts.devDependencies[alias],
112587
- optional: !!opts.optionalDependencies[alias],
112588
- pref: deps[alias]
112589
- }));
112648
+ return Object.keys(deps).map((alias) => {
112649
+ var _a;
112650
+ return {
112651
+ alias,
112652
+ dev: !!opts.devDependencies[alias],
112653
+ injected: (_a = opts.dependenciesMeta[alias]) === null || _a === void 0 ? void 0 : _a.injected,
112654
+ optional: !!opts.optionalDependencies[alias],
112655
+ pref: deps[alias]
112656
+ };
112657
+ });
112590
112658
  }
112591
112659
  function getNotBundledDeps(bundledDeps, deps) {
112592
112660
  return Object.keys(deps).filter((depName) => !bundledDeps.has(depName)).reduce((notBundledDeps, depName) => {
@@ -113114,7 +113182,7 @@ var require_resolveDependencies = __commonJS({
113114
113182
  var _a, _b;
113115
113183
  if (pkg.peerDependencies == null && pkg.peerDependenciesMeta == null)
113116
113184
  return pkg.peerDependencies;
113117
- const ownDeps = new Set([
113185
+ const ownDeps = /* @__PURE__ */ new Set([
113118
113186
  ...Object.keys((_a = pkg.dependencies) !== null && _a !== void 0 ? _a : {}),
113119
113187
  ...Object.keys((_b = pkg.optionalDependencies) !== null && _b !== void 0 ? _b : {})
113120
113188
  ]);
@@ -113171,7 +113239,7 @@ var require_resolveDependencyTree = __commonJS({
113171
113239
  async function default_1(importers, opts) {
113172
113240
  var _a, _b;
113173
113241
  const directDepsByImporterId = {};
113174
- const wantedToBeSkippedPackageIds = new Set();
113242
+ const wantedToBeSkippedPackageIds = /* @__PURE__ */ new Set();
113175
113243
  const ctx = {
113176
113244
  childrenByParentDepPath: {},
113177
113245
  currentLockfile: opts.currentLockfile,
@@ -113183,7 +113251,7 @@ var require_resolveDependencyTree = __commonJS({
113183
113251
  forceFullResolution: opts.forceFullResolution,
113184
113252
  linkWorkspacePackagesDepth: (_a = opts.linkWorkspacePackagesDepth) !== null && _a !== void 0 ? _a : -1,
113185
113253
  lockfileDir: opts.lockfileDir,
113186
- neverBuiltDependencies: (_b = opts.neverBuiltDependencies) !== null && _b !== void 0 ? _b : new Set(),
113254
+ neverBuiltDependencies: (_b = opts.neverBuiltDependencies) !== null && _b !== void 0 ? _b : /* @__PURE__ */ new Set(),
113187
113255
  nodeVersion: opts.nodeVersion,
113188
113256
  outdatedDependencies: {},
113189
113257
  pendingNodes: [],
@@ -113204,7 +113272,7 @@ var require_resolveDependencyTree = __commonJS({
113204
113272
  const linkedDependencies = [];
113205
113273
  const resolveCtx = {
113206
113274
  ...ctx,
113207
- updatedSet: new Set(),
113275
+ updatedSet: /* @__PURE__ */ new Set(),
113208
113276
  linkedDependencies,
113209
113277
  modulesDir: importer.modulesDir,
113210
113278
  prefix: importer.rootDir
@@ -113311,7 +113379,7 @@ var require_semverUtils = __commonJS({
113311
113379
  Object.defineProperty(exports2, "SemVer", { enumerable: true, get: function() {
113312
113380
  return semver_2.SemVer;
113313
113381
  } });
113314
- var satisfiesWithPrereleasesCache = new Map();
113382
+ var satisfiesWithPrereleasesCache = /* @__PURE__ */ new Map();
113315
113383
  function satisfiesWithPrereleases(version, range, loose = false) {
113316
113384
  if (!version)
113317
113385
  return false;
@@ -113348,7 +113416,7 @@ var require_semverUtils = __commonJS({
113348
113416
  });
113349
113417
  }
113350
113418
  exports2.satisfiesWithPrereleases = satisfiesWithPrereleases;
113351
- var rangesCache = new Map();
113419
+ var rangesCache = /* @__PURE__ */ new Map();
113352
113420
  function validRange(potentialRange) {
113353
113421
  if (potentialRange.indexOf(`:`) !== -1)
113354
113422
  return null;
@@ -113941,9 +114009,9 @@ var require_resolvePeers = __commonJS({
113941
114009
  depGraph,
113942
114010
  lockfileDir: opts.lockfileDir,
113943
114011
  pathsByNodeId,
113944
- peersCache: new Map(),
114012
+ peersCache: /* @__PURE__ */ new Map(),
113945
114013
  peerDependencyIssues,
113946
- purePkgs: new Set(),
114014
+ purePkgs: /* @__PURE__ */ new Set(),
113947
114015
  rootDir,
113948
114016
  virtualStoreDir: opts.virtualStoreDir
113949
114017
  });
@@ -114046,7 +114114,7 @@ var require_resolvePeers = __commonJS({
114046
114114
  });
114047
114115
  const allResolvedPeers = Object.assign(unknownResolvedPeersOfChildren, resolvedPeers);
114048
114116
  delete allResolvedPeers[node.resolvedPackage.name];
114049
- const allMissingPeers = Array.from(new Set([...missingPeersOfChildren, ...missingPeers]));
114117
+ const allMissingPeers = Array.from(/* @__PURE__ */ new Set([...missingPeersOfChildren, ...missingPeers]));
114050
114118
  let depPath;
114051
114119
  if ((0, isEmpty_1.default)(allResolvedPeers)) {
114052
114120
  depPath = resolvedPackage.depPath;
@@ -114075,7 +114143,7 @@ var require_resolvePeers = __commonJS({
114075
114143
  const peerDependencies = { ...resolvedPackage.peerDependencies };
114076
114144
  if (!ctx.depGraph[depPath] || ctx.depGraph[depPath].depth > node.depth) {
114077
114145
  const dir = path_1.default.join(modules, resolvedPackage.name);
114078
- const transitivePeerDependencies = new Set();
114146
+ const transitivePeerDependencies = /* @__PURE__ */ new Set();
114079
114147
  const unknownPeers = [
114080
114148
  ...Object.keys(unknownResolvedPeersOfChildren),
114081
114149
  ...missingPeersOfChildren
@@ -114120,7 +114188,7 @@ var require_resolvePeers = __commonJS({
114120
114188
  }
114121
114189
  function resolvePeersOfChildren(children, parentPkgs, ctx) {
114122
114190
  const allResolvedPeers = {};
114123
- const allMissingPeers = new Set();
114191
+ const allMissingPeers = /* @__PURE__ */ new Set();
114124
114192
  for (const childNodeId of Object.values(children)) {
114125
114193
  const { resolvedPeers, missingPeers } = resolvePeersOfNode(childNodeId, parentPkgs, ctx);
114126
114194
  Object.assign(allResolvedPeers, resolvedPeers);
@@ -114142,7 +114210,7 @@ var require_resolvePeers = __commonJS({
114142
114210
  const optionalPeer = ((_b = (_a = ctx.resolvedPackage.peerDependenciesMeta) === null || _a === void 0 ? void 0 : _a[peerName]) === null || _b === void 0 ? void 0 : _b.optional) === true;
114143
114211
  if (!resolved) {
114144
114212
  missingPeers.push(peerName);
114145
- const location = getLocationFromNodeId({
114213
+ const location = getLocationFromNodeIdAndPkg({
114146
114214
  dependenciesTree: ctx.dependenciesTree,
114147
114215
  nodeId: ctx.nodeId,
114148
114216
  pkg: ctx.resolvedPackage
@@ -114158,7 +114226,7 @@ var require_resolvePeers = __commonJS({
114158
114226
  continue;
114159
114227
  }
114160
114228
  if (!(0, semverUtils_1.satisfiesWithPrereleases)(resolved.version, peerVersionRange, true)) {
114161
- const location = getLocationFromNodeId({
114229
+ const location = getLocationFromNodeIdAndPkg({
114162
114230
  dependenciesTree: ctx.dependenciesTree,
114163
114231
  nodeId: ctx.nodeId,
114164
114232
  pkg: ctx.resolvedPackage
@@ -114166,8 +114234,13 @@ var require_resolvePeers = __commonJS({
114166
114234
  if (!ctx.peerDependencyIssues.bad[peerName]) {
114167
114235
  ctx.peerDependencyIssues.bad[peerName] = [];
114168
114236
  }
114237
+ const peerLocation = resolved.nodeId == null ? [] : getLocationFromNodeId({
114238
+ dependenciesTree: ctx.dependenciesTree,
114239
+ nodeId: resolved.nodeId
114240
+ }).parents;
114169
114241
  ctx.peerDependencyIssues.bad[peerName].push({
114170
114242
  foundVersion: resolved.version,
114243
+ resolvedFrom: peerLocation,
114171
114244
  parents: location.parents,
114172
114245
  optional: optionalPeer,
114173
114246
  wantedRange: peerVersionRange
@@ -114178,10 +114251,17 @@ var require_resolvePeers = __commonJS({
114178
114251
  }
114179
114252
  return { resolvedPeers, missingPeers };
114180
114253
  }
114181
- function getLocationFromNodeId({ dependenciesTree, nodeId, pkg }) {
114254
+ function getLocationFromNodeIdAndPkg({ dependenciesTree, nodeId, pkg }) {
114255
+ const { projectId, parents } = getLocationFromNodeId({ dependenciesTree, nodeId });
114256
+ parents.push({ name: pkg.name, version: pkg.version });
114257
+ return {
114258
+ projectId,
114259
+ parents
114260
+ };
114261
+ }
114262
+ function getLocationFromNodeId({ dependenciesTree, nodeId }) {
114182
114263
  const parts = (0, nodeIdUtils_1.splitNodeId)(nodeId).slice(0, -1);
114183
114264
  const parents = (0, scan_1.default)((prevNodeId, pkgId) => (0, nodeIdUtils_1.createNodeId)(prevNodeId, pkgId), ">", parts).slice(2).map((nid) => (0, pick_1.default)(["name", "version"], dependenciesTree[nid].resolvedPackage));
114184
- parents.push({ name: pkg.name, version: pkg.version });
114185
114265
  return {
114186
114266
  projectId: parts[0],
114187
114267
  parents
@@ -114537,7 +114617,7 @@ var require_toResolveImporter = __commonJS({
114537
114617
  async function partitionLinkedPackages(dependencies, opts) {
114538
114618
  var _a;
114539
114619
  const nonLinkedDependencies = [];
114540
- const linkedAliases = new Set();
114620
+ const linkedAliases = /* @__PURE__ */ new Set();
114541
114621
  for (const dependency of dependencies) {
114542
114622
  if (!dependency.alias || ((_a = opts.workspacePackages) === null || _a === void 0 ? void 0 : _a[dependency.alias]) != null || dependency.pref.startsWith("workspace:")) {
114543
114623
  nonLinkedDependencies.push(dependency);
@@ -115819,7 +115899,7 @@ var require_getPreferredVersions = __commonJS({
115819
115899
  var manifest_utils_1 = require_lib22();
115820
115900
  function getAllUniqueSpecs(manifests) {
115821
115901
  const allSpecs = {};
115822
- const ignored = new Set();
115902
+ const ignored = /* @__PURE__ */ new Set();
115823
115903
  for (const manifest of manifests) {
115824
115904
  const specs = (0, manifest_utils_1.getAllDependenciesFromManifest)(manifest);
115825
115905
  for (const [name, spec] of Object.entries(specs)) {
@@ -115958,7 +116038,7 @@ var require_link2 = __commonJS({
115958
116038
  const newCurrentLockfile = (0, filter_lockfile_1.filterLockfileByImporters)(opts.wantedLockfile, projectIds, {
115959
116039
  ...filterOpts,
115960
116040
  failOnMissingDependencies: true,
115961
- skipped: new Set()
116041
+ skipped: /* @__PURE__ */ new Set()
115962
116042
  });
115963
116043
  const newDepPaths = await linkNewPackages((0, filter_lockfile_1.filterLockfileByImporters)(opts.currentLockfile, projectIds, {
115964
116044
  ...filterOpts,
@@ -116034,7 +116114,7 @@ var require_link2 = __commonJS({
116034
116114
  }, Object.keys(projects2), {
116035
116115
  ...filterOpts,
116036
116116
  failOnMissingDependencies: false,
116037
- skipped: new Set()
116117
+ skipped: /* @__PURE__ */ new Set()
116038
116118
  });
116039
116119
  } else if (opts.include.dependencies && opts.include.devDependencies && opts.include.optionalDependencies && opts.skipped.size === 0) {
116040
116120
  currentLockfile = opts.wantedLockfile;
@@ -116118,7 +116198,7 @@ var require_link2 = __commonJS({
116118
116198
  }
116119
116199
  async function selectNewFromWantedDeps(wantedRelDepPaths, currentLockfile, depGraph) {
116120
116200
  var _a;
116121
- const newDeps = new Set();
116201
+ const newDeps = /* @__PURE__ */ new Set();
116122
116202
  const prevDeps = (_a = currentLockfile.packages) !== null && _a !== void 0 ? _a : {};
116123
116203
  await Promise.all(wantedRelDepPaths.map(async (depPath) => {
116124
116204
  const depNode = depGraph[depPath];
@@ -116298,7 +116378,7 @@ var require_install = __commonJS({
116298
116378
  var getPreferredVersions_1 = require_getPreferredVersions();
116299
116379
  var link_1 = __importDefault(require_link2());
116300
116380
  var reportPeerDependencyIssues_1 = __importDefault(require_reportPeerDependencyIssues2());
116301
- var BROKEN_LOCKFILE_INTEGRITY_ERRORS = new Set([
116381
+ var BROKEN_LOCKFILE_INTEGRITY_ERRORS = /* @__PURE__ */ new Set([
116302
116382
  "ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE",
116303
116383
  "ERR_PNPM_TARBALL_INTEGRITY"
116304
116384
  ]);
@@ -117199,7 +117279,7 @@ var require_map_obj = __commonJS({
117199
117279
  var isObject2 = (value) => typeof value === "object" && value !== null;
117200
117280
  var mapObjectSkip = Symbol("skip");
117201
117281
  var isObjectCustom = (value) => isObject2(value) && !(value instanceof RegExp) && !(value instanceof Error) && !(value instanceof Date);
117202
- var mapObject = (object, mapper, options, isSeen = new WeakMap()) => {
117282
+ var mapObject = (object, mapper, options, isSeen = /* @__PURE__ */ new WeakMap()) => {
117203
117283
  options = {
117204
117284
  deep: false,
117205
117285
  target: {},
@@ -117311,8 +117391,8 @@ var require_quick_lru = __commonJS({
117311
117391
  throw new TypeError("`maxSize` must be a number greater than 0");
117312
117392
  }
117313
117393
  this.maxSize = options.maxSize;
117314
- this.cache = new Map();
117315
- this.oldCache = new Map();
117394
+ this.cache = /* @__PURE__ */ new Map();
117395
+ this.oldCache = /* @__PURE__ */ new Map();
117316
117396
  this._size = 0;
117317
117397
  }
117318
117398
  _set(key, value) {
@@ -117321,7 +117401,7 @@ var require_quick_lru = __commonJS({
117321
117401
  if (this._size >= this.maxSize) {
117322
117402
  this._size = 0;
117323
117403
  this.oldCache = this.cache;
117324
- this.cache = new Map();
117404
+ this.cache = /* @__PURE__ */ new Map();
117325
117405
  }
117326
117406
  }
117327
117407
  get(key) {
@@ -119291,7 +119371,7 @@ var require_link3 = __commonJS({
119291
119371
  exports2.help = help;
119292
119372
  async function handler(opts, params) {
119293
119373
  const cwd = process.cwd();
119294
- const storeControllerCache = new Map();
119374
+ const storeControllerCache = /* @__PURE__ */ new Map();
119295
119375
  let workspacePackagesArr;
119296
119376
  let workspacePackages;
119297
119377
  if (opts.workspaceDir) {
@@ -120759,7 +120839,7 @@ var require_lockfile = __commonJS({
120759
120839
  };
120760
120840
  })();
120761
120841
  const artifactFiles = new Set(events.artifactFiles || []);
120762
- const files = new Set();
120842
+ const files = /* @__PURE__ */ new Set();
120763
120843
  for (var _iterator = queue, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator](); ; ) {
120764
120844
  var _ref2;
120765
120845
  if (_isArray) {
@@ -120993,7 +121073,7 @@ var require_lockfile = __commonJS({
120993
121073
  };
120994
121074
  })();
120995
121075
  const artifactFiles = new Set(events.artifactFiles || []);
120996
- const files = new Set();
121076
+ const files = /* @__PURE__ */ new Set();
120997
121077
  for (var _iterator7 = queue, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator](); ; ) {
120998
121078
  var _ref10;
120999
121079
  if (_isArray7) {
@@ -121069,14 +121149,14 @@ var require_lockfile = __commonJS({
121069
121149
  const events = {
121070
121150
  onStart: _events && _events.onStart || noop,
121071
121151
  onProgress: _events && _events.onProgress || noop,
121072
- possibleExtraneous: _events ? _events.possibleExtraneous : new Set(),
121152
+ possibleExtraneous: _events ? _events.possibleExtraneous : /* @__PURE__ */ new Set(),
121073
121153
  ignoreBasenames: _events && _events.ignoreBasenames || [],
121074
121154
  artifactFiles: _events && _events.artifactFiles || []
121075
121155
  };
121076
121156
  const actions = yield buildActionsForCopy(queue, events, events.possibleExtraneous, reporter);
121077
121157
  events.onStart(actions.file.length + actions.symlink.length + actions.link.length);
121078
121158
  const fileActions = actions.file;
121079
- const currentlyWriting = new Map();
121159
+ const currentlyWriting = /* @__PURE__ */ new Map();
121080
121160
  yield (_promise || _load_promise()).queue(fileActions, (() => {
121081
121161
  var _ref18 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (data) {
121082
121162
  let writePromise;
@@ -121111,7 +121191,7 @@ var require_lockfile = __commonJS({
121111
121191
  const events = {
121112
121192
  onStart: _events && _events.onStart || noop,
121113
121193
  onProgress: _events && _events.onProgress || noop,
121114
- possibleExtraneous: _events ? _events.possibleExtraneous : new Set(),
121194
+ possibleExtraneous: _events ? _events.possibleExtraneous : /* @__PURE__ */ new Set(),
121115
121195
  artifactFiles: _events && _events.artifactFiles || [],
121116
121196
  ignoreBasenames: []
121117
121197
  };
@@ -121244,7 +121324,7 @@ var require_lockfile = __commonJS({
121244
121324
  };
121245
121325
  })();
121246
121326
  let walk = exports3.walk = (() => {
121247
- var _ref27 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (dir, relativeDir, ignoreBasenames = new Set()) {
121327
+ var _ref27 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (dir, relativeDir, ignoreBasenames = /* @__PURE__ */ new Set()) {
121248
121328
  let files = [];
121249
121329
  let filenames = yield readdir(dir);
121250
121330
  if (ignoreBasenames.size) {
@@ -121931,7 +122011,7 @@ var require_lockfile = __commonJS({
121931
122011
  }
121932
122012
  getLockfile(patterns) {
121933
122013
  const lockfile = {};
121934
- const seen = new Map();
122014
+ const seen = /* @__PURE__ */ new Map();
121935
122015
  const sortedPatternsKeys = Object.keys(patterns).sort((_misc || _load_misc()).sortAlpha);
121936
122016
  for (var _iterator = sortedPatternsKeys, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator](); ; ) {
121937
122017
  var _ref;
@@ -128508,7 +128588,7 @@ var require_copyPromise2 = __commonJS({
128508
128588
  }
128509
128589
  return updated;
128510
128590
  }
128511
- var isCloneSupportedCache = new WeakMap();
128591
+ var isCloneSupportedCache = /* @__PURE__ */ new WeakMap();
128512
128592
  function makeLinkOperation(opFs, destination, source, sourceStat, linkStrategy) {
128513
128593
  return async () => {
128514
128594
  await opFs.linkPromise(source, destination);
@@ -129500,7 +129580,7 @@ var require_CustomStatWatcher2 = __commonJS({
129500
129580
  constructor(fakeFs, path2, { bigint = false } = {}) {
129501
129581
  super();
129502
129582
  this.status = Status.Ready;
129503
- this.changeListeners = new Map();
129583
+ this.changeListeners = /* @__PURE__ */ new Map();
129504
129584
  this.startTimeout = null;
129505
129585
  this.fakeFs = fakeFs;
129506
129586
  this.path = path2;
@@ -129591,7 +129671,7 @@ var require_watchFile2 = __commonJS({
129591
129671
  Object.defineProperty(exports2, "__esModule", { value: true });
129592
129672
  exports2.unwatchAllFiles = exports2.unwatchFile = exports2.watchFile = void 0;
129593
129673
  var CustomStatWatcher_1 = require_CustomStatWatcher2();
129594
- var statWatchersByFakeFS = new WeakMap();
129674
+ var statWatchersByFakeFS = /* @__PURE__ */ new WeakMap();
129595
129675
  function watchFile(fakeFs, path2, a, b) {
129596
129676
  let bigint;
129597
129677
  let persistent;
@@ -129619,7 +129699,7 @@ var require_watchFile2 = __commonJS({
129619
129699
  }
129620
129700
  let statWatchers = statWatchersByFakeFS.get(fakeFs);
129621
129701
  if (typeof statWatchers === `undefined`)
129622
- statWatchersByFakeFS.set(fakeFs, statWatchers = new Map());
129702
+ statWatchersByFakeFS.set(fakeFs, statWatchers = /* @__PURE__ */ new Map());
129623
129703
  let statWatcher = statWatchers.get(path2);
129624
129704
  if (typeof statWatcher === `undefined`) {
129625
129705
  statWatcher = CustomStatWatcher_1.CustomStatWatcher.create(fakeFs, path2, { bigint });
@@ -129723,10 +129803,10 @@ var require_ZipFS2 = __commonJS({
129723
129803
  constructor(source, opts) {
129724
129804
  super();
129725
129805
  this.lzSource = null;
129726
- this.listings = new Map();
129727
- this.entries = new Map();
129728
- this.fileSources = new Map();
129729
- this.fds = new Map();
129806
+ this.listings = /* @__PURE__ */ new Map();
129807
+ this.entries = /* @__PURE__ */ new Map();
129808
+ this.fileSources = /* @__PURE__ */ new Map();
129809
+ this.fds = /* @__PURE__ */ new Map();
129730
129810
  this.nextFd = 0;
129731
129811
  this.ready = false;
129732
129812
  this.readOnly = false;
@@ -129788,7 +129868,7 @@ var require_ZipFS2 = __commonJS({
129788
129868
  } finally {
129789
129869
  this.libzip.free(errPtr);
129790
129870
  }
129791
- this.listings.set(path_1.PortablePath.root, new Set());
129871
+ this.listings.set(path_1.PortablePath.root, /* @__PURE__ */ new Set());
129792
129872
  const entryCount = this.libzip.getNumEntries(this.zip, 0);
129793
129873
  for (let t = 0; t < entryCount; ++t) {
129794
129874
  const raw = this.libzip.getName(this.zip, t, 0);
@@ -130178,7 +130258,7 @@ var require_ZipFS2 = __commonJS({
130178
130258
  if (listing)
130179
130259
  return listing;
130180
130260
  const parentListing = this.registerListing(path_1.ppath.dirname(p));
130181
- listing = new Set();
130261
+ listing = /* @__PURE__ */ new Set();
130182
130262
  parentListing.add(path_1.ppath.basename(p));
130183
130263
  this.listings.set(p, listing);
130184
130264
  return listing;
@@ -131482,15 +131562,15 @@ var require_ZipOpenFS2 = __commonJS({
131482
131562
  var ZipOpenFS = class extends FakeFS_1.BasePortableFakeFS {
131483
131563
  constructor({ libzip, baseFs = new NodeFS_1.NodeFS(), filter: filter2 = null, maxOpenFiles = Infinity, readOnlyArchives = false, useCache = true, maxAge = 5e3, fileExtensions = null }) {
131484
131564
  super();
131485
- this.fdMap = new Map();
131565
+ this.fdMap = /* @__PURE__ */ new Map();
131486
131566
  this.nextFd = 3;
131487
- this.isZip = new Set();
131488
- this.notZip = new Set();
131489
- this.realPaths = new Map();
131567
+ this.isZip = /* @__PURE__ */ new Set();
131568
+ this.notZip = /* @__PURE__ */ new Set();
131569
+ this.realPaths = /* @__PURE__ */ new Map();
131490
131570
  this.limitOpenFilesTimeout = null;
131491
131571
  this.libzipFactory = typeof libzip !== `function` ? () => libzip : libzip;
131492
131572
  this.baseFs = baseFs;
131493
- this.zipInstances = useCache ? new Map() : null;
131573
+ this.zipInstances = useCache ? /* @__PURE__ */ new Map() : null;
131494
131574
  this.filter = filter2;
131495
131575
  this.maxOpenFiles = maxOpenFiles;
131496
131576
  this.readOnlyArchives = readOnlyArchives;
@@ -132298,7 +132378,7 @@ var require_patchFs2 = __commonJS({
132298
132378
  exports2.extendFs = exports2.patchFs = void 0;
132299
132379
  var util_1 = require("util");
132300
132380
  var URLFS_1 = require_URLFS2();
132301
- var SYNC_IMPLEMENTATIONS = new Set([
132381
+ var SYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
132302
132382
  `accessSync`,
132303
132383
  `appendFileSync`,
132304
132384
  `createReadStream`,
@@ -132333,7 +132413,7 @@ var require_patchFs2 = __commonJS({
132333
132413
  `writeFileSync`,
132334
132414
  `writeSync`
132335
132415
  ]);
132336
- var ASYNC_IMPLEMENTATIONS = new Set([
132416
+ var ASYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
132337
132417
  `accessPromise`,
132338
132418
  `appendFilePromise`,
132339
132419
  `chmodPromise`,
@@ -132362,7 +132442,7 @@ var require_patchFs2 = __commonJS({
132362
132442
  `writeFilePromise`,
132363
132443
  `writeSync`
132364
132444
  ]);
132365
- var FILEHANDLE_IMPLEMENTATIONS = new Set([
132445
+ var FILEHANDLE_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
132366
132446
  `appendFilePromise`,
132367
132447
  `chmodPromise`,
132368
132448
  `chownPromise`,
@@ -132525,7 +132605,7 @@ var require_xfs2 = __commonJS({
132525
132605
  const hash = Math.ceil(Math.random() * 4294967296).toString(16).padStart(8, `0`);
132526
132606
  return path_1.ppath.join(tmpdir, `${prefix}${hash}`);
132527
132607
  }
132528
- var tmpdirs = new Set();
132608
+ var tmpdirs = /* @__PURE__ */ new Set();
132529
132609
  var cleanExitRegistered = false;
132530
132610
  function registerCleanExit() {
132531
132611
  if (cleanExitRegistered)
@@ -139182,7 +139262,7 @@ var require_lib103 = __commonJS({
139182
139262
  }
139183
139263
  });
139184
139264
  }
139185
- var BOOLEAN_COERCIONS = new Map([
139265
+ var BOOLEAN_COERCIONS = /* @__PURE__ */ new Map([
139186
139266
  [`true`, true],
139187
139267
  [`True`, true],
139188
139268
  [`1`, true],
@@ -139450,7 +139530,7 @@ var require_lib103 = __commonJS({
139450
139530
  test: (value, state) => {
139451
139531
  if (typeof value !== `object` || value === null)
139452
139532
  return pushError(state, `Expected an object (got ${getPrintable(value)})`);
139453
- const keys2 = new Set([...specKeys, ...Object.keys(value)]);
139533
+ const keys2 = /* @__PURE__ */ new Set([...specKeys, ...Object.keys(value)]);
139454
139534
  const extra = {};
139455
139535
  let valid = true;
139456
139536
  for (const key of keys2) {
@@ -139589,8 +139669,8 @@ var require_lib103 = __commonJS({
139589
139669
  });
139590
139670
  var hasUniqueItems = ({ map: map2 } = {}) => makeValidator({
139591
139671
  test: (value, state) => {
139592
- const set = new Set();
139593
- const dup = new Set();
139672
+ const set = /* @__PURE__ */ new Set();
139673
+ const dup = /* @__PURE__ */ new Set();
139594
139674
  for (let t = 0, T = value.length; t < T; ++t) {
139595
139675
  const sub = value[t];
139596
139676
  const key = typeof map2 !== `undefined` ? map2(sub) : sub;
@@ -140048,7 +140128,7 @@ var require_core7 = __commonJS({
140048
140128
  return machine.nodes.length - 1;
140049
140129
  }
140050
140130
  function simplifyMachine(input) {
140051
- const visited = new Set();
140131
+ const visited = /* @__PURE__ */ new Set();
140052
140132
  const process2 = (node) => {
140053
140133
  if (visited.has(node))
140054
140134
  return;
@@ -140207,7 +140287,7 @@ var require_core7 = __commonJS({
140207
140287
  const prefix = partial2 && input.length > 0 ? [``] : [];
140208
140288
  const branches = runMachineInternal(machine, input, partial2);
140209
140289
  const suggestions = [];
140210
- const suggestionsJson = new Set();
140290
+ const suggestionsJson = /* @__PURE__ */ new Set();
140211
140291
  const traverseSuggestion = (suggestion, node, skipFirst = true) => {
140212
140292
  let nextNodes = [node];
140213
140293
  while (nextNodes.length > 0) {
@@ -140860,7 +140940,7 @@ var require_Cli = __commonJS({
140860
140940
  }
140861
140941
  var Cli = class {
140862
140942
  constructor({ binaryLabel, binaryName: binaryNameOpt = `...`, binaryVersion, enableCapture = false, enableColors } = {}) {
140863
- this.registrations = new Map();
140943
+ this.registrations = /* @__PURE__ */ new Map();
140864
140944
  this.builder = new core.CliBuilder({ binaryName: binaryNameOpt });
140865
140945
  this.binaryLabel = binaryLabel;
140866
140946
  this.binaryName = binaryNameOpt;
@@ -140876,7 +140956,7 @@ var require_Cli = __commonJS({
140876
140956
  }
140877
140957
  register(commandClass) {
140878
140958
  var _a;
140879
- const specs = new Map();
140959
+ const specs = /* @__PURE__ */ new Map();
140880
140960
  const command = new commandClass();
140881
140961
  for (const key in command) {
140882
140962
  const value = command[key];
@@ -141021,7 +141101,7 @@ var require_Cli = __commonJS({
141021
141101
  const commandClass = command !== null && command instanceof Command.Command ? command.constructor : command;
141022
141102
  let result2 = ``;
141023
141103
  if (!commandClass) {
141024
- const commandsByCategories = new Map();
141104
+ const commandsByCategories = /* @__PURE__ */ new Map();
141025
141105
  for (const [commandClass2, { index }] of this.registrations.entries()) {
141026
141106
  if (typeof commandClass2.usage === `undefined`)
141027
141107
  continue;
@@ -147593,7 +147673,7 @@ var require_looksahead = __commonJS({
147593
147673
  LooksAhead2.prototype.initLooksAhead = function(config) {
147594
147674
  this.dynamicTokensEnabled = (0, utils_1.has)(config, "dynamicTokensEnabled") ? config.dynamicTokensEnabled : parser_1.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled;
147595
147675
  this.maxLookahead = (0, utils_1.has)(config, "maxLookahead") ? config.maxLookahead : parser_1.DEFAULT_PARSER_CONFIG.maxLookahead;
147596
- this.lookAheadFuncsCache = (0, utils_1.isES2015MapSupported)() ? new Map() : [];
147676
+ this.lookAheadFuncsCache = (0, utils_1.isES2015MapSupported)() ? /* @__PURE__ */ new Map() : [];
147597
147677
  if ((0, utils_1.isES2015MapSupported)()) {
147598
147678
  this.getLaFuncFromCache = this.getLaFuncFromMap;
147599
147679
  this.setLaFuncCache = this.setLaFuncCacheUsingMap;
@@ -149855,7 +149935,7 @@ var require_templates3 = __commonJS({
149855
149935
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
149856
149936
  var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
149857
149937
  var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;
149858
- var ESCAPES = new Map([
149938
+ var ESCAPES = /* @__PURE__ */ new Map([
149859
149939
  ["n", "\n"],
149860
149940
  ["r", "\r"],
149861
149941
  ["t", " "],
@@ -150249,14 +150329,14 @@ var require_miscUtils = __commonJS({
150249
150329
  function getSetWithDefault(map2, key) {
150250
150330
  let value = map2.get(key);
150251
150331
  if (typeof value === `undefined`)
150252
- map2.set(key, value = new Set());
150332
+ map2.set(key, value = /* @__PURE__ */ new Set());
150253
150333
  return value;
150254
150334
  }
150255
150335
  exports.getSetWithDefault = getSetWithDefault;
150256
150336
  function getMapWithDefault(map2, key) {
150257
150337
  let value = map2.get(key);
150258
150338
  if (typeof value === `undefined`)
150259
- map2.set(key, value = new Map());
150339
+ map2.set(key, value = /* @__PURE__ */ new Map());
150260
150340
  return value;
150261
150341
  }
150262
150342
  exports.getMapWithDefault = getMapWithDefault;
@@ -150362,7 +150442,7 @@ var require_miscUtils = __commonJS({
150362
150442
  }
150363
150443
  return result;
150364
150444
  }
150365
- var dynamicRequireFsTimeCache = new Map();
150445
+ var dynamicRequireFsTimeCache = /* @__PURE__ */ new Map();
150366
150446
  function dynamicRequireFsTime(path2) {
150367
150447
  const cachedInstance = dynamicRequireFsTimeCache.get(path2);
150368
150448
  const stat = fslib_1.xfs.statSync(path2);
@@ -150559,7 +150639,7 @@ var require_formatUtils = __commonJS({
150559
150639
  exports2.supportsColor = chalkOptions.level !== 0;
150560
150640
  exports2.supportsHyperlinks = exports2.supportsColor && !ci_info_1.default.GITHUB_ACTIONS && !ci_info_1.default.CIRCLE && !ci_info_1.default.GITLAB;
150561
150641
  var chalkInstance = new chalk_1.default.Instance(chalkOptions);
150562
- var colors = new Map([
150642
+ var colors = /* @__PURE__ */ new Map([
150563
150643
  [exports2.Type.NO_HINT, null],
150564
150644
  [exports2.Type.NULL, [`#a853b5`, 129]],
150565
150645
  [exports2.Type.SCOPE, [`#d75f00`, 166]],
@@ -150800,8 +150880,8 @@ var require_formatUtils = __commonJS({
150800
150880
  })(LogLevel = exports2.LogLevel || (exports2.LogLevel = {}));
150801
150881
  function addLogFilterSupport(report, { configuration }) {
150802
150882
  const logFilters = configuration.get(`logFilters`);
150803
- const logFiltersByCode = new Map();
150804
- const logFiltersByText = new Map();
150883
+ const logFiltersByCode = /* @__PURE__ */ new Map();
150884
+ const logFiltersByText = /* @__PURE__ */ new Map();
150805
150885
  const logFiltersByPatternMatcher = [];
150806
150886
  for (const filter2 of logFilters) {
150807
150887
  const level = filter2.get(`level`);
@@ -151491,14 +151571,14 @@ var require_Manifest = __commonJS({
151491
151571
  this.module = null;
151492
151572
  this.browser = null;
151493
151573
  this.languageName = null;
151494
- this.bin = new Map();
151495
- this.scripts = new Map();
151496
- this.dependencies = new Map();
151497
- this.devDependencies = new Map();
151498
- this.peerDependencies = new Map();
151574
+ this.bin = /* @__PURE__ */ new Map();
151575
+ this.scripts = /* @__PURE__ */ new Map();
151576
+ this.dependencies = /* @__PURE__ */ new Map();
151577
+ this.devDependencies = /* @__PURE__ */ new Map();
151578
+ this.peerDependencies = /* @__PURE__ */ new Map();
151499
151579
  this.workspaceDefinitions = [];
151500
- this.dependenciesMeta = new Map();
151501
- this.peerDependenciesMeta = new Map();
151580
+ this.dependenciesMeta = /* @__PURE__ */ new Map();
151581
+ this.peerDependenciesMeta = /* @__PURE__ */ new Map();
151502
151582
  this.resolutions = [];
151503
151583
  this.files = null;
151504
151584
  this.publishConfig = null;
@@ -151647,7 +151727,7 @@ var require_Manifest = __commonJS({
151647
151727
  if (typeof data.browser === `string`) {
151648
151728
  this.browser = normalizeSlashes(data.browser);
151649
151729
  } else {
151650
- this.browser = new Map();
151730
+ this.browser = /* @__PURE__ */ new Map();
151651
151731
  for (const [key, value] of Object.entries(data.browser)) {
151652
151732
  this.browser.set(normalizeSlashes(key), typeof value === `string` ? normalizeSlashes(value) : value);
151653
151733
  }
@@ -151655,7 +151735,7 @@ var require_Manifest = __commonJS({
151655
151735
  } else {
151656
151736
  this.browser = null;
151657
151737
  }
151658
- this.bin = new Map();
151738
+ this.bin = /* @__PURE__ */ new Map();
151659
151739
  if (typeof data.bin === `string`) {
151660
151740
  if (this.name !== null) {
151661
151741
  this.bin.set(this.name.name, normalizeSlashes(data.bin));
@@ -151672,7 +151752,7 @@ var require_Manifest = __commonJS({
151672
151752
  this.bin.set(binaryIdent.name, normalizeSlashes(value));
151673
151753
  }
151674
151754
  }
151675
- this.scripts = new Map();
151755
+ this.scripts = /* @__PURE__ */ new Map();
151676
151756
  if (typeof data.scripts === `object` && data.scripts !== null) {
151677
151757
  for (const [key, value] of Object.entries(data.scripts)) {
151678
151758
  if (typeof value !== `string`) {
@@ -151682,7 +151762,7 @@ var require_Manifest = __commonJS({
151682
151762
  this.scripts.set(key, value);
151683
151763
  }
151684
151764
  }
151685
- this.dependencies = new Map();
151765
+ this.dependencies = /* @__PURE__ */ new Map();
151686
151766
  if (typeof data.dependencies === `object` && data.dependencies !== null) {
151687
151767
  for (const [name, range] of Object.entries(data.dependencies)) {
151688
151768
  if (typeof range !== `string`) {
@@ -151700,7 +151780,7 @@ var require_Manifest = __commonJS({
151700
151780
  this.dependencies.set(descriptor.identHash, descriptor);
151701
151781
  }
151702
151782
  }
151703
- this.devDependencies = new Map();
151783
+ this.devDependencies = /* @__PURE__ */ new Map();
151704
151784
  if (typeof data.devDependencies === `object` && data.devDependencies !== null) {
151705
151785
  for (const [name, range] of Object.entries(data.devDependencies)) {
151706
151786
  if (typeof range !== `string`) {
@@ -151718,7 +151798,7 @@ var require_Manifest = __commonJS({
151718
151798
  this.devDependencies.set(descriptor.identHash, descriptor);
151719
151799
  }
151720
151800
  }
151721
- this.peerDependencies = new Map();
151801
+ this.peerDependencies = /* @__PURE__ */ new Map();
151722
151802
  if (typeof data.peerDependencies === `object` && data.peerDependencies !== null) {
151723
151803
  for (let [name, range] of Object.entries(data.peerDependencies)) {
151724
151804
  let ident;
@@ -151749,7 +151829,7 @@ var require_Manifest = __commonJS({
151749
151829
  pattern: entry
151750
151830
  });
151751
151831
  }
151752
- this.dependenciesMeta = new Map();
151832
+ this.dependenciesMeta = /* @__PURE__ */ new Map();
151753
151833
  if (typeof data.dependenciesMeta === `object` && data.dependenciesMeta !== null) {
151754
151834
  for (const [pattern, meta] of Object.entries(data.dependenciesMeta)) {
151755
151835
  if (typeof meta !== `object` || meta === null) {
@@ -151776,7 +151856,7 @@ var require_Manifest = __commonJS({
151776
151856
  Object.assign(dependencyMeta, { built, optional, unplugged });
151777
151857
  }
151778
151858
  }
151779
- this.peerDependenciesMeta = new Map();
151859
+ this.peerDependenciesMeta = /* @__PURE__ */ new Map();
151780
151860
  if (typeof data.peerDependenciesMeta === `object` && data.peerDependenciesMeta !== null) {
151781
151861
  for (const [pattern, meta] of Object.entries(data.peerDependenciesMeta)) {
151782
151862
  if (typeof meta !== `object` || meta === null) {
@@ -151809,7 +151889,7 @@ var require_Manifest = __commonJS({
151809
151889
  }
151810
151890
  }
151811
151891
  if (Array.isArray(data.files)) {
151812
- this.files = new Set();
151892
+ this.files = /* @__PURE__ */ new Set();
151813
151893
  for (const filename of data.files) {
151814
151894
  if (typeof filename !== `string`) {
151815
151895
  errors.push(new Error(`Invalid files entry for '${filename}'`));
@@ -151832,7 +151912,7 @@ var require_Manifest = __commonJS({
151832
151912
  if (typeof data.publishConfig.browser === `string`) {
151833
151913
  this.publishConfig.browser = normalizeSlashes(data.publishConfig.browser);
151834
151914
  } else {
151835
- this.publishConfig.browser = new Map();
151915
+ this.publishConfig.browser = /* @__PURE__ */ new Map();
151836
151916
  for (const [key, value] of Object.entries(data.publishConfig.browser)) {
151837
151917
  this.publishConfig.browser.set(normalizeSlashes(key), typeof value === `string` ? normalizeSlashes(value) : value);
151838
151918
  }
@@ -151842,12 +151922,12 @@ var require_Manifest = __commonJS({
151842
151922
  this.publishConfig.registry = data.publishConfig.registry;
151843
151923
  if (typeof data.publishConfig.bin === `string`) {
151844
151924
  if (this.name !== null) {
151845
- this.publishConfig.bin = new Map([[this.name.name, normalizeSlashes(data.publishConfig.bin)]]);
151925
+ this.publishConfig.bin = /* @__PURE__ */ new Map([[this.name.name, normalizeSlashes(data.publishConfig.bin)]]);
151846
151926
  } else {
151847
151927
  errors.push(new Error(`String bin field, but no attached package name`));
151848
151928
  }
151849
151929
  } else if (typeof data.publishConfig.bin === `object` && data.publishConfig.bin !== null) {
151850
- this.publishConfig.bin = new Map();
151930
+ this.publishConfig.bin = /* @__PURE__ */ new Map();
151851
151931
  for (const [key, value] of Object.entries(data.publishConfig.bin)) {
151852
151932
  if (typeof value !== `string`) {
151853
151933
  errors.push(new Error(`Invalid bin definition for '${key}'`));
@@ -151857,7 +151937,7 @@ var require_Manifest = __commonJS({
151857
151937
  }
151858
151938
  }
151859
151939
  if (Array.isArray(data.publishConfig.executableFiles)) {
151860
- this.publishConfig.executableFiles = new Set();
151940
+ this.publishConfig.executableFiles = /* @__PURE__ */ new Set();
151861
151941
  for (const value of data.publishConfig.executableFiles) {
151862
151942
  if (typeof value !== `string`) {
151863
151943
  errors.push(new Error(`Invalid executable file definition`));
@@ -151977,7 +152057,7 @@ var require_Manifest = __commonJS({
151977
152057
  const range = descriptor.range !== `unknown` ? descriptor.range : null;
151978
152058
  let dependencyMetaSet = this.dependenciesMeta.get(identString);
151979
152059
  if (!dependencyMetaSet)
151980
- this.dependenciesMeta.set(identString, dependencyMetaSet = new Map());
152060
+ this.dependenciesMeta.set(identString, dependencyMetaSet = /* @__PURE__ */ new Map());
151981
152061
  let dependencyMeta = dependencyMetaSet.get(range);
151982
152062
  if (!dependencyMeta)
151983
152063
  dependencyMetaSet.set(range, dependencyMeta = {});
@@ -152393,9 +152473,9 @@ var require_Report = __commonJS({
152393
152473
  exports2.isReportError = isReportError;
152394
152474
  var Report = class {
152395
152475
  constructor() {
152396
- this.reportedInfos = new Set();
152397
- this.reportedWarnings = new Set();
152398
- this.reportedErrors = new Set();
152476
+ this.reportedInfos = /* @__PURE__ */ new Set();
152477
+ this.reportedWarnings = /* @__PURE__ */ new Set();
152478
+ this.reportedErrors = /* @__PURE__ */ new Set();
152399
152479
  }
152400
152480
  static progressViaCounter(max) {
152401
152481
  let current = 0;
@@ -152928,7 +153008,7 @@ var require_Configuration = __commonJS({
152928
153008
  var semverUtils = (0, tslib_12.__importStar)(require_semverUtils());
152929
153009
  var structUtils = (0, tslib_12.__importStar)(require_structUtils());
152930
153010
  var types_1 = require_types5();
152931
- var IGNORED_ENV_VARIABLES = new Set([
153011
+ var IGNORED_ENV_VARIABLES = /* @__PURE__ */ new Set([
152932
153012
  `binFolder`,
152933
153013
  `version`,
152934
153014
  `flags`,
@@ -153385,7 +153465,7 @@ var require_Configuration = __commonJS({
153385
153465
  return result2;
153386
153466
  }
153387
153467
  function parseMap(configuration, path2, value, definition, folder) {
153388
- const result2 = new Map();
153468
+ const result2 = /* @__PURE__ */ new Map();
153389
153469
  if (typeof value !== `object` || Array.isArray(value))
153390
153470
  throw new clipanion_12.UsageError(`Map configuration settings "${path2}" must be an object`);
153391
153471
  if (value === null)
@@ -153404,7 +153484,7 @@ var require_Configuration = __commonJS({
153404
153484
  {
153405
153485
  if (definition.isArray && !ignoreArrays)
153406
153486
  return [];
153407
- const result2 = new Map();
153487
+ const result2 = /* @__PURE__ */ new Map();
153408
153488
  for (const [propKey, propDefinition] of Object.entries(definition.properties))
153409
153489
  result2.set(propKey, getDefaultValue(configuration, propDefinition));
153410
153490
  return result2;
@@ -153414,7 +153494,7 @@ var require_Configuration = __commonJS({
153414
153494
  {
153415
153495
  if (definition.isArray && !ignoreArrays)
153416
153496
  return [];
153417
- return new Map();
153497
+ return /* @__PURE__ */ new Map();
153418
153498
  }
153419
153499
  break;
153420
153500
  case SettingsType.ABSOLUTE_PATH:
@@ -153457,13 +153537,13 @@ var require_Configuration = __commonJS({
153457
153537
  return newValue;
153458
153538
  }
153459
153539
  if (definition.type === SettingsType.MAP && rawValue instanceof Map) {
153460
- const newValue = new Map();
153540
+ const newValue = /* @__PURE__ */ new Map();
153461
153541
  for (const [key, value] of rawValue.entries())
153462
153542
  newValue.set(key, transformConfiguration(value, definition.valueDefinition, transforms));
153463
153543
  return newValue;
153464
153544
  }
153465
153545
  if (definition.type === SettingsType.SHAPE && rawValue instanceof Map) {
153466
- const newValue = new Map();
153546
+ const newValue = /* @__PURE__ */ new Map();
153467
153547
  for (const [key, value] of rawValue.entries()) {
153468
153548
  const propertyDefinition = definition.properties[key];
153469
153549
  newValue.set(key, transformConfiguration(value, propertyDefinition, transforms));
@@ -153499,13 +153579,13 @@ var require_Configuration = __commonJS({
153499
153579
  var Configuration = class {
153500
153580
  constructor(startingCwd) {
153501
153581
  this.projectCwd = null;
153502
- this.plugins = new Map();
153503
- this.settings = new Map();
153504
- this.values = new Map();
153505
- this.sources = new Map();
153506
- this.invalid = new Map();
153507
- this.packageExtensions = new Map();
153508
- this.limits = new Map();
153582
+ this.plugins = /* @__PURE__ */ new Map();
153583
+ this.settings = /* @__PURE__ */ new Map();
153584
+ this.values = /* @__PURE__ */ new Map();
153585
+ this.sources = /* @__PURE__ */ new Map();
153586
+ this.invalid = /* @__PURE__ */ new Map();
153587
+ this.packageExtensions = /* @__PURE__ */ new Map();
153588
+ this.limits = /* @__PURE__ */ new Map();
153509
153589
  this.startingCwd = startingCwd;
153510
153590
  }
153511
153591
  static create(startingCwd, projectCwdOrPlugins, maybePlugins) {
@@ -153513,7 +153593,7 @@ var require_Configuration = __commonJS({
153513
153593
  if (typeof projectCwdOrPlugins !== `undefined` && !(projectCwdOrPlugins instanceof Map))
153514
153594
  configuration.projectCwd = projectCwdOrPlugins;
153515
153595
  configuration.importSettings(exports2.coreDefinitions);
153516
- const plugins = typeof maybePlugins !== `undefined` ? maybePlugins : projectCwdOrPlugins instanceof Map ? projectCwdOrPlugins : new Map();
153596
+ const plugins = typeof maybePlugins !== `undefined` ? maybePlugins : projectCwdOrPlugins instanceof Map ? projectCwdOrPlugins : /* @__PURE__ */ new Map();
153517
153597
  for (const [name, plugin] of plugins)
153518
153598
  configuration.activatePlugin(name, plugin);
153519
153599
  return configuration;
@@ -153571,7 +153651,7 @@ var require_Configuration = __commonJS({
153571
153651
  configuration.startingCwd = startingCwd;
153572
153652
  configuration.projectCwd = projectCwd;
153573
153653
  configuration.importSettings(excludeCoreFields(exports2.coreDefinitions));
153574
- const plugins = new Map([
153654
+ const plugins = /* @__PURE__ */ new Map([
153575
153655
  [`@@core`, CorePlugin_1.CorePlugin]
153576
153656
  ]);
153577
153657
  const getDefault = (object) => {
@@ -153580,12 +153660,12 @@ var require_Configuration = __commonJS({
153580
153660
  if (pluginConfiguration !== null) {
153581
153661
  for (const request of pluginConfiguration.plugins.keys())
153582
153662
  plugins.set(request, getDefault(pluginConfiguration.modules.get(request)));
153583
- const requireEntries = new Map();
153663
+ const requireEntries = /* @__PURE__ */ new Map();
153584
153664
  for (const request of nodeUtils.builtinModules())
153585
153665
  requireEntries.set(request, () => miscUtils.dynamicRequire(request));
153586
153666
  for (const [request, embedModule] of pluginConfiguration.modules)
153587
153667
  requireEntries.set(request, () => embedModule);
153588
- const dynamicPlugins = new Set();
153668
+ const dynamicPlugins = /* @__PURE__ */ new Set();
153589
153669
  const importPlugin = async (pluginPath, source) => {
153590
153670
  const { factory, name } = miscUtils.dynamicRequire(pluginPath);
153591
153671
  if (dynamicPlugins.has(name))
@@ -153893,7 +153973,7 @@ var require_Configuration = __commonJS({
153893
153973
  return { os, cpu };
153894
153974
  }
153895
153975
  async refreshPackageExtensions() {
153896
- this.packageExtensions = new Map();
153976
+ this.packageExtensions = /* @__PURE__ */ new Map();
153897
153977
  const packageExtensions = this.packageExtensions;
153898
153978
  const registerPackageExtension = (descriptor, extensionData, { userProvided = false } = {}) => {
153899
153979
  if (!semverUtils.validRange(descriptor.range))
@@ -154099,7 +154179,7 @@ var require_execUtils = __commonJS({
154099
154179
  function hasFd(stream) {
154100
154180
  return stream !== null && typeof stream.fd === `number`;
154101
154181
  }
154102
- var activeChildren = new Set();
154182
+ var activeChildren = /* @__PURE__ */ new Set();
154103
154183
  function sigintHandler() {
154104
154184
  }
154105
154185
  function sigtermHandler() {
@@ -154137,7 +154217,7 @@ var require_execUtils = __commonJS({
154137
154217
  if (!hasFd(stderr))
154138
154218
  child.stderr.pipe(stderr, { end: false });
154139
154219
  const closeStreams = () => {
154140
- for (const stream of new Set([stdout, stderr])) {
154220
+ for (const stream of /* @__PURE__ */ new Set([stdout, stderr])) {
154141
154221
  if (!hasFd(stream)) {
154142
154222
  stream.end();
154143
154223
  }
@@ -154216,7 +154296,7 @@ var require_execUtils = __commonJS({
154216
154296
  });
154217
154297
  }
154218
154298
  exports2.execvp = execvp;
154219
- var signalToCodeMap = new Map([
154299
+ var signalToCodeMap = /* @__PURE__ */ new Map([
154220
154300
  [`SIGINT`, 2],
154221
154301
  [`SIGQUIT`, 3],
154222
154302
  [`SIGKILL`, 9],
@@ -154975,7 +155055,7 @@ var require_source5 = __commonJS({
154975
155055
  var all = { all: true };
154976
155056
  var CacheableLookup = class {
154977
155057
  constructor({
154978
- cache = new Map(),
155058
+ cache = /* @__PURE__ */ new Map(),
154979
155059
  maxTtl = Infinity,
154980
155060
  fallbackDuration = 3600,
154981
155061
  errorTtl = 0.15,
@@ -154997,7 +155077,7 @@ var require_source5 = __commonJS({
154997
155077
  this._iface = getIfaceInfo();
154998
155078
  this._pending = {};
154999
155079
  this._nextRemovalTime = false;
155000
- this._hostnamesToFallback = new Set();
155080
+ this._hostnamesToFallback = /* @__PURE__ */ new Set();
155001
155081
  if (fallbackDuration < 1) {
155002
155082
  this._fallback = false;
155003
155083
  } else {
@@ -155602,7 +155682,7 @@ var require_get_stream2 = __commonJS({
155602
155682
  var require_http_cache_semantics = __commonJS({
155603
155683
  "../../node_modules/.pnpm/http-cache-semantics@4.1.0/node_modules/http-cache-semantics/index.js"(exports2, module2) {
155604
155684
  "use strict";
155605
- var statusCodeCacheableByDefault = new Set([
155685
+ var statusCodeCacheableByDefault = /* @__PURE__ */ new Set([
155606
155686
  200,
155607
155687
  203,
155608
155688
  204,
@@ -155615,7 +155695,7 @@ var require_http_cache_semantics = __commonJS({
155615
155695
  414,
155616
155696
  501
155617
155697
  ]);
155618
- var understoodStatuses = new Set([
155698
+ var understoodStatuses = /* @__PURE__ */ new Set([
155619
155699
  200,
155620
155700
  203,
155621
155701
  204,
@@ -155631,7 +155711,7 @@ var require_http_cache_semantics = __commonJS({
155631
155711
  414,
155632
155712
  501
155633
155713
  ]);
155634
- var errorStatusCodes = new Set([
155714
+ var errorStatusCodes = /* @__PURE__ */ new Set([
155635
155715
  500,
155636
155716
  502,
155637
155717
  503,
@@ -156185,7 +156265,7 @@ var require_src7 = __commonJS({
156185
156265
  const adapter = options.adapter || /^[^:]*/.exec(options.uri)[0];
156186
156266
  return new (require(adapters[adapter]))(options);
156187
156267
  }
156188
- return new Map();
156268
+ return /* @__PURE__ */ new Map();
156189
156269
  };
156190
156270
  var Keyv = class extends EventEmitter {
156191
156271
  constructor(uri, options) {
@@ -156588,8 +156668,8 @@ var require_quick_lru2 = __commonJS({
156588
156668
  }
156589
156669
  this.maxSize = options.maxSize;
156590
156670
  this.onEviction = options.onEviction;
156591
- this.cache = new Map();
156592
- this.oldCache = new Map();
156671
+ this.cache = /* @__PURE__ */ new Map();
156672
+ this.oldCache = /* @__PURE__ */ new Map();
156593
156673
  this._size = 0;
156594
156674
  }
156595
156675
  _set(key, value) {
@@ -156603,7 +156683,7 @@ var require_quick_lru2 = __commonJS({
156603
156683
  }
156604
156684
  }
156605
156685
  this.oldCache = this.cache;
156606
- this.cache = new Map();
156686
+ this.cache = /* @__PURE__ */ new Map();
156607
156687
  }
156608
156688
  }
156609
156689
  get(key) {
@@ -157683,7 +157763,7 @@ var require_auto = __commonJS({
157683
157763
  var calculateServerName = require_calculate_server_name();
157684
157764
  var urlToOptions = require_url_to_options();
157685
157765
  var cache = new QuickLRU({ maxSize: 100 });
157686
- var queue = new Map();
157766
+ var queue = /* @__PURE__ */ new Map();
157687
157767
  var installSocket = (agent, socket, options) => {
157688
157768
  socket._httpMessage = { shouldKeepAlive: true };
157689
157769
  const onFree = () => {
@@ -158126,8 +158206,8 @@ var require_weakable_map = __commonJS({
158126
158206
  Object.defineProperty(exports2, "__esModule", { value: true });
158127
158207
  var WeakableMap = class {
158128
158208
  constructor() {
158129
- this.weakMap = new WeakMap();
158130
- this.map = new Map();
158209
+ this.weakMap = /* @__PURE__ */ new WeakMap();
158210
+ this.map = /* @__PURE__ */ new Map();
158131
158211
  }
158132
158212
  set(key, value) {
158133
158213
  if (typeof key === "object") {
@@ -158216,7 +158296,7 @@ var require_deprecation_warning = __commonJS({
158216
158296
  "../../node_modules/.pnpm/got@11.8.3/node_modules/got/dist/source/utils/deprecation-warning.js"(exports2) {
158217
158297
  "use strict";
158218
158298
  Object.defineProperty(exports2, "__esModule", { value: true });
158219
- var alreadyWarned = new Set();
158299
+ var alreadyWarned = /* @__PURE__ */ new Set();
158220
158300
  exports2.default = (message2) => {
158221
158301
  if (alreadyWarned.has(message2)) {
158222
158302
  return;
@@ -158310,7 +158390,7 @@ var require_calculate_retry_delay = __commonJS({
158310
158390
  "use strict";
158311
158391
  Object.defineProperty(exports2, "__esModule", { value: true });
158312
158392
  exports2.retryAfterStatusCodes = void 0;
158313
- exports2.retryAfterStatusCodes = new Set([413, 429, 503]);
158393
+ exports2.retryAfterStatusCodes = /* @__PURE__ */ new Set([413, 429, 503]);
158314
158394
  var calculateRetryDelay = ({ attemptCount, retryOptions, error, retryAfter }) => {
158315
158395
  if (attemptCount > retryOptions.limit) {
158316
158396
  return 0;
@@ -158392,7 +158472,7 @@ var require_core8 = __commonJS({
158392
158472
  var kRetryTimeout = Symbol("retryTimeout");
158393
158473
  exports2.kIsNormalizedAlready = Symbol("isNormalizedAlready");
158394
158474
  var supportsBrotli = is_1.default.string(process.versions.brotli);
158395
- exports2.withoutBody = new Set(["GET", "HEAD"]);
158475
+ exports2.withoutBody = /* @__PURE__ */ new Set(["GET", "HEAD"]);
158396
158476
  exports2.knownHookEvents = [
158397
158477
  "init",
158398
158478
  "beforeRequest",
@@ -158426,7 +158506,7 @@ var require_core8 = __commonJS({
158426
158506
  resolve();
158427
158507
  });
158428
158508
  });
158429
- var redirectCodes = new Set([300, 301, 302, 303, 304, 307, 308]);
158509
+ var redirectCodes = /* @__PURE__ */ new Set([300, 301, 302, 303, 304, 307, 308]);
158430
158510
  var nonEnumerableProperties = [
158431
158511
  "context",
158432
158512
  "body",
@@ -158566,7 +158646,7 @@ var require_core8 = __commonJS({
158566
158646
  this[kDownloadedSize] = 0;
158567
158647
  this[kUploadedSize] = 0;
158568
158648
  this.requestInitialized = false;
158569
- this[kServerResponsesPiped] = new Set();
158649
+ this[kServerResponsesPiped] = /* @__PURE__ */ new Set();
158570
158650
  this.redirects = [];
158571
158651
  this[kStopReading] = false;
158572
158652
  this[kTriggerRead] = false;
@@ -160524,8 +160604,8 @@ var require_httpUtils = __commonJS({
160524
160604
  Object.defineProperty(exports2, "RequestError", { enumerable: true, get: function() {
160525
160605
  return got_2.RequestError;
160526
160606
  } });
160527
- var cache = new Map();
160528
- var certCache = new Map();
160607
+ var cache = /* @__PURE__ */ new Map();
160608
+ var certCache = /* @__PURE__ */ new Map();
160529
160609
  var globalHttpAgent = new http_1.Agent({ keepAlive: true });
160530
160610
  var globalHttpsAgent = new https_1.Agent({ keepAlive: true });
160531
160611
  function parseProxy(specifier) {
@@ -165114,7 +165194,7 @@ var require_pipe5 = __commonJS({
165114
165194
  Pipe2[Pipe2["STDOUT"] = 1] = "STDOUT";
165115
165195
  Pipe2[Pipe2["STDERR"] = 2] = "STDERR";
165116
165196
  })(Pipe = exports2.Pipe || (exports2.Pipe = {}));
165117
- var activeChildren = new Set();
165197
+ var activeChildren = /* @__PURE__ */ new Set();
165118
165198
  function sigintHandler() {
165119
165199
  }
165120
165200
  function sigtermHandler() {
@@ -165439,7 +165519,7 @@ var require_lib104 = __commonJS({
165439
165519
  newState.variables = { ...state.variables, ...mergeWith.variables };
165440
165520
  return newState;
165441
165521
  }
165442
- var BUILTINS = new Map([
165522
+ var BUILTINS = /* @__PURE__ */ new Map([
165443
165523
  [`cd`, async ([target = (0, os_1.homedir)(), ...rest], opts, state) => {
165444
165524
  const resolvedTarget = fslib_12.ppath.resolve(state.cwd, fslib_12.npath.toPortablePath(target));
165445
165525
  const stat = await opts.baseFs.statPromise(resolvedTarget).catch((error) => {
@@ -165789,7 +165869,7 @@ var require_lib104 = __commonJS({
165789
165869
  }
165790
165870
  }
165791
165871
  async function interpolateArguments(commandArgs, opts, state) {
165792
- const redirections = new Map();
165872
+ const redirections = /* @__PURE__ */ new Map();
165793
165873
  const interpolated = [];
165794
165874
  let interpolatedSegments = [];
165795
165875
  const push = (segment) => {
@@ -166289,7 +166369,7 @@ var require_StreamReport = __commonJS({
166289
166369
  var structUtils = (0, tslib_12.__importStar)(require_structUtils());
166290
166370
  var PROGRESS_FRAMES = [`\u280B`, `\u2819`, `\u2839`, `\u2838`, `\u283C`, `\u2834`, `\u2826`, `\u2827`, `\u2807`, `\u280F`];
166291
166371
  var PROGRESS_INTERVAL = 80;
166292
- var BASE_FORGETTABLE_NAMES = new Set([MessageName_1.MessageName.FETCH_NOT_CACHED, MessageName_1.MessageName.UNUSED_CACHE_ENTRY]);
166372
+ var BASE_FORGETTABLE_NAMES = /* @__PURE__ */ new Set([MessageName_1.MessageName.FETCH_NOT_CACHED, MessageName_1.MessageName.UNUSED_CACHE_ENTRY]);
166293
166373
  var BASE_FORGETTABLE_BUFFER_SIZE = 5;
166294
166374
  var GROUP = ci_info_1.default.GITHUB_ACTIONS ? { start: (what) => `::group::${what}
166295
166375
  `, end: (what) => `::endgroup::
@@ -166356,9 +166436,9 @@ var require_StreamReport = __commonJS({
166356
166436
  }
166357
166437
  exports2.formatNameWithHyperlink = formatNameWithHyperlink;
166358
166438
  var StreamReport = class extends Report_1.Report {
166359
- constructor({ configuration, stdout, json = false, includeFooter = true, includeLogs = !json, includeInfos = includeLogs, includeWarnings = includeLogs, forgettableBufferSize = BASE_FORGETTABLE_BUFFER_SIZE, forgettableNames = new Set() }) {
166439
+ constructor({ configuration, stdout, json = false, includeFooter = true, includeLogs = !json, includeInfos = includeLogs, includeWarnings = includeLogs, forgettableBufferSize = BASE_FORGETTABLE_BUFFER_SIZE, forgettableNames = /* @__PURE__ */ new Set() }) {
166360
166440
  super();
166361
- this.uncommitted = new Set();
166441
+ this.uncommitted = /* @__PURE__ */ new Set();
166362
166442
  this.cacheHitCount = 0;
166363
166443
  this.cacheMissCount = 0;
166364
166444
  this.lastCacheMiss = null;
@@ -166366,7 +166446,7 @@ var require_StreamReport = __commonJS({
166366
166446
  this.errorCount = 0;
166367
166447
  this.startTime = Date.now();
166368
166448
  this.indent = 0;
166369
- this.progress = new Map();
166449
+ this.progress = /* @__PURE__ */ new Map();
166370
166450
  this.progressTime = 0;
166371
166451
  this.progressFrame = 0;
166372
166452
  this.progressTimeout = null;
@@ -166374,7 +166454,7 @@ var require_StreamReport = __commonJS({
166374
166454
  formatUtils.addLogFilterSupport(this, { configuration });
166375
166455
  this.configuration = configuration;
166376
166456
  this.forgettableBufferSize = forgettableBufferSize;
166377
- this.forgettableNames = new Set([...forgettableNames, ...BASE_FORGETTABLE_NAMES]);
166457
+ this.forgettableNames = /* @__PURE__ */ new Set([...forgettableNames, ...BASE_FORGETTABLE_NAMES]);
166378
166458
  this.includeFooter = includeFooter;
166379
166459
  this.includeInfos = includeInfos;
166380
166460
  this.includeWarnings = includeWarnings;
@@ -166681,7 +166761,7 @@ var require_StreamReport = __commonJS({
166681
166761
  }
166682
166762
  commit() {
166683
166763
  const marks = this.uncommitted;
166684
- this.uncommitted = new Set();
166764
+ this.uncommitted = /* @__PURE__ */ new Set();
166685
166765
  for (const mark of marks) {
166686
166766
  mark.committed = true;
166687
166767
  mark.action();
@@ -166953,7 +167033,7 @@ exec "${argv0}" ${args2.map((arg) => `'${arg.replace(/'/g, `'"'"'`)}'`).join(` `
166953
167033
  }
166954
167034
  await fslib_2.xfs.mktempPromise(async (binFolder) => {
166955
167035
  const env = await makeScriptEnv({ binFolder });
166956
- const workflows = new Map([
167036
+ const workflows = /* @__PURE__ */ new Map([
166957
167037
  [PackageManager.Yarn1, async () => {
166958
167038
  const workspaceCli = workspace !== null ? [`workspace`, workspace] : [];
166959
167039
  const version = await execUtils.pipevp(`yarn`, [`set`, `version`, `classic`, `--only-if-needed`], { cwd, env, stdin, stdout, stderr, end: execUtils.EndStrategy.ErrorCode });
@@ -167160,14 +167240,14 @@ exec "${argv0}" ${args2.map((arg) => `'${arg.replace(/'/g, `'"'"'`)}'`).join(` `
167160
167240
  exports2.maybeExecuteWorkspaceLifecycleScript = maybeExecuteWorkspaceLifecycleScript;
167161
167241
  async function getPackageAccessibleBinaries(locator, { project }) {
167162
167242
  const configuration = project.configuration;
167163
- const binaries = new Map();
167243
+ const binaries = /* @__PURE__ */ new Map();
167164
167244
  const pkg = project.storedPackages.get(locator.locatorHash);
167165
167245
  if (!pkg)
167166
167246
  throw new Error(`Package for ${structUtils.prettyLocator(configuration, locator)} not found in the project`);
167167
167247
  const stdout = new stream_12.Writable();
167168
167248
  const linkers = configuration.getLinkers();
167169
167249
  const linkerOptions = { project, report: new StreamReport_1.StreamReport({ configuration, stdout }) };
167170
- const visibleLocators = new Set([locator.locatorHash]);
167250
+ const visibleLocators = /* @__PURE__ */ new Set([locator.locatorHash]);
167171
167251
  for (const descriptor of pkg.dependencies.values()) {
167172
167252
  const resolution = project.storedResolutions.get(descriptor.descriptorHash);
167173
167253
  if (!resolution)
@@ -167240,7 +167320,7 @@ exec "${argv0}" ${args2.map((arg) => `'${arg.replace(/'/g, `'"'"'`)}'`).join(` `
167240
167320
  var require_high_level_opt = __commonJS({
167241
167321
  "../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/high-level-opt.js"(exports2, module2) {
167242
167322
  "use strict";
167243
- var argmap = new Map([
167323
+ var argmap = /* @__PURE__ */ new Map([
167244
167324
  ["C", "cwd"],
167245
167325
  ["f", "file"],
167246
167326
  ["z", "gzip"],
@@ -167746,7 +167826,7 @@ var require_read_entry = __commonJS({
167746
167826
  var require_types8 = __commonJS({
167747
167827
  "../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/types.js"(exports2) {
167748
167828
  "use strict";
167749
- exports2.name = new Map([
167829
+ exports2.name = /* @__PURE__ */ new Map([
167750
167830
  ["0", "File"],
167751
167831
  ["", "OldFile"],
167752
167832
  ["1", "Link"],
@@ -168302,8 +168382,8 @@ var require_write_entry = __commonJS({
168302
168382
  this.myuid = process.getuid && process.getuid() || 0;
168303
168383
  this.myuser = process.env.USER || "";
168304
168384
  this.maxReadSize = opt.maxReadSize || maxReadSize;
168305
- this.linkCache = opt.linkCache || new Map();
168306
- this.statCache = opt.statCache || new Map();
168385
+ this.linkCache = opt.linkCache || /* @__PURE__ */ new Map();
168386
+ this.statCache = opt.statCache || /* @__PURE__ */ new Map();
168307
168387
  this.preservePaths = !!opt.preservePaths;
168308
168388
  this.cwd = normPath(opt.cwd || process.cwd());
168309
168389
  this.strict = !!opt.strict;
@@ -168749,9 +168829,9 @@ var require_pack2 = __commonJS({
168749
168829
  this.strict = !!opt.strict;
168750
168830
  this.noPax = !!opt.noPax;
168751
168831
  this.prefix = normPath(opt.prefix || "");
168752
- this.linkCache = opt.linkCache || new Map();
168753
- this.statCache = opt.statCache || new Map();
168754
- this.readdirCache = opt.readdirCache || new Map();
168832
+ this.linkCache = opt.linkCache || /* @__PURE__ */ new Map();
168833
+ this.statCache = opt.statCache || /* @__PURE__ */ new Map();
168834
+ this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
168755
168835
  this[WRITEENTRYCLASS] = WriteEntry;
168756
168836
  if (typeof opt.onwarn === "function")
168757
168837
  this.on("warn", opt.onwarn);
@@ -170154,7 +170234,7 @@ var require_update2 = __commonJS({
170154
170234
  var mtimeFilter = (opt) => {
170155
170235
  const filter2 = opt.filter;
170156
170236
  if (!opt.mtimeCache)
170157
- opt.mtimeCache = new Map();
170237
+ opt.mtimeCache = /* @__PURE__ */ new Map();
170158
170238
  opt.filter = filter2 ? (path2, stat) => filter2(path2, stat) && !(opt.mtimeCache.get(path2) > stat.mtime) : (path2, stat) => !(opt.mtimeCache.get(path2) > stat.mtime);
170159
170239
  };
170160
170240
  }
@@ -170708,8 +170788,8 @@ var require_path_reservations = __commonJS({
170708
170788
  var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
170709
170789
  var isWindows = platform === "win32";
170710
170790
  module2.exports = () => {
170711
- const queues = new Map();
170712
- const reservations = new Map();
170791
+ const queues = /* @__PURE__ */ new Map();
170792
+ const reservations = /* @__PURE__ */ new Map();
170713
170793
  const getDirs = (path2) => {
170714
170794
  const dirs = path2.split("/").slice(0, -1).reduce((set, path3) => {
170715
170795
  if (set.length)
@@ -170719,7 +170799,7 @@ var require_path_reservations = __commonJS({
170719
170799
  }, []);
170720
170800
  return dirs;
170721
170801
  };
170722
- const running = new Set();
170802
+ const running = /* @__PURE__ */ new Set();
170723
170803
  const getQueues = (fn2) => {
170724
170804
  const res = reservations.get(fn2);
170725
170805
  if (!res)
@@ -170744,7 +170824,7 @@ var require_path_reservations = __commonJS({
170744
170824
  if (!running.has(fn2))
170745
170825
  return false;
170746
170826
  const { paths, dirs } = reservations.get(fn2);
170747
- const next = new Set();
170827
+ const next = /* @__PURE__ */ new Set();
170748
170828
  paths.forEach((path2) => {
170749
170829
  const q = queues.get(path2);
170750
170830
  assert.equal(q[0], fn2);
@@ -170789,11 +170869,11 @@ var require_path_reservations = __commonJS({
170789
170869
  dirs.forEach((dir) => {
170790
170870
  const q = queues.get(dir);
170791
170871
  if (!q)
170792
- queues.set(dir, [new Set([fn2])]);
170872
+ queues.set(dir, [/* @__PURE__ */ new Set([fn2])]);
170793
170873
  else if (q[q.length - 1] instanceof Set)
170794
170874
  q[q.length - 1].add(fn2);
170795
170875
  else
170796
- q.push(new Set([fn2]));
170876
+ q.push(/* @__PURE__ */ new Set([fn2]));
170797
170877
  });
170798
170878
  return run(fn2);
170799
170879
  };
@@ -170908,7 +170988,7 @@ var require_unpack = __commonJS({
170908
170988
  this.readable = false;
170909
170989
  this[PENDING] = 0;
170910
170990
  this[ENDED] = false;
170911
- this.dirCache = opt.dirCache || new Map();
170991
+ this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
170912
170992
  if (typeof opt.uid === "number" || typeof opt.gid === "number") {
170913
170993
  if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
170914
170994
  throw new TypeError("cannot set owner without number uid and gid");
@@ -171923,8 +172003,8 @@ var require_Cache = __commonJS({
171923
172003
  var CACHE_VERSION = 8;
171924
172004
  var Cache = class {
171925
172005
  constructor(cacheCwd, { configuration, immutable = configuration.get(`enableImmutableCache`), check = false }) {
171926
- this.markedFiles = new Set();
171927
- this.mutexes = new Map();
172006
+ this.markedFiles = /* @__PURE__ */ new Set();
172007
+ this.mutexes = /* @__PURE__ */ new Map();
171928
172008
  this.cacheId = `-${(0, crypto_1.randomBytes)(8).toString(`hex`)}.tmp`;
171929
172009
  this.configuration = configuration;
171930
172010
  this.cwd = cacheCwd;
@@ -173997,7 +174077,7 @@ var require_LegacyMigrationResolver = __commonJS({
173997
174077
  const parsed = (0, parsers_1.parseSyml)(content);
173998
174078
  if (Object.prototype.hasOwnProperty.call(parsed, `__metadata`))
173999
174079
  return;
174000
- const resolutions = this.resolutions = new Map();
174080
+ const resolutions = this.resolutions = /* @__PURE__ */ new Map();
174001
174081
  for (const key of Object.keys(parsed)) {
174002
174082
  let descriptor = structUtils.tryParseDescriptor(key);
174003
174083
  if (!descriptor) {
@@ -174241,8 +174321,8 @@ var require_Workspace = __commonJS({
174241
174321
  var structUtils = (0, tslib_12.__importStar)(require_structUtils());
174242
174322
  var Workspace = class {
174243
174323
  constructor(workspaceCwd, { project }) {
174244
- this.workspacesCwds = new Set();
174245
- this.dependencies = new Map();
174324
+ this.workspacesCwds = /* @__PURE__ */ new Set();
174325
+ this.dependencies = /* @__PURE__ */ new Map();
174246
174326
  this.project = project;
174247
174327
  this.cwd = workspaceCwd;
174248
174328
  }
@@ -174298,7 +174378,7 @@ var require_Workspace = __commonJS({
174298
174378
  }
174299
174379
  }
174300
174380
  getRecursiveWorkspaceDependencies({ dependencies = Manifest_1.Manifest.hardDependencies } = {}) {
174301
- const workspaceList = new Set();
174381
+ const workspaceList = /* @__PURE__ */ new Set();
174302
174382
  const visitWorkspace = (workspace) => {
174303
174383
  for (const dependencyType of dependencies) {
174304
174384
  for (const descriptor of workspace.manifest[dependencyType].values()) {
@@ -174314,7 +174394,7 @@ var require_Workspace = __commonJS({
174314
174394
  return workspaceList;
174315
174395
  }
174316
174396
  getRecursiveWorkspaceDependents({ dependencies = Manifest_1.Manifest.hardDependencies } = {}) {
174317
- const workspaceList = new Set();
174397
+ const workspaceList = /* @__PURE__ */ new Set();
174318
174398
  const visitWorkspace = (workspace) => {
174319
174399
  for (const projectWorkspace of this.project.workspaces) {
174320
174400
  const isDependent = dependencies.some((dependencyType) => {
@@ -174431,23 +174511,23 @@ var require_Project = __commonJS({
174431
174511
  var makeLockfileChecksum = (normalizedContent) => hashUtils.makeHash(`${INSTALL_STATE_VERSION}`, normalizedContent);
174432
174512
  var Project = class {
174433
174513
  constructor(projectCwd, { configuration }) {
174434
- this.resolutionAliases = new Map();
174514
+ this.resolutionAliases = /* @__PURE__ */ new Map();
174435
174515
  this.workspaces = [];
174436
- this.workspacesByCwd = new Map();
174437
- this.workspacesByIdent = new Map();
174438
- this.storedResolutions = new Map();
174439
- this.storedDescriptors = new Map();
174440
- this.storedPackages = new Map();
174441
- this.storedChecksums = new Map();
174442
- this.storedBuildState = new Map();
174443
- this.accessibleLocators = new Set();
174444
- this.conditionalLocators = new Set();
174445
- this.disabledLocators = new Set();
174446
- this.originalPackages = new Map();
174447
- this.optionalBuilds = new Set();
174516
+ this.workspacesByCwd = /* @__PURE__ */ new Map();
174517
+ this.workspacesByIdent = /* @__PURE__ */ new Map();
174518
+ this.storedResolutions = /* @__PURE__ */ new Map();
174519
+ this.storedDescriptors = /* @__PURE__ */ new Map();
174520
+ this.storedPackages = /* @__PURE__ */ new Map();
174521
+ this.storedChecksums = /* @__PURE__ */ new Map();
174522
+ this.storedBuildState = /* @__PURE__ */ new Map();
174523
+ this.accessibleLocators = /* @__PURE__ */ new Set();
174524
+ this.conditionalLocators = /* @__PURE__ */ new Set();
174525
+ this.disabledLocators = /* @__PURE__ */ new Set();
174526
+ this.originalPackages = /* @__PURE__ */ new Map();
174527
+ this.optionalBuilds = /* @__PURE__ */ new Set();
174448
174528
  this.lockfileNeedsRefresh = false;
174449
- this.peerRequirements = new Map();
174450
- this.installersCustomData = new Map();
174529
+ this.peerRequirements = /* @__PURE__ */ new Map();
174530
+ this.installersCustomData = /* @__PURE__ */ new Map();
174451
174531
  this.lockFileChecksum = null;
174452
174532
  this.installStateChecksum = null;
174453
174533
  this.configuration = configuration;
@@ -174487,9 +174567,9 @@ var require_Project = __commonJS({
174487
174567
  }
174488
174568
  async setupResolutions() {
174489
174569
  var _a;
174490
- this.storedResolutions = new Map();
174491
- this.storedDescriptors = new Map();
174492
- this.storedPackages = new Map();
174570
+ this.storedResolutions = /* @__PURE__ */ new Map();
174571
+ this.storedDescriptors = /* @__PURE__ */ new Map();
174572
+ this.storedPackages = /* @__PURE__ */ new Map();
174493
174573
  this.lockFileChecksum = null;
174494
174574
  const lockfilePath = fslib_2.ppath.join(this.cwd, this.configuration.get(`lockfileFilename`));
174495
174575
  const defaultLanguageName = this.configuration.get(`defaultLanguageName`);
@@ -174536,8 +174616,8 @@ var require_Project = __commonJS({
174536
174616
  }
174537
174617
  async setupWorkspaces() {
174538
174618
  this.workspaces = [];
174539
- this.workspacesByCwd = new Map();
174540
- this.workspacesByIdent = new Map();
174619
+ this.workspacesByCwd = /* @__PURE__ */ new Map();
174620
+ this.workspacesByIdent = /* @__PURE__ */ new Map();
174541
174621
  let workspaceCwds = [this.cwd];
174542
174622
  while (workspaceCwds.length > 0) {
174543
174623
  const passCwds = workspaceCwds;
@@ -174756,14 +174836,14 @@ var require_Project = __commonJS({
174756
174836
  ]);
174757
174837
  const fetcher = this.configuration.makeFetcher();
174758
174838
  const resolveOptions = opts.lockfileOnly ? { project: this, report: opts.report, resolver } : { project: this, report: opts.report, resolver, fetchOptions: { project: this, cache: opts.cache, checksums: this.storedChecksums, report: opts.report, fetcher, cacheOptions: { mirrorWriteOnly: true } } };
174759
- const allDescriptors = new Map();
174760
- const allPackages = new Map();
174761
- const allResolutions = new Map();
174762
- const originalPackages = new Map();
174763
- const packageResolutionPromises = new Map();
174764
- const descriptorResolutionPromises = new Map();
174839
+ const allDescriptors = /* @__PURE__ */ new Map();
174840
+ const allPackages = /* @__PURE__ */ new Map();
174841
+ const allResolutions = /* @__PURE__ */ new Map();
174842
+ const originalPackages = /* @__PURE__ */ new Map();
174843
+ const packageResolutionPromises = /* @__PURE__ */ new Map();
174844
+ const descriptorResolutionPromises = /* @__PURE__ */ new Map();
174765
174845
  const dependencyResolutionLocator = this.topLevelWorkspace.anchoredLocator;
174766
- const resolutionDependencies = new Set();
174846
+ const resolutionDependencies = /* @__PURE__ */ new Set();
174767
174847
  const resolutionQueue = [];
174768
174848
  await opts.report.startProgressPromise(Report_1.Report.progressViaTitle(), async (progress) => {
174769
174849
  const startPackageResolution = async (locator) => {
@@ -174856,8 +174936,8 @@ var require_Project = __commonJS({
174856
174936
  });
174857
174937
  const volatileDescriptors = new Set(this.resolutionAliases.values());
174858
174938
  const optionalBuilds = new Set(allPackages.keys());
174859
- const accessibleLocators = new Set();
174860
- const peerRequirements = new Map();
174939
+ const accessibleLocators = /* @__PURE__ */ new Set();
174940
+ const peerRequirements = /* @__PURE__ */ new Map();
174861
174941
  applyVirtualResolutionMutations({
174862
174942
  project: this,
174863
174943
  report: opts.report,
@@ -174876,8 +174956,8 @@ var require_Project = __commonJS({
174876
174956
  allResolutions.delete(descriptorHash);
174877
174957
  }
174878
174958
  const supportedArchitectures = this.configuration.getSupportedArchitectures();
174879
- const conditionalLocators = new Set();
174880
- const disabledLocators = new Set();
174959
+ const conditionalLocators = /* @__PURE__ */ new Set();
174960
+ const disabledLocators = /* @__PURE__ */ new Set();
174881
174961
  for (const pkg of allPackages.values()) {
174882
174962
  if (pkg.conditions == null)
174883
174963
  continue;
@@ -174973,9 +175053,9 @@ var require_Project = __commonJS({
174973
175053
  installer.attachCustomData(customData);
174974
175054
  return [linker, installer];
174975
175055
  }));
174976
- const packageLinkers = new Map();
174977
- const packageLocations = new Map();
174978
- const packageBuildDirectives = new Map();
175056
+ const packageLinkers = /* @__PURE__ */ new Map();
175057
+ const packageLocations = /* @__PURE__ */ new Map();
175058
+ const packageBuildDirectives = /* @__PURE__ */ new Map();
174979
175059
  const fetchResultsPerPackage = new Map(await miscUtils.allSettledSafe([...this.accessibleLocators].map(async (locatorHash) => {
174980
175060
  const pkg = this.storedPackages.get(locatorHash);
174981
175061
  if (!pkg)
@@ -175060,7 +175140,7 @@ var require_Project = __commonJS({
175060
175140
  }
175061
175141
  }
175062
175142
  }
175063
- const externalDependents = new Map();
175143
+ const externalDependents = /* @__PURE__ */ new Map();
175064
175144
  for (const locatorHash of this.accessibleLocators) {
175065
175145
  const pkg = this.storedPackages.get(locatorHash);
175066
175146
  if (!pkg)
@@ -175123,7 +175203,7 @@ var require_Project = __commonJS({
175123
175203
  throw new Error(`Assertion failed: The installer should have been registered`);
175124
175204
  await installer.attachExternalDependents(pkg, dependentPaths);
175125
175205
  }
175126
- const installersCustomData = new Map();
175206
+ const installersCustomData = /* @__PURE__ */ new Map();
175127
175207
  for (const installer of installers.values()) {
175128
175208
  const finalizeInstallData = await installer.finalizeInstall();
175129
175209
  for (const installStatus of (_c = finalizeInstallData === null || finalizeInstallData === void 0 ? void 0 : finalizeInstallData.records) !== null && _c !== void 0 ? _c : []) {
@@ -175153,7 +175233,7 @@ var require_Project = __commonJS({
175153
175233
  globalHashGenerator.update(data);
175154
175234
  });
175155
175235
  const globalHash = globalHashGenerator.digest(`hex`);
175156
- const packageHashMap = new Map();
175236
+ const packageHashMap = /* @__PURE__ */ new Map();
175157
175237
  const getBaseHash = (locator) => {
175158
175238
  let hash = packageHashMap.get(locator.locatorHash);
175159
175239
  if (typeof hash !== `undefined`)
@@ -175185,7 +175265,7 @@ var require_Project = __commonJS({
175185
175265
  builder.update(location);
175186
175266
  return builder.digest(`hex`);
175187
175267
  };
175188
- const nextBState = new Map();
175268
+ const nextBState = /* @__PURE__ */ new Map();
175189
175269
  let isInstallStatePersisted = false;
175190
175270
  while (buildablePackages.size > 0) {
175191
175271
  const savedSize = buildablePackages.size;
@@ -175426,11 +175506,11 @@ var require_Project = __commonJS({
175426
175506
  }, this, opts);
175427
175507
  }
175428
175508
  generateLockfile() {
175429
- const reverseLookup = new Map();
175509
+ const reverseLookup = /* @__PURE__ */ new Map();
175430
175510
  for (const [descriptorHash, locatorHash] of this.storedResolutions.entries()) {
175431
175511
  let descriptorHashes = reverseLookup.get(locatorHash);
175432
175512
  if (!descriptorHashes)
175433
- reverseLookup.set(locatorHash, descriptorHashes = new Set());
175513
+ reverseLookup.set(locatorHash, descriptorHashes = /* @__PURE__ */ new Set());
175434
175514
  descriptorHashes.add(descriptorHash);
175435
175515
  }
175436
175516
  const optimizedLockfile = {};
@@ -175565,7 +175645,7 @@ var require_Project = __commonJS({
175565
175645
  }
175566
175646
  }
175567
175647
  async cacheCleanup({ cache, report }) {
175568
- const PRESERVED_FILES = new Set([
175648
+ const PRESERVED_FILES = /* @__PURE__ */ new Set([
175569
175649
  `.gitignore`
175570
175650
  ]);
175571
175651
  if (!(0, folderUtils_1.isFolderInside)(cache.cwd, this.cwd))
@@ -175599,15 +175679,15 @@ var require_Project = __commonJS({
175599
175679
  }
175600
175680
  };
175601
175681
  exports2.Project = Project;
175602
- function applyVirtualResolutionMutations({ project, allDescriptors, allResolutions, allPackages, accessibleLocators = new Set(), optionalBuilds = new Set(), peerRequirements = new Map(), volatileDescriptors = new Set(), report, tolerateMissingPackages = false }) {
175682
+ function applyVirtualResolutionMutations({ project, allDescriptors, allResolutions, allPackages, accessibleLocators = /* @__PURE__ */ new Set(), optionalBuilds = /* @__PURE__ */ new Set(), peerRequirements = /* @__PURE__ */ new Map(), volatileDescriptors = /* @__PURE__ */ new Set(), report, tolerateMissingPackages = false }) {
175603
175683
  var _a;
175604
- const virtualStack = new Map();
175684
+ const virtualStack = /* @__PURE__ */ new Map();
175605
175685
  const resolutionStack = [];
175606
- const allIdents = new Map();
175607
- const allVirtualInstances = new Map();
175608
- const allVirtualDependents = new Map();
175609
- const peerDependencyLinks = new Map();
175610
- const peerDependencyDependents = new Map();
175686
+ const allIdents = /* @__PURE__ */ new Map();
175687
+ const allVirtualInstances = /* @__PURE__ */ new Map();
175688
+ const allVirtualDependents = /* @__PURE__ */ new Map();
175689
+ const peerDependencyLinks = /* @__PURE__ */ new Map();
175690
+ const peerDependencyDependents = /* @__PURE__ */ new Map();
175611
175691
  const originalWorkspaceDefinitions = new Map(project.workspaces.map((workspace) => {
175612
175692
  const locatorHash = workspace.anchoredLocator.locatorHash;
175613
175693
  const pkg = allPackages.get(locatorHash);
@@ -175697,12 +175777,12 @@ var require_Project = __commonJS({
175697
175777
  if (!pkg)
175698
175778
  throw new Error(`Assertion failed: The package (${resolution}, resolved from ${structUtils.prettyDescriptor(project.configuration, descriptor)}) should have been registered`);
175699
175779
  if (pkg.peerDependencies.size === 0) {
175700
- resolvePeerDependencies(descriptor, pkg, new Map(), { top, optional: isOptional });
175780
+ resolvePeerDependencies(descriptor, pkg, /* @__PURE__ */ new Map(), { top, optional: isOptional });
175701
175781
  continue;
175702
175782
  }
175703
175783
  let virtualizedDescriptor;
175704
175784
  let virtualizedPackage;
175705
- const missingPeerDependencies = new Set();
175785
+ const missingPeerDependencies = /* @__PURE__ */ new Set();
175706
175786
  let nextPeerSlots;
175707
175787
  firstPass.push(() => {
175708
175788
  virtualizedDescriptor = structUtils.virtualizeDescriptor(descriptor, parentLocator.locatorHash);
@@ -175716,7 +175796,7 @@ var require_Project = __commonJS({
175716
175796
  });
175717
175797
  secondPass.push(() => {
175718
175798
  var _a2;
175719
- nextPeerSlots = new Map();
175799
+ nextPeerSlots = /* @__PURE__ */ new Map();
175720
175800
  for (const peerRequest of virtualizedPackage.peerDependencies.values()) {
175721
175801
  let peerDescriptor = parentPackage.dependencies.get(peerRequest.identHash);
175722
175802
  if (!peerDescriptor && structUtils.areIdentsEqual(parentLocator, peerRequest)) {
@@ -175826,7 +175906,7 @@ var require_Project = __commonJS({
175826
175906
  for (const workspace of project.workspaces) {
175827
175907
  const locator = workspace.anchoredLocator;
175828
175908
  volatileDescriptors.delete(workspace.anchoredDescriptor.descriptorHash);
175829
- resolvePeerDependencies(workspace.anchoredDescriptor, locator, new Map(), { top: locator.locatorHash, optional: false });
175909
+ resolvePeerDependencies(workspace.anchoredDescriptor, locator, /* @__PURE__ */ new Map(), { top: locator.locatorHash, optional: false });
175830
175910
  }
175831
175911
  let WarningType;
175832
175912
  (function(WarningType2) {
@@ -175860,7 +175940,7 @@ var require_Project = __commonJS({
175860
175940
  if (typeof resolvedDescriptor !== `undefined`) {
175861
175941
  const peerResolution = getPackageFromDescriptor(resolvedDescriptor);
175862
175942
  const peerVersion = (_a = peerResolution.version) !== null && _a !== void 0 ? _a : `0.0.0`;
175863
- const ranges = new Set();
175943
+ const ranges = /* @__PURE__ */ new Set();
175864
175944
  for (const linkHash of linkHashes) {
175865
175945
  const link = allPackages.get(linkHash);
175866
175946
  if (typeof link === `undefined`)
@@ -175962,9 +176042,9 @@ var require_TelemetryManager = __commonJS({
175962
176042
  })(MetricName = exports2.MetricName || (exports2.MetricName = {}));
175963
176043
  var TelemetryManager = class {
175964
176044
  constructor(configuration, accountId) {
175965
- this.values = new Map();
175966
- this.hits = new Map();
175967
- this.enumerators = new Map();
176045
+ this.values = /* @__PURE__ */ new Map();
176046
+ this.hits = /* @__PURE__ */ new Map();
176047
+ this.enumerators = /* @__PURE__ */ new Map();
175968
176048
  this.configuration = configuration;
175969
176049
  const registryFile = this.getRegistryPath();
175970
176050
  this.isNew = !fslib_12.xfs.existsSync(registryFile);
@@ -176049,7 +176129,7 @@ var require_TelemetryManager = __commonJS({
176049
176129
  for (const key of Object.keys((_c = upload.enumerators) !== null && _c !== void 0 ? _c : {}))
176050
176130
  upload.enumerators[key] = upload.enumerators[key].length;
176051
176131
  sendPayload(upload);
176052
- const toSend = new Map();
176132
+ const toSend = /* @__PURE__ */ new Map();
176053
176133
  const maxValues = 20;
176054
176134
  for (const [metricName, values2] of Object.entries(upload.values))
176055
176135
  if (values2.length > 0)
@@ -176091,7 +176171,7 @@ var require_TelemetryManager = __commonJS({
176091
176171
  for (const field of [`values`, `enumerators`]) {
176092
176172
  for (const key of this[field].keys()) {
176093
176173
  const store = block[field] = (_g = block[field]) !== null && _g !== void 0 ? _g : {};
176094
- store[key] = [...new Set([
176174
+ store[key] = [.../* @__PURE__ */ new Set([
176095
176175
  ...(_h = store[key]) !== null && _h !== void 0 ? _h : [],
176096
176176
  ...(_j = this[field].get(key)) !== null && _j !== void 0 ? _j : []
176097
176177
  ])];
@@ -176514,7 +176594,7 @@ var require_import = __commonJS({
176514
176594
  return;
176515
176595
  for (const packageName of Object.keys(npmPackageLock.dependencies)) {
176516
176596
  if (!versionsByPackageNames[packageName]) {
176517
- versionsByPackageNames[packageName] = new Set();
176597
+ versionsByPackageNames[packageName] = /* @__PURE__ */ new Set();
176518
176598
  }
176519
176599
  versionsByPackageNames[packageName].add(npmPackageLock.dependencies[packageName].version);
176520
176600
  }
@@ -176526,7 +176606,7 @@ var require_import = __commonJS({
176526
176606
  for (const packageName of Object.keys(yarnPackageLock)) {
176527
176607
  const pkgName = packageName.substring(0, packageName.lastIndexOf("@"));
176528
176608
  if (!versionsByPackageNames[pkgName]) {
176529
- versionsByPackageNames[pkgName] = new Set();
176609
+ versionsByPackageNames[pkgName] = /* @__PURE__ */ new Set();
176530
176610
  }
176531
176611
  versionsByPackageNames[pkgName].add(yarnPackageLock[packageName].version);
176532
176612
  }
@@ -176766,7 +176846,7 @@ var require_lib108 = __commonJS({
176766
176846
  };
176767
176847
  }
176768
176848
  function getTree(opts, keypath, parentId) {
176769
- const dependenciesCache = new Map();
176849
+ const dependenciesCache = /* @__PURE__ */ new Map();
176770
176850
  return getTreeHelper(dependenciesCache, opts, keypath, parentId).dependencies;
176771
176851
  }
176772
176852
  function getTreeHelper(dependenciesCache, opts, keypath, parentId) {
@@ -178251,7 +178331,7 @@ var require_lib112 = __commonJS({
178251
178331
  var read_project_manifest_1 = require_lib15();
178252
178332
  var fromPairs_1 = __importDefault(require_fromPairs());
178253
178333
  var omit_1 = __importDefault(require_omit());
178254
- var PUBLISH_CONFIG_WHITELIST = new Set([
178334
+ var PUBLISH_CONFIG_WHITELIST = /* @__PURE__ */ new Set([
178255
178335
  "bin",
178256
178336
  "type",
178257
178337
  "imports",
@@ -179500,7 +179580,7 @@ so you may run "pnpm -w run ${scriptName}"`
179500
179580
  return void 0;
179501
179581
  }
179502
179582
  exports2.handler = handler;
179503
- var ALL_LIFECYCLE_SCRIPTS = new Set([
179583
+ var ALL_LIFECYCLE_SCRIPTS = /* @__PURE__ */ new Set([
179504
179584
  "prepublish",
179505
179585
  "prepare",
179506
179586
  "prepublishOnly",
@@ -179908,8 +179988,8 @@ var require_get_port = __commonJS({
179908
179988
  }
179909
179989
  };
179910
179990
  var lockedPorts = {
179911
- old: new Set(),
179912
- young: new Set()
179991
+ old: /* @__PURE__ */ new Set(),
179992
+ young: /* @__PURE__ */ new Set()
179913
179993
  };
179914
179994
  var releaseOldLockedPortsIntervalMs = 1e3 * 15;
179915
179995
  var interval;
@@ -179938,7 +180018,7 @@ var require_get_port = __commonJS({
179938
180018
  if (interval === void 0) {
179939
180019
  interval = setInterval(() => {
179940
180020
  lockedPorts.old = lockedPorts.young;
179941
- lockedPorts.young = new Set();
180021
+ lockedPorts.young = /* @__PURE__ */ new Set();
179942
180022
  }, releaseOldLockedPortsIntervalMs);
179943
180023
  if (interval.unref) {
179944
180024
  interval.unref();
@@ -182372,7 +182452,7 @@ var require_lib119 = __commonJS({
182372
182452
  var find_workspace_dir_1 = __importDefault(require_lib97());
182373
182453
  var nopt_1 = __importDefault(require_nopt());
182374
182454
  var didyoumean2_1 = __importStar2(require_dist14());
182375
- var RECURSIVE_CMDS = new Set(["recursive", "multi", "m"]);
182455
+ var RECURSIVE_CMDS = /* @__PURE__ */ new Set(["recursive", "multi", "m"]);
182376
182456
  async function parseCliArgs(opts, inputArgv) {
182377
182457
  var _a;
182378
182458
  const noptExploratoryResults = (0, nopt_1.default)({
@@ -182400,7 +182480,7 @@ var require_lib119 = __commonJS({
182400
182480
  cmd: "help",
182401
182481
  options: {},
182402
182482
  params: noptExploratoryResults.argv.remain,
182403
- unknownOptions: new Map(),
182483
+ unknownOptions: /* @__PURE__ */ new Map(),
182404
182484
  fallbackCommandUsed: false
182405
182485
  };
182406
182486
  }
@@ -182486,7 +182566,7 @@ var require_lib119 = __commonJS({
182486
182566
  return { options: normalizedOptions, unknownOptions };
182487
182567
  }
182488
182568
  function getUnknownOptions(usedOptions, knownOptions) {
182489
- const unknownOptions = new Map();
182569
+ const unknownOptions = /* @__PURE__ */ new Map();
182490
182570
  const closestMatches = getClosestOptionMatches.bind(null, Array.from(knownOptions));
182491
182571
  for (const usedOption of usedOptions) {
182492
182572
  if (knownOptions.has(usedOption) || usedOption.startsWith("//"))
@@ -183181,7 +183261,7 @@ var require_cmd = __commonJS({
183181
183261
  var handlerByCommandName = {};
183182
183262
  var helpByCommandName = {};
183183
183263
  var cliOptionsTypesByCommandName = {};
183184
- var aliasToFullName = new Map();
183264
+ var aliasToFullName = /* @__PURE__ */ new Map();
183185
183265
  var completionByCommandName = {};
183186
183266
  var shorthandsByCommandName = {};
183187
183267
  exports2.shorthandsByCommandName = shorthandsByCommandName;
@@ -183482,7 +183562,7 @@ var require_main2 = __commonJS({
183482
183562
  var which_1 = __importDefault(require_which());
183483
183563
  process.once("SIGINT", () => process.exit(0)).once("SIGTERM", () => process.exit(0));
183484
183564
  (0, loud_rejection_1.default)();
183485
- var DEPRECATED_OPTIONS = new Set([
183565
+ var DEPRECATED_OPTIONS = /* @__PURE__ */ new Set([
183486
183566
  "independent-leaves",
183487
183567
  "lock",
183488
183568
  "resolution-strategy"
@@ -183746,7 +183826,6 @@ var require_runNpm = __commonJS({
183746
183826
  });
183747
183827
 
183748
183828
  // lib/pnpm.js
183749
- "use strict";
183750
183829
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
183751
183830
  if (k2 === void 0)
183752
183831
  k2 = k;