immosquare-cleaner 0.1.40 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/README.md +9 -3
  4. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1 -0
  5. data/node_modules/@eslint/config-array/dist/esm/index.js +1 -0
  6. data/node_modules/@eslint/config-array/package.json +2 -2
  7. data/node_modules/@eslint/eslintrc/node_modules/espree/LICENSE +25 -0
  8. data/node_modules/@eslint/eslintrc/node_modules/espree/README.md +244 -0
  9. data/node_modules/@eslint/eslintrc/node_modules/espree/dist/espree.cjs +883 -0
  10. data/node_modules/@eslint/eslintrc/node_modules/espree/espree.js +177 -0
  11. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/espree.js +349 -0
  12. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/features.js +27 -0
  13. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/options.js +123 -0
  14. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/token-translator.js +263 -0
  15. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/version.js +3 -0
  16. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/CHANGELOG.md +880 -0
  17. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/LICENSE +21 -0
  18. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/README.md +283 -0
  19. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/bin/acorn +4 -0
  20. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.mts +857 -0
  21. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.ts +857 -0
  22. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.js +6002 -0
  23. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.mjs +5973 -0
  24. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/bin.js +90 -0
  25. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/package.json +50 -0
  26. data/node_modules/@eslint/eslintrc/node_modules/espree/package.json +86 -0
  27. data/node_modules/@eslint/js/package.json +1 -1
  28. data/node_modules/@eslint-community/regexpp/index.d.ts +19 -5
  29. data/node_modules/@eslint-community/regexpp/index.js +138 -17
  30. data/node_modules/@eslint-community/regexpp/index.js.map +1 -1
  31. data/node_modules/@eslint-community/regexpp/index.mjs +138 -17
  32. data/node_modules/@eslint-community/regexpp/index.mjs.map +1 -1
  33. data/node_modules/@eslint-community/regexpp/package.json +1 -3
  34. data/node_modules/acorn/CHANGELOG.md +24 -0
  35. data/node_modules/acorn/README.md +5 -6
  36. data/node_modules/acorn/dist/acorn.d.mts +8 -9
  37. data/node_modules/acorn/dist/acorn.d.ts +8 -9
  38. data/node_modules/acorn/dist/acorn.js +92 -29
  39. data/node_modules/acorn/dist/acorn.mjs +92 -29
  40. data/node_modules/acorn/package.json +3 -3
  41. data/node_modules/eslint/README.md +7 -8
  42. data/node_modules/eslint/conf/ecma-version.js +1 -1
  43. data/node_modules/eslint/conf/globals.js +6 -1
  44. data/node_modules/eslint/lib/cli.js +23 -2
  45. data/node_modules/eslint/lib/eslint/eslint-helpers.js +5 -0
  46. data/node_modules/eslint/lib/eslint/eslint.js +16 -2
  47. data/node_modules/eslint/lib/eslint/legacy-eslint.js +14 -0
  48. data/node_modules/eslint/lib/languages/js/index.js +10 -5
  49. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +16 -6
  50. data/node_modules/eslint/lib/linter/apply-disable-directives.js +6 -3
  51. data/node_modules/eslint/lib/linter/config-comment-parser.js +3 -16
  52. data/node_modules/eslint/lib/linter/linter.js +194 -149
  53. data/node_modules/eslint/lib/linter/node-event-generator.js +2 -4
  54. data/node_modules/eslint/lib/linter/vfile.js +7 -0
  55. data/node_modules/eslint/lib/options.js +13 -1
  56. data/node_modules/eslint/lib/rules/no-restricted-imports.js +12 -5
  57. data/node_modules/eslint/lib/rules/no-unused-vars.js +34 -32
  58. data/node_modules/eslint/lib/rules/no-useless-backreference.js +81 -31
  59. data/node_modules/eslint/lib/rules/utils/regular-expressions.js +1 -1
  60. data/node_modules/eslint/lib/shared/flags.js +26 -0
  61. data/node_modules/eslint/lib/shared/logging.js +10 -1
  62. data/node_modules/eslint/lib/shared/types.js +1 -1
  63. data/node_modules/eslint/package.json +9 -13
  64. data/node_modules/eslint-scope/dist/eslint-scope.cjs +2 -2
  65. data/node_modules/eslint-scope/lib/referencer.js +1 -1
  66. data/node_modules/eslint-scope/lib/version.js +1 -1
  67. data/node_modules/eslint-scope/package.json +2 -2
  68. data/node_modules/espree/README.md +5 -5
  69. data/node_modules/espree/dist/espree.cjs +62 -6
  70. data/node_modules/espree/espree.js +1 -4
  71. data/node_modules/espree/lib/options.js +3 -2
  72. data/node_modules/espree/lib/token-translator.js +1 -1
  73. data/node_modules/espree/lib/version.js +1 -1
  74. data/node_modules/espree/package.json +7 -7
  75. data/node_modules/js-tokens/CHANGELOG.md +17 -0
  76. data/node_modules/js-tokens/LICENSE +1 -1
  77. data/node_modules/js-tokens/README.md +25 -7
  78. data/node_modules/js-tokens/index.js +3 -3
  79. data/node_modules/js-tokens/package.json +5 -5
  80. data/node_modules/jscodeshift/CHANGELOG.md +5 -0
  81. data/node_modules/jscodeshift/bin/jscodeshift.js +1 -1
  82. data/node_modules/jscodeshift/package.json +1 -2
  83. data/node_modules/jscodeshift/website/index.htm +9 -0
  84. data/node_modules/prettier/LICENSE +35 -34
  85. data/node_modules/prettier/doc.js +2 -2
  86. data/node_modules/prettier/doc.mjs +2 -2
  87. data/node_modules/prettier/index.cjs +8 -8
  88. data/node_modules/prettier/index.d.ts +1 -2
  89. data/node_modules/prettier/index.mjs +636 -704
  90. data/node_modules/prettier/internal/cli.mjs +4 -4
  91. data/node_modules/prettier/package.json +1 -1
  92. data/node_modules/prettier/plugins/acorn.js +14 -12
  93. data/node_modules/prettier/plugins/acorn.mjs +14 -12
  94. data/node_modules/prettier/plugins/angular.js +1 -1
  95. data/node_modules/prettier/plugins/angular.mjs +1 -1
  96. data/node_modules/prettier/plugins/babel.js +10 -11
  97. data/node_modules/prettier/plugins/babel.mjs +10 -11
  98. data/node_modules/prettier/plugins/estree.js +27 -27
  99. data/node_modules/prettier/plugins/estree.mjs +27 -27
  100. data/node_modules/prettier/plugins/flow.js +15 -16
  101. data/node_modules/prettier/plugins/flow.mjs +15 -16
  102. data/node_modules/prettier/plugins/glimmer.js +5 -5
  103. data/node_modules/prettier/plugins/glimmer.mjs +5 -5
  104. data/node_modules/prettier/plugins/graphql.js +8 -8
  105. data/node_modules/prettier/plugins/graphql.mjs +8 -8
  106. data/node_modules/prettier/plugins/html.js +17 -17
  107. data/node_modules/prettier/plugins/html.mjs +17 -17
  108. data/node_modules/prettier/plugins/markdown.js +44 -44
  109. data/node_modules/prettier/plugins/markdown.mjs +44 -44
  110. data/node_modules/prettier/plugins/meriyah.js +4 -5
  111. data/node_modules/prettier/plugins/meriyah.mjs +4 -5
  112. data/node_modules/prettier/plugins/postcss.js +26 -26
  113. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  114. data/node_modules/prettier/plugins/typescript.js +15 -20
  115. data/node_modules/prettier/plugins/typescript.mjs +15 -20
  116. data/node_modules/prettier/plugins/yaml.js +6 -6
  117. data/node_modules/prettier/plugins/yaml.mjs +6 -6
  118. data/node_modules/prettier/standalone.js +31 -30
  119. data/node_modules/prettier/standalone.mjs +28 -27
  120. data/package.json +4 -4
  121. metadata +24 -2
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ var path = require('path');
4
+ var fs = require('fs');
5
+ var acorn = require('./acorn.js');
6
+
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+
24
+ var acorn__namespace = /*#__PURE__*/_interopNamespaceDefault(acorn);
25
+
26
+ var inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false;
27
+ var options = {};
28
+
29
+ function help(status) {
30
+ var print = (status === 0) ? console.log : console.error;
31
+ print("usage: " + path.basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|...|--ecma2015|--ecma2016|--ecma2017|--ecma2018|...]");
32
+ print(" [--tokenize] [--locations] [--allow-hash-bang] [--allow-await-outside-function] [--compact] [--silent] [--module] [--help] [--] [<infile>...]");
33
+ process.exit(status);
34
+ }
35
+
36
+ for (var i = 2; i < process.argv.length; ++i) {
37
+ var arg = process.argv[i];
38
+ if (arg[0] !== "-" || arg === "-") { inputFilePaths.push(arg); }
39
+ else if (arg === "--") {
40
+ inputFilePaths.push.apply(inputFilePaths, process.argv.slice(i + 1));
41
+ forceFileName = true;
42
+ break
43
+ } else if (arg === "--locations") { options.locations = true; }
44
+ else if (arg === "--allow-hash-bang") { options.allowHashBang = true; }
45
+ else if (arg === "--allow-await-outside-function") { options.allowAwaitOutsideFunction = true; }
46
+ else if (arg === "--silent") { silent = true; }
47
+ else if (arg === "--compact") { compact = true; }
48
+ else if (arg === "--help") { help(0); }
49
+ else if (arg === "--tokenize") { tokenize = true; }
50
+ else if (arg === "--module") { options.sourceType = "module"; }
51
+ else {
52
+ var match = arg.match(/^--ecma(\d+)$/);
53
+ if (match)
54
+ { options.ecmaVersion = +match[1]; }
55
+ else
56
+ { help(1); }
57
+ }
58
+ }
59
+
60
+ function run(codeList) {
61
+ var result = [], fileIdx = 0;
62
+ try {
63
+ codeList.forEach(function (code, idx) {
64
+ fileIdx = idx;
65
+ if (!tokenize) {
66
+ result = acorn__namespace.parse(code, options);
67
+ options.program = result;
68
+ } else {
69
+ var tokenizer = acorn__namespace.tokenizer(code, options), token;
70
+ do {
71
+ token = tokenizer.getToken();
72
+ result.push(token);
73
+ } while (token.type !== acorn__namespace.tokTypes.eof)
74
+ }
75
+ });
76
+ } catch (e) {
77
+ console.error(fileMode ? e.message.replace(/\(\d+:\d+\)$/, function (m) { return m.slice(0, 1) + inputFilePaths[fileIdx] + " " + m.slice(1); }) : e.message);
78
+ process.exit(1);
79
+ }
80
+ if (!silent) { console.log(JSON.stringify(result, null, compact ? null : 2)); }
81
+ }
82
+
83
+ if (fileMode = inputFilePaths.length && (forceFileName || !inputFilePaths.includes("-") || inputFilePaths.length !== 1)) {
84
+ run(inputFilePaths.map(function (path) { return fs.readFileSync(path, "utf8"); }));
85
+ } else {
86
+ var code = "";
87
+ process.stdin.resume();
88
+ process.stdin.on("data", function (chunk) { return code += chunk; });
89
+ process.stdin.on("end", function () { return run([code]); });
90
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "acorn",
3
+ "description": "ECMAScript parser",
4
+ "homepage": "https://github.com/acornjs/acorn",
5
+ "main": "dist/acorn.js",
6
+ "types": "dist/acorn.d.ts",
7
+ "module": "dist/acorn.mjs",
8
+ "exports": {
9
+ ".": [
10
+ {
11
+ "import": "./dist/acorn.mjs",
12
+ "require": "./dist/acorn.js",
13
+ "default": "./dist/acorn.js"
14
+ },
15
+ "./dist/acorn.js"
16
+ ],
17
+ "./package.json": "./package.json"
18
+ },
19
+ "version": "8.11.3",
20
+ "engines": {
21
+ "node": ">=0.4.0"
22
+ },
23
+ "maintainers": [
24
+ {
25
+ "name": "Marijn Haverbeke",
26
+ "email": "marijnh@gmail.com",
27
+ "web": "https://marijnhaverbeke.nl"
28
+ },
29
+ {
30
+ "name": "Ingvar Stepanyan",
31
+ "email": "me@rreverser.com",
32
+ "web": "https://rreverser.com/"
33
+ },
34
+ {
35
+ "name": "Adrian Heine",
36
+ "web": "http://adrianheine.de"
37
+ }
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/acornjs/acorn.git"
42
+ },
43
+ "license": "MIT",
44
+ "scripts": {
45
+ "prepare": "cd ..; npm run build:main"
46
+ },
47
+ "bin": {
48
+ "acorn": "./bin/acorn"
49
+ }
50
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "espree",
3
+ "description": "An Esprima-compatible JavaScript parser built on Acorn",
4
+ "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
+ "homepage": "https://github.com/eslint/espree",
6
+ "main": "dist/espree.cjs",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": [
10
+ {
11
+ "import": "./espree.js",
12
+ "require": "./dist/espree.cjs",
13
+ "default": "./dist/espree.cjs"
14
+ },
15
+ "./dist/espree.cjs"
16
+ ],
17
+ "./package.json": "./package.json"
18
+ },
19
+ "version": "10.0.1",
20
+ "files": [
21
+ "lib",
22
+ "dist/espree.cjs",
23
+ "espree.js"
24
+ ],
25
+ "engines": {
26
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
27
+ },
28
+ "repository": "eslint/espree",
29
+ "bugs": {
30
+ "url": "https://github.com/eslint/espree/issues"
31
+ },
32
+ "funding": "https://opencollective.com/eslint",
33
+ "license": "BSD-2-Clause",
34
+ "dependencies": {
35
+ "acorn": "^8.11.3",
36
+ "acorn-jsx": "^5.3.2",
37
+ "eslint-visitor-keys": "^4.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "@rollup/plugin-commonjs": "^17.1.0",
41
+ "@rollup/plugin-json": "^4.1.0",
42
+ "@rollup/plugin-node-resolve": "^11.2.0",
43
+ "c8": "^7.11.0",
44
+ "chai": "^4.3.6",
45
+ "eslint": "^8.44.0",
46
+ "eslint-config-eslint": "^9.0.0",
47
+ "eslint-release": "^3.2.0",
48
+ "esprima-fb": "^8001.2001.0-dev-harmony-fb",
49
+ "globals": "^13.20.0",
50
+ "lint-staged": "^13.2.0",
51
+ "mocha": "^9.2.2",
52
+ "npm-run-all": "^4.1.5",
53
+ "rollup": "^2.41.2",
54
+ "shelljs": "^0.3.0",
55
+ "yorkie": "^2.0.0"
56
+ },
57
+ "keywords": [
58
+ "ast",
59
+ "ecmascript",
60
+ "javascript",
61
+ "parser",
62
+ "syntax",
63
+ "acorn"
64
+ ],
65
+ "gitHooks": {
66
+ "pre-commit": "lint-staged"
67
+ },
68
+ "scripts": {
69
+ "build": "rollup -c rollup.config.js",
70
+ "build:debug": "npm run build -- -m",
71
+ "build:docs": "node tools/sync-docs.js",
72
+ "build:update-version": "node tools/update-version.js",
73
+ "lint": "eslint . --report-unused-disable-directives",
74
+ "lint:fix": "npm run lint -- --fix",
75
+ "prepublishOnly": "npm run build:update-version && npm run build",
76
+ "pretest": "npm run build",
77
+ "release:generate:latest": "eslint-generate-release",
78
+ "release:generate:alpha": "eslint-generate-prerelease alpha",
79
+ "release:generate:beta": "eslint-generate-prerelease beta",
80
+ "release:generate:rc": "eslint-generate-prerelease rc",
81
+ "release:publish": "eslint-publish-release",
82
+ "test": "npm-run-all -s test:*",
83
+ "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
84
+ "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs"
85
+ }
86
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint/js",
3
- "version": "9.5.0",
3
+ "version": "9.7.0",
4
4
  "description": "ESLint JavaScript language implementation",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {},
@@ -430,10 +430,21 @@ declare module "@eslint-community/regexpp/ast" {
430
430
  * The backreference.
431
431
  * E.g. `\1`, `\k<name>`
432
432
  */
433
- export interface Backreference extends NodeBase {
433
+ export type Backreference = AmbiguousBackreference | UnambiguousBackreference;
434
+ interface BaseBackreference extends NodeBase {
434
435
  type: "Backreference";
435
436
  parent: Alternative | Quantifier;
436
437
  ref: number | string;
438
+ ambiguous: boolean;
439
+ resolved: CapturingGroup | CapturingGroup[];
440
+ }
441
+ export interface AmbiguousBackreference extends BaseBackreference {
442
+ ref: string;
443
+ ambiguous: true;
444
+ resolved: CapturingGroup[];
445
+ }
446
+ export interface UnambiguousBackreference extends BaseBackreference {
447
+ ambiguous: false;
437
448
  resolved: CapturingGroup;
438
449
  }
439
450
  /**
@@ -471,7 +482,7 @@ declare module "@eslint-community/regexpp/parser" {
471
482
  */
472
483
  strict?: boolean;
473
484
  /**
474
- * ECMAScript version. Default is `2024`.
485
+ * ECMAScript version. Default is `2025`.
475
486
  * - `2015` added `u` and `y` flags.
476
487
  * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
477
488
  * and Unicode Property Escape.
@@ -479,6 +490,7 @@ declare module "@eslint-community/regexpp/parser" {
479
490
  * - `2022` added `d` flag.
480
491
  * - `2023` added more valid Unicode Property Escapes.
481
492
  * - `2024` added `v` flag.
493
+ * - `2025` added duplicate named capturing groups.
482
494
  */
483
495
  ecmaVersion?: EcmaVersion;
484
496
  }
@@ -559,7 +571,7 @@ declare module "@eslint-community/regexpp/validator" {
559
571
  */
560
572
  strict?: boolean;
561
573
  /**
562
- * ECMAScript version. Default is `2024`.
574
+ * ECMAScript version. Default is `2025`.
563
575
  * - `2015` added `u` and `y` flags.
564
576
  * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
565
577
  * and Unicode Property Escape.
@@ -567,6 +579,7 @@ declare module "@eslint-community/regexpp/validator" {
567
579
  * - `2022` added `d` flag.
568
580
  * - `2023` added more valid Unicode Property Escapes.
569
581
  * - `2024` added `v` flag.
582
+ * - `2025` added duplicate named capturing groups.
570
583
  */
571
584
  ecmaVersion?: EcmaVersion;
572
585
  /**
@@ -1060,6 +1073,7 @@ declare module "@eslint-community/regexpp/ecma-versions" {
1060
1073
  | 2021
1061
1074
  | 2022
1062
1075
  | 2023
1063
- | 2024;
1064
- export const latestEcmaVersion = 2024;
1076
+ | 2024
1077
+ | 2025;
1078
+ export const latestEcmaVersion = 2025;
1065
1079
  }
@@ -6,7 +6,7 @@ var ast = /*#__PURE__*/Object.freeze({
6
6
  __proto__: null
7
7
  });
8
8
 
9
- const latestEcmaVersion = 2024;
9
+ const latestEcmaVersion = 2025;
10
10
 
11
11
  let largeIdStartRanges = undefined;
12
12
  let largeIdContinueRanges = undefined;
@@ -74,7 +74,7 @@ function restoreRanges(data) {
74
74
  }
75
75
 
76
76
  class DataSet {
77
- constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024) {
77
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025) {
78
78
  this._raw2018 = raw2018;
79
79
  this._raw2019 = raw2019;
80
80
  this._raw2020 = raw2020;
@@ -82,6 +82,7 @@ class DataSet {
82
82
  this._raw2022 = raw2022;
83
83
  this._raw2023 = raw2023;
84
84
  this._raw2024 = raw2024;
85
+ this._raw2025 = raw2025;
85
86
  }
86
87
  get es2018() {
87
88
  var _a;
@@ -111,13 +112,17 @@ class DataSet {
111
112
  var _a;
112
113
  return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" "))));
113
114
  }
115
+ get es2025() {
116
+ var _a;
117
+ return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" "))));
118
+ }
114
119
  }
115
120
  const gcNameSet = new Set(["General_Category", "gc"]);
116
121
  const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
117
- const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "");
118
- const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", "");
119
- const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "");
120
- const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence");
122
+ const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", "");
123
+ const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", "", "");
124
+ const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", "");
125
+ const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", "");
121
126
  function isValidUnicodeProperty(version, name, value) {
122
127
  if (gcNameSet.has(name)) {
123
128
  return version >= 2018 && gcValueSets.es2018.has(value);
@@ -259,6 +264,103 @@ function combineSurrogatePair(lead, trail) {
259
264
  return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000;
260
265
  }
261
266
 
267
+ class GroupSpecifiersAsES2018 {
268
+ constructor() {
269
+ this.groupName = new Set();
270
+ }
271
+ clear() {
272
+ this.groupName.clear();
273
+ }
274
+ isEmpty() {
275
+ return !this.groupName.size;
276
+ }
277
+ hasInPattern(name) {
278
+ return this.groupName.has(name);
279
+ }
280
+ hasInScope(name) {
281
+ return this.hasInPattern(name);
282
+ }
283
+ addToScope(name) {
284
+ this.groupName.add(name);
285
+ }
286
+ enterDisjunction() {
287
+ }
288
+ enterAlternative() {
289
+ }
290
+ leaveDisjunction() {
291
+ }
292
+ }
293
+ class BranchID {
294
+ constructor(parent, base) {
295
+ this.parent = parent;
296
+ this.base = base !== null && base !== void 0 ? base : this;
297
+ }
298
+ separatedFrom(other) {
299
+ var _a, _b;
300
+ if (this.base === other.base && this !== other) {
301
+ return true;
302
+ }
303
+ if (other.parent && this.separatedFrom(other.parent)) {
304
+ return true;
305
+ }
306
+ return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false;
307
+ }
308
+ child() {
309
+ return new BranchID(this, null);
310
+ }
311
+ sibling() {
312
+ return new BranchID(this.parent, this.base);
313
+ }
314
+ }
315
+ class GroupSpecifiersAsES2025 {
316
+ constructor() {
317
+ this.branchID = new BranchID(null, null);
318
+ this.groupNames = new Map();
319
+ }
320
+ clear() {
321
+ this.branchID = new BranchID(null, null);
322
+ this.groupNames.clear();
323
+ }
324
+ isEmpty() {
325
+ return !this.groupNames.size;
326
+ }
327
+ enterDisjunction() {
328
+ this.branchID = this.branchID.child();
329
+ }
330
+ enterAlternative(index) {
331
+ if (index === 0) {
332
+ return;
333
+ }
334
+ this.branchID = this.branchID.sibling();
335
+ }
336
+ leaveDisjunction() {
337
+ this.branchID = this.branchID.parent;
338
+ }
339
+ hasInPattern(name) {
340
+ return this.groupNames.has(name);
341
+ }
342
+ hasInScope(name) {
343
+ const branches = this.groupNames.get(name);
344
+ if (!branches) {
345
+ return false;
346
+ }
347
+ for (const branch of branches) {
348
+ if (!branch.separatedFrom(this.branchID)) {
349
+ return true;
350
+ }
351
+ }
352
+ return false;
353
+ }
354
+ addToScope(name) {
355
+ const branches = this.groupNames.get(name);
356
+ if (branches) {
357
+ branches.push(this.branchID);
358
+ return;
359
+ }
360
+ this.groupNames.set(name, [this.branchID]);
361
+ }
362
+ }
363
+
262
364
  const legacyImpl = {
263
365
  at(s, end, i) {
264
366
  return i < end ? s.charCodeAt(i) : -1;
@@ -491,10 +593,13 @@ class RegExpValidator {
491
593
  this._lastStrValue = "";
492
594
  this._lastAssertionIsQuantifiable = false;
493
595
  this._numCapturingParens = 0;
494
- this._groupNames = new Set();
495
596
  this._backreferenceNames = new Set();
496
597
  this._srcCtx = null;
497
598
  this._options = options !== null && options !== void 0 ? options : {};
599
+ this._groupSpecifiers =
600
+ this.ecmaVersion >= 2025
601
+ ? new GroupSpecifiersAsES2025()
602
+ : new GroupSpecifiersAsES2018();
498
603
  }
499
604
  validateLiteral(source, start = 0, end = source.length) {
500
605
  this._srcCtx = { source, start, end, kind: "literal" };
@@ -537,7 +642,7 @@ class RegExpValidator {
537
642
  this.consumePattern();
538
643
  if (!this._nFlag &&
539
644
  this.ecmaVersion >= 2018 &&
540
- this._groupNames.size > 0) {
645
+ !this._groupSpecifiers.isEmpty()) {
541
646
  this._nFlag = true;
542
647
  this.rewind(start);
543
648
  this.consumePattern();
@@ -874,7 +979,7 @@ class RegExpValidator {
874
979
  consumePattern() {
875
980
  const start = this.index;
876
981
  this._numCapturingParens = this.countCapturingParens();
877
- this._groupNames.clear();
982
+ this._groupSpecifiers.clear();
878
983
  this._backreferenceNames.clear();
879
984
  this.onPatternEnter(start);
880
985
  this.consumeDisjunction();
@@ -893,7 +998,7 @@ class RegExpValidator {
893
998
  this.raise(`Unexpected character '${c}'`);
894
999
  }
895
1000
  for (const name of this._backreferenceNames) {
896
- if (!this._groupNames.has(name)) {
1001
+ if (!this._groupSpecifiers.hasInPattern(name)) {
897
1002
  this.raise("Invalid named capture referenced");
898
1003
  }
899
1004
  }
@@ -934,6 +1039,7 @@ class RegExpValidator {
934
1039
  consumeDisjunction() {
935
1040
  const start = this.index;
936
1041
  let i = 0;
1042
+ this._groupSpecifiers.enterDisjunction();
937
1043
  this.onDisjunctionEnter(start);
938
1044
  do {
939
1045
  this.consumeAlternative(i++);
@@ -945,9 +1051,11 @@ class RegExpValidator {
945
1051
  this.raise("Lone quantifier brackets");
946
1052
  }
947
1053
  this.onDisjunctionLeave(start, this.index);
1054
+ this._groupSpecifiers.leaveDisjunction();
948
1055
  }
949
1056
  consumeAlternative(i) {
950
1057
  const start = this.index;
1058
+ this._groupSpecifiers.enterAlternative(i);
951
1059
  this.onAlternativeEnter(start, i);
952
1060
  while (this.currentCodePoint !== -1 && this.consumeTerm()) {
953
1061
  }
@@ -1181,8 +1289,8 @@ class RegExpValidator {
1181
1289
  consumeGroupSpecifier() {
1182
1290
  if (this.eat(QUESTION_MARK)) {
1183
1291
  if (this.eatGroupName()) {
1184
- if (!this._groupNames.has(this._lastStrValue)) {
1185
- this._groupNames.add(this._lastStrValue);
1292
+ if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) {
1293
+ this._groupSpecifiers.addToScope(this._lastStrValue);
1186
1294
  return true;
1187
1295
  }
1188
1296
  this.raise("Duplicate capture group name");
@@ -2005,11 +2113,21 @@ class RegExpParserState {
2005
2113
  this._node.raw = this.source.slice(start, end);
2006
2114
  for (const reference of this._backreferences) {
2007
2115
  const ref = reference.ref;
2008
- const group = typeof ref === "number"
2009
- ? this._capturingGroups[ref - 1]
2010
- : this._capturingGroups.find((g) => g.name === ref);
2011
- reference.resolved = group;
2012
- group.references.push(reference);
2116
+ const groups = typeof ref === "number"
2117
+ ? [this._capturingGroups[ref - 1]]
2118
+ : this._capturingGroups.filter((g) => g.name === ref);
2119
+ if (groups.length === 1) {
2120
+ const group = groups[0];
2121
+ reference.ambiguous = false;
2122
+ reference.resolved = group;
2123
+ }
2124
+ else {
2125
+ reference.ambiguous = true;
2126
+ reference.resolved = groups;
2127
+ }
2128
+ for (const group of groups) {
2129
+ group.references.push(reference);
2130
+ }
2013
2131
  }
2014
2132
  }
2015
2133
  onAlternativeEnter(start) {
@@ -2207,10 +2325,12 @@ class RegExpParserState {
2207
2325
  }
2208
2326
  const base = {
2209
2327
  type: "CharacterSet",
2328
+ parent: null,
2210
2329
  start,
2211
2330
  end,
2212
2331
  raw: this.source.slice(start, end),
2213
2332
  kind,
2333
+ strings: null,
2214
2334
  key,
2215
2335
  };
2216
2336
  if (strings) {
@@ -2253,6 +2373,7 @@ class RegExpParserState {
2253
2373
  end,
2254
2374
  raw: this.source.slice(start, end),
2255
2375
  ref,
2376
+ ambiguous: false,
2256
2377
  resolved: DUMMY_CAPTURING_GROUP,
2257
2378
  };
2258
2379
  parent.elements.push(node);