@pipelab/plugin-electron 1.0.0-beta.12 → 1.0.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -35,8 +35,8 @@ const finalVersion = () => {
35
35
  throw new Error("Unable to go up on the final version!");
36
36
  };
37
37
  //#endregion
38
- //#region ../../node_modules/semver/internal/constants.js
39
- var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38
+ //#region ../../packages/migration/node_modules/semver/internal/constants.js
39
+ var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40
40
  const SEMVER_SPEC_VERSION = "2.0.0";
41
41
  const MAX_LENGTH = 256;
42
42
  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -60,15 +60,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
60
60
  };
61
61
  }));
62
62
  //#endregion
63
- //#region ../../node_modules/semver/internal/debug.js
64
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
63
+ //#region ../../packages/migration/node_modules/semver/internal/debug.js
64
+ var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65
65
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
66
66
  }));
67
67
  //#endregion
68
- //#region ../../node_modules/semver/internal/re.js
69
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$8();
71
- const debug = require_debug();
68
+ //#region ../../packages/migration/node_modules/semver/internal/re.js
69
+ var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
71
+ const debug = require_debug$2();
72
72
  exports = module.exports = {};
73
73
  const re = exports.re = [];
74
74
  const safeRe = exports.safeRe = [];
@@ -144,8 +144,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
144
144
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
145
145
  }));
146
146
  //#endregion
147
- //#region ../../node_modules/semver/internal/parse-options.js
148
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
147
+ //#region ../../packages/migration/node_modules/semver/internal/parse-options.js
148
+ var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
149
149
  const looseOption = Object.freeze({ loose: true });
150
150
  const emptyOpts = Object.freeze({});
151
151
  const parseOptions = (options) => {
@@ -156,8 +156,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
156
156
  module.exports = parseOptions;
157
157
  }));
158
158
  //#endregion
159
- //#region ../../node_modules/semver/internal/identifiers.js
160
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159
+ //#region ../../packages/migration/node_modules/semver/internal/identifiers.js
160
+ var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  const numeric = /^[0-9]+$/;
162
162
  const compareIdentifiers = (a, b) => {
163
163
  if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
@@ -176,13 +176,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
176
176
  };
177
177
  }));
178
178
  //#endregion
179
- //#region ../../node_modules/semver/classes/semver.js
180
- var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181
- const debug = require_debug();
182
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$8();
183
- const { safeRe: re, t } = require_re();
184
- const parseOptions = require_parse_options();
185
- const { compareIdentifiers } = require_identifiers();
179
+ //#region ../../packages/migration/node_modules/semver/classes/semver.js
180
+ var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181
+ const debug = require_debug$2();
182
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
183
+ const { safeRe: re, t } = require_re$2();
184
+ const parseOptions = require_parse_options$2();
185
+ const { compareIdentifiers } = require_identifiers$2();
186
186
  module.exports = class SemVer {
187
187
  constructor(version, options) {
188
188
  options = parseOptions(options);
@@ -354,9 +354,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
354
354
  };
355
355
  }));
356
356
  //#endregion
357
- //#region ../../node_modules/semver/functions/parse.js
358
- var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
359
- const SemVer = require_semver$1();
357
+ //#region ../../packages/migration/node_modules/semver/functions/parse.js
358
+ var require_parse$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
359
+ const SemVer = require_semver$5();
360
360
  const parse = (version, options, throwErrors = false) => {
361
361
  if (version instanceof SemVer) return version;
362
362
  try {
@@ -369,9 +369,9 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
369
369
  module.exports = parse;
370
370
  }));
371
371
  //#endregion
372
- //#region ../../node_modules/semver/functions/valid.js
373
- var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
374
- const parse = require_parse$4();
372
+ //#region ../../packages/migration/node_modules/semver/functions/valid.js
373
+ var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
374
+ const parse = require_parse$6();
375
375
  const valid = (version, options) => {
376
376
  const v = parse(version, options);
377
377
  return v ? v.version : null;
@@ -379,9 +379,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
379
379
  module.exports = valid;
380
380
  }));
381
381
  //#endregion
382
- //#region ../../node_modules/semver/functions/clean.js
383
- var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
384
- const parse = require_parse$4();
382
+ //#region ../../packages/migration/node_modules/semver/functions/clean.js
383
+ var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
384
+ const parse = require_parse$6();
385
385
  const clean = (version, options) => {
386
386
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
387
387
  return s ? s.version : null;
@@ -389,9 +389,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
389
389
  module.exports = clean;
390
390
  }));
391
391
  //#endregion
392
- //#region ../../node_modules/semver/functions/inc.js
393
- var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
394
- const SemVer = require_semver$1();
392
+ //#region ../../packages/migration/node_modules/semver/functions/inc.js
393
+ var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
394
+ const SemVer = require_semver$5();
395
395
  const inc = (version, release, options, identifier, identifierBase) => {
396
396
  if (typeof options === "string") {
397
397
  identifierBase = identifier;
@@ -407,9 +407,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
407
407
  module.exports = inc;
408
408
  }));
409
409
  //#endregion
410
- //#region ../../node_modules/semver/functions/diff.js
411
- var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
412
- const parse = require_parse$4();
410
+ //#region ../../packages/migration/node_modules/semver/functions/diff.js
411
+ var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
412
+ const parse = require_parse$6();
413
413
  const diff = (version1, version2) => {
414
414
  const v1 = parse(version1, null, true);
415
415
  const v2 = parse(version2, null, true);
@@ -435,30 +435,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
435
435
  module.exports = diff;
436
436
  }));
437
437
  //#endregion
438
- //#region ../../node_modules/semver/functions/major.js
439
- var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
440
- const SemVer = require_semver$1();
438
+ //#region ../../packages/migration/node_modules/semver/functions/major.js
439
+ var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
440
+ const SemVer = require_semver$5();
441
441
  const major = (a, loose) => new SemVer(a, loose).major;
442
442
  module.exports = major;
443
443
  }));
444
444
  //#endregion
445
- //#region ../../node_modules/semver/functions/minor.js
446
- var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
- const SemVer = require_semver$1();
445
+ //#region ../../packages/migration/node_modules/semver/functions/minor.js
446
+ var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
+ const SemVer = require_semver$5();
448
448
  const minor = (a, loose) => new SemVer(a, loose).minor;
449
449
  module.exports = minor;
450
450
  }));
451
451
  //#endregion
452
- //#region ../../node_modules/semver/functions/patch.js
453
- var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
454
- const SemVer = require_semver$1();
452
+ //#region ../../packages/migration/node_modules/semver/functions/patch.js
453
+ var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
454
+ const SemVer = require_semver$5();
455
455
  const patch = (a, loose) => new SemVer(a, loose).patch;
456
456
  module.exports = patch;
457
457
  }));
458
458
  //#endregion
459
- //#region ../../node_modules/semver/functions/prerelease.js
460
- var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
461
- const parse = require_parse$4();
459
+ //#region ../../packages/migration/node_modules/semver/functions/prerelease.js
460
+ var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
461
+ const parse = require_parse$6();
462
462
  const prerelease = (version, options) => {
463
463
  const parsed = parse(version, options);
464
464
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
@@ -466,30 +466,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
466
466
  module.exports = prerelease;
467
467
  }));
468
468
  //#endregion
469
- //#region ../../node_modules/semver/functions/compare.js
470
- var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
471
- const SemVer = require_semver$1();
469
+ //#region ../../packages/migration/node_modules/semver/functions/compare.js
470
+ var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
471
+ const SemVer = require_semver$5();
472
472
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
473
473
  module.exports = compare;
474
474
  }));
475
475
  //#endregion
476
- //#region ../../node_modules/semver/functions/rcompare.js
477
- var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
478
- const compare = require_compare();
476
+ //#region ../../packages/migration/node_modules/semver/functions/rcompare.js
477
+ var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
478
+ const compare = require_compare$2();
479
479
  const rcompare = (a, b, loose) => compare(b, a, loose);
480
480
  module.exports = rcompare;
481
481
  }));
482
482
  //#endregion
483
- //#region ../../node_modules/semver/functions/compare-loose.js
484
- var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
485
- const compare = require_compare();
483
+ //#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
484
+ var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
485
+ const compare = require_compare$2();
486
486
  const compareLoose = (a, b) => compare(a, b, true);
487
487
  module.exports = compareLoose;
488
488
  }));
489
489
  //#endregion
490
- //#region ../../node_modules/semver/functions/compare-build.js
491
- var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
492
- const SemVer = require_semver$1();
490
+ //#region ../../packages/migration/node_modules/semver/functions/compare-build.js
491
+ var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
492
+ const SemVer = require_semver$5();
493
493
  const compareBuild = (a, b, loose) => {
494
494
  const versionA = new SemVer(a, loose);
495
495
  const versionB = new SemVer(b, loose);
@@ -498,70 +498,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
498
498
  module.exports = compareBuild;
499
499
  }));
500
500
  //#endregion
501
- //#region ../../node_modules/semver/functions/sort.js
502
- var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
503
- const compareBuild = require_compare_build();
501
+ //#region ../../packages/migration/node_modules/semver/functions/sort.js
502
+ var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
503
+ const compareBuild = require_compare_build$2();
504
504
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
505
505
  module.exports = sort;
506
506
  }));
507
507
  //#endregion
508
- //#region ../../node_modules/semver/functions/rsort.js
509
- var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
510
- const compareBuild = require_compare_build();
508
+ //#region ../../packages/migration/node_modules/semver/functions/rsort.js
509
+ var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
510
+ const compareBuild = require_compare_build$2();
511
511
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
512
512
  module.exports = rsort;
513
513
  }));
514
514
  //#endregion
515
- //#region ../../node_modules/semver/functions/gt.js
516
- var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
517
- const compare = require_compare();
515
+ //#region ../../packages/migration/node_modules/semver/functions/gt.js
516
+ var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
517
+ const compare = require_compare$2();
518
518
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
519
519
  module.exports = gt;
520
520
  }));
521
521
  //#endregion
522
- //#region ../../node_modules/semver/functions/lt.js
523
- var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
524
- const compare = require_compare();
522
+ //#region ../../packages/migration/node_modules/semver/functions/lt.js
523
+ var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
524
+ const compare = require_compare$2();
525
525
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
526
526
  module.exports = lt;
527
527
  }));
528
528
  //#endregion
529
- //#region ../../node_modules/semver/functions/eq.js
530
- var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
531
- const compare = require_compare();
529
+ //#region ../../packages/migration/node_modules/semver/functions/eq.js
530
+ var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
531
+ const compare = require_compare$2();
532
532
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
533
533
  module.exports = eq;
534
534
  }));
535
535
  //#endregion
536
- //#region ../../node_modules/semver/functions/neq.js
537
- var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
538
- const compare = require_compare();
536
+ //#region ../../packages/migration/node_modules/semver/functions/neq.js
537
+ var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
538
+ const compare = require_compare$2();
539
539
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
540
540
  module.exports = neq;
541
541
  }));
542
542
  //#endregion
543
- //#region ../../node_modules/semver/functions/gte.js
544
- var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
545
- const compare = require_compare();
543
+ //#region ../../packages/migration/node_modules/semver/functions/gte.js
544
+ var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
545
+ const compare = require_compare$2();
546
546
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
547
547
  module.exports = gte;
548
548
  }));
549
549
  //#endregion
550
- //#region ../../node_modules/semver/functions/lte.js
551
- var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
552
- const compare = require_compare();
550
+ //#region ../../packages/migration/node_modules/semver/functions/lte.js
551
+ var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
552
+ const compare = require_compare$2();
553
553
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
554
554
  module.exports = lte;
555
555
  }));
556
556
  //#endregion
557
- //#region ../../node_modules/semver/functions/cmp.js
558
- var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
559
- const eq = require_eq$1();
560
- const neq = require_neq();
561
- const gt = require_gt();
562
- const gte = require_gte();
563
- const lt = require_lt();
564
- const lte = require_lte();
557
+ //#region ../../packages/migration/node_modules/semver/functions/cmp.js
558
+ var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
559
+ const eq = require_eq$3();
560
+ const neq = require_neq$2();
561
+ const gt = require_gt$2();
562
+ const gte = require_gte$2();
563
+ const lt = require_lt$2();
564
+ const lte = require_lte$2();
565
565
  const cmp = (a, op, b, loose) => {
566
566
  switch (op) {
567
567
  case "===":
@@ -586,11 +586,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
586
586
  module.exports = cmp;
587
587
  }));
588
588
  //#endregion
589
- //#region ../../node_modules/semver/functions/coerce.js
590
- var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
591
- const SemVer = require_semver$1();
592
- const parse = require_parse$4();
593
- const { safeRe: re, t } = require_re();
589
+ //#region ../../packages/migration/node_modules/semver/functions/coerce.js
590
+ var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
591
+ const SemVer = require_semver$5();
592
+ const parse = require_parse$6();
593
+ const { safeRe: re, t } = require_re$2();
594
594
  const coerce = (version, options) => {
595
595
  if (version instanceof SemVer) return version;
596
596
  if (typeof version === "number") version = String(version);
@@ -614,8 +614,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
614
614
  module.exports = coerce;
615
615
  }));
616
616
  //#endregion
617
- //#region ../../node_modules/semver/internal/lrucache.js
618
- var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
617
+ //#region ../../packages/migration/node_modules/semver/internal/lrucache.js
618
+ var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
619
619
  var LRUCache = class {
620
620
  constructor() {
621
621
  this.max = 1e3;
@@ -647,8 +647,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
647
647
  module.exports = LRUCache;
648
648
  }));
649
649
  //#endregion
650
- //#region ../../node_modules/semver/classes/range.js
651
- var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
650
+ //#region ../../packages/migration/node_modules/semver/classes/range.js
651
+ var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
652
652
  const SPACE_CHARACTERS = /\s+/g;
653
653
  module.exports = class Range {
654
654
  constructor(range, options) {
@@ -754,13 +754,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
754
754
  return false;
755
755
  }
756
756
  };
757
- const cache = new (require_lrucache())();
758
- const parseOptions = require_parse_options();
759
- const Comparator = require_comparator();
760
- const debug = require_debug();
761
- const SemVer = require_semver$1();
762
- const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
763
- const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$8();
757
+ const cache = new (require_lrucache$2())();
758
+ const parseOptions = require_parse_options$2();
759
+ const Comparator = require_comparator$2();
760
+ const debug = require_debug$2();
761
+ const SemVer = require_semver$5();
762
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
763
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
764
764
  const isNullSet = (c) => c.value === "<0.0.0-0";
765
765
  const isAny = (c) => c.value === "";
766
766
  const isSatisfiable = (comparators, options) => {
@@ -919,8 +919,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
919
919
  };
920
920
  }));
921
921
  //#endregion
922
- //#region ../../node_modules/semver/classes/comparator.js
923
- var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
922
+ //#region ../../packages/migration/node_modules/semver/classes/comparator.js
923
+ var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
924
924
  const ANY = Symbol("SemVer ANY");
925
925
  module.exports = class Comparator {
926
926
  static get ANY() {
@@ -981,17 +981,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
981
981
  return false;
982
982
  }
983
983
  };
984
- const parseOptions = require_parse_options();
985
- const { safeRe: re, t } = require_re();
986
- const cmp = require_cmp();
987
- const debug = require_debug();
988
- const SemVer = require_semver$1();
989
- const Range = require_range();
984
+ const parseOptions = require_parse_options$2();
985
+ const { safeRe: re, t } = require_re$2();
986
+ const cmp = require_cmp$2();
987
+ const debug = require_debug$2();
988
+ const SemVer = require_semver$5();
989
+ const Range = require_range$2();
990
990
  }));
991
991
  //#endregion
992
- //#region ../../node_modules/semver/functions/satisfies.js
993
- var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
994
- const Range = require_range();
992
+ //#region ../../packages/migration/node_modules/semver/functions/satisfies.js
993
+ var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
994
+ const Range = require_range$2();
995
995
  const satisfies = (version, range, options) => {
996
996
  try {
997
997
  range = new Range(range, options);
@@ -1003,17 +1003,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1003
1003
  module.exports = satisfies;
1004
1004
  }));
1005
1005
  //#endregion
1006
- //#region ../../node_modules/semver/ranges/to-comparators.js
1007
- var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1008
- const Range = require_range();
1006
+ //#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
1007
+ var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1008
+ const Range = require_range$2();
1009
1009
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1010
1010
  module.exports = toComparators;
1011
1011
  }));
1012
1012
  //#endregion
1013
- //#region ../../node_modules/semver/ranges/max-satisfying.js
1014
- var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1015
- const SemVer = require_semver$1();
1016
- const Range = require_range();
1013
+ //#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
1014
+ var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1015
+ const SemVer = require_semver$5();
1016
+ const Range = require_range$2();
1017
1017
  const maxSatisfying = (versions, range, options) => {
1018
1018
  let max = null;
1019
1019
  let maxSV = null;
@@ -1036,10 +1036,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1036
1036
  module.exports = maxSatisfying;
1037
1037
  }));
1038
1038
  //#endregion
1039
- //#region ../../node_modules/semver/ranges/min-satisfying.js
1040
- var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1041
- const SemVer = require_semver$1();
1042
- const Range = require_range();
1039
+ //#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
1040
+ var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1041
+ const SemVer = require_semver$5();
1042
+ const Range = require_range$2();
1043
1043
  const minSatisfying = (versions, range, options) => {
1044
1044
  let min = null;
1045
1045
  let minSV = null;
@@ -1062,11 +1062,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1062
1062
  module.exports = minSatisfying;
1063
1063
  }));
1064
1064
  //#endregion
1065
- //#region ../../node_modules/semver/ranges/min-version.js
1066
- var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1067
- const SemVer = require_semver$1();
1068
- const Range = require_range();
1069
- const gt = require_gt();
1065
+ //#region ../../packages/migration/node_modules/semver/ranges/min-version.js
1066
+ var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1067
+ const SemVer = require_semver$5();
1068
+ const Range = require_range$2();
1069
+ const gt = require_gt$2();
1070
1070
  const minVersion = (range, loose) => {
1071
1071
  range = new Range(range, loose);
1072
1072
  let minver = new SemVer("0.0.0");
@@ -1101,9 +1101,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1101
1101
  module.exports = minVersion;
1102
1102
  }));
1103
1103
  //#endregion
1104
- //#region ../../node_modules/semver/ranges/valid.js
1105
- var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1106
- const Range = require_range();
1104
+ //#region ../../packages/migration/node_modules/semver/ranges/valid.js
1105
+ var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1106
+ const Range = require_range$2();
1107
1107
  const validRange = (range, options) => {
1108
1108
  try {
1109
1109
  return new Range(range, options).range || "*";
@@ -1114,17 +1114,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1114
1114
  module.exports = validRange;
1115
1115
  }));
1116
1116
  //#endregion
1117
- //#region ../../node_modules/semver/ranges/outside.js
1118
- var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1119
- const SemVer = require_semver$1();
1120
- const Comparator = require_comparator();
1117
+ //#region ../../packages/migration/node_modules/semver/ranges/outside.js
1118
+ var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1119
+ const SemVer = require_semver$5();
1120
+ const Comparator = require_comparator$2();
1121
1121
  const { ANY } = Comparator;
1122
- const Range = require_range();
1123
- const satisfies = require_satisfies();
1124
- const gt = require_gt();
1125
- const lt = require_lt();
1126
- const lte = require_lte();
1127
- const gte = require_gte();
1122
+ const Range = require_range$2();
1123
+ const satisfies = require_satisfies$2();
1124
+ const gt = require_gt$2();
1125
+ const lt = require_lt$2();
1126
+ const lte = require_lte$2();
1127
+ const gte = require_gte$2();
1128
1128
  const outside = (version, range, hilo, options) => {
1129
1129
  version = new SemVer(version, options);
1130
1130
  range = new Range(range, options);
@@ -1167,23 +1167,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1167
1167
  module.exports = outside;
1168
1168
  }));
1169
1169
  //#endregion
1170
- //#region ../../node_modules/semver/ranges/gtr.js
1171
- var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1172
- const outside = require_outside();
1170
+ //#region ../../packages/migration/node_modules/semver/ranges/gtr.js
1171
+ var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1172
+ const outside = require_outside$2();
1173
1173
  const gtr = (version, range, options) => outside(version, range, ">", options);
1174
1174
  module.exports = gtr;
1175
1175
  }));
1176
1176
  //#endregion
1177
- //#region ../../node_modules/semver/ranges/ltr.js
1178
- var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1179
- const outside = require_outside();
1177
+ //#region ../../packages/migration/node_modules/semver/ranges/ltr.js
1178
+ var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1179
+ const outside = require_outside$2();
1180
1180
  const ltr = (version, range, options) => outside(version, range, "<", options);
1181
1181
  module.exports = ltr;
1182
1182
  }));
1183
1183
  //#endregion
1184
- //#region ../../node_modules/semver/ranges/intersects.js
1185
- var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1186
- const Range = require_range();
1184
+ //#region ../../packages/migration/node_modules/semver/ranges/intersects.js
1185
+ var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1186
+ const Range = require_range$2();
1187
1187
  const intersects = (r1, r2, options) => {
1188
1188
  r1 = new Range(r1, options);
1189
1189
  r2 = new Range(r2, options);
@@ -1192,10 +1192,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1192
1192
  module.exports = intersects;
1193
1193
  }));
1194
1194
  //#endregion
1195
- //#region ../../node_modules/semver/ranges/simplify.js
1196
- var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1197
- const satisfies = require_satisfies();
1198
- const compare = require_compare();
1195
+ //#region ../../packages/migration/node_modules/semver/ranges/simplify.js
1196
+ var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1197
+ const satisfies = require_satisfies$2();
1198
+ const compare = require_compare$2();
1199
1199
  module.exports = (versions, range, options) => {
1200
1200
  const set = [];
1201
1201
  let first = null;
@@ -1222,13 +1222,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1222
1222
  };
1223
1223
  }));
1224
1224
  //#endregion
1225
- //#region ../../node_modules/semver/ranges/subset.js
1226
- var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1227
- const Range = require_range();
1228
- const Comparator = require_comparator();
1225
+ //#region ../../packages/migration/node_modules/semver/ranges/subset.js
1226
+ var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1227
+ const Range = require_range$2();
1228
+ const Comparator = require_comparator$2();
1229
1229
  const { ANY } = Comparator;
1230
- const satisfies = require_satisfies();
1231
- const compare = require_compare();
1230
+ const satisfies = require_satisfies$2();
1231
+ const compare = require_compare$2();
1232
1232
  const subset = (sub, dom, options = {}) => {
1233
1233
  if (sub === dom) return true;
1234
1234
  sub = new Range(sub, options);
@@ -1317,50 +1317,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1317
1317
  module.exports = subset;
1318
1318
  }));
1319
1319
  //#endregion
1320
- //#region ../../node_modules/semver/index.js
1321
- var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1322
- const internalRe = require_re();
1323
- const constants = require_constants$8();
1324
- const SemVer = require_semver$1();
1325
- const identifiers = require_identifiers();
1320
+ //#region ../../packages/migration/src/utils/object-keys.ts
1321
+ var import_semver$2 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1322
+ const internalRe = require_re$2();
1323
+ const constants = require_constants$10();
1324
+ const SemVer = require_semver$5();
1325
+ const identifiers = require_identifiers$2();
1326
1326
  module.exports = {
1327
- parse: require_parse$4(),
1328
- valid: require_valid$1(),
1329
- clean: require_clean(),
1330
- inc: require_inc(),
1331
- diff: require_diff(),
1332
- major: require_major(),
1333
- minor: require_minor(),
1334
- patch: require_patch(),
1335
- prerelease: require_prerelease(),
1336
- compare: require_compare(),
1337
- rcompare: require_rcompare(),
1338
- compareLoose: require_compare_loose(),
1339
- compareBuild: require_compare_build(),
1340
- sort: require_sort$1(),
1341
- rsort: require_rsort(),
1342
- gt: require_gt(),
1343
- lt: require_lt(),
1344
- eq: require_eq$1(),
1345
- neq: require_neq(),
1346
- gte: require_gte(),
1347
- lte: require_lte(),
1348
- cmp: require_cmp(),
1349
- coerce: require_coerce(),
1350
- Comparator: require_comparator(),
1351
- Range: require_range(),
1352
- satisfies: require_satisfies(),
1353
- toComparators: require_to_comparators(),
1354
- maxSatisfying: require_max_satisfying(),
1355
- minSatisfying: require_min_satisfying(),
1356
- minVersion: require_min_version(),
1357
- validRange: require_valid(),
1358
- outside: require_outside(),
1359
- gtr: require_gtr(),
1360
- ltr: require_ltr(),
1361
- intersects: require_intersects(),
1362
- simplifyRange: require_simplify(),
1363
- subset: require_subset(),
1327
+ parse: require_parse$6(),
1328
+ valid: require_valid$5(),
1329
+ clean: require_clean$2(),
1330
+ inc: require_inc$2(),
1331
+ diff: require_diff$2(),
1332
+ major: require_major$2(),
1333
+ minor: require_minor$2(),
1334
+ patch: require_patch$2(),
1335
+ prerelease: require_prerelease$2(),
1336
+ compare: require_compare$2(),
1337
+ rcompare: require_rcompare$2(),
1338
+ compareLoose: require_compare_loose$2(),
1339
+ compareBuild: require_compare_build$2(),
1340
+ sort: require_sort$3(),
1341
+ rsort: require_rsort$2(),
1342
+ gt: require_gt$2(),
1343
+ lt: require_lt$2(),
1344
+ eq: require_eq$3(),
1345
+ neq: require_neq$2(),
1346
+ gte: require_gte$2(),
1347
+ lte: require_lte$2(),
1348
+ cmp: require_cmp$2(),
1349
+ coerce: require_coerce$2(),
1350
+ Comparator: require_comparator$2(),
1351
+ Range: require_range$2(),
1352
+ satisfies: require_satisfies$2(),
1353
+ toComparators: require_to_comparators$2(),
1354
+ maxSatisfying: require_max_satisfying$2(),
1355
+ minSatisfying: require_min_satisfying$2(),
1356
+ minVersion: require_min_version$2(),
1357
+ validRange: require_valid$4(),
1358
+ outside: require_outside$2(),
1359
+ gtr: require_gtr$2(),
1360
+ ltr: require_ltr$2(),
1361
+ intersects: require_intersects$2(),
1362
+ simplifyRange: require_simplify$2(),
1363
+ subset: require_subset$2(),
1364
1364
  SemVer,
1365
1365
  re: internalRe.re,
1366
1366
  src: internalRe.src,
@@ -1370,10 +1370,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1370
1370
  compareIdentifiers: identifiers.compareIdentifiers,
1371
1371
  rcompareIdentifiers: identifiers.rcompareIdentifiers
1372
1372
  };
1373
- }));
1374
- //#endregion
1375
- //#region ../../packages/migration/src/utils/object-keys.ts
1376
- var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
1373
+ })))(), 1);
1377
1374
  const objectKeys = Object.keys;
1378
1375
  //#endregion
1379
1376
  //#region ../../node_modules/klona/dist/index.mjs
@@ -1582,19 +1579,6 @@ function custom(check2, message) {
1582
1579
  }
1583
1580
  };
1584
1581
  }
1585
- function lazy(getter) {
1586
- return {
1587
- kind: "schema",
1588
- type: "lazy",
1589
- reference: lazy,
1590
- expects: "unknown",
1591
- async: false,
1592
- getter,
1593
- _run(dataset, config2) {
1594
- return this.getter(dataset.value)._run(dataset, config2);
1595
- }
1596
- };
1597
- }
1598
1582
  function literal(literal_, message) {
1599
1583
  return {
1600
1584
  kind: "schema",
@@ -1938,7 +1922,7 @@ var Migrator = class {
1938
1922
  }
1939
1923
  getVersions() {
1940
1924
  const keys = objectKeys(this.migrations);
1941
- return import_semver.sort(keys);
1925
+ return import_semver$2.sort(keys);
1942
1926
  }
1943
1927
  async migrate(_state, options) {
1944
1928
  const state = _state ?? this.defaultValue;
@@ -1970,11 +1954,11 @@ var Migrator = class {
1970
1954
  return finalState;
1971
1955
  }
1972
1956
  tryCoerce(version) {
1973
- return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
1957
+ return this.coerce ? (0, import_semver$2.coerce)(version)?.version ?? version : version;
1974
1958
  }
1975
1959
  needMigration(version) {
1976
1960
  const newVersion = this.tryCoerce(version);
1977
- return import_semver.lt(newVersion, this.current);
1961
+ return import_semver$2.lt(newVersion, this.current);
1978
1962
  }
1979
1963
  };
1980
1964
  //#endregion
@@ -1991,12 +1975,74 @@ const createMigrator = () => {
1991
1975
  };
1992
1976
  //#endregion
1993
1977
  //#region ../../packages/shared/src/config/migrators.ts
1978
+ const DEFAULT_PLUGINS = [
1979
+ {
1980
+ name: "@pipelab/plugin-construct",
1981
+ enabled: true,
1982
+ description: "Construct 3 export & packaging"
1983
+ },
1984
+ {
1985
+ name: "@pipelab/plugin-filesystem",
1986
+ enabled: true,
1987
+ description: "Filesystem utilities"
1988
+ },
1989
+ {
1990
+ name: "@pipelab/plugin-system",
1991
+ enabled: true,
1992
+ description: "System & shell commands"
1993
+ },
1994
+ {
1995
+ name: "@pipelab/plugin-steam",
1996
+ enabled: true,
1997
+ description: "Steam publishing"
1998
+ },
1999
+ {
2000
+ name: "@pipelab/plugin-itch",
2001
+ enabled: true,
2002
+ description: "Itch.io publishing"
2003
+ },
2004
+ {
2005
+ name: "@pipelab/plugin-electron",
2006
+ enabled: true,
2007
+ description: "Electron packaging"
2008
+ },
2009
+ {
2010
+ name: "@pipelab/plugin-discord",
2011
+ enabled: true,
2012
+ description: "Discord Rich Presence"
2013
+ },
2014
+ {
2015
+ name: "@pipelab/plugin-poki",
2016
+ enabled: true,
2017
+ description: "Poki publishing"
2018
+ },
2019
+ {
2020
+ name: "@pipelab/plugin-nvpatch",
2021
+ enabled: true,
2022
+ description: "NW.js patching"
2023
+ },
2024
+ {
2025
+ name: "@pipelab/plugin-tauri",
2026
+ enabled: true,
2027
+ description: "Tauri packaging"
2028
+ },
2029
+ {
2030
+ name: "@pipelab/plugin-minify",
2031
+ enabled: true,
2032
+ description: "Asset minification"
2033
+ },
2034
+ {
2035
+ name: "@pipelab/plugin-netlify",
2036
+ enabled: true,
2037
+ description: "Netlify deployment"
2038
+ }
2039
+ ];
1994
2040
  const createMigration = (config) => createMigration$1(config);
1995
2041
  const settingsMigratorInternal = createMigrator();
1996
2042
  const defaultAppSettings = settingsMigratorInternal.createDefault({
1997
2043
  locale: "en-US",
1998
2044
  theme: "light",
1999
- version: "7.0.0",
2045
+ version: "8.0.0",
2000
2046
  autosave: true,
2001
2047
  agents: [],
2002
2048
  tours: {
@@ -2013,7 +2059,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2013
2059
  enabled: false,
2014
2060
  maxEntries: 50,
2015
2061
  maxAge: 30
2016
- } }
2062
+ } },
2063
+ plugins: DEFAULT_PLUGINS,
2064
+ isInternalMigrationBannerClosed: false
2017
2065
  });
2018
2066
  settingsMigratorInternal.createMigrations({
2019
2067
  defaultValue: defaultAppSettings,
@@ -2064,19 +2112,22 @@ settingsMigratorInternal.createMigrations({
2064
2112
  createMigration({
2065
2113
  version: "6.0.0",
2066
2114
  up: (state) => {
2115
+ const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
2067
2116
  return {
2068
- ...state,
2117
+ ...rest,
2069
2118
  agents: [],
2070
2119
  buildHistory: { retentionPolicy: {
2071
2120
  enabled: false,
2072
2121
  maxEntries: 50,
2073
2122
  maxAge: 30
2074
- } }
2123
+ } },
2124
+ plugins: DEFAULT_PLUGINS,
2125
+ isInternalMigrationBannerClosed: false
2075
2126
  };
2076
2127
  }
2077
2128
  }),
2078
2129
  createMigration({
2079
- version: "7.0.0",
2130
+ version: "8.0.0",
2080
2131
  up: finalVersion
2081
2132
  })
2082
2133
  ]
@@ -2127,8 +2178,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
2127
2178
  description: "",
2128
2179
  name: "",
2129
2180
  variables: [],
2130
- type: "default",
2131
- version: "4.0.0"
2181
+ version: "5.0.0"
2132
2182
  });
2133
2183
  savedFileMigratorInternal.createMigrations({
2134
2184
  defaultValue: savedFileDefaultValue,
@@ -2191,10 +2241,63 @@ savedFileMigratorInternal.createMigrations({
2191
2241
  }),
2192
2242
  createMigration({
2193
2243
  version: "4.0.0",
2244
+ up: (_state) => {
2245
+ const state = _state;
2246
+ if (state.type === "simple") return {
2247
+ name: state.name,
2248
+ description: state.description,
2249
+ canvas: {
2250
+ blocks: [],
2251
+ triggers: []
2252
+ },
2253
+ variables: []
2254
+ };
2255
+ const migrateBlock = (block, pluginsMap) => {
2256
+ if (!block) return;
2257
+ if (block.origin?.pluginId) {
2258
+ block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
2259
+ block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
2260
+ }
2261
+ };
2262
+ const normalizedPlugins = {};
2263
+ if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
2264
+ if (state.canvas) {
2265
+ for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
2266
+ for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
2267
+ }
2268
+ const { plugins: _dropped, type: _type, ...rest } = state;
2269
+ return rest;
2270
+ }
2271
+ }),
2272
+ createMigration({
2273
+ version: "5.0.0",
2194
2274
  up: finalVersion
2195
2275
  })
2196
2276
  ]
2197
2277
  });
2278
+ const LEGACY_ID_MAP = {
2279
+ construct: "@pipelab/plugin-construct",
2280
+ filesystem: "@pipelab/plugin-filesystem",
2281
+ system: "@pipelab/plugin-system",
2282
+ steam: "@pipelab/plugin-steam",
2283
+ itch: "@pipelab/plugin-itch",
2284
+ electron: "@pipelab/plugin-electron",
2285
+ discord: "@pipelab/plugin-discord",
2286
+ dicord: "@pipelab/plugin-discord",
2287
+ "@pipelab/plugin-dicord": "@pipelab/plugin-discord",
2288
+ poki: "@pipelab/plugin-poki",
2289
+ nvpatch: "@pipelab/plugin-nvpatch",
2290
+ tauri: "@pipelab/plugin-tauri",
2291
+ minify: "@pipelab/plugin-minify",
2292
+ netlify: "@pipelab/plugin-netlify"
2293
+ };
2294
+ const getStrictPluginId = (pluginId) => {
2295
+ if (!pluginId) return pluginId;
2296
+ if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
2297
+ if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
2298
+ const prefixed = `@pipelab/plugin-${pluginId}`;
2299
+ return LEGACY_ID_MAP[prefixed] || prefixed;
2300
+ };
2198
2301
  object({
2199
2302
  cacheFolder: string(),
2200
2303
  theme: union([literal("light"), literal("dark")]),
@@ -2307,6 +2410,45 @@ object({
2307
2410
  maxAge: number()
2308
2411
  }) })
2309
2412
  });
2413
+ object({
2414
+ theme: union([literal("light"), literal("dark")]),
2415
+ version: literal("8.0.0"),
2416
+ locale: union([
2417
+ literal("en-US"),
2418
+ literal("fr-FR"),
2419
+ literal("pt-BR"),
2420
+ literal("zh-CN"),
2421
+ literal("es-ES"),
2422
+ literal("de-DE")
2423
+ ]),
2424
+ tours: object({
2425
+ dashboard: object({
2426
+ step: number(),
2427
+ completed: boolean()
2428
+ }),
2429
+ editor: object({
2430
+ step: number(),
2431
+ completed: boolean()
2432
+ })
2433
+ }),
2434
+ autosave: boolean(),
2435
+ agents: array(object({
2436
+ id: string(),
2437
+ name: string(),
2438
+ url: string()
2439
+ })),
2440
+ buildHistory: object({ retentionPolicy: object({
2441
+ enabled: boolean(),
2442
+ maxEntries: number(),
2443
+ maxAge: number()
2444
+ }) }),
2445
+ plugins: array(object({
2446
+ name: string(),
2447
+ enabled: boolean(),
2448
+ description: string()
2449
+ })),
2450
+ isInternalMigrationBannerClosed: optional(boolean(), false)
2451
+ });
2310
2452
  //#endregion
2311
2453
  //#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
2312
2454
  const prettyLogStyles = {
@@ -2826,7 +2968,8 @@ const useLogger = () => {
2826
2968
  //#region ../../packages/shared/src/model.ts
2827
2969
  const OriginValidator = object({
2828
2970
  pluginId: string(),
2829
- nodeId: string()
2971
+ nodeId: string(),
2972
+ version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
2830
2973
  });
2831
2974
  const BlockActionValidatorV1 = object({
2832
2975
  type: literal("action"),
@@ -2847,21 +2990,6 @@ const BlockActionValidatorV3 = object({
2847
2990
  })),
2848
2991
  origin: OriginValidator
2849
2992
  });
2850
- object({
2851
- type: literal("condition"),
2852
- uid: string(),
2853
- origin: OriginValidator,
2854
- params: record(string(), any()),
2855
- branchTrue: lazy(() => array(BlockValidator)),
2856
- branchFalse: lazy(() => array(BlockValidator))
2857
- });
2858
- object({
2859
- type: literal("loop"),
2860
- uid: string(),
2861
- origin: OriginValidator,
2862
- params: record(string(), any()),
2863
- children: lazy(() => array(BlockValidator))
2864
- });
2865
2993
  const BlockEventValidator = object({
2866
2994
  type: literal("event"),
2867
2995
  uid: string(),
@@ -2877,7 +3005,6 @@ object({
2877
3005
  const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
2878
3006
  const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
2879
3007
  const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
2880
- const BlockValidator = BlockValidatorV3;
2881
3008
  const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
2882
3009
  const CanvasValidatorV2 = object({
2883
3010
  blocks: array(BlockValidatorV2),
@@ -2909,18 +3036,59 @@ object({
2909
3036
  canvas: CanvasValidatorV3,
2910
3037
  variables: array(VariableValidatorV1)
2911
3038
  });
2912
- union([object({
3039
+ const SavedFileDefaultValidatorV4 = object({
2913
3040
  version: literal("4.0.0"),
2914
3041
  type: literal("default"),
2915
3042
  name: string(),
2916
3043
  description: string(),
3044
+ plugins: optional(record(string(), string())),
2917
3045
  canvas: CanvasValidatorV3,
2918
3046
  variables: array(VariableValidatorV1)
2919
- }), object({
3047
+ });
3048
+ const SavedFileSimpleValidatorV4 = object({
2920
3049
  version: literal("4.0.0"),
2921
3050
  type: literal("simple"),
2922
3051
  name: string(),
2923
3052
  description: string(),
3053
+ plugins: optional(record(string(), string())),
3054
+ source: object({
3055
+ type: union([
3056
+ literal("c3-html"),
3057
+ literal("c3-nwjs"),
3058
+ literal("godot"),
3059
+ literal("html")
3060
+ ]),
3061
+ path: string()
3062
+ }),
3063
+ packaging: object({ enabled: boolean() }),
3064
+ publishing: object({
3065
+ steam: object({
3066
+ enabled: boolean(),
3067
+ appId: optional(string())
3068
+ }),
3069
+ itch: object({
3070
+ enabled: boolean(),
3071
+ project: optional(string())
3072
+ }),
3073
+ poki: object({
3074
+ enabled: boolean(),
3075
+ gameId: optional(string())
3076
+ })
3077
+ })
3078
+ });
3079
+ object({
3080
+ version: literal("5.0.0"),
3081
+ name: string(),
3082
+ description: string(),
3083
+ canvas: CanvasValidatorV3,
3084
+ variables: array(VariableValidatorV1)
3085
+ });
3086
+ object({
3087
+ version: literal("5.0.0"),
3088
+ type: literal("simple"),
3089
+ name: string(),
3090
+ description: string(),
3091
+ plugins: record(string(), string()),
2924
3092
  source: object({
2925
3093
  type: union([
2926
3094
  literal("c3-html"),
@@ -2945,7 +3113,8 @@ union([object({
2945
3113
  gameId: optional(string())
2946
3114
  })
2947
3115
  })
2948
- })]);
3116
+ });
3117
+ union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
2949
3118
  //#endregion
2950
3119
  //#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
2951
3120
  /**
@@ -45239,7 +45408,7 @@ function findProjectRoot(startDir) {
45239
45408
  const projectRoot = findProjectRoot(_dirname);
45240
45409
  //#endregion
45241
45410
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45242
- var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45411
+ var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45243
45412
  const BINARY_TYPES = [
45244
45413
  "nodebuffer",
45245
45414
  "arraybuffer",
@@ -45262,7 +45431,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45262
45431
  //#endregion
45263
45432
  //#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
45264
45433
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45265
- const { EMPTY_BUFFER } = require_constants$7();
45434
+ const { EMPTY_BUFFER } = require_constants$9();
45266
45435
  const FastBuffer = Buffer[Symbol.species];
45267
45436
  /**
45268
45437
  * Merges an array of buffers into a new buffer.
@@ -45416,7 +45585,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
45416
45585
  const zlib$2 = __require("zlib");
45417
45586
  const bufferUtil = require_buffer_util();
45418
45587
  const Limiter = require_limiter();
45419
- const { kStatusCode } = require_constants$7();
45588
+ const { kStatusCode } = require_constants$9();
45420
45589
  const FastBuffer = Buffer[Symbol.species];
45421
45590
  const TRAILER = Buffer.from([
45422
45591
  0,
@@ -45747,7 +45916,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
45747
45916
  //#region ../../packages/core-node/node_modules/ws/lib/validation.js
45748
45917
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45749
45918
  const { isUtf8 } = __require("buffer");
45750
- const { hasBlob } = require_constants$7();
45919
+ const { hasBlob } = require_constants$9();
45751
45920
  const tokenChars = [
45752
45921
  0,
45753
45922
  0,
@@ -45944,7 +46113,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45944
46113
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45945
46114
  const { Writable: Writable$2 } = __require("stream");
45946
46115
  const PerMessageDeflate = require_permessage_deflate();
45947
- const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$7();
46116
+ const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
45948
46117
  const { concat, toArrayBuffer, unmask } = require_buffer_util();
45949
46118
  const { isValidStatusCode, isValidUTF8 } = require_validation();
45950
46119
  const FastBuffer = Buffer[Symbol.species];
@@ -46392,7 +46561,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46392
46561
  const { Duplex: Duplex$4 } = __require("stream");
46393
46562
  const { randomFillSync } = __require("crypto");
46394
46563
  const PerMessageDeflate = require_permessage_deflate();
46395
- const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$7();
46564
+ const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
46396
46565
  const { isBlob, isValidStatusCode } = require_validation();
46397
46566
  const { mask: applyMask, toBuffer } = require_buffer_util();
46398
46567
  const kByteLength = Symbol("kByteLength");
@@ -46880,7 +47049,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46880
47049
  //#endregion
46881
47050
  //#region ../../packages/core-node/node_modules/ws/lib/event-target.js
46882
47051
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46883
- const { kForOnEventAttribute, kListener } = require_constants$7();
47052
+ const { kForOnEventAttribute, kListener } = require_constants$9();
46884
47053
  const kCode = Symbol("kCode");
46885
47054
  const kData = Symbol("kData");
46886
47055
  const kError = Symbol("kError");
@@ -47247,7 +47416,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47247
47416
  const Receiver = require_receiver();
47248
47417
  const Sender = require_sender();
47249
47418
  const { isBlob } = require_validation();
47250
- const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$7();
47419
+ const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
47251
47420
  const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
47252
47421
  const { format, parse } = require_extension();
47253
47422
  const { toBuffer } = require_buffer_util();
@@ -48363,7 +48532,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
48363
48532
  const PerMessageDeflate = require_permessage_deflate();
48364
48533
  const subprotocol = require_subprotocol();
48365
48534
  const WebSocket = require_websocket();
48366
- const { GUID, kWebSocket } = require_constants$7();
48535
+ const { GUID, kWebSocket } = require_constants$9();
48367
48536
  const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
48368
48537
  const RUNNING = 0;
48369
48538
  const CLOSING = 1;
@@ -50055,7 +50224,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50055
50224
  }));
50056
50225
  //#endregion
50057
50226
  //#region ../../node_modules/cross-spawn/lib/parse.js
50058
- var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50227
+ var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50059
50228
  const path$32 = __require("path");
50060
50229
  const resolveCommand = require_resolveCommand();
50061
50230
  const escape = require_escape$4();
@@ -50157,7 +50326,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50157
50326
  //#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
50158
50327
  var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
50159
50328
  const cp$1 = __require("child_process");
50160
- const parse = require_parse$3();
50329
+ const parse = require_parse$5();
50161
50330
  const enoent = require_enoent();
50162
50331
  function spawn(command, args, options) {
50163
50332
  const parsed = parse(command, args, options);
@@ -55694,7 +55863,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
55694
55863
  }));
55695
55864
  //#endregion
55696
55865
  //#region ../../node_modules/tar/node_modules/minizlib/constants.js
55697
- var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
55866
+ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
55698
55867
  const realZlibConstants$1 = __require("zlib").constants || (
55699
55868
  /* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
55700
55869
  module.exports = Object.freeze(Object.assign(Object.create(null), {
@@ -56242,7 +56411,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
56242
56411
  const assert$2 = __require("assert");
56243
56412
  const Buffer$8 = __require("buffer").Buffer;
56244
56413
  const realZlib$1 = __require("zlib");
56245
- const constants = exports.constants = require_constants$6();
56414
+ const constants = exports.constants = require_constants$8();
56246
56415
  const Minipass = require_minipass$3();
56247
56416
  const OriginalBufferConcat = Buffer$8.concat;
56248
56417
  const _superWrite = Symbol("_superWrite");
@@ -58699,7 +58868,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
58699
58868
  }));
58700
58869
  //#endregion
58701
58870
  //#region ../../node_modules/tar/lib/parse.js
58702
- var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
58871
+ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
58703
58872
  const warner = require_warn_mixin();
58704
58873
  const Header = require_header();
58705
58874
  const EE$10 = __require("events");
@@ -59047,7 +59216,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
59047
59216
  //#region ../../node_modules/tar/lib/list.js
59048
59217
  var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59049
59218
  const hlo = require_high_level_opt();
59050
- const Parser = require_parse$2();
59219
+ const Parser = require_parse$4();
59051
59220
  const fs$29 = __require("fs");
59052
59221
  const fsm = require_fs_minipass();
59053
59222
  const path$28 = __require("path");
@@ -59932,7 +60101,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
59932
60101
  //#region ../../node_modules/tar/lib/unpack.js
59933
60102
  var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59934
60103
  const assert = __require("assert");
59935
- const Parser = require_parse$2();
60104
+ const Parser = require_parse$4();
59936
60105
  const fs$23 = __require("fs");
59937
60106
  const fsm = require_fs_minipass();
59938
60107
  const path$23 = __require("path");
@@ -60590,7 +60759,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
60590
60759
  exports.x = exports.extract = require_extract$1();
60591
60760
  exports.Pack = require_pack$1();
60592
60761
  exports.Unpack = require_unpack();
60593
- exports.Parse = require_parse$2();
60762
+ exports.Parse = require_parse$4();
60594
60763
  exports.ReadEntry = require_read_entry();
60595
60764
  exports.WriteEntry = require_write_entry();
60596
60765
  exports.Header = require_header();
@@ -71185,7 +71354,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71185
71354
  }));
71186
71355
  //#endregion
71187
71356
  //#region ../../node_modules/lodash/eq.js
71188
- var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71357
+ var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71189
71358
  /**
71190
71359
  * Performs a
71191
71360
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -71318,7 +71487,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71318
71487
  //#endregion
71319
71488
  //#region ../../node_modules/lodash/_isIterateeCall.js
71320
71489
  var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71321
- var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
71490
+ var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
71322
71491
  /**
71323
71492
  * Checks if the given arguments are from an iteratee call.
71324
71493
  *
@@ -71639,7 +71808,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71639
71808
  //#endregion
71640
71809
  //#region ../../node_modules/lodash/defaults.js
71641
71810
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71642
- var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
71811
+ var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
71643
71812
  /** Used for built-in method references. */
71644
71813
  var objectProto = Object.prototype;
71645
71814
  /** Used to check objects for own properties. */
@@ -77261,7 +77430,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
77261
77430
  //#endregion
77262
77431
  //#region ../../node_modules/lodash/_assocIndexOf.js
77263
77432
  var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
77264
- var eq = require_eq();
77433
+ var eq = require_eq$2();
77265
77434
  /**
77266
77435
  * Gets the index at which the `key` is found in `array` of key-value pairs.
77267
77436
  *
@@ -85193,7 +85362,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
85193
85362
  }));
85194
85363
  //#endregion
85195
85364
  //#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
85196
- var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
85365
+ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
85197
85366
  /**
85198
85367
  * node-compress-commons
85199
85368
  *
@@ -85268,7 +85437,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
85268
85437
  var ArchiveEntry = require_archive_entry();
85269
85438
  var GeneralPurposeBit = require_general_purpose_bit();
85270
85439
  var UnixStat = require_unix_stat();
85271
- var constants = require_constants$5();
85440
+ var constants = require_constants$7();
85272
85441
  var zipUtil = require_util$3();
85273
85442
  var ZipArchiveEntry = module.exports = function(name) {
85274
85443
  if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
@@ -85902,7 +86071,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
85902
86071
  var ArchiveOutputStream = require_archive_output_stream();
85903
86072
  require_zip_archive_entry();
85904
86073
  require_general_purpose_bit();
85905
- var constants = require_constants$5();
86074
+ var constants = require_constants$7();
85906
86075
  require_util$2();
85907
86076
  var zipUtil = require_util$3();
85908
86077
  var ZipArchiveOutputStream = module.exports = function(options) {
@@ -88399,7 +88568,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88399
88568
  }));
88400
88569
  //#endregion
88401
88570
  //#region ../../node_modules/tar-stream/constants.js
88402
- var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88571
+ var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88403
88572
  const constants = {
88404
88573
  S_IFMT: 61440,
88405
88574
  S_IFDIR: 16384,
@@ -88419,7 +88588,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88419
88588
  var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88420
88589
  const { Readable, Writable, getStreamError } = require_streamx();
88421
88590
  const b4a = require_b4a();
88422
- const constants = require_constants$4();
88591
+ const constants = require_constants$6();
88423
88592
  const headers = require_headers$1();
88424
88593
  const DMODE = 493;
88425
88594
  const FMODE = 420;
@@ -89483,6 +89652,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
89483
89652
  module.exports = updateWorkspaces;
89484
89653
  }));
89485
89654
  //#endregion
89655
+ //#region ../../node_modules/semver/internal/debug.js
89656
+ var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89657
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
89658
+ }));
89659
+ //#endregion
89660
+ //#region ../../node_modules/semver/internal/constants.js
89661
+ var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89662
+ const SEMVER_SPEC_VERSION = "2.0.0";
89663
+ const MAX_LENGTH = 256;
89664
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
89665
+ module.exports = {
89666
+ MAX_LENGTH,
89667
+ MAX_SAFE_COMPONENT_LENGTH: 16,
89668
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
89669
+ MAX_SAFE_INTEGER,
89670
+ RELEASE_TYPES: [
89671
+ "major",
89672
+ "premajor",
89673
+ "minor",
89674
+ "preminor",
89675
+ "patch",
89676
+ "prepatch",
89677
+ "prerelease"
89678
+ ],
89679
+ SEMVER_SPEC_VERSION,
89680
+ FLAG_INCLUDE_PRERELEASE: 1,
89681
+ FLAG_LOOSE: 2
89682
+ };
89683
+ }));
89684
+ //#endregion
89685
+ //#region ../../node_modules/semver/internal/re.js
89686
+ var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89687
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
89688
+ const debug = require_debug$1();
89689
+ exports = module.exports = {};
89690
+ const re = exports.re = [];
89691
+ const safeRe = exports.safeRe = [];
89692
+ const src = exports.src = [];
89693
+ const safeSrc = exports.safeSrc = [];
89694
+ const t = exports.t = {};
89695
+ let R = 0;
89696
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
89697
+ const safeRegexReplacements = [
89698
+ ["\\s", 1],
89699
+ ["\\d", MAX_LENGTH],
89700
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
89701
+ ];
89702
+ const makeSafeRegex = (value) => {
89703
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
89704
+ return value;
89705
+ };
89706
+ const createToken = (name, value, isGlobal) => {
89707
+ const safe = makeSafeRegex(value);
89708
+ const index = R++;
89709
+ debug(name, index, value);
89710
+ t[name] = index;
89711
+ src[index] = value;
89712
+ safeSrc[index] = safe;
89713
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
89714
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
89715
+ };
89716
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
89717
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
89718
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
89719
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
89720
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
89721
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
89722
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
89723
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
89724
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
89725
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
89726
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
89727
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
89728
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
89729
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
89730
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
89731
+ createToken("GTLT", "((?:<|>)?=?)");
89732
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
89733
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
89734
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
89735
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
89736
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
89737
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
89738
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
89739
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
89740
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
89741
+ createToken("COERCERTL", src[t.COERCE], true);
89742
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
89743
+ createToken("LONETILDE", "(?:~>?)");
89744
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
89745
+ exports.tildeTrimReplace = "$1~";
89746
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
89747
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
89748
+ createToken("LONECARET", "(?:\\^)");
89749
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
89750
+ exports.caretTrimReplace = "$1^";
89751
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
89752
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
89753
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
89754
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
89755
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
89756
+ exports.comparatorTrimReplace = "$1$2$3";
89757
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
89758
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
89759
+ createToken("STAR", "(<|>)?=?\\s*\\*");
89760
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
89761
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
89762
+ }));
89763
+ //#endregion
89764
+ //#region ../../node_modules/semver/internal/parse-options.js
89765
+ var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89766
+ const looseOption = Object.freeze({ loose: true });
89767
+ const emptyOpts = Object.freeze({});
89768
+ const parseOptions = (options) => {
89769
+ if (!options) return emptyOpts;
89770
+ if (typeof options !== "object") return looseOption;
89771
+ return options;
89772
+ };
89773
+ module.exports = parseOptions;
89774
+ }));
89775
+ //#endregion
89776
+ //#region ../../node_modules/semver/internal/identifiers.js
89777
+ var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89778
+ const numeric = /^[0-9]+$/;
89779
+ const compareIdentifiers = (a, b) => {
89780
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
89781
+ const anum = numeric.test(a);
89782
+ const bnum = numeric.test(b);
89783
+ if (anum && bnum) {
89784
+ a = +a;
89785
+ b = +b;
89786
+ }
89787
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
89788
+ };
89789
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
89790
+ module.exports = {
89791
+ compareIdentifiers,
89792
+ rcompareIdentifiers
89793
+ };
89794
+ }));
89795
+ //#endregion
89796
+ //#region ../../node_modules/semver/classes/semver.js
89797
+ var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89798
+ const debug = require_debug$1();
89799
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
89800
+ const { safeRe: re, t } = require_re$1();
89801
+ const parseOptions = require_parse_options$1();
89802
+ const { compareIdentifiers } = require_identifiers$1();
89803
+ module.exports = class SemVer {
89804
+ constructor(version, options) {
89805
+ options = parseOptions(options);
89806
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
89807
+ else version = version.version;
89808
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
89809
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
89810
+ debug("SemVer", version, options);
89811
+ this.options = options;
89812
+ this.loose = !!options.loose;
89813
+ this.includePrerelease = !!options.includePrerelease;
89814
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
89815
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
89816
+ this.raw = version;
89817
+ this.major = +m[1];
89818
+ this.minor = +m[2];
89819
+ this.patch = +m[3];
89820
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
89821
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
89822
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
89823
+ if (!m[4]) this.prerelease = [];
89824
+ else this.prerelease = m[4].split(".").map((id) => {
89825
+ if (/^[0-9]+$/.test(id)) {
89826
+ const num = +id;
89827
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
89828
+ }
89829
+ return id;
89830
+ });
89831
+ this.build = m[5] ? m[5].split(".") : [];
89832
+ this.format();
89833
+ }
89834
+ format() {
89835
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
89836
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
89837
+ return this.version;
89838
+ }
89839
+ toString() {
89840
+ return this.version;
89841
+ }
89842
+ compare(other) {
89843
+ debug("SemVer.compare", this.version, this.options, other);
89844
+ if (!(other instanceof SemVer)) {
89845
+ if (typeof other === "string" && other === this.version) return 0;
89846
+ other = new SemVer(other, this.options);
89847
+ }
89848
+ if (other.version === this.version) return 0;
89849
+ return this.compareMain(other) || this.comparePre(other);
89850
+ }
89851
+ compareMain(other) {
89852
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
89853
+ if (this.major < other.major) return -1;
89854
+ if (this.major > other.major) return 1;
89855
+ if (this.minor < other.minor) return -1;
89856
+ if (this.minor > other.minor) return 1;
89857
+ if (this.patch < other.patch) return -1;
89858
+ if (this.patch > other.patch) return 1;
89859
+ return 0;
89860
+ }
89861
+ comparePre(other) {
89862
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
89863
+ if (this.prerelease.length && !other.prerelease.length) return -1;
89864
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
89865
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
89866
+ let i = 0;
89867
+ do {
89868
+ const a = this.prerelease[i];
89869
+ const b = other.prerelease[i];
89870
+ debug("prerelease compare", i, a, b);
89871
+ if (a === void 0 && b === void 0) return 0;
89872
+ else if (b === void 0) return 1;
89873
+ else if (a === void 0) return -1;
89874
+ else if (a === b) continue;
89875
+ else return compareIdentifiers(a, b);
89876
+ } while (++i);
89877
+ }
89878
+ compareBuild(other) {
89879
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
89880
+ let i = 0;
89881
+ do {
89882
+ const a = this.build[i];
89883
+ const b = other.build[i];
89884
+ debug("build compare", i, a, b);
89885
+ if (a === void 0 && b === void 0) return 0;
89886
+ else if (b === void 0) return 1;
89887
+ else if (a === void 0) return -1;
89888
+ else if (a === b) continue;
89889
+ else return compareIdentifiers(a, b);
89890
+ } while (++i);
89891
+ }
89892
+ inc(release, identifier, identifierBase) {
89893
+ if (release.startsWith("pre")) {
89894
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
89895
+ if (identifier) {
89896
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
89897
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
89898
+ }
89899
+ }
89900
+ switch (release) {
89901
+ case "premajor":
89902
+ this.prerelease.length = 0;
89903
+ this.patch = 0;
89904
+ this.minor = 0;
89905
+ this.major++;
89906
+ this.inc("pre", identifier, identifierBase);
89907
+ break;
89908
+ case "preminor":
89909
+ this.prerelease.length = 0;
89910
+ this.patch = 0;
89911
+ this.minor++;
89912
+ this.inc("pre", identifier, identifierBase);
89913
+ break;
89914
+ case "prepatch":
89915
+ this.prerelease.length = 0;
89916
+ this.inc("patch", identifier, identifierBase);
89917
+ this.inc("pre", identifier, identifierBase);
89918
+ break;
89919
+ case "prerelease":
89920
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
89921
+ this.inc("pre", identifier, identifierBase);
89922
+ break;
89923
+ case "release":
89924
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
89925
+ this.prerelease.length = 0;
89926
+ break;
89927
+ case "major":
89928
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
89929
+ this.minor = 0;
89930
+ this.patch = 0;
89931
+ this.prerelease = [];
89932
+ break;
89933
+ case "minor":
89934
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
89935
+ this.patch = 0;
89936
+ this.prerelease = [];
89937
+ break;
89938
+ case "patch":
89939
+ if (this.prerelease.length === 0) this.patch++;
89940
+ this.prerelease = [];
89941
+ break;
89942
+ case "pre": {
89943
+ const base = Number(identifierBase) ? 1 : 0;
89944
+ if (this.prerelease.length === 0) this.prerelease = [base];
89945
+ else {
89946
+ let i = this.prerelease.length;
89947
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
89948
+ this.prerelease[i]++;
89949
+ i = -2;
89950
+ }
89951
+ if (i === -1) {
89952
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
89953
+ this.prerelease.push(base);
89954
+ }
89955
+ }
89956
+ if (identifier) {
89957
+ let prerelease = [identifier, base];
89958
+ if (identifierBase === false) prerelease = [identifier];
89959
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
89960
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
89961
+ } else this.prerelease = prerelease;
89962
+ }
89963
+ break;
89964
+ }
89965
+ default: throw new Error(`invalid increment argument: ${release}`);
89966
+ }
89967
+ this.raw = this.format();
89968
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
89969
+ return this;
89970
+ }
89971
+ };
89972
+ }));
89973
+ //#endregion
89974
+ //#region ../../node_modules/semver/functions/parse.js
89975
+ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89976
+ const SemVer = require_semver$3();
89977
+ const parse = (version, options, throwErrors = false) => {
89978
+ if (version instanceof SemVer) return version;
89979
+ try {
89980
+ return new SemVer(version, options);
89981
+ } catch (er) {
89982
+ if (!throwErrors) return null;
89983
+ throw er;
89984
+ }
89985
+ };
89986
+ module.exports = parse;
89987
+ }));
89988
+ //#endregion
89989
+ //#region ../../node_modules/semver/functions/valid.js
89990
+ var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89991
+ const parse = require_parse$3();
89992
+ const valid = (version, options) => {
89993
+ const v = parse(version, options);
89994
+ return v ? v.version : null;
89995
+ };
89996
+ module.exports = valid;
89997
+ }));
89998
+ //#endregion
89999
+ //#region ../../node_modules/semver/functions/clean.js
90000
+ var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90001
+ const parse = require_parse$3();
90002
+ const clean = (version, options) => {
90003
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
90004
+ return s ? s.version : null;
90005
+ };
90006
+ module.exports = clean;
90007
+ }));
90008
+ //#endregion
89486
90009
  //#region ../../node_modules/proc-log/lib/index.js
89487
90010
  var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89488
90011
  module.exports = {
@@ -94981,7 +95504,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94981
95504
  }));
94982
95505
  //#endregion
94983
95506
  //#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
94984
- var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
95507
+ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94985
95508
  module.exports = function(tokens) {
94986
95509
  var index = 0;
94987
95510
  function hasMore() {
@@ -95072,7 +95595,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
95072
95595
  //#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
95073
95596
  var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
95074
95597
  var scan = require_scan();
95075
- var parse = require_parse$1();
95598
+ var parse = require_parse$2();
95076
95599
  module.exports = function(source) {
95077
95600
  return parse(scan(source));
95078
95601
  };
@@ -96280,9 +96803,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96280
96803
  };
96281
96804
  }));
96282
96805
  //#endregion
96806
+ //#region ../../node_modules/semver/functions/inc.js
96807
+ var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96808
+ const SemVer = require_semver$3();
96809
+ const inc = (version, release, options, identifier, identifierBase) => {
96810
+ if (typeof options === "string") {
96811
+ identifierBase = identifier;
96812
+ identifier = options;
96813
+ options = void 0;
96814
+ }
96815
+ try {
96816
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
96817
+ } catch (er) {
96818
+ return null;
96819
+ }
96820
+ };
96821
+ module.exports = inc;
96822
+ }));
96823
+ //#endregion
96824
+ //#region ../../node_modules/semver/functions/diff.js
96825
+ var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96826
+ const parse = require_parse$3();
96827
+ const diff = (version1, version2) => {
96828
+ const v1 = parse(version1, null, true);
96829
+ const v2 = parse(version2, null, true);
96830
+ const comparison = v1.compare(v2);
96831
+ if (comparison === 0) return null;
96832
+ const v1Higher = comparison > 0;
96833
+ const highVersion = v1Higher ? v1 : v2;
96834
+ const lowVersion = v1Higher ? v2 : v1;
96835
+ const highHasPre = !!highVersion.prerelease.length;
96836
+ if (!!lowVersion.prerelease.length && !highHasPre) {
96837
+ if (!lowVersion.patch && !lowVersion.minor) return "major";
96838
+ if (lowVersion.compareMain(highVersion) === 0) {
96839
+ if (lowVersion.minor && !lowVersion.patch) return "minor";
96840
+ return "patch";
96841
+ }
96842
+ }
96843
+ const prefix = highHasPre ? "pre" : "";
96844
+ if (v1.major !== v2.major) return prefix + "major";
96845
+ if (v1.minor !== v2.minor) return prefix + "minor";
96846
+ if (v1.patch !== v2.patch) return prefix + "patch";
96847
+ return "prerelease";
96848
+ };
96849
+ module.exports = diff;
96850
+ }));
96851
+ //#endregion
96852
+ //#region ../../node_modules/semver/functions/major.js
96853
+ var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96854
+ const SemVer = require_semver$3();
96855
+ const major = (a, loose) => new SemVer(a, loose).major;
96856
+ module.exports = major;
96857
+ }));
96858
+ //#endregion
96859
+ //#region ../../node_modules/semver/functions/minor.js
96860
+ var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96861
+ const SemVer = require_semver$3();
96862
+ const minor = (a, loose) => new SemVer(a, loose).minor;
96863
+ module.exports = minor;
96864
+ }));
96865
+ //#endregion
96866
+ //#region ../../node_modules/semver/functions/patch.js
96867
+ var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96868
+ const SemVer = require_semver$3();
96869
+ const patch = (a, loose) => new SemVer(a, loose).patch;
96870
+ module.exports = patch;
96871
+ }));
96872
+ //#endregion
96873
+ //#region ../../node_modules/semver/functions/prerelease.js
96874
+ var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96875
+ const parse = require_parse$3();
96876
+ const prerelease = (version, options) => {
96877
+ const parsed = parse(version, options);
96878
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
96879
+ };
96880
+ module.exports = prerelease;
96881
+ }));
96882
+ //#endregion
96883
+ //#region ../../node_modules/semver/functions/compare.js
96884
+ var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96885
+ const SemVer = require_semver$3();
96886
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
96887
+ module.exports = compare;
96888
+ }));
96889
+ //#endregion
96890
+ //#region ../../node_modules/semver/functions/rcompare.js
96891
+ var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96892
+ const compare = require_compare$1();
96893
+ const rcompare = (a, b, loose) => compare(b, a, loose);
96894
+ module.exports = rcompare;
96895
+ }));
96896
+ //#endregion
96897
+ //#region ../../node_modules/semver/functions/compare-loose.js
96898
+ var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96899
+ const compare = require_compare$1();
96900
+ const compareLoose = (a, b) => compare(a, b, true);
96901
+ module.exports = compareLoose;
96902
+ }));
96903
+ //#endregion
96904
+ //#region ../../node_modules/semver/functions/compare-build.js
96905
+ var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96906
+ const SemVer = require_semver$3();
96907
+ const compareBuild = (a, b, loose) => {
96908
+ const versionA = new SemVer(a, loose);
96909
+ const versionB = new SemVer(b, loose);
96910
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
96911
+ };
96912
+ module.exports = compareBuild;
96913
+ }));
96914
+ //#endregion
96915
+ //#region ../../node_modules/semver/functions/sort.js
96916
+ var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96917
+ const compareBuild = require_compare_build$1();
96918
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
96919
+ module.exports = sort;
96920
+ }));
96921
+ //#endregion
96922
+ //#region ../../node_modules/semver/functions/rsort.js
96923
+ var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96924
+ const compareBuild = require_compare_build$1();
96925
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
96926
+ module.exports = rsort;
96927
+ }));
96928
+ //#endregion
96929
+ //#region ../../node_modules/semver/functions/gt.js
96930
+ var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96931
+ const compare = require_compare$1();
96932
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
96933
+ module.exports = gt;
96934
+ }));
96935
+ //#endregion
96936
+ //#region ../../node_modules/semver/functions/lt.js
96937
+ var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96938
+ const compare = require_compare$1();
96939
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
96940
+ module.exports = lt;
96941
+ }));
96942
+ //#endregion
96943
+ //#region ../../node_modules/semver/functions/eq.js
96944
+ var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96945
+ const compare = require_compare$1();
96946
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
96947
+ module.exports = eq;
96948
+ }));
96949
+ //#endregion
96950
+ //#region ../../node_modules/semver/functions/neq.js
96951
+ var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96952
+ const compare = require_compare$1();
96953
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
96954
+ module.exports = neq;
96955
+ }));
96956
+ //#endregion
96957
+ //#region ../../node_modules/semver/functions/gte.js
96958
+ var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96959
+ const compare = require_compare$1();
96960
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
96961
+ module.exports = gte;
96962
+ }));
96963
+ //#endregion
96964
+ //#region ../../node_modules/semver/functions/lte.js
96965
+ var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96966
+ const compare = require_compare$1();
96967
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
96968
+ module.exports = lte;
96969
+ }));
96970
+ //#endregion
96971
+ //#region ../../node_modules/semver/functions/cmp.js
96972
+ var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96973
+ const eq = require_eq$1();
96974
+ const neq = require_neq$1();
96975
+ const gt = require_gt$1();
96976
+ const gte = require_gte$1();
96977
+ const lt = require_lt$1();
96978
+ const lte = require_lte$1();
96979
+ const cmp = (a, op, b, loose) => {
96980
+ switch (op) {
96981
+ case "===":
96982
+ if (typeof a === "object") a = a.version;
96983
+ if (typeof b === "object") b = b.version;
96984
+ return a === b;
96985
+ case "!==":
96986
+ if (typeof a === "object") a = a.version;
96987
+ if (typeof b === "object") b = b.version;
96988
+ return a !== b;
96989
+ case "":
96990
+ case "=":
96991
+ case "==": return eq(a, b, loose);
96992
+ case "!=": return neq(a, b, loose);
96993
+ case ">": return gt(a, b, loose);
96994
+ case ">=": return gte(a, b, loose);
96995
+ case "<": return lt(a, b, loose);
96996
+ case "<=": return lte(a, b, loose);
96997
+ default: throw new TypeError(`Invalid operator: ${op}`);
96998
+ }
96999
+ };
97000
+ module.exports = cmp;
97001
+ }));
97002
+ //#endregion
97003
+ //#region ../../node_modules/semver/functions/coerce.js
97004
+ var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97005
+ const SemVer = require_semver$3();
97006
+ const parse = require_parse$3();
97007
+ const { safeRe: re, t } = require_re$1();
97008
+ const coerce = (version, options) => {
97009
+ if (version instanceof SemVer) return version;
97010
+ if (typeof version === "number") version = String(version);
97011
+ if (typeof version !== "string") return null;
97012
+ options = options || {};
97013
+ let match = null;
97014
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
97015
+ else {
97016
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
97017
+ let next;
97018
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
97019
+ if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
97020
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
97021
+ }
97022
+ coerceRtlRegex.lastIndex = -1;
97023
+ }
97024
+ if (match === null) return null;
97025
+ const major = match[2];
97026
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
97027
+ };
97028
+ module.exports = coerce;
97029
+ }));
97030
+ //#endregion
97031
+ //#region ../../node_modules/semver/functions/truncate.js
97032
+ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97033
+ const parse = require_parse$3();
97034
+ const constants = require_constants$5();
97035
+ const SemVer = require_semver$3();
97036
+ const truncate = (version, truncation, options) => {
97037
+ if (!constants.RELEASE_TYPES.includes(truncation)) return null;
97038
+ const clonedVersion = cloneInputVersion(version, options);
97039
+ return clonedVersion && doTruncation(clonedVersion, truncation);
97040
+ };
97041
+ const cloneInputVersion = (version, options) => {
97042
+ return parse(version instanceof SemVer ? version.version : version, options);
97043
+ };
97044
+ const doTruncation = (version, truncation) => {
97045
+ if (isPrerelease(truncation)) return version.version;
97046
+ version.prerelease = [];
97047
+ switch (truncation) {
97048
+ case "major":
97049
+ version.minor = 0;
97050
+ version.patch = 0;
97051
+ break;
97052
+ case "minor":
97053
+ version.patch = 0;
97054
+ break;
97055
+ }
97056
+ return version.format();
97057
+ };
97058
+ const isPrerelease = (type) => {
97059
+ return type.startsWith("pre");
97060
+ };
97061
+ module.exports = truncate;
97062
+ }));
97063
+ //#endregion
97064
+ //#region ../../node_modules/semver/internal/lrucache.js
97065
+ var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97066
+ var LRUCache = class {
97067
+ constructor() {
97068
+ this.max = 1e3;
97069
+ this.map = /* @__PURE__ */ new Map();
97070
+ }
97071
+ get(key) {
97072
+ const value = this.map.get(key);
97073
+ if (value === void 0) return;
97074
+ else {
97075
+ this.map.delete(key);
97076
+ this.map.set(key, value);
97077
+ return value;
97078
+ }
97079
+ }
97080
+ delete(key) {
97081
+ return this.map.delete(key);
97082
+ }
97083
+ set(key, value) {
97084
+ if (!this.delete(key) && value !== void 0) {
97085
+ if (this.map.size >= this.max) {
97086
+ const firstKey = this.map.keys().next().value;
97087
+ this.delete(firstKey);
97088
+ }
97089
+ this.map.set(key, value);
97090
+ }
97091
+ return this;
97092
+ }
97093
+ };
97094
+ module.exports = LRUCache;
97095
+ }));
97096
+ //#endregion
97097
+ //#region ../../node_modules/semver/classes/range.js
97098
+ var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97099
+ const SPACE_CHARACTERS = /\s+/g;
97100
+ module.exports = class Range {
97101
+ constructor(range, options) {
97102
+ options = parseOptions(options);
97103
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
97104
+ else return new Range(range.raw, options);
97105
+ if (range instanceof Comparator) {
97106
+ this.raw = range.value;
97107
+ this.set = [[range]];
97108
+ this.formatted = void 0;
97109
+ return this;
97110
+ }
97111
+ this.options = options;
97112
+ this.loose = !!options.loose;
97113
+ this.includePrerelease = !!options.includePrerelease;
97114
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
97115
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
97116
+ if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
97117
+ if (this.set.length > 1) {
97118
+ const first = this.set[0];
97119
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
97120
+ if (this.set.length === 0) this.set = [first];
97121
+ else if (this.set.length > 1) {
97122
+ for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
97123
+ this.set = [c];
97124
+ break;
97125
+ }
97126
+ }
97127
+ }
97128
+ this.formatted = void 0;
97129
+ }
97130
+ get range() {
97131
+ if (this.formatted === void 0) {
97132
+ this.formatted = "";
97133
+ for (let i = 0; i < this.set.length; i++) {
97134
+ if (i > 0) this.formatted += "||";
97135
+ const comps = this.set[i];
97136
+ for (let k = 0; k < comps.length; k++) {
97137
+ if (k > 0) this.formatted += " ";
97138
+ this.formatted += comps[k].toString().trim();
97139
+ }
97140
+ }
97141
+ }
97142
+ return this.formatted;
97143
+ }
97144
+ format() {
97145
+ return this.range;
97146
+ }
97147
+ toString() {
97148
+ return this.range;
97149
+ }
97150
+ parseRange(range) {
97151
+ const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
97152
+ const cached = cache.get(memoKey);
97153
+ if (cached) return cached;
97154
+ const loose = this.options.loose;
97155
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
97156
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
97157
+ debug("hyphen replace", range);
97158
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
97159
+ debug("comparator trim", range);
97160
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
97161
+ debug("tilde trim", range);
97162
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
97163
+ debug("caret trim", range);
97164
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
97165
+ if (loose) rangeList = rangeList.filter((comp) => {
97166
+ debug("loose invalid filter", comp, this.options);
97167
+ return !!comp.match(re[t.COMPARATORLOOSE]);
97168
+ });
97169
+ debug("range list", rangeList);
97170
+ const rangeMap = /* @__PURE__ */ new Map();
97171
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
97172
+ for (const comp of comparators) {
97173
+ if (isNullSet(comp)) return [comp];
97174
+ rangeMap.set(comp.value, comp);
97175
+ }
97176
+ if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
97177
+ const result = [...rangeMap.values()];
97178
+ cache.set(memoKey, result);
97179
+ return result;
97180
+ }
97181
+ intersects(range, options) {
97182
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
97183
+ return this.set.some((thisComparators) => {
97184
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
97185
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
97186
+ return rangeComparators.every((rangeComparator) => {
97187
+ return thisComparator.intersects(rangeComparator, options);
97188
+ });
97189
+ });
97190
+ });
97191
+ });
97192
+ }
97193
+ test(version) {
97194
+ if (!version) return false;
97195
+ if (typeof version === "string") try {
97196
+ version = new SemVer(version, this.options);
97197
+ } catch (er) {
97198
+ return false;
97199
+ }
97200
+ for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
97201
+ return false;
97202
+ }
97203
+ };
97204
+ const cache = new (require_lrucache$1())();
97205
+ const parseOptions = require_parse_options$1();
97206
+ const Comparator = require_comparator$1();
97207
+ const debug = require_debug$1();
97208
+ const SemVer = require_semver$3();
97209
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
97210
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
97211
+ const isNullSet = (c) => c.value === "<0.0.0-0";
97212
+ const isAny = (c) => c.value === "";
97213
+ const isSatisfiable = (comparators, options) => {
97214
+ let result = true;
97215
+ const remainingComparators = comparators.slice();
97216
+ let testComparator = remainingComparators.pop();
97217
+ while (result && remainingComparators.length) {
97218
+ result = remainingComparators.every((otherComparator) => {
97219
+ return testComparator.intersects(otherComparator, options);
97220
+ });
97221
+ testComparator = remainingComparators.pop();
97222
+ }
97223
+ return result;
97224
+ };
97225
+ const parseComparator = (comp, options) => {
97226
+ comp = comp.replace(re[t.BUILD], "");
97227
+ debug("comp", comp, options);
97228
+ comp = replaceCarets(comp, options);
97229
+ debug("caret", comp);
97230
+ comp = replaceTildes(comp, options);
97231
+ debug("tildes", comp);
97232
+ comp = replaceXRanges(comp, options);
97233
+ debug("xrange", comp);
97234
+ comp = replaceStars(comp, options);
97235
+ debug("stars", comp);
97236
+ return comp;
97237
+ };
97238
+ const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
97239
+ const replaceTildes = (comp, options) => {
97240
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
97241
+ };
97242
+ const replaceTilde = (comp, options) => {
97243
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
97244
+ return comp.replace(r, (_, M, m, p, pr) => {
97245
+ debug("tilde", comp, _, M, m, p, pr);
97246
+ let ret;
97247
+ if (isX(M)) ret = "";
97248
+ else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
97249
+ else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
97250
+ else if (pr) {
97251
+ debug("replaceTilde pr", pr);
97252
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
97253
+ } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
97254
+ debug("tilde return", ret);
97255
+ return ret;
97256
+ });
97257
+ };
97258
+ const replaceCarets = (comp, options) => {
97259
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
97260
+ };
97261
+ const replaceCaret = (comp, options) => {
97262
+ debug("caret", comp, options);
97263
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
97264
+ const z = options.includePrerelease ? "-0" : "";
97265
+ return comp.replace(r, (_, M, m, p, pr) => {
97266
+ debug("caret", comp, _, M, m, p, pr);
97267
+ let ret;
97268
+ if (isX(M)) ret = "";
97269
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
97270
+ else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
97271
+ else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
97272
+ else if (pr) {
97273
+ debug("replaceCaret pr", pr);
97274
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
97275
+ else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
97276
+ else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
97277
+ } else {
97278
+ debug("no pr");
97279
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
97280
+ else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
97281
+ else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
97282
+ }
97283
+ debug("caret return", ret);
97284
+ return ret;
97285
+ });
97286
+ };
97287
+ const replaceXRanges = (comp, options) => {
97288
+ debug("replaceXRanges", comp, options);
97289
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
97290
+ };
97291
+ const replaceXRange = (comp, options) => {
97292
+ comp = comp.trim();
97293
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
97294
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
97295
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
97296
+ const xM = isX(M);
97297
+ const xm = xM || isX(m);
97298
+ const xp = xm || isX(p);
97299
+ const anyX = xp;
97300
+ if (gtlt === "=" && anyX) gtlt = "";
97301
+ pr = options.includePrerelease ? "-0" : "";
97302
+ if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
97303
+ else ret = "*";
97304
+ else if (gtlt && anyX) {
97305
+ if (xm) m = 0;
97306
+ p = 0;
97307
+ if (gtlt === ">") {
97308
+ gtlt = ">=";
97309
+ if (xm) {
97310
+ M = +M + 1;
97311
+ m = 0;
97312
+ p = 0;
97313
+ } else {
97314
+ m = +m + 1;
97315
+ p = 0;
97316
+ }
97317
+ } else if (gtlt === "<=") {
97318
+ gtlt = "<";
97319
+ if (xm) M = +M + 1;
97320
+ else m = +m + 1;
97321
+ }
97322
+ if (gtlt === "<") pr = "-0";
97323
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
97324
+ } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
97325
+ else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
97326
+ debug("xRange return", ret);
97327
+ return ret;
97328
+ });
97329
+ };
97330
+ const replaceStars = (comp, options) => {
97331
+ debug("replaceStars", comp, options);
97332
+ return comp.trim().replace(re[t.STAR], "");
97333
+ };
97334
+ const replaceGTE0 = (comp, options) => {
97335
+ debug("replaceGTE0", comp, options);
97336
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
97337
+ };
97338
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
97339
+ if (isX(fM)) from = "";
97340
+ else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
97341
+ else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
97342
+ else if (fpr) from = `>=${from}`;
97343
+ else from = `>=${from}${incPr ? "-0" : ""}`;
97344
+ if (isX(tM)) to = "";
97345
+ else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
97346
+ else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
97347
+ else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
97348
+ else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
97349
+ else to = `<=${to}`;
97350
+ return `${from} ${to}`.trim();
97351
+ };
97352
+ const testSet = (set, version, options) => {
97353
+ for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
97354
+ if (version.prerelease.length && !options.includePrerelease) {
97355
+ for (let i = 0; i < set.length; i++) {
97356
+ debug(set[i].semver);
97357
+ if (set[i].semver === Comparator.ANY) continue;
97358
+ if (set[i].semver.prerelease.length > 0) {
97359
+ const allowed = set[i].semver;
97360
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
97361
+ }
97362
+ }
97363
+ return false;
97364
+ }
97365
+ return true;
97366
+ };
97367
+ }));
97368
+ //#endregion
97369
+ //#region ../../node_modules/semver/classes/comparator.js
97370
+ var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97371
+ const ANY = Symbol("SemVer ANY");
97372
+ module.exports = class Comparator {
97373
+ static get ANY() {
97374
+ return ANY;
97375
+ }
97376
+ constructor(comp, options) {
97377
+ options = parseOptions(options);
97378
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
97379
+ else comp = comp.value;
97380
+ comp = comp.trim().split(/\s+/).join(" ");
97381
+ debug("comparator", comp, options);
97382
+ this.options = options;
97383
+ this.loose = !!options.loose;
97384
+ this.parse(comp);
97385
+ if (this.semver === ANY) this.value = "";
97386
+ else this.value = this.operator + this.semver.version;
97387
+ debug("comp", this);
97388
+ }
97389
+ parse(comp) {
97390
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
97391
+ const m = comp.match(r);
97392
+ if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
97393
+ this.operator = m[1] !== void 0 ? m[1] : "";
97394
+ if (this.operator === "=") this.operator = "";
97395
+ if (!m[2]) this.semver = ANY;
97396
+ else this.semver = new SemVer(m[2], this.options.loose);
97397
+ }
97398
+ toString() {
97399
+ return this.value;
97400
+ }
97401
+ test(version) {
97402
+ debug("Comparator.test", version, this.options.loose);
97403
+ if (this.semver === ANY || version === ANY) return true;
97404
+ if (typeof version === "string") try {
97405
+ version = new SemVer(version, this.options);
97406
+ } catch (er) {
97407
+ return false;
97408
+ }
97409
+ return cmp(version, this.operator, this.semver, this.options);
97410
+ }
97411
+ intersects(comp, options) {
97412
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
97413
+ if (this.operator === "") {
97414
+ if (this.value === "") return true;
97415
+ return new Range(comp.value, options).test(this.value);
97416
+ } else if (comp.operator === "") {
97417
+ if (comp.value === "") return true;
97418
+ return new Range(this.value, options).test(comp.semver);
97419
+ }
97420
+ options = parseOptions(options);
97421
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
97422
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
97423
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
97424
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
97425
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
97426
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
97427
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
97428
+ return false;
97429
+ }
97430
+ };
97431
+ const parseOptions = require_parse_options$1();
97432
+ const { safeRe: re, t } = require_re$1();
97433
+ const cmp = require_cmp$1();
97434
+ const debug = require_debug$1();
97435
+ const SemVer = require_semver$3();
97436
+ const Range = require_range$1();
97437
+ }));
97438
+ //#endregion
97439
+ //#region ../../node_modules/semver/functions/satisfies.js
97440
+ var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97441
+ const Range = require_range$1();
97442
+ const satisfies = (version, range, options) => {
97443
+ try {
97444
+ range = new Range(range, options);
97445
+ } catch (er) {
97446
+ return false;
97447
+ }
97448
+ return range.test(version);
97449
+ };
97450
+ module.exports = satisfies;
97451
+ }));
97452
+ //#endregion
97453
+ //#region ../../node_modules/semver/ranges/to-comparators.js
97454
+ var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97455
+ const Range = require_range$1();
97456
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
97457
+ module.exports = toComparators;
97458
+ }));
97459
+ //#endregion
97460
+ //#region ../../node_modules/semver/ranges/max-satisfying.js
97461
+ var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97462
+ const SemVer = require_semver$3();
97463
+ const Range = require_range$1();
97464
+ const maxSatisfying = (versions, range, options) => {
97465
+ let max = null;
97466
+ let maxSV = null;
97467
+ let rangeObj = null;
97468
+ try {
97469
+ rangeObj = new Range(range, options);
97470
+ } catch (er) {
97471
+ return null;
97472
+ }
97473
+ versions.forEach((v) => {
97474
+ if (rangeObj.test(v)) {
97475
+ if (!max || maxSV.compare(v) === -1) {
97476
+ max = v;
97477
+ maxSV = new SemVer(max, options);
97478
+ }
97479
+ }
97480
+ });
97481
+ return max;
97482
+ };
97483
+ module.exports = maxSatisfying;
97484
+ }));
97485
+ //#endregion
97486
+ //#region ../../node_modules/semver/ranges/min-satisfying.js
97487
+ var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97488
+ const SemVer = require_semver$3();
97489
+ const Range = require_range$1();
97490
+ const minSatisfying = (versions, range, options) => {
97491
+ let min = null;
97492
+ let minSV = null;
97493
+ let rangeObj = null;
97494
+ try {
97495
+ rangeObj = new Range(range, options);
97496
+ } catch (er) {
97497
+ return null;
97498
+ }
97499
+ versions.forEach((v) => {
97500
+ if (rangeObj.test(v)) {
97501
+ if (!min || minSV.compare(v) === 1) {
97502
+ min = v;
97503
+ minSV = new SemVer(min, options);
97504
+ }
97505
+ }
97506
+ });
97507
+ return min;
97508
+ };
97509
+ module.exports = minSatisfying;
97510
+ }));
97511
+ //#endregion
97512
+ //#region ../../node_modules/semver/ranges/min-version.js
97513
+ var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97514
+ const SemVer = require_semver$3();
97515
+ const Range = require_range$1();
97516
+ const gt = require_gt$1();
97517
+ const minVersion = (range, loose) => {
97518
+ range = new Range(range, loose);
97519
+ let minver = new SemVer("0.0.0");
97520
+ if (range.test(minver)) return minver;
97521
+ minver = new SemVer("0.0.0-0");
97522
+ if (range.test(minver)) return minver;
97523
+ minver = null;
97524
+ for (let i = 0; i < range.set.length; ++i) {
97525
+ const comparators = range.set[i];
97526
+ let setMin = null;
97527
+ comparators.forEach((comparator) => {
97528
+ const compver = new SemVer(comparator.semver.version);
97529
+ switch (comparator.operator) {
97530
+ case ">":
97531
+ if (compver.prerelease.length === 0) compver.patch++;
97532
+ else compver.prerelease.push(0);
97533
+ compver.raw = compver.format();
97534
+ case "":
97535
+ case ">=":
97536
+ if (!setMin || gt(compver, setMin)) setMin = compver;
97537
+ break;
97538
+ case "<":
97539
+ case "<=": break;
97540
+ default: throw new Error(`Unexpected operation: ${comparator.operator}`);
97541
+ }
97542
+ });
97543
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
97544
+ }
97545
+ if (minver && range.test(minver)) return minver;
97546
+ return null;
97547
+ };
97548
+ module.exports = minVersion;
97549
+ }));
97550
+ //#endregion
97551
+ //#region ../../node_modules/semver/ranges/valid.js
97552
+ var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97553
+ const Range = require_range$1();
97554
+ const validRange = (range, options) => {
97555
+ try {
97556
+ return new Range(range, options).range || "*";
97557
+ } catch (er) {
97558
+ return null;
97559
+ }
97560
+ };
97561
+ module.exports = validRange;
97562
+ }));
97563
+ //#endregion
97564
+ //#region ../../node_modules/semver/ranges/outside.js
97565
+ var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97566
+ const SemVer = require_semver$3();
97567
+ const Comparator = require_comparator$1();
97568
+ const { ANY } = Comparator;
97569
+ const Range = require_range$1();
97570
+ const satisfies = require_satisfies$1();
97571
+ const gt = require_gt$1();
97572
+ const lt = require_lt$1();
97573
+ const lte = require_lte$1();
97574
+ const gte = require_gte$1();
97575
+ const outside = (version, range, hilo, options) => {
97576
+ version = new SemVer(version, options);
97577
+ range = new Range(range, options);
97578
+ let gtfn, ltefn, ltfn, comp, ecomp;
97579
+ switch (hilo) {
97580
+ case ">":
97581
+ gtfn = gt;
97582
+ ltefn = lte;
97583
+ ltfn = lt;
97584
+ comp = ">";
97585
+ ecomp = ">=";
97586
+ break;
97587
+ case "<":
97588
+ gtfn = lt;
97589
+ ltefn = gte;
97590
+ ltfn = gt;
97591
+ comp = "<";
97592
+ ecomp = "<=";
97593
+ break;
97594
+ default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
97595
+ }
97596
+ if (satisfies(version, range, options)) return false;
97597
+ for (let i = 0; i < range.set.length; ++i) {
97598
+ const comparators = range.set[i];
97599
+ let high = null;
97600
+ let low = null;
97601
+ comparators.forEach((comparator) => {
97602
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
97603
+ high = high || comparator;
97604
+ low = low || comparator;
97605
+ if (gtfn(comparator.semver, high.semver, options)) high = comparator;
97606
+ else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
97607
+ });
97608
+ if (high.operator === comp || high.operator === ecomp) return false;
97609
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
97610
+ else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
97611
+ }
97612
+ return true;
97613
+ };
97614
+ module.exports = outside;
97615
+ }));
97616
+ //#endregion
97617
+ //#region ../../node_modules/semver/ranges/gtr.js
97618
+ var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97619
+ const outside = require_outside$1();
97620
+ const gtr = (version, range, options) => outside(version, range, ">", options);
97621
+ module.exports = gtr;
97622
+ }));
97623
+ //#endregion
97624
+ //#region ../../node_modules/semver/ranges/ltr.js
97625
+ var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97626
+ const outside = require_outside$1();
97627
+ const ltr = (version, range, options) => outside(version, range, "<", options);
97628
+ module.exports = ltr;
97629
+ }));
97630
+ //#endregion
97631
+ //#region ../../node_modules/semver/ranges/intersects.js
97632
+ var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97633
+ const Range = require_range$1();
97634
+ const intersects = (r1, r2, options) => {
97635
+ r1 = new Range(r1, options);
97636
+ r2 = new Range(r2, options);
97637
+ return r1.intersects(r2, options);
97638
+ };
97639
+ module.exports = intersects;
97640
+ }));
97641
+ //#endregion
97642
+ //#region ../../node_modules/semver/ranges/simplify.js
97643
+ var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97644
+ const satisfies = require_satisfies$1();
97645
+ const compare = require_compare$1();
97646
+ module.exports = (versions, range, options) => {
97647
+ const set = [];
97648
+ let first = null;
97649
+ let prev = null;
97650
+ const v = versions.sort((a, b) => compare(a, b, options));
97651
+ for (const version of v) if (satisfies(version, range, options)) {
97652
+ prev = version;
97653
+ if (!first) first = version;
97654
+ } else {
97655
+ if (prev) set.push([first, prev]);
97656
+ prev = null;
97657
+ first = null;
97658
+ }
97659
+ if (first) set.push([first, null]);
97660
+ const ranges = [];
97661
+ for (const [min, max] of set) if (min === max) ranges.push(min);
97662
+ else if (!max && min === v[0]) ranges.push("*");
97663
+ else if (!max) ranges.push(`>=${min}`);
97664
+ else if (min === v[0]) ranges.push(`<=${max}`);
97665
+ else ranges.push(`${min} - ${max}`);
97666
+ const simplified = ranges.join(" || ");
97667
+ const original = typeof range.raw === "string" ? range.raw : String(range);
97668
+ return simplified.length < original.length ? simplified : range;
97669
+ };
97670
+ }));
97671
+ //#endregion
97672
+ //#region ../../node_modules/semver/ranges/subset.js
97673
+ var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97674
+ const Range = require_range$1();
97675
+ const Comparator = require_comparator$1();
97676
+ const { ANY } = Comparator;
97677
+ const satisfies = require_satisfies$1();
97678
+ const compare = require_compare$1();
97679
+ const subset = (sub, dom, options = {}) => {
97680
+ if (sub === dom) return true;
97681
+ sub = new Range(sub, options);
97682
+ dom = new Range(dom, options);
97683
+ let sawNonNull = false;
97684
+ OUTER: for (const simpleSub of sub.set) {
97685
+ for (const simpleDom of dom.set) {
97686
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
97687
+ sawNonNull = sawNonNull || isSub !== null;
97688
+ if (isSub) continue OUTER;
97689
+ }
97690
+ if (sawNonNull) return false;
97691
+ }
97692
+ return true;
97693
+ };
97694
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
97695
+ const minimumVersion = [new Comparator(">=0.0.0")];
97696
+ const simpleSubset = (sub, dom, options) => {
97697
+ if (sub === dom) return true;
97698
+ if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
97699
+ else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
97700
+ else sub = minimumVersion;
97701
+ if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
97702
+ else dom = minimumVersion;
97703
+ const eqSet = /* @__PURE__ */ new Set();
97704
+ let gt, lt;
97705
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
97706
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
97707
+ else eqSet.add(c.semver);
97708
+ if (eqSet.size > 1) return null;
97709
+ let gtltComp;
97710
+ if (gt && lt) {
97711
+ gtltComp = compare(gt.semver, lt.semver, options);
97712
+ if (gtltComp > 0) return null;
97713
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
97714
+ }
97715
+ for (const eq of eqSet) {
97716
+ if (gt && !satisfies(eq, String(gt), options)) return null;
97717
+ if (lt && !satisfies(eq, String(lt), options)) return null;
97718
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
97719
+ return true;
97720
+ }
97721
+ let higher, lower;
97722
+ let hasDomLT, hasDomGT;
97723
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
97724
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
97725
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
97726
+ for (const c of dom) {
97727
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
97728
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
97729
+ if (gt) {
97730
+ if (needDomGTPre) {
97731
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
97732
+ }
97733
+ if (c.operator === ">" || c.operator === ">=") {
97734
+ higher = higherGT(gt, c, options);
97735
+ if (higher === c && higher !== gt) return false;
97736
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
97737
+ }
97738
+ if (lt) {
97739
+ if (needDomLTPre) {
97740
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
97741
+ }
97742
+ if (c.operator === "<" || c.operator === "<=") {
97743
+ lower = lowerLT(lt, c, options);
97744
+ if (lower === c && lower !== lt) return false;
97745
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
97746
+ }
97747
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
97748
+ }
97749
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
97750
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
97751
+ if (needDomGTPre || needDomLTPre) return false;
97752
+ return true;
97753
+ };
97754
+ const higherGT = (a, b, options) => {
97755
+ if (!a) return b;
97756
+ const comp = compare(a.semver, b.semver, options);
97757
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
97758
+ };
97759
+ const lowerLT = (a, b, options) => {
97760
+ if (!a) return b;
97761
+ const comp = compare(a.semver, b.semver, options);
97762
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
97763
+ };
97764
+ module.exports = subset;
97765
+ }));
97766
+ //#endregion
97767
+ //#region ../../node_modules/semver/index.js
97768
+ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97769
+ const internalRe = require_re$1();
97770
+ const constants = require_constants$5();
97771
+ const SemVer = require_semver$3();
97772
+ const identifiers = require_identifiers$1();
97773
+ module.exports = {
97774
+ parse: require_parse$3(),
97775
+ valid: require_valid$3(),
97776
+ clean: require_clean$1(),
97777
+ inc: require_inc$1(),
97778
+ diff: require_diff$1(),
97779
+ major: require_major$1(),
97780
+ minor: require_minor$1(),
97781
+ patch: require_patch$1(),
97782
+ prerelease: require_prerelease$1(),
97783
+ compare: require_compare$1(),
97784
+ rcompare: require_rcompare$1(),
97785
+ compareLoose: require_compare_loose$1(),
97786
+ compareBuild: require_compare_build$1(),
97787
+ sort: require_sort$2(),
97788
+ rsort: require_rsort$1(),
97789
+ gt: require_gt$1(),
97790
+ lt: require_lt$1(),
97791
+ eq: require_eq$1(),
97792
+ neq: require_neq$1(),
97793
+ gte: require_gte$1(),
97794
+ lte: require_lte$1(),
97795
+ cmp: require_cmp$1(),
97796
+ coerce: require_coerce$1(),
97797
+ truncate: require_truncate(),
97798
+ Comparator: require_comparator$1(),
97799
+ Range: require_range$1(),
97800
+ satisfies: require_satisfies$1(),
97801
+ toComparators: require_to_comparators$1(),
97802
+ maxSatisfying: require_max_satisfying$1(),
97803
+ minSatisfying: require_min_satisfying$1(),
97804
+ minVersion: require_min_version$1(),
97805
+ validRange: require_valid$2(),
97806
+ outside: require_outside$1(),
97807
+ gtr: require_gtr$1(),
97808
+ ltr: require_ltr$1(),
97809
+ intersects: require_intersects$1(),
97810
+ simplifyRange: require_simplify$1(),
97811
+ subset: require_subset$1(),
97812
+ SemVer,
97813
+ re: internalRe.re,
97814
+ src: internalRe.src,
97815
+ tokens: internalRe.t,
97816
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
97817
+ RELEASE_TYPES: constants.RELEASE_TYPES,
97818
+ compareIdentifiers: identifiers.compareIdentifiers,
97819
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
97820
+ };
97821
+ }));
97822
+ //#endregion
96283
97823
  //#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
96284
97824
  var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96285
- const semver = require_semver();
97825
+ const semver = require_semver$2();
96286
97826
  module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
96287
97827
  versions: {},
96288
97828
  "dist-tags": {},
@@ -96549,7 +98089,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96549
98089
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
96550
98090
  const { homedir: homedir$1 } = __require("node:os");
96551
98091
  const HostedGit = require_lib$28();
96552
- const semver = require_semver();
98092
+ const semver = require_semver$2();
96553
98093
  const validatePackageName = require_lib$23();
96554
98094
  const { log } = require_lib$29();
96555
98095
  const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
@@ -96922,8 +98462,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96922
98462
  //#endregion
96923
98463
  //#region ../../node_modules/npm-install-checks/lib/dev-engines.js
96924
98464
  var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96925
- const satisfies = require_satisfies();
96926
- const validRange = require_valid();
98465
+ const satisfies = require_satisfies$1();
98466
+ const validRange = require_valid$2();
96927
98467
  const recognizedOnFail = [
96928
98468
  "ignore",
96929
98469
  "warn",
@@ -97003,7 +98543,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97003
98543
  //#endregion
97004
98544
  //#region ../../node_modules/npm-install-checks/lib/index.js
97005
98545
  var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97006
- const semver = require_semver();
98546
+ const semver = require_semver$2();
97007
98547
  const currentEnv = require_current_env();
97008
98548
  const { checkDevEngines } = require_dev_engines();
97009
98549
  const checkEngine = (target, npmVer, nodeVer, force = false) => {
@@ -97112,7 +98652,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97112
98652
  //#region ../../node_modules/npm-pick-manifest/lib/index.js
97113
98653
  var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97114
98654
  const npa = require_npa();
97115
- const semver = require_semver();
98655
+ const semver = require_semver$2();
97116
98656
  const { checkEngine } = require_lib$22();
97117
98657
  const normalizeBin = require_lib$21();
97118
98658
  const engineOk = (manifest, npmVersion, nodeVersion) => {
@@ -97406,8 +98946,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97406
98946
  //#endregion
97407
98947
  //#region ../../node_modules/@npmcli/package-json/lib/normalize.js
97408
98948
  var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97409
- const valid = require_valid$1();
97410
- const clean = require_clean();
98949
+ const valid = require_valid$3();
98950
+ const clean = require_clean$1();
97411
98951
  const fs$13 = __require("node:fs/promises");
97412
98952
  const path$15 = __require("node:path");
97413
98953
  const { log } = require_lib$29();
@@ -97838,7 +99378,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97838
99378
  }));
97839
99379
  //#endregion
97840
99380
  //#region ../../node_modules/@npmcli/package-json/lib/sort.js
97841
- var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99381
+ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97842
99382
  /**
97843
99383
  * arbitrary sort order for package.json largely pulled from:
97844
99384
  * https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
@@ -97906,7 +99446,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97906
99446
  const updateWorkspaces = require_update_workspaces();
97907
99447
  const { normalize, syncNormalize } = require_normalize();
97908
99448
  const { read, parse } = require_read_package();
97909
- const { packageSort } = require_sort();
99449
+ const { packageSort } = require_sort$1();
97910
99450
  const knownSteps = new Set([
97911
99451
  updateDeps,
97912
99452
  updateScripts,
@@ -99052,7 +100592,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99052
100592
  //#endregion
99053
100593
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
99054
100594
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99055
- const semver = require_semver();
100595
+ const semver = require_semver$2();
99056
100596
  const satisfies = (range) => {
99057
100597
  return semver.satisfies(process.version, range, { includePrerelease: true });
99058
100598
  };
@@ -111586,7 +113126,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
111586
113126
  }));
111587
113127
  //#endregion
111588
113128
  //#region ../../node_modules/minizlib/dist/commonjs/constants.js
111589
- var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
113129
+ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
111590
113130
  var __importDefault = exports && exports.__importDefault || function(mod) {
111591
113131
  return mod && mod.__esModule ? mod : { "default": mod };
111592
113132
  };
@@ -111757,8 +113297,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
111757
113297
  const buffer_1$1 = __require("buffer");
111758
113298
  const minipass_1 = require_commonjs$10();
111759
113299
  const realZlib = __importStar(__require("zlib"));
111760
- const constants_js_1 = require_constants$3();
111761
- var constants_js_2 = require_constants$3();
113300
+ const constants_js_1 = require_constants$4();
113301
+ var constants_js_2 = require_constants$4();
111762
113302
  Object.defineProperty(exports, "constants", {
111763
113303
  enumerable: true,
111764
113304
  get: function() {
@@ -126400,7 +127940,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
126400
127940
  }));
126401
127941
  //#endregion
126402
127942
  //#region ../../node_modules/socks/build/common/constants.js
126403
- var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
127943
+ var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
126404
127944
  Object.defineProperty(exports, "__esModule", { value: true });
126405
127945
  exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0;
126406
127946
  exports.DEFAULT_TIMEOUT = 3e4;
@@ -126566,7 +128106,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
126566
128106
  }));
126567
128107
  //#endregion
126568
128108
  //#region ../../node_modules/ip-address/dist/v4/constants.js
126569
- var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
128109
+ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
126570
128110
  Object.defineProperty(exports, "__esModule", { value: true });
126571
128111
  exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
126572
128112
  exports.BITS = 32;
@@ -126625,7 +128165,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
126625
128165
  Object.defineProperty(exports, "__esModule", { value: true });
126626
128166
  exports.Address4 = void 0;
126627
128167
  const common = __importStar(require_common());
126628
- const constants = __importStar(require_constants$1());
128168
+ const constants = __importStar(require_constants$2());
126629
128169
  const address_error_1 = require_address_error();
126630
128170
  exports.Address4 = class Address4 {
126631
128171
  constructor(address) {
@@ -126919,7 +128459,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
126919
128459
  }));
126920
128460
  //#endregion
126921
128461
  //#region ../../node_modules/ip-address/dist/v6/constants.js
126922
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
128462
+ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
126923
128463
  Object.defineProperty(exports, "__esModule", { value: true });
126924
128464
  exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
126925
128465
  exports.BITS = 128;
@@ -127075,7 +128615,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
127075
128615
  exports.padGroup = padGroup;
127076
128616
  exports.simpleRegularExpression = simpleRegularExpression;
127077
128617
  exports.possibleElisions = possibleElisions;
127078
- const v6 = __importStar(require_constants());
128618
+ const v6 = __importStar(require_constants$1());
127079
128619
  function groupPossibilities(possibilities) {
127080
128620
  return `(${possibilities.join("|")})`;
127081
128621
  }
@@ -127150,8 +128690,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
127150
128690
  Object.defineProperty(exports, "__esModule", { value: true });
127151
128691
  exports.Address6 = void 0;
127152
128692
  const common = __importStar(require_common());
127153
- const constants4 = __importStar(require_constants$1());
127154
- const constants6 = __importStar(require_constants());
128693
+ const constants4 = __importStar(require_constants$2());
128694
+ const constants6 = __importStar(require_constants$1());
127155
128695
  const helpers = __importStar(require_helpers$1());
127156
128696
  const ipv4_1 = require_ipv4();
127157
128697
  const regular_expressions_1 = require_regular_expressions();
@@ -127971,7 +129511,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
127971
129511
  Object.defineProperty(exports, "__esModule", { value: true });
127972
129512
  exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
127973
129513
  const util_1 = require_util$1();
127974
- const constants_1 = require_constants$2();
129514
+ const constants_1 = require_constants$3();
127975
129515
  const stream = __require("stream");
127976
129516
  const ip_address_1 = require_ip_address();
127977
129517
  const net$3 = __require("net");
@@ -128136,7 +129676,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
128136
129676
  const events_1 = __require("events");
128137
129677
  const net$2 = __require("net");
128138
129678
  const smart_buffer_1 = require_smartbuffer();
128139
- const constants_1 = require_constants$2();
129679
+ const constants_1 = require_constants$3();
128140
129680
  const helpers_1 = require_helpers();
128141
129681
  const receivebuffer_1 = require_receivebuffer();
128142
129682
  const util_1 = require_util$1();
@@ -132385,7 +133925,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
132385
133925
  }));
132386
133926
  //#endregion
132387
133927
  //#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
132388
- var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
133928
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
132389
133929
  Object.defineProperty(exports, "__esModule", { value: true });
132390
133930
  exports.parseInteger = parseInteger;
132391
133931
  exports.parseStringASCII = parseStringASCII;
@@ -132531,7 +134071,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
132531
134071
  const stream_1 = require_stream();
132532
134072
  const error_1 = require_error$8();
132533
134073
  const length_1 = require_length();
132534
- const parse_1 = require_parse();
134074
+ const parse_1 = require_parse$1();
132535
134075
  const tag_1 = require_tag();
132536
134076
  var ASN1Obj = class {
132537
134077
  tag;
@@ -140847,6 +142387,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
140847
142387
  };
140848
142388
  }));
140849
142389
  //#endregion
142390
+ //#region ../../packages/core-node/node_modules/semver/internal/constants.js
142391
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142392
+ const SEMVER_SPEC_VERSION = "2.0.0";
142393
+ const MAX_LENGTH = 256;
142394
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
142395
+ module.exports = {
142396
+ MAX_LENGTH,
142397
+ MAX_SAFE_COMPONENT_LENGTH: 16,
142398
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
142399
+ MAX_SAFE_INTEGER,
142400
+ RELEASE_TYPES: [
142401
+ "major",
142402
+ "premajor",
142403
+ "minor",
142404
+ "preminor",
142405
+ "patch",
142406
+ "prepatch",
142407
+ "prerelease"
142408
+ ],
142409
+ SEMVER_SPEC_VERSION,
142410
+ FLAG_INCLUDE_PRERELEASE: 1,
142411
+ FLAG_LOOSE: 2
142412
+ };
142413
+ }));
142414
+ //#endregion
142415
+ //#region ../../packages/core-node/node_modules/semver/internal/debug.js
142416
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142417
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
142418
+ }));
142419
+ //#endregion
142420
+ //#region ../../packages/core-node/node_modules/semver/internal/re.js
142421
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142422
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
142423
+ const debug = require_debug();
142424
+ exports = module.exports = {};
142425
+ const re = exports.re = [];
142426
+ const safeRe = exports.safeRe = [];
142427
+ const src = exports.src = [];
142428
+ const safeSrc = exports.safeSrc = [];
142429
+ const t = exports.t = {};
142430
+ let R = 0;
142431
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
142432
+ const safeRegexReplacements = [
142433
+ ["\\s", 1],
142434
+ ["\\d", MAX_LENGTH],
142435
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
142436
+ ];
142437
+ const makeSafeRegex = (value) => {
142438
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
142439
+ return value;
142440
+ };
142441
+ const createToken = (name, value, isGlobal) => {
142442
+ const safe = makeSafeRegex(value);
142443
+ const index = R++;
142444
+ debug(name, index, value);
142445
+ t[name] = index;
142446
+ src[index] = value;
142447
+ safeSrc[index] = safe;
142448
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
142449
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
142450
+ };
142451
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
142452
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
142453
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
142454
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
142455
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
142456
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
142457
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
142458
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
142459
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
142460
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
142461
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
142462
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
142463
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
142464
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
142465
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
142466
+ createToken("GTLT", "((?:<|>)?=?)");
142467
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
142468
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
142469
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
142470
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
142471
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
142472
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
142473
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
142474
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
142475
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
142476
+ createToken("COERCERTL", src[t.COERCE], true);
142477
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
142478
+ createToken("LONETILDE", "(?:~>?)");
142479
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
142480
+ exports.tildeTrimReplace = "$1~";
142481
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
142482
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
142483
+ createToken("LONECARET", "(?:\\^)");
142484
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
142485
+ exports.caretTrimReplace = "$1^";
142486
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
142487
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
142488
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
142489
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
142490
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
142491
+ exports.comparatorTrimReplace = "$1$2$3";
142492
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
142493
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
142494
+ createToken("STAR", "(<|>)?=?\\s*\\*");
142495
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
142496
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
142497
+ }));
142498
+ //#endregion
142499
+ //#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
142500
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142501
+ const looseOption = Object.freeze({ loose: true });
142502
+ const emptyOpts = Object.freeze({});
142503
+ const parseOptions = (options) => {
142504
+ if (!options) return emptyOpts;
142505
+ if (typeof options !== "object") return looseOption;
142506
+ return options;
142507
+ };
142508
+ module.exports = parseOptions;
142509
+ }));
142510
+ //#endregion
142511
+ //#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
142512
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142513
+ const numeric = /^[0-9]+$/;
142514
+ const compareIdentifiers = (a, b) => {
142515
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
142516
+ const anum = numeric.test(a);
142517
+ const bnum = numeric.test(b);
142518
+ if (anum && bnum) {
142519
+ a = +a;
142520
+ b = +b;
142521
+ }
142522
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
142523
+ };
142524
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
142525
+ module.exports = {
142526
+ compareIdentifiers,
142527
+ rcompareIdentifiers
142528
+ };
142529
+ }));
142530
+ //#endregion
142531
+ //#region ../../packages/core-node/node_modules/semver/classes/semver.js
142532
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142533
+ const debug = require_debug();
142534
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
142535
+ const { safeRe: re, t } = require_re();
142536
+ const parseOptions = require_parse_options();
142537
+ const { compareIdentifiers } = require_identifiers();
142538
+ module.exports = class SemVer {
142539
+ constructor(version, options) {
142540
+ options = parseOptions(options);
142541
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
142542
+ else version = version.version;
142543
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
142544
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
142545
+ debug("SemVer", version, options);
142546
+ this.options = options;
142547
+ this.loose = !!options.loose;
142548
+ this.includePrerelease = !!options.includePrerelease;
142549
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
142550
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
142551
+ this.raw = version;
142552
+ this.major = +m[1];
142553
+ this.minor = +m[2];
142554
+ this.patch = +m[3];
142555
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
142556
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
142557
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
142558
+ if (!m[4]) this.prerelease = [];
142559
+ else this.prerelease = m[4].split(".").map((id) => {
142560
+ if (/^[0-9]+$/.test(id)) {
142561
+ const num = +id;
142562
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
142563
+ }
142564
+ return id;
142565
+ });
142566
+ this.build = m[5] ? m[5].split(".") : [];
142567
+ this.format();
142568
+ }
142569
+ format() {
142570
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
142571
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
142572
+ return this.version;
142573
+ }
142574
+ toString() {
142575
+ return this.version;
142576
+ }
142577
+ compare(other) {
142578
+ debug("SemVer.compare", this.version, this.options, other);
142579
+ if (!(other instanceof SemVer)) {
142580
+ if (typeof other === "string" && other === this.version) return 0;
142581
+ other = new SemVer(other, this.options);
142582
+ }
142583
+ if (other.version === this.version) return 0;
142584
+ return this.compareMain(other) || this.comparePre(other);
142585
+ }
142586
+ compareMain(other) {
142587
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
142588
+ if (this.major < other.major) return -1;
142589
+ if (this.major > other.major) return 1;
142590
+ if (this.minor < other.minor) return -1;
142591
+ if (this.minor > other.minor) return 1;
142592
+ if (this.patch < other.patch) return -1;
142593
+ if (this.patch > other.patch) return 1;
142594
+ return 0;
142595
+ }
142596
+ comparePre(other) {
142597
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
142598
+ if (this.prerelease.length && !other.prerelease.length) return -1;
142599
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
142600
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
142601
+ let i = 0;
142602
+ do {
142603
+ const a = this.prerelease[i];
142604
+ const b = other.prerelease[i];
142605
+ debug("prerelease compare", i, a, b);
142606
+ if (a === void 0 && b === void 0) return 0;
142607
+ else if (b === void 0) return 1;
142608
+ else if (a === void 0) return -1;
142609
+ else if (a === b) continue;
142610
+ else return compareIdentifiers(a, b);
142611
+ } while (++i);
142612
+ }
142613
+ compareBuild(other) {
142614
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
142615
+ let i = 0;
142616
+ do {
142617
+ const a = this.build[i];
142618
+ const b = other.build[i];
142619
+ debug("build compare", i, a, b);
142620
+ if (a === void 0 && b === void 0) return 0;
142621
+ else if (b === void 0) return 1;
142622
+ else if (a === void 0) return -1;
142623
+ else if (a === b) continue;
142624
+ else return compareIdentifiers(a, b);
142625
+ } while (++i);
142626
+ }
142627
+ inc(release, identifier, identifierBase) {
142628
+ if (release.startsWith("pre")) {
142629
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
142630
+ if (identifier) {
142631
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
142632
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
142633
+ }
142634
+ }
142635
+ switch (release) {
142636
+ case "premajor":
142637
+ this.prerelease.length = 0;
142638
+ this.patch = 0;
142639
+ this.minor = 0;
142640
+ this.major++;
142641
+ this.inc("pre", identifier, identifierBase);
142642
+ break;
142643
+ case "preminor":
142644
+ this.prerelease.length = 0;
142645
+ this.patch = 0;
142646
+ this.minor++;
142647
+ this.inc("pre", identifier, identifierBase);
142648
+ break;
142649
+ case "prepatch":
142650
+ this.prerelease.length = 0;
142651
+ this.inc("patch", identifier, identifierBase);
142652
+ this.inc("pre", identifier, identifierBase);
142653
+ break;
142654
+ case "prerelease":
142655
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
142656
+ this.inc("pre", identifier, identifierBase);
142657
+ break;
142658
+ case "release":
142659
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
142660
+ this.prerelease.length = 0;
142661
+ break;
142662
+ case "major":
142663
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
142664
+ this.minor = 0;
142665
+ this.patch = 0;
142666
+ this.prerelease = [];
142667
+ break;
142668
+ case "minor":
142669
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
142670
+ this.patch = 0;
142671
+ this.prerelease = [];
142672
+ break;
142673
+ case "patch":
142674
+ if (this.prerelease.length === 0) this.patch++;
142675
+ this.prerelease = [];
142676
+ break;
142677
+ case "pre": {
142678
+ const base = Number(identifierBase) ? 1 : 0;
142679
+ if (this.prerelease.length === 0) this.prerelease = [base];
142680
+ else {
142681
+ let i = this.prerelease.length;
142682
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
142683
+ this.prerelease[i]++;
142684
+ i = -2;
142685
+ }
142686
+ if (i === -1) {
142687
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
142688
+ this.prerelease.push(base);
142689
+ }
142690
+ }
142691
+ if (identifier) {
142692
+ let prerelease = [identifier, base];
142693
+ if (identifierBase === false) prerelease = [identifier];
142694
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
142695
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
142696
+ } else this.prerelease = prerelease;
142697
+ }
142698
+ break;
142699
+ }
142700
+ default: throw new Error(`invalid increment argument: ${release}`);
142701
+ }
142702
+ this.raw = this.format();
142703
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
142704
+ return this;
142705
+ }
142706
+ };
142707
+ }));
142708
+ //#endregion
142709
+ //#region ../../packages/core-node/node_modules/semver/functions/parse.js
142710
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142711
+ const SemVer = require_semver$1();
142712
+ const parse = (version, options, throwErrors = false) => {
142713
+ if (version instanceof SemVer) return version;
142714
+ try {
142715
+ return new SemVer(version, options);
142716
+ } catch (er) {
142717
+ if (!throwErrors) return null;
142718
+ throw er;
142719
+ }
142720
+ };
142721
+ module.exports = parse;
142722
+ }));
142723
+ //#endregion
142724
+ //#region ../../packages/core-node/node_modules/semver/functions/valid.js
142725
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142726
+ const parse = require_parse();
142727
+ const valid = (version, options) => {
142728
+ const v = parse(version, options);
142729
+ return v ? v.version : null;
142730
+ };
142731
+ module.exports = valid;
142732
+ }));
142733
+ //#endregion
142734
+ //#region ../../packages/core-node/node_modules/semver/functions/clean.js
142735
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142736
+ const parse = require_parse();
142737
+ const clean = (version, options) => {
142738
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
142739
+ return s ? s.version : null;
142740
+ };
142741
+ module.exports = clean;
142742
+ }));
142743
+ //#endregion
142744
+ //#region ../../packages/core-node/node_modules/semver/functions/inc.js
142745
+ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142746
+ const SemVer = require_semver$1();
142747
+ const inc = (version, release, options, identifier, identifierBase) => {
142748
+ if (typeof options === "string") {
142749
+ identifierBase = identifier;
142750
+ identifier = options;
142751
+ options = void 0;
142752
+ }
142753
+ try {
142754
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
142755
+ } catch (er) {
142756
+ return null;
142757
+ }
142758
+ };
142759
+ module.exports = inc;
142760
+ }));
142761
+ //#endregion
142762
+ //#region ../../packages/core-node/node_modules/semver/functions/diff.js
142763
+ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142764
+ const parse = require_parse();
142765
+ const diff = (version1, version2) => {
142766
+ const v1 = parse(version1, null, true);
142767
+ const v2 = parse(version2, null, true);
142768
+ const comparison = v1.compare(v2);
142769
+ if (comparison === 0) return null;
142770
+ const v1Higher = comparison > 0;
142771
+ const highVersion = v1Higher ? v1 : v2;
142772
+ const lowVersion = v1Higher ? v2 : v1;
142773
+ const highHasPre = !!highVersion.prerelease.length;
142774
+ if (!!lowVersion.prerelease.length && !highHasPre) {
142775
+ if (!lowVersion.patch && !lowVersion.minor) return "major";
142776
+ if (lowVersion.compareMain(highVersion) === 0) {
142777
+ if (lowVersion.minor && !lowVersion.patch) return "minor";
142778
+ return "patch";
142779
+ }
142780
+ }
142781
+ const prefix = highHasPre ? "pre" : "";
142782
+ if (v1.major !== v2.major) return prefix + "major";
142783
+ if (v1.minor !== v2.minor) return prefix + "minor";
142784
+ if (v1.patch !== v2.patch) return prefix + "patch";
142785
+ return "prerelease";
142786
+ };
142787
+ module.exports = diff;
142788
+ }));
142789
+ //#endregion
142790
+ //#region ../../packages/core-node/node_modules/semver/functions/major.js
142791
+ var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142792
+ const SemVer = require_semver$1();
142793
+ const major = (a, loose) => new SemVer(a, loose).major;
142794
+ module.exports = major;
142795
+ }));
142796
+ //#endregion
142797
+ //#region ../../packages/core-node/node_modules/semver/functions/minor.js
142798
+ var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142799
+ const SemVer = require_semver$1();
142800
+ const minor = (a, loose) => new SemVer(a, loose).minor;
142801
+ module.exports = minor;
142802
+ }));
142803
+ //#endregion
142804
+ //#region ../../packages/core-node/node_modules/semver/functions/patch.js
142805
+ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142806
+ const SemVer = require_semver$1();
142807
+ const patch = (a, loose) => new SemVer(a, loose).patch;
142808
+ module.exports = patch;
142809
+ }));
142810
+ //#endregion
142811
+ //#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
142812
+ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142813
+ const parse = require_parse();
142814
+ const prerelease = (version, options) => {
142815
+ const parsed = parse(version, options);
142816
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
142817
+ };
142818
+ module.exports = prerelease;
142819
+ }));
142820
+ //#endregion
142821
+ //#region ../../packages/core-node/node_modules/semver/functions/compare.js
142822
+ var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142823
+ const SemVer = require_semver$1();
142824
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
142825
+ module.exports = compare;
142826
+ }));
142827
+ //#endregion
142828
+ //#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
142829
+ var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142830
+ const compare = require_compare();
142831
+ const rcompare = (a, b, loose) => compare(b, a, loose);
142832
+ module.exports = rcompare;
142833
+ }));
142834
+ //#endregion
142835
+ //#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
142836
+ var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142837
+ const compare = require_compare();
142838
+ const compareLoose = (a, b) => compare(a, b, true);
142839
+ module.exports = compareLoose;
142840
+ }));
142841
+ //#endregion
142842
+ //#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
142843
+ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142844
+ const SemVer = require_semver$1();
142845
+ const compareBuild = (a, b, loose) => {
142846
+ const versionA = new SemVer(a, loose);
142847
+ const versionB = new SemVer(b, loose);
142848
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
142849
+ };
142850
+ module.exports = compareBuild;
142851
+ }));
142852
+ //#endregion
142853
+ //#region ../../packages/core-node/node_modules/semver/functions/sort.js
142854
+ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142855
+ const compareBuild = require_compare_build();
142856
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
142857
+ module.exports = sort;
142858
+ }));
142859
+ //#endregion
142860
+ //#region ../../packages/core-node/node_modules/semver/functions/rsort.js
142861
+ var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142862
+ const compareBuild = require_compare_build();
142863
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
142864
+ module.exports = rsort;
142865
+ }));
142866
+ //#endregion
142867
+ //#region ../../packages/core-node/node_modules/semver/functions/gt.js
142868
+ var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142869
+ const compare = require_compare();
142870
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
142871
+ module.exports = gt;
142872
+ }));
142873
+ //#endregion
142874
+ //#region ../../packages/core-node/node_modules/semver/functions/lt.js
142875
+ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142876
+ const compare = require_compare();
142877
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
142878
+ module.exports = lt;
142879
+ }));
142880
+ //#endregion
142881
+ //#region ../../packages/core-node/node_modules/semver/functions/eq.js
142882
+ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142883
+ const compare = require_compare();
142884
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
142885
+ module.exports = eq;
142886
+ }));
142887
+ //#endregion
142888
+ //#region ../../packages/core-node/node_modules/semver/functions/neq.js
142889
+ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142890
+ const compare = require_compare();
142891
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
142892
+ module.exports = neq;
142893
+ }));
142894
+ //#endregion
142895
+ //#region ../../packages/core-node/node_modules/semver/functions/gte.js
142896
+ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142897
+ const compare = require_compare();
142898
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
142899
+ module.exports = gte;
142900
+ }));
142901
+ //#endregion
142902
+ //#region ../../packages/core-node/node_modules/semver/functions/lte.js
142903
+ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142904
+ const compare = require_compare();
142905
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
142906
+ module.exports = lte;
142907
+ }));
142908
+ //#endregion
142909
+ //#region ../../packages/core-node/node_modules/semver/functions/cmp.js
142910
+ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142911
+ const eq = require_eq();
142912
+ const neq = require_neq();
142913
+ const gt = require_gt();
142914
+ const gte = require_gte();
142915
+ const lt = require_lt();
142916
+ const lte = require_lte();
142917
+ const cmp = (a, op, b, loose) => {
142918
+ switch (op) {
142919
+ case "===":
142920
+ if (typeof a === "object") a = a.version;
142921
+ if (typeof b === "object") b = b.version;
142922
+ return a === b;
142923
+ case "!==":
142924
+ if (typeof a === "object") a = a.version;
142925
+ if (typeof b === "object") b = b.version;
142926
+ return a !== b;
142927
+ case "":
142928
+ case "=":
142929
+ case "==": return eq(a, b, loose);
142930
+ case "!=": return neq(a, b, loose);
142931
+ case ">": return gt(a, b, loose);
142932
+ case ">=": return gte(a, b, loose);
142933
+ case "<": return lt(a, b, loose);
142934
+ case "<=": return lte(a, b, loose);
142935
+ default: throw new TypeError(`Invalid operator: ${op}`);
142936
+ }
142937
+ };
142938
+ module.exports = cmp;
142939
+ }));
142940
+ //#endregion
142941
+ //#region ../../packages/core-node/node_modules/semver/functions/coerce.js
142942
+ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142943
+ const SemVer = require_semver$1();
142944
+ const parse = require_parse();
142945
+ const { safeRe: re, t } = require_re();
142946
+ const coerce = (version, options) => {
142947
+ if (version instanceof SemVer) return version;
142948
+ if (typeof version === "number") version = String(version);
142949
+ if (typeof version !== "string") return null;
142950
+ options = options || {};
142951
+ let match = null;
142952
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
142953
+ else {
142954
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
142955
+ let next;
142956
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
142957
+ if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
142958
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
142959
+ }
142960
+ coerceRtlRegex.lastIndex = -1;
142961
+ }
142962
+ if (match === null) return null;
142963
+ const major = match[2];
142964
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
142965
+ };
142966
+ module.exports = coerce;
142967
+ }));
142968
+ //#endregion
142969
+ //#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
142970
+ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142971
+ var LRUCache = class {
142972
+ constructor() {
142973
+ this.max = 1e3;
142974
+ this.map = /* @__PURE__ */ new Map();
142975
+ }
142976
+ get(key) {
142977
+ const value = this.map.get(key);
142978
+ if (value === void 0) return;
142979
+ else {
142980
+ this.map.delete(key);
142981
+ this.map.set(key, value);
142982
+ return value;
142983
+ }
142984
+ }
142985
+ delete(key) {
142986
+ return this.map.delete(key);
142987
+ }
142988
+ set(key, value) {
142989
+ if (!this.delete(key) && value !== void 0) {
142990
+ if (this.map.size >= this.max) {
142991
+ const firstKey = this.map.keys().next().value;
142992
+ this.delete(firstKey);
142993
+ }
142994
+ this.map.set(key, value);
142995
+ }
142996
+ return this;
142997
+ }
142998
+ };
142999
+ module.exports = LRUCache;
143000
+ }));
143001
+ //#endregion
143002
+ //#region ../../packages/core-node/node_modules/semver/classes/range.js
143003
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143004
+ const SPACE_CHARACTERS = /\s+/g;
143005
+ module.exports = class Range {
143006
+ constructor(range, options) {
143007
+ options = parseOptions(options);
143008
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
143009
+ else return new Range(range.raw, options);
143010
+ if (range instanceof Comparator) {
143011
+ this.raw = range.value;
143012
+ this.set = [[range]];
143013
+ this.formatted = void 0;
143014
+ return this;
143015
+ }
143016
+ this.options = options;
143017
+ this.loose = !!options.loose;
143018
+ this.includePrerelease = !!options.includePrerelease;
143019
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
143020
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
143021
+ if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
143022
+ if (this.set.length > 1) {
143023
+ const first = this.set[0];
143024
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
143025
+ if (this.set.length === 0) this.set = [first];
143026
+ else if (this.set.length > 1) {
143027
+ for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
143028
+ this.set = [c];
143029
+ break;
143030
+ }
143031
+ }
143032
+ }
143033
+ this.formatted = void 0;
143034
+ }
143035
+ get range() {
143036
+ if (this.formatted === void 0) {
143037
+ this.formatted = "";
143038
+ for (let i = 0; i < this.set.length; i++) {
143039
+ if (i > 0) this.formatted += "||";
143040
+ const comps = this.set[i];
143041
+ for (let k = 0; k < comps.length; k++) {
143042
+ if (k > 0) this.formatted += " ";
143043
+ this.formatted += comps[k].toString().trim();
143044
+ }
143045
+ }
143046
+ }
143047
+ return this.formatted;
143048
+ }
143049
+ format() {
143050
+ return this.range;
143051
+ }
143052
+ toString() {
143053
+ return this.range;
143054
+ }
143055
+ parseRange(range) {
143056
+ const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
143057
+ const cached = cache.get(memoKey);
143058
+ if (cached) return cached;
143059
+ const loose = this.options.loose;
143060
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
143061
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
143062
+ debug("hyphen replace", range);
143063
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
143064
+ debug("comparator trim", range);
143065
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
143066
+ debug("tilde trim", range);
143067
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
143068
+ debug("caret trim", range);
143069
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
143070
+ if (loose) rangeList = rangeList.filter((comp) => {
143071
+ debug("loose invalid filter", comp, this.options);
143072
+ return !!comp.match(re[t.COMPARATORLOOSE]);
143073
+ });
143074
+ debug("range list", rangeList);
143075
+ const rangeMap = /* @__PURE__ */ new Map();
143076
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
143077
+ for (const comp of comparators) {
143078
+ if (isNullSet(comp)) return [comp];
143079
+ rangeMap.set(comp.value, comp);
143080
+ }
143081
+ if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
143082
+ const result = [...rangeMap.values()];
143083
+ cache.set(memoKey, result);
143084
+ return result;
143085
+ }
143086
+ intersects(range, options) {
143087
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
143088
+ return this.set.some((thisComparators) => {
143089
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
143090
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
143091
+ return rangeComparators.every((rangeComparator) => {
143092
+ return thisComparator.intersects(rangeComparator, options);
143093
+ });
143094
+ });
143095
+ });
143096
+ });
143097
+ }
143098
+ test(version) {
143099
+ if (!version) return false;
143100
+ if (typeof version === "string") try {
143101
+ version = new SemVer(version, this.options);
143102
+ } catch (er) {
143103
+ return false;
143104
+ }
143105
+ for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
143106
+ return false;
143107
+ }
143108
+ };
143109
+ const cache = new (require_lrucache())();
143110
+ const parseOptions = require_parse_options();
143111
+ const Comparator = require_comparator();
143112
+ const debug = require_debug();
143113
+ const SemVer = require_semver$1();
143114
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
143115
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
143116
+ const isNullSet = (c) => c.value === "<0.0.0-0";
143117
+ const isAny = (c) => c.value === "";
143118
+ const isSatisfiable = (comparators, options) => {
143119
+ let result = true;
143120
+ const remainingComparators = comparators.slice();
143121
+ let testComparator = remainingComparators.pop();
143122
+ while (result && remainingComparators.length) {
143123
+ result = remainingComparators.every((otherComparator) => {
143124
+ return testComparator.intersects(otherComparator, options);
143125
+ });
143126
+ testComparator = remainingComparators.pop();
143127
+ }
143128
+ return result;
143129
+ };
143130
+ const parseComparator = (comp, options) => {
143131
+ comp = comp.replace(re[t.BUILD], "");
143132
+ debug("comp", comp, options);
143133
+ comp = replaceCarets(comp, options);
143134
+ debug("caret", comp);
143135
+ comp = replaceTildes(comp, options);
143136
+ debug("tildes", comp);
143137
+ comp = replaceXRanges(comp, options);
143138
+ debug("xrange", comp);
143139
+ comp = replaceStars(comp, options);
143140
+ debug("stars", comp);
143141
+ return comp;
143142
+ };
143143
+ const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
143144
+ const replaceTildes = (comp, options) => {
143145
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
143146
+ };
143147
+ const replaceTilde = (comp, options) => {
143148
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
143149
+ return comp.replace(r, (_, M, m, p, pr) => {
143150
+ debug("tilde", comp, _, M, m, p, pr);
143151
+ let ret;
143152
+ if (isX(M)) ret = "";
143153
+ else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
143154
+ else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
143155
+ else if (pr) {
143156
+ debug("replaceTilde pr", pr);
143157
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
143158
+ } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
143159
+ debug("tilde return", ret);
143160
+ return ret;
143161
+ });
143162
+ };
143163
+ const replaceCarets = (comp, options) => {
143164
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
143165
+ };
143166
+ const replaceCaret = (comp, options) => {
143167
+ debug("caret", comp, options);
143168
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
143169
+ const z = options.includePrerelease ? "-0" : "";
143170
+ return comp.replace(r, (_, M, m, p, pr) => {
143171
+ debug("caret", comp, _, M, m, p, pr);
143172
+ let ret;
143173
+ if (isX(M)) ret = "";
143174
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
143175
+ else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
143176
+ else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
143177
+ else if (pr) {
143178
+ debug("replaceCaret pr", pr);
143179
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
143180
+ else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
143181
+ else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
143182
+ } else {
143183
+ debug("no pr");
143184
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
143185
+ else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
143186
+ else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
143187
+ }
143188
+ debug("caret return", ret);
143189
+ return ret;
143190
+ });
143191
+ };
143192
+ const replaceXRanges = (comp, options) => {
143193
+ debug("replaceXRanges", comp, options);
143194
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
143195
+ };
143196
+ const replaceXRange = (comp, options) => {
143197
+ comp = comp.trim();
143198
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
143199
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
143200
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
143201
+ const xM = isX(M);
143202
+ const xm = xM || isX(m);
143203
+ const xp = xm || isX(p);
143204
+ const anyX = xp;
143205
+ if (gtlt === "=" && anyX) gtlt = "";
143206
+ pr = options.includePrerelease ? "-0" : "";
143207
+ if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
143208
+ else ret = "*";
143209
+ else if (gtlt && anyX) {
143210
+ if (xm) m = 0;
143211
+ p = 0;
143212
+ if (gtlt === ">") {
143213
+ gtlt = ">=";
143214
+ if (xm) {
143215
+ M = +M + 1;
143216
+ m = 0;
143217
+ p = 0;
143218
+ } else {
143219
+ m = +m + 1;
143220
+ p = 0;
143221
+ }
143222
+ } else if (gtlt === "<=") {
143223
+ gtlt = "<";
143224
+ if (xm) M = +M + 1;
143225
+ else m = +m + 1;
143226
+ }
143227
+ if (gtlt === "<") pr = "-0";
143228
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
143229
+ } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
143230
+ else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
143231
+ debug("xRange return", ret);
143232
+ return ret;
143233
+ });
143234
+ };
143235
+ const replaceStars = (comp, options) => {
143236
+ debug("replaceStars", comp, options);
143237
+ return comp.trim().replace(re[t.STAR], "");
143238
+ };
143239
+ const replaceGTE0 = (comp, options) => {
143240
+ debug("replaceGTE0", comp, options);
143241
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
143242
+ };
143243
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
143244
+ if (isX(fM)) from = "";
143245
+ else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
143246
+ else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
143247
+ else if (fpr) from = `>=${from}`;
143248
+ else from = `>=${from}${incPr ? "-0" : ""}`;
143249
+ if (isX(tM)) to = "";
143250
+ else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
143251
+ else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
143252
+ else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
143253
+ else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
143254
+ else to = `<=${to}`;
143255
+ return `${from} ${to}`.trim();
143256
+ };
143257
+ const testSet = (set, version, options) => {
143258
+ for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
143259
+ if (version.prerelease.length && !options.includePrerelease) {
143260
+ for (let i = 0; i < set.length; i++) {
143261
+ debug(set[i].semver);
143262
+ if (set[i].semver === Comparator.ANY) continue;
143263
+ if (set[i].semver.prerelease.length > 0) {
143264
+ const allowed = set[i].semver;
143265
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
143266
+ }
143267
+ }
143268
+ return false;
143269
+ }
143270
+ return true;
143271
+ };
143272
+ }));
143273
+ //#endregion
143274
+ //#region ../../packages/core-node/node_modules/semver/classes/comparator.js
143275
+ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143276
+ const ANY = Symbol("SemVer ANY");
143277
+ module.exports = class Comparator {
143278
+ static get ANY() {
143279
+ return ANY;
143280
+ }
143281
+ constructor(comp, options) {
143282
+ options = parseOptions(options);
143283
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
143284
+ else comp = comp.value;
143285
+ comp = comp.trim().split(/\s+/).join(" ");
143286
+ debug("comparator", comp, options);
143287
+ this.options = options;
143288
+ this.loose = !!options.loose;
143289
+ this.parse(comp);
143290
+ if (this.semver === ANY) this.value = "";
143291
+ else this.value = this.operator + this.semver.version;
143292
+ debug("comp", this);
143293
+ }
143294
+ parse(comp) {
143295
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
143296
+ const m = comp.match(r);
143297
+ if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
143298
+ this.operator = m[1] !== void 0 ? m[1] : "";
143299
+ if (this.operator === "=") this.operator = "";
143300
+ if (!m[2]) this.semver = ANY;
143301
+ else this.semver = new SemVer(m[2], this.options.loose);
143302
+ }
143303
+ toString() {
143304
+ return this.value;
143305
+ }
143306
+ test(version) {
143307
+ debug("Comparator.test", version, this.options.loose);
143308
+ if (this.semver === ANY || version === ANY) return true;
143309
+ if (typeof version === "string") try {
143310
+ version = new SemVer(version, this.options);
143311
+ } catch (er) {
143312
+ return false;
143313
+ }
143314
+ return cmp(version, this.operator, this.semver, this.options);
143315
+ }
143316
+ intersects(comp, options) {
143317
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
143318
+ if (this.operator === "") {
143319
+ if (this.value === "") return true;
143320
+ return new Range(comp.value, options).test(this.value);
143321
+ } else if (comp.operator === "") {
143322
+ if (comp.value === "") return true;
143323
+ return new Range(this.value, options).test(comp.semver);
143324
+ }
143325
+ options = parseOptions(options);
143326
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
143327
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
143328
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
143329
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
143330
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
143331
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
143332
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
143333
+ return false;
143334
+ }
143335
+ };
143336
+ const parseOptions = require_parse_options();
143337
+ const { safeRe: re, t } = require_re();
143338
+ const cmp = require_cmp();
143339
+ const debug = require_debug();
143340
+ const SemVer = require_semver$1();
143341
+ const Range = require_range();
143342
+ }));
143343
+ //#endregion
143344
+ //#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
143345
+ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143346
+ const Range = require_range();
143347
+ const satisfies = (version, range, options) => {
143348
+ try {
143349
+ range = new Range(range, options);
143350
+ } catch (er) {
143351
+ return false;
143352
+ }
143353
+ return range.test(version);
143354
+ };
143355
+ module.exports = satisfies;
143356
+ }));
143357
+ //#endregion
143358
+ //#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
143359
+ var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143360
+ const Range = require_range();
143361
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
143362
+ module.exports = toComparators;
143363
+ }));
143364
+ //#endregion
143365
+ //#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
143366
+ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143367
+ const SemVer = require_semver$1();
143368
+ const Range = require_range();
143369
+ const maxSatisfying = (versions, range, options) => {
143370
+ let max = null;
143371
+ let maxSV = null;
143372
+ let rangeObj = null;
143373
+ try {
143374
+ rangeObj = new Range(range, options);
143375
+ } catch (er) {
143376
+ return null;
143377
+ }
143378
+ versions.forEach((v) => {
143379
+ if (rangeObj.test(v)) {
143380
+ if (!max || maxSV.compare(v) === -1) {
143381
+ max = v;
143382
+ maxSV = new SemVer(max, options);
143383
+ }
143384
+ }
143385
+ });
143386
+ return max;
143387
+ };
143388
+ module.exports = maxSatisfying;
143389
+ }));
143390
+ //#endregion
143391
+ //#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
143392
+ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143393
+ const SemVer = require_semver$1();
143394
+ const Range = require_range();
143395
+ const minSatisfying = (versions, range, options) => {
143396
+ let min = null;
143397
+ let minSV = null;
143398
+ let rangeObj = null;
143399
+ try {
143400
+ rangeObj = new Range(range, options);
143401
+ } catch (er) {
143402
+ return null;
143403
+ }
143404
+ versions.forEach((v) => {
143405
+ if (rangeObj.test(v)) {
143406
+ if (!min || minSV.compare(v) === 1) {
143407
+ min = v;
143408
+ minSV = new SemVer(min, options);
143409
+ }
143410
+ }
143411
+ });
143412
+ return min;
143413
+ };
143414
+ module.exports = minSatisfying;
143415
+ }));
143416
+ //#endregion
143417
+ //#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
143418
+ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143419
+ const SemVer = require_semver$1();
143420
+ const Range = require_range();
143421
+ const gt = require_gt();
143422
+ const minVersion = (range, loose) => {
143423
+ range = new Range(range, loose);
143424
+ let minver = new SemVer("0.0.0");
143425
+ if (range.test(minver)) return minver;
143426
+ minver = new SemVer("0.0.0-0");
143427
+ if (range.test(minver)) return minver;
143428
+ minver = null;
143429
+ for (let i = 0; i < range.set.length; ++i) {
143430
+ const comparators = range.set[i];
143431
+ let setMin = null;
143432
+ comparators.forEach((comparator) => {
143433
+ const compver = new SemVer(comparator.semver.version);
143434
+ switch (comparator.operator) {
143435
+ case ">":
143436
+ if (compver.prerelease.length === 0) compver.patch++;
143437
+ else compver.prerelease.push(0);
143438
+ compver.raw = compver.format();
143439
+ case "":
143440
+ case ">=":
143441
+ if (!setMin || gt(compver, setMin)) setMin = compver;
143442
+ break;
143443
+ case "<":
143444
+ case "<=": break;
143445
+ default: throw new Error(`Unexpected operation: ${comparator.operator}`);
143446
+ }
143447
+ });
143448
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
143449
+ }
143450
+ if (minver && range.test(minver)) return minver;
143451
+ return null;
143452
+ };
143453
+ module.exports = minVersion;
143454
+ }));
143455
+ //#endregion
143456
+ //#region ../../packages/core-node/node_modules/semver/ranges/valid.js
143457
+ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143458
+ const Range = require_range();
143459
+ const validRange = (range, options) => {
143460
+ try {
143461
+ return new Range(range, options).range || "*";
143462
+ } catch (er) {
143463
+ return null;
143464
+ }
143465
+ };
143466
+ module.exports = validRange;
143467
+ }));
143468
+ //#endregion
143469
+ //#region ../../packages/core-node/node_modules/semver/ranges/outside.js
143470
+ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143471
+ const SemVer = require_semver$1();
143472
+ const Comparator = require_comparator();
143473
+ const { ANY } = Comparator;
143474
+ const Range = require_range();
143475
+ const satisfies = require_satisfies();
143476
+ const gt = require_gt();
143477
+ const lt = require_lt();
143478
+ const lte = require_lte();
143479
+ const gte = require_gte();
143480
+ const outside = (version, range, hilo, options) => {
143481
+ version = new SemVer(version, options);
143482
+ range = new Range(range, options);
143483
+ let gtfn, ltefn, ltfn, comp, ecomp;
143484
+ switch (hilo) {
143485
+ case ">":
143486
+ gtfn = gt;
143487
+ ltefn = lte;
143488
+ ltfn = lt;
143489
+ comp = ">";
143490
+ ecomp = ">=";
143491
+ break;
143492
+ case "<":
143493
+ gtfn = lt;
143494
+ ltefn = gte;
143495
+ ltfn = gt;
143496
+ comp = "<";
143497
+ ecomp = "<=";
143498
+ break;
143499
+ default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
143500
+ }
143501
+ if (satisfies(version, range, options)) return false;
143502
+ for (let i = 0; i < range.set.length; ++i) {
143503
+ const comparators = range.set[i];
143504
+ let high = null;
143505
+ let low = null;
143506
+ comparators.forEach((comparator) => {
143507
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
143508
+ high = high || comparator;
143509
+ low = low || comparator;
143510
+ if (gtfn(comparator.semver, high.semver, options)) high = comparator;
143511
+ else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
143512
+ });
143513
+ if (high.operator === comp || high.operator === ecomp) return false;
143514
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
143515
+ else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
143516
+ }
143517
+ return true;
143518
+ };
143519
+ module.exports = outside;
143520
+ }));
143521
+ //#endregion
143522
+ //#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
143523
+ var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143524
+ const outside = require_outside();
143525
+ const gtr = (version, range, options) => outside(version, range, ">", options);
143526
+ module.exports = gtr;
143527
+ }));
143528
+ //#endregion
143529
+ //#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
143530
+ var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143531
+ const outside = require_outside();
143532
+ const ltr = (version, range, options) => outside(version, range, "<", options);
143533
+ module.exports = ltr;
143534
+ }));
143535
+ //#endregion
143536
+ //#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
143537
+ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143538
+ const Range = require_range();
143539
+ const intersects = (r1, r2, options) => {
143540
+ r1 = new Range(r1, options);
143541
+ r2 = new Range(r2, options);
143542
+ return r1.intersects(r2, options);
143543
+ };
143544
+ module.exports = intersects;
143545
+ }));
143546
+ //#endregion
143547
+ //#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
143548
+ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143549
+ const satisfies = require_satisfies();
143550
+ const compare = require_compare();
143551
+ module.exports = (versions, range, options) => {
143552
+ const set = [];
143553
+ let first = null;
143554
+ let prev = null;
143555
+ const v = versions.sort((a, b) => compare(a, b, options));
143556
+ for (const version of v) if (satisfies(version, range, options)) {
143557
+ prev = version;
143558
+ if (!first) first = version;
143559
+ } else {
143560
+ if (prev) set.push([first, prev]);
143561
+ prev = null;
143562
+ first = null;
143563
+ }
143564
+ if (first) set.push([first, null]);
143565
+ const ranges = [];
143566
+ for (const [min, max] of set) if (min === max) ranges.push(min);
143567
+ else if (!max && min === v[0]) ranges.push("*");
143568
+ else if (!max) ranges.push(`>=${min}`);
143569
+ else if (min === v[0]) ranges.push(`<=${max}`);
143570
+ else ranges.push(`${min} - ${max}`);
143571
+ const simplified = ranges.join(" || ");
143572
+ const original = typeof range.raw === "string" ? range.raw : String(range);
143573
+ return simplified.length < original.length ? simplified : range;
143574
+ };
143575
+ }));
143576
+ //#endregion
143577
+ //#region ../../packages/core-node/node_modules/semver/ranges/subset.js
143578
+ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143579
+ const Range = require_range();
143580
+ const Comparator = require_comparator();
143581
+ const { ANY } = Comparator;
143582
+ const satisfies = require_satisfies();
143583
+ const compare = require_compare();
143584
+ const subset = (sub, dom, options = {}) => {
143585
+ if (sub === dom) return true;
143586
+ sub = new Range(sub, options);
143587
+ dom = new Range(dom, options);
143588
+ let sawNonNull = false;
143589
+ OUTER: for (const simpleSub of sub.set) {
143590
+ for (const simpleDom of dom.set) {
143591
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
143592
+ sawNonNull = sawNonNull || isSub !== null;
143593
+ if (isSub) continue OUTER;
143594
+ }
143595
+ if (sawNonNull) return false;
143596
+ }
143597
+ return true;
143598
+ };
143599
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
143600
+ const minimumVersion = [new Comparator(">=0.0.0")];
143601
+ const simpleSubset = (sub, dom, options) => {
143602
+ if (sub === dom) return true;
143603
+ if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
143604
+ else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
143605
+ else sub = minimumVersion;
143606
+ if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
143607
+ else dom = minimumVersion;
143608
+ const eqSet = /* @__PURE__ */ new Set();
143609
+ let gt, lt;
143610
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
143611
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
143612
+ else eqSet.add(c.semver);
143613
+ if (eqSet.size > 1) return null;
143614
+ let gtltComp;
143615
+ if (gt && lt) {
143616
+ gtltComp = compare(gt.semver, lt.semver, options);
143617
+ if (gtltComp > 0) return null;
143618
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
143619
+ }
143620
+ for (const eq of eqSet) {
143621
+ if (gt && !satisfies(eq, String(gt), options)) return null;
143622
+ if (lt && !satisfies(eq, String(lt), options)) return null;
143623
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
143624
+ return true;
143625
+ }
143626
+ let higher, lower;
143627
+ let hasDomLT, hasDomGT;
143628
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
143629
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
143630
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
143631
+ for (const c of dom) {
143632
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
143633
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
143634
+ if (gt) {
143635
+ if (needDomGTPre) {
143636
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
143637
+ }
143638
+ if (c.operator === ">" || c.operator === ">=") {
143639
+ higher = higherGT(gt, c, options);
143640
+ if (higher === c && higher !== gt) return false;
143641
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
143642
+ }
143643
+ if (lt) {
143644
+ if (needDomLTPre) {
143645
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
143646
+ }
143647
+ if (c.operator === "<" || c.operator === "<=") {
143648
+ lower = lowerLT(lt, c, options);
143649
+ if (lower === c && lower !== lt) return false;
143650
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
143651
+ }
143652
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
143653
+ }
143654
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
143655
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
143656
+ if (needDomGTPre || needDomLTPre) return false;
143657
+ return true;
143658
+ };
143659
+ const higherGT = (a, b, options) => {
143660
+ if (!a) return b;
143661
+ const comp = compare(a.semver, b.semver, options);
143662
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
143663
+ };
143664
+ const lowerLT = (a, b, options) => {
143665
+ if (!a) return b;
143666
+ const comp = compare(a.semver, b.semver, options);
143667
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
143668
+ };
143669
+ module.exports = subset;
143670
+ }));
143671
+ //#endregion
143672
+ //#region ../../packages/core-node/node_modules/semver/index.js
143673
+ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
143674
+ const internalRe = require_re();
143675
+ const constants = require_constants();
143676
+ const SemVer = require_semver$1();
143677
+ const identifiers = require_identifiers();
143678
+ module.exports = {
143679
+ parse: require_parse(),
143680
+ valid: require_valid$1(),
143681
+ clean: require_clean(),
143682
+ inc: require_inc(),
143683
+ diff: require_diff(),
143684
+ major: require_major(),
143685
+ minor: require_minor(),
143686
+ patch: require_patch(),
143687
+ prerelease: require_prerelease(),
143688
+ compare: require_compare(),
143689
+ rcompare: require_rcompare(),
143690
+ compareLoose: require_compare_loose(),
143691
+ compareBuild: require_compare_build(),
143692
+ sort: require_sort(),
143693
+ rsort: require_rsort(),
143694
+ gt: require_gt(),
143695
+ lt: require_lt(),
143696
+ eq: require_eq(),
143697
+ neq: require_neq(),
143698
+ gte: require_gte(),
143699
+ lte: require_lte(),
143700
+ cmp: require_cmp(),
143701
+ coerce: require_coerce(),
143702
+ Comparator: require_comparator(),
143703
+ Range: require_range(),
143704
+ satisfies: require_satisfies(),
143705
+ toComparators: require_to_comparators(),
143706
+ maxSatisfying: require_max_satisfying(),
143707
+ minSatisfying: require_min_satisfying(),
143708
+ minVersion: require_min_version(),
143709
+ validRange: require_valid(),
143710
+ outside: require_outside(),
143711
+ gtr: require_gtr(),
143712
+ ltr: require_ltr(),
143713
+ intersects: require_intersects(),
143714
+ simplifyRange: require_simplify(),
143715
+ subset: require_subset(),
143716
+ SemVer,
143717
+ re: internalRe.re,
143718
+ src: internalRe.src,
143719
+ tokens: internalRe.t,
143720
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
143721
+ RELEASE_TYPES: constants.RELEASE_TYPES,
143722
+ compareIdentifiers: identifiers.compareIdentifiers,
143723
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
143724
+ };
143725
+ }));
143726
+ //#endregion
140850
143727
  //#region ../../node_modules/serve-handler/src/glob-slash.js
140851
143728
  var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
140852
143729
  const path$4 = __require("path");
@@ -148236,6 +151113,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
148236
151113
  stream.pipe(response);
148237
151114
  };
148238
151115
  })))();
151116
+ var import_semver$1 = /* @__PURE__ */ __toESM(require_semver(), 1);
148239
151117
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
148240
151118
  //#endregion
148241
151119
  //#region ../../packages/core-node/src/server.ts
@@ -148312,7 +151190,9 @@ async function fetchPackage(packageName, versionOrRange, options) {
148312
151190
  const ctx = options.context;
148313
151191
  const baseDir = ctx.getPackagesPath(packageName);
148314
151192
  let resolvedVersion;
148315
- console.log(`[Fetcher] Resolving ${packageName}@${versionOrRange || "latest"}...`);
151193
+ let resolvedVersionOrRange = versionOrRange;
151194
+ if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
151195
+ console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
148316
151196
  const resolveStart = Date.now();
148317
151197
  try {
148318
151198
  const cachePath = join(ctx.userDataPath, "cache", "pacote");
@@ -148323,15 +151203,15 @@ async function fetchPackage(packageName, versionOrRange, options) {
148323
151203
  }
148324
151204
  const packument = await packumentPromise;
148325
151205
  const versions = Object.keys(packument.versions);
148326
- const range = versionOrRange || "latest";
148327
- const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
151206
+ const range = resolvedVersionOrRange || "latest";
151207
+ const foundVersion = packument["dist-tags"]?.[range] || import_semver$1.default.maxSatisfying(versions, range);
148328
151208
  if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
148329
151209
  resolvedVersion = foundVersion;
148330
151210
  console.log(`[Fetcher] ${packageName}: Resolved to v${resolvedVersion} via npm (${Date.now() - resolveStart}ms)`);
148331
151211
  } catch (error) {
148332
151212
  console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
148333
151213
  const fallbackStart = Date.now();
148334
- const fallbackVersion = await tryLocalFallback(versionOrRange, error, baseDir, packageName);
151214
+ const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
148335
151215
  if (fallbackVersion) {
148336
151216
  resolvedVersion = fallbackVersion;
148337
151217
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
@@ -148605,22 +151485,27 @@ async function crawlMonorepoPackages() {
148605
151485
  }
148606
151486
  return cache;
148607
151487
  }
148608
- async function findLatestLocalVersion(baseDir) {
151488
+ async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
148609
151489
  if (!existsSync(baseDir)) return null;
148610
151490
  try {
148611
- return (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).sort((a, b) => b.localeCompare(a, void 0, {
148612
- numeric: true,
148613
- sensitivity: "base"
148614
- }))[0] || null;
148615
- } catch {
148616
- return null;
148617
- }
148618
- }
148619
- async function tryLocalFallback(_version, _error, baseDir, logPrefix) {
148620
- const latestLocal = await findLatestLocalVersion(baseDir);
148621
- if (latestLocal) {
148622
- console.info(`[Fetcher] ${logPrefix}: Using locally cached version: ${latestLocal}`);
148623
- return latestLocal;
151491
+ const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver$1.default.valid(name));
151492
+ if (localVersions.length === 0) return null;
151493
+ const range = versionOrRange || "latest";
151494
+ if (range === "latest") {
151495
+ const latestLocal = localVersions.sort((a, b) => import_semver$1.default.rcompare(a, b))[0] || null;
151496
+ if (latestLocal) {
151497
+ console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
151498
+ return latestLocal;
151499
+ }
151500
+ } else {
151501
+ const matched = import_semver$1.default.maxSatisfying(localVersions, range);
151502
+ if (matched) {
151503
+ console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
151504
+ return matched;
151505
+ }
151506
+ }
151507
+ } catch (e) {
151508
+ console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
148624
151509
  }
148625
151510
  return null;
148626
151511
  }
@@ -148646,6 +151531,26 @@ async function resolveEntryPoint(packageDir, packageName) {
148646
151531
  //#region ../../packages/core-node/src/handler-func.ts
148647
151532
  const { join: join$1 } = path;
148648
151533
  //#endregion
151534
+ //#region ../../packages/core-node/src/handlers/plugins.ts
151535
+ const localPluginsMap = /* @__PURE__ */ new Map();
151536
+ if (isDev && projectRoot) {
151537
+ const pluginsDir = join(projectRoot, "plugins");
151538
+ if (existsSync(pluginsDir)) try {
151539
+ const entries = readdirSync(pluginsDir, { withFileTypes: true });
151540
+ for (const entry of entries) if (entry.isDirectory()) {
151541
+ const pkgPath = join(pluginsDir, entry.name, "package.json");
151542
+ if (existsSync(pkgPath)) try {
151543
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
151544
+ if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
151545
+ } catch (e) {
151546
+ console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
151547
+ }
151548
+ }
151549
+ } catch (e) {
151550
+ console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
151551
+ }
151552
+ }
151553
+ //#endregion
148649
151554
  //#region ../plugin-core/src/pipelab.ts
148650
151555
  const createActionRunner = (runner) => runner;
148651
151556
  //#endregion
@@ -148767,6 +151672,7 @@ function splitPrefixSuffix(input, options = {}) {
148767
151672
  }
148768
151673
  //#endregion
148769
151674
  //#region src/forge.ts
151675
+ var import_semver = /* @__PURE__ */ __toESM(require_semver$2(), 1);
148770
151676
  const IDMake = "electron:make";
148771
151677
  const IDPackage = "electron:package";
148772
151678
  const IDPackageV2 = "electron:package:v2";
@@ -149216,7 +152122,7 @@ const forge = async (action, appFolder, { cwd, log, inputs, setOutput, paths, ab
149216
152122
  log("Setting productName to", completeConfiguration.name);
149217
152123
  pkgJSON.productName = completeConfiguration.name;
149218
152124
  completeConfiguration.icon = relativeIconPath1;
149219
- writeFile(join(destinationFolder, "config.cjs"), `module.exports = ${JSON.stringify(completeConfiguration, void 0, 2)}`, "utf8");
152125
+ await writeFile(join(destinationFolder, "config.cjs"), `module.exports = ${JSON.stringify(completeConfiguration, void 0, 2)}`, "utf8");
149220
152126
  if (isCJSOnly) {
149221
152127
  log("Setting type to", "commonjs");
149222
152128
  pkgJSON.type = "commonjs";
@@ -149563,38 +152469,28 @@ const packageV2Runner = createActionRunner(async (options) => {
149563
152469
  });
149564
152470
  //#endregion
149565
152471
  //#region src/index.ts
149566
- const icon = new URL("./public/electron.webp", import.meta.url).href;
149567
- var src_default = createNodeDefinition({
149568
- description: "Electron",
149569
- name: "Electron",
149570
- id: "electron",
149571
- icon: {
149572
- type: "image",
149573
- image: icon
152472
+ var src_default = createNodeDefinition({ nodes: [
152473
+ {
152474
+ node: createMakeProps(IDMake, "Create Installer", "Create a distributable installer for your chosen platform", "", "`Build package for ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`"),
152475
+ runner: makeRunner
149574
152476
  },
149575
- nodes: [
149576
- {
149577
- node: createMakeProps(IDMake, "Create Installer", "Create a distributable installer for your chosen platform", "", "`Build package for ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`"),
149578
- runner: makeRunner
149579
- },
149580
- {
149581
- node: createPackageProps(IDPackage, "Package app", "Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", true),
149582
- runner: packageRunner
149583
- },
149584
- {
149585
- node: createPackageV2Props(IDPackageV2, "Package app with configuration", "Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", false, false, void 0, false, false),
149586
- runner: packageV2Runner
149587
- },
149588
- {
149589
- node: createPreviewProps(IDPreview, "Preview app", "Package and preview your app from an URL", "", "`Preview app from ${fmt.param(params['input-url'], 'primary', 'URL not set')}`"),
149590
- runner: previewRunner
149591
- },
149592
- {
149593
- node: props,
149594
- runner: configureRunner
149595
- }
149596
- ]
149597
- });
152477
+ {
152478
+ node: createPackageProps(IDPackage, "Package app", "Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", true),
152479
+ runner: packageRunner
152480
+ },
152481
+ {
152482
+ node: createPackageV2Props(IDPackageV2, "Package app with configuration", "Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", false, false, void 0, false, false),
152483
+ runner: packageV2Runner
152484
+ },
152485
+ {
152486
+ node: createPreviewProps(IDPreview, "Preview app", "Package and preview your app from an URL", "", "`Preview app from ${fmt.param(params['input-url'], 'primary', 'URL not set')}`"),
152487
+ runner: previewRunner
152488
+ },
152489
+ {
152490
+ node: props,
152491
+ runner: configureRunner
152492
+ }
152493
+ ] });
149598
152494
  //#endregion
149599
152495
  export { src_default as default };
149600
152496