pnpm 10.33.2 → 10.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/node_modules/.modules.yaml +66 -66
  2. package/dist/node_modules/.pnpm/lock.yaml +8 -8
  3. package/dist/node_modules/.pnpm-workspace-state-v1.json +1 -1
  4. package/dist/node_modules/ip-address/dist/address-error.js.map +1 -1
  5. package/dist/node_modules/ip-address/dist/common.js +21 -0
  6. package/dist/node_modules/ip-address/dist/common.js.map +1 -1
  7. package/dist/node_modules/ip-address/dist/ip-address.js.map +1 -1
  8. package/dist/node_modules/ip-address/dist/ipv4.js +193 -68
  9. package/dist/node_modules/ip-address/dist/ipv4.js.map +1 -1
  10. package/dist/node_modules/ip-address/dist/ipv6.js +345 -131
  11. package/dist/node_modules/ip-address/dist/ipv6.js.map +1 -1
  12. package/dist/node_modules/ip-address/dist/v4/constants.js.map +1 -1
  13. package/dist/node_modules/ip-address/dist/v6/constants.js +5 -0
  14. package/dist/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  15. package/dist/node_modules/ip-address/dist/v6/helpers.js +12 -3
  16. package/dist/node_modules/ip-address/dist/v6/helpers.js.map +1 -1
  17. package/dist/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -1
  18. package/dist/node_modules/ip-address/package.json +45 -35
  19. package/dist/node_modules/isexe/LICENSE +1 -1
  20. package/dist/node_modules/isexe/package.json +14 -79
  21. package/dist/node_modules/{cross-spawn/node_modules/which → node-gyp/node_modules/isexe}/LICENSE +1 -1
  22. package/dist/node_modules/node-gyp/node_modules/isexe/package.json +96 -0
  23. package/dist/node_modules/node-gyp/node_modules/which/package.json +52 -0
  24. package/dist/node_modules/socks/.claude/settings.local.json +26 -0
  25. package/dist/node_modules/socks/package.json +2 -2
  26. package/dist/node_modules/which/package.json +20 -29
  27. package/dist/pnpm.cjs +1156 -729
  28. package/dist/worker.js +11 -8
  29. package/package.json +1 -1
  30. package/dist/node_modules/cross-spawn/node_modules/isexe/package.json +0 -31
  31. package/dist/node_modules/cross-spawn/node_modules/which/package.json +0 -43
  32. package/dist/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
  33. package/dist/node_modules/ip-address/dist/common.d.ts.map +0 -1
  34. package/dist/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
  35. package/dist/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
  36. package/dist/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
  37. package/dist/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
  38. package/dist/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
  39. package/dist/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
  40. package/dist/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
  41. /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/index.js +0 -0
  42. /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/mode.js +0 -0
  43. /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/windows.js +0 -0
  44. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.d.ts.map +0 -0
  45. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.js +0 -0
  46. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.js.map +0 -0
  47. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.d.ts.map +0 -0
  48. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.js +0 -0
  49. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.js.map +0 -0
  50. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/package.json +0 -0
  51. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.d.ts.map +0 -0
  52. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.js +0 -0
  53. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.js.map +0 -0
  54. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.d.ts.map +0 -0
  55. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.js +0 -0
  56. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.js.map +0 -0
  57. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.d.ts.map +0 -0
  58. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.js +0 -0
  59. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.js.map +0 -0
  60. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.d.ts.map +0 -0
  61. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.js +0 -0
  62. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.js.map +0 -0
  63. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/package.json +0 -0
  64. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.d.ts.map +0 -0
  65. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.js +0 -0
  66. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.js.map +0 -0
  67. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.d.ts.map +0 -0
  68. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.js +0 -0
  69. /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.js.map +0 -0
  70. /package/dist/node_modules/{cross-spawn/node_modules/isexe → node-gyp/node_modules/which}/LICENSE +0 -0
  71. /package/dist/node_modules/{which → node-gyp/node_modules/which}/bin/which.js +0 -0
  72. /package/dist/node_modules/{which → node-gyp/node_modules/which}/lib/index.js +0 -0
  73. /package/dist/node_modules/{cross-spawn/node_modules/which → which}/bin/node-which +0 -0
  74. /package/dist/node_modules/{cross-spawn/node_modules/which → which}/which.js +0 -0
package/dist/pnpm.cjs CHANGED
@@ -243,9 +243,9 @@ var require_individual = __commonJS({
243
243
  }
244
244
  });
245
245
 
246
- // ../node_modules/.pnpm/bole@5.0.28/node_modules/bole/format.js
246
+ // ../node_modules/.pnpm/bole@5.0.29/node_modules/bole/format.js
247
247
  var require_format = __commonJS({
248
- "../node_modules/.pnpm/bole@5.0.28/node_modules/bole/format.js"(exports2, module2) {
248
+ "../node_modules/.pnpm/bole@5.0.29/node_modules/bole/format.js"(exports2, module2) {
249
249
  var utilformat = require("util").format;
250
250
  function format(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {
251
251
  if (a16 !== void 0) {
@@ -299,9 +299,9 @@ var require_format = __commonJS({
299
299
  }
300
300
  });
301
301
 
302
- // ../node_modules/.pnpm/bole@5.0.28/node_modules/bole/bole.js
302
+ // ../node_modules/.pnpm/bole@5.0.29/node_modules/bole/bole.js
303
303
  var require_bole = __commonJS({
304
- "../node_modules/.pnpm/bole@5.0.28/node_modules/bole/bole.js"(exports2, module2) {
304
+ "../node_modules/.pnpm/bole@5.0.29/node_modules/bole/bole.js"(exports2, module2) {
305
305
  "use strict";
306
306
  var _stringify = require_fast_safe_stringify();
307
307
  var individual = require_individual()("$$bole", { fastTime: false });
@@ -2973,7 +2973,7 @@ var require_lib4 = __commonJS({
2973
2973
  var load_json_file_1 = __importDefault2(require_load_json_file());
2974
2974
  var defaultManifest = {
2975
2975
  name: true ? "pnpm" : "pnpm",
2976
- version: true ? "10.33.2" : "0.0.0"
2976
+ version: true ? "10.33.4" : "0.0.0"
2977
2977
  };
2978
2978
  var pkgJson;
2979
2979
  if (require.main == null) {
@@ -41113,9 +41113,9 @@ var require_lib29 = __commonJS({
41113
41113
  }
41114
41114
  });
41115
41115
 
41116
- // ../node_modules/.pnpm/@pnpm+error@1000.0.5/node_modules/@pnpm/error/lib/index.js
41116
+ // ../node_modules/.pnpm/@pnpm+error@1000.1.0/node_modules/@pnpm/error/lib/index.js
41117
41117
  var require_lib30 = __commonJS({
41118
- "../node_modules/.pnpm/@pnpm+error@1000.0.5/node_modules/@pnpm/error/lib/index.js"(exports2) {
41118
+ "../node_modules/.pnpm/@pnpm+error@1000.1.0/node_modules/@pnpm/error/lib/index.js"(exports2) {
41119
41119
  "use strict";
41120
41120
  Object.defineProperty(exports2, "__esModule", { value: true });
41121
41121
  exports2.LockfileMissingDependencyError = exports2.FetchError = exports2.PnpmError = void 0;
@@ -41127,7 +41127,7 @@ var require_lib30 = __commonJS({
41127
41127
  prefix;
41128
41128
  pkgsStack;
41129
41129
  constructor(code, message, opts) {
41130
- super(message);
41130
+ super(message, { cause: opts?.cause });
41131
41131
  this.code = code.startsWith("ERR_PNPM_") ? code : `ERR_PNPM_${code}`;
41132
41132
  this.hint = opts?.hint;
41133
41133
  this.attempts = opts?.attempts;
@@ -43543,9 +43543,9 @@ var require_smartbuffer = __commonJS({
43543
43543
  }
43544
43544
  });
43545
43545
 
43546
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/constants.js
43546
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/constants.js
43547
43547
  var require_constants4 = __commonJS({
43548
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/constants.js"(exports2) {
43548
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/constants.js"(exports2) {
43549
43549
  "use strict";
43550
43550
  Object.defineProperty(exports2, "__esModule", { value: true });
43551
43551
  exports2.SOCKS5_NO_ACCEPTABLE_AUTH = exports2.SOCKS5_CUSTOM_AUTH_END = exports2.SOCKS5_CUSTOM_AUTH_START = exports2.SOCKS_INCOMING_PACKET_SIZES = exports2.SocksClientState = exports2.Socks5Response = exports2.Socks5HostType = exports2.Socks5Auth = exports2.Socks4Response = exports2.SocksCommand = exports2.ERRORS = exports2.DEFAULT_TIMEOUT = void 0;
@@ -43660,9 +43660,9 @@ var require_constants4 = __commonJS({
43660
43660
  }
43661
43661
  });
43662
43662
 
43663
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/util.js
43663
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/util.js
43664
43664
  var require_util5 = __commonJS({
43665
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/util.js"(exports2) {
43665
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/util.js"(exports2) {
43666
43666
  "use strict";
43667
43667
  Object.defineProperty(exports2, "__esModule", { value: true });
43668
43668
  exports2.shuffleArray = exports2.SocksClientError = void 0;
@@ -43683,16 +43683,35 @@ var require_util5 = __commonJS({
43683
43683
  }
43684
43684
  });
43685
43685
 
43686
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/common.js
43686
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/address-error.js
43687
+ var require_address_error = __commonJS({
43688
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/address-error.js"(exports2) {
43689
+ "use strict";
43690
+ Object.defineProperty(exports2, "__esModule", { value: true });
43691
+ exports2.AddressError = void 0;
43692
+ var AddressError = class extends Error {
43693
+ constructor(message, parseMessage) {
43694
+ super(message);
43695
+ this.name = "AddressError";
43696
+ this.parseMessage = parseMessage;
43697
+ }
43698
+ };
43699
+ exports2.AddressError = AddressError;
43700
+ }
43701
+ });
43702
+
43703
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/common.js
43687
43704
  var require_common3 = __commonJS({
43688
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/common.js"(exports2) {
43705
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/common.js"(exports2) {
43689
43706
  "use strict";
43690
43707
  Object.defineProperty(exports2, "__esModule", { value: true });
43691
43708
  exports2.isInSubnet = isInSubnet;
43692
43709
  exports2.isCorrect = isCorrect;
43710
+ exports2.prefixLengthFromMask = prefixLengthFromMask;
43693
43711
  exports2.numberToPaddedHex = numberToPaddedHex;
43694
43712
  exports2.stringToPaddedHex = stringToPaddedHex;
43695
43713
  exports2.testBit = testBit;
43714
+ var address_error_1 = require_address_error();
43696
43715
  function isInSubnet(address) {
43697
43716
  if (this.subnetMask < address.subnetMask) {
43698
43717
  return false;
@@ -43713,6 +43732,20 @@ var require_common3 = __commonJS({
43713
43732
  return this.parsedSubnet === String(this.subnetMask);
43714
43733
  };
43715
43734
  }
43735
+ function prefixLengthFromMask(value, totalBits) {
43736
+ const binary = value.toString(2).padStart(totalBits, "0");
43737
+ if (binary.length > totalBits) {
43738
+ throw new address_error_1.AddressError("Invalid subnet mask.");
43739
+ }
43740
+ const firstZero = binary.indexOf("0");
43741
+ if (firstZero === -1) {
43742
+ return totalBits;
43743
+ }
43744
+ if (binary.slice(firstZero).includes("1")) {
43745
+ throw new address_error_1.AddressError("Invalid subnet mask.");
43746
+ }
43747
+ return firstZero;
43748
+ }
43716
43749
  function numberToPaddedHex(number) {
43717
43750
  return number.toString(16).padStart(2, "0");
43718
43751
  }
@@ -43730,9 +43763,9 @@ var require_common3 = __commonJS({
43730
43763
  }
43731
43764
  });
43732
43765
 
43733
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v4/constants.js
43766
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v4/constants.js
43734
43767
  var require_constants5 = __commonJS({
43735
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v4/constants.js"(exports2) {
43768
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v4/constants.js"(exports2) {
43736
43769
  "use strict";
43737
43770
  Object.defineProperty(exports2, "__esModule", { value: true });
43738
43771
  exports2.RE_SUBNET_STRING = exports2.RE_ADDRESS = exports2.GROUPS = exports2.BITS = void 0;
@@ -43743,26 +43776,9 @@ var require_constants5 = __commonJS({
43743
43776
  }
43744
43777
  });
43745
43778
 
43746
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/address-error.js
43747
- var require_address_error = __commonJS({
43748
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/address-error.js"(exports2) {
43749
- "use strict";
43750
- Object.defineProperty(exports2, "__esModule", { value: true });
43751
- exports2.AddressError = void 0;
43752
- var AddressError = class extends Error {
43753
- constructor(message, parseMessage) {
43754
- super(message);
43755
- this.name = "AddressError";
43756
- this.parseMessage = parseMessage;
43757
- }
43758
- };
43759
- exports2.AddressError = AddressError;
43760
- }
43761
- });
43762
-
43763
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ipv4.js
43779
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ipv4.js
43764
43780
  var require_ipv4 = __commonJS({
43765
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ipv4.js"(exports2) {
43781
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ipv4.js"(exports2) {
43766
43782
  "use strict";
43767
43783
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
43768
43784
  if (k2 === void 0) k2 = k;
@@ -43796,6 +43812,7 @@ var require_ipv4 = __commonJS({
43796
43812
  var common = __importStar3(require_common3());
43797
43813
  var constants = __importStar3(require_constants5());
43798
43814
  var address_error_1 = require_address_error();
43815
+ var isCorrect4 = common.isCorrect(constants.BITS);
43799
43816
  var Address4 = class _Address4 {
43800
43817
  constructor(address) {
43801
43818
  this.groups = constants.GROUPS;
@@ -43804,7 +43821,7 @@ var require_ipv4 = __commonJS({
43804
43821
  this.subnet = "/32";
43805
43822
  this.subnetMask = 32;
43806
43823
  this.v4 = true;
43807
- this.isCorrect = common.isCorrect(constants.BITS);
43824
+ this.isCorrect = isCorrect4;
43808
43825
  this.isInSubnet = common.isInSubnet;
43809
43826
  this.address = address;
43810
43827
  const subnet = constants.RE_SUBNET_STRING.exec(address);
@@ -43820,6 +43837,13 @@ var require_ipv4 = __commonJS({
43820
43837
  this.addressMinusSuffix = address;
43821
43838
  this.parsedAddress = this.parse(address);
43822
43839
  }
43840
+ /**
43841
+ * Returns true if the given string is a valid IPv4 address (with optional
43842
+ * CIDR subnet), false otherwise. Host bits in the subnet portion are
43843
+ * allowed (e.g. `192.168.1.5/24` is valid); for strict network-address
43844
+ * validation compare `correctForm()` to `startAddress().correctForm()`,
43845
+ * or use `networkForm()`.
43846
+ */
43823
43847
  static isValid(address) {
43824
43848
  try {
43825
43849
  new _Address4(address);
@@ -43828,8 +43852,11 @@ var require_ipv4 = __commonJS({
43828
43852
  return false;
43829
43853
  }
43830
43854
  }
43831
- /*
43832
- * Parses a v4 address
43855
+ /**
43856
+ * Parses an IPv4 address string into its four octet groups and stores the
43857
+ * result on `this.parsedAddress`. Called automatically by the constructor;
43858
+ * you typically don't need to call it directly. Throws `AddressError` if
43859
+ * the input is not a valid IPv4 address.
43833
43860
  */
43834
43861
  parse(address) {
43835
43862
  const groups = address.split(".");
@@ -43839,45 +43866,108 @@ var require_ipv4 = __commonJS({
43839
43866
  return groups;
43840
43867
  }
43841
43868
  /**
43842
- * Returns the correct form of an address
43843
- * @memberof Address4
43844
- * @instance
43845
- * @returns {String}
43869
+ * Returns the address in correct form: octets joined with `.` and any
43870
+ * leading zeros stripped (e.g. `192.168.1.1`). For IPv4 this matches the
43871
+ * canonical dotted-decimal representation.
43846
43872
  */
43847
43873
  correctForm() {
43848
43874
  return this.parsedAddress.map((part) => parseInt(part, 10)).join(".");
43849
43875
  }
43850
43876
  /**
43851
- * Converts a hex string to an IPv4 address object
43852
- * @memberof Address4
43853
- * @static
43877
+ * Construct an `Address4` from an address and a dotted-decimal subnet
43878
+ * mask given as separate strings (e.g. as returned by Node's
43879
+ * `os.networkInterfaces()`). Throws `AddressError` if the mask is
43880
+ * non-contiguous (e.g. `255.0.255.0`).
43881
+ * @example
43882
+ * var address = Address4.fromAddressAndMask('192.168.1.1', '255.255.255.0');
43883
+ * address.subnetMask; // 24
43884
+ */
43885
+ static fromAddressAndMask(address, mask) {
43886
+ const bits = common.prefixLengthFromMask(new _Address4(mask).bigInt(), constants.BITS);
43887
+ return new _Address4(`${address}/${bits}`);
43888
+ }
43889
+ /**
43890
+ * Construct an `Address4` from an address and a Cisco-style wildcard mask
43891
+ * given as separate strings (e.g. `0.0.0.255` for a `/24`). The wildcard
43892
+ * mask is the bitwise inverse of the subnet mask. Throws `AddressError`
43893
+ * if the mask is non-contiguous (e.g. `0.255.0.255`).
43894
+ * @example
43895
+ * var address = Address4.fromAddressAndWildcardMask('10.0.0.1', '0.0.0.255');
43896
+ * address.subnetMask; // 24
43897
+ */
43898
+ static fromAddressAndWildcardMask(address, wildcardMask) {
43899
+ const wildcard = new _Address4(wildcardMask).bigInt();
43900
+ const allOnes = (BigInt(1) << BigInt(constants.BITS)) - BigInt(1);
43901
+ const mask = wildcard ^ allOnes;
43902
+ const bits = common.prefixLengthFromMask(mask, constants.BITS);
43903
+ return new _Address4(`${address}/${bits}`);
43904
+ }
43905
+ /**
43906
+ * Construct an `Address4` from a wildcard pattern with trailing `*`
43907
+ * octets. The number of trailing wildcards determines the prefix
43908
+ * length: each `*` represents 8 bits.
43909
+ *
43910
+ * Only trailing whole-octet wildcards are supported. Partial-octet
43911
+ * wildcards (e.g. `192.168.0.1*`) and interior wildcards (e.g.
43912
+ * `192.*.0.1`) throw `AddressError`.
43913
+ * @example
43914
+ * Address4.fromWildcard('192.168.0.*').subnet; // '/24'
43915
+ * Address4.fromWildcard('192.168.*.*').subnet; // '/16'
43916
+ * Address4.fromWildcard('*.*.*.*').subnet; // '/0'
43917
+ */
43918
+ static fromWildcard(input) {
43919
+ const groups = input.split(".");
43920
+ if (groups.length !== constants.GROUPS) {
43921
+ throw new address_error_1.AddressError("Wildcard pattern must have 4 octets");
43922
+ }
43923
+ let firstWildcard = -1;
43924
+ for (let i = 0; i < groups.length; i++) {
43925
+ if (groups[i] === "*") {
43926
+ if (firstWildcard === -1) {
43927
+ firstWildcard = i;
43928
+ }
43929
+ } else if (firstWildcard !== -1) {
43930
+ throw new address_error_1.AddressError("Wildcard `*` must only appear in trailing octets (e.g. `192.168.0.*`)");
43931
+ }
43932
+ }
43933
+ const trailing = firstWildcard === -1 ? 0 : groups.length - firstWildcard;
43934
+ const replaced = groups.map((g) => g === "*" ? "0" : g);
43935
+ const subnetBits = constants.BITS - trailing * 8;
43936
+ return new _Address4(`${replaced.join(".")}/${subnetBits}`);
43937
+ }
43938
+ /**
43939
+ * Converts a hex string to an IPv4 address object. Accepts 8 hex digits
43940
+ * with optional `:` separators (e.g. `'7f000001'` or `'7f:00:00:01'`).
43941
+ * Throws `AddressError` for any other length or for non-hex characters.
43854
43942
  * @param {string} hex - a hex string to convert
43855
43943
  * @returns {Address4}
43856
43944
  */
43857
43945
  static fromHex(hex) {
43858
- const padded = hex.replace(/:/g, "").padStart(8, "0");
43946
+ const stripped = hex.replace(/:/g, "");
43947
+ if (!/^[0-9a-fA-F]{8}$/.test(stripped)) {
43948
+ throw new address_error_1.AddressError("IPv4 hex must be exactly 8 hex digits");
43949
+ }
43859
43950
  const groups = [];
43860
- let i;
43861
- for (i = 0; i < 8; i += 2) {
43862
- const h = padded.slice(i, i + 2);
43863
- groups.push(parseInt(h, 16));
43951
+ for (let i = 0; i < 8; i += 2) {
43952
+ groups.push(parseInt(stripped.slice(i, i + 2), 16));
43864
43953
  }
43865
43954
  return new _Address4(groups.join("."));
43866
43955
  }
43867
43956
  /**
43868
- * Converts an integer into a IPv4 address object
43869
- * @memberof Address4
43870
- * @static
43957
+ * Converts an integer into a IPv4 address object. The integer must be a
43958
+ * non-negative safe integer in the range `[0, 2**32 - 1]`; otherwise
43959
+ * `AddressError` is thrown.
43871
43960
  * @param {integer} integer - a number to convert
43872
43961
  * @returns {Address4}
43873
43962
  */
43874
43963
  static fromInteger(integer) {
43875
- return _Address4.fromHex(integer.toString(16));
43964
+ if (!Number.isInteger(integer) || integer < 0 || integer > 4294967295) {
43965
+ throw new address_error_1.AddressError("IPv4 integer must be in the range 0 to 2**32 - 1");
43966
+ }
43967
+ return _Address4.fromHex(integer.toString(16).padStart(8, "0"));
43876
43968
  }
43877
43969
  /**
43878
43970
  * Return an address from in-addr.arpa form
43879
- * @memberof Address4
43880
- * @static
43881
43971
  * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address
43882
43972
  * @returns {Adress4}
43883
43973
  * @example
@@ -43891,17 +43981,15 @@ var require_ipv4 = __commonJS({
43891
43981
  }
43892
43982
  /**
43893
43983
  * Converts an IPv4 address object to a hex string
43894
- * @memberof Address4
43895
- * @instance
43896
43984
  * @returns {String}
43897
43985
  */
43898
43986
  toHex() {
43899
43987
  return this.parsedAddress.map((part) => common.stringToPaddedHex(part)).join(":");
43900
43988
  }
43901
43989
  /**
43902
- * Converts an IPv4 address object to an array of bytes
43903
- * @memberof Address4
43904
- * @instance
43990
+ * Converts an IPv4 address object to an array of bytes.
43991
+ *
43992
+ * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toArray())`.
43905
43993
  * @returns {Array}
43906
43994
  */
43907
43995
  toArray() {
@@ -43909,8 +43997,6 @@ var require_ipv4 = __commonJS({
43909
43997
  }
43910
43998
  /**
43911
43999
  * Converts an IPv4 address object to an IPv6 address group
43912
- * @memberof Address4
43913
- * @instance
43914
44000
  * @returns {String}
43915
44001
  */
43916
44002
  toGroup6() {
@@ -43923,8 +44009,6 @@ var require_ipv4 = __commonJS({
43923
44009
  }
43924
44010
  /**
43925
44011
  * Returns the address as a `bigint`
43926
- * @memberof Address4
43927
- * @instance
43928
44012
  * @returns {bigint}
43929
44013
  */
43930
44014
  bigInt() {
@@ -43932,8 +44016,6 @@ var require_ipv4 = __commonJS({
43932
44016
  }
43933
44017
  /**
43934
44018
  * Helper function getting start address.
43935
- * @memberof Address4
43936
- * @instance
43937
44019
  * @returns {bigint}
43938
44020
  */
43939
44021
  _startAddress() {
@@ -43942,8 +44024,6 @@ var require_ipv4 = __commonJS({
43942
44024
  /**
43943
44025
  * The first address in the range given by this address' subnet.
43944
44026
  * Often referred to as the Network Address.
43945
- * @memberof Address4
43946
- * @instance
43947
44027
  * @returns {Address4}
43948
44028
  */
43949
44029
  startAddress() {
@@ -43952,8 +44032,6 @@ var require_ipv4 = __commonJS({
43952
44032
  /**
43953
44033
  * The first host address in the range given by this address's subnet ie
43954
44034
  * the first address after the Network Address
43955
- * @memberof Address4
43956
- * @instance
43957
44035
  * @returns {Address4}
43958
44036
  */
43959
44037
  startAddressExclusive() {
@@ -43962,8 +44040,6 @@ var require_ipv4 = __commonJS({
43962
44040
  }
43963
44041
  /**
43964
44042
  * Helper function getting end address.
43965
- * @memberof Address4
43966
- * @instance
43967
44043
  * @returns {bigint}
43968
44044
  */
43969
44045
  _endAddress() {
@@ -43972,8 +44048,6 @@ var require_ipv4 = __commonJS({
43972
44048
  /**
43973
44049
  * The last address in the range given by this address' subnet
43974
44050
  * Often referred to as the Broadcast
43975
- * @memberof Address4
43976
- * @instance
43977
44051
  * @returns {Address4}
43978
44052
  */
43979
44053
  endAddress() {
@@ -43982,8 +44056,6 @@ var require_ipv4 = __commonJS({
43982
44056
  /**
43983
44057
  * The last host address in the range given by this address's subnet ie
43984
44058
  * the last address prior to the Broadcast Address
43985
- * @memberof Address4
43986
- * @instance
43987
44059
  * @returns {Address4}
43988
44060
  */
43989
44061
  endAddressExclusive() {
@@ -43991,19 +44063,47 @@ var require_ipv4 = __commonJS({
43991
44063
  return _Address4.fromBigInt(this._endAddress() - adjust);
43992
44064
  }
43993
44065
  /**
43994
- * Converts a BigInt to a v4 address object
43995
- * @memberof Address4
43996
- * @static
44066
+ * The dotted-decimal form of the subnet mask, e.g. `255.255.240.0` for
44067
+ * a `/20`. Returns an `Address4`; call `.correctForm()` for the string.
44068
+ * @returns {Address4}
44069
+ */
44070
+ subnetMaskAddress() {
44071
+ return _Address4.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(constants.BITS - this.subnetMask)}`));
44072
+ }
44073
+ /**
44074
+ * The Cisco-style wildcard mask, e.g. `0.0.0.255` for a `/24`. This is
44075
+ * the bitwise inverse of `subnetMaskAddress()`. Returns an `Address4`;
44076
+ * call `.correctForm()` for the string.
44077
+ * @returns {Address4}
44078
+ */
44079
+ wildcardMask() {
44080
+ return _Address4.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(constants.BITS - this.subnetMask)}`));
44081
+ }
44082
+ /**
44083
+ * The network address in CIDR string form, e.g. `192.168.1.0/24` for
44084
+ * `192.168.1.5/24`. For an address with no explicit subnet the prefix is
44085
+ * `/32`, e.g. `networkForm()` on `192.168.1.5` returns `192.168.1.5/32`.
44086
+ * @returns {string}
44087
+ */
44088
+ networkForm() {
44089
+ return `${this.startAddress().correctForm()}/${this.subnetMask}`;
44090
+ }
44091
+ /**
44092
+ * Converts a BigInt to a v4 address object. The value must be in the
44093
+ * range `[0, 2**32 - 1]`; otherwise `AddressError` is thrown.
43997
44094
  * @param {bigint} bigInt - a BigInt to convert
43998
44095
  * @returns {Address4}
43999
44096
  */
44000
44097
  static fromBigInt(bigInt) {
44001
- return _Address4.fromHex(bigInt.toString(16));
44098
+ if (bigInt < 0n || bigInt > 0xffffffffn) {
44099
+ throw new address_error_1.AddressError("IPv4 BigInt must be in the range 0 to 2**32 - 1");
44100
+ }
44101
+ return _Address4.fromHex(bigInt.toString(16).padStart(8, "0"));
44002
44102
  }
44003
44103
  /**
44004
- * Convert a byte array to an Address4 object
44005
- * @memberof Address4
44006
- * @static
44104
+ * Convert a byte array to an Address4 object.
44105
+ *
44106
+ * To convert from a Node.js `Buffer`, spread it: `Address4.fromByteArray([...buf])`.
44007
44107
  * @param {Array<number>} bytes - an array of 4 bytes (0-255)
44008
44108
  * @returns {Address4}
44009
44109
  */
@@ -44020,8 +44120,6 @@ var require_ipv4 = __commonJS({
44020
44120
  }
44021
44121
  /**
44022
44122
  * Convert an unsigned byte array to an Address4 object
44023
- * @memberof Address4
44024
- * @static
44025
44123
  * @param {Array<number>} bytes - an array of 4 unsigned bytes (0-255)
44026
44124
  * @returns {Address4}
44027
44125
  */
@@ -44035,8 +44133,6 @@ var require_ipv4 = __commonJS({
44035
44133
  /**
44036
44134
  * Returns the first n bits of the address, defaulting to the
44037
44135
  * subnet mask
44038
- * @memberof Address4
44039
- * @instance
44040
44136
  * @returns {String}
44041
44137
  */
44042
44138
  mask(mask) {
@@ -44047,8 +44143,6 @@ var require_ipv4 = __commonJS({
44047
44143
  }
44048
44144
  /**
44049
44145
  * Returns the bits in the given range as a base-2 string
44050
- * @memberof Address4
44051
- * @instance
44052
44146
  * @returns {string}
44053
44147
  */
44054
44148
  getBitsBase2(start, end) {
@@ -44056,10 +44150,8 @@ var require_ipv4 = __commonJS({
44056
44150
  }
44057
44151
  /**
44058
44152
  * Return the reversed ip6.arpa form of the address
44059
- * @memberof Address4
44060
44153
  * @param {Object} options
44061
44154
  * @param {boolean} options.omitSuffix - omit the "in-addr.arpa" suffix
44062
- * @instance
44063
44155
  * @returns {String}
44064
44156
  */
44065
44157
  reverseForm(options) {
@@ -44074,21 +44166,62 @@ var require_ipv4 = __commonJS({
44074
44166
  }
44075
44167
  /**
44076
44168
  * Returns true if the given address is a multicast address
44077
- * @memberof Address4
44078
- * @instance
44079
44169
  * @returns {boolean}
44080
44170
  */
44081
44171
  isMulticast() {
44082
- return this.isInSubnet(new _Address4("224.0.0.0/4"));
44172
+ return this.isInSubnet(MULTICAST_V4);
44173
+ }
44174
+ /**
44175
+ * Returns true if the address is in one of the [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private address ranges (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`).
44176
+ * @returns {boolean}
44177
+ */
44178
+ isPrivate() {
44179
+ return PRIVATE_V4.some((subnet) => this.isInSubnet(subnet));
44180
+ }
44181
+ /**
44182
+ * Returns true if the address is in the loopback range `127.0.0.0/8` ([RFC 1122](https://datatracker.ietf.org/doc/html/rfc1122)).
44183
+ * @returns {boolean}
44184
+ */
44185
+ isLoopback() {
44186
+ return this.isInSubnet(LOOPBACK_V4);
44187
+ }
44188
+ /**
44189
+ * Returns true if the address is in the link-local range `169.254.0.0/16` ([RFC 3927](https://datatracker.ietf.org/doc/html/rfc3927)).
44190
+ * @returns {boolean}
44191
+ */
44192
+ isLinkLocal() {
44193
+ return this.isInSubnet(LINK_LOCAL_V4);
44194
+ }
44195
+ /**
44196
+ * Returns true if the address is the unspecified address `0.0.0.0`.
44197
+ * @returns {boolean}
44198
+ */
44199
+ isUnspecified() {
44200
+ return this.isInSubnet(UNSPECIFIED_V4);
44201
+ }
44202
+ /**
44203
+ * Returns true if the address is the limited broadcast address `255.255.255.255` ([RFC 919](https://datatracker.ietf.org/doc/html/rfc919)).
44204
+ * @returns {boolean}
44205
+ */
44206
+ isBroadcast() {
44207
+ return this.isInSubnet(BROADCAST_V4);
44208
+ }
44209
+ /**
44210
+ * Returns true if the address is in the carrier-grade NAT range `100.64.0.0/10` ([RFC 6598](https://datatracker.ietf.org/doc/html/rfc6598)).
44211
+ * @returns {boolean}
44212
+ */
44213
+ isCGNAT() {
44214
+ return this.isInSubnet(CGNAT_V4);
44083
44215
  }
44084
44216
  /**
44085
44217
  * Returns a zero-padded base-2 string representation of the address
44086
- * @memberof Address4
44087
- * @instance
44088
44218
  * @returns {string}
44089
44219
  */
44090
44220
  binaryZeroPad() {
44091
- return this.bigInt().toString(2).padStart(constants.BITS, "0");
44221
+ if (this._binaryZeroPad === void 0) {
44222
+ this._binaryZeroPad = this.bigInt().toString(2).padStart(constants.BITS, "0");
44223
+ }
44224
+ return this._binaryZeroPad;
44092
44225
  }
44093
44226
  /**
44094
44227
  * Groups an IPv4 address for inclusion at the end of an IPv6 address
@@ -44100,12 +44233,23 @@ var require_ipv4 = __commonJS({
44100
44233
  }
44101
44234
  };
44102
44235
  exports2.Address4 = Address4;
44236
+ var MULTICAST_V4 = new Address4("224.0.0.0/4");
44237
+ var PRIVATE_V4 = [
44238
+ new Address4("10.0.0.0/8"),
44239
+ new Address4("172.16.0.0/12"),
44240
+ new Address4("192.168.0.0/16")
44241
+ ];
44242
+ var LOOPBACK_V4 = new Address4("127.0.0.0/8");
44243
+ var LINK_LOCAL_V4 = new Address4("169.254.0.0/16");
44244
+ var UNSPECIFIED_V4 = new Address4("0.0.0.0/32");
44245
+ var BROADCAST_V4 = new Address4("255.255.255.255/32");
44246
+ var CGNAT_V4 = new Address4("100.64.0.0/10");
44103
44247
  }
44104
44248
  });
44105
44249
 
44106
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/constants.js
44250
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/constants.js
44107
44251
  var require_constants6 = __commonJS({
44108
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/constants.js"(exports2) {
44252
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/constants.js"(exports2) {
44109
44253
  "use strict";
44110
44254
  Object.defineProperty(exports2, "__esModule", { value: true });
44111
44255
  exports2.RE_URL_WITH_PORT = exports2.RE_URL = exports2.RE_ZONE_STRING = exports2.RE_SUBNET_STRING = exports2.RE_BAD_ADDRESS = exports2.RE_BAD_CHARACTERS = exports2.TYPES = exports2.SCOPES = exports2.GROUPS = exports2.BITS = void 0;
@@ -44143,7 +44287,12 @@ var require_constants6 = __commonJS({
44143
44287
  "::/128": "Unspecified",
44144
44288
  "::1/128": "Loopback",
44145
44289
  "ff00::/8": "Multicast",
44146
- "fe80::/10": "Link-local unicast"
44290
+ "fe80::/10": "Link-local unicast",
44291
+ "fc00::/7": "Unique local",
44292
+ "2002::/16": "6to4",
44293
+ "2001:db8::/32": "Documentation",
44294
+ "64:ff9b::/96": "NAT64 (well-known)",
44295
+ "64:ff9b:1::/48": "NAT64 (local-use)"
44147
44296
  };
44148
44297
  exports2.RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi;
44149
44298
  exports2.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;
@@ -44154,24 +44303,28 @@ var require_constants6 = __commonJS({
44154
44303
  }
44155
44304
  });
44156
44305
 
44157
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/helpers.js
44306
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/helpers.js
44158
44307
  var require_helpers2 = __commonJS({
44159
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/helpers.js"(exports2) {
44308
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/helpers.js"(exports2) {
44160
44309
  "use strict";
44161
44310
  Object.defineProperty(exports2, "__esModule", { value: true });
44311
+ exports2.escapeHtml = escapeHtml;
44162
44312
  exports2.spanAllZeroes = spanAllZeroes;
44163
44313
  exports2.spanAll = spanAll;
44164
44314
  exports2.spanLeadingZeroes = spanLeadingZeroes;
44165
44315
  exports2.simpleGroup = simpleGroup;
44316
+ function escapeHtml(s) {
44317
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
44318
+ }
44166
44319
  function spanAllZeroes(s) {
44167
- return s.replace(/(0+)/g, '<span class="zero">$1</span>');
44320
+ return escapeHtml(s).replace(/(0+)/g, '<span class="zero">$1</span>');
44168
44321
  }
44169
44322
  function spanAll(s, offset = 0) {
44170
44323
  const letters = s.split("");
44171
- return letters.map((n, i) => `<span class="digit value-${n} position-${i + offset}">${spanAllZeroes(n)}</span>`).join("");
44324
+ return letters.map((n, i) => `<span class="digit value-${escapeHtml(n)} position-${i + offset}">${spanAllZeroes(n)}</span>`).join("");
44172
44325
  }
44173
44326
  function spanLeadingZeroesSimple(group) {
44174
- return group.replace(/^(0+)/, '<span class="zero">$1</span>');
44327
+ return escapeHtml(group).replace(/^(0+)/, '<span class="zero">$1</span>');
44175
44328
  }
44176
44329
  function spanLeadingZeroes(address) {
44177
44330
  const groups = address.split(":");
@@ -44189,9 +44342,9 @@ var require_helpers2 = __commonJS({
44189
44342
  }
44190
44343
  });
44191
44344
 
44192
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/regular-expressions.js
44345
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/regular-expressions.js
44193
44346
  var require_regular_expressions = __commonJS({
44194
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/v6/regular-expressions.js"(exports2) {
44347
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/v6/regular-expressions.js"(exports2) {
44195
44348
  "use strict";
44196
44349
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
44197
44350
  if (k2 === void 0) k2 = k;
@@ -44281,9 +44434,9 @@ var require_regular_expressions = __commonJS({
44281
44434
  }
44282
44435
  });
44283
44436
 
44284
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ipv6.js
44437
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ipv6.js
44285
44438
  var require_ipv6 = __commonJS({
44286
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ipv6.js"(exports2) {
44439
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ipv6.js"(exports2) {
44287
44440
  "use strict";
44288
44441
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
44289
44442
  if (k2 === void 0) k2 = k;
@@ -44322,6 +44475,7 @@ var require_ipv6 = __commonJS({
44322
44475
  var regular_expressions_1 = require_regular_expressions();
44323
44476
  var address_error_1 = require_address_error();
44324
44477
  var common_1 = require_common3();
44478
+ var isCorrect6 = common.isCorrect(constants6.BITS);
44325
44479
  function assert(condition) {
44326
44480
  if (!condition) {
44327
44481
  throw new Error("Assertion failed.");
@@ -44367,7 +44521,7 @@ var require_ipv6 = __commonJS({
44367
44521
  this.v4 = false;
44368
44522
  this.zone = "";
44369
44523
  this.isInSubnet = common.isInSubnet;
44370
- this.isCorrect = common.isCorrect(constants6.BITS);
44524
+ this.isCorrect = isCorrect6;
44371
44525
  if (optionalGroups === void 0) {
44372
44526
  this.groups = constants6.GROUPS;
44373
44527
  } else {
@@ -44394,6 +44548,13 @@ var require_ipv6 = __commonJS({
44394
44548
  this.addressMinusSuffix = address;
44395
44549
  this.parsedAddress = this.parse(this.addressMinusSuffix);
44396
44550
  }
44551
+ /**
44552
+ * Returns true if the given string is a valid IPv6 address (with optional
44553
+ * CIDR subnet and zone identifier), false otherwise. Host bits in the
44554
+ * subnet portion are allowed (e.g. `2001:db8::1/32` is valid); for strict
44555
+ * network-address validation compare `correctForm()` to
44556
+ * `startAddress().correctForm()`, or use `networkForm()`.
44557
+ */
44397
44558
  static isValid(address) {
44398
44559
  try {
44399
44560
  new _Address6(address);
@@ -44403,9 +44564,8 @@ var require_ipv6 = __commonJS({
44403
44564
  }
44404
44565
  }
44405
44566
  /**
44406
- * Convert a BigInt to a v6 address object
44407
- * @memberof Address6
44408
- * @static
44567
+ * Convert a BigInt to a v6 address object. The value must be in the
44568
+ * range `[0, 2**128 - 1]`; otherwise `AddressError` is thrown.
44409
44569
  * @param {bigint} bigInt - a BigInt to convert
44410
44570
  * @returns {Address6}
44411
44571
  * @example
@@ -44414,19 +44574,21 @@ var require_ipv6 = __commonJS({
44414
44574
  * address.correctForm(); // '::e8:d4a5:1000'
44415
44575
  */
44416
44576
  static fromBigInt(bigInt) {
44577
+ if (bigInt < 0n || bigInt > (1n << BigInt(constants6.BITS)) - 1n) {
44578
+ throw new address_error_1.AddressError("IPv6 BigInt must be in the range 0 to 2**128 - 1");
44579
+ }
44417
44580
  const hex = bigInt.toString(16).padStart(32, "0");
44418
44581
  const groups = [];
44419
- let i;
44420
- for (i = 0; i < constants6.GROUPS; i++) {
44582
+ for (let i = 0; i < constants6.GROUPS; i++) {
44421
44583
  groups.push(hex.slice(i * 4, (i + 1) * 4));
44422
44584
  }
44423
44585
  return new _Address6(groups.join(":"));
44424
44586
  }
44425
44587
  /**
44426
- * Convert a URL (with optional port number) to an address object
44427
- * @memberof Address6
44428
- * @static
44429
- * @param {string} url - a URL with optional port number
44588
+ * Parse a URL (with optional bracketed host and port) into an address and
44589
+ * port. Returns either `{ address, port }` on success or
44590
+ * `{ error, address: null, port: null }` if the URL could not be parsed.
44591
+ * Ports are returned as numbers (or `null` if absent or out of range).
44430
44592
  * @example
44431
44593
  * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/');
44432
44594
  * addressAndPort.address.correctForm(); // 'ffff::'
@@ -44474,10 +44636,89 @@ var require_ipv6 = __commonJS({
44474
44636
  port
44475
44637
  };
44476
44638
  }
44639
+ /**
44640
+ * Construct an `Address6` from an address and a hex subnet mask given as
44641
+ * separate strings (e.g. as returned by Node's `os.networkInterfaces()`).
44642
+ * Throws `AddressError` if the mask is non-contiguous (e.g.
44643
+ * `ffff::ffff`).
44644
+ * @example
44645
+ * var address = Address6.fromAddressAndMask('fe80::1', 'ffff:ffff:ffff:ffff::');
44646
+ * address.subnetMask; // 64
44647
+ */
44648
+ static fromAddressAndMask(address, mask) {
44649
+ const bits = common.prefixLengthFromMask(new _Address6(mask).bigInt(), constants6.BITS);
44650
+ return new _Address6(`${address}/${bits}`);
44651
+ }
44652
+ /**
44653
+ * Construct an `Address6` from an address and a Cisco-style wildcard mask
44654
+ * given as separate strings (e.g. `::ffff:ffff:ffff:ffff` for a `/64`).
44655
+ * The wildcard mask is the bitwise inverse of the subnet mask. Throws
44656
+ * `AddressError` if the mask is non-contiguous.
44657
+ * @example
44658
+ * var address = Address6.fromAddressAndWildcardMask('fe80::1', '::ffff:ffff:ffff:ffff');
44659
+ * address.subnetMask; // 64
44660
+ */
44661
+ static fromAddressAndWildcardMask(address, wildcardMask) {
44662
+ const wildcard = new _Address6(wildcardMask).bigInt();
44663
+ const allOnes = (BigInt(1) << BigInt(constants6.BITS)) - BigInt(1);
44664
+ const mask = wildcard ^ allOnes;
44665
+ const bits = common.prefixLengthFromMask(mask, constants6.BITS);
44666
+ return new _Address6(`${address}/${bits}`);
44667
+ }
44668
+ /**
44669
+ * Construct an `Address6` from a wildcard pattern with trailing `*`
44670
+ * groups. The number of trailing wildcards determines the prefix
44671
+ * length: each `*` represents 16 bits. `::` is expanded to zero groups
44672
+ * (not wildcards) before evaluating trailing wildcards.
44673
+ *
44674
+ * Only trailing whole-group wildcards are supported. Partial-group
44675
+ * wildcards (e.g. `2001:db8::0*`) and interior wildcards (e.g.
44676
+ * `*::1`) throw `AddressError`.
44677
+ * @example
44678
+ * Address6.fromWildcard('2001:db8:*:*:*:*:*:*').subnet; // '/32'
44679
+ * Address6.fromWildcard('2001:db8::*').subnet; // '/112'
44680
+ * Address6.fromWildcard('*:*:*:*:*:*:*:*').subnet; // '/0'
44681
+ */
44682
+ static fromWildcard(input) {
44683
+ if (input.includes("%") || input.includes("/")) {
44684
+ throw new address_error_1.AddressError("Wildcard pattern must not include a zone or CIDR suffix");
44685
+ }
44686
+ const halves = input.split("::");
44687
+ if (halves.length > 2) {
44688
+ throw new address_error_1.AddressError("Wildcard pattern cannot contain more than one '::'");
44689
+ }
44690
+ let groups;
44691
+ if (halves.length === 2) {
44692
+ const left = halves[0] === "" ? [] : halves[0].split(":");
44693
+ const right = halves[1] === "" ? [] : halves[1].split(":");
44694
+ const remaining = constants6.GROUPS - left.length - right.length;
44695
+ if (remaining < 1) {
44696
+ throw new address_error_1.AddressError("Wildcard pattern with '::' has too many groups");
44697
+ }
44698
+ groups = [...left, ...new Array(remaining).fill("0"), ...right];
44699
+ } else {
44700
+ groups = input.split(":");
44701
+ }
44702
+ if (groups.length !== constants6.GROUPS) {
44703
+ throw new address_error_1.AddressError("Wildcard pattern must have 8 groups");
44704
+ }
44705
+ let firstWildcard = -1;
44706
+ for (let i = 0; i < groups.length; i++) {
44707
+ if (groups[i] === "*") {
44708
+ if (firstWildcard === -1) {
44709
+ firstWildcard = i;
44710
+ }
44711
+ } else if (firstWildcard !== -1) {
44712
+ throw new address_error_1.AddressError("Wildcard `*` must only appear in trailing groups (e.g. `2001:db8:*:*:*:*:*:*`)");
44713
+ }
44714
+ }
44715
+ const trailing = firstWildcard === -1 ? 0 : groups.length - firstWildcard;
44716
+ const replaced = groups.map((g) => g === "*" ? "0" : g);
44717
+ const subnetBits = constants6.BITS - trailing * 16;
44718
+ return new _Address6(`${replaced.join(":")}/${subnetBits}`);
44719
+ }
44477
44720
  /**
44478
44721
  * Create an IPv6-mapped address given an IPv4 address
44479
- * @memberof Address6
44480
- * @static
44481
44722
  * @param {string} address - An IPv4 address string
44482
44723
  * @returns {Address6}
44483
44724
  * @example
@@ -44492,8 +44733,6 @@ var require_ipv6 = __commonJS({
44492
44733
  }
44493
44734
  /**
44494
44735
  * Return an address from ip6.arpa form
44495
- * @memberof Address6
44496
- * @static
44497
44736
  * @param {string} arpaFormAddress - an 'ip6.arpa' form address
44498
44737
  * @returns {Adress6}
44499
44738
  * @example
@@ -44516,8 +44755,6 @@ var require_ipv6 = __commonJS({
44516
44755
  }
44517
44756
  /**
44518
44757
  * Return the Microsoft UNC transcription of the address
44519
- * @memberof Address6
44520
- * @instance
44521
44758
  * @returns {String} the Microsoft UNC transcription of the address
44522
44759
  */
44523
44760
  microsoftTranscription() {
@@ -44525,8 +44762,6 @@ var require_ipv6 = __commonJS({
44525
44762
  }
44526
44763
  /**
44527
44764
  * Return the first n bits of the address, defaulting to the subnet mask
44528
- * @memberof Address6
44529
- * @instance
44530
44765
  * @param {number} [mask=subnet] - the number of bits to mask
44531
44766
  * @returns {String} the first n bits of the address as a string
44532
44767
  */
@@ -44535,8 +44770,6 @@ var require_ipv6 = __commonJS({
44535
44770
  }
44536
44771
  /**
44537
44772
  * Return the number of possible subnets of a given size in the address
44538
- * @memberof Address6
44539
- * @instance
44540
44773
  * @param {number} [subnetSize=128] - the subnet size
44541
44774
  * @returns {String}
44542
44775
  */
@@ -44552,8 +44785,6 @@ var require_ipv6 = __commonJS({
44552
44785
  }
44553
44786
  /**
44554
44787
  * Helper function getting start address.
44555
- * @memberof Address6
44556
- * @instance
44557
44788
  * @returns {bigint}
44558
44789
  */
44559
44790
  _startAddress() {
@@ -44562,8 +44793,6 @@ var require_ipv6 = __commonJS({
44562
44793
  /**
44563
44794
  * The first address in the range given by this address' subnet
44564
44795
  * Often referred to as the Network Address.
44565
- * @memberof Address6
44566
- * @instance
44567
44796
  * @returns {Address6}
44568
44797
  */
44569
44798
  startAddress() {
@@ -44572,8 +44801,6 @@ var require_ipv6 = __commonJS({
44572
44801
  /**
44573
44802
  * The first host address in the range given by this address's subnet ie
44574
44803
  * the first address after the Network Address
44575
- * @memberof Address6
44576
- * @instance
44577
44804
  * @returns {Address6}
44578
44805
  */
44579
44806
  startAddressExclusive() {
@@ -44582,8 +44809,6 @@ var require_ipv6 = __commonJS({
44582
44809
  }
44583
44810
  /**
44584
44811
  * Helper function getting end address.
44585
- * @memberof Address6
44586
- * @instance
44587
44812
  * @returns {bigint}
44588
44813
  */
44589
44814
  _endAddress() {
@@ -44592,8 +44817,6 @@ var require_ipv6 = __commonJS({
44592
44817
  /**
44593
44818
  * The last address in the range given by this address' subnet
44594
44819
  * Often referred to as the Broadcast
44595
- * @memberof Address6
44596
- * @instance
44597
44820
  * @returns {Address6}
44598
44821
  */
44599
44822
  endAddress() {
@@ -44602,8 +44825,6 @@ var require_ipv6 = __commonJS({
44602
44825
  /**
44603
44826
  * The last host address in the range given by this address's subnet ie
44604
44827
  * the last address prior to the Broadcast Address
44605
- * @memberof Address6
44606
- * @instance
44607
44828
  * @returns {Address6}
44608
44829
  */
44609
44830
  endAddressExclusive() {
@@ -44611,36 +44832,69 @@ var require_ipv6 = __commonJS({
44611
44832
  return _Address6.fromBigInt(this._endAddress() - adjust);
44612
44833
  }
44613
44834
  /**
44614
- * Return the scope of the address
44615
- * @memberof Address6
44616
- * @instance
44835
+ * The hex form of the subnet mask, e.g. `ffff:ffff:ffff:ffff::` for a
44836
+ * `/64`. Returns an `Address6`; call `.correctForm()` for the string.
44837
+ * @returns {Address6}
44838
+ */
44839
+ subnetMaskAddress() {
44840
+ return _Address6.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(constants6.BITS - this.subnetMask)}`));
44841
+ }
44842
+ /**
44843
+ * The Cisco-style wildcard mask, e.g. `::ffff:ffff:ffff:ffff` for a
44844
+ * `/64`. This is the bitwise inverse of `subnetMaskAddress()`. Returns
44845
+ * an `Address6`; call `.correctForm()` for the string.
44846
+ * @returns {Address6}
44847
+ */
44848
+ wildcardMask() {
44849
+ return _Address6.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(constants6.BITS - this.subnetMask)}`));
44850
+ }
44851
+ /**
44852
+ * The network address in CIDR string form, e.g. `2001:db8::/32` for
44853
+ * `2001:db8::1/32`. For an address with no explicit subnet the prefix
44854
+ * is `/128`, e.g. `networkForm()` on `2001:db8::1` returns
44855
+ * `2001:db8::1/128`.
44856
+ * @returns {string}
44857
+ */
44858
+ networkForm() {
44859
+ return `${this.startAddress().correctForm()}/${this.subnetMask}`;
44860
+ }
44861
+ /**
44862
+ * Return the scope of the address. The 4-bit scope field
44863
+ * ([RFC 4291 §2.7](https://datatracker.ietf.org/doc/html/rfc4291#section-2.7))
44864
+ * is only defined for multicast addresses; for unicast addresses the scope
44865
+ * is derived from the address type per
44866
+ * [RFC 4007 §6](https://datatracker.ietf.org/doc/html/rfc4007#section-6).
44617
44867
  * @returns {String}
44618
44868
  */
44619
44869
  getScope() {
44620
- let scope = constants6.SCOPES[parseInt(this.getBits(12, 16).toString(10), 10)];
44621
- if (this.getType() === "Global unicast" && scope !== "Link local") {
44622
- scope = "Global";
44870
+ const type = this.getType();
44871
+ if (type === "Multicast" || type.startsWith("Multicast ")) {
44872
+ const scope = constants6.SCOPES[parseInt(this.getBits(12, 16).toString(10), 10)];
44873
+ return scope || "Unknown";
44623
44874
  }
44624
- return scope || "Unknown";
44875
+ if (type === "Link-local unicast" || type === "Loopback") {
44876
+ return "Link local";
44877
+ }
44878
+ if (type === "Unspecified") {
44879
+ return "Unknown";
44880
+ }
44881
+ return "Global";
44625
44882
  }
44626
44883
  /**
44627
44884
  * Return the type of the address
44628
- * @memberof Address6
44629
- * @instance
44630
44885
  * @returns {String}
44631
44886
  */
44632
44887
  getType() {
44633
- for (const subnet of Object.keys(constants6.TYPES)) {
44634
- if (this.isInSubnet(new _Address6(subnet))) {
44635
- return constants6.TYPES[subnet];
44888
+ for (let i = 0; i < TYPE_SUBNETS.length; i++) {
44889
+ const entry = TYPE_SUBNETS[i];
44890
+ if (this.isInSubnet(entry[0])) {
44891
+ return entry[1];
44636
44892
  }
44637
44893
  }
44638
44894
  return "Global unicast";
44639
44895
  }
44640
44896
  /**
44641
44897
  * Return the bits in the given range as a BigInt
44642
- * @memberof Address6
44643
- * @instance
44644
44898
  * @returns {bigint}
44645
44899
  */
44646
44900
  getBits(start, end) {
@@ -44648,8 +44902,6 @@ var require_ipv6 = __commonJS({
44648
44902
  }
44649
44903
  /**
44650
44904
  * Return the bits in the given range as a base-2 string
44651
- * @memberof Address6
44652
- * @instance
44653
44905
  * @returns {String}
44654
44906
  */
44655
44907
  getBitsBase2(start, end) {
@@ -44657,8 +44909,6 @@ var require_ipv6 = __commonJS({
44657
44909
  }
44658
44910
  /**
44659
44911
  * Return the bits in the given range as a base-16 string
44660
- * @memberof Address6
44661
- * @instance
44662
44912
  * @returns {String}
44663
44913
  */
44664
44914
  getBitsBase16(start, end) {
@@ -44670,8 +44920,6 @@ var require_ipv6 = __commonJS({
44670
44920
  }
44671
44921
  /**
44672
44922
  * Return the bits that are set past the subnet mask length
44673
- * @memberof Address6
44674
- * @instance
44675
44923
  * @returns {String}
44676
44924
  */
44677
44925
  getBitsPastSubnet() {
@@ -44679,10 +44927,8 @@ var require_ipv6 = __commonJS({
44679
44927
  }
44680
44928
  /**
44681
44929
  * Return the reversed ip6.arpa form of the address
44682
- * @memberof Address6
44683
44930
  * @param {Object} options
44684
44931
  * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix
44685
- * @instance
44686
44932
  * @returns {String}
44687
44933
  */
44688
44934
  reverseForm(options) {
@@ -44703,10 +44949,10 @@ var require_ipv6 = __commonJS({
44703
44949
  return "ip6.arpa.";
44704
44950
  }
44705
44951
  /**
44706
- * Return the correct form of the address
44707
- * @memberof Address6
44708
- * @instance
44709
- * @returns {String}
44952
+ * Returns the address in correct form, per
44953
+ * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952): leading zeros
44954
+ * stripped, the longest run of zero groups collapsed to `::`, and hex digits
44955
+ * lowercased (e.g. `2001:db8::1`). This is the recommended form for display.
44710
44956
  */
44711
44957
  correctForm() {
44712
44958
  let i;
@@ -44748,8 +44994,6 @@ var require_ipv6 = __commonJS({
44748
44994
  }
44749
44995
  /**
44750
44996
  * Return a zero-padded base-2 string representation of the address
44751
- * @memberof Address6
44752
- * @instance
44753
44997
  * @returns {String}
44754
44998
  * @example
44755
44999
  * var address = new Address6('2001:4860:4001:803::1011');
@@ -44758,10 +45002,22 @@ var require_ipv6 = __commonJS({
44758
45002
  * // 0000000000000000000000000000000000000000000000000001000000010001'
44759
45003
  */
44760
45004
  binaryZeroPad() {
44761
- return this.bigInt().toString(2).padStart(constants6.BITS, "0");
45005
+ if (this._binaryZeroPad === void 0) {
45006
+ this._binaryZeroPad = this.bigInt().toString(2).padStart(constants6.BITS, "0");
45007
+ }
45008
+ return this._binaryZeroPad;
44762
45009
  }
45010
+ /**
45011
+ * Parses a v4-in-v6 string (e.g. `::ffff:192.168.0.1`) by extracting the
45012
+ * trailing IPv4 address into `this.address4` / `this.parsedAddress4` and
45013
+ * returning the address with the v4 portion converted to two v6 groups.
45014
+ * Used internally by `parse()`.
45015
+ */
44763
45016
  // TODO: Improve the semantics of this helper function
44764
45017
  parse4in6(address) {
45018
+ if (address.indexOf(".") === -1) {
45019
+ return address;
45020
+ }
44765
45021
  const groups = address.split(":");
44766
45022
  const lastGroup = groups.slice(-1)[0];
44767
45023
  const address4 = lastGroup.match(constants4.RE_ADDRESS);
@@ -44770,7 +45026,10 @@ var require_ipv6 = __commonJS({
44770
45026
  this.address4 = new ipv4_1.Address4(this.parsedAddress4);
44771
45027
  for (let i = 0; i < this.address4.groups; i++) {
44772
45028
  if (/^0[0-9]+/.test(this.address4.parsedAddress[i])) {
44773
- throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", address.replace(constants4.RE_ADDRESS, this.address4.parsedAddress.map(spanLeadingZeroes4).join(".")));
45029
+ const highlighted = this.address4.parsedAddress.map(spanLeadingZeroes4).join(".");
45030
+ const prefix = groups.slice(0, -1).map(helpers.escapeHtml).join(":");
45031
+ const separator = groups.length > 1 ? ":" : "";
45032
+ throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", `${prefix}${separator}${highlighted}`);
44774
45033
  }
44775
45034
  }
44776
45035
  this.v4 = true;
@@ -44779,6 +45038,13 @@ var require_ipv6 = __commonJS({
44779
45038
  }
44780
45039
  return address;
44781
45040
  }
45041
+ /**
45042
+ * Parses an IPv6 address string into its 8 hexadecimal groups (expanding
45043
+ * any `::` elision and any trailing v4-in-v6 portion) and stores the result
45044
+ * on `this.parsedAddress`. Called automatically by the constructor; you
45045
+ * typically don't need to call it directly. Throws `AddressError` if the
45046
+ * input is malformed.
45047
+ */
44782
45048
  // TODO: Make private?
44783
45049
  parse(address) {
44784
45050
  address = this.parse4in6(address);
@@ -44826,18 +45092,16 @@ var require_ipv6 = __commonJS({
44826
45092
  return groups;
44827
45093
  }
44828
45094
  /**
44829
- * Return the canonical form of the address
44830
- * @memberof Address6
44831
- * @instance
44832
- * @returns {String}
45095
+ * Returns the canonical (fully expanded) form of the address: all 8 groups,
45096
+ * each padded to 4 hex digits, with no `::` collapsing
45097
+ * (e.g. `2001:0db8:0000:0000:0000:0000:0000:0001`). Useful for sorting and
45098
+ * byte-exact comparison.
44833
45099
  */
44834
45100
  canonicalForm() {
44835
45101
  return this.parsedAddress.map(paddedHex).join(":");
44836
45102
  }
44837
45103
  /**
44838
45104
  * Return the decimal form of the address
44839
- * @memberof Address6
44840
- * @instance
44841
45105
  * @returns {String}
44842
45106
  */
44843
45107
  decimal() {
@@ -44845,8 +45109,6 @@ var require_ipv6 = __commonJS({
44845
45109
  }
44846
45110
  /**
44847
45111
  * Return the address as a BigInt
44848
- * @memberof Address6
44849
- * @instance
44850
45112
  * @returns {bigint}
44851
45113
  */
44852
45114
  bigInt() {
@@ -44854,8 +45116,6 @@ var require_ipv6 = __commonJS({
44854
45116
  }
44855
45117
  /**
44856
45118
  * Return the last two groups of this address as an IPv4 address string
44857
- * @memberof Address6
44858
- * @instance
44859
45119
  * @returns {Address4}
44860
45120
  * @example
44861
45121
  * var address = new Address6('2001:4860:4001::1825:bf11');
@@ -44863,12 +45123,10 @@ var require_ipv6 = __commonJS({
44863
45123
  */
44864
45124
  to4() {
44865
45125
  const binary = this.binaryZeroPad().split("");
44866
- return ipv4_1.Address4.fromHex(BigInt(`0b${binary.slice(96, 128).join("")}`).toString(16));
45126
+ return ipv4_1.Address4.fromHex(BigInt(`0b${binary.slice(96, 128).join("")}`).toString(16).padStart(8, "0"));
44867
45127
  }
44868
45128
  /**
44869
45129
  * Return the v4-in-v6 form of the address
44870
- * @memberof Address6
44871
- * @instance
44872
45130
  * @returns {String}
44873
45131
  */
44874
45132
  to4in6() {
@@ -44882,10 +45140,10 @@ var require_ipv6 = __commonJS({
44882
45140
  return correct + infix + address4.address;
44883
45141
  }
44884
45142
  /**
44885
- * Return an object containing the Teredo properties of the address
44886
- * @memberof Address6
44887
- * @instance
44888
- * @returns {Object}
45143
+ * Decodes the Teredo tunneling fields embedded in this address. Returns the
45144
+ * Teredo prefix, server IPv4, client IPv4, raw flag bits, cone-NAT flag,
45145
+ * UDP port, and Microsoft-format flag breakdown (reserved, universal/local,
45146
+ * group/individual, nonce). Only meaningful for addresses in `2001::/32`.
44889
45147
  */
44890
45148
  inspectTeredo() {
44891
45149
  const prefix = this.getBitsBase16(0, 32);
@@ -44893,7 +45151,7 @@ var require_ipv6 = __commonJS({
44893
45151
  const udpPort = (bitsForUdpPort ^ BigInt("0xffff")).toString();
44894
45152
  const server4 = ipv4_1.Address4.fromHex(this.getBitsBase16(32, 64));
44895
45153
  const bitsForClient4 = this.getBits(96, 128);
44896
- const client4 = ipv4_1.Address4.fromHex((bitsForClient4 ^ BigInt("0xffffffff")).toString(16));
45154
+ const client4 = ipv4_1.Address4.fromHex((bitsForClient4 ^ BigInt("0xffffffff")).toString(16).padStart(8, "0"));
44897
45155
  const flagsBase2 = this.getBitsBase2(64, 80);
44898
45156
  const coneNat = (0, common_1.testBit)(flagsBase2, 15);
44899
45157
  const reserved = (0, common_1.testBit)(flagsBase2, 14);
@@ -44916,10 +45174,9 @@ var require_ipv6 = __commonJS({
44916
45174
  };
44917
45175
  }
44918
45176
  /**
44919
- * Return an object containing the 6to4 properties of the address
44920
- * @memberof Address6
44921
- * @instance
44922
- * @returns {Object}
45177
+ * Decodes the 6to4 tunneling fields embedded in this address. Returns the
45178
+ * 6to4 prefix and the embedded IPv4 gateway address. Only meaningful for
45179
+ * addresses in `2002::/16`.
44923
45180
  */
44924
45181
  inspect6to4() {
44925
45182
  const prefix = this.getBitsBase16(0, 16);
@@ -44931,8 +45188,6 @@ var require_ipv6 = __commonJS({
44931
45188
  }
44932
45189
  /**
44933
45190
  * Return a v6 6to4 address from a v6 v4inv6 address
44934
- * @memberof Address6
44935
- * @instance
44936
45191
  * @returns {Address6}
44937
45192
  */
44938
45193
  to6to4() {
@@ -44949,9 +45204,73 @@ var require_ipv6 = __commonJS({
44949
45204
  return new _Address6(addr6to4);
44950
45205
  }
44951
45206
  /**
44952
- * Return a byte array
44953
- * @memberof Address6
44954
- * @instance
45207
+ * Embed an IPv4 address into a NAT64 IPv6 address using the encoding
45208
+ * defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052).
45209
+ * The default prefix is the well-known prefix `64:ff9b::/96`. The prefix
45210
+ * length must be one of 32, 40, 48, 56, 64, or 96; for prefixes shorter
45211
+ * than /64 the IPv4 octets are split around the reserved bits 64–71.
45212
+ * @example
45213
+ * Address6.fromAddress4Nat64('192.0.2.33').correctForm(); // '64:ff9b::c000:221'
45214
+ * Address6.fromAddress4Nat64('192.0.2.33', '2001:db8::/32').correctForm(); // '2001:db8:c000:221::'
45215
+ */
45216
+ static fromAddress4Nat64(address, prefix = "64:ff9b::/96") {
45217
+ const v42 = new ipv4_1.Address4(address);
45218
+ const prefix6 = new _Address6(prefix);
45219
+ const pl = prefix6.subnetMask;
45220
+ if (pl !== 32 && pl !== 40 && pl !== 48 && pl !== 56 && pl !== 64 && pl !== 96) {
45221
+ throw new address_error_1.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");
45222
+ }
45223
+ const prefixBits = prefix6.binaryZeroPad();
45224
+ const v4Bits = v42.binaryZeroPad();
45225
+ let bits;
45226
+ if (pl === 96) {
45227
+ bits = prefixBits.slice(0, 96) + v4Bits;
45228
+ } else {
45229
+ const beforeU = 64 - pl;
45230
+ bits = prefixBits.slice(0, pl) + v4Bits.slice(0, beforeU) + "00000000" + v4Bits.slice(beforeU) + "0".repeat(128 - 72 - (32 - beforeU));
45231
+ }
45232
+ const hex = BigInt(`0b${bits}`).toString(16).padStart(32, "0");
45233
+ const groups = [];
45234
+ for (let i = 0; i < 8; i++) {
45235
+ groups.push(hex.slice(i * 4, (i + 1) * 4));
45236
+ }
45237
+ return new _Address6(groups.join(":"));
45238
+ }
45239
+ /**
45240
+ * Extract the embedded IPv4 address from a NAT64 IPv6 address using the
45241
+ * encoding defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052).
45242
+ * The default prefix is the well-known prefix `64:ff9b::/96`. Returns
45243
+ * `null` if this address is not contained within the given prefix.
45244
+ * @example
45245
+ * new Address6('64:ff9b::c000:221').toAddress4Nat64()!.correctForm(); // '192.0.2.33'
45246
+ */
45247
+ toAddress4Nat64(prefix = "64:ff9b::/96") {
45248
+ const prefix6 = new _Address6(prefix);
45249
+ const pl = prefix6.subnetMask;
45250
+ if (pl !== 32 && pl !== 40 && pl !== 48 && pl !== 56 && pl !== 64 && pl !== 96) {
45251
+ throw new address_error_1.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");
45252
+ }
45253
+ if (!this.isInSubnet(prefix6)) {
45254
+ return null;
45255
+ }
45256
+ const bits = this.binaryZeroPad();
45257
+ let v4Bits;
45258
+ if (pl === 96) {
45259
+ v4Bits = bits.slice(96, 128);
45260
+ } else {
45261
+ const beforeU = 64 - pl;
45262
+ v4Bits = bits.slice(pl, pl + beforeU) + bits.slice(72, 72 + (32 - beforeU));
45263
+ }
45264
+ const octets = [];
45265
+ for (let i = 0; i < 4; i++) {
45266
+ octets.push(parseInt(v4Bits.slice(i * 8, (i + 1) * 8), 2).toString());
45267
+ }
45268
+ return new ipv4_1.Address4(octets.join("."));
45269
+ }
45270
+ /**
45271
+ * Return a byte array.
45272
+ *
45273
+ * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toByteArray())`.
44955
45274
  * @returns {Array}
44956
45275
  */
44957
45276
  toByteArray() {
@@ -44965,27 +45284,27 @@ var require_ipv6 = __commonJS({
44965
45284
  return bytes;
44966
45285
  }
44967
45286
  /**
44968
- * Return an unsigned byte array
44969
- * @memberof Address6
44970
- * @instance
45287
+ * Return an unsigned byte array.
45288
+ *
45289
+ * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toUnsignedByteArray())`.
44971
45290
  * @returns {Array}
44972
45291
  */
44973
45292
  toUnsignedByteArray() {
44974
45293
  return this.toByteArray().map(unsignByte);
44975
45294
  }
44976
45295
  /**
44977
- * Convert a byte array to an Address6 object
44978
- * @memberof Address6
44979
- * @static
45296
+ * Convert a byte array to an Address6 object.
45297
+ *
45298
+ * To convert from a Node.js `Buffer`, spread it: `Address6.fromByteArray([...buf])`.
44980
45299
  * @returns {Address6}
44981
45300
  */
44982
45301
  static fromByteArray(bytes) {
44983
45302
  return this.fromUnsignedByteArray(bytes.map(unsignByte));
44984
45303
  }
44985
45304
  /**
44986
- * Convert an unsigned byte array to an Address6 object
44987
- * @memberof Address6
44988
- * @static
45305
+ * Convert an unsigned byte array to an Address6 object.
45306
+ *
45307
+ * To convert from a Node.js `Buffer`, spread it: `Address6.fromUnsignedByteArray([...buf])`.
44989
45308
  * @returns {Address6}
44990
45309
  */
44991
45310
  static fromUnsignedByteArray(bytes) {
@@ -45000,8 +45319,6 @@ var require_ipv6 = __commonJS({
45000
45319
  }
45001
45320
  /**
45002
45321
  * Returns true if the address is in the canonical form, false otherwise
45003
- * @memberof Address6
45004
- * @instance
45005
45322
  * @returns {boolean}
45006
45323
  */
45007
45324
  isCanonical() {
@@ -45009,8 +45326,6 @@ var require_ipv6 = __commonJS({
45009
45326
  }
45010
45327
  /**
45011
45328
  * Returns true if the address is a link local address, false otherwise
45012
- * @memberof Address6
45013
- * @instance
45014
45329
  * @returns {boolean}
45015
45330
  */
45016
45331
  isLinkLocal() {
@@ -45021,53 +45336,81 @@ var require_ipv6 = __commonJS({
45021
45336
  }
45022
45337
  /**
45023
45338
  * Returns true if the address is a multicast address, false otherwise
45024
- * @memberof Address6
45025
- * @instance
45026
45339
  * @returns {boolean}
45027
45340
  */
45028
45341
  isMulticast() {
45029
- return this.getType() === "Multicast";
45342
+ const type = this.getType();
45343
+ return type === "Multicast" || type.startsWith("Multicast ");
45030
45344
  }
45031
45345
  /**
45032
- * Returns true if the address is a v4-in-v6 address, false otherwise
45033
- * @memberof Address6
45034
- * @instance
45346
+ * Returns true if the address was written in v4-in-v6 dotted-quad notation
45347
+ * (e.g. `::ffff:127.0.0.1`), false otherwise. This is a notation-level flag
45348
+ * and does not reflect whether the address bits lie in the IPv4-mapped
45349
+ * (`::ffff:0:0/96`) subnet — for that, see {@link isMapped4}.
45035
45350
  * @returns {boolean}
45036
45351
  */
45037
45352
  is4() {
45038
45353
  return this.v4;
45039
45354
  }
45355
+ /**
45356
+ * Returns true if the address is an IPv4-mapped IPv6 address in
45357
+ * `::ffff:0:0/96` ([RFC 4291 §2.5.5.2](https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.5.2)),
45358
+ * false otherwise. Unlike {@link is4}, this checks the underlying address
45359
+ * bits rather than the textual notation, so `::ffff:127.0.0.1` and
45360
+ * `::ffff:7f00:1` both return true.
45361
+ * @returns {boolean}
45362
+ */
45363
+ isMapped4() {
45364
+ return this.isInSubnet(IPV4_MAPPED_SUBNET);
45365
+ }
45040
45366
  /**
45041
45367
  * Returns true if the address is a Teredo address, false otherwise
45042
- * @memberof Address6
45043
- * @instance
45044
45368
  * @returns {boolean}
45045
45369
  */
45046
45370
  isTeredo() {
45047
- return this.isInSubnet(new _Address6("2001::/32"));
45371
+ return this.isInSubnet(TEREDO_SUBNET);
45048
45372
  }
45049
45373
  /**
45050
45374
  * Returns true if the address is a 6to4 address, false otherwise
45051
- * @memberof Address6
45052
- * @instance
45053
45375
  * @returns {boolean}
45054
45376
  */
45055
45377
  is6to4() {
45056
- return this.isInSubnet(new _Address6("2002::/16"));
45378
+ return this.isInSubnet(SIX_TO_FOUR_SUBNET);
45057
45379
  }
45058
45380
  /**
45059
45381
  * Returns true if the address is a loopback address, false otherwise
45060
- * @memberof Address6
45061
- * @instance
45062
45382
  * @returns {boolean}
45063
45383
  */
45064
45384
  isLoopback() {
45065
45385
  return this.getType() === "Loopback";
45066
45386
  }
45387
+ /**
45388
+ * Returns true if the address is a Unique Local Address in `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)). ULAs are the IPv6 equivalent of IPv4 [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private addresses.
45389
+ * @returns {boolean}
45390
+ */
45391
+ isULA() {
45392
+ return this.isInSubnet(ULA_SUBNET);
45393
+ }
45394
+ /**
45395
+ * Returns true if the address is the unspecified address `::`.
45396
+ * @returns {boolean}
45397
+ */
45398
+ isUnspecified() {
45399
+ return this.getType() === "Unspecified";
45400
+ }
45401
+ /**
45402
+ * Returns true if the address is in the documentation prefix `2001:db8::/32` ([RFC 3849](https://datatracker.ietf.org/doc/html/rfc3849)).
45403
+ * @returns {boolean}
45404
+ */
45405
+ isDocumentation() {
45406
+ return this.isInSubnet(DOCUMENTATION_SUBNET);
45407
+ }
45067
45408
  // #endregion
45068
45409
  // #region HTML
45069
45410
  /**
45070
- * @returns {String} the address in link form with a default port of 80
45411
+ * Returns the address as an HTTP URL with the host bracketed, e.g.
45412
+ * `http://[2001:db8::1]/`. If `optionalPort` is provided it is appended,
45413
+ * e.g. `http://[2001:db8::1]:8080/`.
45071
45414
  */
45072
45415
  href(optionalPort) {
45073
45416
  if (optionalPort === void 0) {
@@ -45078,7 +45421,12 @@ var require_ipv6 = __commonJS({
45078
45421
  return `http://[${this.correctForm()}]${optionalPort}/`;
45079
45422
  }
45080
45423
  /**
45081
- * @returns {String} a link suitable for conveying the address via a URL hash
45424
+ * Returns an HTML `<a>` element whose `href` encodes the address in a URL
45425
+ * hash fragment (default prefix `/#address=`). Useful for linking between
45426
+ * pages of an address-inspector UI.
45427
+ * @param options.className - CSS class for the rendered `<a>` element
45428
+ * @param options.prefix - hash prefix prepended to the address (default `/#address=`)
45429
+ * @param options.v4 - when true, render the address in v4-in-v6 form
45082
45430
  */
45083
45431
  link(options) {
45084
45432
  if (!options) {
@@ -45098,10 +45446,13 @@ var require_ipv6 = __commonJS({
45098
45446
  formFunction = this.to4in6;
45099
45447
  }
45100
45448
  const form = formFunction.call(this);
45449
+ const safeHref = helpers.escapeHtml(`${options.prefix}${form}`);
45450
+ const safeForm = helpers.escapeHtml(form);
45101
45451
  if (options.className) {
45102
- return `<a href="${options.prefix}${form}" class="${options.className}">${form}</a>`;
45452
+ const safeClass = helpers.escapeHtml(options.className);
45453
+ return `<a href="${safeHref}" class="${safeClass}">${safeForm}</a>`;
45103
45454
  }
45104
- return `<a href="${options.prefix}${form}">${form}</a>`;
45455
+ return `<a href="${safeHref}">${safeForm}</a>`;
45105
45456
  }
45106
45457
  /**
45107
45458
  * Groups an address
@@ -45109,12 +45460,12 @@ var require_ipv6 = __commonJS({
45109
45460
  */
45110
45461
  group() {
45111
45462
  if (this.elidedGroups === 0) {
45112
- return helpers.simpleGroup(this.address).join(":");
45463
+ return helpers.simpleGroup(this.addressMinusSuffix).join(":");
45113
45464
  }
45114
45465
  assert(typeof this.elidedGroups === "number");
45115
45466
  assert(typeof this.elisionBegin === "number");
45116
45467
  const output = [];
45117
- const [left, right] = this.address.split("::");
45468
+ const [left, right] = this.addressMinusSuffix.split("::");
45118
45469
  if (left.length) {
45119
45470
  output.push(...helpers.simpleGroup(left));
45120
45471
  } else {
@@ -45142,8 +45493,6 @@ var require_ipv6 = __commonJS({
45142
45493
  /**
45143
45494
  * Generate a regular expression string that can be used to find or validate
45144
45495
  * all variations of this address
45145
- * @memberof Address6
45146
- * @instance
45147
45496
  * @param {boolean} substringSearch
45148
45497
  * @returns {string}
45149
45498
  */
@@ -45182,8 +45531,6 @@ var require_ipv6 = __commonJS({
45182
45531
  /**
45183
45532
  * Generate a regular expression that can be used to find or validate all
45184
45533
  * variations of this address.
45185
- * @memberof Address6
45186
- * @instance
45187
45534
  * @param {boolean} substringSearch
45188
45535
  * @returns {RegExp}
45189
45536
  */
@@ -45192,12 +45539,21 @@ var require_ipv6 = __commonJS({
45192
45539
  }
45193
45540
  };
45194
45541
  exports2.Address6 = Address6;
45542
+ var TYPE_SUBNETS = Object.keys(constants6.TYPES).map((subnet) => [
45543
+ new Address6(subnet),
45544
+ constants6.TYPES[subnet]
45545
+ ]);
45546
+ var TEREDO_SUBNET = new Address6("2001::/32");
45547
+ var SIX_TO_FOUR_SUBNET = new Address6("2002::/16");
45548
+ var ULA_SUBNET = new Address6("fc00::/7");
45549
+ var DOCUMENTATION_SUBNET = new Address6("2001:db8::/32");
45550
+ var IPV4_MAPPED_SUBNET = new Address6("::ffff:0:0/96");
45195
45551
  }
45196
45552
  });
45197
45553
 
45198
- // ../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ip-address.js
45554
+ // ../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ip-address.js
45199
45555
  var require_ip_address = __commonJS({
45200
- "../node_modules/.pnpm/ip-address@10.1.0/node_modules/ip-address/dist/ip-address.js"(exports2) {
45556
+ "../node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/dist/ip-address.js"(exports2) {
45201
45557
  "use strict";
45202
45558
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
45203
45559
  if (k2 === void 0) k2 = k;
@@ -45245,9 +45601,9 @@ var require_ip_address = __commonJS({
45245
45601
  }
45246
45602
  });
45247
45603
 
45248
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/helpers.js
45604
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/helpers.js
45249
45605
  var require_helpers3 = __commonJS({
45250
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/helpers.js"(exports2) {
45606
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/helpers.js"(exports2) {
45251
45607
  "use strict";
45252
45608
  Object.defineProperty(exports2, "__esModule", { value: true });
45253
45609
  exports2.ipToBuffer = exports2.int32ToIpv4 = exports2.ipv4ToInt32 = exports2.validateSocksClientChainOptions = exports2.validateSocksClientOptions = void 0;
@@ -45352,9 +45708,9 @@ var require_helpers3 = __commonJS({
45352
45708
  }
45353
45709
  });
45354
45710
 
45355
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/receivebuffer.js
45711
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/receivebuffer.js
45356
45712
  var require_receivebuffer = __commonJS({
45357
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/common/receivebuffer.js"(exports2) {
45713
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/common/receivebuffer.js"(exports2) {
45358
45714
  "use strict";
45359
45715
  Object.defineProperty(exports2, "__esModule", { value: true });
45360
45716
  exports2.ReceiveBuffer = void 0;
@@ -45400,9 +45756,9 @@ var require_receivebuffer = __commonJS({
45400
45756
  }
45401
45757
  });
45402
45758
 
45403
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/client/socksclient.js
45759
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/client/socksclient.js
45404
45760
  var require_socksclient = __commonJS({
45405
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/client/socksclient.js"(exports2) {
45761
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/client/socksclient.js"(exports2) {
45406
45762
  "use strict";
45407
45763
  var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
45408
45764
  function adopt(value) {
@@ -46079,9 +46435,9 @@ var require_socksclient = __commonJS({
46079
46435
  }
46080
46436
  });
46081
46437
 
46082
- // ../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/index.js
46438
+ // ../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/index.js
46083
46439
  var require_build2 = __commonJS({
46084
- "../node_modules/.pnpm/socks@2.8.7/node_modules/socks/build/index.js"(exports2) {
46440
+ "../node_modules/.pnpm/socks@2.8.8/node_modules/socks/build/index.js"(exports2) {
46085
46441
  "use strict";
46086
46442
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
46087
46443
  if (k2 === void 0) k2 = k;
@@ -49625,7 +49981,7 @@ var require_lib35 = __commonJS({
49625
49981
  hosted.committish = commit;
49626
49982
  const tarball = hosted.tarball?.();
49627
49983
  if (tarball) {
49628
- resolution = { tarball };
49984
+ resolution = { tarball, gitHosted: true };
49629
49985
  }
49630
49986
  }
49631
49987
  if (resolution == null) {
@@ -54743,12 +55099,15 @@ var require_ensure = __commonJS({
54743
55099
  }
54744
55100
  });
54745
55101
 
54746
- // ../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
55102
+ // ../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js
54747
55103
  var require_utils3 = __commonJS({
54748
- "../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports2, module2) {
55104
+ "../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js"(exports2, module2) {
54749
55105
  function stringify2(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
54750
55106
  const EOF = finalEOL ? EOL : "";
54751
55107
  const str = JSON.stringify(obj, replacer, spaces);
55108
+ if (str === void 0) {
55109
+ throw new TypeError(`Converting ${typeof obj} value to JSON is not supported`);
55110
+ }
54752
55111
  return str.replace(/\n/g, EOL) + EOF;
54753
55112
  }
54754
55113
  function stripBom(content) {
@@ -54759,9 +55118,9 @@ var require_utils3 = __commonJS({
54759
55118
  }
54760
55119
  });
54761
55120
 
54762
- // ../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
55121
+ // ../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js
54763
55122
  var require_jsonfile = __commonJS({
54764
- "../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports2, module2) {
55123
+ "../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js"(exports2, module2) {
54765
55124
  var _fs;
54766
55125
  try {
54767
55126
  _fs = require_graceful_fs();
@@ -90605,9 +90964,10 @@ var require_dist16 = __commonJS({
90605
90964
  }
90606
90965
  });
90607
90966
 
90608
- // ../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.cjs
90967
+ // ../node_modules/.pnpm/tinyglobby@0.2.16/node_modules/tinyglobby/dist/index.cjs
90609
90968
  var require_dist17 = __commonJS({
90610
- "../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.cjs"(exports2) {
90969
+ "../node_modules/.pnpm/tinyglobby@0.2.16/node_modules/tinyglobby/dist/index.cjs"(exports2) {
90970
+ Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
90611
90971
  var __create2 = Object.create;
90612
90972
  var __defProp2 = Object.defineProperty;
90613
90973
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -90629,46 +90989,42 @@ var require_dist17 = __commonJS({
90629
90989
  enumerable: true
90630
90990
  }) : target, mod));
90631
90991
  var fs = require("fs");
90632
- fs = __toESM2(fs);
90633
90992
  var path2 = require("path");
90634
- path2 = __toESM2(path2);
90635
90993
  var url = require("url");
90636
- url = __toESM2(url);
90637
90994
  var fdir = require_dist16();
90638
- fdir = __toESM2(fdir);
90639
90995
  var picomatch = require_picomatch4();
90640
90996
  picomatch = __toESM2(picomatch);
90641
90997
  var isReadonlyArray = Array.isArray;
90998
+ var BACKSLASHES = /\\/g;
90642
90999
  var isWin = process.platform === "win32";
90643
91000
  var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
90644
91001
  function getPartialMatcher(patterns, options = {}) {
90645
91002
  const patternsCount = patterns.length;
90646
91003
  const patternsParts = Array(patternsCount);
90647
91004
  const matchers = Array(patternsCount);
90648
- const globstarEnabled = !options.noglobstar;
90649
- for (let i = 0; i < patternsCount; i++) {
91005
+ let i, j;
91006
+ for (i = 0; i < patternsCount; i++) {
90650
91007
  const parts = splitPattern(patterns[i]);
90651
91008
  patternsParts[i] = parts;
90652
91009
  const partsCount = parts.length;
90653
91010
  const partMatchers = Array(partsCount);
90654
- for (let j = 0; j < partsCount; j++) partMatchers[j] = (0, picomatch.default)(parts[j], options);
91011
+ for (j = 0; j < partsCount; j++) partMatchers[j] = (0, picomatch.default)(parts[j], options);
90655
91012
  matchers[i] = partMatchers;
90656
91013
  }
90657
91014
  return (input) => {
90658
91015
  const inputParts = input.split("/");
90659
91016
  if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
90660
- for (let i = 0; i < patterns.length; i++) {
91017
+ for (i = 0; i < patternsCount; i++) {
90661
91018
  const patternParts = patternsParts[i];
90662
91019
  const matcher = matchers[i];
90663
91020
  const inputPatternCount = inputParts.length;
90664
91021
  const minParts = Math.min(inputPatternCount, patternParts.length);
90665
- let j = 0;
91022
+ j = 0;
90666
91023
  while (j < minParts) {
90667
91024
  const part = patternParts[j];
90668
91025
  if (part.includes("/")) return true;
90669
- const match = matcher[j](inputParts[j]);
90670
- if (!match) break;
90671
- if (globstarEnabled && part === "**") return true;
91026
+ if (!matcher[j](inputParts[j])) break;
91027
+ if (!options.noglobstar && part === "**") return true;
90672
91028
  j++;
90673
91029
  }
90674
91030
  if (j === inputPatternCount) return true;
@@ -90681,7 +91037,7 @@ var require_dist17 = __commonJS({
90681
91037
  function buildFormat(cwd, root, absolute) {
90682
91038
  if (cwd === root || root.startsWith(`${cwd}/`)) {
90683
91039
  if (absolute) {
90684
- const start = isRoot(cwd) ? cwd.length : cwd.length + 1;
91040
+ const start = cwd.length + +!isRoot(cwd);
90685
91041
  return (p, isDir) => p.slice(start, isDir ? -1 : void 0) || ".";
90686
91042
  }
90687
91043
  const prefix = root.slice(cwd.length + 1);
@@ -90702,28 +91058,27 @@ var require_dist17 = __commonJS({
90702
91058
  }
90703
91059
  return (p) => {
90704
91060
  const result2 = path2.posix.relative(cwd, `${root}/${p}`);
90705
- if (p.endsWith("/") && result2 !== "") return `${result2}/`;
90706
- return result2 || ".";
91061
+ return p[p.length - 1] === "/" && result2 !== "" ? `${result2}/` : result2 || ".";
90707
91062
  };
90708
91063
  }
90709
91064
  var splitPatternOptions = { parts: true };
90710
- function splitPattern(path$2) {
91065
+ function splitPattern(path$1) {
90711
91066
  var _result$parts;
90712
- const result2 = picomatch.default.scan(path$2, splitPatternOptions);
90713
- return ((_result$parts = result2.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result2.parts : [path$2];
91067
+ const result2 = picomatch.default.scan(path$1, splitPatternOptions);
91068
+ return ((_result$parts = result2.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result2.parts : [path$1];
90714
91069
  }
90715
91070
  var ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
90716
91071
  function convertPosixPathToPattern(path$2) {
90717
91072
  return escapePosixPath(path$2);
90718
91073
  }
90719
- function convertWin32PathToPattern(path$2) {
90720
- return escapeWin32Path(path$2).replace(ESCAPED_WIN32_BACKSLASHES, "/");
91074
+ function convertWin32PathToPattern(path$3) {
91075
+ return escapeWin32Path(path$3).replace(ESCAPED_WIN32_BACKSLASHES, "/");
90721
91076
  }
90722
91077
  var convertPathToPattern = isWin ? convertWin32PathToPattern : convertPosixPathToPattern;
90723
91078
  var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
90724
91079
  var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
90725
- var escapePosixPath = (path$2) => path$2.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
90726
- var escapeWin32Path = (path$2) => path$2.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
91080
+ var escapePosixPath = (path$4) => path$4.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
91081
+ var escapeWin32Path = (path$5) => path$5.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
90727
91082
  var escapePath = isWin ? escapeWin32Path : escapePosixPath;
90728
91083
  function isDynamicPattern(pattern, options) {
90729
91084
  if ((options === null || options === void 0 ? void 0 : options.caseSensitiveMatch) === false) return true;
@@ -90733,28 +91088,31 @@ var require_dist17 = __commonJS({
90733
91088
  function log(...tasks) {
90734
91089
  console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
90735
91090
  }
91091
+ function ensureStringArray(value) {
91092
+ return typeof value === "string" ? [value] : value !== null && value !== void 0 ? value : [];
91093
+ }
90736
91094
  var PARENT_DIRECTORY = /^(\/?\.\.)+/;
90737
91095
  var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
90738
- var BACKSLASHES = /\\/g;
90739
- function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
91096
+ function normalizePattern(pattern, opts, props, isIgnore) {
91097
+ var _PARENT_DIRECTORY$exe;
91098
+ const cwd = opts.cwd;
90740
91099
  let result2 = pattern;
90741
- if (pattern.endsWith("/")) result2 = pattern.slice(0, -1);
90742
- if (!result2.endsWith("*") && expandDirectories) result2 += "/**";
91100
+ if (pattern[pattern.length - 1] === "/") result2 = pattern.slice(0, -1);
91101
+ if (result2[result2.length - 1] !== "*" && opts.expandDirectories) result2 += "/**";
90743
91102
  const escapedCwd = escapePath(cwd);
90744
- if (path2.default.isAbsolute(result2.replace(ESCAPING_BACKSLASHES, ""))) result2 = path2.posix.relative(escapedCwd, result2);
90745
- else result2 = path2.posix.normalize(result2);
90746
- const parentDirectoryMatch = PARENT_DIRECTORY.exec(result2);
91103
+ result2 = (0, path2.isAbsolute)(result2.replace(ESCAPING_BACKSLASHES, "")) ? path2.posix.relative(escapedCwd, result2) : path2.posix.normalize(result2);
91104
+ const parentDir = (_PARENT_DIRECTORY$exe = PARENT_DIRECTORY.exec(result2)) === null || _PARENT_DIRECTORY$exe === void 0 ? void 0 : _PARENT_DIRECTORY$exe[0];
90747
91105
  const parts = splitPattern(result2);
90748
- if (parentDirectoryMatch === null || parentDirectoryMatch === void 0 ? void 0 : parentDirectoryMatch[0]) {
90749
- const n = (parentDirectoryMatch[0].length + 1) / 3;
91106
+ if (parentDir) {
91107
+ const n = (parentDir.length + 1) / 3;
90750
91108
  let i = 0;
90751
91109
  const cwdParts = escapedCwd.split("/");
90752
91110
  while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
90753
91111
  result2 = result2.slice(0, (n - i - 1) * 3) + result2.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
90754
91112
  i++;
90755
91113
  }
90756
- const potentialRoot = path2.posix.join(cwd, parentDirectoryMatch[0].slice(i * 3));
90757
- if (!potentialRoot.startsWith(".") && props.root.length > potentialRoot.length) {
91114
+ const potentialRoot = path2.posix.join(cwd, parentDir.slice(i * 3));
91115
+ if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
90758
91116
  props.root = potentialRoot;
90759
91117
  props.depthOffset = -n + i;
90760
91118
  }
@@ -90770,7 +91128,7 @@ var require_dist17 = __commonJS({
90770
91128
  newCommonPath.pop();
90771
91129
  break;
90772
91130
  }
90773
- if (part !== props.commonPath[i] || isDynamicPattern(part) || i === parts.length - 1) break;
91131
+ if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
90774
91132
  newCommonPath.push(part);
90775
91133
  }
90776
91134
  props.depthOffset = newCommonPath.length;
@@ -90779,145 +91137,130 @@ var require_dist17 = __commonJS({
90779
91137
  }
90780
91138
  return result2;
90781
91139
  }
90782
- function processPatterns({ patterns = ["**/*"], ignore = [], expandDirectories = true }, cwd, props) {
90783
- if (typeof patterns === "string") patterns = [patterns];
90784
- if (typeof ignore === "string") ignore = [ignore];
91140
+ function processPatterns(options, patterns, props) {
90785
91141
  const matchPatterns = [];
90786
91142
  const ignorePatterns = [];
90787
- for (const pattern of ignore) {
91143
+ for (const pattern of options.ignore) {
90788
91144
  if (!pattern) continue;
90789
- if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, true));
91145
+ if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, options, props, true));
90790
91146
  }
90791
91147
  for (const pattern of patterns) {
90792
91148
  if (!pattern) continue;
90793
- if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, false));
90794
- else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), expandDirectories, cwd, props, true));
91149
+ if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, options, props, false));
91150
+ else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), options, props, true));
90795
91151
  }
90796
91152
  return {
90797
91153
  match: matchPatterns,
90798
91154
  ignore: ignorePatterns
90799
91155
  };
90800
91156
  }
90801
- function formatPaths(paths, relative) {
90802
- for (let i = paths.length - 1; i >= 0; i--) {
90803
- const path$2 = paths[i];
90804
- paths[i] = relative(path$2);
90805
- }
90806
- return paths;
90807
- }
90808
- function normalizeCwd(cwd) {
90809
- if (!cwd) return process.cwd().replace(BACKSLASHES, "/");
90810
- if (cwd instanceof URL) return (0, url.fileURLToPath)(cwd).replace(BACKSLASHES, "/");
90811
- return path2.default.resolve(cwd).replace(BACKSLASHES, "/");
90812
- }
90813
- function getCrawler(patterns, inputOptions = {}) {
90814
- const options = process.env.TINYGLOBBY_DEBUG ? {
90815
- ...inputOptions,
90816
- debug: true
90817
- } : inputOptions;
90818
- const cwd = normalizeCwd(options.cwd);
90819
- if (options.debug) log("globbing with:", {
90820
- patterns,
90821
- options,
90822
- cwd
90823
- });
90824
- if (Array.isArray(patterns) && patterns.length === 0) return [{
90825
- sync: () => [],
90826
- withPromise: async () => []
90827
- }, false];
91157
+ function buildCrawler(options, patterns) {
91158
+ const cwd = options.cwd;
90828
91159
  const props = {
90829
91160
  root: cwd,
90830
- commonPath: null,
90831
91161
  depthOffset: 0
90832
91162
  };
90833
- const processed = processPatterns({
90834
- ...options,
90835
- patterns
90836
- }, cwd, props);
91163
+ const processed = processPatterns(options, patterns, props);
90837
91164
  if (options.debug) log("internal processing patterns:", processed);
91165
+ const { absolute, caseSensitiveMatch, debug, dot, followSymbolicLinks, onlyDirectories } = options;
91166
+ const root = props.root.replace(BACKSLASHES, "");
90838
91167
  const matchOptions = {
90839
- dot: options.dot,
91168
+ dot,
90840
91169
  nobrace: options.braceExpansion === false,
90841
- nocase: options.caseSensitiveMatch === false,
91170
+ nocase: !caseSensitiveMatch,
90842
91171
  noextglob: options.extglob === false,
90843
91172
  noglobstar: options.globstar === false,
90844
91173
  posix: true
90845
91174
  };
90846
- const matcher = (0, picomatch.default)(processed.match, {
90847
- ...matchOptions,
90848
- ignore: processed.ignore
90849
- });
91175
+ const matcher = (0, picomatch.default)(processed.match, matchOptions);
90850
91176
  const ignore = (0, picomatch.default)(processed.ignore, matchOptions);
90851
91177
  const partialMatcher = getPartialMatcher(processed.match, matchOptions);
90852
- const format = buildFormat(cwd, props.root, options.absolute);
90853
- const formatExclude = options.absolute ? format : buildFormat(cwd, props.root, true);
90854
- const fdirOptions = {
90855
- filters: [options.debug ? (p, isDirectory) => {
90856
- const path$2 = format(p, isDirectory);
90857
- const matches = matcher(path$2);
90858
- if (matches) log(`matched ${path$2}`);
91178
+ const format = buildFormat(cwd, root, absolute);
91179
+ const excludeFormatter = absolute ? format : buildFormat(cwd, root, true);
91180
+ const excludePredicate = (_, p) => {
91181
+ const relativePath = excludeFormatter(p, true);
91182
+ return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
91183
+ };
91184
+ let maxDepth;
91185
+ if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
91186
+ const crawler = new fdir.fdir({
91187
+ filters: [debug ? (p, isDirectory) => {
91188
+ const path3 = format(p, isDirectory);
91189
+ const matches = matcher(path3) && !ignore(path3);
91190
+ if (matches) log(`matched ${path3}`);
90859
91191
  return matches;
90860
- } : (p, isDirectory) => matcher(format(p, isDirectory))],
90861
- exclude: options.debug ? (_, p) => {
90862
- const relativePath = formatExclude(p, true);
90863
- const skipped = relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
90864
- if (skipped) log(`skipped ${p}`);
90865
- else log(`crawling ${p}`);
91192
+ } : (p, isDirectory) => {
91193
+ const path3 = format(p, isDirectory);
91194
+ return matcher(path3) && !ignore(path3);
91195
+ }],
91196
+ exclude: debug ? (_, p) => {
91197
+ const skipped = excludePredicate(_, p);
91198
+ log(`${skipped ? "skipped" : "crawling"} ${p}`);
90866
91199
  return skipped;
90867
- } : (_, p) => {
90868
- const relativePath = formatExclude(p, true);
90869
- return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
90870
- },
90871
- fs: options.fs ? {
90872
- readdir: options.fs.readdir || fs.default.readdir,
90873
- readdirSync: options.fs.readdirSync || fs.default.readdirSync,
90874
- realpath: options.fs.realpath || fs.default.realpath,
90875
- realpathSync: options.fs.realpathSync || fs.default.realpathSync,
90876
- stat: options.fs.stat || fs.default.stat,
90877
- statSync: options.fs.statSync || fs.default.statSync
90878
- } : void 0,
91200
+ } : excludePredicate,
91201
+ fs: options.fs,
90879
91202
  pathSeparator: "/",
90880
- relativePaths: true,
90881
- resolveSymlinks: true,
91203
+ relativePaths: !absolute,
91204
+ resolvePaths: absolute,
91205
+ includeBasePath: absolute,
91206
+ resolveSymlinks: followSymbolicLinks,
91207
+ excludeSymlinks: !followSymbolicLinks,
91208
+ excludeFiles: onlyDirectories,
91209
+ includeDirs: onlyDirectories || !options.onlyFiles,
91210
+ maxDepth,
90882
91211
  signal: options.signal
91212
+ }).crawl(root);
91213
+ if (options.debug) log("internal properties:", {
91214
+ ...props,
91215
+ root
91216
+ });
91217
+ return [crawler, cwd !== root && !absolute && buildRelative(cwd, root)];
91218
+ }
91219
+ function formatPaths(paths, mapper) {
91220
+ if (mapper) for (let i = paths.length - 1; i >= 0; i--) paths[i] = mapper(paths[i]);
91221
+ return paths;
91222
+ }
91223
+ var defaultOptions = {
91224
+ caseSensitiveMatch: true,
91225
+ cwd: process.cwd(),
91226
+ debug: !!process.env.TINYGLOBBY_DEBUG,
91227
+ expandDirectories: true,
91228
+ followSymbolicLinks: true,
91229
+ onlyFiles: true
91230
+ };
91231
+ function getOptions(options) {
91232
+ const opts = {
91233
+ ...defaultOptions,
91234
+ ...options
90883
91235
  };
90884
- if (options.deep !== void 0) fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
90885
- if (options.absolute) {
90886
- fdirOptions.relativePaths = false;
90887
- fdirOptions.resolvePaths = true;
90888
- fdirOptions.includeBasePath = true;
90889
- }
90890
- if (options.followSymbolicLinks === false) {
90891
- fdirOptions.resolveSymlinks = false;
90892
- fdirOptions.excludeSymlinks = true;
90893
- }
90894
- if (options.onlyDirectories) {
90895
- fdirOptions.excludeFiles = true;
90896
- fdirOptions.includeDirs = true;
90897
- } else if (options.onlyFiles === false) fdirOptions.includeDirs = true;
90898
- props.root = props.root.replace(BACKSLASHES, "");
90899
- const root = props.root;
90900
- if (options.debug) log("internal properties:", props);
90901
- const relative = cwd !== root && !options.absolute && buildRelative(cwd, props.root);
90902
- return [new fdir.fdir(fdirOptions).crawl(root), relative];
90903
- }
90904
- async function glob(patternsOrOptions, options) {
90905
- if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
90906
- const isModern = isReadonlyArray(patternsOrOptions) || typeof patternsOrOptions === "string";
90907
- const opts = isModern ? options : patternsOrOptions;
90908
- const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
90909
- const [crawler, relative] = getCrawler(patterns, opts);
90910
- if (!relative) return crawler.withPromise();
90911
- return formatPaths(await crawler.withPromise(), relative);
90912
- }
90913
- function globSync(patternsOrOptions, options) {
90914
- if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
90915
- const isModern = isReadonlyArray(patternsOrOptions) || typeof patternsOrOptions === "string";
90916
- const opts = isModern ? options : patternsOrOptions;
90917
- const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
90918
- const [crawler, relative] = getCrawler(patterns, opts);
90919
- if (!relative) return crawler.sync();
90920
- return formatPaths(crawler.sync(), relative);
91236
+ opts.cwd = (opts.cwd instanceof URL ? (0, url.fileURLToPath)(opts.cwd) : (0, path2.resolve)(opts.cwd)).replace(BACKSLASHES, "/");
91237
+ opts.ignore = ensureStringArray(opts.ignore);
91238
+ opts.fs && (opts.fs = {
91239
+ readdir: opts.fs.readdir || fs.readdir,
91240
+ readdirSync: opts.fs.readdirSync || fs.readdirSync,
91241
+ realpath: opts.fs.realpath || fs.realpath,
91242
+ realpathSync: opts.fs.realpathSync || fs.realpathSync,
91243
+ stat: opts.fs.stat || fs.stat,
91244
+ statSync: opts.fs.statSync || fs.statSync
91245
+ });
91246
+ if (opts.debug) log("globbing with options:", opts);
91247
+ return opts;
91248
+ }
91249
+ function getCrawler(globInput, inputOptions = {}) {
91250
+ var _ref;
91251
+ if (globInput && (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
91252
+ const isModern = isReadonlyArray(globInput) || typeof globInput === "string";
91253
+ const patterns = ensureStringArray((_ref = isModern ? globInput : globInput.patterns) !== null && _ref !== void 0 ? _ref : "**/*");
91254
+ const options = getOptions(isModern ? inputOptions : globInput);
91255
+ return patterns.length > 0 ? buildCrawler(options, patterns) : [];
91256
+ }
91257
+ async function glob(globInput, options) {
91258
+ const [crawler, relative] = getCrawler(globInput, options);
91259
+ return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
91260
+ }
91261
+ function globSync(globInput, options) {
91262
+ const [crawler, relative] = getCrawler(globInput, options);
91263
+ return crawler ? formatPaths(crawler.sync(), relative) : [];
90921
91264
  }
90922
91265
  exports2.convertPathToPattern = convertPathToPattern;
90923
91266
  exports2.escapePath = escapePath;
@@ -93507,9 +93850,9 @@ onlyBuiltDependencies:
93507
93850
  }
93508
93851
  });
93509
93852
 
93510
- // ../node_modules/.pnpm/@rushstack+worker-pool@0.4.9_@types+node@25.5.0/node_modules/@rushstack/worker-pool/lib/WorkerPool.js
93853
+ // ../node_modules/.pnpm/@rushstack+worker-pool@0.4.9_@types+node@25.6.0/node_modules/@rushstack/worker-pool/lib/WorkerPool.js
93511
93854
  var require_WorkerPool = __commonJS({
93512
- "../node_modules/.pnpm/@rushstack+worker-pool@0.4.9_@types+node@25.5.0/node_modules/@rushstack/worker-pool/lib/WorkerPool.js"(exports2) {
93855
+ "../node_modules/.pnpm/@rushstack+worker-pool@0.4.9_@types+node@25.6.0/node_modules/@rushstack/worker-pool/lib/WorkerPool.js"(exports2) {
93513
93856
  "use strict";
93514
93857
  Object.defineProperty(exports2, "__esModule", { value: true });
93515
93858
  exports2.WorkerPool = exports2.WORKER_ID_SYMBOL = void 0;
@@ -94451,7 +94794,7 @@ var require_gitHostedTarballFetcher = __commonJS({
94451
94794
  function createGitHostedTarballFetcher(fetchRemoteTarball, fetcherOpts) {
94452
94795
  const fetch = async (cafs, resolution, opts) => {
94453
94796
  const tempIndexFile = (0, path_temp_1.fastPathTemp)(opts.filesIndexFile);
94454
- const { filesIndex, manifest, requiresBuild } = await fetchRemoteTarball(cafs, resolution, {
94797
+ const { filesIndex, manifest, requiresBuild, integrity } = await fetchRemoteTarball(cafs, resolution, {
94455
94798
  ...opts,
94456
94799
  filesIndexFile: tempIndexFile
94457
94800
  });
@@ -94463,7 +94806,10 @@ var require_gitHostedTarballFetcher = __commonJS({
94463
94806
  return {
94464
94807
  filesIndex: prepareResult.filesIndex,
94465
94808
  manifest: prepareResult.manifest ?? manifest,
94466
- requiresBuild
94809
+ requiresBuild,
94810
+ // Propagate the raw tarball integrity so the lockfile pins it and
94811
+ // future installs detect a tampered tarball from the git host.
94812
+ integrity
94467
94813
  };
94468
94814
  } catch (err) {
94469
94815
  (0, assert_1.default)(util_1.default.types.isNativeError(err));
@@ -94727,9 +95073,9 @@ var require_lib77 = __commonJS({
94727
95073
  }
94728
95074
  });
94729
95075
 
94730
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/constants.js
95076
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/constants.js
94731
95077
  var require_constants13 = __commonJS({
94732
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/constants.js"(exports2, module2) {
95078
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/constants.js"(exports2, module2) {
94733
95079
  module2.exports = {
94734
95080
  /* The local file header */
94735
95081
  LOCHDR: 30,
@@ -94946,9 +95292,9 @@ var require_constants13 = __commonJS({
94946
95292
  }
94947
95293
  });
94948
95294
 
94949
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/errors.js
95295
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/errors.js
94950
95296
  var require_errors4 = __commonJS({
94951
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/errors.js"(exports2) {
95297
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/errors.js"(exports2) {
94952
95298
  var errors = {
94953
95299
  /* Header error messages */
94954
95300
  INVALID_LOC: "Invalid LOC header (bad signature)",
@@ -95006,9 +95352,9 @@ var require_errors4 = __commonJS({
95006
95352
  }
95007
95353
  });
95008
95354
 
95009
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/utils.js
95355
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/utils.js
95010
95356
  var require_utils10 = __commonJS({
95011
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/utils.js"(exports2, module2) {
95357
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/utils.js"(exports2, module2) {
95012
95358
  var fsystem = require("fs");
95013
95359
  var pth = require("path");
95014
95360
  var Constants = require_constants13();
@@ -95046,7 +95392,11 @@ var require_utils10 = __commonJS({
95046
95392
  try {
95047
95393
  stat = self2.fs.statSync(resolvedPath);
95048
95394
  } catch (e) {
95049
- self2.fs.mkdirSync(resolvedPath);
95395
+ if (e.message && e.message.startsWith("ENOENT")) {
95396
+ self2.fs.mkdirSync(resolvedPath);
95397
+ } else {
95398
+ throw e;
95399
+ }
95050
95400
  }
95051
95401
  if (stat && stat.isFile()) throw Errors.FILE_IN_THE_WAY(`"${resolvedPath}"`);
95052
95402
  });
@@ -95243,9 +95593,9 @@ var require_utils10 = __commonJS({
95243
95593
  }
95244
95594
  };
95245
95595
  Utils.readBigUInt64LE = function(buffer, index) {
95246
- var slice = Buffer.from(buffer.slice(index, index + 8));
95247
- slice.swap64();
95248
- return parseInt(`0x${slice.toString("hex")}`);
95596
+ const lo = buffer.readUInt32LE(index);
95597
+ const hi = buffer.readUInt32LE(index + 4);
95598
+ return hi * 4294967296 + lo;
95249
95599
  };
95250
95600
  Utils.fromDOS2Date = function(val) {
95251
95601
  return new Date((val >> 25 & 127) + 1980, Math.max((val >> 21 & 15) - 1, 0), Math.max(val >> 16 & 31, 1), val >> 11 & 31, val >> 5 & 63, (val & 31) << 1);
@@ -95264,9 +95614,9 @@ var require_utils10 = __commonJS({
95264
95614
  }
95265
95615
  });
95266
95616
 
95267
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/fattr.js
95617
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/fattr.js
95268
95618
  var require_fattr = __commonJS({
95269
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/fattr.js"(exports2, module2) {
95619
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/fattr.js"(exports2, module2) {
95270
95620
  var pth = require("path");
95271
95621
  module2.exports = function(path2, { fs }) {
95272
95622
  var _path = path2 || "", _obj = newAttr(), _stat = null;
@@ -95333,9 +95683,9 @@ var require_fattr = __commonJS({
95333
95683
  }
95334
95684
  });
95335
95685
 
95336
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/decoder.js
95686
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/decoder.js
95337
95687
  var require_decoder = __commonJS({
95338
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/decoder.js"(exports2, module2) {
95688
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/decoder.js"(exports2, module2) {
95339
95689
  module2.exports = {
95340
95690
  efs: true,
95341
95691
  encode: (data) => Buffer.from(data, "utf8"),
@@ -95344,9 +95694,9 @@ var require_decoder = __commonJS({
95344
95694
  }
95345
95695
  });
95346
95696
 
95347
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/index.js
95697
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/index.js
95348
95698
  var require_util7 = __commonJS({
95349
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/util/index.js"(exports2, module2) {
95699
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/util/index.js"(exports2, module2) {
95350
95700
  module2.exports = require_utils10();
95351
95701
  module2.exports.Constants = require_constants13();
95352
95702
  module2.exports.Errors = require_errors4();
@@ -95355,9 +95705,9 @@ var require_util7 = __commonJS({
95355
95705
  }
95356
95706
  });
95357
95707
 
95358
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/entryHeader.js
95708
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/entryHeader.js
95359
95709
  var require_entryHeader = __commonJS({
95360
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/entryHeader.js"(exports2, module2) {
95710
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/entryHeader.js"(exports2, module2) {
95361
95711
  var Utils = require_util7();
95362
95712
  var Constants = Utils.Constants;
95363
95713
  module2.exports = function() {
@@ -95427,6 +95777,7 @@ var require_entryHeader = __commonJS({
95427
95777
  return Utils.fromDOS2Date(this.timeval);
95428
95778
  },
95429
95779
  set time(val) {
95780
+ val = new Date(val);
95430
95781
  this.timeval = Utils.fromDate2DOS(val);
95431
95782
  },
95432
95783
  get timeval() {
@@ -95527,6 +95878,7 @@ var require_entryHeader = __commonJS({
95527
95878
  }
95528
95879
  _localHeader.version = data.readUInt16LE(Constants.LOCVER);
95529
95880
  _localHeader.flags = data.readUInt16LE(Constants.LOCFLG);
95881
+ _localHeader.flags_desc = (_localHeader.flags & Constants.FLG_DESC) > 0;
95530
95882
  _localHeader.method = data.readUInt16LE(Constants.LOCHOW);
95531
95883
  _localHeader.time = data.readUInt32LE(Constants.LOCTIM);
95532
95884
  _localHeader.crc = data.readUInt32LE(Constants.LOCCRC);
@@ -95623,9 +95975,9 @@ var require_entryHeader = __commonJS({
95623
95975
  }
95624
95976
  });
95625
95977
 
95626
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/mainHeader.js
95978
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/mainHeader.js
95627
95979
  var require_mainHeader = __commonJS({
95628
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/mainHeader.js"(exports2, module2) {
95980
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/mainHeader.js"(exports2, module2) {
95629
95981
  var Utils = require_util7();
95630
95982
  var Constants = Utils.Constants;
95631
95983
  module2.exports = function() {
@@ -95716,17 +96068,17 @@ var require_mainHeader = __commonJS({
95716
96068
  }
95717
96069
  });
95718
96070
 
95719
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/index.js
96071
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/index.js
95720
96072
  var require_headers = __commonJS({
95721
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/headers/index.js"(exports2) {
96073
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/headers/index.js"(exports2) {
95722
96074
  exports2.EntryHeader = require_entryHeader();
95723
96075
  exports2.MainHeader = require_mainHeader();
95724
96076
  }
95725
96077
  });
95726
96078
 
95727
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/deflater.js
96079
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/deflater.js
95728
96080
  var require_deflater = __commonJS({
95729
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/deflater.js"(exports2, module2) {
96081
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/deflater.js"(exports2, module2) {
95730
96082
  module2.exports = function(inbuf) {
95731
96083
  var zlib = require("zlib");
95732
96084
  var opts = { chunkSize: (parseInt(inbuf.length / 1024) + 1) * 1024 };
@@ -95757,9 +96109,9 @@ var require_deflater = __commonJS({
95757
96109
  }
95758
96110
  });
95759
96111
 
95760
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/inflater.js
96112
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/inflater.js
95761
96113
  var require_inflater = __commonJS({
95762
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/inflater.js"(exports2, module2) {
96114
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/inflater.js"(exports2, module2) {
95763
96115
  var version2 = +(process.versions ? process.versions.node : "").split(".")[0] || 0;
95764
96116
  module2.exports = function(inbuf, expectedLength) {
95765
96117
  var zlib = require("zlib");
@@ -95791,9 +96143,9 @@ var require_inflater = __commonJS({
95791
96143
  }
95792
96144
  });
95793
96145
 
95794
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/zipcrypto.js
96146
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/zipcrypto.js
95795
96147
  var require_zipcrypto = __commonJS({
95796
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/zipcrypto.js"(exports2, module2) {
96148
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/zipcrypto.js"(exports2, module2) {
95797
96149
  "use strict";
95798
96150
  var { randomFillSync } = require("crypto");
95799
96151
  var Errors = require_errors4();
@@ -95907,18 +96259,18 @@ var require_zipcrypto = __commonJS({
95907
96259
  }
95908
96260
  });
95909
96261
 
95910
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/index.js
96262
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/index.js
95911
96263
  var require_methods = __commonJS({
95912
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/methods/index.js"(exports2) {
96264
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/methods/index.js"(exports2) {
95913
96265
  exports2.Deflater = require_deflater();
95914
96266
  exports2.Inflater = require_inflater();
95915
96267
  exports2.ZipCrypto = require_zipcrypto();
95916
96268
  }
95917
96269
  });
95918
96270
 
95919
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/zipEntry.js
96271
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/zipEntry.js
95920
96272
  var require_zipEntry = __commonJS({
95921
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/zipEntry.js"(exports2, module2) {
96273
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/zipEntry.js"(exports2, module2) {
95922
96274
  var Utils = require_util7();
95923
96275
  var Headers = require_headers();
95924
96276
  var Constants = Utils.Constants;
@@ -95936,7 +96288,7 @@ var require_zipEntry = __commonJS({
95936
96288
  return input.slice(_centralHeader.realDataOffset, _centralHeader.realDataOffset + _centralHeader.compressedSize);
95937
96289
  }
95938
96290
  function crc32OK(data) {
95939
- if (!_centralHeader.flags_desc) {
96291
+ if (!_centralHeader.flags_desc && !_centralHeader.localHeader.flags_desc) {
95940
96292
  if (Utils.crc32(data) !== _centralHeader.localHeader.crc) {
95941
96293
  return false;
95942
96294
  }
@@ -96065,7 +96417,7 @@ var require_zipEntry = __commonJS({
96065
96417
  }
96066
96418
  }
96067
96419
  function readUInt64LE(buffer, offset) {
96068
- return (buffer.readUInt32LE(offset + 4) << 4) + buffer.readUInt32LE(offset);
96420
+ return Utils.readBigUInt64LE(buffer, offset);
96069
96421
  }
96070
96422
  function parseExtra(data) {
96071
96423
  try {
@@ -96247,9 +96599,9 @@ var require_zipEntry = __commonJS({
96247
96599
  }
96248
96600
  });
96249
96601
 
96250
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/zipFile.js
96602
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/zipFile.js
96251
96603
  var require_zipFile = __commonJS({
96252
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/zipFile.js"(exports2, module2) {
96604
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/zipFile.js"(exports2, module2) {
96253
96605
  var ZipEntry = require_zipEntry();
96254
96606
  var Headers = require_headers();
96255
96607
  var Utils = require_util7();
@@ -96593,9 +96945,9 @@ var require_zipFile = __commonJS({
96593
96945
  }
96594
96946
  });
96595
96947
 
96596
- // ../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/adm-zip.js
96948
+ // ../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/adm-zip.js
96597
96949
  var require_adm_zip = __commonJS({
96598
- "../node_modules/.pnpm/adm-zip@0.5.16/node_modules/adm-zip/adm-zip.js"(exports2, module2) {
96950
+ "../node_modules/.pnpm/adm-zip@0.5.17/node_modules/adm-zip/adm-zip.js"(exports2, module2) {
96599
96951
  var Utils = require_util7();
96600
96952
  var pth = require("path");
96601
96953
  var ZipEntry = require_zipEntry();
@@ -96657,7 +97009,7 @@ var require_adm_zip = __commonJS({
96657
97009
  }
96658
97010
  function fixPath(zipPath) {
96659
97011
  const { join, normalize, sep } = pth.posix;
96660
- return join(".", normalize(sep + zipPath.split("\\").join(sep) + sep));
97012
+ return join(pth.isAbsolute(zipPath) ? "/" : ".", normalize(sep + zipPath.split("\\").join(sep) + sep));
96661
97013
  }
96662
97014
  function filenameFilter(filterfn) {
96663
97015
  if (filterfn instanceof RegExp) {
@@ -103950,7 +104302,9 @@ var require_lib84 = __commonJS({
103950
104302
  if (resolution.type == null) {
103951
104303
  if (resolution.tarball.startsWith("file:")) {
103952
104304
  fetcherType = "localTarball";
103953
- } else if (isGitHostedPkgUrl(resolution.tarball)) {
104305
+ } else if ("gitHosted" in resolution && resolution.gitHosted === true || // URL fallback for resolutions that didn't go through the resolver or
104306
+ // the lockfile loader (e.g., constructed ad-hoc).
104307
+ isGitHostedPkgUrl(resolution.tarball)) {
103954
104308
  fetcherType = "gitHostedTarball";
103955
104309
  } else {
103956
104310
  fetcherType = "remoteTarball";
@@ -105614,26 +105968,23 @@ var require_packageRequester = __commonJS({
105614
105968
  function getFilesIndexFilePath(ctx, opts) {
105615
105969
  const targetRelative = (0, dependency_path_1.depPathToFilename)(opts.pkg.id, ctx.virtualStoreDirMaxLength);
105616
105970
  const target = path_1.default.join(ctx.storeDir, targetRelative);
105617
- if (opts.pkg.resolution.integrity) {
105618
- return {
105619
- target,
105620
- filesIndexFile: ctx.getIndexFilePathInCafs(opts.pkg.resolution.integrity, opts.pkg.id),
105621
- resolution: opts.pkg.resolution
105622
- };
105623
- }
105624
105971
  let resolution;
105625
105972
  if (opts.pkg.resolution.type === "variations") {
105626
105973
  resolution = findResolution(opts.pkg.resolution.variants, opts.supportedArchitectures);
105627
- if (resolution.integrity) {
105628
- return {
105629
- target,
105630
- filesIndexFile: ctx.getIndexFilePathInCafs(resolution.integrity, opts.pkg.id),
105631
- resolution
105632
- };
105633
- }
105634
105974
  } else {
105635
105975
  resolution = opts.pkg.resolution;
105636
105976
  }
105977
+ if (resolution.gitHosted === true) {
105978
+ const filesIndexFile2 = path_1.default.join(target, opts.ignoreScripts ? "integrity-not-built.json" : "integrity.json");
105979
+ return { filesIndexFile: filesIndexFile2, target, resolution };
105980
+ }
105981
+ if (resolution.integrity) {
105982
+ return {
105983
+ target,
105984
+ filesIndexFile: ctx.getIndexFilePathInCafs(resolution.integrity, opts.pkg.id),
105985
+ resolution
105986
+ };
105987
+ }
105637
105988
  const filesIndexFile = path_1.default.join(target, opts.ignoreScripts ? "integrity-not-built.json" : "integrity.json");
105638
105989
  return { filesIndexFile, target, resolution };
105639
105990
  }
@@ -106953,9 +107304,9 @@ var require_installConfigDeps = __commonJS({
106953
107304
  }
106954
107305
  });
106955
107306
 
106956
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
107307
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
106957
107308
  var require_identity3 = __commonJS({
106958
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js"(exports2) {
107309
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js"(exports2) {
106959
107310
  "use strict";
106960
107311
  var ALIAS = Symbol.for("yaml.alias");
106961
107312
  var DOC = Symbol.for("yaml.document");
@@ -107010,9 +107361,9 @@ var require_identity3 = __commonJS({
107010
107361
  }
107011
107362
  });
107012
107363
 
107013
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js
107364
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js
107014
107365
  var require_visit = __commonJS({
107015
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js"(exports2) {
107366
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js"(exports2) {
107016
107367
  "use strict";
107017
107368
  var identity = require_identity3();
107018
107369
  var BREAK = Symbol("break visit");
@@ -107168,9 +107519,9 @@ var require_visit = __commonJS({
107168
107519
  }
107169
107520
  });
107170
107521
 
107171
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
107522
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
107172
107523
  var require_directives = __commonJS({
107173
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js"(exports2) {
107524
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js"(exports2) {
107174
107525
  "use strict";
107175
107526
  var identity = require_identity3();
107176
107527
  var visit = require_visit();
@@ -107339,9 +107690,9 @@ var require_directives = __commonJS({
107339
107690
  }
107340
107691
  });
107341
107692
 
107342
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
107693
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
107343
107694
  var require_anchors = __commonJS({
107344
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js"(exports2) {
107695
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js"(exports2) {
107345
107696
  "use strict";
107346
107697
  var identity = require_identity3();
107347
107698
  var visit = require_visit();
@@ -107409,9 +107760,9 @@ var require_anchors = __commonJS({
107409
107760
  }
107410
107761
  });
107411
107762
 
107412
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
107763
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
107413
107764
  var require_applyReviver = __commonJS({
107414
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
107765
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
107415
107766
  "use strict";
107416
107767
  function applyReviver(reviver, obj, key, val) {
107417
107768
  if (val && typeof val === "object") {
@@ -107459,9 +107810,9 @@ var require_applyReviver = __commonJS({
107459
107810
  }
107460
107811
  });
107461
107812
 
107462
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
107813
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
107463
107814
  var require_toJS = __commonJS({
107464
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
107815
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
107465
107816
  "use strict";
107466
107817
  var identity = require_identity3();
107467
107818
  function toJS(value, arg, ctx) {
@@ -107489,9 +107840,9 @@ var require_toJS = __commonJS({
107489
107840
  }
107490
107841
  });
107491
107842
 
107492
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
107843
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
107493
107844
  var require_Node = __commonJS({
107494
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js"(exports2) {
107845
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js"(exports2) {
107495
107846
  "use strict";
107496
107847
  var applyReviver = require_applyReviver();
107497
107848
  var identity = require_identity3();
@@ -107530,9 +107881,9 @@ var require_Node = __commonJS({
107530
107881
  }
107531
107882
  });
107532
107883
 
107533
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
107884
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
107534
107885
  var require_Alias = __commonJS({
107535
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
107886
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
107536
107887
  "use strict";
107537
107888
  var anchors = require_anchors();
107538
107889
  var visit = require_visit();
@@ -107554,6 +107905,8 @@ var require_Alias = __commonJS({
107554
107905
  * instance of the `source` anchor before this node.
107555
107906
  */
107556
107907
  resolve(doc, ctx) {
107908
+ if (ctx?.maxAliasCount === 0)
107909
+ throw new ReferenceError("Alias resolution is disabled");
107557
107910
  let nodes;
107558
107911
  if (ctx?.aliasResolveCache) {
107559
107912
  nodes = ctx.aliasResolveCache;
@@ -107644,9 +107997,9 @@ var require_Alias = __commonJS({
107644
107997
  }
107645
107998
  });
107646
107999
 
107647
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
108000
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
107648
108001
  var require_Scalar = __commonJS({
107649
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
108002
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
107650
108003
  "use strict";
107651
108004
  var identity = require_identity3();
107652
108005
  var Node = require_Node();
@@ -107674,9 +108027,9 @@ var require_Scalar = __commonJS({
107674
108027
  }
107675
108028
  });
107676
108029
 
107677
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
108030
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
107678
108031
  var require_createNode = __commonJS({
107679
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js"(exports2) {
108032
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js"(exports2) {
107680
108033
  "use strict";
107681
108034
  var Alias = require_Alias();
107682
108035
  var identity = require_identity3();
@@ -107749,9 +108102,9 @@ var require_createNode = __commonJS({
107749
108102
  }
107750
108103
  });
107751
108104
 
107752
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
108105
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
107753
108106
  var require_Collection = __commonJS({
107754
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
108107
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
107755
108108
  "use strict";
107756
108109
  var createNode = require_createNode();
107757
108110
  var identity = require_identity3();
@@ -107892,9 +108245,9 @@ var require_Collection = __commonJS({
107892
108245
  }
107893
108246
  });
107894
108247
 
107895
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
108248
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
107896
108249
  var require_stringifyComment = __commonJS({
107897
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
108250
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
107898
108251
  "use strict";
107899
108252
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
107900
108253
  function indentComment(comment, indent) {
@@ -107909,9 +108262,9 @@ var require_stringifyComment = __commonJS({
107909
108262
  }
107910
108263
  });
107911
108264
 
107912
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
108265
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
107913
108266
  var require_foldFlowLines = __commonJS({
107914
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
108267
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
107915
108268
  "use strict";
107916
108269
  var FOLD_FLOW = "flow";
107917
108270
  var FOLD_BLOCK = "block";
@@ -108045,9 +108398,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
108045
108398
  }
108046
108399
  });
108047
108400
 
108048
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
108401
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
108049
108402
  var require_stringifyString = __commonJS({
108050
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
108403
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
108051
108404
  "use strict";
108052
108405
  var Scalar = require_Scalar();
108053
108406
  var foldFlowLines = require_foldFlowLines();
@@ -108328,9 +108681,9 @@ ${indent}`);
108328
108681
  }
108329
108682
  });
108330
108683
 
108331
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
108684
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
108332
108685
  var require_stringify3 = __commonJS({
108333
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
108686
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
108334
108687
  "use strict";
108335
108688
  var anchors = require_anchors();
108336
108689
  var identity = require_identity3();
@@ -108452,9 +108805,9 @@ ${ctx.indent}${str}`;
108452
108805
  }
108453
108806
  });
108454
108807
 
108455
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
108808
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
108456
108809
  var require_stringifyPair = __commonJS({
108457
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
108810
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
108458
108811
  "use strict";
108459
108812
  var identity = require_identity3();
108460
108813
  var Scalar = require_Scalar();
@@ -108585,9 +108938,9 @@ ${ctx.indent}`;
108585
108938
  }
108586
108939
  });
108587
108940
 
108588
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js
108941
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js
108589
108942
  var require_log = __commonJS({
108590
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js"(exports2) {
108943
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js"(exports2) {
108591
108944
  "use strict";
108592
108945
  var node_process = require("process");
108593
108946
  function debug(logLevel, ...messages) {
@@ -108607,9 +108960,9 @@ var require_log = __commonJS({
108607
108960
  }
108608
108961
  });
108609
108962
 
108610
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
108963
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
108611
108964
  var require_merge5 = __commonJS({
108612
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
108965
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
108613
108966
  "use strict";
108614
108967
  var identity = require_identity3();
108615
108968
  var Scalar = require_Scalar();
@@ -108626,18 +108979,18 @@ var require_merge5 = __commonJS({
108626
108979
  };
108627
108980
  var isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
108628
108981
  function addMergeToJSMap(ctx, map, value) {
108629
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
108630
- if (identity.isSeq(value))
108631
- for (const it of value.items)
108982
+ const source = resolveAliasValue(ctx, value);
108983
+ if (identity.isSeq(source))
108984
+ for (const it of source.items)
108632
108985
  mergeValue(ctx, map, it);
108633
- else if (Array.isArray(value))
108634
- for (const it of value)
108986
+ else if (Array.isArray(source))
108987
+ for (const it of source)
108635
108988
  mergeValue(ctx, map, it);
108636
108989
  else
108637
- mergeValue(ctx, map, value);
108990
+ mergeValue(ctx, map, source);
108638
108991
  }
108639
108992
  function mergeValue(ctx, map, value) {
108640
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
108993
+ const source = resolveAliasValue(ctx, value);
108641
108994
  if (!identity.isMap(source))
108642
108995
  throw new Error("Merge sources must be maps or map aliases");
108643
108996
  const srcMap = source.toJSON(null, ctx, Map);
@@ -108658,15 +109011,18 @@ var require_merge5 = __commonJS({
108658
109011
  }
108659
109012
  return map;
108660
109013
  }
109014
+ function resolveAliasValue(ctx, value) {
109015
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
109016
+ }
108661
109017
  exports2.addMergeToJSMap = addMergeToJSMap;
108662
109018
  exports2.isMergeKey = isMergeKey;
108663
109019
  exports2.merge = merge;
108664
109020
  }
108665
109021
  });
108666
109022
 
108667
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
109023
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
108668
109024
  var require_addPairToJSMap = __commonJS({
108669
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
109025
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
108670
109026
  "use strict";
108671
109027
  var log = require_log();
108672
109028
  var merge = require_merge5();
@@ -108728,9 +109084,9 @@ var require_addPairToJSMap = __commonJS({
108728
109084
  }
108729
109085
  });
108730
109086
 
108731
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
109087
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
108732
109088
  var require_Pair = __commonJS({
108733
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
109089
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
108734
109090
  "use strict";
108735
109091
  var createNode = require_createNode();
108736
109092
  var stringifyPair = require_stringifyPair();
@@ -108768,9 +109124,9 @@ var require_Pair = __commonJS({
108768
109124
  }
108769
109125
  });
108770
109126
 
108771
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
109127
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
108772
109128
  var require_stringifyCollection = __commonJS({
108773
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
109129
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
108774
109130
  "use strict";
108775
109131
  var identity = require_identity3();
108776
109132
  var stringify2 = require_stringify3();
@@ -108919,9 +109275,9 @@ ${indent}${end}`;
108919
109275
  }
108920
109276
  });
108921
109277
 
108922
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
109278
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
108923
109279
  var require_YAMLMap = __commonJS({
108924
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
109280
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
108925
109281
  "use strict";
108926
109282
  var stringifyCollection = require_stringifyCollection();
108927
109283
  var addPairToJSMap = require_addPairToJSMap();
@@ -109063,9 +109419,9 @@ var require_YAMLMap = __commonJS({
109063
109419
  }
109064
109420
  });
109065
109421
 
109066
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
109422
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
109067
109423
  var require_map6 = __commonJS({
109068
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js"(exports2) {
109424
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js"(exports2) {
109069
109425
  "use strict";
109070
109426
  var identity = require_identity3();
109071
109427
  var YAMLMap = require_YAMLMap();
@@ -109085,9 +109441,9 @@ var require_map6 = __commonJS({
109085
109441
  }
109086
109442
  });
109087
109443
 
109088
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
109444
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
109089
109445
  var require_YAMLSeq = __commonJS({
109090
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
109446
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
109091
109447
  "use strict";
109092
109448
  var createNode = require_createNode();
109093
109449
  var stringifyCollection = require_stringifyCollection();
@@ -109201,9 +109557,9 @@ var require_YAMLSeq = __commonJS({
109201
109557
  }
109202
109558
  });
109203
109559
 
109204
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
109560
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
109205
109561
  var require_seq3 = __commonJS({
109206
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
109562
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
109207
109563
  "use strict";
109208
109564
  var identity = require_identity3();
109209
109565
  var YAMLSeq = require_YAMLSeq();
@@ -109223,9 +109579,9 @@ var require_seq3 = __commonJS({
109223
109579
  }
109224
109580
  });
109225
109581
 
109226
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
109582
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
109227
109583
  var require_string2 = __commonJS({
109228
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js"(exports2) {
109584
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js"(exports2) {
109229
109585
  "use strict";
109230
109586
  var stringifyString = require_stringifyString();
109231
109587
  var string = {
@@ -109242,9 +109598,9 @@ var require_string2 = __commonJS({
109242
109598
  }
109243
109599
  });
109244
109600
 
109245
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
109601
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
109246
109602
  var require_null3 = __commonJS({
109247
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js"(exports2) {
109603
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js"(exports2) {
109248
109604
  "use strict";
109249
109605
  var Scalar = require_Scalar();
109250
109606
  var nullTag = {
@@ -109260,9 +109616,9 @@ var require_null3 = __commonJS({
109260
109616
  }
109261
109617
  });
109262
109618
 
109263
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
109619
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
109264
109620
  var require_bool3 = __commonJS({
109265
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
109621
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
109266
109622
  "use strict";
109267
109623
  var Scalar = require_Scalar();
109268
109624
  var boolTag = {
@@ -109284,9 +109640,9 @@ var require_bool3 = __commonJS({
109284
109640
  }
109285
109641
  });
109286
109642
 
109287
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
109643
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
109288
109644
  var require_stringifyNumber = __commonJS({
109289
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
109645
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
109290
109646
  "use strict";
109291
109647
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
109292
109648
  if (typeof value === "bigint")
@@ -109295,7 +109651,7 @@ var require_stringifyNumber = __commonJS({
109295
109651
  if (!isFinite(num))
109296
109652
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
109297
109653
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
109298
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
109654
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
109299
109655
  let i = n.indexOf(".");
109300
109656
  if (i < 0) {
109301
109657
  i = n.length;
@@ -109311,9 +109667,9 @@ var require_stringifyNumber = __commonJS({
109311
109667
  }
109312
109668
  });
109313
109669
 
109314
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
109670
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
109315
109671
  var require_float3 = __commonJS({
109316
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js"(exports2) {
109672
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js"(exports2) {
109317
109673
  "use strict";
109318
109674
  var Scalar = require_Scalar();
109319
109675
  var stringifyNumber = require_stringifyNumber();
@@ -109357,9 +109713,9 @@ var require_float3 = __commonJS({
109357
109713
  }
109358
109714
  });
109359
109715
 
109360
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
109716
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
109361
109717
  var require_int3 = __commonJS({
109362
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js"(exports2) {
109718
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js"(exports2) {
109363
109719
  "use strict";
109364
109720
  var stringifyNumber = require_stringifyNumber();
109365
109721
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -109402,9 +109758,9 @@ var require_int3 = __commonJS({
109402
109758
  }
109403
109759
  });
109404
109760
 
109405
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
109761
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
109406
109762
  var require_schema3 = __commonJS({
109407
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
109763
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
109408
109764
  "use strict";
109409
109765
  var map = require_map6();
109410
109766
  var _null = require_null3();
@@ -109430,9 +109786,9 @@ var require_schema3 = __commonJS({
109430
109786
  }
109431
109787
  });
109432
109788
 
109433
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
109789
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
109434
109790
  var require_schema4 = __commonJS({
109435
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
109791
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
109436
109792
  "use strict";
109437
109793
  var Scalar = require_Scalar();
109438
109794
  var map = require_map6();
@@ -109497,9 +109853,9 @@ var require_schema4 = __commonJS({
109497
109853
  }
109498
109854
  });
109499
109855
 
109500
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
109856
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
109501
109857
  var require_binary3 = __commonJS({
109502
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
109858
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
109503
109859
  "use strict";
109504
109860
  var node_buffer = require("buffer");
109505
109861
  var Scalar = require_Scalar();
@@ -109563,9 +109919,9 @@ var require_binary3 = __commonJS({
109563
109919
  }
109564
109920
  });
109565
109921
 
109566
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
109922
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
109567
109923
  var require_pairs4 = __commonJS({
109568
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
109924
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
109569
109925
  "use strict";
109570
109926
  var identity = require_identity3();
109571
109927
  var Pair = require_Pair();
@@ -109641,9 +109997,9 @@ ${cn.comment}` : item.comment;
109641
109997
  }
109642
109998
  });
109643
109999
 
109644
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
110000
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
109645
110001
  var require_omap3 = __commonJS({
109646
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
110002
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
109647
110003
  "use strict";
109648
110004
  var identity = require_identity3();
109649
110005
  var toJS = require_toJS();
@@ -109719,9 +110075,9 @@ var require_omap3 = __commonJS({
109719
110075
  }
109720
110076
  });
109721
110077
 
109722
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
110078
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
109723
110079
  var require_bool4 = __commonJS({
109724
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
110080
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
109725
110081
  "use strict";
109726
110082
  var Scalar = require_Scalar();
109727
110083
  function boolStringify({ value, source }, ctx) {
@@ -109751,9 +110107,9 @@ var require_bool4 = __commonJS({
109751
110107
  }
109752
110108
  });
109753
110109
 
109754
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
110110
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
109755
110111
  var require_float4 = __commonJS({
109756
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
110112
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
109757
110113
  "use strict";
109758
110114
  var Scalar = require_Scalar();
109759
110115
  var stringifyNumber = require_stringifyNumber();
@@ -109800,9 +110156,9 @@ var require_float4 = __commonJS({
109800
110156
  }
109801
110157
  });
109802
110158
 
109803
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
110159
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
109804
110160
  var require_int4 = __commonJS({
109805
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
110161
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
109806
110162
  "use strict";
109807
110163
  var stringifyNumber = require_stringifyNumber();
109808
110164
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -109879,9 +110235,9 @@ var require_int4 = __commonJS({
109879
110235
  }
109880
110236
  });
109881
110237
 
109882
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
110238
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
109883
110239
  var require_set3 = __commonJS({
109884
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
110240
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
109885
110241
  "use strict";
109886
110242
  var identity = require_identity3();
109887
110243
  var Pair = require_Pair();
@@ -109968,9 +110324,9 @@ var require_set3 = __commonJS({
109968
110324
  }
109969
110325
  });
109970
110326
 
109971
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
110327
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
109972
110328
  var require_timestamp4 = __commonJS({
109973
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
110329
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
109974
110330
  "use strict";
109975
110331
  var stringifyNumber = require_stringifyNumber();
109976
110332
  function parseSexagesimal(str, asBigInt) {
@@ -110056,9 +110412,9 @@ var require_timestamp4 = __commonJS({
110056
110412
  }
110057
110413
  });
110058
110414
 
110059
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
110415
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
110060
110416
  var require_schema5 = __commonJS({
110061
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
110417
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
110062
110418
  "use strict";
110063
110419
  var map = require_map6();
110064
110420
  var _null = require_null3();
@@ -110100,9 +110456,9 @@ var require_schema5 = __commonJS({
110100
110456
  }
110101
110457
  });
110102
110458
 
110103
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
110459
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
110104
110460
  var require_tags = __commonJS({
110105
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js"(exports2) {
110461
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js"(exports2) {
110106
110462
  "use strict";
110107
110463
  var map = require_map6();
110108
110464
  var _null = require_null3();
@@ -110194,9 +110550,9 @@ var require_tags = __commonJS({
110194
110550
  }
110195
110551
  });
110196
110552
 
110197
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
110553
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
110198
110554
  var require_Schema = __commonJS({
110199
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js"(exports2) {
110555
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js"(exports2) {
110200
110556
  "use strict";
110201
110557
  var identity = require_identity3();
110202
110558
  var map = require_map6();
@@ -110226,9 +110582,9 @@ var require_Schema = __commonJS({
110226
110582
  }
110227
110583
  });
110228
110584
 
110229
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
110585
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
110230
110586
  var require_stringifyDocument = __commonJS({
110231
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
110587
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
110232
110588
  "use strict";
110233
110589
  var identity = require_identity3();
110234
110590
  var stringify2 = require_stringify3();
@@ -110306,9 +110662,9 @@ var require_stringifyDocument = __commonJS({
110306
110662
  }
110307
110663
  });
110308
110664
 
110309
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
110665
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
110310
110666
  var require_Document = __commonJS({
110311
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js"(exports2) {
110667
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js"(exports2) {
110312
110668
  "use strict";
110313
110669
  var Alias = require_Alias();
110314
110670
  var Collection = require_Collection();
@@ -110615,9 +110971,9 @@ var require_Document = __commonJS({
110615
110971
  }
110616
110972
  });
110617
110973
 
110618
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js
110974
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js
110619
110975
  var require_errors5 = __commonJS({
110620
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js"(exports2) {
110976
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js"(exports2) {
110621
110977
  "use strict";
110622
110978
  var YAMLError = class extends Error {
110623
110979
  constructor(name, pos, code, message) {
@@ -110680,9 +111036,9 @@ ${pointer}
110680
111036
  }
110681
111037
  });
110682
111038
 
110683
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
111039
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
110684
111040
  var require_resolve_props = __commonJS({
110685
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
111041
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
110686
111042
  "use strict";
110687
111043
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
110688
111044
  let spaceBefore = false;
@@ -110814,9 +111170,9 @@ var require_resolve_props = __commonJS({
110814
111170
  }
110815
111171
  });
110816
111172
 
110817
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
111173
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
110818
111174
  var require_util_contains_newline = __commonJS({
110819
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
111175
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
110820
111176
  "use strict";
110821
111177
  function containsNewline(key) {
110822
111178
  if (!key)
@@ -110856,9 +111212,9 @@ var require_util_contains_newline = __commonJS({
110856
111212
  }
110857
111213
  });
110858
111214
 
110859
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
111215
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
110860
111216
  var require_util_flow_indent_check = __commonJS({
110861
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
111217
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
110862
111218
  "use strict";
110863
111219
  var utilContainsNewline = require_util_contains_newline();
110864
111220
  function flowIndentCheck(indent, fc, onError) {
@@ -110874,9 +111230,9 @@ var require_util_flow_indent_check = __commonJS({
110874
111230
  }
110875
111231
  });
110876
111232
 
110877
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
111233
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
110878
111234
  var require_util_map_includes = __commonJS({
110879
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
111235
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
110880
111236
  "use strict";
110881
111237
  var identity = require_identity3();
110882
111238
  function mapIncludes(ctx, items, search) {
@@ -110890,9 +111246,9 @@ var require_util_map_includes = __commonJS({
110890
111246
  }
110891
111247
  });
110892
111248
 
110893
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
111249
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
110894
111250
  var require_resolve_block_map = __commonJS({
110895
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
111251
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
110896
111252
  "use strict";
110897
111253
  var Pair = require_Pair();
110898
111254
  var YAMLMap = require_YAMLMap();
@@ -110998,9 +111354,9 @@ var require_resolve_block_map = __commonJS({
110998
111354
  }
110999
111355
  });
111000
111356
 
111001
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
111357
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
111002
111358
  var require_resolve_block_seq = __commonJS({
111003
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
111359
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
111004
111360
  "use strict";
111005
111361
  var YAMLSeq = require_YAMLSeq();
111006
111362
  var resolveProps = require_resolve_props();
@@ -111049,9 +111405,9 @@ var require_resolve_block_seq = __commonJS({
111049
111405
  }
111050
111406
  });
111051
111407
 
111052
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
111408
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
111053
111409
  var require_resolve_end = __commonJS({
111054
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
111410
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
111055
111411
  "use strict";
111056
111412
  function resolveEnd(end, offset, reqSpace, onError) {
111057
111413
  let comment = "";
@@ -111092,9 +111448,9 @@ var require_resolve_end = __commonJS({
111092
111448
  }
111093
111449
  });
111094
111450
 
111095
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
111451
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
111096
111452
  var require_resolve_flow_collection = __commonJS({
111097
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
111453
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
111098
111454
  "use strict";
111099
111455
  var identity = require_identity3();
111100
111456
  var Pair = require_Pair();
@@ -111286,9 +111642,9 @@ var require_resolve_flow_collection = __commonJS({
111286
111642
  }
111287
111643
  });
111288
111644
 
111289
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
111645
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
111290
111646
  var require_compose_collection = __commonJS({
111291
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
111647
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
111292
111648
  "use strict";
111293
111649
  var identity = require_identity3();
111294
111650
  var Scalar = require_Scalar();
@@ -111351,9 +111707,9 @@ var require_compose_collection = __commonJS({
111351
111707
  }
111352
111708
  });
111353
111709
 
111354
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
111710
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
111355
111711
  var require_resolve_block_scalar = __commonJS({
111356
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
111712
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
111357
111713
  "use strict";
111358
111714
  var Scalar = require_Scalar();
111359
111715
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -111534,9 +111890,9 @@ var require_resolve_block_scalar = __commonJS({
111534
111890
  }
111535
111891
  });
111536
111892
 
111537
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
111893
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
111538
111894
  var require_resolve_flow_scalar = __commonJS({
111539
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
111895
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
111540
111896
  "use strict";
111541
111897
  var Scalar = require_Scalar();
111542
111898
  var resolveEnd = require_resolve_end();
@@ -111667,7 +112023,7 @@ var require_resolve_flow_scalar = __commonJS({
111667
112023
  while (next === " " || next === " ")
111668
112024
  next = source[++i + 1];
111669
112025
  } else if (next === "x" || next === "u" || next === "U") {
111670
- const length = { x: 2, u: 4, U: 8 }[next];
112026
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
111671
112027
  res += parseCharCode(source, i + 1, length, onError);
111672
112028
  i += length;
111673
112029
  } else {
@@ -111742,20 +112098,21 @@ var require_resolve_flow_scalar = __commonJS({
111742
112098
  const cc = source.substr(offset, length);
111743
112099
  const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
111744
112100
  const code = ok ? parseInt(cc, 16) : NaN;
111745
- if (isNaN(code)) {
112101
+ try {
112102
+ return String.fromCodePoint(code);
112103
+ } catch {
111746
112104
  const raw = source.substr(offset - 2, length + 2);
111747
112105
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
111748
112106
  return raw;
111749
112107
  }
111750
- return String.fromCodePoint(code);
111751
112108
  }
111752
112109
  exports2.resolveFlowScalar = resolveFlowScalar;
111753
112110
  }
111754
112111
  });
111755
112112
 
111756
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
112113
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
111757
112114
  var require_compose_scalar = __commonJS({
111758
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
112115
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
111759
112116
  "use strict";
111760
112117
  var identity = require_identity3();
111761
112118
  var Scalar = require_Scalar();
@@ -111834,9 +112191,9 @@ var require_compose_scalar = __commonJS({
111834
112191
  }
111835
112192
  });
111836
112193
 
111837
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
112194
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
111838
112195
  var require_util_empty_scalar_position = __commonJS({
111839
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
112196
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
111840
112197
  "use strict";
111841
112198
  function emptyScalarPosition(offset, before, pos) {
111842
112199
  if (before) {
@@ -111864,9 +112221,9 @@ var require_util_empty_scalar_position = __commonJS({
111864
112221
  }
111865
112222
  });
111866
112223
 
111867
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
112224
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
111868
112225
  var require_compose_node = __commonJS({
111869
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
112226
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
111870
112227
  "use strict";
111871
112228
  var Alias = require_Alias();
111872
112229
  var identity = require_identity3();
@@ -111970,9 +112327,9 @@ var require_compose_node = __commonJS({
111970
112327
  }
111971
112328
  });
111972
112329
 
111973
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
112330
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
111974
112331
  var require_compose_doc = __commonJS({
111975
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
112332
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
111976
112333
  "use strict";
111977
112334
  var Document = require_Document();
111978
112335
  var composeNode = require_compose_node();
@@ -112013,9 +112370,9 @@ var require_compose_doc = __commonJS({
112013
112370
  }
112014
112371
  });
112015
112372
 
112016
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
112373
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
112017
112374
  var require_composer = __commonJS({
112018
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js"(exports2) {
112375
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js"(exports2) {
112019
112376
  "use strict";
112020
112377
  var node_process = require("process");
112021
112378
  var directives = require_directives();
@@ -112219,9 +112576,9 @@ ${end.comment}` : end.comment;
112219
112576
  }
112220
112577
  });
112221
112578
 
112222
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
112579
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
112223
112580
  var require_cst_scalar = __commonJS({
112224
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
112581
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
112225
112582
  "use strict";
112226
112583
  var resolveBlockScalar = require_resolve_block_scalar();
112227
112584
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -112404,9 +112761,9 @@ var require_cst_scalar = __commonJS({
112404
112761
  }
112405
112762
  });
112406
112763
 
112407
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
112764
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
112408
112765
  var require_cst_stringify = __commonJS({
112409
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
112766
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
112410
112767
  "use strict";
112411
112768
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
112412
112769
  function stringifyToken(token) {
@@ -112465,9 +112822,9 @@ var require_cst_stringify = __commonJS({
112465
112822
  }
112466
112823
  });
112467
112824
 
112468
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
112825
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
112469
112826
  var require_cst_visit = __commonJS({
112470
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
112827
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
112471
112828
  "use strict";
112472
112829
  var BREAK = Symbol("break visit");
112473
112830
  var SKIP = Symbol("skip children");
@@ -112527,9 +112884,9 @@ var require_cst_visit = __commonJS({
112527
112884
  }
112528
112885
  });
112529
112886
 
112530
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
112887
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
112531
112888
  var require_cst = __commonJS({
112532
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js"(exports2) {
112889
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js"(exports2) {
112533
112890
  "use strict";
112534
112891
  var cstScalar = require_cst_scalar();
112535
112892
  var cstStringify = require_cst_stringify();
@@ -112629,9 +112986,9 @@ var require_cst = __commonJS({
112629
112986
  }
112630
112987
  });
112631
112988
 
112632
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
112989
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
112633
112990
  var require_lexer = __commonJS({
112634
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js"(exports2) {
112991
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js"(exports2) {
112635
112992
  "use strict";
112636
112993
  var cst = require_cst();
112637
112994
  function isEmpty(ch) {
@@ -113208,9 +113565,9 @@ var require_lexer = __commonJS({
113208
113565
  }
113209
113566
  });
113210
113567
 
113211
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
113568
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
113212
113569
  var require_line_counter = __commonJS({
113213
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
113570
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
113214
113571
  "use strict";
113215
113572
  var LineCounter = class {
113216
113573
  constructor() {
@@ -113239,9 +113596,9 @@ var require_line_counter = __commonJS({
113239
113596
  }
113240
113597
  });
113241
113598
 
113242
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
113599
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
113243
113600
  var require_parser = __commonJS({
113244
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js"(exports2) {
113601
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js"(exports2) {
113245
113602
  "use strict";
113246
113603
  var node_process = require("process");
113247
113604
  var cst = require_cst();
@@ -114106,9 +114463,9 @@ var require_parser = __commonJS({
114106
114463
  }
114107
114464
  });
114108
114465
 
114109
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js
114466
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js
114110
114467
  var require_public_api = __commonJS({
114111
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js"(exports2) {
114468
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js"(exports2) {
114112
114469
  "use strict";
114113
114470
  var composer = require_composer();
114114
114471
  var Document = require_Document();
@@ -114203,9 +114560,9 @@ var require_public_api = __commonJS({
114203
114560
  }
114204
114561
  });
114205
114562
 
114206
- // ../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js
114563
+ // ../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js
114207
114564
  var require_dist20 = __commonJS({
114208
- "../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js"(exports2) {
114565
+ "../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js"(exports2) {
114209
114566
  "use strict";
114210
114567
  var composer = require_composer();
114211
114568
  var Document = require_Document();
@@ -118065,9 +118422,9 @@ var require_drawRow = __commonJS({
118065
118422
  }
118066
118423
  });
118067
118424
 
118068
- // ../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
118425
+ // ../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
118069
118426
  var require_equal = __commonJS({
118070
- "../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports2) {
118427
+ "../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports2) {
118071
118428
  "use strict";
118072
118429
  Object.defineProperty(exports2, "__esModule", { value: true });
118073
118430
  var equal = require_fast_deep_equal();
@@ -128902,6 +129259,9 @@ var require_lockfileFormatConverters = __commonJS({
128902
129259
  var pickBy_1 = __importDefault2(require_pickBy());
128903
129260
  var pick_1 = __importDefault2(require_pick());
128904
129261
  var constants_1 = require_lib5();
129262
+ function isGitHostedTarballUrl(url) {
129263
+ return (url.startsWith("https://codeload.github.com/") || url.startsWith("https://bitbucket.org/") || url.startsWith("https://gitlab.com/")) && url.includes("tar.gz");
129264
+ }
128905
129265
  function convertToLockfileFile(lockfile) {
128906
129266
  const packages = {};
128907
129267
  const snapshots = {};
@@ -129028,6 +129388,7 @@ var require_lockfileFormatConverters = __commonJS({
129028
129388
  for (const [depPath, pkg] of Object.entries(lockfile.snapshots ?? {})) {
129029
129389
  const pkgId = (0, dependency_path_1.removeSuffix)(depPath);
129030
129390
  packages[depPath] = Object.assign(pkg, lockfile.packages?.[pkgId]);
129391
+ enrichGitHostedFlag(packages[depPath]?.resolution);
129031
129392
  }
129032
129393
  return {
129033
129394
  ...(0, omit_1.default)(["snapshots"], rest),
@@ -129035,6 +129396,17 @@ var require_lockfileFormatConverters = __commonJS({
129035
129396
  importers: mapValues(importers ?? {}, revertProjectSnapshot)
129036
129397
  };
129037
129398
  }
129399
+ function enrichGitHostedFlag(resolution) {
129400
+ if (resolution == null)
129401
+ return;
129402
+ if (resolution.type !== void 0)
129403
+ return;
129404
+ if (resolution.gitHosted != null)
129405
+ return;
129406
+ if (resolution.tarball != null && isGitHostedTarballUrl(resolution.tarball)) {
129407
+ resolution.gitHosted = true;
129408
+ }
129409
+ }
129038
129410
  function convertProjectSnapshotToInlineSpecifiersFormat(projectSnapshot) {
129039
129411
  const { specifiers, ...rest } = projectSnapshot;
129040
129412
  if (specifiers == null)
@@ -130215,10 +130587,9 @@ var require_pkgSnapshotToResolution = __commonJS({
130215
130587
  exports2.pkgSnapshotToResolution = pkgSnapshotToResolution;
130216
130588
  var url_1 = __importDefault2(require("url"));
130217
130589
  var get_npm_tarball_url_1 = __importDefault2(require_lib96());
130218
- var pick_fetcher_1 = require_lib84();
130219
130590
  var nameVerFromPkgSnapshot_js_1 = require_nameVerFromPkgSnapshot();
130220
130591
  function pkgSnapshotToResolution(depPath, pkgSnapshot, registries) {
130221
- if (Boolean(pkgSnapshot.resolution.type) || pkgSnapshot.resolution.tarball?.startsWith("file:") || (0, pick_fetcher_1.isGitHostedPkgUrl)(pkgSnapshot.resolution.tarball ?? "")) {
130592
+ if (Boolean(pkgSnapshot.resolution.type) || pkgSnapshot.resolution.tarball?.startsWith("file:") || pkgSnapshot.resolution.gitHosted === true) {
130222
130593
  return pkgSnapshot.resolution;
130223
130594
  }
130224
130595
  const { name, version: version2 } = (0, nameVerFromPkgSnapshot_js_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
@@ -130984,9 +131355,9 @@ var require_implementation = __commonJS({
130984
131355
  }
130985
131356
  const resolution = pkgSnapshot.resolution;
130986
131357
  let sideEffectsCacheKey;
130987
- const pkgId = `${pkgInfo.name}@${pkgInfo.version}`;
130988
- if (opts.skipIfHasSideEffectsCache && resolution.integrity) {
130989
- const filesIndexFile = (0, store_cafs_1.getIndexFilePathInCafs)(opts.storeDir, resolution.integrity.toString(), pkgId);
131358
+ const pkgId = pkgInfo.nonSemverVersion ?? `${pkgInfo.name}@${pkgInfo.version}`;
131359
+ if (opts.skipIfHasSideEffectsCache && (resolution.gitHosted === true || resolution.integrity)) {
131360
+ const filesIndexFile = pickRebuildIndexFilePath(opts.storeDir, resolution, pkgId, opts.virtualStoreDirMaxLength);
130990
131361
  let pkgFilesIndex;
130991
131362
  try {
130992
131363
  pkgFilesIndex = await (0, load_json_file_1.default)(filesIndexFile);
@@ -131019,9 +131390,9 @@ var require_implementation = __commonJS({
131019
131390
  shellEmulator: opts.shellEmulator,
131020
131391
  unsafePerm: opts.unsafePerm || false
131021
131392
  });
131022
- if (hasSideEffects && (opts.sideEffectsCacheWrite ?? true) && resolution.integrity) {
131393
+ if (hasSideEffects && (opts.sideEffectsCacheWrite ?? true) && (resolution.gitHosted === true || resolution.integrity)) {
131023
131394
  builtDepPaths.add(depPath);
131024
- const filesIndexFile = (0, store_cafs_1.getIndexFilePathInCafs)(opts.storeDir, resolution.integrity.toString(), pkgId);
131395
+ const filesIndexFile = pickRebuildIndexFilePath(opts.storeDir, resolution, pkgId, opts.virtualStoreDirMaxLength);
131025
131396
  try {
131026
131397
  if (!sideEffectsCacheKey) {
131027
131398
  sideEffectsCacheKey = (0, calc_dep_state_1.calcDepState)(depGraph, depsStateCache, depPath, {
@@ -131090,6 +131461,12 @@ var require_implementation = __commonJS({
131090
131461
  }
131091
131462
  return { pkgsThatWereRebuilt, ignoredPkgs };
131092
131463
  }
131464
+ function pickRebuildIndexFilePath(storeDir, resolution, pkgId, virtualStoreDirMaxLength) {
131465
+ if (resolution.gitHosted === true) {
131466
+ return path_1.default.join(storeDir, dp.depPathToFilename(pkgId, virtualStoreDirMaxLength), "integrity.json");
131467
+ }
131468
+ return (0, store_cafs_1.getIndexFilePathInCafs)(storeDir, resolution.integrity.toString(), pkgId);
131469
+ }
131093
131470
  function binDirsInAllParentDirs(pkgRoot, lockfileDir) {
131094
131471
  const binDirs = [];
131095
131472
  let dir = pkgRoot;
@@ -160538,11 +160915,19 @@ var require_updateLockfile = __commonJS({
160538
160915
  if (resolution.type !== void 0 || !resolution["integrity"]) {
160539
160916
  return resolution;
160540
160917
  }
160918
+ const tarball = resolution["tarball"];
160919
+ const gitHosted = resolution.gitHosted === true || tarball != null && isGitHostedTarballUrl(tarball);
160541
160920
  if (lockfileIncludeTarballUrl) {
160542
- return {
160921
+ return preservingGitHosted({
160543
160922
  integrity: resolution["integrity"],
160544
- tarball: resolution["tarball"]
160545
- };
160923
+ tarball
160924
+ }, gitHosted);
160925
+ }
160926
+ if (tarball != null && gitHosted) {
160927
+ return preservingGitHosted({
160928
+ integrity: resolution["integrity"],
160929
+ tarball
160930
+ }, gitHosted);
160546
160931
  }
160547
160932
  const expectedTarball = (0, get_npm_tarball_url_1.default)(pkg.name, pkg.version, { registry });
160548
160933
  const actualTarball = resolution["tarball"].replace("%2f", "/");
@@ -160556,6 +160941,12 @@ var require_updateLockfile = __commonJS({
160556
160941
  integrity: resolution["integrity"]
160557
160942
  };
160558
160943
  }
160944
+ function preservingGitHosted(resolution, gitHosted) {
160945
+ return gitHosted ? { ...resolution, gitHosted: true } : resolution;
160946
+ }
160947
+ function isGitHostedTarballUrl(url) {
160948
+ return (url.startsWith("https://codeload.github.com/") || url.startsWith("https://bitbucket.org/") || url.startsWith("https://gitlab.com/")) && url.includes("tar.gz");
160949
+ }
160559
160950
  function removeProtocol(url) {
160560
160951
  return url.split("://")[1];
160561
160952
  }
@@ -181121,16 +181512,22 @@ var require_installPnpmToTools = __commonJS({
181121
181512
  var path_1 = __importDefault2(require("path"));
181122
181513
  var cli_meta_1 = require_lib4();
181123
181514
  var exec_pnpm_cli_runner_1 = require_lib179();
181515
+ var logger_1 = require_lib23();
181124
181516
  var tools_path_1 = require_lib180();
181125
181517
  var rimraf_1 = require_rimraf();
181126
181518
  var path_temp_1 = require_path_temp();
181519
+ var semver_12 = __importDefault2(require_semver2());
181127
181520
  var symlink_dir_1 = __importDefault2(require_dist18());
181128
181521
  async function installPnpmToTools(pnpmVersion, opts) {
181129
181522
  const currentPkgName = (0, cli_meta_1.getCurrentPackageName)();
181523
+ const targetPkgName = currentPkgName === "@pnpm/exe" && process.platform === "darwin" && process.arch === "x64" && semver_12.default.major(pnpmVersion) >= 11 ? "pnpm" : currentPkgName;
181524
+ if (targetPkgName !== currentPkgName) {
181525
+ (0, logger_1.globalWarn)(`Switching from @pnpm/exe to the "pnpm" npm package because @pnpm/exe v${pnpmVersion} no longer ships a binary for Intel macOS (darwin-x64). The new "pnpm" install requires Node.js to be available on PATH. See https://github.com/pnpm/pnpm/issues/11423.`);
181526
+ }
181130
181527
  const dir = (0, tools_path_1.getToolDirPath)({
181131
181528
  pnpmHomeDir: opts.pnpmHomeDir,
181132
181529
  tool: {
181133
- name: currentPkgName,
181530
+ name: targetPkgName,
181134
181531
  version: pnpmVersion
181135
181532
  }
181136
181533
  });
@@ -181149,7 +181546,7 @@ var require_installPnpmToTools = __commonJS({
181149
181546
  try {
181150
181547
  (0, exec_pnpm_cli_runner_1.runPnpmCli)([
181151
181548
  "add",
181152
- `${currentPkgName}@${pnpmVersion}`,
181549
+ `${targetPkgName}@${pnpmVersion}`,
181153
181550
  "--loglevel=error",
181154
181551
  "--ignore-scripts",
181155
181552
  "--config.strict-dep-builds=false",
@@ -181178,7 +181575,7 @@ var require_installPnpmToTools = __commonJS({
181178
181575
  pnpm_config_pm_on_fail: "ignore"
181179
181576
  }
181180
181577
  });
181181
- if (currentPkgName === "@pnpm/exe") {
181578
+ if (targetPkgName === "@pnpm/exe") {
181182
181579
  linkExePlatformBinary(stage);
181183
181580
  }
181184
181581
  symlink_dir_1.default.sync(stage, dir);
@@ -181249,6 +181646,7 @@ var require_selfUpdate = __commonJS({
181249
181646
  var link_bins_1 = require_lib70();
181250
181647
  var pick_1 = __importDefault2(require_pick());
181251
181648
  var render_help_1 = __importDefault2(require_lib111());
181649
+ var semver_12 = __importDefault2(require_semver2());
181252
181650
  var installPnpmToTools_js_1 = require_installPnpmToTools();
181253
181651
  function rcOptionsTypes() {
181254
181652
  return (0, pick_1.default)([], config_1.types);
@@ -181259,6 +181657,9 @@ var require_selfUpdate = __commonJS({
181259
181657
  };
181260
181658
  }
181261
181659
  exports2.commandNames = ["self-update"];
181660
+ var MAJOR_UPGRADE_HINTS = {
181661
+ 11: "pnpm v11 removed or renamed several v10 settings. See https://pnpm.io/11.x/migration for migration instructions."
181662
+ };
181262
181663
  function help() {
181263
181664
  return (0, render_help_1.default)({
181264
181665
  description: "Updates pnpm to the latest version (or the one specified)",
@@ -181278,6 +181679,7 @@ var require_selfUpdate = __commonJS({
181278
181679
  }
181279
181680
  const { resolve } = (0, client_1.createResolver)({ ...opts, authConfig: opts.rawConfig });
181280
181681
  const pkgName = "pnpm";
181682
+ const isImplicitLatest = params.length === 0;
181281
181683
  const bareSpecifier = params[0] ?? "latest";
181282
181684
  const resolution = await resolve({ alias: pkgName, bareSpecifier }, {
181283
181685
  lockfileDir: opts.lockfileDir ?? opts.dir,
@@ -181287,8 +181689,28 @@ var require_selfUpdate = __commonJS({
181287
181689
  if (!resolution?.manifest) {
181288
181690
  throw new error_1.PnpmError("CANNOT_RESOLVE_PNPM", `Cannot find "${bareSpecifier}" version of pnpm`);
181289
181691
  }
181692
+ const targetVersion = resolution.manifest.version;
181693
+ let previousVersion;
181694
+ if (opts.wantedPackageManager?.name === cli_meta_1.packageManager.name && opts.managePackageManagerVersions) {
181695
+ if (opts.wantedPackageManager.version !== targetVersion) {
181696
+ previousVersion = opts.wantedPackageManager.version;
181697
+ }
181698
+ } else if (cli_meta_1.packageManager.version !== targetVersion) {
181699
+ previousVersion = cli_meta_1.packageManager.version;
181700
+ }
181701
+ const previousMajor = previousVersion != null ? semver_12.default.coerce(previousVersion)?.major : void 0;
181702
+ const targetMajor = semver_12.default.major(targetVersion);
181703
+ if (previousMajor != null && targetMajor > previousMajor) {
181704
+ const hint = MAJOR_UPGRADE_HINTS[targetMajor];
181705
+ if (hint)
181706
+ (0, logger_1.globalWarn)(hint);
181707
+ }
181290
181708
  if (opts.wantedPackageManager?.name === cli_meta_1.packageManager.name && opts.managePackageManagerVersions) {
181291
181709
  if (opts.wantedPackageManager?.version !== resolution.manifest.version) {
181710
+ const pinnedVersion = opts.wantedPackageManager.version;
181711
+ if (isImplicitLatest && pinnedVersion != null && semver_12.default.lt(resolution.manifest.version, pinnedVersion)) {
181712
+ return `The current project is set to use pnpm v${pinnedVersion}, which is newer than the "latest" version on the registry (v${resolution.manifest.version}). No update performed. Run "pnpm self-update latest" to downgrade.`;
181713
+ }
181292
181714
  const { manifest, writeProjectManifest } = await (0, read_project_manifest_1.readProjectManifest)(opts.rootProjectManifestDir);
181293
181715
  manifest.packageManager = `pnpm@${resolution.manifest.version}`;
181294
181716
  await writeProjectManifest(manifest);
@@ -181300,6 +181722,9 @@ var require_selfUpdate = __commonJS({
181300
181722
  if (resolution.manifest.version === cli_meta_1.packageManager.version) {
181301
181723
  return `The currently active ${cli_meta_1.packageManager.name} v${cli_meta_1.packageManager.version} is already "${bareSpecifier}" and doesn't need an update`;
181302
181724
  }
181725
+ if (isImplicitLatest && semver_12.default.lt(resolution.manifest.version, cli_meta_1.packageManager.version)) {
181726
+ return `The currently active ${cli_meta_1.packageManager.name} v${cli_meta_1.packageManager.version} is newer than the "latest" version on the registry (v${resolution.manifest.version}). No update performed. Run "pnpm self-update latest" to downgrade.`;
181727
+ }
181303
181728
  const { baseDir, alreadyExisted } = await (0, installPnpmToTools_js_1.installPnpmToTools)(resolution.manifest.version, opts);
181304
181729
  await (0, link_bins_1.linkBins)(path_1.default.join(baseDir, "node_modules"), opts.pnpmHomeDir, {
181305
181730
  warn: logger_1.globalWarn
@@ -183780,7 +184205,8 @@ var require_getPkgInfo3 = __commonJS({
183780
184205
  files: localInfo.filesIndex
183781
184206
  };
183782
184207
  }
183783
- const isPackageWithIntegrity = "integrity" in packageResolution;
184208
+ const isGitHosted = !packageResolution.type && packageResolution.gitHosted === true;
184209
+ const isPackageWithIntegrity = !isGitHosted && "integrity" in packageResolution;
183784
184210
  let pkgIndexFilePath;
183785
184211
  if (isPackageWithIntegrity) {
183786
184212
  const parsedId = (0, dependency_path_1.parse)(id);
@@ -194471,9 +194897,9 @@ var require_get_proto = __commonJS({
194471
194897
  }
194472
194898
  });
194473
194899
 
194474
- // ../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
194900
+ // ../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js
194475
194901
  var require_hasown = __commonJS({
194476
- "../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) {
194902
+ "../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js"(exports2, module2) {
194477
194903
  "use strict";
194478
194904
  var call = Function.prototype.call;
194479
194905
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -194949,9 +195375,9 @@ var require_applyBind = __commonJS({
194949
195375
  }
194950
195376
  });
194951
195377
 
194952
- // ../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
195378
+ // ../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js
194953
195379
  var require_call_bind = __commonJS({
194954
- "../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(exports2, module2) {
195380
+ "../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js"(exports2, module2) {
194955
195381
  "use strict";
194956
195382
  var setFunctionLength = require_set_function_length();
194957
195383
  var $defineProperty = require_es_define_property();
@@ -194959,10 +195385,10 @@ var require_call_bind = __commonJS({
194959
195385
  var applyBind = require_applyBind();
194960
195386
  module2.exports = function callBind(originalFunction) {
194961
195387
  var func = callBindBasic(arguments);
194962
- var adjustedLength = originalFunction.length - (arguments.length - 1);
195388
+ var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
194963
195389
  return setFunctionLength(
194964
195390
  func,
194965
- 1 + (adjustedLength > 0 ? adjustedLength : 0),
195391
+ adjustedLength > 0 ? adjustedLength : 0,
194966
195392
  true
194967
195393
  );
194968
195394
  };
@@ -195223,9 +195649,9 @@ var require_call_bound = __commonJS({
195223
195649
  }
195224
195650
  });
195225
195651
 
195226
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/IsArray.js
195652
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/IsArray.js
195227
195653
  var require_IsArray = __commonJS({
195228
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/IsArray.js"(exports2, module2) {
195654
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/IsArray.js"(exports2, module2) {
195229
195655
  "use strict";
195230
195656
  var GetIntrinsic = require_get_intrinsic();
195231
195657
  var $Array = GetIntrinsic("%Array%");
@@ -195236,17 +195662,17 @@ var require_IsArray = __commonJS({
195236
195662
  }
195237
195663
  });
195238
195664
 
195239
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsArray.js
195665
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsArray.js
195240
195666
  var require_IsArray2 = __commonJS({
195241
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsArray.js"(exports2, module2) {
195667
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsArray.js"(exports2, module2) {
195242
195668
  "use strict";
195243
195669
  module2.exports = require_IsArray();
195244
195670
  }
195245
195671
  });
195246
195672
 
195247
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Call.js
195673
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Call.js
195248
195674
  var require_Call = __commonJS({
195249
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Call.js"(exports2, module2) {
195675
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Call.js"(exports2, module2) {
195250
195676
  "use strict";
195251
195677
  var GetIntrinsic = require_get_intrinsic();
195252
195678
  var callBound = require_call_bound();
@@ -195801,9 +196227,9 @@ var require_object_inspect = __commonJS({
195801
196227
  }
195802
196228
  });
195803
196229
 
195804
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isPropertyKey.js
196230
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isPropertyKey.js
195805
196231
  var require_isPropertyKey = __commonJS({
195806
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isPropertyKey.js"(exports2, module2) {
196232
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isPropertyKey.js"(exports2, module2) {
195807
196233
  "use strict";
195808
196234
  module2.exports = function isPropertyKey(argument) {
195809
196235
  return typeof argument === "string" || typeof argument === "symbol";
@@ -195821,9 +196247,9 @@ var require_isObject3 = __commonJS({
195821
196247
  }
195822
196248
  });
195823
196249
 
195824
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Get.js
196250
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Get.js
195825
196251
  var require_Get = __commonJS({
195826
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Get.js"(exports2, module2) {
196252
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Get.js"(exports2, module2) {
195827
196253
  "use strict";
195828
196254
  var $TypeError = require_type4();
195829
196255
  var inspect = require_object_inspect();
@@ -195841,9 +196267,9 @@ var require_Get = __commonJS({
195841
196267
  }
195842
196268
  });
195843
196269
 
195844
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/GetV.js
196270
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/GetV.js
195845
196271
  var require_GetV = __commonJS({
195846
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/GetV.js"(exports2, module2) {
196272
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/GetV.js"(exports2, module2) {
195847
196273
  "use strict";
195848
196274
  var $TypeError = require_type4();
195849
196275
  var inspect = require_object_inspect();
@@ -195975,17 +196401,17 @@ var require_is_callable = __commonJS({
195975
196401
  }
195976
196402
  });
195977
196403
 
195978
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsCallable.js
196404
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsCallable.js
195979
196405
  var require_IsCallable = __commonJS({
195980
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsCallable.js"(exports2, module2) {
196406
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsCallable.js"(exports2, module2) {
195981
196407
  "use strict";
195982
196408
  module2.exports = require_is_callable();
195983
196409
  }
195984
196410
  });
195985
196411
 
195986
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/GetMethod.js
196412
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/GetMethod.js
195987
196413
  var require_GetMethod = __commonJS({
195988
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/GetMethod.js"(exports2, module2) {
196414
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/GetMethod.js"(exports2, module2) {
195989
196415
  "use strict";
195990
196416
  var $TypeError = require_type4();
195991
196417
  var GetV = require_GetV();
@@ -196088,9 +196514,9 @@ var require_is_regex = __commonJS({
196088
196514
  }
196089
196515
  });
196090
196516
 
196091
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToBoolean.js
196517
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToBoolean.js
196092
196518
  var require_ToBoolean = __commonJS({
196093
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToBoolean.js"(exports2, module2) {
196519
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToBoolean.js"(exports2, module2) {
196094
196520
  "use strict";
196095
196521
  module2.exports = function ToBoolean(value) {
196096
196522
  return !!value;
@@ -196098,9 +196524,9 @@ var require_ToBoolean = __commonJS({
196098
196524
  }
196099
196525
  });
196100
196526
 
196101
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsRegExp.js
196527
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsRegExp.js
196102
196528
  var require_IsRegExp = __commonJS({
196103
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsRegExp.js"(exports2, module2) {
196529
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsRegExp.js"(exports2, module2) {
196104
196530
  "use strict";
196105
196531
  var GetIntrinsic = require_get_intrinsic();
196106
196532
  var $match = GetIntrinsic("%Symbol.match%", true);
@@ -196122,9 +196548,9 @@ var require_IsRegExp = __commonJS({
196122
196548
  }
196123
196549
  });
196124
196550
 
196125
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToString.js
196551
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToString.js
196126
196552
  var require_ToString = __commonJS({
196127
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToString.js"(exports2, module2) {
196553
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToString.js"(exports2, module2) {
196128
196554
  "use strict";
196129
196555
  var GetIntrinsic = require_get_intrinsic();
196130
196556
  var $String = GetIntrinsic("%String%");
@@ -196346,9 +196772,9 @@ var require_regexp_prototype = __commonJS({
196346
196772
  }
196347
196773
  });
196348
196774
 
196349
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isLeadingSurrogate.js
196775
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isLeadingSurrogate.js
196350
196776
  var require_isLeadingSurrogate = __commonJS({
196351
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isLeadingSurrogate.js"(exports2, module2) {
196777
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isLeadingSurrogate.js"(exports2, module2) {
196352
196778
  "use strict";
196353
196779
  module2.exports = function isLeadingSurrogate(charCode) {
196354
196780
  return typeof charCode === "number" && charCode >= 55296 && charCode <= 56319;
@@ -196356,9 +196782,9 @@ var require_isLeadingSurrogate = __commonJS({
196356
196782
  }
196357
196783
  });
196358
196784
 
196359
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isTrailingSurrogate.js
196785
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isTrailingSurrogate.js
196360
196786
  var require_isTrailingSurrogate = __commonJS({
196361
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isTrailingSurrogate.js"(exports2, module2) {
196787
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isTrailingSurrogate.js"(exports2, module2) {
196362
196788
  "use strict";
196363
196789
  module2.exports = function isTrailingSurrogate(charCode) {
196364
196790
  return typeof charCode === "number" && charCode >= 56320 && charCode <= 57343;
@@ -196366,9 +196792,9 @@ var require_isTrailingSurrogate = __commonJS({
196366
196792
  }
196367
196793
  });
196368
196794
 
196369
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js
196795
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js
196370
196796
  var require_UTF16SurrogatePairToCodePoint = __commonJS({
196371
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js"(exports2, module2) {
196797
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js"(exports2, module2) {
196372
196798
  "use strict";
196373
196799
  var GetIntrinsic = require_get_intrinsic();
196374
196800
  var $TypeError = require_type4();
@@ -196384,9 +196810,9 @@ var require_UTF16SurrogatePairToCodePoint = __commonJS({
196384
196810
  }
196385
196811
  });
196386
196812
 
196387
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CodePointAt.js
196813
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CodePointAt.js
196388
196814
  var require_CodePointAt = __commonJS({
196389
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CodePointAt.js"(exports2, module2) {
196815
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CodePointAt.js"(exports2, module2) {
196390
196816
  "use strict";
196391
196817
  var $TypeError = require_type4();
196392
196818
  var callBound = require_call_bound();
@@ -196476,9 +196902,9 @@ var require_maxSafeInteger = __commonJS({
196476
196902
  }
196477
196903
  });
196478
196904
 
196479
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/AdvanceStringIndex.js
196905
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/AdvanceStringIndex.js
196480
196906
  var require_AdvanceStringIndex = __commonJS({
196481
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/AdvanceStringIndex.js"(exports2, module2) {
196907
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/AdvanceStringIndex.js"(exports2, module2) {
196482
196908
  "use strict";
196483
196909
  var CodePointAt = require_CodePointAt();
196484
196910
  var $TypeError = require_type4();
@@ -196507,9 +196933,9 @@ var require_AdvanceStringIndex = __commonJS({
196507
196933
  }
196508
196934
  });
196509
196935
 
196510
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CreateIterResultObject.js
196936
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CreateIterResultObject.js
196511
196937
  var require_CreateIterResultObject = __commonJS({
196512
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CreateIterResultObject.js"(exports2, module2) {
196938
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CreateIterResultObject.js"(exports2, module2) {
196513
196939
  "use strict";
196514
196940
  var $TypeError = require_type4();
196515
196941
  module2.exports = function CreateIterResultObject(value, done) {
@@ -196524,9 +196950,9 @@ var require_CreateIterResultObject = __commonJS({
196524
196950
  }
196525
196951
  });
196526
196952
 
196527
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/records/property-descriptor.js
196953
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/records/property-descriptor.js
196528
196954
  var require_property_descriptor = __commonJS({
196529
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/records/property-descriptor.js"(exports2, module2) {
196955
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/records/property-descriptor.js"(exports2, module2) {
196530
196956
  "use strict";
196531
196957
  var $TypeError = require_type4();
196532
196958
  var hasOwn = require_hasown();
@@ -196558,9 +196984,9 @@ var require_property_descriptor = __commonJS({
196558
196984
  }
196559
196985
  });
196560
196986
 
196561
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/DefineOwnProperty.js
196987
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/DefineOwnProperty.js
196562
196988
  var require_DefineOwnProperty = __commonJS({
196563
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/DefineOwnProperty.js"(exports2, module2) {
196989
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/DefineOwnProperty.js"(exports2, module2) {
196564
196990
  "use strict";
196565
196991
  var hasPropertyDescriptors = require_has_property_descriptors();
196566
196992
  var $defineProperty = require_es_define_property();
@@ -196593,9 +197019,9 @@ var require_DefineOwnProperty = __commonJS({
196593
197019
  }
196594
197020
  });
196595
197021
 
196596
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/fromPropertyDescriptor.js
197022
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/fromPropertyDescriptor.js
196597
197023
  var require_fromPropertyDescriptor = __commonJS({
196598
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/fromPropertyDescriptor.js"(exports2, module2) {
197024
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/fromPropertyDescriptor.js"(exports2, module2) {
196599
197025
  "use strict";
196600
197026
  module2.exports = function fromPropertyDescriptor(Desc) {
196601
197027
  if (typeof Desc === "undefined") {
@@ -196625,9 +197051,9 @@ var require_fromPropertyDescriptor = __commonJS({
196625
197051
  }
196626
197052
  });
196627
197053
 
196628
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/FromPropertyDescriptor.js
197054
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/FromPropertyDescriptor.js
196629
197055
  var require_FromPropertyDescriptor = __commonJS({
196630
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/FromPropertyDescriptor.js"(exports2, module2) {
197056
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/FromPropertyDescriptor.js"(exports2, module2) {
196631
197057
  "use strict";
196632
197058
  var $TypeError = require_type4();
196633
197059
  var isPropertyDescriptor = require_property_descriptor();
@@ -196641,9 +197067,9 @@ var require_FromPropertyDescriptor = __commonJS({
196641
197067
  }
196642
197068
  });
196643
197069
 
196644
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsDataDescriptor.js
197070
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsDataDescriptor.js
196645
197071
  var require_IsDataDescriptor = __commonJS({
196646
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsDataDescriptor.js"(exports2, module2) {
197072
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsDataDescriptor.js"(exports2, module2) {
196647
197073
  "use strict";
196648
197074
  var $TypeError = require_type4();
196649
197075
  var hasOwn = require_hasown();
@@ -196663,9 +197089,9 @@ var require_IsDataDescriptor = __commonJS({
196663
197089
  }
196664
197090
  });
196665
197091
 
196666
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/SameValue.js
197092
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/SameValue.js
196667
197093
  var require_SameValue = __commonJS({
196668
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/SameValue.js"(exports2, module2) {
197094
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/SameValue.js"(exports2, module2) {
196669
197095
  "use strict";
196670
197096
  var $isNaN = require_isNaN();
196671
197097
  module2.exports = function SameValue(x, y) {
@@ -196680,9 +197106,9 @@ var require_SameValue = __commonJS({
196680
197106
  }
196681
197107
  });
196682
197108
 
196683
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToPropertyDescriptor.js
197109
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToPropertyDescriptor.js
196684
197110
  var require_ToPropertyDescriptor = __commonJS({
196685
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToPropertyDescriptor.js"(exports2, module2) {
197111
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToPropertyDescriptor.js"(exports2, module2) {
196686
197112
  "use strict";
196687
197113
  var hasOwn = require_hasown();
196688
197114
  var $TypeError = require_type4();
@@ -196728,9 +197154,9 @@ var require_ToPropertyDescriptor = __commonJS({
196728
197154
  }
196729
197155
  });
196730
197156
 
196731
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/DefinePropertyOrThrow.js
197157
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/DefinePropertyOrThrow.js
196732
197158
  var require_DefinePropertyOrThrow = __commonJS({
196733
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/DefinePropertyOrThrow.js"(exports2, module2) {
197159
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/DefinePropertyOrThrow.js"(exports2, module2) {
196734
197160
  "use strict";
196735
197161
  var $TypeError = require_type4();
196736
197162
  var isObject = require_isObject3();
@@ -196764,9 +197190,9 @@ var require_DefinePropertyOrThrow = __commonJS({
196764
197190
  }
196765
197191
  });
196766
197192
 
196767
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isPrimitive.js
197193
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isPrimitive.js
196768
197194
  var require_isPrimitive = __commonJS({
196769
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/isPrimitive.js"(exports2, module2) {
197195
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/isPrimitive.js"(exports2, module2) {
196770
197196
  "use strict";
196771
197197
  module2.exports = function isPrimitive(value) {
196772
197198
  return value === null || typeof value !== "function" && typeof value !== "object";
@@ -196774,9 +197200,9 @@ var require_isPrimitive = __commonJS({
196774
197200
  }
196775
197201
  });
196776
197202
 
196777
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsExtensible.js
197203
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsExtensible.js
196778
197204
  var require_IsExtensible = __commonJS({
196779
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsExtensible.js"(exports2, module2) {
197205
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsExtensible.js"(exports2, module2) {
196780
197206
  "use strict";
196781
197207
  var GetIntrinsic = require_get_intrinsic();
196782
197208
  var $preventExtensions = GetIntrinsic("%Object.preventExtensions%", true);
@@ -196790,9 +197216,9 @@ var require_IsExtensible = __commonJS({
196790
197216
  }
196791
197217
  });
196792
197218
 
196793
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/DefineMethodProperty.js
197219
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/DefineMethodProperty.js
196794
197220
  var require_DefineMethodProperty = __commonJS({
196795
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/DefineMethodProperty.js"(exports2, module2) {
197221
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/DefineMethodProperty.js"(exports2, module2) {
196796
197222
  "use strict";
196797
197223
  var $TypeError = require_type4();
196798
197224
  var isObject = require_isObject3();
@@ -196827,9 +197253,9 @@ var require_DefineMethodProperty = __commonJS({
196827
197253
  }
196828
197254
  });
196829
197255
 
196830
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/forEach.js
197256
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/forEach.js
196831
197257
  var require_forEach2 = __commonJS({
196832
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/helpers/forEach.js"(exports2, module2) {
197258
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/helpers/forEach.js"(exports2, module2) {
196833
197259
  "use strict";
196834
197260
  module2.exports = function forEach(array, callback) {
196835
197261
  for (var i = 0; i < array.length; i += 1) {
@@ -196839,9 +197265,9 @@ var require_forEach2 = __commonJS({
196839
197265
  }
196840
197266
  });
196841
197267
 
196842
- // ../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js
197268
+ // ../node_modules/.pnpm/side-channel-list@1.0.1/node_modules/side-channel-list/index.js
196843
197269
  var require_side_channel_list = __commonJS({
196844
- "../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js"(exports2, module2) {
197270
+ "../node_modules/.pnpm/side-channel-list@1.0.1/node_modules/side-channel-list/index.js"(exports2, module2) {
196845
197271
  "use strict";
196846
197272
  var inspect = require_object_inspect();
196847
197273
  var $TypeError = require_type4();
@@ -196901,9 +197327,8 @@ var require_side_channel_list = __commonJS({
196901
197327
  }
196902
197328
  },
196903
197329
  "delete": function(key) {
196904
- var root = $o && $o.next;
196905
197330
  var deletedNode = listDelete($o, key);
196906
- if (deletedNode && root && root === deletedNode) {
197331
+ if (deletedNode && $o && !$o.next) {
196907
197332
  $o = void 0;
196908
197333
  }
196909
197334
  return !!deletedNode;
@@ -197188,9 +197613,9 @@ var require_has_proto = __commonJS({
197188
197613
  }
197189
197614
  });
197190
197615
 
197191
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/OrdinaryObjectCreate.js
197616
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/OrdinaryObjectCreate.js
197192
197617
  var require_OrdinaryObjectCreate = __commonJS({
197193
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/OrdinaryObjectCreate.js"(exports2, module2) {
197618
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/OrdinaryObjectCreate.js"(exports2, module2) {
197194
197619
  "use strict";
197195
197620
  var GetIntrinsic = require_get_intrinsic();
197196
197621
  var $ObjectCreate = GetIntrinsic("%Object.create%", true);
@@ -197233,9 +197658,9 @@ var require_OrdinaryObjectCreate = __commonJS({
197233
197658
  }
197234
197659
  });
197235
197660
 
197236
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/RegExpExec.js
197661
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/RegExpExec.js
197237
197662
  var require_RegExpExec = __commonJS({
197238
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/RegExpExec.js"(exports2, module2) {
197663
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/RegExpExec.js"(exports2, module2) {
197239
197664
  "use strict";
197240
197665
  var $TypeError = require_type4();
197241
197666
  var isObject = require_isObject3();
@@ -197263,9 +197688,9 @@ var require_RegExpExec = __commonJS({
197263
197688
  }
197264
197689
  });
197265
197690
 
197266
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Set.js
197691
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Set.js
197267
197692
  var require_Set3 = __commonJS({
197268
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Set.js"(exports2, module2) {
197693
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Set.js"(exports2, module2) {
197269
197694
  "use strict";
197270
197695
  var $TypeError = require_type4();
197271
197696
  var isObject = require_isObject3();
@@ -197484,9 +197909,9 @@ var require_es2015 = __commonJS({
197484
197909
  }
197485
197910
  });
197486
197911
 
197487
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToPrimitive.js
197912
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToPrimitive.js
197488
197913
  var require_ToPrimitive = __commonJS({
197489
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToPrimitive.js"(exports2, module2) {
197914
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToPrimitive.js"(exports2, module2) {
197490
197915
  "use strict";
197491
197916
  var toPrimitive = require_es2015();
197492
197917
  module2.exports = function ToPrimitive(input) {
@@ -197577,9 +198002,9 @@ var require_string_prototype = __commonJS({
197577
198002
  }
197578
198003
  });
197579
198004
 
197580
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/StringToNumber.js
198005
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/StringToNumber.js
197581
198006
  var require_StringToNumber = __commonJS({
197582
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/StringToNumber.js"(exports2, module2) {
198007
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/StringToNumber.js"(exports2, module2) {
197583
198008
  "use strict";
197584
198009
  var GetIntrinsic = require_get_intrinsic();
197585
198010
  var $RegExp = GetIntrinsic("%RegExp%");
@@ -197617,9 +198042,9 @@ var require_StringToNumber = __commonJS({
197617
198042
  }
197618
198043
  });
197619
198044
 
197620
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToNumber.js
198045
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToNumber.js
197621
198046
  var require_ToNumber = __commonJS({
197622
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToNumber.js"(exports2, module2) {
198047
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToNumber.js"(exports2, module2) {
197623
198048
  "use strict";
197624
198049
  var GetIntrinsic = require_get_intrinsic();
197625
198050
  var $TypeError = require_type4();
@@ -197643,9 +198068,9 @@ var require_ToNumber = __commonJS({
197643
198068
  }
197644
198069
  });
197645
198070
 
197646
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/floor.js
198071
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/floor.js
197647
198072
  var require_floor2 = __commonJS({
197648
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/floor.js"(exports2, module2) {
198073
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/floor.js"(exports2, module2) {
197649
198074
  "use strict";
197650
198075
  var $floor = require_floor();
197651
198076
  module2.exports = function floor(x) {
@@ -197657,9 +198082,9 @@ var require_floor2 = __commonJS({
197657
198082
  }
197658
198083
  });
197659
198084
 
197660
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/truncate.js
198085
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/truncate.js
197661
198086
  var require_truncate2 = __commonJS({
197662
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/truncate.js"(exports2, module2) {
198087
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/truncate.js"(exports2, module2) {
197663
198088
  "use strict";
197664
198089
  var floor = require_floor2();
197665
198090
  var $TypeError = require_type4();
@@ -197673,9 +198098,9 @@ var require_truncate2 = __commonJS({
197673
198098
  }
197674
198099
  });
197675
198100
 
197676
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToIntegerOrInfinity.js
198101
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToIntegerOrInfinity.js
197677
198102
  var require_ToIntegerOrInfinity = __commonJS({
197678
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToIntegerOrInfinity.js"(exports2, module2) {
198103
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToIntegerOrInfinity.js"(exports2, module2) {
197679
198104
  "use strict";
197680
198105
  var ToNumber = require_ToNumber();
197681
198106
  var truncate = require_truncate2();
@@ -197694,9 +198119,9 @@ var require_ToIntegerOrInfinity = __commonJS({
197694
198119
  }
197695
198120
  });
197696
198121
 
197697
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToLength.js
198122
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToLength.js
197698
198123
  var require_ToLength = __commonJS({
197699
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/ToLength.js"(exports2, module2) {
198124
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/ToLength.js"(exports2, module2) {
197700
198125
  "use strict";
197701
198126
  var MAX_SAFE_INTEGER = require_maxSafeInteger();
197702
198127
  var ToIntegerOrInfinity = require_ToIntegerOrInfinity();
@@ -197745,9 +198170,9 @@ var require_es_set_tostringtag = __commonJS({
197745
198170
  }
197746
198171
  });
197747
198172
 
197748
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CreateRegExpStringIterator.js
198173
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CreateRegExpStringIterator.js
197749
198174
  var require_CreateRegExpStringIterator = __commonJS({
197750
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/CreateRegExpStringIterator.js"(exports2, module2) {
198175
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/CreateRegExpStringIterator.js"(exports2, module2) {
197751
198176
  "use strict";
197752
198177
  var GetIntrinsic = require_get_intrinsic();
197753
198178
  var hasSymbols = require_has_symbols()();
@@ -197833,17 +198258,17 @@ var require_CreateRegExpStringIterator = __commonJS({
197833
198258
  }
197834
198259
  });
197835
198260
 
197836
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/GetIntrinsic.js
198261
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/GetIntrinsic.js
197837
198262
  var require_GetIntrinsic = __commonJS({
197838
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/GetIntrinsic.js"(exports2, module2) {
198263
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/GetIntrinsic.js"(exports2, module2) {
197839
198264
  "use strict";
197840
198265
  module2.exports = require_get_intrinsic();
197841
198266
  }
197842
198267
  });
197843
198268
 
197844
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsConstructor.js
198269
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsConstructor.js
197845
198270
  var require_IsConstructor = __commonJS({
197846
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/IsConstructor.js"(exports2, module2) {
198271
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/IsConstructor.js"(exports2, module2) {
197847
198272
  "use strict";
197848
198273
  var GetIntrinsic = require_GetIntrinsic();
197849
198274
  var $construct = GetIntrinsic("%Reflect.construct%", true);
@@ -197880,9 +198305,9 @@ var require_IsConstructor = __commonJS({
197880
198305
  }
197881
198306
  });
197882
198307
 
197883
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/SpeciesConstructor.js
198308
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/SpeciesConstructor.js
197884
198309
  var require_SpeciesConstructor = __commonJS({
197885
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/SpeciesConstructor.js"(exports2, module2) {
198310
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/SpeciesConstructor.js"(exports2, module2) {
197886
198311
  "use strict";
197887
198312
  var GetIntrinsic = require_get_intrinsic();
197888
198313
  var $species = GetIntrinsic("%Symbol.species%", true);
@@ -197912,9 +198337,9 @@ var require_SpeciesConstructor = __commonJS({
197912
198337
  }
197913
198338
  });
197914
198339
 
197915
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/5/Type.js
198340
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/5/Type.js
197916
198341
  var require_Type = __commonJS({
197917
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/5/Type.js"(exports2, module2) {
198342
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/5/Type.js"(exports2, module2) {
197918
198343
  "use strict";
197919
198344
  var isObject = require_isObject3();
197920
198345
  module2.exports = function Type(x) {
@@ -197940,9 +198365,9 @@ var require_Type = __commonJS({
197940
198365
  }
197941
198366
  });
197942
198367
 
197943
- // ../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Type.js
198368
+ // ../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Type.js
197944
198369
  var require_Type2 = __commonJS({
197945
- "../node_modules/.pnpm/es-abstract@1.24.1/node_modules/es-abstract/2024/Type.js"(exports2, module2) {
198370
+ "../node_modules/.pnpm/es-abstract@1.24.2/node_modules/es-abstract/2024/Type.js"(exports2, module2) {
197946
198371
  "use strict";
197947
198372
  var ES5Type = require_Type();
197948
198373
  module2.exports = function Type(x) {
@@ -199825,16 +200250,18 @@ var require_storeStatus = __commonJS({
199825
200250
  return [];
199826
200251
  const pkgs = Object.entries(wantedLockfile.packages ?? {}).filter(([depPath]) => !skipped.has(depPath)).map(([depPath, pkgSnapshot]) => {
199827
200252
  const id = (0, lockfile_utils_1.packageIdFromSnapshot)(depPath, pkgSnapshot);
200253
+ const resolution = pkgSnapshot.resolution;
199828
200254
  return {
199829
200255
  depPath,
199830
200256
  id,
199831
- integrity: pkgSnapshot.resolution.integrity,
200257
+ integrity: resolution.integrity,
200258
+ gitHosted: resolution.gitHosted === true,
199832
200259
  pkgPath: depPath,
199833
200260
  ...(0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot)
199834
200261
  };
199835
200262
  });
199836
- const modified = await (0, p_filter_1.default)(pkgs, async ({ id, integrity, depPath, name }) => {
199837
- const pkgIndexFilePath = integrity ? (0, store_cafs_1.getIndexFilePathInCafs)(storeDir, integrity, id) : path_1.default.join(storeDir, dp.depPathToFilename(id, maybeOpts.virtualStoreDirMaxLength), "integrity.json");
200263
+ const modified = await (0, p_filter_1.default)(pkgs, async ({ id, integrity, gitHosted, depPath, name }) => {
200264
+ const pkgIndexFilePath = !gitHosted && integrity ? (0, store_cafs_1.getIndexFilePathInCafs)(storeDir, integrity, id) : path_1.default.join(storeDir, dp.depPathToFilename(id, maybeOpts.virtualStoreDirMaxLength), "integrity.json");
199838
200265
  const { files } = await (0, load_json_file_1.default)(pkgIndexFilePath);
199839
200266
  return await dint_1.default.check(path_1.default.join(virtualStoreDir, dp.depPathToFilename(depPath, maybeOpts.virtualStoreDirMaxLength), "node_modules", name), files) === false;
199840
200267
  }, { concurrency: 8 });
@@ -201939,7 +202366,7 @@ var require_main2 = __commonJS({
201939
202366
  const relativeWSDirPath = () => path_1.default.relative(process.cwd(), wsDir) || ".";
201940
202367
  if (config.workspaceRoot) {
201941
202368
  filters.push({ filter: `{${relativeWSDirPath()}}`, followProdDepsOnly: Boolean(config.filterProd.length) });
201942
- } else if (filters.length === 0 && workspaceDir && !config.includeWorkspaceRoot && (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test")) {
202369
+ } else if (!filters.some(({ filter }) => !filter.startsWith("!")) && workspaceDir && !config.includeWorkspaceRoot && (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test")) {
201943
202370
  filters.push({ filter: `!{${relativeWSDirPath()}}`, followProdDepsOnly: Boolean(config.filterProd.length) });
201944
202371
  }
201945
202372
  const filterResults = await (0, filter_workspace_packages_1.filterPackagesFromDir)(wsDir, filters, {