@icebreakers/eslint-config 4.0.11 → 5.0.1

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.
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require("./chunk-BrWF7lJc.cjs");
2
2
  const require_lib$4 = require("./lib-ivfmw_L0.cjs");
3
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/rules.js
3
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/rules.js
4
4
  var require_rules$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.rules = void 0;
@@ -28,7 +28,7 @@ var require_rules$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
28
28
  };
29
29
  }));
30
30
  //#endregion
31
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/recommended.js
31
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/recommended.js
32
32
  var require_recommended$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  const rules_1 = require_rules$2();
@@ -47,7 +47,7 @@ var require_recommended$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((export
47
47
  };
48
48
  }));
49
49
  //#endregion
50
- //#region ../../node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
50
+ //#region ../../node_modules/.pnpm/globals@17.6.0/node_modules/globals/globals.json
51
51
  var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
52
52
  module.exports = {
53
53
  "amd": {
@@ -1260,9 +1260,13 @@ var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
1260
1260
  "XRAnchorSet": false,
1261
1261
  "XRBoundedReferenceSpace": false,
1262
1262
  "XRCamera": false,
1263
+ "XRCompositionLayer": false,
1263
1264
  "XRCPUDepthInformation": false,
1265
+ "XRCubeLayer": false,
1266
+ "XRCylinderLayer": false,
1264
1267
  "XRDepthInformation": false,
1265
1268
  "XRDOMOverlayState": false,
1269
+ "XREquirectLayer": false,
1266
1270
  "XRFrame": false,
1267
1271
  "XRHand": false,
1268
1272
  "XRHitTestResult": false,
@@ -1274,9 +1278,14 @@ var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
1274
1278
  "XRJointPose": false,
1275
1279
  "XRJointSpace": false,
1276
1280
  "XRLayer": false,
1281
+ "XRLayerEvent": false,
1277
1282
  "XRLightEstimate": false,
1278
1283
  "XRLightProbe": false,
1284
+ "XRPlane": false,
1285
+ "XRPlaneSet": false,
1279
1286
  "XRPose": false,
1287
+ "XRProjectionLayer": false,
1288
+ "XRQuadLayer": false,
1280
1289
  "XRRay": false,
1281
1290
  "XRReferenceSpace": false,
1282
1291
  "XRReferenceSpaceEvent": false,
@@ -1285,6 +1294,7 @@ var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
1285
1294
  "XRSession": false,
1286
1295
  "XRSessionEvent": false,
1287
1296
  "XRSpace": false,
1297
+ "XRSubImage": false,
1288
1298
  "XRSystem": false,
1289
1299
  "XRTransientInputHitTestResult": false,
1290
1300
  "XRTransientInputHitTestSource": false,
@@ -1295,6 +1305,7 @@ var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
1295
1305
  "XRWebGLBinding": false,
1296
1306
  "XRWebGLDepthInformation": false,
1297
1307
  "XRWebGLLayer": false,
1308
+ "XRWebGLSubImage": false,
1298
1309
  "XSLTProcessor": false
1299
1310
  },
1300
1311
  "builtin": {
@@ -4142,7 +4153,7 @@ var require_globals$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
4142
4153
  };
4143
4154
  }));
4144
4155
  //#endregion
4145
- //#region ../../node_modules/.pnpm/globals@17.5.0/node_modules/globals/index.js
4156
+ //#region ../../node_modules/.pnpm/globals@17.6.0/node_modules/globals/index.js
4146
4157
  var require_globals$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
4147
4158
  module.exports = require_globals$2();
4148
4159
  }));
@@ -5806,8 +5817,8 @@ var require_esrecurse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
5806
5817
  })();
5807
5818
  }));
5808
5819
  //#endregion
5809
- //#region ../../node_modules/.pnpm/eslint-scope@9.1.1/node_modules/eslint-scope/dist/eslint-scope.cjs
5810
- var require_eslint_scope$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
5820
+ //#region ../../node_modules/.pnpm/eslint-scope@9.1.2/node_modules/eslint-scope/dist/eslint-scope.cjs
5821
+ var require_eslint_scope = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
5811
5822
  var estraverse = require_estraverse();
5812
5823
  var esrecurse = require_esrecurse();
5813
5824
  /**
@@ -7179,7 +7190,7 @@ var require_eslint_scope$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
7179
7190
  return scopeManager;
7180
7191
  }
7181
7192
  /** @name module:escope.version */
7182
- const version = "9.1.1";
7193
+ const version = "9.1.2";
7183
7194
  exports.Definition = Definition;
7184
7195
  exports.PatternVisitor = PatternVisitor;
7185
7196
  exports.Reference = Reference;
@@ -7191,7 +7202,7 @@ var require_eslint_scope$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
7191
7202
  exports.version = version;
7192
7203
  }));
7193
7204
  //#endregion
7194
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
7205
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/constants.js
7195
7206
  var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7196
7207
  const SEMVER_SPEC_VERSION = "2.0.0";
7197
7208
  const MAX_LENGTH = 256;
@@ -7216,12 +7227,12 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
7216
7227
  };
7217
7228
  }));
7218
7229
  //#endregion
7219
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
7230
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/debug.js
7220
7231
  var require_debug = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7221
7232
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
7222
7233
  }));
7223
7234
  //#endregion
7224
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
7235
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/re.js
7225
7236
  var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7226
7237
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
7227
7238
  const debug = require_debug();
@@ -7300,7 +7311,7 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
7300
7311
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
7301
7312
  }));
7302
7313
  //#endregion
7303
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
7314
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/parse-options.js
7304
7315
  var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7305
7316
  const looseOption = Object.freeze({ loose: true });
7306
7317
  const emptyOpts = Object.freeze({});
@@ -7312,7 +7323,7 @@ var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((export
7312
7323
  module.exports = parseOptions;
7313
7324
  }));
7314
7325
  //#endregion
7315
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
7326
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/identifiers.js
7316
7327
  var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7317
7328
  const numeric = /^[0-9]+$/;
7318
7329
  const compareIdentifiers = (a, b) => {
@@ -7332,7 +7343,7 @@ var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
7332
7343
  };
7333
7344
  }));
7334
7345
  //#endregion
7335
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
7346
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/semver.js
7336
7347
  var require_semver$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7337
7348
  const debug = require_debug();
7338
7349
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -7510,7 +7521,7 @@ var require_semver$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
7510
7521
  };
7511
7522
  }));
7512
7523
  //#endregion
7513
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
7524
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/parse.js
7514
7525
  var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7515
7526
  const SemVer = require_semver$1();
7516
7527
  const parse = (version, options, throwErrors = false) => {
@@ -7525,7 +7536,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
7525
7536
  module.exports = parse;
7526
7537
  }));
7527
7538
  //#endregion
7528
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
7539
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/valid.js
7529
7540
  var require_valid$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7530
7541
  const parse = require_parse();
7531
7542
  const valid = (version, options) => {
@@ -7535,7 +7546,7 @@ var require_valid$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
7535
7546
  module.exports = valid;
7536
7547
  }));
7537
7548
  //#endregion
7538
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
7549
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/clean.js
7539
7550
  var require_clean = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7540
7551
  const parse = require_parse();
7541
7552
  const clean = (version, options) => {
@@ -7545,7 +7556,7 @@ var require_clean = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
7545
7556
  module.exports = clean;
7546
7557
  }));
7547
7558
  //#endregion
7548
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
7559
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/inc.js
7549
7560
  var require_inc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7550
7561
  const SemVer = require_semver$1();
7551
7562
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -7563,7 +7574,7 @@ var require_inc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
7563
7574
  module.exports = inc;
7564
7575
  }));
7565
7576
  //#endregion
7566
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
7577
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/diff.js
7567
7578
  var require_diff = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7568
7579
  const parse = require_parse();
7569
7580
  const diff = (version1, version2) => {
@@ -7591,28 +7602,28 @@ var require_diff = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
7591
7602
  module.exports = diff;
7592
7603
  }));
7593
7604
  //#endregion
7594
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
7605
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/major.js
7595
7606
  var require_major = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7596
7607
  const SemVer = require_semver$1();
7597
7608
  const major = (a, loose) => new SemVer(a, loose).major;
7598
7609
  module.exports = major;
7599
7610
  }));
7600
7611
  //#endregion
7601
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
7612
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/minor.js
7602
7613
  var require_minor = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7603
7614
  const SemVer = require_semver$1();
7604
7615
  const minor = (a, loose) => new SemVer(a, loose).minor;
7605
7616
  module.exports = minor;
7606
7617
  }));
7607
7618
  //#endregion
7608
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
7619
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/patch.js
7609
7620
  var require_patch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7610
7621
  const SemVer = require_semver$1();
7611
7622
  const patch = (a, loose) => new SemVer(a, loose).patch;
7612
7623
  module.exports = patch;
7613
7624
  }));
7614
7625
  //#endregion
7615
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
7626
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/prerelease.js
7616
7627
  var require_prerelease = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7617
7628
  const parse = require_parse();
7618
7629
  const prerelease = (version, options) => {
@@ -7622,28 +7633,28 @@ var require_prerelease = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
7622
7633
  module.exports = prerelease;
7623
7634
  }));
7624
7635
  //#endregion
7625
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
7636
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/compare.js
7626
7637
  var require_compare = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7627
7638
  const SemVer = require_semver$1();
7628
7639
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
7629
7640
  module.exports = compare;
7630
7641
  }));
7631
7642
  //#endregion
7632
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
7643
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/rcompare.js
7633
7644
  var require_rcompare = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7634
7645
  const compare = require_compare();
7635
7646
  const rcompare = (a, b, loose) => compare(b, a, loose);
7636
7647
  module.exports = rcompare;
7637
7648
  }));
7638
7649
  //#endregion
7639
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
7650
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/compare-loose.js
7640
7651
  var require_compare_loose = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7641
7652
  const compare = require_compare();
7642
7653
  const compareLoose = (a, b) => compare(a, b, true);
7643
7654
  module.exports = compareLoose;
7644
7655
  }));
7645
7656
  //#endregion
7646
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
7657
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/compare-build.js
7647
7658
  var require_compare_build = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7648
7659
  const SemVer = require_semver$1();
7649
7660
  const compareBuild = (a, b, loose) => {
@@ -7654,63 +7665,63 @@ var require_compare_build = /* @__PURE__ */ require_chunk.__commonJSMin(((export
7654
7665
  module.exports = compareBuild;
7655
7666
  }));
7656
7667
  //#endregion
7657
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
7668
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/sort.js
7658
7669
  var require_sort = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7659
7670
  const compareBuild = require_compare_build();
7660
7671
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
7661
7672
  module.exports = sort;
7662
7673
  }));
7663
7674
  //#endregion
7664
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
7675
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/rsort.js
7665
7676
  var require_rsort = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7666
7677
  const compareBuild = require_compare_build();
7667
7678
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
7668
7679
  module.exports = rsort;
7669
7680
  }));
7670
7681
  //#endregion
7671
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
7682
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/gt.js
7672
7683
  var require_gt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7673
7684
  const compare = require_compare();
7674
7685
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
7675
7686
  module.exports = gt;
7676
7687
  }));
7677
7688
  //#endregion
7678
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
7689
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/lt.js
7679
7690
  var require_lt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7680
7691
  const compare = require_compare();
7681
7692
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
7682
7693
  module.exports = lt;
7683
7694
  }));
7684
7695
  //#endregion
7685
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
7696
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/eq.js
7686
7697
  var require_eq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7687
7698
  const compare = require_compare();
7688
7699
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
7689
7700
  module.exports = eq;
7690
7701
  }));
7691
7702
  //#endregion
7692
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
7703
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/neq.js
7693
7704
  var require_neq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7694
7705
  const compare = require_compare();
7695
7706
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
7696
7707
  module.exports = neq;
7697
7708
  }));
7698
7709
  //#endregion
7699
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
7710
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/gte.js
7700
7711
  var require_gte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7701
7712
  const compare = require_compare();
7702
7713
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
7703
7714
  module.exports = gte;
7704
7715
  }));
7705
7716
  //#endregion
7706
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
7717
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/lte.js
7707
7718
  var require_lte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7708
7719
  const compare = require_compare();
7709
7720
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
7710
7721
  module.exports = lte;
7711
7722
  }));
7712
7723
  //#endregion
7713
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
7724
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/cmp.js
7714
7725
  var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7715
7726
  const eq = require_eq();
7716
7727
  const neq = require_neq();
@@ -7742,7 +7753,7 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
7742
7753
  module.exports = cmp;
7743
7754
  }));
7744
7755
  //#endregion
7745
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
7756
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/coerce.js
7746
7757
  var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7747
7758
  const SemVer = require_semver$1();
7748
7759
  const parse = require_parse();
@@ -7770,7 +7781,40 @@ var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
7770
7781
  module.exports = coerce;
7771
7782
  }));
7772
7783
  //#endregion
7773
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
7784
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/truncate.js
7785
+ var require_truncate = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7786
+ const parse = require_parse();
7787
+ const constants = require_constants();
7788
+ const SemVer = require_semver$1();
7789
+ const truncate = (version, truncation, options) => {
7790
+ if (!constants.RELEASE_TYPES.includes(truncation)) return null;
7791
+ const clonedVersion = cloneInputVersion(version, options);
7792
+ return clonedVersion && doTruncation(clonedVersion, truncation);
7793
+ };
7794
+ const cloneInputVersion = (version, options) => {
7795
+ return parse(version instanceof SemVer ? version.version : version, options);
7796
+ };
7797
+ const doTruncation = (version, truncation) => {
7798
+ if (isPrerelease(truncation)) return version.version;
7799
+ version.prerelease = [];
7800
+ switch (truncation) {
7801
+ case "major":
7802
+ version.minor = 0;
7803
+ version.patch = 0;
7804
+ break;
7805
+ case "minor":
7806
+ version.patch = 0;
7807
+ break;
7808
+ }
7809
+ return version.format();
7810
+ };
7811
+ const isPrerelease = (type) => {
7812
+ return type.startsWith("pre");
7813
+ };
7814
+ module.exports = truncate;
7815
+ }));
7816
+ //#endregion
7817
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/internal/lrucache.js
7774
7818
  var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7775
7819
  var LRUCache = class {
7776
7820
  constructor() {
@@ -7803,7 +7847,7 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
7803
7847
  module.exports = LRUCache;
7804
7848
  }));
7805
7849
  //#endregion
7806
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
7850
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/range.js
7807
7851
  var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
7808
7852
  const SPACE_CHARACTERS = /\s+/g;
7809
7853
  module.exports = class Range {
@@ -8075,7 +8119,7 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
8075
8119
  };
8076
8120
  }));
8077
8121
  //#endregion
8078
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
8122
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/classes/comparator.js
8079
8123
  var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8080
8124
  const ANY = Symbol("SemVer ANY");
8081
8125
  module.exports = class Comparator {
@@ -8145,7 +8189,7 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
8145
8189
  const Range = require_range();
8146
8190
  }));
8147
8191
  //#endregion
8148
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
8192
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/functions/satisfies.js
8149
8193
  var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8150
8194
  const Range = require_range();
8151
8195
  const satisfies = (version, range, options) => {
@@ -8159,14 +8203,14 @@ var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
8159
8203
  module.exports = satisfies;
8160
8204
  }));
8161
8205
  //#endregion
8162
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
8206
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/to-comparators.js
8163
8207
  var require_to_comparators = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8164
8208
  const Range = require_range();
8165
8209
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
8166
8210
  module.exports = toComparators;
8167
8211
  }));
8168
8212
  //#endregion
8169
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
8213
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/max-satisfying.js
8170
8214
  var require_max_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8171
8215
  const SemVer = require_semver$1();
8172
8216
  const Range = require_range();
@@ -8192,7 +8236,7 @@ var require_max_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
8192
8236
  module.exports = maxSatisfying;
8193
8237
  }));
8194
8238
  //#endregion
8195
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
8239
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/min-satisfying.js
8196
8240
  var require_min_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8197
8241
  const SemVer = require_semver$1();
8198
8242
  const Range = require_range();
@@ -8218,7 +8262,7 @@ var require_min_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
8218
8262
  module.exports = minSatisfying;
8219
8263
  }));
8220
8264
  //#endregion
8221
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
8265
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/min-version.js
8222
8266
  var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8223
8267
  const SemVer = require_semver$1();
8224
8268
  const Range = require_range();
@@ -8258,7 +8302,7 @@ var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
8258
8302
  module.exports = minVersion;
8259
8303
  }));
8260
8304
  //#endregion
8261
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
8305
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/valid.js
8262
8306
  var require_valid = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8263
8307
  const Range = require_range();
8264
8308
  const validRange = (range, options) => {
@@ -8271,7 +8315,7 @@ var require_valid = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
8271
8315
  module.exports = validRange;
8272
8316
  }));
8273
8317
  //#endregion
8274
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
8318
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/outside.js
8275
8319
  var require_outside = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8276
8320
  const SemVer = require_semver$1();
8277
8321
  const Comparator = require_comparator();
@@ -8324,21 +8368,21 @@ var require_outside = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
8324
8368
  module.exports = outside;
8325
8369
  }));
8326
8370
  //#endregion
8327
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
8371
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/gtr.js
8328
8372
  var require_gtr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8329
8373
  const outside = require_outside();
8330
8374
  const gtr = (version, range, options) => outside(version, range, ">", options);
8331
8375
  module.exports = gtr;
8332
8376
  }));
8333
8377
  //#endregion
8334
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
8378
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/ltr.js
8335
8379
  var require_ltr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8336
8380
  const outside = require_outside();
8337
8381
  const ltr = (version, range, options) => outside(version, range, "<", options);
8338
8382
  module.exports = ltr;
8339
8383
  }));
8340
8384
  //#endregion
8341
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
8385
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/intersects.js
8342
8386
  var require_intersects = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8343
8387
  const Range = require_range();
8344
8388
  const intersects = (r1, r2, options) => {
@@ -8349,7 +8393,7 @@ var require_intersects = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
8349
8393
  module.exports = intersects;
8350
8394
  }));
8351
8395
  //#endregion
8352
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
8396
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/simplify.js
8353
8397
  var require_simplify = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8354
8398
  const satisfies = require_satisfies();
8355
8399
  const compare = require_compare();
@@ -8379,7 +8423,7 @@ var require_simplify = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
8379
8423
  };
8380
8424
  }));
8381
8425
  //#endregion
8382
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
8426
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/ranges/subset.js
8383
8427
  var require_subset = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8384
8428
  const Range = require_range();
8385
8429
  const Comparator = require_comparator();
@@ -8474,7 +8518,7 @@ var require_subset = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
8474
8518
  module.exports = subset;
8475
8519
  }));
8476
8520
  //#endregion
8477
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
8521
+ //#region ../../node_modules/.pnpm/semver@7.8.0/node_modules/semver/index.js
8478
8522
  var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
8479
8523
  const internalRe = require_re();
8480
8524
  const constants = require_constants();
@@ -8504,6 +8548,7 @@ var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
8504
8548
  lte: require_lte(),
8505
8549
  cmp: require_cmp(),
8506
8550
  coerce: require_coerce(),
8551
+ truncate: require_truncate(),
8507
8552
  Comparator: require_comparator(),
8508
8553
  Range: require_range(),
8509
8554
  satisfies: require_satisfies(),
@@ -14253,8 +14298,8 @@ var require_acorn_jsx = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
14253
14298
  }
14254
14299
  }));
14255
14300
  //#endregion
14256
- //#region ../../node_modules/.pnpm/espree@11.1.1/node_modules/espree/dist/espree.cjs
14257
- var require_espree$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
14301
+ //#region ../../node_modules/.pnpm/espree@11.2.0/node_modules/espree/dist/espree.cjs
14302
+ var require_espree = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
14258
14303
  var acorn = require_acorn();
14259
14304
  var jsx = require_acorn_jsx();
14260
14305
  var eslintVisitorKeys = require_eslint_visitor_keys$1();
@@ -14522,17 +14567,16 @@ var require_espree$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
14522
14567
  * Normalize sourceType from the initial config
14523
14568
  * @param {string} sourceType to normalize
14524
14569
  * @throws {Error} throw an error if sourceType is invalid
14525
- * @returns {"script"|"module"} normalized sourceType
14570
+ * @returns {"script"|"module"|"commonjs"} normalized sourceType
14526
14571
  */
14527
14572
  function normalizeSourceType(sourceType = "script") {
14528
- if (sourceType === "script" || sourceType === "module") return sourceType;
14529
- if (sourceType === "commonjs") return "script";
14573
+ if (sourceType === "script" || sourceType === "module" || sourceType === "commonjs") return sourceType;
14530
14574
  throw new Error("Invalid sourceType.");
14531
14575
  }
14532
14576
  /**
14533
14577
  * @typedef {{
14534
14578
  * ecmaVersion: NormalizedEcmaVersion,
14535
- * sourceType: "script"|"module",
14579
+ * sourceType: "script"|"module"|"commonjs",
14536
14580
  * range?: boolean,
14537
14581
  * loc?: boolean,
14538
14582
  * allowReserved: boolean | "never",
@@ -15057,7 +15101,7 @@ var require_espree$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
15057
15101
  return new (parsers.get(options))(options, code).parse();
15058
15102
  }
15059
15103
  /** @type {string} */
15060
- const version = "11.1.1";
15104
+ const version = "11.2.0";
15061
15105
  const name = "espree";
15062
15106
  const Syntax = /* @__PURE__ */ (function() {
15063
15107
  let key, types = {};
@@ -16978,1397 +17022,568 @@ var require_utils$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
16978
17022
  })();
16979
17023
  }));
16980
17024
  //#endregion
16981
- //#region ../../node_modules/.pnpm/espree@11.2.0/node_modules/espree/dist/espree.cjs
16982
- var require_espree = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
16983
- var acorn = require_acorn();
16984
- var jsx = require_acorn_jsx();
16985
- var eslintVisitorKeys = require_eslint_visitor_keys$1();
16986
- function _interopNamespaceDefault(e) {
16987
- var n = Object.create(null);
16988
- if (e) Object.keys(e).forEach(function(k) {
16989
- if (k !== "default") {
16990
- var d = Object.getOwnPropertyDescriptor(e, k);
16991
- Object.defineProperty(n, k, d.get ? d : {
16992
- enumerable: true,
16993
- get: function() {
16994
- return e[k];
16995
- }
16996
- });
16997
- }
16998
- });
16999
- n.default = e;
17000
- return Object.freeze(n);
17001
- }
17002
- var acorn__namespace = /* @__PURE__ */ _interopNamespaceDefault(acorn);
17003
- /**
17004
- * @fileoverview Translates tokens between Acorn format and Esprima format.
17005
- * @author Nicholas C. Zakas
17006
- */
17007
- /**
17008
- * @import * as acorn from "acorn";
17009
- * @import { EnhancedTokTypes } from "./espree.js"
17010
- * @import { NormalizedEcmaVersion } from "./options.js";
17011
- * @import { EspreeToken as EsprimaToken } from "../espree.js";
17012
- */
17013
- /**
17014
- * Based on the `acorn.Token` class, but without a fixed `type` (since we need
17015
- * it to be a string). Avoiding `type` lets us make one extending interface
17016
- * more strict and another more lax.
17017
- *
17018
- * We could make `value` more strict to `string` even though the original is
17019
- * `any`.
17020
- *
17021
- * `start` and `end` are required in `acorn.Token`
17022
- *
17023
- * `loc` and `range` are from `acorn.Token`
17024
- *
17025
- * Adds `regex`.
17026
- */
17027
- /**
17028
- * @typedef {{
17029
- * jsxAttrValueToken: boolean;
17030
- * ecmaVersion: NormalizedEcmaVersion;
17031
- * }} ExtraNoTokens
17032
- * @typedef {{
17033
- * tokens: EsprimaToken[]
17034
- * } & ExtraNoTokens} Extra
17035
- */
17036
- const Token = {
17037
- Boolean: "Boolean",
17038
- EOF: "<end>",
17039
- Identifier: "Identifier",
17040
- PrivateIdentifier: "PrivateIdentifier",
17041
- Keyword: "Keyword",
17042
- Null: "Null",
17043
- Numeric: "Numeric",
17044
- Punctuator: "Punctuator",
17045
- String: "String",
17046
- RegularExpression: "RegularExpression",
17047
- Template: "Template",
17048
- JSXIdentifier: "JSXIdentifier",
17049
- JSXText: "JSXText"
17025
+ //#region ../../node_modules/.pnpm/escape-string-regexp@4.0.0/node_modules/escape-string-regexp/index.js
17026
+ var require_escape_string_regexp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17027
+ module.exports = (string) => {
17028
+ if (typeof string !== "string") throw new TypeError("Expected a string");
17029
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
17050
17030
  };
17031
+ }));
17032
+ //#endregion
17033
+ //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/lib/shared/ast-utils.js
17034
+ /**
17035
+ * @fileoverview Common utils for AST.
17036
+ *
17037
+ * This file contains only shared items for core and rules.
17038
+ * If you make a utility for rules, please see `../rules/utils/ast-utils.js`.
17039
+ *
17040
+ * @author Toru Nagashima <https://github.com/mysticatea>
17041
+ */
17042
+ var require_ast_utils$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17043
+ const breakableTypePattern = /^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u;
17044
+ const lineBreakPattern = /\r\n|[\r\n\u2028\u2029]/u;
17045
+ const shebangPattern = /^#!([^\r\n]+)/u;
17051
17046
  /**
17052
- * Converts part of a template into an Esprima token.
17053
- * @param {acorn.Token[]} tokens The Acorn tokens representing the template.
17054
- * @param {string} code The source code.
17055
- * @returns {EsprimaToken} The Esprima equivalent of the template token.
17056
- * @private
17047
+ * Creates a version of the `lineBreakPattern` regex with the global flag.
17048
+ * Global regexes are mutable, so this needs to be a function instead of a constant.
17049
+ * @returns {RegExp} A global regular expression that matches line terminators
17057
17050
  */
17058
- function convertTemplatePart(tokens, code) {
17059
- const firstToken = tokens[0], lastTemplateToken = tokens.at(-1);
17060
- /** @type {EsprimaToken} */
17061
- const token = {
17062
- type: Token.Template,
17063
- value: code.slice(firstToken.start, lastTemplateToken.end)
17064
- };
17065
- if (firstToken.loc) token.loc = {
17066
- start: firstToken.loc.start,
17067
- end: lastTemplateToken.loc.end
17068
- };
17069
- if (firstToken.range) {
17070
- token.start = firstToken.range[0];
17071
- token.end = lastTemplateToken.range[1];
17072
- token.range = [token.start, token.end];
17073
- }
17074
- return token;
17051
+ function createGlobalLinebreakMatcher() {
17052
+ return new RegExp(lineBreakPattern.source, "gu");
17075
17053
  }
17076
- /**
17077
- * Contains logic to translate Acorn tokens into Esprima tokens.
17078
- */
17079
- var TokenTranslator = class {
17080
- /**
17081
- * Contains logic to translate Acorn tokens into Esprima tokens.
17082
- * @param {EnhancedTokTypes} acornTokTypes The Acorn token types.
17083
- * @param {string|String} code The source code Acorn is parsing. This is necessary
17084
- * to correct the "value" property of some tokens.
17085
- */
17086
- constructor(acornTokTypes, code) {
17087
- this._acornTokTypes = acornTokTypes;
17088
- /** @type {acorn.Token[]} */
17089
- this._tokens = [];
17090
- this._curlyBrace = null;
17091
- this._code = code;
17092
- }
17093
- /**
17094
- * Translates a single Esprima token to a single Acorn token. This may be
17095
- * inaccurate due to how templates are handled differently in Esprima and
17096
- * Acorn, but should be accurate for all other tokens.
17097
- * @param {acorn.Token} token The Acorn token to translate.
17098
- * @param {ExtraNoTokens} extra Espree extra object.
17099
- * @returns {EsprimaToken} The Esprima version of the token.
17100
- */
17101
- translate(token, extra) {
17102
- const type = token.type, tt = this._acornTokTypes, newToken = token;
17103
- if (type === tt.name) {
17104
- newToken.type = Token.Identifier;
17105
- if ("value" in token && token.value === "static") newToken.type = Token.Keyword;
17106
- if (extra.ecmaVersion > 5 && "value" in token && (token.value === "yield" || token.value === "let")) newToken.type = Token.Keyword;
17107
- } else if (type === tt.privateId) newToken.type = Token.PrivateIdentifier;
17108
- else if (type === tt.semi || type === tt.comma || type === tt.parenL || type === tt.parenR || type === tt.braceL || type === tt.braceR || type === tt.dot || type === tt.bracketL || type === tt.colon || type === tt.question || type === tt.bracketR || type === tt.ellipsis || type === tt.arrow || type === tt.jsxTagStart || type === tt.incDec || type === tt.starstar || type === tt.jsxTagEnd || type === tt.prefix || type === tt.questionDot || "binop" in type && type.binop && !type.keyword || "isAssign" in type && type.isAssign) {
17109
- newToken.type = Token.Punctuator;
17110
- newToken.value = this._code.slice(token.start, token.end);
17111
- } else if (type === tt.jsxName) newToken.type = Token.JSXIdentifier;
17112
- else if (type.label === "jsxText" || type === tt.jsxAttrValueToken) newToken.type = Token.JSXText;
17113
- else if (type.keyword) if (type.keyword === "true" || type.keyword === "false") newToken.type = Token.Boolean;
17114
- else if (type.keyword === "null") newToken.type = Token.Null;
17115
- else newToken.type = Token.Keyword;
17116
- else if (type === tt.num) {
17117
- newToken.type = Token.Numeric;
17118
- newToken.value = this._code.slice(token.start, token.end);
17119
- } else if (type === tt.string) {
17120
- if (extra.jsxAttrValueToken) {
17121
- extra.jsxAttrValueToken = false;
17122
- newToken.type = Token.JSXText;
17123
- } else newToken.type = Token.String;
17124
- newToken.value = this._code.slice(token.start, token.end);
17125
- } else if (type === tt.regexp) {
17126
- newToken.type = Token.RegularExpression;
17127
- const value = "value" in token && token.value;
17128
- newToken.regex = {
17129
- flags: value.flags,
17130
- pattern: value.pattern
17131
- };
17132
- newToken.value = `/${value.pattern}/${value.flags}`;
17133
- }
17134
- return newToken;
17135
- }
17136
- /**
17137
- * Function to call during Acorn's onToken handler.
17138
- * @param {acorn.Token} token The Acorn token.
17139
- * @param {Extra} extra The Espree extra object.
17140
- * @returns {void}
17141
- */
17142
- onToken(token, extra) {
17143
- const tt = this._acornTokTypes, tokens = extra.tokens, templateTokens = this._tokens;
17144
- /**
17145
- * Flushes the buffered template tokens and resets the template
17146
- * tracking.
17147
- * @returns {void}
17148
- * @private
17149
- */
17150
- const translateTemplateTokens = () => {
17151
- tokens.push(convertTemplatePart(this._tokens, this._code));
17152
- this._tokens = [];
17153
- };
17154
- if (token.type === tt.eof) {
17155
- if (this._curlyBrace) tokens.push(this.translate(this._curlyBrace, extra));
17156
- return;
17157
- }
17158
- if (token.type === tt.backQuote) {
17159
- if (this._curlyBrace) {
17160
- tokens.push(this.translate(this._curlyBrace, extra));
17161
- this._curlyBrace = null;
17162
- }
17163
- templateTokens.push(token);
17164
- if (templateTokens.length > 1) translateTemplateTokens();
17165
- return;
17166
- }
17167
- if (token.type === tt.dollarBraceL) {
17168
- templateTokens.push(token);
17169
- translateTemplateTokens();
17170
- return;
17171
- }
17172
- if (token.type === tt.braceR) {
17173
- if (this._curlyBrace) tokens.push(this.translate(this._curlyBrace, extra));
17174
- this._curlyBrace = token;
17175
- return;
17176
- }
17177
- if (token.type === tt.template || token.type === tt.invalidTemplate) {
17178
- if (this._curlyBrace) {
17179
- templateTokens.push(this._curlyBrace);
17180
- this._curlyBrace = null;
17181
- }
17182
- templateTokens.push(token);
17183
- return;
17184
- }
17185
- if (this._curlyBrace) {
17186
- tokens.push(this.translate(this._curlyBrace, extra));
17187
- this._curlyBrace = null;
17188
- }
17189
- tokens.push(this.translate(token, extra));
17054
+ module.exports = {
17055
+ breakableTypePattern,
17056
+ lineBreakPattern,
17057
+ createGlobalLinebreakMatcher,
17058
+ shebangPattern
17059
+ };
17060
+ }));
17061
+ //#endregion
17062
+ //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/conf/globals.js
17063
+ /**
17064
+ * @fileoverview Globals for ecmaVersion/sourceType
17065
+ * @author Nicholas C. Zakas
17066
+ */
17067
+ var require_globals = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17068
+ const commonjs = {
17069
+ exports: true,
17070
+ global: false,
17071
+ module: false,
17072
+ require: false
17073
+ };
17074
+ const es3 = {
17075
+ Array: false,
17076
+ Boolean: false,
17077
+ constructor: false,
17078
+ Date: false,
17079
+ decodeURI: false,
17080
+ decodeURIComponent: false,
17081
+ encodeURI: false,
17082
+ encodeURIComponent: false,
17083
+ Error: false,
17084
+ escape: false,
17085
+ eval: false,
17086
+ EvalError: false,
17087
+ Function: false,
17088
+ hasOwnProperty: false,
17089
+ Infinity: false,
17090
+ isFinite: false,
17091
+ isNaN: false,
17092
+ isPrototypeOf: false,
17093
+ Math: false,
17094
+ NaN: false,
17095
+ Number: false,
17096
+ Object: false,
17097
+ parseFloat: false,
17098
+ parseInt: false,
17099
+ propertyIsEnumerable: false,
17100
+ RangeError: false,
17101
+ ReferenceError: false,
17102
+ RegExp: false,
17103
+ String: false,
17104
+ SyntaxError: false,
17105
+ toLocaleString: false,
17106
+ toString: false,
17107
+ TypeError: false,
17108
+ undefined: false,
17109
+ unescape: false,
17110
+ URIError: false,
17111
+ valueOf: false
17112
+ };
17113
+ const es5 = {
17114
+ ...es3,
17115
+ JSON: false
17116
+ };
17117
+ const es2015 = {
17118
+ ...es5,
17119
+ ArrayBuffer: false,
17120
+ DataView: false,
17121
+ Float32Array: false,
17122
+ Float64Array: false,
17123
+ Int16Array: false,
17124
+ Int32Array: false,
17125
+ Int8Array: false,
17126
+ Intl: false,
17127
+ Map: false,
17128
+ Promise: false,
17129
+ Proxy: false,
17130
+ Reflect: false,
17131
+ Set: false,
17132
+ Symbol: false,
17133
+ Uint16Array: false,
17134
+ Uint32Array: false,
17135
+ Uint8Array: false,
17136
+ Uint8ClampedArray: false,
17137
+ WeakMap: false,
17138
+ WeakSet: false
17139
+ };
17140
+ const es2016 = { ...es2015 };
17141
+ const es2017 = {
17142
+ ...es2016,
17143
+ Atomics: false,
17144
+ SharedArrayBuffer: false
17145
+ };
17146
+ const es2018 = { ...es2017 };
17147
+ const es2019 = { ...es2018 };
17148
+ const es2020 = {
17149
+ ...es2019,
17150
+ BigInt: false,
17151
+ BigInt64Array: false,
17152
+ BigUint64Array: false,
17153
+ globalThis: false
17154
+ };
17155
+ const es2021 = {
17156
+ ...es2020,
17157
+ AggregateError: false,
17158
+ FinalizationRegistry: false,
17159
+ WeakRef: false
17160
+ };
17161
+ const es2022 = { ...es2021 };
17162
+ const es2023 = { ...es2022 };
17163
+ const es2024 = { ...es2023 };
17164
+ const es2025 = {
17165
+ ...es2024,
17166
+ Float16Array: false,
17167
+ Iterator: false
17168
+ };
17169
+ module.exports = {
17170
+ commonjs,
17171
+ es3,
17172
+ es5,
17173
+ es2015,
17174
+ es2016,
17175
+ es2017,
17176
+ es2018,
17177
+ es2019,
17178
+ es2020,
17179
+ es2021,
17180
+ es2022,
17181
+ es2023,
17182
+ es2024,
17183
+ es2025,
17184
+ es2026: {
17185
+ ...es2025,
17186
+ AsyncDisposableStack: false,
17187
+ DisposableStack: false,
17188
+ SuppressedError: false,
17189
+ Temporal: false
17190
17190
  }
17191
17191
  };
17192
+ }));
17193
+ //#endregion
17194
+ //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/conf/ecma-version.js
17195
+ /**
17196
+ * @fileoverview Configuration related to ECMAScript versions
17197
+ * @author Milos Djermanovic
17198
+ */
17199
+ var require_ecma_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17200
+ module.exports = { LATEST_ECMA_VERSION: 2026 };
17201
+ }));
17202
+ //#endregion
17203
+ //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/lib/rules/utils/ast-utils.js
17204
+ /**
17205
+ * @fileoverview Common utils for AST.
17206
+ * @author Gyandeep Singh
17207
+ */
17208
+ var require_ast_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17209
+ const { KEYS: eslintVisitorKeys } = require_eslint_visitor_keys$1();
17210
+ const esutils = require_utils$3();
17211
+ const espree = require_espree();
17212
+ const escapeRegExp = require_escape_string_regexp();
17213
+ const { breakableTypePattern, createGlobalLinebreakMatcher, lineBreakPattern, shebangPattern } = require_ast_utils$1();
17214
+ const globals = require_globals();
17215
+ const { LATEST_ECMA_VERSION } = require_ecma_version();
17216
+ /** @typedef {import("eslint-scope").Scope} Scope */
17217
+ /** @typedef {import("eslint-scope").Variable} Variable */
17218
+ const anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;
17219
+ const anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u;
17220
+ const arrayMethodWithThisArgPattern = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u;
17221
+ const arrayOrTypedArrayPattern = /Array$/u;
17222
+ const bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u;
17223
+ const thisTagPattern = /^[\s*]*@this/mu;
17224
+ const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u;
17225
+ const ESLINT_DIRECTIVE_PATTERN = /^(?:eslint[- ]|(?:globals?|exported) )/u;
17226
+ const LINEBREAKS = new Set([
17227
+ "\r\n",
17228
+ "\r",
17229
+ "\n",
17230
+ "\u2028",
17231
+ "\u2029"
17232
+ ]);
17233
+ const STATEMENT_LIST_PARENTS = new Set([
17234
+ "Program",
17235
+ "BlockStatement",
17236
+ "StaticBlock",
17237
+ "SwitchCase"
17238
+ ]);
17239
+ const LEXICAL_DECLARATION_KINDS = new Set([
17240
+ "let",
17241
+ "const",
17242
+ "using",
17243
+ "await using"
17244
+ ]);
17245
+ const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;
17246
+ const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su;
17247
+ const LOGICAL_ASSIGNMENT_OPERATORS = new Set([
17248
+ "&&=",
17249
+ "||=",
17250
+ "??="
17251
+ ]);
17192
17252
  /**
17193
- * @fileoverview A collection of methods for processing Espree's options.
17194
- * @author Kai Cataldo
17253
+ * All builtin global variables defined in the latest ECMAScript specification.
17254
+ * @type {Record<string,boolean>} Key is the name of the variable. Value is `true` if the variable is considered writable, `false` otherwise.
17195
17255
  */
17256
+ const ECMASCRIPT_GLOBALS = globals[`es${LATEST_ECMA_VERSION}`];
17196
17257
  /**
17197
- * @import { EcmaVersion, Options } from "../espree.js";
17258
+ * Checks reference if is non initializer and writable.
17259
+ * @param {Reference} reference A reference to check.
17260
+ * @param {number} index The index of the reference in the references.
17261
+ * @param {Reference[]} references The array that the reference belongs to.
17262
+ * @returns {boolean} Success/Failure
17263
+ * @private
17198
17264
  */
17199
- const SUPPORTED_VERSIONS = [
17200
- 3,
17201
- 5,
17202
- 6,
17203
- 7,
17204
- 8,
17205
- 9,
17206
- 10,
17207
- 11,
17208
- 12,
17209
- 13,
17210
- 14,
17211
- 15,
17212
- 16,
17213
- 17
17214
- ];
17265
+ function isModifyingReference(reference, index, references) {
17266
+ const identifier = reference.identifier;
17267
+ const modifyingDifferentIdentifier = index === 0 || references[index - 1].identifier !== identifier;
17268
+ return identifier && reference.init === false && reference.isWrite() && modifyingDifferentIdentifier;
17269
+ }
17215
17270
  /**
17216
- * @typedef {typeof SUPPORTED_VERSIONS[number]} NormalizedEcmaVersion
17271
+ * Checks whether the given string starts with uppercase or not.
17272
+ * @param {string} s The string to check.
17273
+ * @returns {boolean} `true` if the string starts with uppercase.
17217
17274
  */
17218
- const LATEST_ECMA_VERSION = SUPPORTED_VERSIONS.at(-1);
17275
+ function startsWithUpperCase(s) {
17276
+ return s[0] !== s[0].toLocaleLowerCase();
17277
+ }
17219
17278
  /**
17220
- * Get the latest ECMAScript version supported by Espree.
17221
- * @returns {typeof LATEST_ECMA_VERSION} The latest ECMAScript version.
17279
+ * Checks whether or not a node is a constructor.
17280
+ * @param {ASTNode} node A function node to check.
17281
+ * @returns {boolean} Whether or not a node is a constructor.
17222
17282
  */
17223
- function getLatestEcmaVersion() {
17224
- return LATEST_ECMA_VERSION;
17283
+ function isES5Constructor(node) {
17284
+ return node.id && startsWithUpperCase(node.id.name);
17225
17285
  }
17226
17286
  /**
17227
- * Get the list of ECMAScript versions supported by Espree.
17228
- * @returns {[...typeof SUPPORTED_VERSIONS]} An array containing the supported ECMAScript versions.
17287
+ * Finds a function node from ancestors of a node.
17288
+ * @param {ASTNode} node A start node to find.
17289
+ * @returns {Node|null} A found function node.
17229
17290
  */
17230
- function getSupportedEcmaVersions() {
17231
- return [...SUPPORTED_VERSIONS];
17291
+ function getUpperFunction(node) {
17292
+ for (let currentNode = node; currentNode; currentNode = currentNode.parent) if (anyFunctionPattern.test(currentNode.type)) return currentNode;
17293
+ return null;
17232
17294
  }
17233
17295
  /**
17234
- * Normalize ECMAScript version from the initial config
17235
- * @param {EcmaVersion} ecmaVersion ECMAScript version from the initial config
17236
- * @throws {Error} throws an error if the ecmaVersion is invalid.
17237
- * @returns {NormalizedEcmaVersion} normalized ECMAScript version
17238
- */
17239
- function normalizeEcmaVersion(ecmaVersion = 5) {
17240
- let version = ecmaVersion === "latest" ? getLatestEcmaVersion() : ecmaVersion;
17241
- if (typeof version !== "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof ecmaVersion} instead.`);
17242
- if (version >= 2015) version -= 2009;
17243
- if (!SUPPORTED_VERSIONS.includes(version)) throw new Error("Invalid ecmaVersion.");
17244
- return version;
17245
- }
17246
- /**
17247
- * Normalize sourceType from the initial config
17248
- * @param {string} sourceType to normalize
17249
- * @throws {Error} throw an error if sourceType is invalid
17250
- * @returns {"script"|"module"|"commonjs"} normalized sourceType
17296
+ * Checks whether a given node is a function node or not.
17297
+ * The following types are function nodes:
17298
+ *
17299
+ * - ArrowFunctionExpression
17300
+ * - FunctionDeclaration
17301
+ * - FunctionExpression
17302
+ * @param {ASTNode|null} node A node to check.
17303
+ * @returns {boolean} `true` if the node is a function node.
17251
17304
  */
17252
- function normalizeSourceType(sourceType = "script") {
17253
- if (sourceType === "script" || sourceType === "module" || sourceType === "commonjs") return sourceType;
17254
- throw new Error("Invalid sourceType.");
17305
+ function isFunction(node) {
17306
+ return Boolean(node && anyFunctionPattern.test(node.type));
17255
17307
  }
17256
17308
  /**
17257
- * @typedef {{
17258
- * ecmaVersion: NormalizedEcmaVersion,
17259
- * sourceType: "script"|"module"|"commonjs",
17260
- * range?: boolean,
17261
- * loc?: boolean,
17262
- * allowReserved: boolean | "never",
17263
- * ecmaFeatures?: {
17264
- * jsx?: boolean,
17265
- * globalReturn?: boolean,
17266
- * impliedStrict?: boolean
17267
- * },
17268
- * ranges: boolean,
17269
- * locations: boolean,
17270
- * allowReturnOutsideFunction: boolean,
17271
- * tokens?: boolean,
17272
- * comment?: boolean
17273
- * }} NormalizedParserOptions
17274
- */
17275
- /**
17276
- * Normalize parserOptions
17277
- * @param {Options} options the parser options to normalize
17278
- * @throws {Error} throw an error if found invalid option.
17279
- * @returns {NormalizedParserOptions} normalized options
17309
+ * Checks whether a given node is a loop node or not.
17310
+ * The following types are loop nodes:
17311
+ *
17312
+ * - DoWhileStatement
17313
+ * - ForInStatement
17314
+ * - ForOfStatement
17315
+ * - ForStatement
17316
+ * - WhileStatement
17317
+ * @param {ASTNode|null} node A node to check.
17318
+ * @returns {boolean} `true` if the node is a loop node.
17280
17319
  */
17281
- function normalizeOptions(options) {
17282
- const ecmaVersion = normalizeEcmaVersion(options.ecmaVersion);
17283
- const sourceType = normalizeSourceType(options.sourceType);
17284
- const ranges = options.range === true;
17285
- const locations = options.loc === true;
17286
- if (ecmaVersion !== 3 && options.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
17287
- if (typeof options.allowReserved !== "undefined" && typeof options.allowReserved !== "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
17288
- const allowReserved = ecmaVersion === 3 ? options.allowReserved || "never" : false;
17289
- const ecmaFeatures = options.ecmaFeatures || {};
17290
- const allowReturnOutsideFunction = options.sourceType === "commonjs" || Boolean(ecmaFeatures.globalReturn);
17291
- if (sourceType === "module" && ecmaVersion < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
17292
- return Object.assign({}, options, {
17293
- ecmaVersion,
17294
- sourceType,
17295
- ranges,
17296
- locations,
17297
- allowReserved,
17298
- allowReturnOutsideFunction
17299
- });
17320
+ function isLoop(node) {
17321
+ return Boolean(node && anyLoopPattern.test(node.type));
17300
17322
  }
17301
17323
  /**
17302
- * @import {
17303
- * CommentType,
17304
- * EspreeParserCtor,
17305
- * EsprimaNode,
17306
- * AcornJsxParserCtorEnhanced,
17307
- * TokTypes
17308
- * } from "./types.js";
17309
- * @import {
17310
- * Options,
17311
- * EspreeToken as EsprimaToken,
17312
- * EspreeTokens as EsprimaTokens,
17313
- * EspreeComment as EsprimaComment
17314
- * } from "../espree.js";
17315
- * @import { NormalizedEcmaVersion } from "./options.js";
17316
- * @import * as acorn from "acorn";
17317
- */
17318
- /**
17319
- * @typedef {{
17320
- * originalSourceType: "script" | "module" | "commonjs" | undefined
17321
- * tokens: EsprimaToken[] | null,
17322
- * comments: EsprimaComment[] | null,
17323
- * impliedStrict: boolean,
17324
- * ecmaVersion: NormalizedEcmaVersion,
17325
- * jsxAttrValueToken: boolean,
17326
- * lastToken: acorn.Token | null,
17327
- * templateElements: acorn.TemplateElement[]
17328
- * }} State
17324
+ * Checks whether the given node is in a loop or not.
17325
+ * @param {ASTNode} node The node to check.
17326
+ * @returns {boolean} `true` if the node is in a loop.
17329
17327
  */
17328
+ function isInLoop(node) {
17329
+ for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) if (isLoop(currentNode)) return true;
17330
+ return false;
17331
+ }
17330
17332
  /**
17331
- * @typedef {{
17332
- * sourceType?: "script"|"module"|"commonjs";
17333
- * comments?: EsprimaComment[];
17334
- * tokens?: EsprimaToken[];
17335
- * body: acorn.Node[];
17336
- * } & acorn.Program} EsprimaProgramNode
17333
+ * Determines whether the given node is a `null` literal.
17334
+ * @param {ASTNode} node The node to check
17335
+ * @returns {boolean} `true` if the node is a `null` literal
17337
17336
  */
17337
+ function isNullLiteral(node) {
17338
+ return node.type === "Literal" && node.value === null && !node.regex && !node.bigint;
17339
+ }
17338
17340
  /**
17339
- * @typedef {{
17340
- * index?: number;
17341
- * lineNumber?: number;
17342
- * column?: number;
17343
- * } & SyntaxError} EnhancedSyntaxError
17341
+ * Checks whether or not a node is `null` or `undefined`.
17342
+ * @param {ASTNode} node A node to check.
17343
+ * @returns {boolean} Whether or not the node is a `null` or `undefined`.
17344
+ * @public
17344
17345
  */
17346
+ function isNullOrUndefined(node) {
17347
+ return isNullLiteral(node) || node.type === "Identifier" && node.name === "undefined" || node.type === "UnaryExpression" && node.operator === "void";
17348
+ }
17345
17349
  /**
17346
- * @typedef {{
17347
- * jsxAttrValueToken?: acorn.TokenType;
17348
- * } & TokTypes} EnhancedTokTypes
17350
+ * Checks whether or not a node is callee.
17351
+ * @param {ASTNode} node A node to check.
17352
+ * @returns {boolean} Whether or not the node is callee.
17349
17353
  */
17350
- const STATE = Symbol("espree's internal state");
17351
- const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode");
17354
+ function isCallee(node) {
17355
+ return node.parent.type === "CallExpression" && node.parent.callee === node;
17356
+ }
17352
17357
  /**
17353
- * Converts an Acorn comment to a Esprima comment.
17354
- * @param {boolean} block True if it's a block comment, false if not.
17355
- * @param {string} text The text of the comment.
17356
- * @param {number} start The index at which the comment starts.
17357
- * @param {number} end The index at which the comment ends.
17358
- * @param {acorn.Position | undefined} startLoc The location at which the comment starts.
17359
- * @param {acorn.Position | undefined} endLoc The location at which the comment ends.
17360
- * @param {string} code The source code being parsed.
17361
- * @returns {EsprimaComment} The comment object.
17362
- * @private
17358
+ * Returns the result of the string conversion applied to the evaluated value of the given expression node,
17359
+ * if it can be determined statically.
17360
+ *
17361
+ * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only.
17362
+ * In all other cases, this function returns `null`.
17363
+ * @param {ASTNode} node Expression node.
17364
+ * @returns {string|null} String value if it can be determined. Otherwise, `null`.
17363
17365
  */
17364
- function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) {
17365
- /** @type {CommentType} */
17366
- let type;
17367
- if (block) type = "Block";
17368
- else if (code.slice(start, start + 2) === "#!") type = "Hashbang";
17369
- else type = "Line";
17370
- /**
17371
- * @type {{
17372
- * type: CommentType,
17373
- * value: string,
17374
- * start?: number,
17375
- * end?: number,
17376
- * range?: [number, number],
17377
- * loc?: {
17378
- * start: acorn.Position | undefined,
17379
- * end: acorn.Position | undefined
17380
- * }
17381
- * }}
17382
- */
17383
- const comment = {
17384
- type,
17385
- value: text
17386
- };
17387
- if (typeof start === "number") {
17388
- comment.start = start;
17389
- comment.end = end;
17390
- comment.range = [start, end];
17366
+ function getStaticStringValue(node) {
17367
+ switch (node.type) {
17368
+ case "Literal":
17369
+ if (node.value === null) {
17370
+ if (isNullLiteral(node)) return String(node.value);
17371
+ if (node.regex) return `/${node.regex.pattern}/${node.regex.flags}`;
17372
+ if (node.bigint) return node.bigint;
17373
+ } else return String(node.value);
17374
+ break;
17375
+ case "TemplateLiteral":
17376
+ if (node.expressions.length === 0 && node.quasis.length === 1) return node.quasis[0].value.cooked;
17377
+ break;
17391
17378
  }
17392
- if (typeof startLoc === "object") comment.loc = {
17393
- start: startLoc,
17394
- end: endLoc
17395
- };
17396
- return comment;
17379
+ return null;
17397
17380
  }
17398
- var espree = () => {
17399
- /**
17400
- * Returns the Espree parser.
17401
- * @param {AcornJsxParserCtorEnhanced} Parser The Acorn parser. The `acorn` property is missing from acorn's
17402
- * TypeScript but is present statically on the class.
17403
- * @returns {EspreeParserCtor} The Espree Parser constructor.
17404
- */
17405
- return (Parser) => {
17406
- const tokTypes = Object.assign({}, Parser.acorn.tokTypes);
17407
- if (Parser.acornJsx) Object.assign(tokTypes, Parser.acornJsx.tokTypes);
17408
- return class Espree extends Parser {
17409
- /**
17410
- * @param {Options | null | undefined} opts The parser options
17411
- * @param {string | object} code The code which will be converted to a string.
17412
- */
17413
- constructor(opts, code) {
17414
- if (typeof opts !== "object" || opts === null) opts = {};
17415
- if (typeof code !== "string" && !(code instanceof String)) code = String(code);
17416
- const originalSourceType = opts.sourceType;
17417
- const options = normalizeOptions(opts);
17418
- const ecmaFeatures = options.ecmaFeatures || {};
17419
- const tokenTranslator = options.tokens === true ? new TokenTranslator(tokTypes, code) : null;
17420
- /**
17421
- * Data that is unique to Espree and is not represented internally
17422
- * in Acorn.
17423
- *
17424
- * For ES2023 hashbangs, Espree will call `onComment()` during the
17425
- * constructor, so we must define state before having access to
17426
- * `this`.
17427
- * @type {State}
17428
- */
17429
- const state = {
17430
- originalSourceType: originalSourceType || options.sourceType,
17431
- tokens: tokenTranslator ? [] : null,
17432
- comments: options.comment === true ? [] : null,
17433
- impliedStrict: ecmaFeatures.impliedStrict === true && options.ecmaVersion >= 5,
17434
- ecmaVersion: options.ecmaVersion,
17435
- jsxAttrValueToken: false,
17436
- lastToken: null,
17437
- templateElements: []
17438
- };
17439
- super({
17440
- ecmaVersion: options.ecmaVersion,
17441
- sourceType: options.sourceType,
17442
- ranges: options.ranges,
17443
- locations: options.locations,
17444
- allowReserved: options.allowReserved,
17445
- allowReturnOutsideFunction: options.allowReturnOutsideFunction,
17446
- onToken(token) {
17447
- if (tokenTranslator) tokenTranslator.onToken(token, state);
17448
- if (token.type !== tokTypes.eof) state.lastToken = token;
17449
- },
17450
- onComment(block, text, start, end, startLoc, endLoc) {
17451
- if (state.comments) {
17452
- const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code);
17453
- state.comments.push(comment);
17454
- }
17455
- }
17456
- }, code);
17457
- this[STATE] = state;
17458
- }
17459
- /**
17460
- * Returns Espree tokens.
17461
- * @returns {EsprimaTokens} The Esprima-compatible tokens
17462
- */
17463
- tokenize() {
17464
- do
17465
- this.next();
17466
- while (this.type !== tokTypes.eof);
17467
- this.next();
17468
- const extra = this[STATE];
17469
- const tokens = extra.tokens;
17470
- if (extra.comments) tokens.comments = extra.comments;
17471
- return tokens;
17472
- }
17473
- /**
17474
- * Calls parent.
17475
- * @param {acorn.Node} node The node
17476
- * @param {string} type The type
17477
- * @returns {acorn.Node} The altered Node
17478
- */
17479
- finishNode(node, type) {
17480
- const result = super.finishNode(node, type);
17481
- return this[ESPRIMA_FINISH_NODE](result);
17482
- }
17483
- /**
17484
- * Calls parent.
17485
- * @param {acorn.Node} node The node
17486
- * @param {string} type The type
17487
- * @param {number} pos The position
17488
- * @param {acorn.Position} loc The location
17489
- * @returns {acorn.Node} The altered Node
17490
- */
17491
- finishNodeAt(node, type, pos, loc) {
17492
- const result = super.finishNodeAt(node, type, pos, loc);
17493
- return this[ESPRIMA_FINISH_NODE](result);
17494
- }
17495
- /**
17496
- * Parses.
17497
- * @returns {EsprimaProgramNode} The program Node
17498
- */
17499
- parse() {
17500
- const extra = this[STATE];
17501
- const program = super.parse();
17502
- program.sourceType = extra.originalSourceType;
17503
- if (extra.comments) program.comments = extra.comments;
17504
- if (extra.tokens) program.tokens = extra.tokens;
17505
- this[STATE].templateElements.forEach((templateElement) => {
17506
- const startOffset = -1;
17507
- const endOffset = templateElement.tail ? 1 : 2;
17508
- templateElement.start += startOffset;
17509
- templateElement.end += endOffset;
17510
- if (templateElement.range) {
17511
- templateElement.range[0] += startOffset;
17512
- templateElement.range[1] += endOffset;
17513
- }
17514
- if (templateElement.loc) {
17515
- templateElement.loc.start.column += startOffset;
17516
- templateElement.loc.end.column += endOffset;
17517
- }
17518
- });
17519
- return program;
17520
- }
17521
- /**
17522
- * Parses top level.
17523
- * @param {acorn.Node} node AST Node
17524
- * @returns {acorn.Node} The changed node
17525
- */
17526
- parseTopLevel(node) {
17527
- if (this[STATE].impliedStrict) this.strict = true;
17528
- return super.parseTopLevel(node);
17529
- }
17530
- /**
17531
- * Overwrites the default raise method to throw Esprima-style errors.
17532
- * @param {number} pos The position of the error.
17533
- * @param {string} message The error message.
17534
- * @throws {EnhancedSyntaxError} A syntax error.
17535
- * @returns {void}
17536
- */
17537
- raise(pos, message) {
17538
- const loc = Parser.acorn.getLineInfo(this.input, pos);
17539
- const err = new SyntaxError(message);
17540
- err.index = pos;
17541
- err.lineNumber = loc.line;
17542
- err.column = loc.column + 1;
17543
- throw err;
17544
- }
17545
- /**
17546
- * Overwrites the default raise method to throw Esprima-style errors.
17547
- * @param {number} pos The position of the error.
17548
- * @param {string} message The error message.
17549
- * @throws {SyntaxError} A syntax error.
17550
- * @returns {void}
17551
- */
17552
- raiseRecoverable(pos, message) {
17553
- this.raise(pos, message);
17554
- }
17555
- /**
17556
- * Overwrites the default unexpected method to throw Esprima-style errors.
17557
- * @param {number} pos The position of the error.
17558
- * @throws {SyntaxError} A syntax error.
17559
- * @returns {void}
17560
- */
17561
- unexpected(pos) {
17562
- let message = "Unexpected token";
17563
- if (pos !== null && pos !== void 0) {
17564
- this.pos = pos;
17565
- if (this.options.locations) while (this.pos < this.lineStart) {
17566
- this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1;
17567
- --this.curLine;
17568
- }
17569
- this.nextToken();
17570
- }
17571
- if (this.end > this.start) message += ` ${this.input.slice(this.start, this.end)}`;
17572
- this.raise(this.start, message);
17573
- }
17574
- /**
17575
- * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX
17576
- * uses regular tt.string without any distinction between this and regular JS
17577
- * strings. As such, we intercept an attempt to read a JSX string and set a flag
17578
- * on extra so that when tokens are converted, the next token will be switched
17579
- * to JSXText via onToken.
17580
- * @param {number} quote A character code
17581
- * @returns {void}
17582
- */ jsx_readString(quote) {
17583
- const result = super.jsx_readString(quote);
17584
- if (this.type === tokTypes.string) this[STATE].jsxAttrValueToken = true;
17585
- return result;
17586
- }
17587
- /**
17588
- * Performs last-minute Esprima-specific compatibility checks and fixes.
17589
- * @param {acorn.Node} result The node to check.
17590
- * @returns {EsprimaNode} The finished node.
17591
- */
17592
- [ESPRIMA_FINISH_NODE](result) {
17593
- if (result.type === "TemplateElement") this[STATE].templateElements.push(result);
17594
- if (result.type.includes("Function") && !("generator" in result))
17595
- /**
17596
- * @type {acorn.FunctionDeclaration|acorn.FunctionExpression|
17597
- * acorn.ArrowFunctionExpression}
17598
- */
17599
- result.generator = false;
17600
- return result;
17601
- }
17602
- };
17603
- };
17604
- };
17605
17381
  /**
17606
- * @fileoverview Main Espree file that converts Acorn into Esprima output.
17607
- *
17608
- * This file contains code from the following MIT-licensed projects:
17609
- * 1. Acorn
17610
- * 2. Babylon
17611
- * 3. Babel-ESLint
17612
- *
17613
- * This file also contains code from Esprima, which is BSD licensed.
17614
- *
17615
- * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS)
17616
- * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS)
17617
- * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie <sebmck@gmail.com>
17618
- *
17619
- * Redistribution and use in source and binary forms, with or without
17620
- * modification, are permitted provided that the following conditions are met:
17621
- *
17622
- * * Redistributions of source code must retain the above copyright
17623
- * notice, this list of conditions and the following disclaimer.
17624
- * * Redistributions in binary form must reproduce the above copyright
17625
- * notice, this list of conditions and the following disclaimer in the
17626
- * documentation and/or other materials provided with the distribution.
17627
- *
17628
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17629
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17630
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17631
- * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
17632
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17633
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17634
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
17635
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
17636
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
17637
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17382
+ * Gets the property name of a given node.
17383
+ * The node can be a MemberExpression, a Property, or a MethodDefinition.
17638
17384
  *
17639
- * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved.
17385
+ * If the name is dynamic, this returns `null`.
17640
17386
  *
17641
- * Redistribution and use in source and binary forms, with or without
17642
- * modification, are permitted provided that the following conditions are met:
17387
+ * For examples:
17643
17388
  *
17644
- * * Redistributions of source code must retain the above copyright
17645
- * notice, this list of conditions and the following disclaimer.
17646
- * * Redistributions in binary form must reproduce the above copyright
17647
- * notice, this list of conditions and the following disclaimer in the
17648
- * documentation and/or other materials provided with the distribution.
17389
+ * a.b // => "b"
17390
+ * a["b"] // => "b"
17391
+ * a['b'] // => "b"
17392
+ * a[`b`] // => "b"
17393
+ * a[100] // => "100"
17394
+ * a[b] // => null
17395
+ * a["a" + "b"] // => null
17396
+ * a[tag`b`] // => null
17397
+ * a[`${b}`] // => null
17649
17398
  *
17650
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17651
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17652
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17653
- * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
17654
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17655
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17656
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
17657
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
17658
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
17659
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17399
+ * let a = {b: 1} // => "b"
17400
+ * let a = {["b"]: 1} // => "b"
17401
+ * let a = {['b']: 1} // => "b"
17402
+ * let a = {[`b`]: 1} // => "b"
17403
+ * let a = {[100]: 1} // => "100"
17404
+ * let a = {[b]: 1} // => null
17405
+ * let a = {["a" + "b"]: 1} // => null
17406
+ * let a = {[tag`b`]: 1} // => null
17407
+ * let a = {[`${b}`]: 1} // => null
17408
+ * @param {ASTNode} node The node to get.
17409
+ * @returns {string|null} The property name if static. Otherwise, null.
17660
17410
  */
17411
+ function getStaticPropertyName(node) {
17412
+ let prop;
17413
+ switch (node && node.type) {
17414
+ case "ChainExpression": return getStaticPropertyName(node.expression);
17415
+ case "Property":
17416
+ case "PropertyDefinition":
17417
+ case "MethodDefinition":
17418
+ case "TSPropertySignature":
17419
+ case "TSMethodSignature":
17420
+ prop = node.key;
17421
+ break;
17422
+ case "MemberExpression":
17423
+ prop = node.property;
17424
+ break;
17425
+ }
17426
+ if (prop) {
17427
+ if (prop.type === "Identifier" && !node.computed) return prop.name;
17428
+ return getStaticStringValue(prop);
17429
+ }
17430
+ return null;
17431
+ }
17661
17432
  /**
17662
- * @import { EspreeParserCtor, EspreeParserJsxCtor } from "./lib/types.js";
17663
- */
17664
- /**
17665
- * @typedef {3|5|6|7|8|9|10|11|12|13|14|15|16|17|2015|2016|2017|2018|2019|2020|2021|2022|2023|2024|2025|2026|'latest'} EcmaVersion
17433
+ * Retrieve `ChainExpression#expression` value if the given node a `ChainExpression` node. Otherwise, pass through it.
17434
+ * @param {ASTNode} node The node to address.
17435
+ * @returns {ASTNode} The `ChainExpression#expression` value if the node is a `ChainExpression` node. Otherwise, the node.
17666
17436
  */
17437
+ function skipChainExpression(node) {
17438
+ return node && node.type === "ChainExpression" ? node.expression : node;
17439
+ }
17667
17440
  /**
17668
- * @typedef {{
17669
- * type: string;
17670
- * value: any;
17671
- * start?: number;
17672
- * end?: number;
17673
- * loc?: acorn.SourceLocation;
17674
- * range?: [number, number];
17675
- * regex?: {flags: string, pattern: string};
17676
- * }} EspreeToken
17441
+ * Check if the `actual` is an expected value.
17442
+ * @param {string} actual The string value to check.
17443
+ * @param {string | RegExp} expected The expected string value or pattern.
17444
+ * @returns {boolean} `true` if the `actual` is an expected value.
17677
17445
  */
17446
+ function checkText(actual, expected) {
17447
+ return typeof expected === "string" ? actual === expected : expected.test(actual);
17448
+ }
17678
17449
  /**
17679
- * @typedef {{
17680
- * type: "Block" | "Hashbang" | "Line",
17681
- * value: string,
17682
- * range?: [number, number],
17683
- * start?: number,
17684
- * end?: number,
17685
- * loc?: {
17686
- * start: acorn.Position | undefined,
17687
- * end: acorn.Position | undefined
17688
- * }
17689
- * }} EspreeComment
17450
+ * Check if a given node is an Identifier node with a given name.
17451
+ * @param {ASTNode} node The node to check.
17452
+ * @param {string | RegExp} name The expected name or the expected pattern of the object name.
17453
+ * @returns {boolean} `true` if the node is an Identifier node with the name.
17690
17454
  */
17455
+ function isSpecificId(node, name) {
17456
+ return node.type === "Identifier" && checkText(node.name, name);
17457
+ }
17691
17458
  /**
17692
- * @typedef {{
17693
- * comments?: EspreeComment[]
17694
- * } & EspreeToken[]} EspreeTokens
17459
+ * Check if a given node is member access with a given object name and property name pair.
17460
+ * This is regardless of optional or not.
17461
+ * @param {ASTNode} node The node to check.
17462
+ * @param {string | RegExp | null} objectName The expected name or the expected pattern of the object name. If this is nullish, this method doesn't check object.
17463
+ * @param {string | RegExp | null} propertyName The expected name or the expected pattern of the property name. If this is nullish, this method doesn't check property.
17464
+ * @returns {boolean} `true` if the node is member access with the object name and property name pair.
17465
+ * The node is a `MemberExpression` or `ChainExpression`.
17695
17466
  */
17467
+ function isSpecificMemberAccess(node, objectName, propertyName) {
17468
+ const checkNode = skipChainExpression(node);
17469
+ if (checkNode.type !== "MemberExpression") return false;
17470
+ if (objectName && !isSpecificId(checkNode.object, objectName)) return false;
17471
+ if (propertyName) {
17472
+ const actualPropertyName = getStaticPropertyName(checkNode);
17473
+ if (typeof actualPropertyName !== "string" || !checkText(actualPropertyName, propertyName)) return false;
17474
+ }
17475
+ return true;
17476
+ }
17696
17477
  /**
17697
- * `allowReserved` is as in `acorn.Options`
17698
- *
17699
- * `ecmaVersion` currently as in `acorn.Options` though optional
17700
- *
17701
- * `sourceType` as in `acorn.Options` but also allows `commonjs`
17702
- *
17703
- * `ecmaFeatures`, `range`, `loc`, `tokens` are not in `acorn.Options`
17704
- *
17705
- * `comment` is not in `acorn.Options` and doesn't err without it, but is used
17478
+ * Check if two literal nodes are the same value.
17479
+ * @param {ASTNode} left The Literal node to compare.
17480
+ * @param {ASTNode} right The other Literal node to compare.
17481
+ * @returns {boolean} `true` if the two literal nodes are the same value.
17706
17482
  */
17483
+ function equalLiteralValue(left, right) {
17484
+ if (left.regex || right.regex) return Boolean(left.regex && right.regex && left.regex.pattern === right.regex.pattern && left.regex.flags === right.regex.flags);
17485
+ if (left.bigint || right.bigint) return left.bigint === right.bigint;
17486
+ return left.value === right.value;
17487
+ }
17707
17488
  /**
17708
- * @typedef {{
17709
- * allowReserved?: boolean,
17710
- * ecmaVersion?: EcmaVersion,
17711
- * sourceType?: "script"|"module"|"commonjs",
17712
- * ecmaFeatures?: {
17713
- * jsx?: boolean,
17714
- * globalReturn?: boolean,
17715
- * impliedStrict?: boolean
17716
- * },
17717
- * range?: boolean,
17718
- * loc?: boolean,
17719
- * tokens?: boolean,
17720
- * comment?: boolean,
17721
- * }} Options
17489
+ * Check if two expressions reference the same value. For example:
17490
+ * a = a
17491
+ * a.b = a.b
17492
+ * a[0] = a[0]
17493
+ * a['b'] = a['b']
17494
+ * @param {ASTNode} left The left side of the comparison.
17495
+ * @param {ASTNode} right The right side of the comparison.
17496
+ * @param {boolean} [disableStaticComputedKey] Don't address `a.b` and `a["b"]` are the same if `true`. For backward compatibility.
17497
+ * @returns {boolean} `true` if both sides match and reference the same value.
17722
17498
  */
17723
- const parsers = {
17724
- /** @type {EspreeParserCtor|null} */
17725
- _regular: null,
17726
- /** @type {EspreeParserJsxCtor|null} */
17727
- _jsx: null,
17728
- /**
17729
- * Returns regular Parser
17730
- * @returns {EspreeParserCtor} Regular Acorn parser
17731
- */
17732
- get regular() {
17733
- if (this._regular === null) {
17734
- const espreeParserFactory = espree();
17735
- this._regular = acorn__namespace.Parser.extend(espreeParserFactory);
17736
- }
17737
- return this._regular;
17738
- },
17739
- /**
17740
- * Returns JSX Parser
17741
- * @returns {EspreeParserJsxCtor} JSX Acorn parser
17742
- */
17743
- get jsx() {
17744
- if (this._jsx === null) {
17745
- const espreeParserFactory = espree();
17746
- const jsxFactory = jsx();
17747
- this._jsx = acorn__namespace.Parser.extend(jsxFactory, espreeParserFactory);
17748
- }
17749
- return this._jsx;
17750
- },
17751
- /**
17752
- * Gets the parser object based on the supplied options.
17753
- * @param {Options} [options] The parser options.
17754
- * @returns {EspreeParserJsxCtor|EspreeParserCtor} Regular or JSX Acorn parser
17755
- */
17756
- get(options) {
17757
- return Boolean(options && options.ecmaFeatures && options.ecmaFeatures.jsx) ? this.jsx : this.regular;
17499
+ function isSameReference(left, right, disableStaticComputedKey = false) {
17500
+ if (left.type !== right.type) {
17501
+ if (left.type === "ChainExpression") return isSameReference(left.expression, right, disableStaticComputedKey);
17502
+ if (right.type === "ChainExpression") return isSameReference(left, right.expression, disableStaticComputedKey);
17503
+ return false;
17504
+ }
17505
+ switch (left.type) {
17506
+ case "Super":
17507
+ case "ThisExpression": return true;
17508
+ case "Identifier":
17509
+ case "PrivateIdentifier": return left.name === right.name;
17510
+ case "Literal": return equalLiteralValue(left, right);
17511
+ case "ChainExpression": return isSameReference(left.expression, right.expression, disableStaticComputedKey);
17512
+ case "MemberExpression":
17513
+ if (!disableStaticComputedKey) {
17514
+ const nameA = getStaticPropertyName(left);
17515
+ if (nameA !== null) return isSameReference(left.object, right.object, disableStaticComputedKey) && nameA === getStaticPropertyName(right);
17516
+ }
17517
+ return left.computed === right.computed && isSameReference(left.object, right.object, disableStaticComputedKey) && isSameReference(left.property, right.property, disableStaticComputedKey);
17518
+ default: return false;
17758
17519
  }
17759
- };
17760
- /**
17761
- * Tokenizes the given code.
17762
- * @param {string} code The code to tokenize.
17763
- * @param {Options} [options] Options defining how to tokenize.
17764
- * @returns {EspreeTokens} An array of tokens.
17765
- * @throws {EnhancedSyntaxError} If the input code is invalid.
17766
- * @private
17767
- */
17768
- function tokenize(code, options) {
17769
- const Parser = parsers.get(options);
17770
- if (!options || options.tokens !== true) options = Object.assign({}, options, { tokens: true });
17771
- return new Parser(options, code).tokenize();
17772
17520
  }
17773
17521
  /**
17774
- * Parses the given code.
17775
- * @param {string} code The code to tokenize.
17776
- * @param {Options} [options] Options defining how to tokenize.
17777
- * @returns {acorn.Program} The "Program" AST node.
17778
- * @throws {EnhancedSyntaxError} If the input code is invalid.
17522
+ * Checks whether or not a node is `Reflect.apply`.
17523
+ * @param {ASTNode} node A node to check.
17524
+ * @returns {boolean} Whether or not the node is a `Reflect.apply`.
17779
17525
  */
17780
- function parse(code, options) {
17781
- return new (parsers.get(options))(options, code).parse();
17526
+ function isReflectApply(node) {
17527
+ return isSpecificMemberAccess(node, "Reflect", "apply");
17782
17528
  }
17783
- /** @type {string} */
17784
- const version = "11.2.0";
17785
- const name = "espree";
17786
- const Syntax = /* @__PURE__ */ (function() {
17787
- let key, types = {};
17788
- if (typeof Object.create === "function") types = Object.create(null);
17789
- for (key in eslintVisitorKeys.KEYS) if (Object.hasOwn(eslintVisitorKeys.KEYS, key)) types[key] = key;
17790
- if (typeof Object.freeze === "function") Object.freeze(types);
17791
- return types;
17792
- })();
17793
- const latestEcmaVersion = /* @__PURE__ */ getLatestEcmaVersion();
17794
- const supportedEcmaVersions = /* @__PURE__ */ getSupportedEcmaVersions();
17795
- Object.defineProperty(exports, "VisitorKeys", {
17796
- enumerable: true,
17797
- get: function() {
17798
- return eslintVisitorKeys.KEYS;
17799
- }
17800
- });
17801
- exports.Syntax = Syntax;
17802
- exports.latestEcmaVersion = latestEcmaVersion;
17803
- exports.name = name;
17804
- exports.parse = parse;
17805
- exports.supportedEcmaVersions = supportedEcmaVersions;
17806
- exports.tokenize = tokenize;
17807
- exports.version = version;
17808
- }));
17809
- //#endregion
17810
- //#region ../../node_modules/.pnpm/escape-string-regexp@4.0.0/node_modules/escape-string-regexp/index.js
17811
- var require_escape_string_regexp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17812
- module.exports = (string) => {
17813
- if (typeof string !== "string") throw new TypeError("Expected a string");
17814
- return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
17815
- };
17816
- }));
17817
- //#endregion
17818
- //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/lib/shared/ast-utils.js
17819
- /**
17820
- * @fileoverview Common utils for AST.
17821
- *
17822
- * This file contains only shared items for core and rules.
17823
- * If you make a utility for rules, please see `../rules/utils/ast-utils.js`.
17824
- *
17825
- * @author Toru Nagashima <https://github.com/mysticatea>
17826
- */
17827
- var require_ast_utils$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17828
- const breakableTypePattern = /^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u;
17829
- const lineBreakPattern = /\r\n|[\r\n\u2028\u2029]/u;
17830
- const shebangPattern = /^#!([^\r\n]+)/u;
17831
17529
  /**
17832
- * Creates a version of the `lineBreakPattern` regex with the global flag.
17833
- * Global regexes are mutable, so this needs to be a function instead of a constant.
17834
- * @returns {RegExp} A global regular expression that matches line terminators
17530
+ * Checks whether or not a node is `Array.from`.
17531
+ * @param {ASTNode} node A node to check.
17532
+ * @returns {boolean} Whether or not the node is a `Array.from`.
17835
17533
  */
17836
- function createGlobalLinebreakMatcher() {
17837
- return new RegExp(lineBreakPattern.source, "gu");
17534
+ function isArrayFromMethod(node) {
17535
+ return isSpecificMemberAccess(node, arrayOrTypedArrayPattern, "from");
17838
17536
  }
17839
- module.exports = {
17840
- breakableTypePattern,
17841
- lineBreakPattern,
17842
- createGlobalLinebreakMatcher,
17843
- shebangPattern
17844
- };
17845
- }));
17846
- //#endregion
17847
- //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/conf/globals.js
17848
- /**
17849
- * @fileoverview Globals for ecmaVersion/sourceType
17850
- * @author Nicholas C. Zakas
17851
- */
17852
- var require_globals = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17853
- const commonjs = {
17854
- exports: true,
17855
- global: false,
17856
- module: false,
17857
- require: false
17858
- };
17859
- const es3 = {
17860
- Array: false,
17861
- Boolean: false,
17862
- constructor: false,
17863
- Date: false,
17864
- decodeURI: false,
17865
- decodeURIComponent: false,
17866
- encodeURI: false,
17867
- encodeURIComponent: false,
17868
- Error: false,
17869
- escape: false,
17870
- eval: false,
17871
- EvalError: false,
17872
- Function: false,
17873
- hasOwnProperty: false,
17874
- Infinity: false,
17875
- isFinite: false,
17876
- isNaN: false,
17877
- isPrototypeOf: false,
17878
- Math: false,
17879
- NaN: false,
17880
- Number: false,
17881
- Object: false,
17882
- parseFloat: false,
17883
- parseInt: false,
17884
- propertyIsEnumerable: false,
17885
- RangeError: false,
17886
- ReferenceError: false,
17887
- RegExp: false,
17888
- String: false,
17889
- SyntaxError: false,
17890
- toLocaleString: false,
17891
- toString: false,
17892
- TypeError: false,
17893
- undefined: false,
17894
- unescape: false,
17895
- URIError: false,
17896
- valueOf: false
17897
- };
17898
- const es5 = {
17899
- ...es3,
17900
- JSON: false
17901
- };
17902
- const es2015 = {
17903
- ...es5,
17904
- ArrayBuffer: false,
17905
- DataView: false,
17906
- Float32Array: false,
17907
- Float64Array: false,
17908
- Int16Array: false,
17909
- Int32Array: false,
17910
- Int8Array: false,
17911
- Intl: false,
17912
- Map: false,
17913
- Promise: false,
17914
- Proxy: false,
17915
- Reflect: false,
17916
- Set: false,
17917
- Symbol: false,
17918
- Uint16Array: false,
17919
- Uint32Array: false,
17920
- Uint8Array: false,
17921
- Uint8ClampedArray: false,
17922
- WeakMap: false,
17923
- WeakSet: false
17924
- };
17925
- const es2016 = { ...es2015 };
17926
- const es2017 = {
17927
- ...es2016,
17928
- Atomics: false,
17929
- SharedArrayBuffer: false
17930
- };
17931
- const es2018 = { ...es2017 };
17932
- const es2019 = { ...es2018 };
17933
- const es2020 = {
17934
- ...es2019,
17935
- BigInt: false,
17936
- BigInt64Array: false,
17937
- BigUint64Array: false,
17938
- globalThis: false
17939
- };
17940
- const es2021 = {
17941
- ...es2020,
17942
- AggregateError: false,
17943
- FinalizationRegistry: false,
17944
- WeakRef: false
17945
- };
17946
- const es2022 = { ...es2021 };
17947
- const es2023 = { ...es2022 };
17948
- const es2024 = { ...es2023 };
17949
- const es2025 = {
17950
- ...es2024,
17951
- Float16Array: false,
17952
- Iterator: false
17953
- };
17954
- module.exports = {
17955
- commonjs,
17956
- es3,
17957
- es5,
17958
- es2015,
17959
- es2016,
17960
- es2017,
17961
- es2018,
17962
- es2019,
17963
- es2020,
17964
- es2021,
17965
- es2022,
17966
- es2023,
17967
- es2024,
17968
- es2025,
17969
- es2026: {
17970
- ...es2025,
17971
- AsyncDisposableStack: false,
17972
- DisposableStack: false,
17973
- SuppressedError: false,
17974
- Temporal: false
17975
- }
17976
- };
17977
- }));
17978
- //#endregion
17979
- //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/conf/ecma-version.js
17980
- /**
17981
- * @fileoverview Configuration related to ECMAScript versions
17982
- * @author Milos Djermanovic
17983
- */
17984
- var require_ecma_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17985
- module.exports = { LATEST_ECMA_VERSION: 2026 };
17986
- }));
17987
- //#endregion
17988
- //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/lib/rules/utils/ast-utils.js
17989
- /**
17990
- * @fileoverview Common utils for AST.
17991
- * @author Gyandeep Singh
17992
- */
17993
- var require_ast_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
17994
- const { KEYS: eslintVisitorKeys } = require_eslint_visitor_keys$1();
17995
- const esutils = require_utils$3();
17996
- const espree = require_espree();
17997
- const escapeRegExp = require_escape_string_regexp();
17998
- const { breakableTypePattern, createGlobalLinebreakMatcher, lineBreakPattern, shebangPattern } = require_ast_utils$1();
17999
- const globals = require_globals();
18000
- const { LATEST_ECMA_VERSION } = require_ecma_version();
18001
- /** @typedef {import("eslint-scope").Scope} Scope */
18002
- /** @typedef {import("eslint-scope").Variable} Variable */
18003
- const anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;
18004
- const anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u;
18005
- const arrayMethodWithThisArgPattern = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u;
18006
- const arrayOrTypedArrayPattern = /Array$/u;
18007
- const bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u;
18008
- const thisTagPattern = /^[\s*]*@this/mu;
18009
- const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u;
18010
- const ESLINT_DIRECTIVE_PATTERN = /^(?:eslint[- ]|(?:globals?|exported) )/u;
18011
- const LINEBREAKS = new Set([
18012
- "\r\n",
18013
- "\r",
18014
- "\n",
18015
- "\u2028",
18016
- "\u2029"
18017
- ]);
18018
- const STATEMENT_LIST_PARENTS = new Set([
18019
- "Program",
18020
- "BlockStatement",
18021
- "StaticBlock",
18022
- "SwitchCase"
18023
- ]);
18024
- const LEXICAL_DECLARATION_KINDS = new Set([
18025
- "let",
18026
- "const",
18027
- "using",
18028
- "await using"
18029
- ]);
18030
- const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;
18031
- const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su;
18032
- const LOGICAL_ASSIGNMENT_OPERATORS = new Set([
18033
- "&&=",
18034
- "||=",
18035
- "??="
18036
- ]);
18037
17537
  /**
18038
- * All builtin global variables defined in the latest ECMAScript specification.
18039
- * @type {Record<string,boolean>} Key is the name of the variable. Value is `true` if the variable is considered writable, `false` otherwise.
17538
+ * Checks whether or not a node is `Array.fromAsync`.
17539
+ * @param {ASTNode} node A node to check.
17540
+ * @returns {boolean} Whether or not the node is a `Array.fromAsync`.
18040
17541
  */
18041
- const ECMASCRIPT_GLOBALS = globals[`es${LATEST_ECMA_VERSION}`];
17542
+ function isArrayFromAsyncMethod(node) {
17543
+ return isSpecificMemberAccess(node, "Array", "fromAsync");
17544
+ }
18042
17545
  /**
18043
- * Checks reference if is non initializer and writable.
18044
- * @param {Reference} reference A reference to check.
18045
- * @param {number} index The index of the reference in the references.
18046
- * @param {Reference[]} references The array that the reference belongs to.
18047
- * @returns {boolean} Success/Failure
18048
- * @private
17546
+ * Checks whether or not a node is a method which expects a function as a first argument, and `thisArg` as a second argument.
17547
+ * @param {ASTNode} node A node to check.
17548
+ * @returns {boolean} Whether or not the node is a method which expects a function as a first argument, and `thisArg` as a second argument.
18049
17549
  */
18050
- function isModifyingReference(reference, index, references) {
18051
- const identifier = reference.identifier;
18052
- const modifyingDifferentIdentifier = index === 0 || references[index - 1].identifier !== identifier;
18053
- return identifier && reference.init === false && reference.isWrite() && modifyingDifferentIdentifier;
17550
+ function isMethodWhichHasThisArg(node) {
17551
+ return isSpecificMemberAccess(node, null, arrayMethodWithThisArgPattern);
18054
17552
  }
18055
17553
  /**
18056
- * Checks whether the given string starts with uppercase or not.
18057
- * @param {string} s The string to check.
18058
- * @returns {boolean} `true` if the string starts with uppercase.
17554
+ * Creates the negate function of the given function.
17555
+ * @param {Function} f The function to negate.
17556
+ * @returns {Function} Negated function.
18059
17557
  */
18060
- function startsWithUpperCase(s) {
18061
- return s[0] !== s[0].toLocaleLowerCase();
17558
+ function negate(f) {
17559
+ return (token) => !f(token);
18062
17560
  }
18063
17561
  /**
18064
- * Checks whether or not a node is a constructor.
18065
- * @param {ASTNode} node A function node to check.
18066
- * @returns {boolean} Whether or not a node is a constructor.
17562
+ * Determines if a node is surrounded by parentheses.
17563
+ * @param {SourceCode} sourceCode The ESLint source code object
17564
+ * @param {ASTNode} node The node to be checked.
17565
+ * @returns {boolean} True if the node is parenthesised.
17566
+ * @private
18067
17567
  */
18068
- function isES5Constructor(node) {
18069
- return node.id && startsWithUpperCase(node.id.name);
17568
+ function isParenthesised(sourceCode, node) {
17569
+ const previousToken = sourceCode.getTokenBefore(node), nextToken = sourceCode.getTokenAfter(node);
17570
+ return Boolean(previousToken && nextToken) && previousToken.value === "(" && previousToken.range[1] <= node.range[0] && nextToken.value === ")" && nextToken.range[0] >= node.range[1];
18070
17571
  }
18071
17572
  /**
18072
- * Finds a function node from ancestors of a node.
18073
- * @param {ASTNode} node A start node to find.
18074
- * @returns {Node|null} A found function node.
17573
+ * Checks if the given token is a `=` token or not.
17574
+ * @param {Token} token The token to check.
17575
+ * @returns {boolean} `true` if the token is a `=` token.
18075
17576
  */
18076
- function getUpperFunction(node) {
18077
- for (let currentNode = node; currentNode; currentNode = currentNode.parent) if (anyFunctionPattern.test(currentNode.type)) return currentNode;
18078
- return null;
17577
+ function isEqToken(token) {
17578
+ return token.value === "=" && token.type === "Punctuator";
18079
17579
  }
18080
17580
  /**
18081
- * Checks whether a given node is a function node or not.
18082
- * The following types are function nodes:
18083
- *
18084
- * - ArrowFunctionExpression
18085
- * - FunctionDeclaration
18086
- * - FunctionExpression
18087
- * @param {ASTNode|null} node A node to check.
18088
- * @returns {boolean} `true` if the node is a function node.
17581
+ * Checks if the given token is an arrow token or not.
17582
+ * @param {Token} token The token to check.
17583
+ * @returns {boolean} `true` if the token is an arrow token.
18089
17584
  */
18090
- function isFunction(node) {
18091
- return Boolean(node && anyFunctionPattern.test(node.type));
18092
- }
18093
- /**
18094
- * Checks whether a given node is a loop node or not.
18095
- * The following types are loop nodes:
18096
- *
18097
- * - DoWhileStatement
18098
- * - ForInStatement
18099
- * - ForOfStatement
18100
- * - ForStatement
18101
- * - WhileStatement
18102
- * @param {ASTNode|null} node A node to check.
18103
- * @returns {boolean} `true` if the node is a loop node.
18104
- */
18105
- function isLoop(node) {
18106
- return Boolean(node && anyLoopPattern.test(node.type));
18107
- }
18108
- /**
18109
- * Checks whether the given node is in a loop or not.
18110
- * @param {ASTNode} node The node to check.
18111
- * @returns {boolean} `true` if the node is in a loop.
18112
- */
18113
- function isInLoop(node) {
18114
- for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) if (isLoop(currentNode)) return true;
18115
- return false;
18116
- }
18117
- /**
18118
- * Determines whether the given node is a `null` literal.
18119
- * @param {ASTNode} node The node to check
18120
- * @returns {boolean} `true` if the node is a `null` literal
18121
- */
18122
- function isNullLiteral(node) {
18123
- return node.type === "Literal" && node.value === null && !node.regex && !node.bigint;
18124
- }
18125
- /**
18126
- * Checks whether or not a node is `null` or `undefined`.
18127
- * @param {ASTNode} node A node to check.
18128
- * @returns {boolean} Whether or not the node is a `null` or `undefined`.
18129
- * @public
18130
- */
18131
- function isNullOrUndefined(node) {
18132
- return isNullLiteral(node) || node.type === "Identifier" && node.name === "undefined" || node.type === "UnaryExpression" && node.operator === "void";
18133
- }
18134
- /**
18135
- * Checks whether or not a node is callee.
18136
- * @param {ASTNode} node A node to check.
18137
- * @returns {boolean} Whether or not the node is callee.
18138
- */
18139
- function isCallee(node) {
18140
- return node.parent.type === "CallExpression" && node.parent.callee === node;
18141
- }
18142
- /**
18143
- * Returns the result of the string conversion applied to the evaluated value of the given expression node,
18144
- * if it can be determined statically.
18145
- *
18146
- * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only.
18147
- * In all other cases, this function returns `null`.
18148
- * @param {ASTNode} node Expression node.
18149
- * @returns {string|null} String value if it can be determined. Otherwise, `null`.
18150
- */
18151
- function getStaticStringValue(node) {
18152
- switch (node.type) {
18153
- case "Literal":
18154
- if (node.value === null) {
18155
- if (isNullLiteral(node)) return String(node.value);
18156
- if (node.regex) return `/${node.regex.pattern}/${node.regex.flags}`;
18157
- if (node.bigint) return node.bigint;
18158
- } else return String(node.value);
18159
- break;
18160
- case "TemplateLiteral":
18161
- if (node.expressions.length === 0 && node.quasis.length === 1) return node.quasis[0].value.cooked;
18162
- break;
18163
- }
18164
- return null;
18165
- }
18166
- /**
18167
- * Gets the property name of a given node.
18168
- * The node can be a MemberExpression, a Property, or a MethodDefinition.
18169
- *
18170
- * If the name is dynamic, this returns `null`.
18171
- *
18172
- * For examples:
18173
- *
18174
- * a.b // => "b"
18175
- * a["b"] // => "b"
18176
- * a['b'] // => "b"
18177
- * a[`b`] // => "b"
18178
- * a[100] // => "100"
18179
- * a[b] // => null
18180
- * a["a" + "b"] // => null
18181
- * a[tag`b`] // => null
18182
- * a[`${b}`] // => null
18183
- *
18184
- * let a = {b: 1} // => "b"
18185
- * let a = {["b"]: 1} // => "b"
18186
- * let a = {['b']: 1} // => "b"
18187
- * let a = {[`b`]: 1} // => "b"
18188
- * let a = {[100]: 1} // => "100"
18189
- * let a = {[b]: 1} // => null
18190
- * let a = {["a" + "b"]: 1} // => null
18191
- * let a = {[tag`b`]: 1} // => null
18192
- * let a = {[`${b}`]: 1} // => null
18193
- * @param {ASTNode} node The node to get.
18194
- * @returns {string|null} The property name if static. Otherwise, null.
18195
- */
18196
- function getStaticPropertyName(node) {
18197
- let prop;
18198
- switch (node && node.type) {
18199
- case "ChainExpression": return getStaticPropertyName(node.expression);
18200
- case "Property":
18201
- case "PropertyDefinition":
18202
- case "MethodDefinition":
18203
- case "TSPropertySignature":
18204
- case "TSMethodSignature":
18205
- prop = node.key;
18206
- break;
18207
- case "MemberExpression":
18208
- prop = node.property;
18209
- break;
18210
- }
18211
- if (prop) {
18212
- if (prop.type === "Identifier" && !node.computed) return prop.name;
18213
- return getStaticStringValue(prop);
18214
- }
18215
- return null;
18216
- }
18217
- /**
18218
- * Retrieve `ChainExpression#expression` value if the given node a `ChainExpression` node. Otherwise, pass through it.
18219
- * @param {ASTNode} node The node to address.
18220
- * @returns {ASTNode} The `ChainExpression#expression` value if the node is a `ChainExpression` node. Otherwise, the node.
18221
- */
18222
- function skipChainExpression(node) {
18223
- return node && node.type === "ChainExpression" ? node.expression : node;
18224
- }
18225
- /**
18226
- * Check if the `actual` is an expected value.
18227
- * @param {string} actual The string value to check.
18228
- * @param {string | RegExp} expected The expected string value or pattern.
18229
- * @returns {boolean} `true` if the `actual` is an expected value.
18230
- */
18231
- function checkText(actual, expected) {
18232
- return typeof expected === "string" ? actual === expected : expected.test(actual);
18233
- }
18234
- /**
18235
- * Check if a given node is an Identifier node with a given name.
18236
- * @param {ASTNode} node The node to check.
18237
- * @param {string | RegExp} name The expected name or the expected pattern of the object name.
18238
- * @returns {boolean} `true` if the node is an Identifier node with the name.
18239
- */
18240
- function isSpecificId(node, name) {
18241
- return node.type === "Identifier" && checkText(node.name, name);
18242
- }
18243
- /**
18244
- * Check if a given node is member access with a given object name and property name pair.
18245
- * This is regardless of optional or not.
18246
- * @param {ASTNode} node The node to check.
18247
- * @param {string | RegExp | null} objectName The expected name or the expected pattern of the object name. If this is nullish, this method doesn't check object.
18248
- * @param {string | RegExp | null} propertyName The expected name or the expected pattern of the property name. If this is nullish, this method doesn't check property.
18249
- * @returns {boolean} `true` if the node is member access with the object name and property name pair.
18250
- * The node is a `MemberExpression` or `ChainExpression`.
18251
- */
18252
- function isSpecificMemberAccess(node, objectName, propertyName) {
18253
- const checkNode = skipChainExpression(node);
18254
- if (checkNode.type !== "MemberExpression") return false;
18255
- if (objectName && !isSpecificId(checkNode.object, objectName)) return false;
18256
- if (propertyName) {
18257
- const actualPropertyName = getStaticPropertyName(checkNode);
18258
- if (typeof actualPropertyName !== "string" || !checkText(actualPropertyName, propertyName)) return false;
18259
- }
18260
- return true;
18261
- }
18262
- /**
18263
- * Check if two literal nodes are the same value.
18264
- * @param {ASTNode} left The Literal node to compare.
18265
- * @param {ASTNode} right The other Literal node to compare.
18266
- * @returns {boolean} `true` if the two literal nodes are the same value.
18267
- */
18268
- function equalLiteralValue(left, right) {
18269
- if (left.regex || right.regex) return Boolean(left.regex && right.regex && left.regex.pattern === right.regex.pattern && left.regex.flags === right.regex.flags);
18270
- if (left.bigint || right.bigint) return left.bigint === right.bigint;
18271
- return left.value === right.value;
18272
- }
18273
- /**
18274
- * Check if two expressions reference the same value. For example:
18275
- * a = a
18276
- * a.b = a.b
18277
- * a[0] = a[0]
18278
- * a['b'] = a['b']
18279
- * @param {ASTNode} left The left side of the comparison.
18280
- * @param {ASTNode} right The right side of the comparison.
18281
- * @param {boolean} [disableStaticComputedKey] Don't address `a.b` and `a["b"]` are the same if `true`. For backward compatibility.
18282
- * @returns {boolean} `true` if both sides match and reference the same value.
18283
- */
18284
- function isSameReference(left, right, disableStaticComputedKey = false) {
18285
- if (left.type !== right.type) {
18286
- if (left.type === "ChainExpression") return isSameReference(left.expression, right, disableStaticComputedKey);
18287
- if (right.type === "ChainExpression") return isSameReference(left, right.expression, disableStaticComputedKey);
18288
- return false;
18289
- }
18290
- switch (left.type) {
18291
- case "Super":
18292
- case "ThisExpression": return true;
18293
- case "Identifier":
18294
- case "PrivateIdentifier": return left.name === right.name;
18295
- case "Literal": return equalLiteralValue(left, right);
18296
- case "ChainExpression": return isSameReference(left.expression, right.expression, disableStaticComputedKey);
18297
- case "MemberExpression":
18298
- if (!disableStaticComputedKey) {
18299
- const nameA = getStaticPropertyName(left);
18300
- if (nameA !== null) return isSameReference(left.object, right.object, disableStaticComputedKey) && nameA === getStaticPropertyName(right);
18301
- }
18302
- return left.computed === right.computed && isSameReference(left.object, right.object, disableStaticComputedKey) && isSameReference(left.property, right.property, disableStaticComputedKey);
18303
- default: return false;
18304
- }
18305
- }
18306
- /**
18307
- * Checks whether or not a node is `Reflect.apply`.
18308
- * @param {ASTNode} node A node to check.
18309
- * @returns {boolean} Whether or not the node is a `Reflect.apply`.
18310
- */
18311
- function isReflectApply(node) {
18312
- return isSpecificMemberAccess(node, "Reflect", "apply");
18313
- }
18314
- /**
18315
- * Checks whether or not a node is `Array.from`.
18316
- * @param {ASTNode} node A node to check.
18317
- * @returns {boolean} Whether or not the node is a `Array.from`.
18318
- */
18319
- function isArrayFromMethod(node) {
18320
- return isSpecificMemberAccess(node, arrayOrTypedArrayPattern, "from");
18321
- }
18322
- /**
18323
- * Checks whether or not a node is `Array.fromAsync`.
18324
- * @param {ASTNode} node A node to check.
18325
- * @returns {boolean} Whether or not the node is a `Array.fromAsync`.
18326
- */
18327
- function isArrayFromAsyncMethod(node) {
18328
- return isSpecificMemberAccess(node, "Array", "fromAsync");
18329
- }
18330
- /**
18331
- * Checks whether or not a node is a method which expects a function as a first argument, and `thisArg` as a second argument.
18332
- * @param {ASTNode} node A node to check.
18333
- * @returns {boolean} Whether or not the node is a method which expects a function as a first argument, and `thisArg` as a second argument.
18334
- */
18335
- function isMethodWhichHasThisArg(node) {
18336
- return isSpecificMemberAccess(node, null, arrayMethodWithThisArgPattern);
18337
- }
18338
- /**
18339
- * Creates the negate function of the given function.
18340
- * @param {Function} f The function to negate.
18341
- * @returns {Function} Negated function.
18342
- */
18343
- function negate(f) {
18344
- return (token) => !f(token);
18345
- }
18346
- /**
18347
- * Determines if a node is surrounded by parentheses.
18348
- * @param {SourceCode} sourceCode The ESLint source code object
18349
- * @param {ASTNode} node The node to be checked.
18350
- * @returns {boolean} True if the node is parenthesised.
18351
- * @private
18352
- */
18353
- function isParenthesised(sourceCode, node) {
18354
- const previousToken = sourceCode.getTokenBefore(node), nextToken = sourceCode.getTokenAfter(node);
18355
- return Boolean(previousToken && nextToken) && previousToken.value === "(" && previousToken.range[1] <= node.range[0] && nextToken.value === ")" && nextToken.range[0] >= node.range[1];
18356
- }
18357
- /**
18358
- * Checks if the given token is a `=` token or not.
18359
- * @param {Token} token The token to check.
18360
- * @returns {boolean} `true` if the token is a `=` token.
18361
- */
18362
- function isEqToken(token) {
18363
- return token.value === "=" && token.type === "Punctuator";
18364
- }
18365
- /**
18366
- * Checks if the given token is an arrow token or not.
18367
- * @param {Token} token The token to check.
18368
- * @returns {boolean} `true` if the token is an arrow token.
18369
- */
18370
- function isArrowToken(token) {
18371
- return token.value === "=>" && token.type === "Punctuator";
17585
+ function isArrowToken(token) {
17586
+ return token.value === "=>" && token.type === "Punctuator";
18372
17587
  }
18373
17588
  /**
18374
17589
  * Checks if the given token is a comma token or not.
@@ -72338,1391 +71553,6 @@ var require_source_code = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
72338
71553
  module.exports = { SourceCode: require_source_code$1() };
72339
71554
  }));
72340
71555
  //#endregion
72341
- //#region ../../node_modules/.pnpm/eslint-scope@9.1.2/node_modules/eslint-scope/dist/eslint-scope.cjs
72342
- var require_eslint_scope = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
72343
- var estraverse = require_estraverse();
72344
- var esrecurse = require_esrecurse();
72345
- /**
72346
- * @fileoverview Assertion utilities.
72347
- * @author Nicholas C. Zakas
72348
- */
72349
- /**
72350
- * Throws an error if the given condition is not truthy.
72351
- * @param {boolean} condition The condition to check.
72352
- * @param {string} message The message to include with the error.
72353
- * @returns {void}
72354
- * @throws {Error} When the condition is not truthy.
72355
- */
72356
- function assert(condition, message = "Assertion failed.") {
72357
- if (!condition) throw new Error(message);
72358
- }
72359
- /** @import * as types from "eslint-scope" */
72360
- const READ = 1;
72361
- const WRITE = 2;
72362
- const RW = READ | WRITE;
72363
- /**
72364
- * A Reference represents a single occurrence of an identifier in code.
72365
- * @constructor Reference
72366
- * @implements {types.Reference}
72367
- */
72368
- var Reference = class Reference {
72369
- constructor(ident, scope, flag, writeExpr, maybeImplicitGlobal, partial, init) {
72370
- /**
72371
- * Identifier syntax node.
72372
- * @member {espreeIdentifier} Reference#identifier
72373
- */
72374
- this.identifier = ident;
72375
- /**
72376
- * Reference to the enclosing Scope.
72377
- * @member {Scope} Reference#from
72378
- */
72379
- this.from = scope;
72380
- /**
72381
- * Whether the reference comes from a dynamic scope (such as 'eval',
72382
- * 'with', etc.), and may be trapped by dynamic scopes.
72383
- * @member {boolean} Reference#tainted
72384
- */
72385
- this.tainted = false;
72386
- /**
72387
- * The variable this reference is resolved with.
72388
- * @member {Variable} Reference#resolved
72389
- */
72390
- this.resolved = null;
72391
- /**
72392
- * The read-write mode of the reference. (Value is one of {@link
72393
- * Reference.READ}, {@link Reference.RW}, {@link Reference.WRITE}).
72394
- * @member {number} Reference#flag
72395
- */
72396
- this.flag = flag;
72397
- if (this.isWrite()) {
72398
- /**
72399
- * If reference is writeable, this is the tree being written to it.
72400
- * @member {espreeNode} Reference#writeExpr
72401
- */
72402
- this.writeExpr = writeExpr;
72403
- /**
72404
- * Whether the Reference might refer to a partial value of writeExpr.
72405
- * @member {boolean} Reference#partial
72406
- */
72407
- this.partial = partial;
72408
- /**
72409
- * Whether the Reference is to write of initialization.
72410
- * @member {boolean} Reference#init
72411
- */
72412
- this.init = init;
72413
- }
72414
- this.__maybeImplicitGlobal = maybeImplicitGlobal;
72415
- }
72416
- /**
72417
- * Whether the reference is static.
72418
- * @function Reference#isStatic
72419
- * @returns {boolean} static
72420
- */
72421
- isStatic() {
72422
- return !this.tainted && !!this.resolved && this.resolved.scope.isStatic();
72423
- }
72424
- /**
72425
- * Whether the reference is writeable.
72426
- * @function Reference#isWrite
72427
- * @returns {boolean} write
72428
- */
72429
- isWrite() {
72430
- return !!(this.flag & Reference.WRITE);
72431
- }
72432
- /**
72433
- * Whether the reference is readable.
72434
- * @function Reference#isRead
72435
- * @returns {boolean} read
72436
- */
72437
- isRead() {
72438
- return !!(this.flag & Reference.READ);
72439
- }
72440
- /**
72441
- * Whether the reference is read-only.
72442
- * @function Reference#isReadOnly
72443
- * @returns {boolean} read only
72444
- */
72445
- isReadOnly() {
72446
- return this.flag === Reference.READ;
72447
- }
72448
- /**
72449
- * Whether the reference is write-only.
72450
- * @function Reference#isWriteOnly
72451
- * @returns {boolean} write only
72452
- */
72453
- isWriteOnly() {
72454
- return this.flag === Reference.WRITE;
72455
- }
72456
- /**
72457
- * Whether the reference is read-write.
72458
- * @function Reference#isReadWrite
72459
- * @returns {boolean} read write
72460
- */
72461
- isReadWrite() {
72462
- return this.flag === Reference.RW;
72463
- }
72464
- };
72465
- /**
72466
- * @constant Reference.READ
72467
- */
72468
- Reference.READ = READ;
72469
- /**
72470
- * @constant Reference.WRITE
72471
- */
72472
- Reference.WRITE = WRITE;
72473
- /**
72474
- * @constant Reference.RW
72475
- */
72476
- Reference.RW = RW;
72477
- /** @import * as types from "eslint-scope" */
72478
- /** @import Reference from "./reference.js" */
72479
- /**
72480
- * A Variable represents a locally scoped identifier. These include arguments to
72481
- * functions.
72482
- * @constructor Variable
72483
- * @implements {types.Variable}
72484
- */
72485
- var Variable = class {
72486
- constructor(name, scope) {
72487
- /**
72488
- * The variable name, as given in the source code.
72489
- * @member {string} Variable#name
72490
- */
72491
- this.name = name;
72492
- /**
72493
- * List of defining occurrences of this variable (like in 'var ...'
72494
- * statements or as parameter), as AST nodes.
72495
- * @member {espree.Identifier[]} Variable#identifiers
72496
- */
72497
- this.identifiers = [];
72498
- /**
72499
- * List of {@link Reference|references} of this variable (excluding parameter entries)
72500
- * in its defining scope and all nested scopes. For defining
72501
- * occurrences only see {@link Variable#defs}.
72502
- * @member {Reference[]} Variable#references
72503
- */
72504
- this.references = [];
72505
- /**
72506
- * List of defining occurrences of this variable (like in 'var ...'
72507
- * statements or as parameter), as custom objects.
72508
- * @member {Definition[]} Variable#defs
72509
- */
72510
- this.defs = [];
72511
- this.tainted = false;
72512
- /**
72513
- * Whether this is a stack variable.
72514
- * @member {boolean} Variable#stack
72515
- */
72516
- this.stack = true;
72517
- /**
72518
- * Reference to the enclosing Scope.
72519
- * @member {Scope} Variable#scope
72520
- */
72521
- this.scope = scope;
72522
- }
72523
- };
72524
- Variable.CatchClause = "CatchClause";
72525
- Variable.Parameter = "Parameter";
72526
- Variable.FunctionName = "FunctionName";
72527
- Variable.ClassName = "ClassName";
72528
- Variable.Variable = "Variable";
72529
- Variable.ImportBinding = "ImportBinding";
72530
- Variable.ImplicitGlobalVariable = "ImplicitGlobalVariable";
72531
- /** @import * as types from "eslint-scope" */
72532
- /**
72533
- * @constructor Definition
72534
- * @implements {Omit<types.Definition, never>}
72535
- */
72536
- var Definition = class {
72537
- constructor(type, name, node, parent, index, kind) {
72538
- /**
72539
- * @member {string} Definition#type - type of the occurrence (e.g. "Parameter", "Variable", ...).
72540
- */
72541
- this.type = type;
72542
- /**
72543
- * @member {espree.Identifier} Definition#name - the identifier AST node of the occurrence.
72544
- */
72545
- this.name = name;
72546
- /**
72547
- * @member {espree.Node} Definition#node - the enclosing node of the identifier.
72548
- */
72549
- this.node = node;
72550
- /**
72551
- * @member {espree.Node?} Definition#parent - the enclosing statement node of the identifier.
72552
- */
72553
- this.parent = parent;
72554
- /**
72555
- * @member {number?} Definition#index - the index in the declaration statement.
72556
- */
72557
- this.index = index;
72558
- /**
72559
- * @member {string?} Definition#kind - the kind of the declaration statement.
72560
- */
72561
- this.kind = kind;
72562
- }
72563
- };
72564
- /**
72565
- * @constructor ParameterDefinition
72566
- */
72567
- var ParameterDefinition = class extends Definition {
72568
- constructor(name, node, index, rest) {
72569
- super(Variable.Parameter, name, node, null, index, null);
72570
- /**
72571
- * Whether the parameter definition is a part of a rest parameter.
72572
- * @member {boolean} ParameterDefinition#rest
72573
- */
72574
- this.rest = rest;
72575
- }
72576
- };
72577
- /** @import * as types from "eslint-scope" */
72578
- /** @import ESTree from "estree" */
72579
- /** @import ScopeManager from "./scope-manager.js" */
72580
- /** @typedef {ESTree.Function | ESTree.Program | ESTree.StaticBlock} Block */
72581
- /** @typedef {{pattern: unknown, node: unknown}} MaybeImplicitGlobal */
72582
- const { Syntax: Syntax$2 } = estraverse;
72583
- /**
72584
- * Test if scope is struct
72585
- * @param {Scope} scope scope
72586
- * @param {Block} block block
72587
- * @param {boolean} isMethodDefinition is method definition
72588
- * @returns {boolean} is strict scope
72589
- */
72590
- function isStrictScope(scope, block, isMethodDefinition) {
72591
- let body;
72592
- if (scope.upper && scope.upper.isStrict) return true;
72593
- if (isMethodDefinition) return true;
72594
- if (scope.type === "class" || scope.type === "module") return true;
72595
- if (scope.type === "block" || scope.type === "switch") return false;
72596
- if (scope.type === "function") {
72597
- if (block.type === Syntax$2.ArrowFunctionExpression && block.body.type !== Syntax$2.BlockStatement) return false;
72598
- if (block.type === Syntax$2.Program) body = block;
72599
- else body = block.body;
72600
- if (!body) return false;
72601
- } else if (scope.type === "global") body = block;
72602
- else return false;
72603
- for (let i = 0, iz = body.body.length; i < iz; ++i) {
72604
- const stmt = body.body[i];
72605
- if (typeof stmt.directive !== "string") break;
72606
- if (stmt.directive === "use strict") return true;
72607
- }
72608
- return false;
72609
- }
72610
- /**
72611
- * Register scope
72612
- * @param {ScopeManager} scopeManager scope manager
72613
- * @param {Scope} scope scope
72614
- * @returns {void}
72615
- */
72616
- function registerScope(scopeManager, scope) {
72617
- scopeManager.scopes.push(scope);
72618
- const scopes = scopeManager.__nodeToScope.get(scope.block);
72619
- if (scopes) scopes.push(scope);
72620
- else scopeManager.__nodeToScope.set(scope.block, [scope]);
72621
- }
72622
- /**
72623
- * @constructor Scope
72624
- * @implements {types.Scope}
72625
- */
72626
- var Scope = class {
72627
- constructor(scopeManager, type, upperScope, block, isMethodDefinition) {
72628
- /**
72629
- * One of "global", "module", "function", "function-expression-name", "block", "switch", "catch", "with", "for",
72630
- * "class", "class-field-initializer", "class-static-block".
72631
- * @member {string} Scope#type
72632
- */
72633
- this.type = type;
72634
- /**
72635
- * The scoped {@link Variable}s of this scope, as <code>{ Variable.name
72636
- * : Variable }</code>.
72637
- * @member {Map} Scope#set
72638
- */
72639
- this.set = /* @__PURE__ */ new Map();
72640
- /**
72641
- * The tainted variables of this scope, as <code>{ Variable.name :
72642
- * boolean }</code>.
72643
- * @member {Map} Scope#taints
72644
- */
72645
- this.taints = /* @__PURE__ */ new Map();
72646
- /**
72647
- * Generally, through the lexical scoping of JS you can always know
72648
- * which variable an identifier in the source code refers to. There are
72649
- * a few exceptions to this rule. With 'global' and 'with' scopes you
72650
- * can only decide at runtime which variable a reference refers to.
72651
- * Moreover, if 'eval()' is used in a scope, it might introduce new
72652
- * bindings in this or its parent scopes.
72653
- * All those scopes are considered 'dynamic'.
72654
- * @member {boolean} Scope#dynamic
72655
- */
72656
- this.dynamic = this.type === "global" || this.type === "with";
72657
- /**
72658
- * A reference to the scope-defining syntax node.
72659
- * @member {espree.Node} Scope#block
72660
- */
72661
- this.block = block;
72662
- /**
72663
- * The {@link Reference|references} that are not resolved with this scope.
72664
- * @member {Reference[]} Scope#through
72665
- */
72666
- this.through = [];
72667
- /**
72668
- * The scoped {@link Variable}s of this scope. In the case of a
72669
- * 'function' scope this includes the automatic argument <em>arguments</em> as
72670
- * its first element, as well as all further formal arguments.
72671
- * @member {Variable[]} Scope#variables
72672
- */
72673
- this.variables = [];
72674
- /**
72675
- * Any variable {@link Reference|reference} found in this scope. This
72676
- * includes occurrences of local variables as well as variables from
72677
- * parent scopes (including the global scope). For local variables
72678
- * this also includes defining occurrences (like in a 'var' statement).
72679
- * In a 'function' scope this does not include the occurrences of the
72680
- * formal parameter in the parameter list.
72681
- * @member {Reference[]} Scope#references
72682
- */
72683
- this.references = [];
72684
- /**
72685
- * For 'global' and 'function' scopes, this is a self-reference. For
72686
- * other scope types this is the <em>variableScope</em> value of the
72687
- * parent scope.
72688
- * @member {Scope} Scope#variableScope
72689
- */
72690
- this.variableScope = this.type === "global" || this.type === "module" || this.type === "function" || this.type === "class-field-initializer" || this.type === "class-static-block" ? this : upperScope.variableScope;
72691
- /**
72692
- * Whether this scope is created by a FunctionExpression.
72693
- * @member {boolean} Scope#functionExpressionScope
72694
- */
72695
- this.functionExpressionScope = false;
72696
- /**
72697
- * Whether this is a scope that contains an 'eval()' invocation.
72698
- * @member {boolean} Scope#directCallToEvalScope
72699
- */
72700
- this.directCallToEvalScope = false;
72701
- /**
72702
- * @member {boolean} Scope#thisFound
72703
- */
72704
- this.thisFound = false;
72705
- /** @type {?Reference[]} */
72706
- this.__left = [];
72707
- /**
72708
- * Reference to the parent {@link Scope|scope}.
72709
- * @member {Scope} Scope#upper
72710
- */
72711
- this.upper = upperScope;
72712
- /**
72713
- * Whether 'use strict' is in effect in this scope.
72714
- * @member {boolean} Scope#isStrict
72715
- */
72716
- this.isStrict = scopeManager.isStrictModeSupported() ? isStrictScope(this, block, isMethodDefinition) : false;
72717
- /**
72718
- * List of nested {@link Scope}s.
72719
- * @member {Scope[]} Scope#childScopes
72720
- */
72721
- this.childScopes = [];
72722
- if (this.upper) this.upper.childScopes.push(this);
72723
- this.__declaredVariables = scopeManager.__declaredVariables;
72724
- registerScope(scopeManager, this);
72725
- }
72726
- __shouldStaticallyClose(scopeManager) {
72727
- return !this.dynamic || scopeManager.__isOptimistic() || this.type === "global";
72728
- }
72729
- __staticCloseRef(ref) {
72730
- if (!this.__resolve(ref)) this.__delegateToUpperScope(ref);
72731
- }
72732
- __dynamicCloseRef(ref) {
72733
- let current = this;
72734
- do {
72735
- current.through.push(ref);
72736
- current = current.upper;
72737
- } while (current);
72738
- }
72739
- __close(scopeManager) {
72740
- let closeRef;
72741
- if (this.__shouldStaticallyClose(scopeManager)) closeRef = this.__staticCloseRef;
72742
- else closeRef = this.__dynamicCloseRef;
72743
- for (let i = 0, iz = this.__left.length; i < iz; ++i) {
72744
- const ref = this.__left[i];
72745
- closeRef.call(this, ref);
72746
- }
72747
- this.__left = null;
72748
- return this.upper;
72749
- }
72750
- __isValidResolution(ref, variable) {
72751
- return true;
72752
- }
72753
- __resolve(ref) {
72754
- const name = ref.identifier.name;
72755
- if (!this.set.has(name)) return false;
72756
- const variable = this.set.get(name);
72757
- if (!this.__isValidResolution(ref, variable)) return false;
72758
- variable.references.push(ref);
72759
- variable.stack = variable.stack && ref.from.variableScope === this.variableScope;
72760
- if (ref.tainted) {
72761
- variable.tainted = true;
72762
- this.taints.set(variable.name, true);
72763
- }
72764
- ref.resolved = variable;
72765
- return true;
72766
- }
72767
- __delegateToUpperScope(ref) {
72768
- if (this.upper) this.upper.__left.push(ref);
72769
- this.through.push(ref);
72770
- }
72771
- __addDeclaredVariablesOfNode(variable, node) {
72772
- if (node === null || node === void 0) return;
72773
- let variables = this.__declaredVariables.get(node);
72774
- if (variables === null || variables === void 0) {
72775
- variables = [];
72776
- this.__declaredVariables.set(node, variables);
72777
- }
72778
- if (!variables.includes(variable)) variables.push(variable);
72779
- }
72780
- __defineGeneric(name, set, variables, node, def) {
72781
- let variable;
72782
- variable = set.get(name);
72783
- if (!variable) {
72784
- variable = new Variable(name, this);
72785
- set.set(name, variable);
72786
- variables.push(variable);
72787
- }
72788
- if (def) {
72789
- variable.defs.push(def);
72790
- this.__addDeclaredVariablesOfNode(variable, def.node);
72791
- this.__addDeclaredVariablesOfNode(variable, def.parent);
72792
- }
72793
- if (node) variable.identifiers.push(node);
72794
- }
72795
- __define(node, def) {
72796
- if (node && node.type === Syntax$2.Identifier) this.__defineGeneric(node.name, this.set, this.variables, node, def);
72797
- }
72798
- __referencing(node, assign, writeExpr, maybeImplicitGlobal, partial, init) {
72799
- if (!node || node.type !== Syntax$2.Identifier && node.type !== "JSXIdentifier") return;
72800
- if (node.name === "super") return;
72801
- const ref = new Reference(node, this, assign || Reference.READ, writeExpr, maybeImplicitGlobal, !!partial, !!init);
72802
- this.references.push(ref);
72803
- this.__left.push(ref);
72804
- }
72805
- __detectEval() {
72806
- let current = this;
72807
- this.directCallToEvalScope = true;
72808
- do {
72809
- current.dynamic = true;
72810
- current = current.upper;
72811
- } while (current);
72812
- }
72813
- __detectThis() {
72814
- this.thisFound = true;
72815
- }
72816
- __isClosed() {
72817
- return this.__left === null;
72818
- }
72819
- /**
72820
- * returns resolved {Reference}
72821
- * @function Scope#resolve
72822
- * @param {ESTree.Identifier} ident identifier to be resolved.
72823
- * @returns {?Reference} reference
72824
- */
72825
- resolve(ident) {
72826
- let ref, i, iz;
72827
- assert(this.__isClosed(), "Scope should be closed.");
72828
- assert(ident.type === Syntax$2.Identifier, "Target should be identifier.");
72829
- for (i = 0, iz = this.references.length; i < iz; ++i) {
72830
- ref = this.references[i];
72831
- if (ref.identifier === ident) return ref;
72832
- }
72833
- return null;
72834
- }
72835
- /**
72836
- * returns this scope is static
72837
- * @function Scope#isStatic
72838
- * @returns {boolean} static
72839
- */
72840
- isStatic() {
72841
- return !this.dynamic;
72842
- }
72843
- /**
72844
- * returns this scope has materialized arguments
72845
- * @function Scope#isArgumentsMaterialized
72846
- * @returns {any} arguments materialized
72847
- */ isArgumentsMaterialized() {
72848
- return true;
72849
- }
72850
- /**
72851
- * returns this scope has materialized `this` reference
72852
- * @function Scope#isThisMaterialized
72853
- * @returns {any} this materialized
72854
- */ isThisMaterialized() {
72855
- return true;
72856
- }
72857
- isUsedName(name) {
72858
- if (this.set.has(name)) return true;
72859
- for (let i = 0, iz = this.through.length; i < iz; ++i) if (this.through[i].identifier.name === name) return true;
72860
- return false;
72861
- }
72862
- };
72863
- /**
72864
- * Global scope.
72865
- * @implements {types.GlobalScope}
72866
- */
72867
- var GlobalScope = class extends Scope {
72868
- constructor(scopeManager, block) {
72869
- super(scopeManager, "global", null, block, false);
72870
- this.implicit = {
72871
- set: /* @__PURE__ */ new Map(),
72872
- /** @type {Variable[]} */
72873
- variables: [],
72874
- /**
72875
- * List of {@link Reference}s that are left to be resolved (i.e. which
72876
- * need to be linked to the variable they refer to).
72877
- * @member {Reference[]} Scope#implicit#left
72878
- * @type {Reference[]}
72879
- */
72880
- left: []
72881
- };
72882
- }
72883
- __close(scopeManager) {
72884
- const implicit = [];
72885
- for (let i = 0, iz = this.__left.length; i < iz; ++i) {
72886
- const ref = this.__left[i];
72887
- if (ref.__maybeImplicitGlobal && !this.set.has(ref.identifier.name)) implicit.push(ref.__maybeImplicitGlobal);
72888
- }
72889
- for (let i = 0, iz = implicit.length; i < iz; ++i) {
72890
- const info = implicit[i];
72891
- this.__defineImplicit(info.pattern, new Definition(Variable.ImplicitGlobalVariable, info.pattern, info.node, null, null, null));
72892
- }
72893
- super.__close(scopeManager);
72894
- this.implicit.left = [...this.through];
72895
- return null;
72896
- }
72897
- __defineImplicit(node, def) {
72898
- if (node && node.type === Syntax$2.Identifier) this.__defineGeneric(node.name, this.implicit.set, this.implicit.variables, node, def);
72899
- }
72900
- __addVariables(names) {
72901
- for (const name of names) this.__defineGeneric(name, this.set, this.variables, null, null);
72902
- const namesSet = new Set(names);
72903
- this.through = this.through.filter((reference) => {
72904
- const name = reference.identifier.name;
72905
- if (namesSet.has(name)) {
72906
- const variable = this.set.get(name);
72907
- reference.resolved = variable;
72908
- variable.references.push(reference);
72909
- return false;
72910
- }
72911
- return true;
72912
- });
72913
- this.implicit.variables = this.implicit.variables.filter((variable) => {
72914
- const name = variable.name;
72915
- if (namesSet.has(name)) {
72916
- this.implicit.set.delete(name);
72917
- return false;
72918
- }
72919
- return true;
72920
- });
72921
- this.implicit.left = this.implicit.left.filter((reference) => !namesSet.has(reference.identifier.name));
72922
- }
72923
- };
72924
- /**
72925
- * Module scope.
72926
- * @implements {types.ModuleScope}
72927
- */
72928
- var ModuleScope = class extends Scope {
72929
- constructor(scopeManager, upperScope, block) {
72930
- super(scopeManager, "module", upperScope, block, false);
72931
- }
72932
- };
72933
- /**
72934
- * Function expression name scope.
72935
- * @implements {types.FunctionExpressionNameScope}
72936
- */
72937
- var FunctionExpressionNameScope = class extends Scope {
72938
- constructor(scopeManager, upperScope, block) {
72939
- super(scopeManager, "function-expression-name", upperScope, block, false);
72940
- this.__define(block.id, new Definition(Variable.FunctionName, block.id, block, null, null, null));
72941
- this.functionExpressionScope = true;
72942
- }
72943
- };
72944
- /**
72945
- * Catch scope.
72946
- * @implements {types.CatchScope}
72947
- */
72948
- var CatchScope = class extends Scope {
72949
- constructor(scopeManager, upperScope, block) {
72950
- super(scopeManager, "catch", upperScope, block, false);
72951
- }
72952
- };
72953
- /**
72954
- * With statement scope.
72955
- * @implements {types.WithScope}
72956
- */
72957
- var WithScope = class extends Scope {
72958
- constructor(scopeManager, upperScope, block) {
72959
- super(scopeManager, "with", upperScope, block, false);
72960
- }
72961
- __close(scopeManager) {
72962
- if (this.__shouldStaticallyClose(scopeManager)) return super.__close(scopeManager);
72963
- for (let i = 0, iz = this.__left.length; i < iz; ++i) {
72964
- const ref = this.__left[i];
72965
- ref.tainted = true;
72966
- this.__delegateToUpperScope(ref);
72967
- }
72968
- this.__left = null;
72969
- return this.upper;
72970
- }
72971
- };
72972
- /**
72973
- * Block scope.
72974
- * @implements {types.BlockScope}
72975
- */
72976
- var BlockScope = class extends Scope {
72977
- constructor(scopeManager, upperScope, block) {
72978
- super(scopeManager, "block", upperScope, block, false);
72979
- }
72980
- };
72981
- /**
72982
- * Switch scope.
72983
- * @implements {types.SwitchScope}
72984
- */
72985
- var SwitchScope = class extends Scope {
72986
- constructor(scopeManager, upperScope, block) {
72987
- super(scopeManager, "switch", upperScope, block, false);
72988
- }
72989
- };
72990
- /**
72991
- * Function scope.
72992
- * @implements {types.FunctionScope}
72993
- */
72994
- var FunctionScope = class extends Scope {
72995
- constructor(scopeManager, upperScope, block, isMethodDefinition) {
72996
- super(scopeManager, "function", upperScope, block, isMethodDefinition);
72997
- if (this.block.type !== Syntax$2.ArrowFunctionExpression) this.__defineArguments();
72998
- }
72999
- isArgumentsMaterialized() {
73000
- if (this.block.type === Syntax$2.ArrowFunctionExpression) return false;
73001
- if (!this.isStatic()) return true;
73002
- const variable = this.set.get("arguments");
73003
- assert(variable, "Always have arguments variable.");
73004
- return variable.tainted || variable.references.length !== 0;
73005
- }
73006
- isThisMaterialized() {
73007
- if (!this.isStatic()) return true;
73008
- return this.thisFound;
73009
- }
73010
- __defineArguments() {
73011
- this.__defineGeneric("arguments", this.set, this.variables, null, null);
73012
- this.taints.set("arguments", true);
73013
- }
73014
- __isValidResolution(ref, variable) {
73015
- if (this.block.type === "Program") return true;
73016
- const bodyStart = this.block.body.range[0];
73017
- return !(variable.scope === this && ref.identifier.range[0] < bodyStart && variable.defs.every((d) => d.name.range[0] >= bodyStart));
73018
- }
73019
- };
73020
- /**
73021
- * Scope of for, for-in, and for-of statements.
73022
- * @implements {types.ForScope}
73023
- */
73024
- var ForScope = class extends Scope {
73025
- constructor(scopeManager, upperScope, block) {
73026
- super(scopeManager, "for", upperScope, block, false);
73027
- }
73028
- };
73029
- /**
73030
- * Class scope.
73031
- * @implements {types.ClassScope}
73032
- */
73033
- var ClassScope = class extends Scope {
73034
- constructor(scopeManager, upperScope, block) {
73035
- super(scopeManager, "class", upperScope, block, false);
73036
- }
73037
- };
73038
- /**
73039
- * Class field initializer scope.
73040
- * @implements {types.ClassFieldInitializerScope}
73041
- */
73042
- var ClassFieldInitializerScope = class extends Scope {
73043
- constructor(scopeManager, upperScope, block) {
73044
- super(scopeManager, "class-field-initializer", upperScope, block, true);
73045
- }
73046
- };
73047
- /**
73048
- * Class static block scope.
73049
- * @implements {types.ClassStaticBlockScope}
73050
- */
73051
- var ClassStaticBlockScope = class extends Scope {
73052
- constructor(scopeManager, upperScope, block) {
73053
- super(scopeManager, "class-static-block", upperScope, block, true);
73054
- }
73055
- };
73056
- /** @import * as types from "eslint-scope" */
73057
- /** @import ESTree from "estree" */
73058
- /** @import { Scope } from "./scope.js" */
73059
- /** @import Variable from "./variable.js" */
73060
- /**
73061
- * @constructor ScopeManager
73062
- * @implements {types.ScopeManager}
73063
- */
73064
- var ScopeManager = class {
73065
- constructor(options) {
73066
- this.scopes = [];
73067
- this.globalScope = null;
73068
- this.__nodeToScope = /* @__PURE__ */ new WeakMap();
73069
- this.__currentScope = null;
73070
- this.__options = options;
73071
- this.__declaredVariables = /* @__PURE__ */ new WeakMap();
73072
- }
73073
- __isOptimistic() {
73074
- return this.__options.optimistic;
73075
- }
73076
- __ignoreEval() {
73077
- return this.__options.ignoreEval;
73078
- }
73079
- __isJSXEnabled() {
73080
- return this.__options.jsx === true;
73081
- }
73082
- isGlobalReturn() {
73083
- return this.__options.nodejsScope || this.__options.sourceType === "commonjs";
73084
- }
73085
- isModule() {
73086
- return this.__options.sourceType === "module";
73087
- }
73088
- isImpliedStrict() {
73089
- return !!this.__options.impliedStrict;
73090
- }
73091
- isStrictModeSupported() {
73092
- return this.__options.ecmaVersion >= 5;
73093
- }
73094
- __get(node) {
73095
- return this.__nodeToScope.get(node);
73096
- }
73097
- /**
73098
- * Get variables that are declared by the node.
73099
- *
73100
- * "are declared by the node" means the node is same as `Variable.defs[].node` or `Variable.defs[].parent`.
73101
- * If the node declares nothing, this method returns an empty array.
73102
- * CAUTION: This API is experimental. See https://github.com/estools/escope/pull/69 for more details.
73103
- * @param {ESTree.Node} node a node to get.
73104
- * @returns {Variable[]} variables that declared by the node.
73105
- */
73106
- getDeclaredVariables(node) {
73107
- return this.__declaredVariables.get(node) || [];
73108
- }
73109
- /**
73110
- * acquire scope from node.
73111
- * @function ScopeManager#acquire
73112
- * @param {ESTree.Node} node node for the acquired scope.
73113
- * @param {?boolean} [inner=false] look up the most inner scope, default value is false.
73114
- * @returns {Scope?} Scope from node
73115
- */
73116
- acquire(node, inner) {
73117
- /**
73118
- * predicate
73119
- * @param {Scope} testScope scope to test
73120
- * @returns {boolean} predicate
73121
- */
73122
- function predicate(testScope) {
73123
- if (testScope.type === "function" && testScope.functionExpressionScope) return false;
73124
- return true;
73125
- }
73126
- const scopes = this.__get(node);
73127
- if (!scopes || scopes.length === 0) return null;
73128
- if (scopes.length === 1) return scopes[0];
73129
- if (inner) for (let i = scopes.length - 1; i >= 0; --i) {
73130
- const scope = scopes[i];
73131
- if (predicate(scope)) return scope;
73132
- }
73133
- else for (let i = 0, iz = scopes.length; i < iz; ++i) {
73134
- const scope = scopes[i];
73135
- if (predicate(scope)) return scope;
73136
- }
73137
- return null;
73138
- }
73139
- /**
73140
- * acquire all scopes from node.
73141
- * @function ScopeManager#acquireAll
73142
- * @param {ESTree.Node} node node for the acquired scope.
73143
- * @returns {Scope[]?} Scope array
73144
- */
73145
- acquireAll(node) {
73146
- return this.__get(node);
73147
- }
73148
- /**
73149
- * release the node.
73150
- * @function ScopeManager#release
73151
- * @param {ESTree.Node} node releasing node.
73152
- * @param {?boolean} [inner=false] look up the most inner scope, default value is false.
73153
- * @returns {Scope?} upper scope for the node.
73154
- */
73155
- release(node, inner) {
73156
- const scopes = this.__get(node);
73157
- if (scopes && scopes.length) {
73158
- const scope = scopes[0].upper;
73159
- if (!scope) return null;
73160
- return this.acquire(scope.block, inner);
73161
- }
73162
- return null;
73163
- }
73164
- /**
73165
- * Add global variables and resolve their references.
73166
- * @function ScopeManager#addGlobals
73167
- * @param {string[]} names Names of global variables to add.
73168
- * @returns {void}
73169
- */
73170
- addGlobals(names) {
73171
- this.globalScope.__addVariables(names);
73172
- }
73173
- attach() {}
73174
- detach() {}
73175
- __nestScope(scope) {
73176
- if (scope instanceof GlobalScope) {
73177
- assert(this.__currentScope === null);
73178
- this.globalScope = scope;
73179
- }
73180
- this.__currentScope = scope;
73181
- return scope;
73182
- }
73183
- __nestGlobalScope(node) {
73184
- return this.__nestScope(new GlobalScope(this, node));
73185
- }
73186
- __nestBlockScope(node) {
73187
- return this.__nestScope(new BlockScope(this, this.__currentScope, node));
73188
- }
73189
- __nestFunctionScope(node, isMethodDefinition) {
73190
- return this.__nestScope(new FunctionScope(this, this.__currentScope, node, isMethodDefinition));
73191
- }
73192
- __nestForScope(node) {
73193
- return this.__nestScope(new ForScope(this, this.__currentScope, node));
73194
- }
73195
- __nestCatchScope(node) {
73196
- return this.__nestScope(new CatchScope(this, this.__currentScope, node));
73197
- }
73198
- __nestWithScope(node) {
73199
- return this.__nestScope(new WithScope(this, this.__currentScope, node));
73200
- }
73201
- __nestClassScope(node) {
73202
- return this.__nestScope(new ClassScope(this, this.__currentScope, node));
73203
- }
73204
- __nestClassFieldInitializerScope(node) {
73205
- return this.__nestScope(new ClassFieldInitializerScope(this, this.__currentScope, node));
73206
- }
73207
- __nestClassStaticBlockScope(node) {
73208
- return this.__nestScope(new ClassStaticBlockScope(this, this.__currentScope, node));
73209
- }
73210
- __nestSwitchScope(node) {
73211
- return this.__nestScope(new SwitchScope(this, this.__currentScope, node));
73212
- }
73213
- __nestModuleScope(node) {
73214
- return this.__nestScope(new ModuleScope(this, this.__currentScope, node));
73215
- }
73216
- __nestFunctionExpressionNameScope(node) {
73217
- return this.__nestScope(new FunctionExpressionNameScope(this, this.__currentScope, node));
73218
- }
73219
- __isES6() {
73220
- return this.__options.ecmaVersion >= 6;
73221
- }
73222
- };
73223
- /** @import * as types from "eslint-scope" */
73224
- const { Syntax: Syntax$1 } = estraverse;
73225
- /**
73226
- * Get last array element
73227
- * @param {Array} xs array
73228
- * @returns {any} Last elment
73229
- */
73230
- function getLast(xs) {
73231
- return xs.at(-1) || null;
73232
- }
73233
- /**
73234
- * Visitor for destructuring patterns.
73235
- * @implements {types.PatternVisitor}
73236
- */
73237
- var PatternVisitor = class extends esrecurse.Visitor {
73238
- static isPattern(node) {
73239
- const nodeType = node.type;
73240
- return nodeType === Syntax$1.Identifier || nodeType === Syntax$1.ObjectPattern || nodeType === Syntax$1.ArrayPattern || nodeType === Syntax$1.SpreadElement || nodeType === Syntax$1.RestElement || nodeType === Syntax$1.AssignmentPattern;
73241
- }
73242
- constructor(options, rootPattern, callback) {
73243
- super(null, options);
73244
- this.rootPattern = rootPattern;
73245
- this.callback = callback;
73246
- this.assignments = [];
73247
- this.rightHandNodes = [];
73248
- this.restElements = [];
73249
- }
73250
- Identifier(pattern) {
73251
- const lastRestElement = getLast(this.restElements);
73252
- this.callback(pattern, {
73253
- topLevel: pattern === this.rootPattern,
73254
- rest: lastRestElement !== null && lastRestElement !== void 0 && lastRestElement.argument === pattern,
73255
- assignments: this.assignments
73256
- });
73257
- }
73258
- Property(property) {
73259
- if (property.computed) this.rightHandNodes.push(property.key);
73260
- this.visit(property.value);
73261
- }
73262
- ArrayPattern(pattern) {
73263
- for (let i = 0, iz = pattern.elements.length; i < iz; ++i) {
73264
- const element = pattern.elements[i];
73265
- this.visit(element);
73266
- }
73267
- }
73268
- AssignmentPattern(pattern) {
73269
- this.assignments.push(pattern);
73270
- this.visit(pattern.left);
73271
- this.rightHandNodes.push(pattern.right);
73272
- this.assignments.pop();
73273
- }
73274
- RestElement(pattern) {
73275
- this.restElements.push(pattern);
73276
- this.visit(pattern.argument);
73277
- this.restElements.pop();
73278
- }
73279
- MemberExpression(node) {
73280
- if (node.computed) this.rightHandNodes.push(node.property);
73281
- this.rightHandNodes.push(node.object);
73282
- }
73283
- SpreadElement(node) {
73284
- this.visit(node.argument);
73285
- }
73286
- ArrayExpression(node) {
73287
- node.elements.forEach(this.visit, this);
73288
- }
73289
- AssignmentExpression(node) {
73290
- this.assignments.push(node);
73291
- this.visit(node.left);
73292
- this.rightHandNodes.push(node.right);
73293
- this.assignments.pop();
73294
- }
73295
- CallExpression(node) {
73296
- node.arguments.forEach((a) => {
73297
- this.rightHandNodes.push(a);
73298
- });
73299
- this.visit(node.callee);
73300
- }
73301
- };
73302
- /** @import * as types from "eslint-scope" */
73303
- /** @import ESTree from "estree" */
73304
- const { Syntax } = estraverse;
73305
- /**
73306
- * Traverse identifier in pattern
73307
- * @param {Object} options options
73308
- * @param {ESTree.Pattern} rootPattern root pattern
73309
- * @param {?Referencer} referencer referencer
73310
- * @param {types.PatternVisitorCallback} callback callback
73311
- * @returns {void}
73312
- */
73313
- function traverseIdentifierInPattern(options, rootPattern, referencer, callback) {
73314
- const visitor = new PatternVisitor(options, rootPattern, callback);
73315
- visitor.visit(rootPattern);
73316
- if (referencer !== null && referencer !== void 0) visitor.rightHandNodes.forEach(referencer.visit, referencer);
73317
- }
73318
- /**
73319
- * Visitor for import specifiers.
73320
- */
73321
- var Importer = class extends esrecurse.Visitor {
73322
- constructor(declaration, referencer) {
73323
- super(null, referencer.options);
73324
- this.declaration = declaration;
73325
- this.referencer = referencer;
73326
- }
73327
- visitImport(id, specifier) {
73328
- this.referencer.visitPattern(id, (pattern) => {
73329
- this.referencer.currentScope().__define(pattern, new Definition(Variable.ImportBinding, pattern, specifier, this.declaration, null, null));
73330
- });
73331
- }
73332
- ImportNamespaceSpecifier(node) {
73333
- const local = node.local || node.id;
73334
- if (local) this.visitImport(local, node);
73335
- }
73336
- ImportDefaultSpecifier(node) {
73337
- const local = node.local || node.id;
73338
- this.visitImport(local, node);
73339
- }
73340
- ImportSpecifier(node) {
73341
- const local = node.local || node.id;
73342
- if (node.name) this.visitImport(node.name, node);
73343
- else this.visitImport(local, node);
73344
- }
73345
- };
73346
- /**
73347
- * Referencing variables and creating bindings.
73348
- * @implements {types.Referencer}
73349
- */
73350
- var Referencer = class extends esrecurse.Visitor {
73351
- constructor(options, scopeManager) {
73352
- super(null, options);
73353
- this.options = options;
73354
- this.scopeManager = scopeManager;
73355
- this.parent = null;
73356
- this.isInnerMethodDefinition = false;
73357
- }
73358
- currentScope() {
73359
- return this.scopeManager.__currentScope;
73360
- }
73361
- close(node) {
73362
- while (this.currentScope() && node === this.currentScope().block) this.scopeManager.__currentScope = this.currentScope().__close(this.scopeManager);
73363
- }
73364
- pushInnerMethodDefinition(isInnerMethodDefinition) {
73365
- const previous = this.isInnerMethodDefinition;
73366
- this.isInnerMethodDefinition = isInnerMethodDefinition;
73367
- return previous;
73368
- }
73369
- popInnerMethodDefinition(isInnerMethodDefinition) {
73370
- this.isInnerMethodDefinition = isInnerMethodDefinition;
73371
- }
73372
- referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) {
73373
- const scope = this.currentScope();
73374
- assignments.forEach((assignment) => {
73375
- scope.__referencing(pattern, Reference.WRITE, assignment.right, maybeImplicitGlobal, pattern !== assignment.left, init);
73376
- });
73377
- }
73378
- visitPattern(node, options, callback) {
73379
- let visitPatternOptions = options;
73380
- let visitPatternCallback = callback;
73381
- if (typeof options === "function") {
73382
- visitPatternCallback = options;
73383
- visitPatternOptions = { processRightHandNodes: false };
73384
- }
73385
- traverseIdentifierInPattern(this.options, node, visitPatternOptions.processRightHandNodes ? this : null, visitPatternCallback);
73386
- }
73387
- visitFunction(node) {
73388
- let i, iz;
73389
- if (node.type === Syntax.FunctionDeclaration) this.currentScope().__define(node.id, new Definition(Variable.FunctionName, node.id, node, null, null, null));
73390
- if (node.type === Syntax.FunctionExpression && node.id) this.scopeManager.__nestFunctionExpressionNameScope(node);
73391
- this.scopeManager.__nestFunctionScope(node, this.isInnerMethodDefinition);
73392
- const that = this;
73393
- /**
73394
- * Visit pattern callback
73395
- * @param {ESTree.Pattern} pattern pattern
73396
- * @param {Object} info info
73397
- * @returns {void}
73398
- */
73399
- function visitPatternCallback(pattern, info) {
73400
- that.currentScope().__define(pattern, new ParameterDefinition(pattern, node, i, info.rest));
73401
- that.referencingDefaultValue(pattern, info.assignments, null, true);
73402
- }
73403
- for (i = 0, iz = node.params.length; i < iz; ++i) this.visitPattern(node.params[i], { processRightHandNodes: true }, visitPatternCallback);
73404
- if (node.rest) this.visitPattern({
73405
- type: "RestElement",
73406
- argument: node.rest
73407
- }, (pattern) => {
73408
- this.currentScope().__define(pattern, new ParameterDefinition(pattern, node, node.params.length, true));
73409
- });
73410
- if (node.body) if (node.body.type === Syntax.BlockStatement) this.visitChildren(node.body);
73411
- else this.visit(node.body);
73412
- this.close(node);
73413
- }
73414
- visitClass(node) {
73415
- if (node.type === Syntax.ClassDeclaration) this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node, null, null, null));
73416
- this.scopeManager.__nestClassScope(node);
73417
- if (node.id) this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node));
73418
- this.visit(node.superClass);
73419
- this.visit(node.body);
73420
- this.close(node);
73421
- }
73422
- visitProperty(node) {
73423
- let previous;
73424
- if (node.computed) this.visit(node.key);
73425
- const isMethodDefinition = node.type === Syntax.MethodDefinition;
73426
- if (isMethodDefinition) previous = this.pushInnerMethodDefinition(true);
73427
- this.visit(node.value);
73428
- if (isMethodDefinition) this.popInnerMethodDefinition(previous);
73429
- }
73430
- visitForIn(node) {
73431
- if (node.left.type === Syntax.VariableDeclaration && node.left.kind !== "var") this.scopeManager.__nestForScope(node);
73432
- if (node.left.type === Syntax.VariableDeclaration) {
73433
- this.visit(node.left);
73434
- this.visitPattern(node.left.declarations[0].id, (pattern) => {
73435
- this.currentScope().__referencing(pattern, Reference.WRITE, node.right, null, true, true);
73436
- });
73437
- } else this.visitPattern(node.left, { processRightHandNodes: true }, (pattern, info) => {
73438
- let maybeImplicitGlobal = null;
73439
- if (!this.currentScope().isStrict) maybeImplicitGlobal = {
73440
- pattern,
73441
- node
73442
- };
73443
- this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false);
73444
- this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, true, false);
73445
- });
73446
- this.visit(node.right);
73447
- this.visit(node.body);
73448
- this.close(node);
73449
- }
73450
- visitVariableDeclaration(variableTargetScope, type, node, index) {
73451
- const decl = node.declarations[index];
73452
- const init = decl.init;
73453
- this.visitPattern(decl.id, { processRightHandNodes: true }, (pattern, info) => {
73454
- variableTargetScope.__define(pattern, new Definition(type, pattern, decl, node, index, node.kind));
73455
- this.referencingDefaultValue(pattern, info.assignments, null, true);
73456
- if (init) this.currentScope().__referencing(pattern, Reference.WRITE, init, null, !info.topLevel, true);
73457
- });
73458
- }
73459
- AssignmentExpression(node) {
73460
- if (PatternVisitor.isPattern(node.left)) if (node.operator === "=") this.visitPattern(node.left, { processRightHandNodes: true }, (pattern, info) => {
73461
- let maybeImplicitGlobal = null;
73462
- if (!this.currentScope().isStrict) maybeImplicitGlobal = {
73463
- pattern,
73464
- node
73465
- };
73466
- this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false);
73467
- this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, !info.topLevel, false);
73468
- });
73469
- else this.currentScope().__referencing(node.left, Reference.RW, node.right);
73470
- else this.visit(node.left);
73471
- this.visit(node.right);
73472
- }
73473
- CatchClause(node) {
73474
- this.scopeManager.__nestCatchScope(node);
73475
- this.visitPattern(node.param, { processRightHandNodes: true }, (pattern, info) => {
73476
- this.currentScope().__define(pattern, new Definition(Variable.CatchClause, pattern, node, null, null, null));
73477
- this.referencingDefaultValue(pattern, info.assignments, null, true);
73478
- });
73479
- this.visit(node.body);
73480
- this.close(node);
73481
- }
73482
- Program(node) {
73483
- this.scopeManager.__nestGlobalScope(node);
73484
- if (this.scopeManager.isGlobalReturn()) {
73485
- this.currentScope().isStrict = false;
73486
- this.scopeManager.__nestFunctionScope(node, false);
73487
- }
73488
- if (this.scopeManager.__isES6() && this.scopeManager.isModule()) this.scopeManager.__nestModuleScope(node);
73489
- if (this.scopeManager.isStrictModeSupported() && this.scopeManager.isImpliedStrict()) this.currentScope().isStrict = true;
73490
- this.visitChildren(node);
73491
- this.close(node);
73492
- }
73493
- Identifier(node) {
73494
- this.currentScope().__referencing(node);
73495
- }
73496
- PrivateIdentifier() {}
73497
- UpdateExpression(node) {
73498
- if (PatternVisitor.isPattern(node.argument)) this.currentScope().__referencing(node.argument, Reference.RW, null);
73499
- else this.visitChildren(node);
73500
- }
73501
- MemberExpression(node) {
73502
- this.visit(node.object);
73503
- if (node.computed) this.visit(node.property);
73504
- }
73505
- Property(node) {
73506
- this.visitProperty(node);
73507
- }
73508
- PropertyDefinition(node) {
73509
- const { computed, key, value } = node;
73510
- if (computed) this.visit(key);
73511
- if (value) {
73512
- this.scopeManager.__nestClassFieldInitializerScope(value);
73513
- this.visit(value);
73514
- this.close(value);
73515
- }
73516
- }
73517
- StaticBlock(node) {
73518
- this.scopeManager.__nestClassStaticBlockScope(node);
73519
- this.visitChildren(node);
73520
- this.close(node);
73521
- }
73522
- MethodDefinition(node) {
73523
- this.visitProperty(node);
73524
- }
73525
- BreakStatement() {}
73526
- ContinueStatement() {}
73527
- LabeledStatement(node) {
73528
- this.visit(node.body);
73529
- }
73530
- ForStatement(node) {
73531
- if (node.init && node.init.type === Syntax.VariableDeclaration && node.init.kind !== "var") this.scopeManager.__nestForScope(node);
73532
- this.visitChildren(node);
73533
- this.close(node);
73534
- }
73535
- ClassExpression(node) {
73536
- this.visitClass(node);
73537
- }
73538
- ClassDeclaration(node) {
73539
- this.visitClass(node);
73540
- }
73541
- CallExpression(node) {
73542
- if (!this.scopeManager.__ignoreEval() && node.callee.type === Syntax.Identifier && node.callee.name === "eval") this.currentScope().variableScope.__detectEval();
73543
- this.visitChildren(node);
73544
- }
73545
- BlockStatement(node) {
73546
- if (this.scopeManager.__isES6()) this.scopeManager.__nestBlockScope(node);
73547
- this.visitChildren(node);
73548
- this.close(node);
73549
- }
73550
- ThisExpression() {
73551
- this.currentScope().variableScope.__detectThis();
73552
- }
73553
- WithStatement(node) {
73554
- this.visit(node.object);
73555
- this.scopeManager.__nestWithScope(node);
73556
- this.visit(node.body);
73557
- this.close(node);
73558
- }
73559
- VariableDeclaration(node) {
73560
- const variableTargetScope = node.kind === "var" ? this.currentScope().variableScope : this.currentScope();
73561
- for (let i = 0, iz = node.declarations.length; i < iz; ++i) {
73562
- const decl = node.declarations[i];
73563
- this.visitVariableDeclaration(variableTargetScope, Variable.Variable, node, i);
73564
- if (decl.init) this.visit(decl.init);
73565
- }
73566
- }
73567
- SwitchStatement(node) {
73568
- this.visit(node.discriminant);
73569
- if (this.scopeManager.__isES6()) this.scopeManager.__nestSwitchScope(node);
73570
- for (let i = 0, iz = node.cases.length; i < iz; ++i) this.visit(node.cases[i]);
73571
- this.close(node);
73572
- }
73573
- FunctionDeclaration(node) {
73574
- this.visitFunction(node);
73575
- }
73576
- FunctionExpression(node) {
73577
- this.visitFunction(node);
73578
- }
73579
- ForOfStatement(node) {
73580
- this.visitForIn(node);
73581
- }
73582
- ForInStatement(node) {
73583
- this.visitForIn(node);
73584
- }
73585
- ArrowFunctionExpression(node) {
73586
- this.visitFunction(node);
73587
- }
73588
- ImportDeclaration(node) {
73589
- assert(this.scopeManager.__isES6() && this.scopeManager.isModule(), "ImportDeclaration should appear when the mode is ES6 and in the module context.");
73590
- new Importer(node, this).visit(node);
73591
- }
73592
- visitExportDeclaration(node) {
73593
- if (node.source) return;
73594
- if (node.declaration) {
73595
- this.visit(node.declaration);
73596
- return;
73597
- }
73598
- this.visitChildren(node);
73599
- }
73600
- ExportDeclaration(node) {
73601
- this.visitExportDeclaration(node);
73602
- }
73603
- ExportAllDeclaration(node) {
73604
- this.visitExportDeclaration(node);
73605
- }
73606
- ExportDefaultDeclaration(node) {
73607
- this.visitExportDeclaration(node);
73608
- }
73609
- ExportNamedDeclaration(node) {
73610
- this.visitExportDeclaration(node);
73611
- }
73612
- ExportSpecifier(node) {
73613
- const local = node.id || node.local;
73614
- this.visit(local);
73615
- }
73616
- MetaProperty() {}
73617
- JSXIdentifier(node) {
73618
- if (this.scopeManager.__isJSXEnabled() && node.name !== "this") this.currentScope().__referencing(node);
73619
- }
73620
- JSXMemberExpression(node) {
73621
- this.visit(node.object);
73622
- }
73623
- JSXElement(node) {
73624
- if (this.scopeManager.__isJSXEnabled()) {
73625
- this.visit(node.openingElement);
73626
- node.children.forEach(this.visit, this);
73627
- } else this.visitChildren(node);
73628
- }
73629
- JSXOpeningElement(node) {
73630
- if (this.scopeManager.__isJSXEnabled()) {
73631
- const nameNode = node.name;
73632
- if (nameNode.type === "JSXIdentifier" && nameNode.name[0].toUpperCase() === nameNode.name[0] || nameNode.type === "JSXMemberExpression") this.visit(nameNode);
73633
- }
73634
- node.attributes.forEach(this.visit, this);
73635
- }
73636
- JSXAttribute(node) {
73637
- if (node.value) this.visit(node.value);
73638
- }
73639
- JSXExpressionContainer(node) {
73640
- this.visit(node.expression);
73641
- }
73642
- JSXNamespacedName(node) {
73643
- this.visit(node.namespace);
73644
- this.visit(node.name);
73645
- }
73646
- };
73647
- /** @import ESTree from "estree" */
73648
- /**
73649
- * Set the default options
73650
- * @returns {Object} options
73651
- */
73652
- function defaultOptions() {
73653
- return {
73654
- optimistic: false,
73655
- nodejsScope: false,
73656
- impliedStrict: false,
73657
- sourceType: "script",
73658
- ecmaVersion: 5,
73659
- childVisitorKeys: null,
73660
- fallback: "iteration"
73661
- };
73662
- }
73663
- /**
73664
- * Preform deep update on option object
73665
- * @param {Record<string, unknown>} target Options
73666
- * @param {Record<string, unknown>} override Updates
73667
- * @returns {Record<string, unknown>} Updated options
73668
- */
73669
- function updateDeeply(target, override) {
73670
- /**
73671
- * Is hash object
73672
- * @param {Object} value Test value
73673
- * @returns {value is Record<string, unknown>} Result
73674
- */
73675
- function isHashObject(value) {
73676
- return typeof value === "object" && value instanceof Object && !(value instanceof Array) && !(value instanceof RegExp);
73677
- }
73678
- for (const key in override) if (Object.hasOwn(override, key)) {
73679
- const val = override[key];
73680
- if (isHashObject(val)) if (isHashObject(target[key])) updateDeeply(target[key], val);
73681
- else target[key] = updateDeeply({}, val);
73682
- else target[key] = val;
73683
- }
73684
- return target;
73685
- }
73686
- /**
73687
- * Main interface function. Takes an Espree syntax tree and returns the
73688
- * analyzed scopes.
73689
- * @function analyze
73690
- * @param {ESTree.Program} tree Abstract Syntax Tree
73691
- * @param {Object} providedOptions Options that tailor the scope analysis
73692
- * @param {boolean} [providedOptions.optimistic=false] the optimistic flag
73693
- * @param {boolean} [providedOptions.ignoreEval=false] whether to check 'eval()' calls
73694
- * @param {boolean} [providedOptions.nodejsScope=false] whether the whole
73695
- * script is executed under node.js environment. When enabled, escope adds
73696
- * a function scope immediately following the global scope.
73697
- * @param {boolean} [providedOptions.impliedStrict=false] implied strict mode
73698
- * (if ecmaVersion >= 5).
73699
- * @param {string} [providedOptions.sourceType='script'] the source type of the script. one of 'script', 'module', and 'commonjs'
73700
- * @param {number} [providedOptions.ecmaVersion=5] which ECMAScript version is considered
73701
- * @param {boolean} [providedOptions.jsx=false] support JSX references
73702
- * @param {Object} [providedOptions.childVisitorKeys=null] Additional known visitor keys. See [esrecurse](https://github.com/estools/esrecurse)'s the `childVisitorKeys` option.
73703
- * @param {string} [providedOptions.fallback='iteration'] A kind of the fallback in order to encounter with unknown node. See [esrecurse](https://github.com/estools/esrecurse)'s the `fallback` option.
73704
- * @returns {ScopeManager} ScopeManager
73705
- */
73706
- function analyze(tree, providedOptions) {
73707
- const options = updateDeeply(defaultOptions(), providedOptions);
73708
- const scopeManager = new ScopeManager(options);
73709
- new Referencer(options, scopeManager).visit(tree);
73710
- assert(scopeManager.__currentScope === null, "currentScope should be null.");
73711
- return scopeManager;
73712
- }
73713
- /** @name module:escope.version */
73714
- const version = "9.1.2";
73715
- exports.Definition = Definition;
73716
- exports.PatternVisitor = PatternVisitor;
73717
- exports.Reference = Reference;
73718
- exports.Referencer = Referencer;
73719
- exports.Scope = Scope;
73720
- exports.ScopeManager = ScopeManager;
73721
- exports.Variable = Variable;
73722
- exports.analyze = analyze;
73723
- exports.version = version;
73724
- }));
73725
- //#endregion
73726
71556
  //#region ../../node_modules/.pnpm/eslint@10.3.0_jiti@2.7.0/node_modules/eslint/lib/languages/js/validate-language-options.js
73727
71557
  /**
73728
71558
  * @fileoverview The schema to validate language options
@@ -93842,11 +91672,11 @@ var require_dist$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
93842
91672
  assert = __toESM(assert);
93843
91673
  let debug = require_src$1();
93844
91674
  debug = __toESM(debug);
93845
- let eslint_scope = require_eslint_scope$1();
91675
+ let eslint_scope = require_eslint_scope();
93846
91676
  eslint_scope = __toESM(eslint_scope);
93847
91677
  let semver = require_semver();
93848
91678
  let module$1 = require("module");
93849
- let espree = require_espree$1();
91679
+ let espree = require_espree();
93850
91680
  espree = __toESM(espree);
93851
91681
  let events = require("events");
93852
91682
  events = __toESM(events);
@@ -104027,7 +101857,7 @@ var require_dist$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104027
101857
  exports.parseForESLint = parseForESLint;
104028
101858
  }));
104029
101859
  //#endregion
104030
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/flat/recommended.js
101860
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/flat/recommended.js
104031
101861
  var require_recommended = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
104032
101862
  const globals_1 = (exports && exports.__importDefault || function(mod) {
104033
101863
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104057,7 +101887,7 @@ var require_recommended = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
104057
101887
  }];
104058
101888
  }));
104059
101889
  //#endregion
104060
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/defineTemplateBodyVisitor.js
101890
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/defineTemplateBodyVisitor.js
104061
101891
  var require_defineTemplateBodyVisitor = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104062
101892
  var __importDefault = exports && exports.__importDefault || function(mod) {
104063
101893
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104096,7 +101926,7 @@ var require_defineTemplateBodyVisitor = /* @__PURE__ */ require_chunk.__commonJS
104096
101926
  exports.default = defineTemplateBodyVisitor;
104097
101927
  }));
104098
101928
  //#endregion
104099
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getAttributeName.js
101929
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getAttributeName.js
104100
101930
  var require_getAttributeName = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104101
101931
  Object.defineProperty(exports, "__esModule", { value: true });
104102
101932
  function getAttributeName(node) {
@@ -104108,7 +101938,7 @@ var require_getAttributeName = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
104108
101938
  exports.default = getAttributeName;
104109
101939
  }));
104110
101940
  //#endregion
104111
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getAttributeValue.js
101941
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getAttributeValue.js
104112
101942
  var require_getAttributeValue = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104113
101943
  Object.defineProperty(exports, "__esModule", { value: true });
104114
101944
  function getAttributeValue(node) {
@@ -104123,7 +101953,7 @@ var require_getAttributeValue = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
104123
101953
  exports.default = getAttributeValue;
104124
101954
  }));
104125
101955
  //#endregion
104126
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementAttribute.js
101956
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementAttribute.js
104127
101957
  var require_getElementAttribute = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104128
101958
  Object.defineProperty(exports, "__esModule", { value: true });
104129
101959
  function getElementAttribute(node, name) {
@@ -104133,7 +101963,7 @@ var require_getElementAttribute = /* @__PURE__ */ require_chunk.__commonJSMin(((
104133
101963
  exports.default = getElementAttribute;
104134
101964
  }));
104135
101965
  //#endregion
104136
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementAttributeValue.js
101966
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementAttributeValue.js
104137
101967
  var require_getElementAttributeValue = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104138
101968
  var __importDefault = exports && exports.__importDefault || function(mod) {
104139
101969
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104148,7 +101978,7 @@ var require_getElementAttributeValue = /* @__PURE__ */ require_chunk.__commonJSM
104148
101978
  exports.default = getElementAttributeValue;
104149
101979
  }));
104150
101980
  //#endregion
104151
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/makeKebabCase.js
101981
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/makeKebabCase.js
104152
101982
  var require_makeKebabCase = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104153
101983
  Object.defineProperty(exports, "__esModule", { value: true });
104154
101984
  function makeKebabCase(value) {
@@ -104157,7 +101987,7 @@ var require_makeKebabCase = /* @__PURE__ */ require_chunk.__commonJSMin(((export
104157
101987
  exports.default = makeKebabCase;
104158
101988
  }));
104159
101989
  //#endregion
104160
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementType.js
101990
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getElementType.js
104161
101991
  var require_getElementType = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104162
101992
  var __importDefault = exports && exports.__importDefault || function(mod) {
104163
101993
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104180,7 +102010,7 @@ var require_getElementType = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
104180
102010
  exports.default = getElementType;
104181
102011
  }));
104182
102012
  //#endregion
104183
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getLiteralAttributeValue.js
102013
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getLiteralAttributeValue.js
104184
102014
  var require_getLiteralAttributeValue = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104185
102015
  Object.defineProperty(exports, "__esModule", { value: true });
104186
102016
  function getLiteralAttributeValue(node, name) {
@@ -104193,7 +102023,7 @@ var require_getLiteralAttributeValue = /* @__PURE__ */ require_chunk.__commonJSM
104193
102023
  exports.default = getLiteralAttributeValue;
104194
102024
  }));
104195
102025
  //#endregion
104196
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getInteractiveRoles.js
102026
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/getInteractiveRoles.js
104197
102027
  var require_getInteractiveRoles = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104198
102028
  Object.defineProperty(exports, "__esModule", { value: true });
104199
102029
  const aria_query_1 = require_lib$4.require_lib();
@@ -104205,7 +102035,7 @@ var require_getInteractiveRoles = /* @__PURE__ */ require_chunk.__commonJSMin(((
104205
102035
  exports.default = getInteractiveRoles;
104206
102036
  }));
104207
102037
  //#endregion
104208
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isHiddenFromScreenReader.js
102038
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isHiddenFromScreenReader.js
104209
102039
  var require_isHiddenFromScreenReader = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104210
102040
  var __importDefault = exports && exports.__importDefault || function(mod) {
104211
102041
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104221,7 +102051,7 @@ var require_isHiddenFromScreenReader = /* @__PURE__ */ require_chunk.__commonJSM
104221
102051
  exports.default = isHiddenFromScreenReader;
104222
102052
  }));
104223
102053
  //#endregion
104224
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasAccessibleChild.js
102054
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasAccessibleChild.js
104225
102055
  var require_hasAccessibleChild = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104226
102056
  var __importDefault = exports && exports.__importDefault || function(mod) {
104227
102057
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104247,7 +102077,7 @@ var require_hasAccessibleChild = /* @__PURE__ */ require_chunk.__commonJSMin(((e
104247
102077
  exports.default = hasAccessibleChild;
104248
102078
  }));
104249
102079
  //#endregion
104250
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasAriaLabel.js
102080
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasAriaLabel.js
104251
102081
  var require_hasAriaLabel = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104252
102082
  var __importDefault = exports && exports.__importDefault || function(mod) {
104253
102083
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104260,7 +102090,7 @@ var require_hasAriaLabel = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
104260
102090
  exports.default = hasAriaLabel;
104261
102091
  }));
104262
102092
  //#endregion
104263
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasContent.js
102093
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasContent.js
104264
102094
  var require_hasContent = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104265
102095
  var __importDefault = exports && exports.__importDefault || function(mod) {
104266
102096
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104295,7 +102125,7 @@ var require_hasContent = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
104295
102125
  exports.default = hasContent;
104296
102126
  }));
104297
102127
  //#endregion
104298
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/matchesElementRole.js
102128
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/matchesElementRole.js
104299
102129
  var require_matchesElementRole = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104300
102130
  var __importDefault = exports && exports.__importDefault || function(mod) {
104301
102131
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104320,7 +102150,7 @@ var require_matchesElementRole = /* @__PURE__ */ require_chunk.__commonJSMin(((e
104320
102150
  exports.default = matchesElementRole;
104321
102151
  }));
104322
102152
  //#endregion
104323
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isInteractiveElement.js
102153
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isInteractiveElement.js
104324
102154
  var require_isInteractiveElement = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104325
102155
  var __importDefault = exports && exports.__importDefault || function(mod) {
104326
102156
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104341,7 +102171,7 @@ var require_isInteractiveElement = /* @__PURE__ */ require_chunk.__commonJSMin((
104341
102171
  exports.default = isInteractiveElement;
104342
102172
  }));
104343
102173
  //#endregion
104344
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasFocusableElement.js
102174
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasFocusableElement.js
104345
102175
  var require_hasFocusableElement = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104346
102176
  var __importDefault = exports && exports.__importDefault || function(mod) {
104347
102177
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104358,7 +102188,7 @@ var require_hasFocusableElement = /* @__PURE__ */ require_chunk.__commonJSMin(((
104358
102188
  exports.default = hasFocusableElements;
104359
102189
  }));
104360
102190
  //#endregion
104361
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasOnDirective.js
102191
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasOnDirective.js
104362
102192
  var require_hasOnDirective = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104363
102193
  Object.defineProperty(exports, "__esModule", { value: true });
104364
102194
  function hasOnDirective(node, name) {
@@ -104369,7 +102199,7 @@ var require_hasOnDirective = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
104369
102199
  exports.default = hasOnDirective;
104370
102200
  }));
104371
102201
  //#endregion
104372
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasOnDirectives.js
102202
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/hasOnDirectives.js
104373
102203
  var require_hasOnDirectives = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104374
102204
  var __importDefault = exports && exports.__importDefault || function(mod) {
104375
102205
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104382,7 +102212,7 @@ var require_hasOnDirectives = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
104382
102212
  exports.default = hasOnDirectives;
104383
102213
  }));
104384
102214
  //#endregion
104385
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/interactiveHandlers.json
102215
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/interactiveHandlers.json
104386
102216
  var require_interactiveHandlers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
104387
102217
  module.exports = [
104388
102218
  "click",
@@ -104410,7 +102240,7 @@ var require_interactiveHandlers = /* @__PURE__ */ require_chunk.__commonJSMin(((
104410
102240
  ];
104411
102241
  }));
104412
102242
  //#endregion
104413
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isAriaHidden.js
102243
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isAriaHidden.js
104414
102244
  var require_isAriaHidden = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104415
102245
  var __importDefault = exports && exports.__importDefault || function(mod) {
104416
102246
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104424,7 +102254,7 @@ var require_isAriaHidden = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
104424
102254
  exports.default = isAriaHidden;
104425
102255
  }));
104426
102256
  //#endregion
104427
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/htmlElements.json
102257
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/htmlElements.json
104428
102258
  var require_htmlElements = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
104429
102259
  module.exports = [
104430
102260
  "html",
@@ -104548,7 +102378,7 @@ var require_htmlElements = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
104548
102378
  ];
104549
102379
  }));
104550
102380
  //#endregion
104551
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isCustomComponent.js
102381
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isCustomComponent.js
104552
102382
  var require_isCustomComponent = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104553
102383
  var __importDefault = exports && exports.__importDefault || function(mod) {
104554
102384
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104566,7 +102396,7 @@ var require_isCustomComponent = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
104566
102396
  exports.default = isCustomComponent;
104567
102397
  }));
104568
102398
  //#endregion
104569
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isAttribute.js
102399
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isAttribute.js
104570
102400
  var require_isAttribute = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104571
102401
  Object.defineProperty(exports, "__esModule", { value: true });
104572
102402
  function isAttribute(node, name) {
@@ -104576,7 +102406,7 @@ var require_isAttribute = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
104576
102406
  exports.default = isAttribute;
104577
102407
  }));
104578
102408
  //#endregion
104579
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isInteractiveRole.js
102409
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isInteractiveRole.js
104580
102410
  var require_isInteractiveRole = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104581
102411
  Object.defineProperty(exports, "__esModule", { value: true });
104582
102412
  const aria_query_1 = require_lib$4.require_lib();
@@ -104588,7 +102418,7 @@ var require_isInteractiveRole = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
104588
102418
  exports.default = isInteractiveRole;
104589
102419
  }));
104590
102420
  //#endregion
104591
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isMatchingElement.js
102421
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isMatchingElement.js
104592
102422
  var require_isMatchingElement = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104593
102423
  var __importDefault = exports && exports.__importDefault || function(mod) {
104594
102424
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104606,7 +102436,7 @@ var require_isMatchingElement = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
104606
102436
  exports.default = isMatchingElement;
104607
102437
  }));
104608
102438
  //#endregion
104609
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isPresentationRole.js
102439
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/isPresentationRole.js
104610
102440
  var require_isPresentationRole = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104611
102441
  var __importDefault = exports && exports.__importDefault || function(mod) {
104612
102442
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104620,7 +102450,7 @@ var require_isPresentationRole = /* @__PURE__ */ require_chunk.__commonJSMin(((e
104620
102450
  exports.default = isPresentationRole;
104621
102451
  }));
104622
102452
  //#endregion
104623
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/makeDocsURL.js
102453
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils/makeDocsURL.js
104624
102454
  var require_makeDocsURL = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104625
102455
  Object.defineProperty(exports, "__esModule", { value: true });
104626
102456
  function makeDocsURL(name) {
@@ -104629,7 +102459,7 @@ var require_makeDocsURL = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
104629
102459
  exports.default = makeDocsURL;
104630
102460
  }));
104631
102461
  //#endregion
104632
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils.js
102462
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/utils.js
104633
102463
  var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104634
102464
  var __importDefault = exports && exports.__importDefault || function(mod) {
104635
102465
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -104820,7 +102650,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104820
102650
  });
104821
102651
  }));
104822
102652
  //#endregion
104823
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/alt-text.js
102653
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/alt-text.js
104824
102654
  var require_alt_text = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104825
102655
  Object.defineProperty(exports, "__esModule", { value: true });
104826
102656
  const utils_1 = require_utils();
@@ -104902,7 +102732,7 @@ var require_alt_text = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
104902
102732
  };
104903
102733
  }));
104904
102734
  //#endregion
104905
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/anchor-has-content.js
102735
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/anchor-has-content.js
104906
102736
  var require_anchor_has_content = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104907
102737
  Object.defineProperty(exports, "__esModule", { value: true });
104908
102738
  const utils_1 = require_utils();
@@ -104944,7 +102774,7 @@ var require_anchor_has_content = /* @__PURE__ */ require_chunk.__commonJSMin(((e
104944
102774
  };
104945
102775
  }));
104946
102776
  //#endregion
104947
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-props.js
102777
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-props.js
104948
102778
  var require_aria_props = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104949
102779
  Object.defineProperty(exports, "__esModule", { value: true });
104950
102780
  const aria_query_1 = require_lib$4.require_lib();
@@ -104970,7 +102800,7 @@ var require_aria_props = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
104970
102800
  };
104971
102801
  }));
104972
102802
  //#endregion
104973
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-role.js
102803
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-role.js
104974
102804
  var require_aria_role = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
104975
102805
  Object.defineProperty(exports, "__esModule", { value: true });
104976
102806
  const aria_query_1 = require_lib$4.require_lib();
@@ -105009,7 +102839,7 @@ var require_aria_role = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
105009
102839
  };
105010
102840
  }));
105011
102841
  //#endregion
105012
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-unsupported-elements.js
102842
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/aria-unsupported-elements.js
105013
102843
  var require_aria_unsupported_elements = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105014
102844
  Object.defineProperty(exports, "__esModule", { value: true });
105015
102845
  const aria_query_1 = require_lib$4.require_lib();
@@ -105037,7 +102867,7 @@ var require_aria_unsupported_elements = /* @__PURE__ */ require_chunk.__commonJS
105037
102867
  };
105038
102868
  }));
105039
102869
  //#endregion
105040
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/click-events-have-key-events.js
102870
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/click-events-have-key-events.js
105041
102871
  var require_click_events_have_key_events = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105042
102872
  Object.defineProperty(exports, "__esModule", { value: true });
105043
102873
  const utils_1 = require_utils();
@@ -105063,7 +102893,7 @@ var require_click_events_have_key_events = /* @__PURE__ */ require_chunk.__commo
105063
102893
  };
105064
102894
  }));
105065
102895
  //#endregion
105066
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/form-control-has-label.js
102896
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/form-control-has-label.js
105067
102897
  var require_form_control_has_label = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105068
102898
  Object.defineProperty(exports, "__esModule", { value: true });
105069
102899
  const utils_1 = require_utils();
@@ -105139,7 +102969,7 @@ var require_form_control_has_label = /* @__PURE__ */ require_chunk.__commonJSMin
105139
102969
  };
105140
102970
  }));
105141
102971
  //#endregion
105142
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/heading-has-content.js
102972
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/heading-has-content.js
105143
102973
  var require_heading_has_content = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105144
102974
  Object.defineProperty(exports, "__esModule", { value: true });
105145
102975
  const utils_1 = require_utils();
@@ -105189,7 +103019,7 @@ var require_heading_has_content = /* @__PURE__ */ require_chunk.__commonJSMin(((
105189
103019
  };
105190
103020
  }));
105191
103021
  //#endregion
105192
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/iframe-has-title.js
103022
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/iframe-has-title.js
105193
103023
  var require_iframe_has_title = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105194
103024
  Object.defineProperty(exports, "__esModule", { value: true });
105195
103025
  const utils_1 = require_utils();
@@ -105213,7 +103043,7 @@ var require_iframe_has_title = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
105213
103043
  };
105214
103044
  }));
105215
103045
  //#endregion
105216
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/interactive-supports-focus.js
103046
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/interactive-supports-focus.js
105217
103047
  var require_interactive_supports_focus = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105218
103048
  Object.defineProperty(exports, "__esModule", { value: true });
105219
103049
  const aria_query_1 = require_lib$4.require_lib();
@@ -105288,7 +103118,7 @@ var require_interactive_supports_focus = /* @__PURE__ */ require_chunk.__commonJ
105288
103118
  };
105289
103119
  }));
105290
103120
  //#endregion
105291
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/label-has-for.js
103121
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/label-has-for.js
105292
103122
  var require_label_has_for = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105293
103123
  Object.defineProperty(exports, "__esModule", { value: true });
105294
103124
  const utils_1 = require_utils();
@@ -105388,7 +103218,7 @@ var require_label_has_for = /* @__PURE__ */ require_chunk.__commonJSMin(((export
105388
103218
  };
105389
103219
  }));
105390
103220
  //#endregion
105391
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/media-has-caption.js
103221
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/media-has-caption.js
105392
103222
  var require_media_has_caption = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105393
103223
  Object.defineProperty(exports, "__esModule", { value: true });
105394
103224
  const utils_1 = require_utils();
@@ -105436,7 +103266,7 @@ var require_media_has_caption = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
105436
103266
  };
105437
103267
  }));
105438
103268
  //#endregion
105439
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/mouse-events-have-key-events.js
103269
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/mouse-events-have-key-events.js
105440
103270
  var require_mouse_events_have_key_events = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105441
103271
  Object.defineProperty(exports, "__esModule", { value: true });
105442
103272
  const utils_1 = require_utils();
@@ -105469,7 +103299,7 @@ var require_mouse_events_have_key_events = /* @__PURE__ */ require_chunk.__commo
105469
103299
  };
105470
103300
  }));
105471
103301
  //#endregion
105472
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-access-key.js
103302
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-access-key.js
105473
103303
  var require_no_access_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105474
103304
  Object.defineProperty(exports, "__esModule", { value: true });
105475
103305
  const utils_1 = require_utils();
@@ -105491,7 +103321,7 @@ var require_no_access_key = /* @__PURE__ */ require_chunk.__commonJSMin(((export
105491
103321
  };
105492
103322
  }));
105493
103323
  //#endregion
105494
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-aria-hidden-on-focusable.js
103324
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-aria-hidden-on-focusable.js
105495
103325
  var require_no_aria_hidden_on_focusable = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105496
103326
  var __importDefault = exports && exports.__importDefault || function(mod) {
105497
103327
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -105517,7 +103347,7 @@ var require_no_aria_hidden_on_focusable = /* @__PURE__ */ require_chunk.__common
105517
103347
  };
105518
103348
  }));
105519
103349
  //#endregion
105520
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-autofocus.js
103350
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-autofocus.js
105521
103351
  var require_no_autofocus = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105522
103352
  Object.defineProperty(exports, "__esModule", { value: true });
105523
103353
  const aria_query_1 = require_lib$4.require_lib();
@@ -105550,7 +103380,7 @@ var require_no_autofocus = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
105550
103380
  };
105551
103381
  }));
105552
103382
  //#endregion
105553
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-distracting-elements.js
103383
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-distracting-elements.js
105554
103384
  var require_no_distracting_elements = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105555
103385
  Object.defineProperty(exports, "__esModule", { value: true });
105556
103386
  const utils_1 = require_utils();
@@ -105585,7 +103415,7 @@ var require_no_distracting_elements = /* @__PURE__ */ require_chunk.__commonJSMi
105585
103415
  };
105586
103416
  }));
105587
103417
  //#endregion
105588
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-onchange.js
103418
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-onchange.js
105589
103419
  var require_no_onchange = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105590
103420
  Object.defineProperty(exports, "__esModule", { value: true });
105591
103421
  const utils_1 = require_utils();
@@ -105609,7 +103439,7 @@ var require_no_onchange = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
105609
103439
  };
105610
103440
  }));
105611
103441
  //#endregion
105612
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-redundant-roles.js
103442
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-redundant-roles.js
105613
103443
  var require_no_redundant_roles = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105614
103444
  Object.defineProperty(exports, "__esModule", { value: true });
105615
103445
  const aria_query_1 = require_lib$4.require_lib();
@@ -105659,7 +103489,7 @@ var require_no_redundant_roles = /* @__PURE__ */ require_chunk.__commonJSMin(((e
105659
103489
  };
105660
103490
  }));
105661
103491
  //#endregion
105662
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-role-presentation-on-focusable.js
103492
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-role-presentation-on-focusable.js
105663
103493
  var require_no_role_presentation_on_focusable = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105664
103494
  var __importDefault = exports && exports.__importDefault || function(mod) {
105665
103495
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -105685,7 +103515,7 @@ var require_no_role_presentation_on_focusable = /* @__PURE__ */ require_chunk.__
105685
103515
  };
105686
103516
  }));
105687
103517
  //#endregion
105688
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-static-element-interactions.js
103518
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/no-static-element-interactions.js
105689
103519
  var require_no_static_element_interactions = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105690
103520
  Object.defineProperty(exports, "__esModule", { value: true });
105691
103521
  const utils_1 = require_utils();
@@ -105709,7 +103539,7 @@ var require_no_static_element_interactions = /* @__PURE__ */ require_chunk.__com
105709
103539
  };
105710
103540
  }));
105711
103541
  //#endregion
105712
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/role-has-required-aria-props.js
103542
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/role-has-required-aria-props.js
105713
103543
  var require_role_has_required_aria_props = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105714
103544
  Object.defineProperty(exports, "__esModule", { value: true });
105715
103545
  const aria_query_1 = require_lib$4.require_lib();
@@ -105756,7 +103586,7 @@ var require_role_has_required_aria_props = /* @__PURE__ */ require_chunk.__commo
105756
103586
  };
105757
103587
  }));
105758
103588
  //#endregion
105759
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/tabindex-no-positive.js
103589
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/rules/tabindex-no-positive.js
105760
103590
  var require_tabindex_no_positive = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
105761
103591
  Object.defineProperty(exports, "__esModule", { value: true });
105762
103592
  const utils_1 = require_utils();
@@ -105779,7 +103609,7 @@ var require_tabindex_no_positive = /* @__PURE__ */ require_chunk.__commonJSMin((
105779
103609
  };
105780
103610
  }));
105781
103611
  //#endregion
105782
- //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.5.0/node_modules/eslint-plugin-vuejs-accessibility/dist/index.js
103612
+ //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.3.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/index.js
105783
103613
  var require_dist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
105784
103614
  var __importDefault = exports && exports.__importDefault || function(mod) {
105785
103615
  return mod && mod.__esModule ? mod : { "default": mod };