@jsse/eslint-config 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // node_modules/.pnpm/globals@15.8.0/node_modules/globals/globals.json
33
+ // node_modules/.pnpm/globals@15.9.0/node_modules/globals/globals.json
34
34
  var require_globals = __commonJS({
35
- "node_modules/.pnpm/globals@15.8.0/node_modules/globals/globals.json"(exports2, module2) {
35
+ "node_modules/.pnpm/globals@15.9.0/node_modules/globals/globals.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  amd: {
38
38
  define: false,
@@ -68,6 +68,9 @@ var require_globals = __commonJS({
68
68
  AbstractRange: false,
69
69
  Accelerometer: false,
70
70
  addEventListener: false,
71
+ ai: false,
72
+ AI: false,
73
+ AITextSession: false,
71
74
  alert: false,
72
75
  AnalyserNode: false,
73
76
  Animation: false,
@@ -137,6 +140,7 @@ var require_globals = __commonJS({
137
140
  CDATASection: false,
138
141
  ChannelMergerNode: false,
139
142
  ChannelSplitterNode: false,
143
+ ChapterInformation: false,
140
144
  CharacterBoundsUpdateEvent: false,
141
145
  CharacterData: false,
142
146
  clearInterval: false,
@@ -201,6 +205,7 @@ var require_globals = __commonJS({
201
205
  CSSNamespaceRule: false,
202
206
  CSSNumericArray: false,
203
207
  CSSNumericValue: false,
208
+ CSSPageDescriptors: false,
204
209
  CSSPageRule: false,
205
210
  CSSPerspective: false,
206
211
  CSSPositionTryDescriptors: false,
@@ -2653,6 +2658,7 @@ var require_globals = __commonJS({
2653
2658
  AbortController: false,
2654
2659
  AbortSignal: false,
2655
2660
  addEventListener: false,
2661
+ ai: false,
2656
2662
  atob: false,
2657
2663
  AudioData: false,
2658
2664
  AudioDecoder: false,
@@ -2963,9 +2969,9 @@ var require_globals = __commonJS({
2963
2969
  }
2964
2970
  });
2965
2971
 
2966
- // node_modules/.pnpm/globals@15.8.0/node_modules/globals/index.js
2972
+ // node_modules/.pnpm/globals@15.9.0/node_modules/globals/index.js
2967
2973
  var require_globals2 = __commonJS({
2968
- "node_modules/.pnpm/globals@15.8.0/node_modules/globals/index.js"(exports2, module2) {
2974
+ "node_modules/.pnpm/globals@15.9.0/node_modules/globals/index.js"(exports2, module2) {
2969
2975
  "use strict";
2970
2976
  module2.exports = require_globals();
2971
2977
  }
@@ -3040,7 +3046,7 @@ var import_node_fs2 = __toESM(require("fs"), 1);
3040
3046
  var import_promises = __toESM(require("fs/promises"), 1);
3041
3047
  var import_node_process2 = __toESM(require("process"), 1);
3042
3048
 
3043
- // node_modules/.pnpm/acorn@8.11.3/node_modules/acorn/dist/acorn.mjs
3049
+ // node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/dist/acorn.mjs
3044
3050
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
3045
3051
  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
3046
3052
  var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
@@ -3588,7 +3594,7 @@ Parser.tokenizer = function tokenizer(input, options) {
3588
3594
  };
3589
3595
  Object.defineProperties(Parser.prototype, prototypeAccessors);
3590
3596
  var pp$9 = Parser.prototype;
3591
- var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
3597
+ var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
3592
3598
  pp$9.strictDirective = function(start) {
3593
3599
  if (this.options.ecmaVersion < 5) {
3594
3600
  return false;
@@ -3947,16 +3953,21 @@ pp$8.parseForStatement = function(node) {
3947
3953
  return this.parseFor(node, init$1);
3948
3954
  }
3949
3955
  var startsWithLet = this.isContextual("let"), isForOf = false;
3956
+ var containsEsc = this.containsEsc;
3950
3957
  var refDestructuringErrors = new DestructuringErrors();
3951
- var init = this.parseExpression(awaitAt > -1 ? "await" : true, refDestructuringErrors);
3958
+ var initPos = this.start;
3959
+ var init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(true, refDestructuringErrors);
3952
3960
  if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
3953
- if (this.options.ecmaVersion >= 9) {
3961
+ if (awaitAt > -1) {
3954
3962
  if (this.type === types$1._in) {
3955
- if (awaitAt > -1) {
3956
- this.unexpected(awaitAt);
3957
- }
3958
- } else {
3959
- node.await = awaitAt > -1;
3963
+ this.unexpected(awaitAt);
3964
+ }
3965
+ node.await = true;
3966
+ } else if (isForOf && this.options.ecmaVersion >= 8) {
3967
+ if (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async") {
3968
+ this.unexpected();
3969
+ } else if (this.options.ecmaVersion >= 9) {
3970
+ node.await = false;
3960
3971
  }
3961
3972
  }
3962
3973
  if (startsWithLet && isForOf) {
@@ -5307,7 +5318,7 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
5307
5318
  this.checkExpressionErrors(refDestructuringErrors, true);
5308
5319
  if (update) {
5309
5320
  this.checkLValSimple(node.argument);
5310
- } else if (this.strict && node.operator === "delete" && node.argument.type === "Identifier") {
5321
+ } else if (this.strict && node.operator === "delete" && isLocalVariableAccess(node.argument)) {
5311
5322
  this.raiseRecoverable(node.start, "Deleting local variable in strict mode");
5312
5323
  } else if (node.operator === "delete" && isPrivateFieldAccess(node.argument)) {
5313
5324
  this.raiseRecoverable(node.start, "Private fields can not be deleted");
@@ -5348,8 +5359,11 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
5348
5359
  return expr;
5349
5360
  }
5350
5361
  };
5362
+ function isLocalVariableAccess(node) {
5363
+ return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
5364
+ }
5351
5365
  function isPrivateFieldAccess(node) {
5352
- return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression);
5366
+ return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
5353
5367
  }
5354
5368
  pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
5355
5369
  var startPos = this.start, startLoc = this.startLoc;
@@ -5735,7 +5749,7 @@ pp$5.parseTemplateElement = function(ref2) {
5735
5749
  this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal");
5736
5750
  }
5737
5751
  elem.value = {
5738
- raw: this.value,
5752
+ raw: this.value.replace(/\r\n?/g, "\n"),
5739
5753
  cooked: null
5740
5754
  };
5741
5755
  } else {
@@ -6329,6 +6343,23 @@ var ecmaVersion;
6329
6343
  var i;
6330
6344
  var list;
6331
6345
  var pp$1 = Parser.prototype;
6346
+ var BranchID = function BranchID2(parent, base) {
6347
+ this.parent = parent;
6348
+ this.base = base || this;
6349
+ };
6350
+ BranchID.prototype.separatedFrom = function separatedFrom(alt) {
6351
+ for (var self = this; self; self = self.parent) {
6352
+ for (var other = alt; other; other = other.parent) {
6353
+ if (self.base === other.base && self !== other) {
6354
+ return true;
6355
+ }
6356
+ }
6357
+ }
6358
+ return false;
6359
+ };
6360
+ BranchID.prototype.sibling = function sibling() {
6361
+ return new BranchID(this.parent, this.base);
6362
+ };
6332
6363
  var RegExpValidationState = function RegExpValidationState2(parser) {
6333
6364
  this.parser = parser;
6334
6365
  this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
@@ -6345,8 +6376,9 @@ var RegExpValidationState = function RegExpValidationState2(parser) {
6345
6376
  this.lastAssertionIsQuantifiable = false;
6346
6377
  this.numCapturingParens = 0;
6347
6378
  this.maxBackReference = 0;
6348
- this.groupNames = [];
6379
+ this.groupNames = /* @__PURE__ */ Object.create(null);
6349
6380
  this.backReferenceNames = [];
6381
+ this.branchID = null;
6350
6382
  };
6351
6383
  RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {
6352
6384
  var unicodeSets = flags.indexOf("v") !== -1;
@@ -6452,9 +6484,15 @@ pp$1.validateRegExpFlags = function(state) {
6452
6484
  this.raise(state.start, "Invalid regular expression flag");
6453
6485
  }
6454
6486
  };
6487
+ function hasProp(obj) {
6488
+ for (var _ in obj) {
6489
+ return true;
6490
+ }
6491
+ return false;
6492
+ }
6455
6493
  pp$1.validateRegExpPattern = function(state) {
6456
6494
  this.regexp_pattern(state);
6457
- if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0) {
6495
+ if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
6458
6496
  state.switchN = true;
6459
6497
  this.regexp_pattern(state);
6460
6498
  }
@@ -6466,8 +6504,9 @@ pp$1.regexp_pattern = function(state) {
6466
6504
  state.lastAssertionIsQuantifiable = false;
6467
6505
  state.numCapturingParens = 0;
6468
6506
  state.maxBackReference = 0;
6469
- state.groupNames.length = 0;
6507
+ state.groupNames = /* @__PURE__ */ Object.create(null);
6470
6508
  state.backReferenceNames.length = 0;
6509
+ state.branchID = null;
6471
6510
  this.regexp_disjunction(state);
6472
6511
  if (state.pos !== state.source.length) {
6473
6512
  if (state.eat(
@@ -6491,19 +6530,29 @@ pp$1.regexp_pattern = function(state) {
6491
6530
  }
6492
6531
  for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
6493
6532
  var name = list[i];
6494
- if (state.groupNames.indexOf(name) === -1) {
6533
+ if (!state.groupNames[name]) {
6495
6534
  state.raise("Invalid named capture referenced");
6496
6535
  }
6497
6536
  }
6498
6537
  };
6499
6538
  pp$1.regexp_disjunction = function(state) {
6539
+ var trackDisjunction = this.options.ecmaVersion >= 16;
6540
+ if (trackDisjunction) {
6541
+ state.branchID = new BranchID(state.branchID, null);
6542
+ }
6500
6543
  this.regexp_alternative(state);
6501
6544
  while (state.eat(
6502
6545
  124
6503
6546
  /* | */
6504
6547
  )) {
6548
+ if (trackDisjunction) {
6549
+ state.branchID = state.branchID.sibling();
6550
+ }
6505
6551
  this.regexp_alternative(state);
6506
6552
  }
6553
+ if (trackDisjunction) {
6554
+ state.branchID = state.branchID.parent;
6555
+ }
6507
6556
  if (this.regexp_eatQuantifier(state, true)) {
6508
6557
  state.raise("Nothing to repeat");
6509
6558
  }
@@ -6762,14 +6811,28 @@ pp$1.regexp_groupSpecifier = function(state) {
6762
6811
  63
6763
6812
  /* ? */
6764
6813
  )) {
6765
- if (this.regexp_eatGroupName(state)) {
6766
- if (state.groupNames.indexOf(state.lastStringValue) !== -1) {
6814
+ if (!this.regexp_eatGroupName(state)) {
6815
+ state.raise("Invalid group");
6816
+ }
6817
+ var trackDisjunction = this.options.ecmaVersion >= 16;
6818
+ var known = state.groupNames[state.lastStringValue];
6819
+ if (known) {
6820
+ if (trackDisjunction) {
6821
+ for (var i = 0, list = known; i < list.length; i += 1) {
6822
+ var altID = list[i];
6823
+ if (!altID.separatedFrom(state.branchID)) {
6824
+ state.raise("Duplicate capture group name");
6825
+ }
6826
+ }
6827
+ } else {
6767
6828
  state.raise("Duplicate capture group name");
6768
6829
  }
6769
- state.groupNames.push(state.lastStringValue);
6770
- return;
6771
6830
  }
6772
- state.raise("Invalid group");
6831
+ if (trackDisjunction) {
6832
+ (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
6833
+ } else {
6834
+ state.groupNames[state.lastStringValue] = true;
6835
+ }
6773
6836
  }
6774
6837
  };
6775
6838
  pp$1.regexp_eatGroupName = function(state) {
@@ -8222,6 +8285,16 @@ pp.readInvalidTemplateToken = function() {
8222
8285
  }
8223
8286
  case "`":
8224
8287
  return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
8288
+ case "\r":
8289
+ if (this.input[this.pos + 1] === "\n") {
8290
+ ++this.pos;
8291
+ }
8292
+ case "\n":
8293
+ case "\u2028":
8294
+ case "\u2029":
8295
+ ++this.curLine;
8296
+ this.lineStart = this.pos + 1;
8297
+ break;
8225
8298
  }
8226
8299
  }
8227
8300
  this.raise(this.start, "Unterminated template");
@@ -8290,6 +8363,10 @@ pp.readEscapedChar = function(inTemplate) {
8290
8363
  return String.fromCharCode(octal);
8291
8364
  }
8292
8365
  if (isNewLine(ch)) {
8366
+ if (this.options.locations) {
8367
+ this.lineStart = this.pos;
8368
+ ++this.curLine;
8369
+ }
8293
8370
  return "";
8294
8371
  }
8295
8372
  return String.fromCharCode(ch);
@@ -8340,7 +8417,7 @@ pp.readWord = function() {
8340
8417
  }
8341
8418
  return this.finishToken(type, word);
8342
8419
  };
8343
- var version = "8.11.3";
8420
+ var version = "8.12.1";
8344
8421
  Parser.acorn = {
8345
8422
  Parser,
8346
8423
  version,
@@ -8363,7 +8440,7 @@ Parser.acorn = {
8363
8440
  nonASCIIwhitespace
8364
8441
  };
8365
8442
 
8366
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
8443
+ // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8367
8444
  var import_node_module = require("module");
8368
8445
  var import_node_fs = __toESM(require("fs"), 1);
8369
8446
 
@@ -8420,7 +8497,7 @@ var isAbsolute = function(p) {
8420
8497
  return _IS_ABSOLUTE_RE.test(p);
8421
8498
  };
8422
8499
 
8423
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
8500
+ // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8424
8501
  var import_node_url = require("url");
8425
8502
  var import_node_assert = __toESM(require("assert"), 1);
8426
8503
  var import_node_process = __toESM(require("process"), 1);
@@ -8550,21 +8627,21 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
8550
8627
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
8551
8628
  "ERR_INVALID_PACKAGE_TARGET",
8552
8629
  /**
8553
- * @param {string} pkgPath
8630
+ * @param {string} packagePath
8554
8631
  * @param {string} key
8555
8632
  * @param {unknown} target
8556
8633
  * @param {boolean} [isImport=false]
8557
8634
  * @param {string} [base]
8558
8635
  */
8559
- (pkgPath, key, target, isImport = false, base = void 0) => {
8560
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
8636
+ (packagePath, key, target, isImport = false, base = void 0) => {
8637
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
8561
8638
  if (key === ".") {
8562
8639
  (0, import_node_assert.default)(isImport === false);
8563
- return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
8640
+ return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
8564
8641
  }
8565
8642
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
8566
8643
  target
8567
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
8644
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
8568
8645
  },
8569
8646
  Error
8570
8647
  );
@@ -8600,14 +8677,14 @@ codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
8600
8677
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
8601
8678
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
8602
8679
  /**
8603
- * @param {string} pkgPath
8680
+ * @param {string} packagePath
8604
8681
  * @param {string} subpath
8605
8682
  * @param {string} [base]
8606
8683
  */
8607
- (pkgPath, subpath, base = void 0) => {
8684
+ (packagePath, subpath, base = void 0) => {
8608
8685
  if (subpath === ".")
8609
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
8610
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
8686
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
8687
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
8611
8688
  },
8612
8689
  Error
8613
8690
  );
@@ -8616,14 +8693,19 @@ codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
8616
8693
  "Directory import '%s' is not supported resolving ES modules imported from %s",
8617
8694
  Error
8618
8695
  );
8696
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
8697
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
8698
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
8699
+ TypeError
8700
+ );
8619
8701
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
8620
8702
  "ERR_UNKNOWN_FILE_EXTENSION",
8621
8703
  /**
8622
- * @param {string} ext
8704
+ * @param {string} extension
8623
8705
  * @param {string} path
8624
8706
  */
8625
- (ext, path4) => {
8626
- return `Unknown file extension "${ext}" for ${path4}`;
8707
+ (extension, path4) => {
8708
+ return `Unknown file extension "${extension}" for ${path4}`;
8627
8709
  },
8628
8710
  TypeError
8629
8711
  );
@@ -8646,18 +8728,18 @@ codes.ERR_INVALID_ARG_VALUE = createError(
8646
8728
  // Note: extra classes have been shaken out.
8647
8729
  // , RangeError
8648
8730
  );
8649
- function createError(sym, value, def) {
8731
+ function createError(sym, value, constructor) {
8650
8732
  messages.set(sym, value);
8651
- return makeNodeErrorWithCode(def, sym);
8733
+ return makeNodeErrorWithCode(constructor, sym);
8652
8734
  }
8653
8735
  function makeNodeErrorWithCode(Base, key) {
8654
8736
  return NodeError;
8655
- function NodeError(...args) {
8737
+ function NodeError(...parameters) {
8656
8738
  const limit = Error.stackTraceLimit;
8657
8739
  if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;
8658
8740
  const error = new Base();
8659
8741
  if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;
8660
- const message = getMessage(key, args, error);
8742
+ const message = getMessage(key, parameters, error);
8661
8743
  Object.defineProperties(error, {
8662
8744
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
8663
8745
  // probably.
@@ -8695,10 +8777,10 @@ function isErrorStackTraceLimitWritable() {
8695
8777
  }
8696
8778
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
8697
8779
  }
8698
- function hideStackFrames(fn) {
8699
- const hidden = nodeInternalPrefix + fn.name;
8700
- Object.defineProperty(fn, "name", { value: hidden });
8701
- return fn;
8780
+ function hideStackFrames(wrappedFunction) {
8781
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
8782
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
8783
+ return wrappedFunction;
8702
8784
  }
8703
8785
  var captureLargerStackTrace = hideStackFrames(
8704
8786
  /**
@@ -8717,27 +8799,27 @@ var captureLargerStackTrace = hideStackFrames(
8717
8799
  return error;
8718
8800
  }
8719
8801
  );
8720
- function getMessage(key, args, self) {
8802
+ function getMessage(key, parameters, self) {
8721
8803
  const message = messages.get(key);
8722
8804
  (0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
8723
8805
  if (typeof message === "function") {
8724
8806
  (0, import_node_assert.default)(
8725
- message.length <= args.length,
8807
+ message.length <= parameters.length,
8726
8808
  // Default options do not count.
8727
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
8809
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
8728
8810
  );
8729
- return Reflect.apply(message, self, args);
8811
+ return Reflect.apply(message, self, parameters);
8730
8812
  }
8731
8813
  const regex = /%[dfijoOs]/g;
8732
8814
  let expectedLength = 0;
8733
8815
  while (regex.exec(message) !== null) expectedLength++;
8734
8816
  (0, import_node_assert.default)(
8735
- expectedLength === args.length,
8736
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
8817
+ expectedLength === parameters.length,
8818
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
8737
8819
  );
8738
- if (args.length === 0) return message;
8739
- args.unshift(message);
8740
- return Reflect.apply(import_node_util.format, null, args);
8820
+ if (parameters.length === 0) return message;
8821
+ parameters.unshift(message);
8822
+ return Reflect.apply(import_node_util.format, null, parameters);
8741
8823
  }
8742
8824
  function determineSpecificType(value) {
8743
8825
  if (value === null || value === void 0) {
@@ -8761,8 +8843,6 @@ function determineSpecificType(value) {
8761
8843
  var hasOwnProperty$1 = {}.hasOwnProperty;
8762
8844
  var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
8763
8845
  var cache = /* @__PURE__ */ new Map();
8764
- var reader = { read };
8765
- var packageJsonReader = reader;
8766
8846
  function read(jsonPath, { base, specifier }) {
8767
8847
  const existing = cache.get(jsonPath);
8768
8848
  if (existing) {
@@ -8828,21 +8908,20 @@ function read(jsonPath, { base, specifier }) {
8828
8908
  return result;
8829
8909
  }
8830
8910
  function getPackageScopeConfig(resolved) {
8831
- let packageJSONUrl = new import_node_url.URL("package.json", resolved);
8911
+ let packageJSONUrl = new URL("package.json", resolved);
8832
8912
  while (true) {
8833
8913
  const packageJSONPath2 = packageJSONUrl.pathname;
8834
8914
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
8835
8915
  break;
8836
8916
  }
8837
- const packageConfig = packageJsonReader.read(
8838
- (0, import_node_url.fileURLToPath)(packageJSONUrl),
8839
- { specifier: resolved }
8840
- );
8917
+ const packageConfig = read((0, import_node_url.fileURLToPath)(packageJSONUrl), {
8918
+ specifier: resolved
8919
+ });
8841
8920
  if (packageConfig.exists) {
8842
8921
  return packageConfig;
8843
8922
  }
8844
8923
  const lastPackageJSONUrl = packageJSONUrl;
8845
- packageJSONUrl = new import_node_url.URL("../package.json", packageJSONUrl);
8924
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
8846
8925
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
8847
8926
  break;
8848
8927
  }
@@ -8851,16 +8930,11 @@ function getPackageScopeConfig(resolved) {
8851
8930
  return {
8852
8931
  pjsonPath: packageJSONPath,
8853
8932
  exists: false,
8854
- main: void 0,
8855
- name: void 0,
8856
- type: "none",
8857
- exports: void 0,
8858
- imports: void 0
8933
+ type: "none"
8859
8934
  };
8860
8935
  }
8861
8936
  function getPackageType(url) {
8862
- const packageConfig = getPackageScopeConfig(url);
8863
- return packageConfig.type;
8937
+ return getPackageScopeConfig(url).type;
8864
8938
  }
8865
8939
  var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
8866
8940
  var hasOwnProperty2 = {}.hasOwnProperty;
@@ -8910,28 +8984,28 @@ function extname2(url) {
8910
8984
  return "";
8911
8985
  }
8912
8986
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
8913
- const ext = extname2(url);
8914
- if (ext === ".js") {
8987
+ const value = extname2(url);
8988
+ if (value === ".js") {
8915
8989
  const packageType = getPackageType(url);
8916
8990
  if (packageType !== "none") {
8917
8991
  return packageType;
8918
8992
  }
8919
8993
  return "commonjs";
8920
8994
  }
8921
- if (ext === "") {
8995
+ if (value === "") {
8922
8996
  const packageType = getPackageType(url);
8923
8997
  if (packageType === "none" || packageType === "commonjs") {
8924
8998
  return "commonjs";
8925
8999
  }
8926
9000
  return "module";
8927
9001
  }
8928
- const format3 = extensionFormatMap[ext];
9002
+ const format3 = extensionFormatMap[value];
8929
9003
  if (format3) return format3;
8930
9004
  if (ignoreErrors) {
8931
9005
  return void 0;
8932
9006
  }
8933
9007
  const filepath = (0, import_node_url.fileURLToPath)(url);
8934
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
9008
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
8935
9009
  }
8936
9010
  function getHttpProtocolModuleFormat() {
8937
9011
  }
@@ -8951,14 +9025,15 @@ var {
8951
9025
  ERR_MODULE_NOT_FOUND,
8952
9026
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
8953
9027
  ERR_PACKAGE_PATH_NOT_EXPORTED,
8954
- ERR_UNSUPPORTED_DIR_IMPORT
9028
+ ERR_UNSUPPORTED_DIR_IMPORT,
9029
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
8955
9030
  } = codes;
8956
9031
  var own = {}.hasOwnProperty;
8957
9032
  var invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
8958
9033
  var deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
8959
9034
  var invalidPackageNameRegEx = /^\.|%|\\/;
8960
9035
  var patternRegEx = /\*/g;
8961
- var encodedSepRegEx = /%2f|%5c/i;
9036
+ var encodedSeparatorRegEx = /%2f|%5c/i;
8962
9037
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
8963
9038
  var doubleSlashRegEx = /[/\\]{2}/;
8964
9039
  function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
@@ -8980,21 +9055,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
8980
9055
  const format3 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
8981
9056
  if (format3 !== "module") return;
8982
9057
  const urlPath = (0, import_node_url.fileURLToPath)(url.href);
8983
- const pkgPath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
9058
+ const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
8984
9059
  const basePath = (0, import_node_url.fileURLToPath)(base);
8985
9060
  if (!main) {
8986
9061
  import_node_process.default.emitWarning(
8987
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
8988
- pkgPath.length
9062
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
9063
+ packagePath.length
8989
9064
  )}", imported from ${basePath}.
8990
9065
  Default "index" lookups for the main are deprecated for ES modules.`,
8991
9066
  "DeprecationWarning",
8992
9067
  "DEP0151"
8993
9068
  );
8994
- } else if (import_node_path.default.resolve(pkgPath, main) !== urlPath) {
9069
+ } else if (import_node_path.default.resolve(packagePath, main) !== urlPath) {
8995
9070
  import_node_process.default.emitWarning(
8996
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
8997
- pkgPath.length
9071
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
9072
+ packagePath.length
8998
9073
  )}", imported from ${basePath}.
8999
9074
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
9000
9075
  "DeprecationWarning",
@@ -9006,7 +9081,6 @@ function tryStatSync(path4) {
9006
9081
  try {
9007
9082
  return (0, import_node_fs.statSync)(path4);
9008
9083
  } catch {
9009
- return new import_node_fs.Stats();
9010
9084
  }
9011
9085
  }
9012
9086
  function fileExists(url) {
@@ -9060,7 +9134,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
9060
9134
  );
9061
9135
  }
9062
9136
  function finalizeResolution(resolved, base, preserveSymlinks) {
9063
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
9137
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
9064
9138
  throw new ERR_INVALID_MODULE_SPECIFIER(
9065
9139
  resolved.pathname,
9066
9140
  'must not include encoded "/" or "\\" characters',
@@ -9082,12 +9156,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
9082
9156
  const stats = tryStatSync(
9083
9157
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
9084
9158
  );
9085
- if (stats.isDirectory()) {
9159
+ if (stats && stats.isDirectory()) {
9086
9160
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
9087
9161
  error.url = String(resolved);
9088
9162
  throw error;
9089
9163
  }
9090
- if (!stats.isFile()) {
9164
+ if (!stats || !stats.isFile()) {
9091
9165
  const error = new ERR_MODULE_NOT_FOUND(
9092
9166
  filePath || resolved.pathname,
9093
9167
  base && (0, import_node_url.fileURLToPath)(base),
@@ -9337,13 +9411,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
9337
9411
  const keys = Object.getOwnPropertyNames(exports2);
9338
9412
  let isConditionalSugar = false;
9339
9413
  let i = 0;
9340
- let j = -1;
9341
- while (++j < keys.length) {
9342
- const key = keys[j];
9343
- const curIsConditionalSugar = key === "" || key[0] !== ".";
9414
+ let keyIndex = -1;
9415
+ while (++keyIndex < keys.length) {
9416
+ const key = keys[keyIndex];
9417
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
9344
9418
  if (i++ === 0) {
9345
- isConditionalSugar = curIsConditionalSugar;
9346
- } else if (isConditionalSugar !== curIsConditionalSugar) {
9419
+ isConditionalSugar = currentIsConditionalSugar;
9420
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
9347
9421
  throw new ERR_INVALID_PACKAGE_CONFIG(
9348
9422
  (0, import_node_url.fileURLToPath)(packageJsonUrl),
9349
9423
  base,
@@ -9572,7 +9646,7 @@ function packageResolve(specifier, base, conditions) {
9572
9646
  let lastPath;
9573
9647
  do {
9574
9648
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
9575
- if (!stat.isDirectory()) {
9649
+ if (!stat || !stat.isDirectory()) {
9576
9650
  lastPath = packageJsonPath;
9577
9651
  packageJsonUrl = new import_node_url.URL(
9578
9652
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -9581,10 +9655,7 @@ function packageResolve(specifier, base, conditions) {
9581
9655
  packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
9582
9656
  continue;
9583
9657
  }
9584
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
9585
- base,
9586
- specifier
9587
- });
9658
+ const packageConfig2 = read(packageJsonPath, { base, specifier });
9588
9659
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
9589
9660
  return packageExportsResolve(
9590
9661
  packageJsonUrl,
@@ -9617,19 +9688,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
9617
9688
  }
9618
9689
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
9619
9690
  const protocol = base.protocol;
9620
- const isRemote = protocol === "http:" || protocol === "https:";
9691
+ const isData = protocol === "data:";
9692
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
9621
9693
  let resolved;
9622
9694
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
9623
- resolved = new import_node_url.URL(specifier, base);
9624
- } else if (!isRemote && specifier[0] === "#") {
9695
+ try {
9696
+ resolved = new import_node_url.URL(specifier, base);
9697
+ } catch (error_) {
9698
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9699
+ error.cause = error_;
9700
+ throw error;
9701
+ }
9702
+ } else if (protocol === "file:" && specifier[0] === "#") {
9625
9703
  resolved = packageImportsResolve(specifier, base, conditions);
9626
9704
  } else {
9627
9705
  try {
9628
9706
  resolved = new import_node_url.URL(specifier);
9629
- } catch {
9630
- if (!isRemote) {
9631
- resolved = packageResolve(specifier, base, conditions);
9707
+ } catch (error_) {
9708
+ if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
9709
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9710
+ error.cause = error_;
9711
+ throw error;
9632
9712
  }
9713
+ resolved = packageResolve(specifier, base, conditions);
9633
9714
  }
9634
9715
  }
9635
9716
  (0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
@@ -9806,10 +9887,10 @@ function isLagerLevel(level) {
9806
9887
  return level === "trace" || level === "debug" || level === "info" || level === "warn" || level === "error" || level === "fatal";
9807
9888
  }
9808
9889
  var Lager = class {
9890
+ _level = "info";
9891
+ id = "lager";
9892
+ levelNo = levels[this._level];
9809
9893
  constructor(options) {
9810
- this._level = "info";
9811
- this.id = "lager";
9812
- this.levelNo = levels[this._level];
9813
9894
  const { level, id } = {
9814
9895
  level: "info",
9815
9896
  id: "lager",
@@ -9921,6 +10002,8 @@ var GLOB_EXCLUDE = [
9921
10002
  "**/.vitepress/cache",
9922
10003
  "**/*.bak",
9923
10004
  "**/*.min.*",
10005
+ "**/.yarn",
10006
+ "**/.pnp.*",
9924
10007
  "**/auto-import?(s).d.ts",
9925
10008
  "**/bun.lockb",
9926
10009
  "**/CHANGELOG*.md",
@@ -10455,23 +10538,6 @@ var jsdoc = async () => {
10455
10538
  ];
10456
10539
  };
10457
10540
 
10458
- // src/configs/tsdoc.ts
10459
- var tsdoc = async () => {
10460
- const { pluginTsdoc } = await importPluginTsdoc();
10461
- return [
10462
- {
10463
- files: ["*.ts", "*.tsx"],
10464
- name: "jsse/tsdoc",
10465
- plugins: {
10466
- tsdoc: pluginTsdoc
10467
- },
10468
- rules: {
10469
- "tsdoc/syntax": "warn"
10470
- }
10471
- }
10472
- ];
10473
- };
10474
-
10475
10541
  // src/configs/jsonc.ts
10476
10542
  var jsonc = async (options) => {
10477
10543
  const { overrides = {}, stylistic: stylistic2 = true } = options ?? {};
@@ -11092,6 +11158,33 @@ var n = async () => {
11092
11158
  ];
11093
11159
  };
11094
11160
 
11161
+ // src/configs/no-only-tests.ts
11162
+ var noOnlyTests = async (options = {}) => {
11163
+ const { isInEditor: isInEditor2 = false, overrides = {} } = options;
11164
+ const pluginNoOnlyTests = await interopDefault2(
11165
+ // @ts-expect-error - types are incorrect/missing
11166
+ import("eslint-plugin-no-only-tests")
11167
+ );
11168
+ return [
11169
+ {
11170
+ name: "jsse/no-only-tests/setup",
11171
+ plugins: {
11172
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
11173
+ "no-only-tests": pluginNoOnlyTests
11174
+ }
11175
+ },
11176
+ {
11177
+ files: GLOB_TESTS,
11178
+ name: "jsse/no-only-tests/rules",
11179
+ rules: {
11180
+ "no-only-tests/no-only-tests": isInEditor2 ? "off" : isCI() ? "error" : "warn",
11181
+ "unicorn/no-null": "off",
11182
+ ...overrides
11183
+ }
11184
+ }
11185
+ ];
11186
+ };
11187
+
11095
11188
  // src/configs/perfectionist.ts
11096
11189
  var perfectionist = async () => {
11097
11190
  return [
@@ -11822,33 +11915,6 @@ var tailwind = async (options) => {
11822
11915
  ];
11823
11916
  };
11824
11917
 
11825
- // src/configs/no-only-tests.ts
11826
- var noOnlyTests = async (options = {}) => {
11827
- const { isInEditor: isInEditor2 = false, overrides = {} } = options;
11828
- const pluginNoOnlyTests = await interopDefault2(
11829
- // @ts-expect-error - types are incorrect/missing
11830
- import("eslint-plugin-no-only-tests")
11831
- );
11832
- return [
11833
- {
11834
- name: "jsse/no-only-tests/setup",
11835
- plugins: {
11836
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
11837
- "no-only-tests": pluginNoOnlyTests
11838
- }
11839
- },
11840
- {
11841
- files: GLOB_TESTS,
11842
- name: "jsse/no-only-tests/rules",
11843
- rules: {
11844
- "no-only-tests/no-only-tests": isInEditor2 ? "off" : isCI() ? "error" : "warn",
11845
- "unicorn/no-null": "off",
11846
- ...overrides
11847
- }
11848
- }
11849
- ];
11850
- };
11851
-
11852
11918
  // src/configs/ts/typescript.ts
11853
11919
  var typescript = async (options) => {
11854
11920
  const {
@@ -11864,9 +11930,9 @@ var typescript = async (options) => {
11864
11930
  const tsPrefixTo = prefix?.to ?? "@typescript-eslint";
11865
11931
  const tsrules = {
11866
11932
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11867
- ...import_eslint_plugin.default.configs["eslint-recommended"].overrides[0].rules,
11933
+ ...(import_eslint_plugin.default.configs["eslint-recommended"]?.overrides ?? [])[0]?.rules,
11868
11934
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11869
- ...import_eslint_plugin.default.configs.strict.rules,
11935
+ ...import_eslint_plugin.default.configs.strict?.rules,
11870
11936
  "no-invalid-this": "off",
11871
11937
  ...typescriptRules(
11872
11938
  typeAware !== false && tsconfigPath ? { typeAware: true } : { typeAware: false }
@@ -11928,12 +11994,29 @@ var typescript = async (options) => {
11928
11994
  ];
11929
11995
  };
11930
11996
 
11997
+ // src/configs/tsdoc.ts
11998
+ var tsdoc = async () => {
11999
+ const { pluginTsdoc } = await importPluginTsdoc();
12000
+ return [
12001
+ {
12002
+ files: ["*.ts", "*.tsx"],
12003
+ name: "jsse/tsdoc",
12004
+ plugins: {
12005
+ tsdoc: pluginTsdoc
12006
+ },
12007
+ rules: {
12008
+ "tsdoc/syntax": "warn"
12009
+ }
12010
+ }
12011
+ ];
12012
+ };
12013
+
11931
12014
  // src/configs/unicorn.ts
11932
12015
  function unicornOff() {
11933
12016
  return {
11934
12017
  "unicorn/catch-error-name": "off",
11935
12018
  "unicorn/consistent-destructuring": "off",
11936
- "unicorn/no-array-for-each": "off",
12019
+ // "unicorn/no-array-for-each": "off",
11937
12020
  "unicorn/no-array-reduce": "off",
11938
12021
  "unicorn/no-nested-ternary": "off",
11939
12022
  // conflicts with prettier
@@ -11946,7 +12029,11 @@ function unicornOff() {
11946
12029
  };
11947
12030
  }
11948
12031
  function unicornRecommended() {
11949
- return import_eslint_plugin_unicorn.default.configs.recommended.rules;
12032
+ const rules = import_eslint_plugin_unicorn.default.configs.recommended.rules;
12033
+ if (rules === void 0) {
12034
+ throw new Error("Expected rules to be defined in unicorn plugin");
12035
+ }
12036
+ return rules;
11950
12037
  }
11951
12038
  var unicorn = async () => {
11952
12039
  return [
@@ -12330,35 +12417,34 @@ async function jsse(options = {}, ...userConfigs) {
12330
12417
  if (off && off.length > 0) {
12331
12418
  log.debug("Turning off rules", off);
12332
12419
  const currentlyActiveRules = /* @__PURE__ */ new Set();
12333
- combinedConfigs.forEach((config) => {
12334
- Object.keys(config.rules ?? {}).forEach(
12335
- (rule) => currentlyActiveRules.add(rule)
12336
- );
12337
- });
12338
- off.forEach((rule) => {
12420
+ for (const config of combinedConfigs) {
12421
+ for (const rule of Object.keys(config.rules ?? {}))
12422
+ currentlyActiveRules.add(rule);
12423
+ }
12424
+ for (const rule of off) {
12339
12425
  if (!currentlyActiveRules.has(rule)) {
12340
12426
  log.info(
12341
12427
  `Rule \`${rule}\` is not active in the current config, you can remove it from the off list`
12342
12428
  );
12343
12429
  }
12344
- });
12345
- combinedConfigs.forEach((config) => {
12346
- Object.keys(config.rules ?? {}).forEach((rule) => {
12430
+ }
12431
+ for (const config of combinedConfigs) {
12432
+ for (const rule of Object.keys(config.rules ?? {})) {
12347
12433
  if (off.includes(rule) && config.rules) {
12348
12434
  config.rules[rule] = "off";
12349
12435
  }
12350
- });
12351
- });
12436
+ }
12437
+ }
12352
12438
  }
12353
12439
  if (normalizedOptions.rootId !== "jsse") {
12354
- combinedConfigs.forEach((config) => {
12440
+ for (const config of combinedConfigs) {
12355
12441
  if (config.name && config.name.startsWith("jsse/")) {
12356
12442
  config.name = config.name.replace(
12357
12443
  "jsse/",
12358
12444
  `${normalizedOptions.rootId}:`
12359
12445
  );
12360
12446
  }
12361
- });
12447
+ }
12362
12448
  }
12363
12449
  if (normalizedOptions.preReturn) {
12364
12450
  log.debug("Running preReturn");